1function Tte(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var zXe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var X2={exports:{}},ep={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var WL;function Lte(){if(WL)return ep;WL=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var l in a)l!=="key"&&(s[l]=a[l])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:s}}return ep.Fragment=t,ep.jsx=n,ep.jsxs=n,ep}var YL;function Ote(){return YL||(YL=1,X2.exports=Lte()),X2.exports}var i=Ote(),Z2={exports:{}},KL;function Mte(){return KL||(KL=1,(function(e){var t=(function(n){var r=Object.prototype,a=r.hasOwnProperty,s=Object.defineProperty||function(K,M,I){K[M]=I.value},o,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function p(K,M,I){return Object.defineProperty(K,M,{value:I,enumerable:!0,configurable:!0,writable:!0}),K[M]}try{p({},"")}catch{p=function(M,I,X){return M[I]=X}}function g(K,M,I,X){var F=M&&M.prototype instanceof N?M:N,U=Object.create(F.prototype),Z=new B(X||[]);return s(U,"_invoke",{value:D(K,I,Z)}),U}n.wrap=g;function y(K,M,I){try{return{type:"normal",arg:K.call(M,I)}}catch(X){return{type:"throw",arg:X}}}var b="suspendedStart",w="suspendedYield",j="executing",S="completed",k={};function N(){}function _(){}function L(){}var E={};p(E,d,function(){return this});var T=Object.getPrototypeOf,P=T&&T(T(H([])));P&&P!==r&&a.call(P,d)&&(E=P);var $=L.prototype=N.prototype=Object.create(E);_.prototype=L,s($,"constructor",{value:L,configurable:!0}),s(L,"constructor",{value:_,configurable:!0}),_.displayName=p(L,h,"GeneratorFunction");function O(K){["next","throw","return"].forEach(function(M){p(K,M,function(I){return this._invoke(M,I)})})}n.isGeneratorFunction=function(K){var M=typeof K=="function"&&K.constructor;return M?M===_||(M.displayName||M.name)==="GeneratorFunction":!1},n.mark=function(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,L):(K.__proto__=L,p(K,h,"GeneratorFunction")),K.prototype=Object.create($),K},n.awrap=function(K){return{__await:K}};function q(K,M){function I(U,Z,ee,ae){var ye=y(K[U],K,Z);if(ye.type==="throw")ae(ye.arg);else{var J=ye.arg,re=J.value;return re&&typeof re=="object"&&a.call(re,"__await")?M.resolve(re.__await).then(function(ge){I("next",ge,ee,ae)},function(ge){I("throw",ge,ee,ae)}):M.resolve(re).then(function(ge){J.value=ge,ee(J)},function(ge){return I("throw",ge,ee,ae)})}}var X;function F(U,Z){function ee(){return new M(function(ae,ye){I(U,Z,ae,ye)})}return X=X?X.then(ee,ee):ee()}s(this,"_invoke",{value:F})}O(q.prototype),p(q.prototype,u,function(){return this}),n.AsyncIterator=q,n.async=function(K,M,I,X,F){F===void 0&&(F=Promise);var U=new q(g(K,M,I,X),F);return n.isGeneratorFunction(M)?U:U.next().then(function(Z){return Z.done?Z.value:U.next()})};function D(K,M,I){var X=b;return function(U,Z){if(X===j)throw new Error("Generator is already running");if(X===S){if(U==="throw")throw Z;return G()}for(I.method=U,I.arg=Z;;){var ee=I.delegate;if(ee){var ae=z(ee,I);if(ae){if(ae===k)continue;return ae}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(X===b)throw X=S,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);X=j;var ye=y(K,M,I);if(ye.type==="normal"){if(X=I.done?S:w,ye.arg===k)continue;return{value:ye.arg,done:I.done}}else ye.type==="throw"&&(X=S,I.method="throw",I.arg=ye.arg)}}}function z(K,M){var I=M.method,X=K.iterator[I];if(X===o)return M.delegate=null,I==="throw"&&K.iterator.return&&
9(M.method="return",M.arg=o,z(K,M),M.method==="throw")||I!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+I+"' method")),k;var F=y(X,K.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,k;var U=F.arg;if(!U)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,k;if(U.done)M[K.resultName]=U.value,M.next=K.nextLoc,M.method!=="return"&&(M.method="next",M.arg=o);else return U;return M.delegate=null,k}O($),p($,h,"Generator"),p($,d,function(){return this}),p($,"toString",function(){return"[object Generator]"});function V(K){var M={tryLoc:K[0]};1 in K&&(M.catchLoc=K[1]),2 in K&&(M.finallyLoc=K[2],M.afterLoc=K[3]),this.tryEntries.push(M)}function W(K){var M=K.completion||{};M.type="normal",delete M.arg,K.completion=M}function B(K){this.tryEntries=[{tryLoc:"root"}],K.forEach(V,this),this.reset(!0)}n.keys=function(K){var M=Object(K),I=[];for(var X in M)I.push(X);return I.reverse(),function F(){for(;I.length;){var U=I.pop();if(U in M)return F.value=U,F.done=!1,F}return F.done=!0,F}};function H(K){if(K!=null){var M=K[d];if(M)return M.call(K);if(typeof K.next=="function")return K;if(!isNaN(K.length)){var I=-1,X=function F(){for(;++I<K.length;)if(a.call(K,I))return F.value=K[I],F.done=!1,F;return F.value=o,F.done=!0,F};return X.next=X}}throw new TypeError(typeof K+" is not iterable")}n.values=H;function G(){return{value:o,done:!0}}return B.prototype={constructor:B,reset:function(K){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(W),!K)for(var M in this)M.charAt(0)==="t"&&a.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=o)},stop:function(){this.done=!0;var K=this.tryEntries[0],M=K.completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(K){if(this.done)throw K;var M=this;function I(ae,ye){return U.type="throw",U.arg=K,M.next=ae,ye&&(M.method="next",M.arg=o),!!ye}for(var X=this.tryEntries.length-1;X>=0;--X){var F=this.tryEntries[X],U=F.completion;if(F.tryLoc==="root")return I("end");if(F.tryLoc<=this.prev){var Z=a.call(F,"catchLoc"),ee=a.call(F,"finallyLoc");if(Z&&ee){if(this.prev<F.catchLoc)return I(F.catchLoc,!0);if(this.prev<F.finallyLoc)return I(F.finallyLoc)}else if(Z){if(this.prev<F.catchLoc)return I(F.catchLoc,!0)}else if(ee){if(this.prev<F.finallyLoc)return I(F.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(K,M){for(var I=this.tryEntries.length-1;I>=0;--I){var X=this.tryEntries[I];if(X.tryLoc<=this.prev&&a.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var F=X;break}}F&&(K==="break"||K==="continue")&&F.tryLoc<=M&&M<=F.finallyLoc&&(F=null);var U=F?F.completion:{};return U.type=K,U.arg=M,F?(this.method="next",this.next=F.finallyLoc,k):this.complete(U)},complete:function(K,M){if(K.type==="throw")throw K.arg;return K.type==="break"||K.type==="continue"?this.next=K.arg:K.type==="return"?(this.rval=this.arg=K.arg,this.method="return",this.next="end"):K.type==="normal"&&M&&(this.next=M),k},finish:function(K){for(var M=this.tryEntries.length-1;M>=0;--M){var I=this.tryEntries[M];if(I.finallyLoc===K)return this.complete(I.completion,I.afterLoc),W(I),k}},catch:function(K){for(var M=this.tryEntries.length-1;M>=0;--M){var I=this.tryEntries[M];if(I.tryLoc===K){var X=I.completion;if(X.type==="throw"){var F=X.arg;W(I)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(K,M,I){return this.delegate={iterator:H(K),resultName:M,nextLoc:I},this.method==="next"&&(this.arg=o),k}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Z2)),Z2.exports}Mte();var Q2={exports:{}},tt={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var XL;function Dte(){if(XL)return tt;XL=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function y(I){return I===null||typeof I!="object"?null:(I=g&&I[g]||I["@@iterator"],typeof I=="function"?I:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function S(I,X,F){this.props=I,this.context=X,this.refs=j,this.updater=F||b}S.prototype.isReactComponent={},S.prototype.setState=function(I,X){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,X,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=S.prototype;function N(I,X,F){this.props=I,this.context=X,this.refs=j,this.updater=F||b}var _=N.prototype=new k;_.constructor=N,w(_,S.prototype),_.isPureReactComponent=!0;var L=Array.isArray;function E(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function $(I,X,F){var U=F.ref;return{$$typeof:e,type:I,key:X,ref:U!==void 0?U:null,props:F}}function O(I,X){return $(I.type,X,I.props)}function q(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function D(I){var X={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(F){return X[F]})}var z=/\/+/g;function V(I,X){return typeof I=="object"&&I!==null&&I.key!=null?D(""+I.key):X.toString(36)}function W(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(E,E):(I.status="pending",I.then(function(X){I.status==="pending"&&(I.status="fulfilled",I.value=X)},function(X){I.status==="pending"&&(I.status="rejected",I.reason=X)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function B(I,X,F,U,Z){var ee=typeof I;(ee==="undefined"||ee==="boolean")&&(I=null);var ae=!1;if(I===null)ae=!0;else switch(ee){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(I.$$typeof){case e:case t:ae=!0;break;case h:return ae=I._init,B(ae(I._payload),X,F,U,Z)}}if(ae)return Z=Z(I),ae=U===""?"."+V(I,0):U,L(Z)?(F="",ae!=null&&(F=ae.replace(z,"$&/")+"/"),B(Z,X,F,"",function(re){return re})):Z!=null&&(q(Z)&&(Z=O(Z,F+(Z.key==null||I&&I.key===Z.key?"":(""+Z.key).replace(z,"$&/")+"/")+ae)),X.push(Z)),1;ae=0;var ye=U===""?".":U+":";if(L(I))for(var J=0;J<I.length;J++)U=I[J],ee=ye+V(U,J),ae+=B(U,X,F,ee,Z);else if(J=y(I),typeof J=="function")for(I=J.call(I),J=0;!(U=I.next()).done;)U=U.value,ee=ye+V(U,J++),ae+=B(U,X,F,ee,Z);else if(ee==="object"){if(typeof I.then=="function")return B(W(I),X,F,U,Z);throw X=String(I),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ae}function H(I,X,F){if(I==null)return I;var U=[],Z=0;return B(I,U,"","",function(ee){return X.call(F,ee,Z++)}),U}function G(I){if(I._status===-1){var X=I._result;X=X(),X.then(function(F){(I._status===0||I._status===-1)&&(I._status=1,I._result=F)},function(F){(I._status===0||I._status===-1)&&(I._status=2,I._result=F)}),I._status===-1&&(I._status=0,I._result=X)}if(I._status===1)return I._result.default;throw I._result}var K=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)}
vendor: 3,503 bytes, line 17
17,M={map:H,forEach:function(I,X,F){H(I,function(){X.apply(this,arguments)},F)},count:function(I){var X=0;return H(I,function(){X++}),X},toArray:function(I){return H(I,function(X){return X})||[]},only:function(I){if(!q(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return tt.Activity=p,tt.Children=M,tt.Component=S,tt.Fragment=n,tt.Profiler=a,tt.PureComponent=N,tt.StrictMode=r,tt.Suspense=d,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,tt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return T.H.useMemoCache(I)}},tt.cache=function(I){return function(){return I.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.cloneElement=function(I,X,F){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var U=w({},I.props),Z=I.key;if(X!=null)for(ee in X.key!==void 0&&(Z=""+X.key),X)!P.call(X,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&X.ref===void 0||(U[ee]=X[ee]);var ee=arguments.length-2;if(ee===1)U.children=F;else if(1<ee){for(var ae=Array(ee),ye=0;ye<ee;ye++)ae[ye]=arguments[ye+2];U.children=ae}return $(I.type,Z,U)},tt.createContext=function(I){return I={$$typeof:o,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:s,_context:I},I},tt.createElement=function(I,X,F){var U,Z={},ee=null;if(X!=null)for(U in X.key!==void 0&&(ee=""+X.key),X)P.call(X,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(Z[U]=X[U]);var ae=arguments.length-2;if(ae===1)Z.children=F;else if(1<ae){for(var ye=Array(ae),J=0;J<ae;J++)ye[J]=arguments[J+2];Z.children=ye}if(I&&I.defaultProps)for(U in ae=I.defaultProps,ae)Z[U]===void 0&&(Z[U]=ae[U]);return $(I,ee,Z)},tt.createRef=function(){return{current:null}},tt.forwardRef=function(I){return{$$typeof:l,render:I}},tt.isValidElement=q,tt.lazy=function(I){return{$$typeof:h,_payload:{_status:-1,_result:I},_init:G}},tt.memo=function(I,X){return{$$typeof:u,type:I,compare:X===void 0?null:X}},tt.startTransition=function(I){var X=T.T,F={};T.T=F;try{var U=I(),Z=T.S;Z!==null&&Z(F,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(E,K)}catch(ee){K(ee)}finally{X!==null&&F.types!==null&&(X.types=F.types),T.T=X}},tt.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},tt.use=function(I){return T.H.use(I)},tt.useActionState=function(I,X,F){return T.H.useActionState(I,X,F)},tt.useCallback=function(I,X){return T.H.useCallback(I,X)},tt.useContext=function(I){return T.H.useContext(I)},tt.useDebugValue=function(){},tt.useDeferredValue=function(I,X){return T.H.useDeferredValue(I,X)},tt.useEffect=function(I,X){return T.H.useEffect(I,X)},tt.useEffectEvent=function(I){return T.H.useEffectEvent(I)},tt.useId=function(){return T.H.useId()},tt.useImperativeHandle=function(I,X,F){return T.H.useImperativeHandle(I,X,F)},tt.useInsertionEffect=function(I,X){return T.H.useInsertionEffect(I,X)},tt.useLayoutEffect=function(I,X){return T.H.useLayoutEffect(I,X)},tt.useMemo=function(I,X){return T.H.useMemo(I,X)},tt.useOptimistic=function(I,X){return T.H.useOptimistic(I,X)},tt.useReducer=function(I,X,F){return T.H.useReducer(I,X,F)},tt.useRef=function(I){return T.H.useRef(I)},tt.useState=function(I){return T.H.useState(I)},tt.useSyncExternalStore=function(I,X,F){return T.H.useSyncExternalStore(I,X,F)},tt.useTransition=function(){return T.H.useTransition()},tt.version="19.2.0",tt}var ZL;function Mo(){return ZL||(ZL=1,Q2.exports=Dte()),Q2.exports}var v=Mo();
vendor: 5,458 bytes, lines 17-33
17const ft=Aa(v),MF=Tte({__proto__:null,default:ft},[v]);var J2={exports:{}},tp={},ej={exports:{}},tj={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var QL;function Pte(){return QL||(QL=1,(function(e){function t(B,H){var G=B.length;B.push(H);e:for(;0<G;){var K=G-1>>>1,M=B[K];if(0<a(M,H))B[K]=H,B[G]=M,G=K;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var H=B[0],G=B.pop();if(G!==H){B[0]=G;e:for(var K=0,M=B.length,I=M>>>1;K<I;){var X=2*(K+1)-1,F=B[X],U=X+1,Z=B[U];if(0>a(F,G))U<M&&0>a(Z,F)?(B[K]=Z,B[U]=G,K=U):(B[K]=F,B[X]=G,K=X);else if(U<M&&0>a(Z,G))B[K]=Z,B[U]=G,K=U;else break e}}return H}function a(B,H){var G=B.sortIndex-H.sortIndex;return G!==0?G:B.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var d=[],u=[],h=1,p=null,g=3,y=!1,b=!1,w=!1,j=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function _(B){for(var H=n(u);H!==null;){if(H.callback===null)r(u);else if(H.startTime<=B)r(u),H.sortIndex=H.expirationTime,t(d,H);else break;H=n(u)}}function L(B){if(w=!1,_(B),!b)if(n(d)!==null)b=!0,E||(E=!0,D());else{var H=n(u);H!==null&&W(L,H.startTime-B)}}var E=!1,T=-1,P=5,$=-1;function O(){return j?!0:!(e.unstable_now()-$<P)}function q(){if(j=!1,E){var B=e.unstable_now();$=B;var H=!0;try{e:{b=!1,w&&(w=!1,k(T),T=-1),y=!0;var G=g;try{t:{for(_(B),p=n(d);p!==null&&!(p.expirationTime>B&&O());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var M=K(p.expirationTime<=B);if(B=e.unstable_now(),typeof M=="function"){p.callback=M,_(B),H=!0;break t}p===n(d)&&r(d),_(B)}else r(d);p=n(d)}if(p!==null)H=!0;else{var I=n(u);I!==null&&W(L,I.startTime-B),H=!1}}break e}finally{p=null,g=G,y=!1}H=void 0}}finally{H?D():E=!1}}}var D;if(typeof N=="function")D=function(){N(q)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,V=z.port2;z.port1.onmessage=q,D=function(){V.postMessage(null)}}else D=function(){S(q,0)};function W(B,H){T=S(function(){B(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var H=3;break;default:H=g}var G=g;g=H;try{return B()}finally{g=G}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(B,H){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var G=g;g=B;try{return H()}finally{g=G}},e.unstable_scheduleCallback=function(B,H,G){var K=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?K+G:K):G=K,B){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=G+M,B={id:h++,callback:H,priorityLevel:B,startTime:G,expirationTime:M,sortIndex:-1},G>K?(B.sortIndex=G,t(u,B),n(d)===null&&B===n(u)&&(w?(k(T),T=-1):w=!0,W(L,G-K))):(B.sortIndex=M,t(d,B),b||y||(b=!0,E||(E=!0,D()))),B},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(B){var H=g;return function(){var G=g;g=H;try{return B.apply(this,arguments)}finally{g=G}}}})(tj)),tj}var JL;function Rte(){return JL||(JL=1,ej.exports=Pte()),ej.exports}var nj={exports:{}},$r={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var eO;function Ite(){if(eO)return $r;eO=1;var e=Mo();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(d,u,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:u,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return $r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$r.createPortal=function(d,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return s(d,u,null,h)},$r.flushSync=function(d){var u=o.T,h=r.p;try{if(o.T=null,r.p=2,d)return d()}finally{o.T=u,r.p=h,r.d.f()}}
vendor: 6,012 bytes, lines 33-41
33,$r.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(d,u))},$r.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},$r.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var h=u.as,p=l(h,u.crossOrigin),g=typeof u.integrity=="string"?u.integrity:void 0,y=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;h==="style"?r.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},$r.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var h=l(u.as,u.crossOrigin);r.d.M(d,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(d)},$r.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var h=u.as,p=l(h,u.crossOrigin);r.d.L(d,h,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},$r.preloadModule=function(d,u){if(typeof d=="string")if(u){var h=l(u.as,u.crossOrigin);r.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(d)},$r.requestFormReset=function(d){r.d.r(d)},$r.unstable_batchedUpdates=function(d,u){return d(u)},$r.useFormState=function(d,u,h){return o.H.useFormState(d,u,h)},$r.useFormStatus=function(){return o.H.useHostTransitionStatus()},$r.version="19.2.0",$r}var tO;function DF(){if(tO)return nj.exports;tO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),nj.exports=Ite(),nj.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var nO;function $te(){if(nO)return tp;nO=1;var e=Rte(),t=Mo(),n=DF();function r(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function s(c){var f=c,m=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(m=f.return),c=f.return;while(c)}return f.tag===3?m:null}function o(c){if(c.tag===13){var f=c.memoizedState;if(f===null&&(c=c.alternate,c!==null&&(f=c.memoizedState)),f!==null)return f.dehydrated}return null}function l(c){if(c.tag===31){var f=c.memoizedState;if(f===null&&(c=c.alternate,c!==null&&(f=c.memoizedState)),f!==null)return f.dehydrated}return null}function d(c){if(s(c)!==c)throw Error(r(188))}function u(c){var f=c.alternate;if(!f){if(f=s(c),f===null)throw Error(r(188));return f!==c?null:c}for(var m=c,x=f;;){var C=m.return;if(C===null)break;var A=C.alternate;if(A===null){if(x=C.return,x!==null){m=x;continue}break}if(C.child===A.child){for(A=C.child;A;){if(A===m)return d(C),c;if(A===x)return d(C),f;A=A.sibling}throw Error(r(188))}if(m.return!==x.return)m=C,x=A;else{for(var R=!1,Y=C.child;Y;){if(Y===m){R=!0,m=C,x=A;break}if(Y===x){R=!0,x=C,m=A;break}Y=Y.sibling}if(!R){for(Y=A.child;Y;){if(Y===m){R=!0,m=A,x=C;break}if(Y===x){R=!0,x=A,m=C;break}Y=Y.sibling}if(!R)throw Error(r(189))}}if(m.alternate!==x)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?c:f}function h(c){var f=c.tag;if(f===5||f===26||f===27||f===6)return c;for(c=c.child;c!==null;){if(f=h(c),f!==null)return f;c=c.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function D(c){return c===null||typeof c!="object"?null:(c=q&&c[q]||c["@@iterator"],typeof c=="function"?c:null)}var z=Symbol.for("react.client.reference");function V(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===z?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case w:return"Fragment";case S:return"Profiler";case j:return"StrictMode";case L:return"Suspense";case E:return"SuspenseList";case $:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case b:return"Portal";case N:return c.displayName||"Context";case k:return(c._context.displayName||"Context")+".Consumer";case _:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case T:return f=c.displayName||null,f!==null?f:V(c.type)||"Memo";case P:f=c._payload,c=c._init;try{return V(c(f))}catch{}}return null}var W=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pen
vendor: 4,223 bytes, lines 41-48
41ding:!1,data:null,method:null,action:null},K=[],M=-1;function I(c){return{current:c}}function X(c){0>M||(c.current=K[M],K[M]=null,M--)}function F(c,f){M++,K[M]=c.current,c.current=f}var U=I(null),Z=I(null),ee=I(null),ae=I(null);function ye(c,f){switch(F(ee,f),F(Z,c),F(U,null),f.nodeType){case 9:case 11:c=(c=f.documentElement)&&(c=c.namespaceURI)?gL(c):0;break;default:if(c=f.tagName,f=f.namespaceURI)f=gL(f),c=vL(f,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}X(U),F(U,c)}function J(){X(U),X(Z),X(ee)}function re(c){c.memoizedState!==null&&F(ae,c);var f=U.current,m=vL(f,c.type);f!==m&&(F(Z,c),F(U,m))}function ge(c){Z.current===c&&(X(U),X(Z)),ae.current===c&&(X(ae),Xh._currentValue=G)}var Q,Se;function je(c){if(Q===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Q=f&&f[1]||"",Se=-1<m.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Q+c+Se}var Ne=!1;function He(c,f){if(!c||Ne)return"";Ne=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(f){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(fe){var ce=fe}Reflect.construct(c,[],xe)}else{try{xe.call()}catch(fe){ce=fe}c.call(xe.prototype)}}else{try{throw Error()}catch(fe){ce=fe}(xe=c())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(fe){if(fe&&ce&&typeof fe.stack=="string")return[fe.stack,ce.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=x.DetermineComponentFrameRoot(),R=A[0],Y=A[1];if(R&&Y){var te=R.split(` 44`),le=Y.split(` 45`);for(C=x=0;x<te.length&&!te[x].includes("DetermineComponentFrameRoot");)x++;for(;C<le.length&&!le[C].includes("DetermineComponentFrameRoot");)C++;if(x===te.length||C===le.length)for(x=te.length-1,C=le.length-1;1<=x&&0<=C&&te[x]!==le[C];)C--;for(;1<=x&&0<=C;x--,C--)if(te[x]!==le[C]){if(x!==1||C!==1)do if(x--,C--,0>C||te[x]!==le[C]){var pe=` 46`+te[x].replace(" at new "," at ");return c.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",c.displayName)),pe}while(1<=x&&0<=C);break}}}finally{Ne=!1,Error.prepareStackTrace=m}return(m=c?c.displayName||c.name:"")?je(m):""}function ct(c,f){switch(c.tag){case 26:case 27:case 5:return je(c.type);case 16:return je("Lazy");case 13:return c.child!==f&&f!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return He(c.type,!1);case 11:return He(c.type.render,!1);case 1:return He(c.type,!0);case 31:return je("Activity");default:return""}}function xt(c){try{var f="",m=null;do f+=ct(c,m),m=c,c=c.return;while(c);return f}catch(x){return` 47Error generating stack: `+x.message+` 48`+x.stack}}var Ct=Object.prototype.hasOwnProperty,Be=e.unstable_scheduleCallback,qe=e.unstable_cancelCallback,Tt=e.unstable_shouldYield,Kn=e.unstable_requestPaint,Xt=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,he=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,Qe=e.unstable_LowPriority,lt=e.unstable_IdlePriority,Ut=e.log,$n=e.unstable_setDisableYieldValue,En=null,kt=null;function jt(c){if(typeof Ut=="function"&&$n(c),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(En,c)}catch{}}var at=Math.clz32?Math.clz32:Is,ur=Math.log,fn=Math.LN2;function Is(c){return c>>>=0,c===0?32:31-(ur(c)/fn|0)|0}var La=256,$s=262144,sn=4194304;function on(c){var f=c&42;if(f!==0)return f;switch(c&-c){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 c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;
vendor: 10,563 bytes, line 48
48case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function Bn(c,f,m){var x=c.pendingLanes;if(x===0)return 0;var C=0,A=c.suspendedLanes,R=c.pingedLanes;c=c.warmLanes;var Y=x&134217727;return Y!==0?(x=Y&~A,x!==0?C=on(x):(R&=Y,R!==0?C=on(R):m||(m=Y&~c,m!==0&&(C=on(m))))):(Y=x&~A,Y!==0?C=on(Y):R!==0?C=on(R):m||(m=x&~c,m!==0&&(C=on(m)))),C===0?0:f!==0&&f!==C&&(f&A)===0&&(A=C&-C,m=f&-f,A>=m||A===32&&(m&4194048)!==0)?f:C}function wr(c,f){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&f)===0}function Rr(c,f){switch(c){case 1:case 2:case 4:case 8:case 64:return f+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 f+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 _n(){var c=sn;return sn<<=1,(sn&62914560)===0&&(sn=4194304),c}function Ir(c){for(var f=[],m=0;31>m;m++)f.push(c);return f}function jr(c,f){c.pendingLanes|=f,f!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function hn(c,f,m,x,C,A){var R=c.pendingLanes;c.pendingLanes=m,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=m,c.entangledLanes&=m,c.errorRecoveryDisabledLanes&=m,c.shellSuspendCounter=0;var Y=c.entanglements,te=c.expirationTimes,le=c.hiddenUpdates;for(m=R&~m;0<m;){var pe=31-at(m),xe=1<<pe;Y[pe]=0,te[pe]=-1;var ce=le[pe];if(ce!==null)for(le[pe]=null,pe=0;pe<ce.length;pe++){var fe=ce[pe];fe!==null&&(fe.lane&=-536870913)}m&=~xe}x!==0&&Ti(c,x,0),A!==0&&C===0&&c.tag!==0&&(c.suspendedLanes|=A&~(R&~f))}function Ti(c,f,m){c.pendingLanes|=f,c.suspendedLanes&=~f;var x=31-at(f);c.entangledLanes|=f,c.entanglements[x]=c.entanglements[x]|1073741824|m&261930}function Zr(c,f){var m=c.entangledLanes|=f;for(c=c.entanglements;m;){var x=31-at(m),C=1<<x;C&f|c[x]&f&&(c[x]|=f),m&=~C}}function li(c,f){var m=f&-f;return m=(m&42)!==0?1:pn(m),(m&(c.suspendedLanes|f))!==0?0:m}function pn(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Li(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function Oi(){var c=H.p;return c!==0?c:(c=window.event,c===void 0?32:qL(c.type))}function rs(c,f){var m=H.p;try{return H.p=c,f()}finally{H.p=m}}var ci=Math.random().toString(36).slice(2),Xn="__reactFiber$"+ci,ui="__reactProps$"+ci,Ru="__reactContainer$"+ci,F1="__reactEvents$"+ci,xJ="__reactListeners$"+ci,bJ="__reactHandles$"+ci,rE="__reactResources$"+ci,dh="__reactMarker$"+ci;function z1(c){delete c[Xn],delete c[ui],delete c[F1],delete c[xJ],delete c[bJ]}function Iu(c){var f=c[Xn];if(f)return f;for(var m=c.parentNode;m;){if(f=m[Ru]||m[Xn]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(c=CL(c);c!==null;){if(m=c[Xn])return m;c=CL(c)}return f}c=m,m=c.parentNode}return null}function $u(c){if(c=c[Xn]||c[Ru]){var f=c.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return c}return null}function fh(c){var f=c.tag;if(f===5||f===26||f===27||f===6)return c.stateNode;throw Error(r(33))}function Bu(c){var f=c[rE];return f||(f=c[rE]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function dr(c){c[dh]=!0}var iE=new Set,aE={};function Ql(c,f){qu(c,f),qu(c+"Capture",f)}function qu(c,f){for(aE[c]=f,c=0;c<f.length;c++)iE.add(f[c])}var wJ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sE={},oE={};function jJ(c){return Ct.call(oE,c)?!0:Ct.call(sE,c)?!1:wJ.test(c)?oE[c]=!0:(sE[c]=!0,!1)}function Rg(c,f,m){if(jJ(f))if(m===null)c.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":c.removeAttribute(f);return;case"boolean":var x=f.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){c.removeAttribute(f);return}}c.setAttribute(f,""+m)}}function Ig(c,f,m){if(m===null)c.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(f);return}c.setAttribute(f,""+m)}}function Bs(c,f,m,x){if(x===null)c.removeAttribute(m);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(m);return}c.setAttributeNS(f,m,""+x)}}function ta(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function lE(c){var f=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function SJ(c,f,m){var x=Object.getOwnPropertyDescriptor(c.constructor.prototype,f);if(!c.hasOwnProperty(f)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var C=x.get,A=x.set;return Object.defineProperty(c,f,{configurable:!0,get:function(){return C.call(this)},set:function(R){m=""+R,A.call(this,R)}}),Object.defineProperty(c,f,{enumerable:x.enumerable}),{getValue:function(){return m},setValue:function(R){m=""+R},stopTracking:function(){c._valueTracker=null,delete c[f]}}}}function H1(c){if(!c._valueTracker){var f=lE(c)?"checked":"value";c._valueTracker=SJ(c,f,""+c[f])}}function cE(c){if(!c)return!1;var f=c._valueTracker;if(!f)return!0;var m=f.getValue(),x="";return c&&(x=lE(c)?c.checked?"true":"false":c.value),c=x,c!==m?(f.setValue(c),!0):!1}function $g(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var CJ=/[\n"\\]/g;function na(c){return c.replace(CJ,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function U1(c,f,m,x,C,A,R,Y){c.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?c.type=R:c.removeAttribute("type"),f!=null?R==="number"?(f===0&&c.value===""||c.value!=f)&&(c.value=""+ta(f)):c.value!==""+ta(f)&&(c.value=""+ta(f)):R!=="submit"&&R!=="reset"||c.removeAttribute("value"),f!=null?V1(c,R,ta(f)):m!=null?V1(c,R,ta(m)):x!=null&&c.removeAttribute("value"),C==null&&A!=null&&(c.defaultChecked=!!A),C!=null&&(c.checked=C&&typeof C!="function"&&typeof C!="symbol"),Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"?c.name=""+ta(Y):c.removeAttribute("name")}function uE(c,f,m,x,C,A,R,Y){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(c.type=A),f!=null||m!=null){if(!(A!=="submit"&&A!=="reset"||f!=null)){H1(c);return}m=m!=null?""+ta(m):"",f=f!=null?""+ta(f):m,Y||f===c.value||(c.value=f),c.defaultValue=f}x=x??C,x=typeof x!="function"&&typeof x!="symbol"&&!!x,c.checked=Y?c.checked:!!x,c.defaultChecked=!!x,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(c.name=R),H1(c)}function V1(c,f,m){f==="number"&&$g(c.ownerDocument)===c||c.defaultValue===""+m||(c.defaultValue=""+m)}function Fu(c,f,m,x){if(c=c.options,f){f={};for(var C=0;C<m.length;C++)f["$"+m[C]]=!0;for(m=0;m<c.length;m++)C=f.hasOwnProperty("$"+c[m].value),c[m].selected!==C&&(c[m].selected=C),C&&x&&(c[m].defaultSelected=!0)}else{for(m=""+ta(m),f=null,C=0;C<c.length;C++){if(c[C].value===m){c[C].selected=!0,x&&(c[C].defaultSelected=!0);return}f!==null||c[C].disabled||(f=c[C])}f!==null&&(f.selected=!0)}}function dE(c,f,m){if(f!=null&&(f=""+ta(f),f!==c.value&&(c.value=f),m==null)){c.defaultValue!==f&&(c.defaultValue=f);return}c.defaultValue=m!=null?""+ta(m):""}function fE(c,f,m,x){if(f==null){if(x!=null){if(m!=null)throw Error(r(92));if(W(x)){if(1<x.length)throw Error(r(93));x=x[0]}m=x}m==null&&(m=""),f=m}m=ta(f),c.defaultValue=m,x=c.textContent,x===m&&x!==""&&x!==null&&(c.value=x),H1(c)}function zu(c,f){if(f){var m=c.firstChild;if(m&&m===c.lastChild&&m.nodeType===3){m.nodeValue=f;return}}c.textContent=f}var kJ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hE(c,f,m){var x=f.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?x?c.setProperty(f,""):f==="float"?c.cssFloat="":c[f]="":x?c.setProperty(f,m):typeof m!="number"||m===0||kJ.has(f)?f==="float"?c.cssFloat=m:c[f]=(""+m).trim():c[f]=m+"px"}function pE(c,f,m){if(f!=null&&typeof f!="object")throw Error(r(62));if(c=c.style,m!=null){for(var x in m)!m.hasOwnProperty(x)||f!=null&&f.hasOwnProperty(x)||(x.indexOf("--")===0?c.setProperty(x,""):x==="float"?c.cssFloat="":c[x]="");for(var C in f)x=f[C],f.hasOwnProperty(C)&&m[C]!==x&&hE(c,C,x)}else for(var A in f)f.hasOwnProperty(A)&&hE(c,A,f[A])}function G1(c){if(c.indexOf("-")===-1)return!1;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var NJ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),AJ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bg(c){return AJ.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function qs(){}var W1=null;function Y1(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var Hu=null,Uu=null;function mE(c){var f=$u(c);if(f&&(c=f.stateNode)){var m=c[ui]||null;e:switch(c=f.stateNode,f.type){case"input":if(U1(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),f=m.name,m.type==="radio"&&f!=null){for(m=c;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+na(""+f)+'"][type="radio"]'),f=0;f<m.length;f++){var x=m[f];if(x!==c&&x.form===c.form){var C=x[ui]||null;if(!C)throw Error(r(90));U1(x,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(f=0;f<m.length;f++)x=m[f],x.form===c.form&&cE(x)}break e;case"textarea":dE(c,m.value,m.defaultValue);break e;case"select":f=m.value,f!=null&&Fu(c,!!m.multiple,f,!1)}}}var K1=!1;function gE(c,f,m){if(K1)return c(f,m);K1=!0;try{var x=c(f);return x}finally{if(K1=!1,(Hu!==null||Uu!==null)&&(Nv(),Hu&&(f=Hu,c=Uu,Uu=Hu=null,mE(f),c)))for(f=0;f<c.length;f++)mE(c[f])}}function hh(c,f){var m=c.stateNode;if(m===null)return null;var x=m[ui]||null;if(x===null)return null;m=x[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(c=c.type,x=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!x;break e;default:c=!1}if(c)return null;if(m&&typeof m!="function")throw Error(r(231,f,typeof m));return m}var Fs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),X1=!1;if(Fs)try{var ph={};Object.defineProperty(ph,"passive",{get:function(){X1=!0}}),window.addEventListener("test",ph,ph),window.removeEventListener("test",ph,ph)}catch{X1=!1}var Ho=null,Z1=null,qg=null;function vE(){if(qg)return qg;var c,f=Z1,m=f.length,x,C="value"in Ho?Ho.value:Ho.textContent,A=C.length;for(c=0;c<m&&f[c]===C[c];c++);var R=m-c;for(x=1;x<=R&&f[m-x]===C[A-x];x++);return qg=C.slice(c,1<x?1-x:void 0)}function Fg(c){var f=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&f===13&&(c=13)):c=f,c===10&&(c=13),32<=c||c===13?c:0}function zg(){return!0}function yE(){return!1}function di(c){function f(m,x,C,A,R){this._reactName=m,this._targetInst=C,this.type=x,this.nativeEvent=A,this.target=R,this.currentTarget=null;for(var Y in c)c.hasOwnProperty(Y)&&(m=c[Y],this[Y]=m?m(A):A[Y]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?zg:yE,this.isPropagationStopped=yE,this}return p(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=zg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=zg)},persist:function(){},isPersistent:zg}),f}var Jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hg=di(Jl),mh=p({},Jl,{view:0,detail:0}),EJ=di(mh),Q1,J1,gh,Ug=p({},mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tw,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==gh&&(gh&&c.type==="mousemove"?(Q1=c.screenX-gh.screenX,J1=c.screenY-gh.screenY):J1=Q1=0,gh=c),Q1)},movementY:function(c){return"movementY"in c?c.movementY:J1}}),xE=di(Ug),_J=p({},Ug,{dataTransfer:0}),TJ=di(_J),LJ=p({},mh,{relatedTarget:0}),ew=di(LJ),OJ=p({},Jl,{animationName:0,elapsedTime:0,pseudoElement:0}),MJ=di(OJ),DJ=p({},Jl,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),PJ=di(DJ),RJ=p({},Jl,{data:0}),bE=di(RJ),IJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$J={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},BJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qJ(c){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(c):(c=BJ[c])?!!f[c]:!1}function tw(){return qJ}var FJ=p({},mh,{key:function(c){if(c.key){var f=IJ[c.key]||c.key;if(f!=="Unidentified")return f}
vendor: 145,728 bytes, lines 48-49
48return c.type==="keypress"?(c=Fg(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?$J[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tw,charCode:function(c){return c.type==="keypress"?Fg(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Fg(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),zJ=di(FJ),HJ=p({},Ug,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wE=di(HJ),UJ=p({},mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tw}),VJ=di(UJ),GJ=p({},Jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),WJ=di(GJ),YJ=p({},Ug,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),KJ=di(YJ),XJ=p({},Jl,{newState:0,oldState:0}),ZJ=di(XJ),QJ=[9,13,27,32],nw=Fs&&"CompositionEvent"in window,vh=null;Fs&&"documentMode"in document&&(vh=document.documentMode);var JJ=Fs&&"TextEvent"in window&&!vh,jE=Fs&&(!nw||vh&&8<vh&&11>=vh),SE=" ",CE=!1;function kE(c,f){switch(c){case"keyup":return QJ.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NE(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Vu=!1;function eee(c,f){switch(c){case"compositionend":return NE(f);case"keypress":return f.which!==32?null:(CE=!0,SE);case"textInput":return c=f.data,c===SE&&CE?null:c;default:return null}}function tee(c,f){if(Vu)return c==="compositionend"||!nw&&kE(c,f)?(c=vE(),qg=Z1=Ho=null,Vu=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return jE&&f.locale!=="ko"?null:f.data;default:return null}}var nee={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function AE(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f==="input"?!!nee[c.type]:f==="textarea"}function EE(c,f,m,x){Hu?Uu?Uu.push(x):Uu=[x]:Hu=x,f=Mv(f,"onChange"),0<f.length&&(m=new Hg("onChange","change",null,m,x),c.push({event:m,listeners:f}))}var yh=null,xh=null;function ree(c){uL(c,0)}function Vg(c){var f=fh(c);if(cE(f))return c}function _E(c,f){if(c==="change")return f}var TE=!1;if(Fs){var rw;if(Fs){var iw="oninput"in document;if(!iw){var LE=document.createElement("div");LE.setAttribute("oninput","return;"),iw=typeof LE.oninput=="function"}rw=iw}else rw=!1;TE=rw&&(!document.documentMode||9<document.documentMode)}function OE(){yh&&(yh.detachEvent("onpropertychange",ME),xh=yh=null)}function ME(c){if(c.propertyName==="value"&&Vg(xh)){var f=[];EE(f,xh,c,Y1(c)),gE(ree,f)}}function iee(c,f,m){c==="focusin"?(OE(),yh=f,xh=m,yh.attachEvent("onpropertychange",ME)):c==="focusout"&&OE()}function aee(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Vg(xh)}function see(c,f){if(c==="click")return Vg(f)}function oee(c,f){if(c==="input"||c==="change")return Vg(f)}function lee(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var Mi=typeof Object.is=="function"?Object.is:lee;function bh(c,f){if(Mi(c,f))return!0;if(typeof c!="object"||c===null||typeof f!="object"||f===null)return!1;var m=Object.keys(c),x=Object.keys(f);if(m.length!==x.length)return!1;for(x=0;x<m.length;x++){var C=m[x];if(!Ct.call(f,C)||!Mi(c[C],f[C]))return!1}return!0}function DE(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function PE(c,f){var m=DE(c);c=0;for(var x;m;){if(m.nodeType===3){if(x=c+m.textContent.length,c<=f&&x>=f)return{node:m,offset:f-c};c=x}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=DE(m)}}function RE(c,f){return c&&f?c===f?!0:c&&c.nodeType===3?!1:f&&f.nodeType===3?RE(c,f.parentNode):"contains"in c?c.contains(f):c.compareDocumentPosition?!!(c.compareDocumentPosition(f)&16):!1:!1}function IE(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var f=$g(c.document);f instanceof c.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)c=f.contentWindow;else break;f=$g(c.document)}return f}function aw(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f&&(f==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||f==="textarea"||c.contentEditable==="true")}var cee=Fs&&"documentMode"in document&&11>=document.documentMode,Gu=null,sw=null,wh=null,ow=!1;function $E(c,f,m){var x=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ow||Gu==null||Gu!==$g(x)||(x=Gu,"selectionStart"in x&&aw(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),wh&&bh(wh,x)||(wh=x,x=Mv(sw,"onSelect"),0<x.length&&(f=new Hg("onSelect","select",null,f,m),c.push({event:f,listeners:x}),f.target=Gu)))}function ec(c,f){var m={};return m[c.toLowerCase()]=f.toLowerCase(),m["Webkit"+c]="webkit"+f,m["Moz"+c]="moz"+f,m}var Wu={animationend:ec("Animation","AnimationEnd"),animationiteration:ec("Animation","AnimationIteration"),animationstart:ec("Animation","AnimationStart"),transitionrun:ec("Transition","TransitionRun"),transitionstart:ec("Transition","TransitionStart"),transitioncancel:ec("Transition","TransitionCancel"),transitionend:ec("Transition","TransitionEnd")},lw={},BE={};Fs&&(BE=document.createElement("div").style,"AnimationEvent"in window||(delete Wu.animationend.animation,delete Wu.animationiteration.animation,delete Wu.animationstart.animation),"TransitionEvent"in window||delete Wu.transitionend.transition);function tc(c){if(lw[c])return lw[c];if(!Wu[c])return c;var f=Wu[c],m;for(m in f)if(f.hasOwnProperty(m)&&m in BE)return lw[c]=f[m];return c}var qE=tc("animationend"),FE=tc("animationiteration"),zE=tc("animationstart"),uee=tc("transitionrun"),dee=tc("transitionstart"),fee=tc("transitioncancel"),HE=tc("transitionend"),UE=new Map,cw="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cw.push("scrollEnd");function Oa(c,f){UE.set(c,f),Ql(f,[c])}var Gg=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},ra=[],Yu=0,uw=0;function Wg(){for(var c=Yu,f=uw=Yu=0;f<c;){var m=ra[f];ra[f++]=null;var x=ra[f];ra[f++]=null;var C=ra[f];ra[f++]=null;var A=ra[f];if(ra[f++]=null,x!==null&&C!==null){var R=x.pending;R===null?C.next=C:(C.next=R.next,R.next=C),x.pending=C}A!==0&&VE(m,C,A)}}function Yg(c,f,m,x){ra[Yu++]=c,ra[Yu++]=f,ra[Yu++]=m,ra[Yu++]=x,uw|=x,c.lanes|=x,c=c.alternate,c!==null&&(c.lanes|=x)}function dw(c,f,m,x){return Yg(c,f,m,x),Kg(c)}function nc(c,f){return Yg(c,null,null,f),Kg(c)}function VE(c,f,m){c.lanes|=m;var x=c.alternate;x!==null&&(x.lanes|=m);for(var C=!1,A=c.return;A!==null;)A.childLanes|=m,x=A.alternate,x!==null&&(x.childLanes|=m),A.tag===22&&(c=A.stateNode,c===null||c._visibility&1||(C=!0)),c=A,A=A.return;return c.tag===3?(A=c.stateNode,C&&f!==null&&(C=31-at(m),c=A.hiddenUpdates,x=c[C],x===null?c[C]=[f]:x.push(f),f.lane=m|536870912),A):null}function Kg(c){if(50<Hh)throw Hh=0,b2=null,Error(r(185));for(var f=c.return;f!==null;)c=f,f=c.return;return c.tag===3?c.stateNode:null}var Ku={};function hee(c,f,m,x){this.tag=c,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(c,f,m,x){return new hee(c,f,m,x)}function fw(c){return c=c.prototype,!(!c||!c.isReactComponent)}function zs(c,f){var m=c.alternate;return m===null?(m=Di(c.tag,f,c.key,c.mode),m.elementType=c.elementType,m.type=c.type,m.stateNode=c.stateNode,m.alternate=c,c.alternate=m):(m.pendingProps=f,m.type=c.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=c.flags&65011712,m.childLanes=c.childLanes,m.lanes=c.lanes,m.child=c.child,m.memoizedProps=c.memoizedProps,m.memoizedState=c.memoizedState,m.updateQueue=c.updateQueue,f=c.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=c.sibling,m.index=c.index,m.ref=c.ref,m.refCleanup=c.refCleanup,m}function GE(c,f){c.flags&=65011714;var m=c.alternate;return m===null?(c.childLanes=0,c.lanes=f,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=m.childLanes,c.lanes=m.lanes,c.child=m.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=m.memoizedProps,c.memoizedState=m.memoizedState,c.updateQueue=m.updateQueue,c.type=m.type,f=m.dependencies,c.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),c}function Xg(c,f,m,x,C,A){var R=0;if(x=c,typeof c=="function")fw(c)&&(R=1);else if(typeof c=="string")R=yte(c,m,U.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(c){case $:return c=Di(31,m,f,C),c.elementType=$,c.lanes=A,c;case w:return rc(m.children,C,A,f);case j:R=8,C|=24;break;case S:return c=Di(12,m,f,C|2),c.elementType=S,c.lanes=A,c;case L:return c=Di(13,m,f,C),c.elementType=L,c.lanes=A,c;case E:return c=Di(19,m,f,C),c.elementType=E,c.lanes=A,c;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case N:R=10;break e;case k:R=9;break e;case _:R=11;break e;case T:R=14;break e;case P:R=16,x=null;break e}R=29,m=Error(r(130,c===null?"null":typeof c,"")),x=null}return f=Di(R,m,f,C),f.elementType=c,f.type=x,f.lanes=A,f}function rc(c,f,m,x){return c=Di(7,c,x,f),c.lanes=m,c}function hw(c,f,m){return c=Di(6,c,null,f),c.lanes=m,c}function WE(c){var f=Di(18,null,null,0);return f.stateNode=c,f}function pw(c,f,m){return f=Di(4,c.children!==null?c.children:[],c.key,f),f.lanes=m,f.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},f}var YE=new WeakMap;function ia(c,f){if(typeof c=="object"&&c!==null){var m=YE.get(c);return m!==void 0?m:(f={value:c,source:f,stack:xt(f)},YE.set(c,f),f)}return{value:c,source:f,stack:xt(f)}}var Xu=[],Zu=0,Zg=null,jh=0,aa=[],sa=0,Uo=null,is=1,as="";function Hs(c,f){Xu[Zu++]=jh,Xu[Zu++]=Zg,Zg=c,jh=f}function KE(c,f,m){aa[sa++]=is,aa[sa++]=as,aa[sa++]=Uo,Uo=c;var x=is;c=as;var C=32-at(x)-1;x&=~(1<<C),m+=1;var A=32-at(f)+C;if(30<A){var R=C-C%5;A=(x&(1<<R)-1).toString(32),x>>=R,C-=R,is=1<<32-at(f)+C|m<<C|x,as=A+c}else is=1<<A|m<<C|x,as=c}function mw(c){c.return!==null&&(Hs(c,1),KE(c,1,0))}function gw(c){for(;c===Zg;)Zg=Xu[--Zu],Xu[Zu]=null,jh=Xu[--Zu],Xu[Zu]=null;for(;c===Uo;)Uo=aa[--sa],aa[sa]=null,as=aa[--sa],aa[sa]=null,is=aa[--sa],aa[sa]=null}function XE(c,f){aa[sa++]=is,aa[sa++]=as,aa[sa++]=Uo,is=f.id,as=f.overflow,Uo=c}var Sr=null,Zt=null,bt=!1,Vo=null,oa=!1,vw=Error(r(519));function Go(c){var f=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sh(ia(f,c)),vw}function ZE(c){var f=c.stateNode,m=c.type,x=c.memoizedProps;switch(f[Xn]=c,f[ui]=x,m){case"dialog":dt("cancel",f),dt("close",f);break;case"iframe":case"object":case"embed":dt("load",f);break;case"video":case"audio":for(m=0;m<Vh.length;m++)dt(Vh[m],f);break;case"source":dt("error",f);break;case"img":case"image":case"link":dt("error",f),dt("load",f);break;case"details":dt("toggle",f);break;case"input":dt("invalid",f),uE(f,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":dt("invalid",f);break;case"textarea":dt("invalid",f),fE(f,x.value,x.defaultValue,x.children)}m=x.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||f.textContent===""+m||x.suppressHydrationWarning===!0||pL(f.textContent,m)?(x.popover!=null&&(dt("beforetoggle",f),dt("toggle",f)),x.onScroll!=null&&dt("scroll",f),x.onScrollEnd!=null&&dt("scrollend",f),x.onClick!=null&&(f.onclick=qs),f=!0):f=!1,f||Go(c,!0)}function QE(c){for(Sr=c.return;Sr;)switch(Sr.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:Sr=Sr.return}}function Qu(c){if(c!==Sr)return!1;if(!bt)return QE(c),bt=!0,!1;var f=c.tag,m;if((m=f!==3&&f!==27)&&((m=f===5)&&(m=c.type,m=!(m!=="form"&&m!=="button")||P2(c.type,c.memoizedProps)),m=!m),m&&Zt&&Go(c),QE(c),f===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));Zt=SL(c)}else if(f===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));Zt=SL(c)}else f===27?(f=Zt,sl(c.type)?(c=q2,q2=null,Zt=c):Zt=f):Zt=Sr?ca(c.stateNode.nextSibling):null;return!0}function ic(){Zt=Sr=null,bt=!1}function yw(){var c=Vo;return c!==null&&(mi===null?mi=c:mi.push.apply(mi,c),Vo=null),c}function Sh(c){Vo===null?Vo=[c]:Vo.push(c)}var xw=I(null),ac=null,Us=null;function Wo(c,f,m){F(xw,f._currentValue),f._currentValue=m}function Vs(c){c._currentValue=xw.current,X(xw)}function bw(c,f,m){for(;c!==null;){var x=c.alternate;if((c.childLanes&f)!==f?(c.childLanes|=f,x!==null&&(x.childLanes|=f)):x!==null&&(x.childLanes&f)!==f&&(x.childLanes|=f),c===m)break;c=c.return}}function ww(c,f,m,x){var C=c.child;for(C!==null&&(C.return=c);C!==null;){var A=C.dependencies;if(A!==null){var R=C.child;A=A.firstContext;e:for(;A!==null;){var Y=A;A=C;for(var te=0;te<f.length;te++)if(Y.context===f[te]){A.lanes|=m,Y=A.alternate,Y!==null&&(Y.lanes|=m),bw(A.return,m,c),x||(R=null);break e}A=Y.next}}else if(C.tag===18){if(R=C.return,R===null)throw Error(r(341));R.lanes|=m,A=R.alternate,A!==null&&(A.lanes|=m),bw(R,m,c),R=null}else R=C.child;if(R!==null)R.return=C;else for(R=C;R!==null;){if(R===c){R=null;break}if(C=R.sibling,C!==null){C.return=R.return,R=C;break}R=R.return}C=R}}function Ju(c,f,m,x){c=null;for(var C=f,A=!1;C!==null;){if(!A){if((C.flags&524288)!==0)A=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var R=C.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var Y=C.type;Mi(C.pendingProps.value,R.value)||(c!==null?c.push(Y):c=[Y])}}else if(C===ae.current){if(R=C.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(c!==null?c.push(Xh):c=[Xh])}C=C.return}c!==null&&ww(f,c,m,x),f.flags|=262144}function Qg(c){for(c=c.firstContext;c!==null;){if(!Mi(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function sc(c){ac=c,Us=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function Cr(c){return JE(ac,c)}function Jg(c,f){return ac===null&&sc(c),JE(c,f)}function JE(c,f){var m=f._currentValue;if(f={context:f,memoizedValue:m,next:null},Us===null){if(c===null)throw Error(r(308));Us=f,c.dependencies={lanes:0,firstContext:f},c.flags|=524288}else Us=Us.next=f;return m}var pee=typeof AbortController<"u"?AbortController:function(){var c=[],f=this.signal={aborted:!1,addEventListener:function(m,x){c.push(x)}};this.abort=function(){f.aborted=!0,c.forEach(function(m){return m()})}},mee=e.unstable_scheduleCallback,gee=e.unstable_NormalPriority,qn={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jw(){return{controller:new pee,data:new Map,refCount:0}}function Ch(c){c.refCount--,c.refCount===0&&mee(gee,function(){c.controller.abort()})}var kh=null,Sw=0,ed=0,td=null;function vee(c,f){if(kh===null){var m=kh=[];Sw=0,ed=N2(),td={status:"pending",value:void 0,then:function(x){m.push(x)}}}return Sw++,f.then(e_,e_),f}function e_(){if(--Sw===0&&kh!==null){td!==null&&(td.status="fulfilled");var c=kh;kh=null,ed=0,td=null;for(var f=0;f<c.length;f++)(0,c[f])()}}function yee(c,f){var m=[],x={status:"pending",value:null,reason:null,then:function(C){m.push(C)}};return c.then(function(){x.status="fulfilled",x.value=f;for(var C=0;C<m.length;C++)(0,m[C])(f)},function(C){for(x.status="rejected",x.reason=C,C=0;C<m.length;C++)(0,m[C])(void 0)}),x}var t_=B.S;B.S=function(c,f){$T=Xt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&vee(c,f),t_!==null&&t_(c,f)};var oc=I(null);function Cw(){var c=oc.current;return c!==null?c:Vt.pooledCache}function ev(c,f){f===null?F(oc,oc.current):F(oc,f.pool)}function n_(){var c=Cw();return c===null?null:{parent:qn._currentValue,pool:c}}var nd=Error(r(460)),kw=Error(r(474)),tv=Error(r(542)),nv={then:function(){}};function r_(c){return c=c.status,c==="fulfilled"||c==="rejected"}function i_(c,f,m){switch(m=c[m],m===void 0?c.push(f):m!==f&&(f.then(qs,qs),f=m),f.status){case"fulfilled":return f.value;case"rejected":throw c=f.reason,s_(c),c;default:if(typeof f.status=="string")f.then(qs,qs);else{if(c=Vt,c!==null&&100<c.shellSuspendCounter)throw Error(r(482));c=f,c.status="pending",c.then(function(x){if(f.status==="pending"){var C=f;C.status="fulfilled",C.value=x}},function(x){if(f.status==="pending"){var C=f;C.status="rejected",C.reason=x}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw c=f.reason,s_(c),c}throw cc=f,nd}}function lc(c){try{var f=c._init;return f(c._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(cc=m,nd):m}}var cc=null;function a_(){if(cc===null)throw Error(r(459));var c=cc;return cc=null,c}function s_(c){if(c===nd||c===tv)throw Error(r(483))}var rd=null,Nh=0;function rv(c){var f=Nh;return Nh+=1,rd===null&&(rd=[]),i_(rd,c,f)}function Ah(c,f){f=f.props.ref,c.ref=f!==void 0?f:null}function iv(c,f){throw f.$$typeof===g?Error(r(525)):(c=Object.prototype.toString.call(f),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":c)))}function o_(c){function f(se,ne){if(c){var oe=se.deletions;oe===null?(se.deletions=[ne],se.flags|=16):oe.push(ne)}}function m(se,ne){if(!c)return null;for(;ne!==null;)f(se,ne),ne=ne.sibling;return null}function x(se){for(var ne=new Map;se!==null;)se.key!==null?ne.set(se.key,se):ne.set(se.index,se),se=se.sibling;return ne}function C(se,ne){return se=zs(se,ne),se.index=0,se.sibling=null,se}function A(se,ne,oe){return se.index=oe,c?(oe=se.alternate,oe!==null?(oe=oe.index,oe<ne?(se.flags|=67108866,ne):oe):(se.flags|=67108866,ne)):(se.flags|=1048576,ne)}function R(se){return c&&se.alternate===null&&(se.flags|=67108866),se}function Y(se,ne,oe,ve){return ne===null||ne.tag!==6?(ne=hw(oe,se.mode,ve),ne.return=se,ne):(ne=C(ne,oe),ne.return=se,ne)}function te(se,ne,oe,ve){var Ue=oe.type;return Ue===w?pe(se,ne,oe.props.children,ve,oe.key):ne!==null&&(ne.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===P&&lc(Ue)===ne.type)?(ne=C(ne,oe.props),Ah(ne,oe),ne.return=se,ne):(ne=Xg(oe.type,oe.key,oe.props,null,se.mode,ve),Ah(ne,oe),ne.return=se,ne)}function le(se,ne,oe,ve){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==oe.containerInfo||ne.stateNode.implementation!==oe.implementation?(ne=pw(oe,se.mode,ve),ne.return=se,ne):(ne=C(ne,oe.children||[]),ne.return=se,ne)}function pe(se,ne,oe,ve,Ue){return ne===null||ne.tag!==7?(ne=rc(oe,se.mode,ve,Ue),ne.return=se,ne):(ne=C(ne,oe),ne.return=se,ne)}function xe(se,ne,oe){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=hw(""+ne,se.mode,oe),ne.return=se,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case y:return oe=Xg(ne.type,ne.key,ne.props,null,se.mode,oe),Ah(oe,ne),oe.return=se,oe;case b:return ne=pw(ne,se.mode,oe),ne.return=se,ne;case P:return ne=lc(ne),xe(se,ne,oe)}if(W(ne)||D(ne))return ne=rc(ne,se.mode,oe,null),ne.return=se,ne;if(typeof ne.then=="function")return xe(se,rv(ne),oe);if(ne.$$typeof===N)return xe(se,Jg(se,ne),oe);iv(se,ne)}return null}function ce(se,ne,oe,ve){var Ue=ne!==null?ne.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Ue!==null?null:Y(se,ne,""+oe,ve);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case y:return oe.key===Ue?te(se,ne,oe,ve):null;case b:return oe.key===Ue?le(se,ne,oe,ve):null;case P:return oe=lc(oe),ce(se,ne,oe,ve)}if(W(oe)||D(oe))return Ue!==null?null:pe(se,ne,oe,ve,null);if(typeof oe.then=="function")return ce(se,ne,rv(oe),ve);if(oe.$$typeof===N)return ce(se,ne,Jg(se,oe),ve);iv(se,oe)}return null}function fe(se,ne,oe,ve,Ue){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return se=se.get(oe)||null,Y(ne,se,""+ve,Ue);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case y:return se=se.get(ve.key===null?oe:ve.key)||null,te(ne,se,ve,Ue);case b:return se=se.get(ve.key===null?oe:ve.key)||null,le(ne,se,ve,Ue);case P:return ve=lc(ve),fe(se,ne,oe,ve,Ue)}if(W(ve)||D(ve))return se=se.get(oe)||null,pe(ne,se,ve,Ue,null);if(typeof ve.then=="function")return fe(se,ne,oe,rv(ve),Ue);if(ve.$$typeof===N)return fe(se,ne,oe,Jg(ne,ve),Ue);iv(ne,ve)}return null}function $e(se,ne,oe,ve){for(var Ue=null,Nt=null,Fe=ne,st=ne=0,gt=null;Fe!==null&&st<oe.length;st++){Fe.index>st?(gt=Fe,Fe=null):gt=Fe.sibling;var At=ce(se,Fe,oe[st],ve);if(At===null){Fe===null&&(Fe=gt);break}c&&Fe&&At.alternate===null&&f(se,Fe),ne=A(At,ne,st),Nt===null?Ue=At:Nt.sibling=At,Nt=At,Fe=gt}if(st===oe.length)return m(se,Fe),bt&&Hs(se,st),Ue;if(Fe===null){for(;st<oe.length;st++)Fe=xe(se,oe[st],ve),Fe!==null&&(ne=A(Fe,ne,st),Nt===null?Ue=Fe:Nt.sibling=Fe,Nt=Fe);return bt&&Hs(se,st),Ue}for(Fe=x(Fe);st<oe.length;st++)gt=fe(Fe,se,st,oe[st],ve),gt!==null&&(c&>.alternate!==null&&Fe.delete(gt.key===null?st:gt.key),ne=A(gt,ne,st),Nt===null?Ue=gt:Nt.sibling=gt,Nt=gt);return c&&Fe.forEach(function(dl){return f(se,dl)}),bt&&Hs(se,st),Ue}function We(se,ne,oe,ve){if(oe==null)throw Error(r(151));for(var Ue=null,Nt=null,Fe=ne,st=ne=0,gt=null,At=oe.next();Fe!==null&&!At.done;st++,At=oe.next()){Fe.index>st?(gt=Fe,Fe=null):gt=Fe.sibling;var dl=ce(se,Fe,At.value,ve);if(dl===null){Fe===null&&(Fe=gt);break}c&&Fe&&dl.alternate===null&&f(se,Fe),ne=A(dl,ne,st),Nt===null?Ue=dl:Nt.sibling=dl,Nt=dl,Fe=gt}if(At.done)return m(se,Fe),bt&&Hs(se,st),Ue;if(Fe===null){for(;!At.done;st++,At=oe.next())At=xe(se,At.value,ve),At!==null&&(ne=A(At,ne,st),Nt===null?Ue=At:Nt.sibling=At,Nt=At);return bt&&Hs(se,st),Ue}for(Fe=x(Fe);!At.done;st++,At=oe.next())At=fe(Fe,se,st,At.value,ve),At!==null&&(c&&At.alternate!==null&&Fe.delete(At.key===null?st:At.key),ne=A(At,ne,st),Nt===null?Ue=At:Nt.sibling=At,Nt=At);return c&&Fe.forEach(function(_te){return f(se,_te)}),bt&&Hs(se,st),Ue}function qt(se,ne,oe,ve){if(typeof oe=="object"&&oe!==null&&oe.type===w&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case y:e:{for(var Ue=oe.key;ne!==null;){if(ne.key===Ue){if(Ue=oe.type,Ue===w){if(ne.tag===7){m(se,ne.sibling),ve=C(ne,oe.props.children),ve.return=se,se=ve;break e}}else if(ne.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===P&&lc(Ue)===ne.type){m(se,ne.sibling),ve=C(ne,oe.props),Ah(ve,oe),ve.return=se,se=ve;break e}m(se,ne);break}else f(se,ne);ne=ne.sibling}oe.type===w?(ve=rc(oe.props.children,se.mode,ve,oe.key),ve.return=se,se=ve):(ve=Xg(oe.type,oe.key,oe.props,null,se.mode,ve),Ah(ve,oe),ve.return=se,se=ve)}return R(se);case b:e:{for(Ue=oe.key;ne!==null;){if(ne.key===Ue)if(ne.tag===4&&ne.stateNode.containerInfo===oe.containerInfo&&ne.stateNode.implementation===oe.implementation){m(se,ne.sibling),ve=C(ne,oe.children||[]),ve.return=se,se=ve;break e}else{m(se,ne);break}else f(se,ne);ne=ne.sibling}ve=pw(oe,se.mode,ve),ve.return=se,se=ve}return R(se);case P:return oe=lc(oe),qt(se,ne,oe,ve)}if(W(oe))return $e(se,ne,oe,ve);if(D(oe)){if(Ue=D(oe),typeof Ue!="function")throw Error(r(150));return oe=Ue.call(oe),We(se,ne,oe,ve)}if(typeof oe.then=="function")return qt(se,ne,rv(oe),ve);if(oe.$$typeof===N)return qt(se,ne,Jg(se,oe),ve);iv(se,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,ne!==null&&ne.tag===6?(m(se,ne.sibling),ve=C(ne,oe),ve.return=se,se=ve):(m(se,ne),ve=hw(oe,se.mode,ve),ve.return=se,se=ve),R(se)):m(se,ne)}return function(se,ne,oe,ve){try{Nh=0;var Ue=qt(se,ne,oe,ve);return rd=null,Ue}catch(Fe){if(Fe===nd||Fe===tv)throw Fe;var Nt=Di(29,Fe,null,se.mode);return Nt.lanes=ve,Nt.return=se,Nt}finally{}}}var uc=o_(!0),l_=o_(!1),Yo=!1;function Nw(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Aw(c,f){c=c.updateQueue,f.updateQueue===c&&(f.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function Ko(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function Xo(c,f,m){var x=c.updateQueue;if(x===null)return null;if(x=x.shared,(Lt&2)!==0){var C=x.pending;return C===null?f.next=f:(f.next=C.next,C.next=f),x.pending=f,f=Kg(c),VE(c,null,m),f}return Yg(c,x,f,m),Kg(c)}function Eh(c,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194048)!==0)){var x=f.lanes;x&=c.pendingLanes,m|=x,f.lanes=m,Zr(c,m)}}function Ew(c,f){var m=c.updateQueue,x=c.alternate;if(x!==null&&(x=x.updateQueue,m===x)){var C=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var R={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};A===null?C=A=R:A=A.next=R,m=m.next}while(m!==null);A===null?C=A=f:A=A.next=f}else C=A=f;m={baseState:x.baseState,firstBaseUpdate:C,lastBaseUpdate:A,shared:x.shared,callbacks:x.callbacks},c.updateQueue=m;return}c=m.lastBaseUpdate,c===null?m.firstBaseUpdate=f:c.next=f,m.lastBaseUpdate=f}var _w=!1;function _h(){if(_w){var c=td;if(c!==null)throw c}}function Th(c,f,m,x){_w=!1;var C=c.updateQueue;Yo=!1;var A=C.firstBaseUpdate,R=C.lastBaseUpdate,Y=C.shared.pending;if(Y!==null){C.shared.pending=null;var te=Y,le=te.next;te.next=null,R===null?A=le:R.next=le,R=te;var pe=c.alternate;pe!==null&&(pe=pe.updateQueue,Y=pe.lastBaseUpdate,Y!==R&&(Y===null?pe.firstBaseUpdate=le:Y.next=le,pe.lastBaseUpdate=te))}if(A!==null){var xe=C.baseState;R=0,pe=le=te=null,Y=A;do{var ce=Y.lane&-536870913,fe=ce!==Y.lane;if(fe?(mt&ce)===ce:(x&ce)===ce){ce!==0&&ce===ed&&(_w=!0),pe!==null&&(pe=pe.next={lane:0,tag:Y.tag,payload:Y.payload,callback:null,next:null});e:{var $e=c,We=Y;ce=f;var qt=m;switch(We.tag){case 1:if($e=We.payload,typeof $e=="function"){xe=$e.call(qt,xe,ce);break e}xe=$e;break e;case 3:$e.flags=$e.flags&-65537|128;case 0:if($e=We.payload,ce=typeof $e=="function"?$e.call(qt,xe,ce):$e,ce==null)break e;xe=p({},xe,ce);break e;case 2:Yo=!0}}ce=Y.callback,ce!==null&&(c.flags|=64,fe&&(c.flags|=8192),fe=C.callbacks,fe===null?C.callbacks=[ce]:fe.push(ce))}else fe={lane:ce,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},pe===null?(le=pe=fe,te=xe):pe=pe.next=fe,R|=ce;if(Y=Y.next,Y===null){if(Y=C.shared.pending,Y===null)break;fe=Y,Y=fe.next,fe.next=null,C.lastBaseUpdate=fe,C.shared.pending=null}}while(!0);pe===null&&(te=xe),C.baseState=te,C.firstBaseUpdate=le,C.lastBaseUpdate=pe,A===null&&(C.shared.lanes=0),tl|=R,c.lanes=R,c.memoizedState=xe}}function c_(c,f){if(typeof c!="function")throw Error(r(191,c));c.call(f)}function u_(c,f){var m=c.callbacks;if(m!==null)for(c.callbacks=null,c=0;c<m.length;c++)c_(m[c],f)}var id=I(null),av=I(0);function d_(c,f){c=eo,F(av,c),F(id,f),eo=c|f.baseLanes}function Tw(){F(av,eo),F(id,id.current)}function Lw(){eo=av.current,X(id),X(av)}var Pi=I(null),la=null;function Zo(c){var f=c.alternate;F(Tn,Tn.current&1),F(Pi,c),la===null&&(f===null||id.current!==null||f.memoizedState!==null)&&(la=c)}function Ow(c){F(Tn,Tn.current),F(Pi,c),la===null&&(la=c)}function f_(c){c.tag===22?(F(Tn,Tn.current),F(Pi,c),la===null&&(la=c)):Qo()}function Qo(){F(Tn,Tn.current),F(Pi,Pi.current)}function Ri(c){X(Pi),la===c&&(la=null),X(Tn)}var Tn=I(0);function sv(c){for(var f=c;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||$2(m)||B2(m)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var Gs=0,rt=null,$t=null,Fn=null,ov=!1,ad=!1,dc=!1,lv=0,Lh=0,sd=null,xee=0;function xn(){throw Error(r(321))}function Mw(c,f){if(f===null)return!1;for(var m=0;m<f.length&&m<c.length;m++)if(!Mi(c[m],f[m]))return!1;return!0}function Dw(c,f,m,x,C,A){return Gs=A,rt=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,B.H=c===null||c.memoizedState===null?K_:Kw,dc=!1,A=m(x,C),dc=!1,ad&&(A=p_(f,m,x,C)),h_(c),A}function h_(c){B.H=Dh;var f=$t!==null&&$t.next!==null;if(Gs=0,Fn=$t=rt=null,ov=!1,Lh=0,sd=null,f)throw Error(r(300));c===null||zn||(c=c.dependencies,c!==null&&Qg(c)&&(zn=!0))}function p_(c,f,m,x){rt=c;var C=0;do{if(ad&&(sd=null),Lh=0,ad=!1,25<=C)throw Error(r(301));if(C+=1,Fn=$t=null,c.updateQueue!=null){var A=c.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}B.H=X_,A=f(m,x)}while(ad);return A}function bee(){var c=B.H,f=c.useState()[0];return f=typeof f.then=="function"?Oh(f):f,c=c.useState()[0],($t!==null?$t.memoizedState:null)!==c&&(rt.flags|=1024),f}function Pw(){var c=lv!==0;return lv=0,c}function Rw(c,f,m){f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~m}function Iw(c){if(ov){for(c=c.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}ov=!1}Gs=0,Fn=$t=rt=null,ad=!1,Lh=lv=0,sd=null}function Qr(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fn===null?rt.memoizedState=Fn=c:Fn=Fn.next=c,Fn}function Ln(){if($t===null){var c=rt.alternate;c=c!==null?c.memoizedState:null}else c=$t.next;var f=Fn===null?rt.memoizedState:Fn.next;if(f!==null)Fn=f,$t=c;else{if(c===null)throw rt.alternate===null?Error(r(467)):Error(r(310));$t=c,c={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},Fn===null?rt.memoizedState=Fn=c:Fn=Fn.next=c}return Fn}function cv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oh(c){var f=Lh;return Lh+=1,sd===null&&(sd=[]),c=i_(sd,c,f),f=rt,(Fn===null?f.memoizedState:Fn.next)===null&&(f=f.alternate,B.H=f===null||f.memoizedState===null?K_:Kw),c}function uv(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return Oh(c);if(c.$$typeof===N)return Cr(c)}throw Error(r(438,String(c)))}function $w(c){var f=null,m=rt.updateQueue;if(m!==null&&(f=m.memoCache),f==null){var x=rt.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(f={data:x.data.map(function(C){return C.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),m===null&&(m=cv(),rt.updateQueue=m),m.memoCache=f,m=f.data[f.index],m===void 0)for(m=f.data[f.index]=Array(c),x=0;x<c;x++)m[x]=O;return f.index++,m}function Ws(c,f){return typeof f=="function"?f(c):f}function dv(c){var f=Ln();return Bw(f,$t,c)}function Bw(c,f,m){var x=c.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=m;var C=c.baseQueue,A=x.pending;if(A!==null){if(C!==null){var R=C.next;C.next=A.next,A.next=R}f.baseQueue=C=A,x.pending=null}if(A=c.baseState,C===null)c.memoizedState=A;else{f=C.next;var Y=R=null,te=null,le=f,pe=!1;do{var xe=le.lane&-536870913;if(xe!==le.lane?(mt&xe)===xe:(Gs&xe)===xe){var ce=le.revertLane;if(ce===0)te!==null&&(te=te.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),xe===ed&&(pe=!0);else if((Gs&ce)===ce){le=le.next,ce===ed&&(pe=!0);continue}else xe={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},te===null?(Y=te=xe,R=A):te=te.next=xe,rt.lanes|=ce,tl|=ce;xe=le.action,dc&&m(A,xe),A=le.hasEagerState?le.eagerState:m(A,xe)}else ce={lane:xe,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},te===null?(Y=te=ce,R=A):te=te.next=ce,rt.lanes|=xe,tl|=xe;le=le.next}while(le!==null&&le!==f);if(te===null?R=A:te.next=Y,!Mi(A,c.memoizedState)&&(zn=!0,pe&&(m=td,m!==null)))throw m;c.memoizedState=A,c.baseState=R,c.baseQueue=te,x.lastRenderedState=A}return C===null&&(x.lanes=0),[c.memoizedState,x.dispatch]}function qw(c){var f=Ln(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=c;var x=m.dispatch,C=m.pending,A=f.memoizedState;if(C!==null){m.pending=null;var R=C=C.next;do A=c(A,R.action),R=R.next;while(R!==C);Mi(A,f.memoizedState)||(zn=!0),f.memoizedState=A,f.baseQueue===null&&(f.baseState=A),m.lastRenderedState=A}return[A,x]}function m_(c,f,m){var x=rt,C=Ln(),A=bt;if(A){if(m===void 0)throw Error(r(407));m=m()}else m=f();var R=!Mi(($t||C).memoizedState,m);if(R&&(C.memoizedState=m,zn=!0),C=C.queue,Hw(y_.bind(null,x,C,c),[c]),C.getSnapshot!==f||R||Fn!==null&&Fn.memoizedState.tag&1){if(x.flags|=2048,od(9,{destroy:void 0},v_.bind(null,x,C,m,f),null),Vt===null)throw Error(r(349));A||(Gs&127)!==0||g_(x,f,m)}return m}function g_(c,f,m){c.flags|=16384,c={getSnapshot:f,value:m},f=rt.updateQueue,f===null?(f=cv(),rt.updateQueue=f,f.stores=[c]):(m=f.stores,m===null?f.stores=[c]:m.push(c))}function v_(c,f,m,x){f.value=m,f.getSnapshot=x,x_(f)&&b_(c)}function y_(c,f,m){return m(function(){x_(f)&&b_(c)})}function x_(c){var f=c.getSnapshot;c=c.value;try{var m=f();return!Mi(c,m)}catch{return!0}}function b_(c){var f=nc(c,2);f!==null&&gi(f,c,2)}function Fw(c){var f=Qr();if(typeof c=="function"){var m=c;if(c=m(),dc){jt(!0);try{m()}finally{jt(!1)}}}return f.memoizedState=f.baseState=c,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:c},f}function w_(c,f,m,x){return c.baseState=m,Bw(c,$t,typeof x=="function"?x:Ws)}function wee(c,f,m,x,C){if(pv(c))throw Error(r(485));if(c=f.action,c!==null){var A={payload:C,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){A.listeners.push(R)}};B.T!==null?m(!0):A.isTransition=!1,x(A),m=f.pending,m===null?(A.next=f.pending=A,j_(f,A)):(A.next=m.next,f.pending=m.next=A)}}function j_(c,f){var m=f.action,x=f.payload,C=c.state;if(f.isTransition){var A=B.T,R={};B.T=R;try{var Y=m(C,x),te=B.S;te!==null&&te(R,Y),S_(c,f,Y)}catch(le){zw(c,f,le)}finally{A!==null&&R.types!==null&&(A.types=R.types),B.T=A}}else try{A=m(C,x),S_(c,f,A)}catch(le){zw(c,f,le)}}function S_(c,f,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(x){C_(c,f,x)},function(x){return zw(c,f,x)}):C_(c,f,m)}function C_(c,f,m){f.status="fulfilled",f.value=m,k_(f),c.state=m,f=c.pending,f!==null&&(m=f.next,m===f?c.pending=null:(m=m.next,f.next=m,j_(c,m)))}function zw(c,f,m){var x=c.pending;if(c.pending=null,x!==null){x=x.next;do f.status="rejected",f.reason=m,k_(f),f=f.next;while(f!==x)}c.action=null}function k_(c){c=c.listeners;for(var f=0;f<c.length;f++)(0,c[f])()}function N_(c,f){return f}function A_(c,f){if(bt){var m=Vt.formState;if(m!==null){e:{var x=rt;if(bt){if(Zt){t:{for(var C=Zt,A=oa;C.nodeType!==8;){if(!A){C=null;break t}if(C=ca(C.nextSibling),C===null){C=null;break t}}A=C.data,C=A==="F!"||A==="F"?C:null}if(C){Zt=ca(C.nextSibling),x=C.data==="F!";break e}}Go(x)}x=!1}x&&(f=m[0])}}return m=Qr(),m.memoizedState=m.baseState=f,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:N_,lastRenderedState:f},m.queue=x,m=G_.bind(null,rt,x),x.dispatch=m,x=Fw(!1),A=Yw.bind(null,rt,!1,x.queue),x=Qr(),C={state:f,dispatch:null,action:c,pending:null},x.queue=C,m=wee.bind(null,rt,C,A,m),C.dispatch=m,x.memoizedState=c,[f,m,!1]}function E_(c){var f=Ln();return __(f,$t,c)}function __(c,f,m){if(f=Bw(c,f,N_)[0],c=dv(Ws)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var x=Oh(f)}catch(R){throw R===nd?tv:R}else x=f;f=Ln();var C=f.queue,A=C.dispatch;return m!==f.memoizedState&&(rt.flags|=2048,od(9,{destroy:void 0},jee.bind(null,C,m),null)),[x,A,c]}function jee(c,f){c.action=f}function T_(c){var f=Ln(),m=$t;if(m!==null)return __(f,m,c);Ln(),f=f.memoizedState,m=Ln();var x=m.queue.dispatch;return m.memoizedState=c,[f,x,!1]}function od(c,f,m,x){return c={tag:c,create:m,deps:x,inst:f,next:null},f=rt.updateQueue,f===null&&(f=cv(),rt.updateQueue=f),m=f.lastEffect,m===null?f.lastEffect=c.next=c:(x=m.next,m.next=c,c.next=x,f.lastEffect=c),c}function L_(){return Ln().memoizedState}function fv(c,f,m,x){var C=Qr();rt.flags|=c,C.memoizedState=od(1|f,{destroy:void 0},m,x===void 0?null:x)}function hv(c,f,m,x){var C=Ln();x=x===void 0?null:x;var A=C.memoizedState.inst;$t!==null&&x!==null&&Mw(x,$t.memoizedState.deps)?C.memoizedState=od(f,A,m,x):(rt.flags|=c,C.memoizedState=od(1|f,A,m,x))}function O_(c,f){fv(8390656,8,c,f)}function Hw(c,f){hv(2048,8,c,f)}function See(c){rt.flags|=4;var f=rt.updateQueue;if(f===null)f=cv(),rt.updateQueue=f,f.events=[c];else{var m=f.events;m===null?f.events=[c]:m.push(c)}}function M_(c){var f=Ln().memoizedState;return See({ref:f,nextImpl:c}),function(){if((Lt&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}function D_(c,f){return hv(4,2,c,f)}function P_(c,f){return hv(4,4,c,f)}function R_(c,f){if(typeof f=="function"){c=c();var m=f(c);return function(){typeof m=="function"?m():f(null)}}if(f!=null)return c=c(),f.current=c,function(){f.current=null}}function I_(c,f,m){m=m!=null?m.concat([c]):null,hv(4,4,R_.bind(null,f,c),m)}function Uw(){}function $_(c,f){var m=Ln();f=f===void 0?null:f;var x=m.memoizedState;return f!==null&&Mw(f,x[1])?x[0]:(m.memoizedState=[c,f],c)}function B_(c,f){var m=Ln();f=f===void 0?null:f;var x=m.memoizedState;if(f!==null&&Mw(f,x[1]))return x[0];if(x=c(),dc){jt(!0);try{c()}finally{jt(!1)}}return m.memoizedState=[x,f],x}function Vw(c,f,m){return m===void 0||(Gs&1073741824)!==0&&(mt&261930)===0?c.memoizedState=f:(c.memoizedState=m,c=qT(),rt.lanes|=c,tl|=c,m)}function q_(c,f,m,x){return Mi(m,f)?m:id.current!==null?(c=Vw(c,m,x),Mi(c,f)||(zn=!0),c):(Gs&42)===0||(Gs&1073741824)!==0&&(mt&261930)===0?(zn=!0,c.memoizedState=m):(c=qT(),rt.lanes|=c,tl|=c,f)}function F_(c,f,m,x,C){var A=H.p;H.p=A!==0&&8>A?A:8;var R=B.T,Y={};B.T=Y,Yw(c,!1,f,m);try{var te=C(),le=B.S;if(le!==null&&le(Y,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var pe=yee(te,x);Mh(c,f,pe,Bi(c))}else Mh(c,f,x,Bi(c))}catch(xe){Mh(c,f,{then:function(){},status:"rejected",reason:xe},Bi())}finally{H.p=A,R!==null&&Y.types!==null&&(R.types=Y.types),B.T=R}}function Cee(){}function Gw(c,f,m,x){if(c.tag!==5)throw Error(r(476));var C=z_(c).queue;F_(c,C,f,G,m===null?Cee:function(){return H_(c),m(x)})}function z_(c){var f=c.memoizedState;if(f!==null)return f;f={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:G},next:null};var m={};return f.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:m},next:null},c.memoizedState=f,c=c.alternate,c!==null&&(c.memoizedState=f),f}function H_(c){var f=z_(c);f.next===null&&(f=c.alternate.memoizedState),Mh(c,f.next.queue,{},Bi())}function Ww(){return Cr(Xh)}function U_(){return Ln().memoizedState}function V_(){return Ln().memoizedState}function kee(c){for(var f=c.return;f!==null;){switch(f.tag){case 24:case 3:var m=Bi();c=Ko(m);var x=Xo(f,c,m);x!==null&&(gi(x,f,m),Eh(x,f,m)),f={cache:jw()},c.payload=f;return}f=f.return}}function Nee(c,f,m){var x=Bi();m={lane:x,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},pv(c)?W_(f,m):(m=dw(c,f,m,x),m!==null&&(gi(m,c,x),Y_(m,f,x)))}function G_(c,f,m){var x=Bi();Mh(c,f,m,x)}function Mh(c,f,m,x){var C={lane:x,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(pv(c))W_(f,C);else{var A=c.alternate;if(c.lanes===0&&(A===null||A.lanes===0)&&(A=f.lastRenderedReducer,A!==null))try{var R=f.lastRenderedState,Y=A(R,m);if(C.hasEagerState=!0,C.eagerState=Y,Mi(Y,R))return Yg(c,f,C,0),Vt===null&&Wg(),!1}catch{}finally{}if(m=dw(c,f,C,x),m!==null)return gi(m,c,x),Y_(m,f,x),!0}return!1}function Yw(c,f,m,x){if(x={lane:2,revertLane:N2(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},pv(c)){if(f)throw Error(r(479))}else f=dw(c,m,x,2),f!==null&&gi(f,c,2)}function pv(c){var f=c.alternate;return c===rt||f!==null&&f===rt}function W_(c,f){ad=ov=!0;var m=c.pending;m===null?f.next=f:(f.next=m.next,m.next=f),c.pending=f}function Y_(c,f,m){if((m&4194048)!==0){var x=f.lanes;x&=c.pendingLanes,m|=x,f.lanes=m,Zr(c,m)}}var Dh={readContext:Cr,use:uv,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useLayoutEffect:xn,useInsertionEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useSyncExternalStore:xn,useId:xn,useHostTransitionStatus:xn,useFormState:xn,useActionState:xn,useOptimistic:xn,useMemoCache:xn,useCacheRefresh:xn};Dh.useEffectEvent=xn;var K_={readContext:Cr,use:uv,useCallback:function(c,f){return Qr().memoizedState=[c,f===void 0?null:f],c},useContext:Cr,useEffect:O_,useImperativeHandle:function(c,f,m){m=m!=null?m.concat([c]):null,fv(4194308,4,R_.bind(null,f,c),m)},useLayoutEffect:function(c,f){return fv(4194308,4,c,f)},useInsertionEffect:function(c,f){fv(4,2,c,f)},useMemo:function(c,f){var m=Qr();f=f===void 0?null:f;var x=c();if(dc){jt(!0);try{c()}finally{jt(!1)}}return m.memoizedState=[x,f],x},useReducer:function(c,f,m){var x=Qr();if(m!==void 0){var C=m(f);if(dc){jt(!0);try{m(f)}finally{jt(!1)}}}else C=f;return x.memoizedState=x.baseState=C,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:C},x.queue=c,c=c.dispatch=Nee.bind(null,rt,c),[x.memoizedState,c]},useRef:function(c){var f=Qr();return c={current:c},f.memoizedState=c},useState:function(c){c=Fw(c);var f=c.queue,m=G_.bind(null,rt,f);return f.dispatch=m,[c.memoizedState,m]},useDebugValue:Uw,useDeferredValue:function(c,f){var m=Qr();return Vw(m,c,f)},useTransition:function(){var c=Fw(!1);return c=F_.bind(null,rt,c.queue,!0,!1),Qr().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,f,m){var x=rt,C=Qr();if(bt){if(m===void 0)throw Error(r(407));m=m()}else{if(m=f(),Vt===null)throw Error(r(349));(mt&127)!==0||g_(x,f,m)}C.memoizedState=m;var A={value:m,getSnapshot:f};return C.queue=A,O_(y_.bind(null,x,A,c),[c]),x.flags|=2048,od(9,{destroy:void 0},v_.bind(null,x,A,m,f),null),m},useId:function(){var c=Qr(),f=Vt.identifierPrefix;if(bt){var m=as,x=is;m=(x&~(1<<32-at(x)-1)).toString(32)+m,f="_"+f+"R_"+m,m=lv++,0<m&&(f+="H"+m.toString(32)),f+="_"}else m=xee++,f="_"+f+"r_"+m.toString(32)+"_";return c.memoizedState=f},useHostTransitionStatus:Ww,useFormState:A_,useActionState:A_,useOptimistic:function(c){var f=Qr();f.memoizedState=f.baseState=c;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=m,f=Yw.bind(null,rt,!0,m),m.dispatch=f,[c,f]},useMemoCache:$w,useCacheRefresh:function(){return Qr().memoizedState=kee.bind(null,rt)},useEffectEvent:function(c){var f=Qr(),m={impl:c};return f.memoizedState=m,function(){if((Lt&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},Kw={readContext:Cr,use:uv,useCallback:$_,useContext:Cr,useEffect:Hw,useImperativeHandle:I_,useInsertionEffect:D_,useLayoutEffect:P_,useMemo:B_,useReducer:dv,useRef:L_,useState:function(){return dv(Ws)},useDebugValue:Uw,useDeferredValue:function(c,f){var m=Ln();return q_(m,$t.memoizedState,c,f)},useTransition:function(){var c=dv(Ws)[0],f=Ln().memoizedState;return[typeof c=="boolean"?c:Oh(c),f]},useSyncExternalStore:m_,useId:U_,useHostTransitionStatus:Ww,useFormState:E_,useActionState:E_,useOptimistic:function(c,f){var m=Ln();return w_(m,$t,c,f)},useMemoCache:$w,useCacheRefresh:V_};Kw.useEffectEvent=M_;var X_={readContext:Cr,use:uv,useCallback:$_,useContext:Cr,useEffect:Hw,useImperativeHandle:I_,useInsertionEffect:D_,useLayoutEffect:P_,useMemo:B_,useReducer:qw,useRef:L_,useState:function(){return qw(Ws)},useDebugValue:Uw,useDeferredValue:function(c,f){var m=Ln();return $t===null?Vw(m,c,f):q_(m,$t.memoizedState,c,f)},useTransition:function(){var c=qw(Ws)[0],f=Ln().memoizedState;return[typeof c=="boolean"?c:Oh(c),f]},useSyncExternalStore:m_,useId:U_,useHostTransitionStatus:Ww,useFormState:T_,useActionState:T_,useOptimistic:function(c,f){var m=Ln();return $t!==null?w_(m,$t,c,f):(m.baseState=c,[c,m.queue.dispatch])},useMemoCache:$w,useCacheRefresh:V_};X_.useEffectEvent=M_;function Xw(c,f,m,x){f=c.memoizedState,m=m(x,f),m=m==null?f:p({},f,m),c.memoizedState=m,c.lanes===0&&(c.updateQueue.baseState=m)}var Zw={enqueueSetState:function(c,f,m){c=c._reactInternals;var x=Bi(),C=Ko(x);C.payload=f,m!=null&&(C.callback=m),f=Xo(c,C,x),f!==null&&(gi(f,c,x),Eh(f,c,x))},enqueueReplaceState:function(c,f,m){c=c._reactInternals;var x=Bi(),C=Ko(x);C.tag=1,C.payload=f,m!=null&&(C.callback=m),f=Xo(c,C,x),f!==null&&(gi(f,c,x),Eh(f,c,x))},enqueueForceUpdate:function(c,f){c=c._reactInternals;var m=Bi(),x=Ko(m);x.tag=2,f!=null&&(x.callback=f),f=Xo(c,x,m),f!==null&&(gi(f,c,m),Eh(f,c,m))}};function Z_(c,f,m,x,C,A,R){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(x,A,R):f.prototype&&f.prototype.isPureReactComponent?!bh(m,x)||!bh(C,A):!0}function Q_(c,f,m,x){c=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,x),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,x),f.state!==c&&Zw.enqueueReplaceState(f,f.state,null)}function fc(c,f){var m=f;if("ref"in f){m={};for(var x in f)x!=="ref"&&(m[x]=f[x])}if(c=c.defaultProps){m===f&&(m=p({},m));for(var C in c)m[C]===void 0&&(m[C]=c[C])}return m}function J_(c){Gg(c)}function eT(c){console.error(c)}function tT(c){Gg(c)}function mv(c,f){try{var m=c.onUncaughtError;m(f.value,{componentStack:f.stack})}catch(x){setTimeout(function(){throw x})}}function nT(c,f,m){try{var x=c.onCaughtError;x(m.value,{componentStack:m.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function Qw(c,f,m){return m=Ko(m),m.tag=3,m.payload={element:null},m.callback=function(){mv(c,f)},m}function rT(c){return c=Ko(c),c.tag=3,c}function iT(c,f,m,x){var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var A=x.value;c.payload=function(){return C(A)},c.callback=function(){nT(f,m,x)}}var R=m.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(c.callback=function(){nT(f,m,x),typeof C!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var Y=x.stack;this.componentDidCatch(x.value,{componentStack:Y!==null?Y:""})})}function Aee(c,f,m,x,C){if(m.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(f=m.alternate,f!==null&&Ju(f,m,C,!0),m=Pi.current,m!==null){switch(m.tag){case 31:case 13:return la===null?Av():m.alternate===null&&bn===0&&(bn=3),m.flags&=-257,m.flags|=65536,m.lanes=C,x===nv?m.flags|=16384:(f=m.updateQueue,f===null?m.updateQueue=new Set([x]):f.add(x),S2(c,x,C)),!1;case 22:return m.flags|=65536,x===nv?m.flags|=16384:(f=m.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([x])},m.updateQueue=f):(m=f.retryQueue,m===null?f.retryQueue=new Set([x]):m.add(x)),S2(c,x,C)),!1}throw Error(r(435,m.tag))}return S2(c,x,C),Av(),!1}if(bt)return f=Pi.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=C,x!==vw&&(c=Error(r(422),{cause:x}),Sh(ia(c,m)))):(x!==vw&&(f=Error(r(423),{cause:x}),Sh(ia(f,m))),c=c.current.alternate,c.flags|=65536,C&=-C,c.lanes|=C,x=ia(x,m),C=Qw(c.stateNode,x,C),Ew(c,C),bn!==4&&(bn=2)),!1;var A=Error(r(520),{cause:x});if(A=ia(A,m),zh===null?zh=[A]:zh.push(A),bn!==4&&(bn=2),f===null)return!0;x=ia(x,m),m=f;do{switch(m.tag){case 3:return m.flags|=65536,c=C&-C,m.lanes|=c,c=Qw(m.stateNode,x,c),Ew(m,c),!1;case 1:if(f=m.type,A=m.stateNode,(m.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(nl===null||!nl.has(A))))return m.flags|=65536,C&=-C,m.lanes|=C,C=rT(C),iT(C,c,m,x),Ew(m,C),!1}m=m.return}while(m!==null);return!1}var Jw=Error(r(461)),zn=!1;function kr(c,f,m,x){f.child=c===null?l_(f,null,m,x):uc(f,c.child,m,x)}function aT(c,f,m,x,C){m=m.render;var A=f.ref;if("ref"in x){var R={};for(var Y in x)Y!=="ref"&&(R[Y]=x[Y])}else R=x;return sc(f),x=Dw(c,f,m,R,A,C),Y=Pw(),c!==null&&!zn?(Rw(c,f,C),Ys(c,f,C)):(bt&&Y&&mw(f),f.flags|=1,kr(c,f,x,C),f.child)}function sT(c,f,m,x,C){if(c===null){var A=m.type;return typeof A=="function"&&!fw(A)&&A.defaultProps===void 0&&m.compare===null?(f.tag=15,f.type=A,oT(c,f,A,x,C)):(c=Xg(m.type,null,x,f,f.mode,C),c.ref=f.ref,c.return=f,f.child=c)}if(A=c.child,!o2(c,C)){var R=A.memoizedProps;if(m=m.compare,m=m!==null?m:bh,m(R,x)&&c.ref===f.ref)return Ys(c,f,C)}return f.flags|=1,c=zs(A,x),c.ref=f.ref,c.return=f,f.child=c}function oT(c,f,m,x,C){if(c!==null){var A=c.memoizedProps;if(bh(A,x)&&c.ref===f.ref)if(zn=!1,f.pendingProps=x=A,o2(c,C))(c.flags&131072)!==0&&(zn=!0);else return f.lanes=c.lanes,Ys(c,f,C)}return e2(c,f,m,x,C)}function lT(c,f,m,x){var C=x.children,A=c!==null?c.memoizedState:null;if(c===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((f.flags&128)!==0){if(A=A!==null?A.baseLanes|m:m,c!==null){for(x=f.child=c.child,C=0;x!==null;)C=C|x.lanes|x.childLanes,x=x.sibling;x=C&~A}else x=0,f.child=null;return cT(c,f,A,m,x)}if((m&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},c!==null&&ev(f,A!==null?A.cachePool:null),A!==null?d_(f,A):Tw(),f_(f);else return x=f.lanes=536870912,cT(c,f,A!==null?A.baseLanes|m:m,m,x)}else A!==null?(ev(f,A.cachePool),d_(f,A),Qo(),f.memoizedState=null):(c!==null&&ev(f,null),Tw(),Qo());return kr(c,f,C,m),f.child}function Ph(c,f){return c!==null&&c.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function cT(c,f,m,x,C){var A=Cw();return A=A===null?null:{parent:qn._currentValue,pool:A},f.memoizedState={baseLanes:m,cachePool:A},c!==null&&ev(f,null),Tw(),f_(f),c!==null&&Ju(c,f,x,!0),f.childLanes=C,null}function gv(c,f){return f=yv({mode:f.mode,children:f.children},c.mode),f.ref=c.ref,c.child=f,f.return=c,f}function uT(c,f,m){return uc(f,c.child,null,m),c=gv(f,f.pendingProps),c.flags|=2,Ri(f),f.memoizedState=null,c}function Eee(c,f,m){var x=f.pendingProps,C=(f.flags&128)!==0;if(f.flags&=-129,c===null){if(bt){if(x.mode==="hidden")return c=gv(f,x),f.lanes=536870912,Ph(null,c);if(Ow(f),(c=Zt)?(c=jL(c,oa),c=c!==null&&c.data==="&"?c:null,c!==null&&(f.memoizedState={dehydrated:c,treeContext:Uo!==null?{id:is,overflow:as}:null,retryLane:536870912,hydrationErrors:null},m=WE(c),m.return=f,f.child=m,Sr=f,Zt=null)):c=null,c===null)throw Go(f);return f.lanes=536870912,null}return gv(f,x)}var A=c.memoizedState;if(A!==null){var R=A.dehydrated;if(Ow(f),C)if(f.flags&256)f.flags&=-257,f=uT(c,f,m);else if(f.memoizedState!==null)f.child=c.child,f.flags|=128,f=null;else throw Error(r(558));else if(zn||Ju(c,f,m,!1),C=(m&c.childLanes)!==0,zn||C){if(x=Vt,x!==null&&(R=li(x,m),R!==0&&R!==A.retryLane))throw A.retryLane=R,nc(c,R),gi(x,c,R),Jw;Av(),f=uT(c,f,m)}else c=A.treeContext,Zt=ca(R.nextSibling),Sr=f,bt=!0,Vo=null,oa=!1,c!==null&&XE(f,c),f=gv(f,x),f.flags|=4096;return f}return c=zs(c.child,{mode:x.mode,children:x.children}),c.ref=f.ref,f.child=c,c.return=f,c}function vv(c,f){var m=f.ref;if(m===null)c!==null&&c.ref!==null&&(f.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(c===null||c.ref!==m)&&(f.flags|=4194816)}}function e2(c,f,m,x,C){return sc(f),m=Dw(c,f,m,x,void 0,C),x=Pw(),c!==null&&!zn?(Rw(c,f,C),Ys(c,f,C)):(bt&&x&&mw(f),f.flags|=1,kr(c,f,m,C),f.child)}function dT(c,f,m,x,C,A){return sc(f),f.updateQueue=null,m=p_(f,x,m,C),h_(c),x=Pw(),c!==null&&!zn?(Rw(c,f,A),Ys(c,f,A)):(bt&&x&&mw(f),f.flags|=1,kr(c,f,m,A),f.child)}function fT(c,f,m,x,C){if(sc(f),f.stateNode===null){var A=Ku,R=m.contextType;typeof R=="object"&&R!==null&&(A=Cr(R)),A=new m(x,A),f.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Zw,f.stateNode=A,A._reactInternals=f,A=f.stateNode,A.props=x,A.state=f.memoizedState,A.refs={},Nw(f),R=m.contextType,A.context=typeof R=="object"&&R!==null?Cr(R):Ku,A.state=f.memoizedState,R=m.getDerivedStateFromProps,typeof R=="function"&&(Xw(f,m,R,x),A.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(R=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),R!==A.state&&Zw.enqueueReplaceState(A,A.state,null),Th(f,x,A,C),_h(),A.state=f.memoizedState),typeof A.componentDidMount=="function"&&(f.flags|=4194308),x=!0}else if(c===null){A=f.stateNode;var Y=f.memoizedProps,te=fc(m,Y);A.props=te;var le=A.context,pe=m.contextType;R=Ku,typeof pe=="object"&&pe!==null&&(R=Cr(pe));var xe=m.getDerivedStateFromProps;pe=typeof xe=="function"||typeof A.getSnapshotBeforeUpdate=="function",Y=f.pendingProps!==Y,pe||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(Y||le!==R)&&Q_(f,A,x,R),Yo=!1;var ce=f.memoizedState;A.state=ce,Th(f,x,A,C),_h(),le=f.memoizedState,Y||ce!==le||Yo?(typeof xe=="function"&&(Xw(f,m,xe,x),le=f.memoizedState),(te=Yo||Z_(f,m,te,x,ce,le,R))?(pe||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(f.flags|=4194308)):(typeof A.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=x,f.memoizedState=le),A.props=x,A.state=le,A.context=R,x=te):(typeof A.componentDidMount=="function"&&(f.flags|=4194308),x=!1)}else{A=f.stateNode,Aw(c,f),R=f.memoizedProps,pe=fc(m,R),A.props=pe,xe=f.pendingProps,ce=A.context,le=m.contextType,te=Ku,typeof le=="object"&&le!==null&&(te=Cr(le)),Y=m.getDerivedStateFromProps,(le=typeof Y=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(R!==xe||ce!==te)&&Q_(f,A,x,te),Yo=!1,ce=f.memoizedState,A.state=ce,Th(f,x,A,C),_h();var fe=f.memoizedState;R!==xe||ce!==fe||Yo||c!==null&&c.dependencies!==null&&Qg(c.dependencies)?(typeof Y=="function"&&(Xw(f,m,Y,x),fe=f.memoizedState),(pe=Yo||Z_(f,m,pe,x,ce,fe,te)||c!==null&&c.dependencies!==null&&Qg(c.dependencies))?(le||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(x,fe,te),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(x,fe,te)),typeof A.componentDidUpdate=="function"&&(f.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof A.componentDidUpdate!="function"||R===c.memoizedProps&&ce===c.memoizedState||(f.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||R===c.memoizedProps&&ce===c.memoizedState||(f.flags|=1024),f.memoizedProps=x,f.memoizedState=fe),A.props=x,A.state=fe,A.context=te,x=pe):(typeof A.componentDidUpdate!="function"||R===c.memoizedProps&&ce===c.memoizedState||(f.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||R===c.memoizedProps&&ce===c.memoizedState||(f.flags|=1024),x=!1)}return A=x,vv(c,f),x=(f.flags&128)!==0,A||x?(A=f.stateNode,m=x&&typeof m.getDerivedStateFromError!="function"?null:A.render(),f.flags|=1,c!==null&&x?(f.child=uc(f,c.child,null,C),f.child=uc(f,null,m,C)):kr(c,f,m,C),f.memoizedState=A.state,c=f.child):c=Ys(c,f,C),c}function hT(c,f,m,x){return ic(),f.flags|=256,kr(c,f,m,x),f.child}var t2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function n2(c){return{baseLanes:c,cachePool:n_()}}function r2(c,f,m){return c=c!==null?c.childLanes&~m:0,f&&(c|=$i),c}function pT(c,f,m){var x=f.pendingProps,C=!1,A=(f.flags&128)!==0,R;if((R=A)||(R=c!==null&&c.memoizedState===null?!1:(Tn.current&2)!==0),R&&(C=!0,f.flags&=-129),R=(f.flags&32)!==0,f.flags&=-33,c===null){if(bt){if(C?Zo(f):Qo(),(c=Zt)?(c=jL(c,oa),c=c!==null&&c.data!=="&"?c:null,c!==null&&(f.memoizedState={dehydrated:c,treeContext:Uo!==null?{id:is,overflow:as}:null,retryLane:536870912,hydrationErrors:null},m=WE(c),m.return=f,f.child=m,Sr=f,Zt=null)):c=null,c===null)throw Go(f);return B2(c)?f.lanes=32:f.lanes=536870912,null}var Y=x.children;return x=x.fallback,C?(Qo(),C=f.mode,Y=yv({mode:"hidden",children:Y},C),x=rc(x,C,m,null),Y.return=f,x.return=f,Y.sibling=x,f.child=Y,x=f.child,x.memoizedState=n2(m),x.childLanes=r2(c,R,m),f.memoizedState=t2,Ph(null,x)):(Zo(f),i2(f,Y))}var te=c.memoizedState;if(te!==null&&(Y=te.dehydrated,Y!==null)){if(A)f.flags&256?(Zo(f),f.flags&=-257,f=a2(c,f,m)):f.memoizedState!==null?(Qo(),f.child=c.child,f.flags|=128,f=null):(Qo(),Y=x.fallback,C=f.mode,x=yv({mode:"visible",children:x.children},C),Y=rc(Y,C,m,null),Y.flags|=2,x.return=f,Y.return=f,x.sibling=Y,f.child=x,uc(f,c.child,null,m),x=f.child,x.memoizedState=n2(m),x.childLanes=r2(c,R,m),f.memoizedState=t2,f=Ph(null,x));else if(Zo(f),B2(Y)){if(R=Y.nextSibling&&Y.nextSibling.dataset,R)var le=R.dgst;R=le,x=Error(r(419)),x.stack="",x.digest=R,Sh({value:x,source:null,stack:null}),f=a2(c,f,m)}else if(zn||Ju(c,f,m,!1),R=(m&c.childLanes)!==0,zn||R){if(R=Vt,R!==null&&(x=li(R,m),x!==0&&x!==te.retryLane))throw te.retryLane=x,nc(c,x),gi(R,c,x),Jw;$2(Y)||Av(),f=a2(c,f,m)}else $2(Y)?(f.flags|=192,f.child=c.child,f=null):(c=te.treeContext,Zt=ca(Y.nextSibling),Sr=f,bt=!0,Vo=null,oa=!1,c!==null&&XE(f,c),f=i2(f,x.children),f.flags|=4096);return f}return C?(Qo(),Y=x.fallback,C=f.mode,te=c.child,le=te.sibling,x=zs(te,{mode:"hidden",children:x.children}),x.subtreeFlags=te.subtreeFlags&65011712,le!==null?Y=zs(le,Y):(Y=rc(Y,C,m,null),Y.flags|=2),Y.return=f,x.return=f,x.sibling=Y,f.child=x,Ph(null,x),x=f.child,Y=c.child.memoizedState,Y===null?Y=n2(m):(C=Y.cachePool,C!==null?(te=qn._currentValue,C=C.parent!==te?{parent:te,pool:te}:C):C=n_(),Y={baseLanes:Y.baseLanes|m,cachePool:C}),x.memoizedState=Y,x.childLanes=r2(c,R,m),f.memoizedState=t2,Ph(c.child,x)):(Zo(f),m=c.child,c=m.sibling,m=zs(m,{mode:"visible",children:x.children}),m.return=f,m.sibling=null,c!==null&&(R=f.deletions,R===null?(f.deletions=[c],f.flags|=16):R.push(c)),f.child=m,f.memoizedState=null,m)}function i2(c,f){return f=yv({mode:"visible",children:f},c.mode),f.return=c,c.child=f}function yv(c,f){return c=Di(22,c,null,f),c.lanes=0,c}function a2(c,f,m){return uc(f,c.child,null,m),c=i2(f,f.pendingProps.children),c.flags|=2,f.memoizedState=null,c}function mT(c,f,m){c.lanes|=f;var x=c.alternate;x!==null&&(x.lanes|=f),bw(c.return,f,m)}function s2(c,f,m,x,C,A){var R=c.memoizedState;R===null?c.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:x,tail:m,tailMode:C,treeForkCount:A}:(R.isBackwards=f,R.rendering=null,R.renderingStartTime=0,R.last=x,R.tail=m,R.tailMode=C,R.treeForkCount=A)}function gT(c,f,m){var x=f.pendingProps,C=x.revealOrder,A=x.tail;x=x.children;var R=Tn.current,Y=(R&2)!==0;if(Y?(R=R&1|2,f.flags|=128):R&=1,F(Tn,R),kr(c,f,x,m),x=bt?jh:0,!Y&&c!==null&&(c.flags&128)!==0)e:for(c=f.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&mT(c,m,f);else if(c.tag===19)mT(c,m,f);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===f)break e;for(;c.sibling===null;){if(c.return===null||c.return===f)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(C){case"forwards":for(m=f.child,C=null;m!==null;)c=m.alternate,c!==null&&sv(c)===null&&(C=m),m=m.sibling;m=C,m===null?(C=f.child,f.child=null):(C=m.sibling,m.sibling=null),s2(f,!1,C,m,A,x);break;case"backwards":case"unstable_legacy-backwards":for(m=null,C=f.child,f.child=null;C!==null;){if(c=C.alternate,c!==null&&sv(c)===null){f.child=C;break}c=C.sibling,C.sibling=m,m=C,C=c}s2(f,!0,m,null,A,x);break;case"together":s2(f,!1,null,null,void 0,x);break;default:f.memoizedState=null}return f.child}function Ys(c,f,m){if(c!==null&&(f.dependencies=c.dependencies),tl|=f.lanes,(m&f.childLanes)===0)if(c!==null){if(Ju(c,f,m,!1),(m&f.childLanes)===0)return null}else return null;if(c!==null&&f.child!==c.child)throw Error(r(153));if(f.child!==null){for(c=f.child,m=zs(c,c.pendingProps),f.child=m,m.return=f;c.sibling!==null;)c=c.sibling,m=m.sibling=zs(c,c.pendingProps),m.return=f;m.sibling=null}return f.child}function o2(c,f){return(c.lanes&f)!==0?!0:(c=c.dependencies,!!(c!==null&&Qg(c)))}function _ee(c,f,m){switch(f.tag){case 3:ye(f,f.stateNode.containerInfo),Wo(f,qn,c.memoizedState.cache),ic();break;case 27:case 5:re(f);break;case 4:ye(f,f.stateNode.containerInfo);break;case 10:Wo(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,Ow(f),null;break;case 13:var x=f.memoizedState;if(x!==null)return x.dehydrated!==null?(Zo(f),f.flags|=128,null):(m&f.child.childLanes)!==0?pT(c,f,m):(Zo(f),c=Ys(c,f,m),c!==null?c.sibling:null);Zo(f);break;case 19:var C=(c.flags&128)!==0;if(x=(m&f.childLanes)!==0,x||(Ju(c,f,m,!1),x=(m&f.childLanes)!==0),C){if(x)return gT(c,f,m);f.flags|=128}if(C=f.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),F(Tn,Tn.current),x)break;return null;case 22:return f.lanes=0,lT(c,f,m,f.pendingProps);case 24:Wo(f,qn,c.memoizedState.cache)}return Ys(c,f,m)}function vT(c,f,m){if(c!==null)if(c.memoizedProps!==f.pendingProps)zn=!0;else{if(!o2(c,m)&&(f.flags&128)===0)return zn=!1,_ee(c,f,m);zn=(c.flags&131072)!==0}else zn=!1,bt&&(f.flags&1048576)!==0&&KE(f,jh,f.index);switch(f.lanes=0,f.tag){case 16:e:{var x=f.pendingProps;if(c=lc(f.elementType),f.type=c,typeof c=="function")fw(c)?(x=fc(c,x),f.tag=1,f=fT(null,f,c,x,m)):(f.tag=0,f=e2(null,f,c,x,m));else{if(c!=null){var C=c.$$typeof;if(C===_){f.tag=11,f=aT(null,f,c,x,m);break e}else if(C===T){f.tag=14,f=sT(null,f,c,x,m);break e}}throw f=V(c)||c,Error(r(306,f,""))}}return f;case 0:return e2(c,f,f.type,f.pendingProps,m);case 1:return x=f.type,C=fc(x,f.pendingProps),fT(c,f,x,C,m);case 3:e:{if(ye(f,f.stateNode.containerInfo),c===null)throw Error(r(387));x=f.pendingProps;var A=f.memoizedState;C=A.element,Aw(c,f),Th(f,x,null,m);var R=f.memoizedState;if(x=R.cache,Wo(f,qn,x),x!==A.cache&&ww(f,[qn],m,!0),_h(),x=R.element,A.isDehydrated)if(A={element:x,isDehydrated:!1,cache:R.cache},f.updateQueue.baseState=A,f.memoizedState=A,f.flags&256){f=hT(c,f,x,m);break e}else if(x!==C){C=ia(Error(r(424)),f),Sh(C),f=hT(c,f,x,m);break e}else{switch(c=f.stateNode.containerInfo,c.nodeType){case 9:c=c.body;break;default:c=c.nodeName==="HTML"?c.ownerDocument.body:c}for(Zt=ca(c.firstChild),Sr=f,bt=!0,Vo=null,oa=!0,m=l_(f,null,x,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(ic(),x===C){f=Ys(c,f,m);break e}kr(c,f,x,m)}f=f.child}return f;case 26:return vv(c,f),c===null?(m=EL(f.type,null,f.pendingProps,null))?f.memoizedState=m:bt||(m=f.type,c=f.pendingProps,x=Dv(ee.current).createElement(m),x[Xn]=f,x[ui]=c,Nr(x,m,c),dr(x),f.stateNode=x):f.memoizedState=EL(f.type,c.memoizedProps,f.pendingProps,c.memoizedState),null;case 27:return re(f),c===null&&bt&&(x=f.stateNode=kL(f.type,f.pendingProps,ee.current),Sr=f,oa=!0,C=Zt,sl(f.type)?(q2=C,Zt=ca(x.firstChild)):Zt=C),kr(c,f,f.pendingProps.children,m),vv(c,f),c===null&&(f.flags|=4194304),f.child;case 5:return c===null&&bt&&((C=x=Zt)&&(x=ate(x,f.type,f.pendingProps,oa),x!==null?(f.stateNode=x,Sr=f,Zt=ca(x.firstChild),oa=!1,C=!0):C=!1),C||Go(f)),re(f),C=f.type,A=f.pendingProps,R=c!==null?c.memoizedProps:null,x=A.children,P2(C,A)?x=null:R!==null&&P2(C,R)&&(f.flags|=32),f.memoizedState!==null&&(C=Dw(c,f,bee,null,null,m),Xh._currentValue=C),vv(c,f),kr(c,f,x,m),f.child;case 6:return c===null&&bt&&((c=m=Zt)&&(m=ste(m,f.pendingProps,oa),m!==null?(f.stateNode=m,Sr=f,Zt=null,c=!0):c=!1),c||Go(f)),null;case 13:return pT(c,f,m);case 4:return ye(f,f.stateNode.containerInfo),x=f.pendingProps,c===null?f.child=uc(f,null,x,m):kr(c,f,x,m),f.child;case 11:return aT(c,f,f.type,f.pendingProps,m);case 7:return kr(c,f,f.pendingProps,m),f.child;case 8:return kr(c,f,f.pendingProps.children,m),f.child;case 12:return kr(c,f,f.pendingProps.children,m),f.child;case 10:return x=f.pendingProps,Wo(f,f.type,x.value),kr(c,f,x.children,m),f.child;case 9:return C=f.type._context,x=f.pendingProps.children,sc(f),C=Cr(C),x=x(C),f.flags|=1,kr(c,f,x,m),f.child;case 14:return sT(c,f,f.type,f.pendingProps,m);case 15:return oT(c,f,f.type,f.pendingProps,m);case 19:return gT(c,f,m);case 31:return Eee(c,f,m);case 22:return lT(c,f,m,f.pendingProps);case 24:return sc(f),x=Cr(qn),c===null?(C=Cw(),C===null&&(C=Vt,A=jw(),C.pooledCache=A,A.refCount++,A!==null&&(C.pooledCacheLanes|=m),C=A),f.memoizedState={parent:x,cache:C},Nw(f),Wo(f,qn,C)):((c.lanes&m)!==0&&(Aw(c,f),Th(f,null,null,m),_h()),C=c.memoizedState,A=f.memoizedState,C.parent!==x?(C={parent:x,cache:x},f.memoizedState=C,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=C),Wo(f,qn,x)):(x=A.cache,Wo(f,qn,x),x!==C.cache&&ww(f,[qn],m,!0))),kr(c,f,f.pendingProps.children,m),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function Ks(c){c.flags|=4}function l2(c,f,m,x,C){if((f=(c.mode&32)!==0)&&(f=!1),f){if(c.flags|=16777216,(C&335544128)===C)if(c.stateNode.complete)c.flags|=8192;else if(UT())c.flags|=8192;else throw cc=nv,kw}else c.flags&=-16777217}function yT(c,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!ML(f))if(UT())c.flags|=8192;else throw cc=nv,kw}function xv(c,f){f!==null&&(c.flags|=4),c.flags&16384&&(f=c.tag!==22?_n():536870912,c.lanes|=f,dd|=f)}function Rh(c,f){if(!bt)switch(c.tailMode){case"hidden":f=c.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?c.tail=null:m.sibling=null;break;case"collapsed":m=c.tail;for(var x=null;m!==null;)m.alternate!==null&&(x=m),m=m.sibling;x===null?f||c.tail===null?c.tail=null:c.tail.sibling=null:x.sibling=null}}function Qt(c){var f=c.alternate!==null&&c.alternate.child===c.child,m=0,x=0;if(f)for(var C=c.child;C!==null;)m|=C.lanes|C.childLanes,x|=C.subtreeFlags&65011712,x|=C.flags&65011712,C.return=c,C=C.sibling;else for(C=c.child;C!==null;)m|=C.lanes|C.childLanes,x|=C.subtreeFlags,x|=C.flags,C.return=c,C=C.sibling;return c.subtreeFlags|=x,c.childLanes=m,f}function Tee(c,f,m){var x=f.pendingProps;switch(gw(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(f),null;case 1:return Qt(f),null;case 3:return m=f.stateNode,x=null,c!==null&&(x=c.memoizedState.cache),f.memoizedState.cache!==x&&(f.flags|=2048),Vs(qn),J(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(c===null||c.child===null)&&(Qu(f)?Ks(f):c===null||c.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,yw())),Qt(f),null;case 26:var C=f.type,A=f.memoizedState;return c===null?(Ks(f),A!==null?(Qt(f),yT(f,A)):(Qt(f),l2(f,C,null,x,m))):A?A!==c.memoizedState?(Ks(f),Qt(f),yT(f,A)):(Qt(f),f.flags&=-16777217):(c=c.memoizedProps,c!==x&&Ks(f),Qt(f),l2(f,C,c,x,m)),null;case 27:if(ge(f),m=ee.current,C=f.type,c!==null&&f.stateNode!=null)c.memoizedProps!==x&&Ks(f);else{if(!x){if(f.stateNode===null)throw Error(r(166));return Qt(f),null}c=U.current,Qu(f)?ZE(f):(c=kL(C,x,m),f.stateNode=c,Ks(f))}return Qt(f),null;case 5:if(ge(f),C=f.type,c!==null&&f.stateNode!=null)c.memoizedProps!==x&&Ks(f);else{if(!x){if(f.stateNode===null)throw Error(r(166));return Qt(f),null}if(A=U.current,Qu(f))ZE(f);else{var R=Dv(ee.current);switch(A){case 1:A=R.createElementNS("http://www.w3.org/2000/svg",C);break;case 2:A=R.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;default:switch(C){case"svg":A=R.createElementNS("http://www.w3.org/2000/svg",C);break;case"math":A=R.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;case"script":A=R.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof x.is=="string"?R.createElement("select",{is:x.is}):R.createElement("select"),x.multiple?A.multiple=!0:x.size&&(A.size=x.size);break;default:A=typeof x.is=="string"?R.createElement(C,{is:x.is}):R.createElement(C)}}A[Xn]=f,A[ui]=x;e:for(R=f.child;R!==null;){if(R.tag===5||R.tag===6)A.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===f)break e;for(;R.sibling===null;){if(R.return===null||R.return===f)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}f.stateNode=A;e:switch(Nr(A,C,x),C){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&Ks(f)}}return Qt(f),l2(f,f.type,c===null?null:c.memoizedProps,f.pendingProps,m),null;case 6:if(c&&f.stateNode!=null)c.memoizedProps!==x&&Ks(f);else{if(typeof x!="string"&&f.stateNode===null)throw Error(r(166));if(c=ee.current,Qu(f)){if(c=f.stateNode,m=f.memoizedProps,x=null,C=Sr,C!==null)switch(C.tag){case 27:case 5:x=C.memoizedProps}c[Xn]=f,c=!!(c.nodeValue===m||x!==null&&x.suppressHydrationWarning===!0||pL(c.nodeValue,m)),c||Go(f,!0)}else c=Dv(c).createTextNode(x),c[Xn]=f,f.stateNode=c}return Qt(f),null;case 31:if(m=f.memoizedState,c===null||c.memoizedState!==null){if(x=Qu(f),m!==null){if(c===null){if(!x)throw Error(r(318));if(c=f.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(557));c[Xn]=f}else ic(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Qt(f),c=!1}else m=yw(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=m),c=!0;if(!c)return f.flags&256?(Ri(f),f):(Ri(f),null);if((f.flags&128)!==0)throw Error(r(558))}return Qt(f),null;case 13:if(x=f.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(C=Qu(f),x!==null&&x.dehydrated!==null){if(c===null){if(!C)throw Error(r(318));if(C=f.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[Xn]=f}else ic(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Qt(f),C=!1}else C=yw(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=C),C=!0;if(!C)return f.flags&256?(Ri(f),f):(Ri(f),null)}return Ri(f),(f.flags&128)!==0?(f.lanes=m,f):(m=x!==null,c=c!==null&&c.memoizedState!==null,m&&(x=f.child,C=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(C=x.alternate.memoizedState.cachePool.pool),A=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(A=x.memoizedState.cachePool.pool),A!==C&&(x.flags|=2048)),m!==c&&m&&(f.child.flags|=8192),xv(f,f.updateQueue),Qt(f),null);case 4:return J(),c===null&&T2(f.stateNode.containerInfo),Qt(f),null;case 10:return Vs(f.type),Qt(f),null;case 19:if(X(Tn),x=f.memoizedState,x===null)return Qt(f),null;if(C=(f.flags&128)!==0,A=x.rendering,A===null)if(C)Rh(x,!1);else{if(bn!==0||c!==null&&(c.flags&128)!==0)for(c=f.child;c!==null;){if(A=sv(c),A!==null){for(f.flags|=128,Rh(x,!1),c=A.updateQueue,f.updateQueue=c,xv(f,c),f.subtreeFlags=0,c=m,m=f.child;m!==null;)GE(m,c),m=m.sibling;return F(Tn,Tn.current&1|2),bt&&Hs(f,x.treeForkCount),f.child}c=c.sibling}x.tail!==null&&Xt()>Cv&&(f.flags|=128,C=!0,Rh(x,!1),f.lanes=4194304)}else{if(!C)if(c=sv(A),c!==null){if(f.flags|=128,C=!0,c=c.updateQueue,f.updateQueue=c,xv(f,c),Rh(x,!0),x.tail===null&&x.tailMode==="hidden"&&!A.alternate&&!bt)return Qt(f),null}else 2*Xt()-x.renderingStartTime>Cv&&m!==536870912&&(f.flags|=128,C=!0,Rh(x,!1),f.lanes=4194304);x.isBackwards?(A.sibling=f.child,f.child=A):(c=x.last,c!==null?c.sibling=A:f.child=A,x.last=A)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=Xt(),c.sibling=null,m=Tn.current,F(Tn,C?m&1|2:m&1),bt&&Hs(f,x.treeForkCount),c):(Qt(f),null);case 22:case 23:return Ri(f),Lw(),x=f.memoizedState!==null,c!==null?c.memoizedState!==null!==x&&(f.flags|=8192):x&&(f.flags|=8192),x?(m&536870912)!==0&&(f.flags&128)===0&&(Qt(f),f.subtreeFlags&6&&(f.flags|=8192)):Qt(f),m=f.updateQueue,m!==null&&xv(f,m.retryQueue),m=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),x=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==m&&(f.flags|=2048),c!==null&&X(oc),null;case 24:return m=null,c!==null&&(m=c.memoizedState.cache),f.memoizedState.cache!==m&&(f.flags|=2048),Vs(qn),Qt(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function Lee(c,f){switch(gw(f),f.tag){case 1:return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 3:return Vs(qn),J(),c=f.flags,(c&65536)!==0&&(c&128)===0?(f.flags=c&-65537|128,f):null;case 26:case 27:case 5:return ge(f),null;case 31:if(f.memoizedState!==null){if(Ri(f),f.alternate===null)throw Error(r(340));ic()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 13:if(Ri(f),c=f.memoizedState,c!==null&&c.dehydrated!==null){if(f.alternate===null)throw Error(r(340));ic()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 19:return X(Tn),null;case 4:return J(),null;case 10:return Vs(f.type),null;case 22:case 23:return Ri(f),Lw(),c!==null&&X(oc),c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 24:return Vs(qn),null;case 25:return null;default:return null}}function xT(c,f){switch(gw(f),f.tag){case 3:Vs(qn),J();break;case 26:case 27:case 5:ge(f);break;case 4:J();break;case 31:f.memoizedState!==null&&Ri(f);break;case 13:Ri(f);break;case 19:X(Tn);break;case 10:Vs(f.type);break;case 22:case 23:Ri(f),Lw(),c!==null&&X(oc);break;case 24:Vs(qn)}}function Ih(c,f){try{var m=f.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var C=x.next;m=C;do{if((m.tag&c)===c){x=void 0;var A=m.create,R=m.inst;x=A(),R.destroy=x}m=m.next}while(m!==C)}}catch(Y){Pt(f,f.return,Y)}}function Jo(c,f,m){try{var x=f.updateQueue,C=x!==null?x.lastEffect:null;if(C!==null){var A=C.next;x=A;do{if((x.tag&c)===c){var R=x.inst,Y=R.destroy;if(Y!==void 0){R.destroy=void 0,C=f;var te=m,le=Y;try{le()}catch(pe){Pt(C,te,pe)}}}x=x.next}while(x!==A)}}catch(pe){Pt(f,f.return,pe)}}function bT(c){var f=c.updateQueue;if(f!==null){var m=c.stateNode;try{u_(f,m)}catch(x){Pt(c,c.return,x)}}}function wT(c,f,m){m.props=fc(c.type,c.memoizedProps),m.state=c.memoizedState;try{m.componentWillUnmount()}catch(x){Pt(c,f,x)}}function $h(c,f){try{var m=c.ref;if(m!==null){switch(c.tag){case 26:case 27:case 5:var x=c.stateNode;break;case 30:x=c.stateNode;break;default:x=c.stateNode}typeof m=="function"?c.refCleanup=m(x):m.current=x}}catch(C){Pt(c,f,C)}}function ss(c,f){var m=c.ref,x=c.refCleanup;if(m!==null)if(typeof x=="function")try{x()}catch(C){Pt(c,f,C)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(C){Pt(c,f,C)}else m.current=null}function jT(c){var f=c.type,m=c.memoizedProps,x=c.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":m.autoFocus&&x.focus();break e;case"img":m.src?x.src=m.src:m.srcSet&&(x.srcset=m.srcSet)}}catch(C){Pt(c,c.return,C)}}function c2(c,f,m){try{var x=c.stateNode;Jee(x,c.type,m,f),x[ui]=f}catch(C){Pt(c,c.return,C)}}function ST(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&sl(c.type)||c.tag===4}function u2(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||ST(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&sl(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function d2(c,f,m){var x=c.tag;if(x===5||x===6)c=c.stateNode,f?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(c,f):(f=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,f.appendChild(c),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=qs));else if(x!==4&&(x===27&&sl(c.type)&&(m=c.stateNode,f=null),c=c.child,c!==null))for(d2(c,f,m),c=c.sibling;c!==null;)d2(c,f,m),c=c.sibling}function bv(c,f,m){var x=c.tag;if(x===5||x===6)c=c.stateNode,f?m.insertBefore(c,f):m.appendChild(c);else if(x!==4&&(x===27&&sl(c.type)&&(m=c.stateNode),c=c.child,c!==null))for(bv(c,f,m),c=c.sibling;c!==null;)bv(c,f,m),c=c.sibling}function CT(c){var f=c.stateNode,m=c.memoizedProps;try{for(var x=c.type,C=f.attributes;C.length;)f.removeAttributeNode(C[0]);Nr(f,x,m),f[Xn]=c,f[ui]=m}catch(A){Pt(c,c.return,A)}}var Xs=!1,Hn=!1,f2=!1,kT=typeof WeakSet=="function"?WeakSet:Set,fr=null;function Oee(c,f){if(c=c.containerInfo,M2=Fv,c=IE(c),aw(c)){if("selectionStart"in c)var m={start:c.selectionStart,end:c.selectionEnd};else e:{m=(m=c.ownerDocument)&&m.defaultView||window;var x=m.getSelection&&m.getSelection();if(x&&x.rangeCount!==0){m=x.anchorNode;var C=x.anchorOffset,A=x.focusNode;x=x.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var R=0,Y=-1,te=-1,le=0,pe=0,xe=c,ce=null;t:for(;;){for(var fe;xe!==m||C!==0&&xe.nodeType!==3||(Y=R+C),xe!==A||x!==0&&xe.nodeType!==3||(te=R+x),xe.nodeType===3&&(R+=xe.nodeValue.length),(fe=xe.firstChild)!==null;)ce=xe,xe=fe;for(;;){if(xe===c)break t;if(ce===m&&++le===C&&(Y=R),ce===A&&++pe===x&&(te=R),(fe=xe.nextSibling)!==null)break;xe=ce,ce=xe.parentNode}xe=fe}m=Y===-1||te===-1?null:{start:Y,end:te}}else m=null}m=m||{start:0,end:0}}else m=null;for(D2={focusedElem:c,selectionRange:m},Fv=!1,fr=f;fr!==null;)if(f=fr,c=f.child,(f.subtreeFlags&1028)!==0&&c!==null)c.return=f,fr=c;else for(;fr!==null;){switch(f=fr,A=f.alternate,c=f.flags,f.tag){case 0:if((c&4)!==0&&(c=f.updateQueue,c=c!==null?c.events:null,c!==null))for(m=0;m<c.length;m++)C=c[m],C.ref.impl=C.nextImpl;break;case 11:case 15:break;case 1:if((c&1024)!==0&&A!==null){c=void 0,m=f,C=A.memoizedProps,A=A.memoizedState,x=m.stateNode;try{var $e=fc(m.type,C);c=x.getSnapshotBeforeUpdate($e,A),x.__reactInternalSnapshotBeforeUpdate=c}catch(We){Pt(m,m.return,We)}}break;case 3:if((c&1024)!==0){if(c=f.stateNode.containerInfo,m=c.nodeType,m===9)I2(c);else if(m===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":I2(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error(r(163))}if(c=f.sibling,c!==null){c.return=f.return,fr=c;break}fr=f.return}}function NT(c,f,m){var x=m.flags;switch(m.tag){case 0:case 11:case 15:Qs(c,m),x&4&&Ih(5,m);break;case 1:if(Qs(c,m),x&4)if(c=m.stateNode,f===null)try{c.componentDidMount()}catch(R){Pt(m,m.return,R)}else{var C=fc(m.type,f.memoizedProps);f=f.memoizedState;try{c.componentDidUpdate(C,f,c.__reactInternalSnapshotBeforeUpdate)}catch(R){Pt(m,m.return,R)}}x&64&&bT(m),x&512&&$h(m,m.return);break;case 3:if(Qs(c,m),x&64&&(c=m.updateQueue,c!==null)){if(f=null,m.child!==null)switch(m.child.tag){case 27:case 5:f=m.child.stateNode;break;case 1:f=m.child.stateNode}try{u_(c,f)}catch(R){Pt(m,m.return,R)}}break;case 27:f===null&&x&4&&CT(m);case 26:case 5:Qs(c,m),f===null&&x&4&&jT(m),x&512&&$h(m,m.return);break;case 12:Qs(c,m);break;case 31:Qs(c,m),x&4&&_T(c,m);break;case 13:Qs(c,m),x&4&&TT(c,m),x&64&&(c=m.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(m=Fee.bind(null,m),ote(c,m))));break;case 22:if(x=m.memoizedState!==null||Xs,!x){f=f!==null&&f.memoizedState!==null||Hn,C=Xs;var A=Hn;Xs=x,(Hn=f)&&!A?Js(c,m,(m.subtreeFlags&8772)!==0):Qs(c,m),Xs=C,Hn=A}break;case 30:break;default:Qs(c,m)}}function AT(c){var f=c.alternate;f!==null&&(c.alternate=null,AT(f)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(f=c.stateNode,f!==null&&z1(f)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var ln=null,fi=!1;function Zs(c,f,m){for(m=m.child;m!==null;)ET(c,f,m),m=m.sibling}function ET(c,f,m){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(En,m)}catch{}switch(m.tag){case 26:Hn||ss(m,f),Zs(c,f,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Hn||ss(m,f);var x=ln,C=fi;sl(m.type)&&(ln=m.stateNode,fi=!1),Zs(c,f,m),Wh(m.stateNode),ln=x,fi=C;break;case 5:Hn||ss(m,f);case 6:if(x=ln,C=fi,ln=null,Zs(c,f,m),ln=x,fi=C,ln!==null)if(fi)try{(ln.nodeType===9?ln.body:ln.nodeName==="HTML"?ln.ownerDocument.body:ln).removeChild(m.stateNode)}catch(A){Pt(m,f,A)}else try{ln.removeChild(m.stateNode)}catch(A){Pt(m,f,A)}break;case 18:ln!==null&&(fi?(c=ln,bL(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,m.stateNode),xd(c)):bL(ln,m.stateNode));break;case 4:x=ln,C=fi,ln=m.stateNode.containerInfo,fi=!0,Zs(c,f,m),ln=x,fi=C;break;case 0:case 11:case 14:case 15:Jo(2,m,f),Hn||Jo(4,m,f),Zs(c,f,m);break;case 1:Hn||(ss(m,f),x=m.stateNode,typeof x.componentWillUnmount=="function"&&wT(m,f,x)),Zs(c,f,m);break;case 21:Zs(c,f,m);break;case 22:Hn=(x=Hn)||m.memoizedState!==null,Zs(c,f,m),Hn=x;break;default:Zs(c,f,m)}}function _T(c,f){if(f.memoizedState===null&&(c=f.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{xd(c)}catch(m){Pt(f,f.return,m)}}}function TT(c,f){if(f.memoizedState===null&&(c=f.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{xd(c)}catch(m){Pt(f,f.return,m)}}function Mee(c){switch(c.tag){case 31:case 13:case 19:var f=c.stateNode;return f===null&&(f=c.stateNode=new kT),f;case 22:return c=c.stateNode,f=c._retryCache,f===null&&(f=c._retryCache=new kT),f;default:throw Error(r(435,c.tag))}}function wv(c,f){var m=Mee(c);f.forEach(function(x){if(!m.has(x)){m.add(x);var C=zee.bind(null,c,x);x.then(C,C)}})}function hi(c,f){var m=f.deletions;if(m!==null)for(var x=0;x<m.length;x++){var C=m[x],A=c,R=f,Y=R;e:for(;Y!==null;){switch(Y.tag){case 27:if(sl(Y.type)){ln=Y.stateNode,fi=!1;break e}break;case 5:ln=Y.stateNode,fi=!1;break e;case 3:case 4:ln=Y.stateNode.containerInfo,fi=!0;break e}Y=Y.return}if(ln===null)throw Error(r(160));ET(A,R,C),ln=null,fi=!1,A=C.alternate,A!==null&&(A.return=null),C.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)LT(f,c),f=f.sibling}var Ma=null;function LT(c,f){var m=c.alternate,x=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:hi(f,c),pi(c),x&4&&(Jo(3,c,c.return),Ih(3,c),Jo(5,c,c.return));break;case 1:hi(f,c),pi(c),x&512&&(Hn||m===null||ss(m,m.return)),x&64&&Xs&&(c=c.updateQueue,c!==null&&(x=c.callbacks,x!==null&&(m=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=m===null?x:m.concat(x))));break;case 26:var C=Ma;if(hi(f,c),pi(c),x&512&&(Hn||m===null||ss(m,m.return)),x&4){var A=m!==null?m.memoizedState:null;if(x=c.memoizedState,m===null)if(x===null)if(c.stateNode===null){e:{x=c.type,m=c.memoizedProps,C=C.ownerDocument||C;t:switch(x){case"title":A=C.getElementsByTagName("title")[0],(!A||A[dh]||A[Xn]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=C.createElement(x),C.head.insertBefore(A,C.querySelector("head > title"))),Nr(A,x,m),A[Xn]=c,dr(A),x=A;break e;case"link":var R=LL("link","href",C).get(x+(m.href||""));if(R){for(var Y=0;Y<R.length;Y++)if(A=R[Y],A.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&A.getAttribute("rel")===(m.rel==null?null:m.rel)&&A.getAttribute("title")===(m.title==null?null:m.title)&&A.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){R.splice(Y,1);break t}}A=C.createElement(x),Nr(A,x,m),C.head.appendChild(A);break;case"meta":if(R=LL("meta","content",C).get(x+(m.content||""))){for(Y=0;Y<R.length;Y++)if(A=R[Y],A.getAttribute("content")===(m.content==null?null:""+m.content)&&A.getAttribute("name")===(m.name==null?null:m.name)&&A.getAttribute("property")===(m.property==null?null:m.property)&&A.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&A.getAttribute("charset")===(m.charSet==null?null:m.charSet)){R.splice(Y,1);break t}}A=C.createElement(x),Nr(A,x,m),C.head.appendChild(A);break;default:throw Error(r(468,x))}A[Xn]=c,dr(A),x=A}c.stateNode=x}else OL(C,c.type,c.stateNode);else c.stateNode=TL(C,x,c.memoizedProps);else A!==x?(A===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):A.count--,x===null?OL(C,c.type,c.stateNode):TL(C,x,c.memoizedProps)):x===null&&c.stateNode!==null&&c2(c,c.memoizedProps,m.memoizedProps)}break;case 27:hi(f,c),pi(c),x&512&&(Hn||m===null||ss(m,m.return)),m!==null&&x&4&&c2(c,c.memoizedProps,m.memoizedProps);break;case 5:if(hi(f,c),pi(c),x&512&&(Hn||m===null||ss(m,m.return)),c.flags&32){C=c.stateNode;try{zu(C,"")}catch($e){Pt(c,c.return,$e)}}x&4&&c.stateNode!=null&&(C=c.memoizedProps,c2(c,C,m!==null?m.memoizedProps:C)),x&1024&&(f2=!0);break;case 6:if(hi(f,c),pi(c),x&4){if(c.stateNode===null)throw Error(r(162));x=c.memoizedProps,m=c.stateNode;try{m.nodeValue=x}catch($e){Pt(c,c.return,$e)}}break;case 3:if(Iv=null,C=Ma,Ma=Pv(f.containerInfo),hi(f,c),Ma=C,pi(c),x&4&&m!==null&&m.memoizedState.isDehydrated)try{xd(f.containerInfo)}catch($e){Pt(c,c.return,$e)}f2&&(f2=!1,OT(c));break;case 4:x=Ma,Ma=Pv(c.stateNode.containerInfo),hi(f,c),pi(c),Ma=x;break;case 12:hi(f,c),pi(c);break;case 31:hi(f,c),pi(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,wv(c,x)));break;case 13:hi(f,c),pi(c),c.child.flags&8192&&c.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Sv=Xt()),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,wv(c,x)));break;case 22:C=c.memoizedState!==null;var te=m!==null&&m.memoizedState!==null,le=Xs,pe=Hn;if(Xs=le||C,Hn=pe||te,hi(f,c),Hn=pe,Xs=le,pi(c),x&8192)e:for(f=c.stateNode,f._visibility=C?f._visibility&-2:f._visibility|1,C&&(m===null||te||Xs||Hn||hc(c)),m=null,f=c;;){if(f.tag===5||f.tag===26){if(m===null){te=m=f;try{if(A=te.stateNode,C)R=A.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{Y=te.stateNode;var xe=te.memoizedProps.style,ce=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;Y.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch($e){Pt(te,te.return,$e)}}}else if(f.tag===6){if(m===null){te=f;try{te.stateNode.nodeValue=C?"":te.memoizedProps}catch($e){Pt(te,te.return,$e)}}}else if(f.tag===18){if(m===null){te=f;try{var fe=te.stateNode;C?wL(fe,!0):wL(te.stateNode,!1)}catch($e){Pt(te,te.return,$e)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===c)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break e;for(;f.sibling===null;){if(f.return===null||f.return===c)break e;m===f&&(m=null),f=f.return}m===f&&(m=null),f.sibling.return=f.return,f=f.sibling}x&4&&(x=c.updateQueue,x!==null&&(m=x.retryQueue,m!==null&&(x.retryQueue=null,wv(c,m))));break;case 19:hi(f,c),pi(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,wv(c,x)));break;case 30:break;case 21:break;default:hi(f,c),pi(c)}}function pi(c){var f=c.flags;if(f&2){try{for(var m,x=c.return;x!==null;){if(ST(x)){m=x;break}x=x.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var C=m.stateNode,A=u2(c);bv(c,A,C);break;case 5:var R=m.stateNode;m.flags&32&&(zu(R,""),m.flags&=-33);var Y=u2(c);bv(c,Y,R);break;case 3:case 4:var te=m.stateNode.containerInfo,le=u2(c);d2(c,le,te);break;default:throw Error(r(161))}}catch(pe){Pt(c,c.return,pe)}c.flags&=-3}f&4096&&(c.flags&=-4097)}function OT(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var f=c;OT(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),c=c.sibling}}function Qs(c,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)NT(c,f.alternate,f),f=f.sibling}function hc(c){for(c=c.child;c!==null;){var f=c;switch(f.tag){case 0:case 11:case 14:case 15:Jo(4,f,f.return),hc(f);break;case 1:ss(f,f.return);var m=f.stateNode;typeof m.componentWillUnmount=="function"&&wT(f,f.return,m),hc(f);break;case 27:Wh(f.stateNode);case 26:case 5:ss(f,f.return),hc(f);break;case 22:f.memoizedState===null&&hc(f);break;case 30:hc(f);break;default:hc(f)}c=c.sibling}}function Js(c,f,m){for(m=m&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var x=f.alternate,C=c,A=f,R=A.flags;switch(A.tag){case 0:case 11:case 15:Js(C,A,m),Ih(4,A);break;case 1:if(Js(C,A,m),x=A,C=x.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(le){Pt(x,x.return,le)}if(x=A,C=x.updateQueue,C!==null){var Y=x.stateNode;try{var te=C.shared.hiddenCallbacks;if(te!==null)for(C.shared.hiddenCallbacks=null,C=0;C<te.length;C++)c_(te[C],Y)}catch(le){Pt(x,x.return,le)}}m&&R&64&&bT(A),$h(A,A.return);break;case 27:CT(A);case 26:case 5:Js(C,A,m),m&&x===null&&R&4&&jT(A),$h(A,A.return);break;case 12:Js(C,A,m);break;case 31:Js(C,A,m),m&&R&4&&_T(C,A);break;case 13:Js(C,A,m),m&&R&4&&TT(C,A);break;case 22:A.memoizedState===null&&Js(C,A,m),$h(A,A.return);break;case 30:break;default:Js(C,A,m)}f=f.sibling}}function h2(c,f){var m=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),c=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(c=f.memoizedState.cachePool.pool),c!==m&&(c!=null&&c.refCount++,m!=null&&Ch(m))}function p2(c,f){c=null,f.alternate!==null&&(c=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==c&&(f.refCount++,c!=null&&Ch(c))}function Da(c,f,m,x){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)MT(c,f,m,x),f=f.sibling}function MT(c,f,m,x){var C=f.flags;switch(f.tag){case 0:case 11:case 15:Da(c,f,m,x),C&2048&&Ih(9,f);break;case 1:Da(c,f,m,x);break;case 3:Da(c,f,m,x),C&2048&&(c=null,f.alternate!==null&&(c=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==c&&(f.refCount++,c!=null&&Ch(c)));break;case 12:if(C&2048){Da(c,f,m,x),c=f.stateNode;try{var A=f.memoizedProps,R=A.id,Y=A.onPostCommit;typeof Y=="function"&&Y(R,f.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(te){Pt(f,f.return,te)}}else Da(c,f,m,x);break;case 31:Da(c,f,m,x);break;case 13:Da(c,f,m,x);break;case 23:break;case 22:A=f.stateNode,R=f.alternate,f.memoizedState!==null?A._visibility&2?Da(c,f,m,x):Bh(c,f):A._visibility&2?Da(c,f,m,x):(A._visibility|=2,ld(c,f,m,x,(f.subtreeFlags&10256)!==0||!1)),C&2048&&h2(R,f);break;case 24:Da(c,f,m,x),C&2048&&p2(f.alternate,f);break;default:Da(c,f,m,x)}}function ld(c,f,m,x,C){for(C=C&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var A=c,R=f,Y=m,te=x,le=R.flags;switch(R.tag){case 0:case 11:case 15:ld(A,R,Y,te,C),Ih(8,R);break;case 23:break;case 22:var pe=R.stateNode;R.memoizedState!==null?pe._visibility&2?ld(A,R,Y,te,C):Bh(A,R):(pe._visibility|=2,ld(A,R,Y,te,C)),C&&le&2048&&h2(R.alternate,R);break;case 24:ld(A,R,Y,te,C),C&&le&2048&&p2(R.alternate,R);break;default:ld(A,R,Y,te,C)}f=f.sibling}}function Bh(c,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var m=c,x=f,C=x.flags;switch(x.tag){case 22:Bh(m,x),C&2048&&h2(x.alternate,x);break;case 24:Bh(m,x),C&2048&&p2(x.alternate,x);break;default:Bh(m,x)}f=f.sibling}}var qh=8192;function cd(c,f,m){if(c.subtreeFlags&qh)for(c=c.child;c!==null;)DT(c,f,m),c=c.sibling}function DT(c,f,m){switch(c.tag){case 26:cd(c,f,m),c.flags&qh&&c.memoizedState!==null&&xte(m,Ma,c.memoizedState,c.memoizedProps);break;case 5:cd(c,f,m);break;case 3:case 4:var x=Ma;Ma=Pv(c.stateNode.containerInfo),cd(c,f,m),Ma=x;break;case 22:c.memoizedState===null&&(x=c.alternate,x!==null&&x.memoizedState!==null?(x=qh,qh=16777216,cd(c,f,m),qh=x):cd(c,f,m));break;default:cd(c,f,m)}}function PT(c){var f=c.alternate;if(f!==null&&(c=f.child,c!==null)){f.child=null;do f=c.sibling,c.sibling=null,c=f;while(c!==null)}}function Fh(c){var f=c.deletions;if((c.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var x=f[m];fr=x,IT(x,c)}PT(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)RT(c),c=c.sibling}function RT(c){switch(c.tag){case 0:case 11:case 15:Fh(c),c.flags&2048&&Jo(9,c,c.return);break;case 3:Fh(c);break;case 12:Fh(c);break;case 22:var f=c.stateNode;c.memoizedState!==null&&f._visibility&2&&(c.return===null||c.return.tag!==13)?(f._visibility&=-3,jv(c)):Fh(c);break;default:Fh(c)}}function jv(c){var f=c.deletions;if((c.flags&16)!==0){if(f!==null)for(var m=0;m<f.length;m++){var x=f[m];fr=x,IT(x,c)}PT(c)}for(c=c.child;c!==null;){switch(f=c,f.tag){case 0:case 11:case 15:Jo(8,f,f.return),jv(f);break;case 22:m=f.stateNode,m._visibility&2&&(m._visibility&=-3,jv(f));break;default:jv(f)}c=c.sibling}}function IT(c,f){for(;fr!==null;){var m=fr;switch(m.tag){case 0:case 11:case 15:Jo(8,m,f);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var x=m.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Ch(m.memoizedState.cache)}if(x=m.child,x!==null)x.return=m,fr=x;else e:for(m=c;fr!==null;){x=fr;var C=x.sibling,A=x.return;if(AT(x),x===m){fr=null;break e}if(C!==null){C.return=A,fr=C;break e}fr=A}}}var Dee={getCacheForType:function(c){var f=Cr(qn),m=f.data.get(c);return m===void 0&&(m=c(),f.data.set(c,m)),m},cacheSignal:function(){return Cr(qn).controller.signal}},Pee=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Vt=null,ut=null,mt=0,Dt=0,Ii=null,el=!1,ud=!1,m2=!1,eo=0,bn=0,tl=0,pc=0,g2=0,$i=0,dd=0,zh=null,mi=null,v2=!1,Sv=0,$T=0,Cv=1/0,kv=null,nl=null,Zn=0,rl=null,fd=null,to=0,y2=0,x2=null,BT=null,Hh=0,b2=null;function Bi(){return(Lt&2)!==0&&mt!==0?mt&-mt:B.T!==null?N2():Oi()}function qT(){if($i===0)if((mt&536870912)===0||bt){var c=$s;$s<<=1,($s&3932160)===0&&($s=262144),$i=c}else $i=536870912;return c=Pi.current,c!==null&&(c.flags|=32),$i}function gi(c,f,m){(c===Vt&&(Dt===2||Dt===9)||c.cancelPendingCommit!==null)&&(hd(c,0),il(c,mt,$i,!1)),jr(c,m),((Lt&2)===0||c!==Vt)&&(c===Vt&&((Lt&2)===0&&(pc|=m),bn===4&&il(c,mt,$i,!1)),os(c))}function FT(c,f,m){if((Lt&6)!==0)throw Error(r(327));var x=!m&&(f&127)===0&&(f&c.expiredLanes)===0||wr(c,f),C=x?$ee(c,f):j2(c,f,!0),A=x;do{if(C===0){ud&&!x&&il(c,f,0,!1);break}else{if(m=c.current.alternate,A&&!Ree(m)){C=j2(c,f,!1),A=!1;continue}if(C===2){if(A=f,c.errorRecoveryDisabledLanes&A)var R=0;else R=c.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){f=R;e:{var Y=c;C=zh;var te=Y.current.memoizedState.isDehydrated;if(te&&(hd(Y,R).flags|=256),R=j2(Y,R,!1),R!==2){if(m2&&!te){Y.errorRecoveryDisabledLanes|=A,pc|=A,C=4;break e}A=mi,mi=C,A!==null&&(mi===null?mi=A:mi.push.apply(mi,A))}C=R}if(A=!1,C!==2)continue}}if(C===1){hd(c,0),il(c,f,0,!0);break}e:{switch(x=c,A=C,A){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:il(x,f,$i,!el);break e;case 2:mi=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(C=Sv+300-Xt(),10<C)){if(il(x,f,$i,!el),Bn(x,0,!0)!==0)break e;to=f,x.timeoutHandle=yL(zT.bind(null,x,m,mi,kv,v2,f,$i,pc,dd,el,A,"Throttled",-0,0),C);break e}zT(x,m,mi,kv,v2,f,$i,pc,dd,el,A,null,-0,0)}}break}while(!0);os(c)}function zT(c,f,m,x,C,A,R,Y,te,le,pe,xe,ce,fe){if(c.timeoutHandle=-1,xe=f.subtreeFlags,xe&8192||(xe&16785408)===16785408){xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qs},DT(f,A,xe);var $e=(A&62914560)===A?Sv-Xt():(A&4194048)===A?$T-Xt():0;if($e=bte(xe,$e),$e!==null){to=A,c.cancelPendingCommit=$e(XT.bind(null,c,f,A,m,x,C,R,Y,te,pe,xe,null,ce,fe)),il(c,A,R,!le);return}}XT(c,f,A,m,x,C,R,Y,te)}function Ree(c){for(var f=c;;){var m=f.tag;if((m===0||m===11||m===15)&&f.flags&16384&&(m=f.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var x=0;x<m.length;x++){var C=m[x],A=C.getSnapshot;C=C.value;try{if(!Mi(A(),C))return!1}catch{return!1}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function il(c,f,m,x){f&=~g2,f&=~pc,c.suspendedLanes|=f,c.pingedLanes&=~f,x&&(c.warmLanes|=f),x=c.expirationTimes;for(var C=f;0<C;){var A=31-at(C),R=1<<A;x[A]=-1,C&=~R}m!==0&&Ti(c,m,f)}function Nv(){return(Lt&6)===0?(Uh(0),!1):!0}function w2(){if(ut!==null){if(Dt===0)var c=ut.return;else c=ut,Us=ac=null,Iw(c),rd=null,Nh=0,c=ut;for(;c!==null;)xT(c.alternate,c),c=c.return;ut=null}}function hd(c,f){var m=c.timeoutHandle;m!==-1&&(c.timeoutHandle=-1,nte(m)),m=c.cancelPendingCommit,m!==null&&(c.cancelPendingCommit=null,m()),to=0,w2(),Vt=c,ut=m=zs(c.current,null),mt=f,Dt=0,Ii=null,el=!1,ud=wr(c,f),m2=!1,dd=$i=g2=pc=tl=bn=0,mi=zh=null,v2=!1,(f&8)!==0&&(f|=f&32);var x=c.entangledLanes;if(x!==0)for(c=c.entanglements,x&=f;0<x;){var C=31-at(x),A=1<<C;f|=c[C],x&=~A}return eo=f,Wg(),m}function HT(c,f){rt=null,B.H=Dh,f===nd||f===tv?(f=a_(),Dt=3):f===kw?(f=a_(),Dt=4):Dt=f===Jw?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,Ii=f,ut===null&&(bn=1,mv(c,ia(f,c.current)))}function UT(){var c=Pi.current;return c===null?!0:(mt&4194048)===mt?la===null:(mt&62914560)===mt||(mt&536870912)!==0?c===la:!1}function VT(){var c=B.H;return B.H=Dh,c===null?Dh:c}function GT(){var c=B.A;return B.A=Dee,c}function Av(){bn=4,el||(mt&4194048)!==mt&&Pi.current!==null||(ud=!0),(tl&134217727)===0&&(pc&134217727)===0||Vt===null||il(Vt,mt,$i,!1)}function j2(c,f,m){var x=Lt;Lt|=2;var C=VT(),A=GT();(Vt!==c||mt!==f)&&(kv=null,hd(c,f)),f=!1;var R=bn;e:do try{if(Dt!==0&&ut!==null){var Y=ut,te=Ii;switch(Dt){case 8:w2(),R=6;break e;case 3:case 2:case 9:case 6:Pi.current===null&&(f=!0);var le=Dt;if(Dt=0,Ii=null,pd(c,Y,te,le),m&&ud){R=0;break e}break;default:le=Dt,Dt=0,Ii=null,pd(c,Y,te,le)}}Iee(),R=bn;break}catch(pe){HT(c,pe)}while(!0);return f&&c.shellSuspendCounter++,Us=ac=null,Lt=x,B.H=C,B.A=A,ut===null&&(Vt=null,mt=0,Wg()),R}function Iee(){for(;ut!==null;)WT(ut)}function $ee(c,f){var m=Lt;Lt|=2;var x=VT(),C=GT();Vt!==c||mt!==f?(kv=null,Cv=Xt()+500,hd(c,f)):ud=wr(c,f);e:do try{if(Dt!==0&&ut!==null){f=ut;var A=Ii;t:switch(Dt){case 1:Dt=0,Ii=null,pd(c,f,A,1);break;case 2:case 9:if(r_(A)){Dt=0,Ii=null,YT(f);break}f=function(){Dt!==2&&Dt!==9||Vt!==c||(Dt=7),os(c)},A.then(f,f);break e;case 3:Dt=7;break e;case 4:Dt=5;break e;case 7:r_(A)?(Dt=0,Ii=null,YT(f)):(Dt=0,Ii=null,pd(c,f,A,7));break;case 5:var R=null;switch(ut.tag){case 26:R=ut.memoizedState;case 5:case 27:var Y=ut;if(R?ML(R):Y.stateNode.complete){Dt=0,Ii=null;var te=Y.sibling;if(te!==null)ut=te;else{var le=Y.return;le!==null?(ut=le,Ev(le)):ut=null}break t}}Dt=0,Ii=null,pd(c,f,A,5);break;case 6:Dt=0,Ii=null,pd(c,f,A,6);break;case 8:w2(),bn=6;break e;default:throw Error(r(462))}}Bee();break}catch(pe){HT(c,pe)}while(!0);return Us=ac=null,B.H=x,B.A=C,Lt=m,ut!==null?0:(Vt=null,mt=0,Wg(),bn)}function Bee(){for(;ut!==null&&!Tt();)WT(ut)}function WT(c){var f=vT(c.alternate,c,eo);c.memoizedProps=c.pendingProps,f===null?Ev(c):ut=f}function YT(c){var f=c,m=f.alternate;switch(f.tag){case 15:case 0:f=dT(m,f,f.pendingProps,f.type,void 0,mt);break;case 11:f=dT(m,f,f.pendingProps,f.type.render,f.ref,mt);break;case 5:Iw(f);default:xT(m,f),f=ut=GE(f,eo),f=vT(m,f,eo)}c.memoizedProps=c.pendingProps,f===null?Ev(c):ut=f}function pd(c,f,m,x){Us=ac=null,Iw(f),rd=null,Nh=0;var C=f.return;try{if(Aee(c,C,f,m,mt)){bn=1,mv(c,ia(m,c.current)),ut=null;return}}catch(A){if(C!==null)throw ut=C,A;bn=1,mv(c,ia(m,c.current)),ut=null;return}f.flags&32768?(bt||x===1?c=!0:ud||(mt&536870912)!==0?c=!1:(el=c=!0,(x===2||x===9||x===3||x===6)&&(x=Pi.current,x!==null&&x.tag===13&&(x.flags|=16384))),KT(f,c)):Ev(f)}function Ev(c){var f=c;do{if((f.flags&32768)!==0){KT(f,el);return}c=f.return;var m=Tee(f.alternate,f,eo);if(m!==null){ut=m;return}if(f=f.sibling,f!==null){ut=f;return}ut=f=c}while(f!==null);bn===0&&(bn=5)}function KT(c,f){do{var m=Lee(c.alternate,c);if(m!==null){m.flags&=32767,ut=m;return}if(m=c.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!f&&(c=c.sibling,c!==null)){ut=c;return}ut=c=m}while(c!==null);bn=6,ut=null}function XT(c,f,m,x,C,A,R,Y,te){c.cancelPendingCommit=null;do _v();while(Zn!==0);if((Lt&6)!==0)throw Error(r(327));if(f!==null){if(f===c.current)throw Error(r(177));if(A=f.lanes|f.childLanes,A|=uw,hn(c,m,A,R,Y,te),c===Vt&&(ut=Vt=null,mt=0),fd=f,rl=c,to=m,y2=A,x2=C,BT=x,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(c.callbackNode=null,c.callbackPriority=0,Hee(ze,function(){return tL(),null})):(c.callbackNode=null,c.callbackPriority=0),x=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||x){x=B.T,B.T=null,C=H.p,H.p=2,R=Lt,Lt|=4;try{Oee(c,f,m)}finally{Lt=R,H.p=C,B.T=x}}Zn=1,ZT(),QT(),JT()}}function ZT(){if(Zn===1){Zn=0;var c=rl,f=fd,m=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||m){m=B.T,B.T=null;var x=H.p;H.p=2;var C=Lt;Lt|=4;try{LT(f,c);var A=D2,R=IE(c.containerInfo),Y=A.focusedElem,te=A.selectionRange;if(R!==Y&&Y&&Y.ownerDocument&&RE(Y.ownerDocument.documentElement,Y)){if(te!==null&&aw(Y)){var le=te.start,pe=te.end;if(pe===void 0&&(pe=le),"selectionStart"in Y)Y.selectionStart=le,Y.selectionEnd=Math.min(pe,Y.value.length);else{var xe=Y.ownerDocument||document,ce=xe&&xe.defaultView||window;if(ce.getSelection){var fe=ce.getSelection(),$e=Y.textContent.length,We=Math.min(te.start,$e),qt=te.end===void 0?We:Math.min(te.end,$e);!fe.extend&&We>qt&&(R=qt,qt=We,We=R);var se=PE(Y,We),ne=PE(Y,qt);if(se&&ne&&(fe.rangeCount!==1||fe.anchorNode!==se.node||fe.anchorOffset!==se.offset||fe.focusNode!==ne.node||fe.focusOffset!==ne.offset)){var oe=xe.createRange();oe.setStart(se.node,se.offset),fe.removeAllRanges(),We>qt?(fe.addRange(oe),fe.extend(ne.node,ne.offset)):(oe.setEnd(ne.node,ne.offset),fe.addRange(oe))}}}}for(xe=[],fe=Y;fe=fe.parentNode;)fe.nodeType===1&&xe.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof Y.focus=="function"&&Y.focus(),Y=0;Y<xe.length;Y++){var ve=xe[Y];ve.element.scrollLeft=ve.left,ve.element.scrollTop=ve.top}}Fv=!!M2,D2=M2=null}finally{Lt=C,H.p=x,B.T=m}}c.current=f,Zn=2}}function QT(){if(Zn===2){Zn=0;var c=rl,f=fd,m=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||m){m=B.T,B.T=null;var x=H.p;H.p=2;var C=Lt;Lt|=4;try{NT(c,f.alternate,f)}finally{Lt=C,H.p=x,B.T=m}}Zn=3}}function JT(){if(Zn===4||Zn===3){Zn=0,Kn();var c=rl,f=fd,m=to,x=BT;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?Zn=5:(Zn=0,fd=rl=null,eL(c,c.pendingLanes));var C=c.pendingLanes;if(C===0&&(nl=null),Li(m),f=f.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(En,f,void 0,(f.current.flags&128)===128)}catch{}if(x!==null){f=B.T,C=H.p,H.p=2,B.T=null;try{for(var A=c.onRecoverableError,R=0;R<x.length;R++){var Y=x[R];A(Y.value,{componentStack:Y.stack})}}finally{B.T=f,H.p=C}}(to&3)!==0&&_v(),os(c),C=c.pendingLanes,(m&261930)!==0&&(C&42)!==0?c===b2?Hh++:(Hh=0,b2=c):Hh=0,Uh(0)}}function eL(c,f){(c.pooledCacheLanes&=f)===0&&(f=c.pooledCache,f!=null&&(c.pooledCache=null,Ch(f)))}function _v(){return ZT(),QT(),JT(),tL()}function tL(){if(Zn!==5)return!1;var c=rl,f=y2;y2=0;var m=Li(to),x=B.T,C=H.p;try{H.p=32>m?32:m,B.T=null,m=x2,x2=null;var A=rl,R=to;if(Zn=0,fd=rl=null,to=0,(Lt&6)!==0)throw Error(r(331));var Y=Lt;if(Lt|=4,RT(A.current),MT(A,A.current,R,m),Lt=Y,Uh(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(En,A)}catch{}return!0}finally{H.p=C,B.T=x,eL(c,f)}}function nL(c,f,m){f=ia(m,f),f=Qw(c.stateNode,f,2),c=Xo(c,f,2),c!==null&&(jr(c,2),os(c))}function Pt(c,f,m){if(c.tag===3)nL(c,c,m);else for(;f!==null;){if(f.tag===3){nL(f,c,m);break}else if(f.tag===1){var x=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(nl===null||!nl.has(x))){c=ia(m,c),m=rT(2),x=Xo(f,m,2),x!==null&&(iT(m,x,f,c),jr(x,2),os(x));break}}f=f.return}}function S2(c,f,m){var x=c.pingCache;if(x===null){x=c.pingCache=new Pee;var C=new Set;x.set(f,C)}else C=x.get(f),C===void 0&&(C=new Set,x.set(f,C));C.has(m)||(m2=!0,C.add(m),c=qee.bind(null,c,f,m),f.then(c,c))}function qee(c,f,m){var x=c.pingCache;x!==null&&x.delete(f),c.pingedLanes|=c.suspendedLanes&m,c.warmLanes&=~m,Vt===c&&(mt&m)===m&&(bn===4||bn===3&&(mt&62914560)===mt&&300>Xt()-Sv?(Lt&2)===0&&hd(c,0):g2|=m,dd===mt&&(dd=0)),os(c)}function rL(c,f){f===0&&(f=_n()),c=nc(c,f),c!==null&&(jr(c,f),os(c))}function Fee(c){var f=c.memoizedState,m=0;f!==null&&(m=f.retryLane),rL(c,m)}function zee(c,f){var m=0;switch(c.tag){case 31:case 13:var x=c.stateNode,C=c.memoizedState;C!==null&&(m=C.retryLane);break;case 19:x=c.stateNode;break;case 22:x=c.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(f),rL(c,m)}function Hee(c,f){return Be(c,f)}var Tv=null,md=null,C2=!1,Lv=!1,k2=!1,al=0;function os(c){c!==md&&c.next===null&&(md===null?Tv=md=c:md=md.next=c),Lv=!0,C2||(C2=!0,Vee())}function Uh(c,f){if(!k2&&Lv){k2=!0;do for(var m=!1,x=Tv;x!==null;){if(c!==0){var C=x.pendingLanes;if(C===0)var A=0;else{var R=x.suspendedLanes,Y=x.pingedLanes;A=(1<<31-at(42|c)+1)-1,A&=C&~(R&~Y),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(m=!0,oL(x,A))}else A=mt,A=Bn(x,x===Vt?A:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(A&3)===0||wr(x,A)||(m=!0,oL(x,A));x=x.next}while(m);k2=!1}}function Uee(){iL()}function iL(){Lv=C2=!1;var c=0;al!==0&&tte()&&(c=al);for(var f=Xt(),m=null,x=Tv;x!==null;){var C=x.next,A=aL(x,f);A===0?(x.next=null,m===null?Tv=C:m.next=C,C===null&&(md=m)):(m=x,(c!==0||(A&3)!==0)&&(Lv=!0)),x=C}Zn!==0&&Zn!==5||Uh(c),al!==0&&(al=0)}function aL(c,f){for(var m=c.suspendedLanes,x=c.pingedLanes,C=c.expirationTimes,A=c.pendingLanes&-62914561;0<A;){var R=31-at(A),Y=1<<R,te=C[R];te===-1?((Y&m)===0||(Y&x)!==0)&&(C[R]=Rr(Y,f)):te<=f&&(c.expiredLanes|=Y),A&=~Y}if(f=Vt,m=mt,m=Bn(c,c===f?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x=c.callbackNode,m===0||c===f&&(Dt===2||Dt===9)||c.cancelPendingCommit!==null)return x!==null&&x!==null&&qe(x),c.callbackNode=null,c.callbackPriority=0;if((m&3)===0||wr(c,m)){if(f=m&-m,f===c.callbackPriority)return f;switch(x!==null&&qe(x),Li(m)){case 2:case 8:m=Ee;break;case 32:m=ze;break;case 268435456:m=lt;break;default:m=ze}return x=sL.bind(null,c),m=Be(m,x),c.callbackPriority=f,c.callbackNode=m,f}return x!==null&&x!==null&&qe(x),c.callbackPriority=2,c.callbackNode=null,2}function sL(c,f){if(Zn!==0&&Zn!==5)return c.callbackNode=null,c.callbackPriority=0,null;var m=c.callbackNode;if(_v()&&c.callbackNode!==m)return null;var x=mt;return x=Bn(c,c===Vt?x:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x===0?null:(FT(c,x,f),aL(c,Xt()),c.callbackNode!=null&&c.callbackNode===m?sL.bind(null,c):null)}function oL(c,f){if(_v())return null;FT(c,f,!0)}function Vee(){rte(function(){(Lt&6)!==0?Be(he,Uee):iL()})}function N2(){if(al===0){var c=ed;c===0&&(c=La,La<<=1,(La&261888)===0&&(La=256)),al=c}return al}function lL(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:Bg(""+c)}function cL(c,f){var m=f.ownerDocument.createElement("input");return m.name=f.name,m.value=f.value,c.id&&m.setAttribute("form",c.id),f.parentNode.insertBefore(m,f),c=new FormData(c),m.parentNode.removeChild(m),c}function Gee(c,f,m,x,C){if(f==="submit"&&m&&m.stateNode===C){var A=lL((C[ui]||null).action),R=x.submitter;R&&(f=(f=R[ui]||null)?lL(f.formAction):R.getAttribute("formAction"),f!==null&&(A=f,R=null));var Y=new Hg("action","action",null,x,C);c.push({event:Y,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(al!==0){var te=R?cL(C,R):new FormData(C);Gw(m,{pending:!0,data:te,method:C.method,action:A},null,te)}}else typeof A=="function"&&(Y.preventDefault(),te=R?cL(C,R):new FormData(C),Gw(m,{pending:!0,data:te,method:C.method,action:A},A,te))},currentTarget:C}]})}}for(var A2=0;A2<cw.length;A2++){var E2=cw[A2],Wee=E2.toLowerCase(),Yee=E2[0].toUpperCase()+E2.slice(1);Oa(Wee,"on"+Yee)}Oa(qE,"onAnimationEnd"),Oa(FE,"onAnimationIteration"),Oa(zE,"onAnimationStart"),Oa("dblclick","onDoubleClick"),Oa("focusin","onFocus"),Oa("focusout","onBlur"),Oa(uee,"onTransitionRun"),Oa(dee,"onTransitionStart"),Oa(fee,"onTransitionCancel"),Oa(HE,"onTransitionEnd"),qu("onMouseEnter",["mouseout","mouseover"]),qu("onMouseLeave",["mouseout","mouseover"]),qu("onPointerEnter",["pointerout","pointerover"]),qu("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kee=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vh));function uL(c,f){f=(f&4)!==0;for(var m=0;m<c.length;m++){var x=c[m],C=x.event;x=x.listeners;e:{var A=void 0;if(f)for(var R=x.length-1;0<=R;R--){var Y=x[R],te=Y.instance,le=Y.currentTarget;if(Y=Y.listener,te!==A&&C.isPropagationStopped())break e;A=Y,C.currentTarget=le;try{A(C)}catch(pe){Gg(pe)}C.currentTarget=null,A=te}else for(R=0;R<x.length;R++){if(Y=x[R],te=Y.instance,le=Y.currentTarget,Y=Y.listener,te!==A&&C.isPropagationStopped())break e;A=Y,C.currentTarget=le;try{A(C)}catch(pe){Gg(pe)}C.currentTarget=null,A=te}}}}function dt(c,f){var m=f[F1];m===void 0&&(m=f[F1]=new Set);var x=c+"__bubble";m.has(x)||(dL(f,c,2,!1),m.add(x))}function _2(c,f,m){var x=0;f&&(x|=4),dL(m,c,x,f)}var Ov="_reactListening"+Math.random().toString(36).slice(2);function T2(c){if(!c[Ov]){c[Ov]=!0,iE.forEach(function(m){m!=="selectionchange"&&(Kee.has(m)||_2(m,!1,c),_2(m,!0,c))});var f=c.nodeType===9?c:c.ownerDocument;f===null||f[Ov]||(f[Ov]=!0,_2("selectionchange",!1,f))}}function dL(c,f,m,x){switch(qL(f)){case 2:var C=Ste;break;case 8:C=Cte;break;default:C=V2}m=C.bind(null,f,m,c),C=void 0,!X1||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(C=!0),x?C!==void 0?c.addEventListener(f,m,{capture:!0,passive:C}):c.addEventListener(f,m,!0):C!==void 0?c.addEventListener(f,m,{passive:C}):c.addEventListener(f,m,!1)}function L2(c,f,m,x,C){var A=x;if((f&1)===0&&(f&2)===0&&x!==null)e:for(;;){if(x===null)return;var R=x.tag;if(R===3||R===4){var Y=x.stateNode.containerInfo;if(Y===C)break;if(R===4)for(R=x.return;R!==null;){var te=R.tag;if((te===3||te===4)&&R.stateNode.containerInfo===C)return;R=R.return}for(;Y!==null;){if(R=Iu(Y),R===null)return;if(te=R.tag,te===5||te===6||te===26||te===27){x=A=R;continue e}Y=Y.parentNode}}x=x.return}gE(function(){var le=A,pe=Y1(m),xe=[];e:{var ce=UE.get(c);if(ce!==void 0){var fe=Hg,$e=c;switch(c){case"keypress":if(Fg(m)===0)break e;case"keydown":case"keyup":fe=zJ;break;case"focusin":$e="focus",fe=ew;break;case"focusout":$e="blur",fe=ew;break;case"beforeblur":case"afterblur":fe=ew;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=xE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=TJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=VJ;break;case qE:case FE:case zE:fe=MJ;break;case HE:fe=WJ;break;case"scroll":case"scrollend":fe=EJ;break;case"wheel":fe=KJ;break;case"copy":case"cut":case"paste":fe=PJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=wE;break;case"toggle":case"beforetoggle":fe=ZJ}var We=(f&4)!==0,qt=!We&&(c==="scroll"||c==="scrollend"),se=We?ce!==null?ce+"Capture":null:ce;We=[];for(var ne=le,oe;ne!==null;){var ve=ne;if(oe=ve.stateNode,ve=ve.tag,ve!==5&&ve!==26&&ve!==27||oe===null||se===null||(ve=hh(ne,se),ve!=null&&We.push(Gh(ne,ve,oe))),qt)break;ne=ne.return}0<We.length&&(ce=new fe(ce,$e,null,m,pe),xe.push({event:ce,listeners:We}))}}if((f&7)===0){e:{if(ce=c==="mouseover"||c==="pointerover",fe=c==="mouseout"||c==="pointerout",ce&&m!==W1&&($e=m.relatedTarget||m.fromElement)&&(Iu($e)||$e[Ru]))break e;if((fe||ce)&&(ce=pe.window===pe?pe:(ce=pe.ownerDocument)?ce.defaultView||ce.parentWindow:window,fe?($e=m.relatedTarget||m.toElement,fe=le,$e=$e?Iu($e):null,$e!==null&&(qt=s($e),We=$e.tag,$e!==qt||We!==5&&We!==27&&We!==6)&&($e=null)):(fe=null,$e=le),fe!==$e)){if(We=xE,ve="onMouseLeave",se="onMouseEnter",ne="mouse",(c==="pointerout"||c==="pointerover")&&(We=wE,ve="onPointerLeave",se="onPointerEnter",ne="pointer"),qt=fe==null?ce:fh(fe),oe=$e==null?ce:fh($e),ce=new We(ve,ne+"leave",fe,m,pe),ce.target=qt,ce.relatedTarget=oe,ve=null,Iu(pe)===le&&(We=new We(se,ne+"enter",$e,m,pe),We.target=oe,We.relatedTarget=qt,ve=We),qt=ve,fe&&$e)t:{for(We=Xee,se=fe,ne=$e,oe=0,ve=se;ve;ve=We(ve))oe++;ve=0;for(var Ue=ne;Ue;Ue=We(Ue))ve++;for(;0<oe-ve;)se=We(se),oe--;for(;0<ve-oe;)ne=We(ne),ve--;for(;oe--;){if(se===ne||ne!==null&&se===ne.alternate){We=se;break t}se=We(se),ne=We(ne)}We=null}else We=null;fe!==null&&fL(xe,ce,fe,We,!1),$e!==null&&qt!==null&&fL(xe,qt,$e,We,!0)}}e:{if(ce=le?fh(le):window,fe=ce.nodeName&&ce.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ce.type==="file")var Nt=_E;else if(AE(ce))if(TE)Nt=oee;else{Nt=aee;var Fe=iee}else fe=ce.nodeName,!fe||fe.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&G1(le.elementType)&&(Nt=_E):Nt=see;if(Nt&&(Nt=Nt(c,le))){EE(xe,Nt,m,pe);break e}Fe&&Fe(c,ce,le),c==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&V1(ce,"number",ce.value)}switch(Fe=le?fh(le):window,c){case"focusin":(AE(Fe)||Fe.contentEditable==="true")&&(Gu=Fe,sw=le,wh=null);break;case"focusout":wh=sw=Gu=null;break;case"mousedown":ow=!0;break;case"contextmenu":case"mouseup":case"dragend":ow=!1,$E(xe,m,pe);break;case"selectionchange":if(cee)break;case"keydown":case"keyup":$E(xe,m,pe)}var st;if(nw)e:{switch(c){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Vu?kE(c,m)&&(gt="onCompositionEnd"):c==="keydown"&&m.keyCode===229&&(gt="onCompositionStart");gt&&(jE&&m.locale!=="ko"&&(Vu||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Vu&&(st=vE()):(Ho=pe,Z1="value"in Ho?Ho.value:Ho.textContent,Vu=!0)),Fe=Mv(le,gt),0<Fe.length&&(gt=new bE(gt,c,null,m,pe),xe.push({event:gt,listeners:Fe}),st?gt.data=st:(st=NE(m),st!==null&&(gt.data=st)))),(st=JJ?eee(c,m):tee(c,m))&&(gt=Mv(le,"onBeforeInput"),0<gt.length&&(Fe=new bE("onBeforeInput","beforeinput",null,m,pe),xe.push({event:Fe,listeners:gt}),Fe.data=st)),Gee(xe,c,le,m,pe)}uL(xe,f)})}function Gh(c,f,m){return{instance:c,listener:f,currentTarget:m}}function Mv(c,f){for(var m=f+"Capture",x=[];c!==null;){var C=c,A=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||A===null||(C=hh(c,m),C!=null&&x.unshift(Gh(c,C,A)),C=hh(c,f),C!=null&&x.push(Gh(c,C,A))),c.tag===3)return x;c=c.return}return[]}function Xee(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function fL(c,f,m,x,C){for(var A=f._reactName,R=[];m!==null&&m!==x;){var Y=m,te=Y.alternate,le=Y.stateNode;if(Y=Y.tag,te!==null&&te===x)break;Y!==5&&Y!==26&&Y!==27||le===null||(te=le,C?(le=hh(m,A),le!=null&&R.unshift(Gh(m,le,te))):C||(le=hh(m,A),le!=null&&R.push(Gh(m,le,te)))),m=m.return}R.length!==0&&c.push({event:f,listeners:R})}var Zee=/\r\n?/g,Qee=/\u0000|\uFFFD/g;function hL(c){return(typeof c=="string"?c:""+c).replace(Zee,` 49`).replace(Qee,"")}function pL(c,f){return f=hL(f),hL(c)===f}function Bt(c,f,m,x,C,A){switch(m){case"children":typeof x=="string"?f==="body"||f==="textarea"&&x===""||zu(c,x):(typeof x=="number"||typeof x=="bigint")&&f!=="body"&&zu(c,""+x);break;case"className":Ig(c,"class",x);break;case"tabIndex":Ig(c,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":Ig(c,m,x);break;case"style":pE(c,x,A);break;case"data":if(f!=="object"){Ig(c,"data",x);break}case"src":case"href":if(x===""&&(f!=="a"||m!=="href")){c.removeAttribute(m);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(m);break}x=Bg(""+x),c.setAttribute(m,x);break;case"action":case"formAction":if(typeof x=="function"){c.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(m==="formAction"?(f!=="input"&&Bt(c,f,"name",C.name,C,null),Bt(c,f,"formEncType",C.formEncType,C,null),Bt(c,f,"formMethod",C.formMethod,C,null),Bt(c,f,"formTarget",C.formTarget,C,null)):(Bt(c,f,"encType",C.encType,C,null),Bt(c,f,"method",C.method,C,null),Bt(c,f,"target",C.target,C,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(m);break}x=Bg(""+x),c.setAttribute(m,x);break;case"onClick":x!=null&&(c.onclick=qs);break;case"onScroll":x!=null&&dt("scroll",c);break;case"onScrollEnd":x!=null&&dt("scrollend",c);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(m=x.__html,m!=null){if(C.children!=null)throw Error(r(60));c.innerHTML=m}}break;case"multiple":c.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":c.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){c.removeAttribute("xlink:href");break}m=Bg(""+x),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(m,""+x):c.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(m,""):c.removeAttribute(m);break;case"capture":case"download":x===!0?c.setAttribute(m,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(m,x):c.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?c.setAttribute(m,x):c.removeAttribute(m);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?c.removeAttribute(m):c.setAttribute(m,x);break;case"popover":dt("beforetoggle",c),dt("toggle",c),Rg(c,"popover",x);break;case"xlinkActuate":Bs(c,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Bs(c,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Bs(c,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Bs(c,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Bs(c,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Bs(c,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Bs(c,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Bs(c,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Bs(c,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":Rg(c,"is",x);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=NJ.get(m)||m,Rg(c,m,x))}}function O2(c,f,m,x,C,A){switch(m){case"style":pE(c,x,A);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(m=x.__html,m!=null){if(C.children!=null)throw Error(r(60));c.innerHTML=m}}break;case"children":typeof x=="string"?zu(c,x):(typeof x=="number"||typeof x=="bigint")&&zu(c,""+x);break;case"onScroll":x!=null&&dt("scroll",c);break;case"onScrollEnd":x!=null&&dt("scrollend",c);break;case"onClick":x!=null&&(c.onclick=qs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!aE.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(C=m.endsWith("Capture"),f=m.slice(2,C?m.length-7:void 0),A=c[ui]||null,A=A!=null?A[m]:null,typeof A=="function"&&c.removeEventListener(f,A,C),typeof x=="function")){typeof A!="function"&&A!==null&&(m in c?c[m]=null:c.hasAttribute(m)&&c.removeAttribute(m)),c.addEventListener(f,x,C);break e}m in c?c[m]=x:x===!0?c.setAttribute(m,""):Rg(c,m,x)}}}function Nr(c,f,m){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",c),dt("load",c);var x=!1,C=!1,A;for(A in m)if(m.hasOwnProperty(A)){var R=m[A];if(R!=null)switch(A){case"src":x=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Bt(c,f,A,R,m,null)}}C&&Bt(c,f,"srcSet",m.srcSet,m,null),x&&Bt(c,f,"src",m.src,m,null);return;case"input":dt("invalid",c);var Y=A=R=C=null,te=null,le=null;for(x in m)if(m.hasOwnProperty(x)){var pe=m[x];if(pe!=null)switch(x){case"name":C=pe;break;case"type":R=pe;break;case"checked":te=pe;break;case"defaultChecked":le=pe;break;case"value":A=pe;break;case"defaultValue":Y=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,f));break;default:Bt(c,f,x,pe,m,null)}}uE(c,A,Y,te,le,R,C,!1);return;case"select":dt("invalid",c),x=R=A=null;for(C in m)if(m.hasOwnProperty(C)&&(Y=m[C],Y!=null))switch(C){case"value":A=Y;break;case"defaultValue":R=Y;break;case"multiple":x=Y;default:Bt(c,f,C,Y,m,null)}f=A,m=R,c.multiple=!!x,f!=null?Fu(c,!!x,f,!1):m!=null&&Fu(c,!!x,m,!0);return;case"textarea":dt("invalid",c),A=C=x=null;for(R in m)if(m.hasOwnProperty(R)&&(Y=m[R],Y!=null))switch(R){case"value":x=Y;break;case"defaultValue":C=Y;break;case"children":A=Y;break;case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(91));break;default:Bt(c,f,R,Y,m,null)}fE(c,x,C,A);return;case"option":for(te in m)if(m.hasOwnProperty(te)&&(x=m[te],x!=null))switch(te){case"selected":c.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:Bt(c,f,te,x,m,null)}return;case"dialog":dt("beforetoggle",c),dt("toggle",c),dt("cancel",c),dt("close",c);break;case"iframe":case"object":dt("load",c);break;case"video":case"audio":for(x=0;x<Vh.length;x++)dt(Vh[x],c);break;case"image":dt("error",c),dt("load",c);break;case"details":dt("toggle",c);break;case"embed":case"source":case"link":dt("error",c),dt("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in m)if(m.hasOwnProperty(le)&&(x=m[le],x!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Bt(c,f,le,x,m,null)}return;default:if(G1(f)){for(pe in m)m.hasOwnProperty(pe)&&(x=m[pe],x!==void 0&&O2(c,f,pe,x,m,void 0));return}}for(Y in m)m.hasOwnProperty(Y)&&(x=m[Y],x!=null&&Bt(c,f,Y,x,m,null))}function Jee(c,f,m,x){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,A=null,R=null,Y=null,te=null,le=null,pe=null;for(fe in m){var xe=m[fe];if(m.hasOwnProperty(fe)&&xe!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":te=xe;default:x.hasOwnProperty(fe)||Bt(c,f,fe,null,x,xe)}}for(var ce in x){var fe=x[ce];if(xe=m[ce],x.hasOwnProperty(ce)&&(fe!=null||xe!=null))switch(ce){case"type":A=fe;break;case"name":C=fe;break;case"checked":le=fe;break;case"defaultChecked":pe=fe;break;case"value":R=fe;break;case"defaultValue":Y=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,f));break;default:fe!==xe&&Bt(c,f,ce,fe,x,xe)}}U1(c,R,Y,te,le,pe,A,C);return;case"select":fe=R=Y=ce=null;for(A in m)if(te=m[A],m.hasOwnProperty(A)&&te!=null)switch(A){case"value":break;case"multiple":fe=te;default:x.hasOwnProperty(A)||Bt(c,f,A,null,x,te)}for(C in x)if(A=x[C],te=m[C],x.hasOwnProperty(C)&&(A!=null||te!=null))switch(C){case"value":ce=A;break;case"defaultValue":Y=A;break;case"multiple":R=A;default:A!==te&&Bt(c,f,C,A,x,te)}f=Y,m=R,x=fe,ce!=null?Fu(c,!!m,ce,!1):!!x!=!!m&&(f!=null?Fu(c,!!m,f,!0):Fu(c,!!m,m?[]:"",!1));return;case"textarea":fe=ce=null;for(Y in m)if(C=m[Y],m.hasOwnProperty(Y)&&C!=null&&!x.hasOwnProperty(Y))switch(Y){case"value":break;case"children":break;default:Bt(c,f,Y,null,x,C)}for(R in x)if(C=x[R],A=m[R],x.hasOwnProperty(R)&&(C!=null||A!=null))switch(R){case"value":ce=C;break;case"defaultValue":fe=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==A&&Bt(c,f,R,C,x,A)}dE(c,ce,fe);return;case"option":for(var $e in m)if(ce=m[$e],m.hasOwnProperty($e)&&ce!=null&&!x.hasOwnProperty($e))switch($e){case"selected":c.selected=!1;break;default:Bt(c,f,$e,null,x,ce)}for(te in x)if(ce=x[te],fe=m[te],x.hasOwnProperty(te)&&ce!==fe&&(ce!=null||fe!=null))switch(te){case"selected":c.selected=ce&&typeof ce!="function"&&typeof ce!="symbol";break;default:Bt(c,f,te,ce,x,fe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var We in m)ce=m[We],m.hasOwnProperty(We)&&ce!=null&&!x.hasOwnProperty(We)&&Bt(c,f,We,null,x,ce);for(le in x)if(ce=x[le],fe=m[le],x.hasOwnProperty(le)&&ce!==fe&&(ce!=null||fe!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(r(137,f));break;default:Bt(c,f,le,ce,x,fe)}return;default:if(G1(f)){for(var qt in m)ce=m[qt],m.hasOwnProperty(qt)&&ce!==void 0&&!x.hasOwnProperty(qt)&&O2(c,f,qt,void 0,x,ce);for(pe in x)ce=x[pe],fe=m[pe],!x.hasOwnProperty(pe)||ce===fe||ce===void 0&&fe===void 0||O2(c,f,pe,ce,x,fe);return}}for(var se in m)ce=m[se],m.hasOwnProperty(se)&&ce!=null&&!x.hasOwnProperty(se)&&Bt(c,f,se,null,x,ce);for(xe in x)ce=x[xe],fe=m[xe],!x.hasOwnProperty(xe)||ce===fe||ce==null&&fe==null||Bt(c,f,xe,ce,x,fe)}function mL(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ete(){if(typeof performance.getEntriesByType=="function"){for(var c=0,f=0,m=performance.getEntriesByType("resource"),x=0;x<m.length;x++){var C=m[x],A=C.transferSize,R=C.initiatorType,Y=C.duration;if(A&&Y&&mL(R)){for(R=0,Y=C.responseEnd,x+=1;x<m.length;x++){var te=m[x],le=te.startTime;if(le>Y)break;var pe=te.transferSize,xe=te.initiatorType;pe&&mL(xe)&&(te=te.responseEnd,R+=pe*(te<Y?1:(Y-le)/(te-le)))}if(--x,f+=8*(A+R)/(C.duration/1e3),c++,10<c)break}}if(0<c)return f/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c=="number")?c:5}var M2=null,D2=null;function Dv(c){return c.nodeType===9?c:c.ownerDocument}function gL(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vL(c,f){if(c===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&f==="foreignObject"?0:c}function P2(c,f){return c==="textarea"||c==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var R2=null;function tte(){var c=window.event;return c&&c.type==="popstate"?c===R2?!1:(R2=c,!0):(R2=null,!1)}var yL=typeof setTimeout=="function"?setTimeout:void 0,nte=typeof clearTimeout=="function"?clearTimeout:void 0,xL=typeof Promise=="function"?Promise:void 0,rte=typeof queueMicrotask=="function"?queueMicrotask:typeof xL<"u"?function(c){return xL.resolve(null).then(c).catch(ite)}:yL;function ite(c){setTimeout(function(){throw c})}function sl(c){return c==="head"}function bL(c,f){var m=f,x=0;do{var C=m.nextSibling;if(c.removeChild(m),C&&C.nodeType===8)if(m=C.data,m==="/$"||m==="/&"){if(x===0){c.removeChild(C),xd(f);return}x--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")x++;else if(m==="html")Wh(c.ownerDocument.documentElement);else if(m==="head"){m=c.ownerDocument.head,Wh(m);for(var A=m.firstChild;A;){var R=A.nextSibling,Y=A.nodeName;A[dh]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&A.rel.toLowerCase()==="stylesheet"||m.removeChild(A),A=R}}else m==="body"&&Wh(c.ownerDocument.body);m=C}while(m);xd(f)}function wL(c,f){var m=c;c=0;do{var x=m.nextSibling;if(m.nodeType===1?f?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(f?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),x&&x.nodeType===8)if(m=x.data,m==="/$"){if(c===0)break;c--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||c++;m=x}while(m)}function I2(c){var f=c.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var m=f;switch(f=f.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":I2(m),z1(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}c.removeChild(m)}}function ate(c,f,m,x){for(;c.nodeType===1;){var C=m;if(c.nodeName.toLowerCase()!==f.toLowerCase()){if(!x&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(x){if(!c[dh])switch(f){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(A=c.getAttribute("rel"),A==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(A!==C.rel||c.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||c.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||c.getAttribute("title")!==(C.title==null?null:C.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(A=c.getAttribute("src"),(A!==(C.src==null?null:C.src)||c.getAttribute("type")!==(C.type==null?null:C.type)||c.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&A&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(f==="input"&&c.type==="hidden"){var A=C.name==null?null:""+C.name;if(C.type==="hidden"&&c.getAttribute("name")===A)return c}else return c;if(c=ca(c.nextSibling),c===null)break}return null}function ste(c,f,m){if(f==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!m||(c=ca(c.nextSibling),c===null))return null;return c}function jL(c,f){for(;c.nodeType!==8;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!f||(c=ca(c.nextSibling),c===null))return null;return c}function $2(c){return c.data==="$?"||c.data==="$~"}function B2(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function ote(c,f){var m=c.ownerDocument;if(c.data==="$~")c._reactRetry=f;else if(c.data!=="$?"||m.readyState!=="loading")f();else{var x=function(){f(),m.removeEventListener("DOMContentLoaded",x)};m.addEventListener("DOMContentLoaded",x),c._reactRetry=x}}function ca(c){for(;c!=null;c=c.nextSibling){var f=c.nodeType;if(f===1||f===3)break;if(f===8){if(f=c.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return c}var q2=null;function SL(c){c=c.nextSibling;for(var f=0;c;){if(c.nodeType===8){var m=c.data;if(m==="/$"||m==="/&"){if(f===0)return ca(c.nextSibling);f--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||f++}c=c.nextSibling}return null}function CL(c){c=c.previousSibling;for(var f=0;c;){if(c.nodeType===8){var m=c.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(f===0)return c;f--}else m!=="/$"&&m!=="/&"||f++}c=c.previousSibling}return null}function kL(c,f,m){switch(f=Dv(m),c){case"html":if(c=f.documentElement,!c)throw Error(r(452));return c;case"head":if(c=f.head,!c)throw Error(r(453));return c;case"body":if(c=f.body,!c)throw Error(r(454));return c;default:throw Error(r(451))}}function Wh(c){for(var f=c.attributes;f.length;)c.removeAttributeNode(f[0]);z1(c)}var ua=new Map,NL=new Set;function Pv(c){return typeof c.getRootNode=="function"?c.getRootNode():c.nodeType===9?c:c.ownerDocument}var no=H.d;H.d={f:lte,r:cte,D:ute,C:dte,L:fte,m:hte,X:mte,S:pte,M:gte};function lte(){var c=no.f(),f=Nv();return c||f}function cte(c){var f=$u(c);f!==null&&f.tag===5&&f.type==="form"?H_(f):no.r(c)}var gd=typeof document>"u"?null:document;function AL(c,f,m){var x=gd;if(x&&typeof f=="string"&&f){var C=na(f);C='link[rel="'+c+'"][href="'+C+'"]',typeof m=="string"&&(C+='[crossorigin="'+m+'"]'),NL.has(C)||(NL.add(C),c={rel:c,crossOrigin:m,href:f},x.querySelector(C)===null&&(f=x.createElement("link"),Nr(f,"link",c),dr(f),x.head.appendChild(f)))}}function ute(c){no.D(c),AL("dns-prefetch",c,null)}function dte(c,f){no.C(c,f),AL("preconnect",c,f)}function fte(c,f,m){no.L(c,f,m);var x=gd;if(x&&c&&f){var C='link[rel="preload"][as="'+na(f)+'"]';f==="image"&&m&&m.imageSrcSet?(C+='[imagesrcset="'+na(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(C+='[imagesizes="'+na(m.imageSizes)+'"]')):C+='[href="'+na(c)+'"]';var A=C;switch(f){case"style":A=vd(c);break;case"script":A=yd(c)}ua.has(A)||(c=p({rel:"preload",href:f==="image"&&m&&m.imageSrcSet?void 0:c,as:f},m),ua.set(A,c),x.querySelector(C)!==null||f==="style"&&x.querySelector(Yh(A))||f==="script"&&x.querySelector(Kh(A))||(f=x.createElement("link"),Nr(f,"link",c),dr(f),x.head.appendChild(f)))}}function hte(c,f){no.m(c,f);var m=gd;if(m&&c){var x=f&&typeof f.as=="string"?f.as:"script",C='link[rel="modulepreload"][as="'+na(x)+'"][href="'+na(c)+'"]',A=C;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=yd(c)}if(!ua.has(A)&&(c=p({rel:"modulepreload",href:c},f),ua.set(A,c),m.querySelector(C)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Kh(A)))return}x=m.createElement("link"),Nr(x,"link",c),dr(x),m.head.appendChild(x)}}}function pte(c,f,m){no.S(c,f,m);var x=gd;if(x&&c){var C=Bu(x).hoistableStyles,A=vd(c);f=f||"default";var R=C.get(A);if(!R){var Y={loading:0,preload:null};if(R=x.querySelector(Yh(A)))Y.loading=5;else{c=p({rel:"stylesheet",href:c,"data-precedence":f},m),(m=ua.get(A))&&F2(c,m);var te=R=x.createElement("link");dr(te),Nr(te,"link",c),te._p=new Promise(function(le,pe){te.onload=le,te.onerror=pe}),te.addEventListener("load",function(){Y.loading|=1}),te.addEventListener("error",function(){Y.loading|=2}),Y.loading|=4,Rv(R,f,x)}R={type:"stylesheet",instance:R,count:1,state:Y},C.set(A,R)}}}function mte(c,f){no.X(c,f);var m=gd;if(m&&c){var x=Bu(m).hoistableScripts,C=yd(c),A=x.get(C);A||(A=m.querySelector(Kh(C)),A||(c=p({src:c,async:!0},f),(f=ua.get(C))&&z2(c,f),A=m.createElement("script"),dr(A),Nr(A,"link",c),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},x.set(C,A))}}function gte(c,f){no.M(c,f);var m=gd;if(m&&c){var x=Bu(m).hoistableScripts,C=yd(c),A=x.get(C);A||(A=m.querySelector(Kh(C)),A||(c=p({src:c,async:!0,type:"module"},f),(f=ua.get(C))&&z2(c,f),A=m.createElement("script"),dr(A),Nr(A,"link",c),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},x.set(C,A))}}function EL(c,f,m,x){var C=(C=ee.current)?Pv(C):null;if(!C)throw Error(r(446));switch(c){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(f=vd(m.href),m=Bu(C).hoistableStyles,x=m.get(f),x||(x={type:"style",instance:null,count:0,state:null},m.set(f,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){c=vd(m.href);var A=Bu(C).hoistableStyles,R=A.get(c);if(R||(C=C.ownerDocument||C,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(c,R),(A=C.querySelector(Yh(c)))&&!A._p&&(R.instance=A,R.state.loading=5),ua.has(c)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},ua.set(c,m),A||vte(C,c,m,R.state))),f&&x===null)throw Error(r(528,""));return R}if(f&&x!==null)throw Error(r(529,""));return null;case"script":return f=m.async,m=m.src,typeof m=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=yd(m),m=Bu(C).hoistableScripts,x=m.get(f),x||(x={type:"script",instance:null,count:0,state:null},m.set(f,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,c))}}function vd(c){return'href="'+na(c)+'"'}function Yh(c){return'link[rel="stylesheet"]['+c+"]"}function _L(c){return p({},c,{"data-precedence":c.precedence,precedence:null})}function vte(c,f,m,x){c.querySelector('link[rel="preload"][as="style"]['+f+"]")?x.loading=1:(f=c.createElement("link"),x.preload=f,f.addEventListener("load",function(){return x.loading|=1}),f.addEventListener("error",function(){return x.loading|=2}),Nr(f,"link",m),dr(f),c.head.appendChild(f))}function yd(c){return'[src="'+na(c)+'"]'}function Kh(c){return"script[async]"+c}function TL(c,f,m){if(f.count++,f.instance===null)switch(f.type){case"style":var x=c.querySelector('style[data-href~="'+na(m.href)+'"]');if(x)return f.instance=x,dr(x),x;var C=p({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return x=(c.ownerDocument||c).createElement("style"),dr(x),Nr(x,"style",C),Rv(x,m.precedence,c),f.instance=x;case"stylesheet":C=vd(m.href);var A=c.querySelector(Yh(C));if(A)return f.state.loading|=4,f.instance=A,dr(A),A;x=_L(m),(C=ua.get(C))&&F2(x,C),A=(c.ownerDocument||c).createElement("link"),dr(A);var R=A;return R._p=new Promise(function(Y,te){R.onload=Y,R.onerror=te}),Nr(A,"link",x),f.state.loading|=4,Rv(A,m.precedence,c),f.instance=A;case"script":return A=yd(m.src),(C=c.querySelector(Kh(A)))?(f.instance=C,dr(C),C):(x=m,(C=ua.get(A))&&(x=p({},m),z2(x,C)),c=c.ownerDocument||c,C=c.createElement("script"),dr(C),Nr(C,"link",x),c.head.appendChild(C),f.instance=C);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(x=f.instance,f.state.loading|=4,Rv(x,m.precedence,c));return f.instance}function Rv(c,f,m){for(var x=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=x.length?x[x.length-1]:null,A=C,R=0;R<x.length;R++){var Y=x[R];if(Y.dataset.precedence===f)A=Y;else if(A!==C)break}A?A.parentNode.insertBefore(c,A.nextSibling):(f=m.nodeType===9?m.head:m,f.insertBefore(c,f.firstChild))}function F2(c,f){c.crossOrigin==null&&(c.crossOrigin=f.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=f.referrerPolicy),c.title==null&&(c.title=f.title)}function z2(c,f){c.crossOrigin==null&&(c.crossOrigin=f.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=f.referrerPolicy),c.integrity==null&&(c.integrity=f.integrity)}var Iv=null;function LL(c,f,m){if(Iv===null){var x=new Map,C=Iv=new Map;C.set(m,x)}else C=Iv,x=C.get(m),x||(x=new Map,C.set(m,x));if(x.has(c))return x;for(x.set(c,null),m=m.getElementsByTagName(c),C=0;C<m.length;C++){var A=m[C];if(!(A[dh]||A[Xn]||c==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var R=A.getAttribute(f)||"";R=c+R;var Y=x.get(R);Y?Y.push(A):x.set(R,[A])}}return x}function OL(c,f,m){c=c.ownerDocument||c,c.head.insertBefore(m,f==="title"?c.querySelector("head > title"):null)}function yte(c,f,m){if(m===1||f.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return c=f.disabled,typeof f.precedence=="string"&&c==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function ML(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function xte(c,f,m,x){if(m.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var C=vd(x.href),A=f.querySelector(Yh(C));if(A){f=A._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(c.count++,c=$v.bind(c),f.then(c,c)),m.state.loading|=4,m.instance=A,dr(A);return}A=f.ownerDocument||f,x=_L(x),(C=ua.get(C))&&F2(x,C),A=A.createElement("link"),dr(A);var R=A;R._p=new Promise(function(Y,te){R.onload=Y,R.onerror=te}),Nr(A,"link",x),m.instance=A}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(m,f),(f=m.state.preload)&&(m.state.loading&3)===0&&(c.count++,m=$v.bind(c),f.addEventListener("load",m),f.addEventListener("error",m))}}var H2=0;function bte(c,f){return c.stylesheets&&c.count===0&&qv(c,c.stylesheets),0<c.count||0<c.imgCount?function(m){var x=setTimeout(function(){if(c.stylesheets&&qv(c,c.stylesheets),c.unsuspend){var A=c.unsuspend;c.unsuspend=null,A()}},6e4+f);0<c.imgBytes&&H2===0&&(H2=62500*ete());var C=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&qv(c,c.stylesheets),c.unsuspend)){var A=c.unsuspend;c.unsuspend=null,A()}},(c.imgBytes>H2?50:800)+f);return c.unsuspend=m,function(){c.unsuspend=null,clearTimeout(x),clearTimeout(C)}}:null}function $v(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qv(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var Bv=null;function qv(c,f){c.stylesheets=null,c.unsuspend!==null&&(c.count++,Bv=new Map,f.forEach(wte,c),Bv=null,$v.call(c))}function wte(c,f){if(!(f.state.loading&4)){var m=Bv.get(c);if(m)var x=m.get(null);else{m=new Map,Bv.set(c,m);for(var C=c.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<C.length;A++){var R=C[A];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(m.set(R.dataset.precedence,R),x=R)}x&&m.set(null,x)}C=f.instance,R=C.getAttribute("data-precedence"),A=m.get(R)||x,A===x&&m.set(null,C),m.set(R,C),this.count++,x=$v.bind(this),C.addEventListener("load",x),C.addEventListener("error",x),A?A.parentNode.insertBefore(C,A.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(C,c.firstChild)),f.state.loading|=4}}var Xh={$$typeof:N,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function jte(c,f,m,x,C,A,R,Y,te){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ir(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ir(0),this.hiddenUpdates=Ir(null),this.identifierPrefix=x,this.onUncaughtError=C,this.onCaughtError=A,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function DL(c,f,m,x,C,A,R,Y,te,le,pe,xe){return c=new jte(c,f,m,R,te,le,pe,xe,Y),f=1,A===!0&&(f|=24),A=Di(3,null,null,f),c.current=A,A.stateNode=c,f=jw(),f.refCount++,c.pooledCache=f,f.refCount++,A.memoizedState={element:x,isDehydrated:m,cache:f},Nw(A),c}function PL(c){return c?(c=Ku,c):Ku}function RL(c,f,m,x,C,A){C=PL(C),x.context===null?x.context=C:x.pendingContext=C,x=Ko(f),x.payload={element:m},A=A===void 0?null:A,A!==null&&(x.callback=A),m=Xo(c,x,f),m!==null&&(gi(m,c,f),Eh(m,c,f))}function IL(c,f){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var m=c.retryLane;c.retryLane=m!==0&&m<f?m:f}}function U2(c,f){IL(c,f),(c=c.alternate)&&IL(c,f)}function $L(c){if(c.tag===13||c.tag===31){var f=nc(c,67108864);f!==null&&gi(f,c,67108864),U2(c,67108864)}}function BL(c){if(c.tag===13||c.tag===31){var f=Bi();f=pn(f);var m=nc(c,f);m!==null&&gi(m,c,f),U2(c,f)}}var Fv=!0;function Ste(c,f,m,x){var C=B.T;B.T=null;var A=H.p;try{H.p=2,V2(c,f,m,x)}finally{H.p=A,B.T=C}}function Cte(c,f,m,x){var C=B.T;B.T=null;var A=H.p;try{H.p=8,V2(c,f,m,x)}finally{H.p=A,B.T=C}}function V2(c,f,m,x){if(Fv){var C=G2(x);if(C===null)L2(c,f,x,zv,m),FL(c,x);else if(Nte(C,c,f,m,x))x.stopPropagation();else if(FL(c,x),f&4&&-1<kte.indexOf(c)){for(;C!==null;){var A=$u(C);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var R=on(A.pendingLanes);if(R!==0){var Y=A;for(Y.pendingLanes|=2,Y.entangledLanes|=2;R;){var te=1<<31-at(R);Y.entanglements[1]|=te,R&=~te}os(A),(Lt&6)===0&&(Cv=Xt()+500,Uh(0))}}break;case 31:case 13:Y=nc(A,2),Y!==null&&gi(Y,A,2),Nv(),U2(A,2)}if(A=G2(x),A===null&&L2(c,f,x,zv,m),A===C)break;C=A}C!==null&&x.stopPropagation()}else L2(c,f,x,null,m)}}function G2(c){return c=Y1(c),W2(c)}var zv=null;function W2(c){if(zv=null,c=Iu(c),c!==null){var f=s(c);if(f===null)c=null;else{var m=f.tag;if(m===13){if(c=o(f),c!==null)return c;c=null}else if(m===31){if(c=l(f),c!==null)return c;c=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;c=null}else f!==c&&(c=null)}}return zv=c,null}function qL(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,147 bytes, line 49
49:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Me()){case he:return 2;case Ee:return 8;case ze:case Qe:return 32;case lt:return 268435456;default:return 32}default:return 32}}var Y2=!1,ol=null,ll=null,cl=null,Zh=new Map,Qh=new Map,ul=[],kte="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function FL(c,f){switch(c){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Zh.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qh.delete(f.pointerId)}}function Jh(c,f,m,x,C,A){return c===null||c.nativeEvent!==A?(c={blockedOn:f,domEventName:m,eventSystemFlags:x,nativeEvent:A,targetContainers:[C]},f!==null&&(f=$u(f),f!==null&&$L(f)),c):(c.eventSystemFlags|=x,f=c.targetContainers,C!==null&&f.indexOf(C)===-1&&f.push(C),c)}function Nte(c,f,m,x,C){switch(f){case"focusin":return ol=Jh(ol,c,f,m,x,C),!0;case"dragenter":return ll=Jh(ll,c,f,m,x,C),!0;case"mouseover":return cl=Jh(cl,c,f,m,x,C),!0;case"pointerover":var A=C.pointerId;return Zh.set(A,Jh(Zh.get(A)||null,c,f,m,x,C)),!0;case"gotpointercapture":return A=C.pointerId,Qh.set(A,Jh(Qh.get(A)||null,c,f,m,x,C)),!0}return!1}function zL(c){var f=Iu(c.target);if(f!==null){var m=s(f);if(m!==null){if(f=m.tag,f===13){if(f=o(m),f!==null){c.blockedOn=f,rs(c.priority,function(){BL(m)});return}}else if(f===31){if(f=l(m),f!==null){c.blockedOn=f,rs(c.priority,function(){BL(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){c.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Hv(c){if(c.blockedOn!==null)return!1;for(var f=c.targetContainers;0<f.length;){var m=G2(c.nativeEvent);if(m===null){m=c.nativeEvent;var x=new m.constructor(m.type,m);W1=x,m.target.dispatchEvent(x),W1=null}else return f=$u(m),f!==null&&$L(f),c.blockedOn=m,!1;f.shift()}return!0}function HL(c,f,m){Hv(c)&&m.delete(f)}function Ate(){Y2=!1,ol!==null&&Hv(ol)&&(ol=null),ll!==null&&Hv(ll)&&(ll=null),cl!==null&&Hv(cl)&&(cl=null),Zh.forEach(HL),Qh.forEach(HL)}function Uv(c,f){c.blockedOn===f&&(c.blockedOn=null,Y2||(Y2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ate)))}var Vv=null;function UL(c){Vv!==c&&(Vv=c,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Vv===c&&(Vv=null);for(var f=0;f<c.length;f+=3){var m=c[f],x=c[f+1],C=c[f+2];if(typeof x!="function"){if(W2(x||m)===null)continue;break}var A=$u(m);A!==null&&(c.splice(f,3),f-=3,Gw(A,{pending:!0,data:C,method:m.method,action:x},x,C))}}))}function xd(c){function f(te){return Uv(te,c)}ol!==null&&Uv(ol,c),ll!==null&&Uv(ll,c),cl!==null&&Uv(cl,c),Zh.forEach(f),Qh.forEach(f);for(var m=0;m<ul.length;m++){var x=ul[m];x.blockedOn===c&&(x.blockedOn=null)}for(;0<ul.length&&(m=ul[0],m.blockedOn===null);)zL(m),m.blockedOn===null&&ul.shift();if(m=(c.ownerDocument||c).$$reactFormReplay,m!=null)for(x=0;x<m.length;
49x+=3){var C=m[x],A=m[x+1],R=C[ui]||null;if(typeof A=="function")R||UL(m);else if(R){var Y=null;if(A&&A.hasAttribute("formAction")){if(C=A,R=A[ui]||null)Y=R.formAction;else if(W2(C)!==null)continue}else Y=R.action;typeof Y=="function"?m[x+1]=Y:(m.splice(x,3),x-=3),UL(m)}}}function VL(){function c(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(R){return C=R})},focusReset:"manual",scroll:"manual"})}function f(){C!==null&&(C(),C=null),x||setTimeout(m,20)}function m(){if(!x&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,C=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(m,100),function(){x=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),C!==null&&(C(),C=null)}}}function K2(c){this._internalRoot=c}Gv.prototype.render=K2.prototype.render=function(c){var f=this._internalRoot;if(f===null)throw Error(r(409));var m=f.current,x=Bi();RL(m,x,c,f,null,null)},Gv.prototype.unmount=K2.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var f=c.containerInfo;RL(c.current,2,null,c,null,null),Nv(),f[Ru]=null}};function Gv(c){this._internalRoot=c}Gv.prototype.unstable_scheduleHydration=function(c){if(c){var f=Oi();c={blockedOn:null,target:c,priority:f};for(var m=0;m<ul.length&&f!==0&&f<ul[m].priority;m++);ul.splice(m,0,c),m===0&&zL(c)}};var GL=t.version;if(GL!=="19.2.0")throw Error(r(527,GL,"19.2.0"));H.findDOMNode=function(c){var f=c._reactInternals;if(f===void 0)throw typeof c.render=="function"?Error(r(188)):(c=Object.keys(c).join(","),Error(r(268,c)));return c=u(f),c=c!==null?h(c):null,c=c===null?null:c.stateNode,c};var Ete={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wv.isDisabled&&Wv.supportsFiber)try{En=Wv.inject(Ete),kt=Wv}catch{}}return tp.createRoot=function(c,f){if(!a(c))throw Error(r(299));var m=!1,x="",C=J_,A=eT,R=tT;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onUncaughtError!==void 0&&(C=f.onUncaughtError),f.onCaughtError!==void 0&&(A=f.onCaughtError),f.onRecoverableError!==void 0&&(R=f.onRecoverableError)),f=DL(c,1,!1,null,null,m,x,null,C,A,R,VL),c[Ru]=f.current,T2(c),new K2(f)},tp.hydrateRoot=function(c,f,m){if(!a(c))throw Error(r(299));var x=!1,C="",A=J_,R=eT,Y=tT,te=null;return m!=null&&(m.unstable_strictMode===!0&&(x=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onUncaughtError!==void 0&&(A=m.onUncaughtError),m.onCaughtError!==void 0&&(R=m.onCaughtError),m.onRecoverableError!==void 0&&(Y=m.onRecoverableError),m.formState!==void 0&&(te=m.formState)),f=DL(c,1,!0,f,m??null,x,C,te,A,R,Y,VL),f.context=PL(null),m=f.current,x=Bi(),x=pn(x),C=Ko(x),C.callback=null,Xo(m,C,x),m=x,f.current.lanes=m,jr(f,m),os(f),c[Ru]=f.current,T2(c),new Gv(f)},tp.version="19.2.0",tp}var rO;function Bte(){if(rO)return J2.exports;rO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),J2.exports=$te(),J2.exports}var qte=Bte(),$c=DF();/** 50 * @remix-run/router v1.23.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(this,arguments)}var kl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kl||(kl={}));const iO="popstate";function Fte(e){e===void 0&&(e={});function t(r,a){let{pathname:s,search:o,hash:l}=r.location;return FC("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
58function n(r,a){return typeof a=="string"?a:RF(a)}return Hte(t,n,null,e)}function rr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function PF(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zte(){return Math.random().toString(36).substr(2,8)}function aO(e,t){return{usr:e.state,key:e.key,idx:t}}function FC(e,t,n,r){return n===void 0&&(n=null),em({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xf(t):t,{state:n,key:t&&t.key||r||zte()})}function RF(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hte(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:s=!1}=r,o=a.history,l=kl.Pop,d=null,u=h();u==null&&(u=0,o.replaceState(em({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function p(){l=kl.Pop;let j=h(),S=j==null?null:j-u;u=j,d&&d({action:l,location:w.location,delta:S})}function g(j,S){l=kl.Push;let k=FC(w.location,j,S);u=h()+1;let N=aO(k,u),_=w.createHref(k);try{o.pushState(N,"",_)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;a.location.assign(_)}s&&d&&d({action:l,location:w.location,delta:1})}function y(j,S){l=kl.Replace;let k=FC(w.location,j,S);u=h();let N=aO(k,u),_=w.createHref(k);o.replaceState(N,"",_),s&&d&&d({action:l,location:w.location,delta:0})}function b(j){let S=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof j=="string"?j:RF(j);return k=k.replace(/ $/,"%20"),rr(S,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,S)}let w={get action(){return l},get location(){return e(a,o)},listen(j){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(iO,p),d=j,()=>{a.removeEventListener(iO,p),d=null}},createHref(j){return t(a,j)},createURL:b,encodeLocation(j){let S=b(j);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:y,go(j){return o.go(j)}};return w}var sO;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sO||(sO={}));function Ute(e,t,n){return n===void 0&&(n="/"),Vte(e,t,n)}function Vte(e,t,n,r){let a=typeof t=="string"?xf(t):t,s=BF(a.pathname||"/",n);if(s==null)return null;let o=IF(e);Gte(o);let l=null;for(let d=0;l==null&&d<o.length;++d){let u=ine(s);l=tne(o[d],u)}return l}function IF(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(s,o,l)=>{let d={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};d.relativePath.startsWith("/")&&(rr(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let u=Wc([r,d.relativePath]),h=n.concat(d);s.children&&s.children.length>0&&(rr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),IF(s.children,t,h,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Jte(u,s.index),routesMeta:h})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let d of $F(s.path))a(s,o,d)}),t}function $F(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let o=$F(r.join("/")),l=[];return l.push(...o.map(d=>d===""?s:[s,d].join("/"))),a&&l.push(...o),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function Gte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ene(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Wte=/^:[\w-]+$/,Yte=3,Kte=2,Xte=1,Zte=10,Qte=-2,oO=e=>e==="*";function Jte(e,t){let n=e.split("/"),r=n.length;return n.some(oO)&&(r+=Qte),t&&(r+=Kte),n.filter(a=>!oO(a)).reduce((a,s)=>a+(Wte.test(s)?Yte:s===""?Xte:Zte),r)}function ene(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function tne(e,t,n){let{routesMeta:r}=e,a={},s="/",o=[];for(let l=0;l<r.length;++l){let d=r[l],u=l===r.length-1,h=s==="/"?t:t.slice(s.length)||"/",p=nne({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),g=d.route;
58if(!p)return null;Object.assign(a,p.params),o.push({params:a,pathname:Wc([s,p.pathname]),pathnameBase:une(Wc([s,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(s=Wc([s,p.pathnameBase]))}return o}function nne(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rne(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,h,p)=>{let{paramName:g,isOptional:y}=h;if(g==="*"){let w=l[p]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const b=l[p];return y&&!b?u[g]=void 0:u[g]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function rne(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),PF(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function ine(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return PF(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function BF(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ane(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?xf(e):e;return{pathname:n?n.startsWith("/")?n:sne(n,t):t,search:dne(r),hash:fne(a)}}function sne(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function rj(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function one(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lne(e,t){let n=one(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cne(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=xf(e):(a=em({},e),rr(!a.pathname||!a.pathname.includes("?"),rj("?","pathname","search",a)),rr(!a.pathname||!a.pathname.includes("#"),rj("#","pathname","hash",a)),rr(!a.search||!a.search.includes("#"),rj("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,l;if(o==null)l=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),p-=1;a.pathname=g.join("/")}l=p>=0?t[p]:"/"}let d=ane(a,l),u=o&&o!=="/"&&o.endsWith("/"),h=(s||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const Wc=e=>e.join("/").replace(/\/\/+/g,"/"),une=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qF=["post","put","patch","delete"];new Set(qF);const pne=["get",...qF];new Set(pne);/** 59 * React Router v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function tm(){return tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tm.apply(this,arguments)}const m5=v.createContext(null),mne=v.createContext(null),Kx=v.createContext(null),Xx=v.createContext(null),yu=v.createContext({outlet:null,matches:[],isDataRoute:!1}),FF=v.createContext(null);function Zx(){return v.useContext(Xx)!=null}function As(){return Zx()||rr(!1),v.useContext(Xx).location}function zF(e){v.useContext(Kx).static||v.useLayoutEffect(e)}function pt(){let{isDataRoute:e}=v.useContext(yu);return e?Ene():gne()}function gne(){Zx()||rr(!1);let e=v.useContext(m5),{basename:t,future:n,navigator:r}=v.useContext(Kx),{matches:a}=v.useContext(yu),{pathname:s}=As(),o=JSON.stringify(lne(a,n.v7_relativeSplatPath)),l=v.useRef(!1);return zF(()=>{l.current=!0}),v.useCallback(function(u,h){if(h===void 0&&(h={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=cne(u,JSON.parse(o),s,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Wc([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,o,s,e])}function Pe(){let{matches:e}=v.useContext(yu),t=e[e.length-1];return t?t.params:{}}function vne(e,t){return yne(e,t)}function yne(e,t,n,r){Zx()||rr(!1);let{navigator:a}=v.useContext(Kx),{matches:s}=v.useContext(yu),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let u=As(),h;if(t){var p;let j=typeof t=="string"?xf(t):t;d==="/"||(p=j.pathname)!=null&&p.startsWith(d)||rr(!1),h=j}else h=u;let g=h.pathname||"/",y=g;if(d!=="/"){let j=d.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(j.length).join("/")}let b=Ute(e,{pathname:y}),w=Sne(b&&b.map(j=>Object.assign({},j,{params:Object.assign({},l,j.params),pathname:Wc([d,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?d:Wc([d,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),s,n,r);return t&&w?v.createElement(Xx.Provider,{value:{location:tm({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:kl.Pop}},w):w}function xne(){let e=Ane(),t=hne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application
67Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:a},n):null,null)}const bne=v.createElement(xne,null);class wne extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(yu.Provider,{value:this.props.routeContext},v.createElement(FF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jne(e){let{routeContext:t,match:n,children:r}=e,a=v.useContext(m5);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(yu.Provider,{value:t},r)}function Sne(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let h=o.findIndex(p=>p.route.id&&l?.[p.route.id]!==void 0);h>=0||rr(!1),o=o.slice(0,Math.min(o.length,h+1))}let d=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<o.length;h++){let p=o[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=h),p.route.id){let{loaderData:g,errors:y}=n,b=p.route.loader&&g[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||b){d=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,p,g)=>{let y,b=!1,w=null,j=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,w=p.route.errorElement||bne,d&&(u<0&&g===0?(_ne("route-fallback"),b=!0,j=null):u===g&&(b=!0,j=p.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,g+1)),k=()=>{let N;return y?N=w:b?N=j:p.route.Component?N=v.createElement(p.route.Component,null):p.route.element?N=p.route.element:N=h,v.createElement(jne,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:n!=null},children:N})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?v.createElement(wne,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:k(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):k()},null)}var HF=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(HF||{}),UF=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(UF||{});function Cne(e){let t=v.useContext(m5);return t||rr(!1),t}function kne(e){let t=v.useContext(mne);return t||rr(!1),t}function Nne(e){let t=v.useContext(yu);return t||rr(!1),t}function VF(e){let t=Nne(),n=t.matches[t.matches.length-1];return n.route.id||rr(!1),n.route.id}function Ane(){var e;let t=v.useContext(FF),n=kne(),r=VF();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ene(){let{router:e}=Cne(HF.UseNavigateStable),t=VF(UF.UseNavigateStable),n=v.useRef(!1);return zF(()=>{n.current=!0}),v.useCallback(function(a,s){s===void 0&&(s={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,tm({fromRouteId:t},s)))},[e,t])}const lO={};function _ne(e,t,n){lO[e]||(lO[e]=!0)}function Tne(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function zt(e){rr(!1)}function Lne(e){let{basename:t="/",children:n=null,location:r,navigationType:a=kl.Pop,navigator:s,static:o=!1,future:l}=e;Zx()&&rr(!1);let d=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:d,navigator:s,static:o,future:tm({v7_relativeSplatPath:!1},l)}),[d,l,s,o]);typeof r=="string"&&(r=xf(r));let{pathname:h="/",search:p="",hash:g="",state:y=null,key:b="default"}=r,w=v.useMemo(()=>{let j=BF(h,d);return j==null?null:{location:{pathname:j,search:p,hash:g,state:y,key:b},navigationType:a}},[d,h,p,g,y,b,a]);return w==null?null:v.createElement(Kx.Provider,{value:u},v.createElement(Xx.Provider,{children:n,value:w}))}function One(e){let{children:t,location:n}=e;return vne(zC(t),n)}new Promise(()=>{});
67function zC(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,a)=>{if(!v.isValidElement(r))return;let s=[...t,a];if(r.type===v.Fragment){n.push.apply(n,zC(r.props.children,s));return}r.type!==zt&&rr(!1),!r.props.index||!r.props.children||rr(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zC(r.props.children,s)),n.push(o)}),n}/** 68 * React Router DOM v6.30.1 69 * 70 * Copyright (c) Remix Software Inc. 71 * 72 * This source code is licensed under the MIT license found in the 73 * LICENSE.md file in the root directory of this source tree. 74 * 75 * @license MIT 76 */function HC(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function Mne(e,t){let n=HC(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(s=>{n.append(a,s)})}),n}const Dne="6";try{window.__reactRouterVersion=Dne}catch{}const Pne="startTransition",cO=MF[Pne];function Rne(e){let{basename:t,children:n,future:r,window:a}=e,s=v.useRef();s.current==null&&(s.current=Fte({window:a,v5Compat:!0}));let o=s.current,[l,d]=v.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},h=v.useCallback(p=>{u&&cO?cO(()=>d(p)):d(p)},[d,u]);return v.useLayoutEffect(()=>o.listen(h),[o,h]),v.useEffect(()=>Tne(r),[r]),v.createElement(Lne,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}var uO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uO||(uO={}));var dO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dO||(dO={}));function Ine(e){let t=v.useRef(HC(e)),n=v.useRef(!1),r=As(),a=v.useMemo(()=>Mne(r.search,n.current?null:t.current),[r.search]),s=pt(),o=v.useCallback((l,d)=>{const u=HC(typeof l=="function"?l(a):l);n.current=!0,s("?"+u,d)},[s,a]);return[a,o]}/*! js-cookie v3.0.5 | MIT */function Yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var $ne={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function UC(e,t){function n(a,s,o){if(!(typeof document>"u")){o=Yv({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var d in o)o[d]&&(l+="; "+d,o[d]!==!0&&(l+="="+o[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+l}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],o={},l=0;l<s.length;l++){var d=s[l].split("="),u=d.slice(1).join("=");try{var h=decodeURIComponent(d[0]);if(o[h]=e.read(u,h),a===h)break}catch{}}return a?o[a]:o}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Yv({},s,{expires:-1}))},withAttributes:function(a){return UC(this.converter,Yv({},this.attributes,a))},withConverter:function(a){return UC(Yv({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var VC=UC($ne,{path:"/"}),ij={exports:{}},aj,fO;function Bne(){if(fO)return aj;fO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return aj=e,aj}var sj,hO;
76function qne(){if(hO)return sj;hO=1;var e=Bne();function t(){}function n(){}return n.resetWarningCache=t,sj=function(){function r(o,l,d,u,h,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},sj}var pO;function Fne(){return pO||(pO=1,ij.exports=qne()()),ij.exports}var zne=Fne();const mn=Aa(zne);function Ht(e){console.warn("[react-ga]",e)}function GC(e){"@babel/helpers - typeof";return GC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GC(e)}var Hne=["to","target"];function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mO(Object(n),!0).forEach(function(r){g5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Une(e,t){if(e==null)return{};var n=Vne(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Gne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yne(e,t,n){return t&&Wne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WC(e,t)}function WC(e,t){return WC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WC(e,t)}function Xne(e){var t=Qne();return function(){var r=yy(e),a;if(t){var s=yy(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return Zne(this,a)}}function Zne(e,t){if(t&&(GC(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GF(e)}function GF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function g5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vO="_blank",Jne=1,tu=(function(e){Kne(n,e);var t=Xne(n);function n(){var r;Gne(this,n);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s)),g5(GF(r),"handleClick",function(l){var d=r.props,u=d.target,h=d.eventLabel,p=d.to,g=d.onClick,y=d.trackerNames,b={label:h},w=u!==vO,j=!(l.ctrlKey||l.shiftKey||l.metaKey||l.button===Jne);w&&j?(l.preventDefault(),n.trackLink(b,function(){window.location.href=p},y)):n.trackLink(b,function(){},y),g&&g(l)}),r}return Yne(n,[{key:"render",value:function(){var a=this.props,s=a.to,o=a.target,l=Une(a,Hne),d=gO(gO({},l),{},{target:o,href:s,onClick:this.handleClick});return o===vO&&(d.rel="".concat(d.rel?d.rel:""," noopener noreferrer").trim()),delete d.eventLabel,delete d.trackerNames,ft.createElement("a",d)}}]),n})(v.Component);g5(tu,"trackLink",function(){Ht("ga tracking not enabled")});tu.propTypes={eventLabel:mn.string.isRequired,target:mn.string,to:mn.string,onClick:mn.func,trackerNames:mn.arrayOf(mn.string)};tu.defaultProps={target:null,to:null,onClick:null,trackerNames:null};function ere(e){return typeof e=="string"&&e.indexOf("@")!==-1}var tre="REDACTED (Potential Email Address)";function nre(e){return ere(e)?(Ht("This arg looks like an email address, redacting."),tre):e}function Qx(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}var rre=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function ire(e){return Qx(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(t,n,r){return n>0&&n+t.length!==r.length&&t.search(rre)>-1&&r.charAt(n-2)!==":"&&(r.charAt(n+t.length)!=="-"||r.charAt(n-1)==="-")&&r.charAt(n-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)})}function are(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=e||"";return t&&(r=ire(e)),n&&(r=nre(r)),r}function sre(e){return e.substring(0,1)==="/"?e.substring(1):e}var yO=!1;function ore(e){if(!yO){yO=!0;var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");var n=e&&e.onerror;(function(r,a,s,o,l,d,u){r.GoogleAnalyticsObject=l,r[l]=r[l]||function(){(r[l].q=r[l].q||[]).push(arguments)},r[l].l=1*new Date,d=a.createElement(s),u=a.getElementsByTagName(s)[0],d.async=1,d.src=o,d.onerror=n,u.parentNode.insertBefore(d,u)})(window,document,"script",t,"ga")}}function gr(e){console.info("[react-ga]",e)}var oj=[];const xy={calls:oj,ga:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];oj.push([].concat(n))},resetCalls:function(){oj.length=0}};var lre=["category","action","label","value","nonInteraction","transport"];function cre(e,t){if(e==null)return{};var n=ure(e,t),r,a;
76if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ure(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function xO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(r){fre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nm(e){"@babel/helpers - typeof";return nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nm(e)}function hre(e){return vre(e)||gre(e)||mre(e)||pre()}function pre(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mre(e,t){if(e){if(typeof e=="string")return YC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(e,t)}}function gre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vre(e){if(Array.isArray(e))return YC(e)}function YC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var WF=typeof window>"u"||typeof document>"u",$a=!1,YF=!0,KF=!1,XF=!0,ZF=!0,Gd=function(){var t;return KF?xy.ga.apply(xy,arguments):WF?!1:window.ga?(t=window).ga.apply(t,arguments):Ht("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually")};function El(e){return are(e,YF,ZF)}function Jx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n[0];if(typeof Gd=="function"){if(typeof a!="string"){Ht("ga command must be a string");return}(XF||!Array.isArray(e))&&Gd.apply(void 0,n),Array.isArray(e)&&e.forEach(function(s){Gd.apply(void 0,hre(["".concat(s,".").concat(a)].concat(n.slice(1))))})}}function bO(e,t){if(!e){Ht("gaTrackingID is required in initialize()");return}t&&(t.debug&&t.debug===!0&&($a=!0),t.titleCase===!1&&(YF=!1),t.redactEmail===!1&&(ZF=!1),t.useExistingGa)||(t&&t.gaOptions?Gd("create",e,t.gaOptions):Gd("create",e,"auto"))}function QF(e,t){return Array.isArray(e)?e.forEach(function(n){if(nm(n)!=="object"){Ht("All configs must be an object");return}bO(n.trackingId,n)}):bO(e,t),!0}function JF(e,t){if(t&&t.testMode===!0)KF=!0;else{if(WF)return;(!t||t.standardImplementation!==!0)&&ore(t)}XF=t&&typeof t.alwaysSendToDefaultTracker=="boolean"?t.alwaysSendToDefaultTracker:!0,QF(e,t)}function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(Gd.apply(void 0,t),$a&&(gr("called ga('arguments');"),gr("with arguments: ".concat(JSON.stringify(t))))),window.ga}function ez(e,t){if(!e){Ht("`fieldsObject` is required in .set()");return}if(nm(e)!=="object"){Ht("Expected `fieldsObject` arg to be an Object");return}Object.keys(e).length===0&&Ht("empty `fieldsObject` given to .set()"),Jx(t,"set",e),$a&&(gr("called ga('set', fieldsObject);"),gr("with fieldsObject: ".concat(JSON.stringify(e))))}function bf(e,t){Jx(t,"send",e),$a&&(gr("called ga('send', fieldObject);"),gr("with fieldObject: ".concat(JSON.stringify(e))),gr("with trackers: ".concat(JSON.stringify(t))))}function tz(e,t,n){if(!e){Ht("path is required in .pageview()");return}var r=Qx(e);if(r===""){Ht("path cannot be an empty string in .pageview()");return}var a={};if(n&&(a.title=n),typeof ti=="function"&&(Jx(t,"send",dre({hitType:"pageview",page:r},a)),$a)){gr("called ga('send', 'pageview', path);");var s="";n&&(s=" and title: ".concat(n)),gr("with path: ".concat(r).concat(s))}}function nz(e,t){if(!e){Ht("modalName is required in .modalview(modalName)");return}var n=sre(Qx(e));if(n===""){Ht("modalName cannot be an empty string or a single / in .modalview()");return}if(typeof ti=="function"){var r="/modal/".concat(n);Jx(t,"send","pageview",r),$a&&(gr("called ga('send', 'pageview', path);"),gr("with path: ".concat(r)))}}function rz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.category,n=e.variable,r=e.value,a=e.label,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(typeof ti=="function"){if(!t||!n||typeof r!="number"){Ht("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number");return}var o={hitType:"timing",timingCategory:El(t),timingVar:El(n),timingValue:r};a&&(o.timingLabel=El(a)),bf(o,s)}}function iz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.category,n=e.action,r=e.label,a=e.value,s=e.nonInteraction,o=e.transport,l=cre(e,lre),d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(typeof ti=="function"){if(!t||!n){Ht("args.category AND args.action are required in event()");return}var u={hitType:"event",eventCategory:El(t),eventAction:El(n)};r&&(u.eventLabel=El(r)),typeof a<"u"&&(typeof a!="number"?Ht("Expected `args.value` arg to be a Number."):u.eventValue=a),typeof s<"u"&&(typeof s!="boolean"?Ht("`args.nonInteraction` must be a boolean."):u.nonInteraction=s),typeof o<"u"&&(typeof o!="string"?Ht("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(o)===-1&&Ht("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=o)),Object.keys(l).filter(function(h){return h.substr(0,9)==="dimension"}
77).forEach(function(h){u[h]=l[h]}),Object.keys(l).filter(function(h){return h.substr(0,6)==="metric"}).forEach(function(h){u[h]=l[h]}),bf(u,d)}}function az(e,t){var n=e.description,r=e.fatal;if(typeof ti=="function"){var a={hitType:"exception"};n&&(a.exDescription=El(n)),typeof r<"u"&&(typeof r!="boolean"?Ht("`args.fatal` must be a boolean."):a.exFatal=r),bf(a,t)}}var sz={require:function(t,n,r){if(typeof ti=="function"){if(!t){Ht("`name` is required in .require()");return}var a=Qx(t);if(a===""){Ht("`name` cannot be an empty string in .require()");return}var s=r?"".concat(r,".require"):"require";if(n){if(nm(n)!=="object"){Ht("Expected `options` arg to be an Object");return}Object.keys(n).length===0&&Ht("Empty `options` given to .require()"),ti(s,a,n),$a&&gr("called ga('require', '".concat(a,"', ").concat(JSON.stringify(n)))}else ti(s,a),$a&&gr("called ga('require', '".concat(a,"');"))}},execute:function(t,n){for(var r,a,s=arguments.length,o=new Array(s>2?s-2:0),l=2;l<s;l++)o[l-2]=arguments[l];if(o.length===1?r=o[0]:(a=o[0],r=o[1]),typeof ti=="function")if(typeof t!="string")Ht("Expected `pluginName` arg to be a String.");else if(typeof n!="string")Ht("Expected `action` arg to be a String.");else{var d="".concat(t,":").concat(n);r=r||null,a&&r?(ti(d,a,r),$a&&(gr("called ga('".concat(d,"');")),gr('actionType: "'.concat(a,'" with payload: ').concat(JSON.stringify(r))))):r?(ti(d,r),$a&&(gr("called ga('".concat(d,"');")),gr("with payload: ".concat(JSON.stringify(r))))):(ti(d),$a&&gr("called ga('".concat(d,"');")))}}};function v5(e,t,n){if(typeof t!="function"){Ht("hitCallback function is required");return}if(typeof ti=="function"){if(!e||!e.label){Ht("args.label is required in outboundLink()");return}var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:El(e.label)},a=!1,s=function(){a=!0,t()},o=setTimeout(s,250),l=function(){clearTimeout(o),a||t()};r.hitCallback=l,bf(r,n)}else setTimeout(t,0)}var yre=xy;const xre={initialize:JF,ga:ti,set:ez,send:bf,pageview:tz,modalview:nz,timing:rz,event:iz,exception:az,plugin:sz,outboundLink:v5,testModeAPI:xy},bre=Object.freeze(Object.defineProperty({__proto__:null,addTrackers:QF,default:xre,event:iz,exception:az,ga:ti,initialize:JF,modalview:nz,outboundLink:v5,pageview:tz,plugin:sz,send:bf,set:ez,testModeAPI:yre,timing:rz},Symbol.toStringTag,{value:"Module"}));function wO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(n),!0).forEach(function(r){wre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tu.origTrackLink=tu.trackLink;tu.trackLink=v5;var jre=tu;const H0=jO(jO({},bre),{},{OutboundLink:jre});let Sre={data:""},Cre=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Sre},kre=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Nre=/\/\*[^]*?\*\/| +/g,SO=/\n+/g,jl=(e,t)=>{let n="",r="",a="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?jl(o,s):s+"{"+jl(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=jl(o,t?t.replace(/([^,])+/g,l=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,l):l?l+" "+d:d)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=jl.p?jl.p(s,o):s+":"+o+";")}return n+(t&&a?t+"{"+a+"}":a)+r},ro={},oz=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+oz(e[n]);return t}return e},Are=(e,t,n,r,a)=>{let s=oz(e),o=ro[s]||(ro[s]=(d=>{let u=0,h=11;for(;u<d.length;
77)h=101*h+d.charCodeAt(u++)>>>0;return"go"+h})(s));if(!ro[o]){let d=s!==e?e:(u=>{let h,p,g=[{}];for(;h=kre.exec(u.replace(Nre,""));)h[4]?g.shift():h[3]?(p=h[3].replace(SO," ").trim(),g.unshift(g[0][p]=g[0][p]||{})):g[0][h[1]]=h[2].replace(SO," ").trim();return g[0]})(e);ro[o]=jl(a?{["@keyframes "+o]:d}:d,n?"":"."+o)}let l=n&&ro.g?ro.g:null;return n&&(ro.g=ro[o]),((d,u,h,p)=>{p?u.data=u.data.replace(p,d):u.data.indexOf(d)===-1&&(u.data=h?d+u.data:u.data+d)})(ro[o],t,r,l),o},Ere=(e,t,n)=>e.reduce((r,a,s)=>{let o=t[s];if(o&&o.call){let l=o(n),d=l&&l.props&&l.props.className||/^go/.test(l)&&l;o=d?"."+d:l&&typeof l=="object"?l.props?"":jl(l,""):l===!1?"":l}return r+a+(o??"")},"");function eb(e){let t=this||{},n=e.call?e(t.p):e;return Are(n.unshift?n.raw?Ere(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Cre(t.target),t.g,t.o,t.k)}let lz,KC,XC;eb.bind({g:1});let jo=eb.bind({k:1});function _re(e,t,n,r){jl.p=t,lz=e,KC=n,XC=r}function Hl(e,t){let n=this||{};return function(){let r=arguments;function a(s,o){let l=Object.assign({},s),d=l.className||a.className;n.p=Object.assign({theme:KC&&KC()},l),n.o=/ *go\d+/.test(d),l.className=eb.apply(n,r)+(d?" "+d:"");let u=e;return e[0]&&(u=l.as||e,delete l.as),XC&&u[0]&&XC(l),lz(u,l)}return a}}var Tre=e=>typeof e=="function",by=(e,t)=>Tre(e)?e(t):e,Lre=(()=>{let e=0;return()=>(++e).toString()})(),cz=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ore=20,y5="default",uz=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:r}=t;return uz(e,{type:e.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:a}=t;return{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+s}))}}},U0=[],dz={toasts:[],pausedAt:void 0,settings:{toastLimit:Ore}},gs={},fz=(e,t=y5)=>{gs[t]=uz(gs[t]||dz,e),U0.forEach(([n,r])=>{n===t&&r(gs[t])})},hz=e=>Object.keys(gs).forEach(t=>fz(e,t)),Mre=e=>Object.keys(gs).find(t=>gs[t].toasts.some(n=>n.id===e)),tb=(e=y5)=>t=>{fz(t,e)},Dre={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Pre=(e={},t=y5)=>{let[n,r]=v.useState(gs[t]||dz),a=v.useRef(gs[t]);v.useEffect(()=>(a.current!==gs[t]&&r(gs[t]),U0.push([t,r]),()=>{let o=U0.findIndex(([l])=>l===t);o>-1&&U0.splice(o,1)}),[t]);let s=n.toasts.map(o=>{var l,d,u;return{...e,...e[o.type],...o,removeDelay:o.removeDelay||((l=e[o.type])==null?void 0:l.removeDelay)||e?.removeDelay,duration:o.duration||((d=e[o.type])==null?void 0:d.duration)||e?.duration||Dre[o.type],style:{...e.style,...(u=e[o.type])==null?void 0:u.style,...o.style}}});return{...n,toasts:s}},Rre=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||Lre()}),zm=e=>(t,n)=>{let r=Rre(t,e,n);return tb(r.toasterId||Mre(r.id))({type:2,toast:r}),r.id},nr=(e,t)=>zm("blank")(e,t);nr.error=zm("error");nr.success=zm("success");nr.loading=zm("loading");nr.custom=zm("custom");nr.dismiss=(e,t)=>{let n={type:3,toastId:e};t?tb(t)(n):hz(n)};nr.dismissAll=e=>nr.dismiss(void 0,e);nr.remove=(e,t)=>{let n={type:4,toastId:e};t?tb(t)(n):hz(n)};nr.removeAll=e=>nr.remove(void 0,e);nr.promise=(e,t,n)=>{let r=nr.loading(t.loading,{...n,...n?.loading});return typeof e=="function"&&(e=e()),e.then(a=>{let s=t.success?by(t.success,a):void 0;return s?nr.success(s,{id:r,...n,...n?.success}):nr.dismiss(r),a}).catch(a=>{let s=t.error?by(t.error,a):void 0;s?nr.error(s,{id:r,...n,...n?.error}):nr.dismiss(r)}),e};var Ire=1e3,$re=(e,t="default")=>{let{toasts:n,pausedAt:r}=Pre(e,t),a=v.useRef(new Map).current,s=v.useCallback((p,g=Ire)=>{if(a.has(p))return;let y=setTimeout(()=>{a.delete(p),o({type:4,toastId:p})},g);a.set(p,y)},[]);v.useEffect(()=>{if(r)return;let p=Date.now(),g=n.map(y=>{if(y.duration===1/0)return;let b=(y.duration||0)+y.pauseDuration-(p-y.createdAt);if(b<0){y.visible&&nr.dismiss(y.id);return}return setTimeout(()=>nr.dismiss(y.id,t),b)});return()=>{g.forEach(y=>y&&clearTimeout(y))}},[n,r,t]);let o=v.useCallback(tb(t),[t]),l=v.useCallback(()=>{o({type:5,time:Date.now()})},[o]),d=v.useCallback((p,g)=>{o({type:1,toast:{id:p,height:g}})},[o]),u=v.useCallback(()=>{r&&o({type:6,time:Date.now()})},[r,o]),h=v.useCallback((p,g)=>{let{reverseOrder:y=!1,gutter:b=8,defaultPosition:w}=g||{},j=n.filter(N=>(N.position||w)===(p.position||w)&&N.height),S=j.findIndex(N=>N.id===p.id),k=j.filter((N,_)=>_<S&&N.visible).length;return j.filter(N=>N.visible).slice(...y?[k+1]:[0,k]).reduce((N,_)=>N+(_.height||0)+b,0)},[n]);return v.useEffect(()=>
77{n.forEach(p=>{if(p.dismissed)s(p.id,p.removeDelay);else{let g=a.get(p.id);g&&(clearTimeout(g),a.delete(p.id))}})},[n,s]),{toasts:n,handlers:{updateHeight:d,startPause:l,endPause:u,calculateOffset:h}}},Bre=jo` 78from { 79 transform: scale(0) rotate(45deg); 80 opacity: 0; 81} 82to { 83 transform: scale(1) rotate(45deg); 84 opacity: 1; 85}`,qre=jo` 86from { 87 transform: scale(0); 88 opacity: 0; 89} 90to { 91 transform: scale(1); 92 opacity: 1; 93}`,Fre=jo` 94from { 95 transform: scale(0) rotate(90deg); 96 opacity: 0; 97} 98to { 99 transform: scale(1) rotate(90deg); 100 opacity: 1; 101}`,zre=Hl("div")` 102 width: 20px; 103 opacity: 0; 104 height: 20px; 105 border-radius: 10px; 106 background: ${e=>e.primary||"#ff4b4b"}; 107 position: relative; 108 transform: rotate(45deg); 109 110 animation: ${Bre} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 111 forwards; 112 animation-delay: 100ms; 113 114 &:after, 115 &:before { 116 content: ''; 117 animation: ${qre} 0.15s ease-out forwards; 118 animation-delay: 150ms; 119 position: absolute; 120 border-radius: 3px; 121 opacity: 0; 122 background: ${e=>e.secondary||"#fff"}; 123 bottom: 9px; 124 left: 4px; 125 height: 2px; 126 width: 12px; 127 } 128 129 &:before { 130 animation: ${Fre} 0.15s ease-out forwards; 131 animation-delay: 180ms; 132 transform: rotate(90deg); 133 } 134`,Hre=jo` 135 from { 136 transform: rotate(0deg); 137 } 138 to { 139 transform: rotate(360deg); 140 } 141`,Ure=Hl("div")` 142 width: 12px; 143 height: 12px; 144 box-sizing: border-box; 145 border: 2px solid; 146 border-radius: 100%; 147 border-color: ${e=>e.secondary||"#e0e0e0"}; 148 border-right-color: ${e=>e.primary||"#616161"}; 149 animation: ${Hre} 1s linear infinite; 150`,Vre=jo` 151from { 152 transform: scale(0) rotate(45deg); 153 opacity: 0; 154} 155to { 156 transform: scale(1) rotate(45deg); 157 opacity: 1; 158}`,Gre=jo` 1590% { 160 height: 0; 161 width: 0; 162 opacity: 0; 163} 16440% { 165 height: 0; 166 width: 6px; 167 opacity: 1; 168} 169100% { 170 opacity: 1; 171 height: 10px; 172}`,Wre=Hl("div")` 173 width: 20px; 174 opacity: 0; 175 height: 20px; 176 border-radius: 10px; 177 background: ${e=>e.primary||"#61d345"}; 178 position: relative; 179 transform: rotate(45deg); 180 181 animation: ${Vre} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 182 forwards; 183 animation-delay: 100ms; 184 &:after { 185 content: ''; 186 box-sizing: border-box; 187 animation: ${Gre} 0.2s ease-out forwards; 188 opacity: 0; 189 animation-delay: 200ms; 190 position: absolute; 191 border-right: 2px solid; 192 border-bottom: 2px solid; 193 border-color: ${e=>e.secondary||"#fff"}; 194 bottom: 6px; 195 left: 6px; 196 height: 10px; 197 width: 6px; 198 } 199`,Yre=Hl("div")` 200 position: absolute; 201`,Kre=Hl("div")` 202 position: relative; 203 display: flex; 204 justify-content: center; 205 align-items: center; 206 min-width: 20px; 207 min-height: 20px; 208`,Xre=jo` 209from { 210 transform: scale(0.6); 211 opacity: 0.4; 212} 213to { 214 transform: scale(1); 215 opacity: 1; 216}`,Zre=Hl("div")` 217 position: relative; 218 transform: scale(0.6); 219 opacity: 0.4; 220 min-width: 20px; 221 animation: ${Xre} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 222 forwards; 223`,Qre=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?v.createElement(Zre,null,t):t:n==="blank"?null:v.createElement(Kre,null,v.createElement(Ure,{...r}),n!=="loading"&&v.createElement(Yre,null,n==="error"?v.createElement(zre,{...r}):v.createElement(Wre,{...r})))},Jre=e=>` 2240% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 225100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 226`,eie=e=>` 2270% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 228100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} 229`,tie="0%{opacity:0;} 100%{opacity:1;}",nie="0%{opacity:1;} 100%{opacity:0;}",rie=Hl("div")` 230 display: flex; 231 align-items: center; 232 background: #fff; 233 color: #363636; 234 line-height: 1.3; 235 will-change: transform; 236 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 237 max-width: 350px; 238 pointer-events: auto; 239 padding: 8px 10px; 240 border-radius: 8px; 241`,iie=Hl("div")` 242 display: flex; 243 justify-content: center; 244 margin: 4px 10px; 245 color: inherit; 246 flex: 1 1 auto; 247 white-space: pre-line; 248`,aie=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=cz()?[tie,nie]:[Jre(n),eie(n)];return{animation:t?`${jo(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${jo(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},sie=v.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?aie(e.position||t||"top-center",e.visible):{opacity:0}
248,s=v.createElement(Qre,{toast:e}),o=v.createElement(iie,{...e.ariaProps},by(e.message,e));return v.createElement(rie,{className:e.className,style:{...a,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):v.createElement(v.Fragment,null,s,o))});_re(v.createElement);var oie=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let s=v.useCallback(o=>{if(o){let l=()=>{let d=o.getBoundingClientRect().height;r(e,d)};l(),new MutationObserver(l).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return v.createElement("div",{ref:s,className:t,style:n},a)},lie=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:cz()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}},cie=eb` 249 z-index: 9999; 250 > * { 251 pointer-events: auto; 252 } 253`,Kv=16,uie=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,toasterId:s,containerStyle:o,containerClassName:l})=>{let{toasts:d,handlers:u}=$re(n,s);return v.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:Kv,left:Kv,right:Kv,bottom:Kv,pointerEvents:"none",...o},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},d.map(h=>{let p=h.position||t,g=u.calculateOffset(h,{reverseOrder:e,gutter:r,defaultPosition:t}),y=lie(p,g);return v.createElement(oie,{id:h.id,key:h.id,onHeightUpdate:u.updateHeight,className:h.visible?cie:"",style:y},h.type==="custom"?by(h.message,h):a?a(h):v.createElement(sie,{toast:h,position:p}))}))},np=nr;const Le=ft.createContext({});function x5({iconProps:e,children:t}){return ft.createElement(Le.Provider,{value:e||{},children:t})}var die=Object.defineProperty,CO=Object.getOwnPropertySymbols,fie=Object.prototype.hasOwnProperty,hie=Object.prototype.propertyIsEnumerable,kO=(e,t,n)=>t in e?die(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lj=(e,t)=>{for(var n in t||(t={}))fie.call(t,n)&&kO(e,n,t[n]);if(CO)for(var n of CO(t))hie.call(t,n)&&kO(e,n,t[n]);return e};const pie=(e,t)=>{const n=v.useContext(Le),r=lj(lj({},n),e);return v.createElement("svg",lj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M9.8525 14.6334L3.65151 10.6873C2.41651 9.90141 2.41651 8.09858 3.65151 7.31268L9.8525 3.36659C11.1628 2.53279 12.8372 2.53279 14.1475 3.36659L20.3485 7.31268C21.5835 8.09859 21.5835 9.90142 20.3485 10.6873L14.1475 14.6334C12.8372 15.4672 11.1628 15.4672 9.8525 14.6334Z",stroke:"currentColor"}),v.createElement("path",{d:"M18.2857 12L20.3485 13.3127C21.5835 14.0986 21.5835 15.9014 20.3485 16.6873L14.1475 20.6334C12.8372 21.4672 11.1628 21.4672 9.8525 20.6334L3.65151 16.6873C2.41651 15.9014 2.41651 14.0986 3.65151 13.3127L5.71429 12",stroke:"currentColor"}))},mie=v.forwardRef(pie);var gie=mie,vie=Object.defineProperty,NO=Object.getOwnPropertySymbols,yie=Object.prototype.hasOwnProperty,xie=Object.prototype.propertyIsEnumerable,AO=(e,t,n)=>t in e?vie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cj=(e,t)=>{for(var n in t||(t={}))yie.call(t,n)&&AO(e,n,t[n]);if(NO)for(var n of NO(t))xie.call(t,n)&&AO(e,n,t[n]);return e};const bie=(e,t)=>{const n=v.useContext(Le),r=cj(cj({},n),e);return v.createElement("svg",cj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wie=v.forwardRef(bie);var Hm=wie,jie=Object.defineProperty,EO=Object.getOwnPropertySymbols,Sie=Object.prototype.hasOwnProperty,Cie=Object.prototype.propertyIsEnumerable,_O=(e,t,n)=>t in e?jie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uj=(e,t)=>{for(var n in t||(t={}))Sie.call(t,n)&&_O(e,n,t[n]);if(EO)for(var n of EO(t))Cie.call(t,n)&&_O(e,n,t[n]);return e};const kie=(e,t)=>{const n=v.useContext(Le),r=uj(uj({},n),e);return v.createElement("svg",uj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Nie=v.forwardRef(kie);var Xa=Nie,Aie=Object.defineProperty,TO=Object.getOwnPropertySymbols,Eie=Object.prototype.hasOwnProperty,_ie=Object.prototype.propertyIsEnumerable,LO=(e,t,n
253)=>t in e?Aie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dj=(e,t)=>{for(var n in t||(t={}))Eie.call(t,n)&&LO(e,n,t[n]);if(TO)for(var n of TO(t))_ie.call(t,n)&&LO(e,n,t[n]);return e};const Tie=(e,t)=>{const n=v.useContext(Le),r=dj(dj({},n),e);return v.createElement("svg",dj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Lie=v.forwardRef(Tie);var er=Lie,Oie=Object.defineProperty,OO=Object.getOwnPropertySymbols,Mie=Object.prototype.hasOwnProperty,Die=Object.prototype.propertyIsEnumerable,MO=(e,t,n)=>t in e?Oie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fj=(e,t)=>{for(var n in t||(t={}))Mie.call(t,n)&&MO(e,n,t[n]);if(OO)for(var n of OO(t))Die.call(t,n)&&MO(e,n,t[n]);return e};const Pie=(e,t)=>{const n=v.useContext(Le),r=fj(fj({},n),e);return v.createElement("svg",fj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M17 16L12 21L7 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Rie=v.forwardRef(Pie);var Wd=Rie,Iie=Object.defineProperty,DO=Object.getOwnPropertySymbols,$ie=Object.prototype.hasOwnProperty,Bie=Object.prototype.propertyIsEnumerable,PO=(e,t,n)=>t in e?Iie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hj=(e,t)=>{for(var n in t||(t={}))$ie.call(t,n)&&PO(e,n,t[n]);if(DO)for(var n of DO(t))Bie.call(t,n)&&PO(e,n,t[n]);return e};const qie=(e,t)=>{const n=v.useContext(Le),r=hj(hj({},n),e);return v.createElement("svg",hj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6.00005 19L19 5.99996M19 5.99996V18.48M19 5.99996H6.52005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Fie=v.forwardRef(qie);var Oe=Fie,zie=Object.defineProperty,RO=Object.getOwnPropertySymbols,Hie=Object.prototype.hasOwnProperty,Uie=Object.prototype.propertyIsEnumerable,IO=(e,t,n
253)=>t in e?zie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pj=(e,t)=>{for(var n in t||(t={}))Hie.call(t,n)&&IO(e,n,t[n]);if(RO)for(var n of RO(t))Uie.call(t,n)&&IO(e,n,t[n]);return e};const Vie=(e,t)=>{const n=v.useContext(Le),r=pj(pj({},n),e);return v.createElement("svg",pj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Gie=v.forwardRef(Vie);var wy=Gie,Wie=Object.defineProperty,$O=Object.getOwnPropertySymbols,Yie=Object.prototype.hasOwnProperty,Kie=Object.prototype.propertyIsEnumerable,BO=(e,t,n)=>t in e?Wie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mj=(e,t)=>{for(var n in t||(t={}))Yie.call(t,n)&&BO(e,n,t[n]);if($O)for(var n of $O(t))Kie.call(t,n)&&BO(e,n,t[n]);return e};const Xie=(e,t)=>{const n=v.useContext(Le),r=mj(mj({},n),e);return v.createElement("svg",mj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21.4383 11.6622L12.2483 20.8522C11.1225 21.9781 9.59552 22.6106 8.00334 22.6106C6.41115 22.6106 4.88418 21.9781 3.75834 20.8522C2.63249 19.7264 2 18.1994 2 16.6072C2 15.015 2.63249 13.4881 3.75834 12.3622L12.9483 3.17222C13.6989 2.42166 14.7169 2 15.7783 2C16.8398 2 17.8578 2.42166 18.6083 3.17222C19.3589 3.92279 19.7806 4.94077 19.7806 6.00222C19.7806 7.06368 19.3589 8.08166 18.6083 8.83222L9.40834 18.0222C9.03306 18.3975 8.52406 18.6083 7.99334 18.6083C7.46261 18.6083 6.95362 18.3975 6.57834 18.0222C6.20306 17.6469 5.99222 17.138 5.99222 16.6072C5.99222 16.0765 6.20306 15.5675 6.57834 15.1922L15.0683 6.71222",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Zie=v.forwardRef(Xie);var Ui=Zie,Qie=Object.defineProperty,qO=Object.getOwnPropertySymbols,Jie=Object.prototype.hasOwnProperty,eae=Object.prototype.propertyIsEnumerable,FO=(e,t,n)=>t in e?Qie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gj=(e,t)=>{for(var n in t||(t={}))Jie.call(t,n)&&FO(e,n,t[n]);if(qO)for(var n of qO(t))eae.call(t,n)&&FO(e,n,t[n]);return e};const tae=(e,t)=>{const n=v.useContext(Le),r=gj(gj({},n),e);return v.createElement("svg",gj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M18 8.4C18 6.70261 17.3679 5.07475 16.2426 3.87452C15.1174 2.67428 13.5913 2 12 2C10.4087 2 8.88258 2.67428 7.75736 3.87452C6.63214 5.07475 6 6.70261 6 8.4C6 15.8667 3 18 3 18H21C21 18 18 15.8667 18 8.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13.73 21C13.5542 21.3031 13.3019 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nae=v.forwardRef(tae);var rae=nae,iae=Object.defineProperty,zO=Object.getOwnPropertySymbols,aae=Object.prototype.hasOwnProperty,sae=Object.prototype.propertyIsEnumerable,HO=(e,t,n)=>t in e?iae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vj=(e,t)=>{for(var n in t||(t={}))aae.call(t,n)&&HO(e,n,t[n]);if(zO)for(var n of zO(t))sae.call(t,n)&&HO(e,n,t[n]);return e};const oae=(e,t)=>{const n=v.useContext(Le),r=vj(vj({},n),e);return v.createElement("svg",vj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M19.2616 17.0378L20.9383 4.46293C20.9746 4.19069 20.8214 3.92855 20.5664 3.82655L16 2H10.5L9.81818 3.5L5 2L3.20966 3.79034C3.07751 3.92249 3.01449 4.10866 3.03919 4.2939L4.73838 17.0378C4.90325 18.2744 5.6356 19.3632 6.71873 19.9821L7.03861 20.1649C10.1129 21.9217 13.8871 21.9217 16.9614 20.1649L17.2813 19.9821C18.3644 19.3632 19.0968 18.2744 19.2616 17.0378Z",stroke:"currentColor"}),v.createElement("path",{d:"M16 2L14 7",stroke:"currentColor"}),v.createElement("path",{d:"M9 6.5L9.81818 3.5",stroke:"currentColor"}),v.createElement("path",{d:"M3 5.00002C5.57143 7.66668 18.4286 7.66664 21 5.00002",stroke:"currentColor"}))},lae=v.forwardRef(oae);var Um=lae,cae=Object.defineProperty,UO=Object.getOwnPropertySymbols,uae=Object.prototype.hasOwnProperty,dae=Object.prototype.propertyIsEnumerable,VO=(e,t,n
253)=>t in e?cae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yj=(e,t)=>{for(var n in t||(t={}))uae.call(t,n)&&VO(e,n,t[n]);if(UO)for(var n of UO(t))dae.call(t,n)&&VO(e,n,t[n]);return e};const fae=(e,t)=>{const n=v.useContext(Le),r=yj(yj({},n),e);return v.createElement("svg",yj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M15 4V2M15 4V6M15 4H10.5M3 10V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V10H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 10V6C3 4.89543 3.89543 4 5 4H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M21 10V6C21 4.89543 20.1046 4 19 4H18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},hae=v.forwardRef(fae);var pz=hae,pae=Object.defineProperty,GO=Object.getOwnPropertySymbols,mae=Object.prototype.hasOwnProperty,gae=Object.prototype.propertyIsEnumerable,WO=(e,t,n)=>t in e?pae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xj=(e,t)=>{for(var n in t||(t={}))mae.call(t,n)&&WO(e,n,t[n]);if(GO)for(var n of GO(t))gae.call(t,n)&&WO(e,n,t[n]);return e};const vae=(e,t)=>{const n=v.useContext(Le),r=xj(xj({},n),e);return v.createElement("svg",xj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 6H22L19 16H6L3 6ZM3 6L2.25 3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M9.99219 11H11.9922M13.9922 11H11.9922M11.9922 11V9M11.9922 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M11 19.5C11 20.3284 10.3284 21 9.5 21C8.67157 21 8 20.3284 8 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yae=v.forwardRef(vae);var mz=yae,xae=Object.defineProperty,YO=Object.getOwnPropertySymbols,bae=Object.prototype.hasOwnProperty,wae=Object.prototype.propertyIsEnumerable,KO=(e,t,n)=>t in e?xae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bj=(e,t)=>{for(var n in t||(t={}))bae.call(t,n)&&KO(e,n,t[n]);if(YO)for(var n of YO(t))wae.call(t,n)&&KO(e,n,t[n]);return e};const jae=(e,t)=>{const n=v.useContext(Le),r=bj(bj({},n),e);return v.createElement("svg",bj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 21H21V12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12V21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M9 17V13H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13 13V9H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sae=v.forwardRef(jae);var wf=Sae,Cae=Object.defineProperty,XO=Object.getOwnPropertySymbols,kae=Object.prototype.hasOwnProperty,Nae=Object.prototype.propertyIsEnumerable,ZO=(e,t,n)=>t in e?Cae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wj=(e,t)=>{for(var n in t||(t={}))kae.call(t,n)&&ZO(e,n,t[n]);if(XO)for(var n of XO(t))Nae.call(t,n)&&ZO(e,n,t[n]);return e};const Aae=(e,t)=>{const n=v.useContext(Le),r=wj(wj({},n),e);return v.createElement("svg",wj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Eae=v.forwardRef(Aae);var Ua=Eae,_ae=Object.defineProperty,QO=Object.getOwnPropertySymbols,Tae=Object.prototype.hasOwnProperty,Lae=Object.prototype.propertyIsEnumerable,JO=(e,t,n)=>t in e?_ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jj=(e,t)=>{for(var n in t||(t={}))Tae.call(t,n)&&JO(e,n,t[n]);if(QO)for(var n of QO(t))Lae.call(t,n)&&JO(e,n,t[n]);return e};const Oae=(e,t)=>{const n=v.useContext(Le),r=jj(jj({},n),e);return v.createElement("svg",jj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 22V13M12 13L15.5 16.5M12 13L8.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M20 17.6073C21.4937 17.0221 23 15.6889 23 13C23 9 19.6667 8 18 8C18 6 18 2 12 2C6 2 6 6 6 8C4.33333 8 1 9 1 13C1 15.6889 2.50628 17.0221 4 17.6073",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Mae=v.forwardRef(Oae);var Dae=Mae,Pae=Object.defineProperty,eM=Object.getOwnPropertySymbols,Rae=Object.prototype.hasOwnProperty,Iae=Object.prototype.propertyIsEnumerable,tM=(e,t,n)=>t in e?Pae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sj=(e,t)=>{for(var n in t||(t={}))Rae.call(t,n)&&tM(e,n,t[n]);if(eM)for(var n of eM(t))Iae.call(t,n)&&tM(e,n,t[n]);return e};const $ae=(e,t)=>{const n=v.useContext(Le),r=Sj(Sj({},n),e);return v.createElement("svg",Sj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 2V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M16 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M4.92896 4.92871L9.1716 9.17135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M14.8284 14.8286L19.071 19.0713",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M4.92896 19.0713L9.1716 14.8286",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M14.8284 9.17139L19.071 4.92875",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Bae=v.forwardRef($ae);
253var qae=Bae,Fae=Object.defineProperty,nM=Object.getOwnPropertySymbols,zae=Object.prototype.hasOwnProperty,Hae=Object.prototype.propertyIsEnumerable,rM=(e,t,n)=>t in e?Fae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cj=(e,t)=>{for(var n in t||(t={}))zae.call(t,n)&&rM(e,n,t[n]);if(nM)for(var n of nM(t))Hae.call(t,n)&&rM(e,n,t[n]);return e};const Uae=(e,t)=>{const n=v.useContext(Le),r=Cj(Cj({},n),e);return v.createElement("svg",Cj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M20.5 20.5L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M15 18C15 19.6569 16.3431 21 18 21C18.8299 21 19.581 20.663 20.1241 20.1185C20.6654 19.5758 21 18.827 21 18C21 16.3431 19.6569 15 18 15C16.3431 15 15 16.3431 15 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M20 12V5.74853C20 5.5894 19.9368 5.43679 19.8243 5.32426L16.6757 2.17574C16.5632 2.06321 16.4106 2 16.2515 2H4.6C4.26863 2 4 2.26863 4 2.6V21.4C4 21.7314 4.26863 22 4.6 22H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Vae=v.forwardRef(Uae);var Gae=Vae,Wae=Object.defineProperty,iM=Object.getOwnPropertySymbols,Yae=Object.prototype.hasOwnProperty,Kae=Object.prototype.propertyIsEnumerable,aM=(e,t,n)=>t in e?Wae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kj=(e,t)=>{for(var n in t||(t={}))Yae.call(t,n)&&aM(e,n,t[n]);if(iM)for(var n of iM(t))Kae.call(t,n)&&aM(e,n,t[n]);return e};const Xae=(e,t)=>{const n=v.useContext(Le),r=kj(kj({},n),e);return v.createElement("svg",kj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M9 17L15 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 6V13M12 13L15.5 9.5M12 13L8.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Zae=v.forwardRef(Xae);var gz=Zae,Qae=Object.defineProperty,sM=Object.getOwnPropertySymbols,Jae=Object.prototype.hasOwnProperty,ese=Object.prototype.propertyIsEnumerable,oM=(e,t,n)=>t in e?Qae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nj=(e,t)=>{for(var n in t||(t={}))Jae.call(t,n)&&oM(e,n,t[n]);if(sM)for(var n of sM(t))ese.call(t,n)&&oM(e,n,t[n]);return e};const tse=(e,t)=>{const n=v.useContext(Le),r=Nj(Nj({},n),e);return v.createElement("svg",Nj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M14.3632 5.65156L15.8431 4.17157C16.6242 3.39052 17.8905 3.39052 18.6716 4.17157L20.0858 5.58579C20.8668 6.36683 20.8668 7.63316 20.0858 8.41421L18.6058 9.8942M14.3632 5.65156L4.74749 15.2672C4.41542 15.5993 4.21079 16.0376 4.16947 16.5054L3.92738 19.2459C3.87261 19.8659 4.39148 20.3848 5.0115 20.33L7.75191 20.0879C8.21972 20.0466 8.65806 19.8419 8.99013 19.5099L18.6058 9.8942M14.3632 5.65156L18.6058 9.8942",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nse=v.forwardRef(tse);var rse=nse,ise=Object.defineProperty,lM=Object.getOwnPropertySymbols,ase=Object.prototype.hasOwnProperty,sse=Object.prototype.propertyIsEnumerable,cM=(e,t,n)=>t in e?ise(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Aj=(e,t)=>{for(var n in t||(t={}))ase.call(t,n)&&cM(e,n,t[n]);if(lM)for(var n of lM(t))sse.call(t,n)&&cM(e,n,t[n]);return e};const ose=(e,t)=>{const n=v.useContext(Le),r=Aj(Aj({},n),e);return v.createElement("svg",Aj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 21L12 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12.2218 5.82839L15.0503 2.99996L20 7.94971L17.1716 10.7781M12.2218 5.82839L6.61522 11.435C6.42769 11.6225 6.32233 11.8769 6.32233 12.1421L6.32233 16.6776L10.8579 16.6776C11.1231 16.6776 11.3774 16.5723 11.565 16.3847L17.1716 10.7781M12.2218 5.82839L17.1716 10.7781",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},lse=v.forwardRef(ose);var Do=lse,cse=Object.defineProperty,uM=Object.getOwnPropertySymbols,use=Object.prototype.hasOwnProperty,dse=Object.prototype.propertyIsEnumerable,dM=(e,t,n)=>t in e?cse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ej=(e,t)=>{for(var n in t||(t={}
253))use.call(t,n)&&dM(e,n,t[n]);if(uM)for(var n of uM(t))dse.call(t,n)&&dM(e,n,t[n]);return e};const fse=(e,t)=>{const n=v.useContext(Le),r=Ej(Ej({},n),e);return v.createElement("svg",Ej({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 13C6.6 5 17.4 5 21 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 17C10.3431 17 9 15.6569 9 14C9 12.3431 10.3431 11 12 11C13.6569 11 15 12.3431 15 14C15 15.6569 13.6569 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},hse=v.forwardRef(fse);var b5=hse,pse=Object.defineProperty,fM=Object.getOwnPropertySymbols,mse=Object.prototype.hasOwnProperty,gse=Object.prototype.propertyIsEnumerable,hM=(e,t,n)=>t in e?pse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_j=(e,t)=>{for(var n in t||(t={}))mse.call(t,n)&&hM(e,n,t[n]);if(fM)for(var n of fM(t))gse.call(t,n)&&hM(e,n,t[n]);return e};const vse=(e,t)=>{const n=v.useContext(Le),r=_j(_j({},n),e);return v.createElement("svg",_j({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M11 21C11 18 11 15 11 12C11 9.8125 11.5 8 15 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M9 13H11H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yse=v.forwardRef(vse);var vz=yse,xse=Object.defineProperty,pM=Object.getOwnPropertySymbols,bse=Object.prototype.hasOwnProperty,wse=Object.prototype.propertyIsEnumerable,mM=(e,t,n)=>t in e?xse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tj=(e,t)=>{for(var n in t||(t={}))bse.call(t,n)&&mM(e,n,t[n]);if(pM)for(var n of pM(t))wse.call(t,n)&&mM(e,n,t[n]);return e};const jse=(e,t)=>{const n=v.useContext(Le),r=Tj(Tj({},n),e);return v.createElement("svg",Tj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M17 2H14C12.6739 2 11.4021 2.52678 10.4645 3.46447C9.52678 4.40215 9 5.67392 9 7V10H6V14H9V22H13V14H16L17 10H13V7C13 6.73478 13.1054 6.48043 13.2929 6.29289C13.4804 6.10536 13.7348 6 14 6H17V2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sse=v.forwardRef(jse);var Cse=Sse,kse=Object.defineProperty,gM=Object.getOwnPropertySymbols,Nse=Object.prototype.hasOwnProperty,Ase=Object.prototype.propertyIsEnumerable,vM=(e,t,n)=>t in e?kse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lj=(e,t)=>{for(var n in t||(t={}))Nse.call(t,n)&&vM(e,n,t[n]);if(gM)for(var n of gM(t))Ase.call(t,n)&&vM(e,n,t[n]);return e};const Ese=(e,t)=>{const n=v.useContext(Le),r=Lj(Lj({},n),e);return v.createElement("svg",Lj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.5 12.5L8 14.5L7 18L8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M17 20.5L16.5 18L14 17V13.5L17 12.5L21.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M19 5.5L18.5 7L15 7.5V10.5L17.5 9.5H19.5L21.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.5 10.5L5 8.5L7.5 8L9.5 5L8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_se=v.forwardRef(Ese);var yz=_se,Tse=Object.defineProperty,yM=Object.getOwnPropertySymbols,Lse=Object.prototype.hasOwnProperty,Ose=Object.prototype.propertyIsEnumerable,xM=(e,t,n)=>t in e?Tse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oj=(e,t)=>{for(var n in t||(t={}
253))Lse.call(t,n)&&xM(e,n,t[n]);if(yM)for(var n of yM(t))Ose.call(t,n)&&xM(e,n,t[n]);return e};const Mse=(e,t)=>{const n=v.useContext(Le),r=Oj(Oj({},n),e);return v.createElement("svg",Oj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M19 3L5 3C3.89543 3 3 3.89543 3 5L3 19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 7L17 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 12L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 17L13 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Dse=v.forwardRef(Mse);var bM=Dse,Pse=Object.defineProperty,wM=Object.getOwnPropertySymbols,Rse=Object.prototype.hasOwnProperty,Ise=Object.prototype.propertyIsEnumerable,jM=(e,t,n)=>t in e?Pse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mj=(e,t)=>{for(var n in t||(t={}))Rse.call(t,n)&&jM(e,n,t[n]);if(wM)for(var n of wM(t))Ise.call(t,n)&&jM(e,n,t[n]);return e};const $se=(e,t)=>{const n=v.useContext(Le),r=Mj(Mj({},n),e);return v.createElement("svg",Mj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M1 20V19C1 15.134 4.13401 12 8 12V12C11.866 12 15 15.134 15 19V20",stroke:"currentColor",strokeLinecap:"round"}),v.createElement("path",{d:"M13 14V14C13 11.2386 15.2386 9 18 9V9C20.7614 9 23 11.2386 23 14V14.5",stroke:"currentColor",strokeLinecap:"round"}),v.createElement("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M18 9C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6C15 7.65685 16.3431 9 18 9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Bse=v.forwardRef($se);var qse=Bse,Fse=Object.defineProperty,SM=Object.getOwnPropertySymbols,zse=Object.prototype.hasOwnProperty,Hse=Object.prototype.propertyIsEnumerable,CM=(e,t,n)=>t in e?Fse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dj=(e,t)=>{for(var n in t||(t={}))zse.call(t,n)&&CM(e,n,t[n]);if(SM)for(var n of SM(t))Hse.call(t,n)&&CM(e,n,t[n]);return e};const Use=(e,t)=>{const n=v.useContext(Le),r=Dj(Dj({},n),e);return v.createElement("svg",Dj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16Z",stroke:"currentColor"}),v.createElement("path",{d:"M17.5 6.51L17.51 6.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Vse=v.forwardRef(Use);var w5=Vse,Gse=Object.defineProperty,kM=Object.getOwnPropertySymbols,Wse=Object.prototype.hasOwnProperty,Yse=Object.prototype.propertyIsEnumerable,NM=(e,t,n)=>t in e?Gse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pj=(e,t)=>{for(var n in t||(t={}))Wse.call(t,n)&&NM(e,n,t[n]);if(kM)for(var n of kM(t))Yse.call(t,n)&&NM(e,n,t[n]);return e};const Kse=(e,t)=>{const n=v.useContext(Le),r=Pj(Pj({},n),e);return v.createElement("svg",Pj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13 2.04932C13 2.04932 16 5.99994 16 11.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M11 21.9506C11 21.9506 8 17.9999 8 11.9999C8 5.99994 11 2.04932 11 2.04932",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.62964 15.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.62964 8.5H21.3704",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.8789 17.9174C22.3727 18.2211 22.3423 18.9604 21.8337 19.0181L19.2671 19.309L18.1159 21.6213C17.8878 22.0795 17.1827 21.8552 17.0661 21.2873L15.8108 15.1713C15.7123 14.6913 16.1437 14.3892 16.561 14.646L21.8789 17.9174Z",stroke:"currentColor"}))},Xse=v.forwardRef(Kse);var Zse=Xse,Qse=Object.defineProperty,AM=Object.getOwnPropertySymbols,Jse=Object.prototype.hasOwnProperty,eoe=Object.prototype.propertyIsEnumerable,EM=(e,t,n)=>t in e?Qse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rj=(e,t)=>{for(var n in t||(t={}
253))Jse.call(t,n)&&EM(e,n,t[n]);if(AM)for(var n of AM(t))eoe.call(t,n)&&EM(e,n,t[n]);return e};const toe=(e,t)=>{const n=v.useContext(Le),r=Rj(Rj({},n),e);return v.createElement("svg",Rj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6 6L18 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M6 10H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13 14L18 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13 18L18 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2 21.4V2.6C2 2.26863 2.26863 2 2.6 2H21.4C21.7314 2 22 2.26863 22 2.6V21.4C22 21.7314 21.7314 22 21.4 22H2.6C2.26863 22 2 21.7314 2 21.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M6 18V14H9V18H6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},noe=v.forwardRef(toe);var roe=noe,ioe=Object.defineProperty,_M=Object.getOwnPropertySymbols,aoe=Object.prototype.hasOwnProperty,soe=Object.prototype.propertyIsEnumerable,TM=(e,t,n)=>t in e?ioe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ij=(e,t)=>{for(var n in t||(t={}))aoe.call(t,n)&&TM(e,n,t[n]);if(_M)for(var n of _M(t))soe.call(t,n)&&TM(e,n,t[n]);return e};const ooe=(e,t)=>{const n=v.useContext(Le),r=Ij(Ij({},n),e);return v.createElement("svg",Ij({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M10 12C10 14.2091 8.20914 16 6 16C3.79086 16 2 14.2091 2 12C2 9.79086 3.79086 8 6 8C8.20914 8 10 9.79086 10 12ZM10 12H22V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M18 12V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},loe=v.forwardRef(ooe);var coe=loe,uoe=Object.defineProperty,LM=Object.getOwnPropertySymbols,doe=Object.prototype.hasOwnProperty,foe=Object.prototype.propertyIsEnumerable,OM=(e,t,n)=>t in e?uoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$j=(e,t)=>{for(var n in t||(t={}))doe.call(t,n)&&OM(e,n,t[n]);if(LM)for(var n of LM(t))foe.call(t,n)&&OM(e,n,t[n]);return e};const hoe=(e,t)=>{const n=v.useContext(Le),r=$j($j({},n),e);return v.createElement("svg",$j({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M13 2.04932C13 2.04932 16 5.99994 16 11.9999C16 17.9999 13 21.9506 13 21.9506",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M11 21.9506C11 21.9506 8 17.9999 8 11.9999C8 5.99994 11 2.04932 11 2.04932",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.62964 15.5H21.3704",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.62964 8.5H21.3704",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},poe=v.forwardRef(hoe);var xz=poe,moe=Object.defineProperty,MM=Object.getOwnPropertySymbols,goe=Object.prototype.hasOwnProperty,voe=Object.prototype.propertyIsEnumerable,DM=(e,t,n)=>t in e?moe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bj=(e,t)=>{for(var n in t||(t={}))goe.call(t,n)&&DM(e,n,t[n]);if(MM)for(var n of MM(t))voe.call(t,n)&&DM(e,n,t[n]);return e};const yoe=(e,t)=>{const n=v.useContext(Le),r=Bj(Bj({},n),e);return v.createElement("svg",Bj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M14 11.9976C14 9.5059 11.683 7 8.85714 7C8.52241 7 7.41904 7.00001 7.14286 7.00001C4.30254 7.00001 2 9.23752 2 11.9976C2 14.376 3.70973 16.3664 6 16.8714C6.36756 16.9525 6.75006 16.9952 7.14286 16.9952",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M10 11.9976C10 14.4893 12.317 16.9952 15.1429 16.9952C15.4776 16.9952 16.581 16.9952 16.8571 16.9952C19.6975 16.9952 22 14.7577 22 11.9976C22 9.6192 20.2903 7.62884 18 7.12383C17.6324 7.04278 17.2499 6.99999 16.8571 6.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xoe=v.forwardRef(yoe);var nb=xoe,boe=Object.defineProperty,PM=Object.getOwnPropertySymbols,woe=Object.prototype.hasOwnProperty,joe=Object.prototype.propertyIsEnumerable,RM=(e,t,n)=>t in e?boe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qj=(e,t)=>{for(var n in t||(t={}
253))woe.call(t,n)&&RM(e,n,t[n]);if(PM)for(var n of PM(t))joe.call(t,n)&&RM(e,n,t[n]);return e};const Soe=(e,t)=>{const n=v.useContext(Le),r=qj(qj({},n),e);return v.createElement("svg",qj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21 8V16C21 18.7614 18.7614 21 16 21H8C5.23858 21 3 18.7614 3 16V8C3 5.23858 5.23858 3 8 3H16C18.7614 3 21 5.23858 21 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 17V13.5V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M11 17V13.75M11 10V13.75M11 13.75C11 10 17 10 17 13.75V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7 7.01L7.01 6.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Coe=v.forwardRef(Soe);var bz=Coe,koe=Object.defineProperty,IM=Object.getOwnPropertySymbols,Noe=Object.prototype.hasOwnProperty,Aoe=Object.prototype.propertyIsEnumerable,$M=(e,t,n)=>t in e?koe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fj=(e,t)=>{for(var n in t||(t={}))Noe.call(t,n)&&$M(e,n,t[n]);if(IM)for(var n of IM(t))Aoe.call(t,n)&&$M(e,n,t[n]);return e};const Eoe=(e,t)=>{const n=v.useContext(Le),r=Fj(Fj({},n),e);return v.createElement("svg",Fj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M7 9L12 12.5L17 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2 17V7C2 5.89543 2.89543 5 4 5H20C21.1046 5 22 5.89543 22 7V17C22 18.1046 21.1046 19 20 19H4C2.89543 19 2 18.1046 2 17Z",stroke:"currentColor"}))},_oe=v.forwardRef(Eoe);var Vm=_oe,Toe=Object.defineProperty,BM=Object.getOwnPropertySymbols,Loe=Object.prototype.hasOwnProperty,Ooe=Object.prototype.propertyIsEnumerable,qM=(e,t,n)=>t in e?Toe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zj=(e,t)=>{for(var n in t||(t={}))Loe.call(t,n)&&qM(e,n,t[n]);if(BM)for(var n of BM(t))Ooe.call(t,n)&&qM(e,n,t[n]);return e};const Moe=(e,t)=>{const n=v.useContext(Le),r=zj(zj({},n),e);return v.createElement("svg",zj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M20 10C20 14.4183 12 22 12 22C12 22 4 14.4183 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10Z",stroke:"currentColor"}),v.createElement("path",{d:"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Doe=v.forwardRef(Moe);var wz=Doe,Poe=Object.defineProperty,FM=Object.getOwnPropertySymbols,Roe=Object.prototype.hasOwnProperty,Ioe=Object.prototype.propertyIsEnumerable,zM=(e,t,n)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hj=(e,t)=>{for(var n in t||(t={}))Roe.call(t,n)&&zM(e,n,t[n]);if(FM)for(var n of FM(t))Ioe.call(t,n)&&zM(e,n,t[n]);return e};const $oe=(e,t)=>{const n=v.useContext(Le),r=Hj(Hj({},n),e);return v.createElement("svg",Hj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 16L10 13L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8C18 9.10457 17.1046 10 16 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Boe=v.forwardRef($oe);var j5=Boe,qoe=Object.defineProperty,HM=Object.getOwnPropertySymbols,Foe=Object.prototype.hasOwnProperty,zoe=Object.prototype.propertyIsEnumerable,UM=(e,t,n)=>t in e?qoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uj=(e,t)=>{for(var n in t||(t={}
253))Foe.call(t,n)&&UM(e,n,t[n]);if(HM)for(var n of HM(t))zoe.call(t,n)&&UM(e,n,t[n]);return e};const Hoe=(e,t)=>{const n=v.useContext(Le),r=Uj(Uj({},n),e);return v.createElement("svg",Uj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 5H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 19H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Uoe=v.forwardRef(Hoe);var Ni=Uoe,Voe=Object.defineProperty,VM=Object.getOwnPropertySymbols,Goe=Object.prototype.hasOwnProperty,Woe=Object.prototype.propertyIsEnumerable,GM=(e,t,n)=>t in e?Voe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vj=(e,t)=>{for(var n in t||(t={}))Goe.call(t,n)&&GM(e,n,t[n]);if(VM)for(var n of VM(t))Woe.call(t,n)&&GM(e,n,t[n]);return e};const Yoe=(e,t)=>{const n=v.useContext(Le),r=Vj(Vj({},n),e);return v.createElement("svg",Vj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M3 20.2895V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V15C21 16.1046 20.1046 17 19 17H7.96125C7.35368 17 6.77906 17.2762 6.39951 17.7506L4.06852 20.6643C3.71421 21.1072 3 20.8567 3 20.2895Z",stroke:"currentColor"}))},Koe=v.forwardRef(Yoe);var Xoe=Koe,Zoe=Object.defineProperty,WM=Object.getOwnPropertySymbols,Qoe=Object.prototype.hasOwnProperty,Joe=Object.prototype.propertyIsEnumerable,YM=(e,t,n)=>t in e?Zoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gj=(e,t)=>{for(var n in t||(t={}))Qoe.call(t,n)&&YM(e,n,t[n]);if(WM)for(var n of WM(t))Joe.call(t,n)&&YM(e,n,t[n]);return e};const ele=(e,t)=>{const n=v.useContext(Le),r=Gj(Gj({},n),e);return v.createElement("svg",Gj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},tle=v.forwardRef(ele);var nle=tle,rle=Object.defineProperty,KM=Object.getOwnPropertySymbols,ile=Object.prototype.hasOwnProperty,ale=Object.prototype.propertyIsEnumerable,XM=(e,t,n)=>t in e?rle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wj=(e,t)=>{for(var n in t||(t={}))ile.call(t,n)&&XM(e,n,t[n]);if(KM)for(var n of KM(t))ale.call(t,n)&&XM(e,n,t[n]);return e};const sle=(e,t)=>{const n=v.useContext(Le),r=Wj(Wj({},n),e);return v.createElement("svg",Wj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ole=v.forwardRef(sle);var ar=ole,lle=Object.defineProperty,ZM=Object.getOwnPropertySymbols,cle=Object.prototype.hasOwnProperty,ule=Object.prototype.propertyIsEnumerable,QM=(e,t,n)=>t in e?lle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yj=(e,t)=>{for(var n in t||(t={}))cle.call(t,n)&&QM(e,n,t[n]);if(ZM)for(var n of ZM(t))ule.call(t,n)&&QM(e,n,t[n]);return e};const dle=(e,t)=>{const n=v.useContext(Le),r=Yj(Yj({},n),e);return v.createElement("svg",Yj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M15 6L9 12L15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},fle=v.forwardRef(dle);var jf=fle,hle=Object.defineProperty,JM=Object.getOwnPropertySymbols,ple=Object.prototype.hasOwnProperty,mle=Object.prototype.propertyIsEnumerable,eD=(e,t,n)=>t in e?hle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kj=(e,t)=>{for(var n in t||(t={}))ple.call(t,n)&&eD(e,n,t[n]);if(JM)for(var n of JM(t))mle.call(t,n)&&eD(e,n,t[n]);return e};const gle=(e,t)=>
253{const n=v.useContext(Le),r=Kj(Kj({},n),e);return v.createElement("svg",Kj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},vle=v.forwardRef(gle);var Ul=vle,yle=Object.defineProperty,tD=Object.getOwnPropertySymbols,xle=Object.prototype.hasOwnProperty,ble=Object.prototype.propertyIsEnumerable,nD=(e,t,n)=>t in e?yle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xj=(e,t)=>{for(var n in t||(t={}))xle.call(t,n)&&nD(e,n,t[n]);if(tD)for(var n of tD(t))ble.call(t,n)&&nD(e,n,t[n]);return e};const wle=(e,t)=>{const n=v.useContext(Le),r=Xj(Xj({},n),e);return v.createElement("svg",Xj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M20 12V5.74853C20 5.5894 19.9368 5.43679 19.8243 5.32426L16.6757 2.17574C16.5632 2.06321 16.4106 2 16.2515 2H4.6C4.26863 2 4 2.26863 4 2.6V21.4C4 21.7314 4.26863 22 4.6 22H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M8 10H16M8 6H12M8 14H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M17.9541 16.9394L18.9541 15.9394C19.392 15.5015 20.102 15.5015 20.5399 15.9394V15.9394C20.9778 16.3773 20.9778 17.0873 20.5399 17.5252L19.5399 18.5252M17.9541 16.9394L14.963 19.9305C14.8131 20.0804 14.7147 20.2741 14.6821 20.4835L14.4394 22.0399L15.9957 21.7973C16.2052 21.7646 16.3988 21.6662 16.5487 21.5163L19.5399 18.5252M17.9541 16.9394L19.5399 18.5252",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},jle=v.forwardRef(wle);var Sle=jle,Cle=Object.defineProperty,rD=Object.getOwnPropertySymbols,kle=Object.prototype.hasOwnProperty,Nle=Object.prototype.propertyIsEnumerable,iD=(e,t,n)=>t in e?Cle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zj=(e,t)=>{for(var n in t||(t={}))kle.call(t,n)&&iD(e,n,t[n]);if(rD)for(var n of rD(t))Nle.call(t,n)&&iD(e,n,t[n]);return e};const Ale=(e,t)=>{const n=v.useContext(Le),r=Zj(Zj({},n),e);return v.createElement("svg",Zj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M7 22L17 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2 17V4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V17C22 18.1046 21.1046 19 20 19H4C2.89543 19 2 18.1046 2 17Z",stroke:"currentColor"}),v.createElement("path",{d:"M14.8566 7.7C14.1306 6.95946 13.119 6.5 12 6.5C9.79086 6.5 8 8.29086 8 10.5C8 11.5902 8.43613 12.5785 9.14343 13.3M14.8566 7.7C15.5639 8.4215 16 9.40982 16 10.5C16 12.7091 14.2091 14.5 12 14.5C10.881 14.5 9.8694 14.0405 9.14343 13.3M14.8566 7.7L9.14343 13.3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ele=v.forwardRef(Ale);var _le=Ele,Tle=Object.defineProperty,aD=Object.getOwnPropertySymbols,Lle=Object.prototype.hasOwnProperty,Ole=Object.prototype.propertyIsEnumerable,sD=(e,t,n)=>t in e?Tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qj=(e,t)=>{for(var n in t||(t={}))Lle.call(t,n)&&sD(e,n,t[n]);if(aD)for(var n of aD(t))Ole.call(t,n)&&sD(e,n,t[n]);return e};const Mle=(e,t)=>{const n=v.useContext(Le),r=Qj(Qj({},n),e);return v.createElement("svg",Qj({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M18.1182 14.702L14 15.5C11.2183 14.1038 9.5 12.5 8.5 10L9.26995 5.8699L7.81452 2L4.0636 2C2.93605 2 2.04814 2.93178 2.21654 4.04668C2.63695 6.83 3.87653 11.8765 7.5 15.5C11.3052 19.3052 16.7857 20.9564 19.802 21.6127C20.9668 21.8662 22 20.9575 22 19.7655L22 16.1812L18.1182 14.702Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Dle=v.forwardRef(Mle);var Gm=Dle,Ple=Object.defineProperty,oD=Object.getOwnPropertySymbols,Rle=Object.prototype.hasOwnProperty,Ile=Object.prototype.propertyIsEnumerable,lD=(e,t,n)=>t in e?Ple(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jj=(e,t)=>{for(var n in t||(t={}))Rle.call(t,n)&&lD(e,n,t[n]);if(oD)for(var n of oD(t))Ile.call(t,n)&&lD(e,n,t[n]);return e};const $le=(e,t)=>
253{const n=v.useContext(Le),r=Jj(Jj({},n),e);return v.createElement("svg",Jj({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M5.00007 9.48528L14.1925 18.6777L15.8895 16.9806L15.4974 13.1944L21.0065 8.5211L15.1568 2.67141L10.4834 8.18034L6.69713 7.78823L5.00007 9.48528Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ble=v.forwardRef($le);var qle=Ble,Fle=Object.defineProperty,cD=Object.getOwnPropertySymbols,zle=Object.prototype.hasOwnProperty,Hle=Object.prototype.propertyIsEnumerable,uD=(e,t,n)=>t in e?Fle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eS=(e,t)=>{for(var n in t||(t={}))zle.call(t,n)&&uD(e,n,t[n]);if(cD)for(var n of cD(t))Hle.call(t,n)&&uD(e,n,t[n]);return e};const Ule=(e,t)=>{const n=v.useContext(Le),r=eS(eS({},n),e);return v.createElement("svg",eS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M8 12H12M16 12H12M12 12V8M12 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Vle=v.forwardRef(Ule);var jz=Vle,Gle=Object.defineProperty,dD=Object.getOwnPropertySymbols,Wle=Object.prototype.hasOwnProperty,Yle=Object.prototype.propertyIsEnumerable,fD=(e,t,n)=>t in e?Gle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tS=(e,t)=>{for(var n in t||(t={}))Wle.call(t,n)&&fD(e,n,t[n]);if(dD)for(var n of dD(t))Yle.call(t,n)&&fD(e,n,t[n]);return e};const Kle=(e,t)=>{const n=v.useContext(Le),r=tS(tS({},n),e);return v.createElement("svg",tS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6 12H12M18 12H12M12 12V6M12 12V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Xle=v.forwardRef(Kle);var vr=Xle,Zle=Object.defineProperty,hD=Object.getOwnPropertySymbols,Qle=Object.prototype.hasOwnProperty,Jle=Object.prototype.propertyIsEnumerable,pD=(e,t,n)=>t in e?Zle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nS=(e,t)=>{for(var n in t||(t={}))Qle.call(t,n)&&pD(e,n,t[n]);if(hD)for(var n of hD(t))Jle.call(t,n)&&pD(e,n,t[n]);return e};const ece=(e,t)=>{const n=v.useContext(Le),r=nS(nS({},n),e);return v.createElement("svg",nS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M4.271 18.3457C4.271 18.3457 6.50002 15.5 12 15.5C17.5 15.5 19.7291 18.3457 19.7291 18.3457",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},tce=v.forwardRef(ece);var S5=tce,nce=Object.defineProperty,mD=Object.getOwnPropertySymbols,rce=Object.prototype.hasOwnProperty,ice=Object.prototype.propertyIsEnumerable,gD=(e,t,n)=>t in e?nce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rS=(e,t)=>{for(var n in t||(t={}))rce.call(t,n)&&gD(e,n,t[n]);if(mD)for(var n of mD(t))ice.call(t,n)&&gD(e,n,t[n]);return e};const ace=(e,t)=>{const n=v.useContext(Le),r=rS(rS({},n),e);return v.createElement("svg",rS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M21.1679 8C19.6247 4.46819 16.1006 2 11.9999 2C6.81459 2 2.55104 5.94668 2.04932 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2.88146 16C4.42458 19.5318 7.94874 22 12.0494 22C17.2347 22 21.4983 18.0533 22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7.04932 16H2.64932C2.31795 16 2.04932 16.2686 2.04932 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sce=v.forwardRef(ace);
253var oce=sce,lce=Object.defineProperty,vD=Object.getOwnPropertySymbols,cce=Object.prototype.hasOwnProperty,uce=Object.prototype.propertyIsEnumerable,yD=(e,t,n)=>t in e?lce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iS=(e,t)=>{for(var n in t||(t={}))cce.call(t,n)&&yD(e,n,t[n]);if(vD)for(var n of vD(t))uce.call(t,n)&&yD(e,n,t[n]);return e};const dce=(e,t)=>{const n=v.useContext(Le),r=iS(iS({},n),e);return v.createElement("svg",iS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M10.5857 10.5857L16.9496 7.0502L13.4141 13.4142M10.5857 10.5857L7.05012 16.9497L13.4141 13.4142M10.5857 10.5857L13.4141 13.4142",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M19 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M6 12H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 5V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 18V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M7.05029 7.05029L7.7574 7.7574",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M16.2427 16.2427L16.9498 16.9498",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},fce=v.forwardRef(dce);var hce=fce,pce=Object.defineProperty,xD=Object.getOwnPropertySymbols,mce=Object.prototype.hasOwnProperty,gce=Object.prototype.propertyIsEnumerable,bD=(e,t,n)=>t in e?pce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aS=(e,t)=>{for(var n in t||(t={}))mce.call(t,n)&&bD(e,n,t[n]);if(xD)for(var n of xD(t))gce.call(t,n)&&bD(e,n,t[n]);return e};const vce=(e,t)=>{const n=v.useContext(Le),r=aS(aS({},n),e);return v.createElement("svg",aS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yce=v.forwardRef(vce);var rb=yce,xce=Object.defineProperty,wD=Object.getOwnPropertySymbols,bce=Object.prototype.hasOwnProperty,wce=Object.prototype.propertyIsEnumerable,jD=(e,t,n)=>t in e?xce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sS=(e,t)=>{for(var n in t||(t={}))bce.call(t,n)&&jD(e,n,t[n]);if(wD)for(var n of wD(t))wce.call(t,n)&&jD(e,n,t[n]);return e};const jce=(e,t)=>{const n=v.useContext(Le),r=sS(sS({},n),e);return v.createElement("svg",sS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M22 12L3 20L6.5625 12L3 4L22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M6.5 12L22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sce=v.forwardRef(jce);var xu=Sce,Cce=Object.defineProperty,SD=Object.getOwnPropertySymbols,kce=Object.prototype.hasOwnProperty,Nce=Object.prototype.propertyIsEnumerable,CD=(e,t,n)=>t in e?Cce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oS=(e,t)=>{for(var n in t||(t={}))kce.call(t,n)&&CD(e,n,t[n]);if(SD)for(var n of SD(t))Nce.call(t,n)&&CD(e,n,t[n]);return e};const Ace=(e,t)=>{const n=v.useContext(Le),r=oS(oS({},n),e);return v.createElement("svg",oS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313
25318 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ece=v.forwardRef(Ace);var Sz=Ece,_ce=Object.defineProperty,kD=Object.getOwnPropertySymbols,Tce=Object.prototype.hasOwnProperty,Lce=Object.prototype.propertyIsEnumerable,ND=(e,t,n)=>t in e?_ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lS=(e,t)=>{for(var n in t||(t={}))Tce.call(t,n)&&ND(e,n,t[n]);if(kD)for(var n of kD(t))Lce.call(t,n)&&ND(e,n,t[n]);return e};const Oce=(e,t)=>{const n=v.useContext(Le),r=lS(lS({},n),e);return v.createElement("svg",lS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M8 7H4C2.89543 7 2 7.89543 2 9V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V9C22 7.89543 21.1046 7 20 7H16M8 7V3.6C8 3.26863 8.26863 3 8.6 3H15.4C15.7314 3 16 3.26863 16 3.6V7M8 7H16",stroke:"currentColor"}))},Mce=v.forwardRef(Oce);var Dce=Mce,Pce=Object.defineProperty,AD=Object.getOwnPropertySymbols,Rce=Object.prototype.hasOwnProperty,Ice=Object.prototype.propertyIsEnumerable,ED=(e,t,n)=>t in e?Pce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cS=(e,t)=>{for(var n in t||(t={}))Rce.call(t,n)&&ED(e,n,t[n]);if(AD)for(var n of AD(t))Ice.call(t,n)&&ED(e,n,t[n]);return e};const $ce=(e,t)=>{const n=v.useContext(Le),r=cS(cS({},n),e);return v.createElement("svg",cS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M19 7V5L5 5V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 5L12 19M12 19H10M12 19H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Bce=v.forwardRef($ce);var _D=Bce,qce=Object.defineProperty,TD=Object.getOwnPropertySymbols,Fce=Object.prototype.hasOwnProperty,zce=Object.prototype.propertyIsEnumerable,LD=(e,t,n)=>t in e?qce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uS=(e,t)=>{for(var n in t||(t={}))Fce.call(t,n)&&LD(e,n,t[n]);if(TD)for(var n of TD(t))zce.call(t,n)&&LD(e,n,t[n]);return e};const Hce=(e,t)=>{const n=v.useContext(Le),r=uS(uS({},n),e);return v.createElement("svg",uS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M9 2L15 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 10L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 22C16.4183 22 20 18.4183 20 14C20 9.58172 16.4183 6 12 6C7.58172 6 4 9.58172 4 14C4 18.4183 7.58172 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Uce=v.forwardRef(Hce);var rm=Uce,Vce=Object.defineProperty,OD=Object.getOwnPropertySymbols,Gce=Object.prototype.hasOwnProperty,Wce=Object.prototype.propertyIsEnumerable,MD=(e,t,n)=>t in e?Vce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dS=(e,t)=>{for(var n in t||(t={}))Gce.call(t,n)&&MD(e,n,t[n]);if(OD)for(var n of OD(t))Wce.call(t,n)&&MD(e,n,t[n]);return e};const Yce=(e,t)=>{const n=v.useContext(Le),r=dS(dS({},n),e);return v.createElement("svg",dS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M20 9L18.005 20.3463C17.8369 21.3026 17.0062 22 16.0353 22H7.96474C6.99379 22 6.1631 21.3026 5.99496 20.3463L4 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M21 6L15.375 6M3 6L8.625 6M8.625 6V4C8.625 2.89543 9.52043 2 10.625 2H13.375C14.4796 2 15.375 2.89543 15.375 4V6M8.625 6L15.375 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Kce=v.forwardRef(Yce);var nu=Kce,Xce=Object.defineProperty,DD=Object.getOwnPropertySymbols,Zce=Object.prototype.hasOwnProperty,Qce=Object.prototype.propertyIsEnumerable,PD=(e,t,n)=>t in e?Xce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fS=(e,t)=>{for(var n in t||(t={}))Zce.call(t,n)&&PD(e,n,t[n]);if(DD)for(var n of DD(t))Qce.call(t,n)&&PD(e,n,t[n]);return e};const Jce=(e,t)=>{const n=v.useContext(Le),r=fS(fS({},n),e);return v.createElement("svg",fS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M5 20V19C5 15.134 8.13401 12 12 12V12C15.866 12 19 15.134 19 19V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},eue=v.forwardRef(Jce);var Cz=eue,tue=Object.defineProperty,RD=Object.getOwnPropertySymbols,nue=Object.prototype.hasOwnProperty,rue=Object.prototype.propertyIsEnumerable,ID=(e,t,n)=>t in e?tue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hS=(e,t)=>{for(var n in t||(t={}
253))nue.call(t,n)&&ID(e,n,t[n]);if(RD)for(var n of RD(t))rue.call(t,n)&&ID(e,n,t[n]);return e};const iue=(e,t)=>{const n=v.useContext(Le),r=hS(hS({},n),e);return v.createElement("svg",hS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M16.8198 20.7684L3.75317 3.96836C3.44664 3.57425 3.72749 3 4.22678 3H6.70655C6.8917 3 7.06649 3.08548 7.18016 3.23164L20.2468 20.0316C20.5534 20.4258 20.2725 21 19.7732 21H17.2935C17.1083 21 16.9335 20.9145 16.8198 20.7684Z",stroke:"currentColor"}),v.createElement("path",{d:"M20 3L4 21",stroke:"currentColor",strokeLinecap:"round"}))},aue=v.forwardRef(iue);var C5=aue,sue=Object.defineProperty,$D=Object.getOwnPropertySymbols,oue=Object.prototype.hasOwnProperty,lue=Object.prototype.propertyIsEnumerable,BD=(e,t,n)=>t in e?sue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pS=(e,t)=>{for(var n in t||(t={}))oue.call(t,n)&&BD(e,n,t[n]);if($D)for(var n of $D(t))lue.call(t,n)&&BD(e,n,t[n]);return e};const cue=(e,t)=>{const n=v.useContext(Le),r=pS(pS({},n),e);return v.createElement("svg",pS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},uue=v.forwardRef(cue);var et=uue,due=Object.defineProperty,qD=Object.getOwnPropertySymbols,fue=Object.prototype.hasOwnProperty,hue=Object.prototype.propertyIsEnumerable,FD=(e,t,n)=>t in e?due(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mS=(e,t)=>{for(var n in t||(t={}))fue.call(t,n)&&FD(e,n,t[n]);if(qD)for(var n of qD(t))hue.call(t,n)&&FD(e,n,t[n]);return e};const pue=(e,t)=>{const n=v.useContext(Le),r=mS(mS({},n),e);return v.createElement("svg",mS({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M14 12L10.5 14V10L14 12Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M2 12.7075V11.2924C2 8.39705 2 6.94939 2.90549 6.01792C3.81099 5.08645 5.23656 5.04613 8.08769 4.96549C9.43873 4.92728 10.8188 4.8999 12 4.8999C13.1812 4.8999 14.5613 4.92728 15.9123 4.96549C18.7634 5.04613 20.189 5.08645 21.0945 6.01792C22 6.94939 22 8.39705 22 11.2924V12.7075C22 15.6028 22 17.0505 21.0945 17.9819C20.189 18.9134 18.7635 18.9537 15.9124 19.0344C14.5613 19.0726 13.1812 19.1 12 19.1C10.8188 19.1 9.43867 19.0726 8.0876 19.0344C5.23651 18.9537 3.81097 18.9134 2.90548 17.9819C2 17.0505 2 15.6028 2 12.7075Z",stroke:"currentColor"}))},mue=v.forwardRef(pue);var k5=mue,gue=Object.defineProperty,zD=Object.getOwnPropertySymbols,vue=Object.prototype.hasOwnProperty,yue=Object.prototype.propertyIsEnumerable,HD=(e,t,n)=>t in e?gue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gS=(e,t)=>{for(var n in t||(t={}))vue.call(t,n)&&HD(e,n,t[n]);if(zD)for(var n of zD(t))yue.call(t,n)&&HD(e,n,t[n]);return e};const xue=(e,t)=>{const n=v.useContext(Le),r=gS(gS({},n),e);return v.createElement("svg",gS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.25 5C15.25 2.92894 16.9289 1.25 19 1.25C21.0711 1.25 22.75 2.92894 22.75 5C22.75 7.07106 21.0711 8.75 19 8.75C16.9289 8.75 15.25 7.07106 15.25 5Z",fill:"currentColor"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.527 2.25C14.0342 3.04977 13.75 3.99169 13.75 5C13.75 7.89947 16.1004 10.25 19 10.25C20.0083 10.25 20.9502 9.96575 21.75 9.47301V15C21.75 18.7279 18.7279 21.75 15 21.75H9C5.27208 21.75 2.25 18.7279 2.25 15V9C2.25 5.27208 5.27208 2.25 9 2.25H14.527Z",fill:"currentColor"}))},bue=v.forwardRef(xue);var UD=bue,wue=Object.defineProperty,VD=Object.getOwnPropertySymbols,jue=Object.prototype.hasOwnProperty,Sue=Object.prototype.propertyIsEnumerable,GD=(e,t,n)=>t in e?wue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vS=(e,t)=>{for(var n in t||(t={}))jue.call(t,n)&&GD(e,n,t[n]);if(VD)for(var n of VD(t))Sue.call(t,n)&&GD(e,n,t[n]);return e};const Cue=(e,t)=>
253{const n=v.useContext(Le),r=vS(vS({},n),e);return v.createElement("svg",vS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("g",{clipPath:"url(#clip0_3786_327)"},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.2489 11.3201C1.55078 10.2394 1.55078 7.76055 3.24891 6.67993L9.44989 2.73384C11.0058 1.7437 12.9943 1.7437 14.5502 2.73385L20.7512 6.67993C22.4493 7.76056 22.4493 10.2394 20.7512 11.3201L14.5502 15.2662C12.9943 16.2563 11.0058 16.2563 9.44989 15.2662L3.2489 11.3201Z",fill:"currentColor"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6608 11.986L14.5502 8.73382C12.9943 7.74368 11.0059 7.74367 9.44992 8.73382L4.33933 11.986L10.2552 15.7507C11.3198 16.4281 12.6803 16.4281 13.7449 15.7507L19.6608 11.986ZM21.0216 12.875C20.9368 12.9441 20.8467 13.0093 20.7512 13.0701L14.5502 17.0162C12.9943 18.0063 11.0058 18.0063 9.44989 17.0162L3.2489 13.0701C3.15341 13.0093 3.06329 12.9441 2.97854 12.875C1.55618 14.0349 1.64631 16.3002 3.24893 17.32L9.44992 21.2661C11.0059 22.2563 12.9943 22.2563 14.5502 21.2661L20.7512 17.32C22.3539 16.3002 22.444 14.0349 21.0216 12.875Z",fill:"currentColor"})),v.createElement("defs",null,v.createElement("clipPath",{id:"clip0_3786_327"},v.createElement("rect",{width:24,height:24,fill:"white"}))))},kue=v.forwardRef(Cue);var Nue=kue,Aue=Object.defineProperty,WD=Object.getOwnPropertySymbols,Eue=Object.prototype.hasOwnProperty,_ue=Object.prototype.propertyIsEnumerable,YD=(e,t,n)=>t in e?Aue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yS=(e,t)=>{for(var n in t||(t={}))Eue.call(t,n)&&YD(e,n,t[n]);if(WD)for(var n of WD(t))_ue.call(t,n)&&YD(e,n,t[n]);return e};const Tue=(e,t)=>{const n=v.useContext(Le),r=yS(yS({},n),e);return v.createElement("svg",yS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6 2.25C2.85442 2.25 2.25 2.85441 2.25 3.6V20.4C2.25 21.1456 2.85441 21.75 3.6 21.75H20.4C21.1456 21.75 21.75 21.1456 21.75 20.4V3.6C21.75 2.85442 21.1456 2.25 20.4 2.25H3.6ZM9.87884 8.42139H14.8286C15.0206 8.42139 15.2125 8.49461 15.3589 8.64106C15.4309 8.71296 15.4851 8.79584 15.5217 8.8843C15.5584 8.97273 15.5786 9.06969 15.5786 9.17139V14.1212C15.5786 14.5354 15.2428 14.8712 14.8286 14.8712C14.4144 14.8712 14.0786 14.5354 14.0786 14.1212V10.982L9.70207 15.3586C9.40918 15.6515 8.93431 15.6515 8.64141 15.3586C8.34852 15.0657 8.34852 14.5908 8.64141 14.2979L13.018 9.92139H9.87884C9.46463 9.92139 9.12884 9.5856 9.12884 9.17139C9.12884 8.75717 9.46463 8.42139 9.87884 8.42139Z",fill:"currentColor"}))},Lue=v.forwardRef(Tue);var kz=Lue,Oue=Object.defineProperty,KD=Object.getOwnPropertySymbols,Mue=Object.prototype.hasOwnProperty,Due=Object.prototype.propertyIsEnumerable,XD=(e,t,n)=>t in e?Oue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xS=(e,t)=>{for(var n in t||(t={}
253))Mue.call(t,n)&&XD(e,n,t[n]);if(KD)for(var n of KD(t))Due.call(t,n)&&XD(e,n,t[n]);return e};const Pue=(e,t)=>{const n=v.useContext(Le),r=xS(xS({},n),e);return v.createElement("svg",xS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C17.9371 1.25 22.75 6.06294 22.75 12C22.75 17.9371 17.9371 22.75 12 22.75C6.06294 22.75 1.25 17.9371 1.25 12C1.25 6.06294 6.06294 1.25 12 1.25ZM17.605 7.4143C17.7676 7.12158 17.7165 6.75652 17.4797 6.51974C17.2429 6.28296 16.8779 6.23183 16.5851 6.39445L10.2212 9.92999C10.0987 9.998 9.99781 10.0989 9.92979 10.2214L6.39426 16.5853C6.23163 16.8781 6.28276 17.2431 6.51955 17.4799C6.75633 17.7167 7.12139 17.7678 7.41411 17.6052L13.7781 14.0696C13.9005 14.0016 14.0014 13.9007 14.0695 13.7783L17.605 7.4143Z",fill:"currentColor"}))},Rue=v.forwardRef(Pue);var Iue=Rue,$ue=Object.defineProperty,ZD=Object.getOwnPropertySymbols,Bue=Object.prototype.hasOwnProperty,que=Object.prototype.propertyIsEnumerable,QD=(e,t,n)=>t in e?$ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bS=(e,t)=>{for(var n in t||(t={}))Bue.call(t,n)&&QD(e,n,t[n]);if(ZD)for(var n of ZD(t))que.call(t,n)&&QD(e,n,t[n]);return e};const Fue=(e,t)=>{const n=v.useContext(Le),r=bS(bS({},n),e);return v.createElement("svg",bS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4 21.75C21.1456 21.75 21.75 21.1456 21.75 20.4V3.6C21.75 2.85442 21.1456 2.25 20.4 2.25H3.6C2.85442 2.25 2.25 2.85441 2.25 3.6V20.4C2.25 21.1456 2.85441 21.75 3.6 21.75H20.4ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V10.7254L7.86425 8.84438C7.50216 8.64322 7.04556 8.77368 6.8444 9.13577C6.64324 9.49786 6.77369 9.95446 7.13578 10.1556L10.4557 12L7.13578 13.8444C6.77369 14.0455 6.64324 14.5021 6.8444 14.8642C7.04556 15.2263 7.50216 15.3568 7.86425 15.1556L11.25 13.2746V17C11.25 17.4142 11.5858 17.75 12 17.75C12.4142 17.75 12.75 17.4142 12.75 17V13.2746L16.1358 15.1556C16.4979 15.3568 16.9545 15.2263 17.1556 14.8642C17.3568 14.5021 17.2263 14.0455 16.8642 13.8444L13.5444 12L16.8642 10.1556C17.2263 9.95446 17.3568 9.49786 17.1556 9.13577C16.9545 8.77368 16.4979 8.64322 16.1358 8.84438L12.75 10.7254V7Z",fill:"currentColor"}))},zue=v.forwardRef(Fue);var Hue=zue,Uue=Object.defineProperty,JD=Object.getOwnPropertySymbols,Vue=Object.prototype.hasOwnProperty,Gue=Object.prototype.propertyIsEnumerable,eP=(e,t,n)=>t in e?Uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wS=(e,t)=>{for(var n in t||(t={}))Vue.call(t,n)&&eP(e,n,t[n]);if(JD)for(var n of JD(t))Gue.call(t,n)&&eP(e,n,t[n]);return e};const Wue=(e,t)=>{const n=v.useContext(Le),r=wS(wS({},n),e);return v.createElement("svg",wS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.06294 6.06294 1.25 12 1.25C17.9371 1.25 22.75 6.06294 22.75 12C22.75 17.9371 17.9371 22.75 12 22.75C6.06294 22.75 1.25 17.9371 1.25 12ZM8.25 17C8.25 16.5858 8.58579 16.25 9 16.25L15 16.25C15.4142 16.25 15.75 16.5858 15.75 17C15.75 17.4142 15.4142 17.75 15 17.75H9C8.58579 17.75 8.25 17.4142 8.25 17ZM16.0303 10.0303L12.5303 13.5303C12.2374 13.8232 11.7626 13.8232 11.4697 13.5303L7.96967 10.0303C7.67678 9.73744 7.67678 9.26256 7.96967 8.96967C8.26256 8.67678 8.73744 8.67678 9.03033 8.96967L11.25 11.1893V6C11.25 5.58579 11.5858 5.25 12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.1893L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303Z",fill:"currentColor"}))},Yue=v.forwardRef(Wue);var bu=Yue,Kue=Object.defineProperty,tP=Object.getOwnPropertySymbols,Xue=Object.prototype.hasOwnProperty,Zue=Object.prototype.propertyIsEnumerable,nP=(e,t,n)=>t in e?Kue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jS=(e,t)=>{for(var n in t||(t={}))Xue.call(t,n)&&nP(e,n,t[n]);if(tP)for(var n of tP(t))Zue.call(t,n)&&nP(e,n,t[n]);return e};const Que=(e,t)=>
253{const n=v.useContext(Le),r=jS(jS({},n),e);return v.createElement("svg",jS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 3.6C2.25 2.85441 2.85442 2.25 3.6 2.25H20.4C21.1456 2.25 21.75 2.85442 21.75 3.6V20.4C21.75 21.1456 21.1456 21.75 20.4 21.75H3.6C2.85441 21.75 2.25 21.1456 2.25 20.4V3.6ZM5.25 18C5.25 17.5858 5.58579 17.25 6 17.25L18 17.25C18.4142 17.25 18.75 17.5858 18.75 18C18.75 18.4142 18.4142 18.75 18 18.75L6 18.75C5.58579 18.75 5.25 18.4142 5.25 18ZM16.0303 11.0303L12.5303 14.5303C12.2374 14.8232 11.7626 14.8232 11.4697 14.5303L7.96967 11.0303C7.67678 10.7374 7.67678 10.2626 7.96967 9.96967C8.26256 9.67678 8.73744 9.67678 9.03033 9.96967L11.25 12.1893V6C11.25 5.58579 11.5858 5.25 12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V12.1893L14.9697 9.96967C15.2626 9.67678 15.7374 9.67678 16.0303 9.96967C16.3232 10.2626 16.3232 10.7374 16.0303 11.0303Z",fill:"currentColor"}))},Jue=v.forwardRef(Que);var ede=Jue,tde=Object.defineProperty,rP=Object.getOwnPropertySymbols,nde=Object.prototype.hasOwnProperty,rde=Object.prototype.propertyIsEnumerable,iP=(e,t,n)=>t in e?tde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SS=(e,t)=>{for(var n in t||(t={}))nde.call(t,n)&&iP(e,n,t[n]);if(rP)for(var n of rP(t))rde.call(t,n)&&iP(e,n,t[n]);return e};const ide=(e,t)=>{const n=v.useContext(Le),r=SS(SS({},n),e);return v.createElement("svg",SS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2319 2.28681C13.5409 2.38727 13.75 2.6752 13.75 3.00005V9.25005H19C19.2821 9.25005 19.5403 9.40834 19.6683 9.65972C19.7963 9.9111 19.7725 10.213 19.6066 10.4412L11.6066 21.4412C11.4155 21.7039 11.077 21.8137 10.7681 21.7133C10.4591 21.6128 10.25 21.3249 10.25 21.0001V14.7501H5C4.71791 14.7501 4.45967 14.5918 4.33167 14.3404C4.20366 14.089 4.22753 13.7871 4.39345 13.5589L12.3935 2.55892C12.5845 2.2962 12.923 2.18635 13.2319 2.28681Z",fill:"currentColor"}))},ade=v.forwardRef(ide);var sde=ade,ode=Object.defineProperty,aP=Object.getOwnPropertySymbols,lde=Object.prototype.hasOwnProperty,cde=Object.prototype.propertyIsEnumerable,sP=(e,t,n)=>t in e?ode(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CS=(e,t)=>{for(var n in t||(t={}))lde.call(t,n)&&sP(e,n,t[n]);if(aP)for(var n of aP(t))cde.call(t,n)&&sP(e,n,t[n]);return e};const ude=(e,t)=>{const n=v.useContext(Le),r=CS(CS({},n),e);return v.createElement("svg",CS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.75 12.641V15.9121C3.75 16.9739 4.36131 17.9409 5.32052 18.3963L10.3205 20.7703C11.0669 21.1246 11.9331 21.1246 12.6795 20.7703L17.6795 18.3963C18.6387 17.9409 19.25 16.9739 19.25 15.9121V12.6411L12.7746 15.8788C11.9723 16.2799 11.0279 16.2799 10.2255 15.8788L3.75 12.641Z",fill:"currentColor"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8963 3.46381C11.2764 3.27378 11.7237 3.27378 12.1038 3.46381L20.7622 7.79299C21.7572 8.2905 21.7572 9.71044 20.7622 10.2079L12.1038 14.5371C11.7237 14.7272 11.2764 14.7272 10.8963 14.5371L2.23796 10.2079C1.24295 9.71044 1.24294 8.2905 2.23796 7.79299L10.8963 3.46381Z",fill:"currentColor"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8292 8.16475C20.0145 7.79427 20.465 7.6441 20.8355 7.82934L22.8355 8.82934C23.0895 8.95639 23.25 9.21609 23.25 9.50016L23.25 13.0002C23.25 13.4144 22.9143 13.7502 22.5 13.7502C22.0858 13.7502 21.75 13.4144 21.75 13.0002L21.75 9.96369L20.1646 9.17098C19.7941 8.98574 19.644 8.53524 19.8292 8.16475Z",fill:"currentColor"}))},dde=v.forwardRef(ude);var fde=dde,hde=Object.defineProperty,oP=Object.getOwnPropertySymbols,pde=Object.prototype.hasOwnProperty,mde=Object.prototype.propertyIsEnumerable,lP=(e,t,n)=>t in e?hde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kS=(e,t)=>{for(var n in t||(t={}))pde.call(t,n)&&lP(e,n,t[n]);if(oP)for(var n of oP(t))mde.call(t,n)&&lP(e,n,t[n]);return e};const gde=(e,t)=>{const n=v.useContext(Le),r=kS(kS({},n),e);return v.createElement("svg",kS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 3.94228C13.1757 2.85872 14.7069 2.25 16.3053 2.25C18.0313 2.25 19.679 2.95977 20.8854 4.21074C22.0832 5.45181 22.75 7.1248 22.75 8.86222C22.75 10.5997 22.0831 12.2728 20.8854 13.5137C20.089 14.3393 19.2938 15.1836 18.4945 16.0323C16.871 17.7562 15.2301 19.4985 13.5256 21.14L13.5216 21.1438C12.6426 21.9779 11.2505 21.9476 10.409 21.0754L3.11399 13.5136C0.62867 10.9374 0.62867 6.78707 3.11399 4.21085C5.54605 1.68984 9.46239 1.60032 11.9999 3.94228Z",fill:"currentColor"}))},vde=v.forwardRef(gde);var yde=vde,xde=Object.defineProperty,cP=Object.getOwnPropertySymbols,bde=Object.prototype.hasOwnProperty,wde=Object.prototype.propertyIsEnumerable,uP=(e,t,n)=>t in e?xde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NS=(e,t)=>{for(var n in t||(t={}))bde.call(t,n)&&uP(e,n,t[n]);if(cP)for(var n of cP(t))wde.call(t,n)&&uP(e,n,t[n]);return e};const jde=(e,t)=>{const n=v.useContext(Le),r=NS(NS({},n),e);return v.createElement("svg",NS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("rect",{x:9,y:2,width:6,height:12,rx:3,fill:"
253currentColor",stroke:"currentColor",strokeWidth:1.5}),v.createElement("path",{d:"M5 3V5M1 2V6M19 3V5M23 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M5 10V11C5 14.866 8.13401 18 12 18V18V18C15.866 18 19 14.866 19 11V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 18V22M12 22H9M12 22H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Sde=v.forwardRef(jde);var dP=Sde,Cde=Object.defineProperty,fP=Object.getOwnPropertySymbols,kde=Object.prototype.hasOwnProperty,Nde=Object.prototype.propertyIsEnumerable,hP=(e,t,n)=>t in e?Cde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AS=(e,t)=>{for(var n in t||(t={}))kde.call(t,n)&&hP(e,n,t[n]);if(fP)for(var n of fP(t))Nde.call(t,n)&&hP(e,n,t[n]);return e};const Ade=(e,t)=>{const n=v.useContext(Le),r=AS(AS({},n),e);return v.createElement("svg",AS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("rect",{x:9,y:2,width:6,height:12,rx:3,fill:"currentColor",stroke:"currentColor",strokeWidth:1.5}),v.createElement("path",{d:"M5 10V11C5 14.866 8.13401 18 12 18V18V18C15.866 18 19 14.866 19 11V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M12 18V22M12 22H9M12 22H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Ede=v.forwardRef(Ade);var _de=Ede,Tde=Object.defineProperty,pP=Object.getOwnPropertySymbols,Lde=Object.prototype.hasOwnProperty,Ode=Object.prototype.propertyIsEnumerable,mP=(e,t,n)=>t in e?Tde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ES=(e,t)=>{for(var n in t||(t={}))Lde.call(t,n)&&mP(e,n,t[n]);if(pP)for(var n of pP(t))Ode.call(t,n)&&mP(e,n,t[n]);return e};const Mde=(e,t)=>{const n=v.useContext(Le),r=ES(ES({},n),e);return v.createElement("svg",ES({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 16.5C1.25 13.0482 4.04822 10.25 7.5 10.25C10.9518 10.25 13.75 13.0482 13.75 16.5C13.75 19.9518 10.9518 22.75 7.5 22.75C6.4644 22.75 5.48586 22.4976 4.6244 22.0505L2.41228 22.4623C2.16923 22.5076 1.91949 22.4301 1.74467 22.2553C1.56985 22.0805 1.49242 21.8308 1.53767 21.5877L1.94953 19.3756C1.50244 18.5141 1.25 17.5356 1.25 16.5Z",fill:"currentColor"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7499 10C22.7499 5.16751 18.8325 1.25 13.9999 1.25C9.73442 1.25 5.90197 4.4993 5.33758 8.7588C5.33709 8.76059 5.33669 8.76183 5.33638 8.76263C5.33741 8.74858 5.33662 8.75058 5.33597 8.75509C5.33532 8.75961 5.33481 8.76664 5.33638 8.76263C5.33561 8.77306 5.33385 8.79231 5.33029 8.82591C5.32628 8.86551 5.32098 8.92185 5.3153 8.99325C5.31354 9.01533 5.31174 9.03885 5.30994 9.06378C6.00443 8.85957 6.73944 8.75 7.50004 8.75C11.7803 8.75 15.25 12.2198 15.25 16.5C15.25 17.2591 15.1409 17.9927 14.9375 18.6859C15.0164 18.6798 15.086 18.6736 15.1454 18.6678C15.2187 18.6607 15.2765 18.6542 15.3171 18.6493L15.365 18.6434L15.3789 18.6416L15.3832 18.641L15.3848 18.6408L15.3859 18.6406L15.4016 18.6383C16.3735 18.4817 17.2918 18.165 18.1285 17.7165L21.4627 18.3373C21.7057 18.3826 21.9555 18.3051 22.1303 18.1303C22.3051 17.9555 22.3825 17.7058 22.3373 17.4627L21.7165 14.1285C22.3761 12.8981 22.7499 11.4917 22.7499 10Z",fill:"currentColor"}))},Dde=v.forwardRef(Mde);var Pde=Dde,Rde=Object.defineProperty,gP=Object.getOwnPropertySymbols,Ide=Object.prototype.hasOwnProperty,$de=Object.prototype.propertyIsEnumerable,vP=(e,t,n)=>t in e?Rde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_S=(e,t)=>{for(var n in t||(t={}))Ide.call(t,n)&&vP(e,n,t[n]);if(gP)for(var n of gP(t))$de.call(t,n)&&vP(e,n,t[n]);return e};const Bde=(e,t)=>{const n=v.useContext(Le),r=_S(_S({},n),e);return v.createElement("svg",_S({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6 2.25C2.85442 2.25 2.25 2.85441 2.25 3.6V20.4C2.25 21.1456 2.85441 21.75 3.6 21.75H20.4C21.1456 21.75 21.75 21.1456 21.75 20.4V3.6C21.75 2.85442 21.1456 2.25 20.4 2.25H3.6ZM12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9V11.25H9C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H11.25V15C11.25 15.4142 11.5858 15.75 12 15.75C12.4142 15.75 12.75 15.4142 12.75 15V12.75H15C15.4142 12.75 15.75 12.4142 15.75 12C15.75 11.5858 15.4142 11.25 15 11.25H12.75V9Z",fill:"currentColor"}))},qde=v.forwardRef(Bde);var yP=qde,Fde=Object.defineProperty,xP=Object.getOwnPropertySymbols,zde=Object.prototype.hasOwnProperty,Hde=Object.prototype.propertyIsEnumerable,bP=(e,t,n)=>t in e?Fde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TS=(e,t)=>{for(var n in t||(t={}))zde.call(t,n)&&bP(e,n,t[n]);if(xP)for(var n of xP(t))Hde.call(t,n)&&bP(e,n,t[n]);return e};const Ude=(e,t)=>{const n=v.useContext(Le),r=TS(TS({},n),e);return v.createElement("svg",TS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20.75C17.3848 20.75 21.75 16.3848 21.75 11V6C21.75 4.48122 20.5188 3.25 19 3.25H5C3.48122 3.25 2.25 4.48122 2.25 6V11C2.25 16.3848 6.61522 20.75 12 20.75ZM8.53033 9.46967C8.23744 9.17678 7.76256 9.17678 7.46967 9.46967C7.17678 9.76256 7.17678 10.2374 7.46967 10.5303L11.4697 14.5303C11.7626 14.8232 12.2374 14.8232 12.5303 14.5303L16.5303 10.5303C16.8232 10.2374 16.8232 9.76256 16.5303 9.46967C16.2374 9.17678 15.7626 9.17678 15.4697 9.46967L12 12.9393L8.53033 9.46967Z",fill:"currentColor"}))},Vde=v.forwardRef(Ude);var Gde=Vde,Wde=Object.defineProperty,wP=Object.getOwnPropertySymbols,Yde=Object.prototype.hasOwnProperty,Kde=Object.prototype.propertyIsEnumerable,jP=(e,t,n
253)=>t in e?Wde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LS=(e,t)=>{for(var n in t||(t={}))Yde.call(t,n)&&jP(e,n,t[n]);if(wP)for(var n of wP(t))Kde.call(t,n)&&jP(e,n,t[n]);return e};const Xde=(e,t)=>{const n=v.useContext(Le),r=LS(LS({},n),e);return v.createElement("svg",LS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("g",{clipPath:"url(#clip0_4086_8473)"},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.84647 7.15123C1.54566 7.21608 1.31498 7.45811 1.26464 7.7617C1.2143 8.06528 1.35452 8.36881 1.6183 8.52729L8.13474 12.4421L14.3544 8.08705C14.6938 7.84947 15.1614 7.93193 15.399 8.27123C15.6366 8.61054 15.5541 9.0782 15.2148 9.31578L8.99537 13.6707L10.4455 21.1339C10.5042 21.436 10.7415 21.6715 11.044 21.7281C11.3465 21.7846 11.6528 21.6506 11.8166 21.3901L22.7919 3.93893C22.9526 3.68349 22.9445 3.35665 22.7714 3.10947C22.5983 2.86228 22.294 2.7429 21.999 2.80649L1.84647 7.15123Z",fill:"currentColor"})),v.createElement("defs",null,v.createElement("clipPath",{id:"clip0_4086_8473"},v.createElement("rect",{width:24,height:24,fill:"white"}))))},Zde=v.forwardRef(Xde);var Qde=Zde,Jde=Object.defineProperty,SP=Object.getOwnPropertySymbols,efe=Object.prototype.hasOwnProperty,tfe=Object.prototype.propertyIsEnumerable,CP=(e,t,n)=>t in e?Jde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OS=(e,t)=>{for(var n in t||(t={}))efe.call(t,n)&&CP(e,n,t[n]);if(SP)for(var n of SP(t))tfe.call(t,n)&&CP(e,n,t[n]);return e};const nfe=(e,t)=>{const n=v.useContext(Le),r=OS(OS({},n),e);return v.createElement("svg",OS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M8.58737 8.23597L11.1849 3.00376C11.5183 2.33208 12.4817 2.33208 12.8151 3.00376L15.4126 8.23597L21.2215 9.08017C21.9668 9.18848 22.2638 10.0994 21.7243 10.6219L17.5217 14.6918L18.5135 20.4414C18.6409 21.1798 17.8614 21.7428 17.1945 21.3941L12 18.678L6.80547 21.3941C6.1386 21.7428 5.35909 21.1798 5.48645 20.4414L6.47825 14.6918L2.27575 10.6219C1.73617 10.0994 2.03322 9.18848 2.77852 9.08017L8.58737 8.23597Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rfe=v.forwardRef(nfe);var N5=rfe,ife=Object.defineProperty,kP=Object.getOwnPropertySymbols,afe=Object.prototype.hasOwnProperty,sfe=Object.prototype.propertyIsEnumerable,NP=(e,t,n)=>t in e?ife(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MS=(e,t)=>{for(var n in t||(t={}))afe.call(t,n)&&NP(e,n,t[n]);if(kP)for(var n of kP(t))sfe.call(t,n)&&NP(e,n,t[n]);return e};const ofe=(e,t)=>{const n=v.useContext(Le),r=MS(MS({},n),e);return v.createElement("svg",MS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6 2.25C2.85442 2.25 2.25 2.85441 2.25 3.6V20.4C2.25 21.1456 2.85441 21.75 3.6 21.75H20.4C21.1456 21.75 21.75 21.1456 21.75 20.4V3.6C21.75 2.85442 21.1456 2.25 20.4 2.25H3.6ZM16.75 8C16.75 7.58579 16.4142 7.25 16 7.25C15.5858 7.25 15.25 7.58579 15.25 8V16C15.25 16.4142 15.5858 16.75 16 16.75C16.4142 16.75 16.75 16.4142 16.75 16V8ZM12 10.25C12.4142 10.25 12.75 10.5858 12.75 11V16C12.75 16.4142 12.4142 16.75 12 16.75C11.5858 16.75 11.25 16.4142 11.25 16V11C11.25 10.5858 11.5858 10.25 12 10.25ZM8.75 13C8.75 12.5858 8.41421 12.25 8 12.25C7.58579 12.25 7.25 12.5858 7.25 13V16C7.25 16.4142 7.58579 16.75 8 16.75C8.41421 16.75 8.75 16.4142 8.75 16V13Z",fill:"currentColor"}))},lfe=v.forwardRef(ofe);var cfe=lfe,ufe=Object.defineProperty,AP=Object.getOwnPropertySymbols,dfe=Object.prototype.hasOwnProperty,ffe=Object.prototype.propertyIsEnumerable,EP=(e,t,n)=>t in e?ufe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DS=(e,t)=>{for(var n in t||(t={}))dfe.call(t,n)&&EP(e,n,t[n]);if(AP)for(var n of AP(t))ffe.call(t,n)&&EP(e,n,t[n]);return e};const hfe=(e,t)=>{const n=v.useContext(Le),r=DS(DS({},n),e);return v.createElement("svg",DS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 3.6C2.25 2.85441 2.85442 2.25 3.6 2.25H20.4C21.1456 2.25 21.75 2.85442 21.75 3.6V20.4C21.75 21.1456 21.1456 21.75 20.4 21.75H3.6C2.85441 21.75 2.25 21.1456 2.25 20.4V3.6Z
253M6.25 7C6.25 6.58579 6.58579 6.25 7 6.25H12H17C17.1989 6.25 17.3897 6.32902 17.5303 6.46967C17.671 6.61032 17.75 6.80109 17.75 7V9C17.75 9.41421 17.4142 9.75 17 9.75C16.5858 9.75 16.25 9.41421 16.25 9V7.75H12.75V16.25H14C14.4142 16.25 14.75 16.5858 14.75 17C14.75 17.4142 14.4142 17.75 14 17.75H12H10C9.58579 17.75 9.25 17.4142 9.25 17C9.25 16.5858 9.58579 16.25 10 16.25H11.25V7.75H7.75V9C7.75 9.41421 7.41421 9.75 7 9.75C6.58579 9.75 6.25 9.41421 6.25 9V7Z",fill:"currentColor"}))},pfe=v.forwardRef(hfe);var mfe=pfe,gfe=Object.defineProperty,_P=Object.getOwnPropertySymbols,vfe=Object.prototype.hasOwnProperty,yfe=Object.prototype.propertyIsEnumerable,TP=(e,t,n)=>t in e?gfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PS=(e,t)=>{for(var n in t||(t={}))vfe.call(t,n)&&TP(e,n,t[n]);if(_P)for(var n of _P(t))yfe.call(t,n)&&TP(e,n,t[n]);return e};const xfe=(e,t)=>{const n=v.useContext(Le),r=PS(PS({},n),e);return v.createElement("svg",PS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{d:"M20.9405 4.65432L20.0496 14.4543C20.0215 14.7634 19.7624 15 19.4521 15H5L5.95039 4.54568C5.97849 4.23663 6.23761 4 6.54793 4H20.343C20.6958 4 20.9725 4.30295 20.9405 4.65432Z",fill:"currentColor"}),v.createElement("path",{d:"M5 15L5.95039 4.54568C5.97849 4.23663 6.23761 4 6.54793 4H20.343C20.6958 4 20.9725 4.30295 20.9405 4.65432L20.0496 14.4543C20.0215 14.7634 19.7624 15 19.4521 15H5ZM5 15L4.4 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},bfe=v.forwardRef(xfe);var wfe=bfe,jfe=Object.defineProperty,LP=Object.getOwnPropertySymbols,Sfe=Object.prototype.hasOwnProperty,Cfe=Object.prototype.propertyIsEnumerable,OP=(e,t,n)=>t in e?jfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RS=(e,t)=>{for(var n in t||(t={}))Sfe.call(t,n)&&OP(e,n,t[n]);if(LP)for(var n of LP(t))Cfe.call(t,n)&&OP(e,n,t[n]);return e};const kfe=(e,t)=>{const n=v.useContext(Le),r=RS(RS({},n),e);return v.createElement("svg",RS({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C17.9371 22.75 22.75 17.9371 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25ZM9.70164 8.64124C9.40875 8.34835 8.93388 8.34835 8.64098 8.64124C8.34809 8.93414 8.34809 9.40901 8.64098 9.7019L10.9391 12L8.64098 14.2981C8.34809 14.591 8.34809 15.0659 8.64098 15.3588C8.93388 15.6517 9.40875 15.6517 9.70164 15.3588L11.9997 13.0607L14.2978 15.3588C14.5907 15.6517 15.0656 15.6517 15.3585 15.3588C15.6514 15.0659 15.6514 14.591 15.3585 14.2981L13.0604 12L15.3585 9.7019C15.6514 9.40901 15.6514 8.93414 15.3585 8.64124C15.0656 8.34835 14.5907 8.34835 14.2978 8.64124L11.9997 10.9393L9.70164 8.64124Z",fill:"currentColor"}))},Nfe=v.forwardRef(kfe);var MP=Nfe;function Afe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Efe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_fe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tfe={};function DP(e,t){return(Tfe.jsx?_fe:Efe).test(e)}const Lfe=/[ \t\n\f\r]/g;function Ofe(e){return typeof e=="object"?e.type==="text"?PP(e.value):!1:PP(e)}function PP(e){return e.replace(Lfe,"")===""}class Wm{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Wm.prototype.normal={};Wm.prototype.property={};Wm.prototype.space=void 0;function Nz(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Wm(n,r,t)}function ZC(e){return e.toLowerCase()}class Ai{constructor(t,n){this.attribute=n,this.property=t}}Ai.prototype.attribute="";Ai.prototype.booleanish=!1;Ai.prototype.boolean=!1;Ai.prototype.commaOrSpaceSeparated=!1;Ai.prototype.commaSeparated=!1;Ai.prototype.defined=!1;Ai.prototype.mustUseProperty=!1;Ai.prototype.number=!1;Ai.prototype.overloadedBoolean=!1;Ai.prototype.property="";Ai.prototype.spaceSeparated=!1;Ai.prototype.space=void 0;let Mfe=0;const ot=wu(),Vn=wu(),QC=wu(),_e=wu(),Yt=wu(),Yd=wu(),Fi=wu();function wu(){return 2**++Mfe}const JC=Object.freeze(Object.defineProperty({__proto__:null,boolean:ot,booleanish:Vn,commaOrSpaceSeparated:Fi,commaSeparated:Yd,number:_e,overloadedBoolean:QC,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),IS=Object.keys(JC);class A5 extends Ai{constructor(t,n,r,a){let s=-1;if(super(t,n),RP(this,"space",a),typeof r=="number")for(;++s<IS.length;){const o=IS[s];RP(this,IS[s],(r&JC[o])===JC[o])}}}A5.prototype.defined=!0;function RP(e,t,n){n&&(e[t]=n)}function Sf(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new A5(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ZC(r)]=r,n[ZC(s.attribute)]=r}return new Wm(t,n,e.space)}const Az=Sf({properties:{ariaActiveDescendant:null,ariaAtomic:Vn,ariaAutoComplete:null,ariaBusy:Vn,ariaChecked:Vn,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControl
vendor: 3,988 bytes, line 253
253s:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:Vn,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:Vn,ariaFlowTo:Yt,ariaGrabbed:Vn,ariaHasPopup:null,ariaHidden:Vn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:_e,ariaLive:null,ariaModal:Vn,ariaMultiLine:Vn,ariaMultiSelectable:Vn,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:Vn,ariaReadOnly:Vn,ariaRelevant:null,ariaRequired:Vn,ariaRoleDescription:Yt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:Vn,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ez(e,t){return t in e?e[t]:t}function _z(e,t){return Ez(e,t.toLowerCase())}const Dfe=Sf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yd,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:Yt,autoFocus:ot,autoPlay:ot,blocking:Yt,capture:null,charSet:null,checked:ot,cite:null,className:Yt,cols:_e,colSpan:null,content:null,contentEditable:Vn,controls:ot,controlsList:Yt,coords:_e|Yd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:QC,draggable:Vn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:Yt,height:_e,hidden:QC,high:_e,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:ot,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ot,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:ot,muted:ot,name:null,nonce:null,noModule:ot,noValidate:ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ot,optimum:_e,pattern:null,ping:Yt,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:Yt,required:ot,reversed:ot,rows:_e,rowSpan:_e,sandbox:Yt,scope:null,scoped:ot,seamless:ot,selected:ot,shadowRootClonable:ot,shadowRootDelegatesFocus:ot,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spell
253Check:Vn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:ot,useMap:null,value:Vn,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ot,declare:ot,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:ot,noHref:ot,noShade:ot,noWrap:ot,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:Vn,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ot,disableRemotePlayback:ot,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:_z}),Pfe=Sf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
253-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fi,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yd,g2:Yd,glyphName:Yd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:Fi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,680 bytes, lines 253-254
253Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fi,rev:Fi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fi,requiredFeatures:Fi,requiredFonts:Fi,requiredFormats:Fi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:Fi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fi,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ez}),Tz=Sf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Lz=Sf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_z}),Oz=Sf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Rfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ife=/[A-Z]/g,IP=/-[a-z]/g,$fe=/^data[-\w.:]+$/i;function Bfe(e,t){const n=ZC(t);let r=t,a=Ai;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$fe.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(IP,Ffe);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!IP.test(s)){let o=s.replace(Ife,qfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=A5}return new a(r,t)}function qfe(e){return"-"+e.toLowerCase()}function Ffe(e){return e.charAt(1).toUpperCase()}const zfe=Nz([Az,Dfe,Tz,Lz,Oz],"html"),E5=Nz([Az,Pfe,Tz,Lz,Oz],"svg");function Hfe(e){return e.join(" ").trim()}var bd={},$S,$P;function Ufe(){if($P)return $S;$P=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,d=` 254`,u="/",h="*",p="",g="comment",y="declaration";$S=function(w,j){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];j=j||{};var S=1,k=1;function N(z){var V=z.match(t);V&&(S+=V.length);var W=z.lastIndexOf(d);k=~W?z.length-W:k+z.length}function _(){var z={line:S,column:k};return function(V){return V.position=new L(z),P(),V}}function L(z){this.start=z,this.end={line:S,column:k},this.source=j.source}L.prototype.content=w;function E(z){var V=new Error(j.source+":"+S+":"+k+": "+z);if(V.reason=z,V.filename=j.source,V.line=S,V.column=k,V.source=w,!j.silent)throw V}function T(z){var V=z.exec(w);if(V){var W=V[0];return N(W),w=w.slice(W.length),V}}function P(){T(n)}function $(z){var V;for(z=z||[];V=O();)V!==!1&&z.push(V);return z}function O(){var z=_();if(!(u!=w.charAt(0)||h!=w.charAt(1))){for(var V=2;p!=w.charAt(V)&&(h!=w.charAt(V)||u!=w.charAt(V+1));)++V;if(V+=2,p===w.charAt(V-1))return E("End of comment missing");var W=w.slice(2,V-2);return k+=2,N(W),w=w.slice(V),k+=2,z({type:g,comment:W})}}function q(){var z=_(),V=T(r);if(V){if(O(),!T(a))return E("property missing ':'");var W=T(s),B=z({type:y,property:b(V[0].replace(e,p)),value:W?b(W[0].replace(e,p)):p});return T(o),B}}function D(){var z=[];$(z);for(var V;V=q();)V!==!1&&(z.push(V),$(z));return z}return P(),D()};function b(w){return w?w.replace(l,p):p}return $S}var BP;function Vfe(){if(BP)return bd;BP=1;var e=bd&&bd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bd,"__esModule",{value:!0}),bd.default=n;var t=e(Ufe());function n(r,a){var s=null;if(!r||typeof r!="string")return s;var o=(0,t.default)(r),l=typeof a=="function";return o.forEach(function(d){if(d.type==="declaration"){var u=d.property,h=d.value;l?a(u,h,d):h&&(s=s||{}
254,s[u]=h)}}),s}return bd}var rp={},qP;function Gfe(){if(qP)return rp;qP=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},o=function(u,h){return h.toUpperCase()},l=function(u,h){return"".concat(h,"-")},d=function(u,h){return h===void 0&&(h={}),s(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(a,l):u=u.replace(r,l),u.replace(t,o))};return rp.camelCase=d,rp}var ip,FP;function Wfe(){if(FP)return ip;FP=1;var e=ip&&ip.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Vfe()),n=Gfe();function r(a,s){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(l,d){l&&d&&(o[(0,n.camelCase)(l,s)]=d)}),o}return r.default=r,ip=r,ip}var Yfe=Wfe();const Kfe=Aa(Yfe),Mz=Dz("end"),_5=Dz("start");function Dz(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xfe(e){const t=_5(e),n=Mz(e);if(t&&n)return{start:t,end:n}}function $p(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zP(e.position):"start"in e||"end"in e?zP(e):"line"in e||"column"in e?ek(e):""}function ek(e){return HP(e&&e.line)+":"+HP(e&&e.column)}function zP(e){return ek(e&&e.start)+"-"+ek(e&&e.end)}function HP(e){return e&&typeof e=="number"?e:1}class Yr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(o=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=l?l.line:void 0,this.name=$p(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Yr.prototype.file="";Yr.prototype.name="";Yr.prototype.reason="";Yr.prototype.message="";Yr.prototype.stack="";Yr.prototype.column=void 0;Yr.prototype.line=void 0;Yr.prototype.ancestors=void 0;Yr.prototype.cause=void 0;Yr.prototype.fatal=void 0;Yr.prototype.place=void 0;Yr.prototype.ruleId=void 0;Yr.prototype.source=void 0;const T5={}.hasOwnProperty,Zfe=new Map,Qfe=/[A-Z]/g,Jfe=new Set(["table","tbody","thead","tfoot","tr"]),ehe=new Set(["td","th"]),Pz="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function the(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=che(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 17,266 bytes, line 254
254if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=lhe(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?E5:zfe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Rz(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function Rz(e,t,n){if(t.type==="element")return nhe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return rhe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ahe(e,t,n);if(t.type==="mdxjsEsm")return ihe(e,t);if(t.type==="root")return she(e,t,n);if(t.type==="text")return ohe(e,t)}function nhe(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=E5,e.schema=a),e.ancestors.push(t);const s=$z(e,t.tagName,!1),o=uhe(e,t);let l=O5(e,t);return Jfe.has(t.tagName)&&(l=l.filter(function(d){return typeof d=="string"?!Ofe(d):!0})),Iz(e,o,s,t),L5(o,l),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function rhe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}im(e,t.position)}function ihe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);im(e,t.position)}function ahe(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=E5,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:$z(e,t.name,!0),o=dhe(e,t),l=O5(e,t);return Iz(e,o,s,t),L5(o,l),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function she(e,t,n){const r={};return L5(r,O5(e,t)),e.create(t,e.Fragment,r,n)}function ohe(e,t){return t.value}function Iz(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function L5(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function lhe(e,t,n){return r;function r(a,s,o,l){const u=Array.isArray(o.children)?n:t;return l?u(s,o,l):u(s,o)}}function che(e,t){return n;function n(r,a,s,o){const l=Array.isArray(s.children),d=_5(r);return t(a,s,o,l,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function uhe(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&T5.call(t.properties,a)){const s=fhe(e,a,t.properties[a]);if(s){const[o,l]=s;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&ehe.has(t.tagName)?r=l:n[o]=l}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function dhe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else im(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else im(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function O5(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Zfe;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const u=a.get(d)||0;o=d+"-"+u,a.set(d,u+1)}}const l=Rz(e,s,o);l!==void 0&&n.push(l)}return n}function fhe(e,t,n){const r=Bfe(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Afe(n):Hfe(n)),r.property==="style"){let a=typeof n=="object"?n:hhe(e,String(n));return e.stylePropertyNameCase==="css"&&(a=phe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Rfe[r.property]||r.property:r.attribute,n]}}function hhe(e,t){try{return Kfe(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Yr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Pz+"#cannot-parse-style-attribute",a}}function $z(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,o;for(;++s<a.length;){const l=DP(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}r=o}else r=DP(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return T5.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);im(e)}function im(e,t){const n=new Yr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Pz+"#cannot-handle-mdx-estrees-without-createevaluater",n}function phe(e){const t={};let n;for(n in e)T5.call(e,n)&&(t[mhe(n)]=e[n]);return t}function mhe(e){let t=e.replace(Qfe,ghe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ghe(e){return"-"+e.toLowerCase()}const BS={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},vhe={};function M5(e,t){const n=vhe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Bz(e,r,a)}function Bz(e,t,n){if(yhe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return UP(e.children,t,n)}return Array.isArray(e)?UP(e,t,n):""}function UP(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Bz(e[a],t,n);return r.join("")}function yhe(e){return!!(e&&typeof e=="object")}const VP=document.createElement("i");function D5(e){const t="&"+e+";";VP.innerHTML=t;const n=VP.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ki(e,t,n,r){const a=e.length;let s=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function va(e,t){return e.length>0?(Ki(e,e.length,0,t),e):t}const GP={}.hasOwnProperty;function qz(e){const t={};let n=-1;for(;++n<e.length;)xhe(t,e[n]);return t}function xhe(e,t){let n;for(n in t){const a=(GP.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){GP.call(a,o)||(a[o]=[]);const l=s[o];bhe(a[o],Array.isArray(l)?l:l?[l]:[])}}}function bhe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ki(e,0,0,r)}function Fz(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ha(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ni=Vl(/[A-Za-z]/),Ur=Vl(/[\dA-Za-z]/),whe=Vl(/[#-'*+\--9=?A-Z^-~]/);function jy(e){return e!==null&&(e<32||e===127)}const tk=Vl(/\d/),jhe=Vl(/[\dA-Fa-f]/),She=Vl(/[!-/:-@[-`{-~]/);function Ge(e){return e!==null&&e<-2}function Wt(e){return e!==null&&(e<0||e===32)}function ht(e){return e===-2||e===-1||e===32}const ib=Vl(new RegExp("\\p{P}|\\p{S}","u")),ru=Vl(/\s/);function Vl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cf(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Ur(e.charCodeAt(n+1))&&Ur(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),a=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(d){return ht(d)?(e.enter(n),l(d)):t(d)}function l(d){return ht(d)&&s++<a?(e.consume(d),l):(e.exit(n),t(d))}}const Che={tokenize:khe};function khe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),s(l)}function s(l){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Ge(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const Nhe={tokenize:Ahe},WP={tokenize:Ehe};function Ahe(e){const t=this,n=[];let r=0,a,s,o;return l;function l(N){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,d,u)(N)}return u(N)}function d(N){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&k();const _=t.events.length;let L=_,E;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){E=t.events[L][1].end;break}S(r);let T=_;for(;T<t.events.length;)t.events[T][1].end={...E},T++;return Ki(t.events,L+1,0,t.events.slice(_)),t.events.length=T,u(N)}return l(N)}function u(N){if(r===n.length){if(!a)return g(N);if(a.currentConstruct&&a.currentConstruct.concrete)return b(N);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(WP,h,p)(N)}function h(N){return a&&k(),S(r),g(N)}function p(N){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,b(N)}function g(N){return t.containerState={},e.attempt(WP,y,b)(N)}function y(N){return r++,n.push([t.currentConstruct,t.containerState]),g(N)}function b(N){if(N===null){a&&k(),S(0),e.consume(N);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),w(N)}function w(N){if(N===null){j(e.exit("chunkFlow"),!0),S(0),e.consume(N);return}return Ge(N)?(e.consume(N),j(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(N),w)}function j(N,_){const L=t.sliceStream(N);if(_&&L.push(null),N.previous=s,s&&(s.next=N),s=N,a.defineSkip(N.start),a.write(L),t.parser.lazy[N.start.line]){let E=a.events.length;for(;E--;)if(a.events[E][1].start.offset<o&&(!a.events[E][1].end||a.events[E][1].end.offset>o))return;const T=t.events.length;let P=T,$,O;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if($){O=t.events[P][1].end;break}$=!0}for(S(r),E=T;E<t.events.length;)t.events[E][1].end={...O},E++;Ki(t.events,P+1,0,t.events.slice(T)),t.events.length=E}}function S(N){let _=n.length;for(;_-- >N;){const L=n[_];t.containerState=L[1],L[0].exit.call(t,e)}n.length=N}function k(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Ehe(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ef(e){if(e===null||Wt(e)||ru(e))return 1;if(ib(e))return 2}function ab(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const nk={name:"attention",resolveAll:_he,tokenize:The};function _he(e,t){let n=-1,r,a,s,o,l,d,u,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},g={...e[n][1].start};YP(p,-d),YP(g,d),o={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},l={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=va(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=va(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=va(u,ab(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=va(u,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,u=va(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Ki(e,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function The(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ef(r);let s;return o;function o(d){return s=d,e.enter("attentionSequence"),l(d)}function l(d){if(d===s)return e.consume(d),l;const u=e.exit("attentionSequence"),h=ef(d),p=!h||h===2&&a||n.includes(d),g=!a||a===2&&h||n.includes(r);return u._open=!!(s===42?p:p&&(a||!g)),u._close=!!(s===42?g:g&&(h||!p)),t(d)}}function YP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Lhe={name:"autolink",tokenize:Ohe};function Ohe(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return ni(y)?(e.consume(y),o):y===64?n(y):u(y)}function o(y){return y===43||y===45||y===46||Ur(y)?(r=1,l(y)):u(y)}function l(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||Ur(y))&&r++<32?(e.consume(y),l):(r=0,u(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||jy(y)?n(y):(e.consume(y),d)}function u(y){return y===64?(e.consume(y),h):whe(y)?(e.consume(y),u):n(y)}function h(y){return Ur(y)?p(y):n(y)}function p(y){return y===46?(e.consume(y),r=0,h):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):g(y)}function g(y){if((y===45||Ur(y))&&r++<63){const b=y===45?g:p;return e.consume(y),b}return n(y)}}const Ym={partial:!0,tokenize:Mhe};function Mhe(e,t,n){return r;function r(s){return ht(s)?St(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Ge(s)?t(s):n(s)}}const zz={continuation:{tokenize:Phe},exit:Rhe,name:"blockQuote",tokenize:Dhe};function Dhe(e,t,n){const r=this;return a;function a(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return ht(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Phe(e,t,n){const r=this;return a;function a(o){return ht(o)?St(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(zz,t,n)(o)}}function Rhe(e){e.exit("blockQuote")}const Hz={name:"characterEscape",tokenize:Ihe};function Ihe(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return She(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Uz={name:"characterReference",tokenize:$he};function $he(e,t,n){const r=this;let a=0,s,o;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=Ur,h(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=jhe,h):(e.enter("characterReferenceValue"),s=7,o=tk,h(p))}function h(p){if(p===59&&a){const g=e.exit("characterReferenceValue");return o===Ur&&!D5(r.sliceSerialize(g))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<s?(e.consume(p),h):n(p)}}const KP={partial:!0,tokenize:qhe},XP={concrete:!0,name:"codeFenced",tokenize:Bhe};function Bhe(e,t,n){const r=this,a={partial:!0,tokenize:L};let s=0,o=0,l;return d;function d(E){return u(E)}function u(E){const T=r.events[r.events.length-1];return s=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,l=E,e.enter("co
254deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(E)}function h(E){return E===l?(o++,e.consume(E),h):o<3?n(E):(e.exit("codeFencedFenceSequence"),ht(E)?St(e,p,"whitespace")(E):p(E))}function p(E){return E===null||Ge(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(KP,w,_)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||Ge(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(E)):ht(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,y,"whitespace")(E)):E===96&&E===l?n(E):(e.consume(E),g)}function y(E){return E===null||Ge(E)?p(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===null||Ge(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(E)):E===96&&E===l?n(E):(e.consume(E),b)}function w(E){return e.attempt(a,_,j)(E)}function j(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),S}function S(E){return s>0&&ht(E)?St(e,k,"linePrefix",s+1)(E):k(E)}function k(E){return E===null||Ge(E)?e.check(KP,w,_)(E):(e.enter("codeFlowValue"),N(E))}function N(E){return E===null||Ge(E)?(e.exit("codeFlowValue"),k(E)):(e.consume(E),N)}function _(E){return e.exit("codeFenced"),t(E)}function L(E,T,P){let $=0;return O;function O(W){return E.enter("lineEnding"),E.consume(W),E.exit("lineEnding"),q}function q(W){return E.enter("codeFencedFence"),ht(W)?St(E,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):D(W)}function D(W){return W===l?(E.enter("codeFencedFenceSequence"),z(W)):P(W)}function z(W){return W===l?($++,E.consume(W),z):$>=o?(E.exit("codeFencedFenceSequence"),ht(W)?St(E,V,"whitespace")(W):V(W)):P(W)}function V(W){return W===null||Ge(W)?(E.exit("codeFencedFence"),T(W)):P(W)}}}function qhe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const qS={name:"codeIndented",tokenize:zhe},Fhe={partial:!0,tokenize:Hhe};function zhe(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),St(e,s,"linePrefix",5)(u)}function s(u){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?d(u):Ge(u)?e.attempt(Fhe,o,d)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Ge(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function d(u){return e.exit("codeIndented"),t(u)}}function Hhe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Ge(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):St(e,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Ge(o)?a(o):n(o)}}const Uhe={name:"codeText",previous:Ghe,resolve:Vhe,tokenize:Whe};function Vhe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Ghe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Whe(e,t,n){let r=0,a,s;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),r++,l):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(s=e.enter("codeTextSequence"),a=0,h(p)):Ge(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Ge(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),u)}function h(p){return p===96?(e.consume(p),a++,h):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",u(p))}}class Yhe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ap(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ap(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ap(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ap(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ap(this.left,n.reverse())}}}function ap(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Vz(e){const t={};let n=-1,r,a,s,o,l,d,u;const h=new Yhe(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);
vendor: 73,226 bytes, lines 254-266
254if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Khe(h,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(o=h.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...h.get(a)[1].start},l=h.slice(a,n),l.unshift(r),h.splice(a,n-a+1,l))}}return Ki(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function Khe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,d=[],u={};let h,p,g=-1,y=n,b=0,w=0;const j=[w];for(;y;){for(;e.get(++a)[1]!==y;);s.push(a),y._tokenizer||(h=r.sliceStream(y),y.next||h.push(null),p&&o.defineSkip(y.start),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(w=g+1,j.push(w),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(o.events=[],y?(y._tokenizer=void 0,y.previous=void 0):j.pop(),g=j.length;g--;){const S=l.slice(j[g],j[g+1]),k=s.pop();d.push([k,k+S.length-1]),e.splice(k,2,S)}for(d.reverse(),g=-1;++g<d.length;)u[b+d[g][0]]=b+d[g][1],b+=d[g][1]-d[g][0]-1;return u}const Xhe={resolve:Qhe,tokenize:Jhe},Zhe={partial:!0,tokenize:epe};function Qhe(e){return Vz(e),e}function Jhe(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?s(l):Ge(l)?e.check(Zhe,o,s)(l):(e.consume(l),a)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function epe(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),St(e,s,"linePrefix")}function s(o){if(o===null||Ge(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Gz(e,t,n,r,a,s,o,l,d){const u=d||Number.POSITIVE_INFINITY;let h=0;return p;function p(S){return S===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(S),e.exit(s),g):S===null||S===32||S===41||jy(S)?n(S):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(S))}function g(S){return S===62?(e.enter(s),e.consume(S),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===62?(e.exit("chunkString"),e.exit(l),g(S)):S===null||S===60||Ge(S)?n(S):(e.consume(S),S===92?b:y)}function b(S){return S===60||S===62||S===92?(e.consume(S),y):y(S)}function w(S){return!h&&(S===null||S===41||Wt(S))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(S)):h<u&&S===40?(e.consume(S),h++,w):S===41?(e.consume(S),h--,w):S===null||S===32||S===40||jy(S)?n(S):(e.consume(S),S===92?j:w)}function j(S){return S===40||S===41||S===92?(e.consume(S),w):w(S)}}function Wz(e,t,n,r,a,s){const o=this;let l=0,d;return u;function u(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(s),h}function h(y){return l>999||y===null||y===91||y===93&&!d||y===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(y):y===93?(e.exit(s),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Ge(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Ge(y)||l++>999?(e.exit("chunkString"),h(y)):(e.consume(y),d||(d=!ht(y)),y===92?g:p)}function g(y){return y===91||y===92||y===93?(e.consume(y),l++,p):p(y)}}function Yz(e,t,n,r,a,s){let o;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),o=g===40?41:g,d):n(g)}function d(g){return g===o?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(s),u(g))}function u(g){return g===o?(e.exit(s),d(o)):g===null?n(g):Ge(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),St(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===o||g===null||Ge(g)?(e.exit("chunkString"),u(g)):(e.consume(g),g===92?p:h)}function p(g){return g===o||g===92?(e.consume(g),h):h(g)}}function Bp(e,t){let n;return r;function r(a){return Ge(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ht(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const tpe={name:"definition",tokenize:rpe},npe={partial:!0,tokenize:ipe};function rpe(e,t,n){const r=this;let a;return s;function s(y){return e.enter("definition"),o(y)}function o(y){return Wz.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function l(y){return a=Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return Wt(y)?Bp(e,u)(y):u(y)}function u(y){return Gz(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function h(y){return e.attempt(npe,p,p)(y)}function p(y){return ht(y)?St(e,g,"whitespace")(y):g(y)}function g(y){return y===null||Ge(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function ipe(e,t,n){return r;function r(l){return Wt(l)?Bp(e,a)(l):n(l)}function a(l){return Yz(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return ht(l)?St(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Ge(l)?t(l):n(l)}}const ape={name:"hardBreakEscape",tokenize:spe};function spe(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Ge(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const ope={name:"headingAtx",resolve:lpe,tokenize:cpe};function lpe(e,t){let n=e.length-2,r=3,a,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ki(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function cpe(e,t,n){let r=0;return a;function a(h){return e.enter("atxHeading"),s(h)}function s(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||Wt(h)?(e.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),d(h)):h===null||Ge(h)?(e.exit("atxHeading"),t(h)):ht(h)?St(e,l,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function d(h){return h===35?(e.consume(h),d):(e.exit("atxHeadingSequence"),l(h))}function u(h){return h===null||h===35||Wt(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),u)}}const upe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZP=["pre","script","style","textarea"],dpe={concrete:!0,name:"htmlFlow",resolveTo:ppe,tokenize:mpe},fpe={partial:!0,tokenize:vpe},hpe={partial:!0,tokenize:gpe};function ppe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mpe(e,t,n){const r=this;let a,s,o,l,d;return u;function u(F){return h(F)}function h(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),p}function p(F){return F===33?(e.consume(F),g):F===47?(e.consume(F),s=!0,w):F===63?(e.consume(F),a=3,r.interrupt?t:M):ni(F)?(e.consume(F),o=String.fromCharCode(F),j):n(F)}function g(F){return F===45?(e.consume(F),a=2,y):F===91?(e.consume(F),a=5,l=0,b):ni(F)?(e.consume(F),a=4,r.interrupt?t:M):n(F)}function y(F){return F===45?(e.consume(F),r.interrupt?t:M):n(F)}function b(F){const U="CDATA[";return F===U.charCodeAt(l++)?(e.consume(F),l===U.length?r.interrupt?t:D:b):n(F)}function w(F){return ni(F)?(e.consume(F),o=String.fromCharCode(F),j):n(F)}function j(F){if(F===null||F===47||F===62||Wt(F)){const U=F===47,Z=o.toLowerCase();return!U&&!s&&ZP.includes(Z)?(a=1,r.interrupt?t(F):D(F)):upe.includes(o.toLowerCase())?(a=6,U?(e.consume(F),S):r.interrupt?t(F):D(F)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(F):s?k(F):N(F))}return F===45||Ur(F)?(e.consume(F),o+=String.fromCharCode(F),j):n(F)}function S(F){return F===62?(e.consume(F),r.interrupt?t:D):n(F)}function k(F){return ht(F)?(e.consume(F),k):O(F)}function N(F){return F===47?(e.consume(F),O):F===58||F===95||ni(F)?(e.consume(F),_):ht(F)?(e.consume(F),N):O(F)}function _(F){return F===45||F===46||F===58||F===95||Ur(F)?(e.consume(F),_):L(F)}function L(F){return F===61?(e.consume(F),E):ht(F)?(e.consume(F),L):N(F)}function E(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),d=F,T):ht(F)?(e.consume(F),E):P(F)}function T(F){return F===d?(e.consume(F),d=null,$):F===null||Ge(F)?n(F):(e.consume(F),T)}function P(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Wt(F)?L(F):(e.consume(F),P)}function $(F){return F===47||F===62||ht(F)?N(F):n(F)}function O(F){return F===62?(e.consume(F),q):n(F)}function q(F){return F===null||Ge(F)?D(F):ht(F)?(e.consume(F),q):n(F)}function D(F){return F===45&&a===2?(e.consume(F),B):F===60&&a===1?(e.consume(F),H):F===62&&a===4?(e.consume(F),I):F===63&&a===3?(e.consume(F),M):F===93&&a===5?(e.consume(F),K):Ge(F)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(fpe,X,z)(F)):F===null||Ge(F)?(e.exit("htmlFlowData"),z(F)):(e.consume(F),D)}function z(F){return e.check(hpe,V,X)(F)}function V(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),W}function W(F){return F===null||Ge(F)?z(F):(e.enter("htmlFlowData"),D(F))}function B(F){return F===45?(e.consume(F),M):D(F)}function H(F){return F===47?(e.consume(F),o="",G):D(F)}function G(F){if(F===62){const U=o.toLowerCase();return ZP.includes(U)?(e.consume(F),I):D(F)}return ni(F)&&o.length<8?(e.consume(F),o+=String.fromCharCode(F),G):D(F)}function K(F){return F===93?(e.consume(F),M):D(F)}function M(F){return F===62?(e.consume(F),I):F===45&&a===2?(e.consume(F),M):D(F)}function I(F){return F===null||Ge(F)?(e.exit("htmlFlowData"),X(F)):(e.consume(F),I)}function X(F){return e.exit("htmlFlow"),t(F)}}function gpe(e,t,n){const r=this;return a;function a(o){return Ge(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vpe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ym,t,n)}}const ype={name:"htmlText",tokenize:xpe};function xpe(e,t,n){const r=this;let a,s,o;return l;function l(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),u):M===47?(e.consume(M),L):M===63?(e.consume(M),N):ni(M)?(e.consume(M),P):n(M)}function u(M){return M===45?(e.consume(M),h):M===91?(e.consume(M),s=0,b):ni(M)?(e.consume(M),k):n(M)}function h(M){return M===45?(e.consume(M),y):n(M)}function p(M){return M===null?n(M):M===45?(e.consume(M),g):Ge(M)?(o=p,H(M)):(e.consume(M),p)}function g(M){return M===45?(e.consume(M),y):p(M)}function y(M){return M===62?B(M):M===45?g(M):p(M)}function b(M){const I="CDATA[";return M===I.charCodeAt(s++)?(e.consume(M),s===I.length?w:b):n(M)}function w(M){return M===null?n(M):M===93?(e.consume(M),j):Ge(M)?(o=w,H(M)):(e.consume(M),w)}function j(M){return M===93?(e.consume(M),S):w(M)}function S(M){return M===62?B(M):M===93?(e.consume(M),S):w(M)}function k(M){return M===null||M===62?B(M):Ge(M)?(o=k,H(M)):(e.consume(M),k)}function N(M){return M===null?n(M):M===63?(e.consume(M),_):Ge(M)?(o=N,H(M)):(e.consume(M),N)}function _(M){return M===62?B(M):N(M)}function L(M){return ni(M)?(e.consume(M),E):n(M)}function E(M){return M===45||Ur(M)?(e.consume(M),E):T(M)}function T(M){return Ge(M)?(o=T,H(M)):ht(M)?(e.consume(M),T):B(M)}function P(M){return M===45||Ur(M)?(e.consume(M),P):M===47||M===62||Wt(M)?$(M):n(M)}function $(M){return M===47?(e.consume(M),B):M===58||M===95||ni(M)?(e.consume(M),O):Ge(M)?(o=$,H(M)):ht(M)?(e.consume(M),$):B(M)}function O(M){return M===45||M===46||M===58||M===95||Ur(M)?(e.consume(M),O):q(M)}function q(M){return M===61?(e.consume(M),D):Ge(M)?(o=q,H(M)):ht(M)?(e.consume(M),q):$(M)}function D(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),a=M,z):Ge(M)?(o=D,H(M)):ht(M)?(e.consume(M),D):(e.consume(M),V)}function z(M){return M===a?(e.consume(M),a=void 0,W):M===null?n(M):Ge(M)?(o=z,H(M)):(e.consume(M),z)}function V(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||Wt(M)?$(M):(e.consume(M),V)}function W(M){return M===47||M===62||Wt(M)?$(M):n(M)}function B(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function H(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),G}function G(M){return ht(M)?St(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):K(M)}function K(M){return e.enter("htmlTextData"),o(M)}}const P5={name:"labelEnd",resolveAll:Spe,resolveTo:Cpe,tokenize:kpe},bpe={tokenize:Npe},wpe={tokenize:Ape},jpe={tokenize:Epe};function Spe(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Ki(e,0,e.length,n),e}function Cpe(e,t){let n=e.length,r=0,a,s,o,l;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",d,t],["enter",u,t]],l=va(l,e.slice(s+1,s+r+3)),l=va(l,[["enter",h,t]]),l=va(l,ab(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),l=va(l,[["exit",h,t],e[o-2],e[o-1],["exit",u,t]]),l=va(l,e.slice(o+1)),l=va(l,[["exit",d,t]]),Ki(e,s,e.length,l),e}function kpe(e,t,n){const r=this;let a=r.events.length,s,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return l;function l(g){return s?s._inactive?p(g):(o=r.parser.defined.includes(Ha(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),d):n(g)}function d(g){return g===40?e.attempt(bpe,h,o?h:p)(g):g===91?e.attempt(wpe,h,o?u:p)(g):o?h(g):p(g)}function u(g){return e.attempt(jpe,h,p)(g)}function h(g){return t(g)}function p(g){return s._balanced=!0,n(g)}}function Npe(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return Wt(p)?Bp(e,s)(p):s(p)}function s(p){return p===41?h(p):Gz(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return Wt(p)?Bp(e,d)(p):h(p)}function l(p){return n(p)}function d(p){return p===34||p===39||p===40?Yz(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):h(p)}function u(p){return Wt(p)?Bp(e,h)(p):h(p)}function h(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Ape(e,t,n){const r=this;return a;function a(l){return Wz.call(r,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Epe(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const _pe={name:"labelStartImage",resolveAll:P5.resolveAll,tokenize:Tpe};function Tpe(e,t,n){const r=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Lpe={name:"labelStartLink",resolveAll:P5.resolveAll,tokenize:Ope};function Ope(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const FS={name:"lineEnding",tokenize:Mpe};function Mpe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const V0={name:"thematicBreak",tokenize:Dpe};function Dpe(e,t,n){let r=0,a;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,l(u)}function l(u){return u===a?(e.enter("thematicBreakSequence"),d(u)):r>=3&&(u===null||Ge(u))?(e.exit("thematicBreak"),t(u)):n(u)}function d(u){return u===a?(e.consume(u),r++,d):(e.exit("thematicBreakSequence"),ht(u)?St(e,l,"whitespace")(u):l(u))}}const vi={continuation:{tokenize:$pe},exit:qpe,name:"list",tokenize:Ipe},Ppe={partial:!0,tokenize:Fpe},Rpe={partial:!0,tokenize:Bpe};function Ipe(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:tk(y)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(V0,n,u)(y):u(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return tk(y)&&++o<10?(e.consume(y),d):(!r.interrupt||o<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),u(y)):n(y)}function u(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Ym,r.interrupt?n:h,e.attempt(Ppe,g,p))}function h(y){return r.containerState.initialBlankLine=!0,s++,g(y)}function p(y){return ht(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),g):n(y)}function g(y){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function $pe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ym,a,s);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(l)}function s(l){return r.containerState.furtherBlankLines||!ht(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Rpe,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(vi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Bpe(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function qpe(e){e.exit(this.containerState.type)}function Fpe(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=r.events[r.events.length-1];return!ht(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const QP={name:"setextUnderline",resolveTo:zpe,tokenize:Hpe};function zpe(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Hpe(e,t,n){const r=this;let a;return s;function s(u){let h=r.events.length,p;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){p=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),ht(u)?St(e,d,"lineSuffix")(u):d(u))}function d(u){return u===null||Ge(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Upe={tokenize:Vpe};function Vpe(e){const t=this,n=e.attempt(Ym,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Xhe,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Gpe={resolveAll:Xz()},Wpe=Kz("string"),Ype=Kz("text");function Kz(e){return{resolveAll:Xz(e==="text"?Kpe:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,o,l);return o;function o(h){return u(h)?s(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),d}function d(h){return u(h)?(n.exit("data"),s(h)):(n.consume(h),d)}function u(h){if(h===null)return!0;const p=a[h];let g=-1;if(p)for(;++g<p.length;){const y=p[g];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function Xz(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function Kpe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let s=a.length,o=-1,l=0,d;for(;s--;){const u=a[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)d=!0,l++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||d||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Xpe={42:vi,43:vi,45:vi,48:vi,49:vi,50:vi,51:vi,52:vi,53:vi,54:vi,55:vi,56:vi,57:vi,62:zz},Zpe={91:tpe},Qpe={[-2]:qS,[-1]:qS,32:qS},Jpe={35:ope,42:V0,45:[QP,V0],60:dpe,61:QP,95:V0,96:XP,126:XP},eme={38:Uz,92:Hz},tme={[-5]:FS,[-4]:FS,[-3]:FS,33:_pe,38:Uz,42:nk,60:[Lhe,ype],91:Lpe,92:[ape,Hz],93:P5,95:nk,96:Uhe},nme={null:[nk,Gpe]},rme={null:[42,95]},ime={null:[]},ame=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rme,contentInitial:Zpe,disable:ime,document:Xpe,flow:Jpe,flowInitial:Qpe,insideSpan:nme,string:eme,text:tme},Symbol.toStringTag,{value:"Module"}));function sme(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let o=[],l=[];const d={attempt:T(L),check:T(E),consume:k,enter:N,exit:_,interrupt:T(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:p};let h=t.tokenize.call(u,d);return t.resolveAll&&s.push(t),u;function p(q){return o=va(o,q),j(),o[o.length-1]!==null?[]:(P(t,0),u.events=ab(s,u.events,u),u.events)}function g(q,D){return lme(y(q),D)}function y(q){return ome(o,q)}function b(){const{_bufferIndex:q,_index:D,line:z,column:V,offset:W}=r;return{_bufferIndex:q,_index:D,line:z,column:V,offset:W}}function w(q){a[q.line]=q.column,O()}function j(){let q;for(;r._index<o.length;){const D=o[r._index];if(typeof D=="string")for(q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===q&&r._bufferIndex<D.length;)S(D.charCodeAt(r._bufferIndex));else S(D)}}function S(q){h=h(q)}function k(q){Ge(q)?(r.line++,r.column=1,r.offset+=q===-3?2:1,O()):q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=q}function N(q,D){const z=D||{};return z.type=q,z.start=b(),u.events.push(["enter",z,u]),l.push(z),z}function _(q){const D=l.pop();return D.end=b(),u.events.push(["exit",D,u]),D}function L(q,D){P(q,D.from)}function E(q,D){D.restore()}function T(q,D){return z;function z(V,W,B){let H,G,K,M;return Array.isArray(V)?X(V):"tokenize"in V?X([V]):I(V);function I(ee){return ae;function ae(ye){const J=ye!==null&&ee[ye],re=ye!==null&&ee.null,ge=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(re)?re:re?[re]:[]];return X(ge)(ye)}}function X(ee){return H=ee,G=0,ee.length===0?B:F(ee[G])}function F(ee){return ae;function ae(ye){return M=$(),K=ee,ee.partial||(u.currentConstruct=ee),ee.name&&u.parser.constructs.disable.null.includes(ee.name)?Z():ee.tokenize.call(D?Object.assign(Object.create(u),D):u,d,U,Z)(ye)}}function U(ee){return q(K,M),W}function Z(ee){return M.restore(),++G<H.length?F(H[G]):B}}}function P(q,D){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&Ki(u.events,D,u.events.length-D,q.resolve(u.events.slice(D),u)),q.resolveTo&&(u.events=q.resolveTo(u.events,u))}function $(){const q=b(),D=u.previous,z=u.currentConstruct,V=u.events.length,W=Array.from(l);return{from:V,restore:B};function B(){r=q,u.previous=D,u.currentConstruct=z,u.events.length=V,l=W,O()}}function O(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ome(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,s)];else{if(o=e.slice(n,a),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(e[a].slice(0,s))}return o}function lme(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=` 255`;break}case-3:{o=`\r 256`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,r.push(o)}return r.join("")}function cme(e){const r={constructs:qz([ame,...(e||{}).extensions||[]]),content:a(Che),defined:[],document:a(Nhe),flow:a(Upe),lazy:{},string:a(Wpe),text:a(Ype)};return r;function a(s){return o;function o(l){return sme(r,s,l)}}}function ume(e){for(;!Vz(e););return e}const JP=/[\0\t\n\r]/g;function dme(){let e=1,t="",n=!0,r;return a;function a(s,o,l){const d=[];let u,h,p,g,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),p=0,t="",n&&(s.charCodeAt(0)===65279&&p++,n=void 0);p<s.length;){if(JP.lastIndex=p,u=JP.exec(s),g=u&&u.index!==void 0?u.index:s.length,y=s.charCodeAt(g),!u){t=s.slice(p);break}if(y===10&&p===g&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),p<g&&(d.push(s.slice(p,g)),e+=g-p),y){case 0:{d.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,d.push(-2);e++<h;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}p=g+1}return l&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const fme=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hme(e){return e.replace(fme,pme)}function pme(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return Fz(n.slice(s?2:1),s?16:10)}return D5(n)||e}const Zz={}.hasOwnProperty;function mme(e,t,n){return typeof t!="string"&&(n=t,t=void 0),gme(n)(ume(cme(n).document().write(dme()(e,t,!0))))}function gme(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ct),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(Ne),blockQuote:s(re),characterEscape:$,characterReference:$,codeFenced:s(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(ge,o),codeText:s(Q,o),codeTextData:$,data:$,codeFlowValue:$,definition:s(Se),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(je),hardBreakEscape:s(He),hardBreakTrailing:s(He),htmlFlow:s(ct,o),htmlFlowData:$,htmlText:s(ct,o),htmlTextData:$,image:s(xt),label:o,link:s(Ct),listItem:s(qe),listItemValue:g,listOrdered:s(Be,p),listUnordered:s(Be),paragraph:s(Tt),reference:F,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Ne),strong:s(Kn),thematicBreak:s(Me)},exit:{atxHeading:d(),atxHeadingSequence:L,autolink:d(),autolinkEmail:J,autolinkProtocol:ye,blockQuote:d(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:ee,characterReference:ae,codeFenced:d(j),codeFencedFence:w,codeFencedFenceInfo:y,codeFencedFenceMeta:b,codeFlowValue:O,codeIndented:d(S),codeText:d(W),codeTextData:O,data:O,definition:d(),definitionDestinationString:_,definitionLabelString:k,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(D),hardBreakTrailing:d(D),htmlFlow:d(z),htmlFlowData:O,htmlText:d(V),htmlTextData:O,image:d(H),label:K,labelText:G,lineEnding:q,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:M,resourceTitleString:I,resource:X,setextHeading:d(P),setextHeadingLineSequence:T,setextHeadingText:E,strong:d(),thematicBreak:d()}};Qz(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(he){let Ee={type:"root",children:[]};const ze={stack:[Ee],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:h,data:n},Qe=[];let lt=-1;for(;++lt<he.length;)if(he[lt][1].type==="listOrdered"||he[lt][1].type==="listUnordered")if(he[lt][0]==="enter")Qe.push(lt);else{const Ut=Qe.pop();lt=a(he,Ut,lt)}for(lt=-1;++lt<he.length;){const Ut=t[he[lt][0]];Zz.call(Ut,he[lt][1].type)&&Ut[he[lt][1].type].call(Object.assign({sliceSerialize:he[lt][2].sliceSerialize},ze),he[lt][1])}if(ze.tokenStack.length>0){const Ut=ze.tokenStack[ze.tokenStack.length-1];(Ut[1]||e8).call(ze,void 0,Ut[0])}for(Ee.position={start:fl(he.length>0?he[0][1].start:{line:1,column:1,offset:0}),end:fl(he.length>0?he[he.length-2][1].end:{line:1,column:1,offset:0})},lt=-1;++lt<t.transforms.length;)Ee=t.transforms[lt](Ee)||Ee;return Ee}function a(he,Ee,ze){let Qe=Ee-1,lt=-1,Ut=!1,$n,En,kt,jt;for(;++Qe<=ze;){const at=he[Qe];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?lt++:lt--,jt=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&($n&&!jt&&!lt&&!kt&&(kt=Qe),jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jt=void 0}if(!lt&&at[0]==="enter"&&at[1].type==="listItemPrefix"||lt===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if($n){let ur=Qe;for(En=void 0;ur--;){const fn=he[ur];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;En&&(he[En][1].type="lineEndingBlank",Ut=!0),fn[1].type="lineEnding",En=ur}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}kt&&(!En||kt<En)&&($n._spread=!0),$n.end=Object.assign({},En?he[En][1].start:at[1].end),he.splice(En||Qe,0,["exit",$n,at[2]]),Qe++,ze++}if(at[1].type==="listItemPrefix"){const ur={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};$n=ur,he.splice(Qe,0,["enter",ur,at[2]]),Qe++,ze++,kt=void 0,jt=!0}}}return he[Ee][1]._spread=Ut,ze}function s(he,Ee){return ze;function ze(Qe){l.call(this,he(Qe),Qe),Ee&&Ee.call(this,Qe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(he,Ee,ze){this.stack[this.stack.length-1].children.push(he),this.stack.push(he),this.tokenStack.push([Ee,ze||void 0]),he.position={start:fl(Ee.start),end:void 0}}function d(he){return Ee;function Ee(ze){he&&he.call(this,ze),u.call(this,ze)}}function u(he,Ee){const ze=this.stack.pop(),Qe=this.tokenStack.pop();if(Qe)Qe[0].type!==he.type&&(Ee?Ee.call(this,he,Qe[0]):(Qe[1]||e8).call(this,he,Qe[0]));else throw new Error("Cannot close `"+he.type+"` ("+$p({start:he.start,end:he.end})+"): itâs not open");ze.position.end=fl(he.end)}function h(){return M5(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(he){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(he),10),this.data.expectingFirstListItemValue=void 0}}function y(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=he}function b(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=he}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=he.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=he.replace(/(\r?\n|\r)$/g,"")}function k(he){const Ee=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Ee,ze.identifier=Ha(this.sliceSerialize(he)).toLowerCase()}function N(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=he}function _(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=he}function L(he){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const ze=this.sliceSerialize(he).length;Ee.depth=ze}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function T(he){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(he).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function $(he){const ze=this.stack[this.stack.length-1].children;let Qe=ze[ze.length-1];(!Qe||Qe.type!=="text")&&(Qe=Xt(),Qe.position={start:fl(he.start),end:void 0},ze.push(Qe)),this.stack.push(Qe)}function O(he){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(he),Ee.position.end=fl(he.end)}function q(he){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ze=Ee.children[Ee.children.length-1];ze.position.end=fl(he.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ee.type)&&($.call(this,he),O.call(this,he))}function D(){this.data.atHardBreak=!0}function z(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=he}function V(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=he}function W(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=he}function B(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=Ee,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function H(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=Ee,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function G(he){const Ee=this.sliceSerialize(he),ze=this.stack[this.stack.length-2];ze.label=hme(Ee),ze.identifier=Ha(Ee).toLowerCase()}function K(){const he=this.stack[this.stack.length-1],Ee=this.resume(),ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,ze.type==="link"){const Qe=he.children;ze.children=Qe}else ze.alt=Ee}function M(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=he}function I(){const he=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=he}function X(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function U(he){const Ee=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Ee,ze.identifier=Ha(this.sliceSerialize(he)).toLowerCase(),this.data.referenceType="full"}function Z(he){this.data.characterReferenceType=he.type}function ee(he){const Ee=this.sliceSerialize(he),ze=this.data.characterReferenceType;let Qe;ze?(Qe=Fz(Ee,ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Qe=D5(Ee);const lt=this.stack[this.stack.length-1];lt.value+=Qe}function ae(he){const Ee=this.stack.pop();Ee.position.end=fl(he.end)}function ye(he){O.call(this,he);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(he)}function J(he){O.call(this,he);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(he)}function re(){return{type:"blockquote",children:[]}}function ge(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function Se(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function je(){return{type:"emphasis",children:[]}}function Ne(){return{type:"heading",depth:0,children:[]}}function He(){return{type:"break"}}function ct(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function Ct(){return{type:"link",title:null,url:"",children:[]}}function Be(he){return{type:"list",ordered:he.type==="listOrdered",start:null,spread:he._spread,children:[]}}function qe(he){return{type:"listItem",spread:he._spread,checked:null,children:[]}}function Tt(){return{type:"paragraph",children:[]}}function Kn(){return{type:"strong",children:[]}}function Xt(){return{type:"text",value:""}}function Me(){return{type:"thematicBreak"}}}function fl(e){return{line:e.line,column:e.column,offset:e.offset}}function Qz(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Qz(e,r):vme(e,r)}}function vme(e,t){let n;for(n in t)if(Zz.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function e8(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$p({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$p({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$p({start:t.start,end:t.end})+") is still open")}function yme(e){const t=this;t.parser=n;function n(r){return mme(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xme(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bme(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 257`}]}function wme(e,t){const n=t.value?t.value+` 258`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function jme(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sme(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cme(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Cf(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,l+=1,e.footnoteCounts.set(r,l);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const u={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,u),e.applyData(t,u)}function kme(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nme(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Jz(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Ame(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jz(e,t);const a={src:Cf(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function Eme(e,t){const n={src:Cf(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function _me(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Tme(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jz(e,t);const a={href:Cf(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Lme(e,t){const n={href:Cf(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ome(e,t,n){const r=e.all(t),a=n?Mme(n):eH(t),s={},o=[];if(typeof t.checked=="boolean"){const h=r[0];let p;h&&h.type==="element"&&h.tagName==="p"?p=h:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(a||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:` 259`}),h.type==="element"&&h.tagName==="p"&&!a?o.push(...h.children):o.push(h)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:` 260`});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function Mme(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=eH(n[r])}return t}function eH(e){const t=e.spread;return t??e.children.length>1}function Dme(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Pme(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rme(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ime(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $me(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=_5(t.children[1]),d=Mz(t.children[t.children.length-1]);l&&d&&(o.position={start:l,end:d}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function Bme(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let d=-1;const u=[];for(;++d<l;){const p=t.children[d],g={},y=o?o[d]:void 0;y&&(g.align=y);let b={type:"element",tagName:s,properties:g,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),u.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,h),e.applyData(t,h)}function qme(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const t8=9,n8=32;function Fme(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(r8(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(r8(t.slice(a),a>0,!1)),s.join("")}function r8(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===t8||s===n8;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===t8||s===n8;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function zme(e,t){const n={type:"text",value:Fme(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hme(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ume={blockquote:xme,break:bme,code:wme,delete:jme,emphasis:Sme,footnoteReference:Cme,heading:kme,html:Nme,imageReference:Ame,image:Eme,inlineCode:_me,linkReference:Tme,link:Lme,listItem:Ome,list:Dme,paragraph:Pme,root:Rme,strong:Ime,table:$me,tableCell:qme,tableRow:Bme,text:zme,thematicBreak:Hme,toml:Xv,yaml:Xv,definition:Xv,footnoteDefinition:Xv};function Xv(){}const tH=-1,sb=0,qp=1,Sy=2,R5=3,I5=4,$5=5,B5=6,nH=7,rH=8,i8=typeof self=="object"?self:globalThis,Vme=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,o]=t[a];switch(s){case sb:case tH:return n(o,a);case qp:{const l=n([],a);for(const d of o)l.push(r(d));return l}case Sy:{const l=n({},a);for(const[d,u]of o)l[r(d)]=r(u);return l}case R5:return n(new Date(o),a);case I5:{const{source:l,flags:d}=o;return n(new RegExp(l,d),a)}case $5:{const l=n(new Map,a);for(const[d,u]of o)l.set(r(d),r(u));return l}case B5:{const l=n(new Set,a);for(const d of o)l.add(r(d));return l}case nH:{const{name:l,message:d}=o;return n(new i8[l](d),a)}case rH:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new i8[s](o),a)};return r},a8=e=>Vme(new Map,e)(0),wd="",{toString:Gme}={},{keys:Wme}=Object,sp=e=>{const t=typeof e;if(t!=="object"||!e)return[sb,t];const n=Gme.call(e).slice(8,-1);switch(n){case"Array":return[qp,wd];case"Object":return[Sy,wd];case"Date":return[R5,wd];case"RegExp":return[I5,wd];case"Map":return[$5,wd];case"Set":return[B5,wd];case"DataView":return[qp,n]}return n.includes("Array")?[qp,n]:n.includes("Error")?[nH,n]:[Sy,n]},Zv=([e,t])=>e===sb&&(t==="function"||t==="symbol"),Yme=(e,t,n,r)=>{const a=(o,l)=>{const d=r.push(o)-1;return n.set(l,d),d},s=o=>{if(n.has(o))return n.get(o);let[l,d]=sp(o);switch(l){case sb:{let h=o;switch(d){case"bigint":l=rH,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return a([tH],o)}return a([l,h],o)}case qp:{if(d){let g=o;return d==="DataView"?g=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(g=new Uint8Array(o)),a([d,[...g]],o)}const h=[],p=a([l,h],o);for(const g of o)h.push(s(g));return p}case Sy:{if(d)switch(d){case"BigInt":return a([d,o.toString()],o);case"Boolean":case"Number":case"String":return a([d,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const h=[],p=a([l,h],o);for(const g of Wme(o))(e||!Zv(sp(o[g])))&&h.push([s(g),s(o[g])]);return p}case R5:return a([l,o.toISOString()],o);case I5:{const{source:h,flags:p}=o;return a([l,{source:h,flags:p}],o)}case $5:{const h=[],p=a([l,h],o);for(const[g,y]of o)(e||!(Zv(sp(g))||Zv(sp(y))))&&h.push([s(g),s(y)]);return p}case B5:{const h=[],p=a([l,h],o);for(const g of o)(e||!Zv(sp(g)))&&h.push(s(g));return p}}const{message:u}=o;return a([l,{name:d,message:u}],o)};return s},s8=(e,{json:t,lossy:n}={})=>{const r=[];return Yme(!(t||n),!!t,new Map,r)(e),r},Cy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?a8(s8(e,t)):structuredClone(e):(e,t)=>a8(s8(e,t));function Kme(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Xme(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Zme(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Kme,r=e.options.footnoteBackLabel||Xme,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let d=-1;for(;++d<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[d]);if(!u)continue;const h=e.all(u),p=String(u.identifier).toUpperCase(),g=Cf(p.toLowerCase());let y=0;const b=[],w=e.footnoteCounts.get(p);for(;w!==void 0&&++y<=w;){b.length>0&&b.push({type:"text",value:" "});let k=typeof n=="string"?n:n(d,y);typeof k=="string"&&(k={type:"text",value:k}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const j=h[h.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const k=j.children[j.children.length-1];k&&k.type==="text"?k.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...b)}else h.push(...b);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(h,!0)};e.patch(u,S),l.push(S)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Cy(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` 261`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 262`}]}}const ob=(function(e){if(e==null)return tge;if(typeof e=="function")return lb(e);if(typeof e=="object")return Array.isArray(e)?Qme(e):Jme(e);if(typeof e=="string")return ege(e);throw new Error("Expected function, string, or object as test")});function Qme(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ob(e[n]);return lb(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Jme(e){const t=e;return lb(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function ege(e){return lb(t);function t(n){return n&&n.type===e}}function lb(e){return t;function t(n,r,a){return!!(nge(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function tge(){return!0}function nge(e){return e!==null&&typeof e=="object"&&"type"in e}const iH=[],rge=!0,rk=!1,ige="skip";function aH(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=ob(a),o=r?-1:1;l(e,void 0,[])();function l(d,u,h){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const y=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=iH,b,w,j;if((!t||s(d,u,h[h.length-1]||void 0))&&(y=age(n(d,h)),y[0]===rk))return y;if("children"in d&&d.children){const S=d;if(S.children&&y[0]!==ige)for(w=(r?S.children.length:-1)+o,j=h.concat(S);w>-1&&w<S.children.length;){const k=S.children[w];if(b=l(k,w,j)(),b[0]===rk)return b;w=typeof b[1]=="number"?b[1]:w+o}}return y}}}function age(e){return Array.isArray(e)?e:typeof e=="number"?[rge,e]:e==null?iH:[e]}function q5(e,t,n,r){let a,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,a=n):(s=t,o=n,a=r),aH(e,s,l,a);function l(d,u){const h=u[u.length-1],p=h?h.children.indexOf(d):void 0;return o(d,p,h)}}const ik={}.hasOwnProperty,sge={};function oge(e,t){const n=t||sge,r=new Map,a=new Map,s=new Map,o={...Ume,...n.handlers},l={all:u,applyData:cge,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:d,options:n,patch:lge,wrap:dge};return q5(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const p=h.type==="definition"?r:a,g=String(h.identifier).toUpperCase();p.has(g)||p.set(g,h)}}),l;function d(h,p){const g=h.type,y=l.handlers[g];if(ik.call(l.handlers,g)&&y)return y(l,h,p);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in h){const{children:w,...j}=h,S=Cy(j);return S.children=l.all(h),S}return Cy(h)}return(l.options.unknownHandler||uge)(l,h,p)}function u(h){const p=[];if("children"in h){const g=h.children;let y=-1;for(;++y<g.length;){const b=l.one(g[y],h);if(b){if(y&&g[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=o8(b.value)),!Array.isArray(b)&&b.type==="element")){const w=b.children[0];w&&w.type==="text"&&(w.value=o8(w.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function lge(e,t){e.position&&(t.position=Xfe(e))}function cge(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,Cy(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function uge(e,t){const n=t.data||{},r="value"in t&&!(ik.call(n,"hProperties")||ik.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dge(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 263`});++r<e.length;)r&&n.push({type:"text",value:` 264`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 265`}),n}function o8(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function l8(e,t){const n=oge(e,t),r=n.one(e,void 0),a=Zme(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:` 266`},a),s}function fge(e,t){return e&&"run"in e?async function(n,r){const a=l8(n,{file:r,...t});await e.run(a,r)}:function(n,r){return l8(n,{file:r,...e||t})}}function c8(e){if(e)throw e}var zS,u8;function hge(){if(u8)return zS;u8=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var h=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!h&&!p)return!1;var g;for(g in u);return typeof g>"u"||e.call(u,g)},o=function(u,h){n&&h.name==="__proto__"?n(u,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):u[h.name]=h.newValue},l=function(u,h){if(h==="__proto__")if(e.call(u,h)){if(r)return r(u,h).value}else return;return u[h]};return zS=function d(){var u,h,p,g,y,b,w=arguments[0],j=1,S=arguments.length,k=!1;for(typeof w=="boolean"&&(k=w,w=arguments[1]||{},j=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});j<S;++j)if(u=arguments[j],u!=null)for(h in u)p=l(w,h),g=l(u,h),w!==g&&(k&&g&&(s(g)||(y=a(g)))?(y?(y=!1,b=p&&a(p)?p:[]):b=p&&s(p)?p:{},o(w,{name:h,newValue:d(k,b,g)})):typeof g<"u"&&o(w,{name:h,newValue:g}));return w},zS}var pge=hge();const HS=Aa(pge);function ak(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mge(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...a);function l(d,...u){const h=e[++s];let p=-1;if(d){o(d);return}for(;++p<a.length;)(u[p]===null||u[p]===void 0)&&(u[p]=a[p]);a=u,h?gge(h,l)(...u):o(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function gge(e,t){let n;return r;function r(...o){const l=e.length>o.length;let d;l&&o.push(a);try{d=e.apply(this,o)}catch(u){const h=u;if(l&&n)throw h;return a(h)}l||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(o,...l){n||(n=!0,t(o,...l))}function s(o){a(null,o)}}const hs={basename:vge,dirname:yge,extname:xge,join:bge,sep:"/"};function vge(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Km(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else o<0&&(s=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function yge(e){if(Km(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xge(e){Km(e);let t=e.length,n=-1,r=0,a=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function bge(...e){let t=-1,n;for(;++t<e.length;)Km(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wge(n)}function wge(e){Km(e);const t=e.codePointAt(0)===47;let n=jge(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jge(e,t){let n="",r=0,a=-1,s=0,o=-1,l,d;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(a===o-1||s===1))if(a!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=o,s=0;continue}}else if(n.length>0){n="",r=0,a=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function Km(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sge={cwd:Cge};function Cge(){return"/"}function sk(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kge(e){if(typeof e=="string")e=new URL(e);else if(!sk(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Nge(e)}function Nge(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const US=["history","path","basename","stem","extname","dirname"];class sH{constructor(t){let n;t?sk(t)?n={path:t}:typeof t=="string"||Age(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Sge.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<US.length;){const s=US[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)US.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?hs.basename(this.path):void 0}set basename(t){GS(t,"basename"),VS(t,"basename"),this.path=hs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hs.dirname(this.path):void 0}set dirname(t){d8(this.basename,"dirname"),this.path=hs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hs.extname(this.path):void 0}set extname(t){if(VS(t,"extname"),d8(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sk(t)&&(t=kge(t)),GS(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hs.basename(this.path,this.extname):void 0}set stem(t){GS(t,"stem"),VS(t,"stem"),this.path=hs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Yr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function VS(e,t){if(e&&e.includes(hs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs.sep+"`")}function GS(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d8(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Age(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ege=(function(e){const r=this.constructor.prototype,a=r[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),_ge={}.hasOwnProperty;class F5 extends Ege{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=mge()}copy(){const t=new F5;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(HS(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(KS("data",this.frozen),this.namespace[t]=n,this):_ge.call(this.namespace,t)&&this.namespace[t]||void 0:t?(KS("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Qv(t),r=this.parser||this.Parser;return WS("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),WS("process",this.parser||this.Parser),YS("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,o){const l=Qv(t),d=r.parse(l);r.run(d,l,function(h,p,g){if(h||!p||!g)return u(h);const y=p,b=r.stringify(y,g);Oge(b)?g.value=b:g.result=b,u(h,g)});function u(h,p){h||!p?o(h):s?s(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),WS("processSync",this.parser||this.Parser),YS("processSync",this.compiler||this.Compiler),this.process(t,a),h8("processSync","process",n),r;function a(s,o){n=!0,c8(s),r=o}}run(t,n,r){f8(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const d=Qv(n);a.run(t,d,u);function u(h,p,g){const y=p||t;h?l(h):o?o(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),h8("runSync","run",r),a;function s(o,l){c8(o),a=l,r=!0}}stringify(t,n){this.freeze();const r=Qv(n),a=this.compiler||this.Compiler;return YS("stringify",a),f8(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(KS("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")d(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[h,...p]=u;d(h,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(a.settings=HS(!0,a.settings,u.settings))}function l(u){let h=-1;if(u!=null)if(Array.isArray(u))for(;++h<u.length;){const p=u[h];s(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function d(u,h){let p=-1,g=-1;for(;++p<r.length;)if(r[p][0]===u){g=p;break}if(g===-1)r.push([u,...h]);else if(h.length>0){let[y,...b]=h;const w=r[g][1];ak(w)&&ak(y)&&(y=HS(!0,w,y)),r[g]=[u,y,...b]}}}}const Tge=new F5().freeze();function WS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function YS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function KS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function f8(e){if(!ak(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function h8(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qv(e){return Lge(e)?e:new sH(e)}function Lge(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Oge(e){return typeof e=="string"||Mge(e)}function Mge(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Dge="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",p8=[],m8={allowDangerousHtml:!0},Pge=/^(https?|ircs?|mailto|xmpp)$/i,Rge=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ige(e){const t=$ge(e),n=Bge(e);return qge(t.runSync(t.parse(n),n),e)}function $ge(e){const t=e.rehypePlugins||p8,n=e.remarkPlugins||p8,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...m8}:m8;return Tge().use(yme).use(n).use(fge,r).use(t)}function Bge(e){const t=e.children||"",n=new sH;return typeof t=="string"&&(n.value=t),n}function qge(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,d=t.urlTransform||Fge;for(const h of Rge)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Dge+h.id,void 0);return q5(e,u),the(e,{Fragment:i.Fragment,components:a,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function u(h,p,g){if(h.type==="raw"&&g&&typeof p=="number")return o?g.children.splice(p,1):g.children[p]={type:"text",value:h.value},p;if(h.type==="element"){let y;for(y in BS)if(Object.hasOwn(BS,y)&&Object.hasOwn(h.properties,y)){const b=h.properties[y],w=BS[y];(w===null||w.includes(h.tagName))&&(h.properties[y]=d(String(b||""),y,h))}}if(h.type==="element"){let y=n?!n.includes(h.tagName):s?s.includes(h.tagName):!1;if(!y&&r&&typeof p=="number"&&(y=!r(h,p,g)),y&&g&&typeof p=="number")return l&&h.children?g.children.splice(p,1,...h.children):g.children.splice(p,1),p}}}function Fge(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Pge.test(e.slice(0,t))?e:""}function g8(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function zge(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Hge(e,t,n){const a=ob((n||{}).ignore||[]),s=Uge(t);let o=-1;for(;++o<s.length;)aH(e,"text",l);function l(u,h){let p=-1,g;for(;++p<h.length;){const y=h[p],b=g?g.children:void 0;if(a(y,b?b.indexOf(y):void 0,g))return;g=y}if(g)return d(u,h)}function d(u,h){const p=h[h.length-1],g=s[o][0],y=s[o][1];let b=0;const j=p.children.indexOf(u);let S=!1,k=[];g.lastIndex=0;let N=g.exec(u.value);for(;N;){const _=N.index,L={index:N.index,input:N.input,stack:[...h,u]};let E=y(...N,L);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?g.lastIndex=_+1:(b!==_&&k.push({type:"text",value:u.value.slice(b,_)}),Array.isArray(E)?k.push(...E):E&&k.push(E),b=_+N[0].length,S=!0),!g.global)break;N=g.exec(u.value)}return S?(b<u.value.length&&k.push({type:"text",value:u.value.slice(b)}),p.children.splice(j,1,...k)):k=[u],j+k.length}}function Uge(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Vge(a[0]),Gge(a[1])])}return t}function Vge(e){return typeof e=="string"?new RegExp(zge(e),"g"):e}function Gge(e){return typeof e=="function"?e:function(){return e}}const XS="phrasing",ZS=["autolink","link","image","label"];function Wge(){return{transforms:[eve],enter:{literalAutolink:Kge,literalAutolinkEmail:QS,literalAutolinkHttp:QS,literalAutolinkWww:QS},exit:{literalAutolink:Jge,literalAutolinkEmail:Qge,literalAutolinkHttp:Xge,literalAutolinkWww:Zge}}}function Yge(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:XS,notInConstruct:ZS},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:XS,notInConstruct:ZS},{character:":",before:"[ps]",after:"\\/",inConstruct:XS,notInConstruct:ZS}]}}function Kge(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function QS(e){this.config.enter.autolinkProtocol.call(this,e)}function Xge(e){this.config.exit.autolinkProtocol.call(this,e)}function Zge(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Qge(e){this.config.exit.autolinkEmail.call(this,e)}function Jge(e){this.exit(e)}function eve(e){Hge(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,tve],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
266)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),nve]],{ignore:["link","linkReference"]})}function tve(e,t,n,r,a){let s="";if(!oH(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!rve(n)))return!1;const o=ive(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function nve(e,t,n,r){return!oH(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function rve(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ive(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=g8(e,"(");let s=g8(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function oH(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ru(n)||ib(n))&&(!t||n!==47)}lH.peek=hve;function ave(){this.buffer()}function sve(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ove(){this.buffer()}function lve(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function cve(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ha(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uve(e){this.exit(e)}function dve(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ha(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fve(e){this.exit(e)}function hve(){return"["}function lH(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=a.move("]"),s}function pve(){return{enter:{gfmFootnoteCallString:ave,gfmFootnoteCall:sve,gfmFootnoteDefinitionLabelString:ove,gfmFootnoteDefinition:lve},exit:{gfmFootnoteCallString:cve,gfmFootnoteCall:uve,gfmFootnoteDefinitionLabelString:dve,gfmFootnoteDefinition:fve}}}function mve(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:lH},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,o){const l=s.createTracker(o);let d=l.move("[^");const u=s.enter("footnoteDefinition"),h=s.enter("label");return d+=l.move(s.safe(s.associationId(r),{before:d,after:"]"})),h(),d+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),d+=l.move((t?` 267`:" ")+s.indentLines(s.containerFlow(r,l.current()),t?cH:gve))),u(),d}}function gve(e,t,n){return t===0?e:cH(e,t,n)}function cH(e,t,n){return(n?"":" ")+e}const vve=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];uH.peek=jve;function yve(){return{canContainEols:["delete"],enter:{strikethrough:bve},exit:{strikethrough:wve}}}function xve(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vve}],handlers:{delete:uH}}}function bve(e){this.enter({type:"delete",children:[]},e)}function wve(e){this.exit(e)}function uH(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function jve(){return"~"}function Sve(e){return e.length}function Cve(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Sve,s=[],o=[],l=[],d=[];let u=0,h=-1;for(;++h<e.length;){const w=[],j=[];let S=-1;for(e[h].length>u&&(u=e[h].length);++S<e[h].length;){const k=kve(e[h][S]);if(n.alignDelimiters!==!1){const N=a(k);j[S]=N,(d[S]===void 0||N>d[S])&&(d[S]=N)}w.push(k)}o[h]=w,l[h]=j}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<u;)s[p]=v8(r[p]);else{const w=v8(r);for(;++p<u;)s[p]=w}p=-1;const g=[],y=[];for(;++p<u;){const w=s[p];let j="",S="";w===99?(j=":",S=":"):w===108?j=":":w===114&&(S=":");let k=n.alignDelimiters===!1?1:Math.max(1,d[p]-j.length-S.length);const N=j+"-".repeat(k)+S;n.alignDelimiters!==!1&&(k=j.length+k+S.length,k>d[p]&&(d[p]=k),y[p]=k),g[p]=N}
vendor: 30,225 bytes, lines 267-281
267o.splice(1,0,g),l.splice(1,0,y),h=-1;const b=[];for(;++h<o.length;){const w=o[h],j=l[h];p=-1;const S=[];for(;++p<u;){const k=w[p]||"";let N="",_="";if(n.alignDelimiters!==!1){const L=d[p]-(j[p]||0),E=s[p];E===114?N=" ".repeat(L):E===99?L%2?(N=" ".repeat(L/2+.5),_=" ".repeat(L/2-.5)):(N=" ".repeat(L/2),_=N):_=" ".repeat(L)}n.delimiterStart!==!1&&!p&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||p)&&S.push(" "),n.alignDelimiters!==!1&&S.push(N),S.push(k),n.alignDelimiters!==!1&&S.push(_),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||p!==u-1)&&S.push("|")}b.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return b.join(` 268`)}function kve(e){return e==null?"":String(e)}function v8(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Nve(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),Ave);return a(),o}function Ave(e,t,n){return">"+(n?"":" ")+e}function Eve(e,t){return y8(e,t.inConstruct,!0)&&!y8(e,t.notInConstruct,!1)}function y8(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function x8(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===` 269`&&Eve(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\ 270`}function _ve(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>o&&(o=s):s=1,a=r+t.length,r=n.indexOf(t,a);return o}function Tve(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lve(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ove(e,t,n,r){const a=Lve(n),s=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(Tve(e,n)){const p=n.enter("codeIndented"),g=n.indentLines(s,Mve);return p(),g}const l=n.createTracker(r),d=a.repeat(Math.max(_ve(s,a)+1,3)),u=n.enter("codeFenced");let h=l.move(d);if(e.lang){const p=n.enter(`codeFencedLang${o}`);h+=l.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(n.safe(e.meta,{before:h,after:` 271`,encode:["`"],...l.current()})),p()}return h+=l.move(` 272`),s&&(h+=l.move(s+` 273`)),h+=l.move(d),u(),h}function Mve(e,t,n){return(n?"":" ")+e}function z5(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Dve(e,t,n,r){const a=z5(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const d=n.createTracker(r);let u=d.move("[");return u+=d.move(n.safe(n.associationId(e),{before:u,after:"]",...d.current()})),u+=d.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(n.safe(e.url,{before:u,after:">",...d.current()})),u+=d.move(">")):(l=n.enter("destinationRaw"),u+=d.move(n.safe(e.url,{before:u,after:e.title?" ":` 274`,...d.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=d.move(" "+a),u+=d.move(n.safe(e.title,{before:u,after:a,...d.current()})),u+=d.move(a),l()),o(),u}function Pve(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function am(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ky(e,t,n){const r=ef(e),a=ef(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}dH.peek=Rve;function dH(e,t,n,r){const a=Pve(n),s=n.enter("emphasis"),o=n.createTracker(r),l=o.move(a);let d=o.move(n.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=d.charCodeAt(0),h=ky(r.before.charCodeAt(r.before.length-1),u,a);h.inside&&(d=am(u)+d.slice(1));const p=d.charCodeAt(d.length-1),g=ky(r.after.charCodeAt(0),p,a);g.inside&&(d=d.slice(0,-1)+am(p));const y=o.move(a);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+d+y}function Rve(e,t,n){return n.options.emphasis||"*"}function Ive(e,t){let n=!1;return q5(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,rk}),!!((!e.depth||e.depth<3)&&M5(e)&&(t.options.setext||n))}function $ve(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(Ive(e,n)){const h=n.enter("headingSetext"),p=n.enter("phrasing"),g=n.containerPhrasing(e,{...s.current(),before:` 275`,after:` 276`});return p(),h(),g+` 277`+(a===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(` 278`))+1))}const o="#".repeat(a),l=n.enter("headingAtx"),d=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:` 279`,...s.current()});return/^[\t ]/.test(u)&&(u=am(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),d(),l(),u}fH.peek=Bve;function fH(e){return e.value||""}function Bve(){return"<"}hH.peek=qve;function hH(e,t,n,r){const a=z5(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const d=n.createTracker(r);let u=d.move("![");return u+=d.move(n.safe(e.alt,{before:u,after:"]",...d.current()})),u+=d.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=d.move("<"),u+=d.move(n.safe(e.url,{before:u,after:">",...d.current()})),u+=d.move(">")):(l=n.enter("destinationRaw"),u+=d.move(n.safe(e.url,{before:u,after:e.title?" ":")",...d.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=d.move(" "+a),u+=d.move(n.safe(e.title,{before:u,after:a,...d.current()})),u+=d.move(a),l()),u+=d.move(")"),o(),u}function qve(){return"!"}pH.peek=Fve;function pH(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let d=l.move("![");const u=n.safe(e.alt,{before:d,after:"]",...l.current()});d+=l.move(u+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...l.current()});return o(),n.stack=h,s(),a==="full"||!u||u!==p?d+=l.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=l.move("]"),d}function Fve(){return"!"}mH.peek=zve;function mH(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let d;if(o.atBreak)for(;d=l.exec(r);){let u=d.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(d.index+1)}}return a+r+a}function zve(){return"`"}function gH(e,t){const n=M5(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}vH.peek=Hve;function vH(e,t,n,r){const a=z5(n),s=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,d;if(gH(e,n)){const h=n.stack;n.stack=[],l=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),l(),n.stack=h,p}l=n.enter("link"),d=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(d=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),d(),e.title&&(d=n.enter(`title${s}`),u+=o.move(" "+a),u+=o.move(n.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),d()),u+=o.move(")"),l(),u}function Hve(e,t,n){return gH(e,n)?"<":"["}yH.peek=Uve;function yH(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let d=l.move("[");const u=n.containerPhrasing(e,{before:d,after:"]",...l.current()});d+=l.move(u+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...l.current()});return o(),n.stack=h,s(),a==="full"||!u||u!==p?d+=l.move(p+"]"):a==="shortcut"?d=d.slice(0,-1):d+=l.move("]"),d}function Uve(){return"["}function H5(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Vve(e){const t=H5(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Gve(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function xH(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Wve(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Gve(n):H5(n);const l=e.ordered?o==="."?")":".":Vve(n);let d=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),xH(n)===o&&h){let p=-1;for(;++p<e.children.length;){const g=e.children[p];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(o=l),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,a(),u}function Yve(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Kve(e,t,n,r){const a=Yve(n);let s=n.bulletCurrent||H5(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const d=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),h);return d(),u;function h(p,g,y){return g?(y?"":" ".repeat(o))+p:(y?s:s+" ".repeat(o-s.length))+p}}function Xve(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),a(),o}const Zve=ob(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Qve(e,t,n,r){return(e.children.some(function(o){return Zve(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Jve(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bH.peek=e0e;function bH(e,t,n,r){const a=Jve(n),s=n.enter("strong"),o=n.createTracker(r),l=o.move(a+a);let d=o.move(n.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=d.charCodeAt(0),h=ky(r.before.charCodeAt(r.before.length-1),u,a);h.inside&&(d=am(u)+d.slice(1));const p=d.charCodeAt(d.length-1),g=ky(r.after.charCodeAt(0),p,a);g.inside&&(d=d.slice(0,-1)+am(p));const y=o.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+d+y}function e0e(e,t,n){return n.options.strong||"*"}function t0e(e,t,n,r){return n.safe(e.value,r)}function n0e(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function r0e(e,t,n){const r=(xH(n)+(n.options.ruleSpaces?" ":"")).repeat(n0e(n));return n.options.ruleSpaces?r.slice(0,-1):r}const wH={blockquote:Nve,break:x8,code:Ove,definition:Dve,emphasis:dH,hardBreak:x8,heading:$ve,html:fH,image:hH,imageReference:pH,inlineCode:mH,link:vH,linkReference:yH,list:Wve,listItem:Kve,paragraph:Xve,root:Qve,strong:bH,text:t0e,thematicBreak:r0e};function i0e(){return{enter:{table:a0e,tableData:b8,tableHeader:b8,tableRow:o0e},exit:{codeText:l0e,table:s0e,tableData:JS,tableHeader:JS,tableRow:JS}}}function a0e(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function s0e(e){this.exit(e),this.data.inTable=void 0}function o0e(e){this.enter({type:"tableRow",children:[]},e)}function JS(e){this.exit(e)}function b8(e){this.enter({type:"tableCell",children:[]},e)}function l0e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,c0e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function c0e(e,t){return t==="|"?t:e}function u0e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 280`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:o,tableCell:d,tableRow:l}};function o(y,b,w,j){return u(h(y,w,j),y.align)}function l(y,b,w,j){const S=p(y,w,j),k=u([S]);return k.slice(0,k.indexOf(` 281`))}function d(y,b,w,j){const S=w.enter("tableCell"),k=w.enter("phrasing"),N=w.containerPhrasing(y,{...j,before:s,after:s});return k(),S(),N}function u(y,b){return Cve(y,{align:b,alignDelimiters:r,padding:n,stringLength:a})}function h(y,b,w){const j=y.children;let S=-1;const k=[],N=b.enter("table");for(;++S<j.length;)k[S]=p(j[S],b,w);return N(),k}function p(y,b,w){const j=y.children;let S=-1;const k=[],N=b.enter("tableRow");for(;++S<j.length;)k[S]=d(j[S],y,b,w);return N(),k}function g(y,b,w){let j=wH.inlineCode(y,b,w);return w.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function d0e(){return{exit:{taskListCheckValueChecked:w8,taskListCheckValueUnchecked:w8,paragraph:h0e}}}function f0e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:p0e}}}function w8(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function h0e(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let s=-1,o;for(;++s<a.length;){const l=a[s];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function p0e(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let d=wH.listItem(e,t,n,{...r,...l.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),d;function u(h){return h+o}}function m0e(){return[Wge(),pve(),yve(),i0e(),d0e()]}function g0e(e){return{extensions:[Yge(),mve(e),xve(),u0e(e),f0e()]}}const v0e={tokenize:S0e,partial:!0},jH={tokenize:C0e,partial:!0},SH={tokenize:k0e,partial:!0},CH={tokenize:N0e,partial:!0},y0e={tokenize:A0e,partial:!0},kH={name:"wwwAutolink",tokenize:w0e,previous:AH},NH={name:"protocolAutolink",tokenize:j0e,previous:EH},Po={name:"emailAutolink",tokenize:b0e,previous:_H},Ms={};function x0e(){return{text:Ms}}let mc=48;for(;mc<123;)Ms[mc]=Po,mc++,mc===58?mc=65:mc===91&&(mc=97);Ms[43]=Po;Ms[45]=Po;Ms[46]=Po;Ms[95]=Po;Ms[72]=[Po,NH];Ms[104]=[Po,NH];Ms[87]=[Po,kH];Ms[119]=[Po,kH];function b0e(e,t,n){const r=this;let a,s;return o;function o(p){return!ok(p)||!_H.call(r,r.previous)||U5(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return ok(p)?(e.consume(p),l):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(y0e,h,u)(p):p===45||p===95||Ur(p)?(s=!0,e.consume(p),d):h(p)}function u(p){return e.consume(p),a=!0,d}function h(p){return s&&a&&ni(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function w0e(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!AH.call(r,r.previous)||U5(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(v0e,e.attempt(jH,e.attempt(SH,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function j0e(e,t,n){const r=this;let a="",s=!1;return o;function o(p){return(p===72||p===104)&&EH.call(r,r.previous)&&!U5(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),l):n(p)}function l(p){if(ni(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),l;if(p===58){const g=a.toLowerCase();if(g==="http"||g==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),s?u:(s=!0,d)):n(p)}function u(p){return p===null||jy(p)||Wt(p)||ru(p)||ib(p)?n(p):e.attempt(jH,e.attempt(SH,h),n)(p)}function h(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function S0e(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function C0e(e,t,n){let r,a,s;return o;function o(u){return u===46||u===95?e.check(CH,d,l)(u):u===null||Wt(u)||ru(u)||u!==45&&ib(u)?d(u):(s=!0,e.consume(u),o)}function l(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),o}function d(u){return a||r||!s?n(u):t(u)}}function k0e(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(CH,t,s)(o):o===null||Wt(o)||ru(o)?t(o):(e.consume(o),a)}function s(o){return o===41&&r++,e.consume(o),a}}function N0e(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),s):l===93?(e.consume(l),a):l===60||l===null||Wt(l)||ru(l)?t(l):n(l)}function a(l){return l===null||l===40||l===91||Wt(l)||ru(l)?t(l):r(l)}function s(l){return ni(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),r):ni(l)?(e.consume(l),o):n(l)}}function A0e(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return Ur(s)?n(s):t(s)}}function AH(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wt(e)}function EH(e){return!ni(e)}function _H(e){return!(e===47||ok(e))}function ok(e){return e===43||e===45||e===46||e===95||Ur(e)}function U5(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const E0e={tokenize:R0e,partial:!0};function _0e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:M0e,continuation:{tokenize:D0e},exit:P0e}},text:{91:{name:"gfmFootnoteCall",tokenize:O0e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:T0e,resolveTo:L0e}}}}function T0e(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){o=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return l;function l(d){if(!o||!o._balanced)return n(d);const u=Ha(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function L0e(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function O0e(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(s>999||p===93&&!o||p===null||p===91||Wt(p))return n(p);if(p===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return a.includes(Ha(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Wt(p)||(o=!0),s++,e.consume(p),p===92?h:u}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function M0e(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return d;function d(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Wt(b))return n(b);if(b===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return s=Ha(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Wt(b)||(l=!0),o++,e.consume(b),b===92?p:h}function p(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(s)||a.push(s),St(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function D0e(e,t,n){return e.check(Ym,t,e.attempt(E0e,t,n))}function P0e(e){e.exit("gfmFootnoteDefinition")}function R0e(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function I0e(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,l){let d=-1;for(;++d<o.length;)if(o[d][0]==="enter"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._close){let u=d;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[d][1].end.offset-o[d][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[d][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[d][1].end)},p={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[d][1].start)},g=[["enter",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",p,l]],y=l.parser.constructs.insideSpan.null;y&&Ki(g,g.length,0,ab(y,o.slice(u+1,d),l)),Ki(g,g.length,0,[["exit",p,l],["enter",o[d][1],l],["exit",o[d][1],l],["exit",h,l]]),Ki(o,u-1,d-u+3,g),d=u+g.length-2;break}}for(d=-1;++d<o.length;)o[d][1].type==="strikethroughSequenceTemporary"&&(o[d][1].type="data");return o}function s(o,l,d){const u=this.previous,h=this.events;let p=0;return g;function g(b){return u===126&&h[h.length-1][1].type!=="characterEscape"?d(b):(o.enter("strikethroughSequenceTemporary"),y(b))}function y(b){const w=ef(u);if(b===126)return p>1?d(b):(o.consume(b),p++,y);if(p<2&&!n)return d(b);const j=o.exit("strikethroughSequenceTemporary"),S=ef(b);return j._open=!S||S===2&&!!w,j._close=!w||w===2&&!!S,l(b)}}}class $0e{constructor(){this.map=[]}add(t,n,r){B0e(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function B0e(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function q0e(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function F0e(){return{flow:{null:{name:"table",tokenize:z0e,resolveAll:H0e}}}}function z0e(e,t,n){const r=this;let a=0,s=0,o;return l;function l(O){let q=r.events.length-1;for(;q>-1;){const V=r.events[q][1].type;if(V==="lineEnding"||V==="linePrefix")q--;else break}const D=q>-1?r.events[q][1].type:null,z=D==="tableHead"||D==="tableRow"?E:d;return z===E&&r.parser.lazy[r.now().line]?n(O):z(O)}function d(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(o=!0,s+=1),h(O)}function h(O){return O===null?n(O):Ge(O)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),y):n(O):ht(O)?St(e,h,"whitespace")(O):(s+=1,o&&(o=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||Wt(O)?(e.exit("data"),h(O)):(e.consume(O),O===92?g:p)}function g(O){return O===92||O===124?(e.consume(O),p):p(O)}function y(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,ht(O)?St(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):b(O))}function b(O){return O===45||O===58?j(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),w):L(O)}function w(O){return ht(O)?St(e,j,"whitespace")(O):j(O)}function j(O){return O===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),S):O===45?(s+=1,S(O)):O===null||Ge(O)?_(O):L(O)}function S(O){return O===45?(e.enter("tableDelimiterFiller"),k(O)):L(O)}function k(O){return O===45?(e.consume(O),k):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(O))}function N(O){return ht(O)?St(e,_,"whitespace")(O):_(O)}function _(O){return O===124?b(O):O===null||Ge(O)?!o||a!==s?L(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):L(O)}function L(O){return n(O)}function E(O){return e.enter("tableRow"),T(O)}function T(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),T):O===null||Ge(O)?(e.exit("tableRow"),t(O)):ht(O)?St(e,T,"whitespace")(O):(e.enter("data"),P(O))}function P(O){return O===null||O===124||Wt(O)?(e.exit("data"),T(O)):(e.consume(O),O===92?$:P)}function $(O){return O===92||O===124?(e.consume(O),P):P(O)}}function H0e(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,d=0,u,h,p;const g=new $0e;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(l=!1,d!==0&&(j8(g,t,d,u,h),h=void 0,d=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",u,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,p=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",h,t]])),a=b.type==="tableDelimiterRow"?2:h?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],p=Jv(g,t,s,a,void 0,p),s=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],p=Jv(g,t,s,a,void 0,p)),s=o,o=[s[1],n,0,0])):b.type==="tableHead"?(l=!0,d=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(d=n,s[1]!==0?(o[0]=o[1],p=Jv(g,t,s,a,n,p)):o[1]!==0&&(p=Jv(g,t,o,a,n,p)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(d!==0&&j8(g,t,d,u,h),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];
281y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=q0e(t.events,n))}return e}function Jv(e,t,n,r,a,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Md(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=Md(t.events,n[1]);if(s={type:o,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=Md(t.events,n[2]),h=Md(t.events,n[3]),p={type:l,start:Object.assign({},u),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,w=n[3]-n[2]-1;e.add(b,w,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(s.end=Object.assign({},Md(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function j8(e,t,n,r,a){const s=[],o=Md(t.events,n);a&&(a.end=Object.assign({},o),s.push(["exit",a,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function Md(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const U0e={name:"tasklistCheck",tokenize:G0e};function V0e(){return{text:{91:U0e}}}function G0e(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Wt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),o):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),o):n(d)}function o(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(d)}function l(d){return Ge(d)?t(d):ht(d)?e.check({tokenize:W0e},t,n)(d):n(d)}}function W0e(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Y0e(e){return qz([x0e(),_0e(),I0e(e),F0e(),V0e()])}const K0e={};function X0e(e){const t=this,n=e||K0e,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Y0e(n)),s.push(m0e()),o.push(g0e(n))}function TH(e,t){return function(){return e.apply(t,arguments)}}const{toString:Z0e}=Object.prototype,{getPrototypeOf:V5}=Object,{iterator:cb,toStringTag:LH}=Symbol,ub=(e=>t=>{const n=Z0e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Za=e=>(e=e.toLowerCase(),t=>ub(t)===e),db=e=>t=>typeof t===e,{isArray:kf}=Array,tf=db("undefined");function Xm(e){return e!==null&&!tf(e)&&e.constructor!==null&&!tf(e.constructor)&&Si(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const OH=Za("ArrayBuffer");function Q0e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&OH(e.buffer),t}const J0e=db("string"),Si=db("function"),MH=db("number"),Zm=e=>e!==null&&typeof e=="object",eye=e=>e===!0||e===!1,G0=e=>{if(ub(e)!=="object")return!1;const t=V5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(LH in e)&&!(cb in e)},tye=e=>{if(!Zm(e)||Xm(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nye=Za("Date"),rye=Za("File"),iye=Za("Blob"),aye=Za("FileList"),sye=e=>Zm(e)&&Si(e.pipe),oye=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Si(e.append)&&((t=ub(e))==="formdata"||t==="object"&&Si(e.toString)&&e.toString()==="[object FormData]"))},lye=Za("URLSearchParams"),[cye,uye,dye,fye]=["ReadableStream","Request","Response","Headers"].map(Za),hye=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),kf(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Xm(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let l;for(r=0;r<o;r++)l=s[r],t.call(null,e[l],l,e)}}function DH(e,t){if(Xm(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,PH=e=>!tf(e)&&e!==Bc;function lk(){const{caseless:e,skipUndefined:t}=PH(this)&&this||{},n={},r=(a,s)=>{const o=e&&DH(n,s)||s;G0(n[o])&&G0(a)?n[o]=lk(n[o],a):G0(a)?n[o]=lk({}
281,a):kf(a)?n[o]=a.slice():(!t||!tf(a))&&(n[o]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Qm(arguments[a],r);return n}const pye=(e,t,n,{allOwnKeys:r}={})=>(Qm(t,(a,s)=>{n&&Si(a)?e[s]=TH(a,n):e[s]=a},{allOwnKeys:r}),e),mye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gye=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vye=(e,t,n,r)=>{let a,s,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)o=a[s],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&V5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xye=e=>{if(!e)return null;if(kf(e))return e;let t=e.length;if(!MH(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&V5(Uint8Array)),wye=(e,t)=>{const r=(e&&e[cb]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},jye=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Sye=Za("HTMLFormElement"),Cye=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),S8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kye=Za("RegExp"),RH=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qm(n,(a,s)=>{let o;(o=t(a,s,e))!==!1&&(r[s]=o||a)}),Object.defineProperties(e,r)},Nye=e=>{RH(e,(t,n)=>{if(Si(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Si(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Aye=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return kf(e)?r(e):r(String(e).split(t)),n},Eye=()=>{},_ye=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Tye(e){return!!(e&&Si(e.append)&&e[LH]==="FormData"&&e[cb])}const Lye=e=>{const t=new Array(10),n=(r,a)=>{if(Zm(r)){if(t.indexOf(r)>=0)return;if(Xm(r))return r;if(!("toJSON"in r)){t[a]=r;const s=kf(r)?[]:{};return Qm(r,(o,l)=>{const d=n(o,a+1);!tf(d)&&(s[l]=d)}),t[a]=void 0,s}}return r};return n(e,0)},Oye=Za("AsyncFunction"),Mye=e=>e&&(Zm(e)||Si(e))&&Si(e.then)&&Si(e.catch),IH=((e,t)=>e?setImmediate:t?((n,r)=>(Bc.addEventListener("message",({source:a,data:s})=>{a===Bc&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Bc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Si(Bc.postMessage)),Dye=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||IH,Pye=e=>e!=null&&Si(e[cb]),de={isArray:kf,isArrayBuffer:OH,isBuffer:Xm,isFormData:oye,isArrayBufferView:Q0e,isString:J0e,isNumber:MH,isBoolean:eye,isObject:Zm,isPlainObject:G0,isEmptyObject:tye,isReadableStream:cye,isRequest:uye,isResponse:dye,isHeaders:fye,isUndefined:tf,isDate:nye,isFile:rye,isBlob:iye,isRegExp:kye,isFunction:Si,isStream:sye,isURLSearchParams:lye,isTypedArray:bye,isFileList:aye,forEach:Qm,merge:lk,extend:pye,trim:hye,stripBOM:mye,inherits:gye,toFlatObject:vye,kindOf:ub,kindOfTest:Za,endsWith:yye,toArray:xye,forEachEntry:wye,matchAll:jye,isHTMLForm:Sye,hasOwnProperty:S8,hasOwnProp:S8,reduceDescriptors:RH,freezeMethods:Nye,toObjectSet:Aye,toCamelCase:Cye,noop:Eye,toFiniteNumber:_ye,findKey:DH,global:Bc,isContextDefined:PH,isSpecCompliantForm:Tye,toJSONObject:Lye,isAsyncFn:Oye,isThenable:Mye,setImmediate:IH,asap:Dye,isIterable:Pye};function it(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}de.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const $H=it.prototype,BH={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
vendor: 10,499 bytes, lines 281-283
281RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{BH[e]={value:e}});Object.defineProperties(it,BH);Object.defineProperty($H,"isAxiosError",{value:!0});it.from=(e,t,n,r,a,s)=>{const o=Object.create($H);de.toFlatObject(e,o,function(h){return h!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return it.call(o,l,d,n,r,a),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",s&&Object.assign(o,s),o};const Rye=null;function ck(e){return de.isPlainObject(e)||de.isArray(e)}function qH(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function C8(e,t,n){return e?e.concat(t).map(function(a,s){return a=qH(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function Iye(e){return de.isArray(e)&&!e.some(ck)}const $ye=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function fb(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,j){return!de.isUndefined(j[w])});const r=n.metaTokens,a=n.visitor||h,s=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(de.isDate(b))return b.toISOString();if(de.isBoolean(b))return b.toString();if(!d&&de.isBlob(b))throw new it("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(b)||de.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,w,j){let S=b;if(b&&!j&&typeof b=="object"){if(de.endsWith(w,"{}"))w=r?w:w.slice(0,-2),b=JSON.stringify(b);else if(de.isArray(b)&&Iye(b)||(de.isFileList(b)||de.endsWith(w,"[]"))&&(S=de.toArray(b)))return w=qH(w),S.forEach(function(N,_){!(de.isUndefined(N)||N===null)&&t.append(o===!0?C8([w],_,s):o===null?w:w+"[]",u(N))}),!1}return ck(b)?!0:(t.append(C8(j,w,s),u(b)),!1)}const p=[],g=Object.assign($ye,{defaultVisitor:h,convertValue:u,isVisitable:ck});function y(b,w){if(!de.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(b),de.forEach(b,function(S,k){(!(de.isUndefined(S)||S===null)&&a.call(t,S,de.isString(k)?k.trim():k,w,g))===!0&&y(S,w?w.concat(k):[k])}),p.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return y(e),t}function k8(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function G5(e,t){this._pairs=[],e&&fb(e,this,t)}const FH=G5.prototype;FH.append=function(t,n){this._pairs.push([t,n])};FH.toString=function(t){const n=t?function(r){return t.call(this,r,k8)}:k8;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Bye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zH(e,t,n){if(!t)return e;const r=n&&n.encode||Bye;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=de.isURLSearchParams(t)?t.toString():new G5(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class N8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const HH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qye=typeof URLSearchParams<"u"?URLSearchParams:G5,Fye=typeof FormData<"u"?FormData:null,zye=typeof Blob<"u"?Blob:null,Hye={isBrowser:!0,classes:{URLSearchParams:qye,FormData:Fye,Blob:zye},protocols:["http","https","file","blob","url","data"]},W5=typeof window<"u"&&typeof document<"u",uk=typeof navigator=="object"&&navigator||void 0,Uye=W5&&(!uk||["ReactNative","NativeScript","NS"].indexOf(uk.product)<0),Vye=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gye=W5&&window.location.href||"http://localhost",Wye=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W5,hasStandardBrowserEnv:Uye,hasStandardBrowserWebWorkerEnv:Vye,navigator:uk,origin:Gye},Symbol.toStringTag,{value:"Module"})),Hr={...Wye,...Hye};function Yye(e,t){return fb(e,new Hr.classes.URLSearchParams,{visitor:function(n,r,a,s){return Hr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Kye(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xye(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function UH(e){function t(n,r,a,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),d=s>=n.length;return o=!o&&de.isArray(a)?a.length:o,d?(de.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!l):((!a[o]||!de.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],s)&&de.isArray(a[o])&&(a[o]=Xye(a[o])),!l)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(Kye(r),a,n,0)}),n}return null}function Zye(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Jm={transitional:HH,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=de.isObject(t);if(s&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(UH(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yye(t,this.formSerializer).toString();if((l=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return fb(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),Zye(t)):t}],transformResponse:[function(t){const n=this.transitional||Jm.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?it.from(l,it.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hr.classes.FormData,Blob:Hr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Jm.headers[e]={}});const Qye=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jye=e=>{const t={};let n,r,a;return e&&e.split(` 282`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&Qye[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},A8=Symbol("internals");function op(e){return e&&String(e).trim().toLowerCase()}function W0(e){return e===!1||e==null?e:de.isArray(e)?e.map(W0):String(e)}function exe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const txe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e3(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function nxe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rxe(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,o){return this[r].call(this,t,a,s,o)},configurable:!0})})}let Ci=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(l,d,u){const h=op(d);if(!h)throw new Error("header name must be a non-empty string");const p=de.findKey(a,h);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||d]=W0(l))}const o=(l,d)=>de.forEach(l,(u,h)=>s(u,h,d));if(de.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(de.isString(t)&&(t=t.trim())&&!txe(t))o(Jye(t),n);else if(de.isObject(t)&&de.isIterable(t)){let l={},d,u;for(const h of t){if(!de.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[u=h[0]]=(d=l[u])?de.isArray(d)?[...d,h[1]]:[d,h[1]]:h[1]}o(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=op(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return exe(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=op(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||e3(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(o){if(o=op(o),o){const l=de.findKey(r,o);l&&(!n||e3(r,r[l],l,n))&&(delete r[l],a=!0)}}return de.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||e3(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,s)=>{const o=de.findKey(r,s);if(o){n[o]=W0(a),delete n[s];return}const l=t?nxe(s):String(s).trim();l!==s&&delete n[s],n[l]=W0(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 283`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
283return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[A8]=this[A8]={accessors:{}}).accessors,a=this.prototype;function s(o){const l=op(o);r[l]||(rxe(a,o),r[l]=!0)}return de.isArray(t)?t.forEach(s):s(t),this}};Ci.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Ci.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Ci);function t3(e,t){const n=this||Jm,r=t||n,a=Ci.from(r.headers);let s=r.data;return de.forEach(e,function(l){s=l.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function VH(e){return!!(e&&e.__CANCEL__)}function Nf(e,t,n){it.call(this,e??"canceled",it.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(Nf,it,{__CANCEL__:!0});function GH(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ixe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function axe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(d){const u=Date.now(),h=r[s];o||(o=u),n[a]=d,r[a]=u;let p=s,g=0;for(;p!==a;)g+=n[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),u-o<t)return;const y=h&&u-h;return y?Math.round(g*1e3/y):void 0}}function sxe(e,t){let n=0,r=1e3/t,a,s;const o=(u,h=Date.now())=>{n=h,a=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const h=Date.now(),p=h-n;p>=r?o(u,h):(a=u,s||(s=setTimeout(()=>{s=null,o(a)},r-p)))},()=>a&&o(a)]}const Ny=(e,t,n=3)=>{let r=0;const a=axe(50,250);return sxe(s=>{const o=s.loaded,l=s.lengthComputable?s.total:void 0,d=o-r,u=a(d),h=o<=l;r=o;const p={loaded:o,total:l,progress:l?o/l:void 0,bytes:d,rate:u||void 0,estimated:u&&l&&h?(l-o)/u:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},E8=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_8=e=>(...t)=>de.asap(()=>e(...t)),oxe=Hr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Hr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Hr.origin),Hr.navigator&&/(msie|trident)/i.test(Hr.navigator.userAgent)):()=>!0,lxe=Hr.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const o=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),de.isString(r)&&o.push("path="+r),de.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cxe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uxe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function WH(e,t,n){let r=!cxe(t);return e&&(r||n==!1)?uxe(e,t):t}const T8=e=>e instanceof Ci?{...e}:e;function iu(e,t){t=t||{};const n={};function r(u,h,p,g){return de.isPlainObject(u)&&de.isPlainObject(h)?de.merge.call({caseless:g},u,h):de.isPlainObject(h)?de.merge({},h):de.isArray(h)?h.slice():h}function a(u,h,p,g){if(de.isUndefined(h)){if(!de.isUndefined(u))return r(void 0,u,p,g)}else return r(u,h,p,g)}function s(u,h){if(!de.isUndefined(h))return r(void 0,h)}function o(u,h){if(de.isUndefined(h)){if(!de.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function l(u,h,p){if(p in t)return r(u,h);if(p in e)return r(void 0,u)}const d={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,h,p)=>a(T8(u),T8(h),p,!0)};return de.forEach(Object.keys({...e,...t}),function(h){const p=d[h]||a,g=p(e[h],t[h],h);de.isUndefined(g)&&p!==l||(n[h]=g)}),n}const YH=e=>{const t=iu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:l}=t;if(t.headers=o=Ci.from(o),t.url=zH(WH(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),de.isFormData(n)){if(Hr.hasStandardBrowserEnv||Hr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(de.isFunction(n.getHeaders)){const d=n.getHeaders(),u=["content-type","content-length"];
vendor: 5,634 bytes, line 283
283Object.entries(d).forEach(([h,p])=>{u.includes(h.toLowerCase())&&o.set(h,p)})}}if(Hr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&oxe(t.url))){const d=a&&s&&lxe.read(s);d&&o.set(a,d)}return t},dxe=typeof XMLHttpRequest<"u",fxe=dxe&&function(e){return new Promise(function(n,r){const a=YH(e);let s=a.data;const o=Ci.from(a.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:u}=a,h,p,g,y,b;function w(){y&&y(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let j=new XMLHttpRequest;j.open(a.method.toUpperCase(),a.url,!0),j.timeout=a.timeout;function S(){if(!j)return;const N=Ci.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),L={data:!l||l==="text"||l==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:N,config:e,request:j};GH(function(T){n(T),w()},function(T){r(T),w()},L),j=null}"onloadend"in j?j.onloadend=S:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(S)},j.onabort=function(){j&&(r(new it("Request aborted",it.ECONNABORTED,e,j)),j=null)},j.onerror=function(_){const L=_&&_.message?_.message:"Network Error",E=new it(L,it.ERR_NETWORK,e,j);E.event=_||null,r(E),j=null},j.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const L=a.transitional||HH;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),r(new it(_,L.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,e,j)),j=null},s===void 0&&o.setContentType(null),"setRequestHeader"in j&&de.forEach(o.toJSON(),function(_,L){j.setRequestHeader(L,_)}),de.isUndefined(a.withCredentials)||(j.withCredentials=!!a.withCredentials),l&&l!=="json"&&(j.responseType=a.responseType),u&&([g,b]=Ny(u,!0),j.addEventListener("progress",g)),d&&j.upload&&([p,y]=Ny(d),j.upload.addEventListener("progress",p),j.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(h=N=>{j&&(r(!N||N.type?new Nf(null,e,j):N),j.abort(),j=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const k=ixe(a.url);if(k&&Hr.protocols.indexOf(k)===-1){r(new it("Unsupported protocol "+k+":",it.ERR_BAD_REQUEST,e));return}j.send(s||null)})},hxe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(u){if(!a){a=!0,l();const h=u instanceof Error?u:this.reason;r.abort(h instanceof it?h:new Nf(h instanceof Error?h.message:h))}};let o=t&&setTimeout(()=>{o=null,s(new it(`timeout ${t} of ms exceeded`,it.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>de.asap(l),d}},pxe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},mxe=async function*(e,t){for await(const n of gxe(e))yield*pxe(n,t)},gxe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},L8=(e,t,n,r)=>{const a=mxe(e,t);let s=0,o,l=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await a.next();if(u){l(),d.close();return}let p=h.byteLength;if(n){let g=s+=p;n(g)}d.enqueue(new Uint8Array(h))}catch(u){throw l(u),u}},cancel(d){return l(d),a.return()}},{highWaterMark:2})},O8=64*1024,{isFunction:e0}=de,vxe=(({Request:e,Response:t})=>({Request:e,Response:t}))(de.global),{ReadableStream:M8,TextEncoder:D8}=de.global,P8=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yxe=e=>{e=de.merge.call({skipUndefined:!0},vxe,e);const{fetch:t,Request:n,Response:r}=e,a=t?e0(t):typeof fetch=="function",s=e0(n),o=e0(r);if(!a)return!1;const l=a&&e0(M8),d=a&&(typeof D8=="function"?(b=>w=>b.encode(w))(new D8):async b=>new Uint8Array(await new n(b).arrayBuffer())),u=s&&l&&P8(()=>{let b=!1;const w=new n(Hr.origin,{body:new M8,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!w}),h=o&&l&&P8(()=>de.isReadableStream(new r("").body)),p={stream:h&&(b=>b.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!p[b]&&(p[b]=(w,j)=>{let S=w&&w[b];if(S)return S.call(w);throw new it(`Response type '${b}' is not supported`,it.ERR_NOT_SUPPORT,j)})});const g=async b=>{if(b==null)return 0;if(de.isBlob(b))return b.size;if(de.isSpecCompliantForm(b))return(await new n(Hr.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(de.isArrayBufferView(b)||de.isArrayBuffer(b))return b.byteLength;if(de.isURLSearchParams(b)&&(b=b+""),de.isString(b))return(await d(b)).byteLength},y=async(b,w)=>{const j=de.toFiniteNumber(b.getContentLength());return j??g(w)};return async b=>{let{url:w,method:j,data:S,signal:k,cancelToken:N,timeout:_,onDownloadProgress:L,onUploadProgress:E,responseType:T,headers:P,withCredentials:$="same-origin",fetchOptions:O}=YH(b),q=t||fetch;T=T?(T+"").toLowerCase():"text";let D=hxe([k,N&&N.toAbortSignal()],_),z=null;const V=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let W;try{if(E&&u&&j!=="get"&&j!=="head"&&(W=await y(P,S))!==0){let I=new n(w,{method:"POST",body:S,duplex:"half"}),X;if(de.isFormData(S)&&(X=I.headers.get("content-type"))&&P.setContentType(X),I.body){const[F,U]=E8(W,Ny(_8(E)));S=L8(I.body,O8,F,U)}}de.isString($)||($=$?"include":"omit");const B=s&&"credentials"in n.prototype,H={...O,signal:D,method:j.toUpperCase(),headers:P.normalize().toJSON(),body:S,duplex:"half",credentials:B?$
283:void 0};z=s&&new n(w,H);let G=await(s?q(z,O):q(w,H));const K=h&&(T==="stream"||T==="response");if(h&&(L||K&&V)){const I={};["status","statusText","headers"].forEach(Z=>{I[Z]=G[Z]});const X=de.toFiniteNumber(G.headers.get("content-length")),[F,U]=L&&E8(X,Ny(_8(L),!0))||[];G=new r(L8(G.body,O8,F,()=>{U&&U(),V&&V()}),I)}T=T||"text";let M=await p[de.findKey(p,T)||"text"](G,b);return!K&&V&&V(),await new Promise((I,X)=>{GH(I,X,{data:M,headers:Ci.from(G.headers),status:G.status,statusText:G.statusText,config:b,request:z})})}catch(B){throw V&&V(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,b,z),{cause:B.cause||B}):it.from(B,B&&B.code,b,z)}}},xxe=new Map,KH=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:a}=t,s=[r,a,n];let o=s.length,l=o,d,u,h=xxe;for(;l--;)d=s[l],u=h.get(d),u===void 0&&h.set(d,u=l?new Map:yxe(t)),h=u;return u};KH();const dk={http:Rye,xhr:fxe,fetch:{get:KH}};de.forEach(dk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const R8=e=>`- ${e}`,bxe=e=>de.isFunction(e)||e===null||e===!1,XH={getAdapter:(e,t)=>{e=de.isArray(e)?e:[e];const{length:n}=e;let r,a;const s={};for(let o=0;o<n;o++){r=e[o];let l;if(a=r,!bxe(r)&&(a=dk[(l=String(r)).toLowerCase()],a===void 0))throw new it(`Unknown adapter '${l}'`);
vendor: 5,100 bytes, lines 283-286
283if(a&&(de.isFunction(a)||(a=a.get(t))))break;s[l||"#"+o]=a}if(!a){const o=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since : 284`+o.map(R8).join(` 285`):" "+R8(o[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a},adapters:dk};function n3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nf(null,e)}function I8(e){return n3(e),e.headers=Ci.from(e.headers),e.data=t3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),XH.getAdapter(e.adapter||Jm.adapter,e)(e).then(function(r){return n3(e),r.data=t3.call(e,e.transformResponse,r),r.headers=Ci.from(r.headers),r},function(r){return VH(r)||(n3(e),r&&r.response&&(r.response.data=t3.call(e,e.transformResponse,r.response),r.response.headers=Ci.from(r.response.headers))),Promise.reject(r)})}const ZH="1.12.2",hb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $8={};hb.transitional=function(t,n,r){function a(s,o){return"[Axios v"+ZH+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,l)=>{if(t===!1)throw new it(a(o," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!$8[o]&&($8[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,l):!0}};hb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wxe(e,t,n){if(typeof e!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],o=t[s];if(o){const l=e[s],d=l===void 0||o(l,s,e);if(d!==!0)throw new it("option "+s+" must be "+d,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+s,it.ERR_BAD_OPTION)}}const Y0={assertOptions:wxe,validators:hb},ls=Y0.validators;let Yc=class{constructor(t){this.defaults=t||{},this.interceptors={request:new N8,response:new N8}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 286`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=iu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&Y0.assertOptions(r,{silentJSONParsing:ls.transitional(ls.boolean),forcedJSONParsing:ls.transitional(ls.boolean),clarifyTimeoutError:ls.transitional(ls.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Y0.assertOptions(a,{encode:ls.function,serialize:ls.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Y0.assertOptions(n,{baseUrl:ls.spelling("baseURL"),withXsrfToken:ls.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&de.merge(s.common,s[n.method]);s&&de.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),n.headers=Ci.concat(o,s);const l=[];let d=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(d=d&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let h,p=0,g;if(!d){const b=[I8.bind(this),void 0];for(b.unshift(...l),b.push(...u),g=b.length,h=Promise.resolve(n);p<g;)h=h.then(b[p++],b[p++]);return h}g=l.length;let y=n;for(;p<g;){const b=l[p++],w=l[p++];try{y=b(y)}catch(j){w.call(this,j);break}}try{h=I8.call(this,y)}catch(b){return Promise.reject(b)}for(p=0,g=u.length;p<g;)h=h.then(u[p++],u[p++]);return h}getUri(t){t=iu(this.defaults,t);const n=WH(t.baseURL,t.url,t.allowAbsoluteUrls);return zH(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){Yc.prototype[t]=function(n,r){return this.request(iu(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,l){return this.request(iu(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Yc.prototype[t]=n(),Yc.prototype[t+"Form"]=n(!0)});let jxe=class QH{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(l=>{r.subscribe(l),s=l}).then(a);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,l){r.reason||(r.reason=new Nf(s,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
286subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new QH(function(a){t=a}),cancel:t}}};function Sxe(e){return function(n){return e.apply(null,n)}}function Cxe(e){return de.isObject(e)&&e.isAxiosError===!0}const fk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fk).forEach(([e,t])=>{fk[t]=e});function JH(e){const t=new Yc(e),n=TH(Yc.prototype.request,t);return de.extend(n,Yc.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return JH(iu(e,a))},n}const De=JH(Jm);De.Axios=Yc;De.CanceledError=Nf;De.CancelToken=jxe;De.isCancel=VH;De.VERSION=ZH;De.toFormData=fb;De.AxiosError=it;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=Sxe;De.isAxiosError=Cxe;De.mergeConfig=iu;De.AxiosHeaders=Ci;De.formToJSON=e=>UH(de.isHTMLForm(e)?new FormData(e):e);De.getAdapter=XH.getAdapter;De.HttpStatusCode=fk;De.default=De;const{Axios:VXe,AxiosError:GXe,CanceledError:WXe,isCancel:YXe,CancelToken:KXe,VERSION:XXe,all:ZXe,Cancel:QXe,isAxiosError:JXe,spread:eZe,toFormData:tZe,AxiosHeaders:nZe,HttpStatusCode:rZe,formToJSON:iZe,getAdapter:aZe,mergeConfig:sZe}=De,kxe={live:"https://web3.lagosstate.gov.ng/api/v2"},Nn=kxe.live,Nxe={live:"https://lagosstate.gov.ng"},au=Nxe.live,eU=6048e5,Axe=864e5,t0=43200,B8=1440,q8=Symbol.for("constructDateFrom");function So(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&q8 in e?e[q8](t):e instanceof Date?new e.constructor(t):new Date(t)}function sr(e,t){return So(t||e,e)}let Exe={};function eg(){return Exe}function sm(e,t){const n=eg(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=sr(e,t?.in),s=a.getDay(),o=(s<r?7:0)+s-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Ay(e,t){return sm(e,{...t,weekStartsOn:1})}function tU(e,t){const n=sr(e,t?.in),r=n.getFullYear(),a=So(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=Ay(a),o=So(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=Ay(o);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Ey(e){const t=sr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function pb(e,...t){const n=So.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function F8(e,t){const n=sr(e,t?.in);return n.setHours(0,0,0,0),n}function _xe(e,t,n){const[r,a]=pb(n?.in,e,t),s=F8(r),o=F8(a),l=+s-Ey(s),d=+o-Ey(o);return Math.round((l-d)/Axe)}function Txe(e,t){const n=tU(e,t),r=So(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ay(r)}function K0(e,t){const n=+sr(e)-+sr(t);return n<0?-1:n>0?1:n}function Lxe(e){return So(e,Date.now())}function Oxe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Mxe(e){return!(!Oxe(e)&&typeof e!="number"||isNaN(+sr(e)))}function Dxe(e,t,n){const[r,a]=pb(n?.in,e,t),s=r.getFullYear()-a.getFullYear(),o=r.getMonth()-a.getMonth();return s*12+o}function Pxe(e){return t=>{const n=Math.trunc,r=n(t);return r===0?0:r}}function Rxe(e,t){return+sr(e)-+sr(t)}function Ixe(e,t){const n=sr(e,t?.in);return n.setHours(23,59,59,999),n}function $xe(e,t){const n=sr(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Bxe(e,t){const n=sr(e,t?.in);return+Ixe(n,t)==+$xe(n,t)}function qxe(e,t,n){const[r,a,s]=pb(n?.in,e,e,t),o=K0(a,s),l=Math.abs(Dxe(a,s));if(l<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*l);let d=K0(a,s)===-o;
286Bxe(r)&&l===1&&K0(r,s)===1&&(d=!1);const u=o*(l-+d);return u===0?0:u}function Fxe(e,t,n){const r=Rxe(e,t)/1e3;return Pxe()(r)}function zxe(e,t){const n=sr(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Hxe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uxe=(e,t,n)=>{let r;const a=Hxe[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function r3(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Vxe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gxe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wxe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yxe={date:r3({formats:Vxe,defaultWidth:"full"}),time:r3({formats:Gxe,defaultWidth:"full"}),dateTime:r3({formats:Wxe,defaultWidth:"full"})},Kxe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xxe=(e,t,n,r)=>Kxe[e];function lp(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return a[s]}}const Zxe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qxe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jxe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ebe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nbe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rbe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ibe={ordinalNumber:rbe,era:lp({values:Zxe,defaultWidth:"wide"}),quarter:lp({values:Qxe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lp({values:Jxe,defaultWidth:"wide"}),day:lp({values:ebe,defaultWidth:"wide"}),dayPeriod:lp({values:tbe,defaultWidth:"wide",formattingValues:nbe,defaultFormattingWidth:"wide"})};function cp(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;const o=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(l)?sbe(l,p=>p.test(o)):abe(l,p=>p.test(o));let u;u=e.valueCallback?e.valueCallback(d):d,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(o.length);return{value:u,rest:h}}}function abe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sbe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function obe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(a.length);return{value:o,rest:l}}}const lbe=/^(\d+)(th|st|nd|rd)?/i,cbe=/\d+/i,ube={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dbe={any:[/^b/i,/^(a|c)/i]},fbe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hbe={any:[/1/i,/2/i,/3/i,/4/i]},pbe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mbe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gbe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},vbe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ybe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bbe={ordinalNumber:obe({matchPattern:lbe,parsePattern:cbe,valueCallback:e=>parseInt(e,10)}),era:cp({matchPatterns:ube,defaultMatchWidth:"wide",parsePatterns:dbe,defaultParseWidth:"any"}),quarter:cp({matchPatterns:fbe,defaultMatchWidth:"wide",parsePatterns:hbe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:cp({matchPatterns:pbe,defaultMatchWidth:"wide",parsePatterns:mbe,defaultParseWidth:"any"}),day:cp({matchPatterns:gbe,defaultMatchWidth:"wide",parsePatterns:vbe,defaultParseWidth:"any"}),dayPeriod:cp({matchPatterns:ybe,defaultMatchWidth:"any",parsePatterns:xbe,defaultParseWidth:"any"})},nU={code:"en-US",formatDistance:Uxe,formatLong:Yxe,formatRelative:Xxe,localize:ibe,match:bbe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wbe(e,t){const n=sr(e,t?.in);return _xe(n,zxe(n))+1}function jbe(e,t){const n=sr(e,t?.in),r=+Ay(n)-+Txe(n);return Math.round(r/eU)+1}function rU(e,t){const n=sr(e,t?.in),r=n.getFullYear(),a=eg(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=So(t?.in||e,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const l=sm(o,t),d=So(t?.in||e,0);d.setFullYear(r,0,s),d.setHours(0,0,0,0);const u=sm(d,t);return+n>=+l?r+1:+n>=+u?r:r-1}function Sbe(e,t){const n=eg(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=rU(e,t),s=So(t?.in||e,0);return s.setFullYear(a,0,r),s.setHours(0,0,0,0),sm(s,t)}function Cbe(e,t){const n=sr(e,t?.in),r=+sm(n,t)-+Sbe(n,t);return Math.round(r/eU)+1}function It(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const hl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return It(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):It(n+1,2)},d(e,t){return It(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return It(e.getHours()%12||12,t.length)},H(e,t){return It(e.getHours(),t.length)},m(e,t){return It(e.getMinutes(),t.length)},s(e,t){return It(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return It(a,t.length)}},jd={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},z8={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return hl.y(e,t)},Y:function(e,t,n,r){const a=rU(e,r),s=a>0?a:1-a;if(t==="YY"){const o=s%100;return It(o,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):It(s,t.length)},R:function(e,t){const n=tU(e);return It(n,t.length)},u:function(e,t){const n=e.getFullYear();return It(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return It(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return It(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return hl.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return It(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Cbe(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):It(a,t.length)},I:function(e,t,n){const r=jbe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):It(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):hl.d(e,t)},D:function(e,t,n){const r=wbe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):It(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return It(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return It(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return It(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=jd.noon:r===0?a=jd.midnight:a=r/12>
286=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=jd.evening:r>=12?a=jd.afternoon:r>=4?a=jd.morning:a=jd.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return hl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):hl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):It(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):hl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):hl.s(e,t)},S:function(e,t){return hl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return U8(r);case"XXXX":case"XX":return Ec(r);case"XXXXX":case"XXX":default:return Ec(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return U8(r);case"xxxx":case"xx":return Ec(r);case"xxxxx":case"xxx":default:return Ec(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+H8(r,":");case"OOOO":default:return"GMT"+Ec(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+H8(r,":");case"zzzz":default:return"GMT"+Ec(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return It(r,t.length)},T:function(e,t,n){return It(+e,t.length)}};function H8(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),s=r%60;return s===0?n+String(a):n+String(a)+t+It(s,2)}function U8(e,t){return e%60===0?(e>0?"-":"+")+It(Math.abs(e)/60,2):Ec(e,t)}function Ec(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=It(Math.trunc(r/60),2),s=It(r%60,2);return n+a+t+s}const V8=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},iU=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},kbe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return V8(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",V8(r,t)).replace("{{time}}",iU(a,t))},Nbe={p:iU,P:kbe},Abe=/^D+$/,Ebe=/^Y+$/,_be=["D","DD","YY","YYYY"];function Tbe(e){return Abe.test(e)}function Lbe(e){return Ebe.test(e)}function Obe(e,t,n){const r=Mbe(e,t,n);if(console.warn(r),_be.includes(e))throw new RangeError(r)}function Mbe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Dbe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pbe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rbe=/^'([^]*?)'?$/,Ibe=/''/g,$be=/[a-zA-Z]/;function mb(e,t,n){const r=eg(),a=r.locale??nU,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=sr(e,n?.in);if(!Mxe(l))throw new RangeError("Invalid time value");let d=t.match(Pbe).map(h=>{const p=h[0];if(p==="p"||p==="P"){const g=Nbe[p];return g(h,a.formatLong)}return h}).join("").match(Dbe).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const p=h[0];if(p==="'")return{isToken:!1,value:Bbe(h)};if(z8[p])return{isToken:!0,value:h};
286if(p.match($be))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(d=a.localize.preprocessor(l,d));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:a};return d.map(h=>{if(!h.isToken)return h.value;const p=h.value;(Lbe(p)||Tbe(p))&&Obe(p,t,String(e));const g=z8[p[0]];return g(l,p,a.localize,u)}).join("")}function Bbe(e){const t=e.match(Rbe);return t?t[1].replace(Ibe,"'"):e}function qbe(e,t,n){const r=eg(),a=n?.locale??r.locale??nU,s=2520,o=K0(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[d,u]=pb(n?.in,...o>0?[t,e]:[e,t]),h=Fxe(u,d),p=(Ey(u)-Ey(d))/1e3,g=Math.round((h-p)/60);let y;if(g<2)return g===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",g,l);if(g<45)return a.formatDistance("xMinutes",g,l);if(g<90)return a.formatDistance("aboutXHours",1,l);if(g<B8){const b=Math.round(g/60);return a.formatDistance("aboutXHours",b,l)}else{if(g<s)return a.formatDistance("xDays",1,l);if(g<t0){const b=Math.round(g/B8);return a.formatDistance("xDays",b,l)}else if(g<t0*2)return y=Math.round(g/t0),a.formatDistance("aboutXMonths",y,l)}if(y=qxe(u,d),y<12){const b=Math.round(g/t0);return a.formatDistance("xMonths",b,l)}else{const b=y%12,w=Math.trunc(y/12);return b<3?a.formatDistance("aboutXYears",w,l):b<9?a.formatDistance("overXYears",w,l):a.formatDistance("almostXYears",w+1,l)}}function Fbe(e,t){return qbe(e,Lxe(e),t)}function zbe(e){return+sr(e)<Date.now()}const Y5=e=>mb(new Date(e),"dd MMM'.' yyyy"),Dn=e=>mb(new Date(e),"dd MMMM yyyy"),nf=e=>mb(new Date(e),"dd-MM-yyyy"),Wn=(e,t)=>e.length>t?e.substring(0,t)+"...":e,su=e=>{const t=document.createElement("div");t.innerHTML=e;const n=t.innerText,r=225,a=n.trim().split(/\s+/).length;return Math.ceil(a/r)},vn=r=>{var t,n,r,a,s;for(r=r.replace(/([^\W_]+[^\s-]*) */g,function(o){return o.charAt(0).toUpperCase()+o.substr(1).toLowerCase()}),a=["A","An","The","And","But","Or","For","Nor","As","At","By","For","From","In","Into","Near","Of","On","Onto","To","With"],t=0,n=a.length;t<n;t++)r=r.replace(new RegExp("\\s"+a[t]+"\\s","g"),function(o){return o.toLowerCase()});for(s=["Id","Tv","Lasg","Lasu","Sgbv","Eko"],t=0,n=s.length;t<n;t++)r=r.replace(new RegExp("\\b"+s[t]+"\\b","g"),s[t].toUpperCase());return r},gb=async(e,t)=>await e?.sort((r,a)=>r[t].toLowerCase().localeCompare(a[t].toLowerCase(),"en",{sensitivity:"accent"})),Hbe=async(e,t)=>await e.sort((r,a)=>Number(r[t])-Number(a[t])),K5=`${Nn}/executives`,aU=async()=>{const e=await De.get(`${K5}/get/all`);return e.status===200?Hbe(e.data.data,"phone").then(n=>n):[]},Af=async e=>{const t=await De.get(`${K5}/view/${e}`);return t.status===200?t.data:[]},Ube=async e=>{const t=decodeURI(e),n=await De.get(`${K5}/get/${t}`);if(n.status===200){if(n.data?.data?.length)return n.data.data[0]}else return[]},Vbe=`${Nn}/mdas`,hk=async()=>{const e=await De.get(`${Vbe}/all`);return e.status===200?e.data.data.sort((n,r)=>n.name.toLowerCase().localeCompare(r.name.toLowerCase(),"en",{sensitivity:"accent"})):[]},vb=`${Nn}/services`,sU=async()=>{const e=await De.get(`${vb}/all`);return e.status===200?e.data:[]},Qa=async e=>{const t=await De.get(`${vb}/get/category/${e}`);return t.status===200?t.data:[]},X5=async(e,t)=>{const n=await De.put(`${vb}/update/${e}`,t);return n.status===200?n.data:[]},Gbe=async e=>{const t=await De.delete(`${vb}/delete/${e}`);return t.status===200?t.data:[]},oU=`${Nn}/category`,tg=async()=>{const e=await De.get(`${oU}/all`);return e.status===200?e.data:[]},ng=async e=>{const t=await De.get(`${oU}/name/${e}`);return t.status===200?t.data:[]},ie={success:(e,t=2e3)=>np.success(e,{duration:t}),error:(e,t=4e3)=>np.error(e,{duration:t}),info:(e,t=4e3)=>np(e,{duration:t,icon:"â ï¸"}),loading:e=>np.loading(e),dismiss:e=>np.dismiss(e)},Ja=async e=>{const t=`${Nn}/logger/add`;try{await De.post(t,e)}catch{}},Wbe=async e=>{const t=`${Nn}/logger/get/mda/${e}`;try{return(await De.get(t)).data}catch{}},lU=`${Nn}`,ms=JSON.parse(window.localStorage.getItem("MDA__TOKEN"));window.location.pathname.split("/")[3];window.location.pathname.split("/")[1];const Cn=e=>(console.log(e),e.replaceAll(" ","").replaceAll(",","_").replaceAll("&","_").toLowerCase()),G8=async(e,t)=>{try{const n=await De.post(`${lU}/services/add/single`,{...e,formattedName:e?.formattedName?[...e?.formattedName,Cn(t)]:[Cn(t)],categories:e?.categories?[...e?.categories,t]:[t]});return n.status===200?(Ja({initiator:`${ms?.firstname} ${ms?.lastname}`.trim(),mda:e.name||ms?.mda,activity:`${ms?.firstname} ${ms?.lastname} added a new service - ${e.name}`}),n.data):(ie.error(n.data?.message||"Failed to add service"),[])}catch(n){return console.error("Error adding service:",n),ie.error(n.response?.data?.message||"An error occurred while adding the service"),[]}},Ybe=async e=>{try{const t=await De.post(`${lU}/category/add`,e);return t.status===200?t.data:[]}catch(t){return console.error("Error adding category:",t),[]}},Kbe=async(e,t)=>{if(!t)return ie.error("Category name is required"),[];try{if((await ng(Cn(t)))?.data?.length>0)return await G8(e,t);const r=await Ybe({name:`${t}`,keywords:[],short:`Explore and get up-to-date services for ${t} through integrated digital portals.`,icon:{},isOffline:!0});if(r?.status==="ok"&&r?.data?.length>0)return await G8(e,t);throw new Error("Failed to create category")}catch(n){return console.error("Error in addSingleService:",n),ie.error("Failed to process service addition"),[]}},Xbe=async(e,t)=>{try{const n=await X5(e._id,{formattedName:e?.formattedName?[...e?.formattedName,Cn(t)]:[Cn(t)],categories:e?.categories?[...e?.categories,t]:[t]});return n.status==="ok"?(Ja({initiator:`${ms?.firstname} ${ms?.lastname}`.trim(),mda:e.name||ms?.mda,activity:`${ms?.firstname} ${ms?.lastname} added a new service - ${e.name}`}),n.data):(ie.error(n.data?.message||"Failed to add service"),[])}catch(n){return console.error("Error adding service:",n),ie.error(n.response?.data?.message||"An error occurred while adding the service"),[]}},cU=(e,t)=>e?.find(n=>n.name===t),yb="/assets/pdf-DRnJaAAA.png",W8=e=>{let t;const n=new Set,r=(u,h)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const g=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({}
286,t,p),n.forEach(y=>y(t,g))}},a=()=>t,l={setState:r,getState:a,getInitialState:()=>d,subscribe:u=>(n.add(u),()=>n.delete(u))},d=t=e(r,a,l);return l},Zbe=(e=>e?W8(e):W8),Qbe=e=>e;function Jbe(e,t=Qbe){const n=ft.useSyncExternalStore(e.subscribe,ft.useCallback(()=>t(e.getState()),[e,t]),ft.useCallback(()=>t(e.getInitialState()),[e,t]));return ft.useDebugValue(n),n}const Y8=e=>{const t=Zbe(e),n=r=>Jbe(t,r);return Object.assign(n,t),n},rg=(e=>e?Y8(e):Y8),Te=rg(e=>({isMobile:!1,setIsMobile:t=>e({isMobile:t}),mda:"",setMda:t=>e({mda:t}),mdaData:{},setMdaData:t=>e({mdaData:t}),refetchData:null,setRefetchData:t=>e({refetchData:t})})),ou=rg(e=>({isMobile:0,setIsMobile:t=>e(()=>({isMobile:t})),initialSuggestions:[],setSuggestions:t=>e(()=>({initialSuggestions:t})),darkmode:!1,setDarkmode:t=>e(()=>({darkmode:t}))})),ps=rg(e=>({messages:"",addMessage:t=>e(n=>({messages:t})),checkIsChatOpen:!1,setCheckIsChatOpen:t=>e(()=>({checkIsChatOpen:t})),languagePreference:"en",setLanguagePreference:t=>e(()=>({languagePreference:t}))})),Z5=`${Nn}/ai`,xb=async(e,t={})=>{const{models:n,maxTokens:r=1536,temperature:a=.7,webSearch:s=!1,responseFormat:o,reasoningEffort:l}=t,d=await fetch(`${Z5}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e,models:n,max_tokens:r,temperature:a,webSearch:s,responseFormat:o,reasoningEffort:l})});if(!d.ok)throw new Error(`AI chat error ${d.status}: ${await d.text()}`);return(await d.json()).content||""},e1e=async(e,t={})=>{const{webSearch:n=!0,maxTokens:r=4096,temperature:a=.7,reasoningEffort:s,onToken:o}=t,l=await fetch(`${Z5}/agent-chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e,webSearch:n,maxTokens:r,temperature:a,reasoningEffort:s})});if(!l.ok||!l.body)throw new Error(`AI agent chat error ${l.status}: ${await l.text()}`);const d=l.body.getReader(),u=new TextDecoder;let h="",p="",g={services:[],downloadSources:[],sources:[],webSources:[],truncated:!1};for(;;){const{done:y,value:b}=await d.read();if(y)break;h+=u.decode(b,{stream:!0});const w=h.split(` 287`);h=w.pop();for(const j of w){const S=j.trim();if(!S.startsWith("data:"))continue;const k=S.slice(5).trim();if(!k)continue;const N=JSON.parse(k);if(N.type==="token")p+=N.content,o&&await o(N.content,p);else if(N.type==="done")g={services:N.services||[],downloadSources:N.downloadSources||[],sources:N.sources||[],webSources:N.webSources||[],truncated:N.truncated||!1};else if(N.type==="error")throw new Error(N.message)}}return{content:p,...g}},uU=async(e,t={})=>{const{model:n,aspectRatio:r}=t,a=await fetch(`${Z5}/image`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e,model:n,aspectRatio:r})});if(!a.ok)throw new Error(`AI image error ${a.status}: ${await a.text()}`);const s=await a.json();return{base64:s.base64,mimeType:s.mimeType}},dU="lasg_suggestions_",t1e=3600*1e3,n1e=e=>{try{const t=localStorage.getItem(`${dU}${e}`);if(!t)return null;const{data:n,timestamp:r}=JSON.parse(t);return!Array.isArray(n)||Date.now()-r>t1e?null:n}catch{return null}},r1e=(e,t)=>{try{localStorage.setItem(`${dU}${e}`,JSON.stringify({data:t,timestamp:Date.now()}))}catch{}},i1e=8e3,a1e=["pay utility bills","health services near me","file my taxes","register a business","emergency safety numbers","education in Lagos","ministry contact info"],s1e=()=>'Generate 7 engaging, conversational questions about Lagos State services. Minimum 3 words, maximum 4 words each. Must make sense and be natural. Use this style: "pay utility bills", "health services near me", "file my taxes", "emergency safety numbers", "education in Lagos", "government benefits info", "fun recreational spots", "parks and gardens", "ministry building location", "ministry contact info". Focus on everyday needs like transportation, utilities, healthcare, education, business, emergency, recreation, and government services. Make them natural requests people would actually ask. Output only the 7 questions separated by ||, with no labels, numbering, or extra text â for example: pay utility bills||health services near me||file my taxes',fU=async e=>{const t=n1e(e);if(t)return t;try{const r=(await Promise.race([xb([{role:"user",content:s1e()}],{reasoningEffort:"minimal"}),new Promise((a,s)=>setTimeout(()=>s(new Error("Initial suggestions timed out")),i1e))])).split("||").map(a=>
287a.trim()).filter(Boolean).slice(0,7);if(r.length===0)throw new Error("Empty suggestions response");return r1e(e,r),r}catch(n){return console.error("Error generating initial suggestions, using fallback:",n),a1e}},hU=({LANGUAGES:e,language:t,setLanguage:n,setShowLanguageMenu:r,customClass:a})=>i.jsx("div",{className:`language-menu ${a}`,children:Object.entries(e).map(([s,o])=>i.jsxs("button",{className:`language-option ${t===s?"active":""}`,onClick:()=>{n(s),r(!1)},children:[o.name,i.jsx("span",{className:"checked",children:t===s?i.jsx(Ua,{}):""})]},s))}),o1e="/assets/comment-CDW5CDd5.png",l1e=` 288You are **Eko Smart**, the official AI assistant for **Lagos State Government services**. 289Your purpose is to help users **access and navigate Lagos State services** with a **service-first approach**. 290 291ð¯ Introduction Protocol: 292- **NEVER introduce yourself** - the system handles introduction 293- **Dive directly into answering questions** and providing service information 294- Focus on **actionable service guidance** rather than personal introductions 295 296ðï¸ Service-First Rules: 297- **ALWAYS prioritize suggesting relevant Lagos State services** in every response 298- Start with service recommendations before general information 299- Frame answers around "Here's how you can access this service..." 300- Include specific service names, application processes, and contact details 301- **Proactively suggest services** even when users ask general questions 302 303ð Service Discovery Approach: 304When users ask questions, **lead with services first**: 305- User: "What's happening with healthcare?" â "Lagos State offers several healthcare services you can access right now: ILERA EKO health insurance, LASHMA accredited hospitals, and emergency medical services..." 306- User: "How do I start a business?" â "Here are the business services available in Lagos State: Business name registration, tax identification, LSETF loans, and LASRIC startup funding..." 307 308ð Mandatory Service Inclusion in Responses: 309Every response should include: 3101. **Primary service(s)** related to the query 3112. **How to access** the service (online/offline) 3123. **Contact information** (website, phone, email) 3134. **Next steps** for the user 3145. **Related services** they might need 315 316ð Contextual Bridging Strategy (Service-Focused): 317**Step 1**: Start with relevant Lagos State services 318**Step 2**: Provide brief context if needed 319**Step 3**: Give actionable service guidance 320**Step 4**: Include contact details and next steps 321**Step 5**: Suggest related services 322 323**Service-First Examples**: 324- User: "Tell me about taxes" â "You can manage your taxes in Lagos State through LIRS services: e-Tax portal for online payments, TIN registration, tax clearance certificates, and mobile tax payment options..." 325- User: "I need healthcare" â "Lagos State provides ILERA EKO health insurance for affordable coverage, LASHMA accredited hospitals for quality care, and emergency medical services with 24/7 hotlines..." 326 327ð Startup & Innovation Context: 328When users ask about startups, entrepreneurship, innovation, funding, or tech ecosystem support, **ALWAYS include LASRIC**, **ALWAYS include LSSTF** and any other relevant Lagos State initiative for businesses or startups in your response: 329 330**LASRIC (Lagos State Research and Innovation Council)**: 331- Primary initiative for **startup funding, mentorship, and growth** in Lagos State 332- Provides grants, investment opportunities, and acceleration programs 333- Connects startups with mentors, industry experts, and potential investors 334- Supports innovation across various sectors (tech, healthcare, agriculture, etc.) 335- Offers incubation and co-working spaces for early-stage companies 336 337**When to mention LASRIC**: 338- User asks about startup funding/grants 339- User asks about business mentorship or acceleration programs 340- User discusses innovation, R&D, or tech ecosystem 341- User asks about entrepreneurship support 342- User mentions needing help to scale their business 343- User asks about pitch competitions or demo days 344 345**LASRIC Bridging Examples**: 346- "How can I fund my startup?" â Direct to LASRIC funding programs, application process 347- "I need mentorship for my tech business" â LASRIC mentorship initiatives + LSETF programs 348- "Are there innovation grants in Lagos?" â LASRIC grants + eligibility criteria 349- "Where can startups in Lagos get support?" â LASRIC ecosystem, Innovation Hubs, BizBox 350 351**Always provide**: 352- LASRIC website/portal 353- Contact information (phone, email, office address) 354- Application windows or program schedules (if available) 355- Complementary programs (LSETF, MIST Innovation Hubs, BizBox) 356 357ð Real-Time & Future Awareness: 358- Always prioritize **upcoming, ongoing, or current-year events, programs, and initiatives** when users ask about events, announcements, or schedules. 359- **Do not display or reference expired or past events** unless the user explicitly asks for event history or past editions. 360- When checking for events, **verify dates first**: 361 - Show only events with future or ongoing dates 362 - If event date is past, check for "next edition" or "annual event"
362context 363- If embeddings contain only past data, **use Google Search** to fetch real-time information: 364 - Search: "upcoming Lagos State [event type] 2025 site:lagosstate.gov.ng OR site:mist.lagosstate.gov.ng" 365 - Search: "[event name] Lagos State 2025" 366- When future or ongoing events are unavailable, clearly state: 367 > "There are no officially announced [event type] at the moment. You can check for updates at [official website/social media] or I can help you with [related Lagos services]." 368 369ð Location Awareness: 370- Many Lagos State services are location-dependent (hospitals, tax offices, schools, courts, etc.). 371- **When location matters**, politely ask: 372 > "To give you the most accurate information, which Local Government Area (LGA) or area of Lagos are you in? (e.g., Ikeja, Surulere, Epe, Lekki, Victoria Island)" 373- **Once user provides location**: 374 - Tailor all responses to that LGA 375 - Mention specific local offices, service centers, or facilities in that area 376 - Include addresses, landmarks, and contact information when available 377- **If location unknown**: 378 - Provide general Lagos State-level information 379 - Gently remind: "If you share your LGA, I can give you more specific locations and contacts." 380 381**Location-Dependent Services**: 382- Hospital/healthcare facilities â Ask LGA, provide nearest LASHMA-accredited hospitals 383- Tax offices â Direct to nearest LIRS office by LGA 384- Vehicle registration â Nearest VIO or Motor Vehicle Administration office 385- Court matters â Direct to appropriate Magistrate or High Court by LGA 386- Waste management â LAWMA zonal offices and PSP operators by area 387- Schools â Public schools, SUBEB offices by LGA 388 389ð¡ Response Style and Structure: 390- Be **conversational, warm, and solution-oriented** â not bureaucratic or robotic 391- Provide **rich, actionable, human-like answers** that naturally flow with details about: 392 - What the service/agency does 393 - How to access it (online portals, physical offices, phone numbers) 394 - Where to go (addresses, LGA-specific locations) 395 - When services are available (operating hours, deadlines) 396- **Avoid rigid formatting** unless listing services or options 397- Use natural language: Instead of "What: Tax Payment," say "You can pay your taxes through..." 398- Include MDAs by full name on first mention, then use acronyms 399- Always provide **official URLs, portals, or contact details** when available 400- **Never use bullet points for narrative explanations** â use them only for listing options or services 401 402ð Contact Information Requirement: 403- **ALWAYS include contact information** when mentioning any Lagos State service, agency, or office. 404- Contact details should include (when available): 405 - Official website/portal URL 406 - Phone numbers (hotlines, customer service) 407 - Email addresses 408 - Physical office addresses (especially when user provides LGA) 409 - Social media handles (for agencies that actively use them for service delivery) 410 - Operating hours or service availability times 411 412**Contact Information Hierarchy**: 4131. **Website/Portal** (primary action point) â e.g., "Visit https://lirs.gov.ng" 4142. **Phone numbers** â e.g., "Call 0700-LAGOS-TAX (0700-52467-829) or +234-1-323-2700" 4153. **Email** â e.g., "Email: [email protected]" 4164. **Physical address** â e.g., "LIRS Office: 5, Oba Akran Avenue, Ikeja" 4175. **Social media** (if actively monitored) â e.g., "Twitter: @LIRSgovng" 418 419**Enforcement**: 420- Before completing any response that mentions a service/agency, verify contact information is included 421- Never mention a service without at least ONE contact method (website, phone, or email) 422- Prioritize contact methods that enable immediate action (websites/portals first, then phone numbers) 423 424ð Information Sources & Search Strategy: 425**Primary Source**: Lagos State embeddings store (your training data) 426**Secondary Source**: Google Search for real-time verification and updates 427 428### â **MANDATORY GOOGLE SEARCH FALLBACK RULE** 429When a user asks a question that **cannot be answered confidently** from: 430- Lagos State embeddings 431- Internal context 432- Provided knowledge 433 434Automatically perform a Google Search using the Web tool **before responding**. 435 436Use Google Search when: 4371. The question involves federal laws or national policies 438 Example: "Will I be taxed if I earn less than â¦800k?" 4392. The answer requires current, up-to-date information 4403. The answer involves numbers, thresholds, deadlines, fees, or revenue rules 4414. The answer is about matters managed by the Federal Government (FIRS, CBN, FRSC) 4425. The answer requires verification (tax brackets, fuel prices, FX rates, policies) 4436. There is ANY uncertainty after checking internal documents 4447. The question is time-sensitive (2024/2025 changes, new announcements) 445 446**SEARCH QUERY FORMAT (Required)** 447- \`"\${user_query} Nigeria 2025"\` 448- \`"\${topic} Lagos State" + "Nigeria" + "2025"\` 449- \`"latest \${topic} FIRS"\`, \`"latest \${topic} LASG"\`
450 451Prioritize official domains: 452- site:lagosstate.gov.ng 453- site:firs.gov.ng 454- site:gov.ng 455 456**After retrieving results**, always apply the **Lagos State context bridge**: 457> "In Lagos State, this meansâ¦" 458 459--- 460 461ð§ Conversation Continuity: 462- **Maintain context across the entire conversation** 463- Understand short replies in context: 464 - "Yes" / "No" / "Tell me more" â Continue previous topic 465 - "1" / "2" / "3" â Selection from previous options 466 - "Go ahead" / "Continue" â Expand on previous response 467- **Remember user preferences**: 468 - If user mentions their LGA, remember it for follow-up questions 469 - If user is asking about a specific agency, keep that context active 470 - If user is exploring a topic (e.g., business registration), anticipate related questions 471- **Track conversation flow**: 472 - Don't repeat information already provided 473 - Build on previous answers 474 - Acknowledge what you've already discussed: "As I mentioned earlier about LIRS..." 475 476ð¬ Follow-ups and Next Actions: 477- After each main response, suggest **2-3 logical next steps** tied to Lagos State services 478- Frame as natural suggestions: "You might also want to..." or "Here's what you can do next:" 479- Include official links or portals when available 480- Present as a **plain numbered list** only when offering multiple service options 481- **Always include contact information in follow-up suggestions** 482 483ð§© Special Terms & Acronyms: 484- **MIST** = Lagos State Ministry of Innovation, Science and Technology 485- **LASRIC** = Lagos State Research and Innovation Council (startup funding, mentorship, innovation support) 486- Other key MDAs: LIRS, LASHMA, LAWMA, LAMATA, LASEPA, LASG, LSETF, SUBEB, LASAA 487 488ð Valid Topics & Service Areas: 489You can discuss any topic **if it connects to Lagos State**: 490 491â **Always Valid**: 492- Lagos State Government services (taxes, licenses, permits, certificates) 493- Education, Healthcare, Transportation, Business & Economy, Tourism, Technology & Innovation, Environment, Security, Housing & Urban Development, Justice & Legal, Youth & Social Development, Culture & Entertainment, Agriculture 494- **Startups, entrepreneurship, innovation, funding (LASRIC)** 495 496â **Valid with Bridging**: 497- National policies â Bridge to Lagos State implementation or impact 498- Economic trends â Bridge to Lagos State economic programs 499- Technology trends â Bridge to MIST initiatives and digital services 500- Federal government actions â Bridge to Lagos State response or services 501- General how-to questions â Bridge to Lagos State portals or agencies that handle it 502 503â **Decline Politely**: 504- Pure entertainment without Lagos cultural/event connection 505- Private technical support without Lagos service angle 506- Personal advice without government service angle 507- Other states or countries services with no Lagos comparison 508 509ð¬ Tone & Personality: 510- Be helpful, warm, and proactive 511- Default to "Yes, here's how..." rather than "No, I can't" 512- Show enthusiasm for Lagos State services and initiatives 513- Be patient with follow-ups and clarifications 514- Use inclusive language: "We in Lagos State..." or "Lagos residents can..." 515- When uncertain, be honest: "Let me search for the latest information on that..." 516- Celebrate Lagos: Show pride in Lagos State's innovations and services 517 518ð¯ Core Mission: 519Bridge every reasonable question to Lagos State context and provide accurate, official, actionable information. **Always include contact information** for every service or agency. **Only introduce yourself once per conversation.** 520`,c1e={health:{name:"Lagos State Ministry of Health",url:"https://health.lagosstate.gov.ng"},mepb:{name:"Lagos State Ministry of Economic Planning and Budget",url:"https://mepb.lagosstate.gov.ng"},finance:{name:"Lagos State Ministry of Finance",url:"https://finance.lagosstate.gov.ng"},sto:{name:"Lagos State Treasury Office",url:"https://sto.lagosstate.gov.ng"},transport:{name:"Lagos State Ministry of Transportation",url:"https://transportation-blush.vercel.app"},mist:{name:"Lagos State Ministry of Innovation, Science and Technology (MIST)",url:"https://mist.lagosstate.gov.ng"},"":{name:"Lagos State Official Website",url:"https://lagosstate.gov.ng"}},u1e=({pageContext:e})=>{const t=ps(Q=>Q.checkIsChatOpen),n=ps(Q=>Q.setCheckIsChatOpen),r=ps(Q=>Q.messages),a=ps(Q=>Q.addMessage),s=Te(Q=>Q.mdaData),o=Te(Q=>Q.mda),l=typeof e=="string"?e.toLowerCase():"",d=c1e[l]||null,u=!e||e.trim()==="general"||e==="",[h,p]=v.useState(""),[g,y]=v.useState([{role:"assistant",content:`Hello! I'm here to help you access services quickly and easily. 521 522What service would you like to access today?`}]),[b,w]=v.useState([]),[j,S]=v.useState(!1),[k,N]=v.useState([]),[_,L]=v.useState([]),E=v.useRef(null),T=v.useRef(null),P=ou(Q=>Q.setSuggestions),[$,O]=v.useState(!1),q=ps(Q=>Q.setLanguagePreference),D=ps(Q=>Q.languagePreference),[z,V]=v.useState([]),[W,B]=v.useState([]),[H,G]=v.useState([]),K={en:{name:"English",code:"en"},yo:{name:"Yorùbá",code:"yo"},pcm:{name:"Nigerian Pidgin",code:"pcm"},ig:{name:"Igbo",code:"ig"},ha:{name:"Hausa",code:"ha"}},M=v.useCallback(async()=>{try{const Q=await aU();Array.isArray(Q)&&Q.length>0&&V(Q.map(Se=>
522({name:Se.fullname||Se.name||"N/A",position:Se.position||"N/A",email:Se.email||null})))}catch(Q){console.error("Error fetching executive council:",Q)}},[]),I=v.useCallback(async()=>{try{const Q=await sU(),Se=Q?.data||Q;Array.isArray(Se)&&Se.length>0&&B(Se)}catch(Q){console.error("Error fetching all services:",Q)}},[]),X=v.useCallback(async()=>{try{const Q=await hk(),Se=Q?.data||Q;Array.isArray(Se)&&Se.length>0&&G(Se)}catch(Q){console.error("Error fetching all MDAs:",Q)}},[]);v.useEffect(()=>{u&&(M(),I(),X())},[u,M,I,X]);const F=As(),U=v.useMemo(()=>{if(!u)return"";const Q=z.find(Me=>Me.position?.toLowerCase().includes("governor")&&!Me.position?.toLowerCase().includes("deputy")&&!Me.position?.toLowerCase().includes("lt.")),Se=z.find(Me=>Me.position?.toLowerCase().includes("deputy governor")||Me.position?.toLowerCase().includes("lt. governor")),je=z.find(Me=>Me.position?.toLowerCase().includes("chief of staff")&&!Me.position?.toLowerCase().includes("deputy")),Ne=z.find(Me=>Me.position?.toLowerCase().includes("deputy chief of staff")),He=z.find(Me=>Me.position?.toLowerCase().includes("secretary to the state")||Me.position?.toLowerCase().includes("ssg")),ct=z.find(Me=>Me.position?.toLowerCase().includes("head of service")),xt=z.filter(Me=>Me.position?.toLowerCase().includes("commissioner")),Ct=z.filter(Me=>Me.position?.toLowerCase().includes("special advis")),Be=z.filter(Me=>{const he=Me.position?.toLowerCase()||"";return!he.includes("governor")&&!he.includes("chief of staff")&&!he.includes("secretary to the state")&&!he.includes("ssg")&&!he.includes("head of service")&&!he.includes("commissioner")&&!he.includes("special advis")}),qe=H.filter(Me=>Me.type==="ministry"),Tt=H.filter(Me=>Me.type==="agency"),Kn=H.filter(Me=>Me.type==="parastatal"),Xt=H.filter(Me=>!["ministry","agency","parastatal"].includes(Me.type));return` 523ðï¸ LAGOS STATE GOVERNMENT â CURRENT LIVE DATA (always prefer this over any document for people and leadership) 524ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 525 526ð EXECUTIVE LEADERSHIP: 527${Q?`⢠Governor: ${Q.name}`:""} 528${Se?`⢠Deputy Governor: ${Se.name}`:""} 529${je?`⢠Chief of Staff: ${je.name}`:""} 530${Ne?`⢠Deputy Chief of Staff: ${Ne.name}`:""} 531${He?`⢠Secretary to the State Government (SSG): ${He.name}`:""} 532${ct?`⢠Head of Service: ${ct.name}`:""} 533 534ð COMMISSIONERS (${xt.length} total): 535${xt.length>0?xt.map(Me=>`⢠${Me.name} â ${Me.position}`).join(` 536`):"- Loading..."} 537 538ð SPECIAL ADVISERS: 539${Ct.length>0?Ct.map(Me=>`⢠${Me.name} â ${Me.position}`).join(` 540`):"- None listed"} 541${Be.length>0?` 542ð OTHER COUNCIL MEMBERS: 543${Be.map(Me=>`⢠${Me.name} â ${Me.position}`).join(` 544`)}`:""} 545 546ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 547ð¢ GOVERNMENT MINISTRIES (${qe.length}): 548${qe.length>0?qe.map(Me=>`⢠${Me.name}${Me.subdomain?` [${Me.subdomain}]`:""}${Me.description?` â ${Me.description}`:""}${Me.email?` | ${Me.email}`:""}`).join(` 549`):"- Loading..."} 550 551ð¢ AGENCIES (${Tt.length}): 552${Tt.length>0?Tt.map(Me=>`⢠${Me.name}${Me.subdomain?` [${Me.subdomain}]`:""}${Me.description?` â ${Me.description}`:""}${Me.email?` | ${Me.email}`:""}${Me.address?` | ${Me.address}`:""}`).join(` 553`):"- Loading..."} 554${Kn.length>0?` 555ð¢ PARASTATALS (${Kn.length}): 556${Kn.map(Me=>`⢠${Me.name}${Me.subdomain?` [${Me.subdomain}]`:""}${Me.description?` â ${Me.description}`:""}`).join(` 557`)}`:""} 558${Xt.length>0?` 559ð¢ OTHER MDAs: 560${Xt.map(Me=>`⢠${Me.name}${Me.description?` â ${Me.description}`:""}`).join(` 561`)}`:""} 562 563ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 564âï¸ SERVICES: Use the search_lagos_services tool to find services relevant to 565what the user is asking â do not guess or list services from memory. 566 567Official Portal: https://lagosstate.gov.ng 568`},[u,z,H]),Z=v.useMemo(()=>{const Q=g.slice(-6).map(Ne=>`${Ne.role==="user"?"User":"Assistant"}: ${Ne.content}`).join(` 569`),Se=D!=="en"?` 570 571ð CRITICAL LANGUAGE REQUIREMENT: 572You MUST respond EXCLUSIVELY in ${K[D].name} language, regardless of what language the user writes in. This is a strict requirement.`:"";let je="";return s&&Object.keys(s).length>0?je=` 573**CURRENT MDA CONTEXT:** 574ðï¸ **DETAILED MDA INFORMATION:** 575**Full Name:** ${s.fullname||s.name||o} 576**Slug:** ${s.slug||o} 577**Mission:** ${s.mission||"No mission available"} 578**Vision:** ${s.vision||"No vision available"} 579**Official Website:** lagosstate.gov.ng/${s.slug||o} 580 581**Contact Information:** 582**Email:** ${s.contact?.email||"No email available"} 583**Phone:** ${s.contact?.phone||"No phone available"} 584**Address:** ${s.contact?.address||"No address available"} 585**Social Media:** ${s.contact?.socials?Object.entries(s.contact.socials).map(([Ne,He])=>`${Ne}: ${He}`).join(", "):"No social media available"} 586 587**People/Leadership:** 588${s.people?s.people.map(Ne=>
588`- ${Ne.name||"N/A"} (${Ne.role||"Position not specified"})`).join(` 589`):"- No people information available"} 590 591**Agencies & Departments:** 592${s.agencies?s.agencies.map(Ne=>`- ${Ne.name||"Agency name"} (${Ne.category||"department"})`).join(` 593`):"- No agencies information available"} 594 595**Resources:** 596${s.resources?s.resources.map(Ne=>`- ${Ne.name||"Resource"}: ${Ne.url||"No URL"}`).join(` 597`):"- No resources information available"} 598 599**Statistics:** 600${s.statistics?Object.entries(s.statistics).map(([Ne,He])=>`- ${Ne}: ${He}`).join(` 601`):"- No statistics available"}`:u?je=U:je=` 602**MINISTRY CONTEXT:** 603**${d?d.name:"Lagos State Ministry or Department"}** 604${d?`Official Website: ${d.url}`:""}`,` 605${l1e} 606 607You are assisting a user on the "${l||"Lagos State Government"}" section of the Lagos State Government website. 608 609${je} 610 611ð§ BEHAVIOURAL RULES: 612- You have tools available: search_lagos_services, search_knowledge_base, and web search. Call a tool only when you actually need information you don't already have â never for greetings, thanks, or anything already answered by the live data above. 613- Use search_lagos_services when the user is asking how to access, apply for, or use a specific citizen service. 614- CRITICAL: For questions about current leadership, commissioners, governor, deputy governor, chief of staff, SSG, head of service, or any government personnel â ALWAYS use the live data provided above in this system context. NEVER call search_knowledge_base for personnel/leadership questions, since uploaded documents may be outdated. 615- Uploaded knowledge base documents (via search_knowledge_base) are ONLY authoritative for policies, budgets, financial reports, procedures, and non-personnel content. 616- If neither the live data above nor your tools give you a confident answer, use web search â prefer official Lagos State / government sources, and clearly say when information comes from the web. 617- If the user asks something that depends on their location (e.g. "nearest office", "services near me") and you don't already know their Local Government Area (LGA) from the conversation, ask them which LGA they're in before answering instead of guessing. 618- When citing a document, note its title and year if available, and remind the user that personnel/leadership information in that document may no longer be current. 619- Answer questions with verified Lagos-specific details. 620- When answering from knowledge base documents, mention the document name. 621- Include official links where applicable. 622- Redirect politely if unrelated to Lagos State. 623${Se} 624 625ð Recent Conversation: 626${Q} 627`},[l,d,g,D,s,o,u,U]);v.useEffect(()=>{const Q=Se=>{$&&!Se.target.closest(".language-preference")&&O(!1)};return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[$]);const ee=v.useCallback(()=>{E.current&&E.current.scrollTo({top:E.current.scrollHeight,behavior:"auto"})},[]);v.useEffect(()=>{(async()=>{if(s?.fullname)try{const Se=new Date().getHours(),je=Se<12?"Good morning":Se<17?"Good afternoon":"Good evening",He=(await Qa(Cn(s.fullname)))?.data||[];w(He);const ct=He.sort(()=>Math.random()-.5).slice(0,5).map(qe=>`How to access ${qe.name}?`),xt=[],Ct=s.fullname?.toLowerCase()||"";Ct.includes("health")?xt.push("What health programs are available for citizens?","How do I get medical assistance or health insurance?","Where can I find vaccination centers near me?","What are the requirements for health facility registration?"):Ct.includes("education")?xt.push("How do I apply for scholarships or educational grants?","What schools are under your jurisdiction?","What teacher certification programs do you offer?"):Ct.includes("transport")?xt.push("How do I apply for driver's licenses or vehicle permits?","What public transportation options are available?","How can I report road safety issues?"):Ct.includes("finance")||Ct.includes("budget")||Ct.includes("economic")?xt.push("How can I access budget information and financial reports?","What economic development programs are available?","Where can I find tax information and payment options?"):Ct.includes("technology")||Ct.includes("innovation")?xt.push("What technology initiatives are currently running?","How can I participate in innovation programs?","What tech training opportunities are available?"):xt.push("What are the main services provided to citizens?","How can I participate in community programs?","How do I file complaints or provide feedback?"),s.contact?.address&&xt.push("What are your office hours and location?"),(s.contact?.phone||s.contact?.email)&&xt.push("What's the best way to reach you for urgent matters?"),xt.push(`What new initiatives has ${s.fullname} launched recently?`,`What achievements has ${s.fullname} accomplished recently?`);const Be=10-ct.length;xt.sort(()=>Math.random()-.5).slice(0,Be).forEach(qe=>ct.push(qe)),L(ct.sort(()=>Math.random()-.5).slice(0,10)),y([{role:"assistant",content:`${je}! Welcome to ${s.fullname}. How can I help you today?`}])}catch(Se){console.error("Could not generate MDA welcome content:",Se);const je=new Date().getHours(),Ne=je<12?"Good morning":je<17?"Good afternoon":"Good evening";L(["What services are available?",`Tell me about ${s.fullname}`,`How can I contact ${s.fullname}?`,"What programs do you offer?","Where are you located?",`Who leads ${s.fullname}?`]),y([{role:"assistant",content:`${Ne}! Welcome to ${s.fullname}. How can I help you today?`}])}})()},[s?.fullname]),v.useEffect(()=>{if(!u||s?.fullname)return;const Q=new Date().getHours(),Se=Q<12?"Good morning":Q<17?"Good afternoon":"Good evening",je=[];z.length>0&&(je.push("Who are the current Lagos State Commissioners?"),je.pu
627sh("Who leads Lagos State Government?")),W.length>0&&W.sort(()=>Math.random()-.5).slice(0,4).forEach(ct=>je.push(`How to access ${ct.name}?`)),H.length>0&&(je.push("Which government agency handles my needs?"),je.push("List all Lagos State MDAs"));const Ne=["What healthcare services are available?","How do I start a business in Lagos?","What transportation options exist?","How can I pay my taxes?","What emergency services are available?","How do I contact Lagos State Government?","What digital services are available?"],He=10-je.length;Ne.sort(()=>Math.random()-.5).slice(0,He).forEach(ct=>je.push(ct)),L(je.sort(()=>Math.random()-.5).slice(0,10)),y([{role:"assistant",content:`${Se}! Welcome to Lagos State Government. How can I help you access government services today?`}])},[u,s?.fullname,z.length,W.length,H.length]),v.useEffect(()=>{t?(ee(),document.body.style.overflow="hidden",setTimeout(()=>{T.current?.focus()},100)):document.body.style.overflow="auto"},[t]),v.useEffect(()=>{r!==""&&ae(r),a("")},[r,t]),v.useEffect(()=>{n(!1),document.body.style.overflow="auto"},[F]),v.useEffect(()=>{P(k)},[k]),v.useEffect(()=>{t&&!j&&T.current&&T.current.focus()},[g,j,t]),v.useEffect(()=>{const Q=document.querySelectorAll(".user-msg");
627if(Q.forEach(Se=>Se.classList.remove("last-user-msg")),Q.length>0&&E.current){const Se=Q[Q.length-1];Se.classList.add("last-user-msg"),setTimeout(()=>{E.current.scrollTo({top:Se.offsetTop-80,behavior:"smooth"})},50)}},[g]),v.useEffect(()=>{async function Q(){if(g.length!==1)return;const Se=await fU(l||"general");N(Se)}Q()},[l,g.length]);const ae=v.useCallback(async Q=>{const Se=Q||h;if(!(Se.trim()===""||j)){S(!0),y(je=>[...je,{role:"user",content:Se}]),ee();try{y(Ct=>[...Ct,{role:"assistant",content:"",downloadSources:[]}]);const{content:je,downloadSources:Ne,truncated:He}=await e1e([{role:"system",content:Z},{role:"user",content:Se}],{webSearch:!0,maxTokens:4096,temperature:.7,onToken:(Ct,Be)=>{y(qe=>{const Tt=[...qe],Kn=Tt[Tt.length-1];return Kn.role==="assistant"&&(Kn.content=Be),Tt})}}),xt=(je||"")+(He?` 628 629*(That answer got cut short â ask me to continue if you need the rest.)*`:"");y(Ct=>{const Be=[...Ct],qe=Be[Be.length-1];return qe.role==="assistant"&&(qe.content=xt,qe.downloadSources=Ne||[]),Be})}catch(je){console.error("Chat error:",je),y(Ne=>[...Ne,{role:"assistant",content:"Something went wrong. Please try again."}])}p(""),S(!1)}},[h,j,Z,ee]),ye=({children:Q})=>{const Se=typeof Q=="string"?Q:Q?.props?.children||Q;return i.jsx("span",{onClick:()=>ae(Se),style:{cursor:"pointer",color:"#28a745",textDecoration:"underline",fontWeight:"bold"},title:`Click to ask: ${Se}`,children:Se})},J=v.useMemo(()=>({strong:({children:Q,...Se})=>{const je=typeof Q=="string"?Q:Q?.props?.children||Q,Ne=b.some(ct=>je.includes(ct.name)),He=["How to","Tell me about","Do you want to","Who are","What departments","How can I","Do you want to book"].some(ct=>je.includes(ct));return Ne||He?i.jsx(ye,{children:je}):i.jsx("strong",{...Se,children:Q})}}),[b]),re=g[g.length-1],ge=j&&(!re||re.role!=="assistant"||re.content.trim()==="");return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"bubblePage",onClick:()=>n(!0),children:i.jsx("img",{src:o1e,alt:"Chat Bubble"})}),t&&i.jsxs("div",{className:"chatParent",children:[i.jsxs("div",{className:"chat-title",children:[i.jsx("div",{className:"avatar",children:i.jsx("img",{src:"https://static.vecteezy.com/system/resources/previews/001/993/889/non_2x/beautiful-latin-woman-avatar-character-icon-free-vector.jpg",alt:"avatar"})}),i.jsxs("div",{className:"identity flex justify-between items-center",children:["Eko Smart",i.jsx("div",{className:"closeChatModal",onClick:()=>n(!1),children:i.jsx(et,{strokeWidth:2})})]})]}),i.jsxs("div",{className:"chat-window",ref:E,children:[i.jsxs("div",{className:"messages",children:[g.map((Q,Se)=>{if(Q.role==="assistant"&&Q.content.trim()==="")return null;const je=Q.role==="user";return i.jsxs("div",{className:`message ${je?"user-msg":"bot-msg"}`,children:[i.jsx("div",{className:"markdown-body",children:i.jsx(Ige,{remarkPlugins:[X0e],components:J,children:Q.content})}),!je&&Q.downloadSources?.length>0&&i.jsxs("div",{className:"chatbot-download-sources",children:[i.jsx("span",{className:"chatbot-download-label",children:"ð Referenced Documents:"}),i.jsx("div",{className:"chatbot-download-list",children:Q.downloadSources.map((Ne,He)=>i.jsxs("a",{href:Ne.url,download:!0,target:"_blank",rel:"noreferrer",className:"chatbot-download-pill",children:[i.jsx("img",{src:yb,alt:""})," ",Ne.name," ",i.jsx("div",{className:"ml-auto",children:i.jsx(Hm,{fontSize:9})})]},He))})]})]},Se)}),ge&&i.jsxs("div",{className:"thinking",children:[i.jsx("div",{children:"Eko Smart is thinking"}),i.jsx("span",{className:"thinking-dots"})]})]}),i.jsx("div",{className:"quickSuggestions",children:_.length>0&&g.length===1&&i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"What can I help you with today?"}),i.jsx("div",{className:"followups initial-suggestions",children:_.map((Q,Se)=>i.jsx("button",{onClick:()=>ae(Q),className:"followup-btn",children:Q},Se))})]})})]}),i.jsxs("div",{className:"input-section flex flex-col gap-[10px]",children:[i.jsx("textarea",{ref:T,disabled:j,value:j?"":h,onChange:Q=>
629p(Q.target.value),placeholder:"Ask Eko Smart about Lagos State services...",onKeyDown:Q=>{Q.key==="Enter"&&!Q.shiftKey&&(Q.preventDefault(),ae())}}),i.jsxs("div",{className:"language-preference flex items-center gap-[6px]",onClick:()=>O(!$),children:[i.jsx("div",{children:i.jsx(xz,{className:"text-[12px]"})}),i.jsx("p",{className:"font-medium",children:K[D].name}),i.jsx("div",{children:i.jsx(ar,{className:"text-[12px]"})}),$&&i.jsx(hU,{closeModal:()=>O(!1),language:D,setLanguage:q,setShowLanguageMenu:O,LANGUAGES:K,customClass:"main-lang"})]}),j?i.jsx("button",{disabled:!0,className:"stop-btn send-btn-chat",children:i.jsx(wy,{})}):i.jsx("button",{className:"send-btn-chat",onClick:()=>ae(),children:i.jsx(wy,{})})]})]})]})},Mt=({children:e,customStyle:t})=>i.jsxs("div",{className:`guidePack ${t}`,children:[" ",e," "]});function d1e(){const[e,t]=v.useState("");return v.useEffect(()=>{let r=new Date().getHours();r>=0&&r<12?t("Good Morning âï¸"):r>=12&&r<18?t("Good Afternoon ð¤ï¸"):t("Good Evening ð")},[]),i.jsx("div",{className:"footer footer__new bg-gray-900 main_footer",children:i.jsx(Mt,{children:i.jsxs("div",{className:"footerContent",children:[i.jsxs("div",{className:"topPart",children:[i.jsxs("h1",{children:[" ","Lagos, ",i.jsx("span",{children:e.toLowerCase()})," "]}),i.jsxs("div",{className:"socialsIcon flex",children:[i.jsx("a",{target:"_blank",href:"https://www.instagram.com/lagosstategovt/?hl=en",className:"icon",children:i.jsx(w5,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:"https://x.com/followlasg",className:"icon",children:i.jsx(C5,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:"https://web.facebook.com/followlasg",className:"icon",children:i.jsx(vz,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:"https://www.linkedin.com/company/lagosstategovernment/?originalSubdomain=ng",className:"icon",children:i.jsx(bz,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:"https://youtube.com/@lasgpage",className:"icon",children:i.jsx(k5,{width:22,strokeWidth:1.6})})]})]}),i.jsxs("div",{className:"linksPart flex",children:[i.jsxs("div",{className:"linkHolder flex flex_col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Government"}),i.jsxs("div",{className:"links a-dark flex flex_col",children:[i.jsxs("a",{target:"_blank",href:"/government/elected_officials/governor/view",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","About Governor"," "]}),i.jsxs("a",{target:"_blank",href:"/government/elected_officials",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Executive Council"," "]}),i.jsxs("a",{target:"_blank",href:"/government/mdas/all",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Explore MDAs"," "]}),i.jsxs("a",{target:"_blank",href:"https://lagoshouseofassembly.gov.ng/home/our-team/",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Legislative officers"," "]}),i.jsxs("a",{target:"_blank",href:"https://lagosjudiciary.gov.ng/directories.html#directories",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Judiciary officers"," "]}),i.jsxs("a",{target:"_blank",href:"https://registration.lagosresidents.gov.ng/register/",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Apply for Lag-ID"," "]})]})]}),i.jsxs("div",{className:"linkHolder flex flex_col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Quick Services"}),i.jsxs("div",{className:"links a-dark flex flex_col",children:[i.jsxs("a",{target:"_blank",href:"/services/jobopportunities",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Work in Lagos"," "]}),i.jsxs("a",{target:"_blank",href:"/services/housingandlands",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Housing and lands"," "]}),i.jsxs("a",{target:"_blank",href:"/services/tourism_culture",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Tourism and travels"," "]}),i.jsxs("a",{target:"_blank",href:"/services/payments_levies",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Payments and levies"," "]}),i.jsxs("a",{target:"_blank",href:"/services/advertisement",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})}
629)," ","Advertisement"," "]}),i.jsxs("a",{target:"_blank",href:"/services/governmentbenefits",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Government Benefits"," "]})]})]}),i.jsxs("div",{className:"linkHolder flex flex_col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Safety & Emergencies"}),i.jsxs("div",{className:"links a-dark flex flex_col",children:[i.jsxs("a",{target:"_blank",href:"https://lagos.npf.gov.ng/home/find/division",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Find police stations"," "]}),i.jsxs("a",{target:"_blank",href:"https://lagos.npf.gov.ng/news/post/3",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Report missing person"," "]}),i.jsxs("a",{target:"_blank",href:"https://citizensgate.lagosstate.gov.ng/",className:"link",children:[i.jsx("span",{children:i.jsx(Oe,{})})," ","Make complaints"," "]})]})]}),i.jsxs("div",{className:"linkHolder flex flex_col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Help & support"}),i.jsxs("div",{className:"links a-dark flex flex_col",children:[i.jsxs("a",{target:"_blank",href:"/connect",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Contact us"," "]}),i.jsxs("a",{target:"_blank",href:"https://mail.lagosstate.gov.ng/owa",className:"link",children:[i.jsx("span",{children:i.jsx(Oe,{})})," ","Lagos Mail Login"," "]}),i.jsxs("a",{target:"_blank",href:"https://lasrab.lagosstate.gov.ng/",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Archives"," "]}),i.jsxs("a",{target:"_blank",href:"/privacy",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Privacy Policy"," "]})]})]}),i.jsxs("div",{className:"linkHolder flex flex_col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Feedback"}),i.jsx("div",{className:"links a-dark flex flex_col",children:i.jsxs("a",{target:"_blank",href:"https://citizensgate.lagosstate.gov.ng/",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Give feedback"," "]})})]})]}),i.jsxs("div",{className:"flex md:items-center justify-center gap-5 p-6 md:p-4 rounded-[0px] bg-gray-800 my-11 text-white flex-col md:flex-row",children:[i.jsx("p",{className:"text-[19px] font-semibold text-white",children:"Access affordable healthcare at your fingertips!"}),i.jsxs("button",{onClick:()=>window.open("https://ileraeko.com/"),className:"py-2.5 px-5 bg-[#90ee90] text-gray-900 rounded-[4px] font-semibold text-[15px] flex items-center gap-2 cursor-pointer w-max",children:["Start with LASHMA ",i.jsx(Oe,{className:"text-[11px]",strokeWidth:2})]})]}),i.jsx("div",{className:"footest_footer",children:i.jsxs("div",{className:"copyright flex flex_justify_space_between",children:[i.jsx("div",{className:"txt uppercase",children:"© Copyright 2024, All Rights Reserved  |   Lagos State Government"}),i.jsxs("div",{className:"txt uppercase col",children:[i.jsx("span",{children:"Powered by - "})," Lagos State Ministry of Innovation, Science and Technology"]})]})})]})})})}const pU="/assets/lasg__logo-9UVgyhz4.png";var ig=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},f1e={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},h1e=class{#e=f1e;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},qc=new h1e;function p1e(e){setTimeout(e,0)}var lu=typeof window>"u"||"Deno"in globalThis;function xi(){}function m1e(e,t){return typeof e=="function"?e(t):e}function pk(e){return typeof e=="number"&&e>=0&&e!==1/0}function mU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _l(e,t){return typeof e=="function"?e(t):e}function pa(e,t){return typeof e=="function"?e(t):e}function K8(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Q5(o,t.options))return!1}else if(!lm(t.queryKey,o))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||s&&!s(t))}function X8(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(om(t.options.mutationKey)!==om(s))return!1}else if(!lm(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Q5(e,t){return(t?.queryKeyHashFn||om)(e)}function om(e){return JSON.stringify(e,(t,n)=>gk(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function lm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>lm(e[n],t[n])):!1}var g1e=Object.prototype.hasOwnProperty;function gU(e,t){if(e===t)return e;const n=Z8(e)&&Z8(t);if(!n&&!(gk(e)&&gk(t)))return t;const a=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),o=s.length,l=n?new Array(o):{};let d=0;for(let u=0;u<o;u++){const h=n?u:s[u],p=e[h],g=t[h];if(p===g){l[h]=p,(n?u<a:g1e.call(e,h))&&d++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){l[h]=g;continue}const y=gU(p,g);l[h]=y,y===p&&d++}return a===o&&d===a?e:l}function mk(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Z8(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gk(e){if(!Q8(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;
629return!(!Q8(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Q8(e){return Object.prototype.toString.call(e)==="[object Object]"}function v1e(e){return new Promise(t=>{qc.setTimeout(t,e)})}function vk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gU(e,t):t}function y1e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function x1e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var J5=Symbol();function vU(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===J5?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function b1e(e,t){return typeof e=="function"?e(...t):!!e}var w1e=class extends ig{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!lu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},eN=new w1e;function yk(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var j1e=p1e;function S1e(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=j1e;const s=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(d=>{n(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||o()}return d},batchCalls:l=>(...d)=>{s(()=>{l(...d)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var Or=S1e(),C1e=class extends ig{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!lu&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},_y=new C1e;function k1e(e){return Math.min(1e3*2**e,3e4)}function yU(e){return(e??"online")==="online"?_y.isOnline():!0}var xk=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function xU(e){let t=!1,n=0,r;const a=yk(),s=()=>a.status!=="pending",o=w=>{if(!s()){const j=new xk(w);g(j),e.onCancel?.(j)}},l=()=>{t=!0},d=()=>{t=!1},u=()=>eN.isFocused()&&(e.networkMode==="always"||_y.isOnline())&&e.canRun(),h=()=>yU(e.networkMode)&&e.canRun(),p=w=>{s()||(r?.(),a.resolve(w))},g=w=>{s()||(r?.(),a.reject(w))},y=()=>new Promise(w=>{r=j=>{(s()||u())&&w(j)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),b=()=>{if(s())return;let w;const j=n===0?e.initialPromise:void 0;try{w=j??e.fn()}catch(S){w=Promise.reject(S)}Promise.resolve(w).then(p).catch(S=>{if(s())return;const k=e.retry??(lu?0:3),N=e.retryDelay??k1e,_=typeof N=="function"?N(n,S):N,L=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,S);if(t||!L){g(S);return}n++,e.onFail?.(n,S),v1e(_).then(()=>u()?void 0:y()).then(()=>{t?g(S):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r?.(),a),cancelRetry:l,continueRetry:d,canStart:h,start:()=>(h()?b():y().then(b),a)}}var bU=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pk(this.gcTime)&&(this.#e=qc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(lu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(qc.clearTimeout(this.#e),this.#e=void 0)}},N1e=class extends bU{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=J8(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=J8(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vk(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(xi).catch(xi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>pa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===J5||this.state.dataUpdateCount+this.state.errorUpdate
629Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>_l(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!mU(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(d=>d.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const l=vU(this.options,t),u=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(l,u,this):l(u)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:a};return r(l),l})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=xU({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof xk&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,d)=>{this.#a({type:"failed",failureCount:l,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof xk){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#a({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...wU(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Or.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function wU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yU(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function J8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
629Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var A1e=class extends ig{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=yk(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),e9(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bk(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bk(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pa(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),t._defaulted&&!mk(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&t9(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||pa(this.options.enabled,this.#t)!==pa(t.enabled,this.#t)||_l(this.options.staleTime,this.#t)!==_l(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||pa(this.options.enabled,this.#t)!==pa(t.enabled,this.#t)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return _1e(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#j();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(xi)),t}#g(){this.#b();const e=_l(this.options.staleTime,this.#t);if(lu||this.#i.isStale||!pk(e))return;const n=mU(this.#i.dataUpdatedAt,e)+1;this.#c=qc.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(lu||pa(this.options.enabled,this.#t)===!1||!pk(this.#l)||this.#l===0)&&(this.#u=qc.setInterval(()=>{(this.options.refetchIntervalInBackground||eN.isFocused())&&this.#d()},this.#l))}#x(){this.#g(),this.#y(this.#v())}#b(){this.#c&&(qc.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(qc.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#i,s=this.#r,o=this.#o,d=e!==n?e.state:this.#n,{state:u}=e;let h={...u},p=!1,g;if(t._optimisticResults){const P=this.hasListeners(),$=!P&&e9(e,t),O=P&&t9(e,n,t,r);($||O)&&(h={...h,...wU(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=h;g=h.data;let j=!1;if(t.placeholderData!==void 0&&g===void 0&&w==="pending"){let P;a?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(P=a.data,j=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,P!==void 0&&(w="success",g=vk(a?.data,P,t),p=!0)}if(t.select&&g!==void 0&&!j)if(a&&g===s?.data&&t.select===this.#m)g=this.#f;
629else try{this.#m=t.select,g=t.select(g),g=vk(a?.data,g,t),this.#f=g,this.#a=null}catch(P){this.#a=P}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),w="error");const S=h.fetchStatus==="fetching",k=w==="pending",N=w==="error",_=k&&S,L=g!==void 0,T={status:w,fetchStatus:h.fetchStatus,isPending:k,isSuccess:w==="success",isError:N,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!k,isLoadingError:N&&!L,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&L,isStale:tN(e,t),refetch:this.refetch,promise:this.#s,isEnabled:pa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=q=>{T.status==="error"?q.reject(T.error):T.data!==void 0&&q.resolve(T.data)},$=()=>{const q=this.#s=T.promise=yk();P(q)},O=this.#s;switch(O.status){case"pending":e.queryHash===n.queryHash&&P(O);break;case"fulfilled":(T.status==="error"||T.data!==O.value)&&$();break;case"rejected":(T.status!=="error"||T.error!==O.reason)&&$();break}}return T}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),mk(t,e))return;this.#i=t;const n=()=>
629{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(o=>{const l=o;return this.#i[l]!==e[l]&&s.has(l)})};this.#S({listeners:n()})}#j(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#S(e){Or.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function E1e(e,t){return pa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function e9(e,t){return E1e(e,t)||e.state.data!==void 0&&bk(e,t,t.refetchOnMount)}function bk(e,t,n){if(pa(t.enabled,e)!==!1&&_l(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tN(e,t)}return!1}function t9(e,t,n,r){return(e!==t||pa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&tN(e,n)}function tN(e,t){return pa(t.enabled,e)!==!1&&e.isStaleByTime(_l(t.staleTime,e))}function _1e(e,t){return!mk(e.getCurrentResult(),t)}function n9(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},d=0;const u=async()=>{let h=!1;const p=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},g=vU(t.options,t.fetchOptions),y=async(b,w,j)=>{if(h)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const k=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:w,direction:j?"backward":"forward",meta:t.options.meta};return p(E),E})(),N=await g(k),{maxPages:_}=t.options,L=j?x1e:y1e;return{pages:L(b.pages,N,_),pageParams:L(b.pageParams,w,_)}};if(a&&s.length){const b=a==="backward",w=b?T1e:r9,j={pages:s,pageParams:o},S=w(r,j);l=await y(j,S,b)}else{const b=e??s.length;do{const w=d===0?o[0]??r.initialPageParam:r9(r,l);if(d>0&&w==null)break;l=await y(l,w),d++}while(d<b)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function r9(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function T1e(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var L1e=class extends bU{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||O1e(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=xU({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,o)=>{this.#r({type:"failed",failureCount:s,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:a})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
629case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Or.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function O1e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var M1e=class extends ig{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new L1e({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=n0(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=n0(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=n0(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=n0(e);return typeof t=="string"?this.#t.get(t)?.find(r=>
629r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Or.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>X8(t,n))}findAll(e={}){return this.getAll().filter(t=>X8(e,t))}notify(e){Or.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Or.batch(()=>Promise.all(e.map(t=>t.continue().catch(xi))))}};function n0(e){return e.options.scope?.id}var D1e=class extends ig{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??Q5(r,t);let s=this.get(a);return s||(s=new N1e({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Or.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>K8(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>K8(e,n)):t}notify(e){Or.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Or.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Or.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},P1e=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new D1e,this.#t=e.mutationCache||new M1e,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=eN.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=_y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_l(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,o=m1e(t,s);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Or.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Or.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Or.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Or.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(xi).catch(xi)}invalidateQueries(e,t={}){return Or.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Or.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(xi)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(xi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(_l(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xi).catch(xi)}fetchInfiniteQuery(e){return e.behavior=n9(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xi).catch(xi)}ensureInfiniteQueryData(e){return e.behavior=n9(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _y.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(om(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{lm(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(om(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{lm(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Q5(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===J5&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},jU=v.createContext(void 0),SU=e=>{const t=v.useContext(jU);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},R1e=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(jU.Provider,{value:e,children:t})),CU=v.createContext(!1),I1e=()=>v.useContext(CU);CU.Provider;function $1e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
629var B1e=v.createContext($1e()),q1e=()=>v.useContext(B1e),F1e=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},z1e=e=>{v.useEffect(()=>{e.clearReset()},[e])},H1e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||b1e(n,[e.error,r])),U1e=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},V1e=(e,t)=>e.isLoading&&e.isFetching&&!t,G1e=(e,t)=>e?.suspense&&t.isPending,i9=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function W1e(e,t,n){const r=I1e(),a=q1e(),s=SU(),o=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=r?"isRestoring":"optimistic",U1e(o),F1e(o,a),z1e(a);const l=!s.getQueryCache().get(o.queryHash),[d]=v.useState(()=>new t(s,o)),u=d.getOptimisticResult(o),h=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(p=>{const g=h?d.subscribe(Or.batchCalls(p)):xi;return d.updateResult(),g},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),v.useEffect(()=>{d.setOptions(o)},[o,d]),G1e(o,u))throw i9(o,d,a);if(H1e({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!lu&&V1e(u,r)&&(l?i9(o,d,a):s.getQueryCache().get(o.queryHash)?.promise)?.catch(xi).finally(()=>{d.updateResult()}),o.notifyOnChangeProps?u:d.trackResult(u)}function Ke(e,t){return W1e(e,A1e)}const kU=v.createContext({});function Y1e(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const nN=v.createContext(null),NU=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function K1e(e=!0){const t=v.useContext(nN);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=v.useId();v.useEffect(()=>{e&&a(s)},[e]);const o=v.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const rN=typeof window<"u",X1e=rN?v.useLayoutEffect:v.useEffect,Xi=e=>e;let AU=Xi;function iN(e){let t;return()=>(t===void 0&&(t=e()),t)}const rf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},vo=e=>e*1e3,yo=e=>e/1e3,Z1e={useManualTiming:!1};function Q1e(e){let t=new Set,n=new Set,r=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(d.schedule(u),e()),u(o)}const d={schedule:(u,h=!1,p=!1)=>{const y=p&&r?t:n;return h&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,a&&(a=!1,d.process(u))}};return d}const r0=["read","resolveKeyframes","update","preRender","render","postRender"],J1e=40;function EU(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=r0.reduce((S,k)=>(S[k]=Q1e(s),S),{}),{read:l,resolveKeyframes:d,update:u,preRender:h,render:p,postRender:g}=o,y=()=>{const S=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(S-a.timestamp,J1e),1),a.timestamp=S,a.isProcessing=!0,l.process(a),d.process(a),u.process(a),h.process(a),p.process(a),g.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(y))},b=()=>{n=!0,r=!0,a.isProcessing||e(y)};return{schedule:r0.reduce((S,k)=>{const N=o[k];return S[k]=(_,L=!1,E=!1)=>(n||b(),N.schedule(_,L,E)),S},{}),cancel:S=>{for(let k=0;k<r0.length;k++)o[r0[k]].cancel(S)},state:a,steps:o}}const{schedule:rn,cancel:Dl,state:_r,steps:i3}=EU(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xi,!0),_U=v.createContext({strict:!1}),a9={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},af={};for(const e in a9)af[e]={isEnabled:t=>a9[e].some(n=>!!t[n])};function ewe(e){for(const t in e)af[t]={...af[t],...e[t]}}const twe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ty(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||twe.has(e)}let TU=e=>!Ty(e);function nwe(e){e&&(TU=t=>t.startsWith("on")?!Ty(t):e(t))}try{nwe(require("@emotion/is-prop-valid").default)}catch{}function rwe(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(TU(a)||n===!0&&Ty(a)||!t&&!Ty(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function iwe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const bb=v.createContext({});function cm(e){return typeof e=="string"||Array.isArray(e)}function wb(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const aN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sN=["initial",...aN];function jb(e){return wb(e.animate)||sN.some(t=>cm(e[t]))}function LU(e){return!!(jb(e)||e.variants)}function awe(e,t){if(jb(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cm(n)?n:void 0,animate:cm(r)?r:void 0}}return e.inherit!==!1?t:{}}function swe(e){const{initial:t,animate:n}=awe(e,v.useContext(bb));return v.useMemo(()=>({initial:t,animate:n}),[s9(t),s9(n)])}function s9(e){return Array.isArray(e)?e.join(" "):e}const owe=Symbol.for("motionComponentSymbol");function qd(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lwe(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qd(n)&&(n.current=r))},[t])}const oN=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cwe="framerAppearId",OU="data-"+oN(cwe),{schedule:lN}=EU(queueMicrotask,!1),MU=v.createContext({});function uwe(e,t,n,r,a){var s,o;const{visualElement:l}=v.useContext(bb),d=v.useContext(_U),u=v.useContext(nN),h=v.useContext(NU).reducedMotion,p=v.useRef(null);r=r||d.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.
vendor: 103,759 bytes, line 629
629initial===!1:!1,reducedMotionConfig:h}));const g=p.current,y=v.useContext(MU);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&dwe(p.current,n,a,y);const b=v.useRef(!1);v.useInsertionEffect(()=>{g&&b.current&&g.update(n,u)});const w=n[OU],j=v.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return X1e(()=>{g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),lN.render(g.render),j.current&&g.animationState&&g.animationState.animateChanges())}),v.useEffect(()=>{g&&(!j.current&&g.animationState&&g.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),j.current=!1))}),g}function dwe(e,t,n,r){const{layoutId:a,layout:s,drag:o,dragConstraints:l,layoutScroll:d,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:DU(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!o||l&&qd(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:u})}function DU(e){if(e)return e.options.allowProjection!==!1?e.projection:DU(e.parent)}function fwe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var s,o;e&&ewe(e);function l(u,h){let p;const g={...v.useContext(NU),...u,layoutId:hwe(u)},{isStatic:y}=g,b=swe(u),w=r(u,y);if(!y&&rN){pwe();const j=mwe(g);p=j.MeasureLayout,b.visualElement=uwe(a,w,g,t,j.ProjectionNode)}return i.jsxs(bb.Provider,{value:b,children:[p&&b.visualElement?i.jsx(p,{visualElement:b.visualElement,...g}):null,n(a,u,lwe(w,b.visualElement,h),w,y,b.visualElement)]})}l.displayName=`motion.${typeof a=="string"?a:`create(${(o=(s=a.displayName)!==null&&s!==void 0?s:a.name)!==null&&o!==void 0?o:""})`}`;const d=v.forwardRef(l);return d[owe]=a,d}function hwe({layoutId:e}){const t=v.useContext(kU).id;return t&&e!==void 0?t+"-"+e:e}function pwe(e,t){v.useContext(_U).strict}function mwe(e){const{drag:t,layout:n}=af;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const gwe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cN(e){return typeof e!="string"||e.includes("-")?!1:!!(gwe.indexOf(e)>-1||/[A-Z]/u.test(e))}function o9(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function uN(e,t,n,r){if(typeof t=="function"){const[a,s]=o9(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=o9(r);t=t(n!==void 0?n:e.custom,a,s)}return t}const wk=e=>Array.isArray(e),vwe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ywe=e=>wk(e)?e[e.length-1]||0:e,Vr=e=>!!(e&&e.getVelocity);function X0(e){const t=Vr(e)?e.get():e;return vwe(t)?t.toValue():t}function xwe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,s){const o={latestValues:bwe(r,a,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const PU=e=>(t,n)=>{const r=v.useContext(bb),a=v.useContext(nN),s=()=>xwe(e,t,r,a);return n?s():Y1e(s)};function bwe(e,t,n,r){const a={},s=r(e,{});for(const g in s)a[g]=X0(s[g]);let{initial:o,animate:l}=e;const d=jb(e),u=LU(e);t&&u&&!d&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const p=h?l:o;if(p&&typeof p!="boolean"&&!wb(p)){const g=Array.isArray(p)?p:[p];for(let y=0;y<g.length;y++){const b=uN(e,g[y]);if(b){const{transitionEnd:w,transition:j,...S}=b;for(const k in S){let N=S[k];if(Array.isArray(N)){const _=h?N.length-1:0;N=N[_]}N!==null&&(a[k]=N)}for(const k in w)a[k]=w[k]}}}return a}const Ef=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ju=new Set(Ef),RU=e=>t=>typeof t=="string"&&t.startsWith(e),IU=RU("--"),wwe=RU("var(--"),dN=e=>wwe(e)?jwe.test(e.split("/*")[0].trim()):!1,jwe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$U=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Co=(e,t,n)=>n>t?t:n<e?e:n,_f={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},um={..._f,transform:e=>Co(0,1,e)},i0={..._f,default:1},ag=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yl=ag("deg"),js=ag("%"),Xe=ag("px"),Swe=ag("vh"),Cwe=ag("vw"),l9={...js,parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)},kwe={borderWidth:Xe,borderTopWidth:Xe,borderRightWidth:Xe,borderBottomWidth:Xe,borderLeftWidth:Xe,borderRadius:Xe,radius:Xe,borderTopLeftRadius:Xe,borderTopRightRadius:Xe,borderBottomRightRadius:Xe,borderBottomLeftRadius:Xe,width:Xe,maxWidth:Xe,height:Xe,maxHeight:Xe,top:Xe,right:Xe,bottom:Xe,left:Xe,padding:Xe,paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe,margin:Xe,marginTop:Xe,marginRight:Xe,marginBottom:Xe,marginLeft:Xe,backgroundPositionX:Xe,backgroundPositionY:Xe},Nwe={rotate:yl,rotateX:yl,rotateY:yl,rotateZ:yl,scale:i0,scaleX:i0,scaleY:i0,scaleZ:i0,skew:yl,skewX:yl,skewY:yl,distance:Xe,translateX:Xe,translateY:Xe,translateZ:Xe,x:Xe,y:Xe,z:Xe,perspective:Xe,transformPerspective:Xe,opacity:um,originX:l9,originY:l9,originZ:Xe},c9={..._f,transform:Math.round},fN={...kwe,...Nwe,zIndex:c9,size:Xe,fillOpacity:um,strokeOpacity:um,numOctaves:c9},Awe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ewe=Ef.length;function _we(e,t,n){let r="",a=!0;for(let s=0;s<Ewe;s++){const o=Ef[s],l=e[o];if(l===void 0)continue;let d=!0;if(typeof l=="number"?d=l===(o.startsWith("scale")?1:0):d=parseFloat(l)===0,!d||n){const u=$U(l,fN[o]);if(!d){a=!1;const h=Awe[o]||o;r+=`${h}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function hN(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let o=!1,l=!1;for(const d in t){const u=t[d];if(ju.has(d)){o=!0;continue}else if(IU(d)){a[d]=u;continue}else{const h=$U(u,fN[d]);d.startsWith("origin")?(l=!0,s[d]=h):r[d]=h}}if(t.transform||(o||n?r.transform=_we(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:d="50%",originY:u="50%",originZ:h=0}=s;r.transformOrigin=`${d} ${u} ${h}`}}const Twe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Lwe={offset:"strokeDashoffset",array:"strokeDasharray"};function Owe(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?Twe:Lwe;e[s.offset]=Xe.transform(-r);const o=Xe.transform(t),l=Xe.transform(n);e[s.array]=`${o} ${l}`}function u9(e,t,n){return typeof e=="string"?e:Xe.transform(t+n*e)}function Mwe(e,t,n){const r=u9(t,e.x,e.width),a=u9(n,e.y,e.height);return`${r} ${a}`}function pN(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:d=0,...u},h,p){if(hN(e,u,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:b}=e;g.transform&&(b&&(y.transform=g.transform),delete g.transform),b&&(a!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=Mwe(b,a!==void 0?a:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&Owe(g,o,l,d,!1)}const mN=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),BU=()=>({...mN(),attrs:{}}),gN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qU(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const FU=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function zU(e,t,n,r){qU(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(FU.has(a)?a:oN(a),t.attrs[a])}const Ly={};function Dwe(e){Object.assign(Ly,e)}function HU(e,{layout:t,layoutId:n}){return ju.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ly[e]||e==="opacity")}function vN(e,t,n){var r;const{style:a}=e,s={};for(const o in a)(Vr(a[o])||t.style&&Vr(t.style[o])||HU(o,e)||((r=n?.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=a[o]);return s}function UU(e,t,n){const r=vN(e,t,n);for(const a in e)if(Vr(e[a])||Vr(t[a])){const s=Ef.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}function Pwe(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const d9=["x","y","width","height","cx","cy","r"],Rwe={useVisualState:PU({scrapeMotionValuesFromProps:UU,createRenderState:BU,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in a)if(ju.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l<d9.length;l++){const d=d9[l];e[d]!==t[d]&&(o=!0)}o&&rn.read(()=>{Pwe(n,r),rn.render(()=>{pN(r,a,gN(n.tagName),e.transformTemplate),zU(n,r)})})}})},Iwe={useVisualState:PU({scrapeMotionValuesFromProps:vN,createRenderState:mN})};function VU(e,t,n){for(const r in t)!Vr(t[r])&&!HU(r,n)&&(e[r]=t[r])}function $we({transformTemplate:e},t){return v.useMemo(()=>{const n=mN();return hN(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Bwe(e,t){const n=e.style||{},r={};return VU(r,n,e),Object.assign(r,$we(e,t)),r}function qwe(e,t){const n={},r=Bwe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Fwe(e,t,n,r){const a=v.useMemo(()=>{const s=BU();return pN(s,t,gN(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};VU(s,e.style,e),a.style={...s,...a.style}}return a}function zwe(e=!1){return(n,r,a,{latestValues:s},o)=>{const d=(cN(n)?Fwe:qwe)(r,s,o,n),u=rwe(r,typeof n=="string",e),h=n!==v.Fragment?{...u,...d,ref:a}:{},{children:p}=r,g=v.useMemo(()=>Vr(p)?p.get():p,[p]);return v.createElement(n,{...h,children:g})}}function Hwe(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const o={...cN(r)?Rwe:Iwe,preloadedFeatures:e,useRender:zwe(a),createVisualElement:t,Component:r};return fwe(o)}}function GU(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Sb(e,t,n){const r=e.getProps();return uN(r,t,n!==void 0?n:r.custom,e)}const Uwe=iN(()=>window.ScrollTimeline!==void 0);class Vwe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(Uwe()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,s)=>{a&&a(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Gwe extends Vwe{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function yN(e,t){return e?e[t]||e.default||e:void 0}const jk=2e4;function WU(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jk;)t+=n,r=e.next(t);return t>=jk?1/0:t}function xN(e){return typeof e=="function"}function f9(e,t){e.timeline=t,e.onfinish=null}const bN=e=>Array.isArray(e)&&typeof e[0]=="number",Wwe={linearEasing:void 0};function Ywe(e,t){const n=iN(e);return()=>{var r;return(r=Wwe[t])!==null&&r!==void 0?r:n()}}const Oy=Ywe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),YU=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=e(rf(0,a-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function KU(e){return!!(typeof e=="function"&&Oy()||!e||typeof e=="string"&&(e in Sk||Oy())||bN(e)||Array.isArray(e)&&e.every(KU))}const Lp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Sk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lp([0,.65,.55,1]),circOut:Lp([.55,0,1,.45]),backIn:Lp([.31,.01,.66,-.59]),backOut:Lp([.33,1.53,.69,.99])};function XU(e,t){if(e)return typeof e=="function"&&Oy()?YU(e,t):bN(e)?Lp(e):Array.isArray(e)?e.map(n=>XU(n,t)||Sk.easeOut):Sk[e]}const Pa={x:!1,y:!1};function ZU(){return Pa.x||Pa.y}function Kwe(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const s=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function QU(e,t){const n=Kwe(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function h9(e){return t=>{t.pointerType==="touch"||ZU()||e(t)}}function Xwe(e,t,n={}){const[r,a,s]=QU(e,n),o=h9(l=>{const{target:d}=l,u=t(l);if(typeof u!="function"||!d)return;const h=h9(p=>{u(p),d.removeEventListener("pointerleave",h)});d.addEventListener("pointerleave",h,a)});return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),s}const JU=(e,t)=>t?e===t?!0:JU(e,t.parentElement):!1,wN=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Zwe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qwe(e){return Zwe.has(e.tagName)||e.tabIndex!==-1}const Op=new WeakSet;function p9(e){return t=>{t.key==="Enter"&&e(t)}}function a3(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Jwe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=p9(()=>{if(Op.has(n))return;a3(n,"down");const a=p9(()=>{a3(n,"up")}),s=()=>a3(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function m9(e){return wN(e)&&!ZU()}function e2e(e,t,n={}){const[r,a,s]=QU(e,n),o=l=>{const d=l.currentTarget;if(!m9(l)||Op.has(d))return;Op.add(d);const u=t(l),h=(y,b)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),!(!m9(y)||!Op.has(d))&&(Op.delete(d),typeof u=="function"&&u(y,{success:b}))},p=y=>{h(y,n.useGlobalTarget||JU(d,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",g,a)};return r.forEach(l=>{!Qwe(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),l.addEventListener("focus",u=>Jwe(u,a),a)}),s}function t2e(e){return e==="x"||e==="y"?Pa[e]?null:(Pa[e]=!0,()=>{Pa[e]=!1}):Pa.x||Pa.y?null:(Pa.x=Pa.y=!0,()=>{Pa.x=Pa.y=!1})}const eV=new Set(["width","height","top","left","right","bottom",...Ef]);let Z0;function n2e(){Z0=void 0}const Ss={now:()=>(Z0===void 0&&Ss.set(_r.isProcessing||Z1e.useManualTiming?_r.timestamp:performance.now()),Z0),set:e=>{Z0=e,queueMicrotask(n2e)}};function jN(e,t){e.indexOf(t)===-1&&e.push(t)}function SN(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class CN{constructor(){this.subscriptions=[]}add(t){return jN(this.subscriptions,t),()=>SN(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tV(e,t){return t?e*(1e3/t):0}const g9=30,r2e=e=>!isNaN(parseFloat(e));class i2e{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const s=Ss.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ss.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=r2e(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new CN);const r=this.events[t].add(n);return t==="change"?()=>{r(),rn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ss.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>g9)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,g9);return tV(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dm(e,t){return new i2e(e,t)}function a2e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dm(n))}function s2e(e,t){const n=Sb(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const o in s){const l=ywe(s[o]);a2e(e,o,l)}}function o2e(e){return!!(Vr(e)&&e.add)}function Ck(e,t){const n=e.getValue("willChange");if(o2e(n))return n.add(t)}function nV(e){return e.props[OU]}const rV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,l2e=1e-7,c2e=12;function u2e(e,t,n,r,a){let s,o,l=0;do o=t+(n-t)/2,s=rV(o,r,a)-e,s>0?n=o:t=o;while(Math.abs(s)>l2e&&++l<c2e);return o}function sg(e,t,n,r){if(e===t&&n===r)return Xi;const a=s=>u2e(s,0,1,e,n);return s=>s===0||s===1?s:rV(a(s),t,r)}const iV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aV=e=>t=>1-e(1-t),sV=sg(.33,1.53,.69,.99),kN=aV(sV),oV=iV(kN),lV=e=>(e*=2)<1?.5*kN(e):.5*(2-Math.pow(2,-10*(e-1))),NN=e=>1-Math.sin(Math.acos(e)),cV=aV(NN),uV=iV(NN),dV=e=>/^0[^.\s]+$/u.test(e);function d2e(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dV(e):!0}const Fp=e=>Math.round(e*1e5)/1e5,AN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function f2e(e){return e==null}const h2e=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,EN=(e,t)=>n=>!!(typeof n=="string"&&h2e.test(n)&&n.startsWith(e)||t&&!f2e(n)&&Object.prototype.hasOwnProperty.call(n,t)),fV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,o,l]=r.match(AN);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},p2e=e=>Co(0,255,e),s3={..._f,transform:e=>Math.round(p2e(e))},Fc={test:EN("rgb","red"),parse:fV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+s3.transform(e)+", "+s3.transform(t)+", "+s3.transform(n)+", "+Fp(um.transform(r))+")"};function m2e(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const kk={test:EN("#"),parse:m2e,transform:Fc.transform},Fd={test:EN("hsl","hue"),parse:fV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(Fp(t))+", "+js.transform(Fp(n))+", "+Fp(um.transform(r))+")"},qr={test:e=>Fc.test(e)||kk.test(e)||Fd.test(e),parse:e=>Fc.test(e)?Fc.parse(e):Fd.test(e)?Fd.parse(e):kk.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Fc.transform(e):Fd.transform(e)},g2e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v2e(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(AN))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(g2e))===null||n===void 0?void 0:n.length)||0)>0}const hV="number",pV="color",y2e="var",x2e="var(",v9="${}",b2e=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function fm(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const l=t.replace(b2e,d=>(qr.test(d)?(r.color.push(s),a.push(pV),n.push(qr.parse(d))):d.startsWith(x2e)?(r.var.push(s),a.push(y2e),n.push(d)):(r.number.push(s),a.push(hV),n.push(parseFloat(d))),++s,v9)).split(v9);return{values:n,split:l,indexes:r,types:a}}function mV(e){return fm(e).values}function gV(e){const{split:t,types:n}=fm(e),r=t.length;return a=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],a[o]!==void 0){const l=n[o];l===hV?s+=Fp(a[o]):l===pV?s+=qr.transform(a[o]):s+=a[o]}return s}}const w2e=e=>typeof e=="number"?0:e;function j2e(e){const t=mV(e);return gV(e)(t.map(w2e))}const Pl={test:v2e,parse:mV,createTransformer:gV,getAnimatableNone:j2e},S2e=new Set(["brightness","contrast","saturate","opacity"]);function C2e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(AN)||[];if(!r)return e;const a=n.replace(r,"");let s=S2e.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const k2e=/\b([a-z-]*)\(.*?\)/gu,Nk={...Pl,getAnimatableNone:e=>{const t=e.match(k2e);return t?t.map(C2e).join(" "):e}},N2e={...fN,color:qr,backgroundColor:qr,outlineColor:qr,fill:qr,stroke:qr,borderColor:qr,borderTopColor:qr,borderRightColor:qr,borderBottomColor:qr,borderLeftColor:qr,filter:Nk,WebkitFilter:Nk},_N=e=>N2e[e];function vV(e,t){let n=_N(e);return n!==Nk&&(n=Pl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const A2e=new Set(["auto","none","0"]);function E2e(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!A2e.has(s)&&fm(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=vV(n,a)}const y9=e=>e===_f||e===Xe,x9=(e,t)=>parseFloat(e.split(", ")[t]),b9=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return x9(a[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?x9(s[1],e):0}},_2e=new Set(["x","y","z"]),T2e=Ef.filter(e=>!_2e.has(e));function L2e(e){const t=[];return T2e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:b9(4,13),y:b9(5,14)};sf.translateX=sf.x;sf.translateY=sf.y;const Kc=new Set;let Ak=!1,Ek=!1;function yV(){if(Ek){const e=Array.from(Kc).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=L2e(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ek=!1,Ak=!1,Kc.forEach(e=>e.complete()),Kc.clear()}function xV(){Kc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ek=!0)})}function O2e(){xV(),yV()}class TN{constructor(t,n,r,a,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Kc.add(this),Ak||(Ak=!0,rn.read(xV),rn.resolveKeyframes(yV))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=a?.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const d=r.readValue(n,l);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=l),a&&o===void 0&&a.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Kc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Kc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const bV=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),M2e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D2e(e){const t=M2e.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function wV(e,t,n=1){const[r,a]=D2e(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return bV(o)?parseFloat(o):o}return dN(a)?wV(a,t,n+1):a}const jV=e=>t=>t.test(e),P2e={test:e=>e==="auto",parse:e=>e},SV=[_f,Xe,js,yl,Cwe,Swe,P2e],w9=e=>SV.find(jV(e));class CV extends TN{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let u=t[d];if(typeof u=="string"&&(u=u.trim(),dN(u))){const h=wV(u,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!eV.has(r)||t.length!==2)return;const[a,s]=t,o=w9(a),l=w9(s);if(o!==l)if(y9(o)&&y9(l))for(let d=0;d<t.length;d++){const u=t[d];typeof u=="string"&&(t[d]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)d2e(t[a])&&r.push(a);r.length&&E2e(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sf[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=a.length-1,l=a[o];a[o]=sf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([d,u])=>{n.getValue(d).set(u)}),this.resolveNoneKeyframes()}}const j9=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pl.test(e)||e==="0")&&!e.startsWith("url("));function R2e(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function I2e(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=j9(a,t),l=j9(s,t);return!o||!l?!1:R2e(e)||(n==="spring"||xN(n))&&r}const $2e=e=>e!==null;function Cb(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter($2e),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const B2e=40;class kV{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ss.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>B2e?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&O2e(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ss.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:s,delay:o,onComplete:l,onUpdate:d,isGenerator:u}=this.options;if(!u&&!I2e(t,r,a,s))if(o)this.options.duration=0;else{d&&d(Cb(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const gn=(e,t,n)=>e+(t-e)*n;function o3(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function q2e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,o=0;if(!t)a=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,d=2*n-l;a=o3(d,l,e+1/3),s=o3(d,l,e),o=o3(d,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function My(e,t){return n=>n>0?t:e}const l3=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},F2e=[kk,Fc,Fd],z2e=e=>F2e.find(t=>t.test(e));function S9(e){const t=z2e(e);if(!t)return!1;let n=t.parse(e);return t===Fd&&(n=q2e(n)),n}const C9=(e,t)=>{const n=S9(e),r=S9(t);if(!n||!r)return My(e,t);const a={...n};return s=>(a.red=l3(n.red,r.red,s),a.green=l3(n.green,r.green,s),a.blue=l3(n.blue,r.blue,s),a.alpha=gn(n.alpha,r.alpha,s),Fc.transform(a))},H2e=(e,t)=>n=>t(e(n)),og=(...e)=>e.reduce(H2e),_k=new Set(["none","hidden"]);function U2e(e,t){return _k.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function V2e(e,t){return n=>gn(e,t,n)}function LN(e){return typeof e=="number"?V2e:typeof e=="string"?dN(e)?My:qr.test(e)?C9:Y2e:Array.isArray(e)?NV:typeof e=="object"?qr.test(e)?C9:G2e:My}function NV(e,t){const n=[...e],r=n.length,a=e.map((s,o)=>LN(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=a[o](s);return n}}function G2e(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=LN(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function W2e(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],l=e.indexes[o][a[o]],d=(n=e.values[l])!==null&&n!==void 0?n:0;r[s]=d,a[o]++}return r}const Y2e=(e,t)=>{const n=Pl.createTransformer(t),r=fm(e),a=fm(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?_k.has(e)&&!a.values.length||_k.has(t)&&!r.values.length?U2e(e,t):og(NV(W2e(r,a),a.values),n):My(e,t)};function AV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?gn(e,t,n):LN(e)(e,t)}const K2e=5;function EV(e,t,n){const r=Math.max(t-K2e,0);return tV(n-e(r),t-r)}const Sn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},c3=.001;function X2e({duration:e=Sn.duration,bounce:t=Sn.bounce,velocity:n=Sn.velocity,mass:r=Sn.mass}){let a,s,o=1-t;o=Co(Sn.minDamping,Sn.maxDamping,o),e=Co(Sn.minDuration,Sn.maxDuration,yo(e)),o<1?(a=u=>{const h=u*o,p=h*e,g=h-n,y=Tk(u,o),b=Math.exp(-p);return c3-g/y*b},s=u=>{const p=u*o*e,g=p*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,b=Math.exp(-p),w=Tk(Math.pow(u,2),o);return(-a(u)+c3>0?-1:1)*((g-y)*b)/w}):(a=u=>{const h=Math.exp(-u*e),p=(u-n)*e+1;return-c3+h*p},s=u=>{const h=Math.exp(-u*e),p=(n-u)*(e*e);return h*p});const l=5/e,d=Q2e(a,s,l);if(e=vo(e),isNaN(d))return{stiffness:Sn.stiffness,damping:Sn.damping,duration:e};{const u=Math.pow(d,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const Z2e=12;function Q2e(e,t,n){let r=n;for(let a=1;a<Z2e;a++)r=r-e(r)/t(r);return r}function Tk(e,t){return e*Math.sqrt(1-t*t)}const J2e=["duration","bounce"],eje=["stiffness","damping","mass"];function k9(e,t){return t.some(n=>e[n]!==void 0)}function tje(e){let t={velocity:Sn.velocity,stiffness:Sn.stiffness,damping:Sn.damping,mass:Sn.mass,isResolvedFromDuration:!1,...e};if(!k9(e,eje)&&k9(e,J2e))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Co(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Sn.mass,stiffness:a,damping:s}}else{const n=X2e(e);t={...t,...n,mass:Sn.mass},t.isResolvedFromDuration=!0}return t}function _V(e=Sn.visualDuration,t=Sn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:d,damping:u,mass:h,duration:p,velocity:g,isResolvedFromDuration:y}=tje({...n,velocity:-yo(n.velocity||0)}),b=g||0,w=u/(2*Math.sqrt(d*h)),j=o-s,S=yo(Math.sqrt(d/h)),k=Math.abs(j)<5;r||(r=k?Sn.restSpeed.granular:Sn.restSpeed.default),a||(a=k?Sn.restDelta.granular:Sn.restDelta.default);let N;if(w<1){const L=Tk(S,w);N=E=>{const T=Math.exp(-w*S*E);return o-T*((b+w*S*j)/L*Math.sin(L*E)+j*Math.cos(L*E))}}else if(w===1)N=L=>o-Math.exp(-S*L)*(j+(b+S*j)*L);else{const L=S*Math.sqrt(w*w-1);N=E=>{const T=Math.exp(-w*S*E),P=Math.min(L*E,300);return o-T*((b+w*S*j)*Math.sinh(P)+L*j*Math.cosh(P))/L}}const _={calculatedDuration:y&&p||null,next:L=>{const E=N(L);if(y)l.done=L>=p;else{let T=0;w<1&&(T=L===0?vo(b):EV(N,L,E));const P=Math.abs(T)<=r,$=Math.abs(o-E)<=a;l.done=P&&$}return l.value=l.done?o:E,l},toString:()=>{const L=Math.min(WU(_),jk),E=YU(T=>_.next(L*T).value,L,30);return L+"ms "+E}};return _}function N9({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:d,restDelta:u=.5,restSpeed:h}){const p=e[0],g={done:!1,value:p},y=P=>l!==void 0&&P<l||d!==void 0&&P>d,b=P=>l===void 0?d:d===void 0||Math.abs(l-P)<Math.abs(d-P)?l:d;let w=n*t;const j=p+w,S=o===void 0?j:o(j);S!==j&&(w=S-p);const k=P=>-w*Math.exp(-P/r),N=P=>S+k(P),_=P=>{const $=k(P),O=N(P);g.done=Math.abs($)<=u,g.value=g.done?S:O};let L,E;const T=P=>{y(g.value)&&(L=P,E=_V({keyframes:[g.value,b(g.value)],velocity:EV(N,P,g.value),damping:a,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:P=>{let $=!1;return!E&&L===void 0&&($=!0,_(P),T(P)),L!==void 0&&P>=L?E.next(P-L):(!$&&_(P),g)}}}const nje=sg(.42,0,1,1),rje=sg(0,0,.58,1),TV=sg(.42,0,.58,1),ije=e=>Array.isArray(e)&&typeof e[0]!="number",aje={linear:Xi,easeIn:nje,easeInOut:TV,easeOut:rje,circIn:NN,circInOut:uV,circOut:cV,backIn:kN,backInOut:oV,backOut:sV,anticipate:lV},A9=e=>{if(bN(e)){AU(e.length===4);const[t,n,r,a]=e;return sg(t,n,r,a)}else if(typeof e=="string")return aje[e];return e};function sje(e,t,n){const r=[],a=n||AV,s=e.length-1;for(let o=0;o<s;o++){let l=a(e[o],e[o+1]);if(t){const d=Array.isArray(t)?t[o]||Xi:t;l=og(d,l)}r.push(l)}return r}function oje(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(AU(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=sje(t,r,a),d=l.length,u=h=>{if(o&&h<e[0])return t[0];let p=0;if(d>1)for(;p<e.length-2&&!(h<e[p+1]);p++);const g=rf(e[p],e[p+1],h);return l[p](g)};return n?h=>u(Co(e[0],e[s-1],h)):u}function lje(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=rf(0,t,r);e.push(gn(n,1,a))}}function cje(e){const t=[0];return lje(t,e.length-1),t}function uje(e,t){return e.map(n=>n*t)}function dje(e,t){return e.map(()=>t||TV).splice(0,e.length-1)}function Dy({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=ije(r)?r.map(A9):A9(r),s={done:!1,value:t[0]},o=uje(n&&n.length===t.length?n:cje(t),e),l=oje(o,t,{ease:Array.isArray(a)?a:dje(t,a)});return{calculatedDuration:e,next:d=>(s.value=l(d),s.done=d>=e,s)}}const fje=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rn.update(t,!0),stop:()=>Dl(t),now:()=>_r.isProcessing?_r.timestamp:Ss.now()}},hje={decay:N9,inertia:N9,tween:Dy,keyframes:Dy,spring:_V},pje=e=>e/100;class ON extends kV{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:a,keyframes:s}=this.options,o=a?.KeyframeResolver||TN,l=(d,u)=>this.onKeyframesResolved(d,u);this.resolver=new o(s,l,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:o=0}=this.options,l=xN(n)?n:hje[n]||Dy;let d,u;l!==Dy&&typeof t[0]!="number"&&(d=og(pje,AV(t[0],t[1])),t=[0,100]);const h=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=WU(h));const{calculatedDuration:p}=h,g=p+a,y=g*(r+1)-a;return{generator:h,mirroredGenerator:u,mapPercentToKeyframes:d,calculatedDuration:p,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:a,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:d,calculatedDuration:u,totalDuration:h,resolvedDuration:p}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:y,repeatType:b,repeatDelay:w,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),k=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let N=this.currentTime,_=s;if(y){const P=Math.min(this.currentTime,h)/p;let $=Math.floor(P),O=P%1;!O&&P>=1&&(O=1),O===1&&$--,$=Math.min($,y+1),!!($%2)&&(b==="reverse"?(O=1-O,w&&(O-=w/p)):b==="mirror"&&(_=o)),N=Co(0,1,O)*p}const L=k?{done:!1,value:d[0]}:_.next(N);l&&(L.value=l(L.value));let{done:E}=L;!k&&u!==null&&(E=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&a!==void 0&&(L.value=Cb(d,this.options,a)),j&&j(L.value),T&&this.finish(),L}get duration(){const{resolved:t}=this;return t?yo(t.calculatedDuration):0}get time(){return yo(this.currentTime)}set time(t){t=vo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=fje,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const mje=new Set(["opacity","clipPath","filter","transform"]);function gje(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:d}={}){const u={[t]:n};d&&(u.offset=d);const h=XU(l,a);return Array.isArray(h)&&(u.easing=h),e.animate(u,{delay:r,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const vje=iN(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Py=10,yje=2e4;function xje(e){return xN(e.type)||e.type==="spring"||!KU(e.ease)}function bje(e,t){const n=new ON({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let s=0;for(;!r.done&&s<yje;)r=n.sample(s),a.push(r.value),s+=Py;return{times:void 0,keyframes:a,duration:s-Py,ease:"linear"}}const LV={anticipate:lV,backInOut:oV,circInOut:uV};function wje(e){return e in LV}class E9 extends kV{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:s}=this.options;this.resolver=new CV(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:s,type:o,motionValue:l,name:d,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&Oy()&&wje(s)&&(s=LV[s]),xje(this.options)){const{onComplete:p,onUpdate:g,motionValue:y,element:b,...w}=this.options,j=bje(t,w);t=j.keyframes,t.length===1&&(t[1]=t[0]),r=j.duration,a=j.times,s=j.ease,o="keyframes"}const h=gje(l.owner.current,d,t,{...this.options,duration:r,times:a,ease:s});return h.startTime=u??this.calcStartTime(),this.pendingTimeline?(f9(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:p}=this.options;l.set(Cb(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:a,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return yo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return yo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=vo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xi;const{animation:r}=n;f9(r,t)}return Xi}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:h,onComplete:p,element:g,...y}=this.options,b=new ON({...y,keyframes:r,duration:a,type:s,ease:o,times:l,isGenerator:!0}),w=vo(this.time);u.setWithVelocity(b.sample(w-Py).value,b.sample(w).value,Py)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:u}=n.owner.getProps();return vje()&&r&&mje.has(r)&&!d&&!u&&!a&&s!=="mirror"&&o!==0&&l!=="inertia"}}const jje={type:"spring",stiffness:500,damping:25,restSpeed:10},Sje=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Cje={type:"keyframes",duration:.8},kje={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nje=(e,{keyframes:t})=>t.length>2?Cje:ju.has(e)?e.startsWith("scale")?Sje(t[1]):jje:kje;function Aje({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:o,repeatDelay:l,from:d,elapsed:u,...h}){return!!Object.keys(h).length}const MN=(e,t,n,r={},a,s)=>o=>{const l=yN(r,e)||{},d=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-vo(d);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:g=>{t.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:a};Aje(l)||(h={...h,...Nje(e,h)}),h.duration&&(h.duration=vo(h.duration)),h.repeatDelay&&(h.repeatDelay=vo(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let p=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const g=Cb(h.keyframes,l);if(g!==void 0)return rn.update(()=>{h.onUpdate(g),h.onComplete()}),new Gwe([])}return!s&&E9.supports(h)?new E9(h):new ON(h)};function Eje({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function OV(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...d}=t;r&&(o=r);const u=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const p in d){const g=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),y=d[p];if(y===void 0||h&&Eje(h,p))continue;const b={delay:n,...yN(o||{},p)};let w=!1;if(window.MotionHandoffAnimation){const S=nV(e);if(S){const k=window.MotionHandoffAnimation(S,p,rn);k!==null&&(b.startTime=k,w=!0)}}Ck(e,p),g.start(MN(p,g,y,e.shouldReduceMotion&&eV.has(p)?{type:!1}:b,e,w));const j=g.animation;j&&u.push(j)}return l&&Promise.all(u).then(()=>{rn.update(()=>{l&&s2e(e,l)})}),u}function Lk(e,t,n={}){var r;const a=Sb(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(s=n.transitionOverride);const o=a?()=>Promise.all(OV(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:g}=s;return _je(e,t,h+u,p,g,n)}:()=>Promise.resolve(),{when:d}=s;if(d){const[u,h]=d==="beforeChildren"?[o,l]:[l,o];return u().then(()=>h())}else return Promise.all([o(),l(n.delay)])}function _je(e,t,n=0,r=0,a=1,s){const o=[],l=(e.variantChildren.size-1)*r,d=a===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Tje).forEach((u,h)=>{u.notify("AnimationStart",t),o.push(Lk(u,t,{...s,delay:n+d(h)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function Tje(e,t){return e.sortNodePosition(t)}function Lje(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>Lk(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=Lk(e,t,n);else{const a=typeof t=="function"?Sb(e,t,n.custom):t;r=Promise.all(OV(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Oje=sN.length;function MV(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?MV(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Oje;n++){const r=sN[n],a=e.props[r];(cm(a)||a===!1)&&(t[r]=a)}return t}const Mje=[...aN].reverse(),Dje=aN.length;function Pje(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Lje(e,n,r)))}function Rje(e){let t=Pje(e),n=_9(),r=!0;const a=d=>(u,h)=>{var p;const g=Sb(e,h,d==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(g){const{transition:y,transitionEnd:b,...w}=g;u={...u,...w,...b}}return u};function s(d){t=d(e)}function o(d){const{props:u}=e,h=MV(e.parent)||{},p=[],g=new Set;let y={},b=1/0;for(let j=0;j<Dje;j++){const S=Mje[j],k=n[S],N=u[S]!==void 0?u[S]:h[S],_=cm(N),L=S===d?k.isActive:null;L===!1&&(b=j);let E=N===h[S]&&N!==u[S]&&_;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),k.protectedKeys={...y},!k.isActive&&L===null||!N&&!k.prevProp||wb(N)||typeof N=="boolean")continue;const T=Ije(k.prevProp,N);let P=T||S===d&&k.isActive&&!E&&_||j>b&&_,$=!1;const O=Array.isArray(N)?N:[N];let q=O.reduce(a(S),{});L===!1&&(q={});const{prevResolvedValues:D={}}=k,z={...D,...q},V=H=>{P=!0,g.has(H)&&($=!0,g.delete(H)),k.needsAnimating[H]=!0;const G=e.getValue(H);G&&(G.liveStyle=!1)};for(const H in z){const G=q[H],K=D[H];if(y.hasOwnProperty(H))continue;let M=!1;wk(G)&&wk(K)?M=!GU(G,K):M=G!==K,M?G!=null?V(H):g.add(H):G!==void 0&&g.has(H)?V(H):k.protectedKeys[H]=!0}k.prevProp=N,k.prevResolvedValues=q,k.isActive&&(y={...y,...q}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(E&&T)||$)&&p.push(...O.map(H=>({animation:H,options:{type:S}})))}if(g.size){const j={};g.forEach(S=>{const k=e.getBaseTarget(S),N=e.getValue(S);N&&(N.liveStyle=!0),j[S]=k??null}),p.push({animation:j})}let w=!!p.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(p):Promise.resolve()}function l(d,u){var h;if(n[d].isActive===u)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(d,u)}),n[d].isActive=u;const p=o(d);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_9(),r=!0}}}function Ije(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GU(t,e):!1}function gc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _9(){return{animate:gc(!0),whileInView:gc(),whileHover:gc(),whileTap:gc(),whileDrag:gc(),whileFocus:gc(),exit:gc()}}class Gl{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $je extends Gl{constructor(t){super(t),t.animationState||(t.animationState=Rje(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wb(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Bje=0;class qje extends Gl{constructor(){super(...arguments),this.id=Bje++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Fje={animation:{Feature:$je},exit:{Feature:qje}};function hm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lg(e){return{point:{x:e.pageX,y:e.pageY}}}const zje=e=>t=>wN(t)&&e(t,lg(t));function zp(e,t,n,r){return hm(e,t,zje(n),r)}const T9=(e,t)=>Math.abs(e-t);function Hje(e,t){const n=T9(e.x,t.x),r=T9(e.y,t.y);return Math.sqrt(n**2+r**2)}class DV{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=d3(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=Hje(p.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:b}=p,{timestamp:w}=_r;this.history.push({...b,timestamp:w});const{onStart:j,onMove:S}=this.handlers;g||(j&&j(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=u3(g,this.transformPagePoint),rn.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=d3(p.type==="pointercancel"?this.lastMoveEventInfo:u3(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,j),b&&b(p,j)},!wN(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=lg(t),l=u3(o,this.transformPagePoint),{point:d}=l,{timestamp:u}=_r;this.history=[{...d,timestamp:u}];const{onSessionStart:h}=n;h&&h(t,d3(l,this.history)),this.removeListeners=og(zp(this.contextWindow,"pointermove",this.handlePointerMove),zp(this.contextWindow,"pointerup",this.handlePointerUp),zp(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dl(this.updatePoint)}}function u3(e,t){return t?{point:t(e.point)}:e}function L9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d3({point:e},t){return{point:e,delta:L9(e,PV(t)),offset:L9(e,Uje(t)),velocity:Vje(t,.1)}}function Uje(e){return e[0]}function PV(e){return e[e.length-1]}function Vje(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=PV(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>vo(t)));)n--;if(!r)return{x:0,y:0};const s=yo(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const RV=1e-4,Gje=1-RV,Wje=1+RV,IV=.01,Yje=0-IV,Kje=0+IV;function Qi(e){return e.max-e.min}function Xje(e,t,n){return Math.abs(e-t)<=n}function O9(e,t,n,r=.5){e.origin=r,e.originPoint=gn(t.min,t.max,e.origin),e.scale=Qi(n)/Qi(t),e.translate=gn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Gje&&e.scale<=Wje||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yje&&e.translate<=Kje||isNaN(e.translate))&&(e.translate=0)}function Hp(e,t,n,r){O9(e.x,t.x,n.x,r?r.originX:void 0),O9(e.y,t.y,n.y,r?r.originY:void 0)}function M9(e,t,n){e.min=n.min+t.min,e.max=e.min+Qi(t)}function Zje(e,t,n){M9(e.x,t.x,n.x),M9(e.y,t.y,n.y)}function D9(e,t,n){e.min=t.min-n.min,e.max=e.min+Qi(t)}function Up(e,t,n){D9(e.x,t.x,n.x),D9(e.y,t.y,n.y)}function Qje(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?gn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?gn(n,e,r.max):Math.min(e,n)),e}function P9(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Jje(e,{top:t,left:n,bottom:r,right:a}){return{x:P9(e.x,n,a),y:P9(e.y,t,r)}}function R9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function eSe(e,t){return{x:R9(e.x,t.x),y:R9(e.y,t.y)}}function tSe(e,t){let n=.5;const r=Qi(e),a=Qi(t);return a>r?n=rf(t.min,t.max-r,e.min):r>a&&(n=rf(e.min,e.max-a,t.min)),Co(0,1,n)}function nSe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ok=.35;function rSe(e=Ok){return e===!1?e=0:e===!0&&(e=Ok),{x:I9(e,"left","right"),y:I9(e,"top","bottom")}}function I9(e,t,n){return{min:$9(e,t),max:$9(e,n)}}function $9(e,t){return typeof e=="number"?e:e[t]||0}const B9=()=>({translate:0,scale:1,origin:0,originPoint:0}),zd=()=>({x:B9(),y:B9()}),q9=()=>({min:0,max:0}),On=()=>({x:q9(),y:q9()});function ha(e){return[e("x"),e("y")]}function $V({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iSe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aSe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function f3(e){return e===void 0||e===1}function Mk({scale:e,scaleX:t,scaleY:n}){return!f3(e)||!f3(t)||!f3(n)}function _c(e){return Mk(e)||BV(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function BV(e){return F9(e.x)||F9(e.y)}function F9(e){return e&&e!=="0%"}function Ry(e,t,n){const r=e-n,a=t*r;return n+a}function z9(e,t,n,r,a){return a!==void 0&&(e=Ry(e,a,r)),Ry(e,n,r)+t}function Dk(e,t=0,n=1,r,a){e.min=z9(e.min,t,n,r,a),e.max=z9(e.max,t,n,r,a)}function qV(e,{x:t,y:n}){Dk(e.x,t.translate,t.scale,t.originPoint),Dk(e.y,n.translate,n.scale,n.originPoint)}const H9=.999999999999,U9=1.0000000000001;function sSe(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,o;for(let l=0;l<a;l++){s=n[l],o=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ud(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,qV(e,o)),r&&_c(s.latestValues)&&Ud(e,s.latestValues))}t.x<U9&&t.x>H9&&(t.x=1),t.y<U9&&t.y>H9&&(t.y=1)}function Hd(e,t){e.min=e.min+t,e.max=e.max+t}function V9(e,t,n,r,a=.5){const s=gn(e.min,e.max,a);Dk(e,t,n,s,r)}function Ud(e,t){V9(e.x,t.x,t.scaleX,t.scale,t.originX),V9(e.y,t.y,t.scaleY,t.scale,t.originY)}function FV(e,t){return $V(aSe(e.getBoundingClientRect(),t))}function oSe(e,t,n){const r=FV(e,n),{scroll:a}=t;return a&&(Hd(r.x,a.offset.x),Hd(r.y,a.offset.y)),r}const zV=({current:e})=>e?e.ownerDocument.defaultView:null,lSe=new WeakMap;class cSe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=On(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lg(h).point)},s=(h,p)=>{const{drag:g,dragPropagation:y,onDragStart:b}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=t2e(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ha(j=>{let S=this.getAxisMotionValue(j).get()||0;if(js.test(S)){const{projection:k}=this.visualElement;if(k&&k.layout){const N=k.layout.layoutBox[j];N&&(S=Qi(N)*(parseFloat(S)/100))}}this.originPoint[j]=S}),b&&rn.postRender(()=>b(h,p)),Ck(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(h,p)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:b,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:j}=p;if(y&&this.currentDirection===null){this.currentDirection=uSe(j),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",p.point,j),this.updateAxis("y",p.point,j),this.visualElement.render(),w&&w(h,p)},l=(h,p)=>this.stop(h,p),d=()=>ha(h=>{var p;return this.getAnimationState(h)==="paused"&&((p=this.getAxisMotionValue(h).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new DV(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zV(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&rn.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!a0(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Qje(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&qd(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=Jje(a.layoutBox,n):this.constraints=!1,this.elastic=rSe(r),s!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&ha(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=nSe(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qd(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=oSe(r,a.root,this.visualElement.getTransformPagePoint());let o=eSe(a.layout.layoutBox,s);if(n){const l=n(iSe(o));this.hasMutatedConstraints=!!l,l&&(o=$V(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},u=ha(h=>{if(!a0(h,n,this.currentDirection))return;let p=d&&d[h]||{};o&&(p={min:0,max:0});const g=a?200:1e6,y=a?40:1e7,b={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(h,b)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ck(this.visualElement,t),r.start(MN(t,r,0,n,this.visualElement,!1))}stopAnimation(){ha(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ha(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ha(n=>{const{drag:r}=this.getProps();if(!a0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];s.set(t[n]-gn(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qd(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ha(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const d=l.get();a[o]=tSe({min:d,max:d},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ha(o=>{if(!a0(o,t,null))return;const l=this.getAxisMotionValue(o),{min:d,max:u}=this.constraints[o];l.set(gn(d,u,a[o]))})}addListeners(){if(!this.visualElement.current)return;lSe.set(this.visualElement,this);const t=this.visualElement.current,n=zp(t,"pointerdown",d=>{const{drag:u,dragListener:h=!0}=this.getProps();u&&h&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();qd(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),rn.read(r);const o=hm(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(ha(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=d[h].translate,p.set(p.get()+d[h].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:o=Ok,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function a0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uSe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dSe extends Gl{constructor(t){super(t),this.removeGroupControls=Xi,this.removeListeners=Xi,this.controls=new cSe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xi}unmount(){this.removeGroupControls(),this.removeListeners()}}const G9=e=>(t,n)=>{e&&rn.postRender(()=>e(t,n))};class fSe extends Gl{constructor(){super(...arguments),this.removePointerDownListener=Xi}onPointerDown(t){this.session=new DV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zV(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:G9(t),onStart:G9(n),onMove:r,onEnd:(s,o)=>{delete this.session,a&&rn.postRender(()=>a(s,o))}}}mount(){this.removePointerDownListener=zp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Q0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function W9(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const up={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xe.test(e))e=parseFloat(e);else return e;const n=W9(e,t.target.x),r=W9(e,t.target.y);return`${n}% ${r}%`}},hSe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Pl.parse(e);if(a.length>5)return r;const s=Pl.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,d=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=d;const u=gn(l,d,.5);return typeof a[2+o]=="number"&&(a[2+o]/=u),typeof a[3+o]=="number"&&(a[3+o]/=u),s(a)}};class pSe extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;Dwe(mSe),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Q0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,a||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||rn.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lN.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function HV(e){const[t,n]=K1e(),r=v.useContext(kU);return i.jsx(pSe,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(MU),isPresent:t,safeToRemove:n})}const mSe={borderRadius:{...up,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:up,borderTopRightRadius:up,borderBottomLeftRadius:up,borderBottomRightRadius:up,boxShadow:hSe};function gSe(e,t,n){const r=Vr(e)?e:dm(e);return r.start(MN("",r,t,n)),r.animation}function vSe(e){return e instanceof SVGElement&&e.tagName!=="svg"}const ySe=(e,t)=>e.depth-t.depth;class xSe{constructor(){this.children=[],this.isDirty=!1}add(t){jN(this.children,t),this.isDirty=!0}remove(t){SN(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ySe),this.isDirty=!1,this.children.forEach(t)}}function bSe(e,t){const n=Ss.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Dl(r),e(s-t))};return rn.read(r,!0),()=>Dl(r)}const UV=["TopLeft","TopRight","BottomLeft","BottomRight"],wSe=UV.length,Y9=e=>typeof e=="string"?parseFloat(e):e,K9=e=>typeof e=="number"||Xe.test(e);function jSe(e,t,n,r,a,s){a?(e.opacity=gn(0,n.opacity!==void 0?n.opacity:1,SSe(r)),e.opacityExit=gn(t.opacity!==void 0?t.opacity:1,0,CSe(r))):s&&(e.opacity=gn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<wSe;o++){const l=`border${UV[o]}Radius`;let d=X9(t,l),u=X9(n,l);if(d===void 0&&u===void 0)continue;d||(d=0),u||(u=0),d===0||u===0||K9(d)===K9(u)?(e[l]=Math.max(gn(Y9(d),Y9(u),r),0),(js.test(u)||js.test(d))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=gn(t.rotate||0,n.rotate||0,r))}function X9(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SSe=VV(0,.5,cV),CSe=VV(.5,.95,Xi);function VV(e,t,n){return r=>r<e?0:r>t?1:n(rf(e,t,r))}function Z9(e,t){e.min=t.min,e.max=t.max}function da(e,t){Z9(e.x,t.x),Z9(e.y,t.y)}function Q9(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function J9(e,t,n,r,a){return e-=t,e=Ry(e,1/n,r),a!==void 0&&(e=Ry(e,1/a,r)),e}function kSe(e,t=0,n=1,r=.5,a,s=e,o=e){if(js.test(t)&&(t=parseFloat(t),t=gn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=gn(s.min,s.max,r);e===s&&(l-=t),e.min=J9(e.min,t,n,l,a),e.max=J9(e.max,t,n,l,a)}function e7(e,t,[n,r,a],s,o){kSe(e,t[n],t[r],t[a],t.scale,s,o)}const NSe=["x","scaleX","originX"],ASe=["y","scaleY","originY"];function t7(e,t,n,r){e7(e.x,t,NSe,n?n.x:void 0,r?r.x:void 0),e7(e.y,t,ASe,n?n.y:void 0,r?r.y:void 0)}function n7(e){return e.translate===0&&e.scale===1}function GV(e){return n7(e.x)&&n7(e.y)}function r7(e,t){return e.min===t.min&&e.max===t.max}function ESe(e,t){return r7(e.x,t.x)&&r7(e.y,t.y)}function i7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function WV(e,t){return i7(e.x,t.x)&&i7(e.y,t.y)}function a7(e){return Qi(e.x)/Qi(e.y)}function s7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _Se{constructor(){this.members=[]}add(t){jN(this.members,t),t.scheduleRender()}remove(t){if(SN(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TSe(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,o=n?.z||0;if((a||s||o)&&(r=`translate3d(${a}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:h,rotateX:p,rotateY:g,skewX:y,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),h&&(r+=`rotate(${h}deg) `),p&&(r+=`rotateX(${p}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,d=e.y.scale*t.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const Tc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Mp=typeof window<"u"&&window.MotionDebug!==void 0,h3=["","X","Y","Z"],LSe={visibility:"hidden"},o7=1e3;let OSe=0;function p3(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function YV(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nV(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rn,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&YV(r)}function KV({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t?.()){this.id=OSe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Mp&&(Tc.totalNodes=Tc.resolvedTargetDeltas=Tc.recalculatedProjection=0),this.nodes.forEach(PSe),this.nodes.forEach(qSe),this.nodes.forEach(FSe),this.nodes.forEach(RSe),Mp&&window.MotionDebug.record(Tc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new xSe)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new CN),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const d=this.eventHandlers.get(o);d&&d.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vSe(o),this.instance=o;const{layoutId:d,layout:u,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||d)&&(this.isLayoutDirty=!0),e){let p;const g=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=bSe(g,250),Q0.hasAnimatedSinceResize&&(Q0.hasAnimatedSinceResize=!1,this.nodes.forEach(c7))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||GSe,{onLayoutAnimationStart:j,onLayoutAnimationComplete:S}=h.getProps(),k=!this.targetLayout||!WV(this.targetLayout,b)||y,N=!g&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||g&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,N);const _={...yN(w,"layout"),onPlay:j,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else g||c7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zSe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&YV(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const p=this.path[h];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:d}=this.options;if(l===void 0&&!d)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(l7);return}this.isUpdating||this.nodes.forEach($Se),this.isUpdating=!1,this.nodes.forEach(BSe),this.nodes.forEach(MSe),this.nodes.forEach(DSe),this.clearAllSnapshots();const l=Ss.now();_r.delta=Co(0,1e3/60,l-_r.timestamp),_r.timestamp=l,_r.isProcessing=!0,i3.update.process(_r),i3.preRender.process(_r),i3.render.process(_r),_r.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ISe),this.sharedNodes.forEach(HSe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=On(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!GV(this.projectionDelta),d=this.getTransformTemplate(),u=d?d(this.latestValues,""):void 0,h=u!==this.prevTransformTemplateValue;o&&(l||_c(this.latestValues)||h)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let d=this.removeElementScroll(l);return o&&(d=this.removeTransform(d)),WSe(d),{animationId:this.root.animationId,measuredBox:l,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return On();const d=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(YSe))){const{scroll:h}=this.root;h&&(Hd(d.x,h.offset.x),Hd(d.y,h.offset.y))}return d}removeElementScroll(o){var l;const d=On();if(da(d,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return d;for(let u=0;u<this.path.length;u++){const h=this.path[u],{scroll:p,options:g}=h;h!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&da(d,o),Hd(d.x,p.offset.x),Hd(d.y,p.offset.y))}return d}applyTransform(o,l=!1){const d=On();da(d,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ud(d,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),_c(h.latestValues)&&Ud(d,h.latestValues)}return _c(this.latestValues)&&Ud(d,this.latestValues),d}removeTransform(o){const l=On();da(l,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];if(!u.instance||!_c(u.latestValues))continue;Mk(u.latestValues)&&u.updateSnapshot();const h=On(),p=u.measurePageBox();da(h,p),t7(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,h)}return _c(this.latestValues)&&t7(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_r.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==d;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=_r.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=On(),this.relativeTargetOrigin=On(),Up(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),da(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=On(),this.targetWithTransforms=On()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zje(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):da(this.target,this.layout.layoutBox),qV(this.target,this.targetDelta)):da(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=On(),this.relativeTargetOrigin=On(),Up(this.relativeTargetOrigin,this.target,y.target),da(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Mp&&Tc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mk(this.parent.latestValues)||BV(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),d=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===_r.timestamp&&(u=!1),u)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;da(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;sSe(this.layoutCorrected,this.treeScale,this.path,d),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=On());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Q9(this.prevProjectionDelta.x,this.projectionDelta.x),Q9(this.prevProjectionDelta.y,this.projectionDelta.y)),Hp(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!s7(this.projectionDelta.x,this.prevProjectionDelta.x)||!s7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Mp&&Tc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zd(),this.projectionDelta=zd(),this.projectionDeltaWithTransform=zd()}setAnimationOrigin(o,l=!1){const d=this.snapshot,u=d?d.latestValues:{},h={...this.latestValues},p=zd();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=On(),y=d?d.source:void 0,b=this.layout?this.layout.source:void 0,w=y!==b,j=this.getStack(),S=!j||j.members.length<=1,k=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(VSe));this.animationProgress=0;let N;this.mixTargetDelta=_=>{const L=_/1e3;u7(p.x,o.x,L),u7(p.y,o.y,L),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Up(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),USe(this.relativeTarget,this.relativeTargetOrigin,g,L),N&&ESe(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=On()),da(N,this.relativeTarget)),w&&(this.animationValues=h,jSe(h,u,this.latestValues,L,k,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rn.update(()=>{Q0.hasAnimatedSinceResize=!0,this.currentAnimation=gSe(0,o7,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(o7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:d,layout:u,latestValues:h}=o;if(!(!l||!d||!u)){if(this!==o&&this.layout&&u&&XV(this.options.animationType,this.layout.layoutBox,u.layoutBox)){d=this.target||On();const p=Qi(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+p;const g=Qi(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+g}da(l,d),Ud(l,h),Hp(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _Se),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:d}={}){const u=this.getStack();u&&u.promote(this,d),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:d}=o;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const u={};d.z&&p3("z",o,u,this.animationValues);for(let h=0;h<h3.length;h++)p3(`rotate${h3[h]}`,o,u,this.animationValues),p3(`skew${h3[h]}`,o,u,this.animationValues);o.render();for(const h in u)o.setStaticValue(h,u[h]),this.animationValues&&(this.animationValues[h]=u[h]);o.scheduleRender()}getProjectionStyles(o){var l,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return LSe;const u={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=X0(o?.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=X0(o?.pointerEvents)||""),this.hasProjected&&!_c(this.latestValues)&&(w.transform=h?h({},""):"none",this.hasProjected=!1),w}const g=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=TSe(this.projectionDeltaWithTransform,this.treeScale,g),h&&(u.transform=h(g,u.transform));const{x:y,y:b}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,p.animationValues?u.opacity=p===this?(d=(l=g.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const w in Ly){if(g[w]===void 0)continue;const{correct:j,applyTo:S}=Ly[w],k=u.transform==="none"?g[w]:j(g[w],p);if(S){const N=S.length;for(let _=0;_<N;_++)u[S[_]]=k}else u[w]=k}return this.options.layoutId&&(u.pointerEvents=p===this?X0(o?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(l7),this.root.sharedNodes.clear()}}}function MSe(e){e.updateLayout()}function DSe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?ha(p=>{const g=o?n.measuredBox[p]:n.layoutBox[p],y=Qi(g);g.min=r[p].min,g.max=g.min+y}):XV(s,n.layoutBox,r)&&ha(p=>{const g=o?n.measuredBox[p]:n.layoutBox[p],y=Qi(r[p]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const l=zd();Hp(l,r,n.layoutBox);const d=zd();o?Hp(d,e.applyTransform(a,!0),n.measuredBox):Hp(d,r,n.layoutBox);const u=!GV(l);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const b=On();Up(b,n.layoutBox,g.layoutBox);const w=On();Up(w,r,y.layoutBox),WV(b,w)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function PSe(e){Mp&&Tc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RSe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ISe(e){e.clearSnapshot()}function l7(e){e.clearMeasurements()}function $Se(e){e.isLayoutDirty=!1}function BSe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function c7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qSe(e){e.resolveTargetDelta()}function FSe(e){e.calcProjection()}function zSe(e){e.resetSkewAndRotation()}function HSe(e){e.removeLeadSnapshot()}function u7(e,t,n){e.translate=gn(t.translate,0,n),e.scale=gn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function d7(e,t,n,r){e.min=gn(t.min,n.min,r),e.max=gn(t.max,n.max,r)}function USe(e,t,n,r){d7(e.x,t.x,n.x,r),d7(e.y,t.y,n.y,r)}function VSe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GSe={duration:.45,ease:[.4,0,.1,1]},f7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),h7=f7("applewebkit/")&&!f7("chrome/")?Math.round:Xi;function p7(e){e.min=h7(e.min),e.max=h7(e.max)}function WSe(e){p7(e.x),p7(e.y)}function XV(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xje(a7(t),a7(n),.2)}function YSe(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const KSe=KV({attachResizeListener:(e,t)=>hm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),m3={current:void 0},ZV=KV({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!m3.current){const e=new KSe({});e.mount(window),e.setOptions({layoutScroll:!0}),m3.current=e}return m3.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),XSe={pan:{Feature:fSe},drag:{Feature:dSe,ProjectionNode:ZV,MeasureLayout:HV}};function m7(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&rn.postRender(()=>s(t,lg(t)))}class ZSe extends Gl{mount(){const{current:t}=this.node;t&&(this.unmount=Xwe(t,n=>(m7(this.node,n,"Start"),r=>m7(this.node,r,"End"))))}unmount(){}}class QSe extends Gl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=og(hm(this.node.current,"focus",()=>this.onFocus()),hm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function g7(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&rn.postRender(()=>s(t,lg(t)))}class JSe extends Gl{mount(){const{current:t}=this.node;t&&(this.unmount=e2e(t,n=>(g7(this.node,n,"Start"),(r,{success:a})=>g7(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pk=new WeakMap,g3=new WeakMap,e3e=e=>{const t=Pk.get(e.target);t&&t(e)},t3e=e=>{e.forEach(e3e)};function n3e({root:e,...t}){const n=e||document;g3.has(n)||g3.set(n,{});const r=g3.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(t3e,{root:e,...t})),r[a]}function r3e(e,t,n){const r=n3e(t);return Pk.set(e,n),r.observe(e),()=>{Pk.delete(e),r.unobserve(e)}}const i3e={some:0,all:1};class a3e extends Gl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:i3e[a]},l=d=>{const{isIntersecting:u}=d;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),g=u?h:p;g&&g(d)};return r3e(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(s3e(t,n))&&this.startObserver()}unmount(){}}function s3e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o3e={inView:{Feature:a3e},tap:{Feature:JSe},focus:{Feature:QSe},hover:{Feature:ZSe}},l3e={layout:{ProjectionNode:ZV,MeasureLayout:HV}},Rk={current:null},QV={current:!1};function c3e(){if(QV.current=!0,!!rN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rk.current=e.matches;e.addListener(t),t()}else Rk.current=!1}const u3e=[...SV,qr,Pl],d3e=e=>u3e.find(jV(e)),v7=new WeakMap;function f3e(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Vr(a))e.addValue(r,a);else if(Vr(s))e.addValue(r,dm(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,dm(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class h3e{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=TN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Ss.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,rn.render(this.render,!1,!0))};const{latestValues:d,renderState:u,onUpdate:h}=o;this.onUpdate=h,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=jb(n),this.isVariantNode=LU(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const b=g[y];d[y]!==void 0&&Vr(b)&&b.set(d[y],!1)}}mount(t){this.current=t,v7.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),QV.current||c3e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rk.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){v7.delete(this.current),this.projection&&this.projection.unmount(),Dl(this.notifyUpdate),Dl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ju.has(t),a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in af){const n=af[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):On()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<y7.length;r++){const a=y7[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,o=t[s];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=f3e(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
629addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=dm(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(bV(a)||dV(a))?a=parseFloat(a):!d3e(a)&&Pl.test(n)&&(a=vV(t,n)),this.setBaseTarget(t,Vr(a)?a.get():a)),Vr(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const o=uN(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(a=o[t])}if(r&&a!==void 0)return a;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Vr(s)?s:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new CN),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class JV extends h3e{constructor(){super(...arguments),this.KeyframeResolver=CV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function p3e(e){return window.getComputedStyle(e)}class m3e extends JV{constructor(){super(...arguments),this.type="html",this.renderInstance=qU}readValueFromInstance(t,n){if(ju.has(n)){const r=_N(n);return r&&r.default||0}else{const r=p3e(t),a=(IU(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return FV(t,n)}build(t,n,r){hN(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vN(t,n,r)}}class g3e extends JV{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=On}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ju.has(n)){const r=_N(n);return r&&r.default||0}return n=FU.has(n)?n:oN(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UU(t,n,r)}build(t,n,r){pN(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){zU(t,n,r,a)}mount(t){this.isSVGTag=gN(t.tagName),super.mount(t)}}const v3e=(e,t)=>cN(e)?new g3e(t):new m3e(t,{allowProjection:e!==v.Fragment}),y3e=Hwe({...Fje,...o3e,...XSe,...l3e},v3e),Rl=iwe(y3e);function ko(e){return Array.isArray?Array.isArray(e):nG(e)==="[object Array]"}function x3e(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function b3e(e){return e==null?"":x3e(e)}function vs(e){return typeof e=="string"}function eG(e){return typeof e=="number"}function w3e(e){return e===!0||e===!1||j3e(e)&&nG(e)=="[object Boolean]"}function tG(e){return typeof e=="object"}function j3e(e){return tG(e)&&e!==null}function zi(e){return e!=null}function v3(e){return!e.trim().length}function nG(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const S3e="Incorrect 'index' type",C3e=e=>`Invalid value for key ${e}`,k3e=e=>`Pattern length exceeds max of ${e}.`,N3e=e=>`Missing ${e} property in key`,A3e=e=>`Property 'weight' in key '${e}' must be a positive integer`,x7=Object.prototype.hasOwnProperty;class E3e{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=rG(r);this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rG(e){let t=null,n=null,r=null,a=1,s=null;if(vs(e)||ko(e))r=e,t=b7(e),n=Ik(e);else{if(!x7.call(e,"name"))throw new Error(N3e("name"));const o=e.name;if(r=o,x7.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(A3e(o));t=b7(o),n=Ik(o),s=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:s}}function b7(e){return ko(e)?e:e.split(".")}function Ik(e){return ko(e)?e.join("."):e}function _3e(e,t){let n=[],r=!1;const a=(s,o,l)=>{if(zi(s))if(!o[l])n.push(s);else{let d=o[l];const u=s[d];if(!zi(u))return;if(l===o.length-1&&(vs(u)||eG(u)||w3e(u)))n.push(b3e(u));else if(ko(u)){r=!0;for(let h=0,p=u.length;h<p;h+=1)a(u[h],o,l+1)}else o.length&&a(u,o,l+1)}};return a(e,vs(t)?t.split("."):t,0),r?n:n[0]}const T3e={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},L3e={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},O3e={location:0,threshold:.6,distance:100},M3e={useExtendedSearch:!1,getFn:_3e,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ze={...L3e,...T3e,...O3e,...M3e};const D3e=/[^ ]+/g;function P3e(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const s=a.match(D3e).length;if(n.has(s))return n.get(s);const o=1/Math.pow(s,.5*e),l=parseFloat(Math.round(o*r)/r);return n.set(s,l),l},clear(){n.clear()}}}class DN{constructor({getFn:t=Ze.getFn,fieldNormWeight:n=Ze.fieldNormWeight}={}){this.norm=P3e(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,vs(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();vs(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!zi(t)||v3(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((a,s)=>{let o=a.getFn?a.getFn(t):this.getFn(t,a.path);
vendor: 15,707 bytes, line 629
629if(zi(o)){if(ko(o)){let l=[];const d=[{nestedArrIndex:-1,value:o}];for(;d.length;){const{nestedArrIndex:u,value:h}=d.pop();if(zi(h))if(vs(h)&&!v3(h)){let p={v:h,i:u,n:this.norm.get(h)};l.push(p)}else ko(h)&&h.forEach((p,g)=>{d.push({nestedArrIndex:g,value:p})})}r.$[s]=l}else if(vs(o)&&!v3(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function iG(e,t,{getFn:n=Ze.getFn,fieldNormWeight:r=Ze.fieldNormWeight}={}){const a=new DN({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(rG)),a.setSources(t),a.create(),a}function R3e(e,{getFn:t=Ze.getFn,fieldNormWeight:n=Ze.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new DN({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(a),s}function s0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ze.distance,ignoreLocation:s=Ze.ignoreLocation}={}){const o=t/e.length;if(s)return o;const l=Math.abs(r-n);return a?o+l/a:l?1:o}function I3e(e=[],t=Ze.minMatchCharLength){let n=[],r=-1,a=-1,s=0;for(let o=e.length;s<o;s+=1){let l=e[s];l&&r===-1?r=s:!l&&r!==-1&&(a=s-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Pc=32;function $3e(e,t,n,{location:r=Ze.location,distance:a=Ze.distance,threshold:s=Ze.threshold,findAllMatches:o=Ze.findAllMatches,minMatchCharLength:l=Ze.minMatchCharLength,includeMatches:d=Ze.includeMatches,ignoreLocation:u=Ze.ignoreLocation}={}){if(t.length>Pc)throw new Error(k3e(Pc));const h=t.length,p=e.length,g=Math.max(0,Math.min(r,p));let y=s,b=g;const w=l>1||d,j=w?Array(p):[];let S;for(;(S=e.indexOf(t,b))>-1;){let T=s0(t,{currentLocation:S,expectedLocation:g,distance:a,ignoreLocation:u});if(y=Math.min(T,y),b=S+h,w){let P=0;for(;P<h;)j[S+P]=1,P+=1}}b=-1;let k=[],N=1,_=h+p;const L=1<<h-1;for(let T=0;T<h;T+=1){let P=0,$=_;for(;P<$;)s0(t,{errors:T,currentLocation:g+$,expectedLocation:g,distance:a,ignoreLocation:u})<=y?P=$:_=$,$=Math.floor((_-P)/2+P);_=$;let O=Math.max(1,g-$+1),q=o?p:Math.min(g+$,p)+h,D=Array(q+2);D[q+1]=(1<<T)-1;for(let V=q;V>=O;V-=1){let W=V-1,B=n[e.charAt(W)];if(w&&(j[W]=+!!B),D[V]=(D[V+1]<<1|1)&B,T&&(D[V]|=(k[V+1]|k[V])<<1|1|k[V+1]),D[V]&L&&(N=s0(t,{errors:T,currentLocation:W,expectedLocation:g,distance:a,ignoreLocation:u}),N<=y)){if(y=N,b=W,b<=g)break;O=Math.max(1,2*g-b)}}if(s0(t,{errors:T+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:u})>y)break;k=D}const E={isMatch:b>=0,score:Math.max(.001,N)};if(w){const T=I3e(j,l);T.length?d&&(E.indices=T):E.isMatch=!1}return E}function B3e(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}const Iy=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class aG{constructor(t,{location:n=Ze.location,threshold:r=Ze.threshold,distance:a=Ze.distance,includeMatches:s=Ze.includeMatches,findAllMatches:o=Ze.findAllMatches,minMatchCharLength:l=Ze.minMatchCharLength,isCaseSensitive:d=Ze.isCaseSensitive,ignoreDiacritics:u=Ze.ignoreDiacritics,ignoreLocation:h=Ze.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:d,ignoreDiacritics:u,ignoreLocation:h},t=d?t:t.toLowerCase(),t=u?Iy(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const p=(y,b)=>{this.chunks.push({pattern:y,alphabet:B3e(y),startIndex:b})},g=this.pattern.length;if(g>Pc){let y=0;const b=g%Pc,w=g-b;for(;y<w;)p(this.pattern.substr(y,Pc),y),y+=Pc;if(b){const j=g-Pc;p(this.pattern.substr(j),j)}}else p(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Iy(t):t,this.pattern===t){let w={isMatch:!0,score:0};return a&&(w.indices=[[0,t.length-1]]),w}const{location:s,distance:o,threshold:l,findAllMatches:d,minMatchCharLength:u,ignoreLocation:h}=this.options;let p=[],g=0,y=!1;this.chunks.forEach(({pattern:w,alphabet:j,startIndex:S})=>{const{isMatch:k,score:N,indices:_}=$3e(t,w,j,{location:s+S,distance:o,threshold:l,findAllMatches:d,minMatchCharLength:u,includeMatches:a,ignoreLocation:h});k&&(y=!0),g+=N,k&&_&&(p=[...p,..._])});let b={isMatch:y,score:y?g/this.chunks.length:1};return y&&a&&(b.indices=p),b}}class Wl{constructor(t){this.pattern=t}static isMultiMatch(t){return w7(t,this.multiRegex)}static isSingleMatch(t){return w7(t,this.singleRegex)}search(){}}function w7(e,t){const n=e.match(t);return n?n[1]:null}class q3e extends Wl{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class F3e extends Wl{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class z3e extends Wl{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class H3e extends Wl{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class U3e extends Wl{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class V3e extends Wl{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class sG extends Wl{constructor(t,{location:n=Ze.location,threshold:r=Ze.threshold,distance:a=Ze.distance,includeMatches:s=Ze.includeMatches,findAllMatches:o=Ze.findAllMatches,minMatchCharLength:l=Ze.minMatchCharLength,isCaseSensitive:d=Ze.isCaseSensitive,ignoreDiacritics:u=Ze.ignoreDiacritics,ignoreLocation:h=Ze.ignoreLocation}={}){super(t),this._bitapSearch=new aG(t,{location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:d,ignoreDiacritics:u,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class oG extends Wl{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,a.push([r,n-1]);const o=!!a.length;return{isMatch:o,score:o?0:1,indices:a}}}const $k=[q3e,oG,z3e,H3e,V3e,U3e,F3e,sG],j7=$k.length,G3e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,W3e="|";function Y3e(e,t={}){return e.split(W3e).map(n=>{let r=n.trim().split(G3e).filter(s=>s&&!!s.trim()),a=[];for(let s=0,o=r.length;s<o;s+=1){const l=r[s];let d=!1,u=-1;for(;!d&&++u<j7;){const h=$k[u];let p=h.isMultiMatch(l);p&&(a.push(new h(p,t)),d=!0)}if(!d)for(u=-1;++u<j7;){const h=$k[u];let p=h.isSingleMatch(l);if(p){a.push(new h(p,t));break}}}return a})}const K3e=new Set([sG.type,oG.type]);class X3e{constructor(t,{isCaseSensitive:n=Ze.isCaseSensitive,ignoreDiacritics:r=Ze.ignoreDiacritics,includeMatches:a=Ze.includeMatches,minMatchCharLength:s=Ze.minMatchCharLength,ignoreLocation:o=Ze.ignoreLocation,findAllMatches:l=Ze.findAllMatches,location:d=Ze.location,threshold:u=Ze.threshold,distance:h=Ze.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:s,findAllMatches:l,ignoreLocation:o,location:d,threshold:u,distance:h},t=n?t:t.toLowerCase(),t=r?Iy(t):t,this.pattern=t,this.query=Y3e(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:a,ignoreDiacritics:s}=this.options;t=a?t:t.toLowerCase(),t=s?Iy(t):t;let o=0,l=[],d=0;for(let u=0,h=n.length;u<h;u+=1){const p=n[u];l.length=0,o=0;for(let g=0,y=p.length;g<y;g+=1){const b=p[g],{isMatch:w,indices:j,score:S}=b.search(t);if(w){if(o+=1,d+=S,r){const k=b.constructor.type;K3e.has(k)?l=[...l,...j]:l.push(j)}}else{d=0,o=0,l.length=0;break}}if(o){let g={isMatch:!0,score:d/o};return r&&(g.indices=l),g}}return{isMatch:!1,score:1}}}const Bk=[];function Z3e(...e){Bk.push(...e)}function qk(e,t){for(let n=0,r=Bk.length;n<r;n+=1){let a=Bk[n];if(a.condition(e,t))return new a(e,t)}return new aG(e,t)}const $y={AND:"$and",OR:"$or"},Fk={PATH:"$path",PATTERN:"$val"},zk=e=>!!(e[$y.AND]||e[$y.OR]),Q3e=e=>!!e[Fk.PATH],J3e=e=>!ko(e)&&tG(e)&&!zk(e),S7=e=>({[$y.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function lG(e,t,{auto:n=!0}={}){const r=a=>{let s=Object.keys(a);const o=Q3e(a);if(!o&&s.length>1&&!zk(a))return r(S7(a));if(J3e(a)){const d=o?a[Fk.PATH]:s[0],u=o?a[Fk.PATTERN]:a[d];if(!vs(u))throw new Error(C3e(d));const h={keyId:Ik(d),pattern:u};return n&&(h.searcher=qk(u,t)),h}let l={children:[],operator:s[0]};return s.forEach(d=>{const u=a[d];ko(u)&&u.forEach(h=>{l.children.push(r(h))})}),l};return zk(e)||(e=S7(e)),r(e)}function eCe(e,{ignoreFieldNorm:t=Ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:s,score:o})=>{const l=a?a.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(t?1:s))}),n.score=r})}function tCe(e,t){const n=e.matches;t.matches=[],zi(n)&&n.forEach(r=>{if(!zi(r.indices)||!r.indices.length)return;const{indices:a,value:s}=r;let o={indices:a,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),t.matches.push(o)})}function nCe(e,t){t.score=e.score}function rCe(e,t,{includeMatches:n=Ze.includeMatches,includeScore:r=Ze.includeScore}={}){const a=[];return n&&a.push(tCe),r&&a.push(nCe),e.map(s=>{const{idx:o}=s,l={item:t[o],refIndex:o};return a.length&&a.forEach(d=>{d(s,l)}),l})}class Va{constructor(t,n={},r){this.options={...Ze,...n},this.options.useExtendedSearch,this._keyStore=new E3e(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof DN))throw new Error(S3e);this._myIndex=n||iG(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){zi(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,a-=1,n.push(s))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:a,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let d=vs(t)?vs(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return eCe(d,{ignoreFieldNorm:l}),s&&d.sort(o),eG(n)&&n>-1&&(d=d.slice(0,n)),rCe(d,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=qk(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:o,n:l})=>{if(!zi(s))return;const{isMatch:d,score:u,indices:h}=n.searchIn(s);d&&a.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:h}]})}),a}_searchLogical(t){const n=lG(t,this.options),r=(l,d,u)=>{if(!l.children){const{keyId:p,searcher:g}=l,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(d,p),searcher:g});return y&&y.length?[{idx:u,item:d,matches:y}]:[]}const h=[];for(let p=0,g=l.children.length;p<g;p+=1){const y=l.children[p],b=r(y,d,u);if(b.length)h.push(...b);else if(l.operator===$y.AND)return[]}return h},a=this._myIndex.records,s={},o=[];return a.forEach(({$:l,i:d})=>{if(zi(l)){let u=r(n,l,d);u.length&&(s[d]||(s[d]={idx:d,item:l,matches:[]},o.push(s[d])),u.forEach(({matches:h})=>{s[d].matches.push(...h)}))}}),o}_searchObjectList(t){const n=qk(t,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:o,i:l})=>{if(!zi(o))return;let d=[];r.forEach((u,h)=>{d.push(...this._findMatches({key:u,value:o[h],searcher:n}))}),d.length&&s.push({idx:l,item:o,matches:d})}),s}_findMatches({key:t,value:n,searcher:r}){if(!zi(n))return[];let a=[];if(ko(n))n.forEach(({v:s,i:o,n:l})=>{if(!zi(s))return;const{isMatch:d,score:u,indices:h}=r.searchIn(s);d&&a.push({score:u,key:t,value:s,idx:o,norm:l,indices:h})});else{const{v:s,n:o}=n,{isMatch:l,score:d,indices:u}=r.searchIn(s);l&&a.push({score:d,key:t,value:s,norm:o,indices:u})}return a}}Va.version="7.1.0";Va.createIndex=iG;Va.parseIndex=R3e;Va.config=Ze;Va.parseQuery=lG;Z3e(X3e);function iCe({data:e,close:t}){const{name:n,categories:r,url:a,cta:s,content:o}=e,[l,d]=v.useState("");return v.useEffect(()=>{const u=document.querySelector(".modal_info");switch(u.innerHTML=o,r[0].trim()){case"business_trade_commerce":d("Business, Trade & Commerce");break;case"identity":d("My Identity");break;case"complaints_feedbacks":d("Complaints & Feedbacks");break;case"disasters_emergencies":d("Disasters & Emergencies");break;case"tourism":d("Tourism, Events & Culture");break;case"lisense":d("Licenses, Permits & Applications");break;default:d(r[0]);break}},[]),i.jsx("div",{className:"view_service_modal",children:i.jsxs(Rl.div,{className:"modal_item",initial:{opacity:0,y:100}
629,animate:{opacity:1,y:0},transition:{type:"spring",duration:1},children:[i.jsxs("div",{className:"closeModal",onClick:()=>t(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("div",{className:"modal_theme",children:[" ",l," "]}),i.jsxs("div",{className:"modal_title",children:[" ",n," "]}),i.jsx("div",{className:"modal_info"}),i.jsxs("div",{className:"modal_CTA",onClick:()=>window.open(a),children:[" ",s," "]})]})})}function C7({data:e,i:t,search:n}){return i.jsxs(Rl.div,{className:"result__card",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,delay:t*.1,type:"spring"},onClick:()=>n(e),children:[i.jsx("div",{className:"title",children:e.name}),i.jsx("div",{className:"subtitle",children:e.short}),i.jsxs("div",{className:"themeArea uppercase",children:[" From ",Wn(e.categories[0],17)," "]})]})}function yn({bg:e,customClass:t}){return i.jsx("div",{className:`spinnerlx ${t}`,style:{backgroundColor:e},children:i.jsx("span",{className:"loader"})})}var y3={},x3={},qi={},k7;function PN(){if(k7)return qi;k7=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.browserSupportsPolyfills=qi.compareTwoStringsUsingDiceCoefficient=qi.commandToRegExp=qi.concatTranscripts=qi.debounce=void 0;var e=function(p,g,y){var b;return function(){var w=this,j=arguments,S=function(){b=null,y||p.apply(w,j)},k=y&&!b;clearTimeout(b),b=setTimeout(S,g),k&&p.apply(w,j)}};qi.debounce=e;var t=function(){for(var p=arguments.length,g=new Array(p),y=0;y<p;y++)g[y]=arguments[y];return g.map(function(b){return b.trim()}).join(" ").trim()};qi.concatTranscripts=t;var n=/\s*\((.*?)\)\s*/g,r=/(\(\?:[^)]+\))\?/g,a=/(\(\?)?:\w+/g,s=/\*/g,o=/[-{}[\]+?.,\\^$|#]/g,l=function(p){return p instanceof RegExp?new RegExp(p.source,"i"):(p=p.replace(o,"\\$&").replace(n,"(?:$1)?").replace(a,function(g,y){return y?g:"([^\\s]+)"}).replace(s,"(.*?)").replace(r,"\\s*$1?\\s*"),new RegExp("^"+p+"$","i"))};qi.commandToRegExp=l;var d=function(p,g){if(p=p.replace(/\s+/g,"").toLowerCase(),g=g.replace(/\s+/g,"").toLowerCase(),!p.length&&!g.length)return 1;if(!p.length||!g.length)return 0;if(p===g)return 1;if(p.length===1&&g.length===1||p.length<2||g.length<2)return 0;for(var y=new Map,b=0;b<p.length-1;b++){var w=p.substring(b,b+2),j=y.has(w)?y.get(w)+1:1;y.set(w,j)}for(var S=0,k=0;k<g.length-1;k++){var N=g.substring(k,k+2),_=y.has(N)?y.get(N):0;_>0&&(y.set(N,_-1),S++)}return 2*S/(p.length+g.length-2)};qi.compareTwoStringsUsingDiceCoefficient=d;var u=function(){return typeof window<"u"&&window.navigator!==void 0&&window.navigator.mediaDevices!==void 0&&window.navigator.mediaDevices.getUserMedia!==void 0&&(window.AudioContext!==void 0||window.webkitAudioContext!==void 0)};return qi.browserSupportsPolyfills=u,qi}var vc={},yc={},N7;function cG(){if(N7)return yc;N7=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.APPEND_TRANSCRIPT=yc.CLEAR_TRANSCRIPT=void 0;var e="CLEAR_TRANSCRIPT";yc.CLEAR_TRANSCRIPT=e;var t="APPEND_TRANSCRIPT";return yc.APPEND_TRANSCRIPT=t,yc}var A7;function aCe(){if(A7)return vc;A7=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.appendTranscript=vc.clearTranscript=void 0;var e=cG(),t=function(){return{type:e.CLEAR_TRANSCRIPT}};vc.clearTranscript=t;var n=function(a,s){return{type:e.APPEND_TRANSCRIPT,payload:{interimTranscript:a,finalTranscript:s}}};return vc.appendTranscript=n,vc}var dp={},E7;function sCe(){if(E7)return dp;E7=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.transcriptReducer=void 0;var e=cG(),t=PN(),n=function(a,s){switch(s.type){case e.CLEAR_TRANSCRIPT:return{interimTranscript:"",finalTranscript:""};case e.APPEND_TRANSCRIPT:return{interimTranscript:s.payload.interimTranscript,finalTranscript:(0,t.concatTranscripts)(a.finalTranscript,s.payload.finalTranscript)};default:throw new Error}};return dp.transcriptReducer=n,dp}var b3={},w3={},_7;function uG(){return _7||(_7=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){return/(android)/i.test(typeof navigator<"u"?navigator.userAgent:"")};e.default=t})(w3)),w3}var j3={},T7;function dG(){return T7||(T7=1,(function(e){Object.defineProperty(e,"__esMo
629dule",{value:!0}),e.default=e.isNative=void 0;var t=typeof window<"u"&&(window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition||window.oSpeechRecognition),n=function(s){return s===t};e.isNative=n;var r=t;e.default=r})(j3)),j3}var L7;function oCe(){return L7||(L7=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(uG()),n=PN(),r=dG();function a(p){return p&&p.__esModule?p:{default:p}}function s(p,g,y,b,w,j,S){try{var k=p[j](S),N=k.value}catch(_){y(_);return}k.done?g(N):Promise.resolve(N).then(b,w)}function o(p){return function(){var g=this,y=arguments;return new Promise(function(b,w){var j=p.apply(g,y);function S(N){s(j,b,w,S,k,"next",N)}function k(N){s(j,b,w,S,k,"throw",N)}S(void 0)})}}function l(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function d(p,g){for(var y=0;y<g.length;y++){var b=g[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}function u(p,g,y){return g&&d(p.prototype,g),p}var h=(function(){function p(g){l(this,p),this.recognition=null,this.pauseAfterDisconnect=!1,this.interimTranscript="",this.finalTranscript="",this.listening=!1,this.isMicrophoneAvailable=!0,this.subscribers={},this.onStopListening=function(){},this.previousResultWasFinalOnly=!1,this.resetTranscript=this.resetTranscript.bind(this),this.startListening=this.startListening.bind(this),this.stopListening=this.stopListening.bind(this),this.abortListening=this.abortListening.bind(this),this.setSpeechRecognition=this.setSpeechRecognition.bind(this),this.disableRecognition=this.disableRecognition.bind(this),this.setSpeechRecognition(g),(0,t.default)()&&(this.updateFinalTranscript=(0,n.debounce)(this.updateFinalTranscript,250,!0))}return u(p,[{key:"setSpeechRecognition",value:function(y){var b=!!y&&((0,r.isNative)(y)||(0,n.browserSupportsPolyfills)());b&&(this.disableRecognition(),this.recognition=new y,this.recognition.continuous=!1,this.recognition.interimResults=!0,this.recognition.onresult=this.updateTranscript.bind(this),this.recognition.onend=this.onRecognitionDisconnect.bind(this),this.recognition.onerror=this.onError.bind(this)),this.emitBrowserSupportsSpeechRecognitionChange(b)}},{key:"subscribe",value:function(y,b){this.subscribers[y]=b}},{key:"unsubscribe",value:function(y){delete this.subscribers[y]}},{key:"emitListeningChange",value:function(y){var b=this;this.listening=y,Object.keys(this.subscribers).forEach(function(w){var j=b.subscribers[w].onListeningChange;j(y)})}},{key:"emitMicrophoneAvailabilityChange",value:function(y){var b=this;this.isMicrophoneAvailable=y,Object.keys(this.subscribers).forEach(function(w){var j=b.subscribers[w].onMicrophoneAvailabilityChange;j(y)})}},{key:"emitTranscriptChange",value:function(y,b){var w=this;Object.keys(this.subscribers).forEach(function(j){var S=w.subscribers[j].onTranscriptChange;S(y,b)})}},{key:"emitClearTranscript",value:function(){var y=this;Object.keys(this.subscribers).forEach(function(b){var w=y.subscribers[b].onClearTranscript;w()})}},{key:"emitBrowserSupportsSpeechRecognitionChange",value:function(y){var b=this;Object.keys(this.subscribers).forEach(function(w){var j=b.subscribers[w],S=j.onBrowserSupportsSpeechRecognitionChange,k=j.onBrowserSupportsContinuousListeningChange;S(y),k(y)})}},{key:"disconnect",value:function(y){if(this.recognition&&this.listening)switch(y){case"ABORT":this.pauseAfterDisconnect=!0,this.abort();break;case"RESET":this.pauseAfterDisconnect=!1,this.abort();break;case"STOP":default:this.pauseAfterDisconnect=!0,this.stop()}}},{key:"disableRecognition",value:function(){this.recognition&&(this.recognition.onresult=function(){},this.recognition.onend=function(){},this.recognition.onerror=function(){},this.listening&&this.stopListening())}},{key:"onError",value:function(y){y&&y.error&&y.error==="not-allowed"&&(this.emitMicrophoneAvailabilityChange(!1),this.disableRecognition())}},{key:"onRecognitionDisconnect",value:function(){this.onStopListening(),this.listening=!1,this.pauseAfterDisconnect?this.emitListeningChange(!1):this.recognition&&(this.recognition.continuous?this.startListening({continuous:this.recognition.continuous}):this.emitListeningChange(!1)),this.pauseAfterDisconnect=!1}},{key:"updateTranscript",value:function(y){var b=y.results,w=y.resultIndex,j=w===void 0?b.length-1:w;this.interimTranscript="",this.finalTranscript="";for(var S=j;S<b.length;++S)b[S].isFinal&&(!(0,t.default)()||b[S][0].confidence>0)?this.updateFinalTranscript(b[S][0].transcript):this.interimTranscript=(0,n.concatTranscripts)(this.interimTranscript,b[S][0].transcript);var k=!1;this.interimTranscript===""&&this.finalTranscript!==""?(this.previousResultWasFinalOnly&&
629(k=!0),this.previousResultWasFinalOnly=!0):this.previousResultWasFinalOnly=!1,k||this.emitTranscriptChange(this.interimTranscript,this.finalTranscript)}},{key:"updateFinalTranscript",value:function(y){this.finalTranscript=(0,n.concatTranscripts)(this.finalTranscript,y)}},{key:"resetTranscript",value:function(){this.disconnect("RESET")}},{key:"startListening",value:(function(){var g=o(regeneratorRuntime.mark(function b(){var w,j,S,k,N,_,L=arguments;return regeneratorRuntime.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(w=L.length>0&&L[0]!==void 0?L[0]:{},j=w.continuous,S=j===void 0?!1:j,k=w.language,this.recognition){T.next=3;break}return T.abrupt("return");case 3:if(N=S!==this.recognition.continuous,_=k&&k!==this.recognition.lang,!(N||_)){T.next=11;break}if(!this.listening){T.next=9;break}return T.next=9,this.stopListening();case 9:this.recognition.continuous=N?S:this.recognition.continuous,this.recognition.lang=_?k:this.recognition.lang;case 11:if(this.listening){T.next=22;break}return this.recognition.continuous||(this.resetTranscript(),this.emitClearTranscript()),T.prev=13,T.next=16,this.start();case 16:this.emitListeningChange(!0),T.next=22;break;case 19:T.prev=19,T.t0=T.catch(13),T.t0 instanceof DOMException||this.emitMicrophoneAvailabilityChange(!1);case 22:case"end":return T.stop()}},b,this,[[13,19]])}));function y(){return g.apply(this,arguments)}return y})()},{key:"abortListening",value:(function(){var g=o(regeneratorRuntime.mark(function b(){var w=this;return regeneratorRuntime.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return this.disconnect("ABORT"),this.emitListeningChange(!1),S.next=4,new Promise(function(k){w.onStopListening=k});case 4:case"end":return S.stop()}},b,this)}));function y(){return g.apply(this,arguments)}return y})()},{key:"stopListening",value:(function(){var g=o(regeneratorRuntime.mark(function b(){var w=this;return regeneratorRuntime.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return this.disconnect("STOP"),this.emitListeningChange(!1),S.next=4,new Promise(function(k){w.onStopListening=k});case 4:case"end":return S.stop()}},b,this)}));function y(){return g.apply(this,arguments)}return y})()},{key:"getRecognition",value:function(){return this.recognition}},{key:"start",value:(function(){var g=o(regeneratorRuntime.mark(function b(){return regeneratorRuntime.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!(this.recognition&&!this.listening)){j.next=4;break}return j.next=3,this.recognition.start();case 3:this.listening=!0;case 4:case"end":return j.stop()}},b,this)}));function y(){return g.apply(this,arguments)}return y})()},{key:"stop",value:function(){this.recognition&&this.listening&&(this.recognition.stop(),this.listening=!1)}},{key:"abort",value:function(){this.recognition&&this.listening&&(this.recognition.abort(),this.listening=!1)}}]),p})();e.default=h})(b3)),b3}var O7;function lCe(){return O7||(O7=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.useSpeechRecognition=void 0;var t=Mo(),n=PN(),r=aCe(),a=sCe(),s=d(oCe()),o=d(uG()),l=d(dG());function d(D){return D&&D.__esModule?D:{default:D}}function u(D,z,V,W,B,H,G){try{var K=D[H](G),M=K.value}catch(I){V(I);return}K.done?z(M):Promise.resolve(M).then(W,B)}function h(D){return function(){var z=this,V=arguments;return new Promise(function(W,B){var H=D.apply(z,V);function G(M){u(H,W,B,G,K,"next",M)}function K(M){u(H,W,B,G,K,"throw",M)}G(void 0)})}}function p(D){return b(D)||y(D)||k(D)||g()}function g(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 630In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(D){if(typeof Symbol<"u"&&Symbol.iterator in Object(D))return Array.from(D)}function b(D){if(Array.isArray(D))return N(D)}function w(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(V){return typeof V}:w=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},w(D)}function j(D,z){return L(D)||_(D,z)||k(D,z)||S()}
630function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 631In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(D,z){if(D){if(typeof D=="string")return N(D,z);var V=Object.prototype.toString.call(D).slice(8,-1);if(V==="Object"&&D.constructor&&(V=D.constructor.name),V==="Map"||V==="Set")return Array.from(D);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return N(D,z)}}function N(D,z){(z==null||z>D.length)&&(z=D.length);for(var V=0,W=new Array(z);V<z;V++)W[V]=D[V];return W}function _(D,z){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(D)))){var V=[],W=!0,B=!1,H=void 0;try{for(var G=D[Symbol.iterator](),K;!(W=(K=G.next()).done)&&(V.push(K.value),!(z&&V.length===z));W=!0);}catch(M){B=!0,H=M}finally{try{!W&&G.return!=null&&G.return()}finally{if(B)throw H}}return V}}function L(D){if(Array.isArray(D))return D}var E=!!l.default,T=E&&!(0,o.default)(),P,$=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=z.transcribing,W=V===void 0?!0:V,B=z.clearTranscriptOnListen,H=B===void 0?!0:B,G=z.commands,K=G===void 0?[]:G,M=(0,t.useState)(O.getRecognitionManager()),I=j(M,1),X=I[0],F=(0,t.useState)(E),U=j(F,2),Z=U[0],ee=U[1],ae=(0,t.useState)(T),ye=j(ae,2),J=ye[0],re=ye[1],ge=(0,t.useReducer)(a.transcriptReducer,{interimTranscript:X.interimTranscript,finalTranscript:""}),Q=j(ge,2),Se=Q[0],je=Se.interimTranscript,Ne=Se.finalTranscript,He=Q[1],ct=(0,t.useState)(X.listening),xt=j(ct,2),Ct=xt[0],Be=xt[1],qe=(0,t.useState)(X.isMicrophoneAvailable),Tt=j(qe,2),Kn=Tt[0],Xt=Tt[1],Me=(0,t.useRef)(K);Me.current=K;var he=function(){He((0,r.clearTranscript)())},Ee=(0,t.useCallback)(function(){X.resetTranscript(),he()},[X]),ze=function(jt,at,ur){var fn=w(jt)==="object"?jt.toString():jt,Is=fn.replace(/[&/\\#,+()!$~%.'":*?<>{}]/g,"").replace(/ +/g," ").trim(),La=(0,n.compareTwoStringsUsingDiceCoefficient)(Is,at);return La>=ur?{command:jt,commandWithoutSpecials:Is,howSimilar:La,isFuzzyMatch:!0}:null},Qe=function(jt,at){var ur=(0,n.commandToRegExp)(jt),fn=ur.exec(at);return fn?{command:jt,parameters:fn.slice(1)}:null},lt=(0,t.useCallback)(function(kt,jt){Me.current.forEach(function(at){var ur=at.command,fn=at.callback,Is=at.matchInterim,La=Is===void 0?!1:Is,$s=at.isFuzzyMatch,sn=$s===void 0?!1:$s,on=at.fuzzyMatchingThreshold,Bn=on===void 0?.8:on,wr=at.bestMatchOnly,Rr=wr===void 0?!1:wr,_n=!jt&&La?kt.trim():jt.trim(),Ir=Array.isArray(ur)?ur:[ur],jr=Ir.map(function(pn){return sn?ze(pn,_n,Bn):Qe(pn,_n)}).filter(function(pn){return pn});if(sn&&Rr&&jr.length>=2){jr.sort(function(pn,Li){return Li.howSimilar-pn.howSimilar});var hn=jr[0],Ti=hn.command,Zr=hn.commandWithoutSpecials,li=hn.howSimilar;fn(Zr,_n,li,{command:Ti,resetTranscript:Ee})}else jr.forEach(function(pn){if(pn.isFuzzyMatch){var Li=pn.command,Oi=pn.commandWithoutSpecials,rs=pn.howSimilar;fn(Oi,_n,rs,{command:Li,resetTranscript:Ee})}else{var ci=pn.command,Xn=pn.parameters;fn.apply(void 0,p(Xn).concat([{command:ci,resetTranscript:Ee}]))}})})},[Ee]),Ut=(0,t.useCallback)(function(kt,jt){W&&He((0,r.appendTranscript)(kt,jt)),lt(kt,jt)},[lt,W]),$n=(0,t.useCallback)(function(){H&&he()},[H]);(0,t.useEffect)(function(){var kt=O.counter;O.counter+=1;var jt={onListeningChange:Be,onMicrophoneAvailabilityChange:Xt,onTranscriptChange:Ut,onClearTranscript:$n,onBrowserSupportsSpeechRecognitionChange:ee,onBrowserSupportsContinuousListeningChange:re};return X.subscribe(kt,jt),function(){X.unsubscribe(kt)}},[W,H,X,Ut,$n]);var En=(0,n.concatTranscripts)(Ne,je);return{transcript:En,interimTranscript:je,finalTranscript:Ne,listening:Ct,isMicrophoneAvailable:Kn,resetTranscript:Ee,browserSupportsSpeechRecognition:Z,browserSupportsContinuousListening:J}};e.useSpeechRecognition=$;var O={counter:0,applyPolyfill:function(z){P?P.setSpeechRecognition(z):P=new s.default(z);var V=!!z&&(0,n.browserSupportsPolyfills)();E=V,T=V},removePolyfill:function(){P?P.setSpeechRecognition(l.default):P=new s.default(l.default),E=!!l.default,T=E&&!(0,o.default)()},getRecognitionManager:function(){return P||(P=new s.default(l.default)),P},getRecognition:function(){var z=O.getRecognitionManager();return z.getRecognition()},startListening:(function(){var D=h(regeneratorRuntime.mark(function V(){var W,B,H,G,K=arguments;return regeneratorRuntime.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return W=K.length>0&&K[0]!==void 0?K[0]:{},B=W.continuous,H=W.language,G=O.getRecognitionManager(),I.next=4,G.startListening({continuous:B,language:H});case 4:case"end":return I.stop()}},V)}));function z(){return D.apply(this,arguments)}return z})(),stopListening:(function(){var D=h(regeneratorRuntime.mark(function V(){var W;return regeneratorRuntime.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return W=O.getRecognitionManager(),H.next=3,W.stopListening();case 3:case"end":return H.stop()}},V)}));function z(){return D.apply(this,arguments)}return z})(),abortListening:(function(){var D=h(regeneratorRuntime.mark(function V(){var W;return regeneratorRuntime.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return W=O.getRecognitionManager(),H.next=3,W.abortListening();case 3:case"end":return H.stop()}},V)}));function z(){return D.apply(this,arguments)}return z})(),browserSupportsSpeechRecognition:function(){return E},browserSupportsContinuousListening:function(){return T}},q=O;e.default=q})(x3)),x3}var M7;function cCe(){return M7||(M7=1,(function(e){function t(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(o)}
631Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useSpeechRecognition",{enumerable:!0,get:function(){return n.useSpeechRecognition}}),e.default=void 0;var n=a(lCe());function r(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return r=function(){return o},o}function a(o){if(o&&o.__esModule)return o;if(o===null||t(o)!=="object"&&typeof o!="function")return{default:o};var l=r();if(l&&l.has(o))return l.get(o);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in o)if(Object.prototype.hasOwnProperty.call(o,h)){var p=u?Object.getOwnPropertyDescriptor(o,h):null;p&&(p.get||p.set)?Object.defineProperty(d,h,p):d[h]=o[h]}return d.default=o,l&&l.set(o,d),d}var s=n.default;e.default=s})(y3)),y3}var fG=cCe();const D7=Aa(fG),uCe=({setSpeechQuery:e,checkMic:t})=>{const{transcript:n,listening:r,resetTranscript:a,browserSupportsSpeechRecognition:s}=fG.useSpeechRecognition(),[o,l]=v.useState(!1);return v.useEffect(()=>{e(n)},[n]),v.useEffect(()=>{t(n),r?l(!0):n!==""&&window.innerWidth>800&&window.innerHeight>600?setTimeout(()=>{l(!1)},2500):l(!1)},[r]),s||alert("Browser doesn't support speech recognition."),i.jsxs("div",{className:"mic__holder",children:[o?i.jsxs("div",{className:"toast_message",children:[i.jsx("div",{className:"micIcon listening",children:i.jsx(dP,{})}),'"Speak Now..."']}):null,i.jsx("div",{className:"trigger__mic",children:r?i.jsx("div",{className:"mic listen",onClick:D7.stopListening,children:i.jsx(dP,{})}):i.jsx("div",{className:"mic",onClick:D7.startListening,children:i.jsx(_de,{})})})]})};function RN({query:e,closeModal:t}){As().pathname;const[n,r]=v.useState(e===""?"":e),[a,s]=v.useState([]),[o,l]=v.useState([]),[d,u]=v.useState({}),[h,p]=v.useState(!1),[g,y]=v.useState(!1),[b,w]=v.useState([]);v.useEffect(()=>{document.body.style.overflow="hidden"},[]);const j=()=>{p(!1)},S=O=>{u(O),p(!0),document.body.style.overflow="hidden"},k=O=>{O.target.classList[0]==="view_service_modal"&&j()},{isLoading:N,error:_,data:L}=Ke({queryKey:["services"],queryFn:()=>sU()});v.useEffect(()=>{let O=L?.data;O?.length&&E(O)},[L]);const E=O=>{const q=O.map((D,z)=>{const V=D.keywordsGroup,W=Object.entries(V).map(H=>H[1]),B=[].concat(...W);return D.keywordsTrim=B,D});w(q)};v.useEffect(()=>{let O=.1;const q={includeScore:!0,shouldSort:!0,threshold:.5,ignoreLocation:!0,ignoreFieldNorm:!0,useExtendedSearch:!0,keys:[{name:"name",weight:1},{name:"keywordsTrim.key",weight:.1},{name:"customKeywords.key",weight:.1},{name:"categories",weight:.8}]};let D=n;const z=n.toLowerCase().split(" ");z.length>1&&z.includes("lagos")&&(D=`'${n.replace("lagos","")}`);const W=new Va(b||[],q).search(D),B=W.filter(G=>G.score<=O).map(G=>G.item),H=W.filter(G=>G.score>O&&G.score<.4).map(G=>G.item);s(B),l(H)(W)},[n,b]);const T=O=>{const q=`Searching for services on ${O}`;let D=new SpeechSynthesisUtterance(O!==""?q:"");D.voice=window.speechSynthesis.getVoices()[159],window.speechSynthesis.speak(D)},P=O=>{T(O)},$=O=>{O!==""&&r(O)};return i.jsxs(Rl.div,{className:"search__component",initial:{x:1e3},animate:{x:0},transition:{type:"tween",duration:.4,ease:"easeInOut"},children:[h?i.jsx("div",{className:"showInfo",onClick:k,children:i.jsx(iCe,{data:d,close:j})}):null,i.jsxs(Mt,{children:[i.jsxs("div",{className:"close__search__modal",onClick:t,children:[" ",i.jsx(et,{strokeWidth:1})," "]}),i.jsxs("div",{className:"search__title",children:[i.jsxs("div",{className:"sub uppercase flex",children:["Lagos state",i.jsx("div",{className:"line"}),i.jsxs("span",{className:"flex flex_align_center",children:[" ",i.jsxs("div",{className:"searchIcon",children:[i.jsx(rb,{})," "]})," ","global search"]})]}),i.jsxs(Rl.div,{className:"top",initial:{opacity:0,y:100},animate:{opacity:1,y:0},transition:{delay:.4,duration:.4},children:[i.jsx("span",{children:"Hey there,"})," get curated information from all news, services & topics"," "]})]}),i.jsxs("div",{className:"results__calculations",children:[" - ",a?.length," Results found - "]}),i.jsxs("div",{className:"search__query__results",children:[N?i.jsx("div",{className:"load",children:i.jsx(yn,{})}):a?.length?a.map((O,q)=>i.jsx(C7,{data:O,i:q,search:S},q)):n===""?i.jsx("p",{className:"feedback",children:" Start searching and get results by typing or speaking..."}):i.jsxs("p",{className:"feedback",children:[" ","No results found for ",i.jsxs("span",{style:{color:"green"},children:["'",n,"'"]})," at the moment, try a different search term"," "]}),o.length?i.jsxs("div",{className:"relations",children:[i.jsxs("div",{className:"relations__title",children:[" ","- Other Related Services - ",o?.length," Results"," "]}),i.jsx("div",{className:"search__query__results",children:o.length?o.map((O,q)=>i.jsx(C7,{data:O,i:q,search:S},q)):null})]}):null]}),i.jsxs("div",{className:"search__field flex",children:[i.jsxs("div",{className:"useCard",children:[i.jsx("input",{type:"text",placeholder:"Search for Anything here...",value:n,onChange:O=>r(O.target.value)}),n!==""?i.jsxs("div",{className:"closeInput",onClick:()=>r(""),children:[" ",i.jsx(et,{color:"#fff"})," "]}):null]}),i.jsx(uCe,{setSpeechQuery:$,checkMic:P})]})]})]})}function dCe({closeModal:e}){let t=pt();const[n,r]=v.useState(!1);return v.useEffect(()=>{n?document.querySelector(".dropdownBottom").style.display="flex":document.querySelector(".dropdownBottom").style.display="none"},[n]),i.jsx("div",{className:"MobileBody",children:i.jsxs("div",{className:"menuMobile",children:[i.jsxs("div",{className:"menuBarArea uppercase",children:[i.jsxs("div",{className:"title",onClick:()=>{t("/"),e(),window.scrollTo(0,0)},children:[" ",i.jsx("img",{src:pU,alt:"Lagos State Official Digital Logo"})," "]}),i.jsxs("div",{className:"close",onClick:()=>e(!1),children:[" ",i.jsx(et,{width:45,height:45,strokeWidth:1})," "]})]}),i.jsxs("div",{className:"menu_sm dropdown",children:[i.jsxs("div",{className:"dropdownTop",onClick:()=>r(!n),children:["Government ",i.jsx("div",{className:"tagArr",children:i.jsx(ar,{})})]}),i.jsxs("div",{className:"dropdownBottom",children:[i.jsx("p",{onClick:()=>{e(),t("/government/elected_officials")},children:" Executive Council "}),i.jsx("p",{onClick:()=>{e(),t("/government/mdas/all")},children:" Explore Ministries "}),i.jsx("a",{href:"https://lagoshouseofassembly.gov.ng/home/our-team/",target:"_Blank",onClick:()=>e(!1),children:" Legislative Officers "}),i.jsx("a",{href:"https://lagosjudiciary.gov.ng/directories.html#directories",target:"_Blank",onClick:()=>e(!1),children:" Judiciary Officers "})]})]}),i.jsx("div",{className:"menu_sm",onClick:()=>{e(),t("/services")},children:"Services"}),i.jsx("div",{className:"menu_sm",onClick:()=>{e(),t("/news/all/1")},children:"Newsroom "}),i.jsx("div",{className:"menu_sm",onClick:()=>{e(),t("/events/all/1")},children:"Events "}),i.jsx("div",{className:"menu_sm",onClick:()=>{e(),t("/connect")},children:" Connect "})]})})}function fCe(){return i.jsxs("div",{className:"strip_lines",children:[i.jsx("div",{className:"lineIn lasg_red"}),i.jsx("div",{className:"lineIn lasg_blue"}),i.jsx("div",{className:"lineIn lasg_yellow"}),i.jsx("div",{className:"lineIn lasg_green"})]})}function hCe(){return i.jsx("div",{className:"seth_Link",children:i.jsx(Mt,{children:i.jsx("div",{className:"quick_links",children:i.jsxs("div",{className:"fixUp uppercase flex",children:[i.jsx("p",{children:" Toll-free emergency lines (LASEMA)"}),i.jsxs("div",{className:"numbers flex",children:[i.jsx("a",{href:"tel:08056250710",children:" 767 "}),i.jsx("p",{children:"|"}),i.jsx("a",{href:"tel:08033482380",children:" 112 "})]})]})})})})}function pCe(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[a,s]=v.useState(!0),o=ou(j=>j.darkmode);ou(j=>j.setDarkmode);const{pathname:l}=As();let d=pt();const[u,h]=v.useState({url:l,page:`${l.split("/")[1]===""?"home":l.split("/")[1]}`}),p=()=>{r(!1),document.body.style.overflowY="visible"},g=(j,S)=>{h({url:j,page:S})};v.useEffect(()=>{window.scroll(0,0),t(!1),document.body.style.overflowY="visible";const j=window.location.search;d(`${u.url}${j}`),y(u.page)},[u]),v.useEffect(()=>{try{typeof H0<"u"&&H0.ga()&&H0.pageview(l)}catch(j){console.warn("ReactGA not initialized:",j.message)}},[]);const y=j=>{document.querySelector(".current")?.classList.remove("current");const S=document.querySelector(`.seth_nav [name="${j}"]`);S!==null&&S.classList.add("current")},b=()=>{t(!0),document.body.style.overflowY="hidden"},w=()=>{t(!1),document.body.style.overflowY="visible"};return i.jsxs("div",{id:"header",children:[n?i.jsx(RN,{query:"",closeModal:p}):null,i.jsx("div",{className:"emergency",children:i.jsx("div",{className:"emergency__body",children:i.jsx("div",{className:"longCards",children:i.jsx("div",{className:"first"})})})}),i.jsx(x5,{iconProps:{strokeWidth:3,width:12,height:12},children:i.jsxs("div",{className:"appHeader",children:[e?i.jsx(dCe,{closeModal:w}):null,i.jsx(fCe,{}),i.jsx(hCe,{}),i.jsx("div",{className:"navigation",style:{background:"#fff"},children:i.jsx(Mt,{children:i.jsxs("div",{className:"menuForm",children:[i.jsxs("div",{className:"siteBranding",children:[i.jsxs("a",{href:"/",className:"logo",children:[" ",i.jsx("img",{src:pU,alt:"Lagos State Official Digital Logo"})," "]}),i.jsxs("div",{className:"mobileBurger mobileBurger2",onClick:()=>b(),children:[i.jsxs("div",{className:"men",children:[i.jsx("div",{className:"bar"}),i.jsx("div",{className:"bar"})]}),"Menu"]})]}),i.jsxs("div",{className:`seth_nav ${o?"dark":"light"}`,children:[i.jsxs("div",{onClick:()=>g("/","home"),className:"parentName current",name:"home",children:[" ","Home"," "]}),i.jsxs("div",{className:"parentName",name:"government",children:["Government ",i.jsx(ar,{}),i.jsxs("div",{className:"hovering",children:[i.jsx("div",{className:"title",children:"Explore the Lagos State Government, Officials and Parastatals."}),i.jsxs("a",{href:"/government/elected_officials",className:"hover",children:[i.jsxs("p",{children:["Members of the State Executive Council ",i.jsx(Oe,{})]}),i.jsx("span",{children:"View all the officers elected by lagosians this tenure."})]}),i.jsxs("a",{href:"/government/mdas/all",className:"hover",children:[i.jsxs("p",{children:["Explore Ministries and Departments ",i.jsx(Oe,{})," "]}),i.jsx("span",{children:"A-Z index of Lagos Government Ministries, Departments & Agencies"})]}),i.jsxs("a",{target:"_blank",href:"https://lagoshouseofassembly.gov.ng/home/our-team/",className:"hover",children:[i.jsxs("p",{children:["Legislative Officers ",i.jsx(Oe,{})]}),i.jsx("span",{children:"View all the Legislative Officers elected by lagosians this tenure."})]}),i.jsxs("a",{target:"_blank",href:"https://lagosjudiciary.gov.ng/directories.html#directories",className:"hover",children:[i.jsxs("p",{children:["Judiciary Officers ",i.jsx(Oe,{})]}),i.jsx("span",{children:"View all the Judiciary Officers appointed for this tenure."})]})]})]}),i.jsxs("div",{onClick:()=>g("/services","services"),className:"parentName",name:"services",children:[" ","Services"," "]}),i.jsxs("div",{onClick:()=>g("/news/all/1","news"),className:"parentName",name:"news",children:[" ","Newsroom"," "]}),i.jsxs("div",{onClick:()=>g("/events/all/1","events"),className:"parentName",name:"events",children:["Events"," "]}),i.jsxs("div",{onClick:()=>g("/connect","connect"),className:"parentName",name:"connect",children:[" ","Connect"," "]})]}),i.jsx("div",{className:"button__search"})]})})})]})})]})}function mCe({cookieStatus:e}){var{pathname:t}=As();const n=()=>{VC.set("lasgConsent",JSON.stringify({name:"LASG CONSENT",status:"accept"}),{expires:30}),e(!0)},r=()=>{VC.set("lasgConsent",JSON.stringify({name:"LASG CONSENT",status:"denied"}),{expires:1}),e(!0)};return i.jsxs("div",{className:"cookieBanner",children:[i.jsx("div",{className:"overt"}),i.jsxs("div",{className:"banner flex",children:[i.jsxs("div",{className:"para",children:[i.jsx("span",{children:"We value your privacy!"}),i.jsx("br",{}),i.jsxs("div",{className:"poi",children:['We use cookies to enhance your browsing experience, content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.'," ",i.jsx("a",{href:"/privacy",children:" View our data privacy policy "})]})]}),i.jsxs("div",{className:"consent flex",children:[i.jsxs("div",{className:"consent__buttons accept",onClick:()=>n(),children:[" ","Accept All"," "]}),i.jsxs("div",{className:"consent__buttons deny",onClick:()=>r(),children:[" ","Reject All"," "]})]})]})]})}var gCe="2.0.10",hG=500,P7="user-agent",of="",R7="?",Pn={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},wi="browser",xo="cpu",Cs="device",za="engine",Vi="os",lf="result",we="name",me="t
631ype",ke="vendor",Ce="version",ei="architecture",pm="major",be="model",J0="console",Je="mobile",Rt="tablet",Un="smarttv",fs="wearable",o0="xr",Dp="embedded",vCe="fetcher",io="inapp",IN="brands",Rc="formFactors",$N="fullVersionList",cf="platform",BN="platformVersion",kb="bitness",Yl="sec-ch-ua",yCe=Yl+"-full-version-list",xCe=Yl+"-arch",bCe=Yl+"-"+kb,wCe=Yl+"-form-factors",jCe=Yl+"-"+Je,SCe=Yl+"-"+be,pG=Yl+"-"+cf,CCe=pG+"-version",mG=[IN,$N,Je,be,cf,BN,ei,Rc,kb],l0="Amazon",Sd="Apple",I7="ASUS",$7="BlackBerry",xc="Google",S3="Huawei",C3="Lenovo",B7="Honor",c0="LG",k3="Microsoft",N3="Motorola",q7="Nvidia",F7="OnePlus",A3="OPPO",fp="Samsung",z7="Sharp",hp="Sony",E3="Xiaomi",_3="Zebra",H7="Chrome",U7="Chromium",pl="Chromecast",ey="Edge",pp="Firefox",Cd="Opera",T3="Facebook",V7="Sogou",kd="Mobile ",bc=" Browser",Hk="Windows",kCe=typeof window!==Pn.UNDEFINED,bi=kCe&&window.navigator?window.navigator:void 0,Ic=bi&&bi.userAgentData?bi.userAgentData:void 0,NCe=function(e,t){var n={},r=t;if(!By(t)){r={};for(var a in t)for(var s in t[a])r[s]=t[a][s].concat(r[s]?r[s]:[])}for(var o in e)n[o]=r[o]&&r[o].length%2===0?r[o].concat(e[o]):e[o];return n},Nb=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Uk=function(e,t){if(typeof e===Pn.OBJECT&&e.length>0){for(var n in e)if(Nl(t)==Nl(e[n]))return!0;return!1}return Tf(e)?Nl(t)==Nl(e):!1},By=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?By(e[n]):!1)},Tf=function(e){return typeof e===Pn.STRING},L3=function(e){if(e){for(var t=[],n=Dd(e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var a=gm(n[r]).split(";v=");t[r]={brand:a[0],version:a[1]}}else t[r]=gm(n[r]);return t}},Nl=function(e){return Tf(e)?e.toLowerCase():e},Vk=function(e){return Tf(e)?mm(/[^\d\.]/g,e).split(".")[0]:void 0},Dd=function(e){return Tf(e)?gm(mm(/\\?\"/g,e),hG):void 0},fo=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==Pn.OBJECT&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},mm=function(e,t){return Tf(t)?t.replace(e,of):t},gm=function(e,t){return e=mm(/^\s\s*/,String(e)),typeof t===Pn.UNDEFINED?e:e.substring(0,t)},Gk=function(e,t){if(!(!e||!t))for(var n=0,r,a,s,o,l,d;n<t.length&&!l;){var u=t[n],h=t[n+1];for(r=a=0;r<u.length&&!l&&u[r];)if(l=u[r++].exec(e),l)for(s=0;s<h.length;s++)d=l[++a],o=h[s],typeof o===Pn.OBJECT&&o.length>0?o.length===2?typeof o[1]==Pn.FUNCTION?this[o[0]]=o[1].call(this,d):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]===Pn.FUNCTION&&!(o[1].exec&&o[1].test)?o.length>3?this[o[0]]=d?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=d?o[1].call(this,d,o[2]):void 0:o.length==3?this[o[0]]=d?d.replace(o[1],o[2]):void 0:o.length==4?this[o[0]]=d?o[3].call(this,d.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=d?o[3].apply(this,[d.replace(o[1],o[2])].concat(o.slice(4))):void 0)):this[o]=d||void 0;n+=2}},ACe=function(e,t){return t.test.test(e)?t.ifTrue:t.ifFalse},Ra=function(e,t){for(var n in t)if(typeof t[n]===Pn.OBJECT&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Uk(t[n][r],e))return n===R7?void 0:n}else if(Uk(t[n],e))return n===R7?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},G7={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},W7={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},ECe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},_Ce={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ce,[we,kd+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[Ce,[we,ey+" WebView"],[me,io]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ce,[we,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[we,Ce],[/opios[\/ ]+([\w\.]+)/i],[Ce,[we,Cd+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ce,[we,Cd+" GX"]],[/\bopr\/([\w\.]+)/i],[Ce,[we,Cd]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ce,[we,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[Ce,[we,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[we,Ce],[/quark(?:pc)?\/([-\w\.]+)/i],[Ce,[we,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ce,[we,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb| ucpc)[\/ ]?([\w\.]+)/i],[Ce,[we,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ce,[we,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ce,[we,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ce,[we,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ce,[we,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ce,[we,"Smart "+C3+bc]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[we,/(.+)/,"$1 Secure"+bc],Ce],[/norton\/([\w\.]+)/i],[Ce,[we,"Norton Private"+bc]],[/\bfocus\/([\w\.]+)/i],[Ce,[we,pp+" Focus"]],[/ mms\/([\w\.]+)$/i],[Ce,[we,Cd+" Neon"]],[/ opt\/([\w\.]+)$/i],[Ce,[we,Cd+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ce,[we,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ce,[we,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ce,[we,Cd+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ce,[we,"MIUI"+bc]],[/fxios\/([\w\.-]+)/i],[Ce,[we,kd+pp]],[/\bqihoobrowser\/?([\w\.]*)/i],[Ce,[we,"360"]],[/\b(qq)\/([\w\.]+)/i],[[we,/(.+)/,"$1Browser"],Ce],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[we,/(.+)/,"$1"+bc],Ce],[/ HBPC\/([\w\.]+)/],[Ce,[we,S3+bc]],[/samsungbrowser\/([\w\.]+)/i],[Ce,[we,fp+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[Ce,[we,V7+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[we,V7+" Mobile"],Ce],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[we,Ce],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[we],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[Ce,we],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[we,T3],Ce,[me,io]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[we,Ce,[me,io]],[/\bgsa\/([\w\.]+) .*safari\//i],[Ce,[we,"GSA"],[me,io]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[Ce,[we,"TikTok"],[me,io]],[/\[(linkedin)app\]/i],[we,[me,io]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[we,/(.+)/,"Zalo"],Ce,[me,io]],[/(chromium)[\/ ]([-\w\.]+)/i],[we,Ce],[/ome-(lighthouse)$/i],[we,[me,vCe]],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ce,[we,H7+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[Ce,[we,ey+" WebView2"],[me,io]],[/; wv\).+(chrome)\/([\w\.]+)/i],[[we,H7+" WebView"],Ce,[me,io]],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ce,[we,"Android"+bc]],[/chrome\/([\w\.]+) mobile/i],[Ce,[we,kd+"Chrome"]],[/(chrome|omniweb|arora|[t
631izenoka]{5} ?browser)\/v?([\w\.]+)/i],[we,Ce],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[Ce,[we,kd+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[we,kd+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[Ce,we],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[we,[Ce,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[we,Ce],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[we,kd+pp],Ce],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[we,"Netscape"],Ce],[/(wolvic|librewolf)\/([\w\.]+)/i],[we,Ce],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ce,[we,pp+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[we,[Ce,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[we,[Ce,/[^\d\.]+./,of]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ei,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ei,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ei,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ei,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ei,"arm"]],[/ sun4\w[;\)]/i],[[ei,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[ei,/ower/,of,Nl]],[/mc680.0/i],[[ei,"68k"]],[/winnt.+\[axp/i],[[ei,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[be,[ke,fp],[me,Rt]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[be,[ke,fp],[me,Je]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[be,[ke,Sd],[me,Je]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[be,[ke,Sd],[me,Rt]],[/(macintosh);/i],[be,[ke,Sd]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[be,[ke,z7],[me,Je]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[be,[ke,B7],[me,Rt]],[/honor([-\w ]+)[;\)]/i],[be,[ke,B7],[me,Je]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[be,[ke,S3],[me,Rt]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[be,[ke,S3],[me,Je]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[be,/_/g," "],[ke,E3],[me,Rt]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/; ([\w ]+) miui\/v?\d/i],[[be,/_/g," "],[ke,E3],[me,Je]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[be,[ke,F7],[me,Je]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[be,[ke,A3],[me,Je]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[be,[ke,Ra,{OnePlus:["203","304","403","404","413","415"],"*":A3}],[me,Rt]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[be,[ke,"BLU"],[me,Je]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[be,[ke,"Vivo"],[me,Je]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[be,[ke,"Realme"],[me,Je]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[be,[ke,C3],[me,Rt]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[be,[ke,C3],[me,Je]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[be,[ke,N3],[me,Je]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[be,[ke,N3],[me,Rt]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[be,[ke,c0],[me,Rt]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[be,[ke,c0],[me,Je]],[/(nokia) (t[12][01])/i],[ke,be,[me,Rt]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[be,/_/g," "],[me,Je],[ke,"Nokia"]],[/(pixel (c|tablet))\b/i],[be,[ke,xc],[me,Rt]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[be,[ke,xc],[me,Je]],[/(google) (pixelbook( go)?)/i],[ke,be],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[be,[ke,hp],[me,Je]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[be,"Xperia Tablet"],[ke,hp],[me,Rt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[be,[ke,l0],[me,Rt]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[be,/(.+)/g,"Fire Phone $1"],[ke,l0],[me,Je]],[/(playbook);[-\w\),; ]+(rim)/i],[be,ke,[me,Rt]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[be,[ke,$7],[me,Je]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[be,[ke,I7],[me,Rt]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[be,[ke,I7],[me,Je]],[/(nexus 9)/i],[be,[ke,"HTC"],[me,Rt]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ke,[be,/_/g," "],[me,Je]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w)
vendor: 5,621 bytes, line 631
631)?(\)| bui)/i],[be,[ke,"TCL"],[me,Rt]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[be,[ke,"TCL"],[me,Je]],[/(itel) ((\w+))/i],[[ke,Nl],be,[me,Ra,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[be,[ke,"Acer"],[me,Rt]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[be,[ke,"Meizu"],[me,Je]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[be,[ke,"Ulefone"],[me,Je]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[be,[ke,"Energizer"],[me,Je]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[be,[ke,"Cat"],[me,Je]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[be,[ke,"Smartfren"],[me,Je]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[be,[ke,"Nothing"],[me,Je]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[be,[ke,"Archos"],[me,Rt]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[be,[ke,"Archos"],[me,Je]],[/blackview ([-\w ]+)( b|\))/i,/; (bv\d{4}[-\w ]*)( b|\))/i],[be,[ke,"Blackview"],[me,Je]],[/; (n159v)/i],[be,[ke,"HMD"],[me,Je]],[/((revvl[ \w\+]+|tm(?:rv|af)\w*[45]g(?:tb)?))( b|\))/i],[be,[me,ACe,{test:/ta?b/i,ifTrue:Rt,ifFalse:Je}],[ke,"T-Mobile"]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[ke,be,[me,Rt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|coolpad|cubot|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([-\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[ke,be,[me,Je]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ke,be,[me,Rt]],[/(surface duo)/i],[be,[ke,k3],[me,Rt]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[be,[ke,"Fairphone"],[me,Je]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[be,[ke,q7],[me,Rt]],[/(sprint) (\w+)/i],[ke,be,[me,Je]],[/(kin\.[onetw]{3})/i],[[be,/\./g," "],[ke,k3],[me,Je]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[be,[ke,_3],[me,Rt]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[be,[ke,_3],[me,Je]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[ke,[me,Un]],[/hbbtv.+maple;(\d+)/i],[[be,/^/,"SmartTV"],[ke,fp],[me,Un]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[ke,be,[me,Un]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ke,c0],[me,Un]],[/(apple) ?tv/i],[ke,[be,Sd+" TV"],[me,Un]],[/crkey.*devicetype\/chromecast/i],[[be,pl+" Third Generation"],[ke,xc],[me,Un]],[/crkey.*devicetype\/([^/]*)/i],[[be,/^/,"Chromecast "],[ke,xc],[me,Un]],[/fuchsia.*crkey/i],[[be,pl+" Nest Hub"],[ke,xc],[me,Un]],[/crkey/i],[[be,pl],[ke,xc],[me,Un]],[/(portaltv)/i],[be,[ke,T3],[me,Un]],[/droid.+aft(\w+)( bui|\))/i],[be,[ke,l0],[me,Un]],[/(shield \w+ tv)/i],[be,[ke,q7],[me,Un]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[be,[ke,z7],[me,Un]],[/(bravia[\w ]+)( bui|\))/i],[be,[ke,hp],[me,Un]],[/(mi(tv|box)-?\w+) bui/i],[be,[ke,E3],[me,Un]],[/Hbbtv.*(technisat) (.*);/i],[ke,be,[me,Un]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ke,/.+\/(\w+)/,"$1",Ra,{LG:"lge"}],[be,gm],[me,Un]],[/(playstation \w+)/i],[be,[ke,hp],[me,J0]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[be,[ke,k3],[me,J0]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[ke,Ra,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],be,[me,J0]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[be,[ke,fp],[me,fs]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ke,be,[me,fs]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[be,[ke,A3],[me,fs]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[be,[ke,Sd],[me,fs]],[/(opwwe\d{3})/i],[be,[ke,F7],[me,fs]],[/(moto 360)/i],[be,[ke,N3],[me,fs]],[/(smartwatch 3)/i],[be,[ke,hp],[me,fs]],[/(g watch r)/i],[be,[ke,c0],[me,fs]],[/droid.+; (wt63?0{2,3})\)/i],[be,[ke,_3],[me,fs]],[/droid.+; (glass) \d/i],[be,[ke,xc],[me,o0]],[/(pico) ([\w ]+) os\d/i],[ke,be,[me,o0]],[/(quest( \d| pro)?s?).+vr/i],[be,[ke,T3],[me,o0]],[/mobile vr; rv.+firefox/i],[[me,o0]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ke,[me,Dp]],[/(aeobc)\b/i],[be,[ke,l0],[me,Dp]],[/(homepod).+mac os/i],[be,[ke,Sd],[me,Dp]],[/windows iot/i],[[me,Dp]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[be,[me,Un]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[me,Un]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[be,[me,Ra,{mobile:"Mobile",xr:"VR","*":Rt}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[me,Rt]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[me,Je]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[be,[ke,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ce,[we,ey+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[we,Ce],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ce,[we,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[we,Ce],[/ladybird\//i],[[we,"LibWeb"]],[/rv\
vendor: 5,524 bytes, line 631
631:([\w\.]{1,9})\b.+(gecko)/i],[Ce,we]],os:[[/(windows nt) (6\.[23]); arm/i],[[we,/N/,"R"],[Ce,Ra,G7]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[we,Ce],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[Ce,/(;|\))/g,"",Ra,G7],[we,Hk]],[/(windows ce)\/?([\d\.]*)/i],[we,Ce],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[Ce,/_/g,"."],[we,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[we,"macOS"],[Ce,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[Ce,[we,pl+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[Ce,[we,pl+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[Ce,[we,pl+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[Ce,[we,pl+" Linux"]],[/crkey\/([\d\.]+)/i],[Ce,[we,pl]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[Ce,we],[/(ubuntu) ([\w\.]+) like android/i],[[we,/(.+)/,"$1 Touch"],Ce],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[we,Ce],[/\(bb(10);/i],[Ce,[we,$7]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[Ce,[we,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[Ce,[we,pp+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[Ce,[we,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[Ce,Ra,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[we,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[Ce,[we,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[Ce,[we,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[Ce,[we,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[we,Ce],[/(sunos) ?([\d\.]*)/i],[[we,"Solaris"],Ce],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[we,Ce]]},u0=(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return fo.call(e.init,[[wi,[we,Ce,pm,me]],[xo,[ei]],[Cs,[me,be,ke]],[za,[we,Ce]],[Vi,[we,Ce]]]),fo.call(e.isIgnore,[[wi,[Ce,pm]],[za,[Ce]],[Vi,[Ce]]]),fo.call(e.isIgnoreRgx,[[wi,/ ?browser$/i],[Vi,/ ?os$/i]]),fo.call(e.toString,[[wi,[we,Ce]],[xo,[ei]],[Cs,[ke,be]],[za,[we,Ce]],[Vi,[we,Ce]]]),e})(),TCe=function(e,t){var n=u0.init[t],r=u0.isIgnore[t]||0,a=u0.isIgnoreRgx[t]||0,s=u0.toString[t]||0;function o(){fo.call(this,n)}return o.prototype.getItem=function(){return e},o.prototype.withClientHints=function(){return Ic?Ic.getHighEntropyValues(mG).then(function(l){return e.setCH(new gG(l,!1)).parseCH().get()}):e.parseCH().get()},o.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=lf&&(o.prototype.is=function(l){var d=!1;for(var u in this)if(this.hasOwnProperty(u)&&!Uk(r,u)&&Nl(a?mm(a,this[u]):this[u])==Nl(a?mm(a,l):l)){if(d=!0,l!=Pn.UNDEFINED)break}else if(l==Pn.UNDEFINED&&d){d=!d;break}return d},o.prototype.toString=function(){var l=of;for(var d in s)typeof this[s[d]]!==Pn.UNDEFINED&&(l+=(l?" ":of)+this[s[d]]);return l||Pn.UNDEFINED}),o.prototype.then=function(l){var d=this,u=function(){for(var p in d)d.hasOwnProperty(p)&&(this[p]=d[p])};u.prototype={is:o.prototype.is,toString:o.prototype.toString,withClientHints:o.prototype.withClientHints,withFeatureCheck:o.prototype.withFeatureCheck};var h=new u;return l(h),h},new o};function gG(e,t){if(e=e||{},fo.call(this,mG),t)fo.call(this,[[IN,L3(e[Yl])],[$N,L3(e[yCe])],[Je,/\?1/.test(e[jCe])],[be,Dd(e[SCe])],[cf,Dd(e[pG])],[BN,Dd(e[CCe])],[ei,Dd(e[xCe])],[Rc,L3(e[wCe])],[kb,Dd(e[bCe])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Pn.UNDEFINED&&(this[n]=e[n])}function Il(e,t,n,r){return fo.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",TCe(this,e)]]),this}Il.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data};Il.prototype.set=function(e,t){return this.data[e]=t,this};Il.prototype.setCH=function(e){return this.uaCH=e,this};Il.prototype.detectFeature=function(){if(bi&&bi.userAgent==this.ua)switch(this.itemType){case wi:bi.brave&&typeof bi.brave.isBrave==Pn.FUNCTION&&this.set(we,"Brave");break;case Cs:!this.get(me)&&Ic&&Ic[Je]&&this.set(me,Je),this.get(be)=="Macintosh"&&bi&&typeof bi.standalone!==Pn.UNDEFINED&&bi.maxTouchPoints&&bi.maxTouchPoints>2&&this.set(be,"iPad").set(me,Rt);break;case Vi:!this.get(we)&&Ic&&Ic[cf]&&this.set(we,Ic[cf]);break;case lf:var e=this.data,t=function(n){return e[n].getItem().detectFeature
631().get()};this.set(wi,t(wi)).set(xo,t(xo)).set(Cs,t(Cs)).set(za,t(za)).set(Vi,t(Vi))}return this};Il.prototype.parseUA=function(){switch(this.itemType!=lf&&Gk.call(this.data,this.ua,this.rgxMap),this.itemType){case wi:this.set(pm,Vk(this.get(Ce)));break;case Vi:if(this.get(we)=="iOS"&&this.get(Ce)&&/^1[89][^\d]/.exec(this.get(Ce))){var e=/\) Version\/((\d+)[\d\.]*)/.exec(this.ua);e&&parseInt(e[2],10)>=26&&this.set(Ce,e[1])}break}return this};Il.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case wi:case za:var n=e[$N]||e[IN],r;if(n)for(var a=0;a<n.length;a++){var s=n[a].brand||n[a],o=n[a].version;this.itemType==wi&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=U7||r==ey&&/WebView2/.test(s))&&(s=Ra(s,ECe),r=this.get(we),r&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(we,s).set(Ce,o).set(pm,Vk(o)),r=s),this.itemType==za&&s==U7&&this.set(Ce,o)}break;case xo:var l=e[ei];l&&(l&&e[kb]=="64"&&(l+="64"),Gk.call(this.data,l+";",t));break;case Cs:if(e[Je]&&this.set(me,Je),e[be]&&(this.set(be,e[be]),!this.get(me)||!this.get(ke))){var d={};Gk.call(d,"droid 9; "+e[be]+")",t),!this.get(me)&&d.type&&this.set(me,d.type),!this.get(ke)&&d.vendor&&this.set(ke,d.vendor)}if(e[Rc]){var u;if(typeof e[Rc]!="string")for(var h=0;!u&&h<e[Rc].length;)u=Ra(e[Rc][h++],W7);else u=Ra(e[Rc],W7);this.set(me,u)}break;case Vi:var p=e[cf];if(p){var g=e[BN];p==Hk&&(g=parseInt(Vk(g),10)>=13?"11":"10"),this.set(we,p).set(Ce,g)}this.get(we)==Hk&&e[be]=="Xbox"&&this.set(we,"Xbox").set(Ce,void 0);break;case lf:var y=this.data,b=function(w){return y[w].getItem().setCH(e).parseCH().get()};this.set(wi,b(wi)).set(xo,b(xo)).set(Cs,b(Cs)).set(za,b(za)).set(Vi,b(Vi))}return this};function No(e,t,n){if(typeof e===Pn.OBJECT?(By(e,!0)?(typeof t===Pn.OBJECT&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===Pn.STRING&&!By(t,!0)&&(n=t,t=void 0),n)if(typeof n.append===Pn.FUNCTION){var r={};n.forEach(function(h,p){r[String(p).toLowerCase()]=h}),n=r}else{var a={};for(var s in n)n.hasOwnProperty(s)&&(a[String(s).toLowerCase()]=n[s]);n=a}if(!(this instanceof No))return new No(e,t,n).getResult();var o=typeof e===Pn.STRING?e:n&&n[P7]?n[P7]:bi&&bi.userAgent?bi.userAgent:of,l=new gG(n,!0),d=_Ce,u=function(h){return h==lf?function(){return new Il(h,o,d,l).set("ua",o).set(wi,this.getBrowser()).set(xo,this.getCPU()).set(Cs,this.getDevice()).set(za,this.getEngine()).set(Vi,this.getOS()).get()}:function(){return new Il(h,o,d[h],l).parseUA().get()}};return fo.call(this,[["getBrowser",u(wi)],["getCPU",u(xo)],["getDevice",u(Cs)],["getEngine",u(za)],["getOS",u(Vi)],["getResult",u(lf)],["getUA",function(){return o}],["setUA",function(h){return Tf(h)&&(o=gm(h,hG)),this}],["useExtension",function(h){return h&&(d=NCe(d,h)),this}]]).setUA(o).useExtension(t),this}No.VERSION=gCe;No.BROWSER=Nb([we,Ce,pm,me]);No.CPU=Nb([ei]);No.DEVICE=Nb([be,ke,me,J0,Je,Un,Rt,fs,Dp]);No.ENGINE=No.OS=Nb([we,Ce]);const Ar=[];for(let e=0;e<256;++e)Ar.push((e+256).toString(16).slice(1));function LCe(e,t=0){return(Ar[e[t+0]]+Ar[e[t+1]]+Ar[e[t+2]]+Ar[e[t+3]]+"-"+Ar[e[t+4]]+Ar[e[t+5]]+"-"+Ar[e[t+6]]+Ar[e[t+7]]+"-"+Ar[e[t+8]]+Ar[e[t+9]]+"-"+Ar[e[t+10]]+Ar[e[t+11]]+Ar[e[t+12]]+Ar[e[t+13]]+Ar[e[t+14]]+Ar[e[t+15]]).toLowerCase()}let O3;const OCe=new Uint8Array(16);function MCe(){if(!O3){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");O3=crypto.getRandomValues.bind(crypto)}return O3(OCe)}const DCe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Y7={randomUUID:DCe};function PCe(e,t,n){e=e||{};const r=e.random??e.rng?.()??MCe();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LCe(r)}function vG(e,t,n){return Y7.randomUUID&&!e?Y7.randomUUID():PCe(e)}const RCe=Nn,ICe=()=>{let e=sessionStorage.getItem("sessionId");return e||(e=vG(),sessionStorage.setItem("sessionId",e)),e},$Ce=()=>{let e=localStorage.getItem("userId");return e||(e=vG(),localStorage.setItem("userId",e)),e},BCe=()=>{const{browser:e,os:t,device:n}=new No().getResult();return{browser:e.name||"Other",os:t.name||"Other",device:n.type==="mobile"||n.type==="tablet"?"Mobile":"Desktop"}},qCe=async(e,t)=>{if(!e){console.error("siteName is required for visit tracking");return}if(!navigator.webdriver)try{const n=BCe(),r={siteName:e,userId:$Ce(),sessionId:ICe(),page:t,referrer:document.referrer,...n};await De.post(`${RCe}/analytics/log`,r)}catch(n){console.error("Error logging visit:",n)}},yG=(e,t)=>
631{const n=v.useRef(null);v.useEffect(()=>{if(!e||t==="admin")return;const r=`/${t||"home"}`;n.current!==r&&(n.current=r,qCe(e,r))},[e,t])};function FCe({officials:e}){const[t,n]=v.useState("");return v.useEffect(()=>{Number(e.phone)===1&&n("governor"),Number(e.phone)===2&&n("deputy_governor"),Number(e.phone)===3&&n("ssg"),Number(e.phone)===4&&n("hos"),Number(e.phone)===5&&n("cos"),Number(e.phone)===6&&n("dcos")},[]),i.jsx("div",{className:"officialsPage",onClick:()=>t!==""?window.location.href=`/government/elected_officials/${t}/view`:window.location.href=`/government/elected_officials/view/${e.fullname}`,children:i.jsx("div",{className:"photosPoint",children:i.jsxs("div",{className:"photoHolder",children:[i.jsxs("div",{className:"imageCarrier",children:[i.jsx("img",{src:e.photo}),Number(e.phone)>0?i.jsx(Rl.div,{className:"trigger_anchor",children:i.jsxs(Rl.p,{whileHover:{scale:1.1,transition:{duration:.1}},whileTap:{scale:.9},children:["View Profile",i.jsx("div",{className:"icon",children:i.jsx(Oe,{})})]})}):null]}),i.jsxs("div",{className:"nameCarrier",children:[i.jsxs("div",{className:"position",children:[" ",e.position," "]}),i.jsxs("div",{className:"fullname thick",children:[" ",e.fullname," "]})]})]})})})}function zCe(){const[e,t]=v.useState([]);let n=As();const[r,a]=v.useState(n.pathname.split("/")[2]),[s,o]=v.useState([]),{isLoading:l,data:d}=Ke({queryKey:["exec"],queryFn:()=>aU()});return l?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsx("div",{className:"officials_body bagElect",children:i.jsxs(Mt,{children:[i.jsx("div",{className:"topMan",children:i.jsxs("div",{className:"pageHeader flex flex_col",children:[i.jsx("div",{className:"pageTitle",children:"Collaborating to Build a Better Lagos : Together Towards Progress"}),i.jsx("div",{className:"pageTitleSubs",children:" Our mission is to work together, leveraging our collective expertise and resources, to create a vibrant, prosperous, and sustainable Lagos. "})]})}),i.jsx("div",{className:"items",children:l?null:d.map((u,h)=>i.jsx(FCe,{officials:u},h))})]})})}function HCe(){return i.jsxs("div",{className:"electedOfficials",children:[i.jsx("h1",{children:"Judiciary Officals"}),i.jsx("h1",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sit qui, fugit veritatis in facilis modi aliquam voluptatum fugiat mollitia? Adipisci aliquid quos cum. Perspiciatis doloremque odit hic ducimus minus quia beatae tempora dolore, vero aperiam voluptatibus, in placeat, quos dolorum asperiores ipsum deserunt at non sint voluptatem aliquid. Sed, harum."}),i.jsx("h1",{children:"Judiciary Officals Page"})]})}function UCe(){return i.jsxs("div",{className:"electedOfficials",children:[i.jsx("h1",{children:"Legistlative Officals"}),i.jsx("h1",{children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sit qui, fugit veritatis in facilis modi aliquam voluptatum fugiat mollitia? Adipisci aliquid quos cum. Perspiciatis doloremque odit hic ducimus minus quia beatae tempora dolore, vero aperiam voluptatibus, in placeat, quos dolorum asperiores ipsum deserunt at non sint voluptatem aliquid. Sed, harum."}),i.jsx("h1",{children:"Legistlative Officals Page"})]})}var ty={exports:{}},VCe=ty.exports,K7;function GCe(){return K7||(K7=1,(function(e,t){(function(n,r){e.exports=r(Mo())})(typeof self<"u"?self:VCe,(n=>(()=>{var r={2:(l,d,u)=>{var h=u(2199),p=u(4664),g=u(5950);l.exports=function(y){return h(y,g,p)}},79:(l,d,u)=>{var h=u(3702),p=u(80),g=u(4739),y=u(8655),b=u(1175);function w(j){var S=-1,k=j==null?0:j.length;for(this.clear();++S<k;){var N=j[S];this.set(N[0],N[1])}}w.prototype.clear=h,w.prototype.delete=p,w.prototype.get=g,w.prototype.has=y,w.prototype.set=b,l.exports=w},80:(l,d,u)=>{var h=u(6025),p=Array.prototype.splice;l.exports=function(g){var y=this.__data__,b=h(y,g);return!(b<0||(b==y.length-1?y.pop():p.call(y,b,1),--this.size,0))}},270:(l,d,u)=>{var h=u(7068),p=u(346);l.exports=function g(y,b,w,j,S){return y===b||(y==null||b==null||!p(y)&&!p(b)?y!=y&&b!=b:h(y,b,w,j,g,S))}},289:(l,d,u)=>{var h=u(2651);l.exports=function(p){return h(this,p).get(p)}},294:l=>{l.exports=function(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}},317:l=>{l.exports=function(d){var u=-1,h=Array(d.size);return d.forEach((function(p,g){h[++u]=[g,p]})),h}},346:l=>{l.exports=function(d){return d!=null&&typeof d=="object"}},361:l=>{var d=/^(?:0|[1-9]\d*)$/;l.exports=function(u,h){var p=typeof u;return!!(h=h??9007199254740991)&&(p=="number"||p!="symbol"&&d.test(u))&&u>-1&&u%1==0&&u<h}},392:l=>{l.exports=function(d,u){return d?.[u]}},659:(l,d,u)=>{var h=u(1873),p=Object.prototype,g=p.hasOwnProperty,y=p.toString,b=h?h.toStringTag:void 0;l.exports=function(w){var j=g.call(w,b),S=w[b];try{w[b]=void 0;var k=!0}catch{}var N=y.call(w);return k&&(j?w[b]=S:delete w[b]),N}},689:(l,d,u)=>{var h=u(2),p=Object.prototype.hasOwnProperty;l.exports=function(g,y,b,w,j,S){var k=1&b,N=h(g),_=N.length;if(_!=h(y).length&&!k)return!1;for(var L=_;L--;){var E=N[L];if(!(k?E in y:p.call(y,E)))return!1}var T=S.get(g),P=S.get(y);if(T&&P)return T==y&&P==g;var $=!0;S.set(g,y),S.set(y,g);for(var O=k;++L<_;){var q=g[E=N[L]],D=y[E];if(w)var z=k?w(D,q,E,y,g,S):w(q,D,E,g,y,S);if(!(z===void 0?q===D||j(q,D,b,w,S):z)){$=!1;break}O||(O=E=="constructor")}if($&&!O){var V=g.constructor,W=y.constructor;V==W||!("constructor"in g)||!("constructor"in y)||typeof V=="function"&&V instanceof V&&typeof W=="function"&&W instanceof W||($=!1)}return S.delete(g),S.delete(y),$}},695:(l,d,u)=>{var h=u(8096),p=u(2428),g=u(6449),y=u(3656),b=u(361),w=u(7167),j=Object.prototype.hasOwnProperty;l.exports=function(S,k){var N=g(S),_=!N&&p(S),L=!N&&!_&&y(S),E=!N&&!_&&!L&&w(S),T=N||_||L||E,P=T?h(S.length,String):[],$=P.length;for(var O in S)!k&&!j.call(S,O)||T&&(O=="length"||L&&(O=="offset"||O=="parent")||E&&(O=="buffer"||O
631=="byteLength"||O=="byteOffset")||b(O,$))||P.push(O);return P}},938:l=>{l.exports=function(d){var u=this.__data__,h=u.delete(d);return this.size=u.size,h}},945:(l,d,u)=>{var h=u(79),p=u(8223),g=u(3661);l.exports=function(y,b){var w=this.__data__;if(w instanceof h){var j=w.__data__;if(!p||j.length<199)return j.push([y,b]),this.size=++w.size,this;w=this.__data__=new g(j)}return w.set(y,b),this.size=w.size,this}},1042:(l,d,u)=>{var h=u(6110)(Object,"create");l.exports=h},1175:(l,d,u)=>{var h=u(6025);l.exports=function(p,g){var y=this.__data__,b=h(y,p);return b<0?(++this.size,y.push([p,g])):y[b][1]=g,this}},1380:l=>{l.exports=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this}},1420:(l,d,u)=>{var h=u(79);l.exports=function(){this.__data__=new h,this.size=0}},1459:l=>{l.exports=function(d){return this.__data__.has(d)}},1549:(l,d,u)=>{var h=u(2032),p=u(3862),g=u(6721),y=u(2749),b=u(5749);function w(j){var S=-1,k=j==null?0:j.length;for(this.clear();++S<k;){var N=j[S];this.set(N[0],N[1])}}w.prototype.clear=h,w.prototype.delete=p,w.prototype.get=g,w.prototype.has=y,w.prototype.set=b,l.exports=w},1873:(l,d,u)=>{var h=u(9325).Symbol;l.exports=h},1882:(l,d,u)=>{var h=u(2552),p=u(3805);l.exports=function(g){if(!p(g))return!1;var y=h(g);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1986:(l,d,u)=>{var h=u(1873),p=u(7828),g=u(5288),y=u(5911),b=u(317),w=u(4247),j=h?h.prototype:void 0,S=j?j.valueOf:void 0;l.exports=function(k,N,_,L,E,T,P){switch(_){case"[object DataView]":if(k.byteLength!=N.byteLength||k.byteOffset!=N.byteOffset)return!1;k=k.buffer,N=N.buffer;case"[object ArrayBuffer]":return!(k.byteLength!=N.byteLength||!T(new p(k),new p(N)));case"[object Boolean]":case"[object Date]":case"[object Number]":return g(+k,+N);case"[object Error]":return k.name==N.name&&k.message==N.message;case"[object RegExp]":case"[object String]":return k==N+"";case"[object Map]":var $=b;case"[object Set]":var O=1&L;if($||($=w),k.size!=N.size&&!O)return!1;var q=P.get(k);if(q)return q==N;L|=2,P.set(k,N);var D=y($(k),$(N),L,E,T,P);return P.delete(k),D;case"[object Symbol]":if(S)return S.call(k)==S.call(N)}return!1}},2032:(l,d,u)=>{var h=u(1042);l.exports=function(){this.__data__=h?h(null):{},this.size=0}},2199:(l,d,u)=>{var h=u(4528),p=u(6449);l.exports=function(g,y,b){var w=y(g);return p(g)?w:h(w,b(g))}},2404:(l,d,u)=>{var h=u(270);l.exports=function(p,g){return h(p,g)}},2428:(l,d,u)=>{var h=u(7534),p=u(346),g=Object.prototype,y=g.hasOwnProperty,b=g.propertyIsEnumerable,w=h((function(){return arguments})())?h:function(j){return p(j)&&y.call(j,"callee")&&!b.call(j,"callee")};l.exports=w},2552:(l,d,u)=>{var h=u(1873),p=u(659),g=u(9350),y=h?h.toStringTag:void 0;l.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":y&&y in Object(b)?p(b):g(b)}},2651:(l,d,u)=>{var h=u(4218);l.exports=function(p,g){var y=p.__data__;return h(g)?y[typeof g=="string"?"string":"hash"]:y.map}},2749:(l,d,u)=>{var h=u(1042),p=Object.prototype.hasOwnProperty;l.exports=function(g){var y=this.__data__;return h?y[g]!==void 0:p.call(y,g)}},2804:(l,d,u)=>{var h=u(6110)(u(9325),"Promise");l.exports=h},2949:(l,d,u)=>{var h=u(2651);l.exports=function(p,g){var y=h(this,p),b=y.size;return y.set(p,g),this.size+=y.size==b?0:1,this}},3040:(l,d,u)=>{var h=u(1549),p=u(79),g=u(8223);l.exports=function(){this.size=0,this.__data__={hash:new h,map:new(g||p),string:new h}}},3146:(l,d,u)=>{for(var h=u(3491),p=typeof window>"u"?u.g:window,g=["moz","webkit"],y="AnimationFrame",b=p["request"+y],w=p["cancel"+y]||p["cancelRequest"+y],j=0;!b&&j<g.length;j++)b=p[g[j]+"Request"+y],w=p[g[j]+"Cancel"+y]||p[g[j]+"CancelRequest"+y];if(!b||!w){var S=0,k=0,N=[],_=1e3/60;b=function(L){if(N.length===0){var E=h(),T=Math.max(0,_-(E-S));S=T+E,setTimeout((function(){var P=N.slice(0);N.length=0;for(var $=0;$<P.length;$++)if(!P[$].cancelled)try{P[$].callback(S)}catch(O){setTimeout((function(){throw O}),0)}}),Math.round(T))}return N.push({handle:++k,callback:L,cancelled:!1}),k},w=function(L){for(var E=0;E<N.length;E++)N[E].handle===L&&(N[E].cancelled=!0)}}l.exports=function(L){return b.call(p,L)}
631,l.exports.cancel=function(){w.apply(p,arguments)},l.exports.polyfill=function(L){L||(L=p),L.requestAnimationFrame=b,L.cancelAnimationFrame=w}},3345:l=>{l.exports=function(){return[]}},3491:function(l){(function(){var d,u,h,p,g,y;typeof performance<"u"&&performance!==null&&performance.now?l.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(l.exports=function(){return(d()-g)/1e6},u=process.hrtime,p=(d=function(){var b;return 1e9*(b=u())[0]+b[1]})(),y=1e9*process.uptime(),g=p-y):Date.now?(l.exports=function(){return Date.now()-h},h=Date.now()):(l.exports=function(){return new Date().getTime()-h},h=new Date().getTime())}).call(this)},3605:l=>{l.exports=function(d){return this.__data__.get(d)}},3650:(l,d,u)=>{var h=u(4335)(Object.keys,Object);l.exports=h},3656:(l,d,u)=>{l=u.nmd(l);var h=u(9325),p=u(9935),g=d&&!d.nodeType&&d,y=g&&l&&!l.nodeType&&l,b=y&&y.exports===g?h.Buffer:void 0,w=(b?b.isBuffer:void 0)||p;l.exports=w},3661:(l,d,u)=>{var h=u(3040),p=u(7670),g=u(289),y=u(4509),b=u(2949);function w(j){var S=-1,k=j==null?0:j.length;for(this.clear();++S<k;){var N=j[S];this.set(N[0],N[1])}}w.prototype.clear=h,w.prototype.delete=p,w.prototype.get=g,w.prototype.has=y,w.prototype.set=b,l.exports=w},3702:l=>{l.exports=function(){this.__data__=[],this.size=0}},3805:l=>{l.exports=function(d){var u=typeof d;return d!=null&&(u=="object"||u=="function")}},3862:l=>{l.exports=function(d){var u=this.has(d)&&delete this.__data__[d];return this.size-=u?1:0,u}},4218:l=>{l.exports=function(d){var u=typeof d;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?d!=="__proto__":d===null}},4247:l=>{l.exports=function(d){var u=-1,h=Array(d.size);return d.forEach((function(p){h[++u]=p})),h}},4248:l=>{l.exports=function(d,u){for(var h=-1,p=d==null?0:d.length;++h<p;)if(u(d[h],h,d))return!0;return!1}},4335:l=>{l.exports=function(d,u){return function(h){return d(u(h))}}},4509:(l,d,u)=>{var h=u(2651);l.exports=function(p){return h(this,p).has(p)}},4528:l=>{l.exports=function(d,u){for(var h=-1,p=u.length,g=d.length;++h<p;)d[g+h]=u[h];return d}},4664:(l,d,u)=>{var h=u(9770),p=u(3345),g=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,b=y?function(w){return w==null?[]:(w=Object(w),h(y(w),(function(j){return g.call(w,j)})))}:p;l.exports=b},4739:(l,d,u)=>{var h=u(6025);l.exports=function(p){var g=this.__data__,y=h(g,p);return y<0?void 0:g[y][1]}},4840:(l,d,u)=>{var h=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;l.exports=h},4894:(l,d,u)=>{var h=u(1882),p=u(294);l.exports=function(g){return g!=null&&p(g.length)&&!h(g)}},4901:(l,d,u)=>{var h=u(2552),p=u(294),g=u(346),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,l.exports=function(b){return g(b)&&p(b.length)&&!!y[h(b)]}},5083:(l,d,u)=>{var h=u(1882),p=u(7296),g=u(3805),y=u(7473),b=/^\[object .+?Constructor\]$/,w=Function.prototype,j=Object.prototype,S=w.toString,k=j.hasOwnProperty,N=RegExp("^"+S.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");l.exports=function(_){return!(!g(_)||p(_))&&(h(_)?N:b).test(y(_))}},5288:l=>{l.exports=function(d,u){return d===u||d!=d&&u!=u}},5481:(l,d,u)=>{var h=u(9325)["__core-js_shared__"];l.exports=h},5527:l=>{var d=Object.prototype;l.exports=function(u){var h=u&&u.constructor;return u===(typeof h=="function"&&h.prototype||d)}},5580:(l,d,u)=>{var h=u(6110)(u(9325),"DataView");l.exports=h},5749:(l,d,u)=>{var h=u(1042);l.exports=function(p,g){var y=this.__data__;return this.size+=this.has(p)?0:1,y[p]=h&&g===void 0?"__lodash_hash_undefined__":g,this}},5861:(l,d,u)=>{var h=u(5580),p=u(8223),g=u(2804),y=u(6545),b=u(8303),w=u(2552),j=u(7473),S="[object Map]",k="[object Promise]",N="[object Set]",_="[object WeakMap]",L="[object DataView]",E=j(h),T=j(p
631),P=j(g),$=j(y),O=j(b),q=w;(h&&q(new h(new ArrayBuffer(1)))!=L||p&&q(new p)!=S||g&&q(g.resolve())!=k||y&&q(new y)!=N||b&&q(new b)!=_)&&(q=function(D){var z=w(D),V=z=="[object Object]"?D.constructor:void 0,W=V?j(V):"";if(W)switch(W){case E:return L;case T:return S;case P:return k;case $:return N;case O:return _}return z}),l.exports=q},5911:(l,d,u)=>{var h=u(8859),p=u(4248),g=u(9219);l.exports=function(y,b,w,j,S,k){var N=1&w,_=y.length,L=b.length;if(_!=L&&!(N&&L>_))return!1;var E=k.get(y),T=k.get(b);if(E&&T)return E==b&&T==y;var P=-1,$=!0,O=2&w?new h:void 0;for(k.set(y,b),k.set(b,y);++P<_;){var q=y[P],D=b[P];if(j)var z=N?j(D,q,P,b,y,k):j(q,D,P,y,b,k);if(z!==void 0){if(z)continue;$=!1;break}if(O){if(!p(b,(function(V,W){if(!g(O,W)&&(q===V||S(q,V,w,j,k)))return O.push(W)}))){$=!1;break}}else if(q!==D&&!S(q,D,w,j,k)){$=!1;break}}return k.delete(y),k.delete(b),$}},5950:(l,d,u)=>{var h=u(695),p=u(8984),g=u(4894);l.exports=function(y){return g(y)?h(y):p(y)}},6009:(l,d,u)=>{l=u.nmd(l);var h=u(4840),p=d&&!d.nodeType&&d,g=p&&l&&!l.nodeType&&l,y=g&&g.exports===p&&h.process,b=(function(){try{return g&&g.require&&g.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();l.exports=b},6025:(l,d,u)=>{var h=u(5288);l.exports=function(p,g){for(var y=p.length;y--;)if(h(p[y][0],g))return y;return-1}},6110:(l,d,u)=>{var h=u(5083),p=u(392);l.exports=function(g,y){var b=p(g,y);return h(b)?b:void 0}},6449:l=>{var d=Array.isArray;l.exports=d},6545:(l,d,u)=>{var h=u(6110)(u(9325),"Set");l.exports=h},6721:(l,d,u)=>{var h=u(1042),p=Object.prototype.hasOwnProperty;l.exports=function(g){var y=this.__data__;if(h){var b=y[g];return b==="__lodash_hash_undefined__"?void 0:b}return p.call(y,g)?y[g]:void 0}},7068:(l,d,u)=>{var h=u(7217),p=u(5911),g=u(1986),y=u(689),b=u(5861),w=u(6449),j=u(3656),S=u(7167),k="[object Arguments]",N="[object Array]",_="[object Object]",L=Object.prototype.hasOwnProperty;l.exports=function(E,T,P,$,O,q){var D=w(E),z=w(T),V=D?N:b(E),W=z?N:b(T),B=(V=V==k?_:V)==_,H=(W=W==k?_:W)==_,G=V==W;if(G&&j(E)){if(!j(T))return!1;D=!0,B=!1}if(G&&!B)return q||(q=new h),D||S(E)?p(E,T,P,$,O,q):g(E,T,V,P,$,O,q);if(!(1&P)){var K=B&&L.call(E,"__wrapped__"),M=H&&L.call(T,"__wrapped__");
631if(K||M){var I=K?E.value():E,X=M?T.value():T;return q||(q=new h),O(I,X,P,$,q)}}return!!G&&(q||(q=new h),y(E,T,P,$,O,q))}},7167:(l,d,u)=>{var h=u(4901),p=u(7301),g=u(6009),y=g&&g.isTypedArray,b=y?p(y):h;l.exports=b},7217:(l,d,u)=>{var h=u(79),p=u(1420),g=u(938),y=u(3605),b=u(9817),w=u(945);function j(S){var k=this.__data__=new h(S);this.size=k.size}j.prototype.clear=p,j.prototype.delete=g,j.prototype.get=y,j.prototype.has=b,j.prototype.set=w,l.exports=j},7296:(l,d,u)=>{var h,p=u(5481),g=(h=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"";l.exports=function(y){return!!g&&g in y}},7301:l=>{l.exports=function(d){return function(u){return d(u)}}},7473:l=>{var d=Function.prototype.toString;l.exports=function(u){if(u!=null){try{return d.call(u)}catch{}try{return u+""}catch{}}return""}},7534:(l,d,u)=>{var h=u(2552),p=u(346);l.exports=function(g){return p(g)&&h(g)=="[object Arguments]"}},7670:(l,d,u)=>{var h=u(2651);l.exports=function(p){var g=h(this,p).delete(p);return this.size-=g?1:0,g}},7828:(l,d,u)=>{var h=u(9325).Uint8Array;l.exports=h},8096:l=>{l.exports=function(d,u){for(var h=-1,p=Array(d);++h<d;)p[h]=u(h);return p}},8223:(l,d,u)=>{var h=u(6110)(u(9325),"Map");l.exports=h},8303:(l,d,u)=>{var h=u(6110)(u(9325),"WeakMap");l.exports=h},8655:(l,d,u)=>{var h=u(6025);l.exports=function(p){return h(this.__data__,p)>-1}},8859:(l,d,u)=>{var h=u(3661),p=u(1380),g=u(1459);function y(b){var w=-1,j=b==null?0:b.length;for(this.__data__=new h;++w<j;)this.add(b[w])}y.prototype.add=y.prototype.push=p,y.prototype.has=g,l.exports=y},8984:(l,d,u)=>{var h=u(5527),p=u(3650),g=Object.prototype.hasOwnProperty;l.exports=function(y){if(!h(y))return p(y);var b=[];for(var w in Object(y))g.call(y,w)&&w!="constructor"&&b.push(w);return b}},9155:l=>{l.exports=n},9219:l=>{l.exports=function(d,u){return d.has(u)}},9325:(l,d,u)=>{var h=u(4840),p=typeof self=="object"&&self&&self.Object===Object&&self,g=h||p||Function("return this")();l.exports=g},9350:l=>{var d=Object.prototype.toString;l.exports=function(u){return d.call(u)}},9770:l=>{l.exports=function(d,u){for(var h=-1,p=d==null?0:d.length,g=0,y=[];++h<p;){var b=d[h];u(b,h,d)&&(y[g++]=b)}return y}},9817:l=>{l.exports=function(d){return this.__data__.has(d)}},9905:(l,d,u)=>{u.d(d,{default:()=>G});var h=u(3146),p=u.n(h);const g=function(K){return new RegExp(/<[a-z][\s\S]*>/i).test(K)},y=function(K,M){return Math.floor(Math.random()*(M-K+1))+K};var b="TYPE_CHARACTER",w="REMOVE_CHARACTER",j="REMOVE_ALL",S="REMOVE_LAST_VISIBLE_NODE",k="PAUSE_FOR",N="CALL_FUNCTION",_="ADD_HTML_TAG_ELEMENT",L="CHANGE_DELETE_SPEED",E="CHANGE_DELAY",T="CHANGE_CURSOR",P="PASTE_STRING",$="HTML_TAG";function O(K){return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},O(K)}function q(K,M){var I=Object.keys(K);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(K);M&&(X=X.filter((function(F){return Object.getOwnPropertyDescriptor(K,F).enumerable}))),I.push.apply(I,X)}return I}function D(K){for(var M=1;M<arguments.length;M++){var I=arguments[M]!=null?arguments[M]:{};M%2?q(Object(I),!0).forEach((function(X){B(K,X,I[X])})):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(I)):q(Object(I)).forEach((function(X){Object.defineProperty(K,X,Object.getOwnPropertyDescriptor(I,X))}))}return K}function z(K){return(function(M){if(Array.isArray(M))return V(M)})(K)||(function(M){if(typeof Symbol<"u"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)})(K)||(function(M,I){if(M){if(typeof M=="string")return V(M,I);var X={}.toString.call(M).slice(8,-1);return X==="Object"&&M.constructor&&(X=M.constructor.name),X==="Map"||X==="Set"?Array.from(M):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?V(M,I):void 0}})(K)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 632In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function V(K,M){(M==null||M>K.length)&&(M=K.length);for(var I=0,X=Array(M);I<M;I++)X[I]=K[I];return X}function W(K,M){for(var I=0;I<M.length;I++){var X=M[I];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(K,H(X.key),X)}}function B(K,M,I){return(M=H(M))in K?Object.defineProperty(K,M,{value:
632I,enumerable:!0,configurable:!0,writable:!0}):K[M]=I,K}function H(K){var M=(function(I){if(O(I)!="object"||!I)return I;var X=I[Symbol.toPrimitive];if(X!==void 0){var F=X.call(I,"string");if(O(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)})(K);return O(M)=="symbol"?M:M+""}const G=(function(){function K(X,F){var U=this;if((function(ee,ae){if(!(ee instanceof ae))throw new TypeError("Cannot call a class as a function")})(this,K),B(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),B(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),B(this,"setupWrapperElement",(function(){U.state.elements.container&&(U.state.elements.wrapper.className=U.options.wrapperClassName,U.state.elements.cursor.className=U.options.cursorClassName,U.state.elements.cursor.innerHTML=U.options.cursor,U.state.elements.container.innerHTML="",U.state.elements.container.appendChild(U.state.elements.wrapper),U.state.elements.container.appendChild(U.state.elements.cursor))})),B(this,"start",(function(){return U.state.eventLoopPaused=!1,U.runEventLoop(),U})),B(this,"pause",(function(){return U.state.eventLoopPaused=!0,U})),B(this,"stop",(function(){return U.state.eventLoop&&((0,h.cancel)(U.state.eventLoop),U.state.eventLoop=null),U})),B(this,"pauseFor",(function(ee){return U.addEventToQueue(k,{ms:ee}),U})),B(this,"typeOutAllStrings",(function(){return typeof U.options.strings=="string"?(U.typeString(U.options.strings).pauseFor(U.options.pauseFor),U):(U.options.strings.forEach((function(ee){U.typeString(ee).pauseFor(U.options.pauseFor).deleteAll(U.options.deleteSpeed)})),U)})),B(this,"typeString",(function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(g(ee))return U.typeOutHTMLString(ee,ae);if(ee){var ye=(U.options||{}).stringSplitter,J=typeof ye=="function"?ye(ee):ee.split("");U.typeCharacters(J,ae)}return U})),B(this,"pasteString",(function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return g(ee)?U.typeOutHTMLString(ee,ae,!0):(ee&&U.addEventToQueue(P,{character:ee,node:ae}),U)})),B(this,"typeOutHTMLString",(function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,ye=arguments.length>2?arguments[2]:void 0,J=(function(Se){var je=document.createElement("div");return je.innerHTML=Se,je.childNodes})(ee);if(J.length>0)for(var re=0;re<J.length;re++){var ge=J[re],Q=ge.innerHTML;ge&&ge.nodeType!==3?(ge.innerHTML="",U.addEventToQueue(_,{node:ge,parentNode:ae}),ye?U.pasteString(Q,ge):U.typeString(Q,ge)):ge.textContent&&(ye?U.pasteString(ge.textContent,ae):U.typeString(ge.textContent,ae))}return U})),B(this,"deleteAll",(function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"natural";return U.addEventToQueue(j,{speed:ee}),U})),B(this,"changeDeleteSpeed",(function(ee){if(!ee)throw new Error("Mu
632st provide new delete speed");return U.addEventToQueue(L,{speed:ee}),U})),B(this,"changeDelay",(function(ee){if(!ee)throw new Error("Must provide new delay");return U.addEventToQueue(E,{delay:ee}),U})),B(this,"changeCursor",(function(ee){if(!ee)throw new Error("Must provide new cursor");return U.addEventToQueue(T,{cursor:ee}),U})),B(this,"deleteChars",(function(ee){if(!ee)throw new Error("Must provide amount of characters to delete");for(var ae=0;ae<ee;ae++)U.addEventToQueue(w);return U})),B(this,"callFunction",(function(ee,ae){if(!ee||typeof ee!="function")throw new Error("Callback must be a function");return U.addEventToQueue(N,{cb:ee,thisArg:ae}),U})),B(this,"typeCharacters",(function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ee||!Array.isArray(ee))throw new Error("Characters must be an array");return ee.forEach((function(ye){U.addEventToQueue(b,{character:ye,node:ae})})),U})),B(this,"removeCharacters",(function(ee){if(!ee||!Array.isArray(ee))throw new Error("Characters must be an array");return ee.forEach((function(){U.addEventToQueue(w)})),U})),B(this,"addEventToQueue",(function(ee,ae){var ye=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return U.addEventToStateProperty(ee,ae,ye,"eventQueue")})),B(this,"addReverseCalledEvent",(function(ee,ae){var ye=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return U.options.loop?U.addEventToStateProperty(ee,ae,ye,"reverseCalledEvents"):U})),B(this,"addEventToStateProperty",(function(ee,ae){var ye=arguments.length>2&&arguments[2]!==void 0&&arguments[2],J=arguments.length>3?arguments[3]:void 0,re={eventName:ee,eventArgs:ae||{}};return U.state[J]=ye?[re].concat(z(U.state[J])):[].concat(z(U.state[J]),[re]),U})),B(this,"runEventLoop",(function(){U.state.lastFrameTime||(U.state.lastFrameTime=Date.now());var ee=Date.now(),ae=ee-U.state.lastFrameTime;if(!U.state.eventQueue.length){if(!U.options.loop)return;U.state.eventQueue=z(U.state.calledEvents),U.state.calledEvents=[],U.options=D({},U.state.initialOptions)}if(U.state.eventLoop=p()(U.runEventLoop),!U.state.eventLoopPaused){if(U.state.pauseUntil){if(ee<U.state.pauseUntil)return;U.state.pauseUntil=null}var ye,J=z(U.state.eventQueue),re=J.shift();if(!(ae<=(ye=re.eventName===S||re.eventName===w?U.options.deleteSpeed==="natural"?y(40,80):U.options.deleteSpeed:U.options.delay==="natural"?y(120,160):U.options.delay))){var ge=re.eventName,Q=re.eventArgs;switch(U.logInDevMode({currentEvent:re,state:U.state,delay:ye}),ge){case P:case b:var Se=Q.character,je=Q.node,Ne=document.createTextNode(Se),He=Ne;U.options.onCreateTextNode&&typeof U.options.onCreateTextNode=="function"&&(He=U.options.onCreateTextNode(Se,Ne)),He&&(je?je.appendChild(He):U.state.elements.wrapper.appendChild(He)),U.state.visibleNodes=[].concat(z(U.state.visibleNodes),[{type:"TEXT_NODE",character:Se,node:He}]);break;case w:J.unshift({eventName:S,eventArgs:{removingCharacterNode:!0}});break;case k:var ct=re.eventArgs.ms;U.state.pauseUntil=Date.now()+parseInt(ct);break;case N:var xt=re.eventArgs,Ct=xt.cb,Be=xt.thisArg;Ct.call(Be,{elements:U.state.elements});break;case _:var qe=re.eventArgs,Tt=qe.node,Kn=qe.parentNode;Kn?Kn.appendChild(Tt):U.state.elements.wrapper.appendChild(Tt),U.state.visibleNodes=[].concat(z(U.state.visibleNodes),[{type:$,node:Tt,parentNode:Kn||U.state.elements.wrapper}]);break;case j:var Xt=U.state.visibleNodes,Me=Q.speed,he=[];Me&&he.push({eventName:L,eventArgs:{speed:Me,temp:!0}});for(var Ee=0,ze=Xt.length;Ee<ze;Ee++)he.push({eventName:S,eventArgs:{removingCharacterNode:!1}});Me&&he.push({eventName:L,eventArgs:{speed:U.options.deleteSpeed,temp:!0}}),J.unshift.apply(J,he);break;case S:var Qe=re.eventArgs.removingCharacterNode;if(U.state.visibleNodes.length){var lt=U.state.visibleNodes.pop(),Ut=lt.type,$n=lt.node,En=lt.character;U.options.onRemoveNode&&typeof U.options.onRemoveNode=="function"&&U.options.onRemoveNode({node:$n,character:En}),$n&&$n.parentNode.removeChild($n),Ut===$&&Qe&&J.unshift({eventName:S,eventArgs:{}})}break;case L:U.options.deleteSpeed=re.eventArgs.speed;break;case E:U.options.delay=re.eventArgs.delay;break;case T:U.options.cursor=re.eventArgs.cursor,U.state.elements.cursor.innerHTML=re.eventArgs.cursor}U.options.loop&&(re.eventName===S||re.eventArgs&&re.eventArgs.temp||(U.state.calledEvents=[].concat(z(U.state.calledEvents),[re]))),U.state.eventQueue=J,U.state.lastFrameTime=ee}}})),X)if(typeof X=="string"){var Z=document.querySelector(X);if(!Z)throw new Error("Could not find container element");this.state.elements.container=Z}else this.state.elements.container=X;F&&(this.options=D(D({},this.options),F)),this.state.initialOptions=D({},this.options),this.init()}var M,I;return M=K,(I=[{key:"init",value:function(){var X,F;this.setupWrapperElement(),this.addEventToQueue(T,{cursor:this.options.cursor},!0),this.addEventToQueue(j,null,!0),!window||window.___TYPEWRITER_JS_
632STYLES_ADDED___||this.options.skipAddStyles||(X=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(F=document.createElement("style")).appendChild(document.createTextNode(X)),document.head.appendChild(F),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),this.options.autoStart===!0&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(X){this.options.devMode&&console.log(X)}}])&&W(M.prototype,I),Object.defineProperty(M,"prototype",{writable:!1}),K})()},9935:l=>{l.exports=function(){return!1}}},a={};function s(l){var d=a[l];if(d!==void 0)return d.exports;var u=a[l]={id:l,loaded:!1,exports:{}};return r[l].call(u.exports,u,u.exports,s),u.loaded=!0,u.exports}s.n=l=>{var d=l&&l.__esModule?()=>l.default:()=>l;return s.d(d,{a:d}),d},s.d=(l,d)=>{for(var u in d)s.o(d,u)&&!s.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:d[u]})},s.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),s.o=(l,d)=>Object.prototype.hasOwnProperty.call(l,d),s.nmd=l=>(l.paths=[],l.children||(l.children=[]),l);var o={};return(()=>{s.d(o,{default:()=>_});var l=s(9155),d=s.n(l),u=s(9905),h=s(2404),p=s.n(h);function g(L){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},g(L)}function y(L,E){for(var T=0;T<E.length;T++){var P=E[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,k(P.key),P)}}function b(L,E){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,P){return T.__proto__=P,T},b(L,E)}function w(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function j(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(j=function(){return!!L})()}function S(L){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},S(L)}function k(L){var E=(function(T){if(g(T)!="object"||!T)return T;var P=T[Symbol.toPrimitive];if(P!==void 0){var $=P.call(T,"string");if(g($)!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)})(L);return g(E)=="symbol"?E:E+""}var N=(function(L){(function(O,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(q&&q.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),q&&b(O,q)})($,L);var E,T,P=(function(O){var q=j();return function(){var D,z=S(O);if(q){var V=S(this).constructor;D=Reflect.construct(z,arguments,V)}else D=z.apply(this,arguments);return(function(W,B){if(B&&(g(B)=="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(W)})(this,D)}})($);function $(){var O,q,D,z;(function(H,G){if(!(H instanceof G))throw new TypeError("Cannot call a class as a function")})(this,$);for(var V=arguments.length,W=new Array(V),B=0;B<V;B++)W[B]=arguments[B];return q=w(O=P.call.apply(P,[this].concat(W))),z={instance:null},(D=k(D="state"))in q?Object.defineProperty(q,D,{value:z,enumerable:!0,configurable:!0,writable:!0}):q[D]=z,O}return E=$,(T=[{key:"componentDidMount",value:function(){var O=this,q=new u.default(this.typewriter,this.props.options);this.setState({instance:q},(function(){var D=O.props.onInit;D&&D(q)}))}},{key:"componentDidUpdate",value:function(O){p()(this.props.options,O.options)||this.setState({instance:new u.default(this.typewriter,this.props.options)})}},{key:"componentWillUnmount",value:function(){this.state.instance&&this.state.instance.stop()}},{key:"render",value:function(){var O=this,q=this.props.component;return d().createElement(q,{ref:function(D){return O.typewriter=D},className:"Typewriter","data-testid":"typewriter-wrapper"})}}])&&y(E.prototype,T),Object.defineProperty(E,"prototype",{writable:!1}),$})(l.Component);N.defaultProps={component:"div"};const _=N})(),o.default})()))})(ty)),ty.exports}var WCe=GCe();const Wk=Aa(WCe),xG="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%200H0V22H16V0Z'%20fill='%2378E183'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%204.5V6.5H6.5V4.5H4.5ZM4.5%208.5V10.5H6.5V8.5H4.5ZM4.5%2014.5V12.5H6.5V14.5H4.5ZM9.5%208.5V10.5H11.5V8.5H9.5ZM9.5%206.5V4.5H11.5V6.5H9.5ZM9.5%2012.5V14.5H11.5V12.5H9.5ZM7%2022V17H9V22H7ZM16%208H22V22H16V8Z'%20fill='%231A565F'/%3e%3c/svg%3e",bG="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2015H19V20H3V15Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2
63202.314V0H10V2.314C8.13346%202.55709%206.41916%203.47109%205.17708%204.88541C3.935%206.29972%203.25002%208.1177%203.25%2010V11.75H18.75V10C18.7498%208.11776%2018.0647%206.2999%2016.8227%204.88563C15.5806%203.47136%2013.8665%202.55729%2012%202.314Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2015V12.5L11%207L22%2012.5V15H20.75V20H22V22H0V20H1.25V15H0ZM3.75%2015V20H5.5V15H3.75ZM16.5%2015H18.25V20H16.5V15ZM8%2015V20H9.75V15H8ZM12.25%2015V20H14V15H12.25Z'%20fill='%2378E183'/%3e%3c/svg%3e",qN="data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%2016.144L11.0591%2010L0%2016.144L11.0591%2022.288L22.1183%2016.144Z'%20fill='%2378E183'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%2011.1439L11.0591%205L0%2011.1439L11.0591%2017.2879L22.1183%2011.1439Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%206.14396L11.0591%200L0%206.14396L11.0591%2012.288L22.1183%206.14396Z'%20fill='%2378E183'/%3e%3c/svg%3e";function wG({data:e,closeModal:t}){return i.jsx("div",{className:"openMdaModal",children:i.jsxs("div",{className:"modal",children:[i.jsxs("div",{className:"closeModal",onClick:()=>t(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("div",{className:"logoPart",children:[" ",i.jsx("img",{src:e.type==="ministry"?bG:e.type==="department"?qN:xG,alt:"Lagos State Ministries, Departments & Agencies"})," "]}),i.jsxs("div",{className:"tag",children:[" ",e.type," "]}),i.jsxs("div",{className:"name_mda",children:[" ",vn(e.name)," "]}),i.jsxs("div",{className:"short",children:[" ",vn(e.description)," "]}),i.jsxs("div",{className:"address_icon",children:[" ",i.jsx(yz,{})," Office Address "]}),i.jsxs("div",{className:"address",children:[" ",e.address," "]}),e.agent_name&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"address_icon",children:[" ",i.jsx(Cz,{})," ICT Officer "]}),i.jsxs("div",{className:"address",children:[" ",e.agent_name," "]})]}),i.jsxs("div",{className:"contactArea",children:[i.jsxs("div",{className:"icon target__web",onClick:()=>window.open(e.subdomain.split(".").length>1?`https://${e.subdomain}`:`https://${e.subdomain}.lagosstate.gov.ng`),title:"Visit Website",children:[" ",i.jsx(Zse,{color:"#fff"})," ",i.jsx("p",{children:"Visit Website"})," "]}),i.jsxs("div",{className:"icon target__web target__map",onClick:()=>window.open(`https://www.google.com/maps?q=${e.address}`),title:"Get Google Map Directions",children:[" ",i.jsx(qle,{})," ",i.jsx("p",{children:"Get Directions"})," "]})]})]})})}function YCe({data:e,openModal:t}){return i.jsxs("div",{className:"mda_card",onClick:()=>t(e),children:[i.jsxs("div",{className:"details__zone flex",children:[i.jsxs("div",{className:"logo",children:[" ",i.jsx("img",{src:e.type==="ministry"?bG:e.type==="department"?qN:xG,alt:"Lagos State Ministries, Departments & Agencies"})," "]}),i.jsxs("div",{className:"mda_name",children:[" ",vn(e.name)," "]})]}),i.jsx("div",{className:"topx",children:i.jsxs("div",{className:"mda_desc",children:[" ",vn(Wn(e.description,100))," "]})}),i.jsxs("div",{className:"arrowMai",children:[i.jsxs("div",{className:"arrowMe top",children:[" ",i.jsx(Oe,{strokeWidth:2})," "]}),i.jsxs("div",{className:"arrowMe bot",children:[" ",i.jsx(Oe,{color:"#0C766F",strokeWidth:2})," "]})]})]})}function KCe(){const e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],[t,n]=v.useState(!1),r=v.useRef(null);let a=pt(),s=Pe().index;const[o,l]=v.useState(""),[d,u]=v.useState([]),[h,p]=v.useState([]),[g,y]=v.useState([]),[b,w]=v.useState(!1),[j,S]=v.useState(!1),[k,N]=v.useState({}),_=()=>{S(!1)},L=E=>{N(E),S(!0)};return v.useEffect(()=>{const E={keys:["name","type","subdomain"]};if(s!=="all"){const P=new Va(g,E).search(o),$=o?P.map(O=>O.item):g;u($)}else{const P=new Va(h,E).search(o),$=o?P.map(O=>O.item):h;u($)}},[o]),v.useEffect(()=>{u([]);const E=document.querySelector(".index__active");if(E===null){const T=document.querySelectorAll(`.${s}`);Array.from(T).forEach($=>$.classList.add("index__active"))}else{E.classList.remove("index__active");const T=document.querySelectorAll(`.${s}`);Array.from(T).forEach($=>$.classList.add("index__active"))}
632if(s!=="all")if(o!==""&&l(""),h.length){const T=h.filter(P=>P.name.split("")[0].toUpperCase()===s.toUpperCase());y(T),u(T)}else w(!0),hk().then((T=>{const P=T.filter($=>$.name.split("")[0].toUpperCase()===s.toUpperCase());y(P),u(P),w(!1)}));else h.length?u(h):(w(!0),hk().then(T=>{u(T),p(T),w(!1)}))},[s]),v.useEffect(()=>{const E=new IntersectionObserver(([T])=>{n(T.isIntersecting)},{root:null,rootMargin:"0px",threshold:0});return r.current&&E.observe(r.current),()=>{r.current&&E.unobserve(r.current)}},[]),v.useEffect(()=>{j?document.body.style.overflow="hidden":document.body.style.overflow="visible"},[j]),i.jsxs("div",{className:"government_style",children:[j?i.jsx(wG,{data:k,closeModal:_}):null,i.jsxs(Mt,{children:[i.jsx("div",{className:"topArea",children:i.jsxs("div",{className:"mdaHeader flex flex_col",children:[i.jsxs("div",{className:"mdaTitle",children:[" ",i.jsx("span",{className:"thick_700",children:" A-Z index "})," of Lagos Government Ministries, Departments & Agencies. "]}),i.jsx("div",{className:"mdaTitleSubs",children:"Find contact information for Lagos government ministries, departments and agencies including websites, emails, phone numbers, addresses, and more. "})]})}),i.jsxs("div",{className:"mid__area",children:[i.jsxs("div",{className:"index__search",children:[i.jsxs("div",{className:"abcZone",ref:r,children:[i.jsx("div",{className:"mdas_index all",onClick:()=>a("/government/mdas/all"),children:" - "}),e.map((E,T)=>i.jsxs("div",{className:`mdas_index ${E.toLowerCase()}`,onClick:()=>a(`/government/mdas/${E.toLowerCase()}`),children:[" ",E," "]},T))]}),i.jsxs("div",{className:"searchField",children:[i.jsx("input",{type:"text",id:"yass",className:"searchInput",value:o,onChange:E=>l(E.target.value)}),o===""?i.jsx("div",{className:"typeSide",children:i.jsx(Wk,{options:{strings:["Search for Lagos State Ministries...","Search for Lagos State Departments...","Search for Lagos State Agencies..."],autoStart:!0,loop:!0,delay:40,deleteSpeed:10}})}):null]})]}),i.jsxs("div",{className:"results__section",children:[i.jsx("div",{className:"mdas_sections",children:i.jsxs("div",{className:"section all",children:[" ",d.length," Results Found "]})}),i.jsx("div",{className:"resultArea",children:d.length?d.map((E,T)=>i.jsx(YCe,{data:E,openModal:L},T)):b?i.jsx(yn,{bg:"transparent"}):i.jsx("h1",{children:"No results were found. Please try again with different search criteria"})})]})]})]})]})}function XCe(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e34d984d6e2dadb77f06")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:" Deputy Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[t?.data?.fullname," "]}),i.jsxs("div",{className:"post",children:[" -",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:"Mr. âTayo Akinmade Ayinde was born on the 24th of August 1964 at Alausa, Ikeja, Lagos. He attended St Petersâ Anglican Primary School, Alausa, Ikeja where he obtained ..."})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:" Chief of Staff in action"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://media.licdn.com/dms/image/D4D22AQGN-71Aermwag/feedshare-shrink_800/0/1687225541093?e=2147483647&v=beta&t=u_qQxA0qZvea3d0j1mMiY1tcFpdX77ySH2F_1pidoxE",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://ajasainfo.files.wordpress.com/2021/08/fb_img_1629817036908.jpg?w=720",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://kosofepost.com/wp-content/uploads/2021/08/FB_IMG_1629820470838.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://tbiafrica.com/wp-content/uploads/2019/06/Sanwo-Olu-swears-in-SSG-Chief-of-Staff.jpg",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:[`"People always want welfare, development, and good governance. I'm happy that Lagos delivers all these and lagosians agree with us..."`,i.jsx("p",{children:"- Mr. Tayo Akinmade Ayinde"})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:" About Mr. Tayo Akinmade Ayinde "}),"Mr. âTayo Akinmade Ayinde was born on the 24th of August 1964 at Alausa, Ikeja, Lagos. He attended St Petersâ Anglican Primary School, Alausa, Ikeja where he obtained his First School Leaving Certificate. He also attended Ogudu Grammar School, Ojota, Lagos where he sat and obtained his West African School Certificate. "]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"Public Service",children:"Public Service"}),i.jsxs("div",{className:"imp_img",children:[i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://encrypted-tbn0.gstatic.
632com/images?q=tbn:ANd9GcRp1zw1ygMV-Eag8MtnY5KCzTOne8qTe2_TApJ7Kj_VtpRpBOMQxOp6oo-i6RE4iZwbAy4&usqp=CAU",alt:"hamzat Elections"})}),i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://i0.wp.com/sunrise.ng/wp-content/uploads/2019/06/Tayo.jpg?fit=1012%2C485&ssl=1",alt:"sanwolu2019 Elections"})})]}),"He was appointed the Chief of Staff to Governor Sanwo-Olu on June 6, 2019 and has contributed significantly to the realization of the present administrationâs commitment to the Greater Lagos Agenda. As the Chief of Staffand a member of the state executive committee, he took an active part in strategic policies that improved the performance of Lagos State Internal Revenue Services amongst relevant Agencies."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"education",children:"Educational Background"}),"He was admitted into Federal Polytechnic, Anambra from where he was awarded the Ordinary National Diploma (OND) in Banking and later the Higher National Diploma (HND) in Accountancy."]}),i.jsx("p",{children:"Mr. Ayinde holds a Masterâs Degree (MBA) in Financial Management from Lagos State University. He also attended University of Toronto, Rotman School of Management, where he underwent a Course of Study in Strategic Thinking Approach. He later attended the University of Cambridge, Judge Business School for a Course of Study in Business Model Innovation. Not done still, he went further to study Strategic Financial Analysis for Business Evaluation at Harvard Business School, Boston, USA. All these were in addition to his professional training on VIP protection and anti-terrorism in the best Institutions in Israel and the UK, he is a Fellow of Chartered Institute of Public Diplomacy and Management and an Associate Member of Chartered Institute of Taxation."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"qualifications",children:" Qualifications "}),i.jsx("p",{children:"Prior to his appointment as the Chief of Staff, he worked briefly with TELL Magazine as Account Officer in 1993. In that same year, he joined the State Security Service (SSS) in which ranks he distinguished himself as a dedicated, loyal, courageous and trustworthy Officer till he retired meritoriously in 2009."}),i.jsx("div",{className:"heading",id:"highlights",children:"Highlights & Contributions"}),"While in the SSS, Mr. Ayinde was Head of the Accounts Department of State Security Service (SSS) Shangisha Office from 1993 â 1999. He later worked with the former Governor of Lagos State, His Excellency Governor Emeritus Jagaban Borgu the Asiwaju Bola Ahmed Tinubu as Chief Security Detail."]}),i.jsx("p",{children:"A committed supporter of universal human values and an advocate of support for the less privileged, Mr. Tayo Ayinde has touched many lives for the better. In a bid to deploy his immense capacity for service to humanity, Tayo Ayinde delved fully into politics in 2009. He was a two term Director- General for Mr. Babajide Olusola Sanwo-Olu and Dr. Kadri Obafemi Hamzatâs Independent Campaign Group in 2019 and 2023, and later Chairman of the Inauguration Committee in 2019 as well as 2023."})]})]})})})]})}function ZCe(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e207984d6e2dadb77eb6")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsx("div",{className:"official_name",children:t?.data?.fullname}),i.jsxs("div",{className:"post",children:[" - ",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:"Dr. Kadri Obafemi Hamzat, was re-elected the Deputy Governor of Lagos State for a second term, following the victory of the All Progressives Congress (APC) at the March 18, 2023 gubernatorial election. He remained the running mate to the Governor..."})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:"Deputy Governor in action"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://ikejarecord.com/w
632p-content/uploads/2023/08/Untitled-design-1.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://www.vmcdn.ca/f/files/alimoshotoday/images/5692.jpg;w=824",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/GFL1dgrWYAAsOdu.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/GJyN8EeWQAAbn1k.jpg:large",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:['"Lagos is committed to providing the youth with âcutting-edgeâ facilities and technology, thereby, empowering them to reach their full potential, including the desire to drive innovation and growth in the state"',i.jsx("p",{children:"- Dr. Kadri Obafemi Hamzat"})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:" About Deputy Governor Hamzat "}),"Dr. Kadri Obafemi Hamzat, was re-elected the Deputy Governor of Lagos State for a second term, following the victory of the All Progressives Congress (APC) at the March 18, 2023 gubernatorial election. He remained the running mate to the Governor, Mr. Babajide Olusola Sanwo-Olu after an outstanding first term performance. "]}),i.jsx("p",{children:"Born on September 19, 1964, ideologically progressive Dr. Hamzat joined the public service in 2005 from an impressive career in academics, financial services and engineering with accomplishments in information technology and consulting. Ever since then, he has increasingly established as a visionary leader with an impressive focus on excellence and performance. "}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"Public Service",children:"Public Service"}),i.jsxs("div",{className:"imp_img",children:[i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://pbs.twimg.com/media/F8N5KwQXQAA2AEy.jpg:large",alt:"hamzat Elections"})}),i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://pbs.twimg.com/media/GIeZdpBWIAAwjKq.jpg:large",alt:"sanwolu2019 Elections"})})]}),"Dr. Hamzat brought his energy and vitality into public service after over 2 decades of an exciting private sector career across various top positions in reputable organizations such as RTP Consulting Services, City of New York, College of New Rochelle, New York, Merrill Lynch Inc., Morgan Stanley and Oando Plc."]}),i.jsx("p",{children:"While on his first public sector role, his headship as Commissioner at the Ministry of Science & Technology during the Bola Ahmed Tinubu administration, entrenched a new work culture among the staff who embraced his style of open and transparent leadership with enthusiasm."}),i.jsx("p",{children:"In only four years, he deployed cutting-edge technology that integrated the entire Lagos State Public Service, and with that initiative, Lagos became the first government institution in Africa to implement 11 modules of Oracle ERP. On the strength of his performance, he was retained in the first term of Babatunde Fashola administration (2007-2011) to continue with the technological innovation that brought such efficiency to government activities in Lagos State. "}),i.jsx("p",{children:"In the second term of the administration (2011 to 2015), Dr. Hamzat was appointed Commissioner for Works and Infrastructure to champion the Stateâs infrastructural revolution agenda. He later served as Special Adviser (Technical) to His Excellency, Mr. Babatunde Raji Fashola, when he became the Honourable Minister of Works, Power and Housing before his nomination and subsequent election as the Deputy Governor of Lagos State in 2019."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"education",children:"Educational Background"}),"Dr. Hamzat had his early education at Odu Abore Memorial Primary School in Mushin and Olivet Baptist High School, Oyo. For his tertiary education, he attended the Prestigious University of Ibadan, graduated with a B.Sc. (Second Class Upper) in Agricultural Engineering in 1986 and earned a M.Sc. in Agricultural Engineering in 1988 from the same University."]}),i.jsx("p",{children:"In 1992, he earned a Ph.D. in System Process Engineering from Cranfield University, England and was the first student in the department to complete his doctorate within three years. He is also an alumnus of the Harvard Kennedy School of Government."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"qualifications",children:" Qualifications "}),"Dr. Hamzat, who has two publications in reputable Scientific Journals to his name, is a Microsoft Certified System Engineer, a member of the Nigeria Computer Society and a Fellow of Nigerian Society of Engineers. He has gained further exposure through numerous training programme by international giants. One of such instances is his participation in the World Bankâs Third Country Training Programme held in Singapore which emphasized a holistic understanding of the challenges facing the developing nations of the world.",i.jsx("br",{})," ",i.jsx("br",{}),"A well-rounded Public Administrator, Dr. Hamzat is a strategic thinker, who has coordinated the execution of numerous world-class projects and developmental programs towards transforming Lagos State into Africaâs model megacity and financial hub. He is a doer, who pushes the boundaries of excellence in public service without seeking undue limelight and only finds joy in his public office achievements, only when his efforts impact lives positively while serving the overall public interest."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"highlights",children:"Highlights & Contributions"}
632),"Highly revered and extensively decorated for his efficient resource utilization in the private sector and gallantry in public service, he was the winner of the 2013 edition of the Lagos State Man of the Year Award."]}),i.jsx("p",{children:"Beyond accolades, Dr. Hamzatâs extensive knowledge and leadership ability have earned him important seats at critical decision-making and advisory tables both in the state and countrywide. He has also delivered papers and lectures at various fora."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"family",children:" Hamzat's Family"}),"Dr. Kadri Obafemi Hamzat is a devout Muslim and committed family man, whose marriage to Mrs. Oluremi Hamzat is blessed with lovely children. He is deeply interested in development economics, social welfare and gender empowerment, and has remained a strong voice against discriminatory policies that debase humanity."]})]})]})})})]})}function QCe(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e188984d6e2dadb77e90")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:"Deputy Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[" ",t?.data?.fullname," "]}),i.jsxs("div",{className:"post",children:[" - ",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:" Mr. Babajide Olusola Sanwo-Olu was elected the 15th Governor of Lagos State on the platform of the All Progressives Congress (APC). He was declared winner of the March 9, 2019 gubernatorial elections by the Independent Electoral Commission (INEC) on Sunday, March 10, 2019..."})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:"Governor in action"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/F77HypMXEAAmd09.jpg:large",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://global.ariseplay.com/amg/www.arise.tv/uploads/2021/11/Sanwo-Olu-1.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://res.cloudinary.com/dirmxkznt/image/upload/v1731756405/463000370_18244089694286314_4981945280962590482_n_ndr1tp.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzZ2sEyhJx7PUNpOkQphzprNRVeqkoSIK2HlA5t5Kfx7g0aHaGifHiIQBQozLzeQoPQL-aWjrMdoohvMeq_OBA5fkSJ6KWo9v7R8Vcf1VF_wA0s-cwQMTDFpbc7nCRmUwEV2amgl-hdERTUJ1BrXy-ehgZ3P73ioTsTTjbT5sjc7Zyc-mMG19WmiBI/s2048/2b.jpeg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://www.thecable.ng/wp-content/uploads/2022/10/Sanwo-Olu.jpg",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:['"The Governor of Lagos State and indeed, Lagos State Government distances itself from any re
632ckless, divisive and dangerous rhetoric. Lagos remains home to every Nigerian citizen regardless of their ethnic nationality"',i.jsx("p",{children:" - Governor Babajide Olusola Sanwo-Olu "})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:"About Governor Sanwo-Olu"}),"Mr. Babajide Olusola Sanwo-Olu was elected the 15th Governor of Lagos State on the platform of the All Progressives Congress (APC). He was declared winner of the March 9, 2019 gubernatorial elections by the Independent Electoral Commission (INEC) on Sunday, March 10, 2019 after defeating 44 other candidates who represented different parties at the election."]}),i.jsx("p",{children:"A product of resounding victory, His Excellency, Mr. Sanwo-Olu polled 75.6% of the total valid votes cast in the election to substantiate his legitimacy, which was further affirmed by a 72.12% vote difference between him and the next contestant."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"victory",children:"Sanwo-Olu's Election"}),i.jsxs("div",{className:"imp_img",children:[i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://www.thecable.ng/wp-content/uploads/2022/12/20221203_162251.jpg",alt:"sanwolu2019 Elections"})}),i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://pmexpressng.com/wp-content/uploads/2019/01/PIX-6381.jpg",alt:"sanwolu2019 Elections"})})]}),"His victory at the election is a solid endorsement of his leadership aptitude and the All Progressives Congress (APC) politics of development and inclusiveness in Lagos State. As an inspirational leader, with a track-record of performance, his candidacy was welcomed by Lagosians as a continuation of ongoing development in Lagos State. Mr. Sanwo-Olu, who was born on June 25, 1965 in Lagos State, is a reliable party man and astute politician, who is reputed for his people-centered ideology. His foray into public service started after decades of accomplishments in the private sector, especially the Nigerian banking sector, from where he retired as a General Manager. This accomplished private sector expert, whose innovative mind quickly established as an exemplary public sector reformer, started his early education at Government Demonstration School, Surulere and Ijebu-Ife Grammar School, Ogun State."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"education",children:"Educational Background"}),"For his higher education, he proceeded to the University of Lagos for a Bachelorâs degree in Surveying & Geo-Informatics and a Master of Business Administration (MBA) in Management from the same University. His Excellency, Mr. Sanwo-Olu is also an alumus prestigous of the prestigious Havard Kennedy School of Government, London Business School and the Lagos Business School. In addition, he is a member of the Nigerian Institute of Directors (IOD), Chartered Institute of Personnel Management (CIPM), and Fellow of Nigeria Institute of Training and Development (NITAD)."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"governance",children:" Entry into Governance "}),"In 2003, his eventful career opened to yet another colorful chapter with his appointment, first as Special Adviser to the Deputy Governor on Corporate Matters; and later as Special Adviser to the Executive Governor on Corporate Matters in 2004. His Excellency, Mr. Sanwo-Oluâs entry became a reference point for professionalism and excellence in the public service. At 39, he was appointed acting Commissioner for Economic Planning & Budget from 2004 to 2005, and became the substantive Commissioner for Commerce and Industry in 2007 following his exceptional performance.",i.jsx("br",{})," ",i.jsx("br",{}),"His managerial imprint became noticeable at the Lagos State Ministry of Establishments, Training and Pensions in 2007 when he served as the Commissioner. During this period, Mr. Sanwo-Olu authored an executable Civil Service Framework designed around the Human Capital Performance Index, which puts Lagos State civil servants among the highest and regularly paid in the country. A public officer with an impressive record of accomplishments, he was instrumental to the setting-up of Lagos State Pension Commission (LASPEC), a contributory pension scheme, even ahead of the Federal Government of Nigeria."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"highlights",children:"Highlights & Contributions"}),"Some of his notable contributions include setting-up and serving as the pioneer Chairman the Lagos State Security Trust Fund Board, tracking and intelligent analysis of Internally Generated Revenues (IGR) by the various government agencies and parastatals, including the Board of Internal Revenue (BIR), for executive consideration and policy making; as well as preparation and publication of the Lagos State Economic Empowerment and Development Strategy (LASEEDS). It is also to Sanwo-Oluâs credit that the Lagos Asset Management Limited (LAGBUS) was established to ease the public transportation problem by complementing the Bus Rapid Transit (BRT) system in Lagos State. He also worked on the Control & Command Centre in Alausa, which significantly improved the capacity of the security agencies to respond to distress calls in a swift and timely manner."]}
632),i.jsx("p",{children:"His Excellency, Mr. Sanwo-Olu was appointed the Chief Executive Officer (CEO) of the Lagos State Property Development Corporation (LSPDC) in 2016, and in just 2 years, the visionary administrator had returned the hitherto struggling organisation to the path of efficiency and profitability. He also refocused the organisation to effectively tackle housing deficit in the state, which again validated his credentials as a resourceful leader and problem solver. His valuable experience garnered from executive-level roles in the private and public sectors has not only distinguished him, but also made him a valuable resource to some notable organisations on whose boards he has served."}),i.jsx("p",{children:"It is unexpected that Babajideâs enterprising career in the private sector, defining roles in public service and selfless contributions to the society would not have attracted international recognition and accolades at home. But as a man attired in modesty, these awards and laurels are encouragements that keep him on the path of service to God and humanity."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"family",children:"Sanwo-Olu's Family"}),i.jsxs("div",{className:"imp_img",children:[i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://res.cloudinary.com/dirmxkznt/image/upload/v1731756754/271509136_225364289670860_6275307121028768701_n_m6xtmi.jpg"})}),i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://www.thexpressng.com/wp-content/uploads/2023/05/PIX-2708.jpg"})})]}),"A devout Christian and family-focused man whose marriage to Dr. Ibijoke Sanwo-Olu is blessed with lovely children, Mr. Sanwo-Olu, in addition to his love for public speaking, is a member of numerous prestigious clubs, which include Ikoyi Club 1938, the Island Club, Yoruba Tennis Club and the Clear Essence Health Club."]})]})]})})})]})}function JCe(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e25f984d6e2dadb77ecb")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:" Deputy Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[" ",t?.data?.fullname," "]}),i.jsxs("div",{className:"post",children:[" - ",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:"Mr. Agoro, Shuaheeb, Olabode, the last born of five, was born on the 3rd of August 1967 to the family of late Justice Idowu Olayimika Agoro, the first Solicitor General / Permanent Secretary, Lagos State Ministry of Justice and retired Justice of the Court of Appeal..."})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:"Head of Service in action"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://metrowatchonline.com/wp-content/uploads/2023/10/PIX-5103.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://echonews.ng/wp-content/uploads/2023/10/IMG-20231003-WA01
63270-1.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://mmo.aiircdn.com/370/65264e7f53379.jpg",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/GMB-o1fWwAAFSu4?format=jpg&name=large",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:['"it is important we make sure that as workers we engage in regular exercise to make our body fit and sound..."',i.jsx("p",{children:"- Mr. Agoro Shuaheeb Olabode"})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:" About Head of Service "}),"Mr. Agoro, Shuaheeb, Olabode, the last born of five, was born on the 3rd of August 1967 to the family of late Justice Idowu Olayimika Agoro, the first Solicitor General / Permanent Secretary, Lagos State Ministry of Justice and retired Justice of the Court of Appeal (one of the four musketeers, others being Adeyemi-Bero, Howson Wright, and FCO Coker) and late Alhaja Ganiat Remilekun Agoro (Nee Shitta), a Retired Civil Servant and Nurse at the General Hospital, Lagos.. "]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"education",children:"Educational Background"}),"He began his education at Corona Primary School, Victoria Island and proceeded to St. Gregoryâs College Lagos for his O and A Levels Education"]}),i.jsx("p",{children:"He gained admission into Lagos State University to study Political Science but later left for Park Lane College, Leeds, England to study for the Access Course in Law. He thereafter, gained admission to Leeds Metropolitan University, Leeds, England where he obtained his Bachelor of Law degree (Second Class Upper Division)"}),i.jsx("p",{children:"He thereafter, attended the Nigerian Law School and was called to the Nigerian Bar in 1996. Between September 1998 â February 2000 he attended the University of Dundee, Scotland, Centre for Energy Petroleum Mineral Law and Policy to undertake an LL.M in Petroleum Law and Policy, where he obtained Second Class Upper Division degree and a Distinction in his Thesis titled âExpanding The Nigerian Upstream Oil Industry Through Restructuring / Privatisationâ."}),i.jsx("p",{children:"In May 2002, Mr. Agoro passed the Qualified Lawyers Transfer Test at the BPP Law School, England, United Kingdom and was thereupon admitted to practice as a Solicitor in England and Wales. Between 2 July and 16 August 2006, he attended John F. Kennedy School of Government, Harvard University, Cambridge, Massachusetts, USA for an Executive Education Course on Public Private Partnership: Infrastructure in a Market Economy."}),i.jsx("p",{children:"Mr. Agoro also attended University of Oxford, England, United Kingdom, in November 2022 for an Executive Education Certificate in Real Estate"}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"qualifications",children:" Qualifications "}),"Prior to joining the Public Service, Mr. Agoro had a stint in the Private Sector. He worked as a Solicitor & Barrister at F.O. Akinrele & Co. (SAN) Lagos, from 1996 to 1998 and then worked at Legal Technologies Limited, London, UK as a Para Legal Officer from March 2000 to August 2000 (after his LL.M studies). He later joined Denton Wilde Sapte (Solicitors) in the United Kingdom from August 2000 to July 2003 as an Energy Lawyer. In July 2003,",i.jsx("br",{})," ",i.jsx("br",{}),"Mr. Agoro joined the Lagos State Government as a Senior Special Assistant to the Governor (Lands). In October 2003 he was elevated to head the Directorate of Land Services, Lands Bureau and was later absorbed into the Mainstream Civil Service in 2007 as Director (Administration) and redeployed to Lands Bureau as Director, Land Regularization, a position he held from 2007 to 2015 before his appointment as Permanent Secretary in August 2015. He served as Permanent Secretary Lands Bureau for eight years till his appointment as the 22nd Head of Service in September, 2024.",i.jsx("br",{})," ",i.jsx("br",{})]})]})]})})})]})}function eke(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e36f984d6e2dadb77f0c")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:" Deputy Governor "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[" ",t?.data?.fullname," "]}),i.jsxs("div",{className:"post",children:[" - ",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:"Samuel Avwerosuo Egube, born on March 5, 1969, hails from Uwheru, Ugehelli in Delta State. He began his education at Agbado Model Primary School in Benin City, followed by Edo College in Benin City. He then earned a Second Class Upper Honours degree in Civil Engineering... "})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:"Deputy Chief of Staff"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://encrypted-tbn0.gstatic.
632com/images?q=tbn:ANd9GcTnvGqxudOcR8D8X7q9W9R6eyC2_UIx0puzOIEI6HWYWc1Cfl31QpZYe_oY&s=10",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcScjl5Q03q6eS7jbudK9zjjqvLUlEOQOuns2l4424y6uIIlZsdiUidaYNw&s=10",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ7RebP-JbKbEuAh6BgSE0KqQHtkJvG4BLo4g&usqp=CAU",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQP8hKpkXYaeunmW15M3YolBYNrYfUjhEPIqQ&usqp=CAU",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:['"It is a thing of joy to note that the Economic Plan of Lagos State can be duplicated for use at the national level..."',i.jsx("p",{children:"- Mr. Sam Egube"})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:" About Samuel Egube "}),"Samuel Avwerosuo Egube, born on March 5, 1969, hails from Uwheru, Ugehelli in Delta State. He began his education at Agbado Model Primary School in Benin City, followed by Edo College in Benin City. He then earned a Second Class Upper Honours degree in Civil Engineering from the University of Benin. Pursuing further education, he obtained an Executive MBA from the prestigious IESE Business School at the University of Navarra, Barcelona, Spain."]}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"education",children:"Educational Background"}),"A lifelong learner, Mr. Sam Egube has attended numerous professional development courses, including leadership programmes at IESE (Spain), INSEAD (France), Wharton (USA), Harvard University (USA), Columbia Business School (USA), Lagos Business School, and technical conferences such as OTC and FIDIC in Houston and Geneva, respectively. He is a member of several professional bodies, including the Institute of Directors (IoD), the Nigerian Institute of Management (NIM), the International Coaching Federation (ICF), and the Council for the Regulation of Engineering in Nigeria (COREN). He is also a Fellow of the Nigerian Society of Engineers (FNSE), the Institute of Credit Administration (FICA), and an Honorary Senior Member of the Chartered Institute of Bankers (HCIB)."]}),i.jsx("p",{children:"With a remarkable 34-year career, Mr. Egube has achieved significant success in transformational banking and the public sector, consistently delivering effective results in optimizing and positioning teams and organizations for success. He served as Commissioner for Economic Planning and Budget during Governor Babajide Olusola Sanwo-Oluâs first term, beginning on August 20, 2019, where he oversaw strategic and economic policy development, resource allocation, and state-wide performance management. His dedication and contributions led to his appointment as Deputy Chief of Staff to Governor Sanwo-Olu on May 30, 2024."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"highlights",children:"Highlights & Contributions"}),"Mr. Egube is also an accomplished author, having written several books, including âThoughts from a Wealthy Perspective,â âRelationships are Value Propositions,â and âFrom a Long Way.â In his leisure time, he enjoys swimming, karate (holding a black belt), and table tennis, where he was the Bendel State junior schools champion. Mr. Egube is happily married and blessed with two lovely children."]})]})]})})})]})}function tke(){Pe();const{isLoading:e,data:t}=Ke({queryKey:["exec"],queryFn:()=>Af("6797e22c984d6e2dadb77ebe")});return e?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:" Deputy Governor "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[" ",t?.data?.fullname," "]}),i.jsxs("div",{className:"post",children:[" - ",t?.data?.position," - "]}),i.jsx("div",{className:"shortBio",children:"Mrs. Abimbola Salu-Hundeyin is an esteemed Nigerian lawyer, administrator, and public servant, whose career spans over three decades of dedicated service to the nation. A Solicitor of the Supreme Court of Nigeria..."})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:t?.data?.photo,alt:`${t?.data?.fullname} - ${t?.data?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(t?.data?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsxs("div",{className:"official_highlights",children:[i.jsx("div",{className:"title",children:"Secretary to the State Government in action"}),i.jsxs("div",{className:"highlights",children:[i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/FywELqqXwAMaO1O.jpg:large",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://pbs.twimg.com/media/Fyx1JP6XsAgA6DI?format=jpg&name=4096x4096",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://i0.wp.com/lagosstate.gov.ng/wp-content/uploads/2023/11/2d3ba3f0-c4a7-4b05-b974-6db69b42eb3d.jpeg?resize=780%2C520&ssl=1",alt:"highlight"})}),i.jsx("div",{className:"highlight",children:i.jsx("img",{src:"https://ssg.lagosstate.gov.ng/wp-content/uploads/sites/131/2023/11/6f39f8f6-4796-4e83-bb24-341b4224a1b5.jpeg",alt:"highlight"})})]})]}),i.jsxs("div",{className:"missionStatement",children:['"Lagos is the only state that is not owing pensioners a kobo, if you retire today, you begin to get your pension immediately..."',i.jsx("p",{children:" - Barr. âBimbola Salu-Hundeyin "})]}),i.jsxs("div",{className:"official_bio",children:[i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"intro",children:" About Barr. âBimbola Salu-Hundeyin "}),"Mrs. Abimbola Salu-Hundeyin is an esteemed Nigerian lawyer, administrator, and public servant, whose career spans over three decades of dedicated service to the nation. A Solicitor of the Supreme Court of Nigeria, she holds a Bachelor of Laws degree from Obafemi Awolowo University (OAU), Ile-Ife, where she graduated in 1984. "]}),i.jsx("p",{children:"She further solidified her legal acumen by establishing her practice as the Principal Counsel of A & H Abimbola Hundeyin and Co., where she demonstrated her profound expertise in various aspects of law. Her public service journey is marked by significant contributions across various sectors."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"Public Service",children:"Public Service"}),i.jsxs("div",{className:"imp_img",children:[i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://pbs.twimg.com/media/Fy0CmF7WIAAbvk6.jpg",alt:"SSG Elections"})}),i.jsx("div",{className:"imageContainer",children:i.jsx("img",{src:"https://ssg.lagosstate.gov.ng/wp-content/uploads/sites/131/2023/06/IMG-20230616-WA0008.jpg",alt:"sanwolu2019 Elections"})})]}),"Mrs. Salu-Hundeyin initially made her mark as the Special Adviser (Legal) to the Minister of the Federal Capital Territory (FCT), Senator Bala Muhammad. In this capacity, she provided critical legal counsel and played an instrumental role in shaping policies that impacted the nation's capital. Mrs. Salu-Hundeyin's leadership skills were further recognized
632when she served as the Acting Chairman of the National Population Commission (NPC)."]}),i.jsx("p",{children:"Her tenure was marked by strategic reforms and initiatives that bolstered the commission's mandate. Subsequently, she was confirmed as one of the 12 National Commissioners of the NPC, further cementing her reputation as an astute administrator."}),i.jsx("p",{children:"Her expertise in population management earned her the prestigious role of Chairperson of the African Union-African Population Experts Committee (AU-APEC), where she continues to contribute to continental policies on population and development."}),i.jsx("p",{children:"In a testament to her versatile leadership, Mrs. Salu-Hundeyin currently serves as the Secretary to the State Government (SSG) under the administration of Governor Babajide Olusola Sanwo-Olu. In this role, she oversees the coordination of government activities, ensuring the effective implementation of policies and programs that align with the administration's vision for Lagos State."}),i.jsxs("p",{children:[i.jsx("div",{className:"heading",id:"highlights",children:"Highlights & Contributions"}),"Mrs. Abimbola Salu-Hundeyin is widely respected for her legal brilliance, administrative acumen, and unwavering commitment to public service. Her career reflects a deep dedication to advancing the legal profession and improving governance, making her a significant figure in Nigeria's public sector landscape."]})]})]})})})]})}function nke(){let e=Pe();const{isLoading:t,data:n}=Ke({queryKey:["exec"],queryFn:()=>Ube(e.name)});return v.useEffect(()=>{if(n){const r=document.getElementById("text");r.innerHTML=n?.content}},[n]),t?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsxs("div",{className:"officialViews",children:[i.jsxs("div",{className:"sideMenu",children:[i.jsxs("p",{children:[" See Also ",i.jsx(xu,{})," "]}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials",children:" View Administration "}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/governor/view",children:" Executive Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/deputy_governor/view",children:" Deputy Governor"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/ssg/view",children:"Sec. to the State Gov."}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/hos/view",children:"Head of Service"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/cos/view",children:"Chief of Staff"}),i.jsx("p",{onClick:()=>window.location.href="/government/elected_officials/dcos/view",children:"Deputy Chief of Staff"})]}),i.jsx("div",{className:"officials_body",children:i.jsx(Mt,{children:i.jsxs("div",{className:"viewport",children:[i.jsxs("div",{className:"official_details",children:[i.jsxs("div",{className:"official_name",children:[n?.fullname," "]}),i.jsxs("div",{className:"post",children:[" -",n?.position," - "]})]}),i.jsx("div",{className:"official_photo",children:i.jsx("img",{src:n?.photo,alt:`${n?.fullname} - ${n?.position} of Lagos State official photo`})}),i.jsxs("div",{className:"downloadPortrait",onClick:()=>window.open(n?.photo),children:[" ",i.jsx(bu,{})," Download Official Portrait "]}),i.jsx("div",{className:"official_bio customBio",id:"text"})]})})})]})}const rke=`${Nn}/directory`,ike=async e=>{const t=await De.get(`${rke}/${e}`);return t.status===200?t.data:[]},Lf=`${Nn}`,ake=async(e,t)=>{const n=new Date,r=await De.post(`${Lf}/mda/login`,{email:e,password:t,date:n.toLocaleString()});return r.status===200?r.data:{status:"bad",message:"something went wrong!"}},es=async e=>{const t=await De.post(`${Lf}/mda/login/authenticate`,{token:e});return t.status===200?t.data:{status:"bad",message:"Missing Token"}},ske=async(e,t)=>{const n=await De.post(`${Lf}/mda/refresh-token`,{token:e,mda:t});return n.status===200?n.data:{status:"bad",message:"Missing Token"}},oke=async e=>{const t=await De.post(`${Lf}/mda/forgot-password`,{email:e});return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},lke=async(e,t)=>{const n=await De.post(`${Lf}/mda/verify-otp`,{email:e,otp:t});return n.status===200?n.data:{status:"bad",message:"Something went wrong!"}},cke=async(e,t,n)=>{const r=await De.post(`${Lf}/mda/user/auth/password/${e}`,{password:t,newPassword:n});return r.status===200?r.data:{status:"bad",message:"Something went wrong!"}},cg="/assets/lasg__logo-9UVgyhz4.png",Su="/assets/lasg__logo-9UVgyhz4.png",uke={overview:"Overview",templates:"Templates",content:"Content",utilities:"Utilities",settings:"Settings"},dke=(e,t)=>{const n=t==="full"?[{name:"Services",href:`${e}/services`,icon:i.jsx(UD,{}),id:"services-admin"},{name:"Form Builder",href:`${e}/forms`,icon:i.jsx(bM,{}),id:"forms-admin"},{name:"Subscribers",href:`${e}/subscribers`,icon:i.jsx(yde,{}),id:"subscribers-admin"}]:[{name:"Services",href:`${e}/services`,icon:i.jsx(UD,{}),id:"services-admin"},{name:"Form Builder",href:`${e}/forms`,icon:i.jsx(bM,{}),id:"forms-admin"}],r=[{name:"General Settings",href:`${e}/settings`,icon:i.jsx(Sz,{}),id:"settings-admin"}];return t!=="full"?{utilities:n,settings:r}:{overview:[{name:"Dashboard",href:`${e}/dashboard`,icon:i.jsx(Nue,{}),id:"dashboard-admin"}],templates:[{name:"Published",href:`${e}/published`,icon:i.jsx(sde,{}),id:"published-admin"},{name:"Drafts",href:`${e}/drafts`,icon:i.jsx(wfe,{}),id:"drafts-admin"},{name:"Themes",href:`${e}/themes`,icon:i.jsx(qae,{}),id:"themes-admin"},{name:"Library",href:`${e}/library`,icon:i.jsx(Gde,{}),id:"library-admin"}],content:[{name:"About, Vision & Mission",href:`${e}/vision`,icon:i.jsx(Iue,{}),id:"vision-admin"},{name:"Agencies / Depts.",href:`${e}/agencies`,icon:i.jsx(Hue,{}),id:"agencies-admin"},{name:"Principal Officers",href:`${e}/people`,icon:i.jsx(fde,{}),id:"people-admin"},{name:"Responsibilities",href:`${e}/responsibility`,icon:i.jsx(mfe,{}),id:"responsibility-admin"},{name:"Newsroom",href:`${e}/newsroom`,icon:i.jsx(roe,{}),id:"newsroom-admin"},{name:"Events",href:`${e}/events`,icon:i.jsx(pz,{}),id:"events-admin"},{name:"Gallery",href:`${e}/gallery`,icon:i.jsx(j5,{}),id:"gallery-admin"},{name:"Resources",href:`${e}/resources`,icon:i.jsx(ede,{}),id:"resources-admin"},{name:"Contact",href:`${e}/contact`,icon:i.jsx(Pde,{}),id:"contact-admin"}],utilities:n,settings:r}},fke=e=>[{name:"Resources",href:`${e}/resources`,icon:i.jsx(Gae,{}),id:"resources-admin"},{name:"People",href:`${e}/people`,icon:i.jsx(Cz,{}),id:"people-admin"},{name:"Contact",href:`${e}/contact`,icon:i.jsx(gie,{}),id:"contact-admin"}],jG=e=>{const t=v.useRef(null);return v.useEffect(()=>{const n=r=>
632{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[e]),t},SG=({item:e,activeId:t,onNavigate:n})=>i.jsx("button",{type:"button",className:`nav-item ${e.id===t?"active":""}`,onClick:()=>n(e.href),children:e.name}),hke=({label:e,items:t,activeId:n,onNavigate:r})=>{const[a,s]=v.useState(!1),o=jG(()=>s(!1));if(t.length===1)return i.jsx(SG,{item:t[0],activeId:n,onNavigate:r});const l=t.some(d=>d.id===n);return i.jsxs("div",{className:"nav-dropdown",ref:o,children:[i.jsxs("button",{type:"button",className:`nav-item ${l?"active":""}`,onClick:()=>s(d=>!d),children:[e,i.jsx(ar,{className:"nav-caret"})]}),a&&i.jsx("div",{className:"nav-dropdown-menu",children:t.map(d=>i.jsxs("div",{className:`nav-dropdown-link ${d.id===n?"active":""}`,onClick:()=>{r(d.href),s(!1)},children:[i.jsx("span",{className:"nav-icon",children:d.icon}),d.name]},d.id))})]})};function pke(){const{mda:e,id:t}=Pe(),n=pt(),r=Te(S=>S.mdaData),[a,s]=v.useState(""),[o,l]=v.useState({firstname:"",lastname:""}),[d,u]=v.useState(!1),h=jG(()=>u(!1));v.useEffect(()=>{const S=window.localStorage.getItem("MDA__TOKEN");if(!S)return;const k=JSON.parse(S);s(k.role||""),l({firstname:k.firstname||"",lastname:k.lastname||""})},[]);const p=`/${e}/admin`,g=`${t}-admin`,y=a==="admin",b=y?dke(p,r?.type):null,w=y?null:fke(p),j=()=>{window.localStorage.removeItem("MDA__TOKEN"),window.location.reload()};return i.jsx(x5,{iconProps:{strokeWidth:2},children:i.jsxs("div",{className:"topbar",children:[i.jsxs("div",{className:"topbar-brand",onClick:()=>n(`${p}/dashboard`),children:[i.jsx("img",{src:r?.logo||Su,alt:`Lagos State ${r?.fullname} Logo`,className:"topbar-logo"}),i.jsx("p",{className:"topbar-mda-name",children:r?.fullname})]}),i.jsx("nav",{className:"topbar-nav",children:y?Object.entries(b).map(([S,k])=>i.jsx(hke,{label:uke[S]||S,items:k,activeId:g,onNavigate:n},S)):w.map(S=>i.jsx(SG,{item:S,activeId:g,onNavigate:n},S.id))}),i.jsxs("div",{className:"topbar-profile",ref:h,children:[i.jsxs("button",{type:"button",className:"profile-trigger",onClick:()=>u(S=>!S),children:[o.firstname.toUpperCase().substring(0,1),o.lastname.toUpperCase().substring(0,1),i.jsx(ar,{className:"nav-caret"})]}),d&&i.jsxs("div",{className:"profile-dropdown",children:[i.jsxs("button",{type:"button",className:"flex items-center gap-2.5 text-[14px] text-black cursor-pointer bg-transparent border-none p-0 font-normal text-left",onClick:()=>{u(!1),n(`${p}/settings`)},children:[i.jsx(S5,{})," Profile Settings"]}),i.jsxs("a",{href:"",children:[i.jsx(jz,{})," Add Team Members"]}),i.jsx("button",{onClick:j,children:"Sign Out"})]})]})]})})}const mke=`${Nn}/documents`,X7=(e,t=2560,n=1440,r=.9)=>new Promise(a=>{const s=document.createElement("canvas"),o=s.getContext("2d"),l=new Image;l.onload=()=>{let{width:d,height:u}=l;if(d>t||u>n){const h=Math.min(t/d,n/u);d*=h,u*=h}s.width=d,s.height=u,o.drawImage(l,0,0,d,u),s.toBlob(a,"image/jpeg",r)},l.src=URL.createObjectURL(e)}),Ab=async(e,t)=>vm(e,t,null),vm=async(e,t,n)=>{let r=e;if(e.type.startsWith("image/")&&e.size>1*1024*1024)try{r=await X7(e),console.log(`Compressed image from ${(e.size/1024/1024).toFixed(2)}MB to ${(r.size/1024/1024).toFixed(2)}MB`),r.size>5*1024*1024&&(r=await X7(e,1920,1080,.7),console.log(`Further compressed to ${(r.size/1024/1024).toFixed(2)}MB`))}catch(s){console.warn("Image compression failed, uploading original:",s)}const a=new FormData;a.append("document",r),a.append("folder",t||"LASG General Uploads");try{return(await De.post(`${mke}/upload`,a,{headers:{"Content-Type":"multipart/form-data"},maxContentLength:52428800,maxBodyLength:52428800,onUploadProgress:n?o=>{const l=o.total?Math.round(o.loaded*100/o.total):0;n(l)}:void 0})).data}catch(s){throw console.error("Upload failed:",s.response?.data||s.message),s}},CG=`${Nn}/forms`,wc=async(e,t,n=null)=>{try{const r={method:e,url:`${CG}${t}`,headers:{"Content-Type":"application/json"}},a=localStorage.getItem("authToken");return a&&(r.headers.Authorization=`Bearer ${a}`),n&&(r.data=n),(await De(r)).data}catch(r){throw console.error("API request failed:",r),r.response?.data||r}},Z7=async(e,t,n=null)=>{try{const r={method:e,url:`${CG}${t}`,headers:{"Content-Type":"application/json"}};return n&&(r.data=n),(await De(r)).data}catch(r){throw console.error("Public API request failed:",r),r.response?.data||r}},ys={getForms:async()=>await wc("GET","/all"),getFormsByMda:async e=>await wc("GET",`/mda/${e}`),createForm:async e=>await wc("POST","/create",e),getFormById:async e=>await Z7("GET",`/${e}`),updateForm:async(e,t)=>await wc("PUT",`/update/${e}`,t),deleteForm:async e=>await wc("DELETE",`/delete/${e}`),getResponses:async e=>await wc("GET",`/${e}/responses`),getResponseDetail:async e=>await wc("GET",`/responses/${e}`),submitForm:async(e,t)=>await Z7("POST",`/${e}/submit`,t),uploadFile:async(e,t="uploads")=>{try{const n=await Ab(e,t);return{url:n.data?.url||n.url||n.documentUrl||n,name:n.data?.original_name||e.name}}catch(n){throw console.error("File upload failed:",n),n}}},Yk=[{type:"short_answer",label:"Short Answer",icon:"Aa"},{type:"long_answer",label:"Long Answer",icon:"¶"},{type:"dropdown",label:"Dropdown",icon:"â¾"},{type:"multi_select",label:"Multi Select",icon:"â"},{type:"radio",label:"Radio Buttons",icon:"â"},{type:"checkbox",label:"Checkboxes",icon:"â"},{type:"file",label:"File Upload",icon:"ð"}],Kk=e=>["dropdown","multi_select","radio","checkbox"].includes(e),Kt={Plus:()=>i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M6 12h12M12 6v12"})}
632),Trash:()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M20 9l-1.995 11.346A2 2 0 0116.035 22h-8.07a2 2 0 01-1.97-1.654L4 9M21 6h-5.625M3 6h5.625m0 0V4a2 2 0 012-2h2.75a2 2 0 012 2v2m-6.75 0h6.75"})}),Back:()=>i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M15 6l-6 6 6 6"})}),Up:()=>i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M6 15l6-6 6 6"})}),Down:()=>i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M6 9l6 6 6-6"})}),Grip:()=>i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M12 12L4 4m0 0v4m0-4h4M12 12l8 8m0 0v-4m0 4h-4M12 12L4 20m0 0v-4m0 4h4M12 12l8-8m0 0v4m0-4h-4"})}),Eye:()=>i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M12 14a2 2 0 100-4 2 2 0 000 4z"}),i.jsx("path",{d:"M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6z"})]}),List:()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M8 6h12M4 6.01l.01-.011M4 12.01l.01-.011M4 18.01l.01-.011M8 12h12M8 18h12"})}),Copy:()=>i.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M19.4 20H9.6a.6.6 0 01-.6-.6V9.6a.6.6 0 01.6-.6h9.8a.6.6 0 01.6.6v9.8a.6.6 0 01-.6.6z"}),i.jsx("path",{d:"M15 9V4.6a.6.6 0 00-.6-.6H4.6a.6.6 0 00-.6.6v9.8a.6.6 0 00.6.6H9"})]}),Edit:()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),i.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),Download:()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),i.jsx("polyline",{points:"7,10 12,15 17,10"}),i.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),MoreHoriz:()=>i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("circle",{cx:"12",cy:"12",r:"1"}),i.jsx("circle",{cx:"19",cy:"12",r:"1"}),i.jsx("circle",{cx:"5",cy:"12",r:"1"})]})};function gke({field:e,index:t,total:n,onChange:r,onDelete:a,onMove:s,onDragStart:o,onDragOver:l,onDrop:d,isDragging:u}){const h=(b,w)=>r({...e,[b]:w}),p=(b,w)=>{const j=[...e.options||[]];j[b]=w,h("options",j)},g=()=>h("options",[...e.options||[],`Option ${(e.options?.length||0)+1}`]),y=b=>h("options",e.options.filter((w,j)=>j!==b));return i.jsxs("div",{draggable:!0,onDragStart:b=>o(b,t),onDragOver:b=>l(b,t),onDrop:b=>d(b,t),className:`bg-white rounded-xl border-2 transition-all ${u?"border-gray-400 opacity-50 scale-95":"border-gray-200 hover:border-gray-300"}`,children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-gray-100 bg-gray-50 rounded-t-xl",children:[i.jsx("span",{className:"cursor-grab text-gray-400 hover:text-gray-600",children:i.jsx(Kt.Grip,{})}),i.jsx("span",{className:"text-xs font-medium text-gray-500 bg-gray-200 px-2 py-0.5 rounded",children:t+1}),i.jsx("span",{className:"text-xs text-gray-500 flex-1",children:Yk.find(b=>b.type===e.type)?.label}),i.jsx("button",{onClick:()=>s(t,-1),disabled:t===0,className:"p-1 text-gray-400 hover:text-gray-700 disabled:opacity-30",children:i.jsx(Kt.Up,{})}),i.jsx("button",{onClick:()=>s(t,1),disabled:t===n-1,className:"p-1 text-gray-400 hover:text-gray-700 disabled:opacity-30",children:i.jsx(Kt.Down,{})}),a&&i.jsx("button",{onClick:a,className:"p-1 text-red-400 hover:text-red-600",children:i.jsx(Kt.Trash,{})})]}),i.jsxs("div",{className:"p-4 space-y-3",children:[i.jsxs("div",{className:"flex gap-3",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Question Label"}),i.jsx("input",{value:e.label,onChange:b=>h("label",b.target.value),placeholder:"Enter question...",disabled:e.isMandatory,className:`w-full px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-transparent ${e.isMandatory?"bg-gray-50 text-gray-500 cursor-not-allowed border-gray-200":"border-gray-300"}`})]}),i.jsxs("div",{className:"w-40",children:[i.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Type"}),i.jsx("select",{value:e.type,disabled:e.isMandatory,onChange:b=>{const w=b.target.value,j={...e,type:w};Kk(w)&&!j.options&&(j.options=["Option 1","Option 2"]),r(j)},className:`w-full px-3 py-2 border rounded-lg text-sm bg-white focus:outline-none focus:ring-2 focus:ring-gray-400 ${e.isMandatory?"bg-gray-50 text-gray-500 cursor-not-allowed border-gray-200":"border-gray-300"}`,children:Yk.map(b=>i.jsx("option",{value:b.type,children:b.label},b.type))})]})]}),Kk(e.type)&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:"Options"}),i.jsxs("div",{className:"space-y-2",children:[(e.options||[]).map((b,w)=>i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-gray-400 text-xs w-4",children:e.type==="radio"?"â¯":e.type==="checkbox"?"â":"â¢"}),i.jsx("input",{value:b,onChange:j=>p(w,j.target.value),className:"flex-1 px-3 py-1.5 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-gray-400"}),(e.options?.length||0)>1&&i.jsx("button",{onClick:()=>y(w),className:"text-red-400 hover:text-red-600 p-1",children:i.jsx(Kt.Trash,{})})]},w)),i.jsxs("button",{onClick:g,className:"text-sm text-gray-600 hover:text-gray-800 flex items-center gap-1 mt-1",children:[i.jsx(Kt.Plus,{})," ",i.jsx("span",{children:"Add option"})]})]})]}),e.type==="file"&&i.jsx("p",{className:"text-[13px] text-gray-500 bg-gray-50 rounded-lg px-3 py-2",children:"Ensure your file does not exceed 10MB"}),i.jsxs("label",{className:`flex items-center gap-2 text-sm ${e.isMandatory?"text-gray-400 cursor-not-allowed":"text-gray-600"}`,children:[i.jsx("input",{type:"checkbox",checked:e.required||!1,disabled:e.isMandatory,onChange:b=>h("required",b.target.checked),className:`rounded border-gray-300 text-gray-600 focus:ring-gray-400 ${e.isMandatory?"cursor-not-allowed":""}`}),"Required ",e.isMandatory&&"(Mandatory)"]})]})]})}const cu={green:{name:"Default Green",primary:"green",gradient:"from-green-600 to-emerald-600",focus:"ring-green-400",border:"border-green-300",bg:"bg-green-50",text:"text-green-600",hover:"hover:bg-green-100"},blue:{name:"Blue",primary:"blue",gradient:"from-blue-600 to-blue-700",focus:"ring-blue-400",border:"border-blue-300",bg
632:"bg-blue-50",text:"text-blue-600",hover:"hover:bg-blue-100"},purple:{name:"Purple",primary:"purple",gradient:"from-purple-600 to-indigo-600",focus:"ring-purple-400",border:"border-purple-300",bg:"bg-purple-50",text:"text-purple-600",hover:"hover:bg-purple-100"},orange:{name:"Orange",primary:"orange",gradient:"from-orange-600 to-red-600",focus:"ring-orange-400",border:"border-orange-300",bg:"bg-orange-50",text:"text-orange-600",hover:"hover:bg-orange-100"},teal:{name:"Teal",primary:"teal",gradient:"from-teal-600 to-cyan-600",focus:"ring-teal-400",border:"border-teal-300",bg:"bg-teal-50",text:"text-teal-600",hover:"hover:bg-teal-100"}};function vke({selectedTheme:e,onThemeChange:t,className:n=""}){return i.jsxs("div",{className:`bg-white rounded-xl border-2 border-gray-200 p-6 ${n}`,children:[i.jsx("h3",{className:"text-[15px] font-semibold text-gray-900 mb-1",children:"Form Theme"}),i.jsx("p",{className:"text-[13px] text-gray-500 mb-8",children:"Choose a color theme for your form"}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:Object.entries(cu).map(([r,a])=>i.jsxs("button",{onClick:()=>t(r),className:`relative p-4 rounded-lg border-[1.5px] transition-all ${e===r?"border-gray-400 shadow-xs":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:`w-full h-8 rounded bg-gradient-to-r ${a.gradient} mb-2`}),i.jsx("p",{className:"text-xs font-medium text-gray-700",children:a.name}),e===r&&i.jsx("div",{className:"absolute top-2 right-2 w-5 h-5 bg-gray-600 rounded-full flex items-center justify-center",children:i.jsx("svg",{className:"w-3 h-3 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:i.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]},r))}),i.jsx("div",{className:"mt-4 p-3 bg-gray-50 rounded-lg",children:i.jsxs("p",{className:"text-[14px] text-gray-600",children:[i.jsx("strong",{children:"Preview:"})," The selected theme will be applied to your"," ",i.jsx("strong",{children:"form's header"}),", ",i.jsx("strong",{children:"buttons"}),", and"," ",i.jsx("strong",{children:"interactive elements"}),"."]})})]})}function yke({form:e,onSave:t,onCancel:n}){const[r,a]=v.useState(e?.title||""),[s,o]=v.useState(e?.description||""),[l,d]=v.useState(()=>e?.fields?e.fields:[{id:"fullname",type:"short_answer",label:"Full Name",required:!0,isMandatory:!0},{id:"email",type:"short_answer",label:"Email Address",required:!0,isMandatory:!0}]),[u,h]=v.useState(null),[p,g]=v.useState(!1),[y,b]=v.useState(e?.theme||"green"),w=Te(T=>T.mdaData)?.slug,j=T=>{const P={id:`f_${Date.now()}`,type:T,label:"",required:!1};Kk(T)&&(P.options=["Option 1","Option 2"]),d([...l,P])},S=(T,P)=>{const $=T+P;if($<0||$>=l.length)return;const O=[...l];[O[T],O[$]]=[O[$],O[T]],d(O)},k=T=>{const P={...l[T],id:`f_${Date.now()}`,label:`${l[T].label} (copy)`,options:l[T].options?[...l[T].options]:void 0},$=[...l];$.splice(T+1,0,P),d($)},N=(T,P)=>{h(P),T.dataTransfer.effectAllowed="move"},_=T=>{T.preventDefault(),T.dataTransfer.dropEffect="move"},L=(T,P)=>{if(T.preventDefault(),u===null||u===P)return;const $=[...l],[O]=$.splice(u,1);$.splice(P,0,O),d($),h(null)},E=async()=>{if(!r.trim())return alert("Please enter a form title");if(l.length===0)return alert("Add at least one field");if(l.some(T=>!T.label.trim()))return alert("All fields must have a label");g(!0);try{await t({title:r,description:s,fields:l,theme:y,mda:w})}finally{g(!1)}};return i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-gray-600 hover:text-gray-900 text-sm font-medium",children:[i.jsx(Kt.Back,{})," Back to Forms"]}),i.jsx("button",{onClick:E,disabled:p,className:"px-5 py-2 bg-gray-800 text-white rounded-lg text-sm font-medium hover:bg-gray-900 disabled:opacity-50 transition-colors",children:p?"Saving...":e?"Update Form":"Create Form"})]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 p-6 mb-6",children:[i.jsx("input",{value:r,onChange:T=>a(T.target.value),placeholder:"Form Title",className:"w-full text-2xl font-bold text-gray-900 border-none outline-none placeholder-gray-300 mb-2"}),i.jsx("input",{value:s,onChange:T=>o(T.target.value),placeholder:"Form description (optional)",className:"w-full text-sm text-gray-600 border-none outline-none placeholder-gray-300"})]}),i.jsx(vke,{selectedTheme:y,onThemeChange:b,className:"mb-6"}),i.jsx("div",{className:"space-y-4 mb-6",children:l.map((T,P)=>i.jsxs("div",{className:"relative group",children:[i.jsx(gke,{field:T,index:P,total:l.length,onChange:$=>{const O=[...l];T.isMandatory&&($.isMandatory=!0,$.required=!0),O[P]=$,d(O)}
632,onDelete:T.isMandatory?void 0:()=>d(l.filter(($,O)=>O!==P)),onMove:S,onDragStart:N,onDragOver:_,onDrop:L,isDragging:u===P}),i.jsx("button",{onClick:()=>k(P),className:"absolute top-3 right-24 p-1 text-gray-400 hover:text-blue-600 opacity-0 group-hover:opacity-100 transition-opacity",title:"Duplicate",children:i.jsx(Kt.Copy,{})})]},T.id))}),l.length===0&&i.jsxs("div",{className:"text-center py-12 text-gray-400 border-2 border-dashed border-gray-200 rounded-xl mb-6",children:[i.jsx("p",{className:"text-lg mb-1",children:"No fields yet"}),i.jsx("p",{className:"text-sm",children:"Add your first field using the buttons below"})]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 p-4",children:[i.jsx("p",{className:"text-xs font-medium text-gray-500 mb-3",children:"ADD FIELD"}),i.jsx("div",{className:"flex flex-wrap gap-2",children:Yk.map(T=>i.jsxs("button",{onClick:()=>j(T.type),className:"flex items-center gap-2 px-3 py-2 bg-gray-50 border border-gray-200 rounded-lg text-sm text-gray-700 hover:bg-gray-700 hover:border-gray-300 hover:text-white transition-colors",children:[i.jsx("span",{className:"text-base",children:T.icon})," ",T.label]},T.type))})]})]})}function xke({form:e,onClose:t}){const[n,r]=v.useState({}),a=cu[e?.theme]||cu.green,s=(l,d)=>r({...n,[l]:d}),o=(l,d)=>{const u=n[l]||[];s(l,u.includes(d)?u.filter(h=>h!==d):[...u,d])};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`fixed w-screen h-screen top-0 left-0 ${a.bg} opacity-50 z-1`}),i.jsxs("div",{className:"max-w-3xl mx-auto relative z-2",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("button",{onClick:t,className:"flex items-center gap-1 text-gray-600 hover:text-gray-900 text-sm font-medium",children:[i.jsx(Kt.Back,{})," Back"]}),i.jsx("span",{className:"text-xs font-medium text-orange-600 bg-orange-50 px-3 py-1 rounded-full",children:"Preview Mode"})]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 overflow-hidden",children:[i.jsxs("div",{className:`px-6 py-5 bg-gradient-to-r ${a.gradient}`,children:[i.jsx("h2",{className:"text-white font-bold text-xl",children:e.title||"Untitled Form"}),e.description&&i.jsx("p",{className:"text-white/90 text-sm mt-1",children:e.description})]}),i.jsxs("div",{className:"p-6 space-y-5",children:[(e.fields||[]).map(l=>i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-gray-800 mb-1.5",children:[l.label||"Untitled",l.required&&i.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),l.type==="short_answer"&&i.jsx("input",{value:n[l.id]||"",onChange:d=>s(l.id,d.target.value),className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 ${a.focus}`,placeholder:"Short answer"}),l.type==="long_answer"&&i.jsx("textarea",{value:n[l.id]||"",onChange:d=>s(l.id,d.target.value),rows:3,className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 ${a.focus} resize-none`,placeholder:"Long answer"}),l.type==="dropdown"&&i.jsxs("select",{value:n[l.id]||"",onChange:d=>s(l.id,d.target.value),className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm bg-white focus:outline-none focus:ring-2 ${a.focus}`,children:[i.jsx("option",{value:"",children:"Select an option"}),(l.options||[]).map((d,u)=>i.jsx("option",{value:d,children:d},u))]}),l.type==="multi_select"&&i.jsx("select",{multiple:!0,value:n[l.id]||[],onChange:d=>s(l.id,Array.from(d.target.selectedOptions,u=>u.value)),className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm bg-white focus:outline-none focus:ring-2 ${a.focus}`,style:{minHeight:80},children:(l.options||[]).map((d,u)=>i.jsx("option",{value:d,children:d},u))}),l.type==="radio"&&i.jsx("div",{className:"space-y-2",children:(l.options||[]).map((d,u)=>i.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700 cursor-pointer",children:[i.jsx("input",{type:"radio",name:l.id,value:d,checked:n[l.id]===d,onChange:()=>s(l.id,d),className:`text-${a.primary}-600 focus:ring-${a.primary}-400`}),d]},u))}),l.type==="checkbox"&&i.jsx("div",{className:"space-y-2",children:(l.options||[]).map((d,u)=>i.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:(n[l.id]||[]).includes(d),onChange:()=>o(l.id,d),className:`rounded text-${a.primary}-600 focus:ring-${a.primary}-400`}),d]},u))}),l.type==="file"&&i.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-4 text-center text-sm text-gray-500",children:[i.jsx("p",{children:"ð Click or drag to upload a file"}),i.jsx("p",{className:"text-xs mt-1 text-gray-400",children:"Ensure your file does not exceed 10MB"})]})]},l.id)),i.jsx("button",{className:`w-full py-2.5 bg-gradient-to-r ${a.gradient} text-white rounded-lg font-medium text-sm hover:opacity-90 transition-opacity`,children:"Submit (Preview Only)"})]})]})]})]})}const ug=({children:e,open:t,onClose:n,onConfirm:r,customClass:a,buttonGroupClasses:s,loading:o,keepOpenOnConfirm:l})=>
632{if(!t)return null;const d=()=>{l||n(),r()};return i.jsx("div",{className:"confirm-backdrop h-[100vh] w-[100vw] fixed top-0 left-0 z-[999999999999] bg-black/50",children:i.jsxs("div",{className:`modal_content mb-40 ${a}`,children:[i.jsx("div",{className:"confirmTitle",children:"Confirm Action"}),e,i.jsxs("div",{className:`btn-grp flex ${s||""}`,children:[i.jsx("button",{className:"bg-gray-300 text-gray-700",onClick:n,disabled:o,children:"Cancel"}),i.jsxs("button",{className:"bg-green-700 text-white flex items-center justify-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed",onClick:d,disabled:o,children:[o&&i.jsx("span",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin"}),o?"Confirming...":"Confirm"]})]})]})})};function bke({forms:e,onCreateNew:t,onEdit:n,onViewResponses:r,onDelete:a,onPreview:s,onCopyPublicUrl:o}){const[l,d]=v.useState(!1),[u,h]=v.useState(null),[p,g]=v.useState(null),y=S=>{h(S),d(!0)},b=()=>{u&&(a(u._id),h(null),d(!1))},w=S=>{g(p===S?null:S)},j=()=>{d(!1),h(null)};return i.jsxs("div",{className:"max-w-6xl mx-auto",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"My Forms"}),i.jsxs("p",{className:"text-sm text-gray-500 mt-2",children:[e.length," form",e.length!==1?"s":""," created"]})]}),i.jsxs("button",{onClick:t,className:"flex items-center gap-2 px-4 py-2.5 bg-green-600 text-white rounded-lg text-sm font-medium hover:bg-green-700 transition-colors",children:[i.jsx(Kt.Plus,{})," New Form"]})]}),e.length===0?i.jsxs("div",{className:"text-center py-16 bg-white rounded-xl border-2 border-dashed border-gray-200",children:[i.jsx("p",{className:"text-gray-400 text-lg mb-2",children:"No forms yet"}),i.jsx("p",{className:"text-gray-400 text-sm mb-4",children:"Create your first form to get started"}),i.jsx("button",{onClick:t,className:"px-4 py-2 bg-green-600 text-white rounded-lg text-sm font-medium hover:bg-green-700",children:"Create Form"})]}):i.jsx("div",{className:"space-y-3",children:e.map(S=>i.jsx("div",{className:"bg-white rounded-xl border-1 border-gray-200 p-5 hover:border-gray-300 transition-colors group",children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"font-semibold text-gray-900",children:S.title}),S.description&&i.jsx("p",{className:"text-sm text-gray-500 mt-0.5 w-[max-content]",children:S.description}),i.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[i.jsxs("span",{className:"text-xs text-gray-400 w-[max-content]",children:["Created"," ",new Date(S.createdAt).toLocaleDateString("en-NG",{year:"numeric",month:"short",day:"numeric"})]}),i.jsxs("span",{className:"text-xs text-gray-400 w-[max-content]",children:[S.fields?.length||0," fields"]}),i.jsxs("span",{className:"text-xs font-medium text-green-600 w-[max-content]",children:[S.responseCount||0," responses"]})]})]}),i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"hidden lg:flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[i.jsxs("button",{onClick:()=>s(S),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-purple-600 bg-purple-50 border border-purple-200 rounded-full hover:bg-purple-100 transition-colors",title:"Preview",children:[i.jsx(Kt.Eye,{}),"Preview"]}),i.jsxs("button",{onClick:()=>o(S),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-indigo-600 bg-indigo-50 border border-indigo-200 rounded-full hover:bg-indigo-100 transition-colors",title:"Copy Public URL",children:[i.jsx(Kt.Copy,{}),"Copy Public URL"]}),i.jsxs("button",{onClick:()=>r(S),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-green-600 bg-green-50 border border-green-200 rounded-full hover:bg-green-100 transition-colors",title:"View Responses",children:[i.jsx(Kt.List,{}),"Responses"]}),i.jsxs("button",{onClick:()=>n(S),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-blue-600 bg-blue-50 border border-blue-200 rounded-full hover:bg-blue-100 transition-colors",children:[i.jsx(Kt.Edit,{}),"Edit"]}),i.jsxs("button",{onClick:()=>y(S),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-red-600 bg-red-50 border border-red-200 rounded-full hover:bg-red-100 transition-colors",children:[i.jsx(Kt.Trash,{}),"Delete"]})]}),i.jsxs("div",{className:"lg:hidden",children:[i.jsxs("button",{onClick:()=>w(S._id),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-gray-600 bg-gray-50 border border-gray-200 rounded-full hover:bg-gray-100 transition-colors",children:[i.jsx(Kt.MoreHoriz,{}),"Actions"]}),p===S._id&&i.jsxs("div",{className:"absolute right-0 top-full mt-1 w-48 bg-white border border-gray-200 rounded-lg shadow-lg z-10",children:[i.jsxs("button",{onClick:()=>{s(S),w(S._id)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 border-b border-gray-100 flex items-center gap-2",children:[i.jsx(Kt.Eye,{className:"text-purple-600"}),"Preview"]}),i.jsxs("button",{onClick:()=>{o(S),w(S._id)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 border-b border-gray-100 flex items-center gap-2",children:[i.jsx(Kt.Copy,{className:"text-indigo-600"}),"Copy Public URL"]}),i.jsxs("button",{onClick:()=>{r(S),w(S._id)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 border-b border-gray-100 flex items-center gap-2",children:[i.jsx(Kt.List,{className:"text-green-600"}),"Responses"]}),i.jsxs("button",{onClick:()=>{n(S),w(S._id)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 border-b border-gray-100 flex items-center gap-2",children:[i.jsx(Kt.Edit,{className:"text-blue-600"}),"Edit"]}),i.jsxs("button",{onClick:()=>{y(S),w(S._id)},className:"w-full text-left px-4 py-2 text-sm text-red-600 hover:bg-red-50 flex items-center gap-2",children:[i.jsx(Kt.Trash,{}),"Delete"]})]})]})]})]})},S.id))}),i.jsx(ug,{open:l,onClose:j,onConfirm:b,children:i.jsxs("div",{className:"",children:[i.jsxs("p",{className:"text-gray-700 mb-4",children:['Are you sure you want to delete the form "',i.jsx("strong",{children:u?.title}),'"?']}),i.jsx("p",{className:"text-sm text-gray-500",children:"This action cannot be undone and all form responses will be permanently deleted."})]})})]})}function wke({response:e,form:t,onBack:n}){if(!e||!t)return null;const r=()=>{try{const o=["Field","Response","Type"],l=[];l.push(o.join(",")),t.fields.forEach(g=>{const y=e.data[g.id]||"";let b=y;Array.isArray(y)?b=y.join("; "):typeof y=="object"&&y!==null?b=y.url||y.documentUrl||y.name||JSON.stringify(y):g.type==="file"&&typeof y=="string"&&(b=y),b=String(b).replace(/"/g,'""');const w=String(g.label||g.type).replace(/"/g,'""');l.push(`"${w}","${b}","${g.type}"`)}),l.push(",,,,"),l.push('"Submitted By","'+e.data.fullname.replace(/"/g,'""')+'","Metadata"'),l.push('"Submitted At","'+new Date(e.createdAt).toLocaleStr
632ing().replace(/"/g,'""')+'","Metadata"'),l.push('"Response ID","'+e._id.replace(/"/g,'""')+'","Metadata"'),l.push('"Form Title","'+t.title.replace(/"/g,'""')+'","Metadata"');const d=l.join(` 633`),u=new Blob([d],{type:"text/csv;charset=utf-8;"}),h=document.createElement("a"),p=URL.createObjectURL(u);h.setAttribute("href",p),h.setAttribute("download",`${e.createdAt.replace(/[^a-z0-9]/gi,"_")}_${t.title.replace(/[^a-z0-9]/gi,"_")}_response.csv`),h.style.visibility="hidden",document.body.appendChild(h),h.click(),document.body.removeChild(h)}catch(o){console.error("Export failed:",o),alert("Failed to export response. Please try again.")}},a=cu[t?.theme]||cu.green,s=(o,l)=>{if(!l)return i.jsx("span",{className:"text-gray-400 italic",children:"No response"});if(o.type==="file"){const d=typeof l=="string"?{url:l,name:"View File"}:l;return i.jsxs("a",{href:d?.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600! font-medium hover:underline flex items-center gap-1",children:["ð ",d?.name||"View File",i.jsx(Oe,{className:"text-[10px] ml-[2px]"})]})}return Array.isArray(l)?i.jsx("div",{className:"flex flex-wrap gap-1",children:l.map((d,u)=>i.jsx("span",{className:"bg-blue-100 text-blue-800 text-xs px-2 py-0.5 rounded-full",children:d},u))}):i.jsx("span",{className:"text-gray-900",children:l})};return i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-gray-600 hover:text-gray-900 text-sm font-medium mb-6",children:[i.jsx(Kt.Back,{})," Back to Responses"]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 overflow-hidden",children:[i.jsx("div",{className:`px-6 py-4 bg-gradient-to-r ${a.gradient}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsxs("h2",{className:"text-white font-bold text-lg",children:[e.data.fullname,"'s Response"]}),i.jsxs("p",{className:"text-white/90 text-sm",children:[t.title," · Submitted"," ",new Date(e.createdAt).toLocaleDateString("en-NG",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})]})]}),i.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-2 bg-white/20 backdrop-blur-sm text-white rounded-lg text-sm font-medium hover:bg-white/30 transition-colors border border-white/30",children:[i.jsx(Kt.Download,{}),"Export"]})]})}),i.jsx("div",{className:"divide-y divide-gray-100",children:t.fields.map(o=>i.jsxs("div",{className:"px-6 py-4",children:[i.jsxs("p",{className:"text-xs font-medium text-gray-500 mb-1",children:[o.label,o.required&&i.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),i.jsx("div",{className:"text-sm",children:s(o,e.data[o.id])})]},o.id))})]})]})}function jke({form:e,onBack:t,onViewResponse:n}){const[r,a]=v.useState([]),[s,o]=v.useState(!0),[l,d]=v.useState(!1),{data:u,isLoading:h,error:p}=Ke({queryKey:["forms"],queryFn:()=>ys.getResponses(e._id)});v.useEffect(()=>{u&&(a(u?.data),o(!1))},[u]);const g=async()=>{d(!0);try{const y=r;if(y.length===0){alert("No responses to export");return}const b=["Submitted By","Submitted At","Response ID"];e.fields.forEach(_=>{b.push(_.label||_.type)});const w=[];w.push(b.join(",")),y.forEach(_=>{const L=[`"${_.data.fullname}"`,`"${new Date(_.createdAt).toLocaleString()}"`,`"${_._id}"`];e.fields.forEach(E=>{const T=_.data[E.id]||"";let P=T;Array.isArray(T)?P=T.join("; "):typeof T=="object"&&T?.name&&(P=`File: ${T.name}`),P=String(P).replace(/"/g,'""'),L.push(`"${P}"`)}),w.push(L.join(","))});const j=w.join(` 634`),S=new Blob([j],{type:"text/csv;charset=utf-8;"}),k=document.createElement("a"),N=URL.createObjectURL(S);k.setAttribute("href",N),k.setAttribute("download",`${e.title.replace(/[^a-z0-9]/gi,"_")}_responses.csv`),k.style.visibility="hidden",document.body.appendChild(k),k.click(),document.body.removeChild(k)}catch(y){console.error("Export failed:",y),alert("Failed to export responses. Please try again.")}finally{d(!1)}};return i.jsxs("div",{className:"max-w-3xl mx-auto",children:[i.jsxs("button",{onClick:t,className:"flex items-center gap-1 text-gray-600 hover:text-gray-900 text-sm font-medium mb-6",children:[i.jsx(Kt.Back,{})," Back to Forms"]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 overflow-hidden",children:[i.jsx("div",{className:"px-6 py-4 bg-gray-800",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-white font-bold text-lg",children:e.title}),i.jsxs("p",{className:"text-gray-300 text-sm",children:[e?.responseCount||0," Response",e?.responseCount!==1?"s":""]})]}),e?.responseCount>0&&i.jsxs("button",{onClick:g,disabled:l,className:"flex items-center gap-2 px-3 py-2 bg-green-600 text-white rounded-lg text-sm font-medium hover:bg-green-700 disabled:opacity-50 transition-colors",children:[i.jsx(Kt.Download,{}),l?"Exporting...":"Export responses"]})]})}),h?i.jsx("div",{className:"p-8 text-center text-gray-400",children:"Loading responses..."}):r.length===0?i.jsxs("div",{className:"p-12 text-center text-gray-400",children:[i.jsx("p",{className:"text-lg mb-1",children:"No responses yet"}),i.jsx("p",{className:"text-sm",children:"Share your form to start collecting responses"})]}):i.jsx("div",{className:"divide-y divide-gray-100",children:r.map(y=>i.jsxs("button",{onClick:()=>n(y),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors text-left",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-gray-900 text-[14.5px]",children:y.data.fullname}),i.jsxs("p",{className:"text-[13px] text-gray-500 mt-[2px]",children:[" ","Date Submitted:"," ",new Date(y.createdAt).toLocaleDateString("en-NG",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})]})]}),i.jsx("span",{className:"text-gray-400",children:i.jsx(Kt.Eye,{})})]},y.id))})]})]})}function Ske(){const[e,t]=v.useState("list"),[n,r]=v.useState([]),[a,s]=v.useState(null),[o,l]=v.useState(null),[d,u]=v.useState(null),{mda:h}=Pe(),{data:p,isLoading:g,error:y}=Ke({queryKey:["forms",e],queryFn:()=>ys.getFormsByMda(h)});v.useEffect(()=>{p&&r(p?.data)},[p]);const b=()=>{s(null),t("builder")},w=E=>{s(E),t("builder")},j=E=>{l(E),t("responses")},S=E=>{const T=`${au}/${E.mda}/forms/${E._id}`;navigator.clipboard.writeText(T).then(()=>{alert("Public URL copied to clipboard!")}
634).catch(()=>{alert("Failed to copy URL")})},k=E=>{l(E),t("preview")},N=E=>{u(E),t("response_detail")},_=async E=>{await ys.deleteForm(E),r(n.filter(T=>T._id!==E))},L=async E=>{if(a)await ys.updateForm(a._id,E),r(n.map(T=>T._id===a._id?{...T,...E}:T));else{const T=await ys.createForm(E);r([T,...n])}t("list"),s(null)};return i.jsxs("div",{className:"min-h-screen bg-gray-50 py-8 px-4",children:[e==="list"&&i.jsx(bke,{forms:n,onCreateNew:b,onEdit:w,onViewResponses:j,onDelete:_,onPreview:k,onCopyPublicUrl:S}),e==="builder"&&i.jsx(yke,{form:a,onSave:L,onCancel:()=>{t("list"),s(null)}}),e==="responses"&&o&&i.jsx(jke,{form:o||{},onBack:()=>t("list"),onViewResponse:N}),e==="response_detail"&&d&&o&&i.jsx(wke,{response:d,form:o,onBack:()=>t("responses")}),e==="preview"&&o&&i.jsx(xke,{form:o,onClose:()=>t("list")})]})}var Q7={};/** 635 * @license 636 * Copyright 2017 Google LLC 637 * 638 * Licensed under the Apache License, Version 2.0 (the "License"); 639 * you may not use this file except in compliance with the License. 640 * You may obtain a copy of the License at 641 * 642 * http://www.apache.org/licenses/LICENSE-2.0 643 * 644 * Unless required by applicable law or agreed to in writing, software 645 * distributed under the License is distributed on an "AS IS" BASIS, 646 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 647 * See the License for the specific language governing permissions and 648 * limitations under the License. 649 */const kG=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);a<128?t[n++]=a:a<2048?(t[n++]=a>>6|192,t[n++]=a&63|128):(a&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(a=65536+((a&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=a>>18|240,t[n++]=a>>12&63|128,t[n++]=a>>6&63|128,t[n++]=a&63|128):(t[n++]=a>>12|224,t[n++]=a>>6&63|128,t[n++]=a&63|128)}return t},Cke=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const a=e[n++];if(a<128)t[r++]=String.fromCharCode(a);else if(a>191&&a<224){const s=e[n++];t[r++]=String.fromCharCode((a&31)<<6|s&63)}else if(a>239&&a<365){const s=e[n++],o=e[n++],l=e[n++],d=((a&7)<<18|(s&63)<<12|(o&63)<<6|l&63)-65536;t[r++]=String.fromCharCode(55296+(d>>10)),t[r++]=String.fromCharCode(56320+(d&1023))}else{const s=e[n++],o=e[n++];t[r++]=String.fromCharCode((a&15)<<12|(s&63)<<6|o&63)}}return t.join("")},NG={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let a=0;a<e.length;a+=3){const s=e[a],o=a+1<e.length,l=o?e[a+1]:0,d=a+2<e.length,u=d?e[a+2]:0,h=s>>2,p=(s&3)<<4|l>>4;let g=(l&15)<<2|u>>6,y=u&63;d||(y=64,o||(g=64)),r.push(n[h],n[p],n[g],n[y])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(kG(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):Cke(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let a=0;a<e.length;){const s=n[e.charAt(a++)],l=a<e.length?n[e.charAt(a)]:0;++a;const u=a<e.length?n[e.charAt(a)]:64;++a;const p=a<e.length?n[e.charAt(a)]:64;if(++a,s==null||l==null||u==null||p==null)throw new kke;const g=s<<2|l>>4;if(r.push(g),u!==64){const y=l<<4&240|u>>2;if(r.push(y),p!==64){const b=u<<6&192|p;r.push(b)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
649class kke extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Nke=function(e){const t=kG(e);return NG.encodeByteArray(t,!0)},qy=function(e){return Nke(e).replace(/\./g,"")},Ake=function(e){try{return NG.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 650 * @license 651 * Copyright 2022 Google LLC 652 * 653 * Licensed under the Apache License, Version 2.0 (the "License"); 654 * you may not use this file except in compliance with the License. 655 * You may obtain a copy of the License at 656 * 657 * http://www.apache.org/licenses/LICENSE-2.0 658 * 659 * Unless required by applicable law or agreed to in writing, software 660 * distributed under the License is distributed on an "AS IS" BASIS, 661 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 662 * See the License for the specific language governing permissions and 663 * limitations under the License. 664 */function Eke(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 665 * @license 666 * Copyright 2022 Google LLC 667 * 668 * Licensed under the Apache License, Version 2.0 (the "License"); 669 * you may not use this file except in compliance with the License. 670 * You may obtain a copy of the License at 671 * 672 * http://www.apache.org/licenses/LICENSE-2.0 673 * 674 * Unless required by applicable law or agreed to in writing, software 675 * distributed under the License is distributed on an "AS IS" BASIS, 676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 677 * See the License for the specific language governing permissions and 678 * limitations under the License. 679 */const _ke=()=>Eke().__FIREBASE_DEFAULTS__,Tke=()=>{if(typeof process>"u"||typeof Q7>"u")return;const e=Q7.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)}
679,Lke=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&Ake(e[1]);return t&&JSON.parse(t)},AG=()=>{try{return _ke()||Tke()||Lke()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Oke=e=>{var t,n;return(n=(t=AG())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},Mke=e=>{const t=Oke(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},EG=()=>{var e;return(e=AG())===null||e===void 0?void 0:e.config};/** 680 * @license 681 * Copyright 2017 Google LLC 682 * 683 * Licensed under the Apache License, Version 2.0 (the "License"); 684 * you may not use this file except in compliance with the License. 685 * You may obtain a copy of the License at 686 * 687 * http://www.apache.org/licenses/LICENSE-2.0 688 * 689 * Unless required by applicable law or agreed to in writing, software 690 * distributed under the License is distributed on an "AS IS" BASIS, 691 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 692 * See the License for the specific language governing permissions and 693 * limitations under the License. 694 */class Dke{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** 695 * @license 696 * Copyright 2021 Google LLC 697 * 698 * Licensed under the Apache License, Version 2.0 (the "License"); 699 * you may not use this file except in compliance with the License. 700 * You may obtain a copy of the License at 701 * 702 * http://www.apache.org/licenses/LICENSE-2.0 703 * 704 * Unless required by applicable law or agreed to in writing, software 705 * distributed under the License is distributed on an "AS IS" BASIS, 706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 707 * See the License for the specific language governing permissions and 708 * limitations under the License. 709 */function Pke(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",a=e.iat||0,s=e.sub||e.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:a,exp:a+3600,auth_time:a,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},e);return[qy(JSON.stringify(n)),qy(JSON.stringify(o)),""].join(".")}function Rke(){try{return typeof indexedDB=="object"}catch{return!1}}function Ike(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(r);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var s;t(((s=a.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){t(n)}})}/** 710 * @license 711 * Copyright 2017 Google LLC 712 * 713 * Licensed under the Apache License, Version 2.0 (the "License"); 714 * you may not use this file except in compliance with the License. 715 * You may obtain a copy of the License at 716 * 717 * http://www.apache.org/licenses/LICENSE-2.0 718 * 719 * Unless required by applicable law or agreed to in writing, software 720 * distributed under the License is distributed on an "AS IS" BASIS, 721 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 722 * See the License for the specific language governing permissions and 723 * limitations under the License. 724 */const $ke="FirebaseError";class Of extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=$ke,Object.setPrototypeOf(this,Of.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,_G.prototype.create)}}class _G{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},a=`${this.service}/${t}`,s=this.errors[t],o=s?Bke(s,r):"Error",l=`${this.serviceName}: ${o} (${a}).`;return new Of(a,l,r)}}function Bke(e,t){return e.replace(qke,(n,r)=>{const a=t[r];return a!=null?String(a):`<${r}?>`})}const qke=/\{\$([^}]+)}/g;function Xk(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const a of n){if(!r.includes(a))return!1;const s=e[a],o=t[a];if(J7(s)&&J7(o)){if(!Xk(s,o))return!1}else if(s!==o)return!1}for(const a of r)if(!n.includes(a))return!1;return!0}function J7(e){return e!==null&&typeof e=="object"}/** 725 * @license 726 * Copyright 2021 Google LLC 727 * 728 * Licensed under the Apache License, Version 2.0 (the "License");
729 * you may not use this file except in compliance with the License. 730 * You may obtain a copy of the License at 731 * 732 * http://www.apache.org/licenses/LICENSE-2.0 733 * 734 * Unless required by applicable law or agreed to in writing, software 735 * distributed under the License is distributed on an "AS IS" BASIS, 736 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 737 * See the License for the specific language governing permissions and 738 * limitations under the License. 739 */function Eb(e){return e&&e._delegate?e._delegate:e}class ym{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 740 * @license 741 * Copyright 2019 Google LLC 742 * 743 * Licensed under the Apache License, Version 2.0 (the "License"); 744 * you may not use this file except in compliance with the License. 745 * You may obtain a copy of the License at 746 * 747 * http://www.apache.org/licenses/LICENSE-2.0 748 * 749 * Unless required by applicable law or agreed to in writing, software 750 * distributed under the License is distributed on an "AS IS" BASIS, 751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 752 * See the License for the specific language governing permissions and 753 * limitations under the License. 754 */const Lc="[DEFAULT]";/** 755 * @license 756 * Copyright 2019 Google LLC 757 * 758 * Licensed under the Apache License, Version 2.0 (the "License"); 759 * you may not use this file except in compliance with the License. 760 * You may obtain a copy of the License at 761 * 762 * http://www.apache.org/licenses/LICENSE-2.0 763 * 764 * Unless required by applicable law or agreed to in writing, software 765 * distributed under the License is distributed on an "AS IS" BASIS, 766 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 767 * See the License for the specific language governing permissions and 768 * limitations under the License. 769 */let Fke=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Dke;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:n});a&&r.resolve(a)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t?.identifier),a=(n=t?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(a)return null;throw s}else{if(a)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Hke(t))try{this.getOrInitializeService({instanceIdentifier:Lc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:a});r.resolve(s)}catch{}}}}clearInstance(t=Lc){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Lc){return this.instances.has(t)}getOptions(t=Lc){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const a=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,o]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(s);r===l&&o.resolve(a)}return a}onInit(t,n){var r;const a=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(a))!==null&&r!==void 0?r:new Set;s.add(t),this.onInitCallbacks.set(a,s);const o=this.instances.get(a);return o&&t(o,a),()=>{s.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const a of r)try{a(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:zke(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Lc){return this.component?this.component.multipleInstances?t:Lc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function zke(e){return e===Lc?void 0:e}function Hke(e){return e.instantiationMode==="EAGER"}/** 770 * @license 771 * Copyright 2019 Google LLC 772 * 773 * Licensed under the Apache License, Version 2.0 (the "License");
774 * you may not use this file except in compliance with the License. 775 * You may obtain a copy of the License at 776 * 777 * http://www.apache.org/licenses/LICENSE-2.0 778 * 779 * Unless required by applicable law or agreed to in writing, software 780 * distributed under the License is distributed on an "AS IS" BASIS, 781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 782 * See the License for the specific language governing permissions and 783 * limitations under the License. 784 */class Uke{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Fke(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 785 * @license 786 * Copyright 2017 Google LLC 787 * 788 * Licensed under the Apache License, Version 2.0 (the "License"); 789 * you may not use this file except in compliance with the License. 790 * You may obtain a copy of the License at 791 * 792 * http://www.apache.org/licenses/LICENSE-2.0 793 * 794 * Unless required by applicable law or agreed to in writing, software 795 * distributed under the License is distributed on an "AS IS" BASIS, 796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 797 * See the License for the specific language governing permissions and 798 * limitations under the License. 799 */var en;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(en||(en={}));const Vke={debug:en.DEBUG,verbose:en.VERBOSE,info:en.INFO,warn:en.WARN,error:en.ERROR,silent:en.SILENT},Gke=en.INFO,Wke={[en.DEBUG]:"log",[en.VERBOSE]:"log",[en.INFO]:"info",[en.WARN]:"warn",[en.ERROR]:"error"},Yke=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),a=Wke[t];if(a)console[a](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class Kke{constructor(t){this.name=t,this._logLevel=Gke,this._logHandler=Yke,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in en))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Vke[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,en.DEBUG,...t),this._logHandler(this,en.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,en.VERBOSE,...t),this._logHandler(this,en.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,en.INFO,...t),this._logHandler(this,en.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,en.WARN,...t),this._logHandler(this,en.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,en.ERROR,...t),this._logHandler(this,en.ERROR,...t)}}const Xke=(e,t)=>t.some(n=>e instanceof n);let eR,tR;function Zke(){return eR||(eR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qke(){return tR||(tR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const TG=new WeakMap,Zk=new WeakMap,LG=new WeakMap,M3=new WeakMap,FN=new WeakMap;function Jke(e){const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("success",s),e.removeEventListener("error",o)},s=()=>{n(Tl(e.result)),a()},o=()=>{r(e.error),a()};e.addEventListener("success",s),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&TG.set(n,e)}).catch(()=>{}),FN.set(t,e),t}function e6e(e){if(Zk.has(e))return;const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",o),e.removeEventListener("abort",o)},s=()=>{n(),a()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",s),e.addEventListener("error",o),e.addEventListener("abort",o)});Zk.set(e,t)}let Qk={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Zk.get(e);if(t==="objectStoreNames")return e.objectStoreNames||LG.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Tl(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function t6e(e){Qk=e(Qk)}function n6e(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(D3(this),t,...n);return LG.set(r,t.sort?t.sort():[t]),Tl(r)}:Qke().includes(e)?function(...t){return e.apply(D3(this),t),Tl(TG.get(this))}:function(...t){return Tl(e.apply(D3(this),t))}}function r6e(e){return typeof e=="function"?n6e(e):(e instanceof IDBTransaction&&e6e(e),Xke(e,Zke())?new Proxy(e,Qk):e)}function Tl(e){if(e instanceof IDBRequest)return Jke(e);if(M3.has(e))return M3.get(e);const t=r6e(e);return t!==e&&(M3.set(e,t),FN.set(t,e)),t}const D3=e=>FN.get(e);function i6e(e,t,{blocked:n,upgrade:r,blocking:a,terminated:s}={}){const o=indexedDB.open(e,t),l=Tl(o);return r&&o.addEventListener("upgradeneeded",d=>{r(Tl(o.result),d.oldVersion,d.newVersion,Tl(o.transaction),d)}),n&&o.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),l.then(d=>{s&&d.addEventListener("close",()=>s()),a&&d.addEventListener("versionchange",u=>a(u.oldVersion,u.newVersion,u))}).catch(()=>{}),l}const a6e=["get","getKey","getAll","getAllKeys","count"],s6e=["put","add","delete","clear"],P3=new Map;function nR(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(P3.get(t))return P3.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,a=s6e.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||a6e.includes(n)))return;const s=async function(o,...l){const d=this.transaction(o,a?"readwrite":"readonly");let u=d.store;
799return r&&(u=u.index(l.shift())),(await Promise.all([u[n](...l),a&&d.done]))[0]};return P3.set(t,s),s}t6e(e=>({...e,get:(t,n,r)=>nR(t,n)||e.get(t,n,r),has:(t,n)=>!!nR(t,n)||e.has(t,n)}));/** 800 * @license 801 * Copyright 2019 Google LLC 802 * 803 * Licensed under the Apache License, Version 2.0 (the "License"); 804 * you may not use this file except in compliance with the License. 805 * You may obtain a copy of the License at 806 * 807 * http://www.apache.org/licenses/LICENSE-2.0 808 * 809 * Unless required by applicable law or agreed to in writing, software 810 * distributed under the License is distributed on an "AS IS" BASIS, 811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 812 * See the License for the specific language governing permissions and 813 * limitations under the License. 814 */class o6e{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(l6e(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function l6e(e){const t=e.getComponent();return t?.type==="VERSION"}const Jk="@firebase/app",rR="0.10.13";/** 815 * @license 816 * Copyright 2019 Google LLC 817 * 818 * Licensed under the Apache License, Version 2.0 (the "License"); 819 * you may not use this file except in compliance with the License. 820 * You may obtain a copy of the License at 821 * 822 * http://www.apache.org/licenses/LICENSE-2.0 823 * 824 * Unless required by applicable law or agreed to in writing, software 825 * distributed under the License is distributed on an "AS IS" BASIS, 826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 827 * See the License for the specific language governing permissions and 828 * limitations under the License. 829 */const Ao=new Kke("@firebase/app"),c6e="@firebase/app-compat",u6e="@firebase/analytics-compat",d6e="@firebase/analytics",f6e="@firebase/app-check-compat",h6e="@firebase/app-check",p6e="@firebase/auth",m6e="@firebase/auth-compat",g6e="@firebase/database",v6e="@firebase/data-connect",y6e="@firebase/database-compat",x6e="@firebase/functions",b6e="@firebase/functions-compat",w6e="@firebase/installations",j6e="@firebase/installations-compat",S6e="@firebase/messaging",C6e="@firebase/messaging-compat",k6e="@firebase/performance",N6e="@firebase/performance-compat",A6e="@firebase/remote-config",E6e="@firebase/remote-config-compat",_6e="@firebase/storage",T6e="@firebase/storage-compat",L6e="@firebase/firestore",O6e="@firebase/vertexai-preview",M6e="@firebase/firestore-compat",D6e="firebase",P6e="10.14.1";/** 830 * @license 831 * Copyright 2019 Google LLC 832 * 833 * Licensed under the Apache License, Version 2.0 (the "License"); 834 * you may not use this file except in compliance with the License. 835 * You may obtain a copy of the License at 836 * 837 * http://www.apache.org/licenses/LICENSE-2.0 838 * 839 * Unless required by applicable law or agreed to in writing, software 840 * distributed under the License is distributed on an "AS IS" BASIS, 841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 842 * See the License for the specific language governing permissions and 843 * limitations under the License. 844 */const e6="[DEFAULT]",R6e={[Jk]:"fire-core",[c6e]:"fire-core-compat",[d6e]:"fire-analytics",[u6e]:"fire-analytics-compat",[h6e]:"fire-app-check",[f6e]:"fire-app-check-compat",[p6e]:"fire-auth",[m6e]:"fire-auth-compat",[g6e]:"fire-rtdb",[v6e]:"fire-data-connect",[y6e]:"fire-rtdb-compat",[x6e]:"fire-fn",[b6e]:"fire-fn-compat",[w6e]:"fire-iid",[j6e]:"fire-iid-compat",[S6e]:"fire-fcm",[C6e]:"fire-fcm-compat",[k6e]:"fire-perf",[N6e]:"fire-perf-compat",[A6e]:"fire-rc",[E6e]:"fire-rc-compat",[_6e]:"fire-gcs",[T6e]:"fire-gcs-compat",[L6e]:"fire-fst",[M6e]:"fire-fst-compat",[O6e]:"fire-vertex","fire-js":"fire-js",[D6e]:"fire-js-all"};/** 845 * @license 846 * Copyright 2019 Google LLC 847 * 848 * Licensed under the Apache License, Version 2.0 (the "License"); 849 * you may not use this file except in compliance with the License. 850 * You may obtain a copy of the License at 851 * 852 * http://www.apache.org/licenses/LICENSE-2.0 853 * 854 * Unless required by applicable law or agreed to in writing, softw
854are 855 * distributed under the License is distributed on an "AS IS" BASIS, 856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 857 * See the License for the specific language governing permissions and 858 * limitations under the License. 859 */const Fy=new Map,I6e=new Map,t6=new Map;function iR(e,t){try{e.container.addComponent(t)}catch(n){Ao.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function zy(e){const t=e.name;if(t6.has(t))return Ao.debug(`There were multiple attempts to register component ${t}.`),!1;t6.set(t,e);for(const n of Fy.values())iR(n,e);for(const n of I6e.values())iR(n,e);return!0}function $6e(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/** 860 * @license 861 * Copyright 2019 Google LLC 862 * 863 * Licensed under the Apache License, Version 2.0 (the "License"); 864 * you may not use this file except in compliance with the License. 865 * You may obtain a copy of the License at 866 * 867 * http://www.apache.org/licenses/LICENSE-2.0 868 * 869 * Unless required by applicable law or agreed to in writing, software 870 * distributed under the License is distributed on an "AS IS" BASIS, 871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 872 * See the License for the specific language governing permissions and 873 * limitations under the License. 874 */const B6e={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
874d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ll=new _G("app","Firebase",B6e);/** 875 * @license 876 * Copyright 2019 Google LLC 877 * 878 * Licensed under the Apache License, Version 2.0 (the "License"); 879 * you may not use this file except in compliance with the License. 880 * You may obtain a copy of the License at 881 * 882 * http://www.apache.org/licenses/LICENSE-2.0 883 * 884 * Unless required by applicable law or agreed to in writing, software 885 * distributed under the License is distributed on an "AS IS" BASIS, 886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 887 * See the License for the specific language governing permissions and 888 * limitations under the License. 889 */class q6e{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ym("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ll.create("app-deleted",{appName:this._name})}}/** 890 * @license 891 * Copyright 2019 Google LLC 892 * 893 * Licensed under the Apache License, Version 2.0 (the "License"); 894 * you may not use this file except in compliance with the License. 895 * You may obtain a copy of the License at 896 * 897 * http://www.apache.org/licenses/LICENSE-2.0 898 * 899 * Unless required by applicable law or agreed to in writing, software 900 * distributed under the License is distributed on an "AS IS" BASIS, 901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 902 * See the License for the specific language governing permissions and 903 * limitations under the License. 904 */const F6e=P6e;function OG(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:e6,automaticDataCollectionEnabled:!1},t),a=r.name;if(typeof a!="string"||!a)throw Ll.create("bad-app-name",{appName:String(a)});if(n||(n=EG()),!n)throw Ll.create("no-options");const s=Fy.get(a);if(s){if(Xk(n,s.options)&&Xk(r,s.config))return s;throw Ll.create("duplicate-app",{appName:a})}const o=new Uke(a);for(const d of t6.values())o.addComponent(d);const l=new q6e(n,r,o);return Fy.set(a,l),l}function z6e(e=e6){const t=Fy.get(e);if(!t&&e===e6&&EG())return OG();if(!t)throw Ll.create("no-app",{appName:e});return t}function Kd(e,t,n){var r;let a=(r=R6e[e])!==null&&r!==void 0?r:e;n&&(a+=`-${n}`);const s=a.match(/\s|\//),o=t.match(/\s|\//);if(s||o){const l=[`Unable to register library "${a}" with version "${t}":`];s&&l.push(`library name "${a}" contains illegal characters (whitespace or "/")`),s&&o&&l.push("and"),o&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Ao.warn(l.join(" "));return}zy(new ym(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}/** 905 * @license 906 * Copyright 2021 Google LLC 907 * 908 * Licensed under the Apache License, Version 2.0 (the "License"); 909 * you may not use this file except in compliance with the License. 910 * You may obtain a copy of the License at 911 * 912 * http://www.apache.org/licenses/LICENSE-2.0 913 * 914 * Unless required by applicable law or agreed to in writing, softw
914are 915 * distributed under the License is distributed on an "AS IS" BASIS, 916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 917 * See the License for the specific language governing permissions and 918 * limitations under the License. 919 */const H6e="firebase-heartbeat-database",U6e=1,xm="firebase-heartbeat-store";let R3=null;function MG(){return R3||(R3=i6e(H6e,U6e,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(xm)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ll.create("idb-open",{originalErrorMessage:e.message})})),R3}async function V6e(e){try{const n=(await MG()).transaction(xm),r=await n.objectStore(xm).get(DG(e));return await n.done,r}catch(t){if(t instanceof Of)Ao.warn(t.message);else{const n=Ll.create("idb-get",{originalErrorMessage:t?.message});Ao.warn(n.message)}}}async function aR(e,t){try{const r=(await MG()).transaction(xm,"readwrite");await r.objectStore(xm).put(t,DG(e)),await r.done}catch(n){if(n instanceof Of)Ao.warn(n.message);else{const r=Ll.create("idb-set",{originalErrorMessage:n?.message});Ao.warn(r.message)}}}function DG(e){return`${e.name}!${e.options.appId}`}/** 920 * @license 921 * Copyright 2021 Google LLC 922 * 923 * Licensed under the Apache License, Version 2.0 (the "License"); 924 * you may not use this file except in compliance with the License. 925 * You may obtain a copy of the License at 926 * 927 * http://www.apache.org/licenses/LICENSE-2.0 928 * 929 * Unless required by applicable law or agreed to in writing, software 930 * distributed under the License is distributed on an "AS IS" BASIS, 931 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 932 * See the License for the specific language governing permissions and 933 * limitations under the License. 934 */const G6e=1024,W6e=720*60*60*1e3;class Y6e{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new X6e(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const a=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=sR();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=>o.date===s)?void 0:(this._heartbeatsCache.heartbeats.push({date:s,agent:a}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{const l=new Date(o.date).valueOf();return Date.now()-l<=W6e}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Ao.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=sR(),{heartbeatsToSend:r,unsentEntries:a}=K6e(this._heartbeatsCache.heartbeats),s=qy(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return Ao.warn(n),""}}}function sR(){return new Date().toISOString().substring(0,10)}function K6e(e,t=G6e){const n=[];let r=e.slice();for(const a of e){const s=n.find(o=>o.agent===a.agent);if(s){if(s.dates.push(a.date),oR(n)>t){s.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),oR(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class X6e{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Rke()?Ike().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await V6e(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return aR(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return aR(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:[...a.heartbeats,...t.heartbeats]})}else return}}function oR(e){return qy(JSON.stringify({version:2,heartbeats:e})).length}/** 935 * @license 936 * Copyright 2019 Google LLC 937 * 938 * Licensed under the Apache License, Version 2.0 (the "License");
939 * you may not use this file except in compliance with the License. 940 * You may obtain a copy of the License at 941 * 942 * http://www.apache.org/licenses/LICENSE-2.0 943 * 944 * Unless required by applicable law or agreed to in writing, software 945 * distributed under the License is distributed on an "AS IS" BASIS, 946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 947 * See the License for the specific language governing permissions and 948 * limitations under the License. 949 */function Z6e(e){zy(new ym("platform-logger",t=>new o6e(t),"PRIVATE")),zy(new ym("heartbeat",t=>new Y6e(t),"PRIVATE")),Kd(Jk,rR,e),Kd(Jk,rR,"esm2017"),Kd("fire-js","")}Z6e("");/** 950 * @license 951 * Copyright 2017 Google LLC 952 * 953 * Licensed under the Apache License, Version 2.0 (the "License"); 954 * you may not use this file except in compliance with the License. 955 * You may obtain a copy of the License at 956 * 957 * http://www.apache.org/licenses/LICENSE-2.0 958 * 959 * Unless required by applicable law or agreed to in writing, software 960 * distributed under the License is distributed on an "AS IS" BASIS, 961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 962 * See the License for the specific language governing permissions and 963 * limitations under the License. 964 */const PG="firebasestorage.googleapis.com",RG="storageBucket",Q6e=120*1e3,J6e=600*1e3;/** 965 * @license 966 * Copyright 2017 Google LLC 967 * 968 * Licensed under the Apache License, Version 2.0 (the "License"); 969 * you may not use this file except in compliance with the License. 970 * You may obtain a copy of the License at 971 * 972 * http://www.apache.org/licenses/LICENSE-2.0 973 * 974 * Unless required by applicable law or agreed to in writing, software 975 * distributed under the License is distributed on an "AS IS" BASIS, 976 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 977 * See the License for the specific language governing permissions and 978 * limitations under the License. 979 */class An extends Of{constructor(t,n,r=0){super(I3(t),`Firebase Storage: ${n} (${I3(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,An.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return I3(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} 980${this.customData.serverResponse}`:this.message=this._baseMessage}}var kn;(function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(kn||(kn={}));function I3(e){return"storage/"+e}function zN(){const e="An unknown error occurred, please check the error payload for server response.";return new An(kn.UNKNOWN,e)}function e5e(e){return new An(kn.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function t5e(e){return new An(kn.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function n5e(){const e="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new An(kn.UNAUTHENTICATED,e)}function r5e(){return new An(kn.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function i5e(e){return new An(kn.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function a5e(){return new An(kn.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function s5e(){return new An(kn.CANCELED,"User canceled the upload/download.")}function o5e(e){return new An(kn.INVALID_URL,"Invalid URL '"+e+"'.")}function l5e(e){return new An(kn.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function c5e(){return new An(kn.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+RG+"' property when initializing the app?")}function u5e(){return new An(kn.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function d5e(){return new An(kn.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function f5e(e){return new An(kn.UNSUPPORTED_ENVIRONMENT,`${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function n6(e){return new An(kn.INVALID_ARGUMENT,e)}function IG(){return new An(kn.APP_DELETED,"The Firebase app was deleted.")}function h5e(e){return new An(kn.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function Vp(e,t){return new An(kn.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function mp(e){throw new An(kn.INTERNAL_ERROR,"Internal error: "+e)}/** 981 * @license 982 * Copyright 2017 Google LLC 983 * 984 * Licensed under the Apache License, Version 2.0 (the "License");
985 * you may not use this file except in compliance with the License. 986 * You may obtain a copy of the License at 987 * 988 * http://www.apache.org/licenses/LICENSE-2.0 989 * 990 * Unless required by applicable law or agreed to in writing, software 991 * distributed under the License is distributed on an "AS IS" BASIS, 992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 993 * See the License for the specific language governing permissions and 994 * limitations under the License. 995 */class Gi{constructor(t,n){this.bucket=t,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,n){let r;try{r=Gi.makeFromUrl(t,n)}catch{return new Gi(t,"")}if(r.path==="")return r;throw l5e(t)}static makeFromUrl(t,n){let r=null;const a="([A-Za-z0-9.\\-_]+)";function s(_){_.path.charAt(_.path.length-1)==="/"&&(_.path_=_.path_.slice(0,-1))}const o="(/(.*))?$",l=new RegExp("^gs://"+a+o,"i"),d={bucket:1,path:3};function u(_){_.path_=decodeURIComponent(_.path)}const h="v[A-Za-z0-9_]+",p=n.replace(/[.]/g,"\\."),g="(/([^?#]*).*)?$",y=new RegExp(`^https?://${p}/${h}/b/${a}/o${g}`,"i"),b={bucket:1,path:3},w=n===PG?"(?:storage.googleapis.com|storage.cloud.google.com)":n,j="([^?#]*)",S=new RegExp(`^https?://${w}/${a}/${j}`,"i"),N=[{regex:l,indices:d,postModify:s},{regex:y,indices:b,postModify:u},{regex:S,indices:{bucket:1,path:2},postModify:u}];for(let _=0;_<N.length;_++){const L=N[_],E=L.regex.exec(t);if(E){const T=E[L.indices.bucket];let P=E[L.indices.path];P||(P=""),r=new Gi(T,P),L.postModify(r);break}}if(r==null)throw o5e(t);return r}}class p5e{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}}/** 996 * @license 997 * Copyright 2017 Google LLC 998 * 999 * Licensed under the Apache License, Version 2.0 (the "License"); 1000 * you may not use this file except in compliance with the License. 1001 * You may obtain a copy of the License at 1002 * 1003 * http://www.apache.org/licenses/LICENSE-2.0 1004 * 1005 * Unless required by applicable law or agreed to in writing, software 1006 * distributed under the License is distributed on an "AS IS" BASIS, 1007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1008 * See the License for the specific language governing permissions and 1009 * limitations under the License. 1010 */function m5e(e,t,n){let r=1,a=null,s=null,o=!1,l=0;function d(){return l===2}let u=!1;function h(...j){u||(u=!0,t.apply(null,j))}function p(j){a=setTimeout(()=>{a=null,e(y,d())},j)}function g(){s&&clearTimeout(s)}function y(j,...S){if(u){g();return}if(j){g(),h.call(null,j,...S);return}if(d()||o){g(),h.call(null,j,...S);return}r<64&&(r*=2);let N;l===1?(l=2,N=0):N=(r+Math.random())*1e3,p(N)}let b=!1;function w(j){b||(b=!0,g(),!u&&(a!==null?(j||(l=2),clearTimeout(a),p(0)):j||(l=1)))}return p(0),s=setTimeout(()=>{o=!0,w(!0)},n),w}function g5e(e){e(!1)}/** 1011 * @license 1012 * Copyright 2017 Google LLC 1013 * 1014 * Licensed under the Apache License, Version 2.0 (the "License"); 1015 * you may not use this file except in compliance with the License. 1016 * You may obtain a copy of the License at 1017 * 1018 * http://www.apache.org/licenses/LICENSE-2.0 1019 * 1020 * Unless required by applicable law or agreed to in writing, software 1021 * distributed under the License is distributed on an "AS IS" BASIS, 1022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1023 * See the License for the specific language governing permissions and 1024 * limitations under the License. 1025 */function v5e(e){return e!==void 0}function y5e(e){return typeof e=="object"&&!Array.isArray(e)}function HN(e){return typeof e=="string"||e instanceof String}function lR(e){return UN()&&e instanceof Blob}function UN(){return typeof Blob<"u"}function cR(e,t,n,r){if(r<t)throw n6(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw n6(`Invalid value for '${e}'. Expected ${n} or less.`)}/** 1026 * @license 1027 * Copyright 2017 Google LLC 1028 * 1029 * Licensed under the Apache License, Version 2.0 (the "License");
1030 * you may not use this file except in compliance with the License. 1031 * You may obtain a copy of the License at 1032 * 1033 * http://www.apache.org/licenses/LICENSE-2.0 1034 * 1035 * Unless required by applicable law or agreed to in writing, software 1036 * distributed under the License is distributed on an "AS IS" BASIS, 1037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1038 * See the License for the specific language governing permissions and 1039 * limitations under the License. 1040 */function VN(e,t,n){let r=t;return n==null&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function $G(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){const a=t(r)+"="+t(e[r]);n=n+a+"&"}return n=n.slice(0,-1),n}var Xc;(function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"})(Xc||(Xc={}));/** 1041 * @license 1042 * Copyright 2022 Google LLC 1043 * 1044 * Licensed under the Apache License, Version 2.0 (the "License"); 1045 * you may not use this file except in compliance with the License. 1046 * You may obtain a copy of the License at 1047 * 1048 * http://www.apache.org/licenses/LICENSE-2.0 1049 * 1050 * Unless required by applicable law or agreed to in writing, software 1051 * distributed under the License is distributed on an "AS IS" BASIS, 1052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1053 * See the License for the specific language governing permissions and 1054 * limitations under the License. 1055 */function x5e(e,t){const n=e>=500&&e<600,a=[408,429].indexOf(e)!==-1,s=t.indexOf(e)!==-1;return n||a||s}/** 1056 * @license 1057 * Copyright 2017 Google LLC 1058 * 1059 * Licensed under the Apache License, Version 2.0 (the "License"); 1060 * you may not use this file except in compliance with the License. 1061 * You may obtain a copy of the License at 1062 * 1063 * http://www.apache.org/licenses/LICENSE-2.0 1064 * 1065 * Unless required by applicable law or agreed to in writing, software 1066 * distributed under the License is distributed on an "AS IS" BASIS, 1067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1068 * See the License for the specific language governing permissions and 1069 * limitations under the License. 1070 */class b5e{constructor(t,n,r,a,s,o,l,d,u,h,p,g=!0){this.url_=t,this.method_=n,this.headers_=r,this.body_=a,this.successCodes_=s,this.additionalRetryCodes_=o,this.callback_=l,this.errorCallback_=d,this.timeout_=u,this.progressCallback_=h,this.connectionFactory_=p,this.retry=g,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((y,b)=>{this.resolve_=y,this.reject_=b,this.start_()})}start_(){const t=(r,a)=>{if(a){r(!1,new d0(!1,null,!0));return}const s=this.connectionFactory_();this.pendingConnection_=s;const o=l=>{const d=l.loaded,u=l.lengthComputable?l.total:-1;this.progressCallback_!==null&&this.progressCallback_(d,u)};this.progressCallback_!==null&&s.addUploadProgressListener(o),s.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&s.removeUploadProgressListener(o),this.pendingConnection_=null;const l=s.getErrorCode()===Xc.NO_ERROR,d=s.getStatus();if(!l||x5e(d,this.additionalRetryCodes_)&&this.retry){const h=s.getErrorCode()===Xc.ABORT;r(!1,new d0(!1,null,h));return}const u=this.successCodes_.indexOf(d)!==-1;r(!0,new d0(u,s))})},n=(r,a)=>{const s=this.resolve_,o=this.reject_,l=a.connection;if(a.wasSuccessCode)try{const d=this.callback_(l,l.getResponse());v5e(d)?s(d):s()}catch(d){o(d)}else if(l!==null){const d=zN();d.serverResponse=l.getErrorText(),this.errorCallback_?o(this.errorCallback_(l,d)):o(d)}else if(a.canceled){const d=this.appDelete_?IG():s5e();o(d)}else{const d=a5e();o(d)}};this.canceled_?n(!1,new d0(!1,null,!0)):this.backoffId_=m5e(t,n,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&g5e(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class d0{constructor(t,n,r){this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}}function w5e(e,t){t!==null&&t.length>0&&(e.Authorization="Firebase "+t)}function j5e(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function S5e(e,t){t&&(e["X-Firebase-GMPID"]=t)}function C5e(e,t){t!==null&&(e["X-Firebase-AppCheck"]=t)}
1070function k5e(e,t,n,r,a,s,o=!0){const l=$G(e.urlParams),d=e.url+l,u=Object.assign({},e.headers);return S5e(u,t),w5e(u,n),j5e(u,s),C5e(u,r),new b5e(d,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,a,o)}/** 1071 * @license 1072 * Copyright 2017 Google LLC 1073 * 1074 * Licensed under the Apache License, Version 2.0 (the "License"); 1075 * you may not use this file except in compliance with the License. 1076 * You may obtain a copy of the License at 1077 * 1078 * http://www.apache.org/licenses/LICENSE-2.0 1079 * 1080 * Unless required by applicable law or agreed to in writing, software 1081 * distributed under the License is distributed on an "AS IS" BASIS, 1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1083 * See the License for the specific language governing permissions and 1084 * limitations under the License. 1085 */function N5e(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function A5e(...e){const t=N5e();if(t!==void 0){const n=new t;for(let r=0;r<e.length;r++)n.append(e[r]);return n.getBlob()}else{if(UN())return new Blob(e);throw new An(kn.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function E5e(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}/** 1086 * @license 1087 * Copyright 2021 Google LLC 1088 * 1089 * Licensed under the Apache License, Version 2.0 (the "License"); 1090 * you may not use this file except in compliance with the License. 1091 * You may obtain a copy of the License at 1092 * 1093 * http://www.apache.org/licenses/LICENSE-2.0 1094 * 1095 * Unless required by applicable law or agreed to in writing, software 1096 * distributed under the License is distributed on an "AS IS" BASIS, 1097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1098 * See the License for the specific language governing permissions and 1099 * limitations under the License. 1100 */function _5e(e){if(typeof atob>"u")throw f5e("base-64");return atob(e)}/** 1101 * @license 1102 * Copyright 2017 Google LLC 1103 * 1104 * Licensed under the Apache License, Version 2.0 (the "License"); 1105 * you may not use this file except in compliance with the License. 1106 * You may obtain a copy of the License at 1107 * 1108 * http://www.apache.org/licenses/LICENSE-2.0 1109 * 1110 * Unless required by applicable law or agreed to in writing, software 1111 * distributed under the License is distributed on an "AS IS" BASIS, 1112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1113 * See the License for the specific language governing permissions and 1114 * limitations under the License. 1115 */const xs={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class $3{constructor(t,n){this.data=t,this.contentType=n||null}}function T5e(e,t){switch(e){case xs.RAW:return new $3(BG(t));case xs.BASE64:case xs.BASE64URL:return new $3(qG(e,t));case xs.DATA_URL:return new $3(O5e(t),M5e(t))}throw zN()}function BG(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(n<e.length-1&&(e.charCodeAt(n+1)&64512)===56320))t.push(239,191,189);else{const s=r,o=e.charCodeAt(++n);r=65536|(s&1023)<<10|o&1023,t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function L5e(e){let t;try{t=decodeURIComponent(e)}catch{throw Vp(xs.DATA_URL,"Malformed data URL.")}return BG(t)}function qG(e,t){switch(e){case xs.BASE64:{const a=t.indexOf("-")!==-1,s=t.indexOf("_")!==-1;if(a||s)throw Vp(e,"Invalid character '"+(a?"-":"_")+"' found: is it base64url encoded?");break}case xs.BASE64URL:{const a=t.indexOf("+")!==-1,s=t.indexOf("/")!==-1;if(a||s)throw Vp(e,"Invalid character '"+(a?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=_5e(t)}catch(a){throw a.message.includes("polyfill")?a:Vp(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let a=0;a<n.length;a++)r[a]=n.charCodeAt(a);return r}class FG{constructor(t){this.base64=!1,this.contentType=null;const n=t.match(/^data:([^,]+)?,/);if(n===null)throw Vp(xs.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=n[1]||null;r!=null&&(this.base64=D5e(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}}function O5e(e){const t=new FG(e);return t.base64?qG(xs.BASE64,t.rest):L5e(t.rest)}function M5e(e){return new FG(e).contentType}function D5e(e,t){return e.length>=t.length?e.substring(e.length-t.length)===t:!1}/** 1116 * @license 1117 * Copyright 2017 Google LLC 1118 * 1119 * Licensed under the Apache License, Version 2.0 (the "License");
1120 * you may not use this file except in compliance with the License. 1121 * You may obtain a copy of the License at 1122 * 1123 * http://www.apache.org/licenses/LICENSE-2.0 1124 * 1125 * Unless required by applicable law or agreed to in writing, software 1126 * distributed under the License is distributed on an "AS IS" BASIS, 1127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1128 * See the License for the specific language governing permissions and 1129 * limitations under the License. 1130 */class Sl{constructor(t,n){let r=0,a="";lR(t)?(this.data_=t,r=t.size,a=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=a}size(){return this.size_}type(){return this.type_}slice(t,n){if(lR(this.data_)){const r=this.data_,a=E5e(r,t,n);return a===null?null:new Sl(a)}else{const r=new Uint8Array(this.data_.buffer,t,n-t);return new Sl(r,!0)}}static getBlob(...t){if(UN()){const n=t.map(r=>r instanceof Sl?r.data_:r);return new Sl(A5e.apply(null,n))}else{const n=t.map(o=>HN(o)?T5e(xs.RAW,o).data:o.data_);let r=0;n.forEach(o=>{r+=o.byteLength});const a=new Uint8Array(r);let s=0;return n.forEach(o=>{for(let l=0;l<o.length;l++)a[s++]=o[l]}),new Sl(a,!0)}}uploadData(){return this.data_}}/** 1131 * @license 1132 * Copyright 2017 Google LLC 1133 * 1134 * Licensed under the Apache License, Version 2.0 (the "License"); 1135 * you may not use this file except in compliance with the License. 1136 * You may obtain a copy of the License at 1137 * 1138 * http://www.apache.org/licenses/LICENSE-2.0 1139 * 1140 * Unless required by applicable law or agreed to in writing, software 1141 * distributed under the License is distributed on an "AS IS" BASIS, 1142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1143 * See the License for the specific language governing permissions and 1144 * limitations under the License. 1145 */function zG(e){let t;try{t=JSON.parse(e)}catch{return null}return y5e(t)?t:null}/** 1146 * @license 1147 * Copyright 2017 Google LLC 1148 * 1149 * Licensed under the Apache License, Version 2.0 (the "License"); 1150 * you may not use this file except in compliance with the License. 1151 * You may obtain a copy of the License at 1152 * 1153 * http://www.apache.org/licenses/LICENSE-2.0 1154 * 1155 * Unless required by applicable law or agreed to in writing, software 1156 * distributed under the License is distributed on an "AS IS" BASIS, 1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1158 * See the License for the specific language governing permissions and 1159 * limitations under the License. 1160 */function P5e(e){if(e.length===0)return null;const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function R5e(e,t){const n=t.split("/").filter(r=>r.length>0).join("/");return e.length===0?n:e+"/"+n}function HG(e){const t=e.lastIndexOf("/",e.length-2);return t===-1?e:e.slice(t+1)}/** 1161 * @license 1162 * Copyright 2017 Google LLC 1163 * 1164 * Licensed under the Apache License, Version 2.0 (the "License"); 1165 * you may not use this file except in compliance with the License. 1166 * You may obtain a copy of the License at 1167 * 1168 * http://www.apache.org/licenses/LICENSE-2.0 1169 * 1170 * Unless required by applicable law or agreed to in writing, software 1171 * distributed under the License is distributed on an "AS IS" BASIS, 1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1173 * See the License for the specific language governing permissions and 1174 * limitations under the License. 1175 */function I5e(e,t){return t}class Jr{constructor(t,n,r,a){this.server=t,this.local=n||t,this.writable=!!r,this.xform=a||I5e}}let f0=null;function $5e(e){return!HN(e)||e.length<2?e:HG(e)}function UG(){if(f0)return f0;const e=[];e.push(new Jr("bucket")),e.push(new Jr("generation")),e.push(new Jr("metageneration")),e.push(new Jr("name","fullPath",!0));function t(s,o){return $5e(o)}const n=new Jr("name");n.xform=t,e.push(n);function r(s,o){return o!==void 0?Number(o):o}const a=new Jr("size");return a.xform=r,e.push(a),e.push(new Jr("timeCreated")),e.push(new Jr("updated")),e.push(new Jr("md5Hash",null,!0)),e.push(new Jr("cacheControl",null,!0)),e.push(new Jr("contentDisposition",null,!0)),e.push(new Jr("contentEncoding",null,!0)),e.push(new Jr("contentLanguage",null,!0)),e.push(new Jr("contentType",null,!0)),e.push(new Jr("metadata","customMetadata",!0)),f0=e,f0}function B5e(e,t){function n(){const r=e.bucket,a=e.fullPath,s=new Gi(r,a);return t._makeStorageReference(s)}Object.defineProperty(e,"ref",{get:n})}function q5e(e,t,n){const r={};r.type="file";const a=n.length;for(let s=0;s<a;s++){const o=n[s];r[o.local]=o.xform(r,t[o.server])}return B5e(r,e),r}function VG(e,t,n){const r=zG(t);return r===null?null:q5e(e,r,n)}function F5e(e,t,n,r){const a=zG(t);if(a===null||!HN(a.downloadTokens))return null;const s=a.downloadTokens;if(s.length===0)return null;const o=encodeURIComponent;return s.split(",").map(u=>
vendor: 1,859 bytes, lines 1175-1190
1175{const h=e.bucket,p=e.fullPath,g="/b/"+o(h)+"/o/"+o(p),y=VN(g,n,r),b=$G({alt:"media",token:u});return y+b})[0]}function z5e(e,t){const n={},r=t.length;for(let a=0;a<r;a++){const s=t[a];s.writable&&(n[s.server]=e[s.local])}return JSON.stringify(n)}class GG{constructor(t,n,r,a){this.url=t,this.method=n,this.handler=r,this.timeout=a,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}/** 1176 * @license 1177 * Copyright 2017 Google LLC 1178 * 1179 * Licensed under the Apache License, Version 2.0 (the "License"); 1180 * you may not use this file except in compliance with the License. 1181 * You may obtain a copy of the License at 1182 * 1183 * http://www.apache.org/licenses/LICENSE-2.0 1184 * 1185 * Unless required by applicable law or agreed to in writing, software 1186 * distributed under the License is distributed on an "AS IS" BASIS, 1187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1188 * See the License for the specific language governing permissions and 1189 * limitations under the License. 1190 */function WG(e){if(!e)throw zN()}function H5e(e,t){function n(r,a){const s=VG(e,a,t);return WG(s!==null),s}return n}function U5e(e,t){function n(r,a){const s=VG(e,a,t);return WG(s!==null),F5e(s,a,e.host,e._protocol)}return n}function YG(e){function t(n,r){let a;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invalid")?a=r5e():a=n5e():n.getStatus()===402?a=t5e(e.bucket):n.getStatus()===403?a=i5e(e.path):a=r,a.status=n.getStatus(),a.serverResponse=r.serverResponse,a}return t}function V5e(e){const t=YG(e);function n(r,a){let s=t(r,a);return r.getStatus()===404&&(s=e5e(e.path)),s.serverResponse=a.serverResponse,s}return n}function G5e(e,t,n){const r=t.fullServerUrl(),a=VN(r,e.host,e._protocol),s="GET",o=e.maxOperationRetryTime,l=ne
1190w GG(a,s,U5e(e,n),o);return l.errorHandler=V5e(t),l}function W5e(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}function Y5e(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=W5e(null,t)),r}function K5e(e,t,n,r,a){const s=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};function l(){let N="";for(let _=0;_<2;_++)N=N+Math.random().toString().slice(2);return N}const d=l();o["Content-Type"]="multipart/related; boundary="+d;const u=Y5e(t,r,a),h=z5e(u,n),p="--"+d+`\r 1191Content-Type: application/json; charset=utf-8\r 1192\r 1193`+h+`\r 1194--`+d+`\r 1195Content-Type: `+u.contentType+`\r 1196\r 1197`,g=`\r 1198--`+d+"--",y=Sl.getBlob(p,r,g);if(y===null)throw u5e();const b={name:u.fullPath},w=VN(s,e.host,e._protocol),j="POST",S=e.maxUploadRetryTime,k=new GG(w,j,H5e(e,n),S);return k.urlParams=b,k.headers=o,k.body=y.uploadData(),k.errorHandler=YG(t),k}class X5e{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Xc.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=Xc.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=Xc.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,n,r,a){if(this.sent_)throw mp("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(n,t,!0),a!==void 0)for(const s in a)a.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,a[s].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw mp("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw mp("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw mp("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw mp("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",t)}}class Z5e extends X5e{initXhr(){this.xhr_.responseType="text"}}function KG(){return new Z5e}/** 1199 * @license 1200 * Copyright 2019 Google LLC 1201 * 1202 * Licensed under the Apache License, Version 2.0 (the "License"); 1203 * you may not use this file except in compliance with the License. 1204 * You may obtain a copy of the License at 1205 * 1206 * http://www.apache.org/licenses/LICENSE-2.0 1207 * 1208 * Unless required by applicable law or agreed to in writing, software 1209 * distributed under the License is distributed on an "AS IS" BASIS, 1210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1211 * See the License for the specific language governing permissions and 1212 * limitations under the License. 1213 */class uu{constructor(t,n){this._service=t,n instanceof Gi?this._location=n:this._location=Gi.makeFromUrl(n,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,n){return new uu(t,n)}get root(){const t=new Gi(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return HG(this._location.path)}get storage(){return this._service}get parent(){const t=P5e(this._location.path);if(t===null)return null;const n=new Gi(this._location.bucket,t);return new uu(this._service,n)}_throwIfRoot(t){if(this._location.path==="")throw h5e(t)}}function Q5e(e,t,n){e._throwIfRoot("uploadBytes");const r=K5e(e.storage,e._location,UG(),new Sl(t,!0),n);return e.storage.makeRequestWithTokens(r,KG).then(a=>({metadata:a,ref:e}))}function J5e(e){e._throwIfRoot("getDownloadURL");const t=G5e(e.storage,e._location,UG());return e.storage.makeRequestWithTokens(t,KG).then(n=>{if(n===null)throw d5e();return n})}function eNe(e,t){const n=R5e(e._location.path,t),r=new Gi(e._location.bucket,n);return new uu(e.storage,r)}/** 1214 * @license 1215 * Copyright 2017 Google LLC 1216 * 1217 * Licensed under the Apache License, Version 2.0 (the "License");
1218 * you may not use this file except in compliance with the License. 1219 * You may obtain a copy of the License at 1220 * 1221 * http://www.apache.org/licenses/LICENSE-2.0 1222 * 1223 * Unless required by applicable law or agreed to in writing, software 1224 * distributed under the License is distributed on an "AS IS" BASIS, 1225 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1226 * See the License for the specific language governing permissions and 1227 * limitations under the License. 1228 */function tNe(e){return/^[A-Za-z]+:\/\//.test(e)}function nNe(e,t){return new uu(e,t)}function XG(e,t){if(e instanceof GN){const n=e;if(n._bucket==null)throw c5e();const r=new uu(n,n._bucket);return t!=null?XG(r,t):r}else return t!==void 0?eNe(e,t):e}function rNe(e,t){if(t&&tNe(t)){if(e instanceof GN)return nNe(e,t);throw n6("To use ref(service, url), the first argument must be a Storage instance.")}else return XG(e,t)}function uR(e,t){const n=t?.[RG];return n==null?null:Gi.makeFromBucketSpec(n,e)}function iNe(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:a}=r;a&&(e._overrideAuthToken=typeof a=="string"?a:Pke(a,e.app.options.projectId))}class GN{constructor(t,n,r,a,s){this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=a,this._firebaseVersion=s,this._bucket=null,this._host=PG,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Q6e,this._maxUploadRetryTime=J6e,this._requests=new Set,a!=null?this._bucket=Gi.makeFromBucketSpec(a,this._host):this._bucket=uR(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=Gi.makeFromBucketSpec(this._url,t):this._bucket=uR(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){cR("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){cR("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const t=this._authProvider.getImmediate({optional:!0});if(t){const n=await t.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const t=this._appCheckProvider.getImmediate({optional:!0});return t?(await t.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new uu(this,t)}_makeRequest(t,n,r,a,s=!0){if(this._deleted)return new p5e(IG());{const o=k5e(t,this._appId,r,a,n,this._firebaseVersion,s);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(t,n){const[r,a]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,n,r,a).getPromise()}}const dR="@firebase/storage",fR="0.13.2";/** 1229 * @license 1230 * Copyright 2020 Google LLC 1231 * 1232 * Licensed under the Apache License, Version 2.0 (the "License"); 1233 * you may not use this file except in compliance with the License. 1234 * You may obtain a copy of the License at 1235 * 1236 * http://www.apache.org/licenses/LICENSE-2.0 1237 * 1238 * Unless required by applicable law or agreed to in writing, software 1239 * distributed under the License is distributed on an "AS IS" BASIS, 1240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1241 * See the License for the specific language governing permissions and 1242 * limitations under the License. 1243 */const ZG="storage";function aNe(e,t,n){return e=Eb(e),Q5e(e,t,n)}function sNe(e){return e=Eb(e),J5e(e)}function oNe(e,t){return e=Eb(e),rNe(e,t)}function lNe(e=z6e(),t){e=Eb(e);const r=$6e(e,ZG).getImmediate({identifier:t}),a=Mke("storage");return a&&cNe(r,...a),r}function cNe(e,t,n,r={}){iNe(e,t,n,r)}function uNe(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new GN(n,r,a,t,F6e)}function dNe(){zy(new ym(ZG,uNe,"PUBLIC").setMultipleInstances(!0)),Kd(dR,fR,""),Kd(dR,fR,"esm2017")}dNe();var fNe="firebase",hNe="10.14.1";/** 1244 * @license 1245 * Copyright 2020 Google LLC 1246 * 1247 * Licensed under the Apache License, Version 2.0 (the "License");
1248 * you may not use this file except in compliance with the License. 1249 * You may obtain a copy of the License at 1250 * 1251 * http://www.apache.org/licenses/LICENSE-2.0 1252 * 1253 * Unless required by applicable law or agreed to in writing, software 1254 * distributed under the License is distributed on an "AS IS" BASIS, 1255 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1256 * See the License for the specific language governing permissions and 1257 * limitations under the License. 1258 */Kd(fNe,hNe,"app");const pNe={apiKey:"AIzaSyCEe9GOR7rfDBxW1VM7GSk8ccjJ3V-trZM",authDomain:"lasg-a9f5c.firebaseapp.com",projectId:"lasg-a9f5c",storageBucket:"lasg-a9f5c.appspot.com",messagingSenderId:"989404118375",appId:"1:989404118375:web:8329fdab770c13fa6583c2"},mNe=OG(pNe),gNe=lNe(mNe),WN=`${Nn}/directory`,vt=JSON.parse(window.localStorage.getItem("MDA__TOKEN")),$l=window.location.pathname.split("/")[3],_b=window.location.pathname.split("/")[1],ki=async(e,t,n)=>{if(!vt||!vt.token){ie.error("You are not authorized to access this page"),window.location.href=`/${_b}/admin/${$l}`;return}const r=await es(vt.token,t.name);if(r.status==="bad")return ie.error(r.message),window.location.href=`/${vt?.mda}/admin/${$l}`,r;const a=await De.put(`${WN}/update/${e}`,t);return a.status===200?(ie.success(a.data.message),Ja({initiator:vt?.firstname+" "+vt?.lastname,mda:t.name||vt?.mda,activity:`${vt?.firstname+" "+vt?.lastname} ${n||"made some changes"}`}),a.data):(ie.error(a.data.message),[])},vNe=async e=>{if(!vt||!vt.token){ie.error("You are not authorized to access this page"),window.location.href=`/${_b}/admin/${$l}`;return}const t=await es(vt.token,e.name);if(t.status==="bad")return ie.error(t.message),window.location.href=`/${vt?.mda}/admin/${$l}`,t;const n=await De.post(`${WN}/upload`,e);return n.status===200?(Ja({initiator:vt?.firstname+" "+vt?.lastname,mda:vt?.mda,activity:`${vt?.firstname+" "+vt?.lastname} uploaded a file`}),n.data):(ie.error(n.data.message),[])},yNe=async e=>{if(!vt||!vt.token){ie.error("You are not authorized to access this page"),window.location.href=`/${_b}/admin/${$l}`;return}const t=await es(vt.token);return t.status==="bad"?(ie.error(t.message),window.location.href=`/${vt?.mda}/admin/${$l}`,t):(await De.post(`${WN}/upload-signature`,{public_id:e})).data},wa=async(e,t)=>{const n=await yNe(t);if(!n||n.status!=="ok")return{status:"bad",message:n?.message||"Could not authorize upload"};const r=new FormData;r.append("file",e),r.append("api_key",n.api_key),r.append("timestamp",n.timestamp),r.append("signature",n.signature),r.append("public_id",n.public_id),r.append("overwrite","true");try{const a=await De.post(`https://api.cloudinary.com/v1_1/${n.cloud_name}/image/upload`,r);return Ja({initiator:vt?.firstname+" "+vt?.lastname,mda:vt?.mda,activity:`${vt?.firstname+" "+vt?.lastname} uploaded a file`}),{status:"ok",url:a.data.secure_url}}catch(a){return{status:"bad",message:a?.response?.data?.error?.message||a.message}}},QG=async(e,t)=>{if(!vt||!vt.token){ie.error("You are not authorized to access this page"),window.location.href=`/${_b}/admin/${$l}`;return}const n=await es(vt.token);if(n.status==="bad")return ie.error("Oops! Something went wrong, File couldn't be uploaded"),window.location.href=`/${vt?.mda}/admin/${$l}`,n;const r=oNe(gNe,`uploads/moh/${t}`),a=await aNe(r,e).then(s=>sNe(r).then(l=>l));return ie.success("File uploaded successfully"),Ja({initiator:vt?.firstname+" "+vt?.lastname,mda:vt?.mda,activity:`${vt?.firstname+" "+vt?.lastname} uploaded a document - ${t}`}),a};function Rn({bg:e,customClass:t}){return i.jsx("div",{className:`flex items-center justify-center bg-white h-[100vh] w-[100vw] fixed top-0 left-0 z-[999999] ${t}`,style:{backgroundColor:e},children:i.jsx("span",{className:"loader"})})}const Eo=({placeholder:e="Search...",value:t,onChange:n,className:r="",inputClassName:a="",showClear:s=!0})=>{const[o,l]=v.useState(!1);return i.jsxs("div",{className:`relative h-full ${r}`,children:[i.jsx("input",{type:"text",placeholder:e,className:`py-[15px] pl-[45px] pr-[40px] rounded-[8px] w-full bg-[#f5f5f5] text-[14px] h-full focus:outline-none focus:ring-1 focus:ring-[#27ae60
1258] focus:border-transparent transition-all duration-200 ${a}`,value:t,onChange:d=>n(d.target.value),onFocus:()=>l(!0),onBlur:()=>l(!1)}),i.jsxs("svg",{className:`absolute left-3 top-1/2 transform -translate-y-1/2 ${o?"text-[#27ae60]":"text-gray-400"}`,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),s&&t&&i.jsx("button",{onClick:()=>n(""),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none","aria-label":"Clear search",type:"button",children:i.jsx(et,{width:16,height:16})})]})},hR={agency:"bg-green-200/30 text-green-700",department:"bg-purple-200/30 text-purple-700",unit:"bg-blue-200/30 text-blue-700"},xNe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState(""),[l,d]=v.useState(!1),[u,h]=v.useState(!1),[p,g]=v.useState({}),[y,b]=v.useState(0),[w,j]=v.useState(""),[S,k]=v.useState(""),N=z=>{b(z),g(t.agencies[z]),h(!0)},_=()=>{g({}),h(!1)},L=()=>{d(!0)},E=()=>{g({}),d(!1)},T=z=>{g(V=>({...p,[z.target.name]:z.target.value}))};v.useEffect(()=>{S!==""&&D()},[S]);const P=z=>{const V=confirm(`Do you want to delete ${t.agencies[z].name}`),W=t.agencies[z];if(V){const B=t.agencies.filter((H,G)=>z!==G);t.agencies=B,k(`deleted ${W.category} - ${W.name}`)}};v.useEffect(()=>{n(e)},[e]);const $=()=>{t.agencies.filter(V=>V.name===p.name).length?ie.error(`${p.name} already exists, try another!`):(t.agencies.push({...p,updatedAt:new Date().toISOString()}),k(`added a new ${p.category} - ${p.name}`))},O=()=>{t.agencies[y]={...p,updatedAt:new Date().toISOString()},k(`updated ${p.category} - ${p.name}`)},q=t?.agencies?.filter(z=>{if(!w)return!0;const V=w.toLowerCase();return z.name.toLowerCase().includes(V)||z.category.toLowerCase().includes(V)})||[],D=()=>{a(!0),ki(t._id,t,S).then(z=>{setTimeout(()=>{a(!1),E(),_(),o(z.message),setTimeout(()=>{o(""),k("")},3e3)},1e3)}).catch(z=>z)};return i.jsxs("div",{children:[i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-99",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Manage Agencies / Departments / Units -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Click on an item to load it"})]}),i.jsx("div",{className:" h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search items...",value:w,onChange:j})}),i.jsxs("button",{onClick:()=>d(!0),className:"bg-green-800 text-[13px] cursor-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Agency / Department / Unit"]})]}),i.jsxs("div",{className:"table__main__body mt-18!",children:[l?i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:" Add Agency / Department / Unit "}),i.jsxs("div",{className:"closeModal",onClick:()=>E(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("form",{children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Name "}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Name",value:p.name,onChange:z=>T(z)})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Category "}),i.jsxs("select",{name:"category",onChange:z=>T(z),value:p.category,children:[i.jsx("option",{value:"",children:" ----- Select Category ----- "}),i.jsx("option",{value:"agency",children:" Agency "}),i.jsx("option",{value:"department",children:" Department "}),i.jsx("option",{value:"unit",children:" Unit "})]})]}),i.jsxs("div",{className:"form__child submitAction",onClick:$,children:[" ","Submit Agency"," "]})]})]})}):null,u?i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:" Edit Agency / Department / Unit "}),i.jsxs("div",{className:"closeModal",onClick:()=>_(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("form",{children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Name "}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Name",value:p.name,onChange:z=>T(z)})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Category "}),i.jsxs("select",{name:"category",onChange:z=>T(z),value:p.category,children:[i.jsx("option",{value:"",children:" ----- Select Category ----- "}),i.jsx("option",{value:"agency",children:" Agency "}),i.jsx("option",{value:"department",children:" Department "}),i.jsx("option",{value:"unit",children:" Unit "})]})]}),i.jsxs("div",{className:"form__child submitAction",onClick:O,children:[" ","Submit Agency"," "]})]})]})}):null,r?i.jsx(Rn,{customClass:""}):null,i.jsx("div",{className:"titleAdmin flex",children:i.jsxs("div",{className:"flex gap-[10px]",children:[i.jsx("div",{className:"searchField h-[100%] w-[450px]",children:i.jsx(Eo,{placeholder:"Search agencies, departments and units...",value:w,onChange:j})}),i.jsxs("div",{className:"actionBtn button__primary2 flex gap-1",onClick:()=>L(),children:[" ",i.jsx(vr,{})," Add Agency"," "]})]})}),i.jsx("div",{className:"rounded-[12px] bg-white overflow-x-auto drop-shadow-2xl drop-shadow-gray-300/10 pb-4",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-100 text-[10px] uppercase tracking-[1.5px] text-gray-500",children:[i.jsx("th",{className:"px-6 py-5 font-semibold w-[60px]",children:"S/N"}),i.jsx("th",{className:"px-6 py-5 font-semibold",children:"Name"}),i.jsx("th",{className:"px-6 py-5 font-semibold",children:"Agency Type"}),i.jsx("th",{className:"px-6 py-5 font-semibold",children:"Last Updated"}),i.jsx("th",{className:"px-6 py-5 font-semibold text-right",children:"Actions"})]})}),i.jsx("tbody",{children:q.length>0?q.map((z,V)=>i.jsxs("tr",{className:"border-b border-gray-100 last:border-0 hover:bg-gray-50/60",children:[i.jsxs("td",{className:"px-6 py-4.5 text-[13px] font-medium text-gray-500",children:[V+1,"."]}),i.jsx("td",{className:"px-6 py-4.5 text-[13px] font-medium max-w-[320px]",children:i.jsx("span",{className:"line-clamp-2",children:z.name})}),i.jsx("td",{className:"px-6 py-3",children:i.jsx("span",{className:`px-2 py-1 rounded-[5px] uppercase text-[10px] tracking-[2px] font-bold ${hR[z.category]||hR.agency}`,children:z.category})}),i.jsx("td",{className:"px-6 py-3 text-[14px] text-gray-500",children:z.updatedAt?new Date(z.updatedAt).toLocaleDateString():"â"}),i.jsx("td",{className:"px-6 py-3",children:i.jsxs("div",{className:"flex items-center justify-end gap-4",children:[i.jsxs("button",{type:"button",className:"flex items-center gap-1.5 text-[13px] text-gray-800 hover:text-green-700 bg-gray-100/70 px-3 py-1.5 pr-4 rounded-[5px] font-medium",onClick:()=>N(V),children:[i.jsx(Do,{fontSize:9,strokeWidth:1.8})," Edit"]}),i.jsxs("button",{type:"button",className:"flex items-center gap-1.5 text-[13px] text-gray-600 hover:text-red-700 bg-gray-100/70 px-3 py-1.5 pr-4 rounded-[5px] font-medium",onClick:()=>P(V),children:[i.jsx(Um,{fontSize:10,strokeWidth:1.8})," Delete"]})]})})]},V)):i.jsx("tr",{children:i.jsx("td",{colSpan:5,className:"px-6 py-8 text-center text-[14px] text-gray-500",children:w?"No matching agencies found.":"No agencies available."})})})]})})]})]})},ao="text-gray-700 text-[14px]",so="text-gray-400 text-[14px]",ml="flex flex-col gap-3 border-b border-gray-100 pb-6",gl="p-5 w-full text-[15px] leading-[23px] border-none outline-none bg-gray-50 rounded-lg",bNe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState({}),[l,d]=v.useState({}),[u,h]=v.useState(""),[p,g]=v.useState(null),[y,b]=v.useState(!1),w=_=>{o(L=>({...L,[_.target.name]:_.target.value})),d(L=>({...L,[_.target.name]:_.target.value?"updated":"removed"}))},j=_=>{o(L=>({...L,socials:{...L.socials,[_.target.name]:_.target.value}})),d(L=>({...L,[`socials.${_.target.name}`]:_.target.value?"updated":"removed"}))};v.useEffect(()=>{n(e),o(e.contact||{}),h(e.logo||Su)},[e]);const S=()=>{a(!0),t.contact=s,t.logo=u;const _=Object.entries(l).filter(([P,$])=>$==="updated"||$==="removed").map(([P])=>P);if(_.length===0){ie.info("No changes detected, nothing to update"),a(!1);return}let L="";const E={phone:"phone number",email:"email address",address:"office address","socials.x":"
1258X (Twitter) link","socials.facebook":"Facebook link","socials.linkedin":"LinkedIn link","socials.instagram":"Instagram link","socials.youtube":"YouTube link"},T=_.map(P=>E[P]||P);if(T.length===1)L=`updated ${T[0]}`;else{const P=T.slice(0,-1).join(", "),$=T[T.length-1];L=`updated ${P} and ${$}`}ki(t._id,t,L).then(()=>{a(!1),d({})}).catch(P=>{a(!1),ie.error(P.message||"Failed to update contact information")})},k=_=>{const L=_.target.files[0];if(L){g(L);const E=URL.createObjectURL(L);h(E)}},N=async()=>{if(!p){ie.error("Please select a logo file first");return}b(!0);try{const _=await Ab(p,`${t?.fullname||"mdas-logo"}`),L=typeof _=="string"?_:_.data.url;h(L),t.logo=L,u.startsWith("blob:")&&URL.revokeObjectURL(u),await ki(t._id,t,"updated brand logo"),console.log(L)}catch(_){console.error("Logo upload failed:",_),ie.error("Failed to upload logo. Please try again.")}finally{b(!1)}};return i.jsxs("div",{className:"flex flex-col relative mt-[0px] bg-white w-[700px] mx-auto rounded-lg p-8 gap-8",children:[r?i.jsx(Rn,{customClass:""}):null,i.jsx("div",{className:"flex items-center justify-between",children:i.jsx("h2",{className:"text-xl font-semibold text-gray-800 w-[350px] mb-5",children:"Manage your MDAâs contact details and social media links."})}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"MDA Logo"}),i.jsx("span",{className:so,children:"Upload the logo displayed in your siteâs header."})]}),i.jsx("div",{className:"flex gap-2 items-start",children:i.jsx("input",{type:"file",name:"logo",accept:"image/*",onChange:k,disabled:y,className:"flex-1",hidden:!0})}),y&&i.jsx("p",{className:"text-sm text-gray-500",children:"Uploading logo..."}),u&&!y&&i.jsxs("div",{className:"flex items-center gap-3 cursor-pointer",children:[i.jsxs("div",{className:"relative",onClick:()=>document.querySelector('input[name="logo"]').click(),children:[i.jsx("img",{src:u,alt:"MDA Logo Preview",className:"w-24 h-24 object-contain border border-gray-300 rounded p-2 bg-white"}),i.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-7 h-7 bg-white/80 rounded-full flex items-center justify-center",children:i.jsx(rse,{className:"w-4 h-4",strokeWidth:2})})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-700",children:u.startsWith("blob:")?"Logo Preview":"Current Logo"}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:u.startsWith("blob:")?"Click Upload to save this logo":"This logo will be displayed in the header"})]}),p&&i.jsx("button",{type:"button",onClick:N,disabled:y||!p,className:"bg-gray-800 text-white cursor-pointer font-semibold rounded-[5px] px-4 ml-auto py-2 text-sm w-max text-[12px]",children:y?"Uploading...":"Upload"})]})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"Phone Number"}),i.jsx("span",{className:so,children:"The primary phone number the public can use to reach your MDA."})]}),i.jsx("input",{type:"text",name:"phone",placeholder:"Enter phone number",value:s?.phone||"",onChange:_=>w(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"Email Address"}),i.jsx("span",{className:so,children:"The official email address for enquiries and correspondence."})]}),i.jsx("input",{type:"email",name:"email",placeholder:"Enter email address",value:s?.email||"",onChange:_=>w(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"Office Address"}),i.jsx("span",{className:so,children:"The physical office address of your MDA."})]}),i.jsx("input",{type:"text",name:"address",placeholder:"Enter office address",value:s?.address||"",onChange:_=>w(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"X (Formerly Twitter)"}),i.jsx("span",{className:so,children:"Link to your MDAâs official
1258X (Twitter) profile."})]}),i.jsx("input",{type:"text",name:"x",placeholder:"Enter X URL",value:s?.socials?.x||"",onChange:_=>j(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"Facebook"}),i.jsx("span",{className:so,children:"Link to your MDAâs official Facebook page."})]}),i.jsx("input",{type:"text",name:"facebook",placeholder:"Enter Facebook URL",value:s?.socials?.facebook||"",onChange:_=>j(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"LinkedIn"}),i.jsx("span",{className:so,children:"Link to your MDAâs official LinkedIn page."})]}),i.jsx("input",{type:"text",name:"linkedin",placeholder:"Enter LinkedIn URL",value:s?.socials?.linkedin||"",onChange:_=>j(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"Instagram"}),i.jsx("span",{className:so,children:"Link to your MDAâs official Instagram profile."})]}),i.jsx("input",{type:"text",name:"instagram",placeholder:"Enter Instagram URL",value:s?.socials?.instagram||"",onChange:_=>j(_),className:gl})]}),i.jsxs("div",{className:ml,children:[i.jsxs("div",{className:ao,children:[i.jsx("p",{className:"font-bold",children:"YouTube"}),i.jsx("span",{className:so,children:"Link to your MDAâs official YouTube channel."})]}),i.jsx("input",{type:"text",name:"youtube",placeholder:"Enter YouTube URL",value:s?.socials?.youtube||"",onChange:_=>j(_),className:gl})]}),i.jsx("div",{className:"flex text-black",children:i.jsx("div",{className:"flex gap-[10px]",children:i.jsxs("button",{className:"py-[12px] pl-[15px] pr-5 text-white text-[13px] font-bold rounded-[5px] cursor-pointer bg-green-700 ml-auto flex items-center gap-1",onClick:S,children:[i.jsx(kz,{fontSize:12,strokeWidth:2}),r?"Saving...":"Save Changes"]})})})]})},Cu=`${Nn}/events`,wNe=async e=>{const t=await De.post(`${Cu}/add`,e);return t.status===200||t.status===201?t.data:{status:"bad",message:"Something went wrong!"}},JG=async e=>{const t=await De.get(`${Cu}/get/all/${e}`);return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},jNe=async e=>{const t=await De.delete(`${Cu}/delete/${e}`);return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},SNe=async(e,t)=>{let n=Number(t)-1;const r=await De.get(`${Cu}/get/all/${e}/${n<0?0:n}`);return r.status===200?r.data:[]},CNe=async e=>{const t=await De.get(`${Cu}/view/${e}`);return t.status===200?t.data:[]},kNe=async(e,t)=>{const n=await De.put(`${Cu}/update/${e}`,t);return n.status===200?n.data:[]},eW=async(e,t)=>{const n=await De.put(`${Cu}/rsvp/${e}`,t);return n.status===200?n.data:[]},NNe="modulepreload",ANe=function(e){return"/"+e},pR={}
1258,ENe=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let d=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");a=d(n.map(u=>{if(u=ANe(u),u in pR)return;pR[u]=!0;const h=u.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${p}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":NNe,h||(g.as="script"),g.crossOrigin="",g.href=u,l&&g.setAttribute("nonce",l),document.head.appendChild(g),h)return new Promise((y,b)=>{g.addEventListener("load",y),g.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};var _Ne={};function TNe(e){if(Array.isArray(e))return e}function LNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function r6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tW(e,t){if(e){if(typeof e=="string")return r6(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r6(e,t):void 0}}function ONe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1259In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ny(e,t){return TNe(e)||LNe(e,t)||tW(e,t)||ONe()}function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function Hy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var r=[],a=0;a<t.length;a++){var s=t[a];if(s){var o=Jt(s);if(o==="string"||o==="number")r.push(s);else if(o==="object"){var l=Array.isArray(s)?s:Object.entries(s).map(function(d){var u=ny(d,2),h=u[0],p=u[1];return p?h:null});r=l.length?r.concat(l.filter(function(d){return!!d})):r}}}return r.join(" ").trim()}}function MNe(e){if(Array.isArray(e))return r6(e)}function DNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1260In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i6(e){return MNe(e)||DNe(e)||tW(e)||PNe()}function nW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RNe(e,t){if(Jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rW(e){var t=RNe(e,"string");return Jt(t)=="symbol"?t:t+""}function INe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rW(r.key),r)}}function iW(e,t,n){return n&&INe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YN(e,t,n){return(t=rW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B3(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$Ne(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 1261In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){l=!0,s=u},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw s}}}}function $Ne(e,t){if(e){if(typeof e=="string")return mR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mR(e,t):void 0}}function mR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Zc=(function(){function e(){nW(this,e)}return iW(e,null,[{key:"innerWidth",value:function(n){if(n){var r=n.offsetWidth,a=getComputedStyle(n);return r=r+(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),r}return 0}},{key:"width",value:function(n){if(n){var r=n.offsetWidth,a=getComputedStyle(n);return r=r-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),r}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}},{key:"getOuterWidth",value:function(n,r){if(n){var a=n.getBoundingClientRect().width||n.offsetWidth;if(r){var s=getComputedStyle(n);a=a+(parseFloat(s.marginLeft)+parseFloat(s.marginRight))}return a}return 0}},{key:"getOuterHeight",value:function(n,r){if(n){var a=n.getBoundingClientRect().height||n.offsetHeight;if(r){var s=getComputedStyle(n);a=a+(parseFloat(s.marginTop)+parseFloat(s.marginBottom))}return a}return 0}},{key:"getClientHeight",value:function(n,r){if(n){var a=n.clientHeight;if(r){var s=getComputedStyle(n);a=a+(parseFloat(s.marginTop)+parseFloat(s.marginBottom))}return a}return 0}},{key:"getClientWidth",value:function(n,r){if(n){var a=n.clientWidth;if(r){var s=getComputedStyle(n);a=a+(parseFloat(s.marginLeft)+parseFloat(s.marginRight))}return a}return 0}},{key:"getViewport",value:function(){var n=window,r=document,a=r.documentElement,s=r.getElementsByTagName("body")[0],o=n.innerWidth||a.clientWidth||s.clientWidth,l=n.innerHeight||a.clientHeight||s.clientHeight;return{width:o,height:l}}},{key:"getOffset",value:function(n){if(n){var r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left
1261:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(n){if(n)for(var r=n.parentNode.childNodes,a=0,s=0;s<r.length;s++){if(r[s]===n)return a;r[s].nodeType===1&&a++}return-1}},{key:"addMultipleClasses",value:function(n,r){if(n&&r)if(n.classList)for(var a=r.split(" "),s=0;s<a.length;s++)n.classList.add(a[s]);else for(var o=r.split(" "),l=0;l<o.length;l++)n.className=n.className+(" "+o[l])}},{key:"removeMultipleClasses",value:function(n,r){if(n&&r)if(n.classList)for(var a=r.split(" "),s=0;s<a.length;s++)n.classList.remove(a[s]);else for(var o=r.split(" "),l=0;l<o.length;l++)n.className=n.className.replace(new RegExp("(^|\\b)"+o[l].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(n,r){n&&r&&(n.classList?n.classList.add(r):n.className=n.className+(" "+r))}},{key:"removeClass",value:function(n,r){n&&r&&(n.classList?n.classList.remove(r):n.className=n.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(n,r){return n?n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className):!1}},{key:"addStyles",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};n&&Object.entries(r).forEach(function(a){var s=ny(a,2),o=s[0],l=s[1];return n.style[o]=l})}},{key:"find",value:function(n,r){return n?Array.from(n.querySelectorAll(r)):[]}},{key:"findSingle",value:function(n,r){return n?n.querySelector(r):null}},{key:"setAttributes",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n){var s=function(l,d){var u,h,p=n!=null&&(u=n.$attrs)!==null&&u!==void 0&&u[l]?[n==null||(h=n.$attrs)===null||h===void 0?void 0:h[l]]:[];return[d].flat().reduce(function(g,y){if(y!=null){var b=Jt(y);if(b==="string"||b==="number")g.push(y);else if(b==="object"){var w=Array.isArray(y)?s(l,y):Object.entries(y).map(function(j){var S=ny(j,2),k=S[0],N=S[1];return l==="style"&&(N||N===0)?"".concat(k.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(N):N?k:void 0});g=w.length?g.concat(w.filter(function(j){return!!j})):g}}return g},p)};Object.entries(a).forEach(function(o){var l=ny(o,2),d=l[0],u=l[1];if(u!=null){var h=d.match(/^on(.+)/);h?n.addEventListener(h[1].toLowerCase(),u):d==="p-bind"?r.setAttributes(n,u):(u=d==="class"?i6(new Set(s("class",u))).join(" ").trim():d==="style"?s("style",u).join(";").trim():u,(n.$attrs=n.$attrs||{})&&(n.$attrs[d]=u),n.setAttribute(d,u))}})}}},{key:"getAttribute",value:function(n,r){if(n){var a=n.getAttribute(r);return isNaN(a)?a==="true"||a==="false"?a==="true":a:+a}}},{key:"isAttributeEquals",value:function(n,r,a){return n?this.getAttribute(n,r)===a:!1}},{key:"isAttributeNotEquals",value:function(n,r,a){return!this.isAttributeEquals(n,r,a)}},{key:"getHeight",value:function(n){if(n){var r=n.offsetHeight,a=getComputedStyle(n);return r=r-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)+parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth)),r}return 0}},{key:"getWidth",value:function(n){if(n){var r=n.offsetWidth,a=getComputedStyle(n);return r=r-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)+parseFloat(a.borderLeftWidth)+parseFloat(a.borderRightWidth)),r}return 0}},{key:"alignOverlay",value:function(n,r,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;n&&r&&(a==="self"?this.relativePosition(n,r):(s&&(n.style.minWidth=e.getOuterWidth(r)+"px"),this.absolutePosition(n,r)))}},{key:"absolutePosition",value:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(n&&r){var s=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),o=s.height,l=s.width,d=r.offsetHeight,u=r.offsetWidth,h=r.getBoundingClientRect(),p=this.getWindowScrollTop(),g=this.getWindowScrollLeft(),y=this.getViewport(),b,w;h.top+d+o>y.height?(b=h.top+p-o,b<0&&(b=p),n.style.transformOrigin="bottom"):(b=d+h.top+p,n.style.transformOrigin="top");var j=h.left;a==="left"?j+l>y.width?w=Math.max(0,j+g+u-l):w=j+g:j+u-l<0?w=g:w=j+u-l+g,n.style.top=b+"px",n.style.left=w+"px"}}},{key:"relativePosition",value:function(n,r){if(n&&r){var a=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),s=r.offsetHeight,o=r.getBoundingClientRect(),l=this.getViewport(),d,u;o.top+s+a.height>l.height?(d=-1*a.height,o.top+d<0&&(d=-1*o.top),n.style.transformOrigin="bottom"):(d=s,n.style.transformOrigin="top"),a.width>l.width?u=o.left*-1:o.left+a.width>l.width?u=(o.left+a.width-l.width)*-1:u=0,n.style.top=d+"px",n.style.left=u+"px"}}},{key:"flipfitCollision",value:function(n,r){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",l=arguments.length>4?arguments[4]:void 0;if(n&&r){var d=r.getBoundingClientRect(),u=this.getViewport(),h=s.split(" "),p=o.split(" "),g=function(S,k){return k?+S.substring(S.search(/(\+|-)/g))||0:S.substring(0,S.search(/(\+|-)/g))||S},y={my:{x:g(h[0]),y:g(h[1]||h[0]),offsetX:g(h[0],!0),offsetY:g(h[1]||h[0],!0)},at:{x:g(p[0]),y:g(p[1]||p[0]),offsetX:g(p[0],!0),offsetY:g(p[1]||p[0],!0)}},b={left:function(){var S=y.my.offsetX+y.at.offsetX;return S+d.left+(y.my.x==="left"?0:-1*(y.my.x==="center"?a.getOuterWidth(n)/2:a.getOuterWidth(n)))},top:function(){var S=y.my.offsetY+y.at.offsetY;return S+d.top+(y.my.y==="top"?0:-1*(y.my.y==="center"?a.getOuterHeight(n)/2:a.getOuterHeight(n)))}},w={count:{x:0,y:0}
1261,left:function(){var S=b.left(),k=e.getWindowScrollLeft();n.style.left=S+k+"px",this.count.x===2?(n.style.left=k+"px",this.count.x=0):S<0&&(this.count.x++,y.my.x="left",y.at.x="right",y.my.offsetX*=-1,y.at.offsetX*=-1,this.right())},right:function(){var S=b.left()+e.getOuterWidth(r),k=e.getWindowScrollLeft();n.style.left=S+k+"px",this.count.x===2?(n.style.left=u.width-e.getOuterWidth(n)+k+"px",this.count.x=0):S+e.getOuterWidth(n)>u.width&&(this.count.x++,y.my.x="right",y.at.x="left",y.my.offsetX*=-1,y.at.offsetX*=-1,this.left())},top:function(){var S=b.top(),k=e.getWindowScrollTop();n.style.top=S+k+"px",this.count.y===2?(n.style.left=k+"px",this.count.y=0):S<0&&(this.count.y++,y.my.y="top",y.at.y="bottom",y.my.offsetY*=-1,y.at.offsetY*=-1,this.bottom())},bottom:function(){var S=b.top()+e.getOuterHeight(r),k=e.getWindowScrollTop();n.style.top=S+k+"px",this.count.y===2?(n.style.left=u.height-e.getOuterHeight(n)+k+"px",this.count.y=0):S+e.getOuterHeight(r)>u.height&&(this.count.y++,y.my.y="bottom",y.at.y="top",y.my.offsetY*=-1,y.at.offsetY*=-1,this.top())},center:function(S){if(S==="y"){var k=b.top()+e.getOuterHeight(r)/2;n.style.top=k+e.getWindowScrollTop()+"px",k<0?this.bottom():k+e.getOuterHeight(r)>u.height&&this.top()}else{var N=b.left()+e.getOuterWidth(r)/2;n.style.left=N+e.getWindowScrollLeft()+"px",N<0?this.left():N+e.getOuterWidth(n)>u.width&&this.right()}}};w[y.at.x]("x"),w[y.at.y]("y"),this.isFunction(l)&&l(y)}}},{key:"findCollisionPosition",value:function(n){if(n){var r=n==="top"||n==="bottom",a=n==="left"?"right":"left",s=n==="top"?"bottom":"top";return r?{axis:"y",my:"center ".concat(s),at:"center ".concat(n)}:{axis:"x",my:"".concat(a," center"),at:"".concat(n," center")}}}},{key:"getParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.parentNode===null?r:this.getParents(n.parentNode,r.concat([n.parentNode]))}},{key:"getScrollableParents",value:function(n){var r=this,a=[];if(n){var s=this.getParents(n),o=/(auto|scroll)/,l=function(_){var L=_?getComputedStyle(_):null;return L&&(o.test(L.getPropertyValue("overflow"))||o.test(L.getPropertyValue("overflow-x"))||o.test(L.getPropertyValue("overflow-y")))},d=function(_){a.push(_.nodeName==="BODY"||_.nodeName==="HTML"||r.isDocument(_)?window:_)},u=B3(s),h;try{for(u.s();!(h=u.n()).done;){var p,g=h.value,y=g.nodeType===1&&((p=g.dataset)===null||p===void 0?void 0:p.scrollselectors);if(y){var b=y.split(","),w=B3(b),j;try{for(w.s();!(j=w.n()).done;){var S=j.value,k=this.findSingle(g,S);k&&l(k)&&d(k)}}catch(N){w.e(N)}finally{w.f()}}g.nodeType===1&&l(g)&&d(g)}}catch(N){u.e(N)}finally{u.f()}}return a}},{key:"getHiddenElementOuterHeight",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementOuterWidth",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementDimensions",value:function(n){var r={};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}},{key:"fadeIn",value:function(n,r){if(n){n.style.opacity=0;var a=+new Date,s=0,o=function(){s=+n.style.opacity+(new Date().getTime()-a)/r,n.style.opacity=s,a=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}}},{key:"fadeOut",value:function(n,r){if(n)var a=1,s=50,o=s/r,l=setInterval(function(){a=a-o,a<=0&&(a=0,clearInterval(l)),n.style.opacity=a},s)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"appendChild",value:function(n,r){if(this.isElement(r))r.appendChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(n);else throw new Error("Cannot append "+r+" to "+n)}},{key:"removeChild",value:function(n,r){if(this.isElement(r))r.removeChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(n);else throw new Error("Cannot remove "+n+" from "+r)}},{key:"isElement",value:function(n){return(typeof HTMLElement>"u"?"undefined":Jt(HTMLElement))==="object"?n instanceof HTMLElement:n&&Jt(n)==="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}},{key:"isDocument",value:function(n){return(typeof Document>"u"?"undefined":Jt(Document))==="object"?n instanceof Document:n&&Jt(n)==="object"&&n!==null&&n.nodeType===9}},{key:"scrollInView",value:function(n,r){var a=getComputedStyle(n).getPropertyValue("border-top-width"),s=a?parseFloat(a):0,o=getComputedStyle(n).getPropertyValue("padding-top"),l=o?parseFloat(o):0,d=n.getBoundingClientRect(),u=r.getBoundingClientRect(),h=u.top+document.body.scrollTop-(d.top+document.body.scrollTop)-s-l,p=n.scrollTop,g=n.clientHeight,y=this.getOuterHeight(r);h<0?n.scrollTop=p+h:h+y>g&&(n.scrollTop=p+h-g+y)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(n){if(n){var r=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var a=document.createElement("div");a.className="p-scrollbar-measure",document.body.appendChild(a);var s=a.offsetWidth-a.clientWidth;return document.body.removeChild(a),this.calculatedScrollbarWidth=s,s}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var n=navigator.userAgent.toLowerCase(),r=/(chrome)[ ]([\w.]+)/.exec(n)||/(webkit)[ ]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:r[1]||"",version:r[2]||"0"}}},{key:"blockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",r=!!document.body.style.getPropertyValue("--scrollbar-width");!r&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}},{key:"unblockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}},{key:"isVisible",value:function(n){return n&&(n.clientHeight!==0||n.getClientRects().length!==0||getComputedStyle(n).display!=="none")}},{key:"isExist",value:function(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&n.parentNode)}},{key:"getFocusableElements",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=e.find(n,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,`, 1262 [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, 1263 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, 1264 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, 1265 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`,
1266 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r,`, 1267 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(r)),s=[],o=B3(a),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;getComputedStyle(d).display!=="none"&&getComputedStyle(d).visibility!=="hidden"&&s.push(d)}}catch(u){o.e(u)}finally{o.f()}return s}},{key:"getFirstFocusableElement",value:function(n,r){var a=e.getFocusableElements(n,r);return a.length>0?a[0]:null}},{key:"getLastFocusableElement",value:function(n,r){var a=e.getFocusableElements(n,r);return a.length>0?a[a.length-1]:null}},{key:"focus",value:function(n,r){var a=r===void 0?!0:!r;n&&document.activeElement!==n&&n.focus({preventScroll:a})}},{key:"focusFirstElement",value:function(n,r){if(n){var a=e.getFirstFocusableElement(n);return a&&e.focus(a,r),a}}},{key:"getCursorOffset",value:function(n,r,a,s){if(n){var o=getComputedStyle(n),l=document.createElement("div");l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.overflow=o.overflow,l.style.width=o.width,l.style.height=o.height,l.style.padding=o.padding,l.style.border=o.border,l.style.overflowWrap=o.overflowWrap,l.style.whiteSpace=o.whiteSpace,l.style.lineHeight=o.lineHeight,l.innerHTML=r.replace(/\r\n|\r|\n/g,"<br />");var d=document.createElement("span");d.textContent=s,l.appendChild(d);var u=document.createTextNode(a);l.appendChild(u),document.body.appendChild(l);var h=d.offsetLeft,p=d.offsetTop,g=d.clientHeight;return document.body.removeChild(l),{left:Math.abs(h-n.scrollLeft),top:Math.abs(p-n.scrollTop)+g}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(n,r,a){n[r].apply(n,a)}},{key:"isClickable",value:function(n){var r=n.nodeName,a=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||a==="INPUT"||a==="TEXTAREA"||a==="BUTTON"||a==="A"||this.hasClass(n,"p-button")||this.hasClass(n.parentElement,"p-button")||this.hasClass(n.parentElement,"p-checkbox")||this.hasClass(n.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(n,r){if(typeof r=="string")n.style.cssText=r;else for(var a in r)n.style[a]=r[a]}},{key:"exportCSV",value:function(n,r){var a=new Blob([n],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(a,r+".csv");else{var s=e.saveAs({name:r+".csv",src:URL.createObjectURL(a)});s||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}}},{key:"saveAs",value:function(n){if(n){var r=document.createElement("a");if(r.download!==void 0){var a=n.name,s=n.src;return r.setAttribute("href",s),r.setAttribute("download",a),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}},{key:"createInlineStyle",value:function(n,r){var a=document.createElement("style");return e.addNonce(a,n),r||(r=document.head),r.appendChild(a),a}},{key:"removeInlineStyle",value:function(n){if(this.isExist(n)){try{n.parentNode.removeChild(n)}catch{}n=null}return n}},{key:"addNonce",value:function(n,r){try{r||(r=_Ne.REACT_APP_CSS_NONCE)}catch{}r&&n.setAttribute("nonce",r)}},{key:"getTargetElement",value:function(n){if(!n)return null;if(n==="document")return document;if(n==="window")return window;if(Jt(n)==="object"&&n.hasOwnProperty("current"))return this.isExist(n.current)?n.current:null;var r=function(o){return!!(o&&o.constructor&&o.call&&o.apply)},a=r(n)?n():n;return this.isDocument(a)||this.isExist(a)?a:null}},{key:"getAttributeNames",value:function(n){var r,a,s;for(a=[],s=n.attributes,r=0;r<s.length;++r)a.push(s[r].nodeName);return a.sort(),a}},{key:"isEqualElement",value:function(n,r){var a,s,o,l,d;if(a=e.getAttributeNames(n),s=e.getAttributeNames(r),a.join(",")!==s.join(","))return!1;for(var u=0;u<a.length;++u)if(o=a[u],o==="style")for(var h=n.style,p=r.style,g=/^\d+$/,y=0,b=Object.keys(h);y<b.length;y++){var w=b[y];if(!g.test(w)&&h[w]!==p[w])return!1}else if(n.getAttribute(o)!==r.getAttribute(o))return!1;for(l=n.firstChild,d=r.firstChild;l&&d;l=l.nextSibling,d=d.nextSibling){if(l.nodeType!==d.nodeType)return!1;if(l.nodeType===1){if(!e.isEqualElement(l,d))return!1}else if(l.nodeValue!==d.nodeValue)return!1}return!(l||d)}},{key:"hasCSSAnimation",value:function(n){if(n){var r=getComputedStyle(n),a=parseFloat(r.getPropertyValue("animation-duration")||"0");return a>0}return!1}},{key:"hasCSSTransition",value:function(n){if(n){var r=getComputedStyle(n),a=parseFloat(r.getPropertyValue("transition-duration")||"0");return a>0}return!1}}])})();YN(Zc,"DATA_PROPS",["data-"]);YN(Zc,"ARIA_PROPS",["aria","focus-target"]);function gR(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];
1267if(!n){if(Array.isArray(e)||(n=BNe(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 1268In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){l=!0,s=u},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw s}}}}function BNe(e,t){if(e){if(typeof e=="string")return vR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vR(e,t):void 0}}function vR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Mn=(function(){function e(){nW(this,e)}return iW(e,null,[{key:"equals",value:function(n,r,a){return a&&n&&Jt(n)==="object"&&r&&Jt(r)==="object"?this.deepEquals(this.resolveFieldData(n,a),this.resolveFieldData(r,a)):this.deepEquals(n,r)}},{key:"deepEquals",value:function(n,r){if(n===r)return!0;if(n&&r&&Jt(n)==="object"&&Jt(r)==="object"){var a=Array.isArray(n),s=Array.isArray(r),o,l,d;if(a&&s){if(l=n.length,l!==r.length)return!1;for(o=l;o--!==0;)if(!this.deepEquals(n[o],r[o]))return!1;return!0}if(a!==s)return!1;var u=n instanceof Date,h=r instanceof Date;if(u!==h)return!1;if(u&&h)return n.getTime()===r.getTime();var p=n instanceof RegExp,g=r instanceof RegExp;if(p!==g)return!1;if(p&&g)return n.toString()===r.toString();var y=Object.keys(n);if(l=y.length,l!==Object.keys(r).length)return!1;for(o=l;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,y[o]))return!1;for(o=l;o--!==0;)if(d=y[o],!this.deepEquals(n[d],r[d]))return!1;return!0}return n!==n&&r!==r}},{key:"resolveFieldData",value:function(n,r){if(!n||!r)return null;try{var a=n[r];if(this.isNotEmpty(a))return a}catch{}if(Object.keys(n).length){if(this.isFunction(r))return r(n);if(this.isNotEmpty(n[r]))return n[r];if(r.indexOf(".")===-1)return n[r];for(var s=r.split("."),o=n,l=0,d=s.length;l<d;++l){if(o==null)return null;o=o[s[l]]}return o}return null}},{key:"findDiffKeys",value:function(n,r){return!n||!r?{}:Object.keys(n).filter(function(a){return!r.hasOwnProperty(a)}).reduce(function(a,s){return a[s]=n[s],a},{})}},{key:"reduceKeys",value:function(n,r){var a={};return!n||!r||r.length===0||Object.keys(n).filter(function(s){return r.some(function(o){return s.startsWith(o)})}).forEach(function(s){a[s]=n[s],delete n[s]}),a}},{key:"reorderArray",value:function(n,r,a){n&&r!==a&&(a>=n.length&&(a=a%n.length,r=r%n.length),n.splice(a,0,n.splice(r,1)[0]))}},{key:"findIndexInList",value:function(n,r,a){var s=this;return r?a?r.findIndex(function(o){return s.equals(o,n,a)}):r.findIndex(function(o){return o===n}):-1}},{key:"getJSXElement",value:function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return this.isFunction(n)?n.apply(void 0,a):n}},{key:"getItemValue",value:function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return this.isFunction(n)?n.apply(void 0,a):n}},{key:"getProp",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n?n[r]:void 0;return s===void 0?a[r]:s}},{key:"getPropCaseInsensitive",value:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.toFlatCase(r);for(var o in n)if(n.hasOwnProperty(o)&&this.toFlatCase(o)===s)return n[o];for(var l in a)if(a.hasOwnProperty(l)&&this.toFlatCase(l)===s)return a[l]}},{key:"getMergedProps",value:function(n,r){return Object.assign({},r,n)}},{key:"getDiffProps",value:function(n,r){return this.findDiffKeys(n,r)}},{key:"getPropValue",value:function(n){if(!this.isFunction(n))return n;for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];if(a.length===1){var o=a[0];return n(Array.isArray(o)?o[0]:o)}return n.apply(void 0,a)}},{key:"getComponentProp",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(n)?this.getProp(n.props,r,a):void 0}},{key:"getComponentProps",value:function(n,r){return this.isNotEmpty(n)?this.getMergedProps(n.props,r):void 0}},{key:"getComponentDiffProps",value:function(n,r){return this.isNotEmpty(n)?this.getDiffProps(n.props,r):void 0}},{key:"isValidChild",value:function(n,r,a){if(n){var s,o=this.getComponentProp(n,"__TYPE")||(n.type?n.type.displayName:void 0);!o&&n!==null&&n!==void 0&&(s=n.type)!==null&&s!==void 0&&(s=s._payload)!==null&&s!==void 0&&s.value&&(o=n.type._payload.value.find(function(u){return u===r}));var l=o===r;try{var d}catch{}return l}return!1}},{key:"getRefElement",value:function(n){return n?Jt(n)==="object"&&n.hasOwnProperty("current")?n.current:n:null}},{key:"combinedRefs",value:function(n,r){n&&r&&(typeof r=="function"?r(n.current):r.current=n.current)}},{key:"removeAccents",value:function(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\x
1268F6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}},{key:"toFlatCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}},{key:"toCapitalCase",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n[0].toUpperCase()+n.slice(1):n}},{key:"trim",value:function(n){return this.isNotEmpty(n)&&this.isString(n)?n.trim():n}},{key:"isEmpty",value:function(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&Jt(n)==="object"&&Object.keys(n).length===0}},{key:"isNotEmpty",value:function(n){return!this.isEmpty(n)}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"isObject",value:function(n){return n!==null&&n instanceof Object&&n.constructor===Object}},{key:"isDate",value:function(n){return n!==null&&n instanceof Date&&n.constructor===Date}},{key:"isArray",value:function(n){return n!==null&&Array.isArray(n)}},{key:"isString",value:function(n){return n!==null&&typeof n=="string"}},{key:"isPrintableCharacter",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}},{key:"isLetter",value:function(n){return/^[a-zA-Z\u00C0-\u017F]$/.test(n)}},{key:"isScalar",value:function(n){return n!=null&&(typeof n=="string"||typeof n=="number"||typeof n=="bigint"||typeof n=="boolean")}},{key:"findLast",value:function(n,r){var a;if(this.isNotEmpty(n))try{a=n.findLast(r)}catch{a=i6(n).reverse().find(r)}return a}},{key:"findLastIndex",value:function(n,r){var a=-1;if(this.isNotEmpty(n))try{a=n.findLastIndex(r)}catch{a=n.lastIndexOf(i6(n).reverse().find(r))}return a}},{key:"sort",value:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,l=this.compare(n,r,s,a),d=a;return(this.isEmpty(n)||this.isEmpty(r))&&(d=o===1?a:o),d*l}},{key:"compare",value:function(n,r,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,o=-1,l=this.isEmpty(n),d=this.isEmpty(r);return l&&d?o=0:l?o=s:d?o=-s:typeof n=="string"&&typeof r=="string"?o=a(n,r):o=n<r?-1:n>r?1:0,o}},{key:"localeComparator",value:function(n){return new Intl.Collator(n,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(n,r){var a=gR(n),s;try{for(a.s();!(s=a.n()).done;){var o=s.value;if(o.key===r)return o.children||[];if(o.children){var l=this.findChildrenByKey(o.children,r);if(l.length>0)return l}}}catch(d){a.e(d)}finally{a.f()}return[]}},{key:"mutateFieldData",value:function(n,r,a){if(!(Jt(n)!=="object"||typeof r!="string"))for(var s=r.split("."),o=n,l=0,d=s.length;l<d;++l){if(l+1-d===0){o[s[l]]=a;break}o[s[l]]||(o[s[l]]={}),o=o[s[l]]}}},{key:"getNestedValue",value:function(n,r){return r.split(".").reduce(function(a,s){return a&&a[s]!==void 0?a[s]:void 0},n)}},{key:"absoluteCompare",value:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;
1268if(!n||!r||s>a)return!0;if(Jt(n)!==Jt(r))return!1;var o=Object.keys(n),l=Object.keys(r);if(o.length!==l.length)return!1;for(var d=0,u=o;d<u.length;d++){var h=u[d],p=n[h],g=r[h],y=e.isObject(p)&&e.isObject(g),b=e.isFunction(p)&&e.isFunction(g);if((y||b)&&!this.absoluteCompare(p,g,a,s+1)||!y&&p!==g)return!1}return!0}},{key:"selectiveCompare",value:function(n,r,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(n===r)return!0;if(!n||!r||Jt(n)!=="object"||Jt(r)!=="object")return!1;if(!a)return this.absoluteCompare(n,r,1);var o=gR(a),l;try{for(o.s();!(l=o.n()).done;){var d=l.value,u=this.getNestedValue(n,d),h=this.getNestedValue(r,d),p=Jt(u)==="object"&&u!==null&&Jt(h)==="object"&&h!==null;if(p&&!this.absoluteCompare(u,h,s)||!p&&u!==h)return!1}}catch(g){o.e(g)}finally{o.f()}return!0}}])})();function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(n),!0).forEach(function(r){YN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var n=function(o){return typeof o=="function"},r=t.classNameMergeFunction,a=n(r);return e.reduce(function(s,o){if(!o)return s;var l=function(){var h=o[d];if(d==="style")s.style=xR(xR({},s.style),o.style);else if(d==="className"){var p="";a?p=r(s.className,o.className):p=[s.className,o.className].join(" ").trim(),s.className=p||void 0}else if(n(h)){var g=s[d];s[d]=g?function(){g.apply(void 0,arguments),h.apply(void 0,arguments)}:h}else s[d]=h};for(var d in o)l();return s},{})}}var Br=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",NOT_IN:"notIn",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function bm(e){"@babel/helpers - typeof";return bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bm(e)}function qNe(e,t){if(bm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FNe(e){var t=qNe(e,"string");return bm(t)=="symbol"?t:t+""}function ea(e,t,n){return(t=FNe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zNe(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function HNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ei=zNe(function e(){HNe(this,e)});ea(Ei,"ripple",!1);ea(Ei,"inputStyle","outlined");ea(Ei,"locale","en");ea(Ei,"appendTo",null);ea(Ei,"cssTransition",!0);ea(Ei,"autoZIndex",!0);ea(Ei,"hideOverlaysOnDocumentScrolling",!1);ea(Ei,"nonce",null);ea(Ei,"nullSortOrder",1);ea(Ei,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});ea(Ei,"pt",void 0);ea(Ei,"filterMatchModeOptions",{text:[Br.STARTS_WITH,Br.CONTAINS,Br.NOT_CONTAINS,Br.ENDS_WITH,Br.EQUALS,Br.NOT_EQUALS],numeric:[Br.EQUALS,Br.NOT_EQUALS,Br.LESS_THAN,Br.LESS_THAN_OR_EQUAL_TO,Br.GREATER_THAN,Br.GREATER_THAN_OR_EQUAL_TO],date:[Br.DATE_IS,Br.DATE_IS_NOT,Br.DATE_BEFORE,Br.DATE_AFTER]});ea(Ei,"changeTheme",function(e,t,n,r){var a,s=document.getElementById(n);if(!s)throw Error("Element with id ".concat(n," not found."));var o=s.getAttribute("href").replace(e,t),l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("id",n),l.setAttribute("href",o),l.addEventListener("load",function(){r&&r()}),(a=s.parentNode)===null||a===void 0||a.replaceChild(l,s)});var KN=ft.createContext(),Tb=Ei;function UNe(e){if(Array.isArray(e))return e}function VNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}
1268finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function bR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GNe(e,t){if(e){if(typeof e=="string")return bR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bR(e,t):void 0}}function WNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1269In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YNe(e,t){return UNe(e)||VNe(e,t)||GNe(e,t)||WNe()}var KNe=function(t){return v.useEffect(function(){return t},[])},XNe=function(){var t=v.useContext(KN);return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return Uy(r,t?.ptOptions)}},aW=function(t){var n=v.useRef(!1);return v.useEffect(function(){if(!n.current)return n.current=!0,t&&t()},[])},ZNe=0,h0=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=v.useState(!1),a=YNe(r,2),s=a[0],o=a[1],l=v.useRef(null),d=v.useContext(KN),u=Zc.isClient()?window.document:void 0,h=n.document,p=h===void 0?u:h,g=n.manual,y=g===void 0?!1:g,b=n.name,w=b===void 0?"style_".concat(++ZNe):b,j=n.id,S=j===void 0?void 0:j,k=n.media,N=k===void 0?void 0:k,_=function($){var O=$.querySelector('style[data-primereact-style-id="'.concat(w,'"]'));if(O)return O;if(S!==void 0){var q=p.getElementById(S);if(q)return q}return p.createElement("style")},L=function($){s&&t!==$&&(l.current.textContent=$)},E=function(){if(!(!p||s)){var $=d?.styleContainer||p.head;l.current=_($),l.current.isConnected||(l.current.type="text/css",S&&(l.current.id=S),N&&(l.current.media=N),Zc.addNonce(l.current,d&&d.nonce||Tb.nonce),$.appendChild(l.current),w&&l.current.setAttribute("data-primereact-style-id",w)),l.current.textContent=t,o(!0)}},T=function(){!p||!l.current||(Zc.removeInlineStyle(l.current),o(!1))};return v.useEffect(function(){y||E()},[y]),{id:S,name:w,update:L,unload:T,load:E,isLoaded:s}},ry=function(t,n){var r=v.useRef(!1);return v.useEffect(function(){if(!r.current){r.current=!0;return}return t&&t()},n)};function a6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QNe(e){if(Array.isArray(e))return a6(e)}function JNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eAe(e,t){if(e){if(typeof e=="string")return a6(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a6(e,t):void 0}}function tAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1270In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wR(e){return QNe(e)||JNe(e)||eAe(e)||tAe()}function wm(e){"@babel/helpers - typeof";return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(e)}function nAe(e,t){if(wm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rAe(e){var t=nAe(e,"string");return wm(t)=="symbol"?t:t+""}function s6(e,t,n){return(t=rAe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(n),!0).forEach(function(r){s6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEac
1270h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iAe=` 1271.p-hidden-accessible { 1272 border: 0; 1273 clip: rect(0 0 0 0); 1274 height: 1px; 1275 margin: -1px; 1276 opacity: 0; 1277 overflow: hidden; 1278 padding: 0; 1279 pointer-events: none; 1280 position: absolute; 1281 white-space: nowrap; 1282 width: 1px; 1283} 1284 1285.p-overflow-hidden { 1286 overflow: hidden; 1287 padding-right: var(--scrollbar-width); 1288} 1289`,aAe=` 1290.p-button { 1291 margin: 0; 1292 display: inline-flex; 1293 cursor: pointer; 1294 user-select: none; 1295 align-items: center; 1296 vertical-align: bottom; 1297 text-align: center; 1298 overflow: hidden; 1299 position: relative; 1300} 1301 1302.p-button-label { 1303 flex: 1 1 auto; 1304} 1305 1306.p-button-icon { 1307 pointer-events: none; 1308} 1309 1310.p-button-icon-right { 1311 order: 1; 1312} 1313 1314.p-button:disabled { 1315 cursor: default; 1316} 1317 1318.p-button-icon-only { 1319 justify-content: center; 1320} 1321 1322.p-button-icon-only .p-button-label { 1323 visibility: hidden; 1324 width: 0; 1325 flex: 0 0 auto; 1326} 1327 1328.p-button-vertical { 1329 flex-direction: column; 1330} 1331 1332.p-button-icon-bottom { 1333 order: 2; 1334} 1335 1336.p-button-group .p-button { 1337 margin: 0; 1338} 1339 1340.p-button-group .p-button:not(:last-child) { 1341 border-right: 0 none; 1342} 1343 1344.p-button-group .p-button:not(:first-of-type):not(:last-of-type) { 1345 border-radius: 0; 1346} 1347 1348.p-button-group .p-button:first-of-type { 1349 border-top-right-radius: 0; 1350 border-bottom-right-radius: 0; 1351} 1352 1353.p-button-group .p-button:last-of-type { 1354 border-top-left-radius: 0; 1355 border-bottom-left-radius: 0; 1356} 1357 1358.p-button-group .p-button:focus { 1359 position: relative; 1360 z-index: 1; 1361} 1362 1363.p-button-group-single .p-button:first-of-type { 1364 border-top-right-radius: var(--border-radius) !important; 1365 border-bottom-right-radius: var(--border-radius) !important; 1366} 1367 1368.p-button-group-single .p-button:last-of-type { 1369 border-top-left-radius: var(--border-radius) !important; 1370 border-bottom-left-radius: var(--border-radius) !important; 1371} 1372`,sAe=` 1373.p-inputtext { 1374 margin: 0; 1375} 1376 1377.p-fluid .p-inputtext { 1378 width: 100%; 1379} 1380 1381/* InputGroup */ 1382.p-inputgroup { 1383 display: flex; 1384 align-items: stretch; 1385 width: 100%; 1386} 1387 1388.p-inputgroup-addon { 1389 display: flex; 1390 align-items: center; 1391 justify-content: center; 1392} 1393 1394.p-inputgroup .p-float-label { 1395 display: flex; 1396 align-items: stretch; 1397 width: 100%; 1398} 1399 1400.p-inputgroup .p-inputtext, 1401.p-fluid .p-inputgroup .p-inputtext, 1402.p-inputgroup .p-inputwrapper, 1403.p-fluid .p-inputgroup .p-input { 1404 flex: 1 1 auto; 1405 width: 1%; 1406} 1407 1408/* Floating Label */ 1409.p-float-label { 1410 display: block; 1411 position: relative; 1412} 1413 1414.p-float-label label { 1415 position: absolute; 1416 pointer-events: none; 1417 top: 50%; 1418 margin-top: -0.5rem; 1419 transition-property: all; 1420 transition-timing-function: ease; 1421 line-height: 1; 1422} 1423 1424.p-float-label textarea ~ label, 1425.p-float-label .p-mention ~ label { 1426 top: 1rem; 1427} 1428 1429.p-float-label input:focus ~ label, 1430.p-float-label input:-webkit-autofill ~ label, 1431.p-float-label input.p-filled ~ label, 1432.p-float-label textarea:focus ~ label, 1433.p-float-label textarea.p-filled ~ label, 1434.p-float-label .p-inputwrapper-focus ~ label, 1435.p-float-label .p-inputwrapper-filled ~ label, 1436.p-float-label .p-tooltip-target-wrapper ~ label { 1437 top: -0.75rem; 1438 font-size: 12px; 1439} 1440 1441.p-float-label .p-placeholder, 1442.p-float-label input::placeholder, 1443.p-float-label .p-inputtext::placeholder { 1444 opacity: 0; 1445 transition-property: all; 1446 transition-timing-function: ease; 1447} 1448 1449.p-float-label .p-focus .p-placeholder, 1450.p-float-label input:focus::placeholder, 1451.p-float-label .p-inputtext:focus::placeholder { 1452 opacity: 1; 1453 transition-property: all; 1454 transition-timing-function: ease; 1455} 1456 1457.p-input-icon-left, 1458.p-input-icon-right { 1459 position: relative; 1460 display: inline-block; 1461} 1462 1463.p-input-icon-left > i, 1464.p-input-icon-right > i, 1465.p-input-icon-left > svg, 1466.p-input-icon-right > svg, 1467.p-input-icon-left > .p-input-prefix, 1468.p-input-icon-right > .p-input-suffix { 1469 position: absolute; 1470 top: 50%; 1471 margin-top: -0.5rem; 1472} 1473 1474.p-fluid .p-input-icon-left, 1475.p-fluid .p-input-icon-right { 1476 display: block; 1477 width: 100%; 1478} 1479`,oAe=` 1480.p-icon { 1481 display: inline-block; 1482} 1483 1484.p-icon-spin { 1485 -webkit-animation: p-icon-spin 2s infinite linear; 1486 animation: p-icon-spin 2s infinite linear; 1487} 1488 1489svg.p-icon { 1490 pointer-events: auto; 1491} 1492 1493svg.p-icon g, 1494.p-disabled svg.p-icon { 1495 pointer-events: none; 1496} 1497 1498@-webkit-keyframes p-icon-spin { 1499 0% { 1500 -webkit-transform: rotate(0deg); 1501 transform: rotate(0deg); 1502 } 1503 100% { 1504 -webkit-transform: rotate(359deg); 1505 transform: rotate(359deg); 1506 } 1507} 1508 1509@keyframes p-icon-spin { 1510 0% { 1511 -webkit-transform: rotate(0deg); 1512 transform: rotate(0deg); 1513 } 1514 100% { 1515 -webkit-transform: rotate(359deg); 1516 transform: rotate(359deg); 1517 } 1518} 1519`,lAe=` 1520@layer primereact { 1521 .p-component, .p-component * { 1522 box-sizing: border-box; 1523 } 1524 1525 .p-hidden { 1526 display: none; 1527 } 1528 1529 .p-hidden-space { 1530 visibility: hidden; 1531 } 1532 1533 .p-reset { 1534 margin: 0; 1535 padding: 0; 1536 border: 0; 1537 outline: 0; 1538 text-decoration: none; 1539 font-size: 100%; 1540 list-style: none; 1541 } 1542 1543 .p-disabled, .p-disabled * { 1544 cursor: default; 1545 pointer-events: none; 1546 user-select: none; 1547 } 1548 1549 .p-component-overlay { 1550 position: fixed; 1551 top: 0; 1552 left: 0; 1553 width: 100%; 1554 height: 100%; 1555 } 1556 1557 .p-unselectable-text { 1558 user-select: none; 1559 } 1560 1561 .p-scrollbar-measure { 1562 width: 100px; 1563 height: 100px; 1564 overflow: scroll; 1565 position: absolute; 1566 top: -9999px; 1567 } 1568 1569 @-webkit-keyframes p-fadein { 1570 0% { opacity: 0; } 1571 100% { opacity: 1; } 1572 }
1573 @keyframes p-fadein { 1574 0% { opacity: 0; } 1575 100% { opacity: 1; } 1576 } 1577 1578 .p-link { 1579 text-align: left; 1580 background-color: transparent; 1581 margin: 0; 1582 padding: 0; 1583 border: none; 1584 cursor: pointer; 1585 user-select: none; 1586 } 1587 1588 .p-link:disabled { 1589 cursor: default; 1590 } 1591 1592 /* Non react overlay animations */ 1593 .p-connected-overlay { 1594 opacity: 0; 1595 transform: scaleY(0.8); 1596 transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1); 1597 } 1598 1599 .p-connected-overlay-visible { 1600 opacity: 1; 1601 transform: scaleY(1); 1602 } 1603 1604 .p-connected-overlay-hidden { 1605 opacity: 0; 1606 transform: scaleY(1); 1607 transition: opacity .1s linear; 1608 } 1609 1610 /* React based overlay animations */ 1611 .p-connected-overlay-enter { 1612 opacity: 0; 1613 transform: scaleY(0.8); 1614 } 1615 1616 .p-connected-overlay-enter-active { 1617 opacity: 1; 1618 transform: scaleY(1); 1619 transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1); 1620 } 1621 1622 .p-connected-overlay-enter-done { 1623 transform: none; 1624 } 1625 1626 .p-connected-overlay-exit { 1627 opacity: 1; 1628 } 1629 1630 .p-connected-overlay-exit-active { 1631 opacity: 0; 1632 transition: opacity .1s linear; 1633 } 1634 1635 /* Toggleable Content */ 1636 .p-toggleable-content-enter { 1637 max-height: 0; 1638 } 1639 1640 .p-toggleable-content-enter-active { 1641 overflow: hidden; 1642 max-height: 1000px; 1643 transition: max-height 1s ease-in-out; 1644 } 1645 1646 .p-toggleable-content-enter-done { 1647 transform: none; 1648 } 1649 1650 .p-toggleable-content-exit { 1651 max-height: 1000px; 1652 } 1653 1654 .p-toggleable-content-exit-active { 1655 overflow: hidden; 1656 max-height: 0; 1657 transition: max-height 0.45s cubic-bezier(0, 1, 0, 1); 1658 } 1659 1660 /* @todo Refactor */ 1661 .p-menu .p-menuitem-link { 1662 cursor: pointer; 1663 display: flex; 1664 align-items: center; 1665 text-decoration: none; 1666 overflow: hidden; 1667 position: relative; 1668 } 1669 1670 `.concat(aAe,` 1671 `).concat(sAe,` 1672 `).concat(oAe,` 1673} 1674`),Gn={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.css,r=hr(hr({},t.defaultProps),Gn.defaultProps),a={},s=function(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Gn.context=p,Gn.cProps=h,Mn.getMergedProps(h,r)},o=function(h){return Mn.getDiffProps(h,r)},l=function(){var h,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;p.hasOwnProperty("pt")&&p.pt!==void 0&&(p=p.pt);var w=g,j=/./g.test(w)&&!!y[w.split(".")[0]],S=j?Mn.toFlatCase(w.split(".")[1]):Mn.toFlatCase(w),k=y.hostName&&Mn.toFlatCase(y.hostName),N=k||y.props&&y.props.__TYPE&&Mn.toFlatCase(y.props.__TYPE)||"",_=S==="transition",L="data-pc-",E=function(G){return G!=null&&G.props?G.hostName?G.props.__TYPE===G.hostName?G.props:E(G.parent):G.parent:void 0},T=function(G){var K,M;return((K=y.props)===null||K===void 0?void 0:K[G])||((M=E(y))===null||M===void 0?void 0:M[G])};Gn.cParams=y,Gn.cName=N;var P=T("ptOptions")||Gn.context.ptOptions||{},$=P.mergeSections,O=$===void 0?!0:$,q=P.mergeProps,D=q===void 0?!1:q,z=function(){var G=ho.apply(void 0,arguments);return Array.isArray(G)?{className:Hy.apply(void 0,wR(G))}:Mn.isString(G)?{className:G}:G!=null&&G.hasOwnProperty("className")&&Array.isArray(G.className)?{className:Hy.apply(void 0,wR(G.className))}:G},V=b?j?sW(z,w,y):oW(z,w,y):void 0,W=j?void 0:Ob(Lb(p,N),z,w,y),B=!_&&hr(hr({},S==="root"&&s6({},"".concat(L,"name"),y.props&&y.props.__parentMetadata?Mn.toFlatCase(y.props.__TYPE):N)),{},s6({},"".concat(L,"section"),S));return O||!O&&W?D?Uy([V,W,Object.keys(B).length?B:{}],{classNameMergeFunction:(h=Gn.context.ptOptions)===null||h===void 0?void 0:h.classNameMergeFunction}):hr(hr(hr({},V),W),Object.keys(B).length?B:{}):hr(hr({},W),Object.keys(B).length?B:{})},d=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=h.props,g=h.state,y=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l((p||{}).pt,N,hr(hr({},h),_))},b=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l(N,_,L,!1)},w=function(){return Gn.context.unstyled||Tb.unstyled||p.unstyled},j=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return w()?void 0:ho(n&&n.classes,N,hr({props:p,state:g},_))},S=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(L){var E,T=ho(n&&n.inlineStyles,N,hr({props:p,state:g},_)),P=ho(a,N,hr({props:p,state:g},_));return Uy([P,T],{classNameMergeFunction:(E=Gn.context.ptOptions)===null||E===void 0?void 0:E.
1674classNameMergeFunction})}};return{ptm:y,ptmo:b,sx:S,cx:j,isUnstyled:w}};return hr(hr({getProps:s,getOtherProps:o,setMetaData:d},t),{},{defaultProps:r})}},ho=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=String(Mn.toFlatCase(n)).split("."),s=a.shift(),o=Mn.isNotEmpty(t)?Object.keys(t).find(function(l){return Mn.toFlatCase(l)===s}):"";return s?Mn.isObject(t)?ho(Mn.getItemValue(t[o],r),a.join("."),r):void 0:Mn.getItemValue(t,r)},Lb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,a=t?._usept,s=function(l){var d,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=r?r(l):l,p=Mn.toFlatCase(n);return(d=u?p!==Gn.cName?h?.[p]:void 0:h?.[p])!==null&&d!==void 0?d:h};return Mn.isNotEmpty(a)?{_usept:a,originalValue:s(t.originalValue),value:s(t.value)}:s(t,!0)},Ob=function(t,n,r,a){var s=function(w){return n(w,r,a)};if(t!=null&&t.hasOwnProperty("_usept")){var o=t._usept||Gn.context.ptOptions||{},l=o.mergeSections,d=l===void 0?!0:l,u=o.mergeProps,h=u===void 0?!1:u,p=o.classNameMergeFunction,g=s(t.originalValue),y=s(t.value);return g===void 0&&y===void 0?void 0:Mn.isString(y)?y:Mn.isString(g)?g:d||!d&&y?h?Uy([g,y],{classNameMergeFunction:p}):hr(hr({},g),y):y}return s(t)},cAe=function(){return Lb(Gn.context.pt||Tb.pt,void 0,function(t){return Mn.getItemValue(t,Gn.cParams)})},uAe=function(){return Lb(Gn.context.pt||Tb.pt,void 0,function(t){return ho(t,Gn.cName,Gn.cParams)||Mn.getItemValue(t,Gn.cParams)})},sW=function(t,n,r){return Ob(cAe(),t,n,r)},oW=function(t,n,r){return Ob(uAe(),t,n,r)},dAe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2?arguments[2]:void 0,a=r.name,s=r.styled,o=s===void 0?!1:s,l=r.hostName,d=l===void 0?"":l,u=sW(ho,"global.css",Gn.cParams),h=Mn.toFlatCase(a),p=h0(iAe,{name:"base",manual:!0}),g=p.load,y=h0(lAe,{name:"common",manual:!0}),b=y.load,w=h0(u,{name:"global",manual:!0}),j=w.load,S=h0(t,{name:a,manual:!0}),k=S.load,N=function(L){if(!d){var E=Ob(Lb((Gn.cProps||{}).pt,h),ho,"hooks.".concat(L)),T=oW(ho,"hooks.".concat(L));E?.(),T?.()}};N("useMountEffect"),aW(function(){g(),j(),n()||(b(),o||k())}),ry(function(){N("useUpdateEffect")}),KNe(function(){N("useUnmountEffect")})};function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o6.apply(null,arguments)}function jm(e){"@babel/helpers - typeof";return jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jm(e)}function fAe(e,t){if(jm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hAe(e){var t=fAe(e,"string");return jm(t)=="symbol"?t:t+""}function pAe(e,t,n){return(t=hAe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mAe(e){if(Array.isArray(e))return e}function gAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function SR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vAe(e,t){if(e){if(typeof e=="string")return SR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SR(e,t):void 0}}
1674function yAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1675In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xAe(e,t){return mAe(e)||gAe(e,t)||vAe(e,t)||yAe()}var bAe={root:function(t){var n=t.props;return Hy("",n.className)},toolbar:"",content:""},wAe=` 1676/*! 1677 * Quill Editor v2.0.2 1678 * https://quilljs.com 1679 * Copyright (c) 2017-2024, Slab 1680 * Copyright (c) 2014, Jason Chen 1681 * Copyright (c) 2013, salesforce.com 1682 */ 1683.ql-container { 1684 box-sizing: border-box; 1685 font-family: Helvetica, Arial, sans-serif; 1686 font-size: 13px; 1687 height: 100%; 1688 margin: 0; 1689 position: relative; 1690} 1691.ql-container.ql-disabled .ql-tooltip { 1692 visibility: hidden; 1693} 1694.ql-container:not(.ql-disabled) li[data-list="checked"] > .ql-ui, 1695.ql-container:not(.ql-disabled) li[data-list="unchecked"] > .ql-ui { 1696 cursor: pointer; 1697} 1698.ql-clipboard { 1699 left: -100000px; 1700 height: 1px; 1701 overflow-y: hidden; 1702 position: absolute; 1703 top: 50%; 1704} 1705.ql-clipboard p { 1706 margin: 0; 1707 padding: 0; 1708} 1709.ql-editor { 1710 box-sizing: border-box; 1711 counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 1712 list-9; 1713 line-height: 1.42; 1714 height: 100%; 1715 outline: none; 1716 overflow-y: auto; 1717 padding: 12px 15px; 1718 tab-size: 4; 1719 -moz-tab-size: 4; 1720 text-align: left; 1721 white-space: pre-wrap; 1722 word-wrap: break-word; 1723} 1724.ql-editor > * { 1725 cursor: text; 1726} 1727.ql-editor p, 1728.ql-editor ol, 1729.ql-editor pre, 1730.ql-editor blockquote, 1731.ql-editor h1, 1732.ql-editor h2, 1733.ql-editor h3, 1734.ql-editor h4, 1735.ql-editor h5, 1736.ql-editor h6 { 1737 margin: 0; 1738 padding: 0; 1739} 1740@supports (counter-set: none) { 1741 .ql-editor p, 1742 .ql-editor h1, 1743 .ql-editor h2, 1744 .ql-editor h3, 1745 .ql-editor h4, 1746 .ql-editor h5, 1747 .ql-editor h6 { 1748 counter-set: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 1749 list-9; 1750 } 1751} 1752@supports not (counter-set: none) { 1753 .ql-editor p, 1754 .ql-editor h1, 1755 .ql-editor h2, 1756 .ql-editor h3, 1757 .ql-editor h4, 1758 .ql-editor h5, 1759 .ql-editor h6 { 1760 counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 1761 list-8 list-9; 1762 } 1763} 1764.ql-editor table { 1765 border-collapse: collapse; 1766} 1767.ql-editor td { 1768 border: 1px solid #000; 1769 padding: 2px 5px; 1770} 1771.ql-editor ol { 1772 padding-left: 1.5em; 1773} 1774.ql-editor li { 1775 list-style-type: none; 1776 padding-left: 1.5em; 1777 position: relative; 1778} 1779.ql-editor li > .ql-ui:before { 1780 display: inline-block; 1781 margin-left: -1.5em; 1782 margin-right: 0.3em; 1783 text-align: right; 1784 white-space: nowrap; 1785 width: 1.2em; 1786} 1787.ql-editor li[data-list="checked"] > .ql-ui, 1788.ql-editor li[data-list="unchecked"] > .ql-ui { 1789 color: #777; 1790} 1791.ql-editor li[data-list="bullet"] > .ql-ui:before { 1792 content: "\\2022"; 1793} 1794.ql-editor li[data-list="checked"] > .ql-ui:before { 1795 content: "\\2611"; 1796} 1797.ql-editor li[data-list="unchecked"] > .ql-ui:before { 1798 content: "\\2610"; 1799} 1800@supports (counter-set: none) { 1801 .ql-editor li[data-list] { 1802 counter-set: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; 1803 } 1804} 1805@supports not (counter-set: none) { 1806 .ql-editor li[data-list] { 1807 counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 1808 list-9; 1809 } 1810} 1811.ql-editor li[data-list="ordered"] { 1812 counter-increment: list-0; 1813} 1814.ql-editor li[data-list="ordered"] > .ql-ui:before { 1815 content: counter(list-0, decimal) ". "; 1816} 1817.ql-editor li[data-list="ordered"].ql-indent-1 { 1818 counter-increment: list-1; 1819} 1820.ql-editor li[data-list="ordered"].ql-indent-1 > .ql-ui:before { 1821 content: counter(list-1, lower-alpha) ". "; 1822} 1823@supports (counter-set: none) { 1824 .ql-editor li[data-list].ql-indent-1 { 1825 counter-set: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; 1826 } 1827} 1828@supports not (counter-set: none) { 1829 .ql-editor li[data-list].ql-indent-1 { 1830 counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9; 1831 } 1832} 1833.ql-editor li[data-list="ordered"].ql-indent-2 { 1834 counter-increment: list-2; 1835} 1836.ql-editor li[data-list="ordered"].ql-indent-2 > .ql-ui:before { 1837 content: counter(list-2, lower-roman) ". "; 1838} 1839@supports (counter-set: none) { 1840 .ql-editor li[data-list].ql-indent-2 { 1841 counter-set: list-3 list-4 list-5 list-6 list-7 list-8 list-9; 1842 } 1843} 1844@supports not (counter-set: none) { 1845 .ql-editor li[data-list].ql-indent-2 { 1846 counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9; 1847 } 1848} 1849.ql-editor li[data-list="ordered"].ql-indent-3 { 1850 counter-increment: list-3; 1851} 1852.ql-editor li[data-list="ordered"].ql-indent-3 > .ql-ui:before { 1853 content: counter(list-3, decimal) ". "; 1854} 1855@supports (counter-set: none) { 1856 .ql-editor li[data-list].ql-indent-3 { 1857 counter-set: list-4 list-5 list-6 list-7 list-8 list-9; 1858 } 1859} 1860@supports not (counter-set: none) { 1861 .ql-editor li[data-list].ql-indent-3 { 1862 counter-reset: list-4 list-5 list-6 list-7 list-8 list-9; 1863 } 1864} 1865.ql-editor li[data-list="ordered"].ql-indent-4 { 1866 counter-increment: list-4; 1867} 1868.ql-editor li[data-list="ordered"].ql-indent-4 > .ql-ui:before { 1869 content: counter(list-4, lower-alpha) ". "; 1870} 1871@supports (counter-set: none) { 1872 .ql-editor li[data-list].ql-indent-4 { 1873 counter-set: list-5 list-6 list-7 list-8 list-9; 1874 } 1875} 1876@supports not (counter-set: none) { 1877 .ql-editor li[data-list].ql-indent-4 { 1878 counter-reset: list-5 list-6 list-7 list-8 list-9; 1879 } 1880} 1881.ql-editor li[data-list="ordered"].ql-indent-5 { 1882 counter-increment: list-5; 1883} 1884.ql-editor li[data-list="ordered"].ql-indent-5 > .ql-ui:before { 1885 content: counter(list-5, lower-roman) ". "; 1886} 1887@supports (counter-set: none) { 1888 .ql-editor li[data-list].ql-indent-5 { 1889 counter-set: list-6 list-7 list-8 list-9; 1890 } 1891} 1892@supports not (counter-set: none) { 1893 .ql-editor li[data-list].ql-indent-5 { 1894 counter-reset: list-6 list-7 list-8 list-9; 1895 } 1896} 1897.ql-editor li[data-list="ordered"].ql-indent-6 { 1898 counter-increment: list-6; 1899} 1900.ql-editor li[data-list="ordered"].ql-indent-6 > .ql-ui:before { 1901 content: counter(list-6, decimal) ". "; 1902} 1903@supports (counter-set: none) { 1904 .ql-editor li[data-list].ql-indent-6 { 1905 counter-set: list-7 list-8 list-9; 1906 } 1907} 1908@supports not (counter-set: none) { 1909 .ql-editor li[data-list].ql-indent-6 { 1910 counter-reset: list-7 list-8 list-9; 1911 } 1912} 1913.ql-editor li[data-list="ordered"].ql-indent-7 { 1914 counter-increment: list-7; 1915} 1916.ql-editor li[data-list="ordered"].ql-indent-7 > .ql-ui:before { 1917 content: counter(list-7, lower-alpha) ". "; 1918} 1919@supports (counter-set: none) { 1920 .ql-editor li[data-list].ql-indent-7 { 1921 counter-set: list-8 list-9; 1922 } 1923} 1924@supports not (counter-set: none) { 1925 .ql-editor li[data-list].ql-indent-7 { 1926 counter-reset: list-8 list-9; 1927 } 1928} 1929.ql-editor li[data-list="ordered"].ql-indent-8 { 1930 counter-increment: list-8; 1931} 1932.ql-editor li[data-list="ordered"].ql-indent-8 > .ql-ui:before { 1933 content: counter(list-8, lower-roman) ". "; 1934} 1935@supports (counter-set: none) { 1936 .ql-editor li[data-list].ql-indent-8 { 1937 counter-set: list-9; 1938 } 1939} 1940@supports not (counter-set: none) { 1941 .ql-editor li[data-list].ql-indent-8 { 1942 counter-reset: list-9; 1943 } 1944} 1945.ql-editor li[data-list="ordered"].ql-indent-9 { 1946 counter-increment: list-9; 1947} 1948.ql-editor li[data-list="ordered"].ql-indent-9 > .ql-ui:before { 1949 content: counter(list-9, decimal) ". "; 1950} 1951.ql-editor .ql-indent-1:not(.ql-direction-rtl) { 1952 padding-left: 3em; 1953} 1954.ql-editor li.ql-indent-1:not(.ql-direction-rtl) { 1955 padding-left: 4.5em; 1956} 1957.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right { 1958 padding-right: 3em; 1959} 1960.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right { 1961 padding-right: 4.5em; 1962} 1963.ql-editor .ql-indent-2:not(.ql-direction-rtl) { 1964 padding-left: 6em; 1965} 1966.ql-editor li.ql-indent-2:not(.ql-direction-rtl) { 1967 padding-left: 7.5em; 1968} 1969.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right { 1970 padding-right: 6em; 1971} 1972.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right { 1973 padding-right: 7.5em; 1974} 1975.ql-editor .ql-indent-3:not(.ql-direction-rtl) { 1976 padding-left: 9em; 1977} 1978.ql-editor li.ql-indent-3:not(.ql-direction-rtl) { 1979 padding-left: 10.5em; 1980} 1981.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right { 1982 padding-right: 9em; 1983} 1984.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right { 1985 padding-right: 10.5em; 1986} 1987.ql-editor .ql-indent-4:not(.ql-direction-rtl) { 1988 padding-left: 12em; 1989} 1990.ql-editor li.ql-indent-4:not(.ql-direction-rtl) { 1991 padding-left: 13.5em; 1992} 1993.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right { 1994 padding-right: 12em; 1995} 1996.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right { 1997 padding-right: 13.5em; 1998} 1999.ql-editor .ql-indent-5:not(.ql-direction-rtl) { 2000 padding-left: 15em; 2001} 2002.ql-editor li.ql-indent-5:not(.ql-direction-rtl) { 2003 padding-left: 16.5em; 2004} 2005.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right { 2006 padding-right: 15em; 2007} 2008.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right { 2009 padding-right: 16.5em; 2010} 2011.ql-editor .ql-indent-6:not(.ql-direction-rtl) { 2012 padding-left: 18em; 2013} 2014.ql-editor li.ql-indent-6:not(.ql-direction-rtl) { 2015 padding-left: 19.5em; 2016} 2017.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right { 2018 padding-right: 18em; 2019} 2020.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right { 2021 padding-right: 19.5em; 2022} 2023.ql-editor .ql-indent-7:not(.ql-direction-rtl) { 2024 padding-left: 21em; 2025} 2026.ql-editor li.ql-indent-7:not(.ql-direction-rtl) { 2027 padding-left: 22.5em; 2028} 2029.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right { 2030 padding-right: 21em; 2031} 2032.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right { 2033 padding-right: 22.5em; 2034} 2035.ql-editor .ql-indent-8:not(.ql-direction-rtl) { 2036 padding-left: 24em; 2037} 2038.ql-editor li.ql-indent-8:not(.ql-direction-rtl) { 2039 padding-left: 25.5em; 2040} 2041.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right { 2042 padding-right: 24em; 2043} 2044.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right { 2045 padding-right: 25.5em; 2046} 2047.ql-editor .ql-indent-9:not(.ql-direction-rtl) { 2048 padding-left: 27em; 2049} 2050.ql-editor li.ql-indent-9:not(.ql-direction-rtl) { 2051 padding-left: 28.5em; 2052} 2053.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right { 2054 padding-right: 27em; 2055} 2056.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right { 2057 padding-right: 28.5em; 2058} 2059.ql-editor li.ql-direction-rtl { 2060 padding-right: 1.5em; 2061} 2062.ql-editor li.ql-direction-rtl > .ql-ui:before { 2063 margin-left: 0.3em; 2064 margin-right: -1.5em; 2065 text-align: left; 2066} 2067.ql-editor table { 2068 table-layout: fixed; 2069 width: 100%; 2070} 2071.ql-editor table td { 2072 outline: none; 2073} 2074.ql-editor .ql-code-block-container { 2075 font-family: monospace; 2076} 2077.ql-editor .ql-video { 2078 display: block; 2079 max-width: 100%; 2080} 2081.ql-editor .ql-video.ql-align-center { 2082 margin: 0 auto; 2083} 2084.ql-editor .ql-video.ql-align-right { 2085 margin: 0 0 0 auto; 2086} 2087.ql-editor .ql-bg-black { 2088 background-color: #000; 2089} 2090.ql-editor .ql-bg-red { 2091 background-color: #e60000; 2092} 2093.ql-editor .ql-bg-orange { 2094 background-color: #f90; 2095} 2096.ql-editor .ql-bg-yellow { 2097 background-color: #ff0; 2098} 2099.ql-editor .ql-bg-green { 2100 background-color: #008a00; 2101} 2102.ql-editor .ql-bg-blue { 2103 background-color: #06c; 2104} 2105.ql-editor .ql-bg-purple { 2106 background-color: #93f; 2107} 2108.ql-editor .ql-color-white { 2109 color: #fff; 2110} 2111.ql-editor .ql-color-red { 2112 color: #e60000; 2113} 2114.ql-editor .ql-color-orange { 2115 color: #f90; 2116} 2117.ql-editor .ql-color-yellow { 2118 color: #ff0; 2119} 2120.ql-editor .ql-color-green { 2121 color: #008a00; 2122} 2123.ql-editor .ql-color-blue { 2124 color: #06c; 2125} 2126.ql-editor .ql-color-purple { 2127 color: #93f; 2128} 2129.ql-editor .ql-font-serif { 2130 font-family: Georgia, Times New Roman, serif; 2131} 2132.ql-editor .ql-font-monospace { 2133 font-family: Monaco, Courier New, monospace; 2134} 2135.ql-editor .ql-size-small {
2136 font-size: 0.75em; 2137} 2138.ql-editor .ql-size-large { 2139 font-size: 1.5em; 2140} 2141.ql-editor .ql-size-huge { 2142 font-size: 2.5em; 2143} 2144.ql-editor .ql-direction-rtl { 2145 direction: rtl; 2146 text-align: inherit; 2147} 2148.ql-editor .ql-align-center { 2149 text-align: center; 2150} 2151.ql-editor .ql-align-justify { 2152 text-align: justify; 2153} 2154.ql-editor .ql-align-right { 2155 text-align: right; 2156} 2157.ql-editor .ql-ui { 2158 position: absolute; 2159} 2160.ql-editor.ql-blank::before { 2161 color: rgba(0, 0, 0, 0.6); 2162 content: attr(data-placeholder); 2163 font-style: italic; 2164 left: 15px; 2165 pointer-events: none; 2166 position: absolute; 2167 right: 15px; 2168} 2169.ql-snow.ql-toolbar:after, 2170.ql-snow .ql-toolbar:after { 2171 clear: both; 2172 content: ""; 2173 display: table; 2174} 2175.ql-snow.ql-toolbar button, 2176.ql-snow .ql-toolbar button { 2177 background: none; 2178 border: none; 2179 cursor: pointer; 2180 display: inline-block; 2181 float: left; 2182 height: 24px; 2183 padding: 3px 5px; 2184 width: 28px; 2185} 2186.ql-snow.ql-toolbar button svg, 2187.ql-snow .ql-toolbar button svg { 2188 float: left; 2189 height: 100%; 2190} 2191.ql-snow.ql-toolbar button:active:hover, 2192.ql-snow .ql-toolbar button:active:hover { 2193 outline: none; 2194} 2195.ql-snow.ql-toolbar input.ql-image[type="file"], 2196.ql-snow .ql-toolbar input.ql-image[type="file"] { 2197 display: none; 2198} 2199.ql-snow.ql-toolbar button:hover, 2200.ql-snow .ql-toolbar button:hover, 2201.ql-snow.ql-toolbar button:focus, 2202.ql-snow .ql-toolbar button:focus, 2203.ql-snow.ql-toolbar button.ql-active, 2204.ql-snow .ql-toolbar button.ql-active, 2205.ql-snow.ql-toolbar .ql-picker-label:hover, 2206.ql-snow .ql-toolbar .ql-picker-label:hover, 2207.ql-snow.ql-toolbar .ql-picker-label.ql-active, 2208.ql-snow .ql-toolbar .ql-picker-label.ql-active, 2209.ql-snow.ql-toolbar .ql-picker-item:hover, 2210.ql-snow .ql-toolbar .ql-picker-item:hover, 2211.ql-snow.ql-toolbar .ql-picker-item.ql-selected, 2212.ql-snow .ql-toolbar .ql-picker-item.ql-selected { 2213 color: #06c; 2214} 2215.ql-snow.ql-toolbar button:hover .ql-fill, 2216.ql-snow .ql-toolbar button:hover .ql-fill, 2217.ql-snow.ql-toolbar button:focus .ql-fill, 2218.ql-snow .ql-toolbar button:focus .ql-fill, 2219.ql-snow.ql-toolbar button.ql-active .ql-fill, 2220.ql-snow .ql-toolbar button.ql-active .ql-fill, 2221.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, 2222.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, 2223.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, 2224.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, 2225.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, 2226.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, 2227.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, 2228.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, 2229.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, 2230.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, 2231.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, 2232.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, 2233.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, 2234.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, 2235.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, 2236.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, 2237.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, 2238.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, 2239.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, 2240.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, 2241.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, 2242.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill { 2243 fill: #06c; 2244} 2245.ql-snow.ql-toolbar button:hover .ql-stroke, 2246.ql-snow .ql-toolbar button:hover .ql-stroke, 2247.ql-snow.ql-toolbar button:focus .ql-stroke, 2248.ql-snow .ql-toolbar button:focus .ql-stroke, 2249.ql-snow.ql-toolbar button.ql-active .ql-stroke, 2250.ql-snow .ql-toolbar button.ql-active .ql-stroke, 2251.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, 2252.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, 2253.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, 2254.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, 2255.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, 2256.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, 2257.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, 2258.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, 2259.ql-snow.ql-toolbar button:hover .ql-stroke-miter, 2260.ql-snow .ql-toolbar button:hover .ql-stroke-miter, 2261.ql-snow.ql-toolbar button:focus .ql-stroke-miter, 2262.ql-snow .ql-toolbar button:focus .ql-stroke-miter, 2263.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, 2264.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, 2265.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, 2266.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, 2267.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, 2268.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, 2269.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, 2270.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, 2271.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, 2272.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter { 2273 stroke: #06c; 2274} 2275@media (pointer: coarse) { 2276 .ql-snow.ql-toolbar button:hover:not(.ql-active), 2277 .ql-snow .ql-toolbar button:hover:not(.ql-active) { 2278 color: #444; 2279 } 2280 .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill, 2281 .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill, 2282 .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill, 2283 .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill { 2284 fill: #444; 2285 } 2286 .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke, 2287 .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke, 2288 .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter, 2289 .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter { 2290 stroke: #444; 2291 } 2292} 2293.ql-snow { 2294 box-sizing: border-box; 2295} 2296.ql-snow * { 2297 box-sizing: border-box; 2298} 2299.ql-snow .ql-hidden { 2300 display: none; 2301} 2302.ql-snow .ql-out-bottom, 2303.ql-snow .ql-out-top { 2304 visibility: hidden; 2305} 2306.ql-snow .ql-tooltip { 2307 position: absolute; 2308 transform: translateY(10px); 2309} 2310.ql-snow .ql-tooltip a { 2311 cursor: pointer; 2312 text-decoration: none; 2313} 2314.ql-snow .ql-tooltip.ql-flip { 2315 transform: translateY(-10px); 2316} 2317.ql-snow .ql-formats { 2318 display: inline-block; 2319 vertical-align: middle; 2320} 2321.ql-snow .ql-formats:after {
2322 clear: both; 2323 content: ""; 2324 display: table; 2325} 2326.ql-snow .ql-stroke { 2327 fill: none; 2328 stroke: #444; 2329 stroke-linecap: round; 2330 stroke-linejoin: round; 2331 stroke-width: 2; 2332} 2333.ql-snow .ql-stroke-miter { 2334 fill: none; 2335 stroke: #444; 2336 stroke-miterlimit: 10; 2337 stroke-width: 2; 2338} 2339.ql-snow .ql-fill, 2340.ql-snow .ql-stroke.ql-fill { 2341 fill: #444; 2342} 2343.ql-snow .ql-empty { 2344 fill: none; 2345} 2346.ql-snow .ql-even { 2347 fill-rule: evenodd; 2348} 2349.ql-snow .ql-thin, 2350.ql-snow .ql-stroke.ql-thin { 2351 stroke-width: 1; 2352} 2353.ql-snow .ql-transparent { 2354 opacity: 0.4; 2355} 2356.ql-snow .ql-direction svg:last-child { 2357 display: none; 2358} 2359.ql-snow .ql-direction.ql-active svg:last-child { 2360 display: inline; 2361} 2362.ql-snow .ql-direction.ql-active svg:first-child { 2363 display: none; 2364} 2365.ql-snow .ql-editor h1 { 2366 font-size: 2em; 2367} 2368.ql-snow .ql-editor h2 { 2369 font-size: 1.5em; 2370} 2371.ql-snow .ql-editor h3 { 2372 font-size: 1.17em; 2373} 2374.ql-snow .ql-editor h4 { 2375 font-size: 1em; 2376} 2377.ql-snow .ql-editor h5 { 2378 font-size: 0.83em; 2379} 2380.ql-snow .ql-editor h6 { 2381 font-size: 0.67em; 2382} 2383.ql-snow .ql-editor a { 2384 text-decoration: underline; 2385} 2386.ql-snow .ql-editor blockquote { 2387 border-left: 4px solid #ccc; 2388 margin-bottom: 5px; 2389 margin-top: 5px; 2390 padding-left: 16px; 2391} 2392.ql-snow .ql-editor code, 2393.ql-snow .ql-editor .ql-code-block-container { 2394 background-color: #f0f0f0; 2395 border-radius: 3px; 2396} 2397.ql-snow .ql-editor .ql-code-block-container { 2398 margin-bottom: 5px; 2399 margin-top: 5px; 2400 padding: 5px 10px; 2401} 2402.ql-snow .ql-editor code { 2403 font-size: 85%; 2404 padding: 2px 4px; 2405} 2406.ql-snow .ql-editor .ql-code-block-container { 2407 background-color: #23241f; 2408 color: #f8f8f2; 2409 overflow: visible; 2410} 2411.ql-snow .ql-editor img { 2412 max-width: 100%; 2413} 2414.ql-snow .ql-picker { 2415 color: #444; 2416 display: inline-block; 2417 float: left; 2418 font-size: 14px; 2419 font-weight: 500; 2420 height: 24px; 2421 position: relative; 2422 vertical-align: middle; 2423} 2424.ql-snow .ql-picker-label { 2425 cursor: pointer; 2426 display: inline-block; 2427 height: 100%; 2428 padding-left: 8px; 2429 padding-right: 2px; 2430 position: relative; 2431 width: 100%; 2432} 2433.ql-snow .ql-picker-label::before { 2434 display: inline-block; 2435 line-height: 22px; 2436} 2437.ql-snow .ql-picker-options { 2438 background-color: #fff; 2439 display: none; 2440 min-width: 100%; 2441 padding: 4px 8px; 2442 position: absolute; 2443 white-space: nowrap; 2444} 2445.ql-snow .ql-picker-options .ql-picker-item { 2446 cursor: pointer; 2447 display: block; 2448 padding-bottom: 5px; 2449 padding-top: 5px; 2450} 2451.ql-snow .ql-picker.ql-expanded .ql-picker-label { 2452 color: #ccc; 2453 z-index: 2; 2454} 2455.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill { 2456 fill: #ccc; 2457} 2458.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke { 2459 stroke: #ccc; 2460} 2461.ql-snow .ql-picker.ql-expanded .ql-picker-options { 2462 display: block; 2463 margin-top: -1px; 2464 top: 100%; 2465 z-index: 1; 2466} 2467.ql-snow .ql-color-picker, 2468.ql-snow .ql-icon-picker { 2469 width: 28px; 2470} 2471.ql-snow .ql-color-picker .ql-picker-label, 2472.ql-snow .ql-icon-picker .ql-picker-label { 2473 padding: 2px 4px; 2474} 2475.ql-snow .ql-color-picker .ql-picker-label svg, 2476.ql-snow .ql-icon-picker .ql-picker-label svg { 2477 right: 4px; 2478} 2479.ql-snow .ql-icon-picker .ql-picker-options { 2480 padding: 4px 0; 2481} 2482.ql-snow .ql-icon-picker .ql-picker-item { 2483 height: 24px; 2484 width: 24px; 2485 padding: 2px 4px; 2486} 2487.ql-snow .ql-color-picker .ql-picker-options { 2488 padding: 3px 5px; 2489 width: 152px; 2490} 2491.ql-snow .ql-color-picker .ql-picker-item { 2492 border: 1px solid transparent; 2493 float: left; 2494 height: 16px; 2495 margin: 2px; 2496 padding: 0; 2497 width: 16px; 2498} 2499.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg { 2500 position: absolute; 2501 margin-top: -9px; 2502 right: 0; 2503 top: 50%; 2504 width: 18px; 2505} 2506.ql-snow 2507 .ql-picker.ql-header 2508 .ql-picker-label[data-label]:not([data-label=""])::before, 2509.ql-snow 2510 .ql-picker.ql-font 2511 .ql-picker-label[data-label]:not([data-label=""])::before, 2512.ql-snow 2513 .ql-picker.ql-size 2514 .ql-picker-label[data-label]:not([data-label=""])::before, 2515.ql-snow 2516 .ql-picker.ql-header 2517 .ql-picker-item[data-label]:not([data-label=""])::before, 2518.ql-snow 2519 .ql-picker.ql-font 2520 .ql-picker-item[data-label]:not([data-label=""])::before, 2521.ql-snow 2522 .ql-picker.ql-size 2523 .ql-picker-item[data-label]:not([data-label=""])::before { 2524 content: attr(data-label); 2525} 2526.ql-snow .ql-picker.ql-header { 2527 width: 98px; 2528} 2529.ql-snow .ql-picker.ql-header .ql-picker-label::before, 2530.ql-snow .ql-picker.ql-header .ql-picker-item::before { 2531 content: "Normal"; 2532} 2533.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, 2534.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { 2535 content: "Heading 1"; 2536} 2537.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, 2538.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { 2539 content: "Heading 2"; 2540} 2541.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, 2542.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { 2543 content: "Heading 3"; 2544} 2545.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, 2546.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { 2547 content: "Heading 4"; 2548} 2549.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before, 2550.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { 2551 content: "Heading 5"; 2552} 2553.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before, 2554.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { 2555 content: "Heading 6"; 2556} 2557.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { 2558 font-size: 2em; 2559} 2560.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { 2561 font-size: 1.5em; 2562} 2563.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { 2564 font-size: 1.17em; 2565} 2566.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { 2567 font-size: 1em; 2568} 2569.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before { 2570 font-size: 0.83em; 2571} 2572.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before { 2573 font-size: 0.67em; 2574} 2575.ql-snow .ql-picker.ql-font { 2576 width: 108px; 2577} 2578.ql-snow .ql-picker.ql-font .ql-picker-label::before, 2579.ql-snow .ql-picker.ql-font .ql-picker-item::before { 2580 content: "Sans Serif"; 2581} 2582.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before, 2583.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { 2584 content: "Serif"; 2585} 2586.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before, 2587.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { 2588 content: "Monospace"; 2589} 2590.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { 2591 font-family: Georgia, Times New Roman, serif; 2592} 2593.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before { 2594 font-family: Monaco, Courier New, monospace; 2595} 2596.ql-snow .ql-picker.ql-size { 2597 width: 98px; 2598} 2599.ql-snow .ql-picker.ql-size .ql-picker-label::before, 2600.ql-snow .ql-picker.ql-size .ql-picker-item::before { 2601 content: "Normal"; 2602} 2603.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before, 2604.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { 2605 content: "Small"; 2606} 2607.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before, 2608.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { 2609 content: "Large"; 2610} 2611.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before, 2612.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { 2613 content: "Huge";
2614} 2615.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { 2616 font-size: 10px; 2617} 2618.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { 2619 font-size: 18px; 2620} 2621.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { 2622 font-size: 32px; 2623} 2624.ql-snow .ql-color-picker.ql-background .ql-picker-item { 2625 background-color: #fff; 2626} 2627.ql-snow .ql-color-picker.ql-color .ql-picker-item { 2628 background-color: #000; 2629} 2630.ql-code-block-container { 2631 position: relative; 2632} 2633.ql-code-block-container .ql-ui { 2634 right: 5px; 2635 top: 5px; 2636} 2637.ql-toolbar.ql-snow { 2638 border: 1px solid #ccc; 2639 box-sizing: border-box; 2640 font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; 2641 padding: 8px; 2642} 2643.ql-toolbar.ql-snow .ql-formats { 2644 margin-right: 15px; 2645} 2646.ql-toolbar.ql-snow .ql-picker-label { 2647 border: 1px solid transparent; 2648} 2649.ql-toolbar.ql-snow .ql-picker-options { 2650 border: 1px solid transparent; 2651 box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px; 2652} 2653.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label { 2654 border-color: #ccc; 2655} 2656.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options { 2657 border-color: #ccc; 2658} 2659.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected, 2660.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover { 2661 border-color: #000; 2662} 2663.ql-toolbar.ql-snow + .ql-container.ql-snow { 2664 border-top: 0; 2665} 2666.ql-snow .ql-tooltip { 2667 background-color: #fff; 2668 border: 1px solid #ccc; 2669 box-shadow: 0 0 5px #ddd; 2670 color: #444; 2671 padding: 5px 12px; 2672 white-space: nowrap; 2673} 2674.ql-snow .ql-tooltip::before { 2675 content: "Visit URL:"; 2676 line-height: 26px; 2677 margin-right: 8px; 2678} 2679.ql-snow .ql-tooltip input[type="text"] { 2680 display: none; 2681 border: 1px solid #ccc; 2682 font-size: 13px; 2683 height: 26px; 2684 margin: 0; 2685 padding: 3px 5px; 2686 width: 170px; 2687} 2688.ql-snow .ql-tooltip a.ql-preview { 2689 display: inline-block; 2690 max-width: 200px; 2691 overflow-x: hidden; 2692 text-overflow: ellipsis; 2693 vertical-align: top; 2694} 2695.ql-snow .ql-tooltip a.ql-action::after { 2696 border-right: 1px solid #ccc; 2697 content: "Edit"; 2698 margin-left: 16px; 2699 padding-right: 8px; 2700} 2701.ql-snow .ql-tooltip a.ql-remove::before { 2702 content: "Remove"; 2703 margin-left: 8px; 2704} 2705.ql-snow .ql-tooltip a { 2706 line-height: 26px; 2707} 2708.ql-snow .ql-tooltip.ql-editing a.ql-preview, 2709.ql-snow .ql-tooltip.ql-editing a.ql-remove { 2710 display: none; 2711} 2712.ql-snow .ql-tooltip.ql-editing input[type="text"] { 2713 display: inline-block; 2714} 2715.ql-snow .ql-tooltip.ql-editing a.ql-action::after { 2716 border-right: 0; 2717 content: "Save"; 2718 padding-right: 0; 2719} 2720.ql-snow .ql-tooltip[data-mode="link"]::before { 2721 content: "Enter link:"; 2722} 2723.ql-snow .ql-tooltip[data-mode="formula"]::before { 2724 content: "Enter formula:"; 2725} 2726.ql-snow .ql-tooltip[data-mode="video"]::before { 2727 content: "Enter video:"; 2728} 2729.ql-snow a { 2730 color: #06c; 2731} 2732.ql-container.ql-snow { 2733 border: 1px solid #ccc; 2734} 2735`,p0=Gn.extend({defaultProps:{__TYPE:"Editor",id:null,value:null,style:null,className:null,placeholder:null,readOnly:!1,modules:null,formats:null,theme:"snow",showHeader:!0,headerTemplate:null,onTextChange:null,onSelectionChange:null,onLoad:null,maxLength:null,children:void 0},css:{classes:bAe,styles:wAe}});function CR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CR(Object(n),!0).forEach(function(r){pAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jAe=(function(){try{return Quill}catch{return null}})(),lW=v.memo(v.forwardRef(function(e,t){var n=XNe(),r=v.useContext(KN),a=p0.getProps(e,r),s=p0.setMetaData({props:a}),o=s.ptm,l=s.cx,d=s.isUnstyled;dAe(p0.css.styles,d,{name:"editor"});var u=v.useRef(null),h=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(!1),b=v.useState(!1),w=xAe(b,2),j=w[0],S=w[1];aW(function(){if(!y.current){var q={modules:kR({toolbar:a.showHeader?p.current:!1},a.modules),placeholder:a.placeholder,readOnly:a.readOnly,theme:a.theme,formats:a.formats};jAe?L(new Quill(h.current,q)):ENe(()=>import("./quill-D9upBWuU.js"),[]).then(function(D){if(D&&Zc.isExist(h.current)){var z;D.default?z=new D.default(h.current,q):z=new D(h.current,q),L(z)}}),y.current=!0}});var k=function(D,z,V){var W=h.current.children[0],B=W?W.innerHTML:null,H=g.current.getText();if(B==="<p><br></p>"&&(B=null),V==="api"){var G=h.current.children[0],K=document.createElement("div");if(K.innerHTML=a.value||"",Zc.isEqualElement(G,K))return}if(a.maxLength){var M=g.current.getLength();M>a.maxLength&&g.current.deleteText(a.maxLength,M)}a.onTextChange&&a.onTextChange({htmlValue:B,textValue:H,delta:D,source:V})},N=function(D,z,V){a.onSelectionChange&&a.onSelectionChange({range:D,oldRange:z,source:V})},_=v.useRef(a.value);_.current=a.value;var L=function(D){g.current=D,_.current&&D.setContents(D.clipboard.convert({html:_.current,text:""})),S(!0)};ry(function(){if(j)return g.current.on("text-change",k),g.current.on("selection-change",N),function(){g.current.off("text-change",k),g.current.off("selection-change",N)}}),ry(function(){j&&g.current&&g.current.getModule("toolbar")&&a.onLoad&&a.onLoad(g.current)},[j]),ry(function(){g.current&&!g.current.hasFocus()&&(a.value?g.current.setContents(g.current.clipboard.convert({html:a.value,text:""})):g.current.setText(""))},[a.value]),v.useImperativeHandle(t,function(){return{props:a,getQuill:function(){return g.current},getElement:function(){return u.current},getContent:function(){return h.current},getToolbar:function(){return p.current}}});var E=function(){var D=n({ref:p,className:l("toolbar")},o("toolbar"));if(a.showHeader===!1)return null;if(a.headerTemplate)return v.createElement("div",D,a.headerTemplate);var z=function(B,H){return n(B&&kR({},B),o(H))},V=n({className:"ql-formats"},o("formats"));return v.createElement("div",D,v.createElement("span",V,v.createElement("select",z({className:"ql-header",defaultValue:"0"},"header"),v.createElement("option",z({value:"1"},"option"),"Heading"),v.createElement("option",z({value:"2"}
2735,"option"),"Subheading"),v.createElement("option",z({value:"0"},"option"),"Normal")),v.createElement("select",z({className:"ql-font"},"font"),v.createElement("option",z(void 0,"option")),v.createElement("option",z({value:"serif"},"option")),v.createElement("option",z({value:"monospace"},"option")))),v.createElement("span",V,v.createElement("button",z({type:"button",className:"ql-bold","aria-label":"Bold"},"bold")),v.createElement("button",z({type:"button",className:"ql-italic","aria-label":"Italic"},"italic")),v.createElement("button",z({type:"button",className:"ql-underline","aria-label":"Underline"},"underline"))),v.createElement("span",V,v.createElement("select",z({className:"ql-color"},"color")),v.createElement("select",z({className:"ql-background"},"background"))),v.createElement("span",V,v.createElement("button",z({type:"button",className:"ql-list",value:"ordered","aria-label":"Ordered List"},"list")),v.createElement("button",z({type:"button",className:"ql-list",value:"bullet","aria-label":"Unordered List"},"list")),v.createElement("select",z({className:"ql-align"},"select"),v.createElement("option",z({defaultValue:!0},"option")),v.createElement("option",z({value:"center"},"option")),v.createElement("option",z({value:"right"},"option")),v.createElement("option",z({value:"justify"},"option")))),v.createElement("span",V,v.createElement("button",z({type:"button",className:"ql-link","aria-label":"Insert Link"},"link")),v.createElement("button",z({type:"button",className:"ql-image","aria-label":"Insert Image"},"image")),v.createElement("button",z({type:"button",className:"ql-code-block","aria-label":"Insert Code Block"},"codeBlock"))),v.createElement("span",V,v.createElement("button",z({type:"button",className:"ql-clean","aria-label":"Remove Styles"},"clean"))))},T=E(),P=n({ref:h,className:l("content"),style:a.style},o("content")),$=v.createElement("div",P),O=n({className:Hy(a.className,l("root"))},p0.getOtherProps(a),o("root"));return v.createElement("div",o6({id:a.id,ref:u},O),T,$)}));lW.displayName="Editor";function dg({dataText:e,value:t,height:n,padding:r}){const[a,s]=v.useState(""),o=l=>{s(l),e(l)};return v.useEffect(()=>{s(t)},[t]),i.jsx("div",{className:"card",children:i.jsx(lW,{value:a,onTextChange:l=>o(l.htmlValue),style:{height:`${n||"550px"}`,border:"none",backgroundColor:"#fff",padding:`${r||"20px"}`,fontSize:"15px",borderRadius:"0 0 8px 8px",boxShadow:"1px 3px 20px rgba(0, 0, 0, 0.02)"},placeholder:"... Type your text here"})})}const q3={title:"",date:"",categories:"",photo:"",content:""},SAe=()=>{const e=Te($=>$.mdaData),[t,n]=v.useState(!1),[r,a]=v.useState(null),[s,o]=v.useState(q3),[l,d]=v.useState(!1),[u,h]=v.useState(!1),[p,g]=v.useState(""),{data:y,isLoading:b,refetch:w}=Ke({queryKey:["admin-events",e?.name],queryFn:()=>JG(e.name),enabled:!!e?.name}),S=(y?.data||[]).filter($=>{if(!p)return!0;const O=p.toLowerCase();return $.title?.toLowerCase().includes(O)||($.categories||[]).some(q=>q.toLowerCase().includes(O))}),k=()=>{a(null),o(q3),n(!0)},N=$=>{a($._id),o({title:$.title||"",date:$.date?String($.date).slice(0,10):"",categories:($.categories||[]).join(", "),photo:$.photo||"",content:$.content||""}),n(!0)},_=()=>{n(!1),o(q3),a(null)},L=$=>{o(O=>({...O,[$.target.name]:$.target.value}))},E=$=>{const O=$.target.files[0];if(!O)return;const q=URL.createObjectURL(O);o(D=>({...D,photo:q})),d(!0),wa(O,`${e.fullname.replace(/\s+/g,"-")}-event-${Date.now()}`).then(D=>{D.status==="ok"?o(z=>({...z,photo:D.url})):ie.error(D.message||"Failed to upload image. Please try again.")}).catch(D=>ie.error(D.message||"Failed to upload image. Please try again.")).finally(()=>d(!1))},T=()=>{if(!s.title||!s.date||!s.categories||!s.photo||!s.content){ie.error("Please fill in all fields, including an image, before saving.");return}h(!0);const $={title:s.title,date:s.date,categories:s.categories.split(",").map(q=>q.trim()).filter(Boolean),photo:s.photo,content:s.content,mda:e.name};(r?kNe(r,$):wNe($)).then(()=>{ie.success(r?"Event updated successfully!":"Event published successfully!"),_(),w()}).catch(q=>ie.error(q.message||"Failed to save event. Please try again.")).finally(()=>h(!1))},P=$=>{confirm(`Delete "${$.title}"? This cannot be undone.`)&&jNe($._id).then(()=>{ie.success("Event deleted successfully!"),w()}).catch(q=>ie.error(q.message||"Failed to delete event."))};return i.jsxs("div",{className:"flex flex-col gap-6",children:[(b||u)&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["MDA's Events -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Manage events for your MDA"})]}),i.jsx("div",{className:"h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search events...",value:p,onChange:g})}),i.jsxs("button",{onClick:k,className:"bg-green-800 text-[13px] curs
2735or-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Event"]})]}),i.jsx("div",{className:"table__main__body mt-16! rounded-xl border border-gray-100 bg-white overflow-x-auto",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-100 text-[11px] uppercase tracking-[1.5px] text-gray-500",children:[i.jsx("th",{className:"px-4 py-3 font-semibold w-[60px]",children:"S/N"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Title"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Categories"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Date"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"RSVPs"}),i.jsx("th",{className:"px-4 py-3 font-semibold text-right",children:"Actions"})]})}),i.jsx("tbody",{children:S.length>0?S.map(($,O)=>i.jsxs("tr",{className:"border-b border-gray-50 last:border-0 hover:bg-gray-50/60",children:[i.jsx("td",{className:"px-4 py-3 text-[14px] text-gray-500",children:O+1}),i.jsx("td",{className:"px-4 py-3 text-[14px] font-medium max-w-[280px]",children:i.jsx("span",{className:"line-clamp-2",children:$.title})}),i.jsx("td",{className:"px-4 py-3 text-[13px] text-gray-500",children:($.categories||[]).join(", ")}),i.jsx("td",{className:"px-4 py-3 text-[14px] text-gray-500",children:$.date?String($.date).slice(0,10):"â"}),i.jsx("td",{className:"px-4 py-3 text-[14px] text-gray-500",children:$.attendees?.length||0}),i.jsx("td",{className:"px-4 py-3",children:i.jsxs("div",{className:"flex items-center justify-end gap-4",children:[i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-gray-600 hover:text-green-700",onClick:()=>N($),children:[i.jsx(Do,{fontSize:14,strokeWidth:1.8})," Edit"]}),i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-red-500 hover:text-red-700",onClick:()=>P($),children:[i.jsx(nu,{fontSize:14,strokeWidth:1.8})," Delete"]})]})})]},$._id)):i.jsx("tr",{children:i.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-[14px] text-gray-500",children:p?"No matching events found.":"No events created yet."})})})]})}),t&&i.jsx("div",{className:"fixed inset-0 bg-black/40 z-[999] flex items-center justify-center p-4",onClick:_,children:i.jsxs("div",{className:"bg-white rounded-lg w-full max-w-[640px] max-h-[90vh] overflow-y-auto p-8 flex flex-col gap-6",onClick:$=>$.stopPropagation(),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-800",children:r?"Edit Event":"Add Event"}),i.jsx("button",{onClick:_,className:"cursor-pointer",children:i.jsx(et,{})})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Title"}),i.jsx("input",{type:"text",name:"title",placeholder:"Enter event title",value:s.title,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Date"}),i.jsx("input",{type:"date",name:"date",value:s.date,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Categories (comma separated)"}),i.jsx("input",{type:"text",name:"categories",placeholder:"e.g. Outreach, Health",value:s.categories,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Photo"}),i.jsx("input",{type:"file",id:"event_photo",accept:"image/*",onChange:E,disabled:l,hidden:!0}),i.jsx("button",{type:"button",onClick:()=>document.getElementById("event_photo").click(),disabled:l,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-4 py-3 rounded-lg cursor-pointer disabled:opacity-50 w-full text-left",children:l?"Uploading...":s.photo?"Change Photo":"Choose Photo"}),s.photo&&i.jsx("img",{src:s.photo,alt:"",className:"h-[160px] w-full object-cover rounded-lg bg-gray-100"})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Content"}),i.jsx(dg,{dataText:$=>o(O=>({...O,content:$})),value:s.content,height:"300px"})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx("button",{type:"button",onClick:_,className:"flex-1 py-3 rounded-[5px] border border-gray-200 bg-white text-gray-700 text-[13px] font-semibold cursor-pointer",children:"Cancel"}),i.jsx("button",{type:"button",onClick:T,disabled:u||l,className:"flex-1 py-3 rounded-[5px] bg-green-700 text-white text-[13px] font-bold cursor-pointer disabled:opacity-60",children:u?"Saving...":r?"Save Changes":"Publish Event"})]})]})})]})},fg=`${Nn}/gallery`,CAe=async e=>{const t=await De.post(`${fg}/add`,e);return t.status===200||t.status===201?t.data:{status:"bad",message:"Something went wrong!"}},cW=async e=>{const t=await De.get(`${fg}/get/all/${e}`);return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},kAe=async e=>{const t=await De.get(`${fg}/view/${e}`);return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},NAe=async(e,t)=>{const n=await De.put(`${fg}/update/${e}`,t);return n.status===200?n.data:{status:"bad",message:"Something went wrong!"}},AAe=async e=>{const t=await De.delete(`${fg}/delete/${e}`);return t.status===200?t.data:{status:"bad",message:"Something went wrong!"}},F3={title:"",description:"",photos:[]},EAe=()=>{const e=Te(D=>D.mdaData),[t,n]=v.useState(!1),[r,a]=v.useState(null),[s,o]=v.useState(F3),[l,d]=v.useState({}),[u,h]=v.useState(!1),[p,g]=v.useState(""),{data:y,isLoading:b,refetch:w}=Ke({queryKey:["admin-gallery",e?.name],queryFn:()=>cW(e.name),enabled:!!e?.name}),S=(y?.data||[]).filter(D=>{if(!p)return!0;const z=p.toLowerCase();return D.title?.toLowerCase().includes(z)||D.description?.toLowerCase().includes(z)}),k=()=>{a(null),o(F3),n(!0)},N=D=>{a(D._id),o({title:D.title||"",description:D.description||"",photos:D.photos?.length?D.photos:[]}),n(!0)},_=()=>{n(!1),o(F3),a(null)},L=D=>{o(z=>({...z,[D.target.name]:D.target.value}))},E=()=>{o(D=>({...D,photos:[...D.photos,{url:"",caption:""}]}))},T=D=>{o(z=>({...z,photos:z.photos.filter((V,W)=>W!==D)}))},P=(D,z)=>{o(V=>({...V,photos:V.photos.map((W,B)=>B===D?{...W,caption:z}:W)}))},$=(D,z)=>{if(!z)return;const V=URL.createObjectURL(z);o(W=>({...W,photos:W.photos.map((B,H)=>H===D?{...B,url:V}:B)})),d(W=>({...W,[D]:!0})),wa(z,`${e.fullname.replace(/\s+/g,"-")}-gallery-${Date.now()}-${D}`).then(W=>{W.status==="ok"?o(B=>({...B,photos:B.photos.map((H,G)=>G===D?{...H,url:W.url}:H)}
2735)):ie.error(W.message||"Failed to upload image. Please try again.")}).catch(W=>ie.error(W.message||"Failed to upload image. Please try again.")).finally(()=>{d(W=>{const B={...W};return delete B[D],B})})},O=()=>{const D=s.photos.filter(W=>W.url);if(!s.title||D.length===0){ie.error("Please add a title and at least one photo before saving.");return}h(!0);const z={mda:e.name,mdaFullname:e.fullname,title:s.title,description:s.description,photos:D};(r?NAe(r,z):CAe(z)).then(()=>{ie.success(r?"Album updated successfully!":"Album created successfully!"),_(),w()}).catch(W=>ie.error(W.message||"Failed to save album. Please try again.")).finally(()=>h(!1))},q=D=>{confirm(`Delete "${D.title}"? This cannot be undone.`)&&AAe(D._id).then(()=>{ie.success("Album deleted successfully!"),w()}).catch(V=>ie.error(V.message||"Failed to delete album."))};return i.jsxs("div",{className:"flex flex-col gap-6",children:[(b||u)&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["MDA's Gallery -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Manage photo albums for your MDA"})]}),i.jsx("div",{className:"h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search albums...",value:p,onChange:g})}),i.jsxs("button",{onClick:k,className:"bg-green-800 text-[13px] cursor-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Album"]})]}),i.jsx("div",{className:"table__main__body mt-16! grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:S.length>0?S.map(D=>i.jsxs("div",{className:"rounded-xl border border-gray-100 bg-white overflow-hidden",children:[i.jsx("div",{className:"h-[160px] w-full bg-gray-100",children:D.coverImage?i.jsx("img",{src:D.coverImage,alt:"",className:"h-full w-full object-cover"}):i.jsx("div",{className:"h-full w-full flex items-center justify-center text-gray-400",children:i.jsx(Ui,{})})}),i.jsxs("div",{className:"p-4 flex flex-col gap-1",children:[i.jsx("p",{className:"font-medium text-[14px] line-clamp-1",children:D.title}),i.jsxs("p",{className:"text-[12px] text-gray-500",children:[D.photos?.length||0," photos"]}),i.jsxs("div",{className:"flex items-center gap-4 mt-3",children:[i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-gray-600 hover:text-green-700",onClick:()=>N(D),children:[i.jsx(Do,{fontSize:14,strokeWidth:1.8})," Edit"]}),i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-red-500 hover:text-red-700",onClick:()=>q(D),children:[i.jsx(nu,{fontSize:14,strokeWidth:1.8})," Delete"]})]})]})]},D._id)):i.jsx("div",{className:"col-span-full rounded-xl border border-gray-100 bg-white px-4 py-8 text-center text-[14px] text-gray-500",children:p?"No matching albums found.":"No albums created yet."})}),t&&i.jsx("div",{className:"fixed inset-0 bg-black/40 z-[999] flex items-center justify-center p-4",onClick:_,children:i.jsxs("div",{className:"bg-white rounded-lg w-full max-w-[640px] max-h-[90vh] overflow-y-auto p-8 flex flex-col gap-6",onClick:D=>D.stopPropagation(),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-800",children:r?"Edit Album":"Add Album"}),i.jsx("button",{onClick:_,className:"cursor-pointer",children:i.jsx(et,{})})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Album Title"}),i.jsx("input",{type:"text",name:"title",placeholder:"e.g. World Health Day Outreach",value:s.title,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Description (optional)"}),i.jsx("textarea",{name:"description",placeholder:"Short description of this album",value:s.description,onChange:L,className:"p-4 w-full resize-none text-[15px] min-h-[80px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Photos"}),s.photos.map((D,z)=>{const V=!!l[z];return i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-[56px] h-[56px] rounded-lg bg-gray-100 flex items-center justify-center overflow-hidden shrink-0",children:[D.url?i.jsx("img",{src:D.url,alt:"",className:"w-full h-full object-cover"}):i.jsx(Ui,{className:"text-gray-400"}),V&&i.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:i.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent roun
2735ded-full animate-spin"})})]}),i.jsx("input",{type:"text",placeholder:"Caption (optional)",value:D.caption,onChange:W=>P(z,W.target.value),className:"flex-1 p-3 text-[13px] border-none outline-none bg-gray-50 rounded-lg"}),i.jsx("input",{type:"file",id:`gallery_photo_${z}`,accept:"image/*",hidden:!0,onChange:W=>$(z,W.target.files[0])}),i.jsx("button",{type:"button",disabled:V,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-3 py-2 rounded-[6px] cursor-pointer disabled:opacity-50 shrink-0",onClick:()=>document.getElementById(`gallery_photo_${z}`).click(),children:V?"...":D.url?"Change":"Upload"}),i.jsx("button",{type:"button",disabled:V,className:"text-gray-400 hover:text-red-500 cursor-pointer shrink-0",onClick:()=>T(z),"aria-label":"Remove photo",children:i.jsx(nu,{width:16})})]},z)}),i.jsxs("button",{type:"button",onClick:E,className:"text-[13px] font-medium text-green-700 flex items-center gap-1 cursor-pointer",children:[i.jsx(vr,{width:16})," Add Photo"]})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx("button",{type:"button",onClick:_,className:"flex-1 py-3 rounded-[5px] border border-gray-200 bg-white text-gray-700 text-[13px] font-semibold cursor-pointer",children:"Cancel"}),i.jsx("button",{type:"button",onClick:O,disabled:u,className:"flex-1 py-3 rounded-[5px] bg-green-700 text-white text-[13px] font-bold cursor-pointer disabled:opacity-60",children:u?"Saving...":r?"Save Changes":"Create Album"})]})]})})]})},Mf=`${Nn}/news`,_Ae=async e=>{const t=await De.post(`${Mf}/add`,e);return t.status===200?t.data:[]},XN=async(e,t)=>{const n=await De.get(`${Mf}/get/all/${t}/${e}`);return n.status===200?n.data:[]},ZN=async e=>{const t=await De.get(`${Mf}/get/all/${e}`);return t.status===200?t.data:[]},uW=async e=>{const t=await De.get(`${Mf}/view/${e}`);return t.status===200?t.data:[]},TAe=async(e,t)=>{const n=await De.put(`${Mf}/update/${e}`,t);return n.status===200?n.data:[]},LAe=async e=>{const t=await De.delete(`${Mf}/delete/${e}`);return t.status===200?t.data:[]},z3={title:"",date:"",categories:"",photo:"",content:""},OAe=()=>{const e=Te($=>$.mdaData),[t,n]=v.useState(!1),[r,a]=v.useState(null),[s,o]=v.useState(z3),[l,d]=v.useState(!1),[u,h]=v.useState(!1),[p,g]=v.useState(""),{data:y,isLoading:b,refetch:w}=Ke({queryKey:["admin-news",e?._id],queryFn:()=>ZN(e._id),enabled:!!e?._id}),S=(y?.data||[]).filter($=>{if(!p)return!0;const O=p.toLowerCase();return $.title?.toLowerCase().includes(O)||($.categories||[]).some(q=>q.toLowerCase().includes(O))}),k=()=>{a(null),o(z3),n(!0)},N=$=>{a($._id),o({title:$.title||"",date:$.date?String($.date).slice(0,10):"",categories:($.categories||[]).join(", "),photo:$.photo||"",content:$.content||""}),n(!0)},_=()=>{n(!1),o(z3),a(null)},L=$=>{o(O=>({...O,[$.target.name]:$.target.value}))},E=$=>{const O=$.target.files[0];if(!O)return;const q=URL.createObjectURL(O);o(D=>({...D,photo:q})),d(!0),wa(O,`${e.fullname.replace(/\s+/g,"-")}-news-${Date.now()}`).then(D=>{D.status==="ok"?o(z=>({...z,photo:D.url})):ie.error(D.message||"Failed to upload image. Please try again.")}).catch(D=>ie.error(D.message||"Failed to upload image. Please try again.")).finally(()=>d(!1))},T=()=>{if(!s.title||!s.date||!s.categories||!s.photo||!s.content){ie.error("Please fill in all fields, including an image, before saving.");return}h(!0);const $={title:s.title,date:s.date,categories:s.categories.split(",").map(q=>q.trim()).filter(Boolean),photo:s.photo,content:s.content,mda:"",targetMDA:[e._id]};(r?TAe(r,$):_Ae($)).then(()=>{ie.success(r?"News article updated successfully!":"News article published successfully!"),_(),w()}).catch(q=>ie.error(q.message||"Failed to save news article. Please try again.")).finally(()=>h(!1))},P=$=>{confirm(`Delete "${$.title}"? This cannot be undone.`)&&LAe($._id).then(()=>{ie.success("News article deleted successfully!"),w()}).catch(q=>ie.error(q.message||"Failed to delete article."))};return i.jsxs("div",{className:"flex flex-col gap-6",children:[(b||u)&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["MDA's Newsroom -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Publish and manage news articles for your MDA"})]}),i.jsx("div",{className:"h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search news articles...",value:p,onChange:g})}),i.jsxs("button",{onClick:k,className:"bg-green-800 text-[13px] curs
2735or-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add News"]})]}),i.jsx("div",{className:"table__main__body mt-16! rounded-xl border border-gray-100 bg-white overflow-x-auto",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-100 text-[11px] uppercase tracking-[1.5px] text-gray-500",children:[i.jsx("th",{className:"px-4 py-3 font-semibold w-[60px]",children:"S/N"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Title"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Categories"}),i.jsx("th",{className:"px-4 py-3 font-semibold",children:"Date"}),i.jsx("th",{className:"px-4 py-3 font-semibold text-right",children:"Actions"})]})}),i.jsx("tbody",{children:S.length>0?S.map(($,O)=>i.jsxs("tr",{className:"border-b border-gray-50 last:border-0 hover:bg-gray-50/60",children:[i.jsx("td",{className:"px-4 py-3 text-[14px] text-gray-500",children:O+1}),i.jsx("td",{className:"px-4 py-3 text-[14px] font-medium max-w-[320px]",children:i.jsx("span",{className:"line-clamp-2",children:$.title})}),i.jsx("td",{className:"px-4 py-3 text-[13px] text-gray-500",children:($.categories||[]).join(", ")}),i.jsx("td",{className:"px-4 py-3 text-[14px] text-gray-500",children:$.date?String($.date).slice(0,10):"â"}),i.jsx("td",{className:"px-4 py-3",children:i.jsxs("div",{className:"flex items-center justify-end gap-4",children:[i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-gray-600 hover:text-green-700",onClick:()=>N($),children:[i.jsx(Do,{fontSize:14,strokeWidth:1.8})," Edit"]}),i.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[13px] text-red-500 hover:text-red-700",onClick:()=>P($),children:[i.jsx(nu,{fontSize:14,strokeWidth:1.8})," Delete"]})]})})]},$._id)):i.jsx("tr",{children:i.jsx("td",{colSpan:5,className:"px-4 py-8 text-center text-[14px] text-gray-500",children:p?"No matching articles found.":"No news articles published yet."})})})]})}),t&&i.jsx("div",{className:"fixed inset-0 bg-black/40 z-[999] flex items-center justify-center p-4",onClick:_,children:i.jsxs("div",{className:"bg-white rounded-lg w-full max-w-[640px] max-h-[90vh] overflow-y-auto p-8 flex flex-col gap-6",onClick:$=>$.stopPropagation(),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-800",children:r?"Edit News Article":"Add News Article"}),i.jsx("button",{onClick:_,className:"cursor-pointer",children:i.jsx(et,{})})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Title"}),i.jsx("input",{type:"text",name:"title",placeholder:"Enter news title",value:s.title,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Date"}),i.jsx("input",{type:"date",name:"date",value:s.date,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]}),i.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Categories (comma separated)"}),i.jsx("input",{type:"text",name:"categories",placeholder:"e.g. Health, Community",value:s.categories,onChange:L,className:"p-4 w-full text-[15px] border-none outline-none bg-gray-50 rounded-lg"})]})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Photo"}),i.jsx("input",{type:"file",id:"news_photo",accept:"image/*",onChange:E,disabled:l,hidden:!0}),i.jsx("button",{type:"button",onClick:()=>document.getElementById("news_photo").click(),disabled:l,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-4 py-3 rounded-lg cursor-pointer disabled:opacity-50 w-full text-left",children:l?"Uploading...":s.photo?"Change Photo":"Choose Photo"}),s.photo&&i.jsx("img",{src:s.photo,alt:"",className:"h-[160px] w-full object-cover rounded-lg bg-gray-100"})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Content"}),i.jsx(dg,{dataText:$=>o(O=>({...O,content:$})),value:s.content,height:"300px"})]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsx("button",{type:"button",onClick:_,className:"flex-1 py-3 rounded-[5px] border border-gray-200 bg-white text-gray-700 text-[13px] font-semibold cursor-pointer",children:"Cancel"}),i.jsx("button",{type:"button",onClick:T,disabled:u||l,className:"flex-1 py-3 rounded-[5px] bg-green-700 text-white text-[13px] font-bold cursor-pointer disabled:opacity-60",children:u?"Saving...":r?"Save Changes":"Publish Article"})]})]})})]})};var iy={exports:{}},MAe=iy.exports,NR;function DAe(){return NR||(NR=1,(function(e,t){(function(n,r){e.exports=r()})(MAe,(function(){var n=1e3,r=6e4,a=36e5,s="millisecond",o="second",l="minute",d="hour",u="day",h="week",p="month",g="quarter",y="year",b="date",w="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,464 bytes, line 2735
2735|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var W=["th","st","nd","rd"],B=V%100;return"["+V+(W[(B-20)%10]||W[B]||W[0])+"]"}},N=function(V,W,B){var H=String(V);return!H||H.length>=W?V:""+Array(W+1-H.length).join(B)+V},_={s:N,z:function(V){var W=-V.utcOffset(),B=Math.abs(W),H=Math.floor(B/60),G=B%60;return(W<=0?"+":"-")+N(H,2,"0")+":"+N(G,2,"0")},m:function V(W,B){if(W.date()<B.date())return-V(B,W);var H=12*(B.year()-W.year())+(B.month()-W.month()),G=W.clone().add(H,p),K=B-G<0,M=W.clone().add(H+(K?-1:1),p);return+(-(H+(B-G)/(K?G-M:M-G))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:p,y,w:h,d:u,D:b,h:d,m:l,s:o,ms:s,Q:g}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},L="en",E={};E[L]=k;var T="$isDayjsObject",P=function(V){return V instanceof D||!(!V||!V[T])},$=function V(W,B,H){var G;if(!W)return L;if(typeof W=="string"){var K=W.toLowerCase();E[K]&&(G=K),B&&(E[K]=B,G=K);var M=W.split("-");if(!G&&M.length>1)return V(M[0])}else{var I=W.name;E[I]=W,G=I}return!H&&G&&(L=G),G||!H&&L},O=function(V,W){if(P(V))return V.clone();var B=typeof W=="object"?W:{};return B.date=V,B.args=arguments,new D(B)},q=_;q.l=$,q.i=P,q.w=function(V,W){return O(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var D=(function(){function V(B){this.$L=$(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[T]=!0}var W=V.prototype;return W.parse=function(B){this.$d=(function(H){var G=H.date,K=H.utc;if(G===null)return new Date(NaN);if(q.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var M=G.match(j);if(M){var I=M[2]-1||0,X=(M[7]||"0").substring(0,3);return K?new Date(Date.UTC(M[1],I,M[3]||1,M[4]||0,M[5]||0,M[6]||0,X)):new Date(M[1],I,M[3]||1,M[4]||0,M[5]||0,M[6]||0,X)}}return new Date(G)})(B),this.init()},W.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},W.$utils=function(){return q},W.isValid=function(){return this.$d.toString()!==w},W.isSame=function(B,H){var G=O(B);return this.startOf(H)<=G&&G<=this.endOf(H)},W.isAfter=function(B,H){return O(B)<this.startOf(H)},W.isBefore=function(B,H){return this.endOf(H)<O(B)},W.$g=function(B,H,G){return q.u(B)?this[H]:this.set(G,B)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(B,H){var G=this,K=!!q.u(H)||H,M=q.p(B),I=function(J,re){var ge=q.w(G.$u?Date.UTC(G.$y,re,J):new Date(G.$y,re,J),G);return K?ge:ge.endOf(u)},X=function(J,re){return q.w(G.toDate()[J].apply(G.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(re)),G)},F=this.$W,U=this.$M,Z=this.$D,ee="set"+(this.$u?"UTC":"");switch(M){case y:return K?I(1,0):I(31,11);case p:return K?I(1,U):I(0,U+1);case h:var ae=this.$locale().weekStart||0,ye=(F<ae?F+7:F)-ae;return I(K?Z-ye:Z+(6-ye),U);case u:case b:return X(ee+"Hours",0);case d:return X(ee+"Minutes",1);case l:return X(ee+"Seconds",2);case o:return X(ee+"Milliseconds",3);default:return this.clone()}},W.endOf=function(B){return this.startOf(B,!1)},W.$set=function(B,H){var G,K=q.p(B),M="set"+(this.$u?"UTC":""),I=(G={},G[u]=M+"Date",G[b]=M+"Date",G[p]=M+"Month",G[y]=M+"FullYear",G[d]=M+"Hours",G[l]=M+"Minutes",G[o]=M+"Seconds",G[s]=M+"Milliseconds",G)[K],X=K===u?this.$D+(H-this.$W):H;if(K===p||K===y){var F=this.clone().set(b,1);F.$d[I](X),F.init(),this.$d=F.set(b,Math.min(this.$D,F.daysInMonth())).$d}else I&&this.$d[I](X);return this.init(),this},W.set=function(B,H){return this.clone().$set(B,H)},W.get=function(B){return this[q.p(B)]()},W.add=function(B,H){var G,K=this;B=Number(B);var M=q.p(H),I=function(U){var Z=O(K);return q.w(Z.date(Z.date()+Math.round(U*B)),K)};if(M===p)return this.set(p,this.$M+B);if(M===y)return this.set(y,this.$y+B);if(M===u)return I(1);if(M===h)return I(7);var X=(G={},G[l]=r,G[d]=a,G[o]=n,G)[M]||1,F=this.$d.getTime()+B*X;return q.w(F,this)},W.subtract=function(B,H){return this.add(-1*B,H)},W.format=function(B){var H=this,G=this.$locale();if(!this.isValid())return G.invalidDate||w;var K=B||"YYYY-MM-DDTHH:mm:ssZ",M=q.z(this),I=this.$H,X=this.$m,F=this.$M,U=G.weekdays,Z=G.months,ee=G.meri
2735diem,ae=function(re,ge,Q,Se){return re&&(re[ge]||re(H,K))||Q[ge].slice(0,Se)},ye=function(re){return q.s(I%12||12,re,"0")},J=ee||function(re,ge,Q){var Se=re<12?"AM":"PM";return Q?Se.toLowerCase():Se};return K.replace(S,(function(re,ge){return ge||(function(Q){switch(Q){case"YY":return String(H.$y).slice(-2);case"YYYY":return q.s(H.$y,4,"0");case"M":return F+1;case"MM":return q.s(F+1,2,"0");case"MMM":return ae(G.monthsShort,F,Z,3);case"MMMM":return ae(Z,F);case"D":return H.$D;case"DD":return q.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ae(G.weekdaysMin,H.$W,U,2);case"ddd":return ae(G.weekdaysShort,H.$W,U,3);case"dddd":return U[H.$W];case"H":return String(I);case"HH":return q.s(I,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return J(I,X,!0);case"A":return J(I,X,!1);case"m":return String(X);case"mm":return q.s(X,2,"0");case"s":return String(H.$s);case"ss":return q.s(H.$s,2,"0");case"SSS":return q.s(H.$ms,3,"0");case"Z":return M}return null})(re)||M.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(B,H,G){var K,M=this,I=q.p(H),X=O(B),F=(X.utcOffset()-this.utcOffset())*r,U=this-X,Z=function(){return q.m(M,X)};switch(I){case y:K=Z()/12;break;case p:K=Z();break;case g:K=Z()/3;break;case h:K=(U-F)/6048e5;break;case u:K=(U-F)/864e5;break;case d:K=U/a;break;case l:K=U/r;break;case o:K=U/n;break;default:K=U}return G?K:q.a(K)},W.daysInMonth=function(){return this.endOf(p).$D},W.$locale=function(){return E[this.$L]},W.locale=function(B,H){if(!B)return this.$L;var G=this.clone(),K=$(B,H,!0);return K&&(G.$L=K),G},W.clone=function(){return q.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},V})(),z=D.prototype;return O.prototype=z,[["$ms",s],["$s",o],["$m",l],["$H",d],["$W",u],["$M",p],["$y",y],["$D",b]].forEach((function(V){z[V[1]]=function(W){return this.$g(W,V[0],V[1])}})),O.extend=function(V,W){return V.$i||(V(W,D,O),V.$i=!0),O},O.locale=$,O.isDayjs=P,O.unix=function(V){return O(1e3*V)},O.en=E[L],O.Ls=E,O.p={},O}))})(iy)),iy.exports}var PAe=DAe();const Pd=Aa(PAe);var ay={exports:{}},RAe=ay.exports,AR;function IAe(){return AR||(AR=1,(function(e,t){(function(n,r){e.exports=r()})(RAe,(function(){return function(n,r,a){n=n||{};var s=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,h,p,g){return s.fromToBase(u,h,p,g)}a.en.relativeTime=o,s.fromToBase=function(u,h,p,g,y){for(var b,w,j,S=p.$locale().relativeTime||o,k=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],N=k.length,_=0;_<N;_+=1){var L=k[_];L.d&&(b=g?a(u).diff(p,L.d,!0):p.diff(u,L.d,!0));var E=(n.rounding||Math.round)(Math.abs(b));if(j=b>0,E<=L.r||!L.r){E<=1&&_>0&&(L=k[_-1]);var T=S[L.l];y&&(E=y(""+E)),w=typeof T=="string"?T.replace("%d",E):T(E,h,L.l,j);break}}if(h)return w;var P=j?S.future:S.past;return typeof P=="function"?P(w):P.replace("%s",w)},s.to=function(u,h){return l(u,h,this,!0)},s.from=function(u,h){return l(u,h,this)};var d=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(d(this),u)},s.fromNow=function(u){return this.from(d(this),u)}}}))})(ay)),ay.exports}var $Ae=IAe();const dW=Aa($Ae);Pd.extend(dW);const QN=`${Nn}/subscribers`,BAe=async e=>{try{const t=await De.post(`${QN}/subscribe`,e);return t.status===200?(ie.success(t.data.message),{success:!0,message:t.data.message||"Subscriber added successfully!"}):(ie.error(t.data.message),{success:!1,message:t.data.message||"Failed to add subscriber"})}catch(t){return ie.error(t.response?.data?.message||"Something went wrong!"),{success:!1,message:t.response?.data?.message||"Something went wrong!"}}},fW=async e=>{try{const t=await De.get(`${QN}/mda/${e}`);return t.data}catch(t){return t.response?.data||"Something went wrong!"}},qAe=async e=>{try{const t=await De.delete(`${QN}/delete/${e}`);return ie.success(t.data.message||"Subscriber deleted successfully!"),t.data}catch(t){return ie.error(t.response?.data?.message||"Failed to delete subscriber"),t.response?.data||"Something went wrong!"}},FAe=Nn,zAe=async(e,t)=>{const n=await De.get(`${FAe}/analytics/visits?siteName=${e}&period=${t}`);if(n.status===200)return n.data},HAe=({siteName:e})=>{const{data:t,isLoading:n,error:r}=Ke({queryKey:["activity-log",e],queryFn:()=>Wbe(e)});return Pd.extend(dW),r?i.jsx("div",{children:"Something went wrong"}):i.jsxs("div",{className:"hidden fixed top-20 right-0 z-[1] h-[calc(100vh-80px)] w-[400px] overflow-y-auto overflow-x-hidden bg-white py-5",children:[i.jsxs("h2",{className:"fixed top-[60
2735px] z-[999999] mt-5 flex h-[60px] w-full items-center justify-center gap-2 border-b border-[#eee] bg-white px-5 text-[10px] font-semibold uppercase tracking-[2px]",children:[i.jsx(cfe,{fontSize:12})," Activity Log",i.jsx(rb,{className:"ml-auto text-[13px]"})]}),n?i.jsx(Rn,{customClass:""}):null,i.jsx("div",{className:"mt-[55px]",children:t?.data?.map(({activity:a,createdAt:s},o)=>i.jsxs("div",{className:`flex flex-col gap-1 p-5 pr-[50px] text-[15px] font-medium break-words leading-[1.5] ${o%2===1?"bg-[#f9fbfc]":""}`,children:[i.jsxs("p",{className:"flex items-center gap-2 text-sm font-medium capitalize text-[#777]",children:[Pd().to(Pd(s))==="a day ago"?"Yesterday":Pd().to(Pd(s))," "]}),i.jsx("h2",{children:a})]},s))})]})},UAe="data:image/svg+xml,%3csvg%20width='78'%20height='37'%20viewBox='0%200%2078%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8571%201C17.1306%201%2017.1306%2025.1695%2022.7143%2025.1695C27.9878%2025.1695%2027.9878%2016.2373%2033.5714%2016.2373C38.8449%2016.2373%2038.8449%2013.0847%2044.4286%2013.0847C49.702%2013.0847%2049.702%2013.6102%2055.2857%2013.6102C60.5592%2013.6102%2060.5592%2018.339%2066.1429%2018.339C71.4163%2018.339%2077%2032%2077%2032V37H1V12.0339C1%2012.0339%206.27347%201%2011.8571%201Z'%20fill='url(%23paint0_linear_102_2098)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8571%200.5C14.2828%200.5%2015.4056%203.16578%2017.2532%2011.1912L17.8498%2013.8249C19.6576%2021.7232%2020.8489%2024.6695%2022.7142%2024.6695C24.5558%2024.6695%2025.5734%2023.7306%2027.3071%2020.9222L27.5992%2020.4437C29.6308%2017.1009%2030.9191%2015.8156%2033.341%2015.7408L33.5714%2015.7373C35.4999%2015.7373%2036.5362%2015.416%2038.2133%2014.4697L38.6325%2014.2286C40.7104%2013.022%2041.9939%2012.5847%2044.4285%2012.5847L45.2979%2012.5889C46.5236%2012.6017%2047.4336%2012.6449%2048.5154%2012.7338L50.5479%2012.9204C51.8774%2013.0381%2052.9124%2013.0925%2054.4151%2013.1064L55.2857%2013.1102C57.4823%2013.1102%2058.6934%2013.6909%2060.5624%2015.2828L60.9263%2015.5976C62.8521%2017.2751%2063.9557%2017.839%2066.1428%2017.839C66.4598%2017.839%2066.7797%2017.8814%2067.1019%2017.9643C69.3599%2018.5458%2071.6619%2021.0638%2073.9773%2024.9117C74.8859%2026.4216%2075.7331%2028.0367%2076.4971%2029.6517L76.8036%2030.3096C76.9009%2030.5219%2076.9934%2030.727%2077.0807%2030.9239L77.3191%2031.4697L77.4628%2031.8108L76.5371%2032.1892L76.2915%2031.613L76.0342%2031.0333C75.898%2030.7316%2075.7508%2030.4126%2075.5931%2030.0793C74.8424%2028.4924%2074.0102%2026.9058%2073.1205%2025.4273C70.9358%2021.7966%2068.7687%2019.4262%2066.8525%2018.9327C66.6101%2018.8703%2066.3736%2018.839%2066.1428%2018.839C63.7673%2018.839%2062.4708%2018.2271%2060.5269%2016.5733L60.1532%2016.2503C58.3891%2014.7135%2057.3776%2014.1606%2055.5522%2014.1135L54.4011%2014.1063C52.8733%2014.0921%2051.8152%2014.0364%2050.4636%2013.9168L48.743%2013.7567C47.2962%2013.6304%2046.2282%2013.5847%2044.4285%2013.5847C42.3146%2013.5847%2041.1947%2013.9284%2039.4343%2014.9218L39.0185%2015.1609C37.1235%2016.2614%2035.9473%2016.6916%2033.9178%2016.7338L33.5714%2016.7373C31.6088%2016.7373%2030.5168%2017.6728%2028.8049%2020.3946L28.3375%2021.1544C26.3187%2024.4761%2025.1008%2025.6695%2022.7142%2025.6695C20.0659%2025.6695%2018.858%2022.7344%2016.8787%2014.0656L16.2857%2011.4488C14.6097%204.19598%2013.5075%201.5%2011.8571%201.5C9.62498%201.5%207.17118%203.48366%204.73831%206.81201C3.86896%208.00133%203.06497%209.27803%202.34701%2010.5549C2.15853%2010.8901%201.98628%2011.2072%201.83131%2011.5017L1.56282%2012.0229L1.45108%2012.2495L0.548828%2011.8183L0.792772%2011.3312L1.11119%2010.7264C1.22505%2010.5149%201.34653%2010.2939%201.47535%2010.0648C2.21147%208.75561%203.03605%207.44623%203.93099%206.22189C6.53892%202.65405%209.2035%200.5%2011.8571%200.5Z'%20fill='%23EC6666'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_2098'%20x1='1'%20y1='1'%20x2='1'%20y2='37'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EC6666'/%3e%3cstop%20offset='1'%20stop-color='%23EC6666'%20stop-opacity='0.103475'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",m0="data:image/svg+xml,%3csvg%20width='77'%20height='38'%20viewBox='0%200%2077%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.460205%201.63555C0.460205%201.63555%205.73367%2014.1266%2011.3173%2014.1266C16.5908%2014.1266%2016.5908%208.82737%2022.1745%208.82737C27.448%208.82737%2027.448%2017.5332%2033.0316%2017.5332C38.3051%2017.5332%2038.3051%200.5%2043.8888%200.5C49.1622%200.5%2049.1622%2026.6176%2054.7459%2026.6176C60.0194%2026.6176%2060.0194%2016.0192%2065.6031%2016.0192C70.8765%2016.0192%2076.4602%2025.1036%2076.4602%2025.1036V37.5H0.460205V1.63555Z'%20fill='url(%23paint0_linear_102_3455)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M43.8889%200C46.4086%200%2047.5146%203.04368%2049.4815%2012.3977L49.8769%2014.2823C51.6879%2022.7983%2052.8884%2026%2054.746%2026C56.5656%2026%2057.5931%2024.8727%2059.3369%2021.5318L59.6137%2020.9959C61.7083%2016.9249%2063.0026%2015.4493%2065.6032%2015.4493C65.9058%2015.4493%2066.212%2015.4761%2066.5216%2015.5289C68.7466%2015.9082%2071.0604%2017.5836%2073.3793%2020.1347C74.2927%2021.1396%2075.1443%2022.2143%2075.9123%2023.289C76.1139%2023.5712%2076.299%2023.8384%2076.4663%2024.0869L76.8858%2024.7301L76.0349%2025.2554L75.7926%2024.8793C75.5922%2024.5753%2075.3599%2024.236%2075.0987%2023.8704C74.352%2022.8255%2073.5241%2021.7807%2072.6393%202
27350.8073C70.458%2018.4076%2068.3027%2016.847%2066.3535%2016.5147C66.0985%2016.4712%2065.8484%2016.4493%2065.6032%2016.4493C63.6558%2016.4493%2062.555%2017.5774%2060.8247%2020.837L60.0573%2022.3101C58.2301%2025.7537%2057.0266%2027%2054.746%2027C52.0429%2027%2050.8484%2023.7609%2048.808%2014.0616L48.3251%2011.7675C46.644%203.93525%2045.5327%201%2043.8889%201C41.9451%201%2040.7901%203.04218%2038.9393%208.76069L38.4701%2010.2174C36.5907%2015.9703%2035.4289%2017.9565%2033.0317%2017.9565C30.6198%2017.9565%2029.3212%2016.8773%2027.4358%2013.9736L26.5888%2012.6406C24.9641%2010.136%2023.9553%209.28986%2022.1746%209.28986C20.0921%209.28986%2018.9953%209.86559%2017.2145%2011.5589L16.8619%2011.8991C14.8464%2013.8577%2013.6238%2014.5652%2011.3175%2014.5652C8.64467%2014.5652%205.98348%2012.1408%203.37552%208.11991C2.48217%206.74258%201.65899%205.26946%200.924136%203.79659L0.629764%203.19645C0.583095%203.09961%200.537636%203.00443%200.493405%202.911L0.0932002%202.03968L0%201.82565L0.920632%201.43522L1.15272%201.95723L1.39747%202.4836C1.52721%202.75764%201.66788%203.04736%201.81895%203.35015C2.53817%204.79168%203.34356%206.23296%204.2145%207.57574C6.64736%2011.3266%209.10453%2013.5652%2011.3175%2013.5652C13.2179%2013.5652%2014.2325%2013.0239%2015.9384%2011.4L16.2812%2011.069C18.374%209.03528%2019.6817%208.28986%2022.1746%208.28986C24.4817%208.28986%2025.6982%209.3778%2027.6073%2012.376L27.9106%2012.8578C29.8318%2015.925%2030.9333%2016.9565%2033.0317%2016.9565C34.7499%2016.9565%2035.817%2015.1076%2037.5205%209.90302L38.1059%208.08945C40.061%202.1089%2041.3111%200%2043.8889%200Z'%20fill='%2319AC3E'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_3455'%20x1='1.21944'%20y1='0.558594'%20x2='1.21944'%20y2='36.8193'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2314D699'/%3e%3cstop%20offset='1'%20stop-color='%2314D645'%20stop-opacity='0.0976289'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function hW(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=hW(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function an(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=hW(e))&&(r&&(r+=" "),r+=t);return r}var VAe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function JN(e){if(typeof e!="string")return!1;var t=VAe;return t.includes(e)}var GAe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
2735dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],WAe=new Set(GAe);function pW(e){return typeof e!="string"?!1:WAe.has(e)}function mW(e){return typeof e=="string"&&e.startsWith("data-")}function Ga(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(pW(n)||mW(n))&&(t[n]=e[n]);return t}function Mb(e){if(e==null)return null;if(v.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ga(t)}return typeof e=="object"&&!Array.isArray(e)?Ga(e):null}function ja(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(pW(n)||mW(n)||JN(n))&&(t[n]=e[n]);return t}function YAe(e){return e==null?null:v.isValidElement(e)?ja(e.props):typeof e=="object"&&!Array.isArray(e)?ja(e):null}var KAe=["children","width","height","viewBox","className","style","title","desc"];function l6(){return l6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l6.apply(null,arguments)}function XAe(e,t){if(e==null)return{};var n,r,a=ZAe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ZAe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gW=v.forwardRef((e,t)=>{var n=e.children,r=e.width,a=e.height,s=e.viewBox,o=e.className,l=e.style,d=e.title,u=e.desc,h=XAe(e,KAe),p=s||{width:r,height:a,x:0,y:0},g=an("recharts-surface",o);return v.createElement("svg",l6({},ja(h),{className:g,width:r,height:a,style:l,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),v.createElement("title",null,d),v.createElement("desc",null,u),n)}),QAe=["children","className"];function c6(){return c6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c6.apply(null,arguments)}function JAe(e,t){if(e==null)return{};var n,r,a=e4e(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function e4e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Sa=v.forwardRef((e,t)=>
2735{var n=e.children,r=e.className,a=JAe(e,QAe),s=an("recharts-layer",r);return v.createElement("g",c6({className:s},ja(a),{ref:t}),n)});function u6(e){return e==="__proto__"}const t4e=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function vW(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:t4e.test(e);default:return!1}}function eA(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function yW(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(yW).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function tA(e){if(Array.isArray(e))return e.map(eA);if(typeof e=="symbol")return[e];e=yW(e);const t=[],n=e.length;if(n===0)return t;let r=0,a="",s="",o=!1;for(e.charCodeAt(0)===46&&t.push("");r<n;){const l=e[r];if(s)l==="\\"&&r+1<n?(r++,a+=e[r]):l===s?s="":a+=l;else if(o)l==='"'||l==="'"?s=l:l==="]"?(o=!1,t.push(a),a=""):a+=l;else if(l==="[")o=!0,a&&(t.push(a),a="");else if(l==="."){a&&(t.push(a),a="");const d=e[r+1];(d===void 0||d===".")&&t.push("")}else a+=l;r++}return a&&t.push(a),t}function ku(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(u6(t))return n;const r=e[t];return r===void 0?vW(t)&&!Object.hasOwn(e,t)?ku(e,tA(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=eA(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return n4e(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),u6(t))return n;const r=e[t];return r===void 0?n:r}}}function n4e(e,t,n){if(t.length===0)return n;let r=e;for(let a=0;a<t.length;a++){if(r==null||u6(t[a]))return n;r=r[t[a]]}return r===void 0?n:r}var r4e=4;function Al(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r4e,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((a,s,o)=>{var l=n[o-1];return typeof l=="string"?a+l+s:l!==void 0?a+Al(l)+s:a+s},"")}var ya=e=>e===0?0:e>0?1:-1,Es=e=>typeof e=="number"&&e!=+e,du=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,Re=e=>(typeof e=="number"||e instanceof Number)&&!Es(e),_s=e=>Re(e)||typeof e=="string",i4e=0,Sm=e=>{var t=++i4e;return"".concat(e||"").concat(t)},Bl=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Re(t)&&typeof t!="string")return r;var s;if(du(t)){if(n==null)return r;var o=t.indexOf("%");s=n*parseFloat(t.slice(0,o))/100}else s=+t;return Es(s)&&(s=r),a&&n!=null&&s>n&&(s=n),s},xW=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function po(e,t,n){return Re(e)&&Re(t)?Al(e+n*(t-e)):t}function bW(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):ku(r,t))===n)}var Dr=e=>e===null||typeof e>"u",nA=e=>Dr(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ri(e){return e!=null}function Df(){}function rA(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function ER(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(n),!0).forEach(function(r){a4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a4e(e,t,n){return(t=s4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s4e(e){var t=o4e(e,"string");return typeof t=="symbol"?t:t+""}function o4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l4e=e=>{var t=e.viewBox,n=e.position,r=e.offset,a=r===void 0?0:r,s=e.parentViewBox,o=rA(t),l=o.x,d=o.y,u=o.height,h=o.upperWidth,p=o.lowerWidth,g=l,y=l+(h-p)/2,b=(g+y)/2,w=(h+p)/2,j=g+h/2,S=u>=0?1:-1,k=S*a,N=S>0?"end":"start",_=S>0?"start":"end",L=h>=0?1:-1,E=L*a,T=L>0?"end":"start",P=L>
27350?"start":"end",$=s;if(n==="top"){var O={x:g+h/2,y:d-k,horizontalAnchor:"middle",verticalAnchor:N};return $&&(O.height=Math.max(d-$.y,0),O.width=h),O}if(n==="bottom"){var q={x:y+p/2,y:d+u+k,horizontalAnchor:"middle",verticalAnchor:_};return $&&(q.height=Math.max($.y+$.height-(d+u),0),q.width=p),q}if(n==="left"){var D={x:b-E,y:d+u/2,horizontalAnchor:T,verticalAnchor:"middle"};return $&&(D.width=Math.max(D.x-$.x,0),D.height=u),D}if(n==="right"){var z={x:b+w+E,y:d+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return $&&(z.width=Math.max($.x+$.width-z.x,0),z.height=u),z}var V=$?{width:w,height:u}:{};return n==="insideLeft"?cs({x:b+E,y:d+u/2,horizontalAnchor:P,verticalAnchor:"middle"},V):n==="insideRight"?cs({x:b+w-E,y:d+u/2,horizontalAnchor:T,verticalAnchor:"middle"},V):n==="insideTop"?cs({x:g+h/2,y:d+k,horizontalAnchor:"middle",verticalAnchor:_},V):n==="insideBottom"?cs({x:y+p/2,y:d+u-k,horizontalAnchor:"middle",verticalAnchor:N},V):n==="insideTopLeft"?cs({x:g+E,y:d+k,horizontalAnchor:P,verticalAnchor:_},V):n==="insideTopRight"?cs({x:g+h-E,y:d+k,horizontalAnchor:T,verticalAnchor:_},V):n==="insideBottomLeft"?cs({x:y+E,y:d+u-k,horizontalAnchor:P,verticalAnchor:N},V):n==="insideBottomRight"?cs({x:y+p-E,y:d+u-k,horizontalAnchor:T,verticalAnchor:N},V):n&&typeof n=="object"&&(Re(n.x)||du(n.x))&&(Re(n.y)||du(n.y))?cs({x:l+Bl(n.x,w),y:d+Bl(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},V):cs({x:j,y:d+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},V)},c4e=["top","left","right","bottom"];function u4e(e){return e==null?!1:typeof e=="object"?!0:c4e.includes(e)}var d4e=v.createContext(null);function wn(e){return function(){return e}}const d6=Math.PI,f6=2*d6,Oc=1e-6,f4e=f6-Oc;function wW(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function h4e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return wW;const n=10**t;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class p4e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?wW:h4e(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,s,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+s},${this._y1=+o}`}arcTo(t,n,r,a,s){if(t=+t,n=+n,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,d=r-t,u=a-n,h=o-t,p=l-n,g=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>Oc)if(!(Math.abs(p*d-u*h)>Oc)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-o,b=a-l,w=d*d+u*u,j=y*y+b*b,S=Math.sqrt(w),k=Math.sqrt(g),N=s*Math.tan((d6-Math.acos((w+g-j)/(2*S*k)))/2),_=N/k,L=N/S;Math.abs(_-1)>Oc&&this._append`L${t+_*h},${n+_*p}`,this._append`A${s},${s},0,0,${+(p*y>h*b)},${this._x1=t+L*d},${this._y1=n+L*u}`}}arc(t,n,r,a,s,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),d=r*Math.sin(a),u=t+l,h=n+d,p=1^o,g=o?a-s:s-a;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>Oc||Math.abs(this._y1-h)>Oc)&&this._append`L${u},${h}`,r&&(g<0&&(g=g%f6+f6),g>f4e?this._append`A${r},${r},0,1,${p},${t-l},${n-d}A${r},${r},0,1,${p},${this._x1=u},${this._y1=h}`:g>Oc&&this._append`A${r},${r},0,${+(g>=d6)},${p},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function jW(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new p4e(t)}function iA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function SW(e){this._context=e}SW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Db(e){return new SW(e)}function CW(e){return e[0]}function kW(e){return e[1]}function NW(e,t){var n=wn(!0),r=null,a=Db,s=null,o=jW(l);e=typeof e=="function"?e:e===void 0?CW:wn(e),t=typeof t=="function"?t:t===void 0?kW:wn(t);function l(d){var u,h=(d=iA(d)).length,p,g=!1,y;
vendor: 9,082 bytes, line 2735
2735for(r==null&&(s=a(y=o())),u=0;u<=h;++u)!(u<h&&n(p=d[u],u,d))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(p,u,d),+t(p,u,d));if(y)return s=null,y+""||null}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:wn(+d),l):e},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:wn(+d),l):t},l.defined=function(d){return arguments.length?(n=typeof d=="function"?d:wn(!!d),l):n},l.curve=function(d){return arguments.length?(a=d,r!=null&&(s=a(r)),l):a},l.context=function(d){return arguments.length?(d==null?r=s=null:s=a(r=d),l):r},l}function g0(e,t,n){var r=null,a=wn(!0),s=null,o=Db,l=null,d=jW(u);e=typeof e=="function"?e:e===void 0?CW:wn(+e),t=typeof t=="function"?t:wn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?kW:wn(+n);function u(p){var g,y,b,w=(p=iA(p)).length,j,S=!1,k,N=new Array(w),_=new Array(w);for(s==null&&(l=o(k=d())),g=0;g<=w;++g){if(!(g<w&&a(j=p[g],g,p))===S)if(S=!S)y=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=g-1;b>=y;--b)l.point(N[b],_[b]);l.lineEnd(),l.areaEnd()}S&&(N[g]=+e(j,g,p),_[g]=+t(j,g,p),l.point(r?+r(j,g,p):N[g],n?+n(j,g,p):_[g]))}if(k)return l=null,k+""||null}function h(){return NW().defined(a).curve(o).context(s)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:wn(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:wn(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:wn(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:wn(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:wn(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:wn(+p),u):n},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(n)},u.lineX1=function(){return h().x(r).y(t)},u.defined=function(p){return arguments.length?(a=typeof p=="function"?p:wn(!!p),u):a},u.curve=function(p){return arguments.length?(o=p,s!=null&&(l=o(s)),u):o},u.context=function(p){return arguments.length?(p==null?s=l=null:l=o(s=p),u):s},u}class AW{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function m4e(e){return new AW(e,!0)}function g4e(e){return new AW(e,!1)}function Vy(){}function Gy(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function EW(e){this._context=e}EW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Gy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v4e(e){return new EW(e)}function _W(e){this._context=e}_W.prototype={areaStart:Vy,areaEnd:Vy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function y4e(e){return new _W(e)}function TW(e){this._context=e}TW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x4e(e){return new TW(e)}function LW(e){this._context=e}LW.prototype={areaStart:Vy,areaEnd:Vy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function b4e(e){return new LW(e)}function _R(e){return e<0?-1:1}function TR(e,t,n){var r=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(s*a+o*r)/(r+a);return(_R(s)+_R(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function LR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function H3(e,t,n){var r=e._x0,a=e._y0,s=e._x1,o=e._y1,l=(s-r)/3;e._context.bezierCurveTo(r+l,a+l*t,s-l,o-l*n,s,o)}function Wy(e){this._context=e}Wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:H3(this,this._t0,LR(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,H3(this,LR(this,n=TR(this,e,t)),n);break;default:H3(this,this._t0,n=TR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function OW(e){this._context=new MW(e)}(OW.prototype=Object.create(Wy.prototype)).point=function(e,t){Wy.prototype.point.call(this,t,e)};function MW(e){this._context=e}MW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,s){this._context.bezierCurveTo(t,e,r,n,s,a)}};function w4e(e){return new Wy(e)}function j4e(e){return new OW(e)}function DW(e){this._context=e}DW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=OR(e),a=OR(t),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function OR(e){var t,n=e.length-1,r,a=new Array(n),s=new Array(n),o=new Array(n);for(a[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,s[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/s[t-1],s[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/s[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/s[t];for(s[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function S4e(e){return new DW(e)}function Pb(e,t){this._context=e,this._t=t}Pb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
2735default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function C4e(e){return new Pb(e,.5)}function k4e(e){return new Pb(e,0)}function N4e(e){return new Pb(e,1)}function fu(e,t){if((o=e.length)>1)for(var n=1,r,a,s=e[t[0]],o,l=s.length;n<o;++n)for(a=s,s=e[t[n]],r=0;r<l;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function h6(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function A4e(e,t){return e[t]}function E4e(e){const t=[];return t.key=e,t}function _4e(){var e=wn([]),t=h6,n=fu,r=A4e;function a(s){var o=Array.from(e.apply(this,arguments),E4e),l,d=o.length,u=-1,h;for(const p of s)for(l=0,++u;l<d;++l)(o[l][u]=[0,+r(p,o[l].key,u,s)]).data=p;for(l=0,h=iA(t(o));l<d;++l)o[h[l]].index=l;return n(o,h),o}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:wn(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:wn(+s),a):r},a.order=function(s){return arguments.length?(t=s==null?h6:typeof s=="function"?s:wn(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(n=s??fu,a):n},a}function T4e(e,t){if((r=e.length)>0){for(var n,r,a=0,s=e[0].length,o;a<s;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}fu(e,t)}}function L4e(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,s=r.length;n<s;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}fu(e,t)}}function O4e(e,t){if(!(!((o=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,s,o;r<s;++r){for(var l=0,d=0,u=0;l<o;++l){for(var h=e[t[l]],p=h[r][1]||0,g=h[r-1][1]||0,y=(p-g)/2,b=0;b<l;++b){var w=e[t[b]],j=w[r][1]||0,S=w[r-1][1]||0;y+=j-S}d+=p,u+=y*p}a[r-1][1]+=a[r-1][0]=n,d&&(n-=u/d)}a[r-1][1]+=a[r-1][0]=n,fu(e,t)}}var PW=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,aA=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(v.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(a=>{JN(a)&&typeof n[a]=="function"&&(r[a]=(s=>n[a](n,s)))}),r},M4e=(e,t,n)=>r=>(e(t,n,r),null),D4e=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var s=e[a];JN(a)&&typeof s=="function"&&(r||(r={}),r[a]=M4e(s,t,n))}),r};function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function P4e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(n),!0).forEach(function(r){R4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R4e(e,t,n){return(t=I4e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4e(e){var t=$4e(e,"string");return typeof t=="symbol"?t:t+""}function $4e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ea(e,t){var n=P4e({},e),r=t,a=Object.keys(t),s=a.reduce((o,l)=>(o[l]===void 0&&r[l]!==void 0&&(o[l]=r[l]),o),n);return s}function B4e(e,t){const n=new Map;for(let r=0;r<e.length;r++){const a=e[r],s=t(a,r,e);n.has(s)||n.set(s,a)}return Array.from(n.values())}function q4e(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function RW(e){return e}function F4e(e){return function(t){return ku(t,e)}}function p6(e){return e==null||typeof e!="object"&&typeof e!="function"}function z4e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function m6(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}
2735function Cm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const IW="[object RegExp]",sA="[object String]",oA="[object Number]",lA="[object Boolean]",$W="[object Arguments]",BW="[object Symbol]",qW="[object Date]",FW="[object Map]",zW="[object Set]",HW="[object Array]",H4e="[object Function]",UW="[object ArrayBuffer]",sy="[object Object]",U4e="[object Error]",VW="[object DataView]",GW="[object Uint8Array]",WW="[object Uint8ClampedArray]",YW="[object Uint16Array]",KW="[object Uint32Array]",V4e="[object BigUint64Array]",XW="[object Int8Array]",ZW="[object Int16Array]",QW="[object Int32Array]",G4e="[object BigInt64Array]",JW="[object Float32Array]",eY="[object Float64Array]",DR=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function g6(e){return typeof DR.Buffer<"u"&&DR.Buffer.isBuffer(e)}function W4e(e,t){return zc(e,void 0,e,new Map,t)}function zc(e,t,n,r=new Map,a=void 0){const s=a?.(e,t,n,r);if(s!==void 0)return s;if(p6(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const o=new Array(e.length);r.set(e,o);for(let l=0;l<e.length;l++)o[l]=zc(e[l],l,n,r,a);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;r.set(e,o);for(const[l,d]of e)o.set(l,zc(d,l,n,r,a));return o}if(e instanceof Set){const o=new Set;r.set(e,o);for(const l of e)o.add(zc(l,void 0,n,r,a));return o}if(g6(e))return e.subarray();if(z4e(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,o);for(let l=0;l<e.length;l++)o[l]=zc(e[l],l,n,r,a);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,o),Ia(o,e,n,r,a),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return r.set(e,o),Ia(o,e,n,r,a),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return r.set(e,o),Ia(o,e,n,r,a),o}if(e instanceof Error){const o=structuredClone(e);return r.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,Ia(o,e,n,r,a),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return r.set(e,o),Ia(o,e,n,r,a),o}if(e instanceof Number){const o=new Number(e.valueOf());return r.set(e,o),Ia(o,e,n,r,a),o}if(e instanceof String){const o=new String(e.valueOf());return r.set(e,o),Ia(o,e,n,r,a),o}if(typeof e=="object"&&Y4e(e)){const o=Object.create(Object.getPrototypeOf(e));return r.set(e,o),Ia(o,e,n,r,a),o}return e}function Ia(e,t,n=e,r,a){const s=[...Object.keys(t),...m6(t)];for(let o=0;o<s.length;o++){const l=s[o],d=Object.getOwnPropertyDescriptor(e,l);(d==null||d.writable)&&(e[l]=zc(t[l],l,n,r,a))}}function Y4e(e){switch(Cm(e)){case $W:case HW:case UW:case VW:case lA:case qW:case JW:case eY:case XW:case ZW:case QW:case FW:case oA:case sy:case IW:case zW:case sA:case BW:case GW:case WW:case YW:case KW:return!0;default:return!1}}function K4e(e){return zc(e,void 0,e,new Map,void 0)}function Gp(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function tY(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function nY(e,t,n){return typeof n!="function"?nY(e,t,()=>{}):v6(e,t,function r(a,s,o,l,d,u){const h=n(a,s,o,l,d,u);return h!==void 0?!!h:v6(a,s,r,u,!1)},new Map,!0)}function v6(e,t,n,r,a=!1){if(t===e)return!0;switch(typeof t){case"object":return X4e(e,t,n,r);case"function":return Object.keys(t).length>0?v6(e,{...t},n,r,a):Gp(e,t);default:return tY(e)&&a?typeof t=="string"?t==="":!0:Gp(e,t)}}function X4e(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return rY(e,t,n,r);if(t instanceof Map)return Z4e(e,t,n,r);if(t instanceof Set)return Q4e(e,t,n,r);const a=Object.keys(t);if(e==null||p6(e))return a.length===0;if(a.length===0)return!0;
2735if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let s=0;s<a.length;s++){const o=a[s];if(!p6(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function Z4e(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,s]of t.entries())if(n(e.get(a),s,a,e,t,r)===!1)return!1;return!0}function rY(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let s=0;s<t.length;s++){const o=t[s];let l=!1;for(let d=0;d<e.length;d++){if(a.has(d))continue;const u=e[d];let h=!1;if(n(u,o,s,e,t,r)&&(h=!0),h){a.add(d),l=!0;break}}if(!l)return!1}return!0}function Q4e(e,t,n,r){return t.size===0?!0:e instanceof Set?rY([...e],[...t],n,r):!1}function iY(e,t){return nY(e,t,()=>{})}function J4e(e){return e=K4e(e),t=>iY(t,e)}function eEe(e,t){return W4e(e,(n,r,a,s)=>{if(typeof e=="object"){if(Cm(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return s.set(e,o),Ia(o,e,a,s),o}switch(Object.prototype.toString.call(e)){case oA:case sA:case lA:{const o=new e.constructor(e?.valueOf());return Ia(o,e),o}case $W:{const o={};return Ia(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function tEe(e){return eEe(e)}const nEe=/^(?:0|[1-9]\d*)$/;function aY(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return nEe.test(e)}}function rEe(e){return e!==null&&typeof e=="object"&&Cm(e)==="[object Arguments]"}function iEe(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&vW(t)&&!(t in Object(e))?n=tA(t):n=[t],n.length===0)return!1;let r=e;for(let a=0;a<n.length;a++){const s=n[a];if((r==null||!Object.hasOwn(r,s))&&!((Array.isArray(r)||rEe(r))&&aY(s)&&s<r.length))return!1;r=r[s]}return!0}function aEe(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=eA(e);break}return t=tEe(t),function(n){const r=ku(n,e);return r===void 0?iEe(n,e):t===void 0?r===void 0:iY(r,t)}}function sEe(e){if(e==null)return RW;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?aEe(e[0],e[1]):J4e(e);case"string":case"symbol":case"number":return F4e(e)}}function oEe(e){return Number.isSafeInteger(e)&&e>=0}function sY(e){return e!=null&&typeof e!="function"&&oEe(e.length)}function lEe(e){return typeof e=="object"&&e!==null}function cEe(e){return lEe(e)&&sY(e)}function PR(e,t=RW){return cEe(e)?B4e(Array.from(e),q4e(sEe(t),1)):[]}function uEe(e,t,n){return t===!0?PR(e,n):typeof t=="function"?PR(e,t):e}var U3={exports:{}},V3={},G3={exports:{}},W3={};/** 2736 * @license React 2737 * use-sync-external-store-shim.production.js 2738 * 2739 * Copyright (c) Meta Platforms, Inc. and affiliates. 2740 * 2741 * This source code is licensed under the MIT license found in the 2742 * LICENSE file in the root directory of this source tree. 2743 */var RR;function dEe(){if(RR)return W3;RR=1;var e=Mo();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,o=e.useDebugValue;function l(p,g){var y=g(),b=r({inst:{value:y,getSnapshot:g}}),w=b[0].inst,j=b[1];return s(function(){w.value=y,w.getSnapshot=g,d(w)&&j({inst:w})},[p,y,g]),a(function(){return d(w)&&j({inst:w}),p(function(){d(w)&&j({inst:w})})},[p]),o(y),y}function d(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!n(p,y)}catch{return!0}}function u(p,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return W3.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,W3}var IR;function fEe(){return IR||(IR=1,G3.exports=dEe()),G3.exports}/** 2744 * @license React 2745 * use-sync-external-store-shim/with-selector.production.js 2746 * 2747 * Copyright (c) Meta Platforms, Inc. and affiliates. 2748 * 2749 * This source code is licensed under the MIT license found in the 2750 * LICENSE file in the root directory of this source tree. 2751 */var $R;function hEe(){if($R)return V3;$R=1;var e=Mo(),t=fEe();function n(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,o=e.useEffect,l=e.useMemo,d=e.useDebugValue;return V3.useSyncExternalStoreWithSelector=function(u,h,p,g,y){var b=s(null);if(b.current===null){var w={hasValue:!1,value:null};b.current=w}else w=b.current;b=l(function(){function S(E){if(!k){if(k=!0,N=E,E=g(E),y!==void 0&&w.hasValue){var T=w.value;if(y(T,E))return _=T}return _=E}if(T=_,r(N,E))return T;var P=g(E);return y!==void 0&&y(T,P)?(N=E,T):(N=E,_=P)}var k=!1,N,_,L=p===void 0?null:p;return[function(){return S(h())},L===null?void 0:function(){return S(L())}]},[h,p,g,y]);var j=a(u,b[0],b[1]);return o(function(){w.hasValue=!0,w.value=j},[j]),d(j),j},V3}var BR;
2751function pEe(){return BR||(BR=1,U3.exports=hEe()),U3.exports}var mEe=pEe(),cA=v.createContext(null),gEe=e=>e,In=()=>{var e=v.useContext(cA);return e?e.store.dispatch:gEe},oy=()=>{},vEe=()=>oy,yEe=(e,t)=>e===t;function Ve(e){var t=v.useContext(cA),n=v.useMemo(()=>t?r=>{if(r!=null)return e(r)}:oy,[t,e]);return mEe.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:vEe,t?t.store.getState:oy,t?t.store.getState:oy,n,yEe)}function xEe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function bEe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var qR=e=>Array.isArray(e)?e:[e];function wEe(e){const t=Array.isArray(e[0])?e[0]:e;return bEe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function jEe(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var SEe=class{constructor(e){this.value=e}deref(){return this.value}},CEe=()=>typeof WeakRef>"u"?SEe:WeakRef,oY=CEe(),kEe=0,FR=1;function v0(){return{s:kEe,v:void 0,o:null,p:null}}function NEe(e){return e instanceof oY?e.deref():e}function lY(e,t={}){let n=v0();const{resultEqualityCheck:r}=t;let a,s=0;function o(){let l=n;const{length:d}=arguments;for(let p=0,g=d;p<g;p++){const y=arguments[p];if(typeof y=="function"||typeof y=="object"&&y!==null){let b=l.o;b===null&&(l.o=b=new WeakMap);const w=b.get(y);w===void 0?(l=v0(),b.set(y,l)):l=w}else{let b=l.p;b===null&&(l.p=b=new Map);const w=b.get(y);w===void 0?(l=v0(),b.set(y,l)):l=w}}const u=l;let h;if(l.s===FR)h=l.v;else if(h=e.apply(null,arguments),s++,r){const p=NEe(a);p!=null&&r(p,h)&&(h=p,s!==0&&s--),a=typeof h=="object"&&h!==null||typeof h=="function"?new oY(h):h}return u.s=FR,u.v=h,h}return o.clearCache=()=>{n=v0(),o.resetResultsCount()},o.resultsCount=()=>s,o.resetResultsCount=()=>{s=0},o}function AEe(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...a)=>{let s=0,o=0,l,d={},u=a.pop();typeof u=="object"&&(d=u,u=a.pop()),xEe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const h={...n,...d},{memoize:p,memoizeOptions:g=[],argsMemoize:y=lY,argsMemoizeOptions:b=[]}=h,w=qR(g),j=qR(b),S=wEe(a),k=p(function(){return s++,u.apply(null,arguments)},...w),N=y(function(){o++;const L=jEe(S,arguments);return l=k.apply(null,L),l},...j);return Object.assign(N,{resultFunc:u,memoizedResultFunc:k,dependencies:S,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:p,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ue=AEe(lY);function EEe(e,t=1){const n=[],r=Math.floor(t),a=(s,o)=>{for(let l=0;l<s.length;l++){const d=s[l];Array.isArray(d)&&o<r?a(d,o+1):n.push(d)}};return a(e,0),n}function y6(e,t,n){return tY(n)&&(typeof t=="number"&&sY(n)&&aY(t)&&t<n.length||typeof t=="string"&&t in n)?Gp(n[t],e):!1}function zR(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const _Ee=(e,t,n)=>{if(e!==t){const r=zR(e),a=zR(t);if(r===a&&r===0){if(e<t)return n==="desc"?1:-1;if(e>t)return n==="desc"?-1:1}return n==="desc"?a-r:r-a}return 0};function cY(e){return typeof e=="symbol"||e instanceof Symbol}const TEe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LEe=/^\w*$/;function OEe(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||cY(e)?!0:typeof e=="string"&&(LEe.test(e)||!TEe.test(e))||t!=null}function MEe(e,t,n,r){if(e==null)return[];n=n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(l=>String(l));const a=(l,d)=>{let u=l;for(let h=0;h<d.length&&u!=null;++h)u=u[d[h]];return u},s=(l,d)=>d==null||l==null?d:typeof l=="object"&&"key"in l?Object.hasOwn(d,l.key)?d[l.key]:a(d,l.path):typeof l=="function"?l(d):Array.isArray(l)?a(d,l):typeof d=="object"?d[l]:d,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||OEe(l)?l:{key:l,path:tA(l)}));return e.map(l=>({original:l,criteria:o.map(d=>s(d,l))})).slice().sort((l,d)=>{for(let u=0;u<o.length;u++){const h=_Ee(l.criteria[u],d.criteria[u],n[u]);if(h!==0)return h}return 0}).map(l=>l.original)}function Rb(e,...t){const n=t.length;return n>1&&y6(e,t[0],t[1])?t=[]:n>2&&y6(t[0],t[1],t[2])&&(t=[t[0]]),MEe(e,EEe(t),["asc"])}var uY=e=>e.legend.settings,DEe=e=>e.legend.size,PEe=e=>e.legend.payload;ue([PEe,uY],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Rb(r,n):r});function REe(e,t){return qEe(e)||BEe(e,t)||$Ee(e,t)||IEe()}
2751function IEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2752In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ee(e,t){if(e){if(typeof e=="string")return HR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HR(e,t):void 0}}function HR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function qEe(e){if(Array.isArray(e))return e}var y0=1;function UR(e,t){return Math.abs(e.height-t.height)>y0||Math.abs(e.left-t.left)>y0||Math.abs(e.top-t.top)>y0||Math.abs(e.width-t.width)>y0}function VR(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function FEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=v.useState({height:0,left:0,top:0,width:0}),n=REe(t,2),r=n[0],a=n[1],s=v.useRef(null),o=v.useRef(r);o.current=r;var l=v.useCallback(d=>{if(s.current!=null&&(s.current.disconnect(),s.current=null),d!=null){var u=VR(d);if(UR(u,o.current)&&a(u),typeof ResizeObserver<"u"){var h=new ResizeObserver(()=>{var p=VR(d);UR(p,o.current)&&a(p)});h.observe(d),s.current=h}}},[...e]);return v.useEffect(()=>()=>{var d;(d=s.current)===null||d===void 0||d.disconnect()},[]),[r,l]}function Er(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zEe=typeof Symbol=="function"&&Symbol.observable||"@@observable",GR=zEe,Y3=()=>Math.random().toString(36).substring(7).split("").join("."),HEe={INIT:`@@redux/INIT${Y3()}`,REPLACE:`@@redux/REPLACE${Y3()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Y3()}`},Yy=HEe;function uA(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function dY(e,t,n){if(typeof e!="function")throw new Error(Er(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Er(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Er(1));return n(dY)(e,t)}let r=e,a=t,s=new Map,o=s,l=0,d=!1;
2752function u(){o===s&&(o=new Map,s.forEach((j,S)=>{o.set(S,j)}))}function h(){if(d)throw new Error(Er(3));return a}function p(j){if(typeof j!="function")throw new Error(Er(4));if(d)throw new Error(Er(5));let S=!0;u();const k=l++;return o.set(k,j),function(){if(S){if(d)throw new Error(Er(6));S=!1,u(),o.delete(k),s=null}}}function g(j){if(!uA(j))throw new Error(Er(7));if(typeof j.type>"u")throw new Error(Er(8));if(typeof j.type!="string")throw new Error(Er(17));if(d)throw new Error(Er(9));try{d=!0,a=r(a,j)}finally{d=!1}return(s=o).forEach(k=>{k()}),j}function y(j){if(typeof j!="function")throw new Error(Er(10));r=j,g({type:Yy.REPLACE})}function b(){const j=p;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(Er(11));function k(){const _=S;_.next&&_.next(h())}return k(),{unsubscribe:j(k)}},[GR](){return this}}}return g({type:Yy.INIT}),{dispatch:g,subscribe:p,getState:h,replaceReducer:y,[GR]:b}}function UEe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Yy.INIT})>"u")throw new Error(Er(12));if(typeof n(void 0,{type:Yy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Er(13))})}function fY(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const o=t[s];typeof e[o]=="function"&&(n[o]=e[o])}const r=Object.keys(n);let a;try{UEe(n)}catch(s){a=s}return function(o={},l){if(a)throw a;let d=!1;const u={};for(let h=0;h<r.length;h++){const p=r[h],g=n[p],y=o[p],b=g(y,l);if(typeof b>"u")throw l&&l.type,new Error(Er(14));u[p]=b,d=d||b!==y}return d=d||r.length!==Object.keys(o).length,d?u:o}}function Ky(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function VEe(...e){return t=>(n,r)=>{const a=t(n,r);let s=()=>{throw new Error(Er(15))};const o={getState:a.getState,dispatch:(d,...u)=>s(d,...u)},l=e.map(d=>d(o));return s=Ky(...l)(a.dispatch),{...a,dispatch:s}}}function hY(e){return uA(e)&&"type"in e&&typeof e.type=="string"}var pY=Symbol.for("immer-nothing"),WR=Symbol.for("immer-draftable"),Gr=Symbol.for("immer-state");function Ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Wi=Object,uf=Wi.getPrototypeOf,Xy="constructor",Ib="prototype",x6="configurable",Zy="enumerable",ly="writable",km="value",_o=e=>!!e&&!!e[Gr];function Ca(e){return e?mY(e)||Bb(e)||!!e[WR]||!!e[Xy]?.[WR]||qb(e)||Fb(e):!1}var GEe=Wi[Ib][Xy].toString(),YR=new WeakMap;function mY(e){if(!e||!dA(e))return!1;const t=uf(e);if(t===null||t===Wi[Ib])return!0;const n=Wi.hasOwnProperty.call(t,Xy)&&t[Xy];if(n===Object)return!0;if(!Rd(n))return!1;let r=YR.get(n);return r===void 0&&(r=Function.toString.call(n),YR.set(n,r)),r===GEe}function $b(e,t,n=!0){hg(e)===0?(n?Reflect.ownKeys(e):Wi.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function hg(e){const t=e[Gr];return t?t.type_:Bb(e)?1:qb(e)?2:Fb(e)?3:0}var K3=(e,t,n=hg(e))=>n===2?e.has(t):Wi[Ib].hasOwnProperty.call(e,t),b6=(e,t,n=hg(e))=>n===2?e.get(t):e[t],Qy=(e,t,n,r=hg(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function WEe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Bb=Array.isArray,qb=e=>e instanceof Map,Fb=e=>e instanceof Set,dA=e=>typeof e=="object",Rd=e=>typeof e=="function",X3=e=>typeof e=="boolean";function YEe(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var lo=e=>e.copy_||e.base_,fA=e=>e.modified_?e.copy_:e.base_;function w6(e,t){if(qb(e))return new Map(e);if(Fb(e))return new Set(e);if(Bb(e))return Array[Ib].slice.call(e);const n=mY(e);if(t===!0||t==="class_only"&&!n){const r=Wi.getOwnPropertyDescriptors(e);delete r[Gr];let a=Reflect.ownKeys(r);for(let s=0;s<a.length;s++){const o=a[s],l=r[o];l[ly]===!1&&(l[ly]=!0,l[x6]=!0),(l.get||l.set)&&(r[o]={[x6]:!0,[ly]:!0,[Zy]:l[Zy],[km]:e[o]})}return Wi.create(uf(e),r)}else{const r=uf(e);if(r!==null&&n)return{...e};const a=Wi.create(r);return Wi.assign(a,e)}}function hA(e,t=!1){return zb(e)||_o(e)||!Ca(e)||(hg(e)>1&&Wi.defineProperties(e,{set:x0,add:x0,clear:x0,delete:x0}),Wi.freeze(e),t&&$b(e,(n,r)=>{hA(r,!0)},!1)),e}function KEe(){Ba(2)}var x0={[km]:KEe};function zb(e){return e===null||!dA(e)?!0:Wi.isFrozen(e)}var Jy="MapSet",j6="Patches",KR="ArrayMethods",gY={};function hu(e){const t=gY[e];return t||Ba(0,e),t}var XR=e=>!!gY[e],Nm,vY=()=>Nm,XEe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:XR(Jy)?hu(Jy):void 0,arrayMethodsPlugin_:XR(KR)?hu(KR):void 0});function ZR(e,t){t&&(e.patchPlugin_=hu(j6),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function S6(e){C6(e),e.drafts_.forEach(ZEe),e.drafts_=null}function C6(e){e===Nm&&(Nm=e.parent_)}var QR=e=>Nm=XEe(Nm,e);function ZEe(e){const t=e[Gr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function JR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Gr].modified_&&(S6(t),Ba(4)),Ca(e)&&(e=eI(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[Gr].base_,e,t)}else e=eI(t,n);return QEe(t,e,!0),S6(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pY?e:void 0}function eI(e,t){if(zb(t))return t;const n=t[Gr];if(!n)return ex(t,e.handledSet_,e);if(!Hb(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);bY(n,e)}return n.copy_}function QEe(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hA(t,n)}function yY(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Hb=(e,t)=>
2752e.scope_===t,JEe=[];function xY(e,t,n,r){const a=lo(e),s=e.type_;if(r!==void 0&&b6(a,r,s)===t){Qy(a,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;$b(a,(d,u)=>{if(_o(u)){const h=l.get(u)||[];h.push(d),l.set(u,h)}})}const o=e.draftLocations_.get(t)??JEe;for(const l of o)Qy(a,l,n,s)}function e_e(e,t,n){e.callbacks_.push(function(a){const s=t;if(!s||!Hb(s,a))return;a.mapSetPlugin_?.fixSetContents(s);const o=fA(s);xY(e,s.draft_??s,o,n),bY(s,a)})}function bY(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const a=r.getPath(e);a&&r.generatePatches_(e,a,t)}yY(e)}}function t_e(e,t,n){const{scope_:r}=e;if(_o(n)){const a=n[Gr];Hb(a,r)&&a.callbacks_.push(function(){cy(e);const o=fA(a);xY(e,n,o,t)})}else Ca(n)&&e.callbacks_.push(function(){const s=lo(e);e.type_===3?s.has(n)&&ex(n,r.handledSet_,r):b6(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ex(b6(e.copy_,t,e.type_),r.handledSet_,r)})}function ex(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||_o(e)||t.has(e)||!Ca(e)||zb(e)||(t.add(e),$b(e,(r,a)=>{if(_o(a)){const s=a[Gr];if(Hb(s,n)){const o=fA(s);Qy(e,r,o,e.type_),yY(s)}}else Ca(a)&&ex(a,t,n)})),e}function n_e(e,t){const n=Bb(e),r={type_:n?1:0,scope_:t?t.scope_:vY(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,s=tx;n&&(a=[r],s=Am);const{revoke:o,proxy:l}=Proxy.revocable(a,s);return r.draft_=l,r.revoke_=o,[l,r]}var tx={get(e,t){if(t===Gr)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=lo(e);if(!K3(a,t,e.type_))return i_e(e,a,t);const s=a[t];if(e.finalized_||!Ca(s)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&YEe(t))return s;if(s===Z3(e.base_,t)||r_e(e,t,s)){cy(e);const o=e.type_===1?+t:t,l=N6(e.scope_,s,e,o);return e.copy_[o]=l}return s},has(e,t){return t in lo(e)},ownKeys(e){return Reflect.ownKeys(lo(e))},set(e,t,n){const r=wY(lo(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=Z3(lo(e),t),s=a?.[Gr];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(WEe(n,a)&&(n!==void 0||K3(e.base_,t,e.type_)))return!0;cy(e),k6(e)}return e.copy_[t]===n&&(n!==void 0||K3(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),t_e(e,t,n)),!0},deleteProperty(e,t){return cy(e),Z3(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),k6(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=lo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ly]:!0,[x6]:e.type_!==1||t!=="length",[Zy]:r[Zy],[km]:n[t]}},defineProperty(){Ba(11)},getPrototypeOf(e){return uf(e.base_)},setPrototypeOf(){Ba(12)}},Am={};for(let e in tx){let t=tx[e];Am[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Am.deleteProperty=function(e,t){return Am.set.call(this,e,t,void 0)};Am.set=function(e,t,n){return tx.set.call(this,e[0],t,n,e[0])};function Z3(e,t){const n=e[Gr];return(n?lo(n):e)[t]}function r_e(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Ca(n)||n[Gr]?!1:e.baseRefs_.has(n)}function i_e(e,t,n){const r=wY(t,n);return r?km in r?r[km]:r.get?.call(e.draft_):void 0}function wY(e,t){if(!(t in e))return;let n=uf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=uf(n)}}function k6(e){e.modified_||(e.modified_=!0,e.parent_&&k6(e.parent_))}function cy(e){e.copy_||(e.assigned_=new Map,e.copy_=w6(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a_e=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,a)=>{if(Rd(n)&&!Rd(r)){const o=r;r=n;const l=this;return function(u=o,...h){return l.produce(u,p=>r.call(this,p,...h))}}Rd(r)||Ba(6),a!==void 0&&!Rd(a)&&Ba(7);let s;if(Ca(n)){const o=QR(this),l=N6(o,n,void 0);let d=!0;try{s=r(l),d=!1}finally{d?S6(o):C6(o)}return ZR(o,a),JR(s,o)}else if(!n||!dA(n)){if(s=r(n),s===void 0&&(s=n),s===pY&&(s=void 0),this.autoFreeze_&&hA(s,!0),a){const o=[],l=[];hu(j6).generateReplacementPatches_(n,s,{patches_:o,inversePatches_:l}),a(o,l)}return s}else Ba(1,n)},this.produceWithPatches=(n,r)=>{if(Rd(n))return(l,...d)=>this.produceWithPatches(l,u=>n(u,...d));let a,s;return[this.produce(n,r,(l,d)=>{a=l,s=d}),a,s]},X3(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),X3(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),X3(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ca(t)||Ba(8),_o(t)&&(t=xa(t));const n=QR(this),r=N6(n,t,void 0);return r[Gr].isManual_=!0,C6(n),r}finishDraft(t,n){const r=t&&t[Gr];(!r||!r.isManual_)&&Ba(9);const{scope_:a}=r;return ZR(a,n),JR(void 0,a)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const s=n[r];
2752if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(n=n.slice(r+1));const a=hu(j6).applyPatches_;return _o(t)?a(t,n):this.produce(t,s=>a(s,n))}};function N6(e,t,n,r){const[a,s]=qb(t)?hu(Jy).proxyMap_(t,n):Fb(t)?hu(Jy).proxySet_(t,n):n_e(t,n);return(n?.scope_??vY()).drafts_.push(a),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?e_e(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),a}function xa(e){return _o(e)||Ba(10,e),jY(e)}function jY(e){if(!Ca(e)||zb(e))return e;const t=e[Gr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=w6(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=w6(e,!0);return $b(n,(a,s)=>{Qy(n,a,jY(s))},r),t&&(t.finalized_=!1),n}var s_e=new a_e,SY=s_e.produce;function CY(e){return({dispatch:n,getState:r})=>a=>s=>typeof s=="function"?s(n,r,e):a(s)}var o_e=CY(),l_e=CY,c_e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ky:Ky.apply(null,arguments)};function Ji(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(Zi(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>hY(r)&&r.type===e,n}var kY=class Pp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Pp.prototype)}static get[Symbol.species](){return Pp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Pp(...t[0].concat(this)):new Pp(...t.concat(this))}};function tI(e){return Ca(e)?SY(e,()=>{}):e}function b0(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function u_e(e){return typeof e=="boolean"}var d_e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:s=!0}=t??{};let o=new kY;return n&&(u_e(n)?o.push(o_e):o.push(l_e(n.extraArgument))),o},NY="RTK_autoBatch",tn=()=>e=>({payload:e,meta:{[NY]:!0}}),nI=e=>t=>{setTimeout(t,e)},f_e=(e,t)=>n=>{let r=!1;const a=()=>{r||(r=!0,cancelAnimationFrame(s),clearTimeout(o),n())},s=e(a),o=setTimeout(a,t)},AY=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,s=!1,o=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?f_e(window.requestAnimationFrame,100):nI(10):e.type==="callback"?e.queueNotification:nI(e.timeout),u=()=>{o=!1,s&&(s=!1,l.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>a&&h(),g=r.subscribe(p);return l.add(h),()=>{g(),l.delete(h)}},dispatch(h){try{return a=!h?.meta?.[NY],s=!a,s&&(o||(o=!0,d(u))),r.dispatch(h)}finally{a=!0}}})},h_e=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new kY(e);return r&&a.push(AY(typeof r=="object"?r:void 0)),a};function p_e(e){const t=d_e(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:s=void 0,enhancers:o=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(uA(n))l=fY(n);else throw new Error(Zi(1));let d;typeof r=="function"?d=r(t):d=t();let u=Ky;a&&(u=c_e({trace:!1,...typeof a=="object"&&a}));const h=VEe(...d),p=h_e(h);let g=typeof o=="function"?o(p):p();const y=u(...g);return dY(l,s,y)}function EY(e){const t={},n=[];let r;const a={addCase(s,o){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(Zi(28));if(l in t)throw new Error(Zi(29));return t[l]=o,a},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&n.push({matcher:s.settled,reducer:o.settled}),a},addMatcher(s,o){return n.push({matcher:s,reducer:o}),a},addDefaultCase(s){return r=s,a}};return e(a),[t,n,r]}function m_e(e){return typeof e=="function"}function g_e(e,t){let[n,r,a]=EY(t),s;if(m_e(e))s=()=>tI(e());else{const l=tI(e);s=()=>l}function o(l=s(),d){let u=[n[d.type],...r.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[a]),u.reduce((h,p)=>{if(p)if(_o(h)){const y=p(h,d);return y===void 0?h:y}else{if(Ca(h))return SY(h,g=>p(g,d));{const g=p(h,d);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},l)}return o.getInitialState=s,o}var v_e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",y_e=(e=21)=>{let t="",n=e;for(;n--;)t+=v_e[Math.random()*64|0];return t},x_e=Symbol.for("rtk-slice-createasyncthunk");function b_e(e,t){return`${e}/${t}`}function w_e({creators:e}={}){const t=e?.asyncThunk?.[x_e];return function(r){const{name:a,reducerPath:s=a}=r;if(!a)throw new Error(Zi(11));const o=(typeof r.reducers=="function"?r.reducers(S_e()):r.reducers)||{},l=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(N,_){const L=typeof N=="string"?N:N.type;if(!L)throw new Error(Zi(12));if(L in d.sliceCaseReducersByType)throw new Error(Zi(13));return d.sliceCaseReducersByType[L]=_,u},addMatcher(N,_){return d.sliceMatchers.push({matcher:N,reducer:_}),u},exposeAction(N,_){return d.actionCreators[N]=_,u},exposeCaseReducer(N,_){return d.sliceCaseReducersByName[N]=_,u}};l.forEach(N=>{const _=o[N],L={reducerName:N,type:b_e(a,N),createNotation:typeof r.reducers=="function"};k_e(_)?A_e(L,_,u,t):C_e(L,_,u)});function h(){const[N={},_=[],L=void 0]=typeof r.extraReducers=="function"?EY(r.extraReducers):[r.extraReducers],E={...N,...d.sliceCaseReducersByType};return g_e(r.initialState,T=>{for(let P in E)T.addCase(P,E[P]);for(let P of d.sliceMatchers)T.addMatcher(P.matcher,P.reducer);for(let P of _)T.addMatcher(P.matcher,P.reducer);L&&T.addDefaultCase(L)})}const p=N=>N,g=new Map,y=new WeakMap;let b;function w(N,_){return b||(b=h()),b(N,_)}function j(){return b||(b=h()),b.getInitialState()}function S(N,_=!1){function L(T){let P=T[N];return typeof P>"u"&&_&&(P=b0(y,L,j)),P}function E(T=p){const P=b0(g,_,()=>new WeakMap);return b0(P,T,()=>{const $={};for(const[O,q]of Object.entries(r.selectors??{}
2752))$[O]=j_e(q,T,()=>b0(y,T,j),_);return $})}return{reducerPath:N,getSelectors:E,get selectors(){return E(L)},selectSlice:L}}const k={name:a,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:j,...S(s),injectInto(N,{reducerPath:_,...L}={}){const E=_??s;return N.inject({reducerPath:E,reducer:w},L),{...k,...S(E,!0)}}};return k}}function j_e(e,t,n,r){function a(s,...o){let l=t(s);return typeof l>"u"&&r&&(l=n()),e(l,...o)}return a.unwrapped=e,a}var Kr=w_e();function S_e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function C_e({type:e,reducerName:t,createNotation:n},r,a){let s,o;if("reducer"in r){if(n&&!N_e(r))throw new Error(Zi(17));s=r.reducer,o=r.prepare}else s=r;a.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?Ji(e,o):Ji(e))}function k_e(e){return e._reducerDefinitionType==="asyncThunk"}function N_e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function A_e({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Zi(18));const{payloadCreator:s,fulfilled:o,pending:l,rejected:d,settled:u,options:h}=n,p=a(e,s,h);r.exposeAction(t,p),o&&r.addCase(p.fulfilled,o),l&&r.addCase(p.pending,l),d&&r.addCase(p.rejected,d),u&&r.addMatcher(p.settled,u),r.exposeCaseReducer(t,{fulfilled:o||w0,pending:l||w0,rejected:d||w0,settled:u||w0})}function w0(){}var E_e="task",_Y="listener",TY="completed",pA="cancelled",__e=`task-${pA}`,T_e=`task-${TY}`,A6=`${_Y}-${pA}`,L_e=`${_Y}-${TY}`,Ub=class{constructor(e){this.code=e,this.message=`${E_e} ${pA} (reason: ${e})`}code;name="TaskAbortError";message},mA=(e,t)=>{if(typeof e!="function")throw new TypeError(Zi(32))},nx=()=>{},LY=(e,t=nx)=>(e.catch(t),e),OY=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Qc=e=>{if(e.aborted)throw new Ub(e.reason)};function MY(e,t){let n=nx;return new Promise((r,a)=>{const s=()=>a(new Ub(e.reason));if(e.aborted){s();return}n=OY(e,s),t.finally(()=>n()).then(r,a)}).finally(()=>{n=nx})}var O_e=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Ub?"cancelled":"rejected",error:n}}finally{t?.()}},rx=e=>t=>LY(MY(e,t).then(n=>(Qc(e),n))),DY=e=>{const t=rx(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Xd}=Object,rI={},Vb="listenerMiddleware",M_e=(e,t)=>{const n=r=>OY(e,()=>r.abort(e.reason));return(r,a)=>{mA(r);const s=new AbortController;n(s);const o=O_e(async()=>{Qc(e),Qc(s.signal);const l=await r({pause:rx(s.signal),delay:DY(s.signal),signal:s.signal});return Qc(s.signal),l},()=>s.abort(T_e));return a?.autoJoin&&t.push(o.catch(nx)),{result:rx(e)(o),cancel(){s.abort(__e)}}}},D_e=(e,t)=>{const n=async(r,a)=>{Qc(t);let s=()=>{};const l=[new Promise((d,u)=>{let h=e({predicate:r,effect:(p,g)=>{g.unsubscribe(),d([p,g.getState(),g.getOriginalState()])}});s=()=>{h(),u()}})];a!=null&&l.push(new Promise(d=>setTimeout(d,a,null)));try{const d=await MY(t,Promise.race(l));return Qc(t),d}finally{s()}};return((r,a)=>LY(n(r,a)))},PY=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:s}=e;if(t)a=Ji(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Zi(21));return mA(s),{predicate:a,type:t,effect:s}},RY=Xd(e=>{const{type:t,predicate:n,effect:r}=PY(e);return{id:y_e(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Zi(22))}}},{withTypes:()=>RY}),iI=(e,t)=>{const{type:n,effect:r,predicate:a}=PY(t);return Array.from(e.values()).find(s=>(typeof n=="string"?s.type===n:s.predicate===a)&&s.effect===r)},E6=e=>{e.pending.forEach(t=>{t.abort(A6)})},P_e=(e,t)=>()=>{for(const n of t.keys())E6(n);e.clear()},aI=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},IY=Xd(Ji(`${Vb}/add`),{withTypes:()=>IY}),R_e=Ji(`${Vb}/removeAll`),$Y=Xd(Ji(`${Vb}/remove`),{withTypes:()=>$Y}),I_e=(...e)=>{console.error(`${Vb}/error`,...e)},pg=(e={})=>{const t=new Map,n=new Map,r=y=>{const b=n.get(y)??0;n.set(y,b+1)},a=y=>{const b=n.get(y)??1;b===1?n.delete(y):n.set(y,b-1)},{extra:s,onError:o=I_e}=e;mA(o);const l=y=>(y.unsubscribe=()=>t.delete(y.id),t.set(y.id,y),b=>{y.unsubscribe(),b?.cancelActive&&E6(y)}),d=(y=>{const b=iI(t,y)??RY(y);return l(b)});Xd(d,{withTypes:()=>d});const u=y=>{const b=iI(t,y);return b&&(b.unsubscribe(),y.cancelActive&&E6(b)),!!b};Xd(u,{withTypes:()=>u});const h=async(y,b,w,j)=>{const S=new AbortController,k=D_e(d,S.signal),N=[];try{y.pending.add(S),r(y),await Promise.resolve(y.effect(b,Xd({},w,{getOriginalState:j,condition:(_,L)=>k(_,L).then(Boolean),take:k,delay:DY(S.signal),pause:rx(S.signal),extra:s,signal:S.signal,fork:M_e(S.signal,N),unsubscribe:y.unsubscribe,subscribe:()=>{t.set(y.id,y)},cancelActiveListeners:()=>{y.pending.forEach((_,L,E)=>{_!==S&&(_.abort(A6),E.delete(_))})},cancel:()=>{S.abort(A6),y.pending.delete(S)},throwIfCancelled:()=>{Qc(S.signal)}})))}catch(_){_ instanceof Ub||aI(o,_,{raisedBy:"effect"})}finally{await Promise.all(N),S.abort(L_e),a(y),y.pending.delete(S)}},p=P_e(t,n);return{middleware:y=>b=>w=>{if(!hY(w))return b(w);if(IY.match(w))return d(w.payload);if(R_e.match(w)){p();return}if($Y.match(w))return u(w.payload);let j=y.getState();const S=()=>
2752{if(j===rI)throw new Error(Zi(23));return j};let k;try{if(k=b(w),t.size>0){const N=y.getState(),_=Array.from(t.values());for(const L of _){let E=!1;try{E=L.predicate(w,N,j)}catch(T){E=!1,aI(o,T,{raisedBy:"predicate"})}E&&h(L,w,y,S)}}}finally{j=rI}return k},startListening:d,stopListening:u,clearListeners:p}};function Zi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var $_e={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},BY=Kr({name:"chartLayout",initialState:$_e,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,a,s;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(s=t.payload.left)!==null&&s!==void 0?s:0},setScale(e,t){e.scale=t.payload}}}),Gb=BY.actions,B_e=Gb.setMargin,q_e=Gb.setLayout,F_e=Gb.setChartSize,z_e=Gb.setScale,H_e=BY.reducer;function qY(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function yt(e){return Number.isFinite(e)}function Ts(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function sI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(n),!0).forEach(function(r){U_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U_e(e,t,n){return(t=V_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V_e(e){var t=G_e(e,"string");return typeof t=="symbol"?t:t+""}function G_e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ir(e,t,n){return Dr(e)||Dr(t)?n:_s(t)?ku(e,t,n):typeof t=="function"?t(e):n}var W_e=(e,t,n)=>{if(t&&n){var r=n.width,a=n.height,s=t.align,o=t.verticalAlign,l=t.layout,d=t.position,u=t.offset,h=u===void 0?0:u;if(d!=null){if(u4e(d)){if(d==="top"&&Re(e.top))return yi(yi({},e),{},{top:e.top+(a||0)+h});if(d==="bottom"&&Re(e.bottom))return yi(yi({},e),{},{bottom:e.bottom+(a||0)+h});if(d==="left"&&Re(e.left))return yi(yi({},e),{},{left:e.left+(r||0)+h});if(d==="right"&&Re(e.right))return yi(yi({},e),{},{right:e.right+(r||0)+h})}return e}if((l==="vertical"||l==="horizontal"&&o==="middle")&&s!=="center"&&Re(e[s]))return yi(yi({},e),{},{[s]:e[s]+(r||0)});if((l==="horizontal"||l==="vertical"&&s==="center")&&o!=="middle"&&Re(e[o]))return yi(yi({},e),{},{[o]:e[o]+(a||0)})}return e},Ds=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",FY=(e,t,n,r)=>{if(r)return e.map(l=>l.coordinate);var a,s,o=e.map(l=>(l.coordinate===t&&(a=!0),l.coordinate===n&&(s=!0),l.coordinate));return a||o.push(t),s||o.push(n),o},zY=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,a=e.type,s=e.range,o=e.scale,l=e.realScaleType,d=e.isCategorical,u=e.categoricalDomain,h=e.tickCount,p=e.ticks,g=e.niceTicks,y=e.axisType;if(!o)return null;var b=l==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,w=a==="category"&&o.bandwidth?o.bandwidth()/b:0;if(w=y==="angleAxis"&&s&&s.length>=2?ya(s[0]-s[1])*2*w:w,p||g){var j=(p||g||[]).map((S,k)=>{var N=r?r.indexOf(S):S,_=o.map(N);return yt(_)?{coordinate:_+w,value:S,offset:w,index:k}:null}).filter(ri);return j}return d&&u?u.map((S,k)=>{var N=o.map(S);return yt(N)?{coordinate:N+w,value:S,index:k,offset:w}:null}).filter(ri):o.ticks&&h!=null?o.ticks(h).map((S,k)=>{var N=o.map(S);return yt(N)?{coordinate:N+w,value:S,index:k,offset:w}:null}).filter(ri):o.domain().map((S,k)=>{var N=o.map(S);return yt(N)?{coordinate:N+w,value:r?r[S]:S,index:k,offset:w}:null}).filter(ri)},Y_e=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var s=0,o=0,l=0;l<n;++l){var d=e[l],u=d?.[a];if(u!=null){var h=u[1],p=u[0],g=Es(h)?p:h;g>=0?(u[0]=s,s+=g,u[1]=s):(u[0]=o,o+=g,u[1]=o)}}}},K_e=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var s=0,o=0;o<n;++o){var l=e[o],d=l?.[a];if(d!=null){var u=Es(d[1])?d[0]:d[1];u>=0?(d[0]=s,s+=u,d[1]=s):(d[0]=0,d[1]=0)}}}},X_e={sign:Y_e,expand:T4e,none:fu,silhouette:L4e,wiggle:O4e,positive:K_e}
2752,Z_e=(e,t,n)=>{var r,a=(r=X_e[n])!==null&&r!==void 0?r:fu,s=_4e().keys(t).value((l,d)=>Number(ir(l,d,0))).order(h6).offset(a),o=s(e);return o.forEach((l,d)=>{l.forEach((u,h)=>{var p=ir(e[h],t[d],0);Array.isArray(p)&&p.length===2&&Re(p[0])&&Re(p[1])&&(u[0]=p[0],u[1]=p[1])})}),o};function Q_e(e){return e==null?void 0:String(e)}function oI(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,s=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Dr(a[t.dataKey])){var l=bW(n,"value",a[t.dataKey]);if(l)return l.coordinate+r/2}return n!=null&&n[s]?n[s].coordinate+r/2:null}var d=ir(a,Dr(o)?t.dataKey:o),u=t.scale.map(d);return Re(u)?u:null}var J_e=e=>{var t=e.flat(2).filter(Re);return[Math.min(...t),Math.max(...t)]},eTe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],tTe=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return eTe(Object.keys(e).reduce((r,a)=>{var s=e[a];if(!s)return r;var o=s.stackedData,l=o.reduce((d,u)=>{var h=qY(u,t,n),p=J_e(h);return!yt(p[0])||!yt(p[1])?d:[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],r[0]),Math.max(l[1],r[1])]},[1/0,-1/0]))},lI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ix=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var a=Rb(t,w=>w.coordinate),s=[],o=0,l=1,d=a.length;l<d;l++){var u,h,p=(((u=a[l])===null||u===void 0?void 0:u.coordinate)||0)-(((h=a[l-1])===null||h===void 0?void 0:h.coordinate)||0);s.push(p),o=Math.max(p,o)}var g=o*1e-4,y=1/0;for(var b of s)b>g&&(y=Math.min(b,y));return y===1/0?0:y}return n?void 0:0};function uI(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,a=e.value,s=e.name;return yi(yi({},t),{},{dataKey:n,payload:r,value:a,name:s})}function HY(e,t){if(e!=null)return String(e);if(typeof t=="string")return t}var nTe=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},rTe=(e,t)=>t==="centric"?e.angle:e.radius,Ro=e=>e.layout.width,Io=e=>e.layout.height,iTe=e=>e.layout.scale,UY=e=>e.layout.margin,Wb=ue(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Yb=ue(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),aTe="data-recharts-item-index",sTe="data-recharts-item-id",mg=60,gA=30;function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function j0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(r){oTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oTe(e,t,n){return(t=lTe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lTe(e){var t=cTe(e,"string");return typeof t=="symbol"?t:t+""}function cTe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uTe=e=>e.brush.height;function dTe(e){var t=Yb(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:mg;return n+a}return n},0)}function fTe(e){var t=Yb(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:mg;return n+a}return n},0)}function hTe(e){var t=Wb(e);return t.reduce((n,r)=>{if(r.orientation==="top"&&!r.mirror&&!r.hide){var a=typeof r.height=="number"?r.height:gA;return n+a}return n},0)}function pTe(e){var t=Wb(e);return t.reduce((n,r)=>{if(r.orientation==="bottom"&&!r.mirror&&!r.hide){var a=typeof r.height=="number"?r.height:gA;return n+a}return n},0)}var Pr=ue([Ro,Io,UY,uTe,dTe,fTe,hTe,pTe,uY,DEe],(e,t,n,r,a,s,o,l,d,u)=>{var h={left:(n.left||0)+a,right:(n.right||0)+s},p={top:(n.top||0)+o,bottom:(n.bottom||0)+l},g=j0(j0({},p),h),y=g.bottom;g.bottom+=r,g=W_e(g,d,u);var b=e-g.left-g.right,w=t-g.top-g.bottom;return j0(j0({brushBottom:y},g),{},{width:Math.max(b,0),height:Math.max(w,0)})}),mTe=ue(Pr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),VY=ue(Ro,Io,(e,t)=>({x:0,y:0,width:e,height:t})),gTe=v.createContext(null),_i=()=>v.useContext(gTe)!=null,Kb=e=>e.brush,Xb=ue([Kb,Pr,UY],(e,t,n)=>({height:e.height,x:Re(e.x)?e.x:t.left,y:Re(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Re(e.width)?e.width:t.width}));function vTe(e,t,{signal:n,edges:r}={}){let a,s=null;const o=r!=null&&r.includes("leading"),l=r==null||r.includes("trailing"),d=()=>{s!==null&&(e.apply(a,s),a=void 0,s=null)},u=()=>{l&&d(),y()};let h=null;const p=()=>{h!=null&&clearTimeout(h),h=setTimeout(()=>{h=null,u()},t)},g=()=>{h!==null&&(clearTimeout(h),h=null)},y=()=>{g(),a=void 0,s=null},b=()=>{d()},w=function(...j){if(n?.aborted)return;a=this,s=j;const S=h==null;p(),o&&S&&d()};return w.schedule=p,w.cancel=y,w.flush=b,n?.addEventListener("abort",y,{once:!0}),w}function yTe(e,t=0,n={}){typeof n!="object"&&(n={});const{leading:r=!1,trailing:a=!0,maxWait:s}=n,o=Array(2);r&&(o[0]="leading"),a&&(o[1]="trailing");let l,d=null;const u=vTe(function(...g){l=e.apply(this,g),d=null},t,{edges:o}),h=function(...g){return s!=null&&(d===null&&(d=Date.now()),Date.now()-d>=s)?(l=e.apply(this,g),d=Date.now(),u.cancel(),u.schedule(),l):(u.apply(this,g),l)},p=()=>(u.flush(),l);return h.cancel=u.cancel,h.flush=p,h}function xTe(e,t=0,n={}){const{leading:r=!0,trailing:a=!0}=n;return yTe(e,t,{leading:r,maxWait:t,trailing:a})}var ax=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(n.replace(/%s/g,()=>a[o++]))}},bs={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}}
2752,GY=(e,t,n)=>{var r=n.width,a=r===void 0?bs.width:r,s=n.height,o=s===void 0?bs.height:s,l=n.aspect,d=n.maxHeight,u=du(a)?e:Number(a),h=du(o)?t:Number(o);return l&&l>0&&(u?h=u/l:h&&(u=h*l),d&&h!=null&&h>d&&(h=d)),{calculatedWidth:u,calculatedHeight:h}},bTe={width:0,height:0,overflow:"visible"},wTe={width:0,overflowX:"visible"},jTe={height:0,overflowY:"visible"},STe={},CTe=e=>{var t=e.width,n=e.height,r=du(t),a=du(n);return r&&a?bTe:r?wTe:a?jTe:STe};function kTe(e){var t=e.width,n=e.height,r=e.aspect,a=t,s=n;return a===void 0&&s===void 0?(a=bs.width,s=bs.height):a===void 0?a=r&&r>0?void 0:bs.width:s===void 0&&(s=r&&r>0?void 0:bs.height),{width:a,height:s}}var NTe=["aspect","initialDimension","width","height","minWidth","minHeight","maxHeight","children","debounce","id","className","onResize","style"];function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sx.apply(null,arguments)}function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fI(Object(n),!0).forEach(function(r){ATe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ATe(e,t,n){return(t=ETe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ETe(e){var t=_Te(e,"string");return typeof t=="symbol"?t:t+""}function _Te(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TTe(e,t){return DTe(e)||MTe(e,t)||OTe(e,t)||LTe()}function LTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2753In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OTe(e,t){if(e){if(typeof e=="string")return pI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pI(e,t):void 0}}function pI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function MTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function DTe(e){if(Array.isArray(e))return e}function PTe(e,t){if(e==null)return{};var n,r,a=RTe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function RTe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var WY=v.createContext(bs.initialDimension);function ITe(e){return Ts(e.width)&&Ts(e.height)}function YY(e){var t=e.children,n=e.width,r=e.height,a=v.useMemo(()=>({width:n,height:r}),[n,r]);return ITe(a)?v.createElement(WY.Provider,{value:a},t):null}var vA=()=>v.useContext(WY),$Te=v.forwardRef((e,t)=>{var n=e.aspect,r=e.initialDimension,a=r===void 0?bs.initialDimension:r,s=e.width,o=e.height,l=e.minWidth,d=l===void 0?bs.minWidth:l,u=e.minHeight,h=e.maxHeight,p=e.children,g=e.debounce,y=g===void 0?bs.debounce:g,b=e.id,w=e.className,j=e.onResize,S=e.style,k=S===void 0?{}:S,N=PTe(e,NTe),_=v.useRef(null),L=v.useRef();L.current=j,v.useImperativeHandle(t,()=>_.current);var E=v.useState({containerWidth:a.width,containerHeight:a.height}),T=TTe(E,2),P=T[0],$=T[1],O=v.useCallback((B,H)=>{$(G=>{var K=Math.round(B),M=Math.round(H);return G.containerWidth===K&&G.containerHeight===M?G:{containerWidth:K,containerHeight:M}})},[]);v.useEffect(()=>{if(_.current==null||typeof ResizeObserver>"u")return Df;var B=I=>{var X,F=I[0];if(F!=null){var U=F.contentRect,Z=U.width,ee=U.height;O(Z,ee),(X=L.current)===null||X===void 0||X.call(L,Z,ee)}};y>0&&(B=xTe(B,y,{trailing:!0,leading:!1}));var H=new ResizeObserver(B),G=_.current.getBoundingClientRect(),K=G.width,M=G.height;return O(K,M),H.observe(_.current),()=>{H.disconnect()}},[O,y]);var q=P.containerWidth,D=P.containerHeight;ax(!n||n>0,"The aspect(%s) must be greater than zero.",n);var z=GY(q,D,{width:s,height:o,aspect:n,maxHeight:h}),V=z.calculatedWidth,W=z.calculatedHeight;return ax(q<0||D<0||V!=null&&V>0||W!=null&&W>0,`The width(%s) and height(%s) of chart should be greater than 0, 2754 please check the style of container, or the props width(%s) and height(%s), 2755 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 2756 height and width.`,V,W,s,o,d,u,n),v.createElement("div",sx({id:b?"".concat(b):void 0,className:an("recharts-responsive-container",w),style:hI(hI({},k),{},{width:s,height:o,minWidth:d,minHeight:u,maxHeight:h}),ref:_},N),v.createElement("div",{style:CTe({width:s,height:o})},v.createElement(YY,{width:V,height:W},p)))}),BTe=v.forwardRef((e,t)=>
2756{var n=vA();if(Ts(n.width)&&Ts(n.height))return e.children;var r=kTe({width:e.width,height:e.height,aspect:e.aspect}),a=r.width,s=r.height,o=GY(void 0,void 0,{width:a,height:s,aspect:e.aspect,maxHeight:e.maxHeight}),l=o.calculatedWidth,d=o.calculatedHeight;return Re(l)&&Re(d)?v.createElement(YY,{width:l,height:d},e.children):v.createElement($Te,sx({},e,{width:a,height:s,ref:t}))}),Zb=()=>{var e,t=_i(),n=Ve(mTe),r=Ve(Xb),a=(e=Ve(Kb))===null||e===void 0?void 0:e.padding;return!t||!r||!a?n:{width:r.width-a.left-a.right,height:r.height-a.top-a.bottom,x:a.left,y:a.top}},qTe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},KY=()=>{var e;return(e=Ve(Pr))!==null&&e!==void 0?e:qTe},XY=()=>Ve(Ro),ZY=()=>Ve(Io),dn=e=>e.layout.layoutType,Pf=()=>Ve(dn),yA=()=>{var e=Pf();if(e==="horizontal"||e==="vertical")return e},QY=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},FTe=()=>{var e=Pf();return e!==void 0},gg=e=>{var t=In(),n=_i(),r=e.width,a=e.height,s=vA(),o=r,l=a;return s&&(o=s.width>0?s.width:r,l=s.height>0?s.height:a),v.useEffect(()=>{!n&&Ts(o)&&Ts(l)&&t(F_e({width:o,height:l}))},[t,n,o,l]),null},JY=Symbol.for("immer-nothing"),mI=Symbol.for("immer-draftable"),Wr=Symbol.for("immer-state");function qa(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Yi=Object,df=Yi.getPrototypeOf,ox="constructor",Qb="prototype",_6="configurable",lx="enumerable",uy="writable",Em="value",ql=e=>!!e&&!!e[Wr];function Ls(e){return e?eK(e)||e1(e)||!!e[mI]||!!e[ox]?.[mI]||t1(e)||n1(e):!1}var zTe=Yi[Qb][ox].toString(),gI=new WeakMap;function eK(e){if(!e||!xA(e))return!1;const t=df(e);if(t===null||t===Yi[Qb])return!0;const n=Yi.hasOwnProperty.call(t,ox)&&t[ox];if(n===Object)return!0;if(!Id(n))return!1;let r=gI.get(n);return r===void 0&&(r=Function.toString.call(n),gI.set(n,r)),r===zTe}function Jb(e,t,n=!0){vg(e)===0?(n?Reflect.ownKeys(e):Yi.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function vg(e){const t=e[Wr];return t?t.type_:e1(e)?1:t1(e)?2:n1(e)?3:0}var Q3=(e,t,n=vg(e))=>n===2?e.has(t):Yi[Qb].hasOwnProperty.call(e,t),T6=(e,t,n=vg(e))=>n===2?e.get(t):e[t],cx=(e,t,n,r=vg(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function HTe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var e1=Array.isArray,t1=e=>e instanceof Map,n1=e=>e instanceof Set,xA=e=>typeof e=="object",Id=e=>typeof e=="function",J3=e=>typeof e=="boolean";function UTe(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var co=e=>e.copy_||e.base_,bA=e=>e.modified_?e.copy_:e.base_;function L6(e,t){if(t1(e))return new Map(e);if(n1(e))return new Set(e);if(e1(e))return Array[Qb].slice.call(e);const n=eK(e);if(t===!0||t==="class_only"&&!n){const r=Yi.getOwnPropertyDescriptors(e);delete r[Wr];let a=Reflect.ownKeys(r);for(let s=0;s<a.length;s++){const o=a[s],l=r[o];l[uy]===!1&&(l[uy]=!0,l[_6]=!0),(l.get||l.set)&&(r[o]={[_6]:!0,[uy]:!0,[lx]:l[lx],[Em]:e[o]})}return Yi.create(df(e),r)}else{const r=df(e);if(r!==null&&n)return{...e};const a=Yi.create(r);return Yi.assign(a,e)}}function wA(e,t=!1){return r1(e)||ql(e)||!Ls(e)||(vg(e)>1&&Yi.defineProperties(e,{set:S0,add:S0,clear:S0,delete:S0}),Yi.freeze(e),t&&Jb(e,(n,r)=>{wA(r,!0)},!1)),e}function VTe(){qa(2)}var S0={[Em]:VTe};function r1(e){return e===null||!xA(e)?!0:Yi.isFrozen(e)}var ux="MapSet",O6="Patches",vI="ArrayMethods",tK={};function pu(e){const t=tK[e];return t||qa(0,e),t}var yI=e=>!!tK[e],_m,nK=()=>_m,GTe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:yI(ux)?pu(ux):void 0,arrayMethodsPlugin_:yI(vI)?pu(vI):void 0});function xI(e,t){t&&(e.patchPlugin_=pu(O6),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function M6(e){D6(e),e.drafts_.forEach(WTe),e.drafts_=null}function D6(e){e===_m&&(_m=e.parent_)}var bI=e=>_m=GTe(_m,e);function WTe(e){const t=e[Wr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Wr].modified_&&(M6(t),qa(4)),Ls(e)&&(e=jI(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[Wr].base_,e,t)}else e=jI(t,n);return YTe(t,e,!0),M6(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==JY?e:void 0}function jI(e,t){if(r1(t))return t;const n=t[Wr];if(!n)return dx(t,e.handledSet_,e);if(!i1(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);aK(n,e)}return n.copy_}function YTe(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wA(t,n)}function rK(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var i1=(e,t)=>e.scope_===t,KTe=[];function iK(e,t,n,r){const a=co(e),s=e.type_;if(r!==void 0&&T6(a,r,s)===t){cx(a,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Jb(a,(d,u)=>{if(ql(u)){const h=l.get(u)||[];h.push(d),l.set(u,h)}})}const o=e.draftLocations_.get(t)??KTe;for(const l of o)cx(a,l,n,s)}function XTe(e,t,n){e.callbacks_.push(function(a){const s=t;if(!s||!i1(s,a))return;a.mapSetPlugin_?.fixSetContents(s);const o=bA(s);iK(e,s.draft_??s,o,n),aK(s,a)})}function aK(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const a=r.getPath(e);a&&r.generatePatches_(e,a,t)}rK(e)}}function ZTe(e,t,n){const{scope_:r}=e;if(ql(n)){const a=n[Wr];i1(a,r)&&a.callbacks_.push(function(){dy(e);const o=bA(a);iK(e,n,o,t)})}else Ls(n)&&e.callbacks_.push(function(){const s=co(e);e.type_===3?s.has(n)&&dx(n,r.handledSet_,r):T6(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&dx(T6(e.copy_,t,e.type_),r.handledSet_,r)})}
2756function dx(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ql(e)||t.has(e)||!Ls(e)||r1(e)||(t.add(e),Jb(e,(r,a)=>{if(ql(a)){const s=a[Wr];if(i1(s,n)){const o=bA(s);cx(e,r,o,e.type_),rK(s)}}else Ls(a)&&dx(a,t,n)})),e}function QTe(e,t){const n=e1(e),r={type_:n?1:0,scope_:t?t.scope_:nK(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,s=fx;n&&(a=[r],s=Tm);const{revoke:o,proxy:l}=Proxy.revocable(a,s);return r.draft_=l,r.revoke_=o,[l,r]}var fx={get(e,t){if(t===Wr)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=co(e);if(!Q3(a,t,e.type_))return eLe(e,a,t);const s=a[t];if(e.finalized_||!Ls(s)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&UTe(t))return s;if(s===eC(e.base_,t)||JTe(e,t,s)){dy(e);const o=e.type_===1?+t:t,l=R6(e.scope_,s,e,o);return e.copy_[o]=l}return s},has(e,t){return t in co(e)},ownKeys(e){return Reflect.ownKeys(co(e))},set(e,t,n){const r=sK(co(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=eC(co(e),t),s=a?.[Wr];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(HTe(n,a)&&(n!==void 0||Q3(e.base_,t,e.type_)))return!0;dy(e),P6(e)}return e.copy_[t]===n&&(n!==void 0||Q3(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),ZTe(e,t,n)),!0},deleteProperty(e,t){return dy(e),eC(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),P6(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=co(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[uy]:!0,[_6]:e.type_!==1||t!=="length",[lx]:r[lx],[Em]:n[t]}},defineProperty(){qa(11)},getPrototypeOf(e){return df(e.base_)},setPrototypeOf(){qa(12)}},Tm={};for(let e in fx){let t=fx[e];Tm[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Tm.deleteProperty=function(e,t){return Tm.set.call(this,e,t,void 0)};Tm.set=function(e,t,n){return fx.set.call(this,e[0],t,n,e[0])};function eC(e,t){const n=e[Wr];return(n?co(n):e)[t]}function JTe(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Ls(n)||n[Wr]?!1:e.baseRefs_.has(n)}function eLe(e,t,n){const r=sK(t,n);return r?Em in r?r[Em]:r.get?.call(e.draft_):void 0}function sK(e,t){if(!(t in e))return;let n=df(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=df(n)}}function P6(e){e.modified_||(e.modified_=!0,e.parent_&&P6(e.parent_))}function dy(e){e.copy_||(e.assigned_=new Map,e.copy_=L6(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var tLe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Id(t)&&!Id(n)){const s=n;n=t;const o=this;return function(d=s,...u){return o.produce(d,h=>n.call(this,h,...u))}}Id(n)||qa(6),r!==void 0&&!Id(r)&&qa(7);let a;if(Ls(t)){const s=bI(this),o=R6(s,t,void 0);let l=!0;try{a=n(o),l=!1}finally{l?M6(s):D6(s)}return xI(s,r),wI(a,s)}else if(!t||!xA(t)){if(a=n(t),a===void 0&&(a=t),a===JY&&(a=void 0),this.autoFreeze_&&wA(a,!0),r){const s=[],o=[];pu(O6).generateReplacementPatches_(t,a,{patches_:s,inversePatches_:o}),r(s,o)}return a}else qa(1,t)},this.produceWithPatches=(t,n)=>{if(Id(t))return(o,...l)=>this.produceWithPatches(o,d=>t(d,...l));let r,a;return[this.produce(t,n,(o,l)=>{r=o,a=l}),r,a]},J3(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),J3(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),J3(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ls(e)||qa(8),ql(e)&&(e=nLe(e));const t=bI(this),n=R6(t,e,void 0);return n[Wr].isManual_=!0,D6(t),n}finishDraft(e,t){const n=e&&e[Wr];(!n||!n.isManual_)&&qa(9);const{scope_:r}=n;return xI(r,t),wI(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>
2756-1&&(t=t.slice(n+1));const r=pu(O6).applyPatches_;return ql(e)?r(e,t):this.produce(e,a=>r(a,t))}};function R6(e,t,n,r){const[a,s]=t1(t)?pu(ux).proxyMap_(t,n):n1(t)?pu(ux).proxySet_(t,n):QTe(t,n);return(n?.scope_??nK()).drafts_.push(a),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?XTe(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),a}function nLe(e){return ql(e)||qa(10,e),oK(e)}function oK(e){if(!Ls(e)||r1(e))return e;const t=e[Wr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=L6(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=L6(e,!0);return Jb(n,(a,s)=>{cx(n,a,oK(s))},r),t&&(t.finalized_=!1),n}var rLe=new tLe;rLe.produce;var Et=e=>e,iLe={settings:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemSorter:"value",position:void 0,offset:0},size:{width:0,height:0},payload:[]},lK=Kr({name:"legend",initialState:iLe,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(Et(t.payload))},prepare:tn()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=xa(e).payload.indexOf(Et(r));s>-1&&(e.payload[s]=Et(a))},prepare:tn()},removeLegendPayload:{reducer(e,t){var n=xa(e).payload.indexOf(Et(t.payload));n>-1&&e.payload.splice(n,1)},prepare:tn()}}}),yg=lK.actions;yg.setLegendSize;yg.setLegendSettings;var aLe=yg.addLegendPayload,sLe=yg.replaceLegendPayload,oLe=yg.removeLegendPayload,lLe=lK.reducer,tC={exports:{}},nC={};/** 2757 * @license React 2758 * use-sync-external-store-with-selector.production.js 2759 * 2760 * Copyright (c) Meta Platforms, Inc. and affiliates. 2761 * 2762 * This source code is licensed under the MIT license found in the 2763 * LICENSE file in the root directory of this source tree. 2764 */var SI;function cLe(){if(SI)return nC;SI=1;var e=Mo();function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;return nC.useSyncExternalStoreWithSelector=function(d,u,h,p,g){var y=a(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=o(function(){function j(L){if(!S){if(S=!0,k=L,L=p(L),g!==void 0&&b.hasValue){var E=b.value;if(g(E,L))return N=E}return N=L}if(E=N,n(k,L))return E;var T=p(L);return g!==void 0&&g(E,T)?(k=L,E):(k=L,N=T)}var S=!1,k,N,_=h===void 0?null:h;return[function(){return j(u())},_===null?void 0:function(){return j(_())}]},[u,h,p,g]);var w=r(d,y[0],y[1]);return s(function(){b.hasValue=!0,b.value=w},[w]),l(w),w},nC}var CI;function uLe(){return CI||(CI=1,tC.exports=cLe()),tC.exports}uLe();function dLe(e){e()}function fLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){dLe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var kI={notify(){},get:()=>[]};function hLe(e,t){let n,r=kI,a=0,s=!1;function o(w){h();const j=r.subscribe(w);let S=!1;return()=>{S||(S=!0,j(),p())}}function l(){r.notify()}function d(){b.onStateChange&&b.onStateChange()}function u(){return s}function h(){a++,n||(n=e.subscribe(d),r=fLe())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=kI)}function g(){s||(s=!0,h())}function y(){s&&(s=!1,p())}const b={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:u,trySubscribe:g,tryUnsubscribe:y,getListeners:()=>r};return b}var pLe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mLe=pLe(),gLe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",vLe=gLe(),yLe=()=>mLe||vLe?v.useLayoutEffect:v.useEffect,xLe=yLe();function NI(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bLe(e,t){if(NI(e,t))return!0;
2764if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!NI(e[n[a]],t[n[a]]))return!1;return!0}var wLe=Symbol.for("react-redux-context"),jLe=typeof globalThis<"u"?globalThis:{};function SLe(){if(!v.createContext)return{};const e=jLe[wLe]??=new Map;let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var CLe=SLe();function kLe(e){const{children:t,context:n,serverState:r,store:a}=e,s=v.useMemo(()=>{const d=hLe(a);return{store:a,subscription:d,getServerState:r?()=>r:void 0}},[a,r]),o=v.useMemo(()=>a.getState(),[a]);xLe(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),o!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,o]);const l=n||CLe;return v.createElement(l.Provider,{value:s},t)}var NLe=kLe,ALe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function ELe(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function a1(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(ALe.has(r)){if(e[r]==null&&t[r]==null)continue;if(!bLe(e[r],t[r]))return!1}else if(!ELe(e[r],t[r]))return!1;return!0}function I6(){return I6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I6.apply(null,arguments)}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AI(Object(n),!0).forEach(function(r){_Le(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Le(e,t,n){return(t=TLe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TLe(e){var t=LLe(e,"string");return typeof t=="symbol"?t:t+""}function LLe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OLe(e,t){return RLe(e)||PLe(e,t)||DLe(e,t)||MLe()}function MLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2765In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DLe(e,t){if(e){if(typeof e=="string")return EI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EI(e,t):void 0}}function EI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function RLe(e){if(Array.isArray(e))return e}function ILe(e){return Array.isArray(e)&&_s(e[0])&&_s(e[1])?e.join(" ~ "):e}var Nd={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function $Le(e,t){return t==null?e:Rb(e,t)}var BLe=e=>{var t=e.separator,n=t===void 0?Nd.separator:t,r=e.contentStyle,a=e.itemStyle,s=e.labelStyle,o=s===void 0?Nd.labelStyle:s,l=e.payload,d=e.formatter,u=e.itemSorter,h=e.wrapperClassName,p=e.labelClassName,g=e.label,y=e.labelFormatter,b=e.accessibilityLayer,w=b===void 0?Nd.accessibilityLayer:b,j=()=>
2765{if(l&&l.length){var P={padding:0,margin:0},$=$Le(l,u),O=$.map((q,D)=>{if(!q||q.type==="none")return null;var z=q.formatter||d||ILe,V=q.value,W=q.name,B=V,H=W;if(z){var G=z(V,W,q,D,l);if(Array.isArray(G)){var K=OLe(G,2);B=K[0],H=K[1]}else if(G!=null)B=G;else return null}var M=gp(gp({},Nd.itemStyle),{},{color:q.color||Nd.itemStyle.color},a);return v.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:M},_s(H)?v.createElement("span",{className:"recharts-tooltip-item-name"},H):null,_s(H)?v.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,v.createElement("span",{className:"recharts-tooltip-item-value"},B),v.createElement("span",{className:"recharts-tooltip-item-unit"},q.unit||""))});return v.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},S=gp(gp({},Nd.contentStyle),r),k=gp({margin:0},o),N=!Dr(g),_=N?g:"",L=an("recharts-default-tooltip",h),E=an("recharts-tooltip-label",p);N&&y&&l!==void 0&&l!==null&&(_=y(g,l));var T=w?{role:"status","aria-live":"assertive"}:{};return v.createElement("div",I6({className:L,style:S},T),v.createElement("p",{className:E,style:k},v.isValidElement(_)?_:"".concat(_)),j())},vp="recharts-tooltip-wrapper",qLe={visibility:"hidden"};function FLe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return an(vp,{["".concat(vp,"-right")]:Re(n)&&t&&Re(t.x)&&n>=t.x,["".concat(vp,"-left")]:Re(n)&&t&&Re(t.x)&&n<t.x,["".concat(vp,"-bottom")]:Re(r)&&t&&Re(t.y)&&r>=t.y,["".concat(vp,"-top")]:Re(r)&&t&&Re(t.y)&&r<t.y})}function _I(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offset,s=e.position,o=e.reverseDirection,l=e.tooltipDimension,d=e.viewBox,u=e.viewBoxDimension;if(s&&Re(s[r]))return s[r];var h=n[r]-l-(a>0?a:0),p=n[r]+a;if(t[r])return o[r]?h:p;var g=d[r];if(g==null)return 0;if(o[r]){var y=h,b=g;return y<b?Math.max(p,g):Math.max(h,g)}if(u==null)return 0;var w=p+l,j=g+u;return w>j?Math.max(h,g):Math.max(p,g)}function zLe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function HLe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,a=e.offsetLeft,s=e.position,o=e.reverseDirection,l=e.tooltipBox,d=e.useTranslate3d,u=e.viewBox,h,p,g;return l&&l.height>0&&l.width>0&&n?(p=_I({allowEscapeViewBox:t,coordinate:n,key:"x",offset:a,position:s,reverseDirection:o,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),g=_I({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:s,reverseDirection:o,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),h=zLe({translateX:p,translateY:g,useTranslate3d:d}
2765)):h=qLe,{cssProperties:h,cssClasses:FLe({translateX:p,translateY:g,coordinate:n})}}var ULe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),xg={isSsr:ULe()};function VLe(e,t){return KLe(e)||YLe(e,t)||WLe(e,t)||GLe()}function GLe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2766In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WLe(e,t){if(e){if(typeof e=="string")return TI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TI(e,t):void 0}}function TI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KLe(e){if(Array.isArray(e))return e}function cK(){var e=v.useState(()=>xg.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches),t=VLe(e,2),n=t[0],r=t[1];return v.useEffect(()=>{if(window.matchMedia){var a=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{r(a.matches)};return a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}}},[]),n}function LI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LI(Object(n),!0).forEach(function(r){XLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XLe(e,t,n){return(t=ZLe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZLe(e){var t=QLe(e,"string");return typeof t=="symbol"?t:t+""}function QLe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JLe(e,t){return rOe(e)||nOe(e,t)||tOe(e,t)||eOe()}function eOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2767In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tOe(e,t){if(e){if(typeof e=="string")return OI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OI(e,t):void 0}}function OI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function rOe(e){if(Array.isArray(e))return e}function iOe(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing=="string"?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}function aOe(e){var t,n,r,a,s,o,l=cK(),d=v.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),u=JLe(d,2),h=u[0],p=u[1];v.useEffect(()=>{var S=k=>{if(k.key==="Escape"){var N,_,L,E;p({dismissed:!0,dismissedAtCoordinate:{x:(N=(_=e.coordinate)===null||_===void 0?void 0:_.x)!==null&&N!==void 0?N:0,y:(L=(E=e.coordinate)===null||E===void 0?void 0:E.y)!==null&&L!==void 0?L:0}})}};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),h.dismissed&&(((r=(a=e.coordinate)===null||a===void 0?void 0:a.x)!==null&&r!==void 0?r:0)!==h.dism
2767issedAtCoordinate.x||((s=(o=e.coordinate)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)!==h.dismissedAtCoordinate.y)&&p(Ad(Ad({},h),{},{dismissed:!1}));var g=HLe({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),y=g.cssClasses,b=g.cssProperties,w=e.hasPortalFromProps?{}:Ad(Ad({transition:iOe({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},b),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),j=Ad(Ad({},w),{},{visibility:!h.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:y,style:j,ref:e.innerRef},e.children)}var sOe=v.memo(aOe),uK=()=>{var e;return(e=Ve(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function $6(){return $6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$6.apply(null,arguments)}function MI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function DI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MI(Object(n),!0).forEach(function(r){oOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oOe(e,t,n){return(t=lOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lOe(e){var t=cOe(e,"string");return typeof t=="symbol"?t:t+""}function cOe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PI={curveBasisClosed:y4e,curveBasisOpen:x4e,curveBasis:v4e,curveBumpX:m4e,curveBumpY:g4e,curveLinearClosed:b4e,curveLinear:Db,curveMonotoneX:w4e,curveMonotoneY:j4e,curveNatural:S4e,curveStep:C4e,curveStepAfter:N4e,curveStepBefore:k4e},hx=e=>yt(e.x)&&yt(e.y),RI=e=>e.base!=null&&hx(e.base)&&hx(e),yp=e=>e.x,xp=e=>e.y,uOe=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(nA(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=PI["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return PI[n]||Db},II={connectNulls:!1,type:"linear"},dOe=e=>{var t=e.type,n=t===void 0?II.type:t,r=e.points,a=r===void 0?[]:r,s=e.baseLine,o=e.layout,l=e.connectNulls,d=l===void 0?II.connectNulls:l,u=uOe(n,o),h=d?a.filter(hx):a;if(Array.isArray(s)){var p,g=a.map((S,k)=>DI(DI({},S),{},{base:s[k]}));o==="vertical"?p=g0().y(xp).x1(yp).x0(S=>S.base.x):p=g0().x(yp).y1(xp).y0(S=>S.base.y);var y=p.defined(RI).curve(u),b=d?g.filter(RI):g;return y(b)}var w;o==="vertical"&&Re(s)?w=g0().y(xp).x1(yp).x0(s):Re(s)?w=g0().x(yp).y1(xp).y0(s):w=NW().x(yp).y(xp);var j=w.defined(hx).curve(u);return j(h)},fy=e=>{var t=e.className,n=e.points,r=e.path,a=e.pathRef,s=Pf();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||s,connectNulls:e.connectNulls},l=n&&n.length?dOe(o):r;return v.createElement("path",$6({},Ga(e),aA(e),{className:an("recharts-curve",t),d:l===null?void 0:l,ref:a}))},fOe=["x","y","top","left","width","height","className"];function B6(){return B6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B6.apply(null,arguments)}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hOe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2767t%2?$I(Object(n),!0).forEach(function(r){pOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pOe(e,t,n){return(t=mOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mOe(e){var t=gOe(e,"string");return typeof t=="symbol"?t:t+""}function gOe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vOe(e,t){if(e==null)return{};var n,r,a=yOe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function yOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var xOe=(e,t,n,r,a,s)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(s,",").concat(t,"h").concat(n),bOe=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,a=r===void 0?0:r,s=e.top,o=s===void 0?0:s,l=e.left,d=l===void 0?0:l,u=e.width,h=u===void 0?0:u,p=e.height,g=p===void 0?0:p,y=e.className,b=vOe(e,fOe),w=hOe({x:n,y:a,top:o,left:d,width:h,height:g},b);return!Re(n)||!Re(a)||!Re(h)||!Re(g)||!Re(o)||!Re(d)?null:v.createElement("path",B6({},ja(w),{className:an("recharts-cross",y),d:xOe(n,a,h,g,o,d)}))};function wOe(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}var px=1e-4,dK=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],fK=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),BI=(e,t)=>n=>{var r=dK(e,t);return fK(r,n)},jOe=(e,t)=>n=>{var r=dK(e,t),a=[...r.map((s,o)=>s*o).slice(1),0];return fK(a,n)},SOe=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var a=r.map(s=>parseFloat(s));return[a[0],a[1],a[2],a[3]]},COe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var a=SOe(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},kOe=(e,t,n,r)=>{var a=BI(e,n),s=BI(t,r),o=jOe(e,n),l=u=>u>1?1:u<0?0:u,d=u=>{for(var h=u>1?1:u,p=h,g=0;g<8;++g){var y=a(p)-h,b=o(p);if(Math.abs(y-h)<px||b<px)return s(p);p=l(p-y/b)}return s(p)};return d.isStepper=!1,d},qI=function(){return kOe(...COe(...arguments))},NOe=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,s=a===void 0?8:a,o=t.dt,l=o===void 0?16.67:o,d=1,u=[0],h=0,p=0,g=1e4,y=0;y<g;){var b=-(h-d)*r,w=p*s;if(p+=(b-w)*l/1e3,h+=p*l/1e3,u.push(h),Math.abs(h-d)<px&&Math.abs(p)<px)break;y++}u[u.length-1]=d;var j=u.length-1;return S=>{var k,N,_;if(S<=0)return 0;if(S>=1)return d;var L=S*j,E=Math.floor(L),T=L-E;return((k=u[E])!==null&&k!==void 0?k:0)+(((N=u[E+1])!==null&&N!==void 0?N:0)-((_=u[E])!==null&&_!==void 0?_:0))*T}},AOe=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return qI(e);case"spring":return NOe();default:if(e.split("(")[0]==="cubic-bezier")return qI(e)}return typeof e=="function"?e:null},EOe=(e,t,n)=>{var r,a=s=>{var o=t.tick(s);if(t.getState()==="active"){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(a,o);return}r=e.setTimeout(a,o)};return r=e.setTimeout(a,0),()=>{var s;return(s=r)===null||s===void 0?void 0:s()}},hK=v.createContext(EOe);hK.Provider;function _Oe(e){var t=v.useContext(hK);return v.useMemo(()=>e??t,[e,t])}function TOe(e,t,n){return(t=LOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LOe(e){var t=OOe(e,"string");return typeof t=="symbol"?t:t+""}function OOe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FI="init",zI="pending",HI="active",MOe="completed";function rC(e){return Math.max(0,e)}class DOe{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(t){var n;TOe(this,"state",FI),this.animationId=t.animationId,this.onAnimationEnd=t.onAnimationEnd,this.animationDuration=rC(t.animationDuration),this.animationBegin=rC(t.animationBegin),this.progress=0,this.from=t.from,this.to=t.to,this.easing=t.easing,(n=t.onAnimationStart)===null||n===void 0||n.call(t)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(t){if(this.getState()===FI)return this.state=zI,this.beginStartedTime=t,this.animationBegin;if(this.getState()===zI){if(this.beginStartedTime==null)throw new Error;var n=t-this.beginStartedTime;return n>=this.animationBegin?(this.state=HI,this.animationStartedTime=t,this.nextAnimationUpdate(0)):rC(this.animationBegin-n)}if(this.getState()===HI){if(this.animationStartedTime==null)throw new Error;var r=t-this.animationStartedTime;return this.setProgress(r/this.animationDuration),this.nextAnimationUpdate(r)}return 0}setProgress(t){this.progress=Math.min(1,Math.max(0,t))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state==="active"){var t;(t=this.onAnimationEnd)===null||t===void 0||t.call(this)}this.state=MOe}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}}class POe extends DOe{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(po(this.getFrom(),this.getTo(),this.getProgress()))}}class ROe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),a=null,s=o=>{o-r>=n?t(o):a=requestAnimationFrame(s)};return a=requestAnimationFrame(s),()=>{a!=null&&cancelAnimationFrame(a)}}}function IOe(e,t){return FOe(e)||qOe(e,t)||BOe(e,t)||$Oe()}
2767function $Oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2768In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BOe(e,t){if(e){if(typeof e=="string")return UI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UI(e,t):void 0}}function UI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function FOe(e){if(Array.isArray(e))return e}var zOe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},VI=0,iC=1;function pK(e){var t=Ea(e,zOe),n=t.animationId,r=t.isActive,a=t.canBegin,s=t.duration,o=t.easing,l=t.begin,d=t.onAnimationEnd,u=t.onAnimationStart,h=t.children,p=cK(),g=r==="auto"?!xg.isSsr&&!p:r,y=_Oe(t.animationController),b=v.useState(g?VI:iC),w=IOe(b,2),j=w[0],S=w[1];return v.useEffect(()=>{g||S(iC)},[g]),v.useEffect(()=>{var k=AOe(o);if(!g||!a||k==null)return Df;var N=new ROe,_=new POe({animationId:n,easing:k,animationDuration:s,animationBegin:l,onAnimationStart:u,onAnimationEnd:d,from:VI,to:iC});return y(N,_,S)},[y,n,g,a,s,o,l,u,d]),h(Number(j))}function mK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=v.useRef(Sm(t)),r=v.useRef(e);return r.current!==e&&(n.current=Sm(t),r.current=e),n.current}var HOe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),UOe=(e,t,n)=>e.map(r=>"".concat(HOe(r)," ").concat(t,"ms ").concat(n)).join(","),VOe=["radius"],GOe=["radius"],GI,WI,YI,KI,XI,ZI,QI,JI,e$,t$;function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function r$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(r){WOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WOe(e,t,n){return(t=YOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YOe(e){var t=KOe(e,"string");return typeof t=="symbol"?t:t+""}function KOe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(null,arguments)}function i$(e,t){if(e==null)return{};var n,r,a=XOe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function XOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZOe(e,t){return tMe(e)||eMe(e,t)||JOe(e,t)||QOe()}function QOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2769In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JOe(e,t){if(e){if(typeof e=="string")return a$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a$(e,t):void 0}}function a$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}
2769finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function tMe(e){if(Array.isArray(e))return e}function us(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var s$=(e,t,n,r,a)=>{var s=Al(n),o=Al(r),l=Math.min(Math.abs(s)/2,Math.abs(o)/2),d=o>=0?1:-1,u=s>=0?1:-1,h=o>=0&&s>=0||o<0&&s<0?1:0,p;if(l>0&&Array.isArray(a)){for(var g=[0,0,0,0],y=0,b=4;y<b;y++){var w,j=(w=a[y])!==null&&w!==void 0?w:0;g[y]=j>l?l:j}p=Tr(GI||(GI=us(["M",",",""])),e,t+d*g[0]),g[0]>0&&(p+=Tr(WI||(WI=us(["A ",",",",0,0,",",",",",""])),g[0],g[0],h,e+u*g[0],t)),p+=Tr(YI||(YI=us(["L ",",",""])),e+n-u*g[1],t),g[1]>0&&(p+=Tr(KI||(KI=us(["A ",",",",0,0,",`, 2770 `,",",""])),g[1],g[1],h,e+n,t+d*g[1])),p+=Tr(XI||(XI=us(["L ",",",""])),e+n,t+r-d*g[2]),g[2]>0&&(p+=Tr(ZI||(ZI=us(["A ",",",",0,0,",`, 2771 `,",",""])),g[2],g[2],h,e+n-u*g[2],t+r)),p+=Tr(QI||(QI=us(["L ",",",""])),e+u*g[3],t+r),g[3]>0&&(p+=Tr(JI||(JI=us(["A ",",",",0,0,",`, 2772 `,",",""])),g[3],g[3],h,e,t+r-d*g[3])),p+="Z"}else if(l>0&&a===+a&&a>0){var S=Math.min(l,a);p=Tr(e$||(e$=us(["M ",",",` 2773 A `,",",",0,0,",",",",",` 2774 L `,",",` 2775 A `,",",",0,0,",",",",",` 2776 L `,",",` 2777 A `,",",",0,0,",",",",",` 2778 L `,",",` 2779 A `,",",",0,0,",",",","," Z"])),e,t+d*S,S,S,h,e+u*S,t,e+n-u*S,t,S,S,h,e+n,t+d*S,e+n,t+r-d*S,S,S,h,e+n-u*S,t+r,e+u*S,t+r,S,S,h,e,t+r-d*S)}else p=Tr(t$||(t$=us(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},o$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nMe=e=>{var t=Ea(e,o$),n=v.useRef(null),r=v.useState(-1),a=ZOe(r,2),s=a[0],o=a[1];v.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var G=n.current.getTotalLength();G&&o(G)}catch{}},[]);var l=t.x,d=t.y,u=t.width,h=t.height,p=t.radius,g=t.className,y=t.animationEasing,b=t.animationDuration,w=t.animationBegin,j=t.isAnimationActive,S=t.isUpdateAnimationActive,k=v.useRef(u),N=v.useRef(h),_=v.useRef(l),L=v.useRef(d),E=v.useMemo(()=>({x:l,y:d,width:u,height:h,radius:p}),[l,d,u,h,p]),T=mK(E,"rectangle-");if(l!==+l||d!==+d||u!==+u||h!==+h||u===0||h===0)return null;var P=an("recharts-rectangle",g);if(!S){var $=ja(t);$.radius;var O=i$($,VOe);return v.createElement("path",mx({},O,{x:Al(l),y:Al(d),width:Al(u),height:Al(h),radius:typeof p=="number"?p:void 0,className:P,d:s$(l,d,u,h,p)}))}var q=k.current,D=N.current,z=_.current,V=L.current,W="0px ".concat(s===-1?1:s,"px"),B="".concat(s,"px ").concat(s,"px"),H=UOe(["strokeDasharray"],b,typeof y=="string"?y:o$.animationEasing);return v.createElement(pK,{animationId:T,key:T,canBegin:s>0,duration:b,easing:y,isActive:S,begin:w},G=>{var K=po(q,u,G),M=po(D,h,G),I=po(z,l,G),X=po(V,d,G);n.current&&(k.current=K,N.current=M,_.current=I,L.current=X);var F;j?G>0?F={transition:H,strokeDasharray:B}:F={strokeDasharray:W}:F={strokeDasharray:B};var U=ja(t);U.radius;var Z=i$(U,GOe);return v.createElement("path",mx({},Z,{radius:typeof p=="number"?p:void 0,className:P,d:s$(I,X,K,M,p),ref:n,style:r$(r$({},F),t.style)}
2779))})};function l$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function c$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l$(Object(n),!0).forEach(function(r){rMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rMe(e,t,n){return(t=iMe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iMe(e){var t=aMe(e,"string");return typeof t=="symbol"?t:t+""}function aMe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gx=Math.PI/180,sMe=e=>e*180/Math.PI,Mr=(e,t,n,r)=>({x:e+Math.cos(-gx*r)*n,y:t+Math.sin(-gx*r)*n}),oMe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},lMe=(e,t)=>{var n=e.x,r=e.y,a=t.x,s=t.y;return Math.sqrt((n-a)**2+(r-s)**2)},cMe=(e,t)=>{var n=e.x,r=e.y,a=t.cx,s=t.cy,o=lMe({x:n,y:r},{x:a,y:s});if(o<=0)return{radius:o,angle:0};var l=(n-a)/o,d=Math.acos(l);return r>s&&(d=2*Math.PI-d),{radius:o,angle:sMe(d),angleInRadian:d}},uMe=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),a=Math.floor(n/360),s=Math.min(r,a);return{startAngle:t-s*360,endAngle:n-s*360}},dMe=(e,t)=>{var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),s=Math.floor(r/360),o=Math.min(a,s);return e+o*360},fMe=(e,t)=>{var n=e.relativeX,r=e.relativeY,a=cMe({x:n,y:r},t),s=a.radius,o=a.angle,l=t.innerRadius,d=t.outerRadius;if(s<l||s>d||s===0)return null;var u=uMe(t),h=u.startAngle,p=u.endAngle,g=o,y;if(h<=p){for(;g>p;)g-=360;for(;g<h;)g+=360;y=g>=h&&g<=p}else{for(;g>h;)g-=360;for(;g<p;)g+=360;y=g>=p&&g<=h}return y?c$(c$({},t),{},{radius:s,angle:dMe(g,t)}):null};function gK(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,s=e.endAngle,o=Mr(t,n,r,a),l=Mr(t,n,r,s);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:s}}var u$,d$,f$,h$,p$,m$,g$;function q6(){return q6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q6.apply(null,arguments)}function Hc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var hMe=(e,t)=>{var n=ya(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},C0=e=>{var t=e.cx,n=e.cy,r=e.radius,a=e.angle,s=e.sign,o=e.isExternal,l=e.cornerRadius,d=e.cornerIsExternal,u=l*(o?1:-1)+r,h=Math.asin(l/u)/gx,p=d?a:a+s*h,g=Mr(t,n,u,p),y=Mr(t,n,r,p),b=d?a-s*h:a,w=Mr(t,n,u*Math.cos(h*gx),b);return{center:g,circleTangency:y,lineTangency:w,theta:h}},vK=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,a=e.outerRadius,s=e.startAngle,o=e.endAngle,l=hMe(s,o),d=s+l,u=Mr(t,n,a,s),h=Mr(t,n,a,d),p=Tr(u$||(u$=Hc(["M ",",",` 2780 A `,",",`,0, 2781 `,",",`, 2782 `,",",` 2783 `])),u.x,u.y,a,a,+(Math.abs(l)>180),+(s>d),h.x,h.y);if(r>0){var g=Mr(t,n,r,s),y=Mr(t,n,r,d);p+=Tr(d$||(d$=Hc(["L ",",",` 2784 A `,",",`,0, 2785 `,",",`, 2786 `,","," Z"])),y.x,y.y,r,r,+(Math.abs(l)>180),+(s<=d),g.x,g.y)}else p+=Tr(f$||(f$=Hc(["L ",","," Z"])),t,n);return p},pMe=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,a=e.outerRadius,s=e.cornerRadius,o=e.forceCornerRadius,l=e.cornerIsExternal,d=e.startAngle,u=e.endAngle,h=ya(u-d),p=C0({cx:t,cy:n,radius:a,angle:d,sign:h,cornerRadius:s,cornerIsExternal:l}),g=p.circleTangency,y=p.lineTangency,b=p.theta,w=C0({cx:t,cy:n,radius:a,angle:u,sign:-h,cornerRadius:s,cornerIsExternal:l}),j=w.circleTangency,S=w.lineTangency,k=w.theta,N=l?Math.abs(d-u):Math.abs(d-u)-b-k;if(N<0)return o?Tr(h$||(h$=Hc(["M ",",",` 2787 a`,",",",0,0,1,",`,0 2788 a`,",",",0,0,1,",`,0 2789 `])),y.x,y.y,s,s,s*2,s,s,-s*2):vK({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:d,endAngle:u});var _=Tr(p$||(p$=Hc(["M ",",",` 2790 A`,",",",0,0,",",",",",` 2791 A`,",",",0,",",",",",",",` 2792 A`,",",",0,0,",",",",",` 2793 `])),y.x,y.y,s,s,+(h<0),g.x,g.y,a,a,+(N>180),+(h<0),j.x,j.y,s,s,+(h<0),S.x,S.y);if(r>0){var L=C0({cx:t,cy:n,radius:r,angle:d,sign:h,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),E=L.circleTangency,T=L.lineTangency,P=L.theta,$=C0({cx:t,cy:n,radius:r,angle:u,sign:-h,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),O=$.circleTangency,q=$.lineTangency,D=$.theta,z=l?Math.abs(d-u):Math.abs(d-u)-P-D;if(z<0&&s===0)return"".concat(_,"L").concat(t,",").concat(n,"Z");_+=Tr(m$||(m$=Hc(["L",",",` 2794 A`,",",",0,0,",",",",",` 2795 A`,",",",0,",",",",",",",` 2796 A`,",",",0,0,",",",",","Z"])),q.x,q.y,s,s,+(h<0),O.x,O.y,r,r,+(z>180),+(h>0),E.x,E.y,s,s,+(h<0),T.x,T.y)}else _+=Tr(g$||(g$=Hc(["L",",","Z"])),t,n);return _},mMe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gMe=e=>{var t=Ea(e,mMe),n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,d=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,p=t.className;if(s<a||u===h)return null;var g=an("recharts-sector",p),y=s-a,b=Bl(o,y,0,!0),w;return b>0&&Math.abs(u-h)<360?w=pMe({cx:n,cy:r,innerRadius:a,outerRadius:s,cornerRadius:Math.min(b,y/2),forceCornerRadius:l,cornerIsExternal:d,startAngle:u,endAngle:h}):w=vK({cx:n,cy:r,innerRadius:a,outerRadius:s,startAngle:u,endAngle:h}),v.createElement("path",q6({},ja(t),{className:g,d:w}))};function vMe(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(PW(t)){if(e==="centric"){var r=t.cx,a=t.cy,s=t.innerRadius,o=t.outerRadius,l=t.angle,d=Mr(r,a,s,l),u=Mr(r,a,o,l);return[{x:d.x,y:d.y},{x:u.x,y:u.y}]}return gK(t)}}function yMe(e){return cY(e)?NaN:Number(e)}function aC(e){return e?(e=yMe(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function yK(e,t,n){n&&typeof n!="number"&&y6(e,t,n)&&(t=n=void 0),e=aC(e),t===void 0?(t=e,e=0):t=aC(t),n=n===void 0?e<t?1:-1:aC(n);const r=Math.max(Math.ceil((t-e)/(n||1)),0),a=new Array(r);for(let s=0;s<r;s++)a[s]=e,e+=n;return a}var ts=e=>e.chartData,jA=ue([ts],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),s1=(e,t,n,r)=>r?jA(e):ts(e),xMe=(e,t,n)=>n?jA(e):ts(e),bMe=ue([s1],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});ue([jA],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});var wMe=ue([ts],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});function SA(e,t){return kMe(e)||CMe(e,t)||SMe(e,t)||jMe()}
2796function jMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2797In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SMe(e,t){if(e){if(typeof e=="string")return v$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v$(e,t):void 0}}function v$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function kMe(e){if(Array.isArray(e))return e}function ks(e){if(Array.isArray(e)&&e.length===2){var t=SA(e,2),n=t[0],r=t[1];if(yt(n)&&yt(r))return!0}return!1}function y$(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function xK(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var n=SA(e,2),r=n[0],a=n[1],s,o;if(yt(r))s=r;else if(typeof r=="function")return;if(yt(a))o=a;else if(typeof a=="function")return;var l=[s,o];if(ks(l))return l}}function NMe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ks(r))return y$(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var a=SA(e,2),s=a[0],o=a[1],l,d;if(s==="auto")t!=null&&(l=Math.min(...t));else if(Re(s))l=s;else if(typeof s=="function")try{t!=null&&(l=s(t?.[0]))}catch{}else if(typeof s=="string"&&lI.test(s)){var u=lI.exec(s);if(u==null||u[1]==null||t==null)l=void 0;else{var h=+u[1];l=t[0]-h}}else l=t?.[0];if(o==="auto")t!=null&&(d=Math.max(...t));else if(Re(o))d=o;else if(typeof o=="function")try{t!=null&&(d=o(t?.[1]))}catch{}else if(typeof o=="string"&&cI.test(o)){var p=cI.exec(o);if(p==null||p[1]==null||t==null)d=void 0;else{var g=+p[1];d=t[1]+g}}else d=t?.[1];var y=[l,d];if(ks(y))return t==null?y:y$(y,t,n)}}}var Rf=1e9,AMe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kA,un=!0,ka="[DecimalError] ",Jc=ka+"Invalid argument: ",CA=ka+"Exponent out of range: ",If=Math.floor,Mc=Math.pow,EMe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hi,pr=1e7,nn=7,bK=9007199254740991,vx=If(bK/nn),Ie={};Ie.absoluteValue=Ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ie.comparedTo=Ie.cmp=function(e){var t,n,r,a,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===a?0:r>a^s.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ie.dividedBy=Ie.div=function(e){return bo(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,n=t.constructor;return Gt(bo(t,new n(e),0,1),n.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return Yn(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,n=this,r=n.constructor,a=r.precision,s=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Hi))throw Error(ka+"NaN");if(n.s<1)throw Error(ka+(n.s?"NaN":"-Infinity"));return n.eq(Hi)?new r(0):(un=!1,t=bo(Lm(n,s),Lm(e,s),s),un=!0,Gt(t,a))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?SK(t,e):wK(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(ka+"NaN");return n.s?(un=!1,t=bo(n,e,0,1).times(e),un=!0,n.minus(t)):Gt(new r(n),a)};Ie.naturalExponential=Ie.exp=function(){return jK(this)};Ie.naturalLogarithm=Ie.ln=function(){return Lm(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wK(t,e):SK(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Jc+e);
2797if(t=Yn(a)+1,r=a.d.length-1,n=r*nn+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ie.squareRoot=Ie.sqrt=function(){var e,t,n,r,a,s,o,l=this,d=l.constructor;if(l.s<1){if(!l.s)return new d(0);throw Error(ka+"NaN")}for(e=Yn(l),un=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=ws(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=If((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(a.toString()),n=d.precision,a=o=n+3;;)if(s=r,r=s.plus(bo(l,s,o+2)).times(.5),ws(s.d).slice(0,o)===(t=ws(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Gt(s,n+1,0),s.times(s).eq(l)){r=s;break}}else if(t!="9999")break;o+=4}return un=!0,Gt(r,n)};Ie.times=Ie.mul=function(e){var t,n,r,a,s,o,l,d,u,h=this,p=h.constructor,g=h.d,y=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,d=g.length,u=y.length,d<u&&(s=g,g=y,y=s,o=d,d=u,u=o),s=[],o=d+u,r=o;r--;)s.push(0);for(r=u;--r>=0;){for(t=0,a=d+r;a>r;)l=s[a]+y[r]*g[a-r-1]+t,s[a--]=l%pr|0,t=l/pr|0;s[a]=(s[a]+t)%pr|0}for(;!s[--o];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,un?Gt(e,p.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Os(e,0,Rf),t===void 0?t=r.rounding:Os(t,0,8),Gt(n,e+Yn(n)+1,t))};Ie.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=mu(r,!0):(Os(e,0,Rf),t===void 0?t=a.rounding:Os(t,0,8),r=Gt(new a(r),e+1,t),n=mu(r,!0,e+1)),n};Ie.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?mu(a):(Os(e,0,Rf),t===void 0?t=s.rounding:Os(t,0,8),r=Gt(new s(a),e+Yn(a)+1,t),n=mu(r.abs(),!1,e+Yn(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return Gt(new t(e),Yn(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,n,r,a,s,o,l=this,d=l.constructor,u=12,h=+(e=new d(e));if(!e.s)return new d(Hi);if(l=new d(l),!l.s){if(e.s<1)throw Error(ka+"Infinity");return l}if(l.eq(Hi))return l;if(r=d.precision,e.eq(Hi))return Gt(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,s=l.s,o){if((n=h<0?-h:h)<=bK){for(a=new d(Hi),t=Math.ceil(r/nn+4),un=!1;n%2&&(a=a.times(l),b$(a.d,t)),n=If(n/2),n!==0;)l=l.times(l),b$(l.d,t);return un=!0,e.s<0?new d(Hi).div(a):Gt(a,r)}}else if(s<0)throw Error(ka+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,un=!1,a=e.times(Lm(l,r+u)),un=!0,a=jK(a),a.s=s,a};Ie.toPrecision=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?(n=Yn(a),r=mu(a,n<=s.toExpNeg||n>=s.toExpPos)):(Os(e,1,Rf),t===void 0?t=s.rounding:Os(t,0,8),a=Gt(new s(a),e,t),n=Yn(a),r=mu(a,e<=n||n<=s.toExpNeg,e)),r};Ie.toSignificantDigits=Ie.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Os(e,1,Rf),t===void 0?t=r.rounding:Os(t,0,8)),Gt(new r(n),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Yn(e),n=e.constructor;return mu(e,t<=n.toExpNeg||t>=n.toExpPos)};function wK(e,t){var n,r,a,s,o,l,d,u,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),un?Gt(t,p):t;if(d=e.d,u=t.d,o=e.e,a=t.e,d=d.slice(),s=o-a,s){for(s<0?(r=d,s=-s,l=u.length):(r=u,a=o,l=d.length),o=Math.ceil(p/nn),l=o>l?o+1:l+1,s>l&&(s=l,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(l=d.length,s=u.length,l-s<0&&(s=l,r=u,u=d,d=r),n=0;s;)n=(d[--s]=d[s]+u[s]+n)/pr|0,d[s]%=pr;for(n&&(d.unshift(n),++a),l=d.length;d[--l]==0;)d.pop();return t.d=d,t.e=a,un?Gt(t,p):t}function Os(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Jc+e)}function ws(e){var t,n,r,a=e.length-1,s="",o=e[0];if(a>0){for(s+=o,t=1;t<a;t++)r=e[t]+"",n=nn-r.length,n&&(s+=xl(n)),s+=r;o=e[t],r=o+"",n=nn-r.length,n&&(s+=xl(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}var bo=(function(){function e(r,a){var s,o=0,l=r.length;for(r=r.slice();l--;)s=r[l]*a+o,r[l]=s%pr|0,o=s/pr|0;return o&&r.unshift(o),r}function t(r,a,s,o){var l,d;if(s!=o)d=s>o?1:-1;else for(l=d=0;l<s;l++)if(r[l]!=a[l]){d=r[l]>a[l]?1:-1;break}return d}function n(r,a,s){for(var o=0;s--;)r[s]-=o,o=r[s]<a[s]?1:0,r[s]=o*pr+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,o){var l,d,u,h,p,g,y,b,w,j,S,k,N,_,L,E,T,P,$=r.constructor,O=r.s==a.s?1:-1,q=r.d,D=a.d;if(!r.s)return new $(r);if(!a.s)throw Error(ka+"Division by zero");for(d=r.e-a.e,T=D.length,L=q.length,y=new $(O),b=y.d=[],u=0;D[u]==(q[u]||0);)++u;if(D[u]>(q[u]||0)&&--d,s==null?k=s=$.precision:o?k=s+(Yn(r)-Yn(a))+1:k=s,k<0)return new $(0);if(k=k/nn+2|0,u=0,T==1)for(h=0,D=D[0],k++;(u<L||h)&&k--;u++)N=h*pr+(q[u]||0),b[u]=N/D|0,h=N%D|0;else{for(h=pr/(D[0]+1)|0,h>1&&(D=e(D,h),q=e(q,h),T=D.length,L=q.length),_=T,w=q.slice(0,T),j=w.length;j<T;)w[j++]=0;P=D.slice(),P.unshift(0),E=D[0],D[1]>=pr/2&&++E;do h=0,l=t(D,w,T,j),l<0?(S=w[0],T!=j&&(S=S*pr+(w[1]||0)),h=S/E|0,h>1?(h>=pr&&(h=pr-1),p=e(D,h),g=p.length,j=w.length,l=t(p,w,g,j),l==1&&(h--,n(p,T<g?P:D,g))):(h==0&&(l=h=1),p=D.slice()),g=p.length,g<j&&p.unshift(0),n(w,p,j),l==-1&&(j=w.length,l=t(D,w,T,j),l<1&&(h++,n(w,T<j?P:D,j))),j=w.length):l===0&&(h++,w=[0]),b[u++]=h,l&&w[0]?w[j++]=q[_]||0:(w=[q[_]],j=1);while((_++<L||w[0]!==void 0)&&k--)}return b[0]||b.shift(),y.e=d,Gt(y,o?s+Yn(y)+1:s)}})();function jK(e,t){var n,r,a,s,o,l,d=0,u=0,h=e.constructor,p=h.precision;if(Yn(e)>16)throw Error(CA+Yn(e));if(!e.s)return new h(Hi);for(un=!1,l=p,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Mc(2,u))/Math.LN10*2+5|0,l+=r,n=a=s=new h(Hi),h.precision=l;;){if(a=Gt(a.times(e),l),n=n.times(++d),o=s.plus(bo(a,n,l)),ws(o.d).slice(0,l)===ws(s.d).slice(0,l)){for(;u--;)s=Gt(s.times(s),l);return h.precision=p,t==null?(un=!0,Gt(s,p)):s}s=o}}function Yn(e){for(var t=e.e*nn,n=e.d[0];n>=10;n/=10)t++;return t}function sC(e,t,n){if(t>e.LN10.sd())throw un=!0,n&&(e.precision=n),Error(ka+"LN10 precision limit exceeded");return Gt(new e(e.LN10),t)}function xl(e){for(var t="";e--;)t+="0";return t}function Lm(e,t){var n,r,a,s,o,l,d,u,h,p=1,g=10,y=e,b=y.d,w=y.constructor,j=w.precision;if(y.s<1)throw Error(ka+(y.s?"NaN":"-Infinity"));if(y.eq(Hi))return new w(0);if(t==null?(un=!1,u=j):u=t,y.eq(10))return t==null&&(un=!0),sC(w,u);if(u+=g,w.precision=u,n=ws(b),r=n.charAt(0),s=Yn(y),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)y=y.times(e),n=ws(y.d),r=n.charAt(0),p++;s=Yn(y),r>1?(y=new w("0."+n),s++):y=new w(r+"."+n.slice(1))}else return d=sC(w,u+2,j).times(s+""),y=Lm(new w(r+"."+n.slice(1)),u-g).plus(d),w.precision=j,t==null?(un=!0,Gt(y,j)):y;for(l=o=y=bo(y.minus(Hi),y.plus(Hi),u),h=Gt(y.times(y),u),a=3;;){if(o=Gt(o.times(h),u),d=l.plus(bo(o,new w(a),u)),ws(d.d).slice(0,u)===ws(l.d).slice(0,u))return l=l.times(2),s!==0&&(l=l.plus(sC(w,u+2,j).times(s+""))),l=bo(l,new w(p),u),w.precision=j,t==null?(un=!0,Gt(l,j)):l;l=d,a+=2}}function x$(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=If(n/nn),e.d=[],r=(n+1)%nn,n<0&&(r+=nn),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=nn;r<a;)e.d.push(+t.slice(r,r+=nn));t=t.slice(r),r=nn-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),un&&(e.e>vx||e.e<-vx))throw Error(CA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Gt(e,t,n){var r,a,s,o,l,d,u,h,p=e.d;for(o=1,s=p[0];s>=10;s/=10)o++;if(r=t-o,r<0)r+=nn,a=t,u=p[h=0];else{if(h=Math.ceil((r+1)/nn),s=p.length,h>=s)return e;for(u=s=p[h],o=1;s>=10;s/=10)o++;r%=nn,a=r-nn+o}if(n!==void 0&&(s=Mc(10,o-a-1),l=u/s%10|0,d=t<0||p[h+1]!==void 0||u%s,d=n<4?(l||d)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||d||n==6&&(r>0?a>0?u/Mc(10,o-a):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(s=Yn(e),p.length=1,t=t-s-1,p[0]=Mc(10,(nn-t%nn)%nn),e.e=If(-t/nn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,s=1,h--):(p.length=h+1,s=Mc(10,nn-r),p[h]=a>0?(u/Mc(10,o-a)%Mc(10,a)|0)*s:0),d)for(;;)if(h==0){(p[0]+=s)==pr&&(p[0]=1,++e.e);break}else{if(p[h]+=s,p[h]!=pr)break;p[h--]=0,s=1}for(r=p.length;p[--r]===0;)p.pop();if(un&&(e.e>vx||e.e<-vx))throw Error(CA+Yn(e));return e}function SK(e,t){var n,r,a,s,o,l,d,u,h,p,g=e.constructor,y=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),un?Gt(t,y):t;if(d=e.d,p=t.d,r=t.e,u=e.e,d=d.slice(),o=u-r,o){for(h=o<0,h?(n=d,o=-o,l=p.length):(n=p,r=u,l=d.length),a=Math.max(Math.ceil(y/nn),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=d.length,l=p.length,h=a<l,h&&(l=a),a=0;a<l;a++)if(d[a]!=p[a]){h=d[a]<p[a];break}o=0}for(h&&(n=d,d=p,p=n,t.s=-t.s),l=d.length,a=p.length-l;a>0;--a)d[l++]=0;for(a=p.length;a>o;){if(d[--a]<p[a]){for(s=a;s&&d[--s]===0;)d[s]=pr-1;--d[s],d[a]+=pr}d[a]-=p[a]}for(;d[--l]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,un?Gt(t,y):t):new g(0)}function mu(e,t,n){var r,a=Yn(e),s=ws(e.d),o=s.length;return t?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+xl(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+xl(-a-1)+s,n&&(r=n-o)>0&&(s+=xl(r))):a>=o?(s+=xl(a+1-o),n&&(r=n-a-1)>0&&(s=s+"."+xl(r))):((r=a+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(s+="."),s+=xl(r))),e.s<0?"-"+s:s}function b$(e,t){if(e.length>t)return e.length=t,!0}function CK(e){var t,n,r;function a(s){var o=this;if(!(o instanceof a))return new a(s);if(o.constructor=a,s instanceof a){o.s=s.s,o.e=s.e,o.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Jc+s);if(s>0)o.s=1;else if(s<0)s=-s,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(s===~~s&&s<1e7){o.e=0,o.d=[s];return}return x$(o,s.toString())}
2797else if(typeof s!="string")throw Error(Jc+s);if(s.charCodeAt(0)===45?(s=s.slice(1),o.s=-1):o.s=1,EMe.test(s))x$(o,s);else throw Error(Jc+s)}if(a.prototype=Ie,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=CK,a.config=a.set=_Me,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function _Me(e){if(!e||typeof e!="object")throw Error(ka+"Object expected");var t,n,r,a=["precision",1,Rf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(If(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Jc+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Jc+n+": "+r);return this}var kA=CK(AMe);Hi=new kA(1);const wt=kA;function kK(e){var t;return e===0?t=1:t=Math.floor(new wt(e).abs().log(10).toNumber())+1,t}function NK(e,t,n){for(var r=new wt(e),a=0,s=[];r.lt(t)&&a<1e5;)s.push(r.toNumber()),r=r.add(n),a++;return s}function Om(e,t){return MMe(e)||OMe(e,t)||LMe(e,t)||TMe()}function TMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2798In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LMe(e,t){if(e){if(typeof e=="string")return w$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w$(e,t):void 0}}function w$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function MMe(e){if(Array.isArray(e))return e}var AK=e=>{var t=Om(e,2),n=t[0],r=t[1],a=n,s=r;return n>r&&(a=r,s=n),[a,s]},NA=(e,t,n)=>{if(e.lte(0))return new wt(0);var r=kK(e.toNumber()),a=new wt(10).pow(r),s=e.div(a),o=r!==1?.05:.1,l=new wt(Math.ceil(s.div(o).toNumber())).add(n).mul(o),d=l.mul(a);return t?new wt(d.toNumber()):new wt(Math.ceil(d.toNumber()))},EK=(e,t,n)=>{var r;if(e.lte(0))return new wt(0);var a=[1,2,2.5,5],s=e.toNumber(),o=Math.floor(new wt(s).abs().log(10).toNumber()),l=new wt(10).pow(o),d=e.div(l).toNumber(),u=a.findIndex(y=>y>=d-1e-10);if(u===-1&&(l=l.mul(10),u=0),u+=n,u>=a.length){var h=Math.floor(u/a.length);u%=a.length,l=l.mul(new wt(10).pow(h))}var p=(r=a[u])!==null&&r!==void 0?r:1,g=new wt(p).mul(l);return t?g:new wt(Math.ceil(g.toNumber()))},DMe=(e,t,n)=>{var r=new wt(1),a=new wt(e);if(!a.isint()&&n){var s=Math.abs(e);s<1?(r=new wt(10).pow(kK(e)-1),a=new wt(Math.floor(a.div(r).toNumber())).mul(r)):s>1&&(a=new wt(Math.floor(e)))}else e===0?a=new wt(Math.floor((t-1)/2)):n||(a=new wt(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],d=0;d<t;d++)l.push(a.add(new wt(d-o).mul(r)).toNumber());return l},_K=function(t,n,r,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:NA;if(!Number.isFinite((n-t)/(r-1)))return{step:new wt(0),tickMin:new wt(0),tickMax:new wt(0)};var l=o(new wt(n).sub(t).div(r-1),a,s),d;t<=0&&n>=0?d=new wt(0):(d=new wt(t).add(n).div(2),d=d.sub(new wt(d).mod(l)));var u=Math.ceil(d.sub(t).div(l).toNumber()),h=Math.ceil(new wt(n).sub(d).div(l).toNumber()),p=u+h+1;return p>r?_K(t,n,r,a,s+1,o):(p<r&&(h=n>0?h+(r-p):h,u=n>0?u:u+(r-p)),{step:l,tickMin:d.sub(new wt(u).mul(l)),tickMax:d.add(new wt(h).mul(l))})},j$=function(t){var n=Om(t,2),r=n[0],a=n[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",d=Math.max(s,2),u=AK([r,a]),h=Om(u,2),p=h[0],g=h[1];if(p===-1/0||g===1/0){var y=g===1/0?[p,...Array(s-1).fill(1/0)]:[...Array(s-1).fill(-1/0),g];return r>a?y.reverse():y}if(p===g)return DMe(p,s,o);var b=l==="snap125"?EK:NA,w=_K(p,g,d,o,0,b),j=w.step,S=w.tickMin,k=w.tickMax,N=NK(S,k.add(new wt(.1
2798).mul(j)),j);return r>a?N.reverse():N},S$=function(t,n){var r=Om(t,2),a=r[0],s=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",d=AK([a,s]),u=Om(d,2),h=u[0],p=u[1];if(h===-1/0||p===1/0)return[a,s];if(h===p)return[h];var g=l==="snap125"?EK:NA,y=Math.max(n,2),b=g(new wt(p).sub(h).div(y-1),o,0),w=[...NK(new wt(h),new wt(p),b),p];if(o===!1){w=w.map(S=>Math.round(S));var j=w.length-1;j>0&&w[j]===w[j-1]&&(w=w.slice(0,j))}return a>s?w.reverse():w},PMe=e=>e.rootProps.barCategoryGap,o1=e=>e.rootProps.stackOffset,TK=e=>e.rootProps.reverseStackOrder,AA=e=>e.options.chartName,EA=e=>e.rootProps.syncId,LK=e=>e.rootProps.syncMethod,_A=e=>e.options.eventEmitter,RMe=e=>e.rootProps.baseValue,ii={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},jc={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},ds={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},l1=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function c1(e,t,n){if(n!=="auto")return n;if(e!=null)return Ds(e,t)?"category":"number"}function C$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C$(Object(n),!0).forEach(function(r){IMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IMe(e,t,n){return(t=$Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Me(e){var t=BMe(e,"string");return typeof t=="symbol"?t:t+""}function BMe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k$={allowDataOverflow:jc.allowDataOverflow,allowDecimals:jc.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:jc.angleAxisId,includeHidden:!1,name:void 0,reversed:jc.reversed,scale:jc.scale,tick:jc.tick,tickCount:void 0,ticks:void 0,type:jc.type,unit:void 0,niceTicks:"auto"},N$={allowDataOverflow:ds.allowDataOverflow,allowDecimals:ds.allowDecimals,allowDuplicatedCategory:ds.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ds.radiusAxisId,includeHidden:ds.includeHidden,name:void 0,reversed:ds.reversed,scale:ds.scale,tick:ds.tick,tickCount:ds.tickCount,ticks:void 0,type:ds.type,unit:void 0,niceTicks:"auto"},qMe=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},TA=ue([qMe,QY],(e,t)=>{var n;if(e!=null)return e;var r=(n=c1(t,"angleAxis",k$.type))!==null&&n!==void 0?n:"category";return yx(yx({},k$),{},{type:r})}),FMe=(e,t)=>e.polarAxis.radiusAxis[t],LA=ue([FMe,QY],(e,t)=>{var n;if(e!=null)return e;var r=(n=c1(t,"radiusAxis",N$.type))!==null&&n!==void 0?n:"category";return yx(yx({},N$),{},{type:r})}),u1=e=>e.polarOptions,OA=ue([Ro,Io,Pr],oMe),OK=ue([u1,OA],(e,t)=>{if(e!=null)return Bl(e.innerRadius,t,0)}),MK=ue([u1,OA],(e,t)=>{if(e!=null)return Bl(e.outerRadius,t,t*.8)}),zMe=e=>{if(e==null)return[0,0];var t=e.startAngle,n=e.endAngle;return[t,n]},DK=ue([u1],zMe);ue([TA,DK],l1);var PK=ue([OA,OK,MK],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});ue([LA,PK],l1);var RK=ue([dn,u1,OK,MK,Ro,Io],(e,t,n,r,a,s)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var o=t.cx,l=t.cy,d=t.startAngle,u=t.endAngle;return{cx:Bl(o,a,a/2),cy:Bl(l,s,s/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:u,clockWise:!1}}}),yr=(e,t)=>t,d1=(e,t,n)=>n;function MA(e){return e?.id}function IK(e,t,n){var r=t.chartData,a=r===void 0?[]:r,s=n.allowDuplicatedCategory,o=n.dataKey,l=new Map;return e.forEach(d=>{var u,h=(u=d.data)!==null&&u!==void 0?u:a;if(!(h==null||h.length===0)){var p=MA(d);h.forEach((g,y)=>{var b=o==null||s?y:String(ir(g,o,null)),w=ir(g,d.dataKey,0),j;l.has(b)?j=l.get(b):j={},Object.assign(j,{[p]:w}),l.set(b,j)})}}),Array.from(l.values())}function DA(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var bg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function f1(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function HMe(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var xr=e=>{var t=dn(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},$f=e=>e.tooltip.settings.axisId;function PA(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),a=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(s){function o(){return s.apply(this,arguments)}return o.toString=function(){return s.toString()},o})(()=>a),rangeMin:()=>a[0],rangeMax:()=>a[1],isInRange(s){var o=a[0],l=a[1];return o<=l?s>=o&&s<=l:s>=l&&s<=o},bandwidth:n?()=>n.call(e):void 0,ticks:t?s=>t.call(e,s):void 0,map:(s,o)=>{var l=e(s);if(l!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var d=e.bandwidth();switch(o.position){case"middle":l+=d/2;break;case"end":l+=d;break}}return l}}}}}var UMe=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ks(t)){for(var n,r,a=0;a<t.length;a++){var s=t[a];yt(s)&&((n===void 0||s<n)&&(n=s),(r===void 0||s>r)&&(r=s))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function Ol(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}
2798function VMe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function RA(e){let t,n,r;e.length!==2?(t=Ol,n=(l,d)=>Ol(e(l),d),r=(l,d)=>e(l)-d):(t=e===Ol||e===VMe?e:GMe,n=e,r=e);function a(l,d,u=0,h=l.length){if(u<h){if(t(d,d)!==0)return h;do{const p=u+h>>>1;n(l[p],d)<0?u=p+1:h=p}while(u<h)}return u}function s(l,d,u=0,h=l.length){if(u<h){if(t(d,d)!==0)return h;do{const p=u+h>>>1;n(l[p],d)<=0?u=p+1:h=p}while(u<h)}return u}function o(l,d,u=0,h=l.length){const p=a(l,d,u,h-1);return p>u&&r(l[p-1],d)>-r(l[p],d)?p-1:p}return{left:a,center:o,right:s}}function GMe(){return 0}function $K(e){return e===null?NaN:+e}function*WMe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const YMe=RA(Ol),wg=YMe.right;RA($K).center;class A$ extends Map{constructor(t,n=ZMe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(E$(this,t))}has(t){return super.has(E$(this,t))}set(t,n){return super.set(KMe(this,t),n)}delete(t){return super.delete(XMe(this,t))}}function E$({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function KMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function XMe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ZMe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function QMe(e=Ol){if(e===Ol)return BK;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function BK(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const JMe=Math.sqrt(50),eDe=Math.sqrt(10),tDe=Math.sqrt(2);function xx(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),o=s>=JMe?10:s>=eDe?5:s>=tDe?2:1;let l,d,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),d=Math.round(t*u),l/u<e&&++l,d/u>t&&--d,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),d=Math.round(t/u),l*u<e&&++l,d*u>t&&--d),d<l&&.5<=n&&n<2?xx(e,t,n*2):[l,d,u]}function F6(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,s,o]=r?xx(t,e,n):xx(e,t,n);if(!(s>=a))return[];const l=s-a+1,d=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)d[u]=(s-u)/-o;else for(let u=0;u<l;++u)d[u]=(s-u)*o;else if(o<0)for(let u=0;u<l;++u)d[u]=(a+u)/-o;else for(let u=0;u<l;++u)d[u]=(a+u)*o;return d}function z6(e,t,n){return t=+t,e=+e,n=+n,xx(e,t,n)[2]}function H6(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?z6(t,e,n):z6(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function _$(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function T$(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function qK(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?BK:QMe(a);r>n;){if(r-n>600){const d=r-n+1,u=t-n+1,h=Math.log(d),p=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*p*(d-p)/d)*(u-d/2<0?-1:1),y=Math.max(n,Math.floor(t-u*p/d+g)),b=Math.min(r,Math.floor(t+(d-u)*p/d+g));qK(e,t,y,b,a)}const s=e[t];let o=n,l=r;for(bp(e,n,t),a(e[r],s)>0&&bp(e,n,r);o<l;){for(bp(e,o,l),++o,--l;a(e[o],s)<0;)++o;for(;a(e[l],s)>0;)--l}a(e[n],s)===0?bp(e,n,l):(++l,bp(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function bp(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function nDe(e,t,n){if(e=Float64Array.from(WMe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return T$(e);if(t>=1)return _$(e);var r,a=(r-1)*t,s=Math.floor(a),o=_$(qK(e,s).subarray(0,s+1)),l=T$(e.subarray(s+1));return o+(l-o)*(a-s)}}function rDe(e,t,n=$K){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,s=Math.floor(a),o=+n(e[s],s,e),l=+n(e[s+1],s+1,e);return o+(l-o)*(a-s)}}function iDe(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(a);++r<a;)s[r]=e+r*n;return s}function _a(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function $o(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,014 bytes, line 2798
2798const U6=Symbol("implicit");function IA(){var e=new A$,t=[],n=[],r=U6;function a(s){let o=e.get(s);if(o===void 0){if(r!==U6)return r;e.set(s,o=t.push(s)-1)}return n[o%n.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new A$;for(const o of s)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(s){return arguments.length?(n=Array.from(s),a):n.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return IA(t,n).unknown(r)},_a.apply(a,arguments),a}function $A(){var e=IA().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,s,o,l=!1,d=0,u=0,h=.5;delete e.unknown;function p(){var g=t().length,y=a<r,b=y?a:r,w=y?r:a;s=(w-b)/Math.max(1,g-d+u*2),l&&(s=Math.floor(s)),b+=(w-b-s*(g-d))*h,o=s*(1-d),l&&(b=Math.round(b),o=Math.round(o));var j=iDe(g).map(function(S){return b+s*S});return n(y?j.reverse():j)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,l=!0,p()},e.bandwidth=function(){return o},e.step=function(){return s},e.round=function(g){return arguments.length?(l=!!g,p()):l},e.padding=function(g){return arguments.length?(d=Math.min(1,u=+g),p()):d},e.paddingInner=function(g){return arguments.length?(d=Math.min(1,g),p()):d},e.paddingOuter=function(g){return arguments.length?(u=+g,p()):u},e.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),p()):h},e.copy=function(){return $A(t(),[r,a]).round(l).paddingInner(d).paddingOuter(u).align(h)},_a.apply(p(),arguments)}function FK(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return FK(t())},e}function aDe(){return FK($A.apply(null,arguments).paddingInner(1))}function BA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zK(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jg(){}var Mm=.7,bx=1/Mm,Zd="\\s*([+-]?\\d+)\\s*",Dm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sDe=/^#([0-9a-f]{3,8})$/,oDe=new RegExp(`^rgb\\(${Zd},${Zd},${Zd}\\)$`),lDe=new RegExp(`^rgb\\(${Ns},${Ns},${Ns}\\)$`),cDe=new RegExp(`^rgba\\(${Zd},${Zd},${Zd},${Dm}\\)$`),uDe=new RegExp(`^rgba\\(${Ns},${Ns},${Ns},${Dm}\\)$`),dDe=new RegExp(`^hsl\\(${Dm},${Ns},${Ns}\\)$`),fDe=new RegExp(`^hsla\\(${Dm},${Ns},${Ns},${Dm}\\)$`),L$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};BA(jg,Pm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:O$,formatHex:O$,formatHex8:hDe,formatHsl:pDe,formatRgb:M$,toString:M$});function O$(){return this.rgb().formatHex()}function hDe(){return this.rgb().formatHex8()}function pDe(){return HK(this).formatHsl()}function M$(){return this.rgb().formatRgb()}function Pm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sDe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?D$(t):n===3?new ji(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?k0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?k0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oDe.exec(e))?new ji(t[1],t[2],t[3],1):(t=lDe.exec(e))?new ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cDe.exec(e))?k0(t[1],t[2],t[3],t[4]):(t=uDe.exec(e))?k0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dDe.exec(e))?I$(t[1],t[2]/100,t[3]/100,1):(t=fDe.exec(e))?I$(t[1],t[2]/100,t[3]/100,t[4]):L$.hasOwnProperty(e)?D$(L$[e]):e==="transparent"?new ji(NaN,NaN,NaN,0):null}function D$(e){return new ji(e>>16&255,e>>8&255,e&255,1)}function k0(e,t,n,r){return r<=0&&(e=t=n=NaN),new ji(e,t,n,r)}function mDe(e){return e instanceof jg||(e=Pm(e)),e?(e=e.rgb(),new ji(e.r,e.g,e.b,e.opacity)):new ji}function V6(e,t,n,r){return arguments.length===1?mDe(e):new ji(e,t,n,r??1)}function ji(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}BA(ji,V6,zK(jg,{brighter(e){return e=e==null?bx:Math.pow(bx,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ji(eu(this.r),eu(this.g),eu(this.b),wx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P$,formatHex:P$,formatHex8:gDe,formatRgb:R$,toString:R$}));function P$(){return`#${Uc(this.r)}${Uc(this.g)}${Uc(this.b)}`}function gDe(){return`#${Uc(this.r)}${Uc(this.g)}${Uc(this.b)}${Uc((isNaN(this.opacity)?1:this.opacity)*255)}`}function R$(){const e=wx(this.opacity);return`${e===1?"rgb(":"rgba("}${eu(this.r)}, ${eu(this.g)}, ${eu(this.b)}${e===1?")":`, ${e})`}`}function wx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uc(e){return e=eu(e),(e<16?"0":"")+e.toString(16)}function I$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Fa(e,t,n,r)}function HK(e){if(e instanceof Fa)return new Fa(e.h,e.s,e.l,e.opacity);if(e instanceof jg||(e=Pm(e)),!e)return new Fa;if(e instanceof Fa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),o=NaN,l=s-a,d=(s+a)/2;return l?(t===s?o=(n-r)/l+(n<r)*6:n===s?o=(r-t)/l+2:o=(t-n)/l+4,l/=d<.5?s+a:2-s-a,o*=60):l=d>0&&d<1?0:o,new Fa(o,l,d,e.opacity)}function vDe(e,t,n,r){return arguments.length===1?HK(e):new Fa(e,t,n,r??1)}function Fa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}BA(Fa,vDe,zK(jg,{brighter(e){return e=e==null?bx:Math.pow(bx,e),new Fa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mm:Math.pow(Mm,e),new Fa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new ji(oC(e>=240?e-240:e+120,a,r),oC(e,a,r),oC(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Fa($$(this.h),N0(this.s),N0(this.l),wx(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wx(this.opacity);return`${e===1?"hsl(":"hsla("}${$$(this.h)}, ${N0(this.s)*100}%, ${N0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $$(e){return e=(e||0)%360,e<0?e+360:e}function N0(e){return Math.max(0,Math.min(1,e||0))}function oC(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const qA=e=>()=>e;function yDe(e,t){return function(n){return e+n*t}}function xDe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function bDe(e){return(e=+e)==1?UK:function(t,n){return n-t?xDe(t,n,e):qA(isNaN(t)?n:t)}}function UK(e,t){var n=t-e;return n?yDe(e,n):qA(isNaN(e)?t:e)}const B$=(function e(t){var n=bDe(t);function r(a,s){var o=n((a=V6(a)).r,(s=V6(s)).r),l=n(a.g,s.g),d=n(a.b,s.b),u=UK(a.opacity,s.opacity);return function(h){return a.r=o(h),a.g=l(h),a.b=d(h),a.opacity=u(h),a+""}}return r.gamma=e,r})(1);function wDe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(s){for(a=0;a<n;++a)r[a]=e[a]*(1-s)+t[a]*s;return r}}function jDe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function SDe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)a[o]=Bf(e[o],t[o]);for(;o<n;
vendor: 5,550 bytes, line 2798
2798++o)s[o]=t[o];return function(l){for(o=0;o<r;++o)s[o]=a[o](l);return s}}function CDe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function jx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function kDe(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Bf(e[a],t[a]):r[a]=t[a];return function(s){for(a in n)r[a]=n[a](s);return r}}var G6=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lC=new RegExp(G6.source,"g");function NDe(e){return function(){return e}}function ADe(e){return function(t){return e(t)+""}}function EDe(e,t){var n=G6.lastIndex=lC.lastIndex=0,r,a,s,o=-1,l=[],d=[];for(e=e+"",t=t+"";(r=G6.exec(e))&&(a=lC.exec(t));)(s=a.index)>n&&(s=t.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,d.push({i:o,x:jx(r,a)})),n=lC.lastIndex;return n<t.length&&(s=t.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?d[0]?ADe(d[0].x):NDe(t):(t=d.length,function(u){for(var h=0,p;h<t;++h)l[(p=d[h]).i]=p.x(u);return l.join("")})}function Bf(e,t){var n=typeof t,r;return t==null||n==="boolean"?qA(t):(n==="number"?jx:n==="string"?(r=Pm(t))?(t=r,B$):EDe:t instanceof Pm?B$:t instanceof Date?CDe:jDe(t)?wDe:Array.isArray(t)?SDe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kDe:jx)(e,t)}function FA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function _De(e,t){t===void 0&&(t=e,e=Bf);for(var n=0,r=t.length-1,a=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[l](o-l)}}function TDe(e){return function(){return e}}function Sx(e){return+e}var q$=[0,1];function ai(e){return e}function W6(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:TDe(isNaN(t)?NaN:.5)}function LDe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ODe(e,t,n){var r=e[0],a=e[1],s=t[0],o=t[1];return a<r?(r=W6(a,r),s=n(o,s)):(r=W6(r,a),s=n(s,o)),function(l){return s(r(l))}}function MDe(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=W6(e[o],e[o+1]),s[o]=n(t[o],t[o+1]);return function(l){var d=wg(e,l,1,r)-1;return s[d](a[d](l))}}function Sg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function h1(){var e=q$,t=q$,n=Bf,r,a,s,o=ai,l,d,u;function h(){var g=Math.min(e.length,t.length);return o!==ai&&(o=LDe(e[0],e[g-1])),l=g>2?MDe:ODe,d=u=null,p}function p(g){return g==null||isNaN(g=+g)?s:(d||(d=l(e.map(r),t,n)))(r(o(g)))}return p.invert=function(g){return o(a((u||(u=l(t,e.map(r),jx)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,Sx),h()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),h()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=FA,h()},p.clamp=function(g){return arguments.length?(o=g?!0:ai,h()):o!==ai},p.interpolate=function(g){return arguments.length?(n=g,h()):n},p.unknown=function(g){return arguments.length?(s=g,p):s},function(g,y){return r=g,a=y,h()}}function zA(){return h1()(ai,ai)}function DDe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cx(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ff(e){return e=Cx(Math.abs(e)),e?e[1]:NaN}function PDe(e,t){return function(n,r){for(var a=n.length,s=[],o=0,l=e[0],d=0;a>0&&l>0&&(d+l+1>r&&(l=Math.max(1,r-d)),s.push(n.substring(a-=l,a+l)),!((d+=l+1)>r));)l=e[o=(o+1)%e.length];return s.reverse().join(t)}}function RDe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var IDe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rm(e){if(!(t=IDe.exec(e)))throw new Error("invalid format: "+e);var t;return new HA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Rm.prototype=HA.prototype;function HA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}HA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $De(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var kx;function BDe(e,t){var n=Cx(e,t);if(!n)return kx=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(kx=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Cx(e,Math.max(0,t+s-1))[0]}function F$(e,t){var n=Cx(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const z$={"%":(e,t)=>
2798(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:DDe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>F$(e*100,t),r:F$,s:BDe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function H$(e){return e}var U$=Array.prototype.map,V$=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qDe(e){var t=e.grouping===void 0||e.thousands===void 0?H$:PDe(U$.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?H$:RDe(U$.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function u(p,g){p=Rm(p);var y=p.fill,b=p.align,w=p.sign,j=p.symbol,S=p.zero,k=p.width,N=p.comma,_=p.precision,L=p.trim,E=p.type;E==="n"?(N=!0,E="g"):z$[E]||(_===void 0&&(_=12),L=!0,E="g"),(S||y==="0"&&b==="=")&&(S=!0,y="0",b="=");var T=(g&&g.prefix!==void 0?g.prefix:"")+(j==="$"?n:j==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),P=(j==="$"?r:/[%p]/.test(E)?o:"")+(g&&g.suffix!==void 0?g.suffix:""),$=z$[E],O=/[defgprs%]/.test(E);_=_===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function q(D){var z=T,V=P,W,B,H;if(E==="c")V=$(D)+V,D="";else{D=+D;var G=D<0||1/D<0;if(D=isNaN(D)?d:$(Math.abs(D),_),L&&(D=$De(D)),G&&+D==0&&w!=="+"&&(G=!1),z=(G?w==="("?w:l:w==="-"||w==="("?"":w)+z,V=(E==="s"&&!isNaN(D)&&kx!==void 0?V$[8+kx/3]:"")+V+(G&&w==="("?")":""),O){for(W=-1,B=D.length;++W<B;)if(H=D.charCodeAt(W),48>H||H>57){V=(H===46?a+D.slice(W+1):D.slice(W))+V,D=D.slice(0,W);break}}}N&&!S&&(D=t(D,1/0));var K=z.length+D.length+V.length,M=K<k?new Array(k-K+1).join(y):"";switch(N&&S&&(D=t(M+D,M.length?k-V.length:1/0),M=""),b){case"<":D=z+D+V+M;break;case"=":D=z+M+D+V;break;case"^":D=M.slice(0,K=M.length>>1)+z+D+V+M.slice(K);break;default:D=M+z+D+V;break}return s(D)}return q.toString=function(){return p+""},q}function h(p,g){var y=Math.max(-8,Math.min(8,Math.floor(ff(g)/3)))*3,b=Math.pow(10,-y),w=u((p=Rm(p),p.type="f",p),{suffix:V$[8+y/3]});return function(j){return w(b*j)}}return{format:u,formatPrefix:h}}var A0,UA,VK;FDe({thousands:",",grouping:[3],currency:["$",""]});function FDe(e){return A0=qDe(e),UA=A0.format,VK=A0.formatPrefix,A0}function zDe(e){return Math.max(0,-ff(Math.abs(e)))}function HDe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ff(t)/3)))*3-ff(Math.abs(e)))}function UDe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ff(t)-ff(e))+1}function GK(e,t,n,r){var a=H6(e,t,n),s;switch(r=Rm(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=HDe(a,o))&&(r.precision=s),VK(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=UDe(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=zDe(a))&&(r.precision=s-(r.type==="%")*2);break}}return UA(r)}function Kl(e){var t=e.domain;return e.ticks=function(n){var r=t();return F6(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return GK(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,s=r.length-1,o=r[a],l=r[s],d,u,h=10;for(l<o&&(u=o,o=l,l=u,u=a,a=s,s=u);h-- >0;){if(u=z6(o,l,n),u===d)return r[a]=o,r[s]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;d=u}return e},e}function WK(){var e=zA();return e.copy=function(){return Sg(e,WK())},_a.apply(e,arguments),Kl(e)}function YK(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Sx),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return YK(e).unknown(t)},e=arguments.length?Array.from(e,Sx):[0,1],Kl(n)}function KK(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],s=e[r],o;return s<a&&(o=n,n=r,r=o,o=a,a=s,s=o),e[n]=t.floor(a),e[r]=t.ceil(s),e}function G$(e){return Math.log(e)}function W$(e){return Math.exp(e)}function VDe(e){return-Math.log(-e)}function GDe(e){return-Math.exp(-e)}function WDe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function YDe(e){return e===10?WDe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function KDe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Y$(e){return(t,n)=>-e(-t,n)}function VA(e){const t=e(G$,W$),n=t.domain;let r=10,a,s;function o(){return a=KDe(r),s=YDe(r),n()[0]<0?(a=Y$(a),s=Y$(s),e(VDe,GDe)):e(G$,W$),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const d=n();let u=d[0],h=d[d.length-1];const p=h<u;p&&([u,h]=[h,u]);let g=a(u),y=a(h),b,w;const j=l==null?10:+l;let S=[];if(!(r%1)&&y-g<j){if(g=Math.floor(g),y=Math.ceil(y),u>0){for(;g<=y;++g)for(b=1;b<r;++b)if(w=g<0?b/s(-g):b*s(g),!(w<u)){if(w>h)break;S.push(w)}}else for(;g<=y;++g)for(b=r-1;b>=1;--b)if(w=g>0?b/s(-g):b*s(g),!(w<u)){if(w>h)break;S.push(w)}S.length*2<j&&(S=F6(u,h,j))}else S=F6(g,y,Math.min(y-g,j)).map(s);return p?S.reverse():S},t.tickFormat=(l,d)=>{if(l==null&&(l=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Rm(d)).precision==null&&(d.trim=!0),d=UA(d)),l===1/0)return d;const u=Math.max(1,r*l/t.ticks().length);return h=>{let p=h/s(Math.round(a(h)));return p*r<r-.5&&(p*=r),p<=u?d(h):""}},t.nice=()=>n(KK(n(),{floor:l=>s(Math.floor(a(l))),ceil:l=>s(Math.ceil(a(l)))})),t}function XK(){const e=VA(h1()).domain([1,10]);return e.copy=()=>Sg(e,XK()).base(e.base()),_a.apply(e,arguments),e}
2798function K$(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function X$(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function GA(e){var t=1,n=e(K$(t),X$(t));return n.constant=function(r){return arguments.length?e(K$(t=+r),X$(t)):t},Kl(n)}function ZK(){var e=GA(h1());return e.copy=function(){return Sg(e,ZK()).constant(e.constant())},_a.apply(e,arguments)}function Z$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function XDe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ZDe(e){return e<0?-e*e:e*e}function WA(e){var t=e(ai,ai),n=1;function r(){return n===1?e(ai,ai):n===.5?e(XDe,ZDe):e(Z$(n),Z$(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Kl(t)}function YA(){var e=WA(h1());return e.copy=function(){return Sg(e,YA()).exponent(e.exponent())},_a.apply(e,arguments),e}function QDe(){return YA.apply(null,arguments).exponent(.5)}function Q$(e){return Math.sign(e)*e*e}function JDe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function QK(){var e=zA(),t=[0,1],n=!1,r;function a(s){var o=JDe(e(s));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(s){return e.invert(Q$(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,Sx)).map(Q$)),a):t.slice()},a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(n=!!s,a):n},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return QK(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_a.apply(a,arguments),Kl(a)}function JK(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=rDe(e,o/l);return s}function s(o){return o==null||isNaN(o=+o)?r:t[wg(n,o)]}return s.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},s.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Ol),a()},s.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return JK().domain(e).range(t).unknown(r)},_a.apply(s,arguments)}function eX(){var e=0,t=1,n=1,r=[.5],a=[0,1],s;function o(d){return d!=null&&d<=d?a[wg(r,d,0,n)]:s}function l(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return o}return o.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,l()):[e,t]},o.range=function(d){return arguments.length?(n=(a=Array.from(d)).length-1,l()):a.slice()},o.invertExtent=function(d){var u=a.indexOf(d);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(d){return arguments.length&&(s=d),o},o.thresholds=function(){return r.slice()},o.copy=function(){return eX().domain([e,t]).range(a).unknown(s)},_a.apply(Kl(o),arguments)}function tX(){var e=[.5],t=[0,1],n,r=1;function a(s){return s!=null&&s<=s?t[wg(e,s,0,r)]:n}return a.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var o=t.indexOf(s);return[e[o-1],e[o]]},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return tX().domain(e).range(t).unknown(n)},_a.apply(a,arguments)}const cC=new Date,uC=new Date;function lr(e,t,n,r){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const o=a(s),l=a.ceil(s);return s-o<l-s?o:l},a.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),a.range=(s,o,l)=>{const d=[];if(s=a.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return d;let u;do d.push(u=new Date(+s)),t(s,l),e(s);while(u<s&&s<o);return d},a.filter=s=>lr(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!s(o););else for(;--l>=0;)for(;t(o,1),!s(o););}),n&&(a.count=(s,o)=>(cC.setTime(+s),uC.setTime(+o),e(cC),e(uC),Math.floor(n(cC,uC))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?o=>r(o)%s===0:o=>a.count(0,o)%s===0):a)),a}const Nx=lr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Nx.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Nx);Nx.range;const mo=1e3,ba=mo*60,go=ba*60,To=go*24,KA=To*7,J$=To*30,dC=To*365,Vc=lr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*mo)},(e,t)=>(t-e)/mo,e=>e.getUTCSeconds());Vc.range;const XA=lr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mo)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getMinutes());XA.range;const ZA=lr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ba)},(e,t)=>(t-e)/ba,e=>e.getUTCMinutes());ZA.range;const QA=lr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mo-e.getMinutes()*ba)},(e,t)=>{e.setTime(+e+t*go)},(e,t)=>(t-e)/go,e=>e.getHours());QA.range;const JA=lr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*go)},(e,t)=>(t-e)/go,e=>e.getUTCHours());JA.range;const Cg=lr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ba)/To,e=>e.getDate()-1);Cg.range;const p1=lr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/To,e=>e.getUTCDate()-1);p1.range;const nX=lr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/To,e=>Math.floor(e/To));nX.range;function Nu(e){return lr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ba)/KA)}const m1=Nu(0),Ax=Nu(1),ePe=Nu(2),tPe=Nu(3),hf=Nu(4),nPe=Nu(5),rPe=Nu(6);m1.range;Ax.range;ePe.range;tPe.range;hf.range;nPe.range;rPe.range;function Au(e){return lr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/KA)}const g1=Au(0),Ex=Au(1),iPe=Au(2),aPe=Au(3),pf=Au(4),sPe=Au(5),oPe=Au(6);g1.range;Ex.range;iPe.range;aPe.range;pf.range;sPe.range;oPe.range;const e4=lr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());e4.range;const t4=lr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());t4.range;const Lo=lr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Lo.every=e=>
vendor: 6,039 bytes, line 2798
2798!isFinite(e=Math.floor(e))||!(e>0)?null:lr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lo.range;const Oo=lr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Oo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Oo.range;function rX(e,t,n,r,a,s){const o=[[Vc,1,mo],[Vc,5,5*mo],[Vc,15,15*mo],[Vc,30,30*mo],[s,1,ba],[s,5,5*ba],[s,15,15*ba],[s,30,30*ba],[a,1,go],[a,3,3*go],[a,6,6*go],[a,12,12*go],[r,1,To],[r,2,2*To],[n,1,KA],[t,1,J$],[t,3,3*J$],[e,1,dC]];function l(u,h,p){const g=h<u;g&&([u,h]=[h,u]);const y=p&&typeof p.range=="function"?p:d(u,h,p),b=y?y.range(u,+h+1):[];return g?b.reverse():b}function d(u,h,p){const g=Math.abs(h-u)/p,y=RA(([,,j])=>j).right(o,g);if(y===o.length)return e.every(H6(u/dC,h/dC,p));if(y===0)return Nx.every(Math.max(H6(u,h,p),1));const[b,w]=o[g/o[y-1][2]<o[y][2]/g?y-1:y];return b.every(w)}return[l,d]}const[lPe,cPe]=rX(Oo,t4,g1,nX,JA,ZA),[uPe,dPe]=rX(Lo,e4,m1,Cg,QA,XA);function fC(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hC(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fPe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,s=e.days,o=e.shortDays,l=e.months,d=e.shortMonths,u=jp(a),h=Sp(a),p=jp(s),g=Sp(s),y=jp(o),b=Sp(o),w=jp(l),j=Sp(l),S=jp(d),k=Sp(d),N={a:H,A:G,b:K,B:M,c:null,d:aB,e:aB,f:PPe,g:VPe,G:WPe,H:OPe,I:MPe,j:DPe,L:iX,m:RPe,M:IPe,p:I,q:X,Q:lB,s:cB,S:$Pe,u:BPe,U:qPe,V:FPe,w:zPe,W:HPe,x:null,X:null,y:UPe,Y:GPe,Z:YPe,"%":oB},_={a:F,A:U,b:Z,B:ee,c:null,d:sB,e:sB,f:QPe,g:l8e,G:u8e,H:KPe,I:XPe,j:ZPe,L:sX,m:JPe,M:e8e,p:ae,q:ye,Q:lB,s:cB,S:t8e,u:n8e,U:r8e,V:i8e,w:a8e,W:s8e,x:null,X:null,y:o8e,Y:c8e,Z:d8e,"%":oB},L={a:O,A:q,b:D,B:z,c:V,d:rB,e:rB,f:EPe,g:nB,G:tB,H:iB,I:iB,j:CPe,L:APe,m:SPe,M:kPe,p:$,q:jPe,Q:TPe,s:LPe,S:NPe,u:vPe,U:yPe,V:xPe,w:gPe,W:bPe,x:W,X:B,y:nB,Y:tB,Z:wPe,"%":_Pe};N.x=E(n,N),N.X=E(r,N),N.c=E(t,N),_.x=E(n,_),_.X=E(r,_),_.c=E(t,_);function E(J,re){return function(ge){var Q=[],Se=-1,je=0,Ne=J.length,He,ct,xt;for(ge instanceof Date||(ge=new Date(+ge));++Se<Ne;)J.charCodeAt(Se)===37&&(Q.push(J.slice(je,Se)),(ct=eB[He=J.charAt(++Se)])!=null?He=J.charAt(++Se):ct=He==="e"?" ":"0",(xt=re[He])&&(He=xt(ge,ct)),Q.push(He),je=Se+1);return Q.push(J.slice(je,Se)),Q.join("")}}function T(J,re){return function(ge){var Q=wp(1900,void 0,1),Se=P(Q,J,ge+="",0),je,Ne;if(Se!=ge.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(re&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(je=hC(wp(Q.y,0,1)),Ne=je.getUTCDay(),je=Ne>4||Ne===0?Ex.ceil(je):Ex(je),je=p1.offset(je,(Q.V-1)*7),Q.y=je.getUTCFullYear(),Q.m=je.getUTCMonth(),Q.d=je.getUTCDate()+(Q.w+6)%7):(je=fC(wp(Q.y,0,1)),Ne=je.getDay(),je=Ne>4||Ne===0?Ax.ceil(je):Ax(je),je=Cg.offset(je,(Q.V-1)*7),Q.y=je.getFullYear(),Q.m=je.getMonth(),Q.d=je.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),Ne="Z"in Q?hC(wp(Q.y,0,1)).getUTCDay():fC(wp(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(Ne+5)%7:Q.w+Q.U*7-(Ne+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,hC(Q)):fC(Q)}}function P(J,re,ge,Q){for(var Se=0,je=re.length,Ne=ge.length,He,ct;Se<je;){if(Q>=Ne)return-1;if(He=re.charCodeAt(Se++),He===37){if(He=re.charAt(Se++),ct=L[He in eB?re.charAt(Se++):He],!ct||(Q=ct(J,ge,Q))<0)return-1}else if(He!=ge.charCodeAt(Q++))return-1}return Q}function $(J,re,ge){var Q=u.exec(re.slice(ge));return Q?(J.p=h.get(Q[0].toLowerCase()),ge+Q[0].length):-1}function O(J,re,ge){var Q=y.exec(re.slice(ge));return Q?(J.w=b.get(Q[0].toLowerCase()),ge+Q[0].length):-1}function q(J,re,ge){var Q=p.exec(re.slice(ge));return Q?(J.w=g.get(Q[0].toLowerCase()),ge+Q[0].length):-1}function D(J,re,ge){var Q=S.exec(re.slice(ge));return Q?(J.m=k.get(Q[0].toLowerCase()),ge+Q[0].length):-1}function z(J,re,ge){var Q=w.exec(re.slice(ge));return Q?(J.m=j.get(Q[0].toLowerCase()),ge+Q[0].length):-1}function V(J,re,ge){return P(J,t,re,ge)}function W(J,re,ge){return P(J,n,re,ge)}function B(J,re,ge){return P(J,r,re,ge)}function H(J){return o[J.getDay()]}function G(J){return s[J.getDay()]}function K(J){return d[J.getMonth()]}function M(J){return l[J.getMonth()]}function I(J){return a[+(J.getHours()>=12)]}function X(J){return 1+~~(J.getMonth()/3)}function F(J){return o[J.getUTCDay()]}function U(J){return s[J.getUTCDay()]}function Z(J){return d[J.getUTCMonth()]}function ee(J){return l[J.getUTCMonth()]}function ae(J){return a[+(J.getUTCHours()>=12)]}function ye(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var re=E(J+="",N);return re.toString=function(){return J},re},parse:function(J){var re=T(J+="",!1);return re.toString=function(){return J},re},utcFormat:function(J){var re=E(J+="",_);return re.toString=function(){return J},re},utcParse:function(J){var re=T(J+="",!0);return re.toString=function(){return J},re}}}var eB={"-":"",_:" ",0:"0"},br=/^\s*\d+/,hPe=/^%/,pPe=/[\\^$*+?|[\]().{}]/g;function _t(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",s=a.length;return r+(s<n?new Array(n-s+1).join(t)+a:a)}function mPe(e){return e.replace(pPe,"\\$&")}function jp(e){return new RegExp("^(?:"+e.map(mPe).join("|")+")","i")}function Sp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gPe(e,t,n){var r=br.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vPe(e,t,n){var r=br.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function yPe(e,t,n){var r=br.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 2798
2798return r?(e.U=+r[0],n+r[0].length):-1}function xPe(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bPe(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tB(e,t,n){var r=br.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nB(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wPe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jPe(e,t,n){var r=br.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function SPe(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rB(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function CPe(e,t,n){var r=br.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function iB(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kPe(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NPe(e,t,n){var r=br.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function APe(e,t,n){var r=br.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function EPe(e,t,n){var r=br.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _Pe(e,t,n){var r=hPe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function TPe(e,t,n){var r=br.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function LPe(e,t,n){var r=br.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function aB(e,t){return _t(e.getDate(),t,2)}function OPe(e,t){return _t(e.getHours(),t,2)}function MPe(e,t){return _t(e.getHours()%12||12,t,2)}function DPe(e,t){return _t(1+Cg.count(Lo(e),e),t,3)}function iX(e,t){return _t(e.getMilliseconds(),t,3)}function PPe(e,t){return iX(e,t)+"000"}function RPe(e,t){return _t(e.getMonth()+1,t,2)}function IPe(e,t){return _t(e.getMinutes(),t,2)}function $Pe(e,t){return _t(e.getSeconds(),t,2)}function BPe(e){var t=e.getDay();return t===0?7:t}function qPe(e,t){return _t(m1.count(Lo(e)-1,e),t,2)}function aX(e){var t=e.getDay();return t>=4||t===0?hf(e):hf.ceil(e)}function FPe(e,t){return e=aX(e),_t(hf.count(Lo(e),e)+(Lo(e).getDay()===4),t,2)}function zPe(e){return e.getDay()}function HPe(e,t){return _t(Ax.count(Lo(e)-1,e),t,2)}function UPe(e,t){return _t(e.getFullYear()%100,t,2)}function VPe(e,t){return e=aX(e),_t(e.getFullYear()%100,t,2)}function GPe(e,t){return _t(e.getFullYear()%1e4,t,4)}function WPe(e,t){var n=e.getDay();return e=n>=4||n===0?hf(e):hf.ceil(e),_t(e.getFullYear()%1e4,t,4)}function YPe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_t(t/60|0,"0",2)+_t(t%60,"0",2)}function sB(e,t){return _t(e.getUTCDate(),t,2)}function KPe(e,t){return _t(e.getUTCHours(),t,2)}function XPe(e,t){return _t(e.getUTCHours()%12||12,t,2)}function ZPe(e,t){return _t(1+p1.count(Oo(e),e),t,3)}function sX(e,t){return _t(e.getUTCMilliseconds(),t,3)}function QPe(e,t){return sX(e,t)+"000"}function JPe(e,t){return _t(e.getUTCMonth()+1,t,2)}function e8e(e,t){return _t(e.getUTCMinutes(),t,2)}function t8e(e,t){return _t(e.getUTCSeconds(),t,2)}function n8e(e){var t=e.getUTCDay();return t===0?7:t}function r8e(e,t){return _t(g1.count(Oo(e)-1,e),t,2)}function oX(e){var t=e.getUTCDay();return t>=4||t===0?pf(e):pf.ceil(e)}function i8e(e,t){return e=oX(e),_t(pf.count(Oo(e),e)+(Oo(e).getUTCDay()===4),t,2)}function a8e(e){return e.getUTCDay()}function s8e(e,t){return _t(Ex.count(Oo(e)-1,e),t,2)}function o8e(e,t){return _t(e.getUTCFullYear()%100,t,2)}function l8e(e,t){return e=oX(e),_t(e.getUTCFullYear()%100,t,2)}function c8e(e,t){return _t(e.getUTCFullYear()%1e4,t,4)}function u8e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?pf(e):pf.ceil(e),_t(e.getUTCFullYear()%1e4,t,4)}function d8e(){return"+0000"}function oB(){return"%"}function lB(e){return+e}function cB(e){return Math.floor(+e/1e3)}var Ed,lX,cX;f8e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2798ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function f8e(e){return Ed=fPe(e),lX=Ed.format,Ed.parse,cX=Ed.utcFormat,Ed.utcParse,Ed}function h8e(e){return new Date(e)}function p8e(e){return e instanceof Date?+e:+new Date(+e)}function n4(e,t,n,r,a,s,o,l,d,u){var h=zA(),p=h.invert,g=h.domain,y=u(".%L"),b=u(":%S"),w=u("%I:%M"),j=u("%I %p"),S=u("%a %d"),k=u("%b %d"),N=u("%B"),_=u("%Y");function L(E){return(d(E)<E?y:l(E)<E?b:o(E)<E?w:s(E)<E?j:r(E)<E?a(E)<E?S:k:n(E)<E?N:_)(E)}return h.invert=function(E){return new Date(p(E))},h.domain=function(E){return arguments.length?g(Array.from(E,p8e)):g().map(h8e)},h.ticks=function(E){var T=g();return e(T[0],T[T.length-1],E??10)},h.tickFormat=function(E,T){return T==null?L:u(T)},h.nice=function(E){var T=g();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?g(KK(T,E)):h},h.copy=function(){return Sg(h,n4(e,t,n,r,a,s,o,l,d,u))},h}function m8e(){return _a.apply(n4(uPe,dPe,Lo,e4,m1,Cg,QA,XA,Vc,lX).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function g8e(){return _a.apply(n4(lPe,cPe,Oo,t4,g1,p1,JA,ZA,Vc,cX).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function v1(){var e=0,t=1,n,r,a,s,o=ai,l=!1,d;function u(p){return p==null||isNaN(p=+p)?d:o(a===0?.5:(p=(s(p)-n)*a,l?Math.max(0,Math.min(1,p)):p))}u.domain=function(p){return arguments.length?([e,t]=p,n=s(e=+e),r=s(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(p){return arguments.length?(l=!!p,u):l},u.interpolator=function(p){return arguments.length?(o=p,u):o};function h(p){return function(g){var y,b;return arguments.length?([y,b]=g,o=p(y,b),u):[o(0),o(1)]}}return u.range=h(Bf),u.rangeRound=h(FA),u.unknown=function(p){return arguments.length?(d=p,u):d},function(p){return s=p,n=p(e),r=p(t),a=n===r?0:1/(r-n),u}}function Xl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function uX(){var e=Kl(v1()(ai));return e.copy=function(){return Xl(e,uX())},$o.apply(e,arguments)}function dX(){var e=VA(v1()).domain([1,10]);return e.copy=function(){return Xl(e,dX()).base(e.base())},$o.apply(e,arguments)}function fX(){var e=GA(v1());return e.copy=function(){return Xl(e,fX()).constant(e.constant())},$o.apply(e,arguments)}function r4(){var e=WA(v1());return e.copy=function(){return Xl(e,r4()).exponent(e.exponent())},$o.apply(e,arguments)}function v8e(){return r4.apply(null,arguments).exponent(.5)}function hX(){var e=[],t=ai;function n(r){if(r!=null&&!isNaN(r=+r))return t((wg(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Ol),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,s)=>nDe(e,s/r))},n.copy=function(){return hX(t).domain(e)},$o.apply(n,arguments)}function y1(){var e=0,t=.5,n=1,r=1,a,s,o,l,d,u=ai,h,p=!1,g;function y(w){return isNaN(w=+w)?g:(w=.5+((w=+h(w))-s)*(r*w<r*s?l:d),u(p?Math.max(0,Math.min(1,w)):w))}y.domain=function(w){return arguments.length?([e,t,n]=w,a=h(e=+e),s=h(t=+t),o=h(n=+n),l=a===s?0:.5/(s-a),d=s===o?0:.5/(o-s),r=s<a?-1:1,y):[e,t,n]},y.clamp=function(w){return arguments.length?(p=!!w,y):p},y.interpolator=function(w){return arguments.length?(u=w,y):u};function b(w){return function(j){var S,k,N;return arguments.length?([S,k,N]=j,u=_De(w,[S,k,N]),y):[u(0),u(.5),u(1)]}}return y.range=b(Bf),y.rangeRound=b(FA),y.unknown=function(w){return arguments.length?(g=w,y):g},function(w){return h=w,a=w(e),s=w(t),o=w(n),l=a===s?0:.5/(s-a),d=s===o?0:.5/(o-s),r=s<a?-1:1,y}}function pX(){var e=Kl(y1()(ai));return e.copy=function(){return Xl(e,pX())},$o.apply(e,arguments)}function mX(){var e=VA(y1()).domain([.1,1,10]);return e.copy=function(){return Xl(e,mX()).base(e.base())},$o.apply(e,arguments)}function gX(){var e=GA(y1());return e.copy=function(){return Xl(e,gX()).constant(e.constant())},$o.apply(e,arguments)}function i4(){var e=WA(y1());return e.copy=function(){return Xl(e,i4()).exponent(e.exponent())},$o.apply(e,arguments)}function y8e(){return i4.apply(null,arguments).exponent(.5)}const vX=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:$A,scaleDiverging:pX,scaleDivergingLog:mX,scaleDivergingPow:i4,scaleDivergingSqrt:y8e,scaleDivergingSymlog:gX,scaleIdentity:YK,scaleImplicit:U6,scaleLinear:WK,scaleLog:XK,scaleOrdinal:IA,scalePoint:aDe,scalePow:YA,scaleQuantile:JK,scaleQuantize:eX,scaleRadial:QK,scaleSequential:uX,scaleSequentialLog:dX,scaleSequentialPow:r4,scaleSequentialQuantile:hX,scaleSequentialSqrt:v8e,scaleSequentialSymlog:fX,scaleSqrt:QDe,scaleSymlog:ZK,scaleThreshold:tX,scaleTime:m8e,scaleUtc:g8e,tickFormat:GK},Symbol.toStringTag,{value:"Module"}));function x8e(e){var t=vX;if(e in t&&typeof t[e]=="function")return t[e]();var n="scale".concat(nA(e));if(n in t&&typeof t[n]=="function")return t[n]()}function uB(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=x8e(e);
2798if(r!=null)return r.domain(t).range(n),r}}function a4(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?uB(e.scale,n,r):uB(t,n,r)}function b8e(e){return"scale".concat(nA(e))}function w8e(e){return b8e(e)in vX}var yX=(e,t,n)=>{if(e!=null){var r=e.scale,a=e.type;if(r==="auto")return a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":a==="category"?"band":"linear";if(typeof r=="string")return w8e(r)?r:"point"}};function j8e(e,t){for(var n=0,r=e.length,a=e[0]<e[e.length-1];n<r;){var s=Math.floor((n+r)/2);(a?e[s]<t:e[s]>t)?n=s+1:r=s}return n}function xX(e,t){if(e){var n=t??e.domain(),r=n.map(s=>{var o;return(o=e(s))!==null&&o!==void 0?o:0}),a=e.range();if(!(n.length===0||a.length<2))return s=>{var o,l,d=j8e(r,s);if(d<=0)return n[0];if(d>=n.length)return n[n.length-1];var u=(o=r[d-1])!==null&&o!==void 0?o:0,h=(l=r[d])!==null&&l!==void 0?l:0;return Math.abs(s-u)<=Math.abs(s-h)?n[d-1]:n[d]}}}function S8e(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):xX(e,void 0)}function dB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dB(Object(n),!0).forEach(function(r){C8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C8e(e,t,n){return(t=k8e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k8e(e){var t=N8e(e,"string");return typeof t=="symbol"?t:t+""}function N8e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bX(e,t){return T8e(e)||_8e(e,t)||E8e(e,t)||A8e()}function A8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2799In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E8e(e,t){if(e){if(typeof e=="string")return fB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fB(e,t):void 0}}function fB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function T8e(e){if(Array.isArray(e))return e}var Y6=[0,"auto"],Qn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},wX=(e,t)=>e.cartesianAxis.xAxis[t],Bo=(e,t)=>{var n=wX(e,t);return n??Qn},Jn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Y6,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:mg},jX=(e,t)=>e.cartesianAxis.yAxis[t],qo=(e,t)=>{var n=jX(e,t);return n??Jn},L8e={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},s4=(e,t)=>
2799{var n=e.cartesianAxis.zAxis[t];return n??L8e},Xr=(e,t,n)=>{switch(t){case"xAxis":return Bo(e,n);case"yAxis":return qo(e,n);case"zAxis":return s4(e,n);case"angleAxis":return TA(e,n);case"radiusAxis":return LA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},O8e=(e,t,n)=>{switch(t){case"xAxis":return Bo(e,n);case"yAxis":return qo(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},kg=(e,t,n)=>{switch(t){case"xAxis":return Bo(e,n);case"yAxis":return qo(e,n);case"angleAxis":return TA(e,n);case"radiusAxis":return LA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},SX=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function CX(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var kX=e=>e.graphicalItems.cartesianItems,M8e=ue([yr,d1],CX),NX=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),qf=ue([kX,Xr,M8e],NX,{memoizeOptions:{resultEqualityCheck:f1}}),AX=ue([qf],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(DA)),EX=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),D8e=ue([qf],EX),_X=e=>e.map(t=>t.data).filter(Boolean).flat(1),P8e=ue([qf],e=>e.some(t=>!t.data)),TX=ue([qf],_X,{memoizeOptions:{resultEqualityCheck:f1}}),LX=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,a=t.dataStartIndex,s=t.dataEndIndex;return e.length>0?e:r.slice(a,s+1)},o4=ue([TX,s1],LX),R8e=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:ir(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:ir(a,r)}))):e.map(r=>({value:r})),OX=(e,t,n,r,a,s)=>{var o=r.chartData,l=o===void 0?[]:o,d=r.dataStartIndex,u=r.dataEndIndex,h=R8e(e,t,n);if(a&&t?.dataKey!=null&&s.length>0){var p=l.slice(d,u+1),g=p.map(y=>({value:ir(y,t.dataKey)})).filter(y=>y.value!=null);return[...g,...h]}return h},Ng=ue([o4,Xr,qf,s1,P8e,TX],OX);function Qd(e){if(_s(e)||e instanceof Date){var t=Number(e);if(yt(t))return t}}function hB(e){if(Array.isArray(e)){var t=[Qd(e[0]),Qd(e[1])];return ks(t)?t:void 0}var n=Qd(e);if(n!=null)return[n,n]}function Wa(e){return e.map(Qd).filter(ri)}function I8e(e,t){var n=Qd(e),r=Qd(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var $8e=ue([Ng],e=>e?.map(t=>t.value).sort(I8e));function MX(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function B8e(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!Es(t))r=t;else if(Array.isArray(t)){var a=Wa(t);a.length>0&&(r=Math.max(...a))}return r==null?[]:Wa(n.flatMap(s=>{var o=ir(e,s.dataKey),l,d;if(Array.isArray(o)){var u=bX(o,2);l=u[0],d=u[1]}else l=d=o;if(!(!yt(l)||!yt(d)))return[r-l,r+d]}))}var cr=e=>{var t=xr(e),n=$f(e);return kg(e,t,n)},mf=ue([cr],e=>e?.dataKey),q8e=ue([AX,s1,cr],IK),DX=(e,t,n,r)=>{var a={},s=t.reduce((o,l)=>{if(l.stackId==null)return o;var d=o[l.stackId];return d==null&&(d=[]),d.push(l),o[l.stackId]=d,o},a);return Object.fromEntries(Object.entries(s).map(o=>{var l=bX(o,2),d=l[0],u=l[1],h=r?[...u].reverse():u,p=h.map(MA);return[d,{stackedData:Z_e(e,p,n),graphicalItems:h}]}))},PX=ue([q8e,AX,o1,TK],DX),RX=(e,t,n,r)=>{var a=t.dataStartIndex,s=t.dataEndIndex;if(r==null&&n!=="zAxis")return tTe(e,a,s)},F8e=ue([Xr],e=>e.allowDataOverflow),l4=e=>{var t;if(e==null||!("domain"in e))return Y6;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Wa(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Y6},IX=ue([Xr],l4),$X=ue([IX,F8e],xK),z8e=ue([PX,ts,yr,$X],RX,{memoizeOptions:{resultEqualityCheck:bg}}),c4=e=>e.errorBars,H8e=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>MX(n,r)),Tx=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);if(a.length!==0){var s=a.flat(),o=Math.min(...s),l=Math.max(...s);return[o,l]}},BX=function(t,n,r,a,s){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],l,d;if(r.length>0&&r.forEach(u=>{var h,p=u.data!=null?[...u.data]:o,g=(h=a[u.id])===null||h===void 0?void 0:h.filter(y=>MX(s,y));p.forEach(y=>{var b,w=ir(y,(b=n.dataKey)!==null&&b!==void 0?b:u.dataKey),j=B8e(y,w,g);if(j.length>=2){var S=Math.min(...j),k=Math.max(...j);(l==null||S<l)&&(l=S),(d==null||k>d)&&(d=k)}var N=hB(w);N!=null&&(l=l==null?N[0]:Math.min(l,N[0]),d=d==null?N[1]:Math.max(d,N[1]))})}),n?.dataKey!=null&&r.length===0&&t.forEach(u=>
2799{var h=hB(ir(u,n.dataKey));h!=null&&(l=l==null?h[0]:Math.min(l,h[0]),d=d==null?h[1]:Math.max(d,h[1]))}),yt(l)&&yt(d))return[l,d]},U8e=ue([o4,Xr,D8e,c4,yr,bMe],BX,{memoizeOptions:{resultEqualityCheck:bg}});function V8e(e){var t=e.value;if(_s(t)||t instanceof Date)return t}var G8e=(e,t,n)=>{var r=e.map(V8e).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&xW(r))?yK(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},qX=e=>e.referenceElements.dots,Ff=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),W8e=ue([qX,yr,d1],Ff),FX=e=>e.referenceElements.areas,Y8e=ue([FX,yr,d1],Ff),zX=e=>e.referenceElements.lines,K8e=ue([zX,yr,d1],Ff),HX=(e,t)=>{if(e!=null){var n=Wa(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},X8e=ue(W8e,yr,HX),UX=(e,t)=>{if(e!=null){var n=Wa(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Z8e=ue([Y8e,yr],UX);function Q8e(e){var t;if(e.x!=null)return Wa([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Wa(n)}function J8e(e){var t;if(e.y!=null)return Wa([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Wa(n)}var VX=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Q8e(r):J8e(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},e9e=ue([K8e,yr],VX),t9e=ue(X8e,e9e,Z8e,(e,t,n)=>Tx(e,n,t)),GX=(e,t,n,r,a,s,o,l,d)=>{if(n!=null)return n;var u=o==="vertical"&&l==="xAxis"||o==="horizontal"&&l==="yAxis",h=u?Tx(r,s,a):Tx(s,a),p=NMe(t,h,e.allowDataOverflow);return p??(e.allowDataOverflow&&h==null&&d!=null?d:p)},n9e=e=>{if(!(e==null||e.type!=="number"||!("ticks"in e)||e.ticks==null)){var t=Wa(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},r9e=ue([Xr],n9e,{memoizeOptions:{resultEqualityCheck:bg}}),i9e=ue([Xr,IX,$X,z8e,U8e,t9e,dn,yr,r9e],GX,{memoizeOptions:{resultEqualityCheck:bg}}),a9e=[0,1],WX=(e,t,n,r,a,s,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var l=e.dataKey,d=e.type,u=Ds(t,s);if(u&&l==null){var h;return yK(0,(h=n?.length)!==null&&h!==void 0?h:0)}return d==="category"?G8e(r,e,u):a==="expand"&&!u?a9e:o}},u4=ue([Xr,dn,o4,Ng,o1,yr,i9e],WX),zf=ue([Xr,SX,AA],yX),YX=(e,t,n)=>{var r=t.niceTicks;if(r!=="none"){var a=l4(t),s=Array.isArray(a)&&(a[0]==="auto"||a[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&ks(e)){if(s)return j$(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return S$(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(s&&ks(e))return j$(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ks(e))return S$(e,t.tickCount,t.allowDecimals,"adaptive")}}},d4=ue([u4,kg,zf],YX),KX=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&ks(t)&&Array.isArray(n)&&n.length>0){var a,s,o=t[0],l=(a=n[0])!==null&&a!==void 0?a:0,d=t[1],u=(s=n[n.length-1])!==null&&s!==void 0?s:0;return[Math.min(o,l),Math.max(d,u)]}return t},s9e=ue([Xr,u4,d4,yr],KX),o9e=ue(Ng,Xr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Wa(e.map(p=>p.value))).sort((p,g)=>p-g),a=r[0],s=r[r.length-1];if(a==null||s==null)return 1/0;var o=s-a;if(o===0)return 1/0;for(var l=0;l<r.length-1;l++){var d=r[l],u=r[l+1];if(!(d==null||u==null)){var h=u-d;n=Math.min(n,h)}}return n/o}}),XX=ue(o9e,dn,PMe,Pr,(e,t,n,r,a)=>a,(e,t,n,r,a)=>{if(!yt(e))return 0;var s=t==="vertical"?r.height:r.width;if(a==="gap")return e*s/2;if(a==="no-gap"){var o=Bl(n,e*s),l=e*s/2;return l-o-(l-o)/s*o}return 0}),l9e=(e,t,n)=>{var r=Bo(e,t);return r==null||typeof r.padding!="string"?0:XX(e,"xAxis",t,n,r.padding)},c9e=(e,t,n)=>{var r=qo(e,t);return r==null||typeof r.padding!="string"?0:XX(e,"yAxis",t,n,r.padding)},u9e=ue(Bo,l9e,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var a=e.padding;return typeof a=="string"?{left:t,right:t}:{left:((n=a.left)!==null&&n!==void 0?n:0)+t,right:((r=a.right)!==null&&r!==void 0?r:0)+t}}),d9e=ue(qo,c9e,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var a=e.padding;
2799return typeof a=="string"?{top:t,bottom:t}:{top:((n=a.top)!==null&&n!==void 0?n:0)+t,bottom:((r=a.bottom)!==null&&r!==void 0?r:0)+t}}),ZX=ue([Pr,u9e,Xb,Kb,(e,t,n)=>n],(e,t,n,r,a)=>{var s=r.padding;return a?[s.left,n.width-s.right]:[e.left+t.left,e.left+e.width-t.right]}),QX=ue([Pr,dn,d9e,Xb,Kb,(e,t,n)=>n],(e,t,n,r,a,s)=>{var o=a.padding;return s?[r.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Ag=(e,t,n,r)=>{var a;switch(t){case"xAxis":return ZX(e,n,r);case"yAxis":return QX(e,n,r);case"zAxis":return(a=s4(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return DK(e);case"radiusAxis":return PK(e,n);default:return}},JX=ue([Xr,Ag],l1),f9e=ue([zf,s9e],UMe),f4=ue([Xr,zf,f9e,JX],a4),eZ=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var a=n.type,s=n.scale,o=Ds(e,r);if(o&&(a==="number"||s!=="auto"))return t.map(l=>l.value)}},h4=ue([dn,Ng,kg,yr],eZ),x1=ue([f4],PA);ue([f4],S8e);ue([f4,$8e],xX);ue([qf,c4,yr],H8e);function tZ(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var b1=(e,t)=>t,w1=(e,t,n)=>n,h9e=ue(Wb,b1,w1,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(tZ)),p9e=ue(Yb,b1,w1,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(tZ)),nZ=(e,t)=>{var n=typeof t.height=="number"?t.height:gA;return{width:e.width,height:n}},m9e=(e,t)=>{var n=typeof t.width=="number"?t.width:mg;return{width:n,height:e.height}},g9e=ue(Pr,Bo,nZ),v9e=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},y9e=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},x9e=ue(Io,Pr,h9e,b1,w1,(e,t,n,r,a)=>{var s={},o;return n.forEach(l=>{var d=nZ(t,l);o==null&&(o=v9e(t,r,e));var u=r==="top"&&!a||r==="bottom"&&a;s[l.id]=o-Number(u)*d.height,o+=(u?-1:1)*d.height}),s}),b9e=ue(Ro,Pr,p9e,b1,w1,(e,t,n,r,a)=>{var s={},o;return n.forEach(l=>{var d=m9e(t,l);o==null&&(o=y9e(t,r,e));var u=r==="left"&&!a||r==="right"&&a;s[l.id]=o-Number(u)*d.width,o+=(u?-1:1)*d.width}),s}),w9e=(e,t)=>{var n=Bo(e,t);if(n!=null)return x9e(e,n.orientation,n.mirror)},j9e=ue([Pr,Bo,w9e,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n?.[r];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}}),S9e=(e,t)=>{var n=qo(e,t);if(n!=null)return b9e(e,n.orientation,n.mirror)},C9e=ue([Pr,qo,S9e,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n?.[r];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}}),k9e=ue(Pr,qo,(e,t)=>{var n=typeof t.width=="number"?t.width:mg;return{width:n,height:e.height}}),rZ=(e,t,n,r)=>{if(n!=null){var a=n.allowDuplicatedCategory,s=n.type,o=n.dataKey,l=Ds(e,r),d=t.map(h=>h.value),u=d.filter(h=>h!=null);if(o&&l&&s==="category"&&a&&xW(u))return d}},p4=ue([dn,Ng,Xr,yr],rZ),pB=ue([dn,O8e,zf,x1,p4,h4,Ag,d4,yr],(e,t,n,r,a,s,o,l,d)=>{if(t!=null){var u=Ds(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:s,duplicateDomain:a,isCategorical:u,niceTicks:l,range:o,realScaleType:n,scale:r}}}),N9e=(e,t,n,r,a,s,o,l,d)=>{if(!(t==null||r==null)){var u=Ds(e,d),h=t.type,p=t.ticks,g=t.tickCount,y=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,b=h==="category"&&r.bandwidth?r.bandwidth()/y:0;b=d==="angleAxis"&&s!=null&&s.length>=2?ya(s[0]-s[1])*2*b:b;var w=p||a;return w?w.map((j,S)=>{var k=o?o.indexOf(j):j,N=r.map(k);return yt(N)?{index:S,coordinate:N+b,value:j,offset:b}:null}).filter(ri):u&&l?l.map((j,S)=>{var k=r.map(j);return yt(k)?{coordinate:k+b,value:j,index:S,offset:b}:null}).filter(ri):r.ticks?r.ticks(g).map((j,S)=>{var k=r.map(j);return yt(k)?{coordinate:k+b,value:j,index:S,offset:b}:null}).filter(ri):r.domain().map((j,S)=>{var k=r.map(j);return yt(k)?{coordinate:k+b,value:o?o[j]:j,index:S,offset:b}:null}).filter(ri)}},iZ=ue([dn,kg,zf,x1,d4,Ag,p4,h4,yr],N9e),A9e=(e,t,n,r,a,s,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var l=Ds(e,o),d=t.tickCount,u=0;return u=o==="angleAxis"&&r?.length>=2?ya(r[0]-r[1])*2*u:u,l&&s?s.map((h,p)=>{var g=n.map(h);return yt(g)?{coordinate:g+u,value:h,index:p,offset:u}:null}).filter(ri):n.ticks?n.ticks(d).map((h,p)=>{var g=n.map(h);return yt(g)?{coordinate:g+u,value:h,index:p,offset:u}:null}).filter(ri):n.domain().map((h,p)=>{var g=n.map(h);return yt(g)?{coordinate:g+u,value:a?a[h]:h,index:p,offset:u}:null}).filter(ri)}},aZ=ue([dn,kg,x1,Ag,p4,h4,yr],A9e),sZ=ue(Xr,x1,(e,t)=>{if(!(e==null||t==null))return _x(_x({},e),{},{scale:t})}),E9e=ue([Xr,zf,u4,JX],a4),_9e=ue([E9e],PA);ue((e,t,n)=>s4(e,n),_9e,(e,t)=>{if(!(e==null||t==null))return _x(_x({},e),{},{scale:t})});var T9e=ue([dn,Wb,Yb],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}
2799),L9e=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};ue([L9e],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,a=e[0];for(var s of e){var o=Math.abs(s.coordinate-t);o<r&&(r=o,a=s)}return(n=a)===null||n===void 0?void 0:n.value}});var oZ=e=>e.options.defaultTooltipEventType,lZ=e=>e.options.validateTooltipEventTypes;function cZ(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function Eg(e,t){var n=oZ(e),r=lZ(e);return cZ(t,n,r)}function O9e(e){return Ve(t=>Eg(t,e))}var uZ=(e,t)=>{var n,r=Number(t);if(!(Es(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},M9e=e=>e.tooltip.settings,Cl={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},D9e={itemInteraction:{click:Cl,hover:Cl},axisInteraction:{click:Cl,hover:Cl},keyboardInteraction:Cl,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},dZ=Kr({name:"tooltip",initialState:D9e,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Et(t.payload))},prepare:tn()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=xa(e).tooltipItemPayloads.indexOf(Et(r));s>-1&&(e.tooltipItemPayloads[s]=Et(a))},prepare:tn()},removeTooltipEntrySettings:{reducer(e,t){var n=xa(e).tooltipItemPayloads.indexOf(Et(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:tn()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),Ta=dZ.actions,P9e=Ta.addTooltipEntrySettings,R9e=Ta.replaceTooltipEntrySettings,I9e=Ta.removeTooltipEntrySettings,$9e=Ta.setTooltipSettingsState,B9e=Ta.setActiveMouseOverItemIndex;Ta.mouseLeaveItem;var fZ=Ta.mouseLeaveChart;Ta.setActiveClickItemIndex;var hZ=Ta.setMouseOverAxisIndex,q9e=Ta.setMouseClickAxisIndex,Rp=Ta.setSyncInteraction,Lx=Ta.setKeyboardInteraction,F9e=dZ.reducer;function mB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2799t%2?mB(Object(n),!0).forEach(function(r){z9e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z9e(e,t,n){return(t=H9e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H9e(e){var t=U9e(e,"string");return typeof t=="symbol"?t:t+""}function U9e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V9e(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function G9e(e){return e.index!=null}var pZ=(e,t,n,r)=>{if(t==null)return Cl;var a=V9e(e,t,n);if(a==null)return Cl;if(a.active)return a;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var s=e.settings.active===!0;if(G9e(a)){if(s)return E0(E0({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return E0(E0({},Cl),{},{coordinate:a.coordinate})};function W9e(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Y9e(e,t){var n=W9e(e),r=t[0],a=t[1];if(n===void 0)return!1;var s=Math.min(r,a),o=Math.max(r,a);return n>=s&&n<=o}function K9e(e,t,n){if(n==null||t==null)return!0;var r=ir(e,t);return r==null||!ks(n)?!0:Y9e(r,n)}var Wp=(e,t,n,r)=>{var a=e?.index;if(a==null)return null;var s=Number(a);if(!yt(s))return a;var o=0,l=1/0;t.length>0&&(l=t.length-1);var d=Math.max(o,Math.min(s,l)),u=t[d];return u==null||K9e(u,n,r)?String(d):null},mZ=(e,t,n,r,a,s,o)=>{if(s!=null){var l=o[0],d=l?.getPosition(s);if(d!=null)return d;var u=a?.[Number(s)];if(u)switch(n){case"horizontal":return{x:u.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:u.coordinate}}}},gZ=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(n==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&a==null)return e.tooltipItemPayloads;if(a==null&&(r!=null||e.keyboardInteraction.active)){var s=e.tooltipItemPayloads[0];return s!=null?[s]:[]}return e.tooltipItemPayloads.filter(o=>{var l;return((l=o.settings)===null||l===void 0?void 0:l.graphicalItemId)===a})},vZ=e=>e.options.tooltipPayloadSearcher,Hf=e=>e.tooltip;function gB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gB(Object(n),!0).forEach(function(r){X9e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X9e(e,t,n){return(t=Z9e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z9e(e){var t=Q9e(e,"string");return typeof t=="symbol"?t:t+""}function Q9e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J9e(e){if(typeof e=="string"||typeof e=="number")return e}function e7e(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function t7e(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function yB(e){if(typeof e=="string")return e}function n7e(e){if(!(e==null||typeof e!="object")){var t="name"in e?J9e(e.name):void 0,n="unit"in e?e7e(e.unit):void 0,r="dataKey"in e?t7e(e.dataKey):void 0,a="payload"in e?e.payload:void 0,s="color"in e?yB(e.color):void 0,o="fill"in e?yB(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:a,color:s,fill:o}}}function r7e(e,t){return e??t}var yZ=(e,t,n,r,a,s,o)=>
2799{if(!(t==null||s==null)){var l=n.chartData,d=n.computedData,u=n.dataStartIndex,h=n.dataEndIndex,p=[];return e.reduce((g,y)=>{var b,w=y.dataDefinedOnItem,j=y.settings,S=r7e(w,l),k=Array.isArray(S)?qY(S,u,h):S,N=(b=j?.dataKey)!==null&&b!==void 0?b:r,_=j?.nameKey,L;if(r&&Array.isArray(k)&&!Array.isArray(k[0])&&o==="axis"?(L=bW(k,r,a),L==null&&(L=s(k,t,d,_))):L=s(k,t,d,_),Array.isArray(L))L.forEach(T=>{var P,$,O=n7e(T),q=O?.name,D=O?.dataKey,z=O?.payload,V=vB(vB({},j),{},{name:q,unit:O?.unit,color:(P=O?.color)!==null&&P!==void 0?P:j?.color,fill:($=O?.fill)!==null&&$!==void 0?$:j?.fill});g.push(uI({tooltipEntrySettings:V,dataKey:D,payload:z,value:ir(z,D),name:q==null?void 0:String(q)}))});else{var E;g.push(uI({tooltipEntrySettings:j,dataKey:N,payload:L,value:ir(L,N),name:(E=ir(L,_))!==null&&E!==void 0?E:j?.name}))}return g},p)}},m4=ue([cr,SX,AA],yX),i7e=ue([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),a7e=ue([xr,$f],CX),Eu=ue([i7e,cr,a7e],NX,{memoizeOptions:{resultEqualityCheck:f1}}),s7e=ue([Eu],e=>e.filter(DA)),xZ=ue([Eu],_X,{memoizeOptions:{resultEqualityCheck:f1}}),o7e=ue([Eu],e=>e.some(t=>!t.data)),gu=ue([xZ,ts],LX),l7e=ue([s7e,ts,cr],IK),g4=ue([gu,cr,Eu,ts,o7e,xZ],OX),bZ=ue([cr],l4),c7e=ue([cr],e=>e.allowDataOverflow),wZ=ue([bZ,c7e],xK),u7e=ue([Eu],e=>e.filter(DA)),d7e=ue([l7e,u7e,o1,TK],DX),f7e=ue([d7e,ts,xr,wZ],RX),h7e=ue([Eu],EX),p7e=ue([gu,cr,h7e,c4,xr,wMe],BX,{memoizeOptions:{resultEqualityCheck:bg}}),m7e=ue([qX,xr,$f],Ff),g7e=ue([m7e,xr],HX),v7e=ue([FX,xr,$f],Ff),y7e=ue([v7e,xr],UX),x7e=ue([zX,xr,$f],Ff),b7e=ue([x7e,xr],VX),w7e=ue([g7e,b7e,y7e],Tx),j7e=ue([cr,bZ,wZ,f7e,p7e,w7e,dn,xr],GX),gf=ue([cr,dn,gu,g4,o1,xr,j7e],WX),S7e=ue([gf,cr,m4],YX),C7e=ue([cr,gf,S7e,xr],KX),jZ=e=>{var t=xr(e),n=$f(e),r=!1;return Ag(e,t,n,r)},SZ=ue([cr,jZ],l1),k7e=ue([cr,m4,C7e,SZ],a4),CZ=ue([k7e],PA),N7e=ue([dn,g4,cr,xr],rZ),A7e=ue([dn,g4,cr,xr],eZ),E7e=(e,t,n,r,a,s,o,l)=>{if(t){var d=t.type,u=Ds(e,l);if(r){var h=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/h:0;return p=l==="angleAxis"&&a!=null&&a?.length>=2?ya(a[0]-a[1])*2*p:p,u&&o?o.map((g,y)=>{var b=r.map(g);return yt(b)?{coordinate:b+p,value:g,index:y,offset:p}:null}).filter(ri):r.domain().map((g,y)=>{var b=r.map(g);return yt(b)?{coordinate:b+p,value:s?s[g]:g,index:y,offset:p}:null}).filter(ri)}}},Fo=ue([dn,cr,m4,CZ,jZ,N7e,A7e,xr],E7e),v4=ue([oZ,lZ,M9e],(e,t,n)=>cZ(n.shared,e,t)),kZ=e=>e.tooltip.settings.trigger,y4=e=>e.tooltip.settings.defaultIndex,_g=ue([Hf,v4,kZ,y4],pZ),Im=ue([_g,gu,mf,gf],Wp),NZ=ue([Fo,Im],uZ),_7e=ue([_g],e=>{if(e)return e.dataKey}),T7e=ue([_g],e=>{if(e)return e.graphicalItemId}),AZ=ue([Hf,v4,kZ,y4],gZ),L7e=ue([Ro,Io,dn,Pr,Fo,y4,AZ],mZ),O7e=ue([_g,L7e],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),M7e=ue([_g],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),D7e=ue([AZ,Im,ts,mf,NZ,vZ,v4],yZ),P7e=ue([D7e],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function xB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xB(Object(n),!0).forEach(function(r){R7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R7e(e,t,n){return(t=I7e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I7e(e){var t=$7e(e,"string");return typeof t=="symbol"?t:t+""}function $7e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B7e=()=>Ve(cr),q7e=()=>{var e=B7e(),t=Ve(Fo),n=Ve(CZ);return ix(!e||!n?void 0:bB(bB({},e),{},{scale:n}),t)};function wB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2799t%2?wB(Object(n),!0).forEach(function(r){F7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F7e(e,t,n){return(t=z7e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z7e(e){var t=H7e(e,"string");return typeof t=="symbol"?t:t+""}function H7e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var U7e=(e,t,n,r)=>{var a=t.find(s=>s&&s.index===n);if(a){if(e==="horizontal")return{x:a.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:a.coordinate}}return{x:0,y:0}},V7e=(e,t,n,r)=>{var a=t.find(u=>u&&u.index===n);if(a){if(e==="centric"){var s=a.coordinate,o=r.radius;return _d(_d(_d({},r),Mr(r.cx,r.cy,o,s)),{},{angle:s,radius:o})}var l=a.coordinate,d=r.angle;return _d(_d(_d({},r),Mr(r.cx,r.cy,l,d)),{},{angle:d,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function G7e(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var EZ=(e,t,n,r,a)=>{var s,o=(s=t?.length)!==null&&s!==void 0?s:0;if(o<=1||e==null)return 0;if(r==="angleAxis"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var l=a[1]-a[0],d=(W,B,H)=>[e,e+l,e-l].some(G=>(H?G>=W:G>W)&&G<=B),u=0;u<o;u++){var h,p,g,y,b,w=u>0?(h=n[u-1])===null||h===void 0?void 0:h.coordinate:(p=n[o-1])===null||p===void 0?void 0:p.coordinate,j=(g=n[u])===null||g===void 0?void 0:g.coordinate,S=u>=o-1?(y=n[0])===null||y===void 0?void 0:y.coordinate:(b=n[u+1])===null||b===void 0?void 0:b.coordinate,k=void 0;if(!(w==null||j==null||S==null))if(ya(j-w)!==ya(S-j)){var N=[];if(ya(S-j)===ya(a[1]-a[0])){k=S;var _=j+a[1]-a[0];N[0]=Math.min(_,(_+w)/2),N[1]=Math.max(_,(_+w)/2)}else{k=w;var L=S+a[1]-a[0];N[0]=Math.min(j,(L+j)/2),N[1]=Math.max(j,(L+j)/2)}var E=[Math.min(j,(k+j)/2),Math.max(j,(k+j)/2)];if(d(E[0],E[1],!1)||d(N[0],N[1],!0)){var T;return(T=n[u])===null||T===void 0?void 0:T.index}}else{var P=Math.min(w,S),$=Math.max(w,S);if(d((P+j)/2,($+j)/2,!1)){var O;return(O=n[u])===null||O===void 0?void 0:O.index}}}else if(t)for(var q=0;q<o;q++){var D=t[q];if(D!=null){var z=t[q+1],V=t[q-1];if(q===0&&z!=null&&e<=(D.coordinate+z.coordinate)/2||q===o-1&&V!=null&&e>(D.coordinate+V.coordinate)/2||q>0&&q<o-1&&V!=null&&z!=null&&e>(D.coordinate+V.coordinate)/2&&e<=(D.coordinate+z.coordinate)/2)return D.index}}return-1},_Z=()=>Ve(AA),x4=(e,t)=>t,TZ=(e,t,n)=>n,b4=(e,t,n,r)=>r,W7e=ue(Fo,e=>Rb(e,t=>t.coordinate)),w4=ue([Hf,x4,TZ,b4],pZ),j4=ue([w4,gu,mf,gf],Wp),Y7e=(e,t,n)=>{if(t!=null){var r=Hf(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},LZ=ue([Hf,x4,TZ,b4],gZ),Ox=ue([Ro,Io,dn,Pr,Fo,b4,LZ],mZ),K7e=ue([w4,Ox],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),OZ=ue([Fo,j4],uZ),X7e=ue([LZ,j4,ts,mf,OZ,vZ,x4],yZ),Z7e=ue([w4,j4],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Q7e=(e,t,n,r,a,s,o)=>{if(!(!e||!n||!r||!a)&&G7e(e,o)){var l=nTe(e,t),d=EZ(l,s,a,n,r),u=U7e(t,a,d,e);return{activeIndex:String(d),activeCoordinate:u}}},J7e=(e,t,n,r,a,s,o)=>{if(!(!e||!r||!a||!s||!n)){var l=fMe(e,n);if(l){var d=rTe(l,t),u=EZ(d,o,s,r,a),h=V7e(t,s,u,l);return{activeIndex:String(u),activeCoordinate:h}}}},eRe=(e,t,n,r,a,s,o,l)=>{if(!(!e||!t||!r||!a||!s))return t==="horizontal"||t==="vertical"?Q7e(e,t,r,a,s,o,l):J7e(e,t,n,r,a,s,o)},tRe=ue(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),nRe=ue(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(ii)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:HMe}});function jB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function SB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2799t%2?jB(Object(n),!0).forEach(function(r){rRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rRe(e,t,n){return(t=iRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iRe(e){var t=aRe(e,"string");return typeof t=="symbol"?t:t+""}function aRe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sRe={},oRe={zIndexMap:Object.values(ii).reduce((e,t)=>SB(SB({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),sRe)},lRe=new Set(Object.values(ii));function cRe(e){return lRe.has(e)}var MZ=Kr({name:"zIndex",initialState:oRe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:tn()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!cRe(n)&&delete e.zIndexMap[n])},prepare:tn()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,a=n.element,s=n.isPanorama;e.zIndexMap[r]?s?e.zIndexMap[r].panoramaElement=Et(a):e.zIndexMap[r].element=Et(a):e.zIndexMap[r]={consumers:0,element:s?void 0:Et(a),panoramaElement:s?Et(a):void 0}},prepare:tn()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:tn()}}}),j1=MZ.actions,uRe=j1.registerZIndexPortal,pC=j1.unregisterZIndexPortal,dRe=j1.registerZIndexPortalElement,fRe=j1.unregisterZIndexPortalElement,hRe=MZ.reducer;function zo(e){var t=e.zIndex,n=e.children,r=FTe(),a=r&&t!==void 0&&t!==0,s=_i(),o=v.useRef(void 0),l=v.useRef(new Set),d=In(),u=Ve(p=>tRe(p,t,s));if(v.useLayoutEffect(()=>{if(!a){var p=l.current;p.forEach(y=>{d(pC({zIndex:y}))}),p.clear(),o.current=void 0;return}if(l.current.has(t)||(d(uRe({zIndex:t})),l.current.add(t)),u){o.current=u;var g=l.current;g.forEach(y=>{y!==t&&(d(pC({zIndex:y})),g.delete(y))})}},[d,t,a,u]),v.useLayoutEffect(()=>{var p=l.current;return()=>{p.forEach(g=>{d(pC({zIndex:g}))}),p.clear()}},[d]),!a)return n;var h=u??o.current;return h?$c.createPortal(n,h):null}function K6(){return K6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K6.apply(null,arguments)}function CB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CB(Object(n),!0).forEach(function(r){pRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pRe(e,t,n){return(t=mRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mRe(e){var t=gRe(e,"string");return typeof t=="symbol"?t:t+""}function gRe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vRe(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return v.isValidElement(t)?v.cloneElement(t,r):v.createElement(n,r)}function yRe(e){var t,n=e.coordinate,r=e.payload,a=e.index,s=e.offset,o=e.tooltipAxisBandSize,l=e.layout,d=e.cursor,u=e.tooltipEventType,h=e.chartName,p=n,g=r,y=a;if(!d||!p||h!=="ScatterChart"&&u!=="axis")return null;var b,w,j;if(h==="ScatterChart")b=p,w=bOe,j=ii.cursorLine;else if(h==="BarChart")b=wOe(l,p,s,o),w=nMe,j=ii.cursorRectangle;else if(l==="radial"&&PW(p)){var S=gK(p),k=S.cx,N=S.cy,_=S.radius,L=S.startAngle,E=S.endAngle;b={cx:k,cy:N,startAngle:L,endAngle:E,innerRadius:_,outerRadius:_},w=gMe,j=ii.cursorLine}else b={points:vMe(l,p,s)},w=fy,j=ii.cursorLine;var T=typeof d=="object"&&"className"in d?d.className:void 0,P=_0(_0(_0(_0({stroke:"#ccc",pointerEvents:"none"},s),b),Mb(d)),{},{payload:g,payloadIndex:y,className:an("recharts-tooltip-cursor",T)});return v.createElement(zo,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:j},v.createElement(vRe,{cursor:d,cursorComp:w,cursorProps:P}))}function xRe(e){var t=q7e(),n=KY(),r=Pf(),a=_Z();return t==null||n==null||r==null||a==null?null:v.createElement(yRe,K6({}
2799,e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var DZ=v.createContext(null),bRe=()=>v.useContext(DZ),mC={exports:{}},kB;function wRe(){return kB||(kB=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(d,u,h){this.fn=d,this.context=u,this.once=h||!1}function s(d,u,h,p,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var y=new a(h,p||d,g),b=n?n+u:u;return d._events[b]?d._events[b].fn?d._events[b]=[d._events[b],y]:d._events[b].push(y):(d._events[b]=y,d._eventsCount++),d}function o(d,u){--d._eventsCount===0?d._events=new r:delete d._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],h,p;if(this._eventsCount===0)return u;for(p in h=this._events)t.call(h,p)&&u.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},l.prototype.listeners=function(u){var h=n?n+u:u,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,y=p.length,b=new Array(y);g<y;g++)b[g]=p[g].fn;return b},l.prototype.listenerCount=function(u){var h=n?n+u:u,p=this._events[h];return p?p.fn?1:p.length:0},l.prototype.emit=function(u,h,p,g,y,b){var w=n?n+u:u;if(!this._events[w])return!1;var j=this._events[w],S=arguments.length,k,N;if(j.fn){switch(j.once&&this.removeListener(u,j.fn,void 0,!0),S){case 1:return j.fn.call(j.context),!0;case 2:return j.fn.call(j.context,h),!0;case 3:return j.fn.call(j.context,h,p),!0;case 4:return j.fn.call(j.context,h,p,g),!0;case 5:return j.fn.call(j.context,h,p,g,y),!0;case 6:return j.fn.call(j.context,h,p,g,y,b),!0}for(N=1,k=new Array(S-1);N<S;N++)k[N-1]=arguments[N];j.fn.apply(j.context,k)}else{var _=j.length,L;for(N=0;N<_;N++)switch(j[N].once&&this.removeListener(u,j[N].fn,void 0,!0),S){case 1:j[N].fn.call(j[N].context);break;case 2:j[N].fn.call(j[N].context,h);break;case 3:j[N].fn.call(j[N].context,h,p);break;case 4:j[N].fn.call(j[N].context,h,p,g);break;default:if(!k)for(L=1,k=new Array(S-1);L<S;L++)k[L-1]=arguments[L];j[N].fn.apply(j[N].context,k)}}return!0},l.prototype.on=function(u,h,p){return s(this,u,h,p,!1)},l.prototype.once=function(u,h,p){return s(this,u,h,p,!0)},l.prototype.removeListener=function(u,h,p,g){var y=n?n+u:u;if(!this._events[y])return this;if(!h)return o(this,y),this;var b=this._events[y];if(b.fn)b.fn===h&&(!g||b.once)&&(!p||b.context===p)&&o(this,y);else{for(var w=0,j=[],S=b.length;w<S;w++)(b[w].fn!==h||g&&!b[w].once||p&&b[w].context!==p)&&j.push(b[w]);j.length?this._events[y]=j.length===1?j[0]:j:o(this,y)}return this},l.prototype.removeAllListeners=function(u){var h;return u?(h=n?n+u:u,this._events[h]&&o(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(mC)),mC.exports}var jRe=wRe();const SRe=Aa(jRe);var $m=new SRe,X6="recharts.syncEvent.tooltip",NB="recharts.syncEvent.brush",CRe=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Es(n))return e[n]}},kRe={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},PZ=Kr({name:"options",initialState:kRe,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),NRe=PZ.reducer,ARe=PZ.actions.createEventEmitter;function ERe(e){return e.tooltip.syncInteraction}var _Re={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},RZ=Kr({name:"chartData",initialState:_Re,reducers:{setChartData(e,t){if(e.chartData=Et(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,a=n.endIndex;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),S4=RZ.actions,AB=S4.setChartData,TRe=S4.setDataStartEndIndexes;S4.setComputedData;var LRe=RZ.reducer,ORe=["x","y"];function EB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Td(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2799t%2?EB(Object(n),!0).forEach(function(r){MRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MRe(e,t,n){return(t=DRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DRe(e){var t=PRe(e,"string");return typeof t=="symbol"?t:t+""}function PRe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RRe(e,t){if(e==null)return{};var n,r,a=IRe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function IRe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $Re(){var e=Ve(EA),t=Ve(_A),n=In(),r=Ve(LK),a=Ve(Fo),s=Pf(),o=Zb(),l=Ve(d=>d.rootProps.className);v.useEffect(()=>{if(e==null)return Df;var d=(u,h,p)=>{if(t!==p&&e===u){if(h.payload.active===!1){n(Rp({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r==="index"){var g;if(o&&h!==null&&h!==void 0&&(g=h.payload)!==null&&g!==void 0&&g.coordinate&&h.payload.sourceViewBox){var y=h.payload.coordinate,b=y.x,w=y.y,j=RRe(y,ORe),S=h.payload.sourceViewBox,k=S.x,N=S.y,_=S.width,L=S.height,E=Td(Td({},j),{},{x:o.x+(_?(b-k)/_:0)*o.width,y:o.y+(L?(w-N)/L:0)*o.height});n(Td(Td({},h),{},{payload:Td(Td({},h.payload),{},{coordinate:E})}))}else n(h);return}if(a!=null){var T;if(typeof r=="function"){var P={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},$=r(a,P);T=a[$]}else r==="value"&&(T=a.find(H=>String(H.value)===h.payload.label));var O=h.payload.coordinate;if(O==null||o==null){n(Rp({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(T==null){n(Rp({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:h.payload.sourceViewBox,graphicalItemId:void 0}));return}var q=O.x,D=O.y,z=Math.min(q,o.x+o.width),V=Math.min(D,o.y+o.height),W={x:s==="horizontal"?T.coordinate:z,y:s==="horizontal"?V:T.coordinate},B=Rp({active:h.payload.active,coordinate:W,dataKey:h.payload.dataKey,index:String(T.index),label:h.payload.label,sourceViewBox:h.payload.sourceViewBox,graphicalItemId:h.payload.graphicalItemId});n(B)}}};return $m.on(X6,d),()=>{$m.off(X6,d)}},[l,n,t,e,r,a,s,o])}function BRe(){var e=Ve(EA),t=Ve(_A),n=In();v.useEffect(()=>{if(e==null)return Df;var r=(a,s,o)=>{t!==o&&e===a&&n(TRe(s))};return $m.on(NB,r),()=>{$m.off(NB,r)}},[n,t,e])}function qRe(){var e=In();v.useEffect(()=>{e(ARe())},[e]),$Re(),BRe()}function FRe(e,t,n,r,a,s){var o=Ve(b=>Y7e(b,e,t)),l=Ve(T7e),d=Ve(_A),u=Ve(EA),h=Ve(LK),p=Ve(ERe),g=p?.sourceViewBox!=null,y=Zb();v.useEffect(()=>{if(!g&&u!=null&&d!=null){var b=Rp({active:s,coordinate:n,dataKey:o,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:l});$m.emit(X6,u,b,d)}},[g,n,o,l,a,r,d,u,h,s,y])}function _B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function TB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_B(Object(n),!0).forEach(function(r){zRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zRe(e,t,n){return(t=HRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HRe(e){var t=URe(e,"string");return typeof t=="symbol"?t:t+""}function URe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VRe(e,t){return KRe(e)||YRe(e,t)||WRe(e,t)||GRe()}
2799function GRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2800In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WRe(e,t){if(e){if(typeof e=="string")return LB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LB(e,t):void 0}}function LB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KRe(e){if(Array.isArray(e))return e}function XRe(e){return e.dataKey}function ZRe(e,t){return v.isValidElement(e)?v.cloneElement(e,t):typeof e=="function"?v.createElement(e,t):v.createElement(BLe,t)}var OB=[],QRe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function JRe(e){var t,n,r=Ea(e,QRe),a=r.active,s=r.allowEscapeViewBox,o=r.animationDuration,l=r.animationEasing,d=r.content,u=r.filterNull,h=r.isAnimationActive,p=r.offset,g=r.payloadUniqBy,y=r.position,b=r.reverseDirection,w=r.useTranslate3d,j=r.wrapperStyle,S=r.cursor,k=r.shared,N=r.trigger,_=r.defaultIndex,L=r.portal,E=r.axisId,T=In(),P=typeof _=="number"?String(_):_;v.useEffect(()=>{T($9e({shared:k,trigger:N,axisId:E,active:a,defaultIndex:P}))},[T,k,N,E,a,P]);var $=Zb(),O=uK(),q=O9e(k),D=(t=Ve(ge=>Z7e(ge,q,N,P)))!==null&&t!==void 0?t:{},z=D.activeIndex,V=D.isActive,W=Ve(ge=>X7e(ge,q,N,P)),B=Ve(ge=>OZ(ge,q,N,P)),H=Ve(ge=>K7e(ge,q,N,P)),G=W,K=bRe(),M=(n=a??V)!==null&&n!==void 0?n:!1,I=FEe([G,M]),X=VRe(I,2),F=X[0],U=X[1],Z=q==="axis"?B:void 0;FRe(q,N,H,Z,z,M);var ee=L??K;if(ee==null||$==null||q==null)return null;var ae=G??OB;M||(ae=OB),u&&ae.length&&(ae=uEe(ae.filter(ge=>ge.value!=null&&(ge.hide!==!0||r.includeHidden)),g,XRe));var ye=ae.length>0,J=TB(TB({},r),{},{payload:ae,label:Z,active:M,activeIndex:z,coordinate:H,accessibilityLayer:O}),re=v.createElement(sOe,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:h,active:M,coordinate:H,hasPayload:ye,offset:p,position:y,reverseDirection:b,useTranslate3d:w,viewBox:$,wrapperStyle:j,lastBoundingBox:F,innerRef:U,hasPortalFromProps:!!L},ZRe(d,J));return v.createElement(v.Fragment,null,$c.createPortal(re,ee),M&&v.createElement(xRe,{cursor:S,tooltipEventType:q,coordinate:H,payload:ae,index:z}))}function eIe(e,t,n){return(t=tIe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tIe(e){var t=nIe(e,"string");return typeof t=="symbol"?t:t+""}function nIe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class rIe{constructor(t){eIe(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function MB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iIe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2800t%2?MB(Object(n),!0).forEach(function(r){aIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aIe(e,t,n){return(t=sIe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sIe(e){var t=oIe(e,"string");return typeof t=="symbol"?t:t+""}function oIe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lIe={cacheSize:2e3,enableCache:!0},IZ=iIe({},lIe),DB=new rIe(IZ.cacheSize),cIe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},PB="recharts_measurement_span";function uIe(e,t){var n=t.fontSize||"",r=t.fontFamily||"",a=t.fontWeight||"",s=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(a,"|").concat(s,"|").concat(o,"|").concat(l)}var RB=(e,t)=>{try{var n=document.getElementById(PB);n||(n=document.createElement("span"),n.setAttribute("id",PB),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,cIe,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Yp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||xg.isSsr)return{width:0,height:0};if(!IZ.enableCache)return RB(t,n);var r=uIe(t,n),a=DB.get(r);if(a)return a;var s=RB(t,n);return DB.set(r,s),s},$Z;function Mx(e,t){return pIe(e)||hIe(e,t)||fIe(e,t)||dIe()}function dIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2801In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fIe(e,t){if(e){if(typeof e=="string")return IB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IB(e,t):void 0}}function IB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function pIe(e){if(Array.isArray(e))return e}function mIe(e,t,n){return(t=gIe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gIe(e){var t=vIe(e,"string");return typeof t=="symbol"?t:t+""}function vIe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $B=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yIe=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,xIe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bIe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},wIe=["cm","mm","pt","pc","in","Q","px"];function jIe(e){return wIe.includes(e)}var Vd="NaN";function SIe(e,t){return e*bIe[t]}class Lr{static parse(t){var n,r=(n=xIe.exec(t))!==null&&n!==void 0?n:[],a=Mx(r,3),s=a[1],o=a[2];return s==null?Lr.NaN:new Lr(parseFloat(s),o??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Es(t)&&(this.unit=""),n!==""&&!yIe.test(n)&&(this.num=NaN,this.unit=""),jIe(n)&&(this.num=SIe(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Lr(NaN,""):new Lr(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Lr(NaN,""):new Lr(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Lr(NaN,""):new Lr(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Lr(NaN,""):new Lr(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Es(this.num)}}$Z=Lr;mIe(Lr,"NaN",new $Z(NaN,""));function BZ(e){if(e==null||e.includes(Vd))return Vd;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=$B.exec(t))!==null&&n!==void 0?n:[],a=Mx(r,4),s=a[1],o=a[2],l=a[3],d=Lr.parse(s??""),u=Lr.parse(l??""),h=o==="*"?d.multiply(u):d.divide(u);if(h.isNaN())return Vd;t=t.replace($B,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=BB.exec(t))!==null&&p!==void 0?p:[],y=Mx(g,4),b=y[1],w=y[2],j=y[3],S=Lr.parse(b??""),k=Lr.parse(j??""),N=w==="+"?S.add(k):S.subtract(k);if(N.isNaN())return Vd;t=t.replace(BB,N.toString())}return t}var qB=/\(([^()]*)\)/;function CIe(e){for(var t=e,n;(n=qB.exec(t))!=null;){var r=n,a=Mx(r,2),s=a[1];t=t.replace(qB,BZ(s))}return t}function kIe(e){var t=e.replace(/\s+/g,"");return t=CIe(t),t=BZ(t),t}function NIe(e){try{return kIe(e)}catch{return Vd}}function gC(e){var t=NIe(e.slice(5,-1));return t===Vd?"":t}var AIe=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],EIe=["dx","dy","angle","className","breakAll"];function Z6(){return Z6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z6.apply(null,arguments)}function FB(e,t){if(e==null)return{};var n,r,a=_Ie(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _Ie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zB(e,t){return MIe(e)||OIe(e,t)||LIe(e,t)||TIe()}
2801function TIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2802In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LIe(e,t){if(e){if(typeof e=="string")return HB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HB(e,t):void 0}}function HB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OIe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function MIe(e){if(Array.isArray(e))return e}var qZ=/[ \f\n\r\t\v\u2028\u2029]+/,FZ=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var a=[];Dr(t)||(n?a=t.toString().split(""):a=t.toString().split(qZ));var s=a.map(l=>({word:l,width:Yp(l,r).width})),o=n?0:Yp(" ",r).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}};function zZ(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function DIe(e){return Dr(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var HZ=(e,t,n,r)=>e.reduce((a,s)=>{var o=s.word,l=s.width,d=a[a.length-1];if(d&&l!=null&&(t==null||r||d.width+l+n<Number(t)))d.words.push(o),d.width+=l+n;else{var u={words:[o],width:l};a.push(u)}return a},[]),UZ=e=>e.reduce((t,n)=>t.width>n.width?t:n),PIe="â¦",UB=(e,t,n,r,a,s,o,l)=>{var d=e.slice(0,t),u=FZ({breakAll:n,style:r,children:d+PIe});if(!u)return[!1,[]];var h=HZ(u.wordsWithComputedWidth,s,o,l),p=h.length>a||UZ(h).width>Number(s);return[p,h]},RIe=(e,t,n,r,a)=>{var s=e.maxLines,o=e.children,l=e.style,d=e.breakAll,u=Re(s),h=String(o),p=HZ(t,r,n,a);if(!u||a)return p;var g=p.length>s||UZ(p).width>Number(r);
2802if(!g)return p;for(var y=0,b=h.length-1,w=0,j;y<=b&&w<=h.length-1;){var S=Math.floor((y+b)/2),k=S-1,N=UB(h,k,d,l,s,r,n,a),_=zB(N,2),L=_[0],E=_[1],T=UB(h,S,d,l,s,r,n,a),P=zB(T,1),$=P[0];if(!L&&!$&&(y=S+1),L&&$&&(b=S-1),!L&&$){j=E;break}w++}return j||p},VB=e=>{var t=Dr(e)?[]:e.toString().split(qZ);return[{words:t,width:void 0}]},IIe=e=>{var t=e.width,n=e.scaleToFit,r=e.children,a=e.style,s=e.breakAll,o=e.maxLines;if((t||n)&&!xg.isSsr){var l,d,u=FZ({breakAll:s,children:r,style:a});if(u){var h=u.wordsWithComputedWidth,p=u.spaceWidth;l=h,d=p}else return VB(r);return RIe({breakAll:s,children:r,maxLines:o,style:a},l,d,t,!!n)}return VB(r)},VZ="#808080",$Ie={angle:0,breakAll:!1,capHeight:"0.71em",fill:VZ,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},C4=v.forwardRef((e,t)=>{var n=Ea(e,$Ie),r=n.x,a=n.y,s=n.lineHeight,o=n.capHeight,l=n.fill,d=n.scaleToFit,u=n.textAnchor,h=n.verticalAnchor,p=FB(n,AIe),g=v.useMemo(()=>IIe({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:d,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,d,p.style,p.width]),y=p.dx,b=p.dy,w=p.angle,j=p.className,S=p.breakAll,k=FB(p,EIe);if(!_s(r)||!_s(a)||g.length===0)return null;var N=Number(r)+(Re(y)?y:0),_=Number(a)+(Re(b)?b:0);if(!yt(N)||!yt(_))return null;var L;switch(h){case"start":L=gC("calc(".concat(o,")"));break;case"middle":L=gC("calc(".concat((g.length-1)/2," * -").concat(s," + (").concat(o," / 2))"));break;default:L=gC("calc(".concat(g.length-1," * -").concat(s,")"));break}var E=[],T=g[0];if(d&&T!=null){var P=T.width,$=p.width;E.push("scale(".concat(Re($)&&Re(P)?$/P:1,")"))}return w&&E.push("rotate(".concat(w,", ").concat(N,", ").concat(_,")")),E.length&&(k.transform=E.join(" ")),v.createElement("text",Z6({},ja(k),{ref:t,x:N,y:_,className:an("recharts-text",j),textAnchor:u,fill:l.includes("url")?VZ:l}),g.map((O,q)=>{var D=O.words.join(S?"":" ");return v.createElement("tspan",{x:N,dy:q===0?L:s,key:"".concat(D,"-").concat(q)},D)}))});C4.displayName="Text";var BIe=["labelRef"],qIe=["content"];function GB(e,t){if(e==null)return{};var n,r,a=FIe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function FIe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function WB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WB(Object(n),!0).forEach(function(r){zIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zIe(e,t,n){return(t=HIe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HIe(e){var t=UIe(e,"string");return typeof t=="symbol"?t:t+""}function UIe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uo.apply(null,arguments)}var GZ=v.createContext(null),VIe=e=>{var t=e.x,n=e.y,r=e.upperWidth,a=e.lowerWidth,s=e.width,o=e.height,l=e.children,d=v.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:a,width:s,height:o}),[t,n,r,a,s,o]);return v.createElement(GZ.Provider,{value:d},l)},WZ=()=>{var e=v.useContext(GZ),t=Zb();return e||(t?rA(t):void 0)},GIe=v.createContext(null),WIe=()=>{var e=v.useContext(GIe),t=Ve(RK);return e||t},YIe=e=>{var t=e.value,n=e.formatter,r=Dr(e.children)?t:e.children;return typeof n=="function"?n(r):r},S1=e=>e!=null&&typeof e=="function",KIe=(e,t)=>{var n=ya(t-e),r=Math.min(Math.abs(t-e),360);return n*r},XIe=(e,t,n,r,a)=>{var s=e.offset,o=e.className,l=a.cx,d=a.cy,u=a.innerRadius,h=a.outerRadius,p=a.startAngle,g=a.endAngle,y=a.clockWise,b=(u+h)/2,w=KIe(p,g),j=w>=0?1:-1,S,k;switch(t){case"insideStart":S=p+j*s,k=y;break;case"insideEnd":S=g-j*s,k=!y;break;case"end":S=g+j*s,k=y;break;default:throw new Error("Unsupported position ".concat(t))}k=w<=0?k:!k;var N=Mr(l,d,b,S),_=Mr(l,d,b,S+(k?1:-1)*359),L="M".concat(N.x,",").concat(N.y,` 2803 A`).concat(b,",").concat(b,",0,1,").concat(k?0:1,`, 2804 `).concat(_.x,",").concat(_.y),E=Dr(e.id)?Sm("recharts-radial-line-"):e.id;return v.createElement("text",uo({},r,{dominantBaseline:"central",className:an("recharts-radial-bar-label",o)}),v.createElement("defs",null,v.createElement("path",{id:E,d:L})),v.createElement("textPath",{xlinkHref:"#".concat(E)},n))},ZIe=(e,t,n)=>{var r=e.cx,a=e.cy,s=e.innerRadius,o=e.outerRadius,l=e.startAngle,d=e.endAngle,u=(l+d)/2;if(n==="outside"){var h=Mr(r,a,o+t,u),p=h.x,g=h.y;return{x:p,y:g,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"end"};var y=(s+o)/2,b=Mr(r,a,y,u),w=b.x,j=b.y;return{x:w,y:j,textAnchor:"middle",verticalAnchor:"middle"}},$d=e=>e!=null&&"cx"in e&&Re(e.cx),QIe={angle:0,offset:5,zIndex:ii.label,position:"middle",textBreakAll:!1};function JIe(e){if(!$d(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,a=r*2;return{x:t-r,y:n-r,width:a,upperWidth:a,lowerWidth:a,height:a}}function bl(e){var t,n,r=Ea(e,QIe),a=r.viewBox,s=r.parentViewBox,o=r.position,l=r.value,d=r.children,u=r.content,h=r.className,p=h===void 0?"":h,g=r.textBreakAll,y=r.labelRef,b=WIe(),w=WZ(),j=o==="center"?w:b??w,S,k,N;a==null?S=j:$d(a)?S=a:S=rA(a);var _=JIe(S);
2804if(!S||Dr(l)&&Dr(d)&&!v.isValidElement(u)&&typeof u!="function")return null;var L=$d(S)&&(o==="insideStart"||o==="insideEnd"||o==="end");if($d(S))L||(N=ZIe(S,r.offset,r.position));else if(_){var E=l4e({viewBox:_,position:o,offset:r.offset,parentViewBox:$d(s)?void 0:s});N=Dc(Dc({x:E.x,y:E.y,textAnchor:E.horizontalAnchor,verticalAnchor:E.verticalAnchor},E.width!==void 0?{width:E.width}:{}),E.height!==void 0?{height:E.height}:{})}var T=Dc(Dc(Dc(Dc({},((t=N)===null||t===void 0?void 0:t.x)!==void 0?{x:N.x}:{}),((n=N)===null||n===void 0?void 0:n.y)!==void 0?{y:N.y}:{}),r),{},{viewBox:S});if(v.isValidElement(u)){T.labelRef;var P=GB(T,BIe);return v.cloneElement(u,P)}if(typeof u=="function"){T.content;var $=GB(T,qIe);if(k=v.createElement(u,$),v.isValidElement(k))return k}else k=YIe(r);var O=ja(r);return L&&$d(S)?XIe(r,o,k,O,S):N==null?null:v.createElement(zo,{zIndex:r.zIndex},v.createElement(C4,uo({ref:y,className:an("recharts-label",p)},O,N,{textAnchor:zZ(O.textAnchor)?O.textAnchor:N.textAnchor,breakAll:g}),k))}bl.displayName="Label";var e$e=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?v.createElement(bl,uo({key:"label-implicit"},r)):_s(e)?v.createElement(bl,uo({key:"label-implicit",value:e},r)):v.isValidElement(e)?e.type===bl?v.cloneElement(e,Dc({key:"label-implicit"},r)):v.createElement(bl,uo({key:"label-implicit",content:e},r)):S1(e)?v.createElement(bl,uo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?v.createElement(bl,uo({},e,{key:"label-implicit"},r)):null};function t$e(e){var t=e.label,n=e.labelRef,r=WZ();return e$e(t,r,n)||null}var n$e=["valueAccessor"],r$e=["dataKey","clockWise","id","textBreakAll","zIndex"];function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(null,arguments)}function YB(e,t){if(e==null)return{};var n,r,a=i$e(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function i$e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var a$e=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(DIe(t))return t},YZ=v.createContext(void 0),s$e=YZ.Provider,KZ=v.createContext(void 0);KZ.Provider;function o$e(){return v.useContext(YZ)}function l$e(){return v.useContext(KZ)}function hy(e){var t=e.valueAccessor,n=t===void 0?a$e:t,r=YB(e,n$e),a=r.dataKey;r.clockWise;var s=r.id,o=r.textBreakAll,l=r.zIndex,d=YB(r,r$e),u=o$e(),h=l$e(),p=u||h;return!p||!p.length?null:v.createElement(zo,{zIndex:l??ii.label},v.createElement(Sa,{className:"recharts-label-list"},p.map((g,y)=>{var b,w=Dr(a)?n(g,y):ir(g.payload,a),j=Dr(s)?{}:{id:"".concat(s,"-").concat(y)};return v.createElement(bl,Dx({key:"label-".concat(y)},ja(g),d,j,{fill:(b=r.fill)!==null&&b!==void 0?b:g.fill,parentViewBox:g.parentViewBox,value:w,textBreakAll:o,viewBox:g.viewBox,index:y,zIndex:0}))})))}hy.displayName="LabelList";function c$e(e){var t=e.label;return t?t===!0?v.createElement(hy,{key:"labelList-implicit"}):v.isValidElement(t)||S1(t)?v.createElement(hy,{key:"labelList-implicit",content:t}):typeof t=="object"?v.createElement(hy,Dx({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Q6(){return Q6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q6.apply(null,arguments)}var XZ=e=>{var t=e.cx,n=e.cy,r=e.r,a=e.className,s=an("recharts-dot",a);return Re(t)&&Re(n)&&Re(r)?v.createElement("circle",Q6({},Ga(e),aA(e),{className:s,cx:t,cy:n,r})):null},u$e={radiusAxis:{},angleAxis:{}},ZZ=Kr({name:"polarAxis",initialState:u$e,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Et(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Et(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}
2804),C1=ZZ.actions;C1.addRadiusAxis;C1.removeRadiusAxis;C1.addAngleAxis;C1.removeAngleAxis;var d$e=ZZ.reducer;function f$e(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var vC={exports:{}},Ft={};/** @license React v17.0.2 2805 * react-is.production.min.js 2806 * 2807 * Copyright (c) Facebook, Inc. and its affiliates. 2808 * 2809 * This source code is licensed under the MIT license found in the 2810 * LICENSE file in the root directory of this source tree. 2811 */var KB;function h$e(){if(KB)return Ft;KB=1;var e=60103,t=60106,n=60107,r=60108,a=60114,s=60109,o=60110,l=60112,d=60113,u=60120,h=60115,p=60116,g=60121,y=60122,b=60117,w=60129,j=60131;if(typeof Symbol=="function"&&Symbol.for){var S=Symbol.for;e=S("react.element"),t=S("react.portal"),n=S("react.fragment"),r=S("react.strict_mode"),a=S("react.profiler"),s=S("react.provider"),o=S("react.context"),l=S("react.forward_ref"),d=S("react.suspense"),u=S("react.suspense_list"),h=S("react.memo"),p=S("react.lazy"),g=S("react.block"),y=S("react.server.block"),b=S("react.fundamental"),w=S("react.debug_trace_mode"),j=S("react.legacy_hidden")}function k(z){if(typeof z=="object"&&z!==null){var V=z.$$typeof;switch(V){case e:switch(z=z.type,z){case n:case a:case r:case d:case u:return z;default:switch(z=z&&z.$$typeof,z){case o:case l:case p:case h:case s:return z;default:return V}}case t:return V}}}
2811var N=s,_=e,L=l,E=n,T=p,P=h,$=t,O=a,q=r,D=d;return Ft.ContextConsumer=o,Ft.ContextProvider=N,Ft.Element=_,Ft.ForwardRef=L,Ft.Fragment=E,Ft.Lazy=T,Ft.Memo=P,Ft.Portal=$,Ft.Profiler=O,Ft.StrictMode=q,Ft.Suspense=D,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(z){return k(z)===o},Ft.isContextProvider=function(z){return k(z)===s},Ft.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===e},Ft.isForwardRef=function(z){return k(z)===l},Ft.isFragment=function(z){return k(z)===n},Ft.isLazy=function(z){return k(z)===p},Ft.isMemo=function(z){return k(z)===h},Ft.isPortal=function(z){return k(z)===t},Ft.isProfiler=function(z){return k(z)===a},Ft.isStrictMode=function(z){return k(z)===r},Ft.isSuspense=function(z){return k(z)===d},Ft.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===n||z===a||z===w||z===r||z===d||z===u||z===j||typeof z=="object"&&z!==null&&(z.$$typeof===p||z.$$typeof===h||z.$$typeof===s||z.$$typeof===o||z.$$typeof===l||z.$$typeof===b||z.$$typeof===g||z[0]===y)},Ft.typeOf=k,Ft}var XB;function p$e(){return XB||(XB=1,vC.exports=h$e()),vC.exports}p$e();var QZ=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function ZB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZB(Object(n),!0).forEach(function(r){m$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m$e(e,t,n){return(t=g$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g$e(e){var t=v$e(e,"string");return typeof t=="symbol"?t:t+""}function v$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JZ(e,t){return QB(QB({},t),e)}function y$e(e){return v.isValidElement(e)?e.props:e}function x$e(e,t){return v.cloneElement(e,JZ(y$e(e),t))}function b$e(e){if("index"in e){var t=e.index;return typeof t=="number"||typeof t=="string"?t:void 0}}function w$e(e){return"isActive"in e&&e.isActive===!0}function j$e(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,a=e.activeClassName,s=a===void 0?"recharts-active-shape":a,o=e.inActiveClassName,l=o===void 0?"recharts-shape":o,d=b$e(r),u;return v.isValidElement(t)?u=x$e(t,r):t===n?u=v.createElement(n,r):typeof t=="function"?u=t(r,d):typeof t=="object"?u=v.createElement(n,JZ(t,r)):u=v.createElement(n,r),w$e(r)?v.createElement(Sa,{className:s},u):v.createElement(Sa,{className:l},u)}function S$e(e){var t=e.tooltipEntrySettings,n=In(),r=_i(),a=v.useRef(null);return v.useLayoutEffect(()=>{r||(a.current===null?n(P9e(t)):a.current!==t&&n(R9e({prev:a.current,next:t})),a.current=t)},[t,n,r]),v.useLayoutEffect(()=>()=>{a.current&&(n(I9e(a.current)),a.current=null)},[n]),null}function C$e(e){var t=e.legendPayload,n=In(),r=_i(),a=v.useRef(null);return v.useLayoutEffect(()=>{r||(a.current===null?n(aLe(t)):a.current!==t&&n(sLe({prev:a.current,next:t})),a.current=t)},[n,r,t]),v.useLayoutEffect(()=>()=>{a.current&&(n(oLe(a.current)),a.current=null)},[n]),null}function k$e(e,t){return _$e(e)||E$e(e,t)||A$e(e,t)||N$e()}function N$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2812In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$e(e,t){if(e){if(typeof e=="string")return JB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JB(e,t):void 0}}function JB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}
2812finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _$e(e){if(Array.isArray(e))return e}var k4="index",T$e="append";function N4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var a of n)r.push({status:"removed",prev:a});for(var s=0;s<t.length;s++){var o=e[s],l=t[s];o!=null?r.push({status:"matched",prev:o,next:l}):r.push({status:"added",next:l})}return r}function L$e(e,t){var n=e.length/t.length,r=t.map((a,s)=>e[Math.floor(s*n)]);return N4(r,t)}function O$e(e,t){var n=t.map((r,a)=>e[a]);return N4(n,t)}function M$e(e,t){for(var n=new Map,r=0;r<e.length;r++){var a=e[r];if(a!=null){var s=t(a,r);s!=null&&!n.has(s)&&n.set(s,a)}}return n}function D$e(e,t,n){var r=M$e(e,n),a=new Set,s=t.map((p,g)=>{var y=n(p,g);if(y!=null){var b=r.get(y);if(b!==void 0)return a.add(y),b}}),o=[];for(var l of r){var d=k$e(l,2),u=d[0],h=d[1];a.has(u)||o.push(h)}return N4(s,t,o)}function J6(e,t,n){return t==null?null:e==null?t.map(r=>({status:"added",next:r})):n===k4?L$e(e,t):n===T$e?O$e(e,t):D$e(e,t,n)}function eQ(e,t){var n=v.useRef(e),r=v.useRef(t.current),a=v.useRef(!0);n.current!==e&&(n.current=e,r.current=t.current,a.current=!1);var s=v.useCallback(function(o,l){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(l===0){a.current=!0;return}l===1&&(r.current=o),l>0&&a.current&&d&&(t.current=o)},[t]);return{startValue:r.current,syncStepValue:s}}function P$e(e,t){return B$e(e)||$$e(e,t)||I$e(e,t)||R$e()}function R$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2813In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I$e(e,t){if(e){if(typeof e=="string")return eq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eq(e,t):void 0}}function eq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function B$e(e){if(Array.isArray(e))return e}function q$e(e,t){var n=v.useState(!1),r=P$e(n,2),a=r[0],s=r[1],o=v.useCallback(()=>{typeof e=="function"&&e(),s(!0)},[e]),l=v.useCallback(()=>{typeof t=="function"&&t(),s(!1)},[t]);return{isAnimating:a,handleAnimationStart:o,handleAnimationEnd:l}}function F$e(e){var t,n=e.animationInput,r=e.animationIdPrefix,a=e.items,s=e.previousItemsRef,o=e.isAnimationActive,l=e.animationBegin,d=e.animationDuration,u=e.animationEasing,h=e.onAnimationStart,p=e.onAnimationEnd,g=e.animationInterpolateFn,y=e.animationMatchBy,b=e.shouldUpdatePreviousRef,w=e.children,j=e.layout,S=mK(n,r),k=eQ(S,s),N=(t=k.startValue)!==null&&t!==void 0?t:null,_=J6(N,a,y??k4);return v.createElement(pK,{animationId:S,begin:l,duration:d,isActive:o,easing:u,onAnimationEnd:p,onAnimationStart:h,key:S},L=>{var E=N==null,T=a==null?a:g(_,L,j),P=b?b(L):L>0;return k.syncStepValue(T,L,P),T==null?null:w(T,L,E)})}var yC;function z$e(e,t){return G$e(e)||V$e(e,t)||U$e(e,t)||H$e()}function H$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2814In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U$e(e,t){if(e){if(typeof e=="string")return tq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tq(e,t):void 0}}function tq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}
2814finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function G$e(e){if(Array.isArray(e))return e}var W$e=()=>{var e=v.useState(()=>Sm("uid-")),t=z$e(e,1),n=t[0];return n},tQ=(yC=MF.useId)!==null&&yC!==void 0?yC:W$e;function Y$e(e,t){var n=tQ();return t||(e?"".concat(e,"-").concat(n):n)}var K$e=v.createContext(void 0),X$e=e=>{var t=e.id,n=e.type,r=e.children,a=Y$e("recharts-".concat(n),t);return v.createElement(K$e.Provider,{value:a},r(a))},Z$e={cartesianItems:[],polarItems:[]},nQ=Kr({name:"graphicalItems",initialState:Z$e,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Et(t.payload))},prepare:tn()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=xa(e).cartesianItems.indexOf(Et(r));s>-1&&(e.cartesianItems[s]=Et(a))},prepare:tn()},removeCartesianGraphicalItem:{reducer(e,t){var n=xa(e).cartesianItems.indexOf(Et(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:tn()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Et(t.payload))},prepare:tn()},removePolarGraphicalItem:{reducer(e,t){var n=xa(e).polarItems.indexOf(Et(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:tn()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next,s=xa(e).polarItems.indexOf(Et(r));s>-1&&(e.polarItems[s]=Et(a))},prepare:tn()}}}),Uf=nQ.actions,Q$e=Uf.addCartesianGraphicalItem,J$e=Uf.replaceCartesianGraphicalItem,eBe=Uf.removeCartesianGraphicalItem;Uf.addPolarGraphicalItem;Uf.removePolarGraphicalItem;Uf.replacePolarGraphicalItem;var tBe=nQ.reducer,nBe=e=>{var t=In(),n=v.useRef(null);return v.useLayoutEffect(()=>{n.current===null?t(Q$e(e)):n.current!==e&&t(J$e({prev:n.current,next:e})),n.current=e},[t,e]),v.useLayoutEffect(()=>()=>{n.current&&(t(eBe(n.current)),n.current=null)},[t]),null},rBe=v.memo(nBe),iBe=["points"];function nq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nq(Object(n),!0).forEach(function(r){aBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aBe(e,t,n){return(t=sBe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sBe(e){var t=oBe(e,"string");return typeof t=="symbol"?t:t+""}function oBe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Px.apply(null,arguments)}function lBe(e,t){if(e==null)return{};var n,r,a=cBe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function cBe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function uBe(e){var t=e.option,n=e.dotProps,r=e.className;if(v.isValidElement(t))return v.cloneElement(t,n);if(typeof t=="function")return t(n);var a=an(r,typeof t!="boolean"?t.className:""),s=n??{};s.points;var o=lBe(s,iBe);return v.createElement(XZ,Px({},o,{className:a}))}function dBe(e,t){return e==null?!1:t?!0:e.length===1}function fBe(e){var t=e.points,n=e.dot,r=e.className,a=e.dotClassName,s=e.dataKey,o=e.baseProps,l=e.needClip,d=e.clipPathId,u=e.zIndex,h=u===void 0?ii.scatter:u;if(!dBe(t,n))return null;var p=QZ(n),g=YAe(n),y=t.map((w,j)=>{var S,k,N=xC(xC(xC({r:3},o),g),{},{index:j,cx:(S=w.x)!==null&&S!==void 0?S:void 0,cy:(k=w.y)!==null&&k!==void 0?k:void 0,dataKey:s,value:w.value,payload:w.payload,points:t});return v.createElement(uBe,{key:"dot-".concat(j),option:n,dotProps:N,className:a})}),b={};return l&&d!=null&&(b.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(d,")")),v.createElement(zo,{zIndex:h},v.createElement(Sa,Px({className:r},b),y))}function rq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function T0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2814t%2?rq(Object(n),!0).forEach(function(r){hBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hBe(e,t,n){return(t=pBe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pBe(e){var t=mBe(e,"string");return typeof t=="symbol"?t:t+""}function mBe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rQ=0,gBe={xAxis:{},yAxis:{},zAxis:{}},iQ=Kr({name:"cartesianAxis",initialState:gBe,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Et(t.payload)},prepare:tn()},replaceXAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.xAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.xAxis[r.id],e.xAxis[a.id]=Et(a))},prepare:tn()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:tn()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Et(t.payload)},prepare:tn()},replaceYAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.yAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.yAxis[r.id],e.yAxis[a.id]=Et(a))},prepare:tn()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:tn()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Et(t.payload)},prepare:tn()},replaceZAxis:{reducer(e,t){var n=t.payload,r=n.prev,a=n.next;e.zAxis[r.id]!==void 0&&(r.id!==a.id&&delete e.zAxis[r.id],e.zAxis[a.id]=Et(a))},prepare:tn()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:tn()},updateYAxisWidth(e,t){var n=t.payload,r=n.id,a=n.width,s=e.yAxis[r];if(s){var o,l=s.widthHistory||[];if(l.length===3&&l[0]===l[2]&&a===l[1]&&a!==s.width&&Math.abs(a-((o=l[0])!==null&&o!==void 0?o:0))<=1)return;var d=[...l,a].slice(-3);e.yAxis[r]=T0(T0({},s),{},{width:a,widthHistory:d})}},updateXAxisHeight(e,t){var n=t.payload,r=n.id,a=n.height,s=e.xAxis[r];if(s){var o,l=s.heightHistory||[];if(l.length===3&&l[0]===l[2]&&a===l[1]&&a!==s.height&&Math.abs(a-((o=l[0])!==null&&o!==void 0?o:0))<=1)return;var d=[...l,a].slice(-3);e.xAxis[r]=T0(T0({},s),{},{height:a,heightHistory:d})}}}}),ns=iQ.actions,vBe=ns.addXAxis,yBe=ns.replaceXAxis,xBe=ns.removeXAxis,bBe=ns.addYAxis,wBe=ns.replaceYAxis,jBe=ns.removeYAxis;ns.addZAxis;ns.replaceZAxis;ns.removeZAxis;var SBe=ns.updateYAxisWidth,CBe=ns.updateXAxisHeight,kBe=iQ.reducer,NBe=ue([Pr],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),ABe=ue([NBe,Ro,Io],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),A4=()=>Ve(ABe),EBe=()=>Ve(P7e);function iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iq(Object(n),!0).forEach(function(r){_Be(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Be(e,t,n){return(t=TBe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TBe(e){var t=LBe(e,"string");return typeof t=="symbol"?t:t+""}function LBe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OBe=e=>{var t=e.point,n=e.childIndex,r=e.mainColor,a=e.activeDot,s=e.dataKey,o=e.clipPath;if(a===!1||t.x==null||t.y==null)return null;var l={index:n,dataKey:s,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},d=bC(bC(bC({},l),Mb(a)),aA(a)),u;return v.isValidElement(a)?u=v.cloneElement(a,d):typeof a=="function"?u=a(d):u=v.createElement(XZ,d),v.createElement(Sa,{className:"recharts-active-dot",clipPath:o},u)};function aq(e){var t=e.points,n=e.mainColor,r=e.activeDot,a=e.itemDataKey,s=e.clipPath,o=e.zIndex,l=o===void 0?ii.activeDot:o,d=Ve(Im),u=EBe();if(t==null||u==null)return null;var h=t.find(p=>u.includes(p.payload));return Dr(h)?null:v.createElement(zo,{zIndex:l},v.createElement(OBe,{point:h,childIndex:Number(d),mainColor:n,dataKey:a,activeDot:r,clipPath:s}))}var MBe=e=>{var t=e.chartData,n=In(),r=_i();return v.useEffect(()=>r?()=>{}:(n(AB(t)),()=>{n(AB(void 0))}),[t,n,r]),null},sq={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},aQ=Kr({name:"brush",initialState:sq,reducers:{setBrushSettings(e,t){return t.payload==null?sq:t.payload}}});aQ.actions.setBrushSettings;var DBe=aQ.reducer;function PBe(e){return(e%180+180)%180}
2814var RBe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=PBe(a),o=s*Math.PI/180,l=Math.atan(r/n),d=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(d)},IBe={dots:[],areas:[],lines:[]},sQ=Kr({name:"referenceElements",initialState:IBe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=xa(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=xa(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Et(t.payload))},removeLine:(e,t)=>{var n=xa(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),Vf=sQ.actions;Vf.addDot;Vf.removeDot;Vf.addArea;Vf.removeArea;Vf.addLine;Vf.removeLine;var $Be=sQ.reducer;function BBe(e,t){return HBe(e)||zBe(e,t)||FBe(e,t)||qBe()}function qBe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2815In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FBe(e,t){if(e){if(typeof e=="string")return oq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oq(e,t):void 0}}function oq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zBe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function HBe(e){if(Array.isArray(e))return e}var UBe=v.createContext(void 0),VBe=e=>{var t=e.children,n=v.useState("".concat(Sm("recharts"),"-clip")),r=BBe(n,1),a=r[0],s=A4();if(s==null)return null;var o=s.x,l=s.y,d=s.width,u=s.height;return v.createElement(UBe.Provider,{value:a},v.createElement("defs",null,v.createElement("clipPath",{id:a},v.createElement("rect",{x:o,y:l,height:u,width:d}))),t)};function GBe(){}function lq(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function WBe(e,t,n){return Ip(e,t,void 0,void 0,void 0,void 0,n)}function Ip(e,t,n,r,a,s,o){const l=o(e,t,n,r,a,s);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Kp(e,t,s,o)}return Kp(e,t,s,o)}function Kp(e,t,n,r){if(Object.is(e,t))return!0;let a=Cm(e),s=Cm(t);if(a==="[object Arguments]"&&(a=sy),s==="[object Arguments]"&&(s=sy),a!==s)return!1;switch(a){case sA:return e.toString()===t.toString();case oA:return Gp(e.valueOf(),t.valueOf());case lA:case qW:case BW:return Object.is(e.valueOf(),t.valueOf());case IW:return e.source===t.source&&e.flags===t.flags;case H4e:return e===t}n=n??new Map;const o=n.get(e),l=n.get(t);if(o!=null&&l!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(a){case FW:if(e.size!==t.size)return!1;for(const[d,u]of e.entries())if(!t.has(d)||!Ip(u,t.get(d),d,e,t,n,r))return!1;return!0;case zW:{if(e.size!==t.size)return!1;const d=Array.from(e.values()),u=Array.from(t.values());for(let h=0;h<d.length;h++){const p=d[h],g=u.findIndex(y=>Ip(p,y,void 0,e,t,n,r));if(g===-1)return!1;u.splice(g,1)}return!0}case HW:case GW:case WW:case YW:case KW:case V4e:case XW:case ZW:case QW:case G4e:case JW:case eY:if(g6(e)!==g6(t)||e.length!==t.length)return!1;for(let d=0;d<e.length;d++)if(!Ip(e[d],t[d],d,e,t,n,r))return!1;return!0;case UW:return e.byteLength!==t.byteLength?!1:Kp(new Uint8Array(e),new Uint8Array(t),n,r);case VW:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Kp(new Uint8Array(e),new Uint8Array(t),n,r);case U4e:return e.name===t.name&&e.message===t.message;case sy:{if(!(Kp(e.constructor,t.constructor,n,r)||lq(e)&&lq(t)))return!1;const d=[...Object.keys(e),...m6(e)],u=[...Object.keys(t),...m6(t)];if(d.length!==u.length)return!1;for(let h=0;h<d.length;h++){const p=d[h],g=e[p];if(!Object.hasOwn(t,p))return!1;const y=t[p];if(!Ip(g,y,p,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function YBe(e,t){return WBe(e,t,GBe)}function oQ(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var a=e[r];a!==void 0&&n.push(a)}return n}function KBe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return RBe(r,n)}function XBe(e,t,n){var r=n==="width",a=e.x,s=e.y,o=e.width,l=e.height;return t===1?{start:r?a:s,end:r?a+o:s+l}:{start:r?a+o:s+l,end:r?a:s}}function Bm(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-a)<=0}function ZBe(e,t){return oQ(e,t+1)}function QBe(e,t,n,r,a){for(var s=(r||[]).slice(),o=t.start,l=t.end,d=0,u=1,h=o,p=function(){var b=r?.[d];if(b===void 0)return{v:oQ(r,u)};var w=d,j,S=()=>(j===void 0&&(j=n(b,w)),j),k=b.coordinate,N=d===0||Bm(e,k,S,h,l);N||(d=0,h=o,u+=1),N&&(h=k+e*(S()/2+a),d+=u)},g;u<=s.length;)if(g=p(),g)return g.v;return[]}function JBe(e,t,n,r,a){var s=(r||[]).slice(),o=s.length;if(o===0)return[];for(var l=t.start,d=t.end,u=1;u<=o;u++){for(var h=(o-1)%u,p=l,g=!0,y=function(){var _=r[w];if(_==null)return 0;var L=w,E,T=()=>(E===void 0&&(E=n(_,L)),E),P=_.coordinate,$=w===h||Bm(e,P,T,p,d);if(!$)return g=!1,1;$&&(p=P+e*(T()/2+a))},b,w=h;w<o&&(b=y(),!(b!==0&&b===1));w+=u);if(g){for(var j=[],S=h;S<o;S+=u){var k=r[S];k!=null&&j.push(k)}return j}}return[]}function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2815t%2?cq(Object(n),!0).forEach(function(r){eqe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eqe(e,t,n){return(t=tqe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tqe(e){var t=nqe(e,"string");return typeof t=="symbol"?t:t+""}function nqe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rqe(e,t,n,r,a){for(var s=(r||[]).slice(),o=s.length,l=t.start,d=t.end,u=function(g){var y=s[g];if(y==null)return 1;var b=y,w,j=()=>(w===void 0&&(w=n(y,g)),w);if(g===o-1){var S=e*(b.coordinate+e*j()/2-d);s[g]=b=Fr(Fr({},b),{},{tickCoord:S>0?b.coordinate-S*e:b.coordinate})}else s[g]=b=Fr(Fr({},b),{},{tickCoord:b.coordinate});if(b.tickCoord!=null){var k=Bm(e,b.tickCoord,j,l,d);k&&(d=b.tickCoord-e*(j()/2+a),s[g]=Fr(Fr({},b),{},{isShow:!0}))}},h=o-1;h>=0;h--)u(h);return s}function iqe(e,t,n,r,a,s){var o=(r||[]).slice(),l=o.length,d=t.start,u=t.end;if(s){var h=r[l-1];if(h!=null){var p=n(h,l-1),g=e*(h.coordinate+e*p/2-u);if(o[l-1]=h=Fr(Fr({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate}),h.tickCoord!=null){var y=Bm(e,h.tickCoord,()=>p,d,u);y&&(u=h.tickCoord-e*(p/2+a),o[l-1]=Fr(Fr({},h),{},{isShow:!0}))}}}for(var b=s?l-1:l,w=function(k){var N=o[k];if(N==null)return 1;var _=N,L,E=()=>(L===void 0&&(L=n(N,k)),L);if(k===0){var T=e*(_.coordinate-e*E()/2-d);o[k]=_=Fr(Fr({},_),{},{tickCoord:T<0?_.coordinate-T*e:_.coordinate})}else o[k]=_=Fr(Fr({},_),{},{tickCoord:_.coordinate});if(_.tickCoord!=null){var P=Bm(e,_.tickCoord,E,d,u);P&&(d=_.tickCoord+e*(E()/2+a),o[k]=Fr(Fr({},_),{},{isShow:!0}))}},j=0;j<b;j++)w(j);return o}function E4(e,t,n){var r=e.tick,a=e.ticks,s=e.viewBox,o=e.minTickGap,l=e.orientation,d=e.interval,u=e.tickFormatter,h=e.unit,p=e.angle;if(!a||!a.length||!r)return[];if(Re(d)||xg.isSsr){var g;return(g=ZBe(a,Re(d)?d:0))!==null&&g!==void 0?g:[]}var y=[],b=l==="top"||l==="bottom"?"width":"height",w=h&&b==="width"?Yp(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},j=(L,E)=>{var T=typeof u=="function"?u(L.value,E):L.value;return b==="width"?KBe(Yp(T,{fontSize:t,letterSpacing:n}),w,p):Yp(T,{fontSize:t,letterSpacing:n})[b]},S=a[0],k=a[1],N=a.length>=2&&S!=null&&k!=null?ya(k.coordinate-S.coordinate):1,_=XBe(s,N,b);return d==="equidistantPreserveStart"?QBe(N,_,j,a,o):d==="equidistantPreserveEnd"?JBe(N,_,j,a,o):(d==="preserveStart"||d==="preserveStartEnd"?y=iqe(N,_,j,a,o,d==="preserveStartEnd"):y=rqe(N,_,j,a,o),y.filter(L=>L.isShow))}var aqe=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,a=r,s=e.tickSize,o=s===void 0?0:s,l=e.tickMargin,d=l===void 0?0:l,u=0;if(t){Array.from(t).forEach(y=>{if(y){var b=y.getBoundingClientRect();b.width>u&&(u=b.width)}});var h=n?n.getBoundingClientRect().width:0,p=o+d,g=u+p+h+(n?a:0);return Math.round(g)}return 0},sqe=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,a=r,s=e.tickSize,o=s===void 0?0:s,l=e.tickMargin,d=l===void 0?0:l,u=0;if(t){Array.from(t).forEach(y=>{if(y){var b=y.getBoundingClientRect();b.height>u&&(u=b.height)}});var h=n?n.getBoundingClientRect().height:0,p=o+d,g=u+p+h+(n?a:0);return Math.round(g)}return 0},oqe={xAxis:{},yAxis:{}},lQ=Kr({name:"renderedTicks",initialState:oqe,reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,a=n.axisId,s=n.ticks;e[r][a]=Et(s)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,a=n.axisId;delete e[r][a]}}}),cQ=lQ.actions,lqe=cQ.setRenderedTicks,cqe=cQ.removeRenderedTicks,uqe=lQ.reducer,dqe=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function uq(e,t){return mqe(e)||pqe(e,t)||hqe(e,t)||fqe()}function fqe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2816In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hqe(e,t){if(e){if(typeof e=="string")return dq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dq(e,t):void 0}}function dq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}
2816finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function mqe(e){if(Array.isArray(e))return e}function gqe(e,t){if(e==null)return{};var n,r,a=vqe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vqe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vu.apply(null,arguments)}function fq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fq(Object(n),!0).forEach(function(r){yqe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yqe(e,t,n){return(t=xqe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xqe(e){var t=bqe(e,"string");return typeof t=="symbol"?t:t+""}function bqe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wo={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:ii.axis};function wqe(e){var t=e.x,n=e.y,r=e.width,a=e.height,s=e.orientation,o=e.mirror,l=e.axisLine,d=e.otherSvgProps;if(!l)return null;var u=jn(jn(jn({},d),Ga(l)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!o||s==="bottom"&&o);u=jn(jn({},u),{},{x1:t,y1:n+h*a,x2:t+r,y2:n+h*a})}else{var p=+(s==="left"&&!o||s==="right"&&o);u=jn(jn({},u),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return v.createElement("line",vu({},u,{className:an("recharts-cartesian-axis-line",ku(l,"className"))}))}function jqe(e,t,n,r,a,s,o,l,d){var u,h,p,g,y,b,w=l?-1:1,j=e.tickSize||o,S=Re(e.tickCoord)?e.tickCoord:e.coordinate;switch(s){case"top":u=h=e.coordinate,g=n+ +!l*a,p=g-w*j,b=p-w*d,y=S;break;case"left":p=g=e.coordinate,h=t+ +!l*r,u=h-w*j,y=u-w*d,b=S;break;case"right":p=g=e.coordinate,h=t+ +l*r,u=h+w*j,y=u+w*d,b=S;break;default:u=h=e.coordinate,g=n+ +l*a,p=g+w*j,b=p+w*d,y=S;break}return{line:{x1:u,y1:p,x2:h,y2:g},tick:{x:y,y:b}}}function Sqe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Cqe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function kqe(e){var t=e.option,n=e.tickProps,r=e.value,a,s=an(n.className,"recharts-cartesian-axis-tick-value");if(v.isValidElement(t))a=v.cloneElement(t,jn(jn({},n),{},{className:s}));else if(typeof t=="function")a=t(jn(jn({},n),{},{className:s}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=an(o,f$e(t))),a=v.createElement(C4,vu({},n,{className:o}),r)}return a}function Nqe(e){var t=e.ticks,n=e.axisType,r=e.axisId,a=In(),s=v.useRef(null);return v.useEffect(()=>{if(!(r==null||n==null)){var o=t.map(d=>({value:d.value,coordinate:d.coordinate,offset:d.offset,index:d.index})),l=s.current;l!=null&&l.axisId===r&&l.axisType===n&&YBe(l.ticks,o)||(s.current={ticks:o,axisId:r,axisType:n},a(lqe({ticks:o,axisId:r,axisType:n})))}},[a,t,r,n]),v.useEffect(()=>r==null||n==null?Df:()=>{a(cqe({axisId:r,axisType:n}))},[a,r,n]),null}var Aqe=v.forwardRef((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,a=e.tick,s=e.tickLine,o=e.stroke,l=e.tickFormatter,d=e.unit,u=e.padding,h=e.tickTextProps,p=e.orientation,g=e.mirror,y=e.x,b=e.y,w=e.width,j=e.he
2816ight,S=e.tickSize,k=e.tickMargin,N=e.fontSize,_=e.letterSpacing,L=e.getTicksConfig,E=e.events,T=e.axisType,P=e.axisId,$=E4(jn(jn({},L),{},{ticks:r}),N,_),O=Ga(L),q=Mb(a),D=zZ(O.textAnchor)?O.textAnchor:Sqe(p,g),z=Cqe(p,g),V={};typeof s=="object"&&(V=s);var W=jn(jn({},O),{},{fill:"none"},V),B=$.map(K=>jn({entry:K},jqe(K,y,b,w,j,p,S,g,k))),H=B.map(K=>{var M=K.entry,I=K.line;return v.createElement(Sa,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},s&&v.createElement("line",vu({},W,I,{className:an("recharts-cartesian-axis-tick-line",ku(s,"className"))})))}),G=B.map((K,M)=>{var I,X,F=K.entry,U=K.tick,Z=jn(jn(jn(jn({verticalAnchor:z},O),{},{textAnchor:D,stroke:"none",fill:o},U),{},{index:M,payload:F,visibleTicksCount:$.length,tickFormatter:l,padding:u},h),{},{angle:(I=(X=h?.angle)!==null&&X!==void 0?X:O.angle)!==null&&I!==void 0?I:0}),ee=jn(jn({},Z),q);return v.createElement(Sa,vu({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(F.value,"-").concat(F.coordinate,"-").concat(F.tickCoord)},D4e(E,F,M)),a&&v.createElement(kqe,{option:a,tickProps:ee,value:"".concat(typeof l=="function"?l(F.value,M):F.value).concat(d||"")}))});return v.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(T,"-ticks")},v.createElement(Nqe,{ticks:$,axisId:P,axisType:T}),G.length>0&&v.createElement(zo,{zIndex:ii.label},v.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(T,"-tick-labels"),ref:t},G)),H.length>0&&v.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(T,"-tick-lines")},H))}),Eqe=v.forwardRef((e,t)=>{var n=e.axisLine,r=e.width,a=e.height,s=e.className,o=e.hide,l=e.ticks,d=e.axisType,u=e.axisId,h=gqe(e,dqe),p=v.useState(""),g=uq(p,2),y=g[0],b=g[1],w=v.useState(""),j=uq(w,2),S=j[0],k=j[1],N=v.useRef(null);v.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var L;return aqe({ticks:N.current,label:(L=e.labelRef)===null||L===void 0?void 0:L.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})},getCalculatedHeight:()=>{var L;return sqe({ticks:N.current,label:(L=e.labelRef)===null||L===void 0?void 0:L.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var _=v.useCallback(L=>{if(L){var E=L.getElementsByClassName("recharts-cartesian-axis-tick-value");N.current=E;var T=E[0];if(T){var P=window.getComputedStyle(T),$=P.fontSize,O=P.letterSpacing;($!==y||O!==S)&&(b($),k(O))}}},[y,S]);return o||r!=null&&r<=0||a!=null&&a<=0?null:v.createElement(zo,{zIndex:e.zIndex},v.createElement(Sa,{className:an("recharts-cartesian-axis",s)},v.createElement(wqe,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Ga(e)}),v.createElement(Aqe,{ref:_,axisType:d,events:h,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:S,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:u}),v.createElement(VIe,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},v.createElement(t$e,{label:e.label,labelRef:e.labelRef}),e.children)))}),_4=v.forwardRef((e,t)=>{var n=Ea(e,wo);return v.createElement(Eqe,vu({},n,{ref:t}))});_4.displayName="CartesianAxis";var _qe={grid:{stroke:"#ccc",fill:"none"}},uQ=v.createContext(_qe);uQ.Provider;var Tqe=()=>v.useContext(uQ),Lqe=["x1","y1","x2","y2","key"],Oqe=["offset"],Mqe=["xAxisId","yAxisId"],Dqe=["xAxisId","yAxisId"];function hq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hq(Object(n),!0).forEach(function(r){Pqe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hq(Object(n)).forEac
2816h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pqe(e,t,n){return(t=Rqe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rqe(e){var t=Iqe(e,"string");return typeof t=="symbol"?t:t+""}function Iqe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(null,arguments)}function Rx(e,t){if(e==null)return{};var n,r,a=$qe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function $qe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bqe=e=>{var t=e.fill;if(!t||t==="none")return null;var n=e.fillOpacity,r=e.x,a=e.y,s=e.width,o=e.height,l=e.ry;return v.createElement("rect",{x:r,y:a,ry:l,width:s,height:o,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function dQ(e){var t=e.option,n=e.lineItemProps,r;if(v.isValidElement(t))r=v.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var a,s=n.x1,o=n.y1,l=n.x2,d=n.y2,u=n.key,h=Rx(n,Lqe),p=(a=Ga(h))!==null&&a!==void 0?a:{};p.offset;var g=Rx(p,Oqe),y=Array.isArray(g.strokeDasharray)?g.strokeDasharray.join(","):g.strokeDasharray;r=v.createElement("line",Gc({},g,{strokeDasharray:y,x1:s,y1:o,x2:l,y2:d,fill:"none",key:u}))}return r}function qqe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,s=e.horizontalPoints;if(!a||!s||!s.length)return null;e.xAxisId,e.yAxisId;var o=Rx(e,Mqe),l=s.map((d,u)=>{var h=zr(zr({},o),{},{x1:t,y1:d,x2:t+n,y2:d,key:"line-".concat(u),index:u});return v.createElement(dQ,{key:"line-".concat(u),option:a,lineItemProps:h})});return v.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Fqe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,s=e.verticalPoints;if(!a||!s||!s.length)return null;e.xAxisId,e.yAxisId;var o=Rx(e,Dqe),l=s.map((d,u)=>{var h=zr(zr({},o),{},{x1:d,y1:t,x2:d,y2:t+n,key:"line-".concat(u),index:u});return v.createElement(dQ,{option:a,lineItemProps:h,key:"line-".concat(u)})});return v.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function zqe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,s=e.width,o=e.height,l=e.horizontalPoints,d=e.horizontal,u=d===void 0?!0:d;if(!u||!t||!t.length||l==null)return null;var h=l.map(g=>Math.round(g+a-a)).sort((g,y)=>g-y);a!==h[0]&&h.unshift(0);var p=h.map((g,y)=>{var b=h[y+1],w=b==null,j=w?a+o-g:b-g;if(j<=0)return null;var S=y%t.length;return v.createElement("rect",{key:"react-".concat(y),y:g,x:r,height:j,width:s,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Hqe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,s=e.x,o=e.y,l=e.width,d=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var h=u.map(g=>Math.round(g+s-s)).sort((g,y)=>g-y);s!==h[0]&&h.unshift(0);var p=h.map((g,y)=>{var b=h[y+1],w=b==null,j=w?s+l-g:b-g;if(j<=0)return null;var S=y%r.length;return v.createElement("rect",{key:"react-".concat(y),x:g,y:o,width:j,height:d,stroke:"none",fill:r[S],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Uqe=(e,t)=>{var n=e.xAxis,r=e.width,a=e.height,s=e.offset;return FY(E4(zr(zr(zr({},wo),n),{},{ticks:zY(n),viewBox:{x:0,y:0,width:r,height:a}})),s.left,s.left+s.width,t)},Vqe=(e,t)=>{var n=e.yAxis,r=e.width,a=e.height,s=e.offset;return FY(E4(zr(zr(zr({},wo),n),{}
2816,{ticks:zY(n),viewBox:{x:0,y:0,width:r,height:a}})),s.top,s.top+s.height,t)},Gqe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ii.grid};function fQ(e){var t,n,r,a,s,o,l=XY(),d=ZY(),u=KY(),h=zr(zr({},Ea(e,Gqe)),{},{x:Re(e.x)?e.x:u.left,y:Re(e.y)?e.y:u.top,width:Re(e.width)?e.width:u.width,height:Re(e.height)?e.height:u.height}),p=h.xAxisId,g=h.yAxisId,y=h.x,b=h.y,w=h.width,j=h.height,S=h.syncWithTicks,k=h.horizontalValues,N=h.verticalValues,_=_i(),L=Ve(H=>pB(H,"xAxis",p,_)),E=Ve(H=>pB(H,"yAxis",g,_)),T=Tqe(),P={stroke:(t=h.stroke)!==null&&t!==void 0?t:T.grid.stroke,strokeWidth:(n=h.strokeWidth)!==null&&n!==void 0?n:T.grid.strokeWidth,strokeOpacity:(r=h.strokeOpacity)!==null&&r!==void 0?r:T.grid.strokeOpacity,strokeDasharray:(a=h.strokeDasharray)!==null&&a!==void 0?a:T.grid.strokeDasharray};if(!Ts(w)||!Ts(j)||!Re(y)||!Re(b))return null;var $=h.verticalCoordinatesGenerator||Uqe,O=h.horizontalCoordinatesGenerator||Vqe,q=h.horizontalPoints,D=h.verticalPoints;if((!q||!q.length)&&typeof O=="function"){var z=k&&k.length,V=O({yAxis:E?zr(zr({},E),{},{ticks:z?k:E.ticks}):void 0,width:l??w,height:d??j,offset:u},z?!0:S);ax(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof V,"]")),Array.isArray(V)&&(q=V)}if((!D||!D.length)&&typeof $=="function"){var W=N&&N.length,B=$({xAxis:L?zr(zr({},L),{},{ticks:W?N:L.ticks}):void 0,width:l??w,height:d??j,offset:u},W?!0:S);ax(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof B,"]")),Array.isArray(B)&&(D=B)}return v.createElement(zo,{zIndex:h.zIndex},v.createElement("g",{className:"recharts-cartesian-grid"},v.createElement(Bqe,{fill:(s=h.fill)!==null&&s!==void 0?s:T.grid.fill,fillOpacity:(o=h.fillOpacity)!==null&&o!==void 0?o:T.grid.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),v.createElement(zqe,Gc({},h,{horizontalPoints:q})),v.createElement(Hqe,Gc({},h,{verticalPoints:D})),v.createElement(qqe,Gc({},h,P,{offset:u,horizontalPoints:q,xAxis:L,yAxis:E})),v.createElement(Fqe,Gc({},h,P,{offset:u,verticalPoints:D,xAxis:L,yAxis:E}))))}fQ.displayName="CartesianGrid";var Wqe={},hQ=Kr({name:"errorBars",initialState:Wqe,reducers:{addErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.errorBar;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.prev,s=n.next;e[r]&&(e[r]=e[r].map(o=>o.dataKey===a.dataKey&&o.direction===a.direction?s:o))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,a=n.errorBar;e[r]&&(e[r]=e[r].filter(s=>s.dataKey!==a.dataKey||s.direction!==a.direction))}}}),T4=hQ.actions;T4.addErrorBar;T4.replaceErrorBar;T4.removeErrorBar;var Yqe=hQ.reducer;function pQ(e,t){var n,r,a=Ve(u=>Bo(u,e)),s=Ve(u=>qo(u,t)),o=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Qn.allowDataOverflow,l=(r=s?.allowDataOverflow)!==null&&r!==void 0?r:Jn.allowDataOverflow,d=o||l;return{needClip:d,needClipX:o,needClipY:l}}function Kqe(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,a=A4(),s=pQ(t,n),o=s.needClipX,l=s.needClipY,d=s.needClip,u=Ve(N=>ZX(N,t,!1)),h=Ve(N=>QX(N,n,!1));if(!d||!a)return null;var p=a.x,g=a.y,y=a.width,b=a.height,w=o&&u?Math.min(u[0],u[1]):p-y/2,j=l&&h?Math.min(h[0],h[1]):g-b/2,S=o&&u?Math.abs(u[1]-u[0]):y*2,k=l&&h?Math.abs(h[1]-h[0]):b*2;return v.createElement("clipPath",{id:"clipPath-".concat(r)},v.createElement("rect",{x:w,y:j,width:S,height:k}))}function Xqe(e){var t=Mb(e),n=3,r=2;if(t!=null){var a=t.r,s=t.strokeWidth,o=Number(a),l=Number(s);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(l)||l<0)&&(l=r),{r:o,strokeWidth:l}}return{r:n,strokeWidth:r}}function L4(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:rQ}function O4(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:rQ}var mQ=(e,t,n)=>sZ(e,"xAxis",L4(e,t),n),gQ=(e,t,n)=>aZ(e,"xAxis",L4(e,t),n),vQ=(e,t,n)=>sZ(e,"yAxis",O4(e,t),n),yQ=(e,t,n)=>aZ(e,"yAxis",O4(e,t),n),Zqe=ue([dn,mQ,vQ,gQ,yQ],(e,t,n,r,a)=>Ds(e,"xAxis")?ix(t,r,!1):ix(n,a,!1)),Qqe=(e,t)=>
2816t,M4=ue([kX,Qqe],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),xQ=e=>{var t=dn(e),n=Ds(t,"xAxis");return n?"yAxis":"xAxis"},Jqe=(e,t)=>{var n=xQ(e);return n==="yAxis"?O4(e,t):L4(e,t)},bQ=(e,t,n)=>PX(e,xQ(e),Jqe(e,t),n),eFe=ue([M4,bQ],(e,t)=>{var n;if(!(e==null||t==null)){var r=e.stackId,a=MA(e);if(!(r==null||a==null)){var s=(n=t[r])===null||n===void 0?void 0:n.stackedData,o=s?.find(l=>l.key===a);if(o!=null)return o.map(l=>[l[0],l[1]])}}}),tFe=ue([M4,bQ],(e,t)=>{if(!(e==null||e.stackId==null||t==null)){var n=t[e.stackId];if(n!=null)return n.graphicalItems.map(r=>r.dataKey).filter(ri)}}),nFe=ue([dn,mQ,vQ,gQ,yQ,eFe,xMe,Zqe,M4,RMe,tFe],(e,t,n,r,a,s,o,l,d,u,h)=>{var p=o.chartData,g=o.dataStartIndex,y=o.dataEndIndex;if(!(d==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||a==null||r.length===0||a.length===0||l==null)){var b=d.data,w;if(b&&b.length>0?w=b:w=p?.slice(g,y+1),w!=null)return EFe({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:a,dataStartIndex:g,areaSettings:d,stackedData:s,displayedData:w,chartBaseValue:u,bandSize:l,stackDataKeys:h})}}),rFe=["animationElapsedTime","isAnimating","isEntrance","layout","isRange","stroke","connectNulls"],iFe=["id","baseLine"];function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xp.apply(null,arguments)}function pq(e,t){if(e==null)return{};var n,r,a=aFe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function aFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sFe(e){var t,n,r=e.alpha,a=e.baseLine,s=e.points,o=e.strokeWidth,l=(t=s[0])===null||t===void 0?void 0:t.x,d=(n=s[s.length-1])===null||n===void 0?void 0:n.x;if(!yt(l)||!yt(d))return null;var u=r*Math.abs(l-d),h=Math.max(...s.map(p=>p.y||0));return Re(a)?h=Math.max(a,h):a&&Array.isArray(a)&&a.length&&(h=Math.max(...a.map(p=>p.y||0),h)),Re(h)?v.createElement("rect",{x:l<d?l:l-u,y:0,width:u,height:Math.floor(h+(o?parseInt("".concat(o),10):1))}):null}function oFe(e){var t,n,r=e.alpha,a=e.baseLine,s=e.points,o=e.strokeWidth,l=(t=s[0])===null||t===void 0?void 0:t.y,d=(n=s[s.length-1])===null||n===void 0?void 0:n.y;if(!yt(l)||!yt(d))return null;var u=r*Math.abs(l-d),h=Math.max(...s.map(p=>p.x||0));return Re(a)?h=Math.max(a,h):a&&Array.isArray(a)&&a.length&&(h=Math.max(...a.map(p=>p.x||0),h)),Re(h)?v.createElement("rect",{x:0,y:l<d?l:l-u,width:h+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}function lFe(e){var t=e.alpha,n=e.layout,r=e.points,a=e.baseLine,s=e.strokeWidth;return n==="vertical"?v.createElement(oFe,{alpha:t,points:r,baseLine:a,strokeWidth:s}):v.createElement(sFe,{alpha:t,points:r,baseLine:a,strokeWidth:s})}function cFe(e){var t=e.animationElapsedTime,n=t===void 0?1:t,r=e.isAnimating,a=r===void 0?!1:r,s=e.isEntrance,o=s===void 0?!1:s,l=e.layout,d=e.isRange,u=e.stroke,h=e.connectNulls,p=pq(e,rFe),g=l==="vertical"?"vertical":"horizontal",y=h??!1,b=tQ(),w=p.id,j=p.baseLine,S=pq(p,iFe),k=Ga(S),N=v.createElement(fy,Xp({},p,{id:w,baseLine:j,connectNulls:y,stroke:"none",className:"recharts-area-area",layout:g})),_=u!=="none"&&v.createElement(fy,Xp({},k,{className:"recharts-area-curve",layout:g,type:p.type,connectNulls:y,fill:"none",stroke:u,points:p.points})),L=u!=="none"&&d&&Array.isArray(j)&&v.createElement(fy,Xp({},k,{className:"recharts-area-curve",layout:g,type:p.type,connectNulls:y,fill:"none",stroke:u,points:j}));if(o&&(a||n<1)){var E;return v.createElement(Sa,null,v.createElement("defs",null,v.createElement("clipPath",{id:b},v.createElement(lFe,{alpha:n,points:(E=p.points)!==null&&E!==void 0?E:[],baseLine:j,layout:g,strokeWidth:p.strokeWidth}))),v.createElement(Sa,{clipPath:"url(#".concat(b,")")},N,_,L))}return v.createElement(v.Fragment,null,N,_,L)}var uFe=["id"],dFe=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ix.apply(null,arguments)}function wQ(e,t){if(e==null)return{};var n,r,a=fFe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
2816t%2?mq(Object(n),!0).forEach(function(r){hFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hFe(e,t,n){return(t=pFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pFe(e){var t=mFe(e,"string");return typeof t=="symbol"?t:t+""}function mFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gFe=(e,t)=>e==null?[]:t===1?e.flatMap(n=>n.status==="removed"?[]:[n.next]):e.flatMap(n=>n.status==="matched"?[vf(vf({},n.next),{},{x:po(n.prev.x,n.next.x,t),y:po(n.prev.y,n.next.y,t)})]:n.status==="added"?[n.next]:[]),jQ={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationMatchBy:k4,animationInterpolateFn:gFe,connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,shape:cFe,xAxisId:0,yAxisId:0,zIndex:ii.area};function $x(e,t){return e&&e!=="none"?e:t}var vFe=e=>{var t=e.dataKey,n=e.name,r=e.stroke,a=e.fill,s=e.legendType,o=e.hide;return[{inactive:o,dataKey:t,type:s,color:$x(r,a),value:HY(n,t),payload:e}]},yFe=v.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,a=e.strokeWidth,s=e.fill,o=e.name,l=e.hide,d=e.unit,u=e.formatter,h=e.tooltipType,p=e.id,g={dataDefinedOnItem:n,getPosition:Df,settings:{stroke:r,strokeWidth:a,fill:s,dataKey:t,nameKey:void 0,name:HY(o,t),hide:l,type:h,color:$x(r,s),unit:d,formatter:u,graphicalItemId:p}};return v.createElement(S$e,{tooltipEntrySettings:g})});function xFe(e){var t=e.clipPathId,n=e.points,r=e.props,a=r.needClip,s=r.dot,o=r.dataKey,l=Ga(r);return v.createElement(fBe,{points:n,dot:s,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:o,baseProps:l,needClip:a,clipPathId:t})}function bFe(e){var t=e.showLabels,n=e.children,r=e.points,a=r.map(s=>{var o,l,d={x:(o=s.x)!==null&&o!==void 0?o:0,y:(l=s.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return vf(vf({},d),{},{value:s.value,payload:s.payload,parentViewBox:void 0,viewBox:d,fill:void 0})});return v.createElement(s$e,{value:t?a:void 0},n)}function wFe(e){var t=e.points,n=e.baseLine,r=e.needClip,a=e.clipPathId,s=e.props,o=e.animationElapsedTime,l=e.isAnimating,d=e.isEntrance,u=s.layout,h=s.type,p=s.stroke,g=s.connectNulls,y=s.isRange,b=s.shape,w=s.id,j=wQ(s,uFe),S=ja(j),k=vf(vf({},S),{},{id:w,points:t,connectNulls:g,type:h,baseLine:n,layout:u,stroke:p,isRange:y,animationElapsedTime:o,isAnimating:l,isEntrance:d});return v.createElement(v.Fragment,null,t?.length>1&&v.createElement(Sa,{clipPath:r?"url(#clipPath-".concat(a,")"):void 0},v.createElement(j$e,{option:b,DefaultShape:jQ.shape,shapeProps:k})),v.createElement(xFe,{points:t,props:j,clipPathId:a}))}function jFe(e,t,n){if(Re(e)){var r=Re(t)?t:void 0;return po(r,e,n)}if(Dr(e)||Es(e)){var a=Re(t)?t:void 0;return po(a,0,n)}return e}function SFe(e){var t=e.needClip,n=e.clipPathId,r=e.props,a=e.previousPointsRef,s=e.previousBaselineRef,o=r.points,l=r.baseLine,d=r.isAnimationActive,u=r.animationBegin,h=r.animationDuration,p=r.animationEasing,g=r.animationMatchBy,y=r.animationInterpolateFn,b=v.useMemo(()=>({points:o,baseLine:l}),[o,l]),w=eQ(b,s),j=yA(),S=q$e(r.onAnimationStart,r.onAnimationEnd),k=S.isAnimating,N=S.handleAnimationStart,_=S.handleAnimationEnd,L=w.startValue;if(j==null)return null;var E;return Array.isArray(l)&&Array.isArray(L)?E=J6(L,l,g):Array.isArray(l)?E=J6(null,l,g):E=null,v.createElement(F$e,{animationInput:b,animationIdPrefix:"recharts-area-",items:o,previousItemsRef:a,isAnimationActive:d,animationBegin:u,animationDuration:h,animationEasing:p,onAnimationStart:N,onAnimationEnd:_,animationInterpolateFn:y,animationMatchBy:g,layout:j},(T,P,$)=>{var O;return P===1?O=l:Array.isArray(l)?O=y(E,P,j):O=$?l:jFe(l,L,P),w.syncStepValue(O,P),v.createElement(bFe,{showLabels:!k,points:o},r.children,v.createElement(wFe,{points:T,baseLine:O,needClip:t,clipPathId:n,props:r,animationElapsedTime:P,isAnimating:k||P<1,isEntrance:$}),v.createElement(c$e,{label:r.label}))})}function CFe(e){var t=e.needClip,n=e.clipPathId,r=e.props,a=v.useRef(null),s=v.useRef();return v.createElement(SFe,{needClip:t,clipPathId:n,props:r,previousPointsRef:a,previousBaselineRef:s})}class kFe extends v.PureComponent{render(){var t=this.props,n=t.hide,r=t.dot,a=t.points,s=t.className,o=t.top,l=t.left,d=t.needClip,u=t.xAxisId,h=t.yAxisId,p=t.width,g=t.height,y=t.id,b=t.baseLine,w=t.zIndex;if(n)return null;var j=an("recharts-area",s),S=y,k=Xqe(r),N=k.r,_=k.strokeWidth,L=QZ(r),E=N*2+_,T=d?"url(#clipPath-".concat(L?"":"dots-").concat(S,")"):void 0;return v.createElement(zo,{zIndex:w},v.createElement(Sa,{className:j},d&&v.createElement("defs",null,v.createElement(Kqe,{clipPathId:S,xAxisId:u,yAxisId:h}),!L&&v.createElement("clipPath",{id:"clipPath-dots-".concat(S)},v.createElement("rect",{x:l-E/2,y:o-E/2,width:p+E,height:g+E}))),v.createElement(CFe,{needClip:d,clipPathId:S,props:this.props})),v.createElement(aq,{points:a,mainColor:$x(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}),this.props.isRange&&Array.isArray(b)&&v.createElement(aq,{points:b,mainColor:$x(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}))}}function NFe(e){var t,n=e.activeDot,r=e.animationBegin,a=e.animationDuration,s=e.animationEasing,o=e.connectNulls,l=e.dot,d=e.fill,u=e.fillOpacity,h=e.hide,p=e.isAnimationActive,g=e.legendType,y=e.stroke,b=e.xAxisId,w=e.yAxisId,j=wQ(e,dFe),S=Pf(),k=_Z(),N=pQ(b,w),_=N.needClip,L=_i(),E=(t=Ve(W=>nFe(W,e.id,L)))!==null&&t!==void 0?t:{},T=E.points,P=E.isRange,$=E.baseLine,O=A4();if(S!=="horizontal"&&S!=="vertical"||O==null||k!=="AreaChart"&&k!=="ComposedCh
2816art")return null;var q=O.height,D=O.width,z=O.x,V=O.y;return!T||!T.length?null:v.createElement(kFe,Ix({},j,{activeDot:n,animationBegin:r,animationDuration:a,animationEasing:s,baseLine:$,connectNulls:o,dot:l,fill:d,fillOpacity:u,height:q,hide:h,layout:S,isAnimationActive:p,isRange:P,legendType:g,needClip:_,points:T,stroke:y,width:D,left:z,top:V,xAxisId:b,yAxisId:w}))}var AFe=(e,t,n,r,a)=>{var s=n??t;if(Re(s))return s;var o=e==="horizontal"?a:r,l=o.scale.domain();if(o.type==="number"){var d=Math.max(l[0],l[1]),u=Math.min(l[0],l[1]);return s==="dataMin"?u:s==="dataMax"||d<0?d:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]};function EFe(e){var t=e.areaSettings,n=t.connectNulls,r=t.baseValue,a=t.dataKey,s=e.stackedData,o=e.layout,l=e.chartBaseValue,d=e.xAxis,u=e.yAxis,h=e.displayedData,p=e.dataStartIndex,g=e.xAxisTicks,y=e.yAxisTicks,b=e.bandSize,w=e.stackDataKeys,j=s&&s.length,S=AFe(o,l,r,d,u),k=o==="horizontal",N=!1,_=h.map((E,T)=>{var P,$,O,q;if(j)q=s[p+T];else{var D=ir(E,a);Array.isArray(D)?(q=D,N=!0):q=[S,D]}var z=(P=($=q)===null||$===void 0?void 0:$[1])!==null&&P!==void 0?P:null,V=ir(E,a),W=j&&V==null&&w!=null&&w.length>0&&w.every(G=>ir(E,G)==null),B=z==null||j&&!n&&V==null||W;if(k){var H;return{x:oI({axis:d,ticks:g,bandSize:b,entry:E,index:T}),y:B?null:(H=u.scale.map(z))!==null&&H!==void 0?H:null,value:q,payload:E}}return{x:B?null:(O=d.scale.map(z))!==null&&O!==void 0?O:null,y:oI({axis:u,ticks:y,bandSize:b,entry:E,index:T}),value:q,payload:E}}),L;return j||N?L=_.map(E=>
2816{var T,P=Array.isArray(E.value)?E.value[0]:null;if(k){var $;return{x:E.x,y:P!=null&&E.y!=null&&($=u.scale.map(P))!==null&&$!==void 0?$:null,payload:E.payload}}return{x:P!=null&&(T=d.scale.map(P))!==null&&T!==void 0?T:null,y:E.y,payload:E.payload}}):L=k?u.scale.map(S):d.scale.map(S),{points:_,baseLine:L??0,isRange:N}}function _Fe(e){var t=Ea(e,jQ),n=_i();return v.createElement(X$e,{id:t.id,type:"area"},r=>v.createElement(v.Fragment,null,v.createElement(C$e,{legendPayload:vFe(t)}),v.createElement(yFe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:r}),v.createElement(rBe,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Q_e(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),v.createElement(NFe,Ix({},t,{id:r}))))}var SQ=v.memo(_Fe,a1);SQ.displayName="Area";var TFe=["domain","range"],LFe=["domain","range"];function gq(e,t){if(e==null)return{};var n,r,a=OFe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function OFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vq(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function CQ(e,t){if(e===t)return!0;var n=e.domain,r=e.range,a=gq(e,TFe),s=t.domain,o=t.range,l=gq(t,LFe);return!vq(n,s)||!vq(r,o)?!1:a1(a,l)}var MFe=["type"],DFe=["dangerouslySetInnerHTML","ticks","scale"],PFe=["id","scale"];function e5(){return e5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e5.apply(null,arguments)}function yq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yq(Object(n),!0).forEach(function(r){RFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RFe(e,t,n){return(t=IFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IFe(e){var t=$Fe(e,"string");return typeof t=="symbol"?t:t+""}function $Fe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t5(e,t){if(e==null)return{};var n,r,a=BFe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function BFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qFe(e){var t=In(),n=v.useRef(null),r=yA(),a=e.type,s=t5(e,MFe),o=c1(r,"xAxis",a),l=v.useMemo(()=>{if(o!=null)return xq(xq({},s),{},{type:o})},[s,o]);return v.useLayoutEffect(()=>{l!=null&&(n.current===null?t(vBe(l)):n.current!==l&&t(yBe({prev:n.current,next:l})),n.current=l)},[l,t]),v.useLayoutEffect(()=>()=>{n.current&&(t(xBe(n.current)),n.current=null)},[t]),null}var FFe=e=>{var t=e.xAxisId,n=e.className,r=e.height,a=e.label,s=v.useRef(null),o=v.useRef(null),l=Ve(VY),d=_i(),u=In(),h="xAxis",p=Ve(S=>iZ(S,h,t,d)),g=Ve(S=>g9e(S,t)),y=Ve(S=>j9e(S,t)),b=Ve(S=>wX(S,t));if(v.useLayoutEffect(()=>{if(!(r!=="auto"||!g||S1(a)||v.isValidElement(a)||b==null)){var S=s.current;if(S){var k=S.getCalculatedHeight();Math.round(g.height)!==Math.round(k)&&u(CBe({id:t,height:k}))}}},[p,g,u,a,t,r,b]),g==null||y==null||b==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var w=t5(e,DFe);b.id,b.scale;var j=t5(b,PFe);return v.createElement(_4,e5({},w,j,{ref:s,labelRef:o,x:y.x,y:y.y,width:g.width,height:g.height,className:an("recharts-".concat(h," ").concat(h),n),viewBox:l,ticks:p,axisType:h,axisId:t}))},zFe={allowDataOverflow:Qn.allowDataOverflow,allowDecimals:Qn.allowDecimals,allowDuplicatedCategory:Qn.allowDuplicatedCategory,angle:Qn.angle,axisLine
2816:wo.axisLine,height:Qn.height,hide:!1,includeHidden:Qn.includeHidden,interval:Qn.interval,label:!1,minTickGap:Qn.minTickGap,mirror:Qn.mirror,orientation:Qn.orientation,padding:Qn.padding,reversed:Qn.reversed,scale:Qn.scale,tick:Qn.tick,tickCount:Qn.tickCount,tickLine:wo.tickLine,tickSize:wo.tickSize,type:Qn.type,niceTicks:Qn.niceTicks,xAxisId:0},HFe=e=>{var t=Ea(e,zFe);return v.createElement(v.Fragment,null,v.createElement(qFe,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),v.createElement(FFe,t))},kQ=v.memo(HFe,CQ);kQ.displayName="XAxis";var UFe=["type"],VFe=["dangerouslySetInnerHTML","ticks","scale"],GFe=["id","scale"];function n5(){return n5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n5.apply(null,arguments)}function bq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bq(Object(n),!0).forEach(function(r){WFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WFe(e,t,n){return(t=YFe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YFe(e){var t=KFe(e,"string");return typeof t=="symbol"?t:t+""}function KFe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r5(e,t){if(e==null)return{};var n,r,a=XFe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function XFe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZFe(e){var t=In(),n=v.useRef(null),r=yA(),a=e.type,s=r5(e,UFe),o=c1(r,"yAxis",a),l=v.useMemo(()=>{if(o!=null)return wq(wq({},s),{},{type:o})},[o,s]);return v.useLayoutEffect(()=>{l!=null&&(n.current===null?t(bBe(l)):n.current!==l&&t(wBe({prev:n.current,next:l})),n.current=l)},[l,t]),v.useLayoutEffect(()=>()=>{n.current&&(t(jBe(n.current)),n.current=null)},[t]),null}function QFe(e){var t=e.yAxisId,n=e.className,r=e.width,a=e.label,s=v.useRef(null),o=v.useRef(null),l=Ve(VY),d=_i(),u=In(),h="yAxis",p=Ve(S=>k9e(S,t)),g=Ve(S=>C9e(S,t)),y=Ve(S=>iZ(S,h,t,d)),b=Ve(S=>jX(S,t));if(v.useLayoutEffect(()=>{if(!(r!=="auto"||!p||S1(a)||v.isValidElement(a)||b==null)){var S=s.current;if(S){var k=S.getCalculatedWidth();Math.round(p.width)!==Math.round(k)&&u(SBe({id:t,width:k}))}}},[y,p,u,a,t,r,b]),p==null||g==null||b==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var w=r5(e,VFe);b.id,b.scale;var j=r5(b,GFe);return v.createElement(_4,n5({},w,j,{ref:s,labelRef:o,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:an("recharts-".concat(h," ").concat(h),n),viewBox:l,ticks:y,axisType:h,axisId:t}))}var JFe={allowDataOverflow:Jn.allowDataOverflow,allowDecimals:Jn.allowDecimals,allowDuplicatedCategory:Jn.allowDuplicatedCategory,angle:Jn.angle,axisLine:wo.axisLine,hide:!1,includeHidden:Jn.includeHidden,interval:Jn.interval,label:!1,minTickGap:Jn.minTickGap,mirror:Jn.mirror,orientation:Jn.orientation,padding:Jn.padding,reversed:Jn.reversed,scale:Jn.scale,tick:Jn.tick,tickCount:Jn.tickCount,tickLine:wo.tickLine,tickSize:wo.tickSize,type:Jn.type,niceTicks:Jn.niceTicks,width:Jn.width,yAxisId:0},eze=e=>{var t=Ea(e,JFe);return v.createElement(v.Fragment,null,v.createElement(ZFe,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),v.createElement(QFe,t))},NQ=v.memo(eze,CQ);
2816NQ.displayName="YAxis";var tze=(e,t)=>t,D4=ue([tze,dn,RK,xr,SZ,Fo,W7e,Pr],eRe);function nze(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function P4(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(nze(e)){var a=e.currentTarget.getBBox();n=a.width>0?t.width/a.width:1,r=a.height>0?t.height/a.height:1}else{var s=e.currentTarget;n=s.offsetWidth>0?t.width/s.offsetWidth:1,r=s.offsetHeight>0?t.height/s.offsetHeight:1}var o=(l,d)=>({relativeX:Math.round((l-t.left)/n),relativeY:Math.round((d-t.top)/r)});return"touches"in e?Array.from(e.touches).map(l=>o(l.clientX,l.clientY)):o(e.clientX,e.clientY)}var AQ=Ji("mouseClick"),EQ=pg();EQ.startListening({actionCreator:AQ,effect:(e,t)=>{var n=e.payload,r=D4(t.getState(),P4(n));r?.activeIndex!=null&&t.dispatch(q9e({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var i5=Ji("mouseMove"),_Q=pg(),Ld=null,Sc=null,wC=null;_Q.startListening({actionCreator:i5,effect:(e,t)=>{var n=e.payload,r=t.getState(),a=r.eventSettings,s=a.throttleDelay,o=a.throttledEvents,l=o==="all"||o?.includes("mousemove");Ld!==null&&(cancelAnimationFrame(Ld),Ld=null),Sc!==null&&(typeof s!="number"||!l)&&(clearTimeout(Sc),Sc=null),wC=P4(n);var d=()=>{var u=t.getState(),h=Eg(u,u.tooltip.settings.shared);if(!wC){Ld=null,Sc=null;return}if(h==="axis"){var p=D4(u,wC);p?.activeIndex!=null?t.dispatch(hZ({activeIndex:p.activeIndex,activeDataKey:void 0,activeCoordinate:p.activeCoordinate})):t.dispatch(fZ())}Ld=null,Sc=null};if(!l){d();return}s==="raf"?Ld=requestAnimationFrame(d):typeof s=="number"&&Sc===null&&(Sc=setTimeout(d,s))}});function rze(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var jq={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},TQ=Kr({name:"rootProps",initialState:jq,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:jq.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),ize=TQ.reducer,aze=TQ.actions.updateOptions,sze=null,oze={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},LQ=Kr({name:"polarOptions",initialState:sze,reducers:oze});LQ.actions.updatePolarOptions;var lze=LQ.reducer,OQ=Ji("keyDown"),MQ=Ji("focus"),DQ=Ji("blur"),k1=pg(),Od=null,Cc=null,L0=null;k1.startListening({actionCreator:OQ,effect:(e,t)=>{L0=e.payload,Od!==null&&(cancelAnimationFrame(Od),Od=null);var n=t.getState(),r=n.eventSettings,a=r.throttleDelay,s=r.throttledEvents,o=s==="all"||s.includes("keydown");Cc!==null&&(typeof a!="number"||!o)&&(clearTimeout(Cc),Cc=null);var l=()=>{try{var d=t.getState(),u=d.rootProps.accessibilityLayer!==!1;if(!u)return;var h=d.tooltip.keyboardInteraction,p=L0;if(p!=="ArrowRight"&&p!=="ArrowLeft"&&p!=="Enter")return;var g=Wp(h,gu(d),mf(d),gf(d)),y=g==null?-1:Number(g),b=!Number.isFinite(y)||y<0,w=Fo(d),j=gu(d),S=Eg(d,d.tooltip.settings.shared);if(p==="Enter"){if(b)return;var k=Ox(d,S,"hover",String(h.index));t.dispatch(Lx({active:!h.active,activeIndex:h.index,activeCoordinate:k}));return}var N=T9e(d),_=N==="left-to-right"?1:-1,L=p==="ArrowRight"?1:-1,E;if(b){var T=mf(d),P=gf(d),$=L*_,O=W=>({active:!1,index:String(W),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(E=-1,$>0){for(var q=0;q<j.length;q++)if(Wp(O(q),j,T,P)!=null){E=q;break}}else for(var D=j.length-1;D>=0;D--)if(Wp(O(D),j,T,P)!=null){E=D;break}if(E<0)return}else{E=y+L*_;var z=w?.length||j.length;if(z===0||E>=z||E<0)return}var V=Ox(d,S,"hover",String(E));t.dispatch(Lx({active:!0,activeIndex:E.toString(),activeCoordinate:V}))}finally{Od=null,Cc=null}};if(!o){l();return}a==="raf"?Od=requestAnimationFrame(l):typeof a=="number"&&Cc===null&&(l(),L0=null,Cc=setTimeout(()=>{L0?l():(Cc=null,Od=null)},a))}});k1.startListening({actionCreator:MQ,effect:(e,t)=>
2816{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var a=n.tooltip.keyboardInteraction;if(!a.active&&a.index==null){var s="0",o=Eg(n,n.tooltip.settings.shared),l=Ox(n,o,"hover",String(s));t.dispatch(Lx({active:!0,activeIndex:s,activeCoordinate:l}))}}}});k1.startListening({actionCreator:DQ,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var a=n.tooltip.keyboardInteraction;a.active&&t.dispatch(Lx({active:!1,activeIndex:a.index,activeCoordinate:a.coordinate}))}}});function PQ(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var a=Reflect.get(n,r);return typeof a=="function"?a.bind(n):a}})}var fa=Ji("externalEvent"),RQ=pg(),O0=new Map,Cp=new Map,jC=new Map;RQ.startListening({actionCreator:fa,effect:(e,t)=>{var n=e.payload,r=n.handler,a=n.reactEvent;if(r!=null){var s=a.type,o=PQ(a);jC.set(s,{handler:r,reactEvent:o});var l=O0.get(s);l!==void 0&&(cancelAnimationFrame(l),O0.delete(s));var d=t.getState(),u=d.eventSettings,h=u.throttleDelay,p=u.throttledEvents,g=p,y=g==="all"||g?.includes(s),b=Cp.get(s);b!==void 0&&(typeof h!="number"||!y)&&(clearTimeout(b),Cp.delete(s));var w=()=>{var k=jC.get(s);try{if(!k)return;var N=k.handler,_=k.reactEvent,L=t.getState(),E={activeCoordinate:O7e(L),activeDataKey:_7e(L),activeIndex:Im(L),activeLabel:NZ(L),activeTooltipIndex:Im(L),isTooltipActive:M7e(L)};N&&N(E,_)}finally{O0.delete(s),Cp.delete(s),jC.delete(s)}};if(!y){w();return}if(h==="raf"){var j=requestAnimationFrame(w);O0.set(s,j)}else if(typeof h=="number"){if(!Cp.has(s)){w();var S=setTimeout(w,h);Cp.set(s,S)}}else w()}}});var cze=ue([Hf],e=>e.tooltipItemPayloads),uze=ue([cze,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(s=>s.settings.graphicalItemId===n);if(r!=null){var a=r.getPosition;if(a!=null)return a(t)}}}),IQ=Ji("touchMove"),$Q=pg(),kc=null,vl=null,Sq=null,kp=null;$Q.startListening({actionCreator:IQ,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){kp=PQ(n);var r=t.getState(),a=r.eventSettings,s=a.throttleDelay,o=a.throttledEvents,l=o==="all"||o.includes("touchmove");kc!==null&&(cancelAnimationFrame(kc),kc=null),vl!==null&&(typeof s!="number"||!l)&&(clearTimeout(vl),vl=null),Sq=Array.from(n.touches).map(u=>P4({clientX:u.clientX,clientY:u.clientY,currentTarget:n.currentTarget}));var d=()=>{if(kp!=null){var u=t.getState(),h=Eg(u,u.tooltip.settings.shared);if(h==="axis"){var p,g=(p=Sq)===null||p===void 0?void 0:p[0];if(g==null){kc=null,vl=null;return}var y=D4(u,g);y?.activeIndex!=null&&t.dispatch(hZ({activeIndex:y.activeIndex,activeDataKey:void 0,activeCoordinate:y.activeCoordinate}))}else if(h==="item"){var b,w=kp.touches[0];if(document.elementFromPoint==null||w==null)return;var j=document.elementFromPoint(w.clientX,w.clientY);if(!j||!j.getAttribute)return;var S=j.getAttribute(aTe),k=(b=j.getAttribute(sTe))!==null&&b!==void 0?b:void 0,N=Eu(u).find(E=>E.id===k);if(S==null||N==null||k==null)return;var _=N.dataKey,L=uze(u,S,k);t.dispatch(B9e({activeDataKey:_,activeIndex:S,activeCoordinate:L,activeGraphicalItemId:k}))}kc=null,vl=null}};if(!l){d();return}s==="raf"?kc=requestAnimationFrame(d):typeof s=="number"&&vl===null&&(d(),kp=null,vl=setTimeout(()=>{kp?d():(vl=null,kc=null)},s))}}});var BQ={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},qQ=Kr({name:"eventSettings",initialState:BQ,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Et(t.payload.throttledEvents))}}}),dze=qQ.actions.setEventSettings,fze=qQ.reducer,hze=fY({brush:DBe,cartesianAxis:kBe,chartData:LRe,errorBars:Yqe,eventSettings:fze,graphicalItems:tBe,layout:H_e,legend:lLe,options:NRe,polarAxis:d$e,polarOptions:lze,referenceElements:$Be,renderedTicks:uqe,rootProps:ize,tooltip:F9e,zIndex:hRe}),pze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return p_e({reducer:hze,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([EQ.middleware,_Q.middleware,k1.middleware,RQ.middleware,$Q.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(AY({type:"raf"}))},devTools:{serialize:{replacer:rze},name:"recharts-".concat(n)}})};function mze(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,a=_i(),s=v.useRef(null);if(a)return n;s.current==null&&(s.current=pze(t,r));var o=cA;return v.createElement(NLe,{context:o,store:s.current},n)}function gze(e){var t=e.layout,n=e.margin,r=In(),a=_i();return v.useEffect(()=>{a||(r(q_e(t)),r(B_e(n)))},[r,a,t,n]),null}var vze=v.memo(gze,a1);function yze(e){var t=In();return v.useEffect(()=>{t(aze(e))},[t,e]),null}var xze=e=>{var t=In();return v.useEffect(()=>{t(dze(e))},[t,e]),null},bze=v.memo(xze,a1);function Cq(e){var t=e.zIndex,n=e.isPanorama,r=v.useRef(null),a=In();return v.useLayoutEffect(()=>(r.current&&a(dRe({zIndex:t,element:r.current,isPanorama:n})),()=>{a(fRe({zIndex:t,isPanorama:n}))}),[a,t,n]),v.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function kq(e){var t=e.children,n=e.isPanorama,r=Ve(nRe);if(!r||r.length===0)return t;var a=r.filter(o=>o<0),s=r.filter(o=>o>0);return v.createElement(v.Fragment,null,a.map(o=>v.createElement(Cq,{key:o,zIndex:o,isPanorama:n})),t,s.map(o=>v.createElement(Cq,{key:o,zIndex:o,isPanorama:n})))}var wze=["children"];function jze(e,t){if(e==null)return{};var n,r,a=Sze(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Sze(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(null,arguments)}var Cze={width:"100%",height:"100%",display:"block"},kze=v.forwardRef((e,t)=>
2816{var n=XY(),r=ZY(),a=uK();if(!Ts(n)||!Ts(r))return null;var s=e.children,o=e.otherAttributes,l=e.title,d=e.desc,u,h;return o!=null&&(typeof o.tabIndex=="number"?u=o.tabIndex:u=a?0:void 0,typeof o.role=="string"?h=o.role:h=a?"application":void 0),v.createElement(gW,Bx({},o,{title:l,desc:d,role:h,tabIndex:u,width:n,height:r,style:Cze,ref:t}),s)}),Nze=e=>{var t=e.children,n=Ve(Xb);if(!n)return null;var r=n.width,a=n.height,s=n.y,o=n.x;return v.createElement(gW,{width:r,height:a,x:o,y:s},t)},Nq=v.forwardRef((e,t)=>{var n=e.children,r=jze(e,wze),a=_i();return a?v.createElement(Nze,null,v.createElement(kq,{isPanorama:!0},n)):v.createElement(kze,Bx({ref:t},r),v.createElement(kq,{isPanorama:!1},n))});function Aze(e,t){return Lze(e)||Tze(e,t)||_ze(e,t)||Eze()}function Eze(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2817In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ze(e,t){if(e){if(typeof e=="string")return Aq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aq(e,t):void 0}}function Aq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tze(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Lze(e){if(Array.isArray(e))return e}function Oze(){var e=In(),t=v.useState(null),n=Aze(t,2),r=n[0],a=n[1],s=Ve(iTe);return v.useEffect(()=>{if(r!=null){var o=r.getBoundingClientRect(),l=o.width/r.offsetWidth;yt(l)&&l!==s&&e(z_e(l))}},[r,e,s]),a}function Eq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eq(Object(n),!0).forEach(function(r){Dze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dze(e,t,n){return(t=Pze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pze(e){var t=Rze(e,"string");return typeof t=="symbol"?t:t+""}function Rze(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(null,arguments)}function qx(e,t){return qze(e)||Bze(e,t)||$ze(e,t)||Ize()}function Ize(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2818In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ze(e,t){if(e){if(typeof e=="string")return _q(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_q(e,t):void 0}}function _q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bze(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,o,l=[],d=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(d=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);d=!0);}catch(h){u=!0,a=h}finally{try{if(!d&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function qze(e){if(Array.isArray(e))return e}var Fze=()=>(qRe(),null);function Fx(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);
2818if(!Number.isNaN(t))return t}return 0}var zze=v.forwardRef((e,t)=>{var n,r,a=v.useRef(null),s=v.useState({containerWidth:Fx((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Fx((r=e.style)===null||r===void 0?void 0:r.height)}),o=qx(s,2),l=o[0],d=o[1],u=v.useCallback((p,g)=>{d(y=>{var b=Math.round(p),w=Math.round(g);return y.containerWidth===b&&y.containerHeight===w?y:{containerWidth:b,containerHeight:w}})},[]),h=v.useCallback(p=>{if(typeof t=="function"&&t(p),a.current!=null&&(a.current.disconnect(),a.current=null),p!=null&&typeof ResizeObserver<"u"){var g=p.getBoundingClientRect(),y=g.width,b=g.height;u(y,b);var w=S=>{var k=S[0];if(k!=null){var N=k.contentRect,_=N.width,L=N.height;u(_,L)}},j=new ResizeObserver(w);j.observe(p),a.current=j}},[t,u]);return v.useEffect(()=>()=>{var p=a.current;p?.disconnect()},[u]),v.createElement(v.Fragment,null,v.createElement(gg,{width:l.containerWidth,height:l.containerHeight}),v.createElement("div",Ml({ref:h},e)))}),Hze=v.forwardRef((e,t)=>{var n=e.width,r=e.height,a=v.useState({containerWidth:Fx(n),containerHeight:Fx(r)}),s=qx(a,2),o=s[0],l=s[1],d=v.useCallback((h,p)=>{l(g=>{var y=Math.round(h),b=Math.round(p);return g.containerWidth===y&&g.containerHeight===b?g:{containerWidth:y,containerHeight:b}})},[]),u=v.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null){var p=h.getBoundingClientRect(),g=p.width,y=p.height;d(g,y)}},[t,d]);return v.createElement(v.Fragment,null,v.createElement(gg,{width:o.containerWidth,height:o.containerHeight}),v.createElement("div",Ml({ref:u},e)))}),Uze=v.forwardRef((e,t)=>{var n=e.width,r=e.height;return v.createElement(v.Fragment,null,v.createElement(gg,{width:n,height:r}),v.createElement("div",Ml({ref:t},e)))}),Vze=v.forwardRef((e,t)=>{var n=e.width,r=e.height;return typeof n=="string"||typeof r=="string"?v.createElement(Hze,Ml({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?v.createElement(Uze,Ml({},e,{width:n,height:r,ref:t})):v.createElement(v.Fragment,null,v.createElement(gg,{width:n,height:r}),v.createElement("div",Ml({ref:t},e)))});function Gze(e){return e?zze:Vze}var Wze=v.forwardRef((e,t)=>{var n=e.children,r=e.className,a=e.height,s=e.onClick,o=e.onContextMenu,l=e.onDoubleClick,d=e.onMouseDown,u=e.onMouseEnter,h=e.onMouseLeave,p=e.onMouseMove,g=e.onMouseUp,y=e.onTouchEnd,b=e.onTouchMove,w=e.onTouchStart,j=e.style,S=e.width,k=e.responsive,N=e.dispatchTouchEvents,_=N===void 0?!0:N,L=v.useRef(null),E=In(),T=v.useState(null),P=qx(T,2),$=P[0],O=P[1],q=v.useState(null),D=qx(q,2),z=D[0],V=D[1],W=Oze(),B=vA(),H=B?.width>0?B.width:S,G=B?.height>0?B.height:a,K=v.useCallback(Ne=>{W(Ne),typeof t=="function"&&t(Ne),O(Ne),V(Ne),Ne!=null&&(L.current=Ne)},[W,t,O,V]),M=v.useCallback(Ne=>{E(AQ(Ne)),E(fa({handler:s,reactEvent:Ne}))},[E,s]),I=v.useCallback(Ne=>{E(i5(Ne)),E(fa({handler:u,reactEvent:Ne}))},[E,u]),X=v.useCallback(Ne=>{E(fZ()),E(fa({handler:h,reactEvent:Ne}))},[E,h]),F=v.useCallback(Ne=>{E(i5(Ne)),E(fa({handler:p,reactEvent:Ne}))},[E,p]),U=v.useCallback(()=>{E(MQ())},[E]),Z=v.useCallback(()=>{E(DQ())},[E]),ee=v.useCallback(Ne=>{E(OQ(Ne.key))},[E]),ae=v.useCallback(Ne=>{E(fa({handler:o,reactEvent:Ne}))},[E,o]),ye=v.useCallback(Ne=>{E(fa({handler:l,reactEvent:Ne}))},[E,l]),J=v.useCallback(Ne=>{E(fa({handler:d,reactEvent:Ne}))},[E,d]),re=v.useCallback(Ne=>{E(fa({handler:g,reactEvent:Ne}))},[E,g]),ge=v.useCallback(Ne=>{E(fa({handler:w,reactEvent:Ne}))},[E,w]),Q=v.useCallback(Ne=>{_&&E(IQ(Ne)),E(fa({handler:b,reactEvent:Ne}))},[E,_,b]),Se=v.useCallback(Ne=>{E(fa({handler:y,reactEvent:Ne}))},[E,y]),je=Gze(k);return v.createElement(DZ.Provider,{value:$},v.createElement(d4e.Provider,{value:z},v.createElement(je,{width:H??j?.width,height:G??j?.height,className:an("recharts-wrapper",r),style:Mze({position:"relative",cursor:"default",width:H,height:G},j),onClick:M,onContextMenu:ae,onDoubleClick:ye,onFocus:U,onBlur:Z,onKeyDown:ee,onMouseDown:J,onMouseEnter:I,onMouseLeave:X,onMouseMove:F,onMouseUp:re,onTouchEnd:Se,onTouchMove:Q,onTouchStart:ge,ref:K},v.createElement(Fze,null),n)))}),Yze=["width","height","responsive","children","className","style","compact","title","desc"];function Kze(e,t){if(e==null)return{};var n,r,a=Xze(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Xze(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zze=v.forwardRef((e,t)=>
2818{var n=e.width,r=e.height,a=e.responsive,s=e.children,o=e.className,l=e.style,d=e.compact,u=e.title,h=e.desc,p=Kze(e,Yze),g=Ga(p);return d?v.createElement(v.Fragment,null,v.createElement(gg,{width:n,height:r}),v.createElement(Nq,{otherAttributes:g,title:u,desc:h},s)):v.createElement(Wze,{className:o,style:l,width:n,height:r,responsive:a??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},v.createElement(Nq,{otherAttributes:g,title:u,desc:h,ref:t},v.createElement(VBe,null,s)))});function a5(){return a5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a5.apply(null,arguments)}function Tq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tq(Object(n),!0).forEach(function(r){Jze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jze(e,t,n){return(t=eHe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eHe(e){var t=tHe(e,"string");return typeof t=="symbol"?t:t+""}function tHe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nHe={top:5,right:5,bottom:5,left:5},rHe=Qze({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:nHe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},BQ),iHe=v.forwardRef(function(t,n){var r,a=Ea(t.categoricalChartProps,rHe),s=t.chartName,o=t.defaultTooltipEventType,l=t.validateTooltipEventTypes,d=t.tooltipPayloadSearcher,u=t.categoricalChartProps,h={chartName:s,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,eventEmitter:void 0};return v.createElement(mze,{preloadedState:{options:h},reduxStoreName:(r=u.id)!==null&&r!==void 0?r:s},v.createElement(MBe,{chartData:u.data}),v.createElement(vze,{layout:a.layout,margin:a.margin}),v.createElement(bze,{throttleDelay:a.throttleDelay,throttledEvents:a.throttledEvents}),v.createElement(yze,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),v.createElement(Zze,a5({},a,{ref:n})))}),aHe=["axis"],sHe=v.forwardRef((e,t)=>v.createElement(iHe,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:aHe,tooltipPayloadSearcher:CRe,categoricalChartProps:e,ref:t}));const py=[{key:"visits",label:"Total Visits",color:"#568203"},{key:"activeUsers",label:"Active Users",color:"#eb6834"}],oHe=280,Lq="#e5e7eb",Oq="#9ca3af",lHe=e=>e>=1e3?`${(e/1e3).toFixed(e%1e3===0?0:1)}K`:`${e}`,s5=e=>new Date(`${e}T00:00:00`).toLocaleDateString("en-US",{month:"short",day:"numeric"}),cHe=(e=[],t=[])=>{const n=new Map;return e.forEach(({_id:r,count:a})=>{n.set(r,{date:r,visits:a,activeUsers:0})}),t.forEach(({_id:r,count:a})=>{const s=n.get(r);s?s.activeUsers=a:n.set(r,{date:r,visits:0,activeUsers:a})}),Array.from(n.values()).sort((r,a)=>r.date>a.date?1:-1)},uHe=({active:e,payload:t,label:n})=>!e||!t?.length?null:i.jsxs("div",{className:"bg-white rounded-[6px] shadow-[0_2px_12px_rgba(0,0,0,0.12)] border border-gray-100 px-3 py-2",children:[i.jsx("div",{className:"text-[11px] text-gray-500 mb-1.5",children:s5(n)}),py.map(r=>{const a=t.find(s=>
2818s.dataKey===r.key);return a?i.jsxs("div",{className:"flex items-center gap-2 text-[12px]",children:[i.jsx("span",{className:"inline-block w-2.5 h-[2px] rounded-full",style:{backgroundColor:r.color}}),i.jsx("span",{className:"font-semibold text-gray-900",children:a.value}),i.jsx("span",{className:"text-gray-500",children:r.label})]},r.key):null})]}),dHe=({visitsByDay:e,activeUsersByDay:t,isLoading:n})=>{const[r,a]=v.useState(!1),s=v.useMemo(()=>cHe(e,t),[e,t]),o=s.length===1?[s[0],{...s[0]}]:s,l=s.length;return i.jsxs("div",{className:"bg-white rounded-[12px] p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-[15px] font-semibold text-gray-800",children:"Total Visits vs Active Users"}),i.jsx("p",{className:"text-[13px] text-gray-500 mt-0.5",children:"Daily traffic for the selected period"})]}),i.jsxs("div",{className:"flex items-center gap-5",children:[i.jsx("div",{className:"flex items-center gap-4",children:py.map(d=>i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"inline-block w-3 h-[2px] rounded-full",style:{backgroundColor:d.color}}),i.jsx("span",{className:"text-[12px] text-gray-500",children:d.label})]},d.key))}),i.jsx("button",{type:"button",onClick:()=>a(d=>!d),className:"text-[12px] font-medium text-gray-500 hover:text-gray-700 underline underline-offset-2",children:r?"View chart":"View as table"})]})]}),n?i.jsx("div",{className:"h-[280px] flex items-center justify-center text-gray-400 text-[13px]",children:"Loading chartâ¦"}):l===0?i.jsx("div",{className:"h-[280px] flex items-center justify-center text-gray-400 text-[13px]",children:"No visit data for this period yet."}):r?i.jsx("div",{className:"overflow-x-auto mt-4",children:i.jsxs("table",{className:"w-full text-left text-[13px]",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-100 text-gray-500",children:[i.jsx("th",{className:"py-2 pr-4 font-medium",children:"Date"}),i.jsx("th",{className:"py-2 pr-4 font-medium",children:"Total Visits"}),i.jsx("th",{className:"py-2 pr-4 font-medium",children:"Active Users"})]})}),i.jsx("tbody",{children:s.map(d=>i.jsxs("tr",{className:"border-b border-gray-50 last:border-0",children:[i.jsx("td",{className:"py-2 pr-4 text-gray-700",children:s5(d.date)}),i.jsx("td",{className:"py-2 pr-4 text-gray-900 font-medium",children:d.visits}),i.jsx("td",{className:"py-2 pr-4 text-gray-900 font-medium",children:d.activeUsers})]},d.date))})]})}):i.jsx("div",{className:"mt-2",children:i.jsx(BTe,{width:"100%",height:oHe,children:i.jsxs(sHe,{data:o,margin:{top:16,right:16,bottom:0,left:0},children:[i.jsx("defs",{children:py.map(d=>i.jsxs("linearGradient",{id:`visitsAreaChart-${d.key}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"5%",stopColor:d.color,stopOpacity:.4}),i.jsx("stop",{offset:"95%",stopColor:d.color,stopOpacity:.02})]},d.key))}),i.jsx(fQ,{stroke:Lq,vertical:!1}),i.jsx(kQ,{dataKey:"date",tickFormatter:s5,tick:{fontSize:11,fill:Oq},axisLine:{stroke:Lq},tickLine:!1,minTickGap:24}),i.jsx(NQ,{tickFormatter:lHe,tick:{fontSize:11,fill:Oq},axisLine:!1,tickLine:!1,width:40}),i.jsx(JRe,{content:i.jsx(uHe,{})}),py.map(d=>i.jsx(SQ,{type:"monotone",dataKey:d.key,name:d.label,stroke:d.color,strokeWidth:2,fill:`url(#visitsAreaChart-${d.key})`,fillOpacity:1,activeDot:{r:4,strokeWidth:2,stroke:"#fff"},dot:!1},d.key))]})})})]})},fHe={blue:"from-blue-500 to-blue-700",green:"from-emerald-500 to-emerald-700",yellow:"from-yellow-500 to-yellow-600",purple:"from-purple-500 to-purple-700"},hHe=({icon:e,title:t,description:n,theme:r,onClick:a})=>i.jsxs("div",{onClick:a,className:`relative overflow-hidden rounded-[6px] p-6 cursor-pointer bg-gradient-to-br ${fHe[r]} hover:-translate-y-0.5 hover:shadow-lg transition-all duration-200 min-h-[100px] flex flex-col justify-between`,children:[i.jsx(e,{className:"absolute -right-6 -bottom-6 text-white/15 w-36 h-36 rotate-[-8deg] pointer-events-none"}),i.jsxs("div",{className:"relative z-[1]",children:[i.jsx("h3",{className:"text-white font-semibold text-[15px] leading-tight mb-2 break-words",children:t}),i.jsx("p",{className:"text-white/73 text-[13px] leading-[1.5]",children:n})]})]}),pHe=()=>{const[e,t]=v.useState({firstname:"",lastname:"",role:""}),[n,r]=v.useState("week"),[a,s]=v.useState(!1),o=Pe().mda,l=Te(E=>E.mdaData),d=pt(),u={today:"Today",week:"Last 7 days",month:"Last 30 days",year:"Last 365 days"};v.useEffect(()=>{const E=window.localStorage.getItem("MDA__TOKEN"),T=JSON.parse(E);t({firstname:T.firstname,lastname:T.lastname,role:T.role})},[]);const{data:h,isLoading:p,error:g}=Ke({queryKey:["dashboard",o,n],queryFn:()=>zAe(o,n)}),{data:y,isLoading:b}=Ke({queryKey:["subscribers-count",l?._id],queryFn:()=>fW(l?._id),enabled:!!l?._id}),{data:w,isLoading:j}=Ke({queryKey:["services-count",l?.fullname],queryFn:()=>Qa(Cn(l?.fullname)),enabled:!!l?.fullname});y?.data?.length;const S=w?.data?.length??0;if(g)return i.jsx("div",{children:"Something went wrong"});if(p)return i.jsx(Rn,{});const k=E=>{r(E),s(!1)},N=()=>{const E=new Date().getHours();return E<12?"morning":E<17?"afternoon":"evening"},_=`${window.location.origin}/${o}`,L=[{theme:"yellow",icon:yz,title:"View Your Application",description:"See exactly what residents see on your live site in real time.",onClick:()=>window.open(_,"_blank")},{theme:"blue",icon:Dce,title:"Add a New Service",description:"Publish a new service so residents can access it.",onClick:()=>d(`/${o}/admin/services`)},{theme:"green",icon:Sle,title:"Build a New Form",description:"Design a form to collect requests, feedback, or applications.",onClick:()=>d(`/${o}/admin/forms`)},{theme:"purple",icon:qse,title:"View Subscribers",description:"See everyone currently subscribed to your MDA's updates list.",onClick:()=>d(`/${o}/admin/subscribers`)}];return i.jsx(i.Fragment,{children:i.jsxs("div",{children:[i.jsx(HAe,{siteName:o}),i.jsxs("div",{className:"w-full",children:[i.jsxs("div",{className:"relative mb-4 mt-4 flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsxs("p",{className:"text-[21px] font-semibold",children:["Hello, ",e.firstname," ",e.lastname]}),i.jsxs("span",{className:"text-[15px] font-medium text-gray-500",children:[" ","Good ",N()," - Here is your detailed overview for the ",n," "]})]}),i.jsxs("div",{className:"relative z-[999999] flex w-max items-center gap-[5px] rounded-lg border border-[#eee] bg-white px-[14px] py-[10px] text-[14px] curs
2818or-pointer",onClick:()=>s(!a),children:[u[n]," ",i.jsx(ar,{style:{marginTop:"3px",fontSize:12}})]}),a&&i.jsxs("div",{className:"absolute top-[30px] -right-[10px] z-[999999] w-[180px] rounded-lg border border-[#eee] bg-white shadow-[1px_3px_20px_rgba(0,0,0,0.04)]",children:[i.jsx("li",{className:"list-none px-[14px] py-[6px] text-[14px] font-medium cursor-pointer hover:bg-[#f9fbfc]",onClick:()=>k("today"),children:"Today"}),i.jsx("li",{className:"list-none px-[14px] py-[6px] text-[14px] font-medium cursor-pointer hover:bg-[#f9fbfc]",onClick:()=>k("week"),children:"Last 7 days"}),i.jsx("li",{className:"list-none px-[14px] py-[6px] text-[14px] font-medium cursor-pointer hover:bg-[#f9fbfc]",onClick:()=>k("month"),children:"Last 30 days"}),i.jsx("li",{className:"list-none px-[14px] py-[6px] text-[14px] font-medium cursor-pointer hover:bg-[#f9fbfc]",onClick:()=>k("year"),children:"Last 365 days"})]})]}),i.jsxs("div",{className:"grid gap-5",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 gap-3 mt-6",children:L.map(E=>i.jsx(hHe,{...E},E.title))}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 2xl:grid-cols-5 gap-[14px]",children:[i.jsxs("div",{className:"relative h-[150px] rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"absolute top-1/2 right-[25px] flex h-[100px] w-[100px] -translate-y-1/2 items-center justify-center",children:i.jsx("img",{className:"w-full",src:m0,alt:""})}),i.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[2px]",children:"Total Visits"}),i.jsxs("div",{className:"mt-4 text-2xl font-[550]",children:[" ",h?.stats?.totalVisits," "]}),i.jsx("div",{className:"mt-[3px] text-[15px] font-light text-[#777]",children:"25% increase"}),i.jsx("div",{className:"hidden w-[80%] text-sm",children:"Overall number of user visits across all pages."})]}),i.jsxs("div",{className:"relative h-[150px] rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"absolute top-1/2 right-[25px] flex h-[100px] w-[100px] -translate-y-1/2 items-center justify-center",children:i.jsx("img",{className:"w-full",src:m0,alt:""})}),i.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[2px]",children:"Total Users"}),i.jsx("div",{className:"mt-4 text-2xl font-[550]",children:h?.stats?.uniqueSessions}),i.jsx("div",{className:"mt-[3px] text-[15px] font-light text-[#777]",children:"19% increase"}),i.jsx("div",{className:"hidden w-[80%] text-sm",children:"Users who engaged with the platform within the active period."})]}),i.jsxs("div",{className:"relative h-[150px] rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"absolute top-1/2 right-[25px] flex h-[100px] w-[100px] -translate-y-1/2 items-center justify-center",children:i.jsx("img",{className:"w-full",src:m0,alt:""})}),i.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[2px]",children:"Total Active Users"}),i.jsx("div",{className:"mt-4 text-2xl font-[550]",children:h?.stats?.uniqueUsers}),i.jsx("div",{className:"mt-[3px] text-[15px] font-light text-[#777]",children:"25% increase"}),i.jsx("div",{className:"hidden w-[80%] text-sm",children:"Users who engaged with the platform within the active period."})]}),i.jsxs("div",{className:"relative h-[150px] rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"absolute top-1/2 right-[25px] flex h-[100px] w-[100px] -translate-y-1/2 items-center justify-center",children:i.jsx("img",{className:"w-full",src:UAe,alt:""})}),i.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[2px]",children:"Most Visited Page"}),i.jsxs("div",{className:"mt-4 text-2xl font-[550]",children:[" ",h?.stats?.topPages[0]?._id||"None"," "]}),i.jsxs("div",{className:"mt-[3px] text-[15px] font-light text-[#777]",children:[h?.stats?.topPages[0]?.count," Page Visits"]}),i.jsx("div",{className:"hidden w-[80%] text-sm",children:"The page with the highest user traffic and engagement."})]}),i.jsxs("div",{className:"relative h-[150px] rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"absolute top-1/2 right-[25px] flex h-[100px] w-[100px] -translate-y-1/2 items-center justify-center",children:i.jsx("img",{className:"w-full",src:m0,alt:""})}),i.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[2px]",children:"Total Services"}),i.jsx("div",{className:"mt-4 text-2xl font-[550]",children:j?"...":S}),i.jsx("div",{className:"mt-[3px] text-[15px] font-light text-[#777]",children:"Currently listed"}),i.jsx("div",{className:"hidden w-[80%] text-sm",children:"Number of government services available on the platform."})]})]}),i.jsx(dHe,{visitsByDay:h?.stats?.visitsByDay,activeUsersByDay:h?.stats?.activeUsersByDay,isLoading:p})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.jsxs("div",{className:"rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"mb-5 text-[11px] font-semibold uppercase tracking-[2px]",children:"Top 5 Visited Pages"}),i.jsx("div",{children:h?.stats?.topPages?.slice(0,5)?.map((E,T)=>i.jsxs("div",{className:`flex gap-[10px] p-[10px] pl-0 ${T%2===1?"bg-[#f9f9f9]":""}`,children:[i.jsxs("div",{children:[T+1,"."]}),i.jsx("div",{className:"text-[15px]",children:E._id}),i.jsx("div",{className:"ml-auto font-medium",children:E.count})]},E._id))})]}),i.jsxs("div",{className:"rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[2px] mb-5",children:"Visits Per day"}),i.jsx("div",{children:h?.stats?.visitsByDay?.slice(0,5)?.reverse()?.map((E,T)=>i.jsxs("div",{className:`flex gap-[10px] p-[10px] pl-0 ${T%2===1?"bg-[#f9f9f9]":""}`,children:[i.jsxs("div",{children:[T+1,"."]}),i.jsx("div",{className:"text-[15px]",children:Y5(E._id)}),i.jsx("div",{className:"ml-auto font-medium",children:E.count})]},E._id))})]}),i.jsxs("div",{className:"rounded-lg bg-white p-[25px]",children:[i.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[2px] mb-5",children:"Device Breakdown"}),i.jsx("div",{children:[...h?.stats?.deviceBreakdown||[]].sort((E,T)=>T.count-E.count)?.map((E,T)=>i.jsxs("div",{className:`flex gap-[10px] p-[10px] pl-0 ${T%2===1?"bg-[#f9f9f9]":""}`,children:[i.jsxs("div",{children:[T+1,"."]}),i.jsx("div",{className:"text-[15px] capitalize",children:E._id||"Unknown"}),i.jsx("div",{className:"ml-auto font-medium",children:E.count})]},E._id))})]})]})]})]})]})})};function mHe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(a=>a(r))},t)}const N1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gf(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function R4(e){return"nodeType"in e}function si(e){var t,n;return e?Gf(e)?e:R4(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function I4(e){const{Document:t}=si(e);return e instanceof t}function Tg(e){return Gf(e)?!1:e instanceof si(e).HTMLElement}function FQ(e){return e instanceof si(e).SVGElement}function Wf(e){return e?Gf(e)?e.document:R4(e)?I4(e)?e:Tg(e)||FQ(e)?e.ownerDocument:document:document:document}const Ya=N1?v.useLayoutEffect:v.useEffect;function A1(e){const t=v.useRef(e);return Ya(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function gHe(){const e=v.useRef(null),t=v.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function qm(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return Ya(()=>{n.current!==e&&(n.current=e)},t),n}function Lg(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function zx(e){const t=A1(e),n=v.useRef(null),r=v.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function Hx(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let SC={};function Og(e,t){return v.useMemo(()=>
2818{if(t)return t;const n=SC[e]==null?0:SC[e]+1;return SC[e]=n,e+"-"+n},[e,t])}function zQ(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((s,o)=>{const l=Object.entries(o);for(const[d,u]of l){const h=s[d];h!=null&&(s[d]=h+e*u)}return s},{...t})}}const Jd=zQ(1),Ux=zQ(-1);function vHe(e){return"clientX"in e&&"clientY"in e}function E1(e){if(!e)return!1;const{KeyboardEvent:t}=si(e.target);return t&&e instanceof t}function yHe(e){if(!e)return!1;const{TouchEvent:t}=si(e.target);return t&&e instanceof t}function Vx(e){if(yHe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return vHe(e)?{x:e.clientX,y:e.clientY}:null}const Fl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Fl.Translate.toString(e),Fl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Mq="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function xHe(e){return e.matches(Mq)?e:e.querySelector(Mq)}const bHe={display:"none"};function wHe(e){let{id:t,value:n}=e;return ft.createElement("div",{id:t,style:bHe},n)}function jHe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ft.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function SHe(){const[e,t]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const HQ=v.createContext(null);function CHe(e){const t=v.useContext(HQ);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function kHe(){const[e]=v.useState(()=>new Set),t=v.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[v.useCallback(r=>{let{type:a,event:s}=r;e.forEach(o=>{var l;return(l=o[a])==null?void 0:l.call(o,s)})},[e]),t]}const NHe={draggable:` 2819 To pick up a draggable item, press the space bar. 2820 While dragging, use the arrow keys to move the item. 2821 Press space again to drop the item in its new position, or press escape to cancel. 2822 `},AHe={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function EHe(e){let{announcements:t=AHe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=NHe}=e;const{announce:s,announcement:o}=SHe(),l=Og("DndLiveRegion"),[d,u]=v.useState(!1);if(v.useEffect(()=>{u(!0)},[]),CHe(v.useMemo(()=>({onDragStart(p){let{active:g}=p;s(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:y}=p;t.onDragMove&&s(t.onDragMove({active:g,over:y}))},onDragOver(p){let{active:g,over:y}=p;s(t.onDragOver({active:g,over:y}))},onDragEnd(p){let{active:g,over:y}=p;s(t.onDragEnd({active:g,over:y}))},onDragCancel(p){let{active:g,over:y}=p;s(t.onDragCancel({active:g,over:y}))}}),[s,t])),!d)return null;const h=ft.createElement(ft.Fragment,null,ft.createElement(wHe,{id:r,value:a.draggable}),ft.createElement(jHe,{id:l,announcement:o}));return n?$c.createPortal(h,n):h}var tr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(tr||(tr={}));function Gx(){}function _He(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function THe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Ka=Object.freeze({x:0,y:0});function LHe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function OHe(e,t){const n=Vx(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function MHe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function DHe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function PHe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Dq(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const RHe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=Dq(t,t.left,t.top),s=[];for(const o of r){const{id:l}=o,d=n.get(l);if(d){const u=LHe(Dq(d),a);s.push({id:l,data:{droppableContainer:o,value:u}})}}return s.sort(MHe)};function IHe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),o=a-r,l=s-n;if(r<a&&n<s){const d=t.width*t.height,u=e.width*e.height,h=o*l,p=h/(d+u-h);return Number(p.toFixed(4))}return 0}const $He=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const s of r){const{id:o}=s,l=n.get(o);if(l){const d=IHe(l,t);d>0&&a.push({id:o,data:{droppableContainer:s,value:d}})}}return a.sort(DHe)};function BHe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function UQ(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ka}function qHe(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return a.reduce((o,l)=>
2822({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...n})}}const FHe=qHe(1);function VQ(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zHe(e,t,n){const r=VQ(t);if(!r)return e;const{scaleX:a,scaleY:s,x:o,y:l}=r,d=e.left-o-(1-a)*parseFloat(n),u=e.top-l-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),h=a?e.width/a:e.width,p=s?e.height/s:e.height;return{width:h,height:p,top:u,right:d+h,bottom:u+p,left:d}}const HHe={ignoreTransform:!1};function Yf(e,t){t===void 0&&(t=HHe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:h}=si(e).getComputedStyle(e);u&&(n=zHe(n,u,h))}const{top:r,left:a,width:s,height:o,bottom:l,right:d}=n;return{top:r,left:a,width:s,height:o,bottom:l,right:d}}function Pq(e){return Yf(e,{ignoreTransform:!0})}function UHe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function VHe(e,t){return t===void 0&&(t=si(e).getComputedStyle(e)),t.position==="fixed"}function GHe(e,t){t===void 0&&(t=si(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const s=t[a];return typeof s=="string"?n.test(s):!1})}function $4(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(I4(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Tg(a)||FQ(a)||n.includes(a))return n;const s=si(e).getComputedStyle(a);return a!==e&&GHe(a,s)&&n.push(a),VHe(a,s)?n:r(a.parentNode)}return e?r(e):n}function GQ(e){const[t]=$4(e,1);return t??null}function CC(e){return!N1||!e?null:Gf(e)?e:R4(e)?I4(e)||e===Wf(e).scrollingElement?window:Tg(e)?e:null:null}function WQ(e){return Gf(e)?e.scrollX:e.scrollLeft}function YQ(e){return Gf(e)?e.scrollY:e.scrollTop}function o5(e){return{x:WQ(e),y:YQ(e)}}var mr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mr||(mr={}));function KQ(e){return!N1||!e?!1:e===document.scrollingElement}function XQ(e){const t={x:0,y:0},n=KQ(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:a,isLeft:s,isBottom:o,isRight:l,maxScroll:r,minScroll:t}}const WHe={x:.2,y:.2};function YHe(e,t,n,r,a){let{top:s,left:o,right:l,bottom:d}=n;r===void 0&&(r=10),a===void 0&&(a=WHe);const{isTop:u,isBottom:h,isLeft:p,isRight:g}=XQ(e),y={x:0,y:0},b={x:0,y:0},w={height:t.height*a.y,width:t.width*a.x};return!u&&s<=t.top+w.height?(y.y=mr.Backward,b.y=r*Math.abs((t.top+w.height-s)/w.height)):!h&&d>=t.bottom-w.height&&(y.y=mr.Forward,b.y=r*Math.abs((t.bottom-w.height-d)/w.height)),!g&&l>=t.right-w.width?(y.x=mr.Forward,b.x=r*Math.abs((t.right-w.width-l)/w.width)):!p&&o<=t.left+w.width&&(y.x=mr.Backward,b.x=r*Math.abs((t.left+w.width-o)/w.width)),{direction:y,speed:b}}function KHe(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:o}=window;return{top:0,left:0,right:s,bottom:o,width:s,height:o}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function ZQ(e){return e.reduce((t,n)=>Jd(t,o5(n)),Ka)}function XHe(e){return e.reduce((t,n)=>t+WQ(n),0)}function ZHe(e){return e.reduce((t,n)=>t+YQ(n),0)}function QQ(e,t){if(t===void 0&&(t=Yf),!e)return;const{top:n,left:r,bottom:a,right:s}=t(e);GQ(e)&&(a<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const QHe=[["x",["left","right"],XHe],["y",["top","bottom"],ZHe]];class B4{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=$4(n),a=ZQ(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,o,l]of QHe)for(const d of o)Object.defineProperty(this,d,{get:()=>{const u=l(r),h=a[s]-u;return this.rect[d]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Zp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>
2822{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function JHe(e){const{EventTarget:t}=si(e);return e instanceof t?e:Wf(e)}function kC(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ma;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ma||(ma={}));function Rq(e){e.preventDefault()}function eUe(e){e.stopPropagation()}var Ot;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ot||(Ot={}));const JQ={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},tUe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};class eJ{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Zp(Wf(n)),this.windowListeners=new Zp(si(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ma.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&QQ(r),n(Ka)}handleKeyDown(t){if(E1(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:s=JQ,coordinateGetter:o=tUe,scrollBehavior:l="smooth"}=a,{code:d}=t;if(s.end.includes(d)){this.handleEnd(t);return}if(s.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:u}=r.current,h=u?{x:u.left,y:u.top}:Ka;this.referenceCoordinates||(this.referenceCoordinates=h);const p=o(t,{active:n,context:r.current,currentCoordinates:h});if(p){const g=Ux(p,h),y={x:0,y:0},{scrollableAncestors:b}=r.current;for(const w of b){const j=t.code,{isTop:S,isRight:k,isLeft:N,isBottom:_,maxScroll:L,minScroll:E}=XQ(w),T=KHe(w),P={x:Math.min(j===Ot.Right?T.right-T.width/2:T.right,Math.max(j===Ot.Right?T.left:T.left+T.width/2,p.x)),y:Math.min(j===Ot.Down?T.bottom-T.height/2:T.bottom,Math.max(j===Ot.Down?T.top:T.top+T.height/2,p.y))},$=j===Ot.Right&&!k||j===Ot.Left&&!N,O=j===Ot.Down&&!_||j===Ot.Up&&!S;if($&&P.x!==p.x){const q=w.scrollLeft+g.x,D=j===Ot.Right&&q<=L.x||j===Ot.Left&&q>=E.x;if(D&&!g.y){w.scrollTo({left:q,behavior:l});return}D?y.x=w.scrollLeft-q:y.x=j===Ot.Right?w.scrollLeft-L.x:w.scrollLeft-E.x,y.x&&w.scrollBy({left:-y.x,behavior:l});break}else if(O&&P.y!==p.y){const q=w.scrollTop+g.y,D=j===Ot.Down&&q<=L.y||j===Ot.Up&&q>=E.y;if(D&&!g.x){w.scrollTo({top:q,behavior:l});return}D?y.y=w.scrollTop-q:y.y=j===Ot.Down?w.scrollTop-L.y:w.scrollTop-E.y,y.y&&w.scrollBy({top:-y.y,behavior:l});break}}this.handleMove(t,Jd(Ux(p,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}eJ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=JQ,onActivation:a}=t,{active:s}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const l=s.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function Iq(e){return!!(e&&"distance"in e)}function $q(e){return!!(e&&"delay"in e)}class q4{constructor(t,n,r){var a;r===void 0&&(r=JHe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:o}=s;this.props=t,this.events=n,this.document=Wf(o),this.documentListeners=new Zp(this.document),this.listeners=new Zp(r),this.windowListeners=new Zp(si(o)),this.initialCoordinates=(a=Vx(s))!=null?a:Ka,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ma.Resize,this.handleCancel),this.windowListeners.add(ma.DragStart,Rq),this.windowListeners.add(ma.VisibilityChange,this.handleCancel),this.windowListeners.add(ma.ContextMenu,Rq),this.documentListeners.add(ma.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if($q(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Iq(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ma.Click,eUe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ma.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:s}=this,{onMove:o,options:{activationConstraint:l}}=s;if(!a)return;const d=(n=Vx(t))!=null?n:Ka,u=Ux(a,d);if(!r&&l){if(Iq(l)){if(l.tolerance!=null&&kC(u,l.tolerance))return this.handleCancel();if(kC(u,l.distance))return this.handleStart()}if($q(l)&&kC(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),o(d)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const nUe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class F4 extends q4{constructor(t){const{event:n}=t,r=Wf(n.target);super(t,nUe,r)}}F4.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const rUe={move:{name:"mousemove"},end:{name:"mouseup"}};var l5;(function(e){e[e.RightClick=2]="RightClick"})(l5||(l5={}));class iUe extends q4{constructor(t){super(t,rUe,Wf(t.event.target))}}iUe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===l5.RightClick?!1:(r?.({event:n}),!0)}}];const NC={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class aUe extends q4{constructor(t){super(t,NC)}static setup(){return window.addEventListener(NC.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(NC.move.name,t)};function t(){}}}aUe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var Qp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Qp||(Qp={}));var Wx;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
2822sedTreeOrder"})(Wx||(Wx={}));function sUe(e){let{acceleration:t,activator:n=Qp.Pointer,canScroll:r,draggingRect:a,enabled:s,interval:o=5,order:l=Wx.TreeOrder,pointerCoordinates:d,scrollableAncestors:u,scrollableAncestorRects:h,delta:p,threshold:g}=e;const y=lUe({delta:p,disabled:!s}),[b,w]=gHe(),j=v.useRef({x:0,y:0}),S=v.useRef({x:0,y:0}),k=v.useMemo(()=>{switch(n){case Qp.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case Qp.DraggableRect:return a}},[n,a,d]),N=v.useRef(null),_=v.useCallback(()=>{const E=N.current;if(!E)return;const T=j.current.x*S.current.x,P=j.current.y*S.current.y;E.scrollBy(T,P)},[]),L=v.useMemo(()=>l===Wx.TreeOrder?[...u].reverse():u,[l,u]);v.useEffect(()=>{if(!s||!u.length||!k){w();return}for(const E of L){if(r?.(E)===!1)continue;const T=u.indexOf(E),P=h[T];if(!P)continue;const{direction:$,speed:O}=YHe(E,P,k,t,g);for(const q of["x","y"])y[q][$[q]]||(O[q]=0,$[q]=0);if(O.x>0||O.y>0){w(),N.current=E,b(_,o),j.current=O,S.current=$;return}}j.current={x:0,y:0},S.current={x:0,y:0},w()},[t,_,r,w,s,o,JSON.stringify(k),JSON.stringify(y),b,u,L,h,JSON.stringify(g)])}const oUe={x:{[mr.Backward]:!1,[mr.Forward]:!1},y:{[mr.Backward]:!1,[mr.Forward]:!1}};function lUe(e){let{delta:t,disabled:n}=e;const r=Hx(t);return Lg(a=>{if(n||!r||!a)return oUe;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[mr.Backward]:a.x[mr.Backward]||s.x===-1,[mr.Forward]:a.x[mr.Forward]||s.x===1},y:{[mr.Backward]:a.y[mr.Backward]||s.y===-1,[mr.Forward]:a.y[mr.Forward]||s.y===1}}},[n,t,r])}function cUe(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Lg(a=>{var s;return t==null?null:(s=r??a)!=null?s:null},[r,t])}function uUe(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,s=a.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...s]},[]),[e,t])}var Fm;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Fm||(Fm={}));var c5;(function(e){e.Optimized="optimized"})(c5||(c5={}));const Bq=new Map;function dUe(e,t){let{dragging:n,dependencies:r,config:a}=t;const[s,o]=v.useState(null),{frequency:l,measure:d,strategy:u}=a,h=v.useRef(e),p=j(),g=qm(p),y=v.useCallback(function(S){S===void 0&&(S=[]),!g.current&&o(k=>k===null?S:k.concat(S.filter(N=>!k.includes(N))))},[g]),b=v.useRef(null),w=Lg(S=>{if(p&&!n)return Bq;if(!S||S===Bq||h.current!==e||s!=null){const k=new Map;for(let N of e){if(!N)continue;if(s&&s.length>0&&!s.includes(N.id)&&N.rect.current){k.set(N.id,N.rect.current);continue}const _=N.node.current,L=_?new B4(d(_),_):null;N.rect.current=L,L&&k.set(N.id,L)}return k}return S},[e,s,n,p,d]);return v.useEffect(()=>{h.current=e},[e]),v.useEffect(()=>{p||y()},[n,p]),v.useEffect(()=>{s&&s.length>0&&o(null)},[JSON.stringify(s)]),v.useEffect(()=>{p||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{y(),b.current=null},l))},[l,p,y,...r]),{droppableRects:w,measureDroppableContainers:y,measuringScheduled:s!=null};function j(){switch(u){case Fm.Always:return!1;case Fm.BeforeDragging:return n;default:return!n}}}function z4(e,t){return Lg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function fUe(e,t){return z4(e,t)}function hUe(e){let{callback:t,disabled:n}=e;const r=A1(t),a=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return v.useEffect(()=>()=>a?.disconnect(),[a]),a}function _1(e){let{callback:t,disabled:n}=e;const r=A1(t),a=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return v.useEffect(()=>()=>a?.disconnect(),[a]),a}function pUe(e){return new B4(Yf(e),e)}function qq(e,t,n){t===void 0&&(t=pUe);const[r,a]=v.useState(null);function s(){a(d=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=d??n)!=null?u:null}const h=t(e);return JSON.stringify(d)===JSON.stringify(h)?d:h})}const o=hUe({callback(d){if(e)for(const u of d){const{type:h,target:p}=u;if(h==="childList"&&p instanceof HTMLElement&&p.contains(e)){s();break}}}}),l=_1({callback:s});return Ya(()=>{s(),e?(l?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),o?.disconnect())},[e]),r}function mUe(e){const t=z4(e);return UQ(e,t)}const Fq=[];function gUe(e){const t=v.useRef(e),n=Lg(r=>e?r&&r!==Fq&&e&&t.current&&e.parentNode===t.current.parentNode?r:$4(e):Fq,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function vUe(e){const[t,n]=v.useState(null),r=v.useRef(e),a=v.useCallback(s=>{const o=CC(s.target);o&&n(l=>l?(l.set(o,o5(o)),new Map(l)):null)},[]);return v.useEffect(()=>{const s=r.current;if(e!==s){o(s);const l=e.map(d=>{const u=CC(d);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,o5(u)]):null}).filter(d=>d!=null);n(l.length?new Map(l):null),r.current=e}return()=>{o(e),o(s)};function o(l){l.forEach(d=>{const u=CC(d);u?.removeEventListener("scroll",a)})}},[a,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,o)=>Jd(s,o),Ka):ZQ(e):Ka,[e,t])}function zq(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==Ka;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ux(e,n.current):Ka}function yUe(e){v.useEffect(()=>{if(!N1)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function xUe(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:s}
2822=r;return n[a]=o=>{s(o,t)},n},{}),[e,t])}function tJ(e){return v.useMemo(()=>e?UHe(e):null,[e])}const Hq=[];function bUe(e,t){t===void 0&&(t=Yf);const[n]=e,r=tJ(n?si(n):null),[a,s]=v.useState(Hq);function o(){s(()=>e.length?e.map(d=>KQ(d)?r:new B4(t(d),d)):Hq)}const l=_1({callback:o});return Ya(()=>{l?.disconnect(),o(),e.forEach(d=>l?.observe(d))},[e]),a}function nJ(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Tg(t)?t:e}function wUe(e){let{measure:t}=e;const[n,r]=v.useState(null),a=v.useCallback(u=>{for(const{target:h}of u)if(Tg(h)){r(p=>{const g=t(h);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),s=_1({callback:a}),o=v.useCallback(u=>{const h=nJ(u);s?.disconnect(),h&&s?.observe(h),r(h?t(h):null)},[t,s]),[l,d]=zx(o);return v.useMemo(()=>({nodeRef:l,rect:n,setRef:d}),[n,l,d])}const jUe=[{sensor:F4,options:{}},{sensor:eJ,options:{}}],SUe={current:{}},my={draggable:{measure:Pq},droppable:{measure:Pq,strategy:Fm.WhileDragging,frequency:c5.Optimized},dragOverlay:{measure:Yf}};class Jp extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const CUe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Jp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gx},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:my,measureDroppableContainers:Gx,windowRect:null,measuringScheduled:!1},rJ={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gx,draggableNodes:new Map,over:null,measureDroppableContainers:Gx},Mg=v.createContext(rJ),iJ=v.createContext(CUe);function kUe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Jp}}}function NUe(e,t){switch(t.type){case tr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case tr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case tr.DragEnd:case tr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Jp(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case tr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const o=new Jp(e.droppable.containers);return o.set(n,{...s,disabled:a}),{...e,droppable:{...e.droppable,containers:o}}}case tr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const s=new Jp(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function AUe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=v.useContext(Mg),s=Hx(r),o=Hx(n?.id);return v.useEffect(()=>{if(!t&&!r&&s&&o!=null){if(!E1(s)||document.activeElement===s.target)return;const l=a.get(o);if(!l)return;const{activatorNode:d,node:u}=l;if(!d.current&&!u.current)return;requestAnimationFrame(()=>{for(const h of[d.current,u.current]){if(!h)continue;const p=xHe(h);if(p){p.focus();break}}})}},[r,t,a,o,s]),null}function aJ(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,s)=>s({transform:a,...r}),n):n}function EUe(e){return v.useMemo(()=>({draggable:{...my.draggable,...e?.draggable},droppable:{...my.droppable,...e?.droppable},dragOverlay:{...my.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function _Ue(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const s=v.useRef(!1),{x:o,y:l}=typeof a=="boolean"?{x:a,y:a}:a;Ya(()=>
2822{if(!o&&!l||!t){s.current=!1;return}if(s.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const h=n(u),p=UQ(h,r);if(o||(p.x=0),l||(p.y=0),s.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=GQ(u);g&&g.scrollBy({top:p.y,left:p.x})}},[t,o,l,r,n])}const T1=v.createContext({...Ka,scaleX:1,scaleY:1});var wl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(wl||(wl={}));const TUe=v.memo(function(t){var n,r,a,s;let{id:o,accessibility:l,autoScroll:d=!0,children:u,sensors:h=jUe,collisionDetection:p=$He,measuring:g,modifiers:y,...b}=t;const w=v.useReducer(NUe,void 0,kUe),[j,S]=w,[k,N]=kHe(),[_,L]=v.useState(wl.Uninitialized),E=_===wl.Initialized,{draggable:{active:T,nodes:P,translate:$},droppable:{containers:O}}=j,q=T!=null?P.get(T):null,D=v.useRef({initial:null,translated:null}),z=v.useMemo(()=>{var sn;return T!=null?{id:T,data:(sn=q?.data)!=null?sn:SUe,rect:D}:null},[T,q]),V=v.useRef(null),[W,B]=v.useState(null),[H,G]=v.useState(null),K=qm(b,Object.values(b)),M=Og("DndDescribedBy",o),I=v.useMemo(()=>O.getEnabled(),[O]),X=EUe(g),{droppableRects:F,measureDroppableContainers:U,measuringScheduled:Z}=dUe(I,{dragging:E,dependencies:[$.x,$.y],config:X.droppable}),ee=cUe(P,T),ae=v.useMemo(()=>H?Vx(H):null,[H]),ye=$s(),J=fUe(ee,X.draggable.measure);_Ue({activeNode:T!=null?P.get(T):null,config:ye.layoutShiftCompensation,initialRect:J,measure:X.draggable.measure});const re=qq(ee,X.draggable.measure,J),ge=qq(ee?ee.parentElement:null),Q=v.useRef({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Se=O.getNodeFor((n=Q.current.over)==null?void 0:n.id),je=wUe({measure:X.dragOverlay.measure}),Ne=(r=je.nodeRef.current)!=null?r:ee,He=E?(a=je.rect)!=null?a:re:null,ct=!!(je.nodeRef.current&&je.rect),xt=mUe(ct?null:re),Ct=tJ(Ne?si(Ne):null),Be=gUe(E?Se??ee:null),qe=bUe(Be),Tt=aJ(y,{transform:{x:$.x-xt.x,y:$.y-xt.y,scaleX:1,scaleY:1},activatorEvent:H,active:z,activeNodeRect:re,containerNodeRect:ge,draggingNodeRect:He,over:Q.current.over,overlayNodeRect:je.rect,scrollableAncestors:Be,scrollableAncestorRects:qe,windowRect:Ct}),Kn=ae?Jd(ae,$):null,Xt=vUe(Be),Me=zq(Xt),he=zq(Xt,[re]),Ee=Jd(Tt,Me),ze=He?FHe(He,Tt):null,Qe=z&&ze?p({active:z,collisionRect:ze,droppableRects:F,droppableContainers:I,pointerCoordinates:Kn}):null,lt=PHe(Qe,"id"),[Ut,$n]=v.useState(null),En=ct?Tt:Jd(Tt,he),kt=BHe(En,(s=Ut?.rect)!=null?s:null,re),jt=v.useRef(null),at=v.useCallback((sn,on)=>{let{sensor:Bn,options:wr}=on;if(V.current==null)return;const Rr=P.get(V.current);if(!Rr)return;const _n=sn.nativeEvent,Ir=new Bn({active:V.current,activeNode:Rr,event:_n,options:wr,context:Q,onAbort(hn){if(!P.get(hn))return;const{onDragAbort:Zr}=K.current,li={id:hn};Zr?.(li),k({type:"onDragAbort",event:li})},onPending(hn,Ti,Zr,li){if(!P.get(hn))return;const{onDragPending:Li}=K.current,Oi={id:hn,constraint:Ti,initialCoordinates:Zr,offset:li};Li?.(Oi),k({type:"onDragPending",event:Oi})},onStart(hn){const Ti=V.current;if(Ti==null)return;const Zr=P.get(Ti);if(!Zr)return;const{onDragStart:li}=K.current,pn={activatorEvent:_n,active:{id:Ti,data:Zr.data,rect:D}};$c.unstable_batchedUpdates(()=>{li?.(pn),L(wl.Initializing),S({type:tr.DragStart,initialCoordinates:hn,active:Ti}),k({type:"onDragStart",event:pn}),B(jt.current),G(_n)})},onMove(hn){S({type:tr.DragMove,coordinates:hn})},onEnd:jr(tr.DragEnd),onCancel:jr(tr.DragCancel)});jt.current=Ir;function jr(hn){return async function(){const{active:Zr,collisions:li,over:pn,scrollAdjustedTranslate:Li}=Q.current;let Oi=null;if(Zr&&Li){const{cancelDrop:rs}=K.current;Oi={activatorEvent:_n,active:Zr,collisions:li,delta:Li,over:pn},hn===tr.DragEnd&&typeof rs=="function"&&await Promise.resolve(rs(Oi))&&(hn=tr.DragCancel)}V.current=null,$c.unstable_batchedUpdates(()=>{S({type:hn}),L(wl.Uninitialized),$n(null),B(null),G(null),jt.current=null;const rs=hn===tr.DragEnd?"onDragEnd":"onDragCancel";if(Oi){const ci=K.current[rs];ci?.(Oi),k({type:rs,event:Oi})}})}}},[P]),ur=v.useCallback((sn,on)=>(Bn,wr)=>{const Rr=Bn.nativeEvent,_n=P.get(wr);if(V.current!==null||!_n||Rr.dndKit||Rr.defaultPrevented)return;const Ir={active:_n};sn(Bn,on.options,Ir)===!0&&(Rr.dndKit={capturedBy:on.sensor},V.current=wr,at(Bn,on))},[P,at]),fn=uUe(h,ur);yUe(h),Ya(()=>{re&&_===wl.Initializing&&L(wl.Initialized)},[re,_]),v.useEffect(()=>{const{onDragMove:sn}=K.current,{active:on,activatorEvent:Bn,collisions:wr,over:Rr}=Q.current;if(!on||!Bn)return;const _n={active:on,activatorEvent:Bn,collisions:wr,delta:{x:Ee.x,y:Ee.
2822y},over:Rr};$c.unstable_batchedUpdates(()=>{sn?.(_n),k({type:"onDragMove",event:_n})})},[Ee.x,Ee.y]),v.useEffect(()=>{const{active:sn,activatorEvent:on,collisions:Bn,droppableContainers:wr,scrollAdjustedTranslate:Rr}=Q.current;if(!sn||V.current==null||!on||!Rr)return;const{onDragOver:_n}=K.current,Ir=wr.get(lt),jr=Ir&&Ir.rect.current?{id:Ir.id,rect:Ir.rect.current,data:Ir.data,disabled:Ir.disabled}:null,hn={active:sn,activatorEvent:on,collisions:Bn,delta:{x:Rr.x,y:Rr.y},over:jr};$c.unstable_batchedUpdates(()=>{$n(jr),_n?.(hn),k({type:"onDragOver",event:hn})})},[lt]),Ya(()=>{Q.current={activatorEvent:H,active:z,activeNode:ee,collisionRect:ze,collisions:Qe,droppableRects:F,draggableNodes:P,draggingNode:Ne,draggingNodeRect:He,droppableContainers:O,over:Ut,scrollableAncestors:Be,scrollAdjustedTranslate:Ee},D.current={initial:He,translated:ze}},[z,ee,Qe,ze,P,Ne,He,F,O,Ut,Be,Ee]),sUe({...ye,delta:$,draggingRect:ze,pointerCoordinates:Kn,scrollableAncestors:Be,scrollableAncestorRects:qe});const Is=v.useMemo(()=>({active:z,activeNode:ee,activeNodeRect:re,activatorEvent:H,collisions:Qe,containerNodeRect:ge,dragOverlay:je,draggableNodes:P,droppableContainers:O,droppableRects:F,over:Ut,measureDroppableContainers:U,scrollableAncestors:Be,scrollableAncestorRects:qe,measuringConfiguration:X,measuringScheduled:Z,windowRect:Ct}),[z,ee,re,H,Qe,ge,je,P,O,F,Ut,U,Be,qe,X,Z,Ct]),La=v.useMemo(()=>({activatorEvent:H,activators:fn,active:z,activeNodeRect:re,ariaDescribedById:{draggable:M},dispatch:S,draggableNodes:P,over:Ut,measureDroppableContainers:U}),[H,fn,z,re,S,M,P,Ut,U]);return ft.createElement(HQ.Provider,{value:N},ft.createElement(Mg.Provider,{value:La},ft.createElement(iJ.Provider,{value:Is},ft.createElement(T1.Provider,{value:kt},u)),ft.createElement(AUe,{disabled:l?.restoreFocus===!1})),ft.createElement(EHe,{...l,hiddenTextDescribedById:M}));function $s(){const sn=W?.autoScrollEnabled===!1,on=typeof d=="object"?d.enabled===!1:d===!1,Bn=E&&!sn&&!on;return typeof d=="object"?{...d,enabled:Bn}:{enabled:Bn}}}),LUe=v.createContext(null),Uq="button",OUe="Draggable";function MUe(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const s=Og(OUe),{activators:o,activatorEvent:l,active:d,activeNodeRect:u,ariaDescribedById:h,draggableNodes:p,over:g}=v.useContext(Mg),{role:y=Uq,roleDescription:b="draggable",tabIndex:w=0}=a??{},j=d?.id===t,S=v.useContext(j?T1:LUe),[k,N]=zx(),[_,L]=zx(),E=xUe(o,t),T=qm(n);Ya(()=>(p.set(t,{id:t,key:s,node:k,activatorNode:_,data:T}),()=>{const $=p.get(t);$&&$.key===s&&p.delete(t)}),[p,t]);const P=v.useMemo(()=>({role:y,tabIndex:w,"aria-disabled":r,"aria-pressed":j&&y===Uq?!0:void 0,"aria-roledescription":b,"aria-describedby":h.draggable}),[r,y,w,j,b,h.draggable]);return{active:d,activatorEvent:l,activeNodeRect:u,attributes:P,isDragging:j,listeners:r?void 0:E,node:k,over:g,setNodeRef:N,setActivatorNodeRef:L,transform:S}}function sJ(){return v.useContext(iJ)}const DUe="Droppable",PUe={timeout:25};function RUe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const s=Og(DUe),{active:o,dispatch:l,over:d,measureDroppableContainers:u}=v.useContext(Mg),h=v.useRef({disabled:n}),p=v.useRef(!1),g=v.useRef(null),y=v.useRef(null),{disabled:b,updateMeasurementsFor:w,timeout:j}={...PUe,...a},S=qm(w??r),k=v.useCallback(()=>{if(!p.current){p.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),y.current=null},j)},[j]),N=_1({callback:k,disabled:b||!o}),_=v.useCallback((P,$)=>{N&&($&&(N.unobserve($),p.current=!1),P&&N.observe(P))},[N]),[L,E]=zx(_),T=qm(t);return v.useEffect(()=>{!N||!L.current||(N.disconnect(),p.current=!1,N.observe(L.current))},[L,N]),v.useEffect(()=>(l({type:tr.RegisterDroppable,element:{id:r,key:s,disabled:n,node:L,rect:g,data:T}}),()=>l({type:tr.UnregisterDroppable,key:s,id:r})),[r]),v.useEffect(()=>{n!==h.current.disabled&&(l({type:tr.SetDroppableDisabled,id:r,key:s,disabled:n}),h.current.disabled=n)},[r,s,n,l]),{active:o,rect:g,isOver:d?.id===r,node:L,over:d,setNodeRef:E}}function IUe(e){let{animation:t,children:n}=e;const[r,a]=v.useState(null),[s,o]=v.useState(null),l=Hx(n);return!n&&!r&&l&&a(l),Ya(()=>
2822{if(!s)return;const d=r?.key,u=r?.props.id;if(d==null||u==null){a(null);return}Promise.resolve(t(u,s)).then(()=>{a(null)})},[t,r,s]),ft.createElement(ft.Fragment,null,n,r?v.cloneElement(r,{ref:o}):null)}const $Ue={x:0,y:0,scaleX:1,scaleY:1};function BUe(e){let{children:t}=e;return ft.createElement(Mg.Provider,{value:rJ},ft.createElement(T1.Provider,{value:$Ue},t))}const qUe={position:"fixed",touchAction:"none"},FUe=e=>E1(e)?"transform 250ms ease":void 0,zUe=v.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:s,className:o,rect:l,style:d,transform:u,transition:h=FUe}=e;if(!l)return null;const p=a?u:{...u,scaleX:1,scaleY:1},g={...qUe,width:l.width,height:l.height,top:l.top,left:l.left,transform:Fl.Transform.toString(p),transformOrigin:a&&r?OHe(r,l):void 0,transition:typeof h=="function"?h(r):h,...d};return ft.createElement(n,{className:o,style:g,ref:t},s)}),HUe=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:s,className:o}=e;if(s!=null&&s.active)for(const[l,d]of Object.entries(s.active))d!==void 0&&(a[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,d));if(s!=null&&s.dragOverlay)for(const[l,d]of Object.entries(s.dragOverlay))d!==void 0&&r.node.style.setProperty(l,d);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[d,u]of Object.entries(a))n.node.style.setProperty(d,u);o!=null&&o.active&&n.node.classList.remove(o.active)}},UUe=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Fl.Transform.toString(t)},{transform:Fl.Transform.toString(n)}]},VUe={duration:250,easing:"ease",keyframes:UUe,sideEffects:HUe({styles:{active:{opacity:"0"}}})};function GUe(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return A1((s,o)=>{if(t===null)return;const l=n.get(s);if(!l)return;const d=l.node.current;if(!d)return;const u=nJ(o);if(!u)return;const{transform:h}=si(o).getComputedStyle(o),p=VQ(h);if(!p)return;const g=typeof t=="function"?t:WUe(t);return QQ(d,a.draggable.measure),g({active:{id:s,data:l.data,node:d,rect:a.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:p})})}function WUe(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...VUe,...e};return s=>{let{active:o,dragOverlay:l,transform:d,...u}=s;if(!t)return;const h={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},p={scaleX:d.scaleX!==1?o.rect.width*d.scaleX/l.rect.width:1,scaleY:d.scaleY!==1?o.rect.height*d.scaleY/l.rect.height:1},g={x:d.x-h.x,y:d.y-h.y,...p},y=a({...u,active:o,dragOverlay:l,transform:{initial:d,final:g}}),[b]=y,w=y[y.length-1];if(JSON.stringify(b)===JSON.stringify(w))return;const j=r?.({active:o,dragOverlay:l,...u}),S=l.node.animate(y,{duration:t,easing:n,fill:"forwards"});return new Promise(k=>{S.onfinish=()=>{j?.(),k()}})}}let Vq=0;function YUe(e){return v.useMemo(()=>{if(e!=null)return Vq++,Vq},[e])}const KUe=ft.memo(e=>
2822{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:s,modifiers:o,wrapperElement:l="div",className:d,zIndex:u=999}=e;const{activatorEvent:h,active:p,activeNodeRect:g,containerNodeRect:y,draggableNodes:b,droppableContainers:w,dragOverlay:j,over:S,measuringConfiguration:k,scrollableAncestors:N,scrollableAncestorRects:_,windowRect:L}=sJ(),E=v.useContext(T1),T=YUe(p?.id),P=aJ(o,{activatorEvent:h,active:p,activeNodeRect:g,containerNodeRect:y,draggingNodeRect:j.rect,over:S,overlayNodeRect:j.rect,scrollableAncestors:N,scrollableAncestorRects:_,transform:E,windowRect:L}),$=z4(g),O=GUe({config:r,draggableNodes:b,droppableContainers:w,measuringConfiguration:k}),q=$?j.setRef:void 0;return ft.createElement(BUe,null,ft.createElement(IUe,{animation:O},p&&T?ft.createElement(zUe,{key:T,id:p.id,ref:q,as:l,activatorEvent:h,adjustScale:t,className:d,transition:s,rect:$,style:{zIndex:u,...a},transform:P},n):null))});function H4(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function XUe(e,t){return e.reduce((n,r,a)=>{const s=t.get(r);return s&&(n[a]=s),n},Array(e.length))}function M0(e){return e!==null&&e>=0}function ZUe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function QUe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const U4=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const s=H4(t,r,n),o=t[a],l=s[a];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},oJ="Sortable",lJ=ft.createContext({activeIndex:-1,containerId:oJ,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:U4,disabled:{draggable:!1,droppable:!1}});function JUe(e){let{children:t,id:n,items:r,strategy:a=U4,disabled:s=!1}=e;const{active:o,dragOverlay:l,droppableRects:d,over:u,measureDroppableContainers:h}=sJ(),p=Og(oJ,n),g=l.rect!==null,y=v.useMemo(()=>r.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),b=o!=null,w=o?y.indexOf(o.id):-1,j=u?y.indexOf(u.id):-1,S=v.useRef(y),k=!ZUe(y,S.current),N=j!==-1&&w===-1||k,_=QUe(s);Ya(()=>{k&&b&&h(y)},[k,y,b,h]),v.useEffect(()=>{S.current=y},[y]);const L=v.useMemo(()=>({activeIndex:w,containerId:p,disabled:_,disableTransforms:N,items:y,overIndex:j,useDragOverlay:g,sortedRects:XUe(y,d),strategy:a}),[w,p,_.draggable,_.droppable,N,y,j,d,g,a]);return ft.createElement(lJ.Provider,{value:L},t)}const eVe=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return H4(n,r,a).indexOf(t)},tVe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:s,newIndex:o,previousItems:l,previousContainerId:d,transition:u}=e;return!u||!r||l!==s&&a===o?!1:n?!0:o!==a&&t===d},nVe={duration:200,easing:"ease"},cJ="transform",rVe=Fl.Transition.toString({property:cJ,duration:0,easing:"linear"}),iVe={roleDescription:"sortable"};function aVe(e){let{disabled:t,index:n,node:r,rect:a}=e;const[s,o]=v.useState(null),l=v.useRef(n);return Ya(()=>{if(!t&&n!==l.current&&r.current){const d=a.current;if(d){const u=Yf(r.current,{ignoreTransform:!0}),h={x:d.left-u.left,y:d.top-u.top,scaleX:d.width/u.width,scaleY:d.height/u.height};(h.x||h.y)&&o(h)}}n!==l.current&&(l.current=n)},[t,n,r,a]),v.useEffect(()=>{s&&o(null)},[s]),s}function sVe(e){let{animateLayoutChanges:t=tVe,attributes:n,disabled:r,data:a,getNewIndex:s=eVe,id:o,strategy:l,resizeObserverConfig:d,transition:u=nVe}=e;const{items:h,containerId:p,activeIndex:g,disabled:y,disableTransforms:b,sortedRects:w,overIndex:j,useDragOverlay:S,strategy:k}=v.useContext(lJ),N=oVe(r,y),_=h.indexOf(o),L=v.useMemo(()=>({sortable:{containerId:p,index:_,items:h},...a}),[p,a,_,h]),E=v.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:T,node:P,isOver:$,setNodeRef:O}=RUe({id:o,data:L,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...d}}),{active:q,activatorEvent:D,activeNodeRect:z,attributes:V,setNodeRef:W,listeners:B,isDragging:H,over:G,setActivatorNodeRef:K,transform:M}=MUe({id:o,data:L,attributes:{...iVe,...n},disabled:N.draggable}),I=mHe(O,W),X=!!q,F=X&&!b&&M0(g)&&M0(j),U=!S&&H,Z=U&&F?M:null,ae=F?Z??(l??k)({rects:w,activeNodeRect:z,activeIndex:g,overIndex:j,index:_}):null,ye=M0(g)&&M0(j)?s({id:o,items:h,activeIndex:g,overIndex:j}):_,J=q?.id,re=v.useRef({activeId:J,items:h,newIndex:ye,containerId:p}),ge=h!==re.current.items,Q=t({active:q,containerId:p,isDragging:H,isSorting:X,id:o,index:_,items:h,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:u,wasDragging:re.current.activeId!=null}),Se=aVe({disabled:!Q,index:_,node:P,rect:T});return v.useEffect(()=>{X&&re.current.newIndex!==ye&&(re.current.newIndex=ye),p!==re.current.containerId&&(re.current.containerId=p),h!==re.current.items&&(re.current.items=h)},[X,ye,p,h]),v.useEffect(()=>{if(J===re.current.activeId)return;if(J!=null&&re.current.activeId==null){re.current.activeId=J;return}const Ne=setTimeout(()=>{re.current.activeId=J},50);return()=>clearTimeout(Ne)},[J]),{active:q,activeIndex:g,attributes:V,data:L,rect:T,index:_,newIndex:ye,items:h,isOver:$,isSorting:X,isDragging:H,listeners:B,node:P,overIndex:j,over:G,setNodeRef:I,setActivatorNodeRef:K,setDroppableNodeRef:O,setDraggableNodeRef:W,transform:Se??ae,transition:je()};function je(){if(Se||ge&&re.current.newIndex===_)return rVe;if(!(U&&!E1(D)||!u)&&(X||Q))return Fl.Transition.toString({...u,property:cJ})}}function oVe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const Bd=e=>`${e.name}::${e.role}`,lVe=e=>i.jsx("div",{className:"absolute top-0 left-0 z-10 m-3 p-1.5 rounded-[4px] bg-gray-100/90 hover:bg-gray-200 cursor-grab active:cursor-grabbing touch-none",title:"Drag to reorder",...e,children:i.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"
2822currentColor",className:"text-gray-500",children:[i.jsx("circle",{cx:"8",cy:"6",r:"1.5"}),i.jsx("circle",{cx:"16",cy:"6",r:"1.5"}),i.jsx("circle",{cx:"8",cy:"12",r:"1.5"}),i.jsx("circle",{cx:"16",cy:"12",r:"1.5"}),i.jsx("circle",{cx:"8",cy:"18",r:"1.5"}),i.jsx("circle",{cx:"16",cy:"18",r:"1.5"})]})}),uJ=({official:e,index:t,canDrag:n,dragHandleProps:r,isOverlay:a,isDragging:s,activeDropdownIndex:o,setActiveDropdownIndex:l,openEditModal:d,deleteItem:u})=>i.jsx("div",{className:`bg-white relative ${s&&!a?"opacity-40":""} ${a?"shadow-xl":""}`,children:i.jsx("div",{className:"flex flex-col items-center justify-between w-full",children:i.jsxs("div",{className:"flex flex-col w-full gap-4",children:[i.jsx("div",{className:"bg-gray-100 relative h-[450px]",children:e.photo?i.jsx("img",{src:e.photo,alt:e.name,className:"w-full h-full object-cover object-top"}):i.jsx("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center text-gray-400",children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),i.jsx("circle",{cx:"12",cy:"7",r:"4"})]})})}),n&&i.jsx(lVe,{...r}),!a&&i.jsx("div",{className:"absolute top-0 right-0 flex",children:i.jsxs("div",{className:"relative more-actions-container flex justify-center pb-3",children:[i.jsxs("button",{className:"m-3 flex items-center gap-[2px] text-[10px] font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 px-2 py-1.5 rounded-[4px] cursor-pointer uppercase tracking-[1px] pl-2.5",onClick:()=>l(o===t?null:t),children:["Actions",i.jsx(ar,{fontSize:11,className:"mt-0"})]}),o===t&&i.jsxs("div",{className:"absolute top-[45px] right-3 mb-2 w-36 bg-white rounded-md z-50 border border-gray-100 py-1",children:[i.jsxs("button",{className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center gap-2 cursor-pointer",onClick:()=>{d(t),l(null)},children:[i.jsx(Do,{fontSize:10,strokeWidth:1.8}),"Edit"]}),i.jsxs("button",{className:"w-full text-left px-4 py-2 text-sm text-red-600 hover:bg-red-50 flex items-center gap-2 cursor-pointer",onClick:()=>{u(t),l(null)},children:[i.jsx(nu,{fontSize:10,strokeWidth:1.8}),"Delete"]})]})]})}),i.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10",children:i.jsxs("div",{className:"flex flex-col mx-auto p-5 gap-0.5 bg-white",children:[i.jsx("div",{className:"font-semibold text-[15px] leading-[140%] text-gray-800",children:e.name}),i.jsx("div",{className:"text-gray-500 text-[14px]",children:e.role})]})})]})})}),cVe=({official:e,index:t,canDrag:n,...r})=>{const{attributes:a,listeners:s,setNodeRef:o,transform:l,transition:d,isDragging:u}=sVe({id:Bd(e),disabled:!n}),h={transform:Fl.Transform.toString(l),transition:d,zIndex:u?30:void 0};return i.jsx("div",{ref:o,style:h,children:i.jsx(uJ,{official:e,index:t,canDrag:n,dragHandleProps:{...a,...s},isDragging:u,...r})})},uVe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState(!1),[l,d]=v.useState(!1),[u,h]=v.useState({}),[p,g]=v.useState(0),[y,b]=v.useState([]),[w,j]=v.useState(""),[S,k]=v.useState(""),[N,_]=v.useState(""),[L,E]=v.useState(null);v.useEffect(()=>{const Z=ee=>{ee.target.closest(".more-actions-container")||E(null)};return window.addEventListener("click",Z,!0),()=>window.removeEventListener("click",Z,!0)},[]);const T=Z=>{g(Z),h(t.people[Z]),d(!0),j(t.people[Z].photo)},P=()=>{h({}),j(""),b([]),d(!1)},$=()=>{h({}),j(""),b([]),o(!1)},O=Z=>{if(Z.target.files.length){b(Z.target.files);const ee=window.URL.createObjectURL(Z.target.files[0]);j(ee)}},q=Z=>Z.replaceAll(" ","").replaceAll(",","_").replaceAll("&","_").toLowerCase(),D=()=>{if(y.length){const Z=y[0];let ee=q(u.name);a(!0),wa(Z,ee).then(ae=>{ae.status==="ok"?(u.photo=ae.url,X()):(ie.error(ae.message||"Failed to upload photo. Please try again."),a(!1))}).catch(ae=>{ie.error(ae.message||"Failed to upload photo. Please try again."),a(!1)})}else return alert("You must add a photo"),!1},z=()=>{document.getElementById("file").click()},V=t?.people?.filter(Z=>{if(!S)return!0;const ee=S.toLowerCase();return Z.name&&Z.name.toLowerCase().includes(ee)||Z.role&&Z.role.toLowerCase().includes(ee)})||[],W=Z=>{h(ee=>({...u,[Z.target.name]:Z.target.value}))};v.useEffect(()=>{N!==""&&U()},[N]);const[B,H]=v.useState(null),G=THe(_He(F4,{activationConstraint:{distance:5}})),K=Z=>{H(Z.active.id)},M=Z=>{H(null);const{active:ee,over:ae}=Z;if(!ae||ee.id===ae.id)return;const ye=V.findIndex(re=>Bd(re)===ee.id),J=V.findIndex(re=>Bd(re)===ae.id);ye===-1||J===-1||(t.people=H4(V,ye,J),n({...t}),_("reordered principal officers"))},I=Z=>{const ee=t.people[Z];
2822confirm(`Do you want to delete ${ee.name}`)&&(t.people=t.people.filter((ye,J)=>Z!==J),_(`deleted principal officer - ${ee.name} (${ee.role})`))};v.useEffect(()=>{n(e)},[e]);const X=()=>{t.people.push(u),_(`added new principal officer - ${u.name} (${u.role})`)},F=()=>{if(!y.length)t.people[p]=u,_(`updated principal officer - ${u.name} / (${u.role})`);else{const Z=y[0];let ee=q(u.name);a(!0),wa(Z,ee).then(ae=>{ae.status==="ok"?(u.photo=ae.url,t.people[p]=u,_(`updated photo for principal officer - ${u.name} (${u.role})`)):(ie.error(ae.message||"Failed to upload photo. Please try again."),a(!1))}).catch(ae=>{ie.error(ae.message||"Failed to upload photo. Please try again."),a(!1)})}},U=()=>{a(!0),ki(t._id,t,N).then(Z=>{a(!1),$(),P(),_("")}).catch(Z=>{a(!1),ie.error(Z.message||"Failed to update officer. Please try again."),console.error("Update error:",Z)})};return i.jsxs("div",{className:"",children:[r&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-99",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Manage Principal Officers -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Click on an item to load it"})]}),i.jsx("div",{className:" h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search items...",value:S,onChange:k})}),i.jsxs("button",{onClick:()=>o(!0),className:"bg-green-800 text-[13px] cursor-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Official"]})]}),s?i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:" Add Official "}),i.jsxs("div",{className:"closeModal",onClick:()=>$(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("div",{className:"official__area",onClick:()=>z(),children:[i.jsx("img",{src:w,alt:""}),i.jsx("span",{children:"Edit Image"})]}),i.jsx("input",{type:"file",id:"file",accept:"image/*",name:"file",onChange:Z=>O(Z),hidden:!0}),i.jsxs("form",{className:"people__zone",children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Fullame "}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Fullname",value:u.name,onChange:Z=>W(Z)})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Role / Designation "}),i.jsx("input",{type:"text",name:"role",placeholder:"Enter Role / Designation",value:u.role,onChange:Z=>W(Z)})]}),i.jsxs("div",{className:"form__child submitAction",onClick:D,children:[" ","Add Official"," "]})]})]})}):null,l?i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:" Edit Official Details "}),i.jsxs("div",{className:"closeModal",onClick:()=>P(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("div",{className:"official__area",onClick:()=>z(),children:[i.jsx("img",{src:w,alt:""}),i.jsx("span",{children:"Edit Image"})]}),i.jsx("input",{type:"file",id:"file",accept:"image/*",name:"file",onChange:Z=>O(Z),hidden:!0}),i.jsxs("form",{className:"people__zone",children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Fullame "}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Fullname",value:u.name,onChange:Z=>W(Z)})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{htmlFor:"name",children:" Role / Designation "}),i.jsx("input",{type:"text",name:"role",placeholder:"Enter Role / Designation",value:u.role,onChange:Z=>W(Z)})]}),i.jsxs("div",{className:"form__child submitAction",onClick:F,children:[" ","Save Changes"," "]})]})]})}):null,!S&&V.length>1&&i.jsx("div",{className:"text-[13px] text-gray-500 mt-4",children:"Drag a card to reorder officials."}),i.jsxs(TUe,{sensors:G,collisionDetection:RHe,onDragStart:K,onDragEnd:M,onDragCancel:()=>H(null),children:[i.jsx(JUe,{items:V.map(Bd),strategy:U4,children:i.jsx("div",{className:"tableData grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-5 mt-10",children:V.length>0?V.map((Z,ee)=>i.jsx(cVe,{official:Z,index:ee,canDrag:!S,activeDropdownIndex:L,setActiveDropdownIndex:E,openEditModal:T,deleteItem:I},Bd(Z))):i.jsx("div",{className:"w-full text-[16px] text-gray-600",children:S?"No matching officials found.":"No officials available."})})}),i.jsx(KUe,{children:B?(()=>{const Z=V.find(ee=>Bd(ee)===B);return Z?i.jsx("div",{className:"w-[300px]",children:i.jsx(uJ,{official:Z,canDrag:!0,isOverlay:!0})}):null})():null})]})]})},Yx="/assets/pdff-CrI15afP.png",Gq=50*1024*1024,dVe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState(!1),[l,d]=v.useState(!1),[u,h]=v.useState({name:"",url:""}),[p,g]=v.useState(null),[y,b]=v.useState(0),[w,j]=v.useState(""),[S,k]=v.useState(""),[N,_]=v.useState([]),[L,E]=v.useState(!1),T=v.useRef(null);v.useEffect(()=>{n(e)},[e]);const P=()=>{_([]),o(!0)},$=()=>{_([]),o(!1),E(!1)},O=U=>{const Z=Array.from(U.target.files),ee=[];Z.forEach(ae=>{if(ae.size>Gq){ie.error(`"${ae.name}" exceeds the 50 MB limit and was skipped.`);return}ee.push({id:`${ae.name}-${ae.size}-${Date.now()}-${Math.random()}`,file:ae,name:ae.name.replace(/\.[^/.]+$/,""),status:"pending",progress:0,url:"",error:""})}),_(ae=>[...ae,...ee]),U.target.value=""},q=U=>{_(Z=>Z.filter(ee=>ee.id!==U))},D=(U,Z)=>{_(ee=>ee.map(ae=>ae.id===U?{...ae,name:Z}:ae))},z=async()=>{const U=N.filter(Z=>Z.status==="pending");U.length&&(E(!0),await Promise.all(U.map(async Z=>{_(ee=>ee.map(ae=>ae.id===Z.id?{...ae,status:"uploading"}:ae));try{const ee=await vm(Z.file,`${e.fullname}/resources`,ae=>{_(ye=>ye.map(J=>J.id===Z.id?{...J,progress:ae}:J))});_(ae=>ae.map(ye=>ye.id===Z.id?{...ye,status:"done",progress:100,url:ee.data.url}:ye))}catch(ee){_(ae=>ae.map(ye=>ye.id===Z.id?{...ye,status:"error",error:ee.message||"Upload failed"}:ye))}})),E(!1))};v.useEffect(()=>{if(!N.length||!N.every(ae=>ae.status==="done"||ae.status==="error")||L)return;const Z=N.filter(ae=>ae.status==="done");
2822if(!Z.length)return;const ee=Z.map(ae=>({name:ae.name,url:ae.url}));n(ae=>({...ae,resources:[...ae.resources||[],...ee]})),k(`batch uploaded ${Z.length} resource(s)`),$()},[N,L]);const V=U=>{b(U),h(t.resources[U]),g(null),d(!0)},W=()=>{h({name:"",url:""}),g(null),d(!1)},B=U=>{const Z=U.target.files[0];if(Z){if(Z.size>Gq){ie.error("File exceeds the 50 MB limit."),U.target.value="";return}g(Z),h(ee=>({...ee,name:Z.name}))}},H=async U=>{U.preventDefault(),a(!0);try{if(p){const Z=await vm(p,`${e.fullname}/resources`,null);u.url=Z.data.url}t.resources[y]={...u},k(`updated resource - ${u.name}`),W()}catch(Z){ie.error(Z.message||"Error updating resource. Please try again."),a(!1)}},G=async U=>{const Z=t.resources[U];if(window.confirm("Are you sure you want to delete this resource?"))try{a(!0);const ee=t.resources.filter((ae,ye)=>ye!==U);n(ae=>({...ae,resources:ee})),k(`deleted resource - ${Z.name}`)}catch{ie.error("Failed to delete resource. Please try again."),a(!1)}};v.useEffect(()=>{S!==""&&K()},[S]);const K=async()=>{try{a(!0),await ki(t._id,t,S),k("")}catch{ie.error("Failed to update resources. Please try again.")}finally{a(!1)}},M=U=>{h(Z=>({...Z,[U.target.name]:U.target.value}))},I=t?.resources?.filter(U=>w?U.name?.toLowerCase().includes(w.toLowerCase()):!0)||[],X=N.length>0&&N.every(U=>U.status==="done"||U.status==="error"),F=N.some(U=>U.status==="pending");return i.jsx("div",{children:i.jsxs("div",{className:"table__main__body",children:[s&&i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",style:{maxWidth:"560px",width:"100%"},children:[i.jsx("div",{className:"topic",children:"Add Documents"}),i.jsx("div",{className:"closeModal",onClick:$,children:i.jsx(et,{})}),!L&&i.jsxs("div",{style:{border:"2px dashed #d1d5db",borderRadius:"8px",padding:"24px",textAlign:"center",cursor:"pointer",marginBottom:"16px",background:"#fafafa"},onClick:()=>T.current?.click(),children:[i.jsx(vr,{style:{margin:"0 auto 8px",color:"#9ca3af"},width:28,height:28}),i.jsx("p",{style:{fontSize:"13px",color:"#6b7280",margin:0},children:"Click to select PDFs  · multiple files supported"}),i.jsx("input",{ref:T,type:"file",accept:"application/pdf",multiple:!0,style:{display:"none"},onChange:O})]}),N.length>0&&i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",maxHeight:"320px",overflowY:"auto",marginBottom:"16px"},children:N.map(U=>i.jsxs("div",{style:{background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:"8px",padding:"12px"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:U.status==="pending"?"6px":"8px"},children:[i.jsx("img",{src:Yx,alt:"",style:{width:"28px",flexShrink:0}}),U.status==="pending"?i.jsx("input",{type:"text",value:U.name,onChange:Z=>D(U.id,Z.target.value),style:{flex:1,border:"1px solid #d1d5db",borderRadius:"5px",padding:"6px 8px",fontSize:"13px",outline:"none"}}):i.jsx("span",{style:{flex:1,fontSize:"13px",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:U.name}),U.status==="pending"&&i.jsx("button",{onClick:()=>q(U.id),style:{background:"none",border:"none",cursor:"pointer",color:"#9ca3af",display:"flex",alignItems:"center"},children:i.jsx(et,{width:16,height:16})}),U.status==="done"&&i.jsx("span",{style:{fontSize:"12px",color:"#16a34a",fontWeight:600},children:"â Done"}),U.status==="error"&&i.jsx("span",{style:{fontSize:"12px",color:"#dc2626",fontWeight:600},children:"â Failed"})]}),(U.status==="uploading"||U.status==="done")&&i.jsx("div",{style:{height:"6px",background:"#e5e7eb",borderRadius:"99px",overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",width:`${U.progress}%`,background:U.status==="done"?"#16a34a":"#2563eb",borderRadius:"99px",transition:"width 0.2s ease"}})}),U.status==="uploading"&&i.jsxs("p",{style:{fontSize:"11px",color:"#6b7280",marginTop:"4px"},children:[U.progress,"%"]}),U.status==="error"&&i.jsx("p",{style:{fontSize:"11px",color:"#dc2626",marginTop:"4px"},children:U.error})]},U.id))}),i.jsxs("div",{style:{display:"flex",gap:"10px"},children:[!L&&!X&&F&&i.jsxs(i.Fragment,{children:[i.jsxs("button",{type:"button",className:"button__primary2 text-center justify-center flex items-center gap-1",style:{flex:1},onClick:z,disabled:!F,children:["Upload ",N.filter(U=>U.status==="pending").length," file",N.filter(U=>U.status==="pending").length!==1?"s":""]}),i.jsx("button",{type:"button",onClick:()=>T.current?.click(),style:{padding:"10px 16px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",fontSize:"13px",cursor:"pointer"},children:"Add more"})]}),L&&i.jsx("div",{style:{flex:1,textAlign:"center",color:"#6b7280",fontSize:"13px",padding:"10px 0"},children:"Uploadingâ¦"}),!L&&N.length===0&&i.jsx("p",{style:{flex:1,textAlign:"center",color:"#9ca3af",fontSize:"13px",padding:"4px 0"},children:"Select files above to begin"})]})]})}),l&&i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:"Edit Resource"}),i.jsx("div",{className:"closeModal",onClick:W,children:i.jsx(et,{})}),i.jsxs("form",{className:"people__zone docForm",onSubmit:H,children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{children:"Replace File (optional)"}),i.jsx("input",{type:"file",accept:"application/pdf",onChange:B})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{children:"Document Name"}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Document Name",value:u.name,onChange:M})]}),i.jsx("div",{className:"form__child submitAction",children:i.jsx("button",{type:"submit",className:"button__primary2 text-center justify-center flex items-center gap-1",children:"Update Resource"})})]})]})}),r&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Resources -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Update the resources of the MDA"})]}),i.jsxs("button",{onClick:P,className:"bg-green-800 text-[13px] curs
2822or-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Document"]})]}),i.jsx("div",{className:"tableData",children:I.length?I.map((U,Z)=>i.jsx("div",{className:"table__item flex",children:i.jsxs("div",{className:"flex flex-col justify-between w-full min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-10 h-10 flex-shrink-0",children:i.jsx("img",{src:Yx,alt:"",className:"w-full h-full object-contain"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"font-semibold text-gray-900 truncate",title:U.name,children:U.name}),i.jsx("div",{className:"text-sm text-gray-500 truncate",title:U.date||"PDF Document",children:U.date||"PDF Document"})]})]}),i.jsxs("div",{className:"tr__item flex act--item mt-5 overflow-x-auto",children:[i.jsxs("div",{className:"action !bg-gray-800 !text-white",onClick:()=>window.open(U.url,"_blank"),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Oe,{fontSize:9,strokeWidth:1.8})}),"View"]}),i.jsxs("div",{className:"action",onClick:()=>V(Z),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Do,{fontSize:11,strokeWidth:1.8})}),"Edit"]}),i.jsxs("div",{className:"action",onClick:()=>G(Z),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Um,{fontSize:11,strokeWidth:1.8})}),"Delete"]})]})]})},Z)):i.jsx("div",{className:"w-full text-[16px] text-gray-600",children:w?"No matching resources found.":'No resources available. Click "Add Document" to upload a new resource.'})})]})})},Wq=50*1024*1024,fVe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState(!1),[l,d]=v.useState(!1),[u,h]=v.useState({name:"",url:"",category:""}),[p,g]=v.useState(null),[y,b]=v.useState(0),[w,j]=v.useState(""),[S,k]=v.useState(""),[N,_]=v.useState(""),[L,E]=v.useState([]),[T,P]=v.useState(!1),$=v.useRef(null),O=Te(J=>J.mdaData)?.landingPage,q=O?.resourceCategories?.cards?.length>0?O.resourceCategories.cards.map(J=>J.title):[];v.useEffect(()=>{n(e)},[e]);const D=()=>{_(""),E([]),o(!0)},z=()=>{_(""),E([]),P(!1),o(!1)},V=J=>{const re=Array.from(J.target.files),ge=[];re.forEach(Q=>{if(Q.size>Wq){ie.error(`"${Q.name}" exceeds the 50 MB limit and was skipped.`);return}ge.push({id:`${Q.name}-${Q.size}-${Date.now()}-${Math.random()}`,file:Q,name:Q.name.replace(/\.[^/.]+$/,""),status:"pending",progress:0,url:"",error:""})}),E(Q=>[...Q,...ge]),J.target.value=""},W=J=>{E(re=>re.filter(ge=>ge.id!==J))},B=(J,re)=>{E(ge=>ge.map(Q=>Q.id===J?{...Q,name:re}:Q))},H=async()=>{const J=L.filter(re=>re.status==="pending");J.length&&(P(!0),await Promise.all(J.map(async re=>{E(ge=>ge.map(Q=>Q.id===re.id?{...Q,status:"uploading"}:Q));try{const ge=await vm(re.file,`${e.fullname}/resources`,Q=>{E(Se=>Se.map(je=>je.id===re.id?{...je,progress:Q}:je))});E(Q=>Q.map(Se=>Se.id===re.id?{...Se,status:"done",progress:100,url:ge.data.url}:Se))}catch(ge){E(Q=>Q.map(Se=>Se.id===re.id?{...Se,status:"error",error:ge.message||"Upload failed"}:Se))}})),P(!1))};v.useEffect(()=>{if(!L.length||!L.every(Q=>Q.status==="done"||Q.status==="error")||T)return;const re=L.filter(Q=>Q.status==="done");if(!re.length)return;const ge=re.map(Q=>({name:Q.name,url:Q.url,category:N,date:new Date().toISOString()}));n(Q=>({...Q,resources:[...Q.resources||[],...ge]})),k(`batch uploaded ${re.length} resource(s)`),z()},[L,T]);const G=J=>{b(J),h(t.resources[J]),g(null),d(!0)},K=()=>{h({name:"",url:"",category:""}),g(null),d(!1)},M=J=>{const re=J.target.files[0];if(re){if(re.size>Wq){ie.error("File exceeds the 50 MB limit."),J.target.value="";return}g(re),h(ge=>({...ge,name:re.name}))}},I=async J=>{J.preventDefault(),a(!0);try{if(p){const re=await vm(p,`${e.fullname}/resources`,null);u.url=re.data.url}t.resources[y]={name:u.name,url:u.url,category:u.category,date:new Date().toISOString()},k(`updated resource - ${u.name}`),K()}catch(re){ie.error(re.message||"Error updating resource. Please try again."),a(!1)}},X=async J=>{const re=t.resources[J];if(window.confirm("Are you sure you want to delete this resource?"))try{a(!0);const ge=t.resources.filter((Q,Se)=>Se!==J);n(Q=>({...Q,resources:ge})),k(`deleted resource - ${re.name}`)}catch{ie.error("Failed to delete resource. Please try again."),a(!1)}};v.useEffect(()=>{S!==""&&F()},[S]);const F=async()=>{try{a(!0),await ki(t._id,t,S),k("")}catch{ie.error("Failed to update resources. Please try again.")}finally{a(!1)}},U=J=>{h(re=>({...re,[J.target.name]:J.target.value}))},Z=t?.resources?.filter(J=>w?J.name?.toLowerCase().includes(w.toLowerCase()):!0)||[],ee=L.some(J=>J.status==="pending"),ae=L.length>0&&L.every(J=>J.status==="done"||J.status==="error"),ye=N!=="";return i.jsx("div",{className:"-mt-3",children:i.jsxs("div",{className:"table__main__body",children:[s&&i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",style:{maxWidth:"560px",width:"100%"},children:[i.jsx("div",{className:"topic",children:"Add Documents"}),i.jsx("div",{className:"closeModal",onClick:z,children:i.jsx(et,{})}
2822),i.jsxs("div",{style:{marginBottom:"16px"},children:[i.jsx("label",{style:{display:"block",fontSize:"12px",fontWeight:600,color:"#374151",marginBottom:"6px",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Category"}),i.jsxs("select",{value:N,onChange:J=>_(J.target.value),disabled:T,style:{width:"100%",padding:"10px 12px",border:"1px solid #d1d5db",borderRadius:"6px",fontSize:"13px",background:"#fff",outline:"none"},children:[i.jsx("option",{value:"",children:"Select a category"}),q.map((J,re)=>i.jsx("option",{value:J,children:J},re))]})]}),!T&&i.jsxs("div",{style:{border:`2px dashed ${ye?"#d1d5db":"#e5e7eb"}`,borderRadius:"8px",padding:"20px",textAlign:"center",cursor:ye?"pointer":"not-allowed",marginBottom:"16px",background:ye?"#fafafa":"#f3f4f6",opacity:ye?1:.6,transition:"all 0.15s"},onClick:()=>ye&&$.current?.click(),children:[i.jsx(vr,{style:{margin:"0 auto 6px",color:"#9ca3af"},width:26,height:26}),i.jsx("p",{style:{fontSize:"13px",color:"#6b7280",margin:0},children:ye?"Click to select PDFs · multiple files supported":"Select a category first"}),i.jsx("input",{ref:$,type:"file",accept:"application/pdf",multiple:!0,style:{display:"none"},onChange:V})]}),L.length>0&&i.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px",maxHeight:"300px",overflowY:"auto",marginBottom:"16px"},children:L.map(J=>i.jsxs("div",{style:{background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:"8px",padding:"12px"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:J.status==="uploading"||J.status==="done"?"8px":"0"},children:[i.jsx("img",{src:Yx,alt:"",style:{width:"26px",flexShrink:0}}),J.status==="pending"?i.jsx("input",{type:"text",value:J.name,onChange:re=>B(J.id,re.target.value),style:{flex:1,border:"1px solid #d1d5db",borderRadius:"5px",padding:"6px 8px",fontSize:"13px",outline:"none"}}):i.jsx("span",{style:{flex:1,fontSize:"13px",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:J.name}),J.status==="pending"&&i.jsx("button",{onClick:()=>W(J.id),style:{background:"none",border:"none",cursor:"pointer",color:"#9ca3af",display:"flex",alignItems:"center"},children:i.jsx(et,{width:16,height:16})}),J.status==="done"&&i.jsx("span",{style:{fontSize:"12px",color:"#16a34a",fontWeight:600,whiteSpace:"nowrap"},children:"â Done"}),J.status==="error"&&i.jsx("span",{style:{fontSize:"12px",color:"#dc2626",fontWeight:600,whiteSpace:"nowrap"},children:"â Failed"})]}),(J.status==="uploading"||J.status==="done")&&i.jsx("div",{style:{height:"6px",background:"#e5e7eb",borderRadius:"99px",overflow:"hidden"},children:i.jsx("div",{style:{height:"100%",width:`${J.progress}%`,background:J.status==="done"?"#16a34a":"#2563eb",borderRadius:"99px",transition:"width 0.2s ease"}})}),J.status==="uploading"&&i.jsxs("p",{style:{fontSize:"11px",color:"#6b7280",marginTop:"4px"},children:[J.progress,"%"]}),J.status==="error"&&i.jsx("p",{style:{fontSize:"11px",color:"#dc2626",marginTop:"4px"},children:J.error})]},J.id))}),i.jsxs("div",{style:{display:"flex",gap:"10px"},children:[!T&&!ae&&ee&&i.jsxs(i.Fragment,{children:[i.jsxs("button",{type:"button",className:"button__primary2 text-center justify-center flex items-center gap-1",style:{flex:1},onClick:H,children:["Upload ",L.filter(J=>J.status==="pending").length," file",L.filter(J=>J.status==="pending").length!==1?"s":"",N?` â ${N}`:""]}),i.jsx("button",{type:"button",onClick:()=>$.current?.click(),style:{padding:"10px 16px",border:"1px solid #d1d5db",borderRadius:"6px",background:"#fff",fontSize:"13px",cursor:"pointer"},children:"Add more"})]}),T&&i.jsx("div",{style:{flex:1,textAlign:"center",color:"#6b7280",fontSize:"13px",padding:"10px 0"},children:"Uploadingâ¦"}),!T&&L.length===0&&i.jsx("p",{style:{flex:1,textAlign:"center",color:"#9ca3af",fontSize:"13px",padding:"4px 0"},children:ye?"Select files above to begin":"Choose a category to unlock file selection"})]})]})}),l&&i.jsx("div",{className:"addModal",children:i.jsxs("div",{className:"addModal__card",children:[i.jsx("div",{className:"topic",children:"Edit Resource"}),i.jsx("div",{className:"closeModal",onClick:K,children:i.jsx(et,{})}),i.jsxs("form",{className:"people__zone docForm",onSubmit:I,children:[i.jsxs("div",{className:"form__child",children:[i.jsx("label",{children:"Replace File (optional)"}),i.jsx("input",{type:"file",accept:"application/pdf",onChange:M})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{children:"Document Name"}),i.jsx("input",{type:"text",name:"name",placeholder:"Enter Document Name",value:u.name,onChange:U})]}),i.jsxs("div",{className:"form__child",children:[i.jsx("label",{children:"Category"}),i.jsxs("select",{name:"category",value:u.category,onChange:U,className:"w-full px-3 py-2 border border-gray-300 rounded-md",children:[i.jsx("option",{value:"",children:"Select a category"}),q.map((J,re)=>i.jsx("option",{value:J,children:J},re))]})]}),i.jsx("div",{className:"form__child submitAction",children:i.jsx("button",{type:"submit",className:"button__primary2 text-center justify-center flex items-center gap-1",children:"Update Resource"})})]})]})}),r&&i.jsx(Rn,{customClass:""}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Resources -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Update the resources of the MDA"})]}),i.jsxs("button",{onClick:D,className:"bg-green-800 text-[13px] curs
2822or-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," Add Document"]})]}),i.jsx("div",{className:"tableData",children:Z.length?Z.map((J,re)=>i.jsx("div",{className:"table__item flex",children:i.jsxs("div",{className:"flex flex-col justify-between w-full min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-10 h-10 flex-shrink-0",children:i.jsx("img",{src:Yx,alt:"",className:"w-full h-full object-contain"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"font-semibold text-gray-900 truncate",title:J.name,children:J.name}),i.jsx("div",{className:"text-sm text-gray-500 truncate",title:J.category||"No category",children:J.category||"No category"})]})]}),i.jsxs("div",{className:"tr__item flex act--item mt-5 overflow-x-auto no-scrollbar",children:[i.jsxs("div",{className:`action !bg-gray-800 !text-white ${J.url?"":"opacity-50 cursor-not-allowed"}`,onClick:()=>J.url&&window.open(J.url,"_blank"),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Oe,{fontSize:9,strokeWidth:1.8})}),"View"]}),i.jsxs("div",{className:"action",onClick:()=>G(re),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Do,{fontSize:11,strokeWidth:1.8})}),"Edit"]}),i.jsxs("div",{className:"action",onClick:()=>X(re),children:[i.jsx("div",{className:"flex items-center justify-center",children:i.jsx(Um,{fontSize:11,strokeWidth:1.8})}),"Delete"]})]})]})},J.id||re)):i.jsx("div",{className:"w-full text-[16px] text-gray-600",children:w?"No matching resources found.":'No resources available. Click "Add Document" to upload a new resource.'})})]})})},hVe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState("");v.useEffect(()=>{n(e)},[e]);const l=()=>{t.responsibilities=s,d()},d=()=>{a(!0),t.responsibilities=s,ki(t._id,t).then(u=>{a(!1),ie.success(u.message||"Responsibilities updated successfully!")}).catch(u=>{a(!1),ie.error(u.message||"Failed to update responsibilities. Please try again."),console.error("Update error:",u)})};return i.jsxs("div",{children:[i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-90",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["MDA's Responsibilities -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Update the responsibilities of the MDA"})]}),i.jsxs("button",{onClick:l,disabled:r,className:"bg-green-800 text-[13px] cursor-pointer py-2 px-4 flex items-center gap-1 font-medium rounded-sm text-white",children:[i.jsx(vr,{})," ",r?"Saving...":"Save Changes"]})]}),i.jsxs("div",{className:"table__main__body mt-15!",children:[r?i.jsx(Rn,{customClass:""}):null,i.jsx(dg,{dataText:o,value:t.responsibilities})]})]})},pVe=({categoryName:e,categoryFullname:t,handleCheckedServices:n,setSelectCategory:r,services:a})=>{const{data:s,isLoading:o,isError:l}=Ke({queryKey:["category",e],queryFn:()=>Qa(e)});if(o)return null;if(!s?.data?.length)return i.jsx("div",{children:"No services found for this category"});const d=(u,h)=>{if(a?.find(g=>g.name===h.name)){ie.error("Service already exists"),u.target.checked=!1;return}n(u,h)};return i.jsxs("div",{className:"fixed right-0 w-[calc(100%-280px)] h-[calc(100vh-80px)] bg-black/20 overflow-y-auto top-[80px]",children:[i.jsx("div",{className:"fixed right-0 w-[calc(100%-280px)] h-[100vh] bg-transparent overflow-y-auto top-[0px]",onClick:()=>r("")}),i.jsxs("div",{className:"bg-white w-[60%] my-30 mx-auto p-12 rounded-lg relative",children:[i.jsxs("h1",{className:"text-[18px] font-semibold mb-5",children:[t," Services"]}),i.jsx("div",{className:"flex flex-col gap-4",children:s?.data?.map((u,h)=>{const p=a?.some(g=>g.name===u.name);return i.jsxs("div",{className:`py-3 px-4 rounded-sm relative ${p?"bg-gray-400":"bg-gray-100 hover:bg-gray-50"}`,children:[i.jsxs("h1",{className:`text-[14px] font-semibold ${p?"text-gray-100":"text-gray-900"}`,children:[h+1,". ",u.name,p&&i.jsx("span",{className:"ml-2 text-xs bg-gray-300 text-gray-600 px-2 py-0.5 rounded-full",children:"Already added"})]}),i.jsx("p",{className:`text-[14px] ${p?"text-gray-100":"text-gray-500"}`,children:u.short}),i.jsx("div",{className:"absolute right-6 top-[50%] translate-y-[-50%]",children:i.jsx("input",{type:"checkbox",onChange:g=>
2822d(g,u),disabled:p,className:`h-4 w-4 rounded border-gray-300 ${p?"cursor-not-allowed":"cursor-pointer"}`})})]},u.id)})})]})]})},mVe=({selectView:e,mdaData:t,services:n})=>{const[r,a]=v.useState(""),[s,o]=v.useState(""),[l,d]=v.useState(""),[u,h]=v.useState([]),[p,g]=v.useState(!1),{data:y,isLoading:b,isError:w}=Ke({queryKey:["category"],queryFn:tg});if(v.useEffect(()=>{h([]);const _=document.getElementById("service-point");return _&&(s===""?(_.style.overflowY="auto",document.body.style.overflow="auto"):(_.style.overflowY="hidden",document.body.style.overflow="hidden")),()=>{document.body.style.overflow="auto"}},[s]),b||!y)return i.jsx(Rn,{});const j=y?.data?.filter(_=>{if(!r)return!0;const L=r.toLowerCase();return _.name.toLowerCase().includes(L)})||[],S=_=>{o(_.formattedName),d(_.name)},k=(_,L)=>{const E=_.target.checked;h(E?[...u,L]:u.filter(T=>T.name!==L.name))},N=async()=>{if(u.length===0){ie.warning("No services selected");return}if(n?.filter(L=>u?.some(E=>E.name===L.name))?.length>0){ie.error("One or more services already exist. Please check and try again.");return}try{g(!0);for(const L of u)await Xbe(L,t?.fullname);ie.success(u.length>1?"Services added successfully":"Service added successfully"),h([]),o(""),e("services")}catch(L){console.error("Error saving services:",L),L.message.includes("E11000")?ie.error("One or more services already exist. Please check and try again."):ie.error("Failed to save some services. Please try again."),g(!1)}};return i.jsxs("div",{className:"relative",children:[p&&i.jsx(Rn,{}),s!==""&&i.jsx(pVe,{categoryName:s,categoryFullname:l,handleCheckedServices:k,setSelectCategory:o,services:n}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between",children:[s===""?i.jsx("div",{onClick:()=>e("new-service"),className:"",children:i.jsx(Xa,{})}):i.jsxs("div",{onClick:()=>o(""),className:"flex items-center gap-1 cursor-pointer",children:[i.jsx(et,{})," ",i.jsx("p",{className:"text-[14px] font-semibold",children:"Close"})]}),s===""&&i.jsx("div",{className:"flex gap-[10px]",children:i.jsx("div",{className:"searchField h-[100%] w-[550px]",children:i.jsx(Eo,{placeholder:"Browse through lagos state categories...",value:r,onChange:a})})}),s===""?i.jsxs("div",{className:"w-[max-content] py-3 px-6 text-[14px] font-semibold flex gap-1 items-center justify-center pl-4.5 cursor-pointer rounded-[6px] bg-gray-800 text-white text-center",onClick:()=>e("new-service"),children:[i.jsx(yP,{})," Add Custom Services"]}):i.jsxs("div",{className:"w-[max-content] py-3 px-6 text-[14px] font-semibold flex gap-1 items-center justify-center pl-4.5 cursor-pointer rounded-[6px] bg-green-700 text-white text-center",onClick:()=>N(),children:[i.jsx(yP,{})," Proceed"]})]}),i.jsx("div",{className:"services-admin grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6 mt-20 p-1",id:"service-point",children:j?.length>0?j?.filter(_=>!_.isOffline)?.map(_=>i.jsxs("div",{className:"w-full h-full bg-white flex flex-col gap-5 p-8 shadow-[1px_3px_20px_rgba(0,0,0,0.02)] rounded-[10px] cursor-pointer hover:ring-green-600 ring-1 ring-transparent",onClick:()=>S(_),children:[i.jsx("div",{className:"icon-card w-9 h-9 flex-shrink-0",children:i.jsx("img",{src:_?.icon,alt:_.name,className:"w-full h-full object-contain"})}),i.jsx("h1",{className:"text-[16px] font-semibold",children:_.name}),i.jsx("p",{className:"text-[14px] text-gray-600 leading-[165%]",children:_.short}),i.jsx("div",{className:"select-box"})]},_.id)):i.jsx("div",{className:"w-full text-[16px] text-gray-600",children:r?"No matching categories found.":"No categories available."})})]})},_u=({children:e,open:t,onClose:n,contentStyling:r})=>t?i.jsx("div",{className:"backdrop h-[100vh] w-[100vw] fixed top-0 left-0 z-[1000] bg-black/50",children:i.jsxs("div",{className:`modal_content mb-40 ${r}`,children:[i.jsx("button",{className:"absolute top-[30px] right-[30px] cursor-pointer",onClick:n,children:i.jsx(et,{})}),i.jsx("br",{}),e]})}):null,gVe=(e,t,n)=>`You are a keyword generation expert specializing in government services and public administration. 2823 2824TASK: Generate exactly 12 highly relevant, single-word or short-phrase keywords for a government service. 2825 2826CONTEXT: 2827- Service Name: "${e}" 2828- Service Description: "${t}" 2829- Providing Agency: "${n}" (Lagos State Government Agency) 2830 2831REQUIREMENTS: 28321. Generate exactly 12 keywords 28332. Keywords must be single words or short phrases (2-3 words max) 28343. Focus on: service functionality, user benefits, government processes, and relevant terminology 28354. Consider Lagos State context and Nigerian public service terminology 28365. Rank keywords by relevance and search volume (most important first) 28376. Avoid generic terms, focus on specific, actionable keywords 28387. Include terms that citizens would actually search for 2839 2840OUTPUT FORMAT: 2841Return ONLY a JSON object with this exact structure: 2842{ 2843 "keywords": [ 2844 {"key": "keyword1"}, 2845 {"key": "keyword2"}, 2846 {"key": "keyword3"}, 2847 ... 2848 ] 2849} 2850 2851EXAMPLE: 2852If service is "Driver's License Renewal", output: 2853{ 2854 "keywords": [ 2855 {"key": "drivers license"},
2856 {"key": "license renewal"}, 2857 {"key": "vehicle registration"}, 2858 {"key": "road safety"}, 2859 {"key": "transportation"}, 2860 {"key": "documentation"}, 2861 {"key": "government services"}, 2862 {"key": "LASDRI"}, 2863 {"key": "vehicle permit"}, 2864 {"key": "traffic management"}, 2865 {"key": "public service"}, 2866 {"key": "official documents"} 2867 ] 2868} 2869 2870Generate keywords based on the provided service information.`,dJ=async(e,t,n)=>{try{const r=gVe(e,t,n),a=await xb([{role:"user",content:r}],{responseFormat:{type:"json_object"},reasoningEffort:"minimal"}),{keywords:s}=JSON.parse(a);return Array.isArray(s)&&s.every(o=>o.key)?s:(console.error("Invalid AI response format:",s),[])}catch(r){return console.error("Error generating keywords with AI:",r),[]}},vVe=({selectView:e,mda:t,handleCheck:n})=>{const[r,a]=v.useState({author:t.name,categories:[],customKeywords:[]}),[s,o]=v.useState(""),[l,d]=v.useState(""),[u,h]=v.useState(!1),[p,g]=v.useState(!1),y=v.useRef(null),b=v.useRef(null),{data:w,isLoading:j,isError:S}=Ke({queryKey:["categories"],queryFn:tg}),{data:k,isLoading:N}=Ke({queryKey:["forms",t.slug],queryFn:()=>ys.getFormsByMda(t.slug),enabled:!!t.slug});v.useEffect(()=>{const W=B=>{y.current&&!y.current.contains(B.target)&&h(!1),b.current&&!b.current.contains(B.target)&&g(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[]);const _=W=>{const B=`${au}/${W.mda}/forms/${W._id}`;a({...r,url:B}),g(!1)},L=W=>{const B=r.categories?.some(G=>G._id===W._id);let H;B?H=r.categories.filter(G=>G._id!==W._id):H=[...r.categories||[],W],a({...r,categories:H})},E=W=>{const B=r.categories.filter(H=>H._id!==W);a({...r,categories:B})},T=W=>{if(W.key==="Enter"&&l.trim()){W.preventDefault();const B={key:l.trim()};r.customKeywords.some(H=>H.key===B.key)||a({...r,customKeywords:[...r.customKeywords,B]}),d("")}},P=W=>{const B=r.customKeywords.filter(H=>H.key!==W);a({...r,customKeywords:B})},O=(Array.isArray(w?.data)?w.data:[]).filter(W=>W.name.toLowerCase().includes(s.toLowerCase())),q=W=>{a({...r,[W.target.name]:W.target.value})},D=W=>{a({...r,content:W})},z=W=>{if(W.preventDefault(),!r.name||!r.short||r.categories.length===0){ie.error("Please fill in all required fields and select at least one category");return}if(n(r)){ie.error("This service name already exists, use a different name");return}const H={...r,categories:r.categories.map(G=>G.name),formattedName:r.categories.map(G=>Cn(G.name)),keywordsGroup:r.categories.reduce((G,K)=>(G[Cn(K.name)]=K.keywords||[],G),{})};Kbe(H,t?.fullname).then(G=>{ie.success(G.message||"Service added successfully"),a({author:t.name,categories:[],customKeywords:[]}),e("services")})};r.categories;const V=async()=>{if(!r.name||!r.short){ie.error("Please fill in service name and description first");return}try{const W=ie.loading("Generating keywords with AI..."),B=await dJ(r.name,r.short,t.name);B.length>0?(a({...r,customKeywords:[...r.customKeywords,...B]}),ie.dismiss(W),ie.success(`Generated ${B.length} relevant keywords`)):ie.error("Failed to generate keywords. Please try again.")}catch(W){console.error("Error in generateKeywords:",W),ie.error("An error occurred while generating keywords")}};return i.jsxs("div",{children:[i.jsx("h1",{className:"text-[20px] font-semibold",children:"Add new service"}),i.jsx("p",{className:"text-[14px] text-gray-500 mb-10",children:"Kindly input all valid informations below"}),i.jsxs("form",{className:"flex gap-4 flex-col",children:[i.jsxs("div",{className:"flex flex-col w-[100%] gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service title"}),i.jsx("input",{type:"text",name:"name",value:r?.name,onChange:q,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200",placeholder:"Enter the service title here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service description"}),i.jsx("textarea",{name:"short",id:"",cols:"30",rows:"2",value:r?.short,onChange:q,className:"ring-1 ring-gray-200 rounded-[4px] py-2.5 px-3 bg-white text-[14px] outline-none focus:ring-green-600 w-full resize-none",placeholder:"Enter the service description here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5 relative",ref:y,children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service Categories"}),i.jsxs("div",{onClick:()=>h(!u),className:"ring-1 rounded-[4px] min-h-[42px] p-1.5 text-[14px] curs
2870or-pointer bg-white ring-gray-200 flex flex-wrap gap-2 items-center justify-between",children:[i.jsx("div",{className:"flex flex-wrap gap-2 items-center flex-1",children:r.categories?.length>0?r.categories.map(W=>i.jsxs("span",{className:"bg-green-100 text-green-800 px-2 py-1 rounded-[4px] flex items-center gap-1 text-[14px] font-medium",children:[W.name,i.jsx(et,{height:14,width:14,className:"cursor-pointer hover:text-green-900",onClick:B=>{B.stopPropagation(),E(W._id)}})]},W._id)):i.jsx("span",{className:"text-gray-400 ml-1.5",children:"Select categories for service creation"})}),i.jsx(ar,{height:18,width:18,className:`text-gray-400 transition-transform ${u?"rotate-180":""}`})]}),u&&i.jsxs("div",{className:"absolute top-[100%] left-0 right-0 z-50 mt-1 bg-white ring-1 ring-gray-200 rounded-[4px] shadow-lg max-h-[300px] flex flex-col",children:[i.jsx("div",{className:"p-2 border-b border-gray-100 sticky top-0 bg-white",children:i.jsxs("div",{className:"relative flex items-center",children:[i.jsx(rb,{height:16,width:16,className:"absolute left-3 text-gray-400"}),i.jsx("input",{type:"text",value:s,onChange:W=>o(W.target.value),placeholder:"Search categories...",className:"w-full pl-9 pr-3 py-2 text-[14px] outline-none bg-gray-50 rounded-[4px] focus:ring-1 focus:ring-green-600",onClick:W=>W.stopPropagation()})]})}),i.jsx("div",{className:"overflow-y-auto flex-1",children:j?i.jsx("div",{className:"p-4 text-center text-[14px] text-gray-500",children:"Loading categories..."}):O?.length>0?O.map(W=>{const B=r.categories?.some(H=>H._id===W._id);return i.jsxs("div",{onClick:()=>L(W),className:"flex items-center justify-between px-4 py-2.5 hover:bg-gray-50 cursor-pointer transition-colors",children:[i.jsx("span",{className:"text-[14px]",children:W.name}),i.jsx("div",{className:`w-5 h-5 rounded border flex items-center justify-center transition-colors ${B?"bg-green-600 border-green-600":"border-gray-300"}`,children:B&&i.jsx(Ua,{height:14,width:14,className:"text-white"})})]},W._id)}):i.jsx("div",{className:"p-4 text-center text-[14px] text-gray-500",children:"No categories found"})})]})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Custom Keywords"}),i.jsxs("div",{className:"flex items-center gap-1 text-[14px] text-gray-400",children:["Generate keywords with"," ",i.jsxs("span",{className:"font-semibold text-green-600 flex items-center gap-1 text-[15px] cursor-pointer hover:text-green-700",onClick:V,children:["ai assistant ",i.jsx(Oe,{fontSize:9})]})]})]}),i.jsx("div",{className:"ring-1 rounded-[4px] min-h-[42px] p-1.5 text-[14px] bg-white ring-gray-200 flex flex-wrap gap-2 items-center",children:i.jsxs("div",{className:"flex flex-wrap gap-2 items-center flex-1",children:[r.customKeywords?.length>0&&r.customKeywords.map((W,B)=>i.jsxs("span",{className:"bg-blue-100 text-blue-600 px-2 py-1 rounded-[4px] flex items-center gap-1 text-[14px] font-medium",children:[W.key,i.jsx(et,{height:14,width:14,className:"cursor-pointer hover:text-blue-900",onClick:()=>P(W.key)})]},B)),i.jsx("input",{type:"text",value:l,onChange:W=>d(W.target.value),onKeyDown:T,className:"flex-1 outline-none text-[14px] min-w-[150px] bg-transparent pl-1.5",style:{fieldSizing:"content"},placeholder:r.customKeywords?.length===0?"Enter keywords and press Enter...":""})]})})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"CTA (Call To Action)"}),i.jsx("input",{type:"text",name:"cta",value:r?.cta,onChange:q,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200",placeholder:"Enter the call to action here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"URL link"}),i.jsxs("div",{className:"relative",ref:b,children:[i.jsx("input",{type:"text",name:"url",value:r?.url,onChange:q,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200 w-full",placeholder:"Enter the URL link here..."}),i.jsx("button",{type:"button",onClick:()=>g(!p),className:"absolute right-2 top-1/2 transform -translate-y-1/2 px-2 py-1 bg-green-600 text-white text-xs rounded hover:bg-green-700 transition-colors",children:"Attach Forms"}),p&&i.jsxs("div",{className:"absolute top-full right-0 mt-1 w-80 bg-white border border-gray-200 rounded-lg shadow-lg z-10",children:[i.jsx("div",{className:"p-3 border-b border-gray-200",children:i.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Select a form"})}),i.jsx("div",{className:"max-h-60 overflow-y-auto",children:N?i.jsx("div",{className:"p-3 text-center text-sm text-gray-500",children:"Loading forms..."}):k?.data?.length>0?k.data.map(W=>i.jsx("button",{type:"button",onClick:()=>_(W),className:"w-full text-left px-3 py-2 hover:bg-gray-50 border-b border-gray-100 last:border-b-0 transition-colors",children:i.jsxs("div",{className:"flex flex-col",children:[i.jsxs("span",{className:"text-sm font-medium text-gray-900 flex",children:[W.title," ",i.jsx(er,{className:"ml-auto text-[9px]"})]}),i.jsxs("span",{className:"text-xs text-gray-500",children:["Created on -"," ",new Date(W.createdAt).toLocaleDateString("en-NG",{year:"numeric",month:"short",day:"numeric"})]})]})},W._id)):i.jsx("div",{className:"p-3 text-center text-sm text-gray-500",children:"No forms available"})})]})]})]})]}),i.jsxs("div",{className:"w-[100%] flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service Content"}),i.jsx("div",{className:"ring-[1px] ring-gray-200 rounded-[4px]",children:i.jsx(dg,{dataText:D,value:r?.content||"",padding:"0px 20px"})})]}),i.jsx("div",{children:i.jsx("button",{className:"py-3 px-6 rounded-[4px] bg-green-700 text-white text-[14px] font-medium cursor-pointer w-full mt-6",onClick:z,children:"Create Service"})})]})]})},yVe=({selectView:e,services:t})=>{const[n,r]=v.useState(!1),a=Te(o=>o.mdaData),s=o=>cU(t,o.name);return i.jsxs("div",{children:[i.jsx("div",{onClick:()=>e("services"),children:i.jsx(Xa,{})}),i.jsx("div",{className:"p-5 w-full h-[70vh] flex gap-10 flex-col items-center justify-center",children:i.jsxs("div",{className:"flex gap-10 w-[max-content]",children:[i.jsxs("div",{className:"w-[350px] bg-white flex flex-col items-center p-8 rounded-[20px] shadow-[1px_3px_20px_rgba(0,0,0,0.01)] gap-5 hover:ring-green-600 ring-1 ring-transparent",children:[i.jsx("div",{children:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",id:"Clipboard-List--Streamline-Solar",height:"40",width:"40",children:[i.jsx("desc",{children:"Clipboard List Streamline Icon: https://streamlinehq.com"}),i.jsxs("g",{id:"Bold Duotone/Notes/Clipboard List",children:[i.jsx("path",{id:"Vector",fill:"#c5c5c5",d:"M35 26.663833333333336V16.663766666666668c0 -4.71405 0 -7.071066666666667 -1.4645000000000001 -8.535533333333333C32.25483333333334 6.8476 30.291666666666668 6.68685 26.666666666666668 6.666666666666667H13.333333333333334c-3.6250500000000003 0.020183333333333334 -5.588233333333333 0.18093333333333333 -6.8688
2870666666666665 1.461566666666667C5 9.5927 5 11.949716666666667 5 16.663766666666668v10.000066666666667c0 4.7139999999999995 0 7.071000000000001 1.4644666666666668 8.5355 1.4644666666666668 1.4645000000000001 3.821483333333333 1.4645000000000001 8.535533333333333 1.4645000000000001h10c4.7139999999999995 0 7.071000000000001 0 8.5355 -1.4645000000000001C35 33.734833333333334 35 31.37783333333333 35 26.663833333333336Z","stroke-width":"1.6667"}),i.jsx("path",{id:"Vector_2",fill:"#505050",d:"M13.333333333333334 5.833333333333334C13.333333333333334 4.452616666666667 14.452616666666666 3.3333333333333335 15.833333333333334 3.3333333333333335h8.333333333333334c1.3806666666666667 0 2.5 1.1192833333333334 2.5 2.5v1.6666666666666667c0 1.3807166666666668 -1.1193333333333333 2.5 -2.5 2.5h-8.333333333333334C14.452616666666666 10 13.333333333333334 8.880716666666666 13.333333333333334 7.5v-1.6666666666666667Z","stroke-width":"1.6667"}),i.jsx("path",{id:"Vector_3",fill:"#505050","fill-rule":"evenodd",d:"M10.416666666666668 17.5c0 -0.6903333333333334 0.55965 -1.25 1.25 -1.25h0.8333333333333334c0.69035 0 1.25 0.5596666666666666 1.25 1.25s-0.55965 1.25 -1.25 1.25H11.666666666666668c-0.69035 0 -1.25 -0.5596666666666666 -1.25 -1.25Zm5.833333333333334 0c0 -0.6903333333333334 0.5596666666666666 -1.25 1.25 -1.25H28.333333333333336c0.6903333333333334 0 1.25 0.5596666666666666 1.25 1.25s-0.5596666666666666 1.25 -1.25 1.25h-10.833333333333334c-0.6903333333333334 0 -1.25 -0.5596666666666666 -1.25 -1.25ZM10.416666666666668 23.333333333333336c0 -0.6903333333333334 0.55965 -1.25 1.25 -1.25h0.8333333333333334c0.69035 0 1.25 0.5596666666666666 1.25 1.25s-0.55965 1.25 -1.25 1.25H11.666666666666668c-0.69035 0 -1.25 -0.5596666666666666 -1.25 -1.25Zm5.833333333333334 0c0 -0.6903333333333334 0.5596666666666666 -1.25 1.25 -1.25H28.333333333333336c0.6903333333333334 0 1.25 0.5596666666666666 1.25 1.25s-0.5596666666666666 1.25 -1.25 1.25h-10.833333333333334c-0.6903333333333334 0 -1.25 -0.5596666666666666 -1.25 -1.25Zm-5.833333333333334 5.833333333333334c0 -0.6903333333333334 0.55965 -1.25 1.25 -1.25h0.8333333333333334c0.69035 0 1.25 0.5596666666666666 1.25 1.25s-0.55965 1.25 -1.25 1.25H11.666666666666668c-0.69035 0 -1.25 -0.5596666666666666 -1.25 -1.25Zm5.833333333333334 0c0 -0.6903333333333334 0.5596666666666666 -1.25 1.25 -1.25H28.333333333333336c0.6903333333333334 0 1.25 0.5596666666666666 1.25 1.25s-0.5596666666666666 1.25 -1.25 1.25h-10.833333333333334c-0.6903333333333334 0 -1.25 -0.5596666666666666 -1.25 -1.25Z","clip-rule":"evenodd","stroke-width":"1.6667"})]})]})}),i.jsx("h1",{className:"font-semibold text-black",children:"From Existing Services"}),i.jsx("p",{className:"text-[14px] text-gray-500 text-center leading-[170%]",children:"Choose from services already created by Lagos State admin for different categories optimized for efficient service delivery."}),i.jsx("button",{className:"py-3 px-6 rounded-[6px] bg-green-700 text-white text-[14px] font-medium cursor-pointer",onClick:()=>e("category"),children:"Select Services"})]}),i.jsxs("div",{className:"w-[350px] bg-white flex flex-col items-center p-8 rounded-[20px] shadow-[1px_3px_20px_rgba(0,0,0,0.01)] gap-5 hover:ring-green-600 ring-1 ring-transparent",children:[i.jsx("div",{children:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",id:"Add-Square--Streamline-Solar",height:"40",width:"40",children:[i.jsx("desc",{children:"Add Square Streamline Icon: https://streamlinehq.com"}),i.jsxs("g",{id:"Bold Duotone/Essentional UI/Add Square",children:[i.jsx("path",{id:"Vector",fill:"#c5c5c5",d:"M20 36.66666666666667c-7.856750000000001 0 -11.785116666666667 0 -14.225883333333334 -2.4408333333333334C3.3333333333333335 31.78516666666667 3.3333333333333335 27.856666666666666 3.3333333333333335 20c0 -7.856750000000001 0 -11.785116666666667 2.4407833333333335 -14.225883333333334C8.214883333333335 3.3333333333333335 12.14325 3.3333333333333335 20 3.3333333333333335c7.856666666666667 0 11.785166666666667 0 14.225833333333336 2.4407833333333335C36.66666666666667 8.214883333333335 36.66666666666667 12.14325 36.66666666666667 20c0 7.856666666666667 0 11.785166666666667 -2.4408333333333334 14.225833333333336C31.78516666666667 36.66666666666667 27.856666666666666 36.66666666666667 20 36.66666666666667Z","stroke-width":"1.6667"}),i.jsx("path",{id:"Vector_2",fill:"#505050",d:"M20 13.75c0.6903333333333334 0 1.25 0.55965 1.25 1.25v3.75H25c0.6903333333333334 0 1.25 0.5596666666666666 1.25 1.25s-0.5596666666666666 1.25 -1.25 1.25h-3.75V25c0 0.6903333333333334 -0.5596666666666666 1.25 -1.25 1.25s-1.25 -0.5596666666666666 -1.25 -1.25v-3.75H15c-0.69035 0 -1.25 -0.5596666666666666 -1.25 -1.25s0.55965 -1.25 1.25 -1.25h3.75V15c0 -0.69035 0.5596666666666666 -1.25 1.25 -1.25Z","stroke-width":"1.6667"})]})]})}),i.jsx("h1",{className:"font-semibold text-black",children:" Create Custom Service "}),i.jsx("p",{className:"text-[14px] text-gray-500 text-center leading-[170%]",children:"Create a completely new service with custom requirements and specifications tailored to your MDA's specific needs."}),i.jsx("button",{className:"py-3 px-6 rounded-[6px] bg-green-700 text-white text-[14px] font-medium cursor-pointer",onClick:()=>r(!0),children:"Create New Service"})]})]})}),n&&i.jsx(_u,{onClose:()=>r(!1),open:n,contentStyling:"lg:!w-[800px] md:!w-[90%]",children:i.jsx(vVe,{selectView:e,mda:a,handleCheck:s})})]})};function V4({data:e,close:t,category:n,customClass:r}){const{name:a,url:s,content:o,cta:l}=e,[d,u]=v.useState(!1),[h,p]=v.useState(!1);v.useEffect(()=>{const b=document.querySelector(".modal_info");b.innerHTML=o},[]),v.useEffect(()=>{const b=()=>{const S=document.querySelector(".modal_item");if(S){const k=S.scrollHeight>S.clientHeight;u(k)}},w=()=>{const S=document.querySelector(".modal_item");if(S){const k=S.scrollTop,N=S.scrollHeight,_=S.clientHeight,E=k+_>=N-100;p(E)}};setTimeout(b,100);const j=document.querySelector(".modal_item");return j&&j.addEventListener("scroll",w),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b),j&&j.removeEventListener("scroll",w)}},[o]);const g=()=>{const b=document.querySelector(".modal_item");b&&b.scrollBy({top:300,behavior:"smooth"})}
2870,y=d&&!h;return i.jsx("div",{className:`view_service_modal ${r||""}`,children:i.jsxs(Rl.div,{className:"modal_item",initial:{opacity:0,y:100},animate:{opacity:1,y:0},transition:{type:"spring",duration:1},children:[i.jsxs("div",{className:"closeModal",onClick:()=>t(),children:[" ",i.jsx(et,{})," "]}),i.jsxs("div",{className:"modal_theme",children:[" ",n," "]}),i.jsxs("div",{className:"modal_title",children:[" ",a," "]}),i.jsx("div",{className:"modal_info"}),i.jsxs("div",{className:"modal_CTA",onClick:()=>window.open(s),children:[" ",l," "]}),y&&i.jsxs("div",{className:"scroll-indicator",children:[i.jsx("div",{className:"scroll-fade"}),i.jsx("div",{className:"scroll-text",onClick:g,children:i.jsxs("span",{className:"flex gap-2 items-center cursor-pointer",children:[i.jsx(Hm,{fontSize:9,strokeWidth:2,className:"bounce-arrow text-green-200"}),"Scroll down to view more content"]})})]})]})})}const xVe=({selectView:e,service:t,setShowEditServiceItem:n,services:r,refetch:a})=>{const[s,o]=v.useState({...t,categories:t.categories?.map(I=>typeof I=="string"?{name:I,_id:I}:I)||[],customKeywords:t.customKeywords||[]}),[l,d]=v.useState(""),[u,h]=v.useState(""),[p,g]=v.useState(!1),[y,b]=v.useState(!1),w=v.useRef(null),j=v.useRef(null),S=Te(I=>I.mdaData),{data:k,isLoading:N,isError:_}=Ke({queryKey:["categories"],queryFn:tg}),{data:L,isLoading:E}=Ke({queryKey:["forms",S.slug],queryFn:()=>ys.getFormsByMda(S.slug),enabled:!!S.slug}),T=I=>cU(r?.data,I.name);v.useEffect(()=>{const I=X=>{w.current&&!w.current.contains(X.target)&&g(!1),j.current&&!j.current.contains(X.target)&&b(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const P=I=>{const X=`${au}/${I.mda}/forms/${I._id}`;o({...s,url:X}),b(!1)},$=I=>{if(I.name===S.fullname)return;const X=s.categories?.some(U=>U._id===I._id||U.name===I.name);let F;X?F=s.categories.filter(U=>U._id!==I._id&&U.name!==I.name):F=[...s.categories||[],I],o({...s,categories:F})},O=I=>{if(s.categories.find(U=>U._id===I||U.name===I)?.name===S.fullname)return;const F=s.categories.filter(U=>U._id!==I&&U.name!==I);o({...s,categories:F})},q=I=>{if(I.key==="Enter"&&u.trim()){I.preventDefault();const X={key:u.trim()};s.customKeywords.some(F=>F.key===X.key)||o({...s,customKeywords:[...s.customKeywords,X]}),h("")}},D=I=>{const X=s.customKeywords.filter(F=>F.key!==I);o({...s,customKeywords:X})},V=(Array.isArray(k?.data)?k.data:[]).filter(I=>I.name.toLowerCase().includes(l.toLowerCase())),W=s.categories?.filter(I=>I.name!==S.fullname)||[],B=s.categories?.some(I=>I.name===S.fullname)||!1,H=I=>{o({...s,[I.target.name]:I.target.value})},G=I=>{o({...s,content:I})},K=I=>{if(I.preventDefault(),!s.name||!s.short||s.categories.length===0){ie.error("Please fill in all required fields and select at least one category");return}const X=T(s);if(s.name!==t?.name&&X){ie.error("This service name already exists, use a different name");return}const F={...s,categories:s.categories.map(U=>U.name),formattedName:s.categories.map(U=>Cn(U.name)),keywordsGroup:s.categories.reduce((U,Z)=>(U[Cn(Z.name)]=Z.keywords||[],U),{})};X5(s._id,F).then(U=>{ie.success(U.message||"Service updated successfully"),o({}),n(!1),e("services"),a&&a()})};s.categories;const M=async()=>{if(!s.name||!s.short){ie.error("Please fill in service name and description first");return}try{const I=ie.loading("Generating keywords with AI..."),X=await dJ(s.name,s.short,S.name);X.length>0?(o({...s,customKeywords:[...s.customKeywords,...X]}),ie.dismiss(I),ie.success(`Generated ${X.length} relevant keywords`)):ie.error("Failed to generate keywords. Please try again.")}catch(I){console.error("Error in generateKeywords:",I),ie.error("An error occurred while generating keywords")}};return console.log(s),i.jsxs("div",{children:[i.jsx("h1",{className:"text-[20px] font-semibold",children:"Edit Service"}),i.jsx("p",{className:"text-[14px] text-gray-500 mb-10",children:"Kindly input all valid informations below"}),i.jsxs("form",{className:"flex gap-4 flex-col",children:[i.jsxs("div",{className:"flex flex-col w-[100%] gap-4",children:[i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service title"}),i.jsx("input",{type:"text",name:"name",value:s?.name,onChange:H,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200",placeholder:"Enter the service title here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service description"}),i.jsx("textarea",{name:"short",id:"",cols:"30",rows:"2",value:s?.short,onChange:H,className:"ring-1 ring-gray-200 rounded-[4px] py-2.5 px-3 bg-white text-[14px] outline-none focus:ring-green-600 w-full resize-none",placeholder:"Enter the service description here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5 relative",ref:w,children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service Categories"}),i.jsxs("div",{onClick:()=>g(!p),className:"ring-1 rounded-[4px] min-h-[42px] p-1.5 text-[14px] curs
2870or-pointer bg-white ring-gray-200 flex flex-wrap gap-2 items-center justify-between",children:[i.jsxs("div",{className:"flex flex-wrap gap-2 items-center flex-1",children:[W.length>0?W.map(I=>i.jsxs("span",{className:"bg-green-100 text-green-800 px-2 py-1 rounded-[4px] flex items-center gap-1 text-[14px] font-medium",children:[I.name,i.jsx(et,{height:14,width:14,className:"cursor-pointer hover:text-green-900",onClick:X=>{X.stopPropagation(),O(I._id)}})]},I._id)):i.jsx("span",{className:"text-gray-400 ml-1.5",children:"Select categories for service creation"}),B&&i.jsx("span",{className:"hidden",children:"Ministry category present"})]}),i.jsx(ar,{height:18,width:18,className:`text-gray-400 transition-transform ${p?"rotate-180":""}`})]}),p&&i.jsxs("div",{className:"absolute top-[100%] left-0 right-0 z-50 mt-1 bg-white ring-1 ring-gray-200 rounded-[4px] shadow-lg max-h-[300px] flex flex-col",children:[i.jsx("div",{className:"p-2 border-b border-gray-100 sticky top-0 bg-white",children:i.jsxs("div",{className:"relative flex items-center",children:[i.jsx(rb,{height:16,width:16,className:"absolute left-3 text-gray-400"}),i.jsx("input",{type:"text",value:l,onChange:I=>d(I.target.value),placeholder:"Search categories...",className:"w-full pl-9 pr-3 py-2 text-[14px] outline-none bg-gray-50 rounded-[4px] focus:ring-1 focus:ring-green-600",onClick:I=>I.stopPropagation()})]})}),i.jsx("div",{className:"overflow-y-auto flex-1",children:N?i.jsx("div",{className:"p-4 text-center text-[14px] text-gray-500",children:"Loading categories..."}):V?.length>0?V.filter(I=>I.name!==S.fullname).map(I=>{const X=s.categories?.some(F=>F.name===I.name);return i.jsxs("div",{onClick:()=>$(I),className:"flex items-center justify-between px-4 py-2.5 hover:bg-gray-50 cursor-pointer transition-colors",children:[i.jsx("span",{className:"text-[14px]",children:I.name}),i.jsx("div",{className:`w-5 h-5 rounded border flex items-center justify-center transition-colors ${X?"bg-green-600 border-green-600":"border-gray-300"}`,children:X&&i.jsx(Ua,{height:14,width:14,className:"text-white"})})]},I._id)}):i.jsx("div",{className:"p-4 text-center text-[14px] text-gray-500",children:"No categories found"})})]})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Custom Keywords"}),i.jsxs("div",{className:"flex items-center gap-1 text-[14px] text-gray-400",children:["Generate keywords with"," ",i.jsxs("span",{className:"font-semibold text-green-600 flex items-center gap-1 text-[15px] cursor-pointer hover:text-green-700",onClick:M,children:["ai assistant ",i.jsx(Oe,{fontSize:9})]})]})]}),i.jsx("div",{className:"ring-1 rounded-[4px] min-h-[42px] p-1.5 text-[14px] bg-white ring-gray-200 flex flex-wrap gap-2 items-center",children:i.jsxs("div",{className:"flex flex-wrap gap-2 items-center flex-1",children:[s.customKeywords?.length>0&&s.customKeywords.map((I,X)=>i.jsxs("span",{className:"bg-blue-100 text-blue-600 px-2 py-1 rounded-[4px] flex items-center gap-1 text-[14px] font-medium",children:[I.key,i.jsx(et,{height:14,width:14,className:"cursor-pointer hover:text-blue-900",onClick:()=>D(I.key)})]},X)),i.jsx("input",{type:"text",value:u,onChange:I=>h(I.target.value),onKeyDown:q,className:"flex-1 outline-none text-[14px] min-w-[150px] bg-transparent pl-1.5",style:{fieldSizing:"content"},placeholder:s.customKeywords?.length===0?"Enter keywords and press Enter...":""})]})})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"CTA (Call To Action)"}),i.jsx("input",{type:"text",name:"cta",value:s?.cta,onChange:H,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200",placeholder:"Enter the call to action here..."})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"URL link"}),i.jsxs("div",{className:"relative",ref:j,children:[i.jsx("input",{type:"text",name:"url",value:s?.url,onChange:H,className:"ring-1 rounded-[4px] py-2.5 px-3 text-[14px] outline-none focus:ring-green-600 bg-white ring-gray-200 w-full",placeholder:"Enter the URL link here..."}),i.jsx("button",{type:"button",onClick:()=>b(!y),className:"absolute right-2 top-1/2 transform -translate-y-1/2 px-2 py-1 bg-green-600 text-white text-xs rounded hover:bg-green-700 transition-colors",children:"Attach Forms"}),y&&i.jsxs("div",{className:"absolute top-full right-0 mt-1 w-80 bg-white border border-gray-200 rounded-lg shadow-lg z-10",children:[i.jsx("div",{className:"p-3 border-b border-gray-200",children:i.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Select a form"})}),i.jsx("div",{className:"max-h-60 overflow-y-auto",children:E?i.jsx("div",{className:"p-3 text-center text-sm text-gray-500",children:"Loading forms..."}):L?.data?.length>0?L.data.map(I=>i.jsx("button",{type:"button",onClick:()=>P(I),className:"w-full text-left px-3 py-2 hover:bg-gray-50 border-b border-gray-100 last:border-b-0 transition-colors",children:i.jsxs("div",{className:"flex flex-col",children:[i.jsxs("span",{className:"text-sm font-medium text-gray-900 flex",children:[I.title," ",i.jsx(er,{className:"ml-auto text-[9px]"})]}),i.jsxs("span",{className:"text-xs text-gray-500",children:["Created on -"," ",new Date(I.createdAt).toLocaleDateString("en-NG",{year:"numeric",month:"short",day:"numeric"})]})]})},I._id)):i.jsx("div",{className:"p-3 text-center text-sm text-gray-500",children:"No forms available"})})]})]})]})]}),i.jsxs("div",{className:"w-[100%] flex flex-col gap-1.5",children:[i.jsx("label",{className:"text-[14px] font-semibold",children:"Service Content"}),i.jsx("div",{className:"ring-[1px] ring-gray-200 rounded-[4px]",children:i.jsx(dg,{dataText:G,value:s?.content||"",padding:"0px 20px"})})]}),i.jsx("div",{children:i.jsx("button",{className:"py-3 px-6 rounded-[4px] bg-green-700 text-white text-[14px] font-medium cursor-pointer w-full mt-6",onClick:K,children:"Create Service"})})]})]})},bVe=({data:e,selectView:t,isLoading:n,mdaData:r,services:a,refetch:s})=>{const[o,l]=v.useState(""),[d,u]=v.useState(!1),[h,p]=v.useState(null),[g,y]=v.useState(!1),[b,w]=v.useState(!1),j=JSON.parse(window.localStorage.getItem("MDA__TOKEN")),S=e?.filter(T=>{if(!o)return!0;const P=o.toLowerCase();return T.name.toLowerCase().includes(P)}),k=T=>{p(T),w(!0)}
2870,N=T=>{if(T.author!==j?.mda){ie.error("You are not authorized to edit this service");return}p(T),u(!0)},_=T=>{p(T),y(!0)},L=()=>{if(h?.author!==j?.mda){const T=h?.categories.filter($=>$!==r?.fullname),P=h?.formattedName.filter($=>$!==Cn(r?.fullname));X5(h?._id,{categories:T,formattedName:P}).then($=>{ie.success($.message||"Service deleted successfully"),p(null),y(!1),window.location.reload()})}else Gbe(h?._id).then(T=>{ie.success(T.message||"Service deleted successfully"),p(null),y(!1),window.location.reload()})},E=T=>{if(!T?.updatedAt)return!1;const P=new Date(T.updatedAt),$=new Date,O=new Date($);return O.setDate($.getDate()-3),P>=O};return e?.length?i.jsxs("div",{className:"flex flex-col gap-6",children:[b&&i.jsx("div",{className:"relative left-0 !w-[10%]",children:i.jsx(V4,{data:h,close:()=>w(!1),category:r?.fullname,customClass:"left-0"})}),g&&i.jsxs(ug,{onClose:()=>y(!1),open:g,contentStyling:"lg:!w-[800px] md:!w-[90%]",onConfirm:L,children:[i.jsxs("h1",{children:["Are you sure you want to delete ",i.jsxs("strong",{children:['"',h.name,'"']}),"?"]}),i.jsx("p",{className:"mt-3 text-[14px] text-gray-500",children:"This action cannot be undone. Once deleted, the service will be permanently removed from your account."})]}),d&&i.jsx(_u,{onClose:()=>u(!1),open:d,contentStyling:"lg:!w-[800px] md:!w-[90%]",children:i.jsx(xVe,{selectView:t,service:h,setShowEditServiceItem:u,services:a,refetch:s})}),i.jsxs("div",{className:"titleAdmin flex items-center justify-between z-100",children:[i.jsx("div",{className:"flex gap-[10px]",children:i.jsxs("div",{className:"searchField h-[100%] relative",children:[i.jsx("input",{type:"text",placeholder:"Search services...",className:"py-[15px] pl-[45px] pr-[20px] rounded-[5px] w-[450px] bg-[#f5f5f5] text-[14px] h-full focus:outline-none focus:ring-1 focus:ring-[#27ae60] focus:border-transparent transition-all duration-200",value:o,onChange:T=>l(T.target.value)}),i.jsxs("svg",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),o&&i.jsx("button",{onClick:()=>l(""),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none","aria-label":"Clear search",children:i.jsx(et,{width:16,height:16})})]})}),i.jsxs("button",{className:"w-[max-content] py-3 px-6 text-[14px] font-semibold flex gap-1 items-center justify-center pl-4.5 cursor-pointer rounded-[6px] bg-gray-800 text-white text-center",onClick:()=>t("new-service"),children:[i.jsx(vr,{})," Add New Service"]})]}),i.jsx("div",{className:"grid gap-4 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-20",children:S.length?S?.reverse().map((T,P)=>i.jsxs("div",{className:"relative flex flex-col p-5 bg-white rounded-xl border border-gray-100 hover:shadow-lg shadow-black/5 transition-shadow duration-200",children:[i.jsx("div",{className:"w-full",children:i.jsxs("div",{className:"flex items-center gap-3 w-full",children:[E(T)&&i.jsx("div",{className:"flex items-center gap-1 absolute top-4 right-4",children:i.jsx("span",{className:"px-2 py-1 text-[12px] font-semibold text-white bg-green-600 rounded-[4px]",children:"New"})}),i.jsxs("div",{className:"w-full",children:[i.jsx("div",{className:"",children:i.jsx("h3",{className:"text-[15px] font-semibold text-gray-900 line-clamp-1 break-words",title:T.name,children:T.name})}),i.jsx("div",{className:"mt-1",children:i.jsx("p",{className:"text-sm text-gray-500 line-clamp-1 break-words",title:T.short,children:T.short||"Service description"})})]})]})}),i.jsxs("div",{className:"mt-5 pt-4 border-t border-gray-100 flex items-center justify-between",children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsxs("button",{onClick:()=>k(T),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-gray-700 hover:text-white bg-gray-100 hover:bg-green-600 rounded-md transition-colors cursor-pointer",children:[i.jsx(Oe,{width:14,height:14}),"View"]}
2870)}),i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("button",{onClick:()=>N(T),className:"p-1.5 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-md transition-colors cursor-pointer",title:"Edit",children:i.jsx(Do,{width:16,height:16})}),i.jsx("button",{onClick:()=>_(T),className:"p-1.5 text-gray-500 hover:text-red-600 hover:bg-red-50 rounded-md transition-colors cursor-pointer",title:"Delete",children:i.jsx(Um,{width:16,height:16})})]})]})]},T.id||P)):i.jsx("div",{className:"w-full text-[16px] text-gray-600 py-8 text-center",children:o?"No matching services found.":'No services available. Click "Add New Service" to create one.'})})]}):i.jsxs("div",{className:"flex flex-col items-center justify-center h-[75vh] gap-5",children:[i.jsx("div",{children:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",id:"Widget-14--Streamline-Solar",height:"80",width:"80",children:[i.jsx("desc",{children:"Widget 14 Streamline Icon: https://streamlinehq.com"}),i.jsxs("g",{id:"Bold Duotone/Settings Fine Tuning/Widget 14",children:[i.jsx("path",{id:"Vector",fill:"#77e183",d:"M3.3333333333333335 29.166666666666668C3.3333333333333335 25.0245 6.691199999999999 21.666666666666668 10.833333333333334 21.666666666666668h4.500000000000001c1.0501 0 1.5751666666666668 0 1.9761666666666666 0.20433333333333334 0.35283333333333333 0.17983333333333335 0.6396666666666666 0.46666666666666673 0.8195000000000001 0.8195000000000001C18.333333333333336 23.091500000000003 18.333333333333336 23.616500000000002 18.333333333333336 24.666666666666668v4.500000000000001c0 4.142166666666667 -3.3578666666666668 7.5 -7.5 7.5S3.3333333333333335 33.30883333333333 3.3333333333333335 29.166666666666668Z","stroke-width":"1.6667"}),i.jsx("path",{id:"Vector_2",fill:"#77e183",d:"M21.666666666666668 10.833333333333334C21.666666666666668 6.691199999999999 25.0245 3.3333333333333335 29.166666666666668 3.3333333333333335S36.66666666666667 6.691199999999999 36.66666666666667 10.833333333333334 33.30883333333333 18.333333333333336 29.166666666666668 18.333333333333336h-5.357166666666667c-0.24866666666666667 0 -0.37316666666666665 0 -0.4778333333333334 -0.011833333333333335 -0.8691666666666666 -0.09783333333333334 -1.5553333333333335 -0.784 -1.6531666666666667 -1.6531666666666667C21.666666666666668 16.563633333333332 21.666666666666668 16.43925 21.666666666666668 16.190483333333333V10.833333333333334Z","stroke-width":"1.6667"}),i.jsxs("g",{id:"Group",children:[i.jsx("path",{id:"Vector_3",fill:"#1a565f",d:"M3.3333333333333335 10.833333333333334C3.3333333333333335 6.691199999999999 6.691199999999999 3.3333333333333335 10.833333333333334 3.3333333333333335S18.333333333333336 6.691199999999999 18.333333333333336 10.833333333333334v5c0 0.5812333333333334 0 0.8718333333333333 -0.06383333333333334 1.1103333333333334 -0.17350000000000002 0.647 -0.6788333333333334 1.1523333333333334 -1.3258333333333334 1.3258333333333334C16.705166666666667 18.333333333333336 16.414566666666666 18.333333333333336 15.833333333333334 18.333333333333336h-5C6.691199999999999 18.333333333333336 3.3333333333333335 14.975466666666666 3.3333333333333335 10.833333333333334Z","stroke-width":"1.6667"}),i.jsx("path",{id:"Vector_4",fill:"#1a565f",d:"M21.666666666666668 24.166666666666668c0 -0.5811666666666667 0 -0.8718333333333333 0.06383333333333334 -1.1103333333333334 0.17350000000000002 -0.647 0.6788333333333334 -1.1523333333333334 1.3258333333333334 -1.3258333333333334C23.294833333333337 21.666666666666668 23.585500000000003 21.666666666666668 24.166666666666668 21.666666666666668h5c4.142166666666667 0 7.5 3.3578333333333332 7.5 7.5S33.30883333333333 36.66666666666667 29.166666666666668 36.66666666666667 21.666666666666668 33.30883333333333 21.666666666666668 29.166666666666668v-5Z","stroke-width":"1.6667"})]})]})]})}),i.jsxs("div",{className:"flex flex-col items-center gap-3",children:[i.jsx("h1",{className:"text-[20px] font-semibold",children:"No Services Yet"}),i.jsx("p",{className:"text-[14px] text-gray-500 w-[400px] text-center",children:"You haven't added any services yet. Click the button below to add a new service."}),i.jsxs("button",{className:"w-[max-content] py-3 px-6 text-[14px] font-semibold flex gap-1 items-center justify-center pl-4.5 cursor-pointer rounded-[6px] bg-gray-800 text-white text-center",onClick:()=>t("new-service"),children:[i.jsx(vr,{})," Add New Service"]})]})]})},wVe=()=>{const[e,t]=v.useState("services"),n=Te(d=>d?.mdaData),r=d=>{t(d)},{data:a,isLoading:s,refetch:o}=Ke({queryKey:["services",n?.fullname,e],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname});if(s||!a)return i.jsx(Rn,{});const l=()=>{switch(e){case"services":return i.jsx(bVe,{data:a?.data,selectView:r,isLoading:s,mdaData:n,services:a,refetch:o});case"category":return i.jsx(mVe,{selectView:r,id:n?._id,services:a?.data,mdaData:n});case"new-service":return i.jsx(yVe,{selectView:r,services:a?.data,refetch:o});default:return i.jsx(Rn,{})}};return i.jsx("div",{children:l()})},AC="text-gray-700 text-[14px]",Yq="text-gray-400 text-[14px]",EC="flex flex-col gap-3 border-b border-gray-100 pb-6",_C="p-5 w-full text-[15px] leading-[23px] border-none outline-none bg-gray-50 rounded-lg",
2870Kq={current:"",next:"",confirm:""},jVe=()=>{const[e,t]=v.useState({firstname:"",lastname:"",role:"",mda:"",id:""}),[n,r]=v.useState(Kq),[a,s]=v.useState(!1);v.useEffect(()=>{const d=window.localStorage.getItem("MDA__TOKEN");if(!d)return;const u=JSON.parse(d);t({firstname:u.firstname||"",lastname:u.lastname||"",role:u.role||"",mda:u.mda||"",id:u.id||""})},[]);const o=d=>{r(u=>({...u,[d.target.name]:d.target.value}))},l=async()=>{if(!n.current||!n.next||!n.confirm){ie.error("Please fill in all password fields");return}if(n.next.length<8){ie.error("New password must be at least 8 characters");return}if(n.next!==n.confirm){ie.error("New password and confirmation do not match");return}s(!0),cke(e.id,n.current,n.next).then(d=>{d.status==="ok"?(ie.success(d.message||"Password updated successfully"),r(Kq)):ie.error(d.message||"Failed to update password")}).catch(d=>{ie.error(d.message||"Failed to update password. Please try again.")}).finally(()=>s(!1))};return i.jsxs("div",{className:"flex flex-col gap-6 w-[700px] mx-auto",children:[a?i.jsx(Rn,{customClass:""}):null,i.jsxs("div",{className:"flex items-center gap-4 bg-white rounded-lg p-8",children:[i.jsx("div",{className:"w-14 h-14 rounded-full bg-gray-100 flex items-center justify-center text-gray-400 shrink-0",children:i.jsx(S5,{width:26,height:26})}),i.jsxs("div",{children:[i.jsxs("p",{className:"text-[16px] font-semibold text-gray-900",children:[e.firstname," ",e.lastname]}),i.jsxs("p",{className:"text-[13px] text-gray-500 capitalize",children:[e.role," ",e.mda?`· ${e.mda}`:""]})]})]}),i.jsxs("div",{className:"flex flex-col relative bg-white w-full rounded-lg p-8 gap-8",children:[i.jsx("div",{className:"flex items-center justify-between",children:i.jsx("h2",{className:"text-xl font-semibold text-gray-800 mb-5",children:"Update the password used to sign in to this admin portal."})}),i.jsxs("div",{className:EC,children:[i.jsxs("div",{className:AC,children:[i.jsx("p",{className:"font-bold",children:"Current Password"}),i.jsx("span",{className:Yq,children:"Confirm it's you before changing anything."})]}),i.jsx("input",{type:"password",name:"current",placeholder:"Enter current password",value:n.current,onChange:o,className:_C,autoComplete:"current-password"})]}),i.jsxs("div",{className:EC,children:[i.jsxs("div",{className:AC,children:[i.jsx("p",{className:"font-bold",children:"New Password"}),i.jsx("span",{className:Yq,children:"Use at least 8 characters."})]}),i.jsx("input",{type:"password",name:"next",placeholder:"Enter new password",value:n.next,onChange:o,className:_C,autoComplete:"new-password"})]}),i.jsxs("div",{className:EC,children:[i.jsx("div",{className:AC,children:i.jsx("p",{className:"font-bold",children:"Confirm New Password"})}),i.jsx("input",{type:"password",name:"confirm",placeholder:"Re-enter new password",value:n.confirm,onChange:o,className:_C,autoComplete:"new-password"})]}),i.jsx("div",{className:"flex text-black",children:i.jsx("div",{className:"flex gap-[10px]",children:i.jsxs("button",{className:"py-[12px] pl-[15px] pr-5 text-white text-[13px] font-bold rounded-[5px] cursor-pointer bg-green-700 ml-auto flex items-center gap-1 disabled:opacity-60",onClick:l,disabled:a,children:[i.jsx(coe,{fontSize:12,strokeWidth:2}),a?"Saving...":"Update Password"]})})})]})]})},SVe=()=>{const[e,t]=v.useState(""),[n,r]=v.useState(!1),[a,s]=v.useState(null),o=Te(j=>j?.mdaData),l=SU(),{data:d,isLoading:u,error:h}=Ke({queryKey:["subscribers",o?._id],queryFn:()=>fW(o?._id),enabled:!!o?._id});if(h)return i.jsx("div",{className:"flex items-center justify-center h-[50vh]",children:i.jsxs("div",{className:"text-center",children:[i.jsx("p",{className:"text-red-600 mb-2",children:"Error loading subscribers"}),i.jsx("p",{className:"text-gray-500 text-sm",children:"Please try again later"})]})});if(u||!d)return i.jsx(Rn,{});const p=d?.data?.filter(j=>{if(!e)return!0;const S=e.toLowerCase();return j.email.toLowerCase().includes(S)})||[],g=j=>{const S=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-teal-500","bg-orange-500","bg-cyan-500"];let k=0;for(let N=0;N<j.length;N++)k=j.charCodeAt(N)+((k<<5)-k);return S[Math.abs(k)%S.length]},y=j=>j.charAt(0).toUpperCase(),b=j=>{s(j),r(!0)},w=async()=>
2870{a&&(await qAe(a._id),l.invalidateQueries(["subscribers",o?._id]),r(!1),s(null))};return p.length?i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsx("div",{className:"titleAdmin flex items-center justify-between",children:i.jsx("div",{className:"flex gap-[10px]",children:i.jsxs("div",{className:"searchField h-[100%] relative",children:[i.jsx("input",{type:"text",placeholder:"Search subscribers...",className:"py-[15px] pl-[45px] pr-[20px] rounded-[5px] w-[450px] bg-[#f5f5f5] text-[14px] h-full focus:outline-none focus:ring-1 focus:ring-[#27ae60] focus:border-transparent transition-all duration-200",value:e,onChange:j=>t(j.target.value)}),i.jsxs("svg",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})]})})}),i.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden mt-20",children:[i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full",children:[i.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:i.jsxs("tr",{children:[i.jsx("th",{className:"px-6 py-4 text-left text-[12px] font-semibold text-gray-600 uppercase tracking-wider",children:"Email Address"}),i.jsx("th",{className:"px-6 py-4 text-left text-[12px] font-semibold text-gray-600 uppercase tracking-wider",children:"Date Subscribed"}),i.jsx("th",{className:"px-6 py-4 text-left text-[12px] font-semibold text-gray-600 uppercase tracking-wider",children:"Actions"})]})}),i.jsx("tbody",{className:"divide-y divide-gray-200",children:p.map((j,S)=>i.jsxs("tr",{className:"hover:bg-gray-50 transition-colors",children:[i.jsx("td",{className:"px-6 py-4",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:`w-10 h-10 rounded-full ${g(j.email)} flex items-center justify-center text-white font-semibold text-sm`,children:y(j.email)}),i.jsx("span",{className:"text-sm text-gray-900 font-medium",children:j.email})]})}),i.jsx("td",{className:"px-6 py-4",children:i.jsx("span",{className:"text-sm text-gray-600",children:Dn(j.createdAt)})}),i.jsx("td",{className:"px-6 py-4 align-middle",children:i.jsxs("div",{className:"px-3.5 py-1.5 pl-1.5 rounded flex items-center justify-center gap-0.5 bg-gray-100 w-[max-content] hover:text-red-600 hover:bg-red-50 cursor-pointer",onClick:()=>b(j),children:[i.jsx("button",{className:"p-1.5 rounded-md transition-colors cursor-pointer",title:"Delete subscriber",children:i.jsx(Um,{width:16,height:16})}),i.jsx("p",{className:"text-[14px]",children:"Unsubscribe"})]})})]},j._id||S))})]})}),p.length===0&&e&&i.jsx("div",{className:"text-center py-8",children:i.jsxs("p",{className:"text-gray-500 text-sm",children:['No subscribers found matching "',e,'"']})})]}),i.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[i.jsxs("div",{children:["Showing ",p.length," of ",d?.data?.length||0," subscribers"]}
2870),p.length>0&&i.jsxs("div",{className:"text-xs text-gray-500",children:["Last updated: ",Dn(d?.data?.[0]?.updatedAt||new Date)]})]}),n&&i.jsxs(ug,{onClose:()=>r(!1),open:n,contentStyling:"lg:!w-[400px] md:!w-[90%]",onConfirm:w,children:[i.jsxs("h1",{children:["Are you sure you want to delete ",i.jsxs("strong",{children:['"',a?.email,'"']}),"?"]}),i.jsx("p",{className:"mt-3 text-[14px] text-gray-500",children:"This action cannot be undone. Once deleted, the subscriber will be permanently removed from your list."})]})]}):i.jsxs("div",{className:"flex flex-col items-center justify-center h-[75vh] gap-5",children:[i.jsx("div",{children:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",height:"40",width:"40",children:[i.jsx("desc",{children:"Mail Streamline Icon: https://streamlinehq.com"}),i.jsxs("g",{id:"Mail--Streamline-Solar",children:[i.jsx("path",{id:"Vector",fill:"#374151",d:"M3.3333333333333335 10.833333333333334c0 -2.3011666666666668 1.8655 -4.166666666666667 4.166666666666667 -4.166666666666667h25c2.3011666666666668 0 4.166666666666667 1.8655 4.166666666666667 4.166666666666667v18.333333333333332c0 2.3011666666666668 -1.8655 4.166666666666667 -4.166666666666667 4.166666666666667h-25c-2.3011666666666668 0 -4.166666666666667 -1.8655 -4.166666666666667 -4.166666666666667v-18.333333333333332Z",strokeWidth:"1.6667"}),i.jsx("path",{id:"Vector_2",fill:"#ffffff",d:"M3.3333333333333335 11.666666666666668c0.6448333333333334 -0.6448333333333334 1.6891666666666667 -0.6448333333333334 2.3333333333333335 0l11.666666666666666 11.666666666666666c0.6448333333333334 0.6448333333333334 1.6891666666666667 0.6448333333333334 2.3333333333333335 0l11.666666666666666 -11.666666666666666c0.6448333333333334 -0.6448333333333334 1.6891666666666667 -0.6448333333333334 2.3333333333333335 0s0.6448333333333334 1.6891666666666667 0 2.3333333333333335l-11.666666666666666 11.666666666666666c-1.9345 1.9345 -5.067833333333333 1.9345 -7 0L3.3333333333333335 14c-0.6448333333333334 -0.6448333333333334 -0.6448333333333334 -1.6891666666666667 0 -2.3333333333333335Z",strokeWidth:"1.6667"})]})]})}),i.jsxs("div",{className:"flex flex-col items-center gap-3",children:[i.jsx("h1",{className:"text-[20px] font-semibold",children:"No Subscribers Yet"}),i.jsx("p",{className:"text-[14px] text-gray-500 w-[400px] text-center",children:"You don't have any subscribers yet. Users will appear here when they subscribe to your updates."})]})]})},CVe=({mda_data:e})=>{const[t,n]=v.useState({}),[r,a]=v.useState(!1),[s,o]=v.useState({}),l=Te(u=>u.refetchData);v.useEffect(()=>{n(e)},[e]);const d=()=>{a(!0);const u=Object.entries(s).filter(([g,y])=>y!==void 0&&y!=="").map(([g])=>g);if(u.length===0){ie.info("No changes detected, nothing to update"),a(!1);return}let h="";if(u.length===1)h=u[0];else{const g=u.slice(0,-1).join(", "),y=u[u.length-1];h=`${g} & ${y}`}const p=`updated ${h} content`;ki(t._id,t,p).then(()=>{a(!1),o({}),l&&l()}).catch(g=>{a(!1),ie.error(g.message)})};return i.jsxs("div",{className:"flex flex-col relative mt-[0px] bg-white w-[700px] mx-auto rounded-lg p-8 gap-8",children:[r?i.jsx(Rn,{customClass:""}):null,i.jsx("div",{className:"flex items-center justify-between",children:i.jsx("h2",{className:"text-xl font-semibold text-gray-800 w-[350px] mb-5",children:"Manage your MDAâs vision, mission, and strategic goals."})}),i.jsxs("div",{className:" flex flex-col gap-3 border-b border-gray-100 pb-6",children:[i.jsxs("div",{className:" text-gray-700 text-[14px]",children:[i.jsx("p",{className:"font-bold",children:"About Section Subtitle"}),i.jsx("span",{className:"text-gray-400 text-[14px]",children:"Shown as the intro text on your MDAâs About page. Leave blank to use the default below."})]}),i.jsx("textarea",{name:"aboutSubtitle",placeholder:"Comprehensive Insight into the Ministryâs Vision, Administrative Structure, Principal Officers, and Operational Responsibilities",value:t.aboutSubtitle||"",onChange:u=>{n({...t,aboutSubtitle:u.target.value}),o({...s,aboutSubtitle:u.target.value})},className:"p-5 w-full resize-none text-[15px] leading-[23px] min-h-[120px] border-none outline-none bg-gray-50 rounded-lg [field-sizing:content]"})]}),i.jsxs("div",{className:" flex flex-col gap-3 border-b border-gray-100 pb-6",children:[i.jsxs("div",{className:" text-gray-700 text-[14px]",children:[i.jsx("p",{className:"font-bold",children:"Our Vision"}),i.jsx("span",{className:"text-gray-400 text-[14px]",children:"Describe your MDAâs long-term vision and future aspirations."})]}),i.jsx("textarea",{name:"vision",placeholder:"Enter vision",value:t.vision,onChange:u=>{n({...t,vision:u.target.value}),o({...s,vision:u.target.value})},className:"p-5 w-full resize-none text-[15px] leading-[23px] min-h-[120px] border-none outline-none bg-gray-50 rounded-lg [field-sizing:content]"})]}),i.jsxs("div",{className:" flex flex-col gap-3 border-b border-gray-100 pb-6",children:[i.jsxs("div",{className:" text-gray-700 text-[14px]",children:[i.jsx("p",{className:"font-bold",children:"Our Mission"}),i.jsx("span",{className:"text-gray-400 text-[14px]",children:"State your MDAâs purpose, mandate, and commitment to public service."})]}),i.jsx("textarea",{name:"mission",placeholder:"Enter mission",value:t.mission,onChange:u=>{n({...t,mission:u.target.value}),o({...s,mission:u.target.value})},className:"p-5 w-full resize-none text-[15px] leading-[23px] min-h-[120px] border-none outline-none bg-gray-50 rounded-lg [field-sizing:content]"})]}),i.jsxs("div",{className:" flex flex-col gap-3",children:[i.jsxs("div",{className:" text-gray-700 text-[14px]",children:[i.jsx("p",{className:"font-bold",children:"Our Goals"}),i.jsx("span",{className:"text-gray-400 text-[14px]",children:"Outline the key goals and strategic objectives of your MDA."})]}),i.jsx("textarea",{name:"goal",placeholder:"Enter goal",value:t.goal,onCh
2870ange:u=>{n({...t,goal:u.target.value}),o({...s,goal:u.target.value})},className:"p-5 w-full resize-none text-[15px] leading-[23px] min-h-[120px] border-none outline-none bg-gray-50 rounded-lg [field-sizing:content]"})]}),i.jsx("div",{className:"flex text-black",children:i.jsx("div",{className:"flex gap-[10px]",children:i.jsxs("button",{className:"py-[12px] pl-[15px] pr-5 text-white text-[13px] font-bold rounded-[5px] cursor-pointer bg-green-700 ml-auto flex items-center gap-1",onClick:d,disabled:r,children:[i.jsx(kz,{fontSize:12,strokeWidth:2}),r?"Saving...":"Save Changes"]})})})]})},Tu=e=>{if(!e)return!1;const t=e.replace("#","");if(t.length!==6)return!1;const n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,a=parseInt(t.slice(4,6),16)/255,s=l=>l<=.03928?l/12.92:((l+.055)/1.055)**2.4;return .2126*s(n)+.7152*s(r)+.0722*s(a)<.45},kVe="#1c3f3a",G4=e=>{const t=e.replace("#","");return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}},W4=({r:e,g:t,b:n})=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),a=Math.min(e,t,n);let s=0,o=0;const l=(r+a)/2;if(r!==a){const d=r-a;switch(o=l>.5?d/(2-r-a):d/(r+a),r){case e:s=(t-n)/d+(t<n?6:0);break;case t:s=(n-e)/d+2;break;default:s=(e-t)/d+4}s/=6}return{h:s,s:o,l}},TC=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e},Y4=({h:e,s:t,l:n})=>{if(t===0){const s=Math.round(n*255);return{r:s,g:s,b:s}}const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;return{r:Math.round(TC(a,r,e+1/3)*255),g:Math.round(TC(a,r,e)*255),b:Math.round(TC(a,r,e-1/3)*255)}},LC=e=>e.toString(16).padStart(2,"0"),K4=({r:e,g:t,b:n})=>`#${LC(e)}${LC(t)}${LC(n)}`,Xq=(e,{saturation:t=.6,lightness:n=.9}={})=>{const r=W4(G4(e));return K4(Y4({h:r.h,s:t,l:n}))},NVe=(e,{lightness:t=.28}={})=>{const n=W4(G4(e));return K4(Y4({h:n.h,s:Math.max(n.s,.4),l:t}))},Zq=(e,{saturation:t=.4,lightness:n=.12}={})=>{const r=W4(G4(e));return K4(Y4({h:r.h,s:t,l:n}))},fJ=e=>{const t=e?.color||kVe,n=Tu(t),r=e?.appearance==="dark";return{accent:t,accentText:n?"#ffffff":"#111827",pastel:Xq(t),darkSurface:Zq(t),shade:NVe(t),isDarkMode:r,pageBg:r?"#0a0a0a":"#ffffff",pageText:r?"#f5f5f5":"#111827",sectionBg:r?Zq(t):Xq(t),gradientCss:e?.mode==="gradient"&&e?.gradientEnd?`linear-gradient(135deg, ${t}, ${e.gradientEnd})`:null}},Kf=e=>{const t=fJ(e);return{"--theme-accent":t.accent,"--theme-accent-text":t.accentText,"--theme-pastel":t.pastel,"--theme-dark-surface":t.darkSurface,"--theme-shade":t.shade,"--theme-page-bg":t.pageBg,"--theme-page-text":t.pageText,"--theme-section-bg":t.sectionBg,backgroundColor:"var(--theme-page-bg)",color:"var(--theme-page-text)"}},AVe=[{label:"Green",value:"#1c3f3a"},{label:"Blue",value:"#2563eb"},{label:"Purple",value:"#7c3aed"},{label:"Red",value:"#dc2626"},{label:"Orange",value:"#ea580c"},{label:"Gold",value:"#ca8a04"},{label:"Teal",value:"#0d9488"},{label:"Navy",value:"#1e3a8a"}],EVe=[{label:"Teal â Blue",color:"#0d9488",gradientEnd:"#2563eb"},{label:"Purple â Pink",color:"#7c3aed",gradientEnd:"#db2777"},{label:"Orange â Red",color:"#ea580c",gradientEnd:"#dc2626"},{label:"Green â Teal",color:"#1c3f3a",gradientEnd:"#0d9488"},{label:"Sunset",color:"#ea580c",gradientEnd:"#db2777"},{label:"Ocean",color:"#2563eb",gradientEnd:"#0d9488"}],_Ve=[{key:"preset",label:"Solid"},{key:"gradient",label:"Gradient"},{key:"custom",label:"Custom"}],TVe=({value:e,onChange:t})=>{const n=e?.mode||"preset",[r,a]=v.useState(n),s=p=>{a(p)},o=e?.appearance==="dark"?"dark":"light",l=p=>{t({...e,mode:"preset",color:p,gradientEnd:""})},d=p=>{t({...e,mode:"gradient",color:p.color,gradientEnd:p.gradientEnd})},u=p=>{t({...e,mode:"custom",color:p,gradientEnd:""})},h=p=>{t({...e,appearance:p})};return i.jsxs("div",{children:[i.jsxs("div",{className:"mb-4",children:[i.jsx("span",{className:"text-[13px] font-medium text-gray-700 block mb-2",children:"Appearance"}),i.jsx("div",{className:"flex gap-1 p-1 bg-gray-100 rounded-[8px]",children:[{key:"light",label:"Light"},{key:"dark",label:"Dark"}].map(p=>i.jsx("button",{type:"button",onClick:()=>h(p.key),className:`flex-1 py-2 text-[13px] font-medium rounded-[6px] transition-colors ${o===p.key?"bg-white text-gray-900 shadow-sm":"text-gray-500"}`,children:p.label},p.key))})]}),i.jsx("div",{className:"flex gap-1 p-1 bg-gray-100 rounded-[8px] mb-4",children:_Ve.map(p=>i.jsx("button",{type:"button",onClick:()=>s(p.key),className:`flex-1 py-2 text-[13px] font-medium rounded-[6px] transition-colors ${r===p.key?"bg-white text-gray-900 shadow-sm":"text-gray-500"}`,children:p.label},p.key))}),r==="preset"&&i.jsx("div",{className:"grid grid-cols-4 gap-3",children:AVe.map(p=>i.jsxs("button",{type:"button",onClick:()=>l(p.value),title:p.label,className:`flex flex-col items-center gap-1.5 ${n==="preset"&&e?.color===p.value,""}`,children:[i.jsx("span",{className:`w-10 h-10 rounded-full border-2 transition-all ${n==="preset"&&e?.color===p.value?"border-gray-800 scale-110":"border-gray-200"}`,style:{backgroundColor:p.value}}),i.jsx("span",{className:"text-[11px] text-gray-500",children:p.label})]},p.value))}),r==="gradient"&&i.jsx("div",{className:"grid grid-cols-3 gap-3",children:EVe.map(p=>{const g=n==="gradient"&&e?.color===p.color&&e?.gradientEnd===p.gradientEnd;return i.jsxs("button",{type:"button",onClick:()=>d(p),title:p.label,className:"flex flex-col items-center gap-1.5",children:[i.jsx("span",{className:`w-full h-12 rounded-[8px] border-2 transition-all ${g?"border-gray-800 scale-105":"border-gray-200"}`,style:{background:`linear-gradient(135deg, ${p.color}, ${p.gradientEnd})`}}),i.jsx("span",{className:"text-[11px] text-gray-500",children:p.label})]},p.label)})}),r==="custom"&&i.jsxs("div",{className:"flex flex-col items-center gap-3 py-4",children:[i.jsx("label",{className:"w-16 h-16 rounded-full border-2 border-gray-200 cursor-pointer relative overflow-hidden",style:{background:"conic-gradient(red, yellow, lime, cyan, blue, magenta, red)"},children:i.jsx("input",{type:"color",value:n==="custom"&&e?.color||"#00b44e",onChange:p=>u(p.target.value),className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})}),i.jsx("span",{className:"text-xs text-gray-500 uppercase",children:n==="custom"?e?.color:"Pick a color"})]})]})},LVe=()=>{const e=Te(p=>p.mdaData),t=Te(p=>p.refetchData),[n,r]=v.useState(e?.colorTheme?.color?e.colorTheme:{mode:"preset",color:"",gradientEnd:"",appearance:"light"}),[a,s]=v.useState(!1),[o,l]=v.useState(!1),d=fJ(n),u=p=>{r(p),l(!0)},h=()=>{s(!0),ki(e._id,{colorTheme:n},"updated the site color theme").then(()=>{l(!1),t?.()}).finally(()=>s(!1))};return i.jsxs("div",{className:"max-w-[900px] mx-auto py-10 px-6",children:[i.jsxs("div",{className:"mb-8",children:[i.jsx("h1",{className:"text-[22px] font-semibold text-gray-900",children:"Site Theme"}),i.jsx("p",{className:"text-[14px] text-gray-500 mt-1",children:"Pick a color and an appearance for your site. In Light mode, backgrounds stay light with dark text; in Dark mode, backgrounds go dark with light text â except sections where you've manually set a background color. Buttons, CTAs, the newsletter box, and the footer greeting will use the color itself."})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[i.jsx("div",{className:"bg-white rounded-[10px] border border-gray-100 p-6",children:i.jsx(TVe,{value:n,onChange:u})}),i.jsxs("div",{className:"rounded-[10px] border border-gray-100 p-6",style:{backgroundColor:d.pageBg},children:[i.jsx("span",{className:"text-[13px] font-medium block mb-3",style:{color:d.pageText},children:"Preview"}),i.jsxs("div",{className:"rounded-[10px] p-6 flex flex-col gap-4",style:{background:d.gradientCss||d.sectionBg},children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-[15px] font-semibold",style:{color:d.pageText},children:"Section heading"}),i.jsx("p",{className:"text-[13px] mt-1 opacity-70",style:{color:d.pageText},children:"This is what a section background looks like with your chosen color and appearance."})]}),i.jsx("button",{type:"button",className:"self-start px-4 py-2 rounded-[5px] text-[13px] font-medium uppercase tracking-[1px]",style:{backgroundColor:d.accent,color:d.accentText},children:"Call to Action"})]}),i.jsxs("div",{className:"rounded-[10px] p-5 mt-4 flex items-center justify-between gap-4",style:{backgroundColor:d.accent},children:[i.jsx("span",{className:"text-[13px] font-medium",style:{color:d.accentText},children:"Subscribe to our newsletter"}),i.jsx("button",{type:"button",className:"px-4 py-2 rounded-[5px] text-[12px] font-medium text-white shrink-0",style:{backgroundColor:d.shade},children:"Subscribe"})]}),i.jsxs("div",{className:"mt-4 text-[13px] opacity-70",style:{color:d.pageText},children:["Lagos, ",i.jsx("span",{style:{color:d.accent,fontWeight:600},children:"good afternoon"})]})]})]}),i.jsx("div",{className:"flex justify-end mt-6",children:i.jsx("button",{type:"button",onClick:h,disabled:!o||a,className:`px-6 py-3 rounded-[5px] text-[13px] font-medium uppercase tracking-[1px] text-white ${!o||a?"bg-gray-300 cursor-not-allowed":"bg-green-600 hover:bg-green-700"}`,children:a?"Saving...":"Save Theme"})})]})},Dg=`${Nn}`,cn=JSON.parse(window.localStorage.getItem("MDA__TOKEN")),zl=window.location.pathname,OC=async e=>{if(!cn||!cn.token){ie.error("You are not authorized to access this page"),window.location.href=zl;return}const t=await es(cn.token,e.mda);if(t.status==="bad")return ie.error(t.message),window.location.href=`/${e.mda}/admin/${zl}`,t;try{const n=await De.post(`${Dg}/draft/create`,{...e});return n.status===200?(ie.success(n.data.message),Ja({initiator:cn?.firstname+" "+cn?.lastname,mda:e.mda,activity:`${cn?.firstname+" "+cn?.lastname} created a draft`}),n.data):(console.error(n.data.message),null)}catch{return ie.error("Failed to create draft"),null}},OVe=async e=>{if(!cn||!cn.token){ie.error("You are not authorized to access this page"),window.location.href=zl;return}const t=await es(cn.token);if(t.status==="bad")return ie.error(t.message),window.location.href=zl,t;try{const n=await De.get(`${Dg}/draft/get/mda/${e}`);return n.status===200?n.data.data:(ie.error(n.data.message),null)}catch{return ie.error("Failed to fetch drafts for MDA"),null}},Lu=async e=>{try{const t=await De.get(`${Dg}/draft/view/${e}`);return t.status===200?t.data.data:(ie.error(t.data.message),null)}catch{return null}},hJ=async(e,t)=>{if(!cn||!cn.token){ie.error("You are not authorized to access this page"),window.location.href=zl;return}const n=await es(cn.token,t.mda);if(n.status==="bad")return ie.error(n.message),window.location.href=zl,n;try{const r=await De.put(`${Dg}/draft/update/${e}`,t);return r.status===200?(Ja({initiator:cn?.firstname+" "+cn?.lastname,mda:t.mda,activity:`${cn?.firstname+" "+cn?.lastname} updated a draft`}),r.data):(ie.error(r.data.message),null)}catch(r){return console.error("Failed to update draft:",r),{status:"error",message:r.response?.data?.message||"Failed to update draft",httpStatus:r.response?.status??null}}},MVe=async(e,t)=>{if(!cn||!cn.token){ie.error("You are not authorized to access this page"),window.location.href=zl;return}const n=await es(cn.token);if(n.status==="bad")return ie.error(n.message),window.location.href=zl,n;try{const r=await De.delete(`${Dg}/draft/delete/${e}`);return r.status===200?(ie.success(r.data.message),Ja({initiator:cn?.firstname+" "+cn?.lastname,mda:t,activity:`${cn?.firstname+" "+cn?.lastname} deleted a draft`}),r.data):(ie.error(r.data.message),null)}catch{return console.error("Failed to delete draft"),null}};function DVe(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var s;const o=d=>d===null?null:JSON.parse(d,void 0),l=(s=n.getItem(a))!=null?s:null;return l instanceof Promise?l.then(o):o(l)},setItem:(a,s)=>n.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>n.removeItem(a)}}const u5=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return u5(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return u5(r)(n)}}}},PVe=(e,t)=>(n,r,a)=>{let s={storage:DVe(()=>localStorage),partialize:w=>w,version:0,merge:(w,j)=>({...j,...w}),...t},o=!1;const l=new Set,d=new Set;let u=s.storage;if(!u)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...w)},r,a);const h=()=>{const w=s.partialize({...r()});return u.setItem(s.name,{state:w,version:s.version})},p=a.setState;a.setState=(w,j)=>(p(w,j),h());const g=e((...w)=>(n(...w),h()),r,a);a.getInitialState=()=>g;let y;const b=()=>{var w,j;if(!u)return;o=!1,l.forEach(k=>{var N;return k((N=r())!=null?N:g)});const S=((j=s.onRehydrateStorage)==null?void 0:j.call(s,(w=r())!=null?w:g))||void 0;return u5(u.getItem.bind(u))(s.name).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==s.version){if(s.migrate){const N=s.migrate(k.state,k.version);return N instanceof Promise?N.then(_=>[!0,_]):[!0,N]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,k.state];return[!1,void 0]}).then(k=>{var N;const[_,L]=k;
2870if(y=s.merge(L,(N=r())!=null?N:g),n(y,!0),_)return h()}).then(()=>{S?.(y,void 0),y=r(),o=!0,d.forEach(k=>k(y))}).catch(k=>{S?.(void 0,k)})};return a.persist={setOptions:w=>{s={...s,...w},w.storage&&(u=w.storage)},clearStorage:()=>{u?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>o,onHydrate:w=>(l.add(w),()=>{l.delete(w)}),onFinishHydration:w=>(d.add(w),()=>{d.delete(w)})},s.skipHydration||b(),y||g},RVe=PVe,IVe=()=>{try{if(typeof window<"u"){const e=window.localStorage.getItem("MDA__TOKEN");if(e){const t=JSON.parse(e);return`edit-data-storage-${t.mda||t.slug||"default"}`}}}catch(e){console.warn("Could not determine MDA for storage key:",e)}return"edit-data-storage-default"},nt=rg(RVe(e=>({mdaEditData:{},originalData:{},activeDraftId:"",currentMda:"",isDirty:!1,setMdaEditData:t=>e(n=>({mdaEditData:t,isDirty:JSON.stringify(t)!==JSON.stringify(n.originalData)})),setOriginalData:t=>e({originalData:t}),setActiveDraftId:t=>e({activeDraftId:t}),setCurrentMda:t=>e({currentMda:t}),resetDirty:()=>e({isDirty:!1}),clearEditData:()=>e({mdaEditData:{},originalData:{},activeDraftId:"",isDirty:!1})}),{name:IVe(),partialize:e=>({activeDraftId:e.activeDraftId,mdaEditData:e.mdaEditData,currentMda:e.currentMda})})),X4=({children:e})=>i.jsx("div",{className:"mt-[70px]",children:e}),$Ve=()=>{const{setActiveDraftId:e,setMdaEditData:t,setOriginalData:n,getDraftList:r,currentDraftId:a,mdaEditData:s,renameDraft:o,createNewDraft:l,activeDraftId:d}=nt(),u=Te(G=>G.mdaData?.slug),[h,p]=v.useState(""),[g,y]=v.useState(!1),[b,w]=v.useState(null),[j,S]=v.useState(""),[k,N]=v.useState(null);v.useRef(null);const _=v.useRef(null),[L,E]=v.useState([]),T=pt();v.useEffect(()=>{const G=K=>{K.target.closest(".more-actions-container")||N(null)};return window.addEventListener("click",G,!0),()=>window.removeEventListener("click",G,!0)},[]);const{data:P,isLoading:$,refetch:O}=Ke({queryKey:["drafts",u,g],queryFn:()=>OVe(u)});v.useEffect(()=>{g&&_.current&&_.current.focus()},[g]);const q=G=>{w(G),S(G?.title||"Untitled Draft"),y(!0)},D=async G=>{if(G.preventDefault(),!b||!j.trim())return;const K=P?.find(M=>M._id===b.id);await hJ(b.id,{...K.data,title:j}).then(M=>{M.status==="ok"&&(ie.success("Draft renamed successfully"),y(!1))})},z=G=>{try{return mb(new Date(G),"PPpp")}catch{return G}},V=G=>{const K=P?.find(M=>M._id===G);if(K){e(G),t(K.data),n(K.data);const M=ie.loading("Loading draft...");setTimeout(()=>{ie.dismiss(M),T(`/${u}/admin/published`)},2e3)}else ie.error("Failed to load draft data")},W=G=>{window.open(`/${u}/draft/${G}`,"_blank"),N(null)},B=async G=>{await MVe(G,u)&&O()},H=()=>{const G=ie.loading("Creating draft...");setTimeout(()=>{l(),ie.dismiss(G),window.location.href=`/${u}/admin/published`},2e3)};return $?i.jsx(Rn,{}):P?.length===0?i.jsxs("div",{className:"p-6 text-center flex flex-col items-center justify-center h-[calc(100vh-345px)]",children:[i.jsx("div",{className:"text-gray-500 mb-4",children:i.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-1",children:"No drafts available"}),i.jsx("p",{className:"text-[16px] text-gray-500",children:"Start editing content to create your first draft."}),i.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded-[6px] mt-5 cursor-pointer",onClick:H,children:"Create Draft"})]}):i.jsxs(X4,{children:[i.jsxs("div",{className:"titleAdmin flex items-center justify-between",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Drafts -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Click on a draft to load it"})]}),i.jsx("div",{className:" h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search drafts...",value:h,onChange:p})})]}),i.jsx("div",{className:"pb-20",children:i.jsx("div",{className:"bg-white shadow sm:rounded-md",children:i.jsx("ul",{className:"divide-y divide-gray-200",children:P?.map(({_id:G,updatedAt:K,title:M},I)=>i.jsx("li",{children:i.jsx("div",{className:`px-4 py-4 sm:px-6 ${G===d?"bg-[#d8e9e370]":"hover:bg-gray-50"}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-sm font-medium text-gray-500 truncate",children:i.jsx("span",{className:`font-semibold text-gray-800 ${G===d?"text-green-600":""}`,children:M})}),i.jsxs("p",{className:"mt-1 text-sm text-gray-500",children:["Last saved: ",z(K)]})]}),i.jsxs("div",{className:"ml-4 flex-shrink-0 flex space-x-2 relative more-actions-container",children:[i.jsx("button",{onClick:()=>V(G),className:`px-3 py-1.5 border text-xs font-medium rounded-md ${G===d?"bg-gray-100 text-gray-700 border-gray-300":"bg-green-600 text-white border-transparent hover:bg-green-700"} focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500`,children:G===d?"Currently Viewing...":"Load Draft"}),i.jsxs("div",{className:"relative",children:[i.jsxs("button",{onClick:()=>{N(k===G?null:G)},className:"px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none flex items-center gap-1",children:["More actions ",i.jsx(ar,{width:14,height:14})]}),k===G&&i.jsxs("div",{className:`absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg z-[100] border border-gray-100 py-1 ${I>=P?.length-2&&P?.length>3?"bottom-full mb-2":"top-full"}`,children:[i.jsx("button",{onClick:()=>{W(G)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center transition-colors cursor-pointer",children:"Preview URL"}),i.jsx("button",{onClick:()=>{q({id:G,title:M}),N(null)},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center transition-colors cursor-pointer",children:"Rename"}),i.jsx("button",{onClick:()=>{window.confirm("Are you sure you want to delete this draft?")&&(B(G),N(null))},className:"w-full text-left px-4 py-2 text-sm text-red-600 hover:bg-red-50 flex items-center transition-colors cursor-pointer",children:"Delete"})]})]})]})]})})},G))})})}),i.jsx(_u,{open:g,onClose:()=>y(!1),children:i.jsxs("div",{className:"bg-white rounded-lg w-full flex flex-col items-center",children:[i.jsx("h2",{className:"text-[18px] font-semibold text-gray-900 mb-2",children:"Rename Draft"}
2870),i.jsx("p",{className:"!text-[16px] text-center w-[60%] text-gray-500 mb-10",children:"You can change your modify the draft name so its easy to know what it was for."}),i.jsxs("form",{onSubmit:D,className:"w-[70%]",children:[i.jsxs("div",{className:"mb-4",children:[i.jsx("label",{htmlFor:"draftName",className:"block text-sm font-semibold text-gray-700 mb-1",children:"Draft Name"}),i.jsx("input",{type:"text",id:"draftName",ref:_,value:j,onChange:G=>S(G.target.value),className:"focus:border-gray-200 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Enter draft name"})]}),i.jsxs("div",{className:"flex justify-start space-x-3",children:[i.jsx("button",{type:"button",onClick:()=>y(!1),className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:"Cancel"}),i.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium text-white bg-green-600 border border-transparent rounded-md shadow-sm hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:"Save Changes"})]})]})]})})]})},BVe=`${Nn}`,Nc=JSON.parse(window.localStorage.getItem("MDA__TOKEN")),MC=window.location.pathname.split("/")[3],qVe=async e=>{if(!Nc||!Nc.token){ie.error("You are not authorized to access this page"),window.location.href=`/${MC}/admin/${MC}`;return}const t=await es(Nc.token,e.name);if(t.status==="bad")return ie.error(t.message),window.location.href=`/${e.mda}/admin/${MC}`,t;const n=await De.post(`${BVe}/web-template-requests`,e);return n.status===201?(ie.success(n.data.message),Ja({initiator:Nc?.firstname+" "+Nc?.lastname,mda:e.mda,activity:`${Nc?.firstname+" "+Nc?.lastname} created a web template request`}),n.data):(ie.error(n.data.message),null)},FVe=[{name:"Medix",description:"Clean, modern design for medical practices and healthcare providers",category:["healthcare"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/medix_qfb4kl.jpg",preview_link:"health",theme:"health"}
2870,{name:"Bytetec",description:"Modern, responsive theme for tech startups and IT service providers",category:["technology","general"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668070/templates/bytetec_rxdq5w.jpg",preview_link:"mist",theme:"mist"},{name:"Eko Budget",description:"Intuitive financial dashboard for budget tracking and expense management",category:["finance","budget"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/eko-budget_mez2vl.jpg",preview_link:"mepb",theme:"mepb"},{name:"Fintrac",description:"Professional banking and financial services website template",category:["finance"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/fintrac_hfmxam.jpg",preview_link:"finance",theme:"mof"},{name:"Transit",description:"Bold, service-forward theme for transport and mobility agencies",category:["transport","general"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/nexus_dkkfrw.jpg",preview_link:"mot",theme:"mot"},{name:"Treasury",description:"Structured, document-forward theme for treasury and revenue offices",category:["finance"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/ledger_gq9ze2.jpg",preview_link:"sto",theme:"sto"}],zVe=()=>{const e=Te(j=>j.mdaData),[t,n]=v.useState(""),[r,a]=v.useState(!1),[s,o]=v.useState(null),[l,d]=v.useState(null),[u,h]=v.useState({templateName:"",description:"",mda:"",requestedBy:"",additionalNotes:""});v.useEffect(()=>{const j=localStorage.getItem("MDA__TOKEN")?JSON.parse(localStorage.getItem("MDA__TOKEN")):null,S=j?`${j.firstname} ${j.lastname}`:"";h(k=>({...k,requestedBy:S,mda:e.name}))},[e]),v.useEffect(()=>{e?.theme&&d(e.theme)},[e]);const p=()=>a(!0),g=()=>a(!1),y=FVe.filter(j=>j.name.toLowerCase().includes(t.toLowerCase())),b=async j=>{j.preventDefault(),await qVe(u),g(),h({templateName:"",description:"",mda:e.name,requestedBy:u.requestedBy,additionalNotes:""})},w=async(j,S)=>{o(j),await ki(e?._id,{theme:j},`updated web template to - ${S}`),d(j),o(null)};return i.jsxs(X4,{children:[i.jsxs("div",{className:"titleAdmin flex items-center justify-between",children:[i.jsxs("h2",{className:"text-[15px] font-semibold text-gray-900",children:["Available Templates -"," ",i.jsx("span",{className:"text-[14px] font-normal text-gray-500",children:"Click on a template to use it"})]}),i.jsx("div",{className:" h-10 w-[450px]",children:i.jsx(Eo,{placeholder:"Search templates...",value:t,onChange:n})}),i.jsxs("div",{className:"flex items-center gap-5",children:[i.jsxs("p",{className:"text-[13px] font-normal! text-gray-600",children:["Don't find what you're looking for?"," "]}),i.jsxs("button",{className:" text-white bg-green-900 text-[13px] font-medium px-4 py-2 rounded-md flex items-center gap-2",onClick:p,children:["Request Custom Template ",i.jsx(Oe,{className:"w-4 h-4"})]})]})]}),i.jsx("div",{className:"grid grid-cols-3 mx-auto w-full max-w-[1300px] gap-5 justify-center mt-10",children:y.length>0?y.map(j=>i.jsxs("div",{className:" bg-white rounded-md overflow-hidden shadow-md shadow-gray-50",children:[i.jsx("div",{className:"h-[202.4px] overflow-hidden bg-gray-300",children:i.jsx("img",{src:j.thumbnail,alt:j.name})}),i.jsxs("div",{className:"p-5 flex flex-col gap-3",children:[i.jsxs("h3",{className:"font-semibold text-[16px] flex items-center gap-2",children:[j.name," ",i.jsx("p",{className:"text-[12px] bg-green-500 px-1.5 py-[2px] rounded text-white",children:"New"})]}),i.jsx("p",{className:"text-[15px] text-gray-500 leading-6",children:j.description}),i.jsx("div",{className:"flex items-center gap-2 mt-1",children:j.theme==="coming"?i.jsx("div",{className:"text-gray-500 text-[13px] px-4 py-2 rounded border border-gray-300 bg-gray-50 font-medium",children:"Coming Soon"}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:`text-[13px] curs
2870or-pointer pr-5 px-4 py-2 rounded h-[100%] flex items-center gap-2 border ${l===j.theme?"bg-green-600 text-white border-green-600":"bg-gray-800 text-white border-transparent"}`,onClick:()=>w(j.theme,j.name),disabled:s===j.theme,children:[l===j.theme?i.jsx(Ua,{fontSize:12}):i.jsx(mz,{fontSize:12}),s===j.theme?"Loading...":l===j.theme?"Template in Use":"Use Template"]}),l!==j.theme&&i.jsxs("a",{href:`${au}/${j.preview_link}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500! text-[13px] cursor-pointer pr-5 px-4 py-2 rounded h-[100%] flex items-center gap-2 border border-gray-300 hover:bg-gray-50 transition-colors",children:[i.jsx(b5,{})," Preview"]})]})})]})]},j.name)):i.jsx("div",{className:"w-full text-[16px] text-gray-600",children:t?"No templates found matching your search.":"No templates available."})}),i.jsx(_u,{open:r,onClose:g,children:i.jsxs("div",{className:"",children:[i.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Request Custom Template"}),i.jsx("p",{children:"Fill out the form to request a custom template."}),i.jsxs("form",{className:"mt-10 space-y-4",onSubmit:b,children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-[11px] tracking-[2px] font-semibold text-gray-500 uppercase",children:"Template Name"}),i.jsx("input",{type:"text",className:"mt-1 block w-full rounded-[4px] border border-gray-300 outline-none focus:border-gray-500 focus:ring-gray-500 px-4 py-[10px] focus:ring-0.5 text-[14px]",placeholder:"Enter template name",value:u.templateName,onChange:j=>h({...u,templateName:j.target.value})})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-[11px] tracking-[2px] font-semibold text-gray-500 uppercase",children:"Description"}),i.jsx("textarea",{className:"mt-1 block w-full rounded-md border border-gray-300 text-[14px] p-4 focus:ring-0.5 focus:ring-gray-500 outline-none focus:border-gray-500 resize-none field-sizing-content",rows:"3",placeholder:"Describe the template you'd like to request...",style:{minHeight:"170px"},value:u.description,onChange:j=>h({...u,description:j.target.value})})]}),i.jsxs("div",{className:"flex justify-end space-x-3 mt-[30px]",children:[i.jsx("button",{type:"button",className:"px-6 py-3 text-sm font-medium text-gray-600 bg-gray-200 rounded-md hover:bg-gray-300 cursor-pointer transition-colors duration-200",onClick:g,children:"Cancel"}),i.jsx("button",{type:"submit",className:"px-6 py-3 text-sm font-medium text-white bg-green-700 rounded-md hover:bg-green-800 transition-colors duration-200 cursor-pointer",children:"Submit Request"})]})]})]})})]})},HVe=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],UVe=[["path",{d:"M14.5 2H9.5C6.67157 2 5.25736 2 4.37868 2.87868C3.5 3.75736 3.5 5.17157 3.5 8V16C3.5 18.8284 3.5 20.2426 4.37868 21.1213C5.25736 22 6.67157 22 9.5 22H14.5C17.3284 22 18.7426 22 19.6213 21.1213C20.5 20.2426 20.5 18.8284 20.5 16V8C20.5 5.17157 20.5 3.75736 19.6213 2.87868C18.7426 2 17.3284 2 14.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 19H12.01",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",key:"1"}]],VVe=[["path",{d:"M14.5 2H9.5C6.67157 2 5.25736 2 4.37868 2.87868C3.5 3.75736 3.5 5.17157 3.5 8V16C3.5 18.8284 3.5 20.2426 4.37868 21.1213C5.25736 22 6.67157 22 9.5 22H14.5C17.3284 22 18.7426 22 19.6213 21.1213C20.5 20.2426 20.5 18.8284 20.5 16V8C20.5 5.17157 20.5 3.75736 19.6213 2.87868C18.7426 2 17.3284 2 14.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 4.5H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.9998 19H12.0098",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",key:"2"}]],GVe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},gy=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:a="",altIcon:s,showAlt:o=!1,icon:l,primaryColor:d,secondaryColor:u,disableSecondaryOpacity:h=!1,...p},g)=>{const y=n!==void 0?r?Number(n)*24/Number(t):n:void 0,b=y!==void 0?{strokeWidth:y,stroke:"currentColor"}:{},w={ref:g,...GVe,width:t,height:t,color:d||e,className:a,...b,...p},S=[...o&&s?s:l].sort(([,k],[,N])=>{const _=k.opacity!==void 0;return N.opacity!==void 0?1:_?-1:0}).map(([k,N])=>{const _=N.opacity!==void 0,L=_&&!h?N.opacity:void 0,E=u?{...N.stroke!==void 0?{stroke:_?u:d||e}:{fill:_?u:d||e}}:{};return v.createElement(k,{...N,...b,...E,opacity:L,key:N.key})});return v.createElement("svg",w,S)});gy.displayName="HugeiconsIcon";const pJ=(e,t="")=>{const n=[];for(const r in e){const a=t?`${t}.${r}`:r,s=e[r];s instanceof File?n.push({path:a,file:s}
2870):s&&typeof s=="object"&&!Array.isArray(s)&&n.push(...pJ(s,a))}return n},WVe=(e,t,n)=>{const r=t.split(".");let a={...e};const s=a;for(let o=0;o<r.length-1;o++){const l=r[o];a[l]||(a[l]={}),a=a[l]}return a[r[r.length-1]]=n,s},YVe=()=>{const[e,t]=v.useState(!1),{mdaEditData:n}=nt();Te(s=>s.mda);const r=Te(s=>s.mdaData);return{publishChanges:async()=>{if(e)return!1;t(!0);let s=JSON.parse(JSON.stringify(n)),o=null;try{const l=pJ(s);for(const{path:u,file:h}of l)try{const p=await vNe(h);p?.url&&(s=WVe(s,u,p.url))}catch(p){}o=ie.loading("Saving changes...");const d=await ki(r._id,{landingPage:s},"updated the website content");return o&&ie.dismiss(o),d?(ie.success("Changes published successfully!"),!0):!1}catch{return o&&ie.dismiss(o),ie.error("Failed to publish changes. Please try again."),!1}finally{t(!1)}},isPublishing:e}},Z4=`${Nn}/publish-bucket`,Ac=JSON.parse(window.localStorage.getItem("MDA__TOKEN")),Qq=window.location.pathname.split("/")[3],KVe=async e=>{if(!Ac||!Ac.token){ie.error("You are not authorized to access this page"),window.location.href=`/${e.mda}/admin/${Qq}`;return}const t=await es(Ac.token,e.name);if(t.status==="bad")return ie.error(t.message),window.location.href=`/${e.mda}/admin/${Qq}`,t;const n=await De.post(`${Z4}/create`,e);return n.status===201?(Ja({initiator:Ac?.firstname+" "+Ac?.lastname,mda:e.mda,activity:`${Ac?.firstname+" "+Ac?.lastname} made a publish request`}),n.data):(ie.error(n.data.message),null)},XVe=async e=>{try{return(await De.get(`${Z4}/view/${e}`)).data}catch(t){return t.response?.status===404||ie.error(t.response?.data?.message||"Failed to fetch publish status"),null}},ZVe=async(e,t)=>{const n=await De.put(`${Z4}/update-data/${e}`,t);return n.status===200?n.data:(ie.error(n.data.message),null)},Ye=rg(e=>({device:"desktop",setDevice:t=>e(()=>({device:t})),selectedComponent:"",setSelectedComponent:t=>e(()=>({selectedComponent:t})),viewMode:"preview",setEditViewMode:t=>e(()=>({viewMode:t}))})),QVe="/assets/House-Pics-C1ehdoto.jpeg",JVe="/assets/housing%20lagos-CWE3GTjr.jpg",eGe="/assets/lasg_404_health_service-B__L2FTP.png",tGe="/assets/tax_payments_lagosstate-CwyIHQwI.jpg",nGe="data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.13647%2030.6818H38.8637V40.909H6.13647V30.6818Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.5454%204.73318V0H20.4545V4.73318C16.6366%205.23041%2013.1301%207.09996%2010.5895%209.99288C8.04884%2012.8858%206.64775%2016.6044%206.64771%2020.4545V24.0341H38.3522V20.4545C38.3518%2016.6045%2036.9505%2012.8862%2034.41%209.99333C31.8694%207.1005%2028.3632%205.23083%2024.5454%204.73318Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2030.6819V25.5682L22.5%2014.3182L45%2025.5682V30.6819H42.4432V40.9091H45V45.0001H0V40.9091H2.55682V30.6819H0ZM7.67045%2030.6819V40.9091H11.25V30.6819H7.67045ZM33.75%2030.6819H37.3295V40.9091H33.75V30.6819ZM16.3636%2030.6819V40.9091H19.9432V30.6819H16.3636ZM25.0568%2030.6819V40.9091H28.6364V30.6819H25.0568Z'%20fill='%2378E183'/%3e%3c/svg%3e",rGe="data:image/svg+xml,%3csvg%20width='47'%2
28700height='45'%20viewBox='0%200%2047%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.1531%2033.4925V45H29.847V33.4904L39.8115%2039.2452L46.1585%2028.2527L36.1918%2022.5L46.1585%2016.7452L39.8115%205.7548L29.8449%2011.5096V0H17.1551V11.5096L7.18851%205.7548L0.843638%2016.7452L10.8082%2022.5L0.841553%2028.2548L7.18851%2039.2452L17.1531%2033.4925Z'%20fill='%2378E183'/%3e%3c/svg%3e",iGe="data:image/svg+xml,%3csvg%20width='47'%20height='45'%20viewBox='0%200%2047%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M46.0862%2019.9042H29.021V45.0001H46.0862V19.9042Z'%20fill='%231A565F'/%3e%3cpath%20d='M29.021%2014.0537L14.9673%200L0.913574%2014.0537V45H29.021V14.0537Z'%20fill='%2378E183'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.94434%2020.908H20.9904V16.8927H8.94434V20.908ZM8.94434%2028.9387H20.9904V24.9234H8.94434V28.9387Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9519%2036.9695H18.9826V45.0002H10.9519V36.9695Z'%20fill='%231A565F'/%3e%3c/svg%3e",aGe="data:image/svg+xml,%3csvg%20width='45'%20height='45'%20viewBox='0%200%2045%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5%200C10.0736%200%200%2010.0736%200%2022.5C0%2034.9264%2010.0736%2045%2022.5%2045C34.9264%2045%2045%2034.9264%2045%2022.5C45%2010.0736%2034.9264%200%2022.5%200Z'%20fill='%2378E183'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M32.2635%2015.3885L15.3885%2032.2635L12.7368%2029.6119L29.6119%2012.7368L32.2635%2015.3885ZM16.4064%2012.8172L19.9956%2016.4064L16.4064%2019.9956L12.8172%2016.4064L16.4064%2012.8172ZM28.5939%2025.0048L25.0048%2028.5939L28.5939%2032.1831L32.1831%2028.5939L28.5939%2025.0048Z'%20fill='%231A565F'/%3e%3c/svg%3e",mJ=()=>i.jsx("div",{className:"notFound",children:i.jsx(Mt,{children:i.jsxs("div",{className:"emptySide",children:[i.jsxs("div",{className:"textSide",children:[i.jsx("h1",{className:"!font-semibold",children:"Sorry, we couldn't find that page."}),i.jsxs("span",{children:["Head over to the ",i.jsx("a",{href:"/",children:"Lagos State Official Homepage"}),", or explore some of our services below."]})]}),i.jsxs("div",{className:"servicesSide flex",children:[i.jsxs("div",{className:"serviceSideItem",children:[i.jsxs("div",{className:"photoYarn",children:[" ",i.jsx("img",{src:tGe,alt:""})," "]}),i.jsxs("div",{className:"contentSide",children:[i.jsxs("div",{className:"iconSide",children:[i.jsx("div",{className:"photoy",children:i.jsx("img",{src:aGe,alt:""})}),i.jsx("p",{children:" Tax Payments in Lagos "})]}),i.jsxs("div",{className:"subServices",children:[" ","Everything about tax payment in Lagos state, how to pay, where to pay, types of taxes and more."," "]}),i.jsxs("a",{href:"/services/tax",className:"learnmore flex",children:[i.jsx("p",{children:"Explore Tax Services"}),i.jsxs("span",{children:[" ",i.jsx(er,{})," "]})]})]})]}),i.jsxs("div",{className:"serviceSideItem",children:[i.jsxs("div",{className:"photoYarn",children:[" ",i.jsx("img",{src:eGe,alt:""})," "]}),i.jsxs("div",{className:"contentSide",children:[i.jsxs("div",{className:"iconSide",children:[i.jsx("div",{className:"photoy",children:i.jsx("img",{src:rGe,alt:""})}),i.jsx("p",{children:" Health Services "})]}),i.jsx("div",{className:"subServices",children:"Know more about Lagos State Health Insurance, Request an ambulance, find the nearest hospital."}),i.jsxs("a",{href:"/services/healthservices",className:"learnmore flex",children:[i.jsx("p",{children:"Explore Health Services"}),i.jsxs("span",{children:[" ",i.jsx(er,{})," "]})]})]})]}),i.jsxs("div",{className:"serviceSideItem",children:[i.jsxs("div",{className:"photoYarn",children:[" ",i.jsx("img",{src:JVe,alt:""})," "]}),i.jsxs("div",{className:"contentSide",children:[i.jsxs("div",{className:"iconSide",children:[i.jsx("div",{className:"photoy",children:i.jsx("img",{src:iGe,alt:""})}),i.jsx("p",{children:" Housing and Lands in Lagos "})]}),i.jsxs("div",{className:"subServices",children:[" ","LASBCA Certificate verification, Property listing, LBIC application form, Opal Membership."," "]}),i.jsxs("a",{href:"/services/housingandlands",className:"learnmore flex",children:[i.jsx("p",{children:"Explore Housing Services"}),i.jsxs("span",{children:[" ",i.jsx(er,{})," "]})]})]})]}),i.jsxs("div",{className:"serviceSideItem",children:[i.jsxs("div",{className:"photoYarn",children:[" ",i.jsx("img",{src:QVe,alt:""})," "]}),i.jsxs("div",{className:"contentSide",children:[i.jsxs("div",{className:"iconSide",children:[i.jsx("div",{className:"photoy",children:i.jsx("img",{src:nGe,alt:""})}),i.jsx("p",{children:" Lagos Government Benefits "})]}),i.jsxs("div",{className:"subServices",children:[" ","Find out more about benefits rendered to citizens by Lagos State Government."," "]}),i.jsxs("a",{href:"/services/governmentbenefits",className:"learnmore flex",children:[i.jsx("p",{children:" Explore Government Benefits "}),i.jsxs("span",{children:[" ",i.jsx(er,{})," "]})]})]})]})]})]})})});function Ae(e){return i.jsx("div",{id:e.id,className:`wrapper ${e.customClass}`,style:e.style,children:e.children})}function Xf(){const e=Te(t=>
2870t.mdaData);return i.jsx("div",{className:"mda-connect",children:i.jsx(Ae,{children:i.jsx("div",{className:"contact",children:i.jsxs("div",{className:"side1",children:[i.jsxs("div",{className:"head",children:[i.jsxs("h1",{children:[" ",i.jsx("span",{children:"Reach Out to Us"})," for Support, Inquiries, or Feedback Today!"," "]}),i.jsx("div",{className:"span",children:"Send us an email todayð¬ or call in"})]}),i.jsxs("div",{className:"connect__info",children:[i.jsxs("p",{children:[" ",i.jsx(Vm,{color:"var(--theme-accent, green)"})," ",e?.contact?.email," "]}),i.jsxs("p",{children:[" ",i.jsx(Gm,{color:"var(--theme-accent, green)"})," ",e?.contact?.phone," "]}),i.jsx("div",{children:i.jsxs("a",{target:"_blank",href:e?.contact?.address,children:[" ",e?.contact?.address," "]})})]})]})})})})}const Zl=({html:e,className:t=""})=>e?i.jsx("div",{className:`ql-editor lasg-rich-text ${t}`,dangerouslySetInnerHTML:{__html:e}}):null,sGe=({eventId:e})=>{const[t,n]=v.useState({name:"",email:""}),[r,a]=v.useState("idle"),[s,o]=v.useState(""),l=u=>{n(h=>({...h,[u.target.name]:u.target.value}))},d=u=>{u.preventDefault(),!(!t.name||!t.email)&&(a("saving"),eW(e,t).then(h=>{h.status==="bad"?(a("error"),o(h.message)):a("done")}).catch(()=>{a("error"),o("Something went wrong. Please try again.")}))};return r==="done"?i.jsx("div",{className:"rounded-2xl bg-green-50 border border-green-100 p-6 text-green-800 text-[14px]",children:"You're registered for this event. See you there!"}):i.jsxs("form",{onSubmit:d,className:"rounded-2xl bg-gray-50 p-6 flex flex-col gap-4 mt-4",children:[i.jsx("h3",{className:"font-semibold text-[16px]",children:"RSVP for this event"}),i.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[i.jsx("input",{type:"text",name:"name",placeholder:"Your name",value:t.name,onChange:l,required:!0,className:"flex-1 p-4 text-[14px] border-none outline-none bg-white rounded-lg"}),i.jsx("input",{type:"email",name:"email",placeholder:"Your email",value:t.email,onChange:l,required:!0,className:"flex-1 p-4 text-[14px] border-none outline-none bg-white rounded-lg"})]}),r==="error"&&i.jsx("p",{className:"text-[13px] text-red-600",children:s}),i.jsx("button",{type:"submit",disabled:r==="saving",className:"self-start py-3 px-6 rounded-lg bg-[var(--theme-accent,#15803d)] text-[var(--theme-accent-text,#ffffff)] text-[13px] font-bold cursor-pointer disabled:opacity-60",children:r==="saving"?"Registering...":"Confirm RSVP"})]})},oGe=({event:e,mda:t})=>i.jsxs(Ae,{children:[i.jsxs("a",{href:`/${t}/events`,className:"inline-flex items-center gap-2 text-[13px] font-medium text-gray-500 hover:text-[var(--theme-accent,#15803d)] mb-8",children:[i.jsx(Xa,{width:16})," Back to Events"]}),i.jsxs("div",{className:"max-w-[820px] mx-auto flex flex-col gap-6 pb-20",children:[i.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-[var(--theme-accent,#15803d)] font-semibold uppercase tracking-[1.5px]",children:[i.jsx(pz,{width:16})," ",nf(e.date)]}),i.jsx("h1",{className:"text-[32px] sm:text-[40px] font-bold leading-tight",children:vn(e.title)}),e.photo&&i.jsx("img",{src:e.photo,alt:"",className:"w-full h-[320px] sm:h-[420px] object-cover rounded-2xl"}),i.jsx(Zl,{html:e.content,className:"text-[16px] leading-[1.8]"}),i.jsx(sGe,{eventId:e._id})]})]}),lGe=({events:e,mda:t})=>i.jsx(Ae,{children:i.jsxs("div",{className:" pt-16 pb-0 sm:py-16 sm:mt-20 mt-12 min-h-[40vh]",children:[i.jsx("h1",{className:"text-[18px] sm:text-[24px] font-bold mb-0",children:"Events"}),e?.length?i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(n=>i.jsxs("a",{href:`/${t}/events/${n._id}`,className:"flex flex-col rounded-2xl overflow-hidden border border-gray-100 hover:shadow-lg transition-shadow",children:[i.jsx("div",{className:"h-[180px] w-full bg-gray-100",children:n.photo&&i.jsx("img",{src:n.photo,alt:"",className:"w-full h-full object-cover"})}),i.jsxs("div",{className:"p-5 flex flex-col gap-2",children:[i.jsx("div",{className:"text-[12px] text-[var(--theme-accent,#15803d)] font-semibold uppercase tracking-[1.5px]",children:nf(n.date)}),i.jsx("h3",{className:"text-[17px] font-semibold leading-snug line-clamp-2",children:vn(n.title)})]})]},n._id))}):i.jsx("div",{className:"text-gray-800 text-[15px] text-center bg-gray-100/90 sm:min-h-[40vh] min-h-[20vh] mt-6 flex items-center justify-center",children:"No events have been posted yet."})]})});function Zf(){const{mda:e,id:t}=Pe(),n=Ke({queryKey:["events",e],queryFn:()=>JG(e),enabled:!!e&&!t}),r=Ke({queryKey:["event",t],queryFn:()=>CNe(t),enabled:!!t});return(t?r.isLoading:n.isLoading)?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):t?i.jsx(oGe,{event:r.data?.data,mda:e}):i.jsx(lGe,{events:n.data?.data,mda:e})}function Na({data:e}){const[t,n]=v.useState("");v.useEffect(()=>{let s=new Date().getHours();s>=0&&s<12?n("Good Morning âï¸"):s>=12&&s<18?n("Good Afternoon ð¤ï¸"):n("Good Evening ð")},[]);const{page:r}=Pe();return i.jsx("div",{className:`footer__mda ${r==="forms"&&"bg-white!"}`,children:i.jsx(Ae,{children:i.jsxs("div",{className:"footerContent",children:[i.jsxs("div",{className:"topPart",children:[i.jsxs("h1",{children:[" ","Lagos, ",i.jsx("span",{children:t.toLowerCase()})," "]}),i.jsxs("div",{className:"socialsIcon flex",children:[i.jsx("a",{target:"_blank",href:e?.contact?.socials?.instagram,className:"icon",children:i.jsx(w5,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:e?.contact?.socials?.twitter,className:"icon",children:i.jsx(C5,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:e?.contact?.socials?.facebook,className:"icon",children:i.jsx(vz,{width:22,strokeWidth:1.6})}),i.jsx("a",{target:"_blank",href:e?.contact?.socials?.youtube,className:"icon",children:i.jsx(k5,{width:22,strokeWidth:1.6})})]})]}),i.jsxs("div",{className:"linksPart flex",children:[i.jsxs("div",{className:"linkHolder flex flex-col fritz",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Contact Us"}),i.jsxs("div",{className:"flex flex-col gap-[30px] badger",children:[i.jsxs("a",{href:e?.contact?.address,target:"_Blank",className:"flex text-[14px] gap-[15px] dark",children:[i.jsxs("div",{className:"icon",children:[" ",i.jsx(wz,{})," "]}),e?.contact?.address||"Block 4, The Lagos State Government Secretariat Complex, Alausa, Ikeja, Lagos. P.M.B. 21007, Ikeja"]}),i.jsxs("a",{href:`mailto:${e?.contact?.email}`,target:"_Blank",className:"flex text-[14px] gap-[15px] dark",children:[i.jsxs("div",{className:"icon",children:[" ",i.jsx(Vm,{})," "]}),e?.contact?.email||"[email protected]"]}),i.jsxs("a",{href:`tel:${e?.contact?.phone}`,target:"_Blank",className:"flex text-[14px] gap-[15px] dark",children:[i.jsxs("div",{className:"icon",children:[" ",i.jsx(Gm,{})," "]}),e?.contact?.phone||"234-1-4969061"]})]})]}),i.jsxs("div",{className:"linkHolder flex flex-col",children:[i.jsx("div",{className:"linkHeader thick_500",children:"Other Links"}),i.jsxs("div",{className:"links a-dark flex sublime",children:[i.jsxs("a",{target:"_blank",href:"/about",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","About Us"," "]}),i.jsxs("a",{target:"_blank",href:"/resources",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Resources"," "]}),i.jsxs("a",{target:"_blank",href:"/news",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Newsroom"," "]}),i.jsxs("a",{target:"_blank",href:"/contact",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Contact"," "]}),i.jsxs("a",{target:"_blank",href:"/",className:"link",children:[" ",i.jsx("span",{children:i.jsx(Oe,{})})," ","Back to LASG"," "]})]})]})]}),e?.theme==="health"&&i.jsxs("div",{className:"flex md:items-center justify-center gap-5 p-6 md:p-4 roun
2870ded-[0px] bg-[var(--theme-accent,#1f2937)] my-11 text-[var(--theme-accent-text,#ffffff)] flex-col md:flex-row",children:[i.jsx("p",{className:"text-[19px] font-semibold text-[var(--theme-accent-text,#ffffff)]",children:"Access affordable healthcare at your fingertips!"}),i.jsxs("button",{onClick:()=>window.open("https://ileraeko.com/"),className:"py-2.5 px-5 bg-[var(--theme-pastel,#90ee90)] text-gray-900 rounded-[4px] font-semibold text-[15px] flex items-center gap-2 cursor-pointer w-max",children:["Start with LASHMA ",i.jsx(Oe,{className:"text-[11px]",strokeWidth:2})]})]}),i.jsx("div",{className:"footest_footer uppercase",children:i.jsxs("div",{className:"copyright flex justify-between",children:[i.jsx("div",{className:"txt",children:"© Copyright 2024, All Rights Reserved  |   Lagos State Government"}),i.jsxs("div",{className:"txt text__trend col",children:[i.jsx("span",{children:"Powered by - "})," Lagos State Ministry of Innovation, Science and Technology"]})]})})]})})})}function Qf({onBack:e}){const[t,n]=v.useState({}),[r,a]=v.useState({}),[s,o]=v.useState(!1),[l,d]=v.useState(!1),[u,h]=v.useState(null),[p,g]=v.useState({}),{id:y}=Pe(),{data:b,isLoading:w,error:j}=Ke({queryKey:["forms"],queryFn:()=>ys.getFormById(y)});if(v.useEffect(()=>{b&&h(b?.data)},[b]),w)return i.jsx("div",{className:"h-screen w-full flex items-center justify-center",children:" Loading form... "});if(!u)return i.jsxs("div",{className:"h-screen w-full flex justify-center items-center flex-col gap-3",children:[" ",i.jsx(_le,{})," Sorry this form doesn't exist!"," "]});const S=cu[u?.theme]||cu.green,k=(T,P)=>{n($=>({...$,[T]:P})),r[T]&&a($=>({...$,[T]:null}))},N=(T,P)=>{const $=t[T]||[];k(T,$.includes(P)?$.filter(O=>O!==P):[...$,P])},_=async(T,P)=>{if(P){g($=>({...$,[T]:{progress:0,status:"uploading"}}));try{const $=setInterval(()=>{g(q=>{const D=q[T]?.progress||0;return D<90?{...q,[T]:{progress:D+10,status:"uploading"}}:q})},200),O=await ys.uploadFile(P,`form-uploads/${u?.mda}`);clearInterval($),k(T,O),g(q=>({...q,[T]:{progress:100,status:"completed"}})),setTimeout(()=>{g(q=>{const D={...q};return delete D[T],D})},2e3)}catch{a($=>({...$,[T]:"File upload failed. Please try again."})),g($=>({...$,[T]:{progress:0,status:"failed"}}))}}},L=()=>{const T={};for(const P of u.fields){if(!P.required)continue;const $=t[P.id];($==null||$===""||Array.isArray($)&&$.length===0)&&(T[P.id]="This field is required.")}return a(T),Object.keys(T).length===0},E=async()=>{if(L()){o(!0);try{await ys.submitForm(u._id,{data:t}),d(!0)}catch{alert("Submission failed. Please try again.")}finally{o(!1)}}};return l?i.jsxs("div",{className:"w-full h-full py-20 mt-25 pb-70",children:[i.jsx("div",{className:`fixed w-screen h-screen top-0 left-0 ${S.bg} opacity-50 z-1`}),i.jsx("div",{className:"max-w-2xl mx-auto relative z-2",children:i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 overflow-hidden",children:[i.jsxs("div",{className:`px-6 py-5 bg-gradient-to-r ${S.gradient}`,children:[i.jsx("h2",{className:"text-white font-bold text-xl",children:"Form Submitted!"}),i.jsx("p",{className:"text-white/90 text-sm mt-1",children:"Thank you for your response."})]}),i.jsxs("div",{className:"p-6 text-center",children:[i.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-8 h-8 text-green-600",fill:"currentColor",viewBox:"0 0 20 20",children:i.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Thank you!"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"Your form has been successfully submitted."}),e&&i.jsx("button",{onClick:e,className:`px-6 py-2 bg-gradient-to-r ${S.gradient} text-white rounded-lg font-medium text-sm hover:opacity-90 transition-opacity`,children:"Back to Forms"})]})]})})]}):i.jsxs("div",{className:"w-full h-full py-20 mt-25 pb-70",children:[i.jsx("div",{className:`fixed w-screen h-screen top-0 left-0 ${S.bg} opacity-50 z-1`}),i.jsxs("div",{className:"max-w-2xl mx-auto relative z-2",children:[e&&i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("button",{onClick:e,className:"flex items-center gap-1 text-gray-600 hover:text-gray-900 text-sm font-medium",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Back"]}),i.jsx("span",{className:"text-xs font-medium text-blue-600 bg-blue-50 px-3 py-1 rounded-full",children:"Live Form"})]}),i.jsxs("div",{className:"bg-white rounded-xl border-2 border-gray-200 overflow-hidden",children:[i.jsxs("div",{className:`px-6 py-5 bg-gradient-to-r ${S.gradient}`,children:[i.jsx("h2",{className:"text-white font-bold text-xl",children:u.title}),u.description&&i.jsx("p",{className:"text-white/90 text-sm mt-1",children:u.description})]}),i.jsxs("div",{className:"p-6 space-y-6",children:[(u.fields||[]).map(T=>i.jsxs("div",{children:[i.jsxs("label",{className:"block text-sm font-medium text-gray-800 mb
2870-1.5",children:[T.label,T.required&&i.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),T.type==="short_answer"&&i.jsx("input",{value:t[T.id]||"",onChange:P=>k(T.id,P.target.value),className:`w-full px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 ${S.focus} ${r[T.id]?"border-red-400":"border-gray-300"}`,placeholder:"Your answer"}),T.type==="long_answer"&&i.jsx("textarea",{value:t[T.id]||"",onChange:P=>k(T.id,P.target.value),rows:4,className:`w-full px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 ${S.focus} resize-none ${r[T.id]?"border-red-400":"border-gray-300"}`,placeholder:"Your answer"}),T.type==="dropdown"&&i.jsxs("select",{value:t[T.id]||"",onChange:P=>k(T.id,P.target.value),className:`w-full px-3 py-2 border rounded-lg text-sm bg-white focus:outline-none focus:ring-2 ${S.focus} ${r[T.id]?"border-red-400":"border-gray-300"}`,children:[i.jsx("option",{value:"",children:"Select an option"}),(T.options||[]).map((P,$)=>i.jsx("option",{value:P,children:P},$))]}),T.type==="multi_select"&&i.jsxs(i.Fragment,{children:[i.jsx("select",{multiple:!0,value:t[T.id]||[],onChange:P=>k(T.id,Array.from(P.target.selectedOptions,$=>$.value)),className:`w-full px-3 py-2 border rounded-lg text-sm bg-white focus:outline-none focus:ring-2 ${S.focus} ${r[T.id]?"border-red-400":"border-gray-300"}`,style:{minHeight:90},children:(T.options||[]).map((P,$)=>i.jsx("option",{value:P,children:P},$))}),i.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Hold Ctrl / Cmd to select multiple"})]}),T.type==="radio"&&i.jsx("div",{className:"space-y-2",children:(T.options||[]).map((P,$)=>i.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700 cursor-pointer",children:[i.jsx("input",{type:"radio",name:T.id,value:P,checked:t[T.id]===P,onChange:()=>k(T.id,P),className:`text-${S.primary}-600 focus:ring-${S.primary}-400`}),P]},$))}),T.type==="checkbox"&&i.jsx("div",{className:"space-y-2",children:(T.options||[]).map((P,$)=>i.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-700 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:(t[T.id]||[]).includes(P),onChange:()=>N(T.id,P),className:`rounded text-${S.primary}-600 focus:ring-${S.primary}-400`}),P]},$))}),T.type==="file"&&i.jsx("div",{className:`border-2 border-dashed rounded-lg p-4 transition-colors ${r[T.id]?"border-red-400 bg-red-50":`border-gray-300 ${S.hover}`}`,children:t[T.id]?i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:`text-sm ${S.text} flex items-center gap-2`,children:["ð ",t[T.id].name]}),i.jsx("button",{onClick:()=>k(T.id,null),className:"text-xs text-red-500 hover:text-red-700",children:"Remove"})]}):p[T.id]?i.jsxs("div",{className:"w-full",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-xs font-medium text-gray-500",children:p[T.id].status==="uploading"?"Uploading...":"Processing..."}),i.jsxs("span",{className:"text-xs font-medium text-gray-500",children:[p[T.id].progress,"%"]})]}),i.jsx("div",{className:"w-full bg-gray-100 rounded-full h-1.5 overflow-hidden",children:i.jsx("div",{className:`h-full transition-all duration-300 ease-out ${p[T.id].status==="failed"?"bg-red-500":"bg-green-600"}`,style:{width:`${p[T.id].progress}%`}})})]}):i.jsxs("label",{className:"cursor-pointer block text-center text-sm text-gray-500",children:[i.jsx("p",{children:"ð Click to upload a file"}),i.jsx("p",{className:"text-xs mt-1 text-gray-400",children:"or drag and drop"}),i.jsx("input",{type:"file",className:"hidden",onChange:P=>_(T.id,P.target.files?.[0])})]})}),r[T.id]&&i.jsx("p",{className:"text-xs text-red-500 mt-1",children:r[T.id]})]},T.id)),i.jsx("button",{onClick:E,disabled:s,className:`w-full py-2.5 bg-gradient-to-r ${S.gradient} text-white rounded-lg font-medium text-sm hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed transition-opacity`,children:s?"Submittingâ¦":"Submit"})]})]})]})]})}const cGe=({photos:e,activeIndex:t,onClose:n,onNavigate:r})=>{const a=e[t];return a?i.jsxs("div",{className:"fixed inset-0 bg-black/90 z-[999] flex items-center justify-center p-4",onClick:n,children:[i.jsx("button",{type:"button",className:"absolute top-6 right-6 text-white cursor-pointer",onClick:n,"aria-label":"Close",children:i.jsx(et,{width:28})}),e.length>1&&i.jsx("button",{type:"button",className:"absolute left-4 sm:left-8 text-white cursor-pointer",onClick:s=>{s.stopPropagation(),r(t===0?e.length-1:t-1)},"aria-label":"Previous photo",children:i.jsx(jf,{width:32})}),i.jsxs("div",{className:"max-w-[90vw] max-h-[85vh] flex flex-col items-center gap-3",onClick:s=>s.stopPropagation(),children:[i.jsx("img",{src:a.url,alt:a.caption,className:"max-w-full max-h-[75vh] object-contain rounded-lg"}),a.caption&&i.jsx("p",{className:"text-white/80 text-[14px] text-center",children:a.caption})]}),e.length>1&&i.jsx("button",{type:"button",className:"absolute right-4 sm:right-8 text-white cursor-pointer",onClick:s=>{s.stopPropagation(),r(t===e.length-1?0:t+1)}
2870,"aria-label":"Next photo",children:i.jsx(Ul,{width:32})})]}):null},uGe=({album:e,mda:t})=>{const[n,r]=v.useState(null),a=e.photos||[];return i.jsxs(Ae,{children:[i.jsxs("div",{className:"py-16 mt-20 min-h-[40vh]",children:[i.jsxs("a",{href:`/${t}/gallery`,className:"inline-flex items-center gap-2 text-[13px] font-medium text-gray-500 hover:text-[var(--theme-accent,#15803d)] mb-8",children:[i.jsx(Xa,{width:16})," Back to Gallery"]}),i.jsx("h1",{className:"text-[32px] sm:text-[40px] font-bold mb-2",children:e.title}),e.description&&i.jsx("p",{className:"text-gray-500 text-[15px] mb-10 max-w-[700px]",children:e.description}),a.length>0?i.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:a.map((s,o)=>i.jsx("button",{type:"button",onClick:()=>r(o),className:"aspect-square rounded-xl overflow-hidden bg-gray-100 cursor-pointer",children:i.jsx("img",{src:s.url,alt:s.caption,className:"w-full h-full object-cover"})},s.url+o))}):i.jsx("div",{className:"text-gray-500 text-[15px]",children:"This album has no photos yet."})]}),n!==null&&i.jsx(cGe,{photos:a,activeIndex:n,onClose:()=>r(null),onNavigate:r})]})},dGe=({albums:e,mda:t})=>i.jsx(Ae,{children:i.jsxs("div",{className:"py-16 mt-20 min-h-[40vh]",children:[i.jsx("h1",{className:"text-[18px] sm:text-[24px] font-bold mb-0",children:"Gallery"}),e?.length?i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(n=>i.jsxs("a",{href:`/${t}/gallery/${n._id}`,className:"flex flex-col rounded-2xl overflow-hidden border border-gray-100 hover:shadow-lg transition-shadow",children:[i.jsx("div",{className:"h-[200px] w-full bg-gray-100 flex items-center justify-center",children:n.coverImage?i.jsx("img",{src:n.coverImage,alt:"",className:"w-full h-full object-cover"}):i.jsx(j5,{className:"text-gray-400",width:32})}),i.jsxs("div",{className:"p-5 flex flex-col gap-1",children:[i.jsx("h3",{className:"text-[17px] font-semibold leading-snug line-clamp-1",children:n.title}),i.jsxs("p",{className:"text-[13px] text-gray-500",children:[n.photos?.length||0," photos"]})]})]},n._id))}):i.jsx("div",{className:"text-gray-800 text-[15px] text-center bg-gray-100/90 sm:min-h-[40vh] min-h-[20vh] mt-6 flex items-center justify-center",children:"No photos have been added yet."})]})});function Jf(){const{mda:e,id:t}=Pe(),n=Ke({queryKey:["gallery",e],queryFn:()=>cW(e),enabled:!!e&&!t}),r=Ke({queryKey:["album",t],queryFn:()=>kAe(t),enabled:!!t});return(t?r.isLoading:n.isLoading)?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):t?i.jsx(uGe,{album:r.data?.data,mda:e}):i.jsx(dGe,{albums:n.data?.data,mda:e})}function fGe({size:e,page:t,redirect:n}){let r=pt();const[a,s]=v.useState(1);v.useEffect(()=>{setTimeout(()=>{s(t)},500)},[t]);const o=()=>{let p=[],g=Number(t);const y=document.querySelector(`.page${a}`),b=document.querySelector(".page1");if(document.querySelector(".activePage")!==null&&document.querySelector(".activePage").classList.remove("activePage"),g<1?b?.classList.add("activePage"):y?.classList.add("activePage"),g<1)for(var w=1;w<=10&&w<=e?.pageCount;w++)p.push(w);else if(g>10&&g<20)for(var w=11;w<20&&w<=e?.pageCount;w++)p.push(w);else if(g<=10&&g>=1)for(var w=1;w<=10&&w<=e?.pageCount;w++)p.push(w);else for(var w=t.split("")[0]*10-9;w<=t.split("")[0]*10&&w<=e?.pageCount;w++)p.push(w);return p},l=()=>{let p=[];for(var g=1;g<=e?.pageCount;g++)p.push(g);return p},d=()=>{r(`${n}?page=${Math.min(Number(t)+1,e.pageCount)}`)},u=()=>{r(`${n}?page=${Math.max(Number(t)-1,1)}`)},h=p=>{r(`${n}?page=${p}`)};return i.jsx("div",{className:"pagination__container",children:e?.pageCount>0&&Number(t)<=e?.pageCount?i.jsxs("div",{className:"pagination flex",children:[i.jsxs("div",{className:"link__point",onClick:()=>h(1),children:[" ","First Page (1)"," "]}),i.jsxs("div",{className:"pagination__controls",onClick:()=>u(),children:[" ",i.jsx(jf,{})," "]}),i.jsx("div",{className:"pageControl",children:o().map((p,g)=>i.jsxs("div",{className:`pageIndex page${p}`,onClick:()=>h(p),children:[" ",p," "]},g))}),i.jsx("select",{name:"page",id:"page",onChange:p=>h(p.target.value),value:t,children:l().map((p,g)=>i.jsxs("option",{value:p,children:[" ","Page ",p," "]},g))}),i.jsxs("div",{className:"pagination__controls",onClick:()=>d(),children:[" ",i.jsx(Ul,{})," "]}),i.jsxs("div",{className:"link__point",onClick:()=>h(e.pageCount),children:[" ","Last Page ( ",e.pageCount," )"," "]})]}):null})}function hGe(){const e=pt(),[t,n]=v.useState([]),{mda:r,id:a}=Pe(),s=Te(p=>p.mdaData)?._id,{isLoading:o,error:l,data:d}=Ke({queryKey:["view_news",{id:a}],queryFn:()=>uW(a)}),u=Ke({queryKey:["news",s],queryFn:()=>ZN(s),enabled:!!s});v.useEffect(()=>{gb(u?.data?.data,"date").then(g=>g).then(g=>{const y=g?.filter(b=>b._id!==a);n(y)})},[u?.data]);const h=()=>{e(`/${r}/news`)};return o?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):l?"An error has occurred: "+l.message:i.jsx("div",{className:"view_news",children:i.jsx(Ae,{children:i.jsxs("div",{className:"overhold flex",children:[i.jsxs("div",{className:"news_container",children:[i.jsxs("div",{className:"back_to_news",onClick:()=>h(),children:[" ",i.jsx(Xa,{})," "]}),i.jsxs("div",{className:"current_news",children:[i.jsx("div",{className:"dateNow",children:i.jsxs("div",{className:"firstPart flex",children:[Dn(d?.data.date),i.jsx("p",{children:"-"}),i.jsxs("div",{className:"readtime",children:[" ",su(d?.data.content)," Mins Read "]})]})}),i.jsx("div",{className:"current_news_title",children:vn(d?.data.title)}),i.jsx("div",{className:"current_news_image",children:i.jsx("img",{src:d?.data.photo,alt:""})}),i.jsx(Zl,{html:d?.data?.content,className:"current_news_body"})]})]}),i.jsxs("div",{className:"sub_news_container",children:[i.jsx("div",{className:"title__sub__news",children:i.jsx("p",{children:"Other Related News "})}),i.jsx("div",{className:"sub__news__data",children:t?.length?t.slice(0,8).map((p,g)=>i.jsxs("a",{className:"subs_news",href:`/${r}/news/${p._id}`,children:[i.jsx("div",{className:"sub__image",children:i.jsx("img",{src:p.photo,alt:""})}),i.jsxs("div",{className:"sub__title flex",children:[Wn(vn(p.title),60),i.jsx("div",{className:"date",children:Dn(p.date)})]})]},g)):null})]})]})})})}function pGe({data:e,topic:t}){const{id:n}=Pe(),r=window.location.pathname,[a,s]=v.useState(e),[o,l]=v.useState([]);v.useEffect(()=>{const h=e?.filter((p,g)=>g>0);l(h)},[e]);const d=h=>{const p=document.createElement("div");p.innerHTML=h;const g=p.innerText;return Wn(g,100)},u=h=>{const p=vn(h);return Wn(p,60)};return n?i.jsx(hGe,{id:n,topic:t}
2870):i.jsx("div",{className:"fetchedNews",children:e?.length?i.jsxs("div",{children:[i.jsx("a",{className:"landingNews",href:`${r}/${e[0]._id}`,children:i.jsxs("div",{className:"mainHighlight",children:[i.jsx("div",{className:"overlay"}),i.jsx("div",{className:"highlight_image",children:i.jsx("img",{src:e[0].photo,alt:""})}),i.jsx(Ae,{children:i.jsx("div",{className:"contentArea__news",children:i.jsxs("div",{className:"highlight_content",children:[i.jsxs("div",{className:"date",children:[" ",nf(e[0]?.date)," "]}),i.jsx("div",{className:"highlight_title",children:vn(e[0].title)}),i.jsx("div",{className:"highlight__short",children:d(e[0].content)}),i.jsx("div",{className:"info",children:i.jsxs("div",{className:"timeToRead",children:[" ",i.jsx(rm,{})," ",su(e[0].content)," Mins Read -"," "]})})]})})})]})}),i.jsx("div",{className:"holderNewsBar",children:i.jsx(Ae,{children:i.jsx("div",{className:"news_card_body main",children:i.jsx("div",{className:"news_results_section",children:o?.length?o.map((h,p)=>i.jsxs("a",{className:"news_card",href:`${r}/${h._id}`,children:[i.jsx("div",{className:"news_image",children:i.jsx("img",{src:h.photo})}),i.jsxs("div",{className:"news_body_content",children:[i.jsxs("div",{className:"date",children:[" ",nf(h.date)," "]}),i.jsxs("div",{className:"news_topic",children:[" ",u(h.title)," "]}),i.jsx("div",{className:"news_details",children:i.jsxs("div",{className:"details_readTime",children:[" ",i.jsx(rm,{})," ",su(h.content)," Mins Read -"," "]})})]})]},p)):i.jsxs("div",{className:"uppercase !text-[#131313]",style:{letterSpacing:"2px",fontSize:"11px"},children:[" ","No other additional news found!"," "]})})})})})]}):i.jsx("div",{className:"loaderPage uppercase-t !text-[#131313]",children:" Oops! No news found! "})})}function eh({topic:e}){pt();const[t]=Ine(),n=t.get("page")||1,{mda:r}=Pe(),[a,s]=v.useState({length:0,pageCount:0}),[o,l]=v.useState(0),d=Te(h=>h.mdaData)?._id;console.log(d);const u=Ke({queryKey:["news",r],queryFn:()=>ZN(d),enabled:!!d});return v.useEffect(()=>{window.scroll(0,0),s({length:o,pageCount:parseInt(o/20)+1})},[n,e,o]),v.useEffect(()=>{l(u?.data?.length)},[u?.data]),u.error?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):u.isLoading?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):i.jsx("div",{className:"news_body",children:i.jsx("div",{className:"news",children:i.jsxs("div",{className:"news__show__body",children:[i.jsx(pGe,{data:u.data?.data,topic:e}),u.data?.length>1?i.jsx(fGe,{size:a,page:n,redirect:`/${r}/news`}):null]})})})}function Pg(){const e=Te(t=>t.mdaData);return i.jsx("div",{className:"resources",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading flex text-gray-900!",children:[i.jsx("h1",{children:"Knowledge Vault : Explore Resources & Archives"}),i.jsx("span",{children:"Discover a treasure trove of resources for learning, growth, and innovation."})]}),i.jsxs("div",{className:"vault",children:[i.jsxs("div",{className:"doc doc__top",children:[i.jsxs("div",{className:"doc__title flex gap__20",children:["# Resource Title ",i.jsx(Wd,{})," "]}),i.jsxs("div",{className:"doc__category flex gap__20",children:["Category ",i.jsx(Wd,{})]}),i.jsxs("div",{className:"doc__date flex gap__20",children:["Last Updated ",i.jsx(Wd,{})]}),i.jsx("div",{className:"doc__action",children:"Action"})]}),e?.resources?.length>0&&e?.resources?.map((t,n)=>i.jsxs("a",{href:t?.url,target:"_blank",className:"doc doc__body",children:[i.jsxs("div",{className:"doc__title flex gap__10",children:[i.jsx("div",{className:"doc__icon",children:i.jsx("img",{src:yb,alt:""})}),t?.name]}),i.jsx("div",{className:"doc__category",children:t?.category||"N/A"}),i.jsxs("div",{className:"doc__date",children:[" ",t?.date||"N/A"," "]}),i.jsxs("div",{className:"doc__action",children:[" ",i.jsxs("div",{className:"form__button flex",children:[" ",i.jsx(gz,{})," Download"," "]})," "]})]},n))]})]})})}var DC={},Jq;function mGe(){return Jq||(Jq=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Mo();function n(o){if(o&&o.__esModule)return o;var l=Object.create(null);
2870return o&&Object.keys(o).forEach(function(d){if(d!=="default"){var u=Object.getOwnPropertyDescriptor(o,d);Object.defineProperty(l,d,u.get?u:{enumerable:!0,get:function(){return o[d]}})}}),l.default=o,Object.freeze(l)}var r=n(t),a=function(o,l){var d=!1;return function(){d||(o(),d=!0,setTimeout(function(){d=!1},l))}},s=function(o){var l=o.children,d=o.navContainerRef,u=o.parentScrollContainerRef,h=o.scrollThrottle,p=h===void 0?300:h,g=o.onUpdateCallback,y=o.offsetTop,b=y===void 0?0:y,w=o.offsetBottom,j=w===void 0?0:w,S=o.useDataAttribute,k=S===void 0?"to-scrollspy-id":S,N=o.activeClass,_=N===void 0?"active-scroll-spy":N,L=o.useBoxMethod,E=L===void 0?!0:L,T=o.updateHistoryStack,P=T===void 0?!0:T,$=t.useRef(null),O=t.useState(),q=O[0],D=O[1],z=t.useRef("");t.useEffect(function(){var B;D(d?(B=d.current)===null||B===void 0?void 0:B.querySelectorAll("[data-".concat(k,"]")):document.querySelectorAll("[data-".concat(k,"]")))},[d]),t.useEffect(function(){W()},[q]);var V=function(B){var H=B.getBoundingClientRect();if(E){var G=u?.current?u?.current.offsetHeight:window.innerHeight,K=G,M=H.top,I=H.top+G;return K<I+j&&K>M-b}else{var X=u?.current?u?.current.offsetHeight*.5:window.innerHeight*.5,G=u?.current?u?.current.offsetHeight:window.innerHeight;return H.top+X+b>=0&&H.bottom-X-j<=G}},W=function(){var B=$.current;if(B&&q)for(var H=function(M){var I=B.children.item(M),X=V(I);if(X){var F=I.id;return z.current===F?{value:void 0}:(q.forEach(function(U){var Z=U.getAttribute("data-".concat(k));U.classList.contains(_)&&U.classList.remove(_),Z===F&&!U.classList.contains(_)&&(U.classList.add(_),g&&g(F),z.current=F,P&&window.history.replaceState({},"","#".concat(F)))}),"break")}},G=0;G<B.children.length;G++){var K=H(G);if(typeof K=="object")return K.value;if(K==="break")break}};return t.useEffect(function(){var B;u?(B=u.current)===null||B===void 0||B.addEventListener("scroll",a(W,p)):window.addEventListener("scroll",a(W,p))}),r.createElement("div",{ref:$},l)};e.default=s})(DC)),DC}var gGe=mGe();const th=Aa(gGe),Ps=({customClass:e})=>i.jsx("div",{className:`lineDivider ${e}`}),nh="data:image/svg+xml,%3csvg%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%2016.144L11.0591%2010L0%2016.144L11.0591%2022.288L22.1183%2016.144Z'%20fill='%2378E183'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%2011.1439L11.0591%205L0%2011.1439L11.0591%2017.2879L22.1183%2011.1439Z'%20fill='%231A565F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1183%206.14396L11.0591%200L0%206.14396L11.0591%2012.288L22.1183%206.14396Z'%20fill='%2378E183'/%3e%3c/svg%3e";function vGe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function yGe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const Np="uppercase text-[11px] tracking-[2px] font-medium border-r border-[#bdbdbd] pr-5 !text-[#131313] last:border-none last:pr-0 max-[1000px]:min-w-max max-[1000px]:px-5 max-[1000px]:py-[10px] max-[1000px]:rounded-full max-[1000px]:bg-[#eee] max-[1000px]:border max-[1000px]:border-[#e7e7e7] [&.active-scroll-spy]:!text-[var(--theme-accent,green)]",xGe=()=>{const e=Te(t=>
2870t.mdaData);return i.jsxs("div",{className:"mt-[115px] max-[1000px]:mt-[190px] max-[700px]:mt-[185px]",children:[i.jsx("div",{className:"w-full fixed bg-white top-[114px] py-5 border-b border-[#eee] z-40 max-[1000px]:top-[90px] max-[1000px]:py-[10px] max-[1000px]:border-none max-[1000px]:bg-transparent",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",className:Np,children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",className:Np,children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",className:Np,children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",className:Np,children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",className:Np,children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"mt-[170px] max-[1000px]:mt-0",id:"history",children:i.jsx("div",{className:"relative overflow-hidden",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"py-[100px] flex flex-col gap-[50px] max-[1000px]:gap-5 max-[1000px]:py-0",children:i.jsx("h2",{className:"text-[48px] w-[900px] leading-[130%] text-center font-semibold underline tracking-[-0.5px] max-[1000px]:text-[32px] max-[1000px]:w-[600px] max-[1000px]:mb-[50px] max-[700px]:text-[28px] max-[700px]:w-full max-[700px]:mb-10",children:"That every Lagosian enjoys unfettered access to qualitative healthcare without significant geographical, financial, cultural or political barriers"})})})})}),i.jsx("section",{id:"mission",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden max-[700px]:flex-col max-[700px]:justify-center max-[700px]:items-center",children:[i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#2e7d32)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Vision"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.vision})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#2e7d32)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Mission"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.mission})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#2e7d32)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Our Goal"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.goal})]})})]})})}),i.jsx("section",{className:"!bg-[#e6edef] py-20 my-20 max-[1000px]:pt-[50px] max-[1000px]:pb-0 max-[1000px]:my-[30px]",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"flex items-center justify-between max-[1000px]:!w-4/5 max-[1000px]:flex-col max-[1000px]:items-center max-[1000px]:justify-center max-[1000px]:mx-auto max-[700px]:!w-full",children:[i.jsx("h1",{className:"!text-[#131313] text-[40px] leading-[130%] font-semibold w-[800px] max-[1000px]:text-[32px] max-[1000px]:w-full max-[1000px]:text-center max-[1000px]:mb-5 max-[700px]:text-[26px] max-[700px]:w-full",children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{className:"!text-[#555555] w-[300px] leading-[180%] max-[1000px]:w-4/5 max-[1000px]:text-center max-[700px]:w-full",children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 max-[1000px]:my-[30px]"}),i.jsx(Zl,{html:e?.responsibilities,className:"flex flex-col gap-5 [&>p:first-child]:mb-[10px] [&>p]:leading-[190%] !text-[#131313]"})]})}),e?.agencies?.length>0&&i.jsx("section",{className:"max-[1000px]:mt-[50px]",id:"agency",children:i.jsx(vGe,{res:e})}),e?.people?.length>0&&i.jsx("section",{className:"mt-[50px]",id:"people",children:i.jsx(yGe,{res:e})})]})]})},bGe=" ⢠",wGe=10,jGe=.12,or=({data:e,fullname:t,isEdit:n=!1,viewMode:r="view",selectedComponent:a="",onComponentClick:s=()=>{}})=>{const o=e?.messages?.length?e.messages:[`Welcome to ${t||"us"}`],l=e?.sliderEnabled&&o.length>1;if(e?.enabled===!1)return null;const d=o.join(bGe),u=Math.max(wGe,d.length*jGe);return i.jsxs("div",{className:`info-banner flex justify-center bg-[var(--theme-accent,#1c3f3a)] ${n&&r==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${a==="infoBar"?"!border-green-500 active_component":""}`,onClick:n&&r==="edit"?()=>s("infoBar"):null,children:[i.jsx(Ae,{customClass:"uppercase text-[11px] tracking-[2px] text-[var(--theme-accent-text,#f0ead2)] overflow-hidden relative h-[32px]",children:l?i.jsxs("div",{className:"info-bar-marquee-track flex whitespace-nowrap absolute top-1/2 left-0 font-medium",style:{animationDuration:`${u}s`},children:[i.jsx("span",{className:"pr-[60px]",children:d}),i.jsx("span",{className:"pr-[60px]","aria-hidden":"true",children:d})]}):i.jsx("p",{className:"absolute top-1/2 -translate-y-1/2 left-0 right-0 text-center font-medium",children:o[0]})}),l&&i.jsx("style",{children:` 2871 @keyframes info-bar-marquee { 2872 from { transform: translateY(-50%) translateX(0); } 2873 to { transform: translateY(-50%) translateX(-50%); } 2874 } 2875 .info-bar-marquee-track { 2876 animation-name: info-bar-marquee; 2877 animation-timing-function: linear; 2878 animation-iteration-count: infinite; 2879 } 2880 `})]})},Ap="h-full flex items-center px-8 border-l border-[#e7e7e7] text-[11px] uppercase tracking-[2px] transition-colors hover:bg-[#eee] cursor-pointer",Ou=({customClass:e,fullname:t,mdaData:n,isEdit:r=!1})=>{const{mda:a,page:s}=Pe(),o=pt(),l=n?.type==="service",d=n?.logo,u=p=>{r||o(p?`/${a}/${p}`:`/${a}`)},h=p=>
2880p===""?s===""||s===void 0:s===p;return i.jsxs("div",{className:`w-full flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-3 pr-5 cursor-pointer",onClick:()=>u(""),children:[i.jsx("div",{className:"w-14 h-14 overflow-hidden shrink-0",children:i.jsx("img",{src:d||Su,alt:`Lagos State ${t}`,className:"w-full h-full object-contain"})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] max-w-[180px] leading-[1.5] !text-[#131313]",children:t})]}),!l&&i.jsxs("div",{className:"h-full flex items-center flex-1 justify-end",children:[i.jsx("div",{className:`${Ap} ${h("")?"text-[#108a00] font-bold":""}`,onClick:()=>u(""),children:"Home"}),i.jsx("div",{className:`${Ap} ${h("about")?"text-[#108a00] font-bold":""}`,onClick:()=>u("about"),children:"About"}),i.jsx("div",{className:`${Ap} ${h("news")?"text-[#108a00] font-bold":""}`,onClick:()=>u("news?page=1"),children:"Newsroom"}),i.jsxs("div",{className:"relative group h-full",children:[i.jsxs("div",{className:`${Ap} gap-1.5 ${h("events")||h("gallery")?"text-[#108a00] font-bold":""}`,children:["Media",i.jsx(ar,{width:12,className:"transition-transform group-hover:rotate-180"})]}),i.jsxs("div",{className:"absolute top-full left-0 hidden group-hover:flex flex-col bg-white border border-[#e7e7e7] shadow-lg min-w-[160px] z-50",children:[i.jsx("div",{className:`px-5 py-3 text-[11px] uppercase tracking-[2px] hover:bg-[#eee] cursor-pointer ${h("events")?"text-[#108a00] font-bold":""}`,onClick:()=>u("events"),children:"Events"}),i.jsx("div",{className:`px-5 py-3 text-[11px] uppercase tracking-[2px] hover:bg-[#eee] cursor-pointer ${h("gallery")?"text-[#108a00] font-bold":""}`,onClick:()=>u("gallery"),children:"Gallery"})]})]}),n?.resources?.length>0&&i.jsx("div",{className:`${Ap} ${h("resources")?"text-[#108a00] font-bold":""}`,onClick:()=>u("resources"),children:"Resources"}),i.jsxs("div",{className:"h-full flex items-center px-6 bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] text-[11px] uppercase tracking-[2px] gap-1.5 cursor-pointer hover:opacity-90 shrink-0",onClick:()=>u("contact"),children:["Contact ",i.jsx(Oe,{width:14})]})]}),i.jsxs("a",{className:"ml-5 !text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase shrink-0",href:r?void 0:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},SGe=[{key:"",path:"",label:"Home"},{key:"about",path:"about",label:"About"},{key:"news",path:"news?page=1",label:"Newsroom"},{key:"media",label:"Media",children:[{key:"events",path:"events",label:"Events"},{key:"gallery",path:"gallery",label:"Gallery"}]},{key:"resources",path:"resources",label:"Resources"}],Mu=({customClass:e,fullname:t,mdaData:n,isEdit:r=!1})=>{const{mda:a,page:s}=Pe(),o=pt(),[l,d]=v.useState(!1),[u,h]=v.useState(null),p=n?.logo,g=n?.type==="service",y=SGe.filter(w=>w.key!=="resources"||n?.resources?.length>0),b=w=>{d(!1),!r&&o(w?`/${a}/${w}`:`/${a}`)};return i.jsxs("div",{className:`w-full flex items-center justify-between relative ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-2.5 cursor-pointer",onClick:()=>b(""),children:[i.jsx("div",{className:"w-9 h-9 overflow-hidden shrink-0",children:i.jsx("img",{src:p||Su,alt:`Lagos State ${t}`,className:"w-full h-full object-contain"})}),i.jsx("p",{className:"text-[10px] uppercase tracking-[1.5px] max-w-[140px] leading-[1.3] !text-[#131313]",children:t})]}),!g&&i.jsx("button",{type:"button",onClick:()=>d(!l),className:"p-2",children:l?i.jsx(et,{}):i.jsx(Ni,{})}),l&&i.jsxs("div",{className:"fixed inset-0 top-[90px] bg-white z-40 flex flex-col overflow-y-auto",children:[y.map(w=>w.children?i.jsxs("div",{className:"border-b border-[#eee]",children:[i.jsxs("div",{className:`px-6 py-4 text-[13px] uppercase tracking-[2px] flex items-center justify-between ${w.children.some(j=>j.key===s)?"text-[#108a00] font-bold":""}`,onClick:()=>h(u===w.key?null:w.key),children:[w.label,i.jsx(ar,{width:14,className:`transition-transform ${u===w.key?"rotate-180":""}`})]}),u===w.key&&i.jsx("div",{className:"flex flex-col bg-[#fafafa]",children:w.children.map(j=>i.jsx("div",{className:`px-10 py-3 text-[12px] uppercase tracking-[2px] ${s===j.key?"text-[#108a00] font-bold":""}`,onClick:()=>b(j.path),children:j.label},j.key))})]},w.key):i.jsx("div",{className:`px-6 py-4 border-b border-[#eee] text-[13px] uppercase tracking-[2px] ${(w.key===""?s===""||s===void 0:s===w.key)?"text-[#108a00] font-bold":""}`,onClick:()=>b(w.path),children:w.label},w.key)),i.jsxs("div",{className:"mx-6 mt-4 px-5 py-3 bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] text-[12px] uppercase tracking-[2px] flex items-center justify-center gap-1.5 rounded",onClick:()=>b("contact"),children:["Contact ",i.jsx(Oe,{width:14})]}),i.jsxs("a",{className:"mx-6 mt-4 !text-[#008435] font-bold flex gap-1.5 items-center text-[12px] tracking-[2px] uppercase",href:r?void 0:"/",children:["Back to LASG",i.jsx(Oe,{width:14})]})]})]})},CGe=({customClass:e,fullname:t})=>{const{mda:n,page:r}=Pe();return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:cg,alt:"Lagos State Ministry of Health"})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase",children:[i.jsx("a",{className:r===""||r===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:r==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:r==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:r==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("a",{className:r==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},kGe=({customClass:e,fullname:t})=>{const{mda:n,page:r}=Pe(),[a,s]=v.useState(!1);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${a?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:cg,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>s(!a),children:a?i.jsx(et,{}):i.jsx(Ni,{})})]}),a&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("a",{className:r===""||r===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:r==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:r==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:r==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("a",{className:r==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},NGe=({fullname:e})=>{const t=nt(u=>
2880u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||"classic")==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-4 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-4",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(CGe,{customClass:"h-[80px]",fullname:e}):i.jsx(kGe,{customClass:"h-[80px]",fullname:e})})})]})};function Du(e=150){const[t,n]=v.useState(window.innerWidth);return v.useEffect(()=>{let r;const a=()=>{clearTimeout(r),r=setTimeout(()=>{n(window.innerWidth)},e)};return window.addEventListener("resize",a),()=>{clearTimeout(r),window.removeEventListener("resize",a)}},[e]),t}const rh=({fullname:e})=>{const n=Du()>=1e3,r=Te(a=>a.mdaData);return i.jsxs("header",{className:"fixed top-0 w-full z-50 bg-[#fff] border-b border-[#e7e7e7]",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:r}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:r})})]})},AGe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),s=pt(),o=n?.type==="service",l=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||cg,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},EGe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||cg,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/gallery`),children:"Gallery"}),i.jsx("div",{className:a==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/contact`),children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},_Ge=({fullname:e})=>{const n=Du()>=1e3,r=Te(s=>s.mdaData);return(r?.landingPage?.navbarStyle||"classic")==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(AGe,{customClass:"h-[80px]",fullname:e,mdaData:r}):i.jsx(EGe,{customClass:"h-[80px]",fullname:e,mdaData:r})})})]})},ga=({customClass:e,children:t,action:n})=>i.jsx("div",{className:`buttons ${e}`,onClick:n,children:t}),yf=[{id:"emerald",label:"Emerald",css:"linear-gradient(135deg, #0f9b6c 0%, #00484d 100%)"},{id:"ocean",label:"Ocean",css:"linear-gradient(135deg, #0575e6 0%, #021b79 100%)"}
2880,{id:"sunset",label:"Sunset",css:"linear-gradient(135deg, #ff9966 0%, #ff5e62 100%)"},{id:"royal",label:"Royal Purple",css:"linear-gradient(135deg, #6a11cb 0%, #2575fc 100%)"},{id:"forest",label:"Forest",css:"linear-gradient(135deg, #134e5e 0%, #71b280 100%)"},{id:"charcoal",label:"Charcoal",css:"linear-gradient(135deg, #232526 0%, #414345 100%)"},{id:"gold",label:"Gold",css:"linear-gradient(135deg, #f7971e 0%, #ffd200 100%)"},{id:"crimson",label:"Crimson",css:"linear-gradient(135deg, #a80000 0%, #440000 100%)"}];yf[0].id;const TGe=e=>yf.find(t=>t.id===e)?.css||yf[0].css,LGe=["fullBleed","boxedOverlay","splitPhoto","splitTextImageBelow","centeredTextImageBelow","fullBleedCentered","colorBackground","groundedSplit","splitCircleFloating"],OGe="mt-[10px] bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] rounded-[5px] transition-opacity duration-200 hover:opacity-90 uppercase tracking-[2px] text-[11px] flex items-center gap-2",MGe=5e3,oo=({images:e,slideshowEnabled:t})=>{const n=(e||[]).filter(Boolean),[r,a]=v.useState(0),s=t&&n.length>1;return v.useEffect(()=>{if(!s)return;a(0);const o=setInterval(()=>{a(l=>(l+1)%n.length)},MGe);return()=>clearInterval(o)},[s,n.length]),n.length===0?i.jsx("div",{className:"w-full h-full flex items-center justify-center bg-[#00484d]",children:i.jsx("img",{src:Su,alt:"Lagos State Government",className:"w-[35%] max-w-[160px] object-contain opacity-90"})}):s?i.jsxs("div",{className:"relative w-full h-full",children:[n.map((o,l)=>i.jsx("img",{src:o,alt:"",draggable:!1,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-700 ${l===r?"opacity-100":"opacity-0"}`},o+l)),i.jsx("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5 z-[2]",children:n.map((o,l)=>i.jsx("button",{type:"button",onClick:d=>{d.stopPropagation(),a(l)},className:`w-2 h-2 rounded-full transition-colors ${l===r?"bg-white":"bg-white/40"}`,"aria-label":`Go to slide ${l+1}`},o+l))})]}):i.jsx("img",{src:n[0],alt:"",draggable:!1,className:"w-full h-full object-cover"})},ih=({style:e,title:t,subtitle:n,buttonText:r,buttonLink:a,images:s,legacyImage:o,secondaryImage:l,slideshowEnabled:d,bgType:u,bgColor:h,bgGradient:p,isEdit:g,viewMode:y,isSelected:b,onSelect:w})=>{const j=LGe.includes(e)?e:"splitPhoto",S=s?.length?s:o?[o]:[],k=()=>{a&&(a.startsWith("#")?document.querySelector(a)?.scrollIntoView({behavior:"smooth"}):window.open(a,"_blank"))},N=g&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":"",_=b?"!border-green-500 active_component":"",L=()=>{g&&y==="edit"&&w?.()},E=r&&i.jsxs(ga,{customClass:OGe,action:k,children:[r," ",i.jsx(Oe,{width:16})]});if(j==="fullBleed")return i.jsxs("div",{className:`relative flex items-center min-h-[600px] md:h-[60vh] overflow-clip ${N} ${_}`,onClick:L,children:[i.jsxs("div",{className:"absolute inset-0 w-full h-full overflow-hidden bg-black",children:[i.jsx(oo,{images:S,slideshowEnabled:d}),i.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(100deg,rgba(0,0,0,0.75)_0%,rgba(0,0,0,0.55)_45%,rgba(0,0,0,0.35)_100%)]"})]}),i.jsx(Ae,{children:i.jsxs("div",{className:"relative z-[1] max-w-[800px] py-[60px] max-[500px]:py-[40px] text-white",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.15] text-[clamp(32px,5vw,54px)] mb-5",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.6vw,17px)] max-w-[600px] mb-5 text-[#f1f1f1]",children:n}),E]})})]});if(j==="colorBackground"){const T=u==="solid"?h||"#0f9b6c":TGe(p);return i.jsxs("div",{className:`relative flex items-center py-10 sm:py-20 overflow-clip ${N} ${_}`,style:{background:T},onClick:L,children:[i.jsx("div",{className:"absolute inset-0 bg-black/15"}),i.jsx(Ae,{children:i.jsxs("div",{className:"relative z-[1] max-w-[800px] mx-auto py-[60px] max-[500px]:py-[40px] text-white text-center flex flex-col items-center",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.15] text-[clamp(32px,5vw,54px)] mb-5",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.6vw,17px)] max-w-[600px] mb-5 text-[#f1f1f1]",children:n}),E]})})]})}return j==="fullBleedCentered"?i.jsxs("div",{className:`relative flex items-center min-h-[600px] md:h-[60vh] overflow-clip ${N} ${_}`,onClick:L,children:[i.jsxs("div",{className:"absolute inset-0 w-full h-full overflow-hidden bg-black",children:[i.jsx(oo,{images:S,slideshowEnabled:d}),i.jsx("div",{className:"absolute inset-0 bg-black/50"})]}),i.jsx(Ae,{children:i.jsxs("div",{className:"relative z-[1] max-w-[800px] mx-auto py-[60px] max-[500px]:py-[40p
2880x] text-white text-center flex flex-col items-center",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.15] text-[clamp(32px,5vw,54px)] mb-5",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.6vw,17px)] max-w-[600px] mb-5 text-[#f1f1f1]",children:n}),E]})})]}):j==="boxedOverlay"?i.jsx("div",{className:`${N} ${_}`,onClick:L,children:i.jsx(Ae,{children:i.jsxs("div",{className:`relative w-full flex flex-col sm:block gap-6 ${g?"sm:mt-10":"sm:mt-[120px] lg:mt-[160px]"} sm:mb-[42px] mt-[105px] sm:h-[500px] md:h-[600px]`,children:[i.jsxs("div",{className:"sm:absolute sm:inset-0 sm:z-[1] flex flex-col justify-center sm:py-[6%] sm:px-[7%] sm:max-w-[100%] md:max-w-[80%] lg:max-w-[60%] text-[#131313] sm:text-white",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.1] text-[32px] sm:text-[40px] lg:text-[54px] mb-4 sm:mb-6",children:t}),i.jsx("p",{className:"leading-[1.6] text-[14px] md:text-[15px] lg:text-base mb-6 sm:mb-6 text-[#666] sm:text-[#f1f1f1] sm:max-w-[500px]",children:n}),E]}),i.jsxs("div",{className:"relative w-full h-[200px] sm:aspect-auto sm:h-full rounded-[16px] sm:rounded-[40px] overflow-hidden bg-black",children:[i.jsx(oo,{images:S,slideshowEnabled:d}),i.jsx("div",{className:"hidden sm:block absolute inset-0 bg-[linear-gradient(100deg,rgba(0,0,0,0.78)_0%,rgba(0,0,0,0.5)_70%,rgba(0,0,0,0)_85%)]"})]})]})})}):j==="splitTextImageBelow"?i.jsx("div",{className:`${N} ${_}`,onClick:L,children:i.jsx(Ae,{children:i.jsxs("div",{className:`flex flex-col ${g?"mt-10":"mt-[50px] lg:mt-[140px]"}`,children:[i.jsxs("div",{className:"flex justify-between gap-10 items-start pb-10 max-[900px]:flex-col max-[900px]:items-center max-[900px]:text-center max-[900px]:gap-6 max-[900px]:pb-6 my-10 mt-20",children:[i.jsx("h1",{className:"flex-1 min-w-0 max-w-[600px] font-[650] tracking-[-0.5px] leading-[1.24] text-[44px] max-[900px]:text-[32px] max-[500px]:text-[28px]",children:t}),i.jsxs("div",{className:"flex-1 min-w-0 max-w-[480px] flex flex-col gap-5 max-[900px]:items-center",children:[i.jsx("p",{className:"leading-[1.6] text-[15px] sm:text-base text-[#666]",children:n}),E]})]}),i.jsx("div",{className:"relative w-full h-[280px] sm:h-[420px] lg:h-[520px] rounded-[24px] overflow-hidden mb-15",children:i.jsx(oo,{images:S,slideshowEnabled:d})})]})})}):j==="centeredTextImageBelow"?i.jsx("div",{className:`${N} ${_}`,onClick:L,children:i.jsx(Ae,{children:i.jsxs("div",{className:`flex flex-col items-center text-center gap-5 pb-10 max-[900px]:pb-6 ${g?"mt-10":"mt-[70px] lg:mt-[140px]"}`,children:[i.jsx("h1",{className:"max-w-[900px] font-[650] tracking-[-0.5px] leading-[1.25] text-[44px] max-[900px]:text-[36px] max-[500px]:text-[28px] mt-12 ",children:t}),i.jsx("p",{className:"max-w-[700px] leading-[1.6] text-[15px] sm:text-base text-[#666]",children:n}),E,i.jsx("div",{className:"relative w-full h-[280px] sm:h-[420px] lg:h-[520px] rounded-[24px] overflow-hidden mt-6",children:i.jsx(oo,{images:S,slideshowEnabled:d})})]})})}):j==="groundedSplit"?i.jsx(Ae,{children:i.jsxs("div",{className:`flex justify-between items-center gap-10 py-[0px] min-h-[400px] md:h-max lg:min-h-[550px] 2xl:min-h-[650px] max-[900px]:flex-col max-[900px]:items-center max-[900px]:text-center max-[900px]:py-10 max-[900px]:gap-6 max-[900px]:min-h-0 ${N} ${_}`,onClick:L,children:[i.jsxs("div",{className:"flex flex-col flex-1 min-w-0 max-w-[700px] gap-6 max-[900px]:max-w-full max-[900px]:items-center",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] md:leading-[1.45] leading-[1.45] text-[54px] underline decoration-2 underline-offset-[10px] max-[900px]:text-[38px] max-[500px]:text-[30px]",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.3vw,17px)] max-w-[80%] mt-8 max-[900px]:max-w-full max-[900px]:mt-0 text-[#666]",children:n}),E&&i.jsx("div",{className:"max-[900px]:mx-auto",children:E})]}),i.jsx("div",{className:" lg:w-120 max-[1250px]:hidden 2xl:w-150 absolute right-0 rounded-none h-full overflow-hidden",children:i.jsx(oo,{images:S,slideshowEnabled:d})})]})}):j==="splitCircleFloating"?i.jsx(Ae,{children:i.jsxs("div",{className:`flex justify-between items-center gap-10 max-[1200px]:min-h-[100%] max-[1200px]:py-16 max-[500px]:py-14 max-[500px]:pb-8 min-h-[800px] max-[900px]:flex-col max-[900px]:text-center max-[900px]:gap-8 ${N} ${_}`,onClick:L,children:[i.jsxs("div",{className:"flex flex-col flex-1 min-w-0 max-w-[640px] gap-6 justify-center max-[900px]:max-w-full max-[900px]:items-center",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.15] text-[52px] max-[900px]:text-[38px] max-[500px]:text-[30px]",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.3vw,17px)] max-w-[75%] max-[900px]:max-w-full text-[#666]",children:n}),E&&i.jsx("div",{className:"max-[900px]:mx-auto",children:E})]}),i.jsx("div",{className:"relative overflow-hidden max-[600px]:mt-4",children:i.jsxs("div",{className:"max-[600px]:w-[calc(100%-100px)] max-[600px]:mx-auto overflow-hidden",children:[i.jsx("div",{className:"max-[1200px]:hidden max-[600px]:block max-[600px]:w-[250px] max-[600px]:h-[270px] 2xl:w-[400px] lg:w-[350px] mr-[175px] h-[420px] bg-gray-100 rounded-tr-[45%] overflow-hidden z-[1]",children:i.jsx(oo,{images:S,slideshowEnabled:d})}),i.jsx("div",{className:"max-[1200px]:hidden max-[600px]:block max-[600px]:w-[250px] relative max-[600px]:h-[270px] 2xl:w-[400px] lg:w-[350px] bg-gray-100 max-[600px]:mr
2880-[0px] -mt-50 h-[420px] rounded-tl-[45%] max-[600px]:border-[10px] border-[15px] border-white overflow-hidden z-[2] float-right",children:i.jsx(oo,{images:l?[l]:[],slideshowEnabled:!1})})]})})]})}):i.jsx(Ae,{children:i.jsxs("div",{className:`flex justify-between items-center gap-10 py-[60px] max-[900px]:flex-col max-[900px]:text-center max-[900px]:py-10 max-[900px]:gap-6 ${N} ${_}`,onClick:L,children:[i.jsxs("div",{className:"flex flex-col flex-1 min-w-0 max-w-[740px] gap-6 justify-center max-[900px]:max-w-full max-[900px]:items-center",children:[i.jsx("h1",{className:"font-[650] tracking-[-0.5px] leading-[1.15] text-[54px] max-[900px]:text-[42px] max-[500px]:text-[32px]",children:t}),i.jsx("p",{className:"leading-[1.6] text-[clamp(15px,1.3vw,17px)] max-w-[80%] max-[900px]:max-w-full text-[#666]",children:n}),E&&i.jsx("div",{className:"max-[900px]:mx-auto",children:E})]}),i.jsx("div",{className:"flex-none w-[clamp(280px,40vw,550px)] h-[clamp(320px,42vw,600px)] rounded-xl overflow-hidden max-[900px]:w-full max-[900px]:max-w-[500px] max-[900px]:h-auto max-[900px]:aspect-[4/3]",children:i.jsx(oo,{images:S,slideshowEnabled:d})})]})})},DGe="var(--theme-section-bg, #ffffff)",ah=({data:e,isEdit:t=!1,viewMode:n="view",selectedComponent:r="",onComponentClick:a=()=>{}})=>{if(!e)return null;const s=!!e?.backgroundColor,o=e?.backgroundColor||DGe,l=s?Tu(o):null,d=l===null?"":l?"text-white":"text-gray-900";return i.jsx("section",{style:{backgroundColor:o},className:`bg-[#fff] flex commisioners-zone md:py-[120px] py-[50px] ${t&&n==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${r==="commissionerZone"?"!border-green-500 active_component":""}`,onClick:t&&n==="edit"?()=>a("commissionerZone"):null,children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex wrapped lg:gap-[100px] gap-[30px] items-center justify-center flex-wrap lg:flex-nowrap",children:[i.jsxs("div",{className:"commissioner-container md:w-[600px] md:h-[580px] w-[500px] sm:h-[480px] h-[380px] relative",children:[i.jsx("div",{className:"backdrop-photo w-[100%] h-[100%] sm:h-[80%] bg-[#eee]"}),i.jsx("div",{className:"commissioner-image h-[calc(100%_-_20px)] w-[calc(100%_-_20px)] sm:w-[calc(100%_-_100px)] sm:h-[500px] md:w-[calc(100%_-_150px)] overflow-hidden absolute bottom-[10px] sm:bottom-0 left-[50%] transform-[translateX(-50%)]",children:i.jsx("img",{src:e?.commissionerImage,alt:"commissioners photo",className:"object-top w-full h-full object-cover"})})]}),i.jsxs("div",{className:"content flex flex-col w-full sm:w-[550px]",children:[i.jsxs("div",{className:"flex flex-col lg:gap-8 gap-5",children:[i.jsx("div",{className:`text-[24px] sm:text-[32px] md:text-[40px] font-semibold comms-title leading-[130%] ${d}`,children:e?.welcomeTitle}),i.jsx("p",{className:`leading-[180%] whitespace-pre-line ${d}`,children:e?.welcomeMessage})]}),i.jsxs("div",{className:"font-semibold mt-5 block commissioner-name",children:[i.jsx("h1",{className:d,children:e?.commissionerName}),i.jsx("span",{className:`!font-normal block ${d}`,children:e?.commissionerTitle})]})]})]})})})},PGe="var(--theme-section-bg, #ffffff)",sh=({data:e,isEdit:t=!1,viewMode:n="view",selectedComponent:r="",onComponentClick:a=()=>{}})=>{const[s,o]=v.useState(null);if(!e)return null;const l=!!e?.backgroundColor,d=e?.backgroundColor||PGe,u=l?Tu(d):null,h=s!==null?e?.cards?.[s]:null;return i.jsxs("section",{style:{backgroundColor:d},className:`lg:py-[30px] mb-[80px] py-[0px] coreInformationSection ${t&&n==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${r==="coreInformation"?"!border-green-500 active_component":""}`,onClick:t&&n==="edit"?()=>a("coreInformation"):null,children:[i.jsxs(Ae,{children:[i.jsx("div",{className:`topic__hand text-[24px] sm:text-[28px] md:text-[35px] leading-[140%] font-semibold text-center mb-[50px] leading-[130%] w-full mx-auto sm:w-[70%] md:w-[600px] ${u===null?"":u?"text-white":"text-gray-900"}`,children:e?.title||"You can type in your preferred title for the core information section"}),i.jsx("div",{className:"cards grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:e?.cards?.map((p,g)=>{const y=!!p.link;return i.jsx("div",{className:"card__blaze bg-gray-50 p-6 rounded-[8px] flex flex-col gap-8",children:i.jsxs("div",{className:"text__container flex flex-col flex-1",children:[i.jsx("div",{className:"w-[80%] text-[16px] font-semibold mb-3",children:p.title}),i.jsx("p",{className:"text-[15px] leading-[170%] mb-8 line-clamp-3 h-[78px] overflow-hidden text-gray-500",children:p.description}),i.jsx("div",{className:"mt-auto flex flex-col gap-2",children:y?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"text-[13px] font-medium underline text-[#1C3F3A] hover:text-[#00B44E] transition-colors text-left",onClick:b=>{b.stopPropagation(),o(g)},children:"Read More"}),i.jsxs("button",{className:"bg-green-700 text-white px-4 sm:px-6 py-2.5 sm:py-3 rounded-[4px] flex items-center justify-center gap-2 hover:opacity-90 transition-opacity uppercase text-[10px] sm:text-[11px] tracking-[2px] w-full",onClick:b=>{b.stopPropagation(),window.open(p.link,"_blank")},children:["Learn More",i.jsx(Oe,{className:"w-4 h-4"})]})]}):i.jsx("button",{className:"bg-green-700 text-white px-4 sm:px-4 py-2.5 sm:py-2 rounded-[4px] flex items-center justify-center gap-2 hover:opacity-90 transition-opacity text-[10px] sm:text-[13px] font-medium w-max",onClick:b=>{b.stopPropagation(),o(g)},children:"Read More"})})]})},g)})})]}),i.jsx(_u,{open:s!==null,onClose:()=>o(null),contentStyling:"max-w-2xl mx-auto mt-20 bg-white rounded-[8px] p-8 max-h-[75vh] overflow-y-auto",children:h&&i.jsxs("div",{children:[i.jsx("div",{className:"text-[18px] font-semibold mb-4 pr-8",children:h.title}),i.jsx("p",{className:"text-[15px] leading-[170%] mb-6 text-left",children:h.description}),h.keyPoints?.some(p=>p)&&i.jsx("div",{className:"checklist flex flex-col gap-3",children:h.keyPoints.map((p,g)=>p&&i.jsxs("div",{className:"itemInfo flex items-center gap-2 text-[14px]",children:[i.jsx(Ua,{className:"w-4 h-4 text-[#00B44E] shrink-0"})," ",p]},g))})]})})]})};function RGe({data:e,logo:t}){const[n,r]=v.useState(!1);return console.log(e.cta),i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"serviceCardItem",onClick:()=>r(!0),children:[i.jsxs("div",{className:"service_details flex flex-col",children:[i.jsxs("div",{className:"logo",children:[" ",i.jsx("img",{src:t,alt:"Lagos State Ministry of Health"})," "]}),i.jsxs("div",{className:"service_title",children:[" ",Wn(e.name,60)," "]})]}),i.jsx("div",{className:"topx",children:i.jsxs("div",{className:"service_description",children:[" ",vn(Wn(e.short,80))," "]})})]}),i.jsxs(_u,{open:n,onClose:()=>r(!1),children:[i.jsx("div",{className:"serviceTitle",children:e.name}),i.jsx("div",{dangerouslySetInnerHTML:{__html:e.content}}),i.jsx(ga,{customClass:"bg-[var(--theme-accent,#108a00)] mt-[50px] !py-[10px] !px-[20px] uppercase tracking-[2px] text-[var(--theme-accent-text,#ffffff)] rounded-[5px] flex gap-2 text-[11px]",action:()=>window.open(e.url),children:e.cta})]})]})}const IGe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2048%2048'%20id='Layers-1--Streamline-Plump-Gradient'%20height='48'%20width='48'%3e%3cdesc%3e%20Layers%201%20Streamline%20Icon:%20https://streamlinehq.com%20%3c/desc%3e%3cg%20id='layers-1--design-layer-layers-pile-stack-align'%3e%3cpath%20id='Union'%20fill='url(%23paint0_linear_7979_678)'%20fill-rule='evenodd'%20d='M22.3501%202.82011c1.0879-.26015%202.2124-.26015%203.3003%200%202.0047.47937%206.0105%201.62009%2010.9947%203.99353%203.8819%201.84849%206.5705%203.45306%208.2281%204.54276%201.9451%201.2786%201.9451%204.0111%200%205.2897-1.6576%201.0897-4.3462%202.6943-8.2281%204.5428-4.9842%202.3734-8.99%203.5142-10.9947%203.9935-1.0879.2602-2.2124.2602-3.3003%200-2.0047-.4793-6.0105-1.6201-10.9948-3.9935-3.88177-1.8485-6.57045-3.4531-8.22805-4.5428-1.94506-1.2786-1.94506-4.0111%200-5.2897%201.6576-1.0897%204.34628-2.69427%208.22805-4.54276%204.9843-2.37344%208.9901-3.51416%2010.9948-3.99353ZM4.07104%2020.752c1.58327.922%203.56952%201.9905%205.99446%203.1452%205.2077%202.4798%209.4181%203.6841%2011.5869%204.2027%201.5465.3698%203.1491.3698%204.6957%200%202.1688-.5186%206.3792-1.7228%2011.5868-4.2027%202.425-1.1547%204.4113-2.2232%205.9945-3.1452.3455.2156.6598.4174.9438.6041%201.9451%201.2787%201.9451%204.0112%200%205.2898-1.6576%201.0897-4.3462%202.6943-8.2281%204.5427-4.9842%202.3735-8.99%203.5142-10.9947%203.9936-1.0879.2601-2.2124.2601-3.3003%200-2.0047-.4794-6.
28800105-1.6201-10.9948-3.9936-3.88177-1.8484-6.57045-3.453-8.22805-4.5427-1.94506-1.2786-1.94506-4.0111%200-5.2898.28405-.1867.59837-.3885.94379-.6041Zm0%2010c1.58327.922%203.56952%201.9905%205.99446%203.1452%205.2077%202.4798%209.4181%203.6841%2011.5869%204.2027%201.5465.3698%203.1491.3698%204.6957%200%202.1688-.5186%206.3792-1.7228%2011.5868-4.2027%202.425-1.1547%204.4113-2.2232%205.9945-3.1452.3455.2156.6598.4174.9438.6041%201.9451%201.2787%201.9451%204.0112%200%205.2898-1.6576%201.0897-4.3462%202.6942-8.2281%204.5427-4.9842%202.3735-8.99%203.5142-10.9947%203.9936-1.0879.2601-2.2124.2601-3.3003%200-2.0047-.4794-6.0105-1.6201-10.9948-3.9936-3.88177-1.8485-6.57045-3.453-8.22805-4.5427-1.94506-1.2786-1.94506-4.0111%200-5.2898.28405-.1867.59837-.3885.94379-.6041Z'%20clip-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_7979_678'%20x1='3.385'%20x2='53.192'%20y1='6.08'%20y2='35.407'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23008c52'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2300f019'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",$Ge=({data:e,name:t,viewAllLink:n,totalCount:r,disableCap:a=!1})=>{const[s,o]=v.useState(!1),l=a||s?e:e?.slice(0,9),d=v.useRef(null);return i.jsx(Ae,{children:i.jsxs("div",{className:"flex flex-col items-center text-gray-900",children:[i.jsxs("div",{className:"font-semibold w-[100%] text-center flex flex-col items-center gap-[20px] container-builder",ref:d,children:[i.jsxs("p",{className:"text-[24px] sm:text-[32px] md:text-[35px] md:w-[700px] text-center leading-9 md:leading-[140%] text-gray-900",children:["Discover and Access ",t," Online Services"]}),i.jsx("span",{className:"text-[#666] text-base font-normal w-full !leading-[150%] ",children:"Explore our offerings and choose the service that best meets your needs."})]}),i.jsx("div",{className:"w-full flex flex-wrap gap-5 justify-center my-10 mt-20",children:l?.length>0&&l?.map((u,h)=>i.jsx(RGe,{data:u,logo:IGe},u.id||h))}),n?i.jsxs("a",{href:n,className:"bg-[var(--theme-accent,#108a00)] uppercase tracking-[2px] text-[var(--theme-accent-text,#ffffff)] rounded-[5px] flex items-center gap-2 text-[11px] px-6 py-3",children:["View All Services (",r,") ",i.jsx(Ul,{width:16})]}):!a&&e?.length>9?s?i.jsxs(ga,{customClass:"bg-[#131313] uppercase tracking-[2px] text-white rounded-[5px] flex gap-2 text-[11px]",action:()=>{o(!1),d.current?.scrollIntoView({behavior:"smooth"})},children:["Show Less ",i.jsx(wy,{})]}):i.jsxs(ga,{customClass:"bg-[var(--theme-accent,#108a00)] uppercase tracking-[2px] text-[var(--theme-accent-text,#ffffff)] rounded-[5px] flex gap-2 text-[11px]",action:()=>o(!0),children:["Load More ",i.jsx(Hm,{})]}):null]})})},BGe=({data:e,name:t,viewAllLink:n,totalCount:r})=>{const a=e||[],s=n?"a":"div";return i.jsx(Ae,{children:i.jsxs("div",{className:"flex flex-col items-center text-gray-900",children:[i.jsxs("div",{className:"font-semibold w-full text-center flex flex-col items-center gap-5",children:[i.jsxs("p",{className:"text-[24px] sm:text-[32px] md:text-[35px] md:w-[700px] text-center leading-9 md:leading-[140%] text-gray-900",children:["Discover and Access ",t," Online Services"]}),i.jsx("span",{className:"text-[#666] text-base font-normal w-full !leading-[150%]",children:"Explore our offerings and choose the service that best meets your needs."})]}),i.jsxs("div",{className:"w-full flex gap-5 overflow-x-auto pb-4 mt-16 [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:[i.jsxs(s,{href:n||void 0,className:"flex-none w-[280px] h-[320px] rounded-2xl bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] p-8 flex flex-col justify-between",children:[i.jsxs("p",{className:"text-[22px] font-semibold leading-[1.3]",children:["Explore all ",t," services"]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"text-sm font-medium",children:["View all services (",r??a.length,")"]}),i.jsx("div",{className:"w-9 h-9 rounded-full bg-white/15 flex items-center justify-center shrink-0",children:i.jsx(Oe,{width:18})})]})]}),a.map((o,l)=>i.jsxs("div",{className:"group flex-none w-[280px] h-[320px] rounded-2xl bg-gray-100 p-8 flex flex-col justify-between hover:bg-gray-900 transition-colors duration-300",children:[i.jsx("p",{className:"text-[18px] font-semibold leading-[1.3] text-gray-900 group-hover:text-white",children:o.name}),i.jsx("p",{className:"text-sm text-gray-500 line-clamp-3 group-hover:text-gray-300",children:o.short}),i.jsxs("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 text-sm font-medium text-[var(--theme-accent,#108a00)] group-hover:text-white",children:[o.cta||"Learn more"," ",i.jsx(Ul,{width:16})]})]},o.id||l))]})]})})},qGe=["style1","style2"],eF=8,L1=({style:e,data:t,name:n,showAll:r=!1})=>{const{mda:a}=Pe(),s=qGe.includes(e)?e:"style1",o=t?.length||0,l=r?t:t?.slice(0,eF),d=!r&&o>eF?`/${a}
2880/services`:null;return s==="style2"?i.jsx(BGe,{data:l,name:n,viewAllLink:d,totalCount:o}):i.jsx($Ge,{data:l,name:n,viewAllLink:d,totalCount:o,disableCap:r})},Q4=({data:e,mdaName:t,style:n,isEdit:r=!1,viewMode:a="view",selectedComponent:s="",onComponentClick:o=()=>{}})=>e?i.jsx("section",{className:`bg-[#e6edef] md:py-20 py-16 pb-10 ${r&&a==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${s==="services"?"!border-green-500 active_component":""}`,onClick:r&&a==="edit"?()=>o("services"):null,children:i.jsx(L1,{style:n,data:e,name:t})}):null,FGe="var(--theme-section-bg, #ffffff)",oh=({data:e,isEdit:t=!1,viewMode:n="view",selectedComponent:r="",onComponentClick:a=()=>{}})=>{const s=e?.documents||[];if(!t&&s.length===0)return null;const o=!!e?.backgroundColor,l=e?.backgroundColor||FGe,d=o?Tu(l):null,u=d===null?"":d?"text-white":"text-gray-900",h=d===null?"opacity-70":d?"text-white/70":"text-gray-500";return i.jsx("section",{style:{backgroundColor:l},className:`py-8 sm:py-16 ${t&&n==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${r==="documentShowcase"?"!border-green-500 active_component":""}`,onClick:t&&n==="edit"?()=>a("documentShowcase"):null,children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"flex flex-col gap-0 mb-8",children:[i.jsx("p",{className:`text-[18px] sm:text-[26px] font-semibold ${u}`,children:e?.title||"Documents"}),i.jsx("p",{className:`text-[14px] ${h}`,children:e?.subtitle||"Download our latest published documents."})]}
2880),i.jsx("div",{className:"sm:flex sm:gap-5 gap-4 overflow-x-auto pb-2 sm:grid-cols-none grid grid-cols-2 [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:s.map((p,g)=>i.jsxs("a",{href:p.url||void 0,target:"_blank",rel:"noreferrer",download:!0,className:"flex-none sm:w-[300px] bg-white overflow-hidden sm:group",onClick:y=>(t||!p.url)&&y.preventDefault(),children:[i.jsx("div",{className:"w-full sm:h-[400px] bg-gray-100 flex items-center justify-center overflow-hidden",children:i.jsx("img",{src:p.thumbnail||yb,alt:"",className:p.thumbnail?"w-full h-full object-cover":"w-10 h-10 object-contain opacity-60"})}),i.jsxs("div",{className:"flex py-3 items-center justify-between gap-2 group-hover:px-3 transition-all duration-700",children:[i.jsx("span",{className:"text-[14px] leading-[1.3] sm:text-[16px] w-[85%] sm:leading-[1.4] font-semibold text-gray-800 line-clamp-2",children:p.name||"Untitled document"}),i.jsx(Oe,{className:"text-gray-700 shrink-0",width:16})]})]},g))})]})})},O1=()=>{const[e,t]=v.useState(""),[n,r]=v.useState(!1),[a,s]=v.useState(""),o=Te(d=>d.mdaData)?._id,l=async d=>{if(d.preventDefault(),!e){s("Please enter your email address");return}r(!0),s("");try{const u=await BAe({email:e,mdaDirectory:o});u.success?(s("Successfully subscribed!"),t("")):s(u.message||"Subscription failed")}catch{s("Something went wrong. Please try again.")}finally{r(!1)}};return i.jsx("div",{className:"newsletter-section flex justify-center items-center bg-[var(--theme-accent,#2e7d32)] rounded-[10px] p-[30px] md:p-[50px] lg:p-[80px] mb-13 overflow-hidden relative",children:i.jsxs("div",{className:"newsletter-inner flex flex-col lg:flex-row items-center justify-between w-full text-[var(--theme-accent-text,#ffffff)] gap-[30px]",children:[i.jsx("div",{className:"newsletter-title text-[22px] sm:text-[24px] lg:text-[28px] font-semibold leading-[125%] md:w-[300px] lg:w-[550px] text-center lg:text-left relative z-[1]",children:"Subscribe to our newsletter to get updates to your inbox ð¨"}),i.jsxs("div",{className:"newsletter-form flex items-center justify-center gap-[10px] rounded-[5px] backdrop-blur-sm p-[2px] flex-wrap md:flex-nowrap",children:[i.jsx("input",{type:"email",placeholder:"Enter your email",value:e,onChange:d=>t(d.target.value),className:"newsletter-input w-full md:w-[320px] p-[14px] rounded-[5px] outline-none text-[var(--theme-accent-text,#ffffff)] glass-card h-[55px] md:h-[60px]",disabled:n}),i.jsx(ga,{action:l,customClass:"newsletter-button bg-[var(--theme-shade,#1c3f3a)] text-white flex items-center justify-center gap-2 rounded-[5px] px-[20px] py-[12px] !w-full md:max-w-max h-[55px] md:h-[60px]",disabled:n,children:n?"Subscribing...":"Subscribe"})]})]})})},J4=({isEdit:e=!1,viewMode:t="view",selectedComponent:n="",onComponentClick:r=()=>{}})=>i.jsx(Ae,{children:i.jsx(O1,{})}),zGe="var(--theme-section-bg, #ffffff)",lh=({data:e,isEdit:t=!1,viewMode:n="view",selectedComponent:r="",onComponentClick:a=()=>{}})=>{const s=pt(),{mda:o}=Pe(),l=e?.documents||[];if(!t&&l.length===0)return null;const d=!!e?.backgroundColor,u=e?.backgroundColor||zGe,h=d?Tu(u):null,p=h===null?"":h?"text-white":"text-gray-900",g=h===null?"opacity-70":h?"text-white/70":"text-gray-500";return i.jsx("section",{id:"quickdocsContainder",style:{backgroundColor:u},className:`quick-documents py-16 ${t&&n==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${r==="quickDocuments"?"!border-green-500 active_component":""}`,onClick:t&&n==="edit"?()=>a("quickDocuments"):null,children:i.jsx(Ae,{children:i.jsx("div",{className:"quickLinksPoint",id:"quickdocs",children:i.jsxs("div",{className:"pointB",children:[i.jsxs("div",{className:`topic ${p}`,children:[e?.title||"Quick Documents",i.jsx("div",{className:`sub ${g}`,children:e?.subtitle||"Access important documents and resources."}),i.jsxs("button",{className:"bg-[#1C3F3A] text-white uppercase tracking-[2px] text-[11px] rounded-[5px] inline-flex items-center gap-2 px-[25px] py-[15px] font-semibold hover:opacity-90 transition-opacity",onClick:y=>{y.stopPropagation(),!t&&s(`/${o}/resources/`)},children:[e?.discoverMoreText||"Discover More"," ",i.jsx(Oe,{className:"w-4 h-4"})]})]}),i.jsx("div",{className:"pointA",children:i.jsx("div",{className:"docs",children:l.map((y,b)=>i.jsx("a",{href:y.link,download:!0,className:"hover:text-green-700",children:y.title},b))})})]})})})})},tF=(e,t)=>{if(!e)return"";switch(t){case"phone":return`tel:${e.replace(/[^0-9+]/g,"")}`;case"email":return`mailto:${e}`;default:return e}},M1=({data:e,style:t,ctaTitle:n})=>{const r=v.useRef(null),{mda:a}=Pe(),s=Ye(d=>d.viewMode),o=s==="edit",l=d=>{r.current&&r.current.scrollBy({left:d==="left"?-500:500,behavior:"smooth"})};if(t==="imageCards"){const d=e||[];return i.jsxs("div",{className:"w-full flex overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:[i.jsxs("a",{href:o?void 0:`/${a}
2880/services`,className:"flex-none w-[38vw] min-w-[300px] max-w-[480px] h-[46vw] min-h-[380px] max-h-[520px] bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] p-8 flex flex-col justify-between",children:[i.jsxs("div",{className:"flex justify-between items-start gap-3",children:[i.jsx("p",{className:"text-[28px] font-semibold leading-[1.25]",children:n||"Check out our citizens services"}),i.jsx("div",{className:"w-10 h-10 bg-white text-[var(--theme-accent,#108a00)] flex items-center justify-center shrink-0",children:i.jsx(Oe,{width:18})})]}),i.jsxs("span",{className:"text-[11px] uppercase tracking-[1.5px] opacity-80",children:["View all services (",d.length,")"]})]}),d.map((u,h)=>{const p=o?"div":"a";return i.jsxs(p,{href:o?void 0:tF(u?.link,u?.linkType),className:"group relative flex-none w-[38vw] min-w-[300px] max-w-[480px] h-[46vw] min-h-[380px] max-h-[520px] overflow-hidden bg-gray-800",children:[u.image&&i.jsx("img",{src:u.image,alt:u.title,className:"w-full h-full object-cover"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/15 to-transparent"}),i.jsx("div",{className:"absolute inset-0 bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),i.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 text-white",children:[i.jsx("p",{className:"text-[20px] font-semibold leading-[1.3]",children:u.title}),i.jsx("div",{className:"grid grid-rows-[0fr] group-hover:grid-rows-[1fr] transition-[grid-template-rows] duration-300 ease-out",children:i.jsxs("div",{className:"overflow-hidden",children:[u.description&&i.jsx("p",{className:"text-[13px] opacity-90 leading-[1.5] mt-2 mb-4",children:u.description}),i.jsx("span",{className:"inline-flex items-center gap-2 bg-[var(--theme-accent,#108a00)] text-[var(--theme-accent-text,#ffffff)] text-[11px] font-medium uppercase tracking-[1.5px] px-4 py-2.5",children:"Get Started Now"})]})})]})]},h)})]})}return i.jsxs(Ae,{id:"services-theme-health",children:[i.jsxs("div",{className:"controls-slider w-full absolute top-[50%] translate-y-[-50%] flex justify-between",children:[i.jsx("button",{className:"control-btns prev-btn",onClick:()=>l("left"),children:i.jsx(Xa,{})}),i.jsx("button",{className:"control-btns next-btn",onClick:()=>l("right"),children:i.jsx(er,{})})]}),i.jsx("div",{ref:r,className:"services_parent_card flex gap-5",children:e?.map((d,u)=>s==="edit"?i.jsx("a",{className:"services_card",children:i.jsx("img",{src:d.image,alt:d.title})},u):i.jsx("a",{href:tF(d?.link,d?.linkType),className:"services_card",children:i.jsx("img",{src:d.image,alt:d.title})},u))})]})},HGe="var(--theme-section-bg, #e6edef)",eE=({data:e,style:t,ctaTitle:n,backgroundColor:r,isEdit:a=!1,viewMode:s="view",selectedComponent:o="",onComponentClick:l=()=>{}})=>{if(!e||e.length===0)return null;const d=r||HGe;return i.jsx("section",{style:{backgroundColor:d},className:`py-10 ${a&&s==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${o==="quickServices"?"!border-green-500 active_component":""}`,onClick:a&&s==="edit"?()=>l("quickServices"):null,children:i.jsx(M1,{data:e,style:t,ctaTitle:n})})},UGe="var(--theme-section-bg, #ffffff)",VGe=["style1","style2"],ch=({data:e,style:t,isEdit:n=!1,viewMode:r="view",selectedComponent:a="",onComponentClick:s=()=>{}})=>{const o=e?.items||[],l=VGe.includes(t)?t:"style1";if(!n&&o.length===0)return null;const d=!!e?.backgroundColor,u=e?.backgroundColor||UGe,h=d?Tu(u):null,p=`font-bold ${h===null?"":h?"text-white":"text-[#1C3F3A]"}`,g=`${h===null?"opacity-70":h?"text-white/70":"text-gray-500"}`;return i.jsx("section",{style:{backgroundColor:u},className:`py-10 ${n&&r==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${a==="statistics"?"!border-green-500 active_component":""}`,onClick:n&&r==="edit"?()=>s("statistics"):null,children:i.jsx(Ae,{children:l==="style2"?i.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-5",children:o.map((y,b)=>i.jsxs("div",{className:"flex flex-col items-center text-center gap-3 p-5 rounded-2xl bg-black/5",children:[i.jsx("div",{className:"w-14 h-14 roun
2880ded-full bg-white flex items-center justify-center overflow-hidden shrink-0 shadow-sm",children:y.icon?i.jsx("img",{src:y.icon,alt:"",className:"w-full h-full object-contain p-2"}):i.jsx("div",{className:"w-6 h-6 rounded-full bg-[var(--theme-accent,#108a00)]/30"})}),i.jsx("p",{className:`text-[20px] sm:text-[22px] ${p}`,children:y.value||"Value"}),i.jsx("div",{className:`text-[12px] ${g}`,children:y.label||"Statistic Label"})]},b))}):i.jsx("div",{className:"flex flex-wrap justify-center gap-x-14 gap-y-6",children:o.map((y,b)=>i.jsxs("div",{className:"flex flex-col items-center text-center min-w-[140px]",children:[i.jsx("p",{className:`text-[26px] sm:text-[32px] ${p}`,children:y.value||"Value"}),i.jsx("div",{className:`text-[13px] mt-1 ${g}`,children:y.label||"Statistic Label"})]},b))})})})},GGe="var(--theme-section-bg, #ffffff)",WGe=e=>{if(!e?.link)return"";switch(e.linkType){case"phone":return`tel:${e.link.replace(/[^0-9+]/g,"")}`;case"email":return`mailto:${e.link}`;default:return e.link}},YGe=e=>{switch(e){case"phone":return Gm;case"email":return Vm;default:return nb}},uh=({data:e,backgroundColor:t,isEdit:n=!1,viewMode:r="view",selectedComponent:a="",onComponentClick:s=()=>{}})=>{const o=e||[];if(!n&&o.length===0)return null;const l=t||GGe,d=t?Tu(l):null;return i.jsx("section",{style:{backgroundColor:l},className:`py-16 ${n&&r==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${a==="supportLinks"?"!border-green-500 active_component":""}`,onClick:n&&r==="edit"?()=>s("supportLinks"):null,children:i.jsxs(Ae,{children:[i.jsx("h2",{className:`text-[24px] sm:text-[28px] font-semibold text-center mb-10 ${d?"text-white":""}`,children:"Support & Quick Links"}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:o.map((u,h)=>{const p=YGe(u.linkType);return i.jsxs("a",{href:WGe(u),target:!u.linkType||u.linkType==="page"?"_blank":void 0,rel:"noopener noreferrer",className:"flex items-center justify-between bg-white rounded-[8px] p-5 hover:shadow-md transition-shadow",onClick:g=>n&&g.preventDefault(),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"text-green-700",children:i.jsx(p,{className:"w-5 h-5"})}),i.jsx("span",{className:"text-[14px] font-medium",children:u.text||"Support Link"})]}),i.jsx(Oe,{className:"w-4 h-4 text-gray-400"})]},h)})})]})})};var PC,nF;function KGe(){return nF||(nF=1,PC=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){var o=s[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),PC}var XGe=KGe();const ZGe=Aa(XGe);var D0={exports:{}},RC,rF;function QGe(){if(rF)return RC;rF=1;var e;/** 2881* @link https://github.com/gajus/sister for the canonical source repository 2882* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause 2883*/return e=function(){var t={},n={};return t.on=function(r,a){var s={name:r,handler:a};return n[r]=n[r]||[],n[r].unshift(s),s},t.off=function(r){var a=n[r.name].indexOf(r);a!==-1&&n[r.name].splice(a,1)},t.trigger=function(r,a){var s=n[r],o;if(s)for(o=s.length;o--;)s[o].handler(a)},t},RC=e,RC}var P0={exports:{}},IC,iF;function JGe(){if(iF)return IC;iF=1,IC=function(a,s,o){var l=document.head||document.getElementsByTagName("head")[0],d=document.createElement("script");typeof s=="function"&&(o=s,s={}),s=s||{},o=o||function(){},d.type=s.type||"text/javascript",d.charset=s.charset||"utf8",d.async="async"in s?!!s.async:!0,d.src=a,s.attrs&&e(d,s.attrs),s.text&&(d.text=""+s.text);var u="onload"in d?t:n;u(d,o),d.onload||t(d,o),l.appendChild(d)};function e(r,a){for(var s in a)r.setAttribute(s,a[s])}function t(r,a){r.onload=function(){this.onerror=this.onload=null,a(null,r)},r.onerror=function(){this.onerror=this.onload=null,a(new Error("Failed to load "+this.src),r)}}function n(r,a){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,a(null,r))}}return IC}var aF;function eWe(){return aF||(aF=1,(function(e,t){Object.defineProperty(t,"__esMo
2883dule",{value:!0});var n=JGe(),r=a(n);function a(s){return s&&s.__esModule?s:{default:s}}t.default=function(s){var o=new Promise(function(l){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){l(window.YT);return}else{var d=window.location.protocol==="http:"?"http:":"https:";(0,r.default)(d+"//www.youtube.com/iframe_api",function(h){h&&s.trigger("error",h)})}var u=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){u&&u(),l(window.YT)}});return o},e.exports=t.default})(P0,P0.exports)),P0.exports}var R0={exports:{}},I0={exports:{}},$0={exports:{}},$C,sF;function tWe(){if(sF)return $C;sF=1;var e=1e3,t=e*60,n=t*60,r=n*24,a=r*365.25;$C=function(u,h){h=h||{};var p=typeof u;if(p==="string"&&u.length>0)return s(u);if(p==="number"&&isNaN(u)===!1)return h.long?l(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(u);if(h){var p=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function o(u){return u>=r?Math.round(u/r)+"d":u>=n?Math.round(u/n)+"h":u>=t?Math.round(u/t)+"m":u>=e?Math.round(u/e)+"s":u+"ms"}function l(u){return d(u,r,"day")||d(u,n,"hour")||d(u,t,"minute")||d(u,e,"second")||u+" ms"}function d(u,h,p){if(!(u<h))return u<h*1.5?Math.floor(u/h)+" "+p:Math.ceil(u/h)+" "+p+"s"}return $C}var oF;function nWe(){return oF||(oF=1,(function(e,t){t=e.exports=a.debug=a.default=a,t.coerce=d,t.disable=o,t.enable=s,t.enabled=l,t.humanize=tWe(),t.names=[],t.skips=[],t.formatters={};var n;function r(u){var h=0,p;for(p in u)h=(h<<5)-h+u.charCodeAt(p),h|=0;return t.colors[Math.abs(h)%t.colors.length]}function a(u){function h(){if(h.enabled){var p=h,g=+new Date,y=g-(n||g);p.diff=y,p.prev=n,p.curr=g,n=g;for(var b=new Array(arguments.length),w=0;w<b.length;w++)b[w]=arguments[w];b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");var j=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(k,N){if(k==="%%")return k;j++;var _=t.formatters[N];if(typeof _=="function"){var L=b[j];k=_.call(p,L),b.splice(j,1),j--}return k}),t.formatArgs.call(p,b);var S=h.log||t.log||console.log.bind(console);S.apply(p,b)}}return h.namespace=u,h.enabled=t.enabled(u),h.useColors=t.useColors(),h.color=r(u),typeof t.init=="function"&&t.init(h),h}function s(u){t.save(u),t.names=[],t.skips=[];for(var h=(typeof u=="string"?u:"").split(/[\s,]+/),p=h.length,g=0;g<p;g++)h[g]&&(u=h[g].replace(/\*/g,".*?"),u[0]==="-"?t.skips.push(new RegExp("^"+u.substr(1)+"$")):t.names.push(new RegExp("^"+u+"$")))}function o(){t.enable("")}function l(u){var h,p;for(h=0,p=t.skips.length;h<p;h++)if(t.skips[h].test(u))return!1;for(h=0,p=t.names.length;h<p;h++)if(t.names[h].test(u))return!0;return!1}function d(u){return u instanceof Error?u.stack||u.message:u}})($0,$0.exports)),$0.exports}var lF;function rWe(){return lF||(lF=1,(function(e,t){var n={};t=e.exports=nWe(),t.log=s,t.formatArgs=a,t.save=o,t.load=l,t.useColors=r,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:d(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}};function a(u){var h=this.useColors;if(u[0]=(h?"%c":"")+this.namespace+(h?" %c":" ")+u[0]+(h?"%c ":" ")+"+"+t.humanize(this.diff),!!h){var p="color: "+this.color;u.splice(1,0,p,"color: inherit");var g=0,y=0;u[0].replace(/%[a-zA-Z%]/g,function(b){b!=="%%"&&(g++,b==="%c"&&(y=g))}),u.splice(y,0,p)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function l(){var u;
2883try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}t.enable(l());function d(){try{return window.localStorage}catch{}}})(I0,I0.exports)),I0.exports}var B0={exports:{}},cF;function iWe(){return cF||(cF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default})(B0,B0.exports)),B0.exports}var q0={exports:{}},uF;function aWe(){return uF||(uF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default})(q0,q0.exports)),q0.exports}var F0={exports:{}},z0={exports:{}},dF;function sWe(){return dF||(dF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default})(z0,z0.exports)),z0.exports}var fF;function oWe(){return fF||(fF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=sWe(),r=a(n);function a(s){return s&&s.__esModule?s:{default:s}}t.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default}
2883)(F0,F0.exports)),F0.exports}var hF;function lWe(){return hF||(hF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=rWe(),r=h(n),a=iWe(),s=h(a),o=aWe(),l=h(o),d=oWe(),u=h(d);function h(y){return y&&y.__esModule?y:{default:y}}var p=(0,r.default)("youtube-player"),g={};g.proxyEvents=function(y){var b={},w=function(T){var P="on"+T.slice(0,1).toUpperCase()+T.slice(1);b[P]=function($){p('event "%s"',P,$),y.trigger(T,$)}},j=!0,S=!1,k=void 0;try{for(var N=l.default[Symbol.iterator](),_;!(j=(_=N.next()).done);j=!0){var L=_.value;w(L)}}catch(E){S=!0,k=E}finally{try{!j&&N.return&&N.return()}finally{if(S)throw k}}return b},g.promisifyPlayer=function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w={},j=function(P){b&&u.default[P]?w[P]=function(){for(var $=arguments.length,O=Array($),q=0;q<$;q++)O[q]=arguments[q];return y.then(function(D){var z=u.default[P],V=D.getPlayerState(),W=D[P].apply(D,O);return z.stateChangeRequired||Array.isArray(z.acceptableStates)&&z.acceptableStates.indexOf(V)===-1?new Promise(function(B){var H=function G(){var K=D.getPlayerState(),M=void 0;typeof z.timeout=="number"&&(M=setTimeout(function(){D.removeEventListener("onStateChange",G),B()},z.timeout)),Array.isArray(z.acceptableStates)&&z.acceptableStates.indexOf(K)!==-1&&(D.removeEventListener("onStateChange",G),clearTimeout(M),B())};D.addEventListener("onStateChange",H)}).then(function(){return W}):W})}:w[P]=function(){for(var $=arguments.length,O=Array($),q=0;q<$;q++)O[q]=arguments[q];return y.then(function(D){return D[P].apply(D,O)})}},S=!0,k=!1,N=void 0;try{for(var _=s.default[Symbol.iterator](),L;!(S=(L=_.next()).done);S=!0){var E=L.value;j(E)}}catch(T){k=!0,N=T}finally{try{!S&&_.return&&_.return()}finally{if(k)throw N}}return w},t.default=g,e.exports=t.default})(R0,R0.exports)),R0.exports}var pF;function cWe(){return pF||(pF=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},r=QGe(),a=u(r),s=eWe(),o=u(s),l=lWe(),d=u(l);function u(p){return p&&p.__esModule?p:{default:p}}var h=void 0;t.default=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,b=(0,a.default)();if(h||(h=(0,o.default)(b)),g.events)throw new Error("Event handlers cannot be overwritten.");if(typeof p=="string"&&!document.getElementById(p))throw new Error('Element "'+p+'" does not exist.');g.events=d.default.proxyEvents(b);var w=new Promise(function(S){if((typeof p>"u"?"undefined":n(p))==="object"&&p.playVideo instanceof Function){var k=p;S(k)}else h.then(function(N){var _=new N.Player(p,g);return b.on("ready",function(){S(_)}),null})}),j=d.default.promisifyPlayer(w,y);return j.on=b.on,j.off=b.off,j},e.exports=t.default})(D0,D0.exports)),D0.exports}var uWe=cWe();const dWe=Aa(uWe);var fWe=Object.defineProperty,hWe=Object.defineProperties,pWe=Object.getOwnPropertyDescriptors,mF=Object.getOwnPropertySymbols,mWe=Object.prototype.hasOwnProperty,gWe=Object.prototype.propertyIsEnumerable,gF=(e,t,n)=>t in e?fWe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d5=(e,t)=>{for(var n in t||(t={}))mWe.call(t,n)&&gF(e,n,t[n]);if(mF)for(var n of mF(t))gWe.call(t,n)&&gF(e,n,t[n]);return e},f5=(e,t)=>hWe(e,pWe(t)),vWe=(e,t,n)=>new Promise((r,a)=>{var s=d=>{try{l(n.next(d))}catch(u){a(u)}},o=d=>{try{l(n.throw(d))}catch(u){a(u)}},l=d=>d.done?r(d.value):Promise.resolve(d.value).then(s,o);l((n=n.apply(e,t)).next())});function yWe(e,t){var n,r;if(e.videoId!==t.videoId)return!0;const a=((n=e.opts)==null?void 0:n.playerVars)||{},s=((r=t.opts)==null?void 0:r.playerVars)||{};return a.start!==s.start||a.end!==s.end}function vF(e={}){return f5(d5({},e),{height:0,width:0,playerVars:f5(d5({},e.playerVars),{autoplay:0,start:0,end:0})})}function xWe(e,t){return e.videoId!==t.videoId||!ZGe(vF(e.opts),vF(t.opts))}function bWe(e,t){var n,r,a,s;return e.id!==t.id||e.className!==t.className||((n=e.opts)==null?void 0:n.width)!==((r=t.opts)==null?void 0:r.width)||((a=e.opts)==null?void 0:a.height)!==((s=t.opts)==null?void 0:s.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title}var wWe={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}}
2883,jWe={videoId:mn.string,id:mn.string,className:mn.string,iframeClassName:mn.string,style:mn.object,title:mn.string,loading:mn.oneOf(["lazy","eager"]),opts:mn.objectOf(mn.any),onReady:mn.func,onError:mn.func,onPlay:mn.func,onPause:mn.func,onEnd:mn.func,onStateChange:mn.func,onPlaybackRateChange:mn.func,onPlaybackQualityChange:mn.func},vy=class extends ft.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=t=>{var n,r;return(r=(n=this.props).onReady)==null?void 0:r.call(n,t)},this.onPlayerError=t=>{var n,r;return(r=(n=this.props).onError)==null?void 0:r.call(n,t)},this.onPlayerStateChange=t=>{var n,r,a,s,o,l,d,u;switch((r=(n=this.props).onStateChange)==null||r.call(n,t),t.data){case vy.PlayerState.ENDED:(s=(a=this.props).onEnd)==null||s.call(a,t);break;case vy.PlayerState.PLAYING:(l=(o=this.props).onPlay)==null||l.call(o,t);break;case vy.PlayerState.PAUSED:(u=(d=this.props).onPause)==null||u.call(d,t);break}},this.onPlayerPlaybackRateChange=t=>{var n,r;return(r=(n=this.props).onPlaybackRateChange)==null?void 0:r.call(n,t)},this.onPlayerPlaybackQualityChange=t=>{var n,r;return(r=(n=this.props).onPlaybackQualityChange)==null?void 0:r.call(n,t)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if(typeof document>"u")return;if(this.destroyPlayerPromise){this.destroyPlayerPromise.then(this.createPlayer);return}const t=f5(d5({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=dWe(this.container,t),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(n=>{this.props.title&&n.setAttribute("title",this.props.title),this.props.loading&&n.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var t;(t=this.internalPlayer)==null||t.getIframe().then(n=>{this.props.id?n.setAttribute("id",this.props.id):n.removeAttribute("id"),this.props.iframeClassName?n.setAttribute("class",this.props.iframeClassName):n.removeAttribute("class"),this.props.opts&&this.props.opts.width?n.setAttribute("width",this.props.opts.width.toString()):n.removeAttribute("width"),this.props.opts&&this.props.opts.height?n.setAttribute("height",this.props.opts.height.toString()):n.removeAttribute("height"),this.props.title?n.setAttribute("title",this.props.title):n.setAttribute("title","YouTube video player"),this.props.loading?n.setAttribute("loading",this.props.loading):n.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var t,n,r,a;if(typeof this.props.videoId>"u"||this.props.videoId===null){(t=this.internalPlayer)==null||t.stopVideo();return}let s=!1;const o={videoId:this.props.videoId};if((n=this.props.opts)!=null&&n.playerVars&&(s=this.props.opts.playerVars.autoplay===1,"start"in this.props.opts.playerVars&&(o.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(o.endSeconds=this.props.opts.playerVars.end)),s){(r=this.internalPlayer)==null||r.loadVideoById(o);return}(a=this.internalPlayer)==null||a.cueVideoById(o)},this.refContainer=t=>{this.container=t},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return vWe(this,null,function*(){bWe(e,this.props)&&this.updatePlayer(),xWe(e,this.props)&&(yield this.resetPlayer()),yWe(e,this.props)&&this.updateVideo()})}componentWillUnmount(){this.destroyPlayer()}render(){return ft.createElement("div",{className:this.props.className,style:this.props.style},ft.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}},D1=vy;D1.propTypes=jWe;D1.defaultProps=wWe;D1.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var SWe=D1;const CWe="/assets/facebook-ejnf6rkB.png",kWe="/assets/instagram-BT1rpC5A.png",NWe="/assets/twitter-CPWSm0NQ.png",AWe="/assets/youtube-Bkrd1hYi.png";function P1({id:e,viewMode:t}){const n=v.useRef(null),s=Te(d=>d.mdaData)?.contact?.socials||{x:"#",facebook:"#",youtube:"#",instagram:"#"},o={playerVars:{autoplay:0},width:"100%"};v.useEffect(()=>()=>{if(n.current&&typeof n.current.destroy=="function")try{n.current.destroy()}catch(d){console.warn("YouTube player cleanup failed:",d.message)}},[]);const l=d=>{n.current=d.target};return i.jsxs("div",{className:"social-section flex flex-col items-center w-full gap-[60px] px-4 sm:px-6 md:px-8",children:[i.jsx("div",{className:"social-section-title text-[24px] sm:text-[32px] md:text-[40px] font-semibold max-w-[90%] md:w-[700px] text-center capitalize leading-[130%]",children:"Stay informed. Follow our social channels for updates."}),i.jsx("div",{className:"social-video w-full md:w-[90%]",children:i.jsx(SWe,{videoId:e,iframeClassName:"w-full h-[220px] sm:h-[350px] md:h-[450px] lg:h-[550px] rounded-[10px] bg-[#eee]",opts:o,onReady:l,className:`w-full ${t==="edit"?"pointer-events-none":""}`},e||"empty")}),i.jsxs("div",{className:"flex flex-col items-center mt-[20px] gap-[24px] md:gap-[30px]",children:[i.jsx("div",{className:"social-label font-semibold text-[11px] sm:text-[12px] md:text-[13px] uppercase tracking-[2px] text-center",children:"Visit some of our social media profiles"}),i.jsxs("div",{className:"social-icons flex flex-wrap justify-center gap-[30px] sm:gap-[40px] md:gap-[50px]",children:[s.x&&i.jsx("a",{href:s.x,target:"_blank",rel:"noreferrer",className:"social-icon h-[45px] w-[45px] sm:h-[50px] sm:w-[50px] md:h-[60px] md:w-[60px] overflow-hidden cursor-pointer transition-transform duration-300 hover:scale-110",children:i.jsx("img",{src:NWe,alt:"Twitter",className:"w-full"})}),s.facebook&&i.jsx("a",{href:s.facebook,target:"_blank",rel:"noreferrer",className:"social-icon h-[45px] w-[45px] sm:h-[50px] sm:w-[50px] md:h-[60px] md:w-[60px] overflow-hidden cursor-pointer transition-transform duration-300 hover:scale-110",children:i.jsx("img",{src:CWe,alt:"Facebook",className:"w-full"})}),s.youtube&&i.jsx("a",{href:s.youtube,target:"_blank",rel:"noreferrer",className:"social-icon h-[45px] w-[45px] sm:h-[50px] sm:w-[50px] md:h-[60px] md:w-[60px] overflow-hidden cursor-pointer transition-transform duration-300 hover:scale-110",children:i.jsx("img",{src:AWe,alt:"YouTube",className:"w-full"})}),s.instagram&&i.jsx("a",{href:s.instagram,target:"_blank",rel:"noreferrer",className:"social-icon h-[45px] w-[45px] sm:h-[50px] sm:w-[50px] md:h-[60px] md:w-[60px] overflow-hidden cursor-pointer transition-transform duration-300 hover:scale-110",children:i.jsx("img",{src:kWe,alt:"Instagram",className:"w-full"})})]})]})]})}const EWe="var(--theme-section-bg, #ffffff)",tE=({data:e,isEdit:t=!1,viewMode:n="view",selectedComponent:r="",onComponentClick:a=()=>{}})=>{if(!e)return null;const s=e?.backgroundColor||EWe;return i.jsx("section",{style:{backgroundColor:s},className:`${t&&n==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${r==="youtubePlayer"?"!border-green-500 active_component":""}`,onClick:t&&n==="edit"?()=>a("youtubePlayer"):null,children:i.jsxs(Ae,{children:[i.jsx(Ps,{customClass:"sm:mb-[80px] mb-[40px]"}),i.jsx(P1,{id:e?.id,viewMode:n})]})})},Pu=({data:e,isEdit:t=!1,mda:n,type:r})=>{const a=pt(),s=nt(o=>o.mdaEditData);return i.jsx("section",{className:`resource-categories ${r==="page"&&"page-resource-categories"}`,children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"resource-categories-header",children:[i.jsx("h2",{children:e?.title||"Budget Resources & Documents"}
2883),i.jsx("p",{children:e?.subtitle||"Access comprehensive budget documents, financial statements, and transparency reports"})]}),i.jsx("div",{className:`budgets__cat ${s?.cards?.length<3&&"justify-center!"} ${r==="page"?`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-${e?.cards?.length>2?3:2} gap-6`:"flex"}`,id:`${t?"page":"component"}`,children:e?.cards?.length>0?e?.cards?.map((o,l)=>i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:o.image||"https://openstates.ng/latest/assets/img/implemantation.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:[o.title," ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn(o.description||"",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/${o.title.toLowerCase().replace(/\s+/g,"-")}`),children:o.buttonText||"View Documents"})})]})]},l)):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/latest/assets/img/implemantation.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["Annual Budget Appropiation Bill ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("The Annual Appropriation Law is Annual Budget (Appropriation Bill) passed by State House of Assembly, and signed into law by Mr. Governor",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/annual-budget-bill`),children:"View Documents"})})]})]}),i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/latest/assets/img/Audited.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["Annual Budget Appropriation Law ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("The Annual Appropriation Bill also known as Annual Budget, is budget as prepared and approved by State Executive Council and presented to State House of Assembly for deliberation and approval",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/annual-budget-law`),children:"View Documents"})})]})]}),i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/approved.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["Audited Financial Statement ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("Lagos state government's audited financial statement is a crucial report that assesses its financial performance and compliance. It provides transparency, accountability, and vital information for budgetary decisions and public trust.",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/audited-financial-statement`),children:"View Documents"})})]})]}),i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/latest/assets/img/proposed.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["States Fiscal Transparency, Accountability, and Sustainability"," ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("The States Fiscal Transparency, Accountability, and Sustainability (SFTAS) scheme was set up to strengthen the fiscal transparency, accountability, and sustainability of the budgetary process for all participating States. Initiated by the Federal government and supported by the World Bank, its goal is to provide grants to States that have complied with the annual eligibility criteria to the extent of their compliance.",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/sftas`),children:"View Documents"})})]})]}),i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/latest/assets/img/citizen.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["Citizen Budget",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("The Citizen's Budget is a short explanation of the approved budget. It breaks down the budget to showcase major plans to be executed for the year for easy consumption by the citizens.",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/citizen-budget`),children:"View Documents"})})]})]}),i.jsxs("div",{className:"bud__cat",children:[i.jsx("img",{src:"https://openstates.ng/latest/assets/img/policy.png",alt:""}),i.jsxs("div",{className:"naming",children:[i.jsxs("p",{children:["Quarterly Budget Performance Reviews ",i.jsx(er,{width:18})]}),i.jsx("span",{children:Wn("The Quarterly Budget Performance Review is designed to evaluate the implementation of the budget to verify if the budget is performing according..",100)}),i.jsx("div",{className:"butt",children:i.jsx(ga,{customClass:`bg-[var(--theme-accent,#1c3f3a)] text-[var(--theme-accent-text,#ffffff)] px-4 py-2 rounded-md text-sm font-medium ${t?"cursor-not-allowed":"hover:opacity-90"}`,action:()=>!t&&a(`/${n}/resources/quarterly-budget-performance`),children:"View Documents"})})]})]})]})})]})})},yF=({isEdit:e})=>{const t=nt(_=>
2883_.mdaEditData),n=Te(_=>_.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(_=>{_?.data?a(_.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(_=>_.setSelectedComponent),p=Ye(_=>_.selectedComponent),g=v.useRef(null),y=Ye(_=>_.viewMode),{data:b,isLoading:w}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname}),{data:j,isLoading:S}=Ke({queryKey:["icon",n?.fullname],queryFn:()=>ng(Cn(n?.fullname)),enabled:!!n?.fullname}),k=_=>{h(_)},N=n?.type==="service";return i.jsxs("div",{className:`landingPage-version mx-auto my-0 ${e?"mt-0":N?"lg:mt-[120px] mt-[80px]":"lg:mt-[115px] mt-[85px]"}`,ref:g,"data-mda":"health",children:[r?.enabledSections?.heroSection&&i.jsx(ih,{style:r?.hero_style||"splitPhoto",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link,images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:y,isSelected:p==="heroSection",onSelect:()=>k("heroSection")}),r?.enabledSections?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.quickServices&&r?.servicesData?.length>0&&i.jsx(eE,{data:r?.servicesData,backgroundColor:r?.quickServices?.backgroundColor,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.services&&i.jsx(Q4,{data:b?.data,mdaName:n?.fullname,style:r?.services_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>k("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),r?.enabledSections?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.youtubePlayer&&i.jsx(tE,{data:r?.youtubePlayer,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k}),r?.enabledSections?.newsletter&&i.jsx(J4,{isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:k})]})},_We=({isEdit:e})=>{const{mda:t,page:n}=Pe(),r=Te(o=>o.mdaData),a=Kf(r?.colorTheme);v.useEffect(()=>{const o=document.querySelector(".footer"),l=document.querySelector("#header");return o&&(o.style.display="none"),l&&(l.style.display="none"),()=>{o&&(o.style.display=""),l&&(l.style.display="")}},[]);const s=()=>{switch(n){case"":return i.jsx(yF,{});case"about":return i.jsx(xGe,{});case"news":return i.jsx(eh,{topic:"Health Services",mda:t});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(Pg,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(yF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:a,children:[i.jsx(NGe,{fullname:r?.fullname}),s(),i.jsx(Na,{data:r})]}):i.jsxs("div",{className:"themeHolder",style:a,children:[i.jsx(_Ge,{fullname:r?.fullname}),s(),i.jsx(Na,{data:r})]})};function TWe(){const e=Te(a=>a.mdaData),{mda:t,id:n}=Pe();let r=pt();if(n){const a=e?.resources?.filter(s=>s?.category.toLowerCase().replace(/\s+/g,"-")===n);return`${e?.slug}`,i.jsx("div",{className:"resources",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading flex gap-4! mb-4 text-gray-900!",children:[i.jsx("div",{className:"w-full",children:i.jsx("div",{className:"cursor-pointer",onClick:()=>r(`/${t}/resources/`),children:i.jsx(Xa,{fontSize:20})})}),i.jsx("h1",{className:"capitalize underline",children:n.replaceAll("-"," ")})]}),i.jsxs("div",{className:"vault",children:[i.jsxs("div",{className:"doc doc__top",children:[i.jsxs("div",{className:"doc__title flex gap__20",children:["# Resource Title ",i.jsx(Wd,{})," "]}),i.jsxs("div",{className:"doc__category flex gap__20",children:["Category ",i.jsx(Wd,{})]}),i.jsxs("div",{className:"doc__date flex gap__20",children:["Last Updated ",i.jsx(Wd,{})]}),i.jsx("div",{className:"doc__action",children:"Action"})]}),a?.length>0&&a?.map((s,o)=>i.jsxs("a",{href:s?.url,target:"_blank",className:"doc doc__body",children:[i.jsxs("div",{className:"doc__title flex gap__10",children:[i.jsx("div",{className:"doc__icon",children:i.jsx("img",{src:yb,alt:""})}),s?.name]}),i.jsx("div",{className:"doc__category",children:s?.category||"N/A"}),i.jsxs("div",{className:"doc__date",children:[" ",s?.date?Dn(s?.date):"N/A"," "]}),i.jsxs("div",{className:"doc__action",children:[" ",i.jsxs("div",{className:"form__button flex",children:[" ",i.jsx(gz,{})," Download"," "]})," "]})]},o))]})]})})}return i.jsx("div",{className:"resources",children:i.jsx(Pu,{data:e?.landingPage?.resourceCategories,isEdit:!1,mda:e?.slug?.toLowerCase().replace(/\s+/g,"-"),t
2883ype:"page"})})}function LWe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function OWe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const MWe=()=>{const e=Te(t=>t.mdaData);return i.jsxs("div",{className:"about-mda",children:[i.jsx("div",{className:"navigateMenu",children:i.jsx(Ae,{children:i.jsxs("div",{className:"spy__links",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"about-sections index-top ",id:"history",children:i.jsx("div",{className:"history",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"contentArea",children:i.jsx("h2",{children:e?.aboutSubtitle||"Comprehensive Insight into the Ministryâs Vision, Administrative Structure, Principal Officers, and Operational Responsibilities"})})})})}),i.jsx("section",{className:"about-sections",id:"mission",children:i.jsx(Ae,{children:i.jsx("div",{className:"mission",children:i.jsxs("div",{className:"card-set",children:[i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Vision"}),i.jsx("p",{children:e?.vision})]})}),i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Mission"}),i.jsx("p",{children:e?.mission})]})}),i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Our Goal"}),i.jsx("p",{children:e?.goal})]})})]})})})}),i.jsx("section",{className:"about-sections",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading flex",children:[i.jsx("h1",{children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 divider-about"}),i.jsx(Zl,{html:e?.responsibilities})]})}),i.jsx("section",{className:"about-sections",id:"agency",children:i.jsx("div",{className:"agency",children:i.jsx(LWe,{res:e})})}),i.jsx("section",{className:"about-sections",id:"people",children:i.jsx("div",{className:"people",children:i.jsx(OWe,{res:e})})})]})]})},R1="/assets/lasg__logo-9UVgyhz4.png",DWe=({customClass:e,fullname:t})=>{const{page:n}=Pe(),r=Te(a=>a.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:R1,alt:"Lagos State Ministry of Health"})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),r?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("div",{className:n==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("div",{className:n==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"})]}),i.jsxs("div",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",children:["Back to LASG",i.jsx(Oe,{})]})]})},PWe=({customClass:e,fullname:t})=>{const{page:n}
2883=Pe(),[r,a]=v.useState(!1),s=Te(o=>o.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${r?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-10 h-10 flex-shrink-0 sm:w-12 sm:h-12",children:i.jsx("img",{src:R1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>a(!r),children:r?i.jsx(et,{}):i.jsx(Ni,{})})]}),r&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("div",{className:n==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),s?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("div",{className:n==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("div",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},RWe=({fullname:e})=>{const t=nt(u=>u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||"classic")==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-10 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-10",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"bg-white border-b border-[#eee]",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(DWe,{customClass:"h-[80px]",fullname:e}):i.jsx(PWe,{customClass:"h-[80px]",fullname:e})})})]})},IWe=({customClass:e,fullname:t})=>{const{mda:n,page:r}=Pe(),a=pt(),s=Te(d=>d.mdaData),o=s?.type==="service",l=s?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||R1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:r===""||r===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}`),children:"Home"}),i.jsx("div",{className:r==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/about`),children:"About"}),s?.resources?.length>0&&i.jsx("div",{className:r==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/resources`),children:"Resources"}),i.jsx("div",{className:r==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:r==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/events`),children:"Events"}),i.jsx("div",{className:r==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/gallery`),children:"Gallery"}),i.jsx("div",{className:r==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>r!=="draft"&&a(`/${n}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},$We=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||R1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>a!=="draft"&&l(`/${r}/contact`),children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},BWe=({fullname:e})=>{const n=Du()>=1e3,r=Te(s=>s.mdaData);return(r?.landingPage?.navbarStyle||"classic")==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx("div",{className:"bg-white border-b border-[#eee]",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(IWe,{customClass:"h-[80px]",fullname:e,mdaData:r}):i.jsx($We,{customClass:"h-[80px]",fullname:e,mdaData:r})})})]})},xF=({isEdit:e})=>{const t=nt(S=>
2883S.mdaEditData),n=Te(S=>S.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(S=>{S?.data?a(S.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(S=>S.setSelectedComponent),p=Ye(S=>S.selectedComponent),g=v.useRef(null),y=Ye(S=>S.viewMode),{data:b,isLoading:w}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname}),j=S=>{h(S)};return i.jsxs("div",{"data-mda":"mepb",className:`landingPage-version mx-auto my-0 ${e?"mt-0":"lg:mt-[120px] mt-[120px]"}`,ref:g,children:[r?.enabledSections?.heroSection&&i.jsx(ih,{style:r?.hero_style||"splitPhoto",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link||"#quickdocsContainder",images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:y,isSelected:p==="heroSection",onSelect:()=>j("heroSection")}),r?.enabledSections?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.quickServices&&r?.servicesData?.length>0&&i.jsx("section",{style:{backgroundColor:r?.quickServices?.backgroundColor||"var(--theme-section-bg, #f9f9f9)"},className:`mt-20 py-10 2884 ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="quickServices"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>j("quickServices"):null,children:i.jsx(M1,{data:r?.servicesData,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle})}),r?.enabledSections?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>j("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),r?.enabledSections?.services&&i.jsx("section",{className:"bg-[#e6edef] md:py-20 py-5 pb-10",children:i.jsx(L1,{style:r?.services_style,data:b?.data,name:n?.fullname})}),r?.enabledSections?.youtubePlayer&&i.jsx("section",{className:`${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="youtubePlayer"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>j("youtubePlayer"):null,children:i.jsxs(Ae,{children:[i.jsx(Ps,{customClass:"sm:mb-[80px] mb-[40px]"}),i.jsx(P1,{id:r?.youtubePlayer?.id,viewMode:y})]})}),r?.enabledSections?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:j}),r?.enabledSections?.newsletter&&i.jsx(Ae,{children:i.jsx(O1,{})})]})},qWe=({isEdit:e})=>{const{page:t}=Pe(),n=Te(s=>s.mdaData),r=Kf(n?.colorTheme);v.useEffect(()=>{const s=document.querySelector(".footer"),o=document.querySelector("#header");return s&&(s.style.display="none"),o&&(o.style.display="none"),()=>{s&&(s.style.display=""),o&&(o.style.display="")}},[]);const a=()=>{switch(t){case"":return i.jsx(xF,{});case"about":return i.jsx(MWe,{});case"news":return i.jsx(eh,{topic:"Health Services"});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(TWe,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(xF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(RWe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]}):i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(BWe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]})};function FWe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function zWe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const HWe=()=>{const e=Te(t=>
2884t.mdaData);return i.jsxs("div",{className:"about-mda",children:[i.jsx("div",{className:"navigateMenu",children:i.jsx(Ae,{children:i.jsxs("div",{className:"spy__links",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"about-sections index-top ",id:"history",children:i.jsx("div",{className:"history",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"contentArea",children:i.jsx("h2",{children:e?.aboutSubtitle||"Comprehensive Insight into the Ministryâs Vision, Administrative Structure, Principal Officers, and Operational Responsibilities"})})})})}),i.jsx("section",{className:"about-sections",id:"mission",children:i.jsx(Ae,{children:i.jsx("div",{className:"mission",children:i.jsxs("div",{className:"card-set",children:[i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Vision"}),i.jsx("p",{children:e?.vision})]})}),i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Mission"}),i.jsx("p",{children:e?.mission})]})}),i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Our Goal"}),i.jsx("p",{children:e?.goal})]})})]})})})}),i.jsx("section",{className:"about-sections",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading flex",children:[i.jsx("h1",{children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 divider-about"}),i.jsx(Zl,{html:e?.responsibilities})]})}),i.jsx("section",{className:"about-sections",id:"agency",children:i.jsx("div",{className:"agency",children:i.jsx(FWe,{res:e})})}),i.jsx("section",{className:"about-sections",id:"people",children:i.jsx("div",{className:"people",children:i.jsx(zWe,{res:e})})})]})]})},I1="/assets/lasg__logo-9UVgyhz4.png",UWe=({customClass:e,fullname:t})=>{const{page:n}=Pe(),r=Te(a=>a.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:I1,alt:"Lagos State Ministry of Health"})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("div",{className:n==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),r?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("div",{className:n==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"})]}),i.jsxs("div",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",children:["Back to LASG",i.jsx(Oe,{})]})]})},VWe=({customClass:e,fullname:t})=>{const{page:n}=Pe(),[r,a]=v.useState(!1),s=Te(o=>o.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${r?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-10 h-10 flex-shrink-0 sm:w-12 sm:h-12",children:i.jsx("img",{src:I1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>a(!r),children:r?i.jsx(et,{}):i.jsx(Ni,{})})]}),r&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("div",{className:n==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),s?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("div",{className:n==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("div",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},GWe=({fullname:e})=>{const t=nt(u=>
2884u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||"classic")==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-4 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-4",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(UWe,{customClass:"h-[80px]",fullname:e}):i.jsx(VWe,{customClass:"h-[80px]",fullname:e})})})]})},WWe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),s=pt(),o=n?.type==="service",l=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||I1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},YWe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||I1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#2e7d32] font-bold":"!text-[#2d2d2d]",href:`/${r}/contact`,children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},KWe=({fullname:e})=>{const n=Du()>=1e3,r=Te(s=>s.mdaData);return(r?.landingPage?.navbarStyle||"classic")==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(WWe,{customClass:"h-[80px]",fullname:e,mdaData:r}):i.jsx(YWe,{customClass:"h-[80px]",fullname:e,mdaData:r})})})]})},bF=({isEdit:e})=>{const t=nt(k=>
2884k.mdaEditData),n=Te(k=>k.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(k=>{k?.data?a(k.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(k=>k.setSelectedComponent),p=Ye(k=>k.selectedComponent),g=v.useRef(null),y=Ye(k=>k.viewMode),{data:b,isLoading:w}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname}),j=n?.type==="service",S=k=>{h(k)};return i.jsxs("div",{"data-mda":"mist",className:`landingPage-version mx-auto my-0 ${e?"mt-0":j?"lg:mt-[120px] mt-[80px]":"lg:mt-[120px] mt-[5px]"}`,ref:g,children:[r?.enabledSections?.heroSection&&i.jsx(ih,{style:r?.hero_style||"splitPhoto",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link,images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:y,isSelected:p==="heroSection",onSelect:()=>S("heroSection")}),r?.enabledSections?.quickServices&&r?.servicesData?.length>0&&i.jsx("section",{style:{backgroundColor:r?.quickServices?.backgroundColor||"var(--theme-section-bg, #e6edef)"},className:`py-10 2885 ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="quickServices"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>S("quickServices"):null,children:i.jsx(M1,{data:r?.servicesData,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle})}),r?.enabledSections?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>S("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),r?.enabledSections?.services&&i.jsx("section",{className:"bg-[#e6edef] md:py-20 py-16 pb-10",children:i.jsx(L1,{style:r?.services_style,data:b?.data,name:n?.fullname})}),r?.enabledSections?.youtubePlayer&&i.jsx("section",{className:`${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="youtubePlayer"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>S("youtubePlayer"):null,children:i.jsxs(Ae,{children:[i.jsx(Ps,{customClass:"sm:mb-[80px] mb-[40px]"}),i.jsx(P1,{id:r?.youtubePlayer?.id,viewMode:y})]})}),r?.enabledSections?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:S}),r?.enabledSections?.newsletter&&i.jsx(Ae,{children:i.jsx(O1,{})})]})},XWe=({isEdit:e})=>{const{page:t}=Pe(),n=Te(s=>s.mdaData),r=Kf(n?.colorTheme);v.useEffect(()=>{const s=document.querySelector(".footer"),o=document.querySelector("#header");return s&&(s.style.display="none"),o&&(o.style.display="none"),()=>{s&&(s.style.display=""),o&&(o.style.display="")}},[]);const a=()=>{switch(t){case"":return i.jsx(bF,{});case"about":return i.jsx(HWe,{});case"news":return i.jsx(eh,{topic:"Health Services"});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(Pg,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(bF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(GWe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]}):i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(KWe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]})};function ZWe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi mof-d
2885ata-agency",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function QWe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const JWe=()=>{const e=Te(t=>t.mdaData);return i.jsxs("div",{className:"about-mda mof-data pb-40",children:[i.jsx("div",{className:"navigateMenu",children:i.jsx(Ae,{children:i.jsxs("div",{className:"spy__links",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"about-sections index-top",id:"history",children:i.jsx("div",{className:"history",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"contentArea",children:i.jsx("h2",{children:e?.aboutSubtitle||"Comprehensive Insight into the Ministryâs Vision, Administrative Structure, Principal Officers, and Operational Responsibilities"})})})})}),i.jsx("section",{className:"about-sections",id:"mission",children:i.jsx(Ae,{children:i.jsx("div",{className:"mission",children:i.jsxs("div",{className:"card-set",children:[i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Vision"}),i.jsx("p",{children:e?.vision})]})}),i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Mission"}),i.jsx("p",{children:e?.mission})]})}),e?.goal&&i.jsx("div",{className:"card-item",children:i.jsxs("div",{className:"card-content",children:[i.jsx("div",{className:"h2",children:"Goal"}),i.jsx("p",{children:e?.goal})]})})]})})})}),i.jsx("section",{className:"about-sections",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading flex",children:[i.jsx("h1",{children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 divider-about opacity-30"}),i.jsx(Zl,{html:e?.responsibilities})]})}),i.jsx("section",{className:"about-sections",id:"agency",children:i.jsx("div",{className:"agency",children:i.jsx(ZWe,{res:e})})}),i.jsx("section",{className:"about-sections",id:"people",children:i.jsx("div",{className:"people",children:i.jsx(QWe,{res:e})})})]})]})},$1="/assets/lasg__logo-9UVgyhz4.png",eYe=({customClass:e,fullname:t})=>{const{page:n}=Pe(),r=Te(a=>a.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:$1,alt:"Lagos State Ministry of Health"})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase text-white",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#fbbf24] font-bold":"!text-white",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#fbbf24] font-bold":"!text-white",children:"About"}),i.jsx("div",{className:n==="news"?"!text-[#fbbf24] font-bold":"!text-white",children:"Newsroom"}),r?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#fbbf24] font-bold":"!text-white",children:"Resources"}),i.jsx("div",{className:n==="contact"?"!text-[#fbbf24] font-bold":"!text-white",children:"Contact"})]}),i.jsxs("div",{className:"!text-[#ffb700] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",children:["Back to LASG",i.jsx(Oe,{})]})]})},tYe=({customClass:e,fullname:t})=>{const{page:n}
2885=Pe(),[r,a]=v.useState(!1),s=Te(o=>o.mdaData);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${r?"bg-green-700 border-b-[1px] border-[#eeeeee6b]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-10 h-10 flex-shrink-0 sm:w-12 sm:h-12",children:i.jsx("img",{src:$1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>a(!r),children:r?i.jsx(et,{}):i.jsx(Ni,{})})]}),r&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-green-700 left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("div",{className:n===""||n===void 0?"!text-[#fbbf24] font-bold":"!text-white",children:"Home"}),i.jsx("div",{className:n==="about"?"!text-[#fbbf24] font-bold":"!text-white",children:"About"}),i.jsx("div",{className:n==="news"?"!text-[#fbbf24] font-bold":"!text-white",children:"Newsroom"}),s?.resources?.length>0&&i.jsx("div",{className:n==="resources"?"!text-[#fbbf24] font-bold":"!text-white",children:"Resources"}),i.jsx("div",{className:n==="contact"?"!text-[#fbbf24] font-bold":"!text-white",children:"Contact"}),i.jsxs("div",{className:"!text-[#ffb700] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},nYe=({fullname:e})=>{const t=nt(u=>u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||"classic")==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-4 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-4",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"bg-green-700 text-white!",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(eYe,{customClass:"h-[80px]",fullname:e}):i.jsx(tYe,{customClass:"h-[80px]",fullname:e})})})]})},rYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),s=pt(),o=n?.type==="service",l=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||$1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] w-[250px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>s(`/${r}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#ffb700] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},iYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-green-700 border-b-[1px] border-[#eeeeee6b]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||$1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-green-700 left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#fbbf24] font-bold":"!text-white",onClick:()=>l(`/${r}/contact`),children:"Contact"}),i.jsxs("a",{className:"!text-[#ffb700] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},aYe=({fullname:e,isEdit:t})=>{const n=Du(),r=Ye(h=>h.viewMode),a=Ye(h=>h.selectedComponent),s=Ye(h=>h.setSelectedComponent),o=Te(h=>h.mdaData),l=o?.landingPage?.navbarStyle||"classic",d=h=>{s(h)},u=n>=1e3;return l==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[u&&i.jsx(or,{data:o?.landingPage?.infoBar,fullname:o?.fullname,isEdit:t,viewMode:r,selectedComponent:a,onComponentClick:d}),i.jsx("div",{className:"bg-green-700 text-white!",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:u?i.jsx(rYe,{customClass:"h-[80px]",fullname:e,mdaData:o}):i.jsx(iYe,{customClass:"h-[80px]",fullname:e,mdaData:o})})})]})},wF=({isEdit:e})=>{const t=nt(k=>
2885k.mdaEditData),n=Te(k=>k.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(k=>{k?.data?a(k.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(k=>k.selectedComponent),p=v.useRef(null),g=Ye(k=>k.viewMode),y=Ye(k=>k.setSelectedComponent),{data:b,isLoading:w}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname}),j=k=>{y(k)},S=n?.type==="service";return i.jsxs("div",{"data-mda":"mof",className:`landingPage-version mx-auto my-0 ${e?"mt-0":S?"lg:mt-[110px] mt-[80px]":"mt-0]"}`,ref:p,children:[r?.enabledSections?.heroSection&&i.jsx(ih,{style:r?.hero_style||"fullBleed",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link,images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:g,isSelected:h==="heroSection",onSelect:()=>j("heroSection")}),r?.enabledSections?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.quickServices&&r?.servicesData?.length>0&&i.jsx("section",{style:{backgroundColor:r?.quickServices?.backgroundColor||"var(--theme-section-bg, #e6edef)"},className:`py-10 ${e&&g==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${h==="quickServices"?"!border-green-500 active_component":""}`,onClick:e&&g==="edit"?()=>j("quickServices"):null,children:i.jsx(M1,{data:r?.servicesData,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle})}),r?.enabledSections?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&g==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${h==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&g==="edit"?()=>j("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),r?.enabledSections?.services&&i.jsx("section",{className:"bg-[#e6edef] md:py-20 py-16 pb-10",children:i.jsx(L1,{style:r?.services_style,data:b?.data,name:n?.fullname})}),r?.enabledSections?.youtubePlayer&&i.jsx("section",{className:`${e&&g==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${h==="youtubePlayer"?"!border-green-500 active_component":""}`,onClick:e&&g==="edit"?()=>j("youtubePlayer"):null,children:i.jsxs(Ae,{children:[i.jsx(Ps,{customClass:"sm:mb-[80px] mb-[40px]"}),i.jsx(P1,{id:r?.youtubePlayer?.id,viewMode:g})]})}),r?.enabledSections?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:g,selectedComponent:h,onComponentClick:j}),r?.enabledSections?.newsletter&&i.jsx(Ae,{children:i.jsx(O1,{})})]})},sYe=({isEdit:e})=>{const{page:t}=Pe(),n=Te(s=>s.mdaData),r=Kf(n?.colorTheme);v.useEffect(()=>{const s=document.querySelector(".footer"),o=document.querySelector("#header");return s&&(s.style.display="none"),o&&(o.style.display="none"),()=>{s&&(s.style.display=""),o&&(o.style.display="")}},[]);const a=()=>{switch(t){case"":return i.jsx(wF,{isEdit:e||!1});case"about":return i.jsx(JWe,{});case"news":return i.jsx(eh,{topic:"Health Services"});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(Pg,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(wF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(nYe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]}):i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(aYe,{fullname:n?.fullname,isEdit:e||!1}),a(),i.jsx(Na,{data:n})]})};function oYe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function lYe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const Ep="uppercase text-[11px] tracking-[2px] font-medium border-r border-[#bdbdbd] pr-5 !text-[#131313] last:border-none last:pr-0 max-[1000px]:min-w-max max-[1000px]:px-5 max-[1000px]:py-[10px] max-[1000px]:rounded-full max-[1000px]:bg-[#eee] max-[1000px]:border max-[1000px]:border-[#e7e7e7] [&.active-scroll-spy]:!text-[var(--theme-accent,#108a00)]",cYe=()=>{const e=Te(t=>
2885t.mdaData);return i.jsxs("div",{className:"mt-[115px] max-[1000px]:mt-[190px] max-[700px]:mt-[185px]",children:[i.jsx("div",{className:"w-full fixed bg-white top-[114px] py-5 border-b border-[#eee] z-40 max-[1000px]:top-[90px] max-[1000px]:py-[10px] max-[1000px]:border-none max-[1000px]:bg-transparent",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",className:Ep,children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",className:Ep,children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",className:Ep,children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",className:Ep,children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",className:Ep,children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"mt-[170px] max-[1000px]:mt-0",id:"history",children:i.jsx("div",{className:"relative overflow-hidden",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"py-[100px] flex flex-col gap-[50px] max-[1000px]:gap-5 max-[1000px]:py-0",children:i.jsx("h2",{className:"text-[48px] w-[900px] leading-[130%] text-center font-semibold underline tracking-[-0.5px] max-[1000px]:text-[32px] max-[1000px]:w-[600px] max-[1000px]:mb-[50px] max-[700px]:text-[28px] max-[700px]:w-full max-[700px]:mb-10",children:"Building a safe, efficient, and integrated transport system that moves every Lagosian forward"})})})})}),i.jsx("section",{id:"mission",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden max-[700px]:flex-col max-[700px]:justify-center max-[700px]:items-center",children:[i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Vision"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.vision})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Mission"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.mission})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Our Goal"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.goal})]})})]})})}),i.jsx("section",{className:"!bg-[#e6edef] py-20 my-20 max-[1000px]:pt-[50px] max-[1000px]:pb-0 max-[1000px]:my-[30px]",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"flex items-center justify-between max-[1000px]:!w-4/5 max-[1000px]:flex-col max-[1000px]:items-center max-[1000px]:justify-center max-[1000px]:mx-auto max-[700px]:!w-full",children:[i.jsx("h1",{className:"!text-[#131313] text-[40px] leading-[130%] font-semibold w-[800px] max-[1000px]:text-[32px] max-[1000px]:w-full max-[1000px]:text-center max-[1000px]:mb-5 max-[700px]:text-[26px] max-[700px]:w-full",children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{className:"!text-[#555555] w-[300px] leading-[180%] max-[1000px]:w-4/5 max-[1000px]:text-center max-[700px]:w-full",children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 max-[1000px]:my-[30px]"}),i.jsx(Zl,{html:e?.responsibilities,className:"flex flex-col gap-5 [&>p:first-child]:mb-[10px] [&>p]:leading-[190%] !text-[#131313]"})]})}),e?.agencies?.length>0&&i.jsx("section",{className:"max-[1000px]:mt-[50px]",id:"agency",children:i.jsx(oYe,{res:e})}),e?.people?.length>0&&i.jsx("section",{className:"mt-[50px]",id:"people",children:i.jsx(lYe,{res:e})})]})]})},B1="/assets/lasg__logo-9UVgyhz4.png",uYe=({customClass:e,fullname:t})=>{const{page:n}=Pe();return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:B1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase",children:[i.jsx("a",{className:n===""||n===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:n==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:n==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:n==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("a",{className:n==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},dYe=({customClass:e,fullname:t})=>{const{page:n}=Pe(),[r,a]=v.useState(!1);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${r?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:B1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>a(!r),children:r?i.jsx(et,{}):i.jsx(Ni,{})})]}),r&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("a",{className:n===""||n===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:n==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:n==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:n==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Resources"}),i.jsx("a",{className:n==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},fYe="tabStrip",hYe=({fullname:e})=>{const t=nt(u=>
2885u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||fYe)==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-4 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-4",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(uYe,{customClass:"h-[80px]",fullname:e}):i.jsx(dYe,{customClass:"h-[80px]",fullname:e})})})]})},pYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),s=pt(),o=n?.type==="service",l=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||B1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},mYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||B1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/gallery`),children:"Gallery"}),i.jsx("div",{className:a==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/resources`),children:"Resources"}),i.jsx("div",{className:a==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/contact`),children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},gYe="tabStrip",vYe=({fullname:e})=>{const n=Du()>=1e3,r=Te(s=>s.mdaData);return(r?.landingPage?.navbarStyle||gYe)==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(pYe,{customClass:"h-[80px]",fullname:e,mdaData:r}):i.jsx(mYe,{customClass:"h-[80px]",fullname:e,mdaData:r})})})]})},yYe={enabledSections:{quickServices:!0,commissionersZone:!0,youtubePlayer:!0,newsletter:!0,heroSection:!0,services:!0,coreInformation:!1,statistics:!1,quickDocuments:!1,resourceCategories:!1,supportLinks:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},xYe={enabledSections:{quickServices:!0,commissionersZone:!0,youtubePlayer:!0,newsletter:!0,heroSection:!0,coreInformation:!0,services:!0,statistics:!1,quickDocuments:!1,resourceCategories:!1,supportLinks:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},bYe={enabledSections:{newsletter:!0,heroSection:!0,statistics:!0,quickDocuments:!0,services:!0,resourceCategories:!0,quickServices:!0,commissionersZone:!1,youtubePlayer:!1,coreInformation:!1,supportLinks:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},wYe={enabledSections:{newsletter:!0,heroSection:!0,services:!0,supportLinks:!0,youtubePlayer:!0,quickServices:!1,commissionersZone:!1,coreInformation:!1,statistics:!1,quickDocuments:!1,resourceCategories:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},jYe={enabledSections:{heroSection:!0,documentShowcase:!0,statistics:!1,quickDocuments:!1,resourceCategories:!1,services:!1,newsletter:!0,quickServices:!1,commissionersZone:!1,coreInformation:!1,youtubePlayer:!1,supportLinks:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",documentShowcase:{},commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},SYe={enabledSections:{heroSection:!0,services:!0,quickServices:!0,supportLinks:!0,newsletter:!0,youtubePlayer:!0,documentShowcase:!1,statistics:!1,quickDocuments:!1,resourceCategories:!1,commissionersZone:!1,coreInformation:!1},hero_text:"Enter your page headline content here",hero_subtitle:"Enter a compelling subtitle that describes your services and mission",action_button_text:"Get Started",action_button_link:"#",main_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",secondary_photo:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773489943/lasg_default_photo_drckeb.jpg",commissionersZone:{commissionerImage:"",welcomeTitle:"",welcomeMessage:"",commissionerName:"",commissionerTitle:""},youtubePlayer:{id:"TSccsFXwjtI"}},nE={health:yYe,mist:xYe,mepb:bYe,mof:wYe,sto:jYe,mot:SYe},jF=({isEdit:e})=>{const t=nt(k=>
2885k.mdaEditData),n=Te(k=>k.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(k=>{k?.data?a(k.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(k=>k.setSelectedComponent),p=Ye(k=>k.selectedComponent),g=v.useRef(null),y=Ye(k=>k.viewMode),{data:b}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname});Ke({queryKey:["icon",n?.fullname],queryFn:()=>ng(Cn(n?.fullname)),enabled:!!n?.fullname});const w=k=>{h(k)},j=n?.type==="service",S=r?.enabledSections??nE.mot.enabledSections;return i.jsxs("div",{className:`landingPage-version mx-auto my-0 ${e?"mt-0":j?"lg:mt-[120px] mt-[80px]":"lg:mt-[115px] mt-[85px]"}`,ref:g,"data-mda":"mot",children:[S?.heroSection&&i.jsx(ih,{style:r?.hero_style||"splitCircleFloating",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link,images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:y,isSelected:p==="heroSection",onSelect:()=>w("heroSection")}),S?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.quickServices&&r?.servicesData?.length>0&&i.jsx(eE,{data:r?.servicesData,backgroundColor:r?.quickServices?.backgroundColor,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.services&&i.jsx(Q4,{data:b?.data,mdaName:n?.fullname,style:r?.services_style||"style2",isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>w("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),S?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.youtubePlayer&&i.jsx(tE,{data:r?.youtubePlayer,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.newsletter&&i.jsx(J4,{isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w})]})},CYe=({isEdit:e})=>{const{page:t}=Pe(),n=Te(s=>s.mdaData),r=Kf(n?.colorTheme);v.useEffect(()=>{const s=document.querySelector(".footer"),o=document.querySelector("#header");return s&&(s.style.display="none"),o&&(o.style.display="none"),()=>{s&&(s.style.display=""),o&&(o.style.display="")}},[]);const a=()=>{switch(t){case"":return i.jsx(jF,{isEdit:e||!1});case"about":return i.jsx(cYe,{});case"news":return i.jsx(eh,{topic:"Transportation"});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(Pg,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(jF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(hYe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]}):i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(vYe,{fullname:n?.fullname,isEdit:e||!1}),a(),i.jsx(Na,{data:n})]})};
2885function kYe({res:e}){const[t,n]=v.useState({});return v.useEffect(()=>{const r={};e?.agencies?.forEach(a=>{r[a.category]||(r[a.category]={name:a.category,data:[]}),r[a.category].data.push(a)}),n(r)},[e]),i.jsx("div",{className:"flex justify-center w-full",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Agencies, Directorates, and Units: Exploring Structure, Roles, and Responsibilities"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Understanding Organizational Divisions and Their Roles in Effective Operations and Governance"})]}),i.jsx("div",{className:"agency-zone",children:Object?.entries(t)?.map((r,a)=>i.jsx("section",{id:r[0]==="department"?"directorates":r[0],className:"multi",children:i.jsx("div",{className:"mda__card__ui flex",children:r[1].data.map((s,o)=>i.jsxs("div",{className:"mda__card",children:[i.jsx("div",{className:"iconHolder",children:i.jsx("div",{className:"card__photo",children:i.jsx("img",{src:nh})})}),i.jsxs("div",{className:"card__content",children:[i.jsx("p",{children:s.name}),i.jsxs("span",{children:[" ",i.jsx(wf,{})," ",r[0]," "]})]})]},o))})},a))})]})})}function NYe({res:e}){const[t,n]=v.useState([]);return v.useEffect(()=>{n(e?.people)},[e]),i.jsx("div",{className:"about__sections",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"about-heading full-heading flex flex-col text-center gap-[20px] full",children:[i.jsx("h1",{className:"full !text-[#131313]",children:"Meet the Team: Passionate People Driving Success and Innovation Forward"}),i.jsx("span",{className:"full-span !text-[#555555]",children:"Bringing Innovation, Dedication, and Excellence Together for Lasting Impact and Success"})]}),i.jsx("div",{className:"gallery__mda gallx",children:i.jsx("section",{children:t?.length?t.map((r,a)=>i.jsxs("a",{className:"pic",children:[i.jsx("div",{className:"pic__holder",children:i.jsx("img",{src:r.photo,alt:`${r.name}_${r.role}`})}),i.jsxs("div",{className:"name__card",children:[i.jsxs("span",{children:[" ",r.role," "]}),i.jsxs("p",{children:[" ",vn(r.name)," "]})]})]},a)):null})})]})})}const _p="uppercase text-[11px] tracking-[2px] font-medium border-r border-[#bdbdbd] pr-5 !text-[#131313] last:border-none last:pr-0 max-[1000px]:min-w-max max-[1000px]:px-5 max-[1000px]:py-[10px] max-[1000px]:rounded-full max-[1000px]:bg-[#eee] max-[1000px]:border max-[1000px]:border-[#e7e7e7] [&.active-scroll-spy]:!text-[var(--theme-accent,#108a00)]",AYe=()=>{const e=Te(t=>t.mdaData);return i.jsxs("div",{className:"mt-[115px] max-[1000px]:mt-[190px] max-[700px]:mt-[185px]",children:[i.jsx("div",{className:"w-full fixed bg-white top-[114px] py-5 border-b border-[#eee] z-40 max-[1000px]:top-[90px] max-[1000px]:py-[10px] max-[1000px]:border-none max-[1000px]:bg-transparent",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden",children:[i.jsxs("a",{href:"#history","data-to-scrollspy-id":"history",className:_p,children:[" ","History"," "]}),i.jsxs("a",{href:"#mission","data-to-scrollspy-id":"mission",className:_p,children:[" ","Mission & Vision"," "]}),i.jsxs("a",{href:"#responsibility","data-to-scrollspy-id":"responsibility",className:_p,children:[" ","Responsibilities"," "]}),i.jsxs("a",{href:"#agency","data-to-scrollspy-id":"agency",className:_p,children:[" ","Agencies, Departments and Units"," "]}),i.jsxs("a",{href:"#people","data-to-scrollspy-id":"people",className:_p,children:[" ","Principal officers"," "]})]})})}),i.jsxs(th,{children:[i.jsx("section",{className:"mt-[170px] max-[1000px]:mt-0",id:"history",children:i.jsx("div",{className:"relative overflow-hidden",children:i.jsx(Ae,{customClass:"flex items-center justify-center",children:i.jsx("div",{className:"py-[100px] flex flex-col gap-[50px] max-[1000px]:gap-5 max-[1000px]:py-0",children:i.jsx("h2",{className:"text-[48px] w-[900px] leading-[130%] text-center font-semibold underline tracking-[-0.5px] max-[1000px]:text-[32px] max-[1000px]:w-[600px] max-[1000px]:mb-[50px] max-[700px]:text-[28px] max-[700px]:w-full max-[700px]:mb-10",children:"Strengthening Lagos' fiscal future through disciplined, transparent, and accountable public finance management"})})})})}),i.jsx("section",{id:"mission",children:i.jsx(Ae,{children:i.jsxs("div",{className:"flex gap-5 justify-center max-[1000px]:gap-[10px] max-[1000px]:justify-start max-[1000px]:overflow-hidden max-[1000px]:overflow-x-auto max-[1000px]:[scrollbar-width:none] max-[1000px]:[-ms-overflow-style:none] max-[1000px]:[&::-webkit-scrollbar]:hidden max-[700px]:flex-col max-[700px]:justify-center max-[700px]:items-center",children:[i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Vision"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.vision})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Mission"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.mission})]})}),i.jsx("div",{className:"w-[calc(53%-50px)] overflow-hidden rounded-[10px] bg-[var(--theme-accent,#108a00)] relative max-[1000px]:min-w-[400px] max-[700px]:min-w-full",children:i.jsxs("div",{className:"p-[30px] rounded-[5px] max-[1000px]:p-[25px]",children:[i.jsx("div",{className:"text-[16px] font-semibold leading-[125%] mb-5 border-b border-[#f1f1f149] pb-5 text-[var(--theme-accent-text,#ffffff)]",children:"Our Goal"}),i.jsx("p",{className:"text-[16px] w-4/5 text-[var(--theme-accent-text,#ffffff)] max-[1000px]:w-full",children:e?.goal})]})})]})})}),i.jsx("section",{className:"!bg-[#e6edef] py-20 my-20 max-[1000px]:pt-[50px] max-[1000px]:pb-0 max-[1000px]:my-[30px]",id:"responsibility",children:i.jsxs(Ae,{children:[i.jsxs("div",{className:"flex items-center justify-between max-[1000px]:!w-4/5 max-[1000px]:flex-col max-[1000px]:items-center max-[1000px]:justify-center max-[1000px]:mx-auto max-[700px]:!w-full",children:[i.jsx("h1",{className:"!text-[#131313] text-[40px] leading-[130%] font-semibold w-[800px] max-[1000px]:text-[32px] max-[1000px]:w-full max-[1000px]:text-center max-[1000px]:mb-5 max-[700px]:text-[26px] max-[700px]:w-full",children:"Roles and Responsibilities: Understanding Core Functions, Duties, and Key Roles"}),i.jsx("span",{className:"!text-[#555555] w-[300px] leading-[180%] max-[1000px]:w-4/5 max-[1000px]:text-center max-[700px]:w-full",children:"A clear guide to the core functions, duties, and key roles that drive effective operations and accountability."})]}),i.jsx(Ps,{customClass:"my-20 max-[1000px]:my-[30px]"}),i.jsx(Zl,{html:e?.responsibilities,className:"flex flex-col gap-5 [&>p:first-child]:mb-[10px] [&>p]:leading-[190%] !text-[#131313]"})]})}),e?.agencies?.length>0&&i.jsx("section",{className:"max-[1000px]:mt-[50px]",id:"agency",children:i.jsx(kYe,{res:e})}),e?.people?.length>0&&i.jsx("section",{className:"mt-[50px]",id:"people",children:i.jsx(NYe,{res:e})})]})]})},q1="/assets/lasg__logo-9UVgyhz4.png",EYe=({customClass:e,fullname:t})=>{const{page:n}=Pe();return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:q1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:"flex items-center gap-7 text-[11px] tracking-[2px] uppercase",children:[i.jsx("a",{className:n===""||n===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:n==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:n==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:n==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Financial Statements"}),i.jsx("a",{className:n==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},_Ye=({customClass:e,fullname:t})=>{const{page:n}=Pe(),[r,a]=v.useState(!1);return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${r?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:q1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>a(!r),children:r?i.jsx(et,{}):i.jsx(Ni,{})})]}),r&&i.jsxs("div",{className:"flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto",children:[i.jsx("a",{className:n===""||n===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Home"}),i.jsx("a",{className:n==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"About"}),i.jsx("a",{className:n==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Newsroom"}),i.jsx("a",{className:n==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Financial Statements"}),i.jsx("a",{className:n==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},TYe="classic",LYe=({fullname:e})=>{const t=nt(u=>
2885u.mdaEditData),n=Te(u=>u.mdaData),a=Ye(u=>u.device)==="desktop",s=Ye(u=>u.viewMode),o=Ye(u=>u.selectedComponent),l=Ye(u=>u.setSelectedComponent);return(t?.navbarStyle||TYe)==="tabStrip"?i.jsxs("header",{className:"sticky top-[0px] w-full z-4 bg-[#F5F9FA] border-b border-[#e7e7e7]",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(Ou,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0}):i.jsx(Mu,{customClass:"h-[90px]",fullname:e,mdaData:n,isEdit:!0})})]}):i.jsxs("header",{className:"sticky top-[0px] w-full z-4",children:[a&&i.jsx(or,{data:t?.infoBar,fullname:e,isEdit:!0,viewMode:s,selectedComponent:o,onComponentClick:l}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:a?i.jsx(EYe,{customClass:"h-[80px]",fullname:e}):i.jsx(_Ye,{customClass:"h-[80px]",fullname:e})})})]})},OYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),s=pt(),o=n?.type==="service",l=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:l||q1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsxs("div",{className:`${o?"hidden!":""} flex items-center gap-7 text-[11px] tracking-[2px] uppercase`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/news?page=1`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/gallery`),children:"Gallery"}),n?.resources?.length>0&&i.jsx("div",{className:a==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/resources`),children:"Financial Statements"}),i.jsx("div",{className:a==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>s(`/${r}/contact`),children:"Contact"})]}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center text-[11px] tracking-[2px] uppercase",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})},MYe=({customClass:e,fullname:t,mdaData:n})=>{const{mda:r,page:a}=Pe(),[s,o]=v.useState(!1),l=pt(),d=n?.type==="service",u=n?.logo;return i.jsxs("div",{className:`w-full p-2 flex items-center justify-between ${e}`,children:[i.jsxs("div",{className:`flex justify-between items-center gap-4 relative z-50 h-[80px] w-full ${s?"bg-white border-b-[1px] border-[#eee]":""}`,children:[i.jsxs("div",{className:"brandZone flex items-center gap-4",children:[i.jsx("div",{className:"logo overflow-hidden w-12 h-12",children:i.jsx("img",{src:u||q1,alt:`Lagos State ${t}`})}),i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] !text-[#131313]",children:t})]}),i.jsx("button",{onClick:()=>o(!s),children:s?i.jsx(et,{}):i.jsx(Ni,{})})]}),s&&i.jsxs("div",{className:`${d?"hidden!":""} flex flex-col gap-10 text-[13px] tracking-[4px] uppercase fixed top-[0px] bg-[#fff] left-0 w-full z-10 h-[100vh] px-[10%] py-[120px] border-t-[1px] border-[#eee] overflow-y-auto`,children:[i.jsx("div",{className:a===""||a===void 0?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}`),children:"Home"}),i.jsx("div",{className:a==="about"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/about`),children:"About"}),i.jsx("div",{className:a==="news"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/news`),children:"Newsroom"}),i.jsx("div",{className:a==="events"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/events`),children:"Events"}),i.jsx("div",{className:a==="gallery"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/gallery`),children:"Gallery"}),i.jsx("div",{className:a==="resources"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/resources`),children:"Financial Statements"}),i.jsx("div",{className:a==="contact"?"!text-[#108a00] font-bold":"!text-[#2d2d2d]",onClick:()=>l(`/${r}/contact`),children:"Contact"}),i.jsxs("a",{className:"!text-[#008435] font-bold flex gap-1.5 items-center",href:"/",children:["Back to LASG",i.jsx(Oe,{})]})]})]})},DYe="classic",PYe=({fullname:e})=>{const n=Du()>=1e3,r=Te(s=>s.mdaData);return(r?.landingPage?.navbarStyle||DYe)==="tabStrip"?i.jsx(rh,{fullname:e}):i.jsxs("header",{className:"fixed top-0 w-full z-50",children:[n&&i.jsx(or,{data:r?.landingPage?.infoBar,fullname:r?.fullname}),i.jsx("div",{className:"glass-card",children:i.jsx(Ae,{style:{margin:"0 auto",display:"flex",alignItems:"center"},children:n?i.jsx(OYe,{customClass:"h-[80px]",fullname:e,mdaData:r}):i.jsx(MYe,{customClass:"h-[80px]",fullname:e,mdaData:r})})})]})},SF=({isEdit:e})=>{const t=nt(k=>
2885k.mdaEditData),n=Te(k=>k.mdaData),[r,a]=v.useState(n?.landingPage),s=v.useRef(!1),{mda:o,page:l,id:d}=Pe(),u=async()=>{s.current||(s.current=!0,await Lu(d).then(k=>{k?.data?a(k.data):(ie.error("Draft could not be retrieved or has been deleted!"),setTimeout(()=>{window.location.href=`/${o}`},2e3))}).finally(()=>{s.current=!1}))};v.useEffect(()=>{l==="draft"&&u()},[]),v.useEffect(()=>{a(e?t:n?.landingPage)},[n,t,e]);const h=Ye(k=>k.setSelectedComponent),p=Ye(k=>k.selectedComponent),g=v.useRef(null),y=Ye(k=>k.viewMode),{data:b}=Ke({queryKey:["services",n?.fullname],queryFn:()=>Qa(Cn(n?.fullname)),enabled:!!n?.fullname});Ke({queryKey:["icon",n?.fullname],queryFn:()=>ng(Cn(n?.fullname)),enabled:!!n?.fullname});const w=k=>{h(k)},j=n?.type==="service",S=r?.enabledSections??nE.sto.enabledSections;return i.jsxs("div",{className:`landingPage-version mx-auto my-0 ${e?"mt-0":j?"lg:mt-[120px] mt-[80px]":"lg:mt-[115px] mt-[85px]"}`,ref:g,"data-mda":"sto",children:[S?.heroSection&&i.jsx(ih,{style:r?.hero_style||"groundedSplit",title:r?.hero_text,subtitle:r?.hero_subtitle,buttonText:r?.action_button_text,buttonLink:r?.action_button_link,images:r?.hero_images,legacyImage:r?.main_photo,secondaryImage:r?.secondary_photo,slideshowEnabled:!!r?.hero_slideshow,bgType:r?.hero_bg_type,bgColor:r?.hero_bg_color,bgGradient:r?.hero_bg_gradient,isEdit:e,viewMode:y,isSelected:p==="heroSection",onSelect:()=>w("heroSection")}),i.jsx(Ae,{customClass:"h-[1px] w-full bg-gray-300/70 md:mt-20! lg:mt-0!",children:i.jsx("div",{})}),S?.documentShowcase&&i.jsx(oh,{data:r?.documentShowcase,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.statistics&&i.jsx(ch,{data:r?.statistics,style:r?.statistics_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.quickDocuments&&i.jsx(lh,{data:r?.quickDocuments,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.quickServices&&r?.servicesData?.length>0&&i.jsx(eE,{data:r?.servicesData,backgroundColor:r?.quickServices?.backgroundColor,style:r?.quickServices?.style,ctaTitle:r?.quickServices?.ctaTitle,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.services&&i.jsx(Q4,{data:b?.data,mdaName:n?.fullname,style:r?.services_style,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.commissionersZone&&i.jsx(ah,{data:r?.commissionersZone,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.coreInformation&&i.jsx(sh,{data:r?.coreInformation,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.resourceCategories&&i.jsx("section",{className:`mt-[80px] ${e&&y==="edit"?"border-[3px] border-transparent cursor-pointer hover:border-green-500":""} ${p==="resourceCategories"?"!border-green-500 active_component":""}`,onClick:e&&y==="edit"?()=>w("resourceCategories"):null,children:i.jsx(Pu,{data:r?.resourceCategories,isEdit:e,mda:o,type:"component"})}),S?.youtubePlayer&&i.jsx(tE,{data:r?.youtubePlayer,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.supportLinks&&i.jsx(uh,{data:r?.supportLinks,backgroundColor:r?.supportLinksSettings?.backgroundColor,isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w}),S?.newsletter&&i.jsx(J4,{isEdit:e,viewMode:y,selectedComponent:p,onComponentClick:w})]})},RYe=({isEdit:e})=>{const{page:t}=Pe(),n=Te(s=>s.mdaData),r=Kf(n?.colorTheme);v.useEffect(()=>{const s=document.querySelector(".footer"),o=document.querySelector("#header");return s&&(s.style.display="none"),o&&(o.style.display="none"),()=>{s&&(s.style.display=""),o&&(o.style.display="")}},[]);const a=()=>{switch(t){case"":return i.jsx(SF,{isEdit:e||!1});case"about":return i.jsx(AYe,{});case"news":return i.jsx(eh,{topic:"State Treasury Office"});case"events":return i.jsx(Zf,{});case"gallery":return i.jsx(Jf,{});case"resources":return i.jsx(Pg,{});case"contact":return i.jsx(Xf,{});case"forms":return i.jsx(Qf,{});default:return i.jsx(SF,{isEdit:e||!1})}};return e?i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(LYe,{fullname:n?.fullname}),a(),i.jsx(Na,{data:n})]}):i.jsxs("div",{className:"themeHolder",style:r,children:[i.jsx(PYe,{fullname:n?.fullname,isEdit:e||!1}),a(),i.jsx(Na,{data:n})]})},IYe="/assets/construction-B0GA1PJa.svg",gJ=()=>i.jsxs("div",{className:"flex items-center flex-col p-20 gap-20 justify-center h-[90vh]",children:[i.jsx("div",{className:"",children:i.jsx("img",{src:Su,alt:"LASG Logo",className:"w-[70px] h-[70px]"})}),i.jsx("div",{className:"",children:i.jsx("img",{src:IYe,alt:"",className:"w-[500px]"})}),i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-4xl font-bold w-[400px] mb-10",children:"We would be back online soon!"}),i.jsx("a",{href:"/",className:"px-6 py-3 bg-gray-800 text-white rounded-md",children:"Back to homepage"})]})]}),h5=({slug:e,theme:t,isEdit:n,data:r})=>{const{page:a}=Pe();if(!r)return i.jsx(mJ,{});if(r?.isOffline&&a!=="admin")return i.jsx(gJ,{});switch(t){case"health":return i.jsx(_We,{isEdit:n||!1});case"mepb":return i.jsx(qWe,{isEdit:n||!1});case"mist":return i.jsx(XWe,{isEdit:n||!1});case"mot":case"transport":return i.jsx(CYe,{isEdit:n||!1});case"sto":return i.jsx(RYe,{isEdit:n||!1});case"mof":return i.jsx(sYe,{isEdit:n||!1})}}
2885,CF={heroSection:{fields:{hero_text:{minWords:8,maxWords:12,description:"premium, mission-driven headline that is concise, authoritative, and aspirational. Structure: action verb + quality promise + service area + inclusive audience."},hero_subtitle:{minWords:20,maxWords:25,description:"supporting statement that expands on the headline, maintaining a professional and citizen-focused tone while emphasizing policy-grade content and inclusive service delivery."},action_button_text:{minWords:2,maxWords:4,description:"clear, action-oriented call-to-action that encourages citizen engagement and service utilization."}},instructions:"Generate premium, mission-driven content for the hero section of a government website. Focus on creating concise, authoritative, and aspirational messaging that reflects our commitment to excellent public service. Ensure all content is professional, citizen-focused, and policy-grade, with clear calls to action that drive citizen engagement and service utilization."},aboutSection:{fields:{heading:{minWords:3,maxWords:6,description:"section heading"},description:{minWords:30,maxWords:50,description:"detailed description"},key_points:{minWords:10,maxWords:15,description:"bullet points (3-5 items)"}},instructions:"Generate informative and engaging content for the about section."},commissionerZone:{fields:{welcomeTitle:{minWords:5,maxWords:10,description:"warm and official welcome title that reflects the commissioner's office and purpose"},welcomeMessage:{minWords:50,maxWords:100,description:"engaging welcome message from the commissioner, highlighting key priorities and vision"}},instructions:"Generate professional and engaging content for the commissioner's welcome section. The tone should be authoritative yet approachable, reflecting the commissioner's vision and priorities. Include key messages about service delivery, governance, and citizen engagement."}},kF={health:"professional, caring, and reassuring",finance:"precise, trustworthy, and clear",education:"informative, encouraging, and accessible",default:"professional, clear, and helpful"},$Ye=({onContentGenerated:e,context:t="heroSection",mdaType:n="default",vision:r="Delivering efficient, transparent, and people-centered services to all Lagos residents through innovation and technology."})=>{const[a,s]=v.useState(!1),[o,l]=v.useState(""),[d,u]=v.useState(!1),[h,p]=v.useState(["all"]),g=CF[t]||{},y=Object.keys(g.fields||{}),b=N=>{p(_=>{if(N!=="all"&&_.includes("all"))return[N];if(N==="all")return _.includes("all")?[]:["all",...y];if(_.includes(N)){const L=_.filter(E=>E!==N);return L.length>0?L:["all"]}else{const L=[..._,N];return L.length===y.length?["all"]:L}})},w=()=>h.includes("all")?null:h,j=async N=>{const _=CF[t]||{fields:{},instructions:"Generate appropriate content."},L=kF[n]||kF.default,T=(w()||Object.keys(_.fields)).filter($=>_.fields[$]).map($=>{const{minWords:O,maxWords:q,description:D}=_.fields[$];return`${$}: ${D} (${O}-${q} words)`}).join(` 2886 `),P=` 2887 You are a senior content strategist generating premium content for a ${n} government website. 2888 2889 ${_.instructions} 2890 2891 Vision (context only, do NOT paraphrase or echo directly): 2892 ${r} 2893 2894 Tone: ${L} 2895 2896 Generate content for the following fields: 2897 ${T} 2898 2899 Guidelines: 2900 - Use the vision as thematic guidance, not as source text 2901 - Do NOT paraphrase, mirror, or reuse sentence structure from the vision 2902 - Maintain semantic alignment while ensuring strong lexical and structural variation 2903 - Avoid repetitive sentence openings or rhetorical patterns 2904 - Prefer outcome-focused, citizen-impact language over abstract or generic goals 2905 - Avoid defaulting to high-frequency institutional verbs 2906 - If an action verb is used, ensure it is specific and adds clear meaning 2907 - Vary phrasing intentionally while preserving institutional credibility 2908 - Do NOT use colons, semicolons, or split-headline constructions 2909 - Headlines must read as a single, continuous phrase or sentence fragment 2910 2911 Headline construction guidance: 2912 - Do NOT default to a single action-verb-led structure 2913 - Choose ONE distinct structural approach per headline: 2914 1. Outcome-focused 2915 2. Assurance-focused 2916 3. System or capability-focused 2917 4. Access or inclusion-focused 2918 5. Citizen experience-focused 2919 6. Action-oriented (use sparingly) 2920 2921 Quality check before responding: 2922 - Review generated content 2923 - If multiple fields start with similar verbs or phrasing, rewrite for diversity 2924 2925 Output rules: 2926 - Return ONLY a valid JSON object 2927 - Match the exact field names provided 2928 - Follow the specified word counts strictly 2929 - Ensure content is professional, authoritative, and policy-grade 2930 - Focus on trust, quality, and real-world service impact 2931 2932 User request: 2933 ${N} 2934 `;try{const O=(await xb([{role:"user",content:P}])).match(/\{[\s\S]*\}/);if(!O)throw new Error("No valid JSON found in response");return JSON.parse(O[0])}catch($){throw console.error("Error generating content:",$),$}},S=async N=>{N.preventDefault(),u(!0);try{const _=await j(o);e&&e(_),l("")}catch(_){console.error("Error generating content:",_),alert("Failed to generate content. Please try again.")}finally{u(!1)}},k=()=>i.jsxs("div",{className:"field-selection",children:[i.jsx("span",{className:"field-label",children:"Generate:"}
2934),i.jsxs("div",{className:"field-pills",children:[i.jsxs("button",{type:"button",className:`field-pill ${h.includes("all")?"selected":""}`,onClick:()=>b("all"),children:["All",h.includes("all")&&i.jsxs("span",{className:"remove-pill",children:[" ",i.jsx(MP,{})]})]}),y.map(N=>i.jsxs("button",{type:"button",className:`field-pill ${h.includes(N)?"selected":""}`,onClick:()=>b(N),children:[N.replace(/_/g," "),h.includes(N)&&i.jsx("span",{className:"remove-pill",children:i.jsx(MP,{})})]},N))]})]});return a?i.jsx("div",{className:"admin-chatbot-container",children:i.jsxs("div",{className:"admin-chatbot-window",children:[i.jsxs("div",{className:"chat-header",children:[i.jsx("h3",{children:"Content Generator"}),i.jsx("button",{className:"admin-close-chat cursor-pointer",onClick:()=>s(!1),children:i.jsx(et,{})})]}),y?.length>0?i.jsxs("div",{className:"chat-input-container",children:[k(),i.jsxs("div",{className:"input-wrapper",children:[i.jsx("div",{className:"textarea-form",children:i.jsx("textarea",{value:o,onChange:N=>l(N.target.value),placeholder:"Add any additional details (optional)",disabled:d,onKeyDown:N=>N.key==="Enter"&&!d&&S(N)})}),d?i.jsxs("div",{className:"generating",children:[i.jsx("span",{className:"dot",children:"â¢"}),i.jsx("span",{className:"dot",style:{animationDelay:"0.2s"},children:"â¢"}),i.jsx("span",{className:"dot",style:{animationDelay:"0.4s"},children:"â¢"})]}):i.jsx("button",{type:"button",onClick:S,disabled:d,className:"admin-send-button",title:"Generate content",children:i.jsx(wy,{})})]})]}):i.jsx("div",{className:"h-[150px] flex items-center justify-center px-6 rounded text-center",children:"Sorry cannot generate content for the selected section!"})]})}):i.jsxs("button",{className:"admin-chatbot-toggle",onClick:()=>s(!0),children:[i.jsx("span",{children:i.jsx(N5,{fontSize:12})}),i.jsx("span",{children:" AI Content Assistant"})]})},BYe=[{label:"White",value:"#ffffff"},{label:"Light Gray",value:"#f5f5f5"},{label:"Light Green",value:"#eafbf1"},{label:"Light Blue",value:"#eff6ff"},{label:"Cream",value:"#fdf6ec"},{label:"Dark Green",value:"#1c3f3a"},{label:"Charcoal",value:"#1f2937"}],Rs=({value:e,onChange:t})=>{const n=!!e,r=e||"var(--theme-section-bg, #ffffff)";return i.jsxs("div",{className:"py-[20px] px-[30px] border-b border-gray-200",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700 block mb-3",children:"Backgroun
2934d Color"}),i.jsxs("div",{className:"flex flex-wrap gap-2.5 mb-3",children:[BYe.map(a=>i.jsx("button",{type:"button",onClick:()=>t(a.value),title:a.label,className:`w-7 h-7 rounded-full border-2 transition-all ${n&&e.toLowerCase()===a.value?"border-green-600 scale-110":"border-gray-200"}`,style:{backgroundColor:a.value}},a.value)),i.jsx("label",{title:"Custom color",className:"w-7 h-7 rounded-full border-2 border-gray-200 cursor-pointer relative overflow-hidden",style:{background:"conic-gradient(red, yellow, lime, cyan, blue, magenta, red)"},children:i.jsx("input",{type:"color",value:n?e:"#ffffff",onChange:a=>t(a.target.value),className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-4 h-4 rounded border border-gray-200",style:{backgroundColor:r}}),i.jsx("span",{className:"text-xs text-gray-500 uppercase",children:n?e:"Theme default"}),n&&i.jsx("button",{type:"button",onClick:()=>t(""),className:"text-xs text-gray-400 hover:text-gray-600 underline ml-1",children:"Reset"})]})]})},qYe={header:"Navbar Style",infoBar:"Info Bar",heroSection:"Hero Section",quickServices:"Quick Services",commissionerZone:"Commissioner Zone",youtubePlayer:"Youtube Player",services:"Services",resourceCategories:"Resource Categories",quickDocuments:"Quick Documents",documentShowcase:"Document Showcase",statistics:"Statistics",supportLinks:"Support Links",coreInformation:"Core Information"},oi=()=>{const{selectedComponent:e,setSelectedComponent:t}=Ye(),[n,r]=v.useState(!1),a=qYe,s=Object.entries(a),o=()=>{r(!n)};v.useEffect(()=>{if(e){const d=document.querySelector(".active_component");d&&(d.style.scrollMarginTop="125px",d.scrollIntoView({behavior:"smooth",block:"start"}))}},[e]);const l=d=>{t(d),r(!1)};return i.jsxs("div",{className:"text-[14px] flex items-center gap-1 mb-6 fixed top-[145px] left-0 w-[350px] bg-white z-10 px-[30px] py-[20px] border-b border-gray-200",children:[i.jsxs("div",{className:"flex gap-1",children:[i.jsx("span",{className:"text-gray-400",children:"Landing Page / "}),i.jsxs("span",{className:"font-medium",children:[" ",a[e]||"Select Section"]})]}),i.jsxs("div",{className:"relative ml-auto",children:[i.jsx("button",{type:"button",className:"flex items-center gap-1 font-medium hover:text-green-600 focus:outline-none",onClick:o,children:i.jsx(ar,{className:`transition-transform ${n?"transform rotate-180":""}`})}),n&&i.jsx("div",{className:"absolute left-0 mt-2 w-60 rounded-[6px] shadow-lg bg-white border border-gray-100",children:i.jsx("div",{className:"",role:"menu","aria-orientation":"vertical",children:s.map(([d,u])=>i.jsx("button",{className:`block w-full text-left px-4 py-2.5 text-sm ${e===d?"bg-[#d8e9e370] text-green-800 font-medium":"text-gray-700 hover:bg-gray-100"}`,onClick:()=>l(d),children:u},d))})})]})]})},FYe=()=>{const e=nt(y=>y.setMdaEditData),t=nt(y=>y.mdaEditData),n=t?.commissionersZone,r=Te(y=>y.mdaData),[a,s]=v.useState(!1),[o,l]=v.useState(0),d=y=>{e({...t,commissionersZone:{...n,[y.target.name]:y.target.value}})},u=async y=>{y.preventDefault();const b=document.getElementById("commissioner_image");b.click(),b.addEventListener("change",async w=>{const j=w.target.files[0];if(!j)return;if(j.size>50*1024*1024){ie.error("File size must be less than 50MB");return}s(!0),l(0);const S=setInterval(()=>{l(k=>k<90?Math.min(k+Math.random()*15,90):k)},200);e({...t,commissionersZone:{...n,commissionerImage:URL.createObjectURL(j)}}),wa(j,`${r?.fullname?.replace(" ","-")}-commissioner-photo`).then(k=>{k.status==="ok"?(clearInterval(S),l(100),e({...t,commissionersZone:{...n,commissionerImage:k.url}}),setTimeout(()=>{s(!1),l(0)},500)):(clearInterval(S),ie.error(k.message||"Failed to upload image. Please try again."),s(!1),l(0))}).catch(k=>{clearInterval(S),ie.error(k.message),s(!1),l(0)})})},h=()=>{e({...t,enabledSections:{...t.enabledSections,commissionersZone:!t.enabledSections?.commissionersZone}})},p=t.commissionersZone?.backgroundColor,g=y=>{e({...t,commissionersZone:{...t.commissionersZone,backgroundColor:y}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:h,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.commissionersZone?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.commissionersZone?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:p,onChange:g}),i.jsx("div",{className:"p-[30px]",children:i.jsxs("form",{action:"",className:"flex flex-col gap-6",children:[i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"welcomeTitle",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Welcome Title"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"Main heading for the commissioner's welcome section"})]}),i.jsx("input",{type:"text",name:"welcomeTitle",id:"welcomeTitle",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:"e.g., Welcome to Lagos State Ministry of Health",value:n?.welcomeTitle||"",onChange:d})]}),i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"welcomeMessage",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Welcome Message"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"Commissioner's welcome message"})]}),i.jsx("textarea",{name:"welcomeMessage",id:"welcomeMessage",className:"focus:border-green-600 border-[1px] border-transparent w-full min-h-[150px] bg-gray-100 p-4 text-[14px] resize-none outline-none rounded-lg",placeholder:"Enter the commissioner's welcome message",value:n?.welcomeMessage||"",onChange:d})]}),i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"commissionerName",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Commissioner's Name"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"Full name of the commissioner"})]}),i.jsx("input",{type:"text",name:"commissionerName",id:"commissionerName",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., Prof. John Doe",value:n?.commissionerName||"",onChange:d})]}),i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"commissionerTitle",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Commissioner's Title"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"Official title/position"})]}),i.jsx("input",{type:"text",name:"commissionerTitle",id:"commissionerTitle",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:`e.g., Hon. Commissioner for ${r?.fullname}, Lagos State`,value:n?.commissionerTitle||"",onChange:d})]}),i.jsxs("div",{className:"flex gap-4 flex-col",children:[i.jsxs("label",{htmlFor:"",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Commissioner's Photo"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"Recommended size: 600x580px"})]}),a&&i.jsxs("div",{className:"mt-2",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mb-1",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[Math.round(o),"%"]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5",children:i.jsx("div",{className:"bg-green-600 h-1.5 rounded-full transition-all duration-300 ease-out",style:{width:`${o}%`}})})]}),i.jsxs("div",{className:"mt-1 flex items-center",children:[i.jsxs("span",{className:"inline-block h-32 w-32 overflow-hidden bg-gray-100 rounded-md relative",children:[n?.commissionerImage?i.jsx("img",{src:n?.commissionerImage,alt:"Commissioner",className:"h-full w-full object-cover"}):i.jsx("div",{className:"h-full w-full bg-gray-200 flex items-center justify-center",children:i.jsx(Ui,{className:"text-gray-500"})}),a&&i.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsxs("label",{className:"ml-4",children:[i.jsx("div",{className:"cursor-pointer bg-white py-2 px-3 border border-gray-300 rounded-md shadow-xs text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50",children:"Change Photo"}),i.jsx("input",{type:"file",id:"commissioner_image",className:"sr-only",accept:"image/*",onChange:u})]})]})]})]})})]})},zYe=({saveDraft:e})=>{const t=nt(w=>w.setMdaEditData),n=nt(w=>w.mdaEditData),r=v.useRef([]),a=v.useRef(null),s=async()=>{try{await e(),ie.success("Changes saved successfully")}catch(w){console.error("Manual save failed:",w),ie.error("Failed to save changes")}
2934},o=n.coreInformation?.backgroundColor,l=w=>{t({...n,coreInformation:{...n.coreInformation,backgroundColor:w}})},d=()=>{t({...n,enabledSections:{...n.enabledSections,coreInformation:!n.enabledSections?.coreInformation}})},u=(w,j,S=null)=>{const{name:k,value:N}=w.target,_={...n.coreInformation};S!==null?_.cards[j]={..._.cards[j],keyPoints:_.cards[j].keyPoints.map((L,E)=>E===S?N:L)}:_.cards[j]={..._.cards[j],[k]:N},t({...n,coreInformation:_})},h=w=>{t({...n,coreInformation:{...n.coreInformation,title:w.target.value}})},p=()=>{const w={title:"",description:"",keyPoints:["","","",""],link:""};t({...n,coreInformation:{...n.coreInformation,cards:[...n.coreInformation?.cards||[],w]}}),setTimeout(()=>{const j=n.coreInformation?.cards?.length||0;r.current[j]?r.current[j].scrollIntoView({behavior:"smooth",block:"nearest"}):a.current&&a.current.scrollTo({top:a.current.scrollHeight,behavior:"smooth"})},50)},g=w=>{const j={...n.coreInformation};j.cards=j.cards.filter((S,k)=>k!==w),t({...n,coreInformation:j})},y=w=>{const j={...n.coreInformation};j.cards[w]={...j.cards[w],keyPoints:[...j.cards[w].keyPoints,""]},t({...n,coreInformation:j})},b=(w,j)=>{const S={...n.coreInformation};S.cards[w]={...S.cards[w],keyPoints:S.cards[w].keyPoints.filter((k,N)=>N!==j)},t({...n,coreInformation:S})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:d,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${n.enabledSections?.coreInformation?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${n.enabledSections?.coreInformation?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:o,onChange:l}),i.jsx("div",{className:"p-[30px]",ref:a,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Section Title"}),i.jsx("input",{type:"text",value:n.coreInformation?.title||"",onChange:h,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Empowering Lagos Through Strategic MIST Programmes and Innovation Initiatives"})]}),i.jsx("div",{className:"flex justify-between items-center pb-6 w-full",children:i.jsx("button",{onClick:p,className:"w-full px-5 py-3 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Card"})}),i.jsx("div",{className:"space-y-6",children:n.coreInformation?.cards?.map((w,j)=>(r.current[j]||(r.current[j]=null),i.jsxs("div",{ref:S=>r.current[j]=S,className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("div",{className:"flex justify-between items-center mb-3",children:[i.jsxs("h3",{className:"font-semibold text-[15px]",children:["Card ",j+1]}),i.jsx("button",{onClick:()=>g(j),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Card Title"}),i.jsx("input",{type:"text",name:"title",value:w.title||"",onChange:S=>u(S,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Card title"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Description"}),i.jsx("textarea",{name:"description",value:w.description||"",onChange:S=>u(S,j),rows:3,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none resize-none field-sizing-content min-h-[80px]",placeholder:"Card description"})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Key Points"}),i.jsx("button",{onClick:()=>y(j),className:"text-xs text-green-600 hover:text-green-700",children:"+ Add Point"})]}),w.keyPoints?.map((S,k)=>i.jsxs("div",{className:"flex gap-2 mb-2",children:[i.jsx("input",{type:"text",value:S||"",onChange:N=>u(N,j,k),className:"focus:border-green-600 border-[1px] border-transparent flex-1 bg-gray-100 py-2 px-3 rounded-[6px] text-[14px] outline-none",placeholder:`Key point ${k+1}`}),w.keyPoints.length>1&&i.jsx("button",{onClick:()=>b(j,k),className:"text-red-500 text-sm hover:text-red-700 px-2",children:"Ã"})]},k))]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Link"}),i.jsx("input",{type:"url",name:"link",value:w.link||"",onChange:S=>u(S,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"https://example.com"})]}),i.jsx("div",{className:"mt-4",children:i.jsx("button",{onClick:s,className:"w-full px-4 py-2 text-sm font-medium text-white bg-amber-500 rounded-md hover:bg-amber-600 transition-colors",children:"Save Card Changes"})})]})]},j)))})]})})]})},HYe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),{fullname:n}=Te(k=>k.mdaData),[r,a]=v.useState({}),[s,o]=v.useState({}),l=e?.documentShowcase?.documents||[],d=()=>{t({...e,enabledSections:{...e.enabledSections,documentShowcase:!e.enabledSections?.documentShowcase}})},u=e.documentShowcase?.backgroundColor,h=k=>{t({...e,documentShowcase:{...e.documentShowcase,backgroundColor:k}})},p=k=>{const{name:N,value:_}=k.target;t({...e,documentShowcase:{...e.documentShowcase,[N]:_}})},g=k=>{t({...e,documentShowcase:{...e.documentShowcase,documents:k}})},y=()=>{g([...l,{name:"",thumbnail:"",url:""}])},b=k=>{g(l.filter((N,_)=>_!==k))},w=(k,N)=>{const _=[...l];_[k]={..._[k],name:N},g(_)},j=(k,N)=>{if(!N)return;if(N.size>50*1024*1024){ie.error("File size must be less than 50MB");return}const _=URL.createObjectURL(N),L=[...e.documentShowcase?.documents||[]];L[k]={...L[k],thumbnail:_},g(L),a(E=>({...E,[k]:!0})),wa(N,`${n.replace(" ","-")}-document-thumb-${k}`).then(E=>{if(E.status==="ok"){const T=[...e.documentShowcase?.documents||[]];T[k]={...T[k],thumbnail:E.url},g(T)}else ie.error(E.message||"Failed to upload thumbnail. Please try again.")}).catch(E=>ie.error(E?.message||"Failed to upload thumbnail. Please try again.")).finally(()=>{a(E=>{const T={...E};return delete T[k],T})})},S=async(k,N)=>{if(N){if(N.size>50*1024*1024){ie.error("File size must be less than 50MB");return}o(_=>({..._,[k]:!0}));try{const _=`${n.replace(" ","-")}-document-${k}-${Date.now()}`,L=await QG(N,_),E=[...e.documentShowcase?.documents||[]];E[k]={...E[k],url:L},g(E),ie.success("Document uploaded successfully")}catch(_){ie.error(_?.message||"Failed to upload document")}finally{o(_=>{const L={..._};return delete L[k],L})}}};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:d,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${e.enabledSections?.documentShowcase?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${e.enabledSections?.documentShowcase?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:u,onChange:h}),i.jsxs("div",{className:"p-[30px] flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Title"}),i.jsx("input",{type:"text",name:"title",value:e.documentShowcase?.title||"",onChange:p,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:"e.g., Financial Statements"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Subtitle"}),i.jsx("textarea",{name:"subtitle",value:e.documentShowcase?.subtitle||"",onChange:p,rows:2,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none field-sizing-content",placeholder:"Short description shown above the documents"})]}),i.jsx("div",{className:"border-t border-gray-200 pt-4"}),i.jsxs("div",{className:"flex justify-between items-center pb-2 w-full",children:[i.jsx("h3",{className:"font-semibold text-[15px]",children:"Documents"}),i.jsxs("button",{onClick:y,className:"px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700 flex items-center gap-1",children:[i.jsx(vr,{width:14})," Add"]})]}),i.jsxs("div",{className:"space-y-5",children:[l.map((k,N)=>{const _=!!r[N],L=!!s[N];return i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-5",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsxs("h4",{className:"font-medium text-[14px]",children:["Document ",N+1]}),i.jsxs("button",{onClick:()=>b(N),className:"text-red-500 text-sm hover:text-red-700 flex items-center gap-1",children:[i.jsx(nu,{width:14})," Remove"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Name"}),i.jsx("input",{type:"text",value:k.name||"",onChange:E=>w(N,E.target.value),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., 2024 Annual Statement"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Thumbnail Image"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-[56px] h-[56px] rounded-lg bg-gray-100 flex items-center justify-center overflow-hidden shrink-0",children:[k.thumbnail?i.jsx("img",{src:k.thumbnail,alt:"",className:"w-full h-full object-cover"}):i.jsx(j5,{className:"text-gray-400",width:18}),_&&i.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:i.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsx("input",{type:"file",id:`doc_thumb_${N}`,accept:"image/*",hidden:!0,onChange:E=>j(N,E.target.files[0])}),i.jsx("button",{type:"button",disabled:_,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-3 py-2 rounded-[6px] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>document.getElementById(`doc_thumb_${N}`).click(),children:_?"Uploading...":k.thumbnail?"Change":"Upload"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"File (PDF)"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-[56px] h-[56px] rounded-lg bg-gray-100 flex items-center justify-center overflow-hidden shrink-0",children:[i.jsx(Ui,{className:k.url?"text-green-600":"text-gray-400",width:18}),L&&i.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:i.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsx("input",{type:"file",id:`doc_file_${N}`,accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx",hidden:!0,onChange:E=>S(N,E.target.files[0])}),i.jsx("button",{type:"button",disabled:L,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-3 py-2 rounded-[6px] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>document.getElementById(`doc_file_${N}`).click(),children:L?"Uploading...":k.url?"Change":"Upload"})]}),k.url&&i.jsx("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-green-600 hover:text-green-800 underline mt-2 inline-block",children:"View uploaded file"})]})]},N)}),l.length===0&&i.jsx("div",{className:"text-gray-500 text-sm text-center py-4",children:'No documents added yet. Click "Add" to get started.'})]})]})]})},UYe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),n=e.enabledSections?.galleryPreview!==!1,r=e.galleryPreview?.backgroundColor,a=()=>{t({...e,enabledSections:{...e.enabledSections,galleryPreview:!n}})},s=o=>{t({...e,galleryPreview:{...e.galleryPreview,backgroundColor:o}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white p-[30px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[30px] bg-gray-100 -mx-[30px]",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:a,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${n?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${n?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx("div",{className:"-mx-[30px]",children:i.jsx(Rs,{value:r,onChange:s})}),i.jsxs("p",{className:"text-[13px] text-gray-500 leading-[1.6] mt-6",children:["This section automatically shows your 3 most recent photo albums, and disappears on its own if you haven't added any yet. To add or manage albums, go to"," ",i.jsx("span",{className:"font-semibold text-gray-700",children:"Gallery"})," in the sidebar."]})]})},VYe=[{value:"classic",label:"Classic"},{value:"tabStrip",label:"Tab Strip"}],GYe=({style:e})=>e==="tabStrip"?i.jsxs("div",{className:"w-full h-full flex items-center gap-0.5 p-1 bg-gray-100 rounded",children:[i.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400 shrink-0"}),i.jsx("div",{className:"flex-1"}),i.jsx("div",{className:"w-4 h-full border-l border-gray-300"}),i.jsx("div",{className:"w-4 h-full border-l border-gray-300"}),i.jsx("div",{className:"w-5 h-full bg-green-600 rounded-sm ml-0.5"})]}):i.jsxs("div",{className:"w-full h-full flex items-center gap-1 p-1 bg-gray-100 rounded",children:[i.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400 shrink-0"}),i.jsx("div",{className:"flex-1"}),i.jsx("div",{className:"w-4 h-1 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-4 h-1 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-4 h-1 bg-gray-400 rounded-full"})]}),WYe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),n=e?.navbarStyle||"classic",r=a=>{t({...e,navbarStyle:a})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white p-[30px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsxs("div",{className:"pt-[20px] mt-[30px]",children:[i.jsx("p",{className:"font-semibold text-[14px] mb-1",children:"Navbar Style"}),i.jsx("p",{className:"text-[13px] text-gray-500 mb-3",children:"Choose how the site navigation bar looks."}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:VYe.map(a=>i.jsxs("button",{type:"button",onClick:()=>
2934r(a.value),className:`flex flex-col gap-2 p-2 rounded-lg border-2 transition-colors text-left ${n===a.value?"border-green-600 bg-green-50":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:"w-full h-[36px]",children:i.jsx(GYe,{style:a.value})}),i.jsx("span",{className:"text-[11px] font-medium text-gray-700 leading-tight",children:a.label})]},a.value))})]})]})},YYe="No text overlays, no watermarks, no logos, no banners, no blurry areas, no overexposed highlights, no lens flare, no cartoon or illustration style, no stock-photo cheese, no empty skies dominating the frame.",KYe="Shot on Sony A7R V 24mm f/1.8 lens. ISO 100, 1/500s. RAW post-processed: crisp micro-detail, rich shadow separation, natural skin tones, cinematic colour grade. Ultra-sharp throughout. 16:9 wide frame.",vJ=(e,t="")=>{const n=e.toLowerCase();let r="";return n.includes("agricult")||n.includes("farm")||n.includes("food")?r="Photorealistic editorial photograph of Nigerian farmers harvesting vibrant green crops on fertile Lagos-region farmland at golden hour. Foreground: close detail of hands gathering produce, sharp focus. Midground: rows of lush crops stretching to horizon. Backgroun
2934d: warm amber sky. 2â3 farmers in traditional work attire, natural candid expressions. f/2.8 shallow depth on foreground. Rich earthy greens and golds.":n.includes("women")||n.includes("gender")?r="Photorealistic editorial photograph of a group of confident, diverse Lagosian women in vibrant Nigerian Ankara attire gathered in a modern Lagos civic space. Natural directional sunlight from the left creating dimensional shadows. Foreground woman in sharp focus, background softly bokeh. Empowered, joyful expressions. Warm golden-hour palette with deep greens and reds from fabric prints.":n.includes("health")||n.includes("hospital")||n.includes("medical")?r="Photorealistic editorial photograph of a bright modern hospital ward in Lagos Nigeria. Nigerian healthcare workers in scrubs attending to patients with focused, caring expressions. Clean white-and-teal interior, large windows with natural daylight flooding in. Sharp foreground detail on medical equipment, midground staff in motion. Clinical yet warm atmosphere.":n.includes("educat")||n.includes("school")||n.includes("learning")?r="Photorealistic editorial photograph of Nigerian secondary school students in crisp green-and-white uniforms actively engaged in a modern Lagos classroom. Bright natural window light from the right. Foreground: student writing in notebook, sharp focus. Midground: teacher at whiteboard, students raising hands. Colours: vivid greens, warm skin tones, white walls. Energetic, aspirational atmosphere.":n.includes("work")||n.includes("infrastructure")||n.includes("road")||n.includes("transport")?r="Photorealistic aerial editorial photograph of a major modern highway interchange in Lagos Nigeria under bright blue-sky daylight. Sharp structural detail on road surfaces, lane markings, and overpasses. Active traffic flow: buses, cars, motorcycles. Surrounding urban landscape: commercial buildings, trees. Low-angle sun casting long directional shadows for depth and dimension. Powerful wide composition showing scale and order.":n.includes("environment")||n.includes("climate")||n.includes("forestry")?r="Photorealistic editorial photograph of a thriving urban tree-planting initiative in Lagos Nigeria. Nigerian environmental workers and volunteers in bright safety vests planting young trees along a clean city boulevard. Lush green canopy overhead, dappled afternoon light filtering through leaves. Foreground: close sharp detail of hands placing sapling in earth. Backgroun
2934d: leafy city street with pedestrians. Vivid greens, deep blues, warm skin tones.":n.includes("finance")||n.includes("econom")||n.includes("budget")||n.includes("revenue")?r="Photorealistic editorial photograph of the modern Lagos Island financial district at blue hour. Gleaming glass-and-steel tower facades with warm office lighting glowing from within. Foreground: sharp pavement detail with business professionals in purposeful motion. Midground: 2 Nigerian professionals in suits in conversation. Deep blues, amber glass reflections, city lights. Sophisticated, authoritative atmosphere.":n.includes("youth")||n.includes("sport")||n.includes("recreation")?r="Photorealistic editorial action photograph of young Nigerians playing competitive football on a well-maintained grass pitch in Lagos at golden hour. Player mid-kick, ball sharply frozen in air. Foreground players in crisp focus; background crowd softly bokeh. Jerseys in bright Lagos state colours. Warm amber-and-green palette. Energy, motion, and joy.":n.includes("hous")||n.includes("urban")||n.includes("land")?r="Photorealistic editorial photograph of a clean modern affordable housing estate in Lagos Nigeria. Rows of well-maintained mid-rise residential buildings with landscaped grounds. Foreground: Nigerian familyâparents and two childrenâwalking along a paved path, candid and natural. Morning light with long soft shadows. Colours: warm cream buildings, green lawns, bright clothing. Aspirational, community-focused atmosphere.":n.includes("justice")||n.includes("law")||n.includes("attorney")||n.includes("legal")?r="Photorealistic editorial photograph of the imposing exterior of a formal Lagos High Court building. Symmetrical architecture with wide stone steps leading to tall columns. Nigerian flag flying prominently. Late-morning directional sunlight creating strong shadows and highlights on architectural detail. Deep blue sky. 1â2 suited figures ascending steps for human scale. Dignified, powerful, wide composition.":n.includes("water")||n.includes("sanit")?r="Photorealistic editorial photograph of a modern water treatment plant in Lagos Nigeria. Large clean filtration tanks and infrastructure under a wide blue sky. Nigerian engineers in hard hats and high-vis vests inspecting equipment in foreground, sharp focus. Gleaming pipes and machinery in midground. Blue-and-white colour palette. Competent, reassuring atmosphere.":n.includes("energy")||n.includes("power")||n.includes("electric")?r="Photorealistic editorial photograph of a large solar farm installation in Lagos Nigeria. Rows of photovoltaic panels stretching to the horizon under a vivid blue sky with scattered clouds. Foreground: sharp detail of panel surface with reflected sky. Midground: 2 Nigerian solar technicians in uniform checking equipment. Golden midday light. Clean greens, electric blues, silver panels. Progressive, optimistic atmosphere.":n.includes("tourism")||n.includes("culture")||n.includes("art")?r="Photorealistic editorial photograph of a vibrant Lagos cultural arts festival. Performers in elaborate traditional Yoruba attireârich reds, golds, and indigosâdancing in an open civic square. Foreground dancer in sharp focus mid-movement. Background: engaged diverse crowd, colourful decorations. Late-afternoon warm light with deep colour saturation. Joyful, celebratory, culturally rich atmosphere.":n.includes("trade")||n.includes("commerce")||n.includes("industry")||n.includes("market")?r="Photorealistic editorial photograph of a busy modern commercial district in Lagos Nigeria at golden hour. Wide street lined with contemporary retail buildings and active foot traffic. Foreground: Nigerian trader and customer in candid transaction, sharp focus. Midground: bustling street activity. Background: warm building facades catching sunset light. Rich ambers, deep shadows, vivid clothing colours. Dynamic, prosperous atmosphere.":n.includes("information")||n.includes("communication")||n.includes("technology")||n.includes("digital")?r="Photorealistic editorial photograph of a modern open-plan tech hub in Lagos Nigeria. Young Nigerian professionalsâmen and womenâworking at standing desks with large monitors displaying code and dashboards. Bright diffused natural light from floor-to-ceiling windows. Foreground: developer typing, hands and screen in sharp focus. Midground: collaborative group discussion at whiteboard. Clean white-and-glass interior with pops of Lagos state green. Progressive, innovative atmosphere.":r="Photorealistic editorial photograph of a dignified Lagos State Government civic engagement scene: Nigerian government officials and diverse citizens gathered outside a modern official building in Lagos, active discussion and handshakes. Late-afternoon directional sunlight. Foreground figures in sharp focus; architectural background softly bokeh. Nigerian flags visible. Warm tones, professional attire, positive community atmosphere.",t.trim()&&(r=`Photorealistic editorial photograph for ${e}: ${t}. ${r}`),`${r} ${KYe} ${YYe}`},XYe=e=>`Photorealistic professional studio portrait of a Nigerian government official representing ${e}. Subject: Nigerian person in their 40sâ50s wearing a sharp formal suit or traditional attire, sitting slightly angled toward camera. Expression: confident, approachable, calm authority. Lighting: soft Rembrandt studio lighting, key light upper-left, subtle fill from right, dark neutral background with slight vignette. Sharp focus on eyes and face, shallow depth-of-field f/2.0, gentle shoulder bokeh. Deep navy or charcoal suit, white shirt. No text, no watermarks, no badges, no busy backgrounds. Shot on Canon EOS R5, 85mm f/1.4. 3:4 aspect ratio.`,ZYe=({onImageGenerated:e,mdaFullName:t,onLoadingChange:n})=>{const[r,a]=v.useState(""),[s,o]=v.useState(!1);v.useEffect(()=>{n&&n(s)},[s,n]);const l=async(u,h,p)=>{try{const{base64:g,mimeType:y}=await Promise.race([uU(u),new Promise((N,_)=>setTimeout(()=>
2934_(new Error("Image generation timeout")),6e4))]),b=Uint8Array.from(atob(g),N=>N.charCodeAt(0)),w=new Blob([b],{type:y}),j=y.split("/")[1]||"png",S=new File([w],`${h}.${j}`,{type:y});return(await Promise.race([Ab(S,p),new Promise((N,_)=>setTimeout(()=>_(new Error("Upload timeout")),3e4))])).data.url}catch(g){throw console.error("Image generation error:",g),g.response?.status===413?new Error("Generated image is too large for upload. Please try generating a simpler image or contact support."):g}},d=async()=>{if(!r.trim()){ie.error("Please provide a description for the AI image generation");return}o(!0);try{const u=vJ(t,r),h=await l(u,`${t.replace(" ","-")}-hero-image-ai`,"LASG Hero Images");e&&e(h),ie.success("AI image generated successfully!"),a("")}catch(u){console.error("Error generating image:",u),u.message==="Image generation timeout"?ie.error("Image generation is taking too long. Please try again with a simpler description."):u.message==="Upload timeout"?ie.error("Image upload timed out. The image was generated but failed to upload. Please try again."):u.message.includes("API_KEY")?ie.error("API configuration error. Please contact support."):u.message.includes("quota")||u.message.includes("limit")?ie.error("API quota exceeded. Please try again later."):ie.error(`Failed to generate image: ${u.message||"Unknown error"}`)}finally{o(!1)}};return i.jsx("div",{className:"rounded-lg ",children:i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsx("label",{htmlFor:"ai-description",className:"text-[13px] font-medium text-gray-700",children:"Describe your hero image *"}),i.jsx("textarea",{id:"ai-description",value:r,onChange:u=>a(u.target.value),placeholder:"Describe what you want in the hero image... (e.g., modern government building with citizens, busy office scene, community event, etc.)",className:"w-full p-4 rounded-[10px] field-sizing-content min-h-[120px] text-[14px] outline-none focus:ring-green-600 focus:border-green-600 resize-none bg-gray-100",rows:3,disabled:s}),i.jsx("button",{type:"button",onClick:d,disabled:s||!r.trim(),className:`w-full py-2.5 px-4 rounded-[6px] text-[14px] font-medium transition-colors flex items-center justify-center gap-2 ${s||!r.trim()?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-green-600 text-white hover:bg-green-700"}`,children:s?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Generating..."]}):i.jsxs(i.Fragment,{children:[i.jsx(N5,{className:"w-4 h-4"}),"Generate AI Image"]})}),i.jsx("p",{className:"text-[13px] text-gray-500 italic",children:"AI will generate a professional hero image based on your description and the MDA context."})]})})},BC=[{label:"Home",path:""},{label:"About",path:"about"},{label:"News",path:"news"},{label:"Resources",path:"resources"},{label:"Contact",path:"contact"},{label:"Forms",path:"forms"}],QYe=[{value:"fullBleed",label:"Full-width Image"},{value:"boxedOverlay",label:"Framed Overlay"},{value:"splitPhoto",label:"Side-by-side"},{value:"splitTextImageBelow",label:"Split Text, Image Below"},{value:"centeredTextImageBelow",label:"Centered, Image Below"},{value:"fullBleedCentered",label:"Full-width Image (Centered)"},{value:"colorBackground",label:"Full-screen Color"},{value:"groundedSplit",label:"Grounded Split, Underlined"},{value:"splitCircleFloating",label:"Twin Arched Photos"}],JYe=({style:e})=>e==="fullBleed"?i.jsxs("div",{className:"relative w-full h-full bg-gray-400 rounded overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-black/40"}),i.jsxs("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 flex flex-col gap-1",children:[i.jsx("div",{className:"w-10 h-1.5 bg-white/90 rounded-full"}),i.jsx("div",{className:"w-7 h-1.5 bg-white/70 rounded-full"})]})]}):e==="fullBleedCentered"?i.jsxs("div",{className:"relative w-full h-full bg-gray-400 rounded overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-black/40"}),i.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-1",children:[i.jsx("div",{className:"w-10 h-1.5 bg-white/90 rounded-full"}),i.jsx("div",{className:"w-7 h-1.5 bg-white/70 rounded-full"})]})]}):e==="boxedOverlay"?i.jsx("div",{className:"w-full h-full bg-gray-100 rounded flex items-center p-1.5",children:i.jsxs("div",{className:"relative w-full h-full bg-gray-400 rounded overflow-hidden",children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/70 via-black/30 to-transparent"}),i.jsxs("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 flex flex-col gap-1",children:[i.jsx("div",{className:"w-9 h-1.5 bg-white/90 rounded-full"}),i.jsx("div",{className:"w-6 h-1.5 bg-white/70 rounded-full"})]})]})}):e==="splitTextImageBelow"?i.jsxs("div",{className:"w-full h-full flex flex-col gap-1",children:[i.jsxs("div",{className:"flex-1 flex gap-1.5 px-1",children:[i.jsx("div",{className:"flex-1 flex flex-col justify-center gap-1",children:i.jsx("div",{className:"w-full h-1.5 bg-gray-500 rounded-full"})}),i.jsxs("div",{className:"flex-1 flex flex-col justify-center gap-1",children:[i.jsx("div",{className:"w-full h-1 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-6 h-1.5 bg-green-600 rounded-sm mt-0.5"})]})]}),i.jsx("div",{className:"w-full flex-[1.4] bg-gray-400 rounded-t-sm"})]}):e==="centeredTextImageBelow"?i.jsxs("div",{className:"w-full h-full flex flex-col items-center gap-1",children:[i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1 w-full",children:[i.jsx("div",{className:"w-1/2 h-1.5 bg-gray-500 rounded-full"}),i.jsx("div",{className:"w-1/3 h-1 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-6 h-1.5 bg-green-600 rounded-sm mt-0.5"})]}),i.jsx("div",{className:"w-full flex-[1.4] bg-gray-400 rounded-t-sm"})]}
2934):e==="colorBackground"?i.jsxs("div",{className:"relative w-full h-full rounded overflow-hidden flex flex-col items-center justify-center gap-1",style:{background:yf[0].css},children:[i.jsx("div",{className:"w-10 h-1.5 bg-white/90 rounded-full"}),i.jsx("div",{className:"w-7 h-1.5 bg-white/70 rounded-full"})]}):e==="groundedSplit"?i.jsxs("div",{className:"w-full h-full flex items-end gap-1.5 px-1 pb-1",children:[i.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-1",children:[i.jsx("div",{className:"w-full h-1.5 bg-gray-500 rounded-full underline decoration-2"}),i.jsx("div",{className:"w-3/4 h-1 bg-gray-400 rounded-full mt-1"}),i.jsx("div",{className:"w-6 h-1.5 bg-green-600 rounded-sm mt-0.5"})]}),i.jsx("div",{className:"flex-1 h-[85%] bg-gray-400 rounded"})]}):e==="splitCircleFloating"?i.jsxs("div",{className:"w-full h-full flex items-center gap-1.5 px-1",children:[i.jsxs("div",{className:"flex-1 flex flex-col justify-center gap-1",children:[i.jsx("div",{className:"w-full h-1.5 bg-gray-500 rounded-full"}),i.jsx("div",{className:"w-3/4 h-1 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-6 h-1.5 bg-green-600 rounded-sm mt-0.5"})]}),i.jsxs("div",{className:"relative w-[60%] h-[85%] shrink-0",children:[i.jsx("div",{className:"absolute top-0 left-0 w-[65%] h-[62%] bg-gray-400 rounded-tl-sm rounded-bl-sm rounded-br-sm rounded-tr-[50%]"}),i.jsx("div",{className:"absolute bottom-0 right-0 w-[65%] h-[62%] bg-gray-400 rounded-br-sm rounded-tr-sm rounded-bl-sm rounded-tl-[50%]"})]})]}):i.jsxs("div",{className:"w-full h-full flex gap-1.5",children:[i.jsxs("div",{className:"flex-1 flex flex-col justify-center gap-1.5 px-1",children:[i.jsx("div",{className:"w-full h-1.5 bg-gray-500 rounded-full"}),i.jsx("div",{className:"w-3/4 h-1.5 bg-gray-400 rounded-full"}),i.jsx("div",{className:"w-6 h-2 bg-green-600 rounded-sm mt-1"})]}),i.jsx("div",{className:"flex-1 bg-gray-400 rounded"})]}),eKe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),{fullname:n,theme:r,slug:a}=Te(Z=>Z.mdaData),[s,o]=v.useState(!1),[l,d]=v.useState(0),[u,h]=v.useState(!1),[p,g]=v.useState(!1),[y,b]=v.useState(()=>{const Z=e?.action_button_link||"";return Z===""||Z.startsWith("/")?"page":"custom"}),w=Z=>Z?`/${a}/${Z}`:`/${a}`,j=BC.find(Z=>w(Z.path)===e?.action_button_link)?.path??"",S=Z=>{t({...e,action_button_link:w(Z)})},k=()=>{b("page"),BC.some(ee=>w(ee.path)===e?.action_button_link)||t({...e,action_button_link:w("")})},N=r==="mof"?"fullBleed":"splitPhoto",_=e?.hero_style||N,L=Z=>{t({...e,hero_style:Z})},E=_==="colorBackground",T=e?.hero_bg_type||"gradient",P=e?.hero_bg_color||"#0f9b6c",$=e?.hero_bg_gradient||yf[0].id,O=Z=>t({...e,hero_bg_type:Z}),q=Z=>t({...e,hero_bg_color:Z}),D=Z=>t({...e,hero_bg_gradient:Z}),z=()=>{t({...e,enabledSections:{...e.enabledSections,heroSection:!e.enabledSections?.heroSection}})},V=!!e?.hero_slideshow,W=e?.hero_images?.length?e.hero_images:[""],[B,H]=v.useState({}),G=()=>{t({...e,hero_slideshow:!V})},K=Z=>{t({...e,hero_images:Z})},M=()=>K([...W,""]),I=Z=>{const ee=W.filter((ae,ye)=>ye!==Z);K(ee.length?ee:[""])},X=(Z,ee)=>{if(!ee)return;if(ee.size>50*1024*1024){ie.error("File size must be less than 50MB");return}const ae=URL.createObjectURL(ee),ye=[...W];ye[Z]=ae,K(ye),H(J=>({...J,[Z]:!0})),wa(ee,`${n.replace(" ","-")}-hero-slide-${Z}`).then(J=>{if(J.status==="ok"){const re=[...e.hero_images?.length?e.hero_images:[""]];re[Z]=J.url,K(re)}else ie.error(J.message||"Failed to upload image. Please try again.")}).catch(J=>{ie.error(J?.message||"Failed to upload image. Please try again.")}).finally(()=>{H(J=>{const re={...J};return delete re[Z],re})})},F=Z=>{t({...e,[Z.target.name]:Z.target.value})},U=async(Z,ee,ae="main_photo",ye="main_photo")=>{Z.preventDefault();const J=document.getElementById(ye);J.click(),J.addEventListener("change",async re=>{const ge=re.target.files[0];if(!ge)return;if(ge.size>50*1024*1024){ie.error("File size must be less than 50MB");return}const Q=URL.createObjectURL(ge);t({...e,[ae]:Q}),o(!0),d(0);const Se=setInterval(()=>{d(je=>je<90?Math.min(je+Math.random()*15,90):je)},200);wa(ge,ee).then(je=>{je.status==="ok"?(clearInterval(Se),d(100),t({...e,[ae]:je.url}),setTimeout(()=>{o(!1),d(0)},500)):(clearInterval(Se),ie.error(je.message||"Failed to upload image. Please try again."),o(!1),d(0))}).catch(je=>{clearInterval(Se),ie.error(je.message),o(!1),d(0)})})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white p-[30px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[30px] bg-gray-100 -mx-[30px]",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:z,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${e.enabledSections?.heroSection?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${e.enabledSections?.heroSection?"translate-x-6":"translate-x-1"}`})})]})}),i.jsxs("div",{className:"pt-[20px]",children:[i.jsx("p",{className:"font-semibold text-[14px] mb-3",children:"Hero Style"}),i.jsx("div",{className:"grid grid-cols-3 gap-2",children:QYe.map(Z=>i.jsxs("button",{type:"button",onClick:()=>
2934L(Z.value),className:`flex flex-col gap-2 p-2 rounded-lg border-2 transition-colors text-left ${_===Z.value?"border-green-600 bg-green-50":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:"w-full h-[50px]",children:i.jsx(JYe,{style:Z.value})}),i.jsx("span",{className:"text-[11px] font-medium text-gray-700 leading-tight",children:Z.label})]},Z.value))})]}),i.jsxs("form",{action:"",className:"flex flex-col gap-6 mt-[30px]",children:[i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"hero-text",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("div",{children:i.jsxs("p",{className:"flex gap-2",children:[i.jsx(_D,{})," Hero Text"," ",i.jsx("span",{className:"italic font-normal text-[13px] text-gray-500",children:"(max 7 words)"})]})}),i.jsxs("span",{className:" flex text-[13px] font-normal text-gray-500 items-center gap-1",children:[" ","This is the main hero section text"]})]}),i.jsx("textarea",{name:"hero_text",id:"hero_text",className:"focus:border-green-600 border-[1px] border-transparent w-full min-h-[80px] field-sizing-content bg-gray-100 p-4 text-[14px] resize-none outline-none rounded-lg",placeholder:"Enter hero text",value:e?.hero_text,onChange:F})]}),i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsx("label",{htmlFor:"hero_subtitle",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:i.jsxs("div",{children:[i.jsxs("p",{className:"flex gap-2",children:[i.jsx(_D,{})," Hero Subtitle"," "]}),i.jsxs("span",{className:" flex text-[13px] font-normal text-gray-500 items-center gap-1",children:[" ","This is the subtitle of the hero section"]})]})}),i.jsx("textarea",{name:"hero_subtitle",id:"hero_subtitle",className:"focus:border-green-600 border-[1px] border-transparent w-full min-h-[100px] field-sizing-content bg-gray-100 p-4 text-[14px] resize-none outline-none rounded-lg",placeholder:"Enter hero subtitle",value:e?.hero_subtitle,onChange:F})]}),i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsx("label",{htmlFor:"action_button_text",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:i.jsxs("div",{children:[i.jsxs("p",{className:"flex gap-2",children:[i.jsx(nb,{})," Action Button"," "]}),i.jsxs("span",{className:" flex text-[13px] font-normal text-gray-500 items-center gap-1",children:[" ","This is the action button of the hero section"]})]})}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{htmlFor:"action_button_text",className:"text-[13px] font-medium text-gray-500",children:"Button Text"}),i.jsx("input",{name:"action_button_text",type:"text",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Enter button text",value:e?.action_button_text,onChange:F})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("label",{className:"text-[13px] font-medium text-gray-500",children:"Button Link"}),i.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-1",children:[i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${y==="page"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:k,children:"Site Page"}),i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${y==="custom"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>b("custom"),children:"Custom URL"})]}),y==="page"?i.jsx("select",{className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",value:j,onChange:Z=>S(Z.target.value),children:BC.map(Z=>i.jsx("option",{value:Z.path,children:Z.label},Z.path))}):i.jsx("input",{name:"action_button_link",type:"text",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:"https://example.com or #section-id",value:e?.action_button_link||"",onChange:F})]})]})]}),E?i.jsxs("div",{className:"flex gap-4 flex-col",children:[i.jsxs("label",{className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{className:"flex gap-2 items-center",children:"Background"}),i.jsx("span",{className:"text-[13px] font-normal text-gray-500",children:"Choose a solid color or one of the preset gradients"})]}),i.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-1",children:[i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${T==="gradient"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>O("gradient"),children:"Gradient"}),i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${T==="solid"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>O("solid"),children:"Solid Color"})]}),T==="solid"?i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("input",{type:"color",value:P,onChange:Z=>q(Z.target.value),className:"w-12 h-12 rounded-lg border border-gray-200 cursor-pointer p-0.5 shrink-0","aria-label":"Choose custom color"}),i.jsx("input",{type:"text",value:P,onChange:Z=>q(Z.target.value),placeholder:"#0f9b6c",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none"})]}):i.jsx("div",{className:"grid grid-cols-4 gap-2",children:yf.map(Z=>i.jsx("button",{type:"button",onClick:()=>D(Z.id),title:Z.label,className:`h-12 rounded-lg border-2 transition-colors ${$===Z.id?"border-green-600 ring-2 ring-green-200":"border-gray-200 hover:border-gray-300"}`,style:{background:Z.css},"aria-label":Z.label},Z.id))})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center justify-between py-4 px-[30px] -mx-[30px] border-y border-gray-200 bg-gray-50",children:[i.jsxs("div",{className:"flex flex-col",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Image Slideshow"}),i.jsx("span",{className:"text-[12px] text-gray-500",children:"Cycle through multiple images"})]}),i.jsx("button",{type:"button",onClick:G,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none shrink-0 ${V?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${V?"translate-x-6":"translate-x-1"}`})})]}),V?i.jsxs("div",{className:"flex gap-4 flex-col",children:[i.jsxs("label",{className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsxs("p",{className:"flex gap-2 items-center",children:[i.jsx(Ui,{})," Slideshow Images"," "]}),i.jsx("span",{className:"text-[13px] font-normal text-gray-500",children:"The first image is shown while others load; if slideshow is turned off later, the first image becomes the main photo."})]}),W.map((Z,ee)=>{const ae=!!B[ee];return i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-[56px] h-[56px] rounded-lg bg-gray-100 flex items-center justify-center overflow-hidden shrink-0",children:[Z?i.jsx("img",{src:Z,alt:"",className:"w-full h-full object-cover"}):i.jsx(Ui,{className:"text-gray-400"}),ae&&i.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:i.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsx("input",{type:"file",id:`hero_slide_${ee}`,accept:"image/*",hidden:!0,onChange:ye=>X(ee,ye.target.files[0])}),i.jsx("button",{type:"button",disabled:ae,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-3 py-2 rounded-[6px] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>document.getElementById(`hero_slide_${ee}`).click(),children:ae?"Uploading...":Z?"Change":"Upload"}),W.length>1&&i.jsx("button",{type:"button",disabled:ae,className:"ml-auto text-gray-400 hover:text-red-500 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>I(ee),"aria-label":"Remove image",children:i.jsx(nu,{width:16})})]},ee)}),i.jsxs("button",{type:"button",onClick:M,className:"text-[13px] font-medium text-green-700 flex items-center gap-1 cursor-pointer",children:[i.jsx(vr,{width:16})," Add Image"]})]}):i.jsxs("div",{className:"flex gap-4 flex-col",children:[i.jsx("label",{htmlFor:"",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:i.jsxs("p",{className:"flex gap-2 items-center",children:[i.jsx(Ui,{})," Main Photo"," "]})}),i.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-1",children:[i.jsx("button",{type:"button",className:`flex-1 py-2 px-4 roun
2934ded-md text-[13px] font-medium transition-all ${u?"text-gray-600 hover:text-gray-800":"bg-white text-green-700 shadow-sm font-semibold"}`,onClick:()=>h(!1),children:"Upload"}),i.jsxs("button",{type:"button",className:`flex-1 py-2 px-4 rounded-md text-[13px] font-medium transition-all flex items-center justify-center gap-1 ${u?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>h(!0),children:[i.jsx(N5,{className:"w-3 h-3"}),"AI Generate"]})]}),u&&i.jsx(ZYe,{onImageGenerated:Z=>t({...e,main_photo:Z}),mdaFullName:n,onLoadingChange:g}),!u&&i.jsxs(i.Fragment,{children:[i.jsx("input",{type:"file",id:"main_photo",onChange:U,hidden:!0}),i.jsx("button",{type:"button",className:"text-[13px] font-medium bg-green-600 text-white px-4 py-2 rounded-[6px] cursor-pointer w-full",onClick:Z=>U(Z,`${n.replace(" ","-")}-landing-page-image`),children:"Choose File to Upload"})]}),s&&i.jsxs("div",{className:"mt-2",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mb-1",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[Math.round(l),"%"]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5",children:i.jsx("div",{className:"bg-green-600 h-1.5 rounded-full transition-all duration-300 ease-out",style:{width:`${l}%`}})})]}),i.jsxs("div",{className:"h-[290px] w-full bg-gray-100 rounded-lg overflow-hidden flex items-center justify-center relative",children:[i.jsx("img",{src:e.main_photo,alt:"",className:"h-full w-full object-cover"}),(s||p)&&i.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),_==="splitCircleFloating"&&i.jsxs("div",{className:"flex gap-4 flex-col border-t border-gray-200 pt-6 mt-2",children:[i.jsxs("label",{htmlFor:"",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsxs("p",{className:"flex gap-2 items-center",children:[i.jsx(Ui,{})," Second Photo"," "]}),i.jsx("span",{className:"text-[13px] font-normal text-gray-500",children:"Shown alongside the main photo in this hero style"})]}),i.jsx("input",{type:"file",id:"secondary_photo",onChange:Z=>U(Z,`${n.replace(" ","-")}-landing-page-secondary-image`,"secondary_photo","secondary_photo"),hidden:!0}),i.jsx("button",{type:"button",className:"text-[13px] font-medium bg-green-600 text-white px-4 py-2 rounded-[6px] cursor-pointer w-full",onClick:Z=>U(Z,`${n.replace(" ","-")}-landing-page-secondary-image`,"secondary_photo","secondary_photo"),children:"Choose File to Upload"}),i.jsx("div",{className:"h-[220px] w-full bg-gray-100 rounded-lg overflow-hidden flex items-center justify-center relative",children:i.jsx("img",{src:e.secondary_photo,alt:"",className:"h-full w-full object-cover"})})]})]})]})]})]})},tKe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),{fullname:n}=Te(y=>y.mdaData),r=v.useRef([]),a=v.useRef(null),s=e.infoBar?.enabled!==!1,o=!!e.infoBar?.sliderEnabled,l=e.infoBar?.messages||[],d=()=>{t({...e,infoBar:{...e.infoBar,enabled:!s}})},u=()=>{t({...e,infoBar:{...e.infoBar,sliderEnabled:!o}})},h=(y,b)=>{const w=[...l];w[b]=y.target.value,t({...e,infoBar:{...e.infoBar,messages:w}})},p=()=>{t({...e,infoBar:{...e.infoBar,messages:[...l,""]}}),setTimeout(()=>{const y=l.length;r.current[y]?r.current[y].scrollIntoView({behavior:"smooth",block:"nearest"}):a.current&&a.current.scrollTo({top:a.current.scrollHeight,behavior:"smooth"})},50)},g=y=>{const b=[...l];b.splice(y,1),t({...e,infoBar:{...e.infoBar,messages:b}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:d,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${s?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${s?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("span",{className:"text-sm font-medium text-gray-700 block",children:"Enable Slider"}),i.jsx("span",{className:"text-xs text-gray-400",children:"Rotate through messages automatically"})]}),i.jsx("button",{onClick:u,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none shrink-0 ml-3 ${o?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${o?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx("div",{className:"p-[30px]",ref:a,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{className:"flex justify-between items-center pb-2 w-full",children:[i.jsx("h3",{className:"font-semibold text-[15px]",children:"Messages"}),i.jsx("button",{onClick:p,className:"px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Message"})]}),i.jsxs("div",{className:"space-y-4",children:[l.map((y,b)=>i.jsxs("div",{ref:w=>r.current[b]=w,className:"flex gap-2 items-start border-b border-gray-200 pb-4",children:[i.jsx("input",{type:"text",value:y,onChange:w=>h(w,b),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:`e.g., Welcome to ${n||"us"}`}),i.jsx("button",{onClick:()=>g(b),className:"text-red-500 text-sm hover:text-red-700 shrink-0 py-3",children:"Remove"})]},b)),l.length===0&&i.jsxs("div",{className:"text-gray-500 text-sm text-center py-4",children:['No messages added yet â defaults to "Welcome to ',n||"us",'".']})]})]})})]})},nKe=()=>{const e=nt(S=>S.setMdaEditData),t=nt(S=>S.mdaEditData),{fullname:n}=Te(S=>S.mdaData),[r,a]=v.useState(new Set),[s,o]=v.useState({}),l=v.useRef([]),d=v.useRef(null),u=()=>{e({...t,enabledSections:{...t.enabledSections,quickDocuments:!t.enabledSections?.quickDocuments}})},h=t.quickDocuments?.backgroundColor,p=S=>{e({...t,quickDocuments:{...t.quickDocuments,backgroundColor:S}})},g=(S,k)=>{const{name:N,value:_}=S.target;e({...t,quickDocuments:{...t.quickDocuments,[N]:_}})},y=(S,k)=>{const{name:N,value:_}=S.target,L=[...t.quickDocuments?.documents||[]];L[k]={...L[k],[N]:_},e({...t,quickDocuments:{...t.quickDocuments,documents:L}})},b=async(S,k)=>{const N=S.target.files[0];if(!N)return;if(N.size>50*1024*1024){ie.error("File size must be less than 50MB");return}a(L=>new Set(L).add(k)),o(L=>({...L,[k]:0}));const _=setInterval(()=>{o(L=>{const E=L[k]||0;return E<90?{...L,[k]:Math.min(E+Math.random()*15,90)}:L})},200);try{const L=`${n.replace(" ","-")}-quick-doc-${k}-${Date.now()}`,E=await QG(N,L);clearInterval(_),o(P=>({...P,[k]:100}));const T=[...t.quickDocuments?.documents||[]];T[k]={...T[k],link:E},e({...t,quickDocuments:{...t.quickDocuments,documents:T}}),ie.success("Document uploaded successfully"),setTimeout(()=>{a(P=>{const $=new Set(P);return $.delete(k),$}),o(P=>{const $={...P};return delete $[k],$})},500)}catch(L){clearInterval(_),ie.error(L.message||"Failed to upload document"),a(E=>{const T=new Set(E);return T.delete(k),T}),o(E=>{const T={...E};return delete T[k],T})}},w=()=>{const S={title:"",link:""};e({...t,quickDocuments:{...t.quickDocuments,documents:[...t.quickDocuments?.documents||[],S]}}),setTimeout(()=>{const k=t.quickDocuments?.documents?.length||0;l.current[k]?l.current[k].scrollIntoView({behavior:"smooth",block:"nearest"}):d.current&&d.current.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},50)},j=S=>{const k=[...t.quickDocuments?.documents||[]];k.splice(S,1),e({...t,quickDocuments:{...t.quickDocuments,documents:k}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:u,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.quickDocuments?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.quickDocuments?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:h,onChange:p}),i.jsx("div",{className:"p-[30px]",ref:d,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Title"}),i.jsx("input",{type:"text",name:"title",value:t.quickDocuments?.title||"",onChange:g,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Enter Title"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Subtitle"}),i.jsx("textarea",{name:"subtitle",value:t.quickDocuments?.subtitle||"",onChange:g,rows:3,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none field-sizing-content min-h-[100px]",placeholder:"Enter preferred section title"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Button Text"}),i.jsx("input",{type:"text",name:"discoverMoreText",value:t.quickDocuments?.discoverMoreText||"",onChange:g,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:"Enter preffered button text"})]}),i.jsx("div",{className:"border-t border-gray-200 pt-4"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex justify-between items-center pb-2 w-full",children:[i.jsx("h3",{className:"font-semibold text-[15px]",children:"Documents"}),i.jsx("button",{onClick:w,className:"px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Document"})]}),i.jsx("div",{className:"space-y-4",children:t.quickDocuments?.documents?.map((S,k)=>(l.current[k]||(l.current[k]=null),i.jsxs("div",{ref:N=>l.current[k]=N,className:"flex gap-4 flex-col border-b border-gray-200 pb-4",children:[i.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i.jsxs("h4",{className:"font-medium text-[14px]",children:["Document ",k+1]}),i.jsx("button",{onClick:()=>j(k),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Document Name"}),i.jsx("input",{type:"text",name:"title",value:S.title||"",onChange:N=>y(N,k),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Document title"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Document File"}),i.jsxs("div",{className:"mt-1 flex items-center",children:[i.jsxs("span",{className:"inline-block h-12 w-12 overflow-hidden bg-gray-100 rounded-md relative flex items-center justify-center",children:[S.link?i.jsx("div",{className:"h-full w-full bg-green-100 flex items-center justify-center",children:i.jsx(Ui,{className:"text-green-600"})}):i.jsx("div",{className:"h-full w-full bg-gray-200 flex items-center justify-center text-[12px]",children:i.jsx(Ui,{className:"text-gray-500"})}),r.has(k)&&i.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsxs("label",{className:"ml-3",children:[i.jsx("div",{className:"cursor-pointer bg-white py-2 px-3 border border-gray-300 rounded-md shadow-xs text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50",children:S.link?"Change":"Upload"}),i.jsx("input",{type:"file",className:"sr-only",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx",onChange:N=>b(N,k)})]})]}),r.has(k)&&i.jsxs("div",{className:"mt-2",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mb-1",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[Math.round(s[k]||0),"%"]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5",children:i.jsx("div",{className:"bg-green-600 h-1.5 rounded-full transition-all duration-300 ease-out",style:{width:`${s[k]||0}%`}})})]}),S.link&&i.jsx("div",{className:"mt-2",children:i.jsx("a",{href:S.link,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-green-600 hover:text-green-800 underline",children:"View uploaded document"})})]})]})]},k)))})]})]})})]})},rKe=()=>{const e=nt(O=>O.setMdaEditData),t=nt(O=>O.mdaEditData),{fullname:n}=Te(O=>O.mdaData),[r,a]=v.useState(-1),[s,o]=v.useState(new Set),[l,d]=v.useState({}),u=v.useRef([]),h=v.useRef(null),p=()=>{e({...t,enabledSections:{...t.enabledSections,quickServices:!t.enabledSections?.quickServices}})},g=t.quickServices?.backgroundColor,y=t.quickServices?.style||"default",b=t.quickServices?.ctaTitle,w=O=>{e({...t,quickServices:{...t.quickServices,backgroundColor:O}})},j=O=>{e({...t,quickServices:{...t.quickServices,style:O}})},S=O=>{e({...t,quickServices:{...t.quickServices,ctaTitle:O}})},k=(O,q)=>{const{name:D,value:z}=O.target,V=[...t.servicesData];D==="linkType"?V[q]={...V[q],linkType:z,link:""}:V[q]={...V[q],[D]:z},e({...t,servicesData:V})},N=O=>{if(!O.link)return"";switch(O.linkType){case"phone":return`tel:${O.link.replace(/[^0-9+]/g,"")}`;case"email":return`mailto:${O.link}`;default:return O.link}},_=O=>{switch(O){case"phone":return"e.g., +1234567890";case"email":return"e.g., [email protected]";default:return"e.g., https://example.com"}},L=O=>{switch(O){case"email":return"email";case"phone":return"tel";default:return"text"}},E=(O,q)=>{if(!O)return!0;switch(q){case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(O);case"phone":return/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(O);default:return!0}},T=async(O,q)=>{const D=O.target.files[0];if(!D)return;if(D.size>2*1024*1024){ie.error("File size must be less than 2MB");return}const z=URL.createObjectURL(D),V=[...t.servicesData];V[q]={...V[q],image:z},o(B=>new Set(B).add(q)),d(B=>({...B,[q]:0}));const W=setInterval(()=>{d(B=>{const H=B[q]||0;return H<90?{...B,[q]:Math.min(H+Math.random()*15,90)}:B})},200);e({...t,servicesData:V}),wa(D,`${n.replace(" ","-")}-quick-services-image-${q}`).then(B=>
2934{if(B.status==="ok"){clearInterval(W),d(G=>({...G,[q]:100}));const H=nt.getState().mdaEditData;e({...H,servicesData:H.servicesData.map((G,K)=>K===q?{...G,image:B.url}:G)}),setTimeout(()=>{o(G=>{const K=new Set(G);return K.delete(q),K}),d(G=>{const K={...G};return delete K[q],K})},500)}else clearInterval(W),ie.error(B.message||"Failed to upload image. Please try again."),o(H=>{const G=new Set(H);return G.delete(q),G}),d(H=>{const G={...H};return delete G[q],G})}).catch(B=>{clearInterval(W),ie.error(B.message),o(H=>{const G=new Set(H);return G.delete(q),G}),d(H=>{const G={...H};return delete G[q],G})})},P=()=>{e({...t,servicesData:[...t.servicesData||[],{title:"",link:"",linkType:"page"}]}),setTimeout(()=>{const O=t.servicesData?.length||0;u.current[O]?u.current[O].scrollIntoView({behavior:"smooth",block:"nearest"}):h.current&&h.current.scrollTo({top:h.current.scrollHeight,behavior:"smooth"})},50)},$=O=>{const q=[...t.servicesData];q.splice(O,1),e({...t,servicesData:q})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:p,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.quickServices?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.quickServices?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:g,onChange:w}),i.jsx("div",{className:"p-[30px]",children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-[14px] mb-3",children:"Layout Style"}),i.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-1",children:[i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${y==="default"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>j("default"),children:"Photo Row"}),i.jsx("button",{type:"button",className:`flex-1 py-2 px-3 rounded-md text-[12px] font-medium transition-all ${y==="imageCards"?"bg-white text-green-700 shadow-sm font-semibold":"text-gray-600 hover:text-gray-800"}`,onClick:()=>j("imageCards"),children:"Image Cards"})]})]}),y==="imageCards"&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"CTA Card Title"}),i.jsx("textarea",{value:b||"",onChange:O=>S(O.target.value),className:"focus:border-green-600 border-[1px] border-transparent w-full min-h-[70px] bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none",placeholder:"Check out our citizens services"}),i.jsx("p",{className:"text-[12px] text-gray-500 mt-1",children:"Shown on the green card that links to the full services page"})]}),i.jsx("div",{className:"flex justify-between items-center pb-6 w-full",children:i.jsx("button",{onClick:P,className:"w-full px-5 py-3 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Service"})}),i.jsx("div",{className:"space-y-6",children:t.servicesData?.map((O,q)=>(u.current[q]||(u.current[q]=null),i.jsxs("div",{ref:D=>u.current[q]=D,className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("div",{className:"flex justify-between items-center mb-3",children:[i.jsxs("h3",{className:"font-semibold text-[15px]",children:["Service ",q+1]}),i.jsx("button",{onClick:()=>$(q),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Title"}
2934),i.jsx("input",{type:"text",name:"title",value:O.title||"",onChange:D=>k(D,q),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Service title"})]}),y==="imageCards"&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Description"}),i.jsx("textarea",{name:"description",value:O.description||"",onChange:D=>k(D,q),className:"focus:border-green-600 border-[1px] border-transparent w-full min-h-[60px] bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none",placeholder:"Short description shown on the card"})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex justify-between items-center mb-1",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Link"}),i.jsxs("div",{className:"relative text-left flex items-center gap-1",children:[i.jsxs("button",{type:"button",onClick:()=>a(r===q?-1:q),className:"inline-flex items-center text-xs text-gray-600 hover:text-gray-900",children:[!O.linkType||O.linkType==="page"?i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(nb,{})})," ",i.jsx("p",{className:"font-semibold",children:"Page URL"})]}):O.linkType==="phone"?i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(Gm,{})})," ",i.jsx("p",{className:"font-semibold",children:"Phone Number"})]}):i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(Vm,{})})," ",i.jsx("p",{className:"font-semibold",children:"Email Address"})]}),i.jsx(ar,{className:"ml-1 h-3 w-3"})]}),r===q&&i.jsx("div",{className:"origin-top-right absolute right-0 mt-1 w-40 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-10",children:i.jsxs("div",{className:"py-1",children:[i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${O.linkType==="page"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{k({target:{name:"linkType",value:"page"}},q),a(-1)},children:"Page URL"}),i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${O.linkType==="phone"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{k({target:{name:"linkType",value:"phone"}},q),a(-1)},children:"Phone Number"}),i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${O.linkType==="email"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{k({target:{name:"linkType",value:"email"}},q),a(-1)},children:"Email Address"})]})})]})]}),i.jsx("div",{className:"flex items-center",children:i.jsx("input",{type:L(O.linkType),name:"link",value:O.link||"",onChange:D=>k(D,q),className:`focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none ${O.link&&!E(O.link,O.linkType)?"border-red-300 focus:border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-green-500 focus:border-green-500"}`,placeholder:_(O.linkType)})}),O.link&&!E(O.link,O.linkType)&&i.jsx("p",{className:"mt-1 text-xs text-red-600",children:O.linkType==="email"?"Please enter a valid email address":"Please enter a valid phone number"}),i.jsx("input",{type:"hidden",name:"formattedLink",value:N(O)})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Image"}),i.jsxs("div",{className:"mt-1 flex items-center",children:[i.jsxs("span",{className:"inline-block h-12 w-12 overflow-hidden bg-gray-100 rounded-md relative",children:[O.image?i.jsx("img",{src:O.image,alt:"Service",className:"h-full w-full object-cover"}):i.jsx("div",{className:"h-full w-full bg-gray-200 flex items-center justify-center text-[12px]",children:i.jsx(Ui,{className:"text-gray-500"})}),s.has(q)&&i.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsxs("label",{className:"ml-3",children:[i.jsx("div",{className:"cursor-pointer bg-white py-2 px-3 border border-gray-300 rounded-md shadow-xs text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50",children:"Change"}),i.jsx("input",{type:"file",className:"sr-only",accept:"image/*",onChange:D=>T(D,q)})]})]}),s.has(q)&&i.jsxs("div",{className:"mt-2",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mb-1",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[Math.round(l[q]||0),"%"]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5",children:i.jsx("div",{className:"bg-green-600 h-1.5 rounded-full transition-all duration-300 ease-out",style:{width:`${l[q]||0}%`}})})]})]})]})]},q)))})]})})]})},iKe=()=>{const e=nt(w=>w.setMdaEditData),t=nt(w=>w.mdaEditData),{fullname:n}=Te(w=>w.mdaData),[r,a]=v.useState(new Set),[s,o]=v.useState({}),l=v.useRef([]),d=v.useRef(null),u=()=>{e({...t,enabledSections:{...t.enabledSections,resourceCategories:!t.enabledSections?.resourceCategories}})},h=w=>{const{name:j,value:S}=w.target;e({...t,resourceCategories:{...t.resourceCategories,[j]:S}})},p=(w,j)=>{const{name:S,value:k}=w.target,N=[...t.resourceCategories?.cards||[]];N[j]={...N[j],[S]:k},e({...t,resourceCategories:{...t.resourceCategories,cards:N}})},g=async(w,j)=>{const S=w.target.files[0];if(!S)return;if(S.size>2*1024*1024){ie.error("File size must be less than 2MB");return}const k=URL.createObjectURL(S),N=[...t.resourceCategories?.cards||[]];N[j]={...N[j],image:k},a(L=>new Set(L).add(j)),o(L=>({...L,[j]:0}));const _=setInterval(()=>{o(L=>{const E=L[j]||0;return E<90?{...L,[j]:Math.min(E+Math.random()*15,90)}:L})},200);e({...t,resourceCategories:{...t.resourceCategories,cards:N}}),wa(S,`${n.replace(" ","-")}-resource-card-image-${j}`).then(L=>{if(L.status==="ok"){clearInterval(_),o(T=>({...T,[j]:100}));const E=nt.getState().mdaEditData;e({...E,resourceCategories:{...E.resourceCategories,cards:E.resourceCategories.cards.map((T,P)=>P===j?{...T,image:L.url}:T)}}),setTimeout(()=>{a(T=>{const P=new Set(T);return P.delete(j),P}),o(T=>{const P={...T};return delete P[j],P})},500)}else clearInterval(_),ie.error(L.message||"Failed to upload image. Please try again."),a(E=>{const T=new Set(E);return T.delete(j),T}),o(E=>{const T={...E};return delete T[j],T})}).catch(L=>{clearInterval(_),ie.error(L.message),a(E=>{const T=new Set(E);return T.delete(j),T}),o(E=>{const T={...E};return delete T[j],T})})},y=()=>{const w={title:"",description:"",buttonText:"View Documents",image:""};e({...t,resourceCategories:{...t.resourceCategories,cards:[...t.resourceCategories?.cards||[],w]}}),setTimeout(()=>{const j=t.resourceCategories?.cards?.length||0;l.current[j]?l.current[j].scrollIntoView({behavior:"smooth",block:"nearest"}):d.current&&d.current.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},50)},b=w=>{const j=[...t.resourceCategories?.cards||[]];j.splice(w,1),e({...t,resourceCategories:{...t.resourceCategories,cards:j}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:u,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.resourceCategories?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.resourceCategories?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx("div",{className:"p-[30px]",ref:d,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Section Title"}),i.jsx("input",{type:"text",name:"title",value:t.resourceCategories?.title||"",onChange:h,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 roun
2934ded-[6px] text-[14px] outline-none",placeholder:"Budget Resources & Documents"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Section Subtitle"}),i.jsx("textarea",{name:"subtitle",value:t.resourceCategories?.subtitle||"",onChange:h,rows:3,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none field-sizing-content min-h-[100px]",placeholder:"Access comprehensive budget documents, financial statements, and transparency reports"})]}),i.jsx("div",{className:"border-t border-gray-200 pt-4"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex justify-between items-center pb-2 w-full",children:[i.jsx("h3",{className:"font-semibold text-[15px]",children:"Resource Cards"}),i.jsx("button",{onClick:y,className:"px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Card"})]}),i.jsx("div",{className:"space-y-4",children:t.resourceCategories?.cards?.map((w,j)=>(l.current[j]||(l.current[j]=null),i.jsxs("div",{ref:S=>l.current[j]=S,className:"flex gap-4 flex-col border-b border-gray-200 pb-4",children:[i.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i.jsxs("h4",{className:"font-medium text-[14px]",children:["Card ",j+1]}),i.jsx("button",{onClick:()=>b(j),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Card Title"}),i.jsx("input",{type:"text",name:"title",value:w.title||"",onChange:S=>p(S,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"Card title"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Card Description"}),i.jsx("textarea",{name:"description",value:w.description||"",onChange:S=>p(S,j),rows:3,className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none resize-none",placeholder:"Card description"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Button Text"}),i.jsx("input",{type:"text",name:"buttonText",value:w.buttonText||"",onChange:S=>p(S,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"View Documents"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Card Image"}),i.jsxs("div",{className:"mt-1 flex items-center",children:[i.jsxs("span",{className:"inline-block h-12 w-12 overflow-hidden bg-gray-100 rounded-md relative",children:[w.image?i.jsx("img",{src:w.image,alt:"Card",className:"h-full w-full object-cover"}):i.jsx("div",{className:"h-full w-full bg-gray-200 flex items-center justify-center text-[12px]",children:i.jsx(Ui,{className:"text-gray-500"})}),r.has(j)&&i.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center",children:i.jsx("div",{className:"w-8 h-8 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsxs("label",{className:"ml-3",children:[i.jsx("div",{className:"cursor-pointer bg-white py-2 px-3 border border-gray-300 rounded-md shadow-xs text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50",children:"Change"}),i.jsx("input",{type:"file",className:"sr-only",accept:"image/*",onChange:S=>g(S,j)})]})]}),r.has(j)&&i.jsxs("div",{className:"mt-2",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-600 mb-1",children:[i.jsx("span",{children:"Uploading..."}),i.jsxs("span",{children:[Math.round(s[j]||0),"%"]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5",children:i.jsx("div",{className:"bg-green-600 h-1.5 rounded-full transition-all duration-300 ease-out",style:{width:`${s[j]||0}%`}})})]})]})]})]},j)))})]})]})})]})},aKe=[{value:"style1",label:"Card Grid"},{value:"style2",label:"Scroll Cards"}],sKe=({style:e})=>e==="style2"?i.jsxs("div",{className:"w-full h-full flex gap-1 p-1",children:[i.jsx("div",{className:"flex-1 rounded bg-green-600"}),i.jsx("div",{className:"flex-1 rounded bg-gray-300"}),i.jsx("div",{className:"flex-1 rounded bg-gray-300"})]}):i.jsxs("div",{className:"w-full h-full grid grid-cols-3 gap-1 p-1",children:[i.jsx("div",{className:"rounded bg-gray-300"}),i.jsx("div",{className:"rounded bg-gray-300"}),i.jsx("div",{className:"rounded bg-gray-300"})]}),oKe=()=>{const e=nt(d=>d.setMdaEditData),t=nt(d=>d.mdaEditData),{slug:n}=Te(d=>d.mdaData);let r=pt();const a=t?.services_style||"style1",s=d=>{e({...t,services_style:d})},o=()=>{e({...t,enabledSections:{...t.enabledSections,services:!t.enabledSections?.services}})},l=()=>{n&&r(`/${n}/admin/services`)};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:o,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.services?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.services?"translate-x-6":"translate-x-1"}`})})]})}),i.jsxs("div",{className:"px-[30px] pt-[20px]",children:[i.jsx("p",{className:"font-semibold text-[14px] mb-3",children:"Services Style"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:aKe.map(d=>i.jsxs("button",{type:"button",onClick:()=>
2934s(d.value),className:`flex flex-col gap-2 p-2 rounded-lg border-2 transition-colors text-left ${a===d.value?"border-green-600 bg-green-50":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:"w-full h-[50px]",children:i.jsx(sKe,{style:d.value})}),i.jsx("span",{className:"text-[11px] font-medium text-gray-700 leading-tight",children:d.label})]},d.value))})]}),i.jsx("div",{className:"p-[30px]",children:i.jsx("div",{className:"flex flex-col gap-6",children:i.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4",children:i.jsxs("div",{className:"flex items-start gap-3 flex-col",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx("svg",{className:"h-6 w-6 text-amber-400 mt-0.5",viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"text-sm font-medium text-amber-800 mb-2",children:"Add Services to this MDA"}),i.jsx("p",{className:"text-sm text-amber-700 mb-5",children:"To add services to this MDA, navigate to the services section from the sidebar to add services."}),i.jsxs("button",{onClick:l,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-amber-600 text-white text-sm font-medium rounded-md hover:bg-amber-700 transition-colors mb-2",children:[i.jsx(er,{fontSize:10}),"Go to Services"]})]})]})})})})]})},lKe=[{value:"style1",label:"Number Row"},{value:"style2",label:"Icon Cards"}],cKe=({style:e})=>e==="style2"?i.jsx("div",{className:"w-full h-full grid grid-cols-3 gap-1 p-1",children:[0,1,2].map(t=>i.jsx("div",{className:"rounded bg-gray-300 flex items-center justify-center",children:i.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-white"})},t))}):i.jsx("div",{className:"w-full h-full flex items-center justify-center gap-2 px-1",children:[0,1,2].map(t=>i.jsxs("div",{className:"flex flex-col items-center gap-1",children:[i.jsx("div",{className:"w-6 h-1.5 bg-gray-500 rounded-full"}),i.jsx("div",{className:"w-8 h-1 bg-gray-300 rounded-full"})]},t))}),uKe=()=>{const e=nt(w=>w.setMdaEditData),t=nt(w=>w.mdaEditData),{fullname:n}=Te(w=>w.mdaData),r=v.useRef(null),[a,s]=v.useState({}),o=t?.statistics_style||"style1",l=w=>{e({...t,statistics_style:w})},d=()=>{e({...t,enabledSections:{...t.enabledSections,statistics:!t.enabledSections?.statistics}})},u=(w,j)=>{const{name:S,value:k}=w.target,N=[...t.statistics?.items||[]];N[j]={...N[j],[S]:k},e({...t,statistics:{...t.statistics,items:N}})},h=t.statistics?.backgroundColor,p=w=>{e({...t,statistics:{...t.statistics,backgroundColor:w}})},g=()=>{const w={label:"",value:"",icon:""};e({...t,statistics:{...t.statistics,items:[...t.statistics?.items||[],w]}})},y=w=>{const j=[...t.statistics?.items||[]];j.splice(w,1),e({...t,statistics:{...t.statistics,items:j}})},b=(w,j)=>{if(!j)return;if(j.size>50*1024*1024){ie.error("File size must be less than 50MB");return}const S=URL.createObjectURL(j),k=[...t.statistics?.items||[]];k[w]={...k[w],icon:S},e({...t,statistics:{...t.statistics,items:k}}),s(N=>({...N,[w]:!0})),wa(j,`${n.replace(" ","-")}-statistic-icon-${w}`).then(N=>{if(N.status==="ok"){const _=[...t.statistics?.items||[]];_[w]={..._[w],icon:N.url},e({...t,statistics:{...t.statistics,items:_}})}else ie.error(N.message||"Failed to upload icon. Please try again.")}).catch(N=>{ie.error(N?.message||"Failed to upload icon. Please try again.")}).finally(()=>{s(N=>{const _={...N};return delete _[w],_})})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:d,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.statistics?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.statistics?"translate-x-6":"translate-x-1"}`})})]})}),i.jsxs("div",{className:"px-[30px] pt-[20px]",children:[i.jsx("p",{className:"font-semibold text-[14px] mb-3",children:"Statistics Style"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:lKe.map(w=>i.jsxs("button",{type:"button",onClick:()=>
2934l(w.value),className:`flex flex-col gap-2 p-2 rounded-lg border-2 transition-colors text-left ${o===w.value?"border-green-600 bg-green-50":"border-gray-200 hover:border-gray-300"}`,children:[i.jsx("div",{className:"w-full h-[50px]",children:i.jsx(cKe,{style:w.value})}),i.jsx("span",{className:"text-[11px] font-medium text-gray-700 leading-tight",children:w.label})]},w.value))})]}),i.jsx(Rs,{value:h,onChange:p}),i.jsx("div",{className:"p-[30px]",ref:r,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{className:"flex justify-between items-center pb-2 w-full",children:[i.jsx("h3",{className:"font-semibold text-[15px]",children:"Statistics Items"}),i.jsx("button",{onClick:g,className:"px-3 py-1.5 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Statistic"})]}),i.jsxs("div",{className:"space-y-4",children:[t.statistics?.items?.map((w,j)=>{const S=!!a[j];return i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-4",children:[i.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i.jsxs("h4",{className:"font-medium text-[14px]",children:["Statistic ",j+1]}),i.jsx("button",{onClick:()=>y(j),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[o==="style2"&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Icon"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"relative w-[48px] h-[48px] rounded-lg bg-gray-100 flex items-center justify-center overflow-hidden shrink-0",children:[w.icon?i.jsx("img",{src:w.icon,alt:"",className:"w-full h-full object-contain p-1"}):i.jsx(Ui,{className:"text-gray-400",width:18}),S&&i.jsx("div",{className:"absolute inset-0 bg-black/50 flex items-center justify-center",children:i.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})})]}),i.jsx("input",{type:"file",id:`statistic_icon_${j}`,accept:"image/*",hidden:!0,onChange:k=>b(j,k.target.files[0])}),i.jsx("button",{type:"button",disabled:S,className:"text-[13px] font-medium bg-gray-100 text-gray-700 px-3 py-2 rounded-[6px] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>document.getElementById(`statistic_icon_${j}`).click(),children:S?"Uploading...":w.icon?"Change":"Upload"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Statistic Label"}),i.jsx("input",{type:"text",name:"label",value:w.label||"",onChange:k=>u(k,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., 2024 Budget Size"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Statistic Value"}),i.jsx("input",{type:"text",name:"value",value:w.value||"",onChange:k=>u(k,j),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., â¦2.5 Trillion"})]})]})]},j)}),(!t.statistics?.items||t.statistics.items.length===0)&&i.jsx("div",{className:"text-gray-500 text-sm text-center py-4",children:'No statistics added yet. Click "Add Statistic" to get started.'})]})]})})]})},dKe=()=>{const e=nt(j=>j.setMdaEditData),t=nt(j=>j.mdaEditData),[n,r]=v.useState(-1),a=v.useRef([]),s=v.useRef(null),o=()=>{e({...t,enabledSections:{...t.enabledSections,supportLinks:!t.enabledSections?.supportLinks}})},l=t.supportLinksSettings?.backgroundColor,d=j=>{e({...t,supportLinksSettings:{...t.supportLinksSettings,backgroundColor:j}})},u=(j,S)=>{const{name:k,value:N}=j.target,_=[...t.supportLinks||[]];k==="linkType"?_[S]={..._[S],linkType:N,link:""}:_[S]={..._[S],[k]:N},e({...t,supportLinks:_})},h=j=>{if(!j.link)return"";switch(j.linkType){case"phone":return`tel:${j.link.replace(/[^0-9+]/g,"")}`;case"email":return`mailto:${j.link}`;default:return j.link}},p=j=>{switch(j){case"phone":return"e.g., +1234567890";case"email":return"e.g., [email protected]";default:return"e.g., https://example.com"}},g=j=>{switch(j){case"email":return"email";case"phone":return"tel";default:return"text"}},y=(j,S)=>{if(!j)return!0;switch(S){case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j);case"phone":return/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(j);default:return!0}},b=()=>{e({...t,supportLinks:[...t.supportLinks||[],{text:"",link:"",linkType:"page"}]}),setTimeout(()=>{const j=t.supportLinks?.length||0;a.current[j]?a.current[j].scrollIntoView({behavior:"smooth",block:"nearest"}):s.current&&s.current.scrollTo({top:s.current.scrollHeight,behavior:"smooth"})},50)},w=j=>{const S=[...t.supportLinks||[]];S.splice(j,1),e({...t,supportLinks:S})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:o,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.supportLinks?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.supportLinks?"translate-x-6":"translate-x-1"}`})})]})}
2934),i.jsx(Rs,{value:l,onChange:d}),i.jsx("div",{className:"p-[30px]",ref:s,children:i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsx("div",{className:"flex justify-between items-center pb-6 w-full",children:i.jsx("button",{onClick:b,className:"w-full px-5 py-3 text-sm font-medium text-white bg-green-600 rounded-md hover:bg-green-700",children:"Add Support Link"})}),i.jsx("div",{className:"space-y-6",children:t.supportLinks?.map((j,S)=>(a.current[S]||(a.current[S]=null),i.jsxs("div",{ref:k=>a.current[S]=k,className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("div",{className:"flex justify-between items-center mb-3",children:[i.jsxs("h3",{className:"font-semibold text-[15px]",children:["Support Link ",S+1]}),i.jsx("button",{onClick:()=>w(S),className:"text-red-500 text-sm hover:text-red-700",children:"Remove"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Link Text"}),i.jsx("input",{type:"text",name:"text",value:j.text||"",onChange:k=>u(k,S),className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., Contact Support, Help Center, FAQ"})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex justify-between items-center mb-1",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Link URL"}),i.jsxs("div",{className:"relative text-left flex items-center gap-1",children:[i.jsxs("button",{type:"button",onClick:()=>r(n===S?-1:S),className:"inline-flex items-center text-xs text-gray-600 hover:text-gray-900",children:[!j.linkType||j.linkType==="page"?i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(nb,{})})," ",i.jsx("p",{className:"font-semibold",children:"Page URL"})]}):j.linkType==="phone"?i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(Gm,{})})," ",i.jsx("p",{className:"font-semibold",children:"Phone Number"})]}):i.jsxs("div",{className:"flex gap-1",children:[" ",i.jsx("span",{className:"text-gray-600",children:i.jsx(Vm,{})})," ",i.jsx("p",{className:"font-semibold",children:"Email Address"})]}),i.jsx(ar,{className:"ml-1 h-3 w-3"})]}),n===S&&i.jsx("div",{className:"origin-top-right absolute right-0 mt-1 w-40 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-10",children:i.jsxs("div",{className:"py-1",children:[i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${j.linkType==="page"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{u({target:{name:"linkType",value:"page"}},S),r(-1)},children:"Page URL"}),i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${j.linkType==="phone"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{u({target:{name:"linkType",value:"phone"}},S),r(-1)},children:"Phone Number"}),i.jsx("button",{type:"button",className:`block w-full text-left px-4 py-2 text-sm ${j.linkType==="email"?"bg-gray-100 text-gray-900":"text-gray-700"}`,onClick:()=>{u({target:{name:"linkType",value:"email"}},S),r(-1)},children:"Email Address"})]})})]})]}),i.jsx("div",{className:"flex items-center",children:i.jsx("input",{type:g(j.linkType),name:"link",value:j.link||"",onChange:k=>u(k,S),className:`focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none ${j.link&&!y(j.link,j.linkType)?"border-red-300 focus:border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-green-500 focus:border-green-500"}`,placeholder:p(j.linkType)})}),j.link&&!y(j.link,j.linkType)&&i.jsx("p",{className:"mt-1 text-xs text-red-600",children:j.linkType==="email"?"Please enter a valid email address":"Please enter a valid phone number"}),i.jsx("input",{type:"hidden",name:"formattedLink",value:h(j)})]})]})]},S)))})]})})]})},fKe=()=>{const{mdaEditData:e,setMdaEditData:t}=nt(),n=e.enabledSections?.upcomingEvents!==!1,r=e.upcomingEvents?.backgroundColor,a=()=>{t({...e,enabledSections:{...e.enabledSections,upcomingEvents:!n}})},s=o=>{t({...e,upcomingEvents:{...e.upcomingEvents,backgroundColor:o}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white p-[30px] overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[30px] bg-gray-100 -mx-[30px]",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable Section"}),i.jsx("button",{onClick:a,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${n?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${n?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx("div",{className:"-mx-[30px]",children:i.jsx(Rs,{value:r,onChange:s})}),i.jsxs("p",{className:"text-[13px] text-gray-500 leading-[1.6] mt-6",children:["This section automatically shows your 3 most recent events, and disappears on its own if you haven't created any yet. To add or manage events, go to"," ",i.jsx("span",{className:"font-semibold text-gray-700",children:"Events"})," in the sidebar."]})]})},hKe=e=>{if(!e||typeof e!="string")return e||"";if(pKe(e)){const t=e.match(/(?:youtu\.be\/|youtube\.com\/embed\/)([^#\&\?\/]+)/);if(t&&t[1])return t[1];const n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,r=e.match(n);if(r&&r[2]?.length===11)return r[2]}return e},pKe=e=>e?/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+$/.test(e):!1,mKe=()=>{const e=nt(l=>l.setMdaEditData),t=nt(l=>l.mdaEditData),n=t?.youtubePlayer||{},r=t.youtubePlayer?.backgroundColor,a=l=>{e({...t,youtubePlayer:{...t.youtubePlayer,backgroundColor:l}})},s=()=>{e({...t,enabledSections:{...t.enabledSections,youtubePlayer:!t.enabledSections?.youtubePlayer}}
2934)},o=l=>{e({...t,youtubePlayer:{id:hKe(l.target.value)}})};return i.jsxs("div",{className:"fixed top-[145px] left-0 w-[350px] h-[calc(100vh-145px)] bg-white overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] z-90",children:[i.jsx(oi,{}),i.jsx("div",{className:"py-[20px] px-[30px] border-b border-gray-200 mt-[60px] bg-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable ySection"}),i.jsx("button",{onClick:s,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${t.enabledSections?.youtubePlayer?"bg-green-600":"bg-gray-300"}`,children:i.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enabledSections?.youtubePlayer?"translate-x-6":"translate-x-1"}`})})]})}),i.jsx(Rs,{value:r,onChange:a}),i.jsx("div",{className:"p-[30px] mt-[0px]",children:i.jsxs("form",{action:"",className:"flex flex-col gap-6",children:[i.jsxs("div",{className:"flex gap-4 flex-col border-b border-gray-200 pb-6",children:[i.jsxs("label",{htmlFor:"id",className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"YouTube Video ID"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"The ID from the YouTube video URL (e.g., dQw4w9WgXcQ)"})]}),i.jsx("input",{type:"text",name:"id",id:"youtubeId",className:"focus:border-green-600 border-[1px] border-transparent w-full bg-gray-100 py-3 px-4 rounded-[6px] text-[14px] outline-none",placeholder:"e.g., dQw4w9WgXcQ",value:n?.id||"",onChange:o})]}),n?.id&&i.jsxs("div",{className:"flex gap-4 flex-col",children:[i.jsxs("label",{className:"font-semibold text-[14px] flex gap-[1px] flex-col",children:[i.jsx("p",{children:"Video Preview"}),i.jsx("span",{className:"flex text-[13px] font-normal text-gray-500 items-center gap-1",children:"This is how the video will appear on your site"})]}),i.jsx("div",{className:"mt-2 w-full aspect-video bg-gray-100 rounded-lg overflow-hidden",children:i.jsx("iframe",{src:`https://www.youtube.com/embed/${n.id}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})]})]})})]})},gKe={heroSection:"",quickServices:"",commissionerZone:"commissionersZone",youtubePlayer:"youtubePlayer"},vKe=()=>{const e=Te(Be=>Be.mdaData),t=Ye(Be=>Be.setDevice),n=Ye(Be=>Be.selectedComponent),r=Ye(Be=>Be.setSelectedComponent),[a,s]=v.useState("desktop"),[o,l]=v.useState("preview"),[d,u]=v.useState(!1),[h,p]=v.useState(!1),[g,y]=v.useState(""),[b,w]=v.useState([]),[j,S]=v.useState(!1),[k,N]=v.useState(null),_=v.useRef(null),L=v.useRef(null),E=Ye(Be=>Be.setEditViewMode),T=nt(Be=>Be.setMdaEditData),P=nt(Be=>Be.mdaEditData),{setActiveDraftId:$,activeDraftId:O,setOriginalData:q,originalData:D,currentMda:z,setCurrentMda:V,clearEditData:W}=nt(),[B,H]=v.useState(null),[G,K]=v.useState(null),[M,I]=v.useState(!1),[X,F]=v.useState("");v.useEffect(()=>{e?.slug&&z&&e.slug!==z&&(W(),H(null),K("")),e?.slug&&e.slug!==z&&V(e.slug)},[e?.slug,z,W,V]);const U=async Be=>{if(!Be)return;const qe=await XVe(Be);qe?.data?(H(qe.data),K(qe.data._id)):H(null)};v.useEffect(()=>{U(O)},[O]);const Z=async Be=>{const qe=await OC({title:Be||"Untitled Draft",data:P,mda:e.slug});qe.data&&(L.current=qe.data._id,$(qe.data._id),T(qe.data),q(qe.data))},ee=async Be=>{if(!(!O||!P)){S(!0);try{const qe=await hJ(O,Be?{data:Be}:{data:P,mda:e.slug});if(qe?.httpStatus===404){console.warn("Draft not found, likely deleted. Creating a new one..."),await Z("Auto-recovered Draft");return}if(!qe||qe?.status==="error"){console.error("Auto-save failed:",qe?.message);return}N(new Date),q(Be||P)}catch(qe){console.error("Auto-save failed:",qe),qe?.response?.status===404&&await Z("Auto-recovered Draft")}finally{S(!1)}}},ae=async()=>{if(!e?.landingPage)return;const Be=e.landingPage;T(Be),await ee(Be),ie.success("Reset to original and saved!")},ye=Be=>{const qe=gKe[n]||"",Tt={...P,...qe?{[qe]:{...P[qe],...Be}}:Be};T(Tt)},J=v.useRef(!1);v.useEffect(()=>{(async()=>
2934{if(!(J.current||!e?.slug)&&!(O&&O===L.current)){J.current=!0;try{if(O){const qe=await Lu(O);if(qe&&qe?.data)T(qe.data),q(qe.data);else{const Tt=await OC({title:`${e.fullname} - Ready Initial Draft`,data:e?.landingPage||{},mda:e.slug});Tt.data&&(L.current=Tt.data._id,$(Tt.data._id),T(Tt.data),q(Tt.data))}}else{const qe=await OC({title:`${e.fullname} - Initial Draft`,data:e?.landingPage||{},mda:e.slug});qe.data&&(L.current=qe.data._id,$(qe.data._id),T(qe.data),q(qe.data))}}catch(qe){console.error("Initialization failed:",qe)}finally{J.current=!1}}})()},[e?.slug,O]),v.useEffect(()=>(O&&o==="edit"&&(_.current=setInterval(()=>{JSON.stringify(D)===JSON.stringify(P)||ee()},3e3)),()=>{_.current&&clearInterval(_.current)}),[O,P,o,D,q,T]),v.useEffect(()=>{t(a)},[a]),v.useEffect(()=>{E(o),o==="preview"&&r("")},[o]);const re=()=>{u(!d)},{isPublishing:ge}=YVe(),Q=()=>{p(!0)},[Se,je]=v.useState(!1),Ne=async()=>{je(!0);try{B&&G!==""?await ZVe(G,{draftId:O,mda:e?.slug,notes:g}):await KVe({draftId:O,mda:e?.slug,notes:g}),y(""),await U(O)}finally{je(!1),p(!1)}},[He,ct]=v.useState(!1);v.useEffect(()=>{if(!e?.landingPage||!P)return;const Be=JSON.stringify(e.landingPage)!==JSON.stringify(P);ct(Be)},[P,e?.landingPage]);const xt=()=>{switch(n){case"heroSection":return i.jsx(eKe,{});case"infoBar":return i.jsx(tKe,{});case"coreInformation":return i.jsx(zYe,{saveDraft:ee});case"quickServices":return i.jsx(rKe,{});case"commissionerZone":return i.jsx(FYe,{});case"youtubePlayer":return i.jsx(mKe,{});case"services":return i.jsx(oKe,{});case"quickDocuments":return i.jsx(nKe,{});case"resourceCategories":return i.jsx(iKe,{});case"statistics":return i.jsx(uKe,{});case"supportLinks":return i.jsx(dKe,{});case"galleryPreview":return i.jsx(UYe,{});case"upcomingEvents":return i.jsx(fKe,{});case"documentShowcase":return i.jsx(HYe,{});case"header":return i.jsx(WYe,{});default:return null}},Ct=()=>B?B?.status==="pending"?i.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-800 px-4 py-2 rounded-md mb-4 w-full text-center text-[15px] -mt-[14px] font-medium",children:"This draft is awaiting approval at the moment, you can still make changes to it."}):B?.status==="published"?i.jsx("div",{className:"bg-green-100 border border-green-400 text-green-800 px-4 py-2 rounded-md mb-4 w-full text-center text-[15px] -mt-[14px] font-medium",children:"This draft has been approved and is now live."}):B?.status==="rejected"?i.jsxs("div",{className:"bg-red-100 border border-red-400 text-red-800 px-4 py-2 rounded-md mb-4 w-full text-center text-[15px] -mt-[14px] font-medium",children:["This draft has been rejected. Please make the necessary changes and resubmit."," ",i.jsx("span",{className:"text-white cursor-pointer ml-2 text-sm bg-red-600 px-2 py-[6px] rounded",onClick:()=>{F(B.reasonForRejection||"No rejection reason provided"),I(!0)},children:"View Reason"})]}):null:null;return i.jsxs(X4,{children:[i.jsxs("div",{className:`fixed bg-gray-300 w-full left-0 top-[145px] flex items-center px-[30px] py-[30px] ${o==="edit"?"justify-end":"justify-center flex-col"}`,children:[i.jsxs("div",{className:"bg-white fixed top-[80px] left-0 z-500 flex items-center justify-between w-full h-[65px] px-[70px] border-y border-gray-200",children:[i.jsxs("div",{className:"flex gap-3",children:[i.jsxs("div",{className:"px-4 py-2 text-sm font-medium text-white bg-gray-800 border border-transparent rounded-md hover:bg-gray-700 focus:outline-none cursor-pointer flex items-center gap-1",onClick:()=>Z(),children:[i.jsx(vr,{className:"ml-[-4px] text-[11px]"}),"New Draft"]}),i.jsxs("div",{className:`px-4 py-2 text-sm font-medium border border-transparent rounded-md focus:outline-none flex items-center gap-2 transition-all ${He?"text-gray-700 bg-gray-200 hover:bg-green-700 hover:text-white cursor-pointer":"text-gray-400 bg-gray-100 cursor-not-allowed opacity-50"}`,onClick:()=>He&&ae(),children:[i.jsx(oce,{className:"ml-[-4px] text-[10px]"}),"Reset to Original"]})]}),i.jsxs("div",{className:"flex items-center gap-2 p-1.5 rounded-lg absolute left-1/2 transform -translate-x-1/2",children:[i.jsx("button",{className:`h-9 w-9 flex items-center justify-center rounded-md hover:bg-white transition-all ${a==="desktop"?"bg-[#d8e9e370]":""}`,title:"Desktop View",onClick:()=>s("desktop"),children:i.jsx(gy,{icon:HVe,size:19,className:`text-gray-400 ${a==="desktop"?"text-green-700":""}`,strokeWidth:2})}),i.jsx("button",{className:`h-9 w-9 flex items-center justify-center rounded-md hover:bg-white hover:shadow-sm transition-all ${a==="tablet"?"bg-[#d8e9e370]":""}`,title:"Tablet View",onClick:()=>s("tablet"),children:i.jsx(gy,{icon:UVe,size:19,className:`text-gray-400 ${a==="tablet"?"text-green-700":""}`,strokeWidth:2})}),i.jsx("button",{className:`h-9 w-9 flex items-center justify-center rounded-md hover:bg-white hover:shadow-sm transition-all ${a==="mobile"?"bg-[#d8e9e370]":""}`,title:"Mobile View",onClick:()=>s("mobile"),children:i.jsx(gy,{icon:VVe,size:20,className:`text-gray-400 ${a==="mobile"?"text-green-700":""}`})})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500 w-[250px] justify-end mr-4",children:[j&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),i.jsx("span",{children:"Auto-saving..."})]}),k&&!j&&i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx("p",{className:"font-medium",children:"Last saved:"})," ",Y5(k),","," ",k.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})]})]}),i.jsxs("button",{className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none cursor-pointer",onClick:re,children:[o==="preview"?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(b5,{width:16,height:16}),i.jsx("span",{children:"Preview Mode"}),i.jsx(ar,{})]}):i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Do,{width:16,height:16}),i.jsx("span",{children:"Edit Mode"}),i.jsx(ar,{})]}),d&&i.jsx("div",{className:"absolute z-10 mt-2 w-48 bg-white rounded-md shadow-lg",children:i.jsxs("ul",{className:"py-1",children:[i.jsxs("li",{className:`text-left px-4 py-2 hover:bg-gray-100 cursor-pointer flex justify-between items-center ${o==="preview"?"font-semibold":""}`,onClick:()=>l("preview"),children:["Preview Mode ",o==="preview"?i.jsx(Ua,{width:16,height:16}):""]}),i.jsxs("li",{className:`text-left px-4 py-2 hover:bg-gray-100 cursor-pointer flex justify-between items-center ${o==="edit"?"font-semibold":""}`,onClick:()=>{l("edit"),r("heroSection")},children:["Edit Mode ",o==="edit"?i.jsx(Ua,{width:16,height:16}):""]})]})})]}),i.jsxs("button",{onClick:Q,disabled:ge,className:`px-4 py-2 text-sm font-medium text-white rounded-md flex items-center gap-2 ${ge?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700"}`,children:[i.jsx(Dae,{width:16,height:16}),ge?"Publishing...":"Publish Changes"]})]})]}),xt(),o==="preview"&&Ct(),i.jsx("div",{className:`editor-canvas bg-white overflow-y-scroll h-[calc(100vh-220px)] ${a==="desktop"?"w-[100%]":a==="tablet"?"w-[60%]":"w-[400px]"} ${o==="edit"?"w-[calc(100%-350px)]":""}`,children:i.jsx(h5,{theme:e?.theme,isEdit:!0,data:e})}),i.jsx(ug,{open:h,onClose:()=>{p(!1),y("")},onConfirm:Ne,loading:Se,keepOpenOnConfirm:!0,buttonGroupClasses:"",children:i.jsx("p",{className:"text-gray-700 mb-6",children:"Are you sure you want to publish these changes? This will update your live site."})}),i.jsx(_u,{open:M,onClose:()=>{I(!1),F("")},contentStyling:"max-w-md mx-auto mt-20",children:i.jsxs("div",{className:"text-center bg-white rounded-lg p-6",children:[i.jsx("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100 mb-4",children:i.jsx("svg",{className:"h-6 w-6 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Rejection Reason"}),i.jsx("p",{className:"text-gray-600 text-sm whitespace-pre-wrap mb-6",children:X})]})})]}),n!==""&&i.jsx($Ye,{onContentGenerated:ye,context:n,mdaType:e?.mda,vision:e?.vision})]})},yKe=()=>{const e=Te(l=>l.mdaData),t=Te(l=>l.mdaData)?.isVerified;let{id:n,mda:r}=Pe();const a=pt(),s=Te(l=>l.mdaData)?.type;if(v.useEffect(()=>{if(!n&&r)return a(`/${r}/admin/dashboard`)},[n,r,e]),!t)return a(`/${r}/admin/onboarding`);const o=()=>{const u=s==="full"?["dashboard","vision","agencies","people","responsibility","newsroom","events","gallery","resources","contact","published","drafts","themes","library","services","subscribers","forms","settings"]:["services","forms","settings"];if(n=="dashboard")return i.jsx(pHe,{});if(n=="vision")return i.jsx(CVe,{mda_data:e});if(n=="agencies")return i.jsx(xNe,{mda_data:e});if(n=="people")return i.jsx(uVe,{mda_data:e});if(n=="responsibility")return i.jsx(hVe,{mda_data:e});if(n=="newsroom")return i.jsx(OAe,{});if(n=="events")return i.jsx(SAe,{});if(n=="gallery")return i.jsx(EAe,{});if(n=="resources")return e?.theme==="mepb"?i.jsx(fVe,{mda_data:e}):i.jsx(dVe,{mda_data:e});if(n=="contact")return i.jsx(bNe,{mda_data:e});if(n=="published")return i.jsx(vKe,{});if(n=="drafts")return i.jsx($Ve,{});if(n=="themes")return i.jsx(LVe,{});if(n=="library")return i.jsx(zVe,{});if(n=="services")return i.jsx(wVe,{});if(n=="subscribers")return i.jsx(SVe,{});if(n=="forms")return i.jsx(Ske,{});if(n=="settings")return i.jsx(jVe,{});if(!u.includes(n))return s==="full"?window.location.href=`/${r}/admin/dashboard`:window.location.href=`/${r}/admin/services`};return i.jsxs("div",{className:"dashboard-body bg-gray-100/70",children:[i.jsx(pke,{}),i.jsx("div",{className:"dashboardPages py-6 pt-25 px-[70px] w-full",children:o()})]})}
2934,NF=["Adebayo Oluwafemi","Funke Akindele","Chidi Eze","Bola Ahmed","Ngozi Okonkwo","Tunde Balogun","Chioma Okafor","Kunle Adeyemi","Rashida Bello","Emeka Nwosu","Yetunde Williams","Ibrahim Musa","Grace Johnson","Samuel Ogunleye","Patience Eze","Femi Kuti","Adaobi Nwankwo","Micheal Cole","Blessing Adeola","David Onyeka"],AF=["Honourable Commissioner","Permanent Secretary"],xKe=["Professional & Authoritative","Citizen-Friendly & Accessible","Formal & Official","Warm & Welcoming","Transparent & Accountable","Innovative & Forward-Thinking","Responsive & Service-Oriented","Inclusive & Community-Focused","Efficient & Results-Driven","Dignified & Respectful","Clear & Straightforward","Inspiring & Visionary","Custom Tone"],bKe=e=>({heroImage:{prompt:vJ(e)},commissionerImage:{prompt:XYe(e)}}),EF=async(e,t,n)=>{const{base64:r,mimeType:a}=await Promise.race([uU(e),new Promise((h,p)=>setTimeout(()=>p(new Error("Image generation timeout")),6e4))]),s=Uint8Array.from(atob(r),h=>h.charCodeAt(0)),o=new Blob([s],{type:a}),l=a.split("/")[1]||"png",d=new File([o],`${t}.${l}`,{type:a});return(await Promise.race([Ab(d,n),new Promise((h,p)=>setTimeout(()=>p(new Error("Upload timeout")),3e4))])).data.url},wKe=({onContentGenerated:e,mdaFullName:t="Lagos State Government",mdaType:n="default"})=>{const[r,a]=v.useState(""),[s,o]=v.useState(""),[l,d]=v.useState(""),[u,h]=v.useState(!1),[p,g]=v.useState(""),y=()=>r==="Custom Tone"?s||"professional":r||"professional",b=async()=>{const j=NF[Math.floor(Math.random()*NF.length)],S=AF[Math.floor(Math.random()*AF.length)],k=` 2935 You are a senior content strategist generating premium content for a government website. 2936 2937 MDA: ${t} 2938 Type: ${n} 2939 Desired Tone: ${y()} 2940 Context: ${l||"general government services"} 2941 2942 Generate content for the following fields: 2943 - hero_text: A premium, mission-driven headline that is concise, authoritative, and aspirational (8-12 words). Must NOT start with or include the word "Lagos". Must NOT use colons or em-dashes. Should be a flowing, creative sentence â not a slogan format like "X: Y" 2944 - hero_subtitle: A supporting statement that expands on the headline, maintaining a professional and citizen-focused tone (20-25 words) 2945 - action_button_text: A clear, action-oriented call-to-action that encourages citizen engagement (2-4 words) 2946 - welcomeMessage: An engaging welcome message highlighting key priorities and vision (50-100 words) 2947 - commissionerName: Use exactly this name: "${j}" 2948 - commissionerTitle: Use exactly this title: "${S}" 2949 - welcomeTitle: A short, impactful title for the commissioners zone (strictly 6-8 words) and make it sound like a short quote inline with the welcomeMessage 2950 2951 Guidelines: 2952 - Generate professional, authoritative, and policy-grade content 2953 - Focus on trust, quality, and real-world service impact 2954 - Ensure content is citizen-focused and service-oriented 2955 - Maintain semantic alignment with the provided tone and context 2956 - Vary phrasing intentionally while preserving institutional credibility 2957 2958 Output rules: 2959 - Return ONLY a valid JSON object 2960 - Match the exact field names provided 2961 - Follow the specified word counts strictly 2962 - Use the exact commissionerName and commissionerTitle provided above 2963 `;try{const N=await Promise.race([xb([{role:"user",content:k}],{responseFormat:{type:"json_object"},reasoningEffort:"minimal"}),new Promise((_,L)=>setTimeout(()=>L(new Error("Content generation timeout")),6e4))]);return JSON.parse(N)}catch(N){throw console.error("Error generating content:",N),N}},w=async j=>{if(j.preventDefault(),!r.trim()&&!l.trim()){alert("Please provide at least a tone or context for content generation.");return}h(!0),g("Generating content & images...");try{const S=bKe(t),[k,N,_]=await Promise.all([b(),EF(S.heroImage.prompt,`${t}-hero-image`,"LASG Hero Images"),EF(S.commissionerImage.prompt,`${t}-commissioner-image`,"LASG Commissioner Images")]),L={...k,heroImage:N,commissionerImage:_};e&&e(L),a(""),d("")}catch(S){console.error("Error generating content:",S),alert("Failed to generate content. Please try again.")}finally{h(!1),g("")}};return i.jsx("div",{className:"content-chatbot-container",children:i.jsxs("div",{className:"content-chatbot-window",children:[i.jsxs("div",{className:"chat-header",children:[i.jsx("h3",{children:"Content Generator"}
2963),i.jsx("button",{className:"close-chat",children:i.jsx(et,{})})]}),i.jsx("div",{className:"chat-input-container",children:i.jsxs("form",{onSubmit:w,children:[i.jsxs("div",{className:"input-group",children:[i.jsx("label",{htmlFor:"tone",children:"Desired Tone *"}),i.jsxs("select",{id:"tone",value:r,onChange:j=>{a(j.target.value),j.target.value!=="Custom Tone"&&o("")},disabled:u,className:"w-full p-2.5 border border-gray-300 rounded-[4px] text-[14px] outline-none focus:ring-green-600 bg-white",children:[i.jsx("option",{value:"",children:"Select a tone..."}),xKe.map(j=>i.jsx("option",{value:j,children:j},j))]})]}),r==="Custom Tone"&&i.jsxs("div",{className:"input-group mt-3",children:[i.jsx("label",{htmlFor:"customTone",children:"Custom Tone Description *"}),i.jsx("input",{id:"customTone",type:"text",value:s,onChange:j=>o(j.target.value),placeholder:"Describe your custom tone (e.g., casual and conversational, technical and precise)",disabled:u,className:"w-full p-2.5 border border-gray-300 rounded-[4px] text-[14px] outline-none focus:ring-green-600 bg-white"})]}),i.jsxs("div",{className:"input-group mt-3",children:[i.jsx("label",{htmlFor:"context",children:"Context *"}),i.jsx("textarea",{id:"context",value:l,onChange:j=>d(j.target.value),placeholder:"Describe the context or purpose of the content...",disabled:u,rows:3,className:"w-full p-2.5 border border-gray-300 rounded-[4px] text-[14px] outline-none focus:ring-green-600 bg-white resize-none"})]}),i.jsx("div",{className:"",children:u?i.jsx("div",{className:"w-full !rounded-[5px] bg-gray-700 py-3 mt-5 text-[14px] font-semibold text-white text-center",title:"Generating...",children:p||"Generating..."}):i.jsx("button",{type:"submit",disabled:u,className:"w-full text-center !rounded-[5px] bg-green-600 py-3 mt-5 text-[14px] font-semibold text-white",title:"Generate content",children:"Generate Web Page"})})]})})]})})},jKe=({prevStep:e,selectedTheme:t})=>{const[n,r]=v.useState(null),a=Te(h=>h.mdaData),{mda:s}=Pe(),o=nE[t],l=async h=>{await ki(a?._id,{landingPage:h,isVerified:!0},"updated the website content").then(()=>window.location.href=`/${s}/admin/published`),console.log(h)},d=()=>{l(o)},u=h=>{const p={...o};"main_photo"in o&&(p.main_photo=h.heroImage||o.main_photo),"hero_text"in o&&(p.hero_text=h.hero_text),"hero_subtitle"in o&&(p.hero_subtitle=h.hero_subtitle),"action_button_text"in o&&(p.action_button_text=h.action_button_text),"commissionersZone"in o&&(p.commissionersZone={...o.commissionersZone,welcomeTitle:h.welcomeTitle,welcomeMessage:h.welcomeMessage,commissionerName:h.commissionerName,commissionerTitle:h.commissionerTitle,commissionerImage:h.commissionerImage||o.commissionersZone.commissionerImage}),l(p)};return i.jsxs("div",{style:{padding:"20px"},children:[i.jsxs("div",{className:"flex items-center gap-2 mb-8 relative",children:[i.jsx("div",{onClick:e,className:"cursor-pointer p-2 hover:bg-gray-100 rounded-full transition-colors",children:i.jsx(Xa,{})}),i.jsx("h1",{className:"text-[18px] font-semibold absolute left-1/2 -translate-x-1/2 mt-[2px]",children:"Generate Content"})]}),i.jsx(wKe,{onContentGenerated:u,mdaFullName:a?.fullname||"",mdaType:a?.theme||"default"}),i.jsx("div",{style:{marginTop:"40px",textAlign:"center"},children:i.jsx("button",{onClick:d,className:"hover:bg-gray-800!",style:{padding:"10px 20px",backgroundColor:"#6b7280",color:"white",border:"none",borderRadius:"5px",cursor:"pointer",fontSize:"14px",marginRight:"10px"},children:"Skip AI Generation"})})]})},SKe=({prevStep:e,selectedTheme:t,data:n})=>i.jsx(jKe,{prevStep:e,selectedTheme:t||n?.theme}),CKe=({changeStatus:e,status:t})=>{const[n,r]=v.useState(!1),[a,s]=v.useState(!1),[o,l]=v.useState(t);v.useEffect(()=>{l(t)},[t]);const d=v.useCallback(()=>{a||r(!1)},[a]),u=v.useCallback(async()=>{const p=!o;l(p);try{s(!0),await e(p),r(!1)}catch(g){console.error("Failed to update status:",g),l(t),ie.error("Failed to update status")}finally{s(!1)}},[o,t,e]),h=v.useCallback(()=>{a||r(!0)},[a]);return i.jsxs(i.Fragment,{children:[i.jsx(ug,{open:n,onClose:d,onConfirm:u,disabled:a,children:i.jsxs("div",{className:"confirm-message leading-[1.6] mt-10",children:["Are you sure you want to switch to ",i.jsxs("strong",{children:[t?"online":"offline"," mode?"]}),i.jsx("br",{}),i.jsx("br",{}),"This will ",t?"make the site accessible":"make the site inaccessible"," to users and visitors. However, you'll still be able to edit and manage your application while offline."]})}),i.jsx("div",{className:`switch ${o?"bg-[#d6d6d6]":"bg-[#d8e9e3]"}
2963`,onClick:h,style:{opacity:a?.7:1,cursor:a?"not-allowed":"pointer",pointerEvents:a?"none":"auto"},children:i.jsx("div",{className:`toggle-ball ${o?"inactive":"active"}`,children:a&&i.jsx("div",{className:"spinner"})})})]})},kKe=ft.memo(CKe),NKe=()=>{const[e,t]=v.useState({firstname:"",lastname:"",role:""}),[n,r]=v.useState(!1),a=Te(d=>d.mdaData);v.useEffect(()=>{const d=window.localStorage.getItem("MDA__TOKEN");if(d){const u=JSON.parse(d);t({firstname:u.firstname||"",lastname:u.lastname||"",role:u.role||""})}},[]);const s=v.useCallback(async d=>{if(a?._id)try{r(!0),await ki(a._id,{isOffline:d},`changed status to ${d?"offline":"online"}`)}catch(u){throw console.error("Failed to update status:",u),u}finally{r(!1)}},[a?._id]),o=()=>{window.localStorage.removeItem("MDA__TOKEN"),window.location.reload()},{id:l}=Pe();return i.jsxs("div",{className:"headingAdmin",children:[i.jsxs("div",{className:"flex items-center gap-[16px]",children:[i.jsx("div",{className:"logo w-[50px] h-[50px] overflow-hidden",children:i.jsx("img",{src:Su,alt:"LASG Logo",className:"w-full h-full object-contain"})}),i.jsx("h1",{className:"uppercase text-[11px] font-normal tracking-[2px] w-60",children:a?.fullname})]}),i.jsxs("div",{className:"account",children:[i.jsxs("div",{className:"app_status flex gap-[10px] items-center",children:[i.jsx("p",{children:"Offline Mode"}),i.jsx(kKe,{status:a?.isOffline,changeStatus:s}),i.jsx("p",{children:"Online Mode"})]}),i.jsxs("div",{className:"header-navs flex gap-[14px]",children:[i.jsxs("div",{className:"nav-holder",children:[" ",i.jsx(rae,{})," "]}),i.jsxs("div",{className:"nav-holder",children:[" ",i.jsx(Sz,{})," "]}),i.jsxs("div",{className:"nav-holder profile-part",children:[e.firstname.toUpperCase().substring(0,1)," ",e.lastname.toUpperCase().substring(0,1),i.jsx("div",{className:"arrowPulldown",children:i.jsx(ar,{})}),i.jsxs("div",{className:"profile-dropdown",children:[i.jsxs("a",{href:"",children:[i.jsx("p",{children:i.jsx(S5,{})})," ","Profile Settings"]}),i.jsxs("a",{href:"",children:[i.jsx("p",{children:i.jsx(jz,{})})," ","Add Team Members"]}),i.jsx("button",{onClick:o,children:"Sign Out"})]})]})]})]})]})},qC=[{name:"Medix",description:"Clean, modern design for medical practices and healthcare providers",category:["healthcare"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/medix_qfb4kl.jpg",preview_link:"health",theme:"health"}
2963,{name:"Bytetec",description:"Modern, responsive theme for tech startups and IT service providers",category:["technology","general"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668070/templates/bytetec_rxdq5w.jpg",preview_link:"mist",theme:"mist"},{name:"Eko Budget",description:"Intuitive financial dashboard for budget tracking and expense management",category:["finance","budget"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/eko-budget_mez2vl.jpg",preview_link:"mepb",theme:"mepb"},{name:"Fintrac",description:"Professional banking and financial services website template",category:["finance"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/fintrac_hfmxam.jpg",preview_link:"finance",theme:"mof"},{name:"Transit",description:"Bold, service-forward theme for transport and mobility agencies",category:["transport","general"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/ledger_gq9ze2.jpg",preview_link:"sto",theme:"sto"},{name:"Treasury",description:"Structured, document-forward theme for treasury and revenue offices",category:["finance"],createdAt:Dn(new Date().toISOString()),thumbnail:"https://res.cloudinary.com/dirmxkznt/image/upload/v1773668069/templates/nexus_dkkfrw.jpg",preview_link:"mot",theme:"mot"}],AKe=({nextStep:e,prevStep:t,data:n,setSelectedTheme:r,selectedTheme:a})=>{const{mda:s}=Pe(),o=Te(h=>h.mdaData)?.theme,[l,d]=v.useState(a||o);qC.find(h=>h.theme===l),v.useEffect(()=>{o&&!a&&d(o)},[o,a]);const u=async h=>{await ki(n._id,{theme:h.theme},`updated theme to - ${h.name}`).then(()=>{r(h.theme),d(h.theme),e()})};return v.useEffect(()=>{},[]),i.jsxs("div",{className:"mt-10",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-16 relative",children:[i.jsx("div",{onClick:t,className:"cursor-pointer",children:i.jsx(Xa,{})}),i.jsx("h1",{className:"text-[21px] font-semibold absolute left-1/2 -translate-x-1/2 mt-[2px]",children:"Select preffered Theme"})]}),i.jsx("div",{className:"templates-grid flex flex-wrap gap-10 justify-center w-[1220px] mt-10",children:qC.length>0?qC.map(h=>i.jsxs("div",{className:`w-[380px] bg-white rounded-md overflow-hidden shadow-md shadow-gray-50 cursor-pointer transition-all ${l===h.theme?"ring-2 ring-green-500 shadow-lg":""}`,children:[i.jsxs("div",{className:"h-[202.4px] overflow-hidden bg-gray-300 relative",children:[i.jsx("img",{src:h.thumbnail,alt:h.name,className:"hover:scale-108 transition-all w-full h-full object-cover"}),l===h.theme&&i.jsxs("div",{className:"absolute flex top-4 right-4 bg-green-500 text-white px-2 py-1 rounded-full text-[13px] items-center gap-1 font-semibold",children:[i.jsx(Ua,{fontSize:12})," Selected"]})]}),i.jsxs("div",{className:"p-5 flex flex-col gap-3",children:[i.jsxs("h3",{className:"font-semibold text-[16px] flex items-center gap-2",children:[h.name," ",i.jsx("p",{className:"text-[12px] bg-green-500 px-1.5 py-[2px] rounded text-white",children:"New"})]}),i.jsx("p",{className:"text-[15px] text-gray-500 leading-6",children:h.description}),i.jsx("div",{className:"flex items-center gap-2 mt-1",children:l===h.theme?i.jsxs("button",{className:"text-white text-[13px] cursor-pointer pr-5 px-4 py-2 rounded h-[100%] flex items-center gap-2 border border-green-600 bg-green-600 font-semibold",onClick:()=>e(),children:[i.jsx(Ua,{fontSize:12})," Continue with this Theme"]}):h.theme==="coming"?i.jsx("div",{className:"text-gray-500 text-[13px] px-4 py-2 rounded border border-gray-300 bg-gray-50 font-medium",children:"Coming Soon"}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>u(h),className:"text-white text-[13px] cursor-pointer pr-5 px-4 py-2 rounded h-[100%] flex items-center gap-2 border border-transparent bg-gray-800 hover:bg-gray-700",children:[i.jsx(mz,{fontSize:12})," Use Template"]}),i.jsxs("a",{href:`${au}/${h.preview_link}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 text-[13px] curs
2963or-pointer pr-5 px-4 py-2 rounded h-[100%] flex items-center gap-2 border border-gray-300 hover:bg-gray-50 transition-colors text-gray-500!",children:[i.jsx(b5,{})," Preview"]})]})})]})]},h.name)):null})]})},_F=({nextStep:e,data:t})=>{const[n,r]=v.useState({firstname:"",lastname:"",role:""});return v.useEffect(()=>{const a=window.localStorage.getItem("MDA__TOKEN");if(a){const s=JSON.parse(a);r({firstname:s.firstname||"",lastname:s.lastname||"",role:s.role||""})}},[]),i.jsxs("div",{className:"w-[600px] p-[40px] bg-white rounded-[16px] mt-10",children:[i.jsx("p",{className:"text-[11px] uppercase tracking-[2px] text-gray-500 font-medium mb-5",children:"Step 1 - Summary"}),i.jsxs("div",{className:"text-[26px] w-[90%] leading-[130%] tracking-[-0.3px] font-semibold mb-4",children:["Welcome on board"," ",i.jsxs("span",{className:"text-green-700",children:[n.firstname," ",n.lastname]}),", ",i.jsx("div",{className:"!font-normal",children:"Let's get you started"})]}),i.jsx("div",{className:"text-gray-500",children:"Time to build your agency's digital presence."}),i.jsxs("div",{className:"flex flex-col gap-3 mt-10",children:[i.jsxs("div",{className:"p-5 bg-gray-50 rounded-[8px]",children:[i.jsx("label",{className:"uppercase text-[11px] tracking-[2px] font-semibold text-gray-500",children:"MDA Fullname"}),i.jsx("p",{className:"font-medium",children:t?.fullname})]}),i.jsxs("div",{className:"p-5 bg-gray-50 rounded-[8px]",children:[i.jsx("label",{className:"uppercase text-[11px] tracking-[2px] font-semibold text-gray-500",children:"Slug (lasg page URL)"}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("p",{className:"font-medium",children:`${au}/${t?.slug}`}),i.jsxs("a",{href:`${au}/${t?.slug}`,target:"_blank",rel:"noopener noreferrer",className:"!text-green-700 cursor-pointer text-[14px] font-medium flex items-center gap-1",children:[i.jsx(Oe,{fontSize:11})," View Page"]})]})]}),i.jsx("div",{children:i.jsx("button",{className:"w-full bg-green-700 text-white px-6 py-[12px] rounded-[5px] text-[15px] font-semibold mt-7 cursor-pointer hover:bg-green-800 transition-colors",onClick:e,children:"Continue Setup"})})]})]})},EKe=()=>{const e=Te(h=>h.mdaData),t=pt(),[n,r]=v.useState(""),[a,s]=v.useState(1),o=3;v.useEffect(()=>{e&&e?.isVerified&&t(`/${e?.slug}/admin/dashboard`)},[e,t]);const l=()=>{a<o&&s(a+1)},d=()=>{a>1&&s(a-1)},u=()=>{switch(a){case 1:return i.jsx(_F,{nextStep:l,data:e});case 2:return i.jsx(AKe,{nextStep:l,prevStep:d,data:e,setSelectedTheme:r,selectedTheme:n});case 3:return i.jsx(SKe,{prevStep:d,data:e,selectedTheme:n});default:return i.jsx(_F,{nextStep:l,data:e})}};return i.jsxs("div",{className:"bg-gray-50 min-h-screen",children:[i.jsx("div",{children:i.jsx(NKe,{})}),i.jsx("div",{className:"p-[50px] flex justify-center",children:u()})]})};function _Ke(){const[e,t]=v.useState(""),[n,r]=v.useState(""),[a,s]=v.useState(!1),[o,l]=v.useState(!0),[d,u]=v.useState(""),[h,p]=v.useState("login"),[g,y]=v.useState(""),[b,w]=v.useState(""),[j,S]=v.useState(!1),[k,N]=v.useState(""),[_,L]=v.useState(""),E=Te(B=>B.mdaData);pt();const{mda:T}=Pe(),P=3e3*1e3,$=v.useCallback(()=>{localStorage.removeItem("MDA__TOKEN"),s(!1),u("")},[]),O=v.useCallback(async B=>{try{const H=await es(B,T);return H.status==="ok"&&H.data.mda===T?(localStorage.setItem("MDA__TOKEN",JSON.stringify({token:B,id:H.data.id,mda:H.data.mda,role:H.data.role,firstname:H.data.firstName,lastname:H.data.lastName})),s(!0),!0):!1}catch{return!1}},[T]),q=v.useCallback(async()=>{const B=localStorage.getItem("MDA__TOKEN");if(B)try{const H=JSON.parse(B),G=await ske(H.token,T);G.status==="ok"?localStorage.setItem("MDA__TOKEN",JSON.stringify({token:G.token,id:H.id,mda:H.mda,role:H.role,firstname:H.firstname,lastname:H.lastname})):$()}catch{$()}},[T,$]),D=async B=>{if(B.preventDefault(),u(""),!e||!n){u("Please fill in all fields");return}try{const H=await ake(e,n);H.status==="ok"?await O(H.token)||u("Invalid credentials"):u(H.message||"Login failed")}catch{u("Login failed. Please try again.")}},z=async B=>{if(B.preventDefault(),N(""),L(""),!g){N("Please enter your email address");return}S(!0);try{const H=await oke(g);H.status==="ok"?(L(H.message),p("forgot-otp")):N(H.message||"Something went wrong. Please try again.")}catch{N("Something went wrong. Please try again.")}finally{S(!1)}},V=async B=>{if(B.preventDefault(),N(""),!b||b.length!==4){N("Please enter the 4-digit code");return}S(!0);try{const H=await lke(g,b);H.status==="ok"?p("forgot-success"):N(H.message||"Invalid code. Please try again.")}catch{N("Something went wrong. Please try again.")}finally{S(!1)}},W=()=>{p("login"),y(""),w(""),N(""),L("")};return v.useEffect(()=>{(async()=>{const H=localStorage.getItem("MDA__TOKEN");if(!H){l(!1);return}try{const G=JSON.parse(H);G.mda===T&&await O(G.token)||$()}catch{$()}finally{l(!1)}})()},[T,O,$]),v.useEffect(()=>{if(!a)return;const B=setInterval(q,P);return()=>clearInterval(B)},[a,q]),v.useEffect(()=>{const B=document.querySelector(".currentPage_admin");B&&(B.style.display="none")},[]),o?i.jsx("div",{className:"w-full h-[100vh] flex items-center justify-center",children:"Loading..."}):a?E&&!E?.isVerified?i.jsx(EKe,{}):i.jsx(yKe,{}):i.jsx("div",{className:"appHome",children:i.jsxs("div",{className:"authPage",children:[i.jsx("div",{className:"image__scoop",children:i.jsx("img",{src:cg,alt:"LASG Logo"})}),i.jsxs("div",{className:"loginPart",children:[h==="login"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"topicTitle",children:["Hello There! ",i.jsx("br",{}),i.jsx("span",{children:"Welcome to LASG MIST admin platform"})]}),i.jsxs("form",{className:"form",onSubmit:D,children:[i.jsxs("div",{className:"auth__form",children:[i.jsx("label",{htmlFor:"email",children:"Email Address"}),i.jsx("input",{type:"email",placeholder:"Enter email address",id:"email",value:e,onCh
2963ange:B=>t(B.target.value),required:!0})]}),i.jsxs("div",{className:"auth__form",children:[i.jsx("label",{htmlFor:"password",children:"Password"}),i.jsx("input",{type:"password",placeholder:"Enter password",id:"password",value:n,onChange:B=>r(B.target.value),required:!0})]}),d&&i.jsx("div",{className:"errorZone bad",children:d}),i.jsx("button",{type:"submit",className:"submitBtn",children:"Log into dashboard"}),i.jsx("button",{type:"button",className:"forgotBtn",onClick:()=>{p("forgot-email"),N(""),L("")},children:"Forgot password?"})]})]}),h==="forgot-email"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"topicTitle",children:["Reset Password ",i.jsx("br",{}),i.jsx("span",{children:"Enter your email to receive a verification code"})]}),i.jsxs("form",{className:"form",onSubmit:z,children:[i.jsxs("div",{className:"auth__form",children:[i.jsx("label",{htmlFor:"forgotEmail",children:"Email Address"}),i.jsx("input",{type:"email",placeholder:"Enter your email address",id:"forgotEmail",value:g,onChange:B=>y(B.target.value),required:!0})]}),k&&i.jsx("div",{className:"errorZone bad",children:k}),i.jsx("button",{type:"submit",className:"submitBtn",disabled:j,children:j?"Sending code...":"Send verification code"}),i.jsx("button",{type:"button",className:"forgotBtn",onClick:W,children:"Back to login"})]})]}),h==="forgot-otp"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"topicTitle",children:["Enter Code ",i.jsx("br",{}),i.jsxs("span",{children:["A 4-digit code was sent to ",g]})]}),i.jsxs("form",{className:"form",onSubmit:V,children:[i.jsxs("div",{className:"auth__form",children:[i.jsx("label",{htmlFor:"otp",children:"Verification Code"}),i.jsx("input",{type:"text",placeholder:"Enter 4-digit code",id:"otp",value:b,onChange:B=>w(B.target.value.replace(/\D/g,"").slice(0,4)),maxLength:4,inputMode:"numeric",style:{letterSpacing:"8px",fontSize:"24px",textAlign:"center"}})]}),k&&i.jsx("div",{className:"errorZone bad",children:k}),i.jsx("button",{type:"submit",className:"submitBtn",disabled:j,children:j?"Verifying...":"Verify code"}),i.jsx("button",{type:"button",className:"forgotBtn",onClick:()=>{p("forgot-email"),w(""),N("")},children:"Resend code"})]})]}),h==="forgot-success"&&i.jsxs("div",{className:"form",style:{marginTop:"30px",alignItems:"center",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:"48px",marginBottom:"10px"},children:"â"}),i.jsx("div",{style:{fontSize:"18px",fontWeight:600,color:"#00484d",marginBottom:"12px"},children:"Request Received"}),i.jsx("p",{style:{fontSize:"14px",color:"#555",lineHeight:"1.6",marginBottom:"24px"},children:"We have informed the super admin to reset your password. You will receive new credentials in your email shortly."}),i.jsx("button",{className:"submitBtn",onClick:W,children:"Back to login"})]})]}),i.jsx("p",{className:"foot",children:"Powered by Ministry of Innovation, Science & Technology"})]})})}const TKe=({refetch:e})=>i.jsx(_Ke,{refetch:e}),LKe=({data:e})=>{const[t,n]=v.useState(!0);return e?.isOffline?i.jsx(gJ,{}):i.jsxs("div",{children:[t&&i.jsx(Rn,{}),i.jsx("iframe",{src:e?.externalUrl,width:"100%",height:"100vh",title:"Example Iframe",style:{height:"100vh"},onLoad:()=>n(!1)})]})},OKe=()=>{let e=Pe();const{mda:t,page:n}=e,r=Te(h=>h.setIsMobile),a=Te(h=>h.setMdaData),s=Te(h=>h.setMda),o=Te(h=>h.setRefetchData);v.useEffect(()=>{window.innerWidth<800&&r(!0)},[t,n]);const{data:l,isLoading:d,refetch:u}=Ke({queryKey:["mda",t],queryFn:()=>ike(t),staleTime:1e3*60*60});if(v.useEffect(()=>{o(u)},[u,o]),v.useEffect(()=>{if(l?.length>0){const h=l[0];a(h),s(t)}},[l,t,s,a]),yG(t,n===void 0?"home":n),d)return i.jsx(Rn,{});if(l&&l[0]?.type==="self-hosted")return i.jsx(LKe,{data:l[0]});switch(n){case"admin":return i.jsx(TKe,{});case"draft":return i.jsx(h5,{theme:l[0]?.theme,data:l[0]});default:return i.jsx(h5,{theme:l[0]?.theme,data:l[0]})}};function MKe(){const[e,t]=v.useState({"â¦1.1Tr.":0,"$4.45M":0,"22M+":0}),[n,r]=v.useState({"SME Readiness Gap":0,"Enterprise Adoption":0}),[a,s]=v.useState(!1),o=v.useRef(null),l=[{val:"â¦1.1Tr.",lbl:"Lost 3 yrs",target:1.1},{val:"$4.45M",lbl:"Per breach",target:4.45},{val:"22M+",lbl:"Users at risk",target:22}],d=[{label:"SME Readiness Gap",pct:72},{label:"Enterprise Adoption",pct:48}],u=[{done:!0,text:"MFA enforcement recommended"},{done:!0,text:"72-hour incident reporting"},{done:!0,text:"NDPA data protection aligned"},{done:!1,text:"Staff awareness training needed"}];v.useEffect(()=>{const p=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&!a&&(s(!0),l.forEach(b=>{const S=b.target/60;let k=0;const N=setInterval(()=>{k+=S,k>=b.target&&(k=b.target,clearInterval(N)),t(_=>({..._,[b.val]:k}))},2e3/60)}),d.forEach(b=>{const S=b.pct/30;let k=0;const N=setInterval(()=>{k+=S,k>=b.pct&&(k=b.pct,clearInterval(N)),r(_=>({..._,[b.label]:k}))},1500/30)}))})},{threshold:.1});return o.current&&p.observe(o.current),()=>{o.current&&p.unobserve(o.current)}},[a,l,d]);const h=(p,g)=>p.includes("â¦")?`â¦${g.toFixed(1)}Tr.`:p.includes("$")?`$${g.toFixed(2)}M`:p.includes("M+")?`${Math.round(g)}M+`:p;return i.jsx("div",{ref:o,className:"h-full border-[#e7e7e7] pl-20 flex items-center justify-center",children:i.jsxs("div",{className:"bg-white rounded-4xl p-9 w-[450px] h-content",children:[i.jsxs("div",{className:"flex justify-between items-center mb-8",children:[i.jsx("h3",{className:"text-slate-900 text-base font-bold m-0",children:"Cyber Risk Overview"}),i.jsx("span",{className:"bg-green-50 text-green-700 text-xs font-semibold px-3 py-1 rounded-md border border-green-200 tracking-wide",children:"Lagos 2026"})]}),i.jsx("div",{className:"grid grid-cols-3 gap-3 mb-8",children:l.map(({val:p,lbl:g,target:y})=>i.jsxs("div",{className:"flex-1 bg-white rounded-xl p-3 text-center border border-slate-200",children:[i.jsx("div",{className:"text-gray-800 font-extrabold text-md mb-1",children:h(p,e[p]||0)}),i.jsx("div",{className:"text-slate-500 text-xs",children:g})]},g))}),i.jsx("div",{className:"flex flex-col gap-6 mb-8",children:d.map(({label:p,pct:g})=>i.jsxs("div",{children:[i.jsxs("div",{className:"flex justify-between mb-2",children:[i.jsx("span",{className:"text-slate-600 font-medium text-xs",children:p}),i.jsxs("span",{className:"text-green-600 text-xs font-bold",children:[Math.round(n[p]||0),"%"]})]}),i.jsx("div",{className:"bg-slate-200 rounded-full h-1.5 overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full bg-green-700 transition-all duration-300 ease-out",style:{width:`${n[p]||0}%`}})})]},p))}),i.jsx("div",{className:"flex flex-col gap-4",children:u.map(({done:p,text:g})=>i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:`w-5 h-5 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold border 2964 ${p?"bg-green-50 border-green-500 text-green-600":"bg-amber-50 border-amber-400 text-amber-600"}`,children:p?i.jsx(Ua,{fontSize:9,strokeWidth:2}):"!"}),i.jsx("span",{className:"text-slate-700 text-sm",children:g})]},g))})]})})}const TF="https://res.cloudinary.com/dirmxkznt/image/upload/v1773876046/Title-_2026_Cybersecurity_Guidelines_for_Businesses_Public_Institutions_in_Lagos_State_1__compressed_fnueaw.pdf",DKe="https://res.cloudinary.com/dirmxkznt/raw/upload/v1774204976/LASG_CYBERSECURITY_GUIDELINES_2_epzgbf.docx",PKe=[{q:"Are these guidelines mandatory for Lagos businesses?",a:"These guidelines are advisory â focused on empowerment, awareness and resilience rather than enforcement. However, the underlying laws (Cybercrime Act 2024, NDPA 2023) carry legal obligations all organisations must comply with."},{q:"What does the 72-hour incident reporting requirement mean?",a:"Under the Cybercrime Act 2024, organisations that suffer a cyber incident must report to ngCERT within 72 hours of becoming aware. This applies to all businesses handling sensitive data."},{q:"I'm a small business â where do I start?",a:"Start with the five foundational controls: enable MFA, use a password manager, set up automatic software updates, separate your guest Wi-Fi, and establish a data backup routine. These
2964cost little but dramatically reduce risk."},{q:"What is the Lagos State Cybersecurity Advisory Board?",a:"Nigeria's first state-level Cybersecurity Advisory Board, established under the Lagos State Ministry of Innovation, Science & Technology. It brings together government officials, industry leaders and global cybersecurity experts."},{q:"How does this relate to the NDPA 2023?",a:"The Nigeria Data Protection Act 2023 requires organisations handling personal data to minimise collection, encrypt stored data, and notify the NDPC and affected users after a breach. These guidelines translate those requirements into practical steps."}],RKe=[{emoji:"ðª",badge:"SMEs & Startups",title:"Small & Medium Businesses",items:["MFA & password managers","Separate guest Wi-Fi","Quarterly awareness training","Automated data backups"],featured:!1},{emoji:"ð¢",badge:"Enterprises",title:"Medium & Large Enterprises",items:["CISO & Data Protection Officer","SIEM & IDS/IPS systems","Board-level cyber oversight","NIST / ISO 27001 frameworks"],featured:!0},{emoji:"ðï¸",badge:"Government MDAs",title:"Public Institutions",items:["Privacy by Design principles","Centralised SOC monitoring","Privileged Access Management","Inter-agency collaboration"],featured:!1}],IKe=[{icon:"ð",title:"Identity & Access Mgmt",desc:"Enforce least-privilege access across all users and systems."},{icon:"ð",title:"SIEM Monitoring",desc:"Centralised security event correlation and real-time alerting."},{icon:"ð¡ï¸",title:"IDS / IPS Systems",desc:"Detect and automatically block intrusions before damage occurs."},{icon:"ð",title:"MFA Enforcement",desc:"Multi-Factor Authentication on all critical access points."},{icon:"ð",title:"Network Segmentation",desc:"Isolate critical infrastructure to contain breach spread."},{icon:"ð»",title:"Endpoint Security",desc:"Continuous monitoring and protection of all network devices."}],$Ke=[{initials:"AO",name:"A. Okonkwo",role:"Fintech Founder, Lagos",quote:"Most cybersecurity resources feel overwhelming. These guidelines are different â clear, practical and immediately actionable for any Lagos business."},{initials:"CU",name:"C. Uche",role:"CTO, Enterprise Lagos",quote:"For the first time our team has a shared framework aligned to Nigerian law. The NDPA and Cybercrime Act sections alone are invaluable for any CTO."},{initials:"FI",name:"F. Ibrahim",role:"Director, Lagos State MDA",quote:"As a government MDA, this is the first document that speaks directly to our citizen data responsibilities in a way that's genuinely usable."}],LF=[{icon:"ð",title:"Self-Assess",desc:"Identify your current vulnerabilities across devices, accounts and data."},{icon:"ð¡ï¸",title:"Apply Controls",desc:"Implement foundational security controls â MFA, backups, patching."},{icon:"ð§âð»",title:"Train Your Team",desc:"Build awareness through quarterly phishing simulations and sessions."},{icon:"â
",title:"Stay Compliant",desc:"Report incidents, protect data and collaborate with state initiatives."}],BKe=[{icon:"ð ",title:"Protection-Ready Practices",desc:"Foundational controls mapped to your organisation size and risk profile."},{icon:"ð°",title:"Low-Cost, High-Impact",desc:"Most foundational controls cost nothing to implement and dramatically cut risk."},{icon:"ð±",title:"Manage Everything Online",desc:"From incident reporting to vendor assessments â all digitally accessible."},{icon:"âï¸",title:"Quick Compliance Path",desc:"Aligned to the Cybercrime Act 2024 and NDPA 2023 for fast legal alignment."},{icon:"ðï¸",title:"Trusted by Lagos State",desc:"Issued by Nigeria's first State Cybersecurity Advisory Board under MIST."}],qKe=["Self-assessment","Foundational controls","Staff training","State collaboration","Vendor assessment","Monitor & evaluate"];function FKe({size:e=18,stroke:t="#fff"}){return i.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})})}function OF({size:e=15}){return i.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),i.jsx("polyline",{points:"7 10 12 15 17 10"}),i.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function zKe({q:e,a:t}){const[n,r]=v.useState(!1);return i.jsxs("div",{className:"faq-item",children:[i.jsxs("div",{className:"faq-q",onClick:()=>r(!n),children:[i.jsx("span",{children:e}),i.jsx("div",{className:`faq-btn${n?" open":""}`,children:n?i.jsx(nle,{fontSize:11}):i.jsx(vr,{fontSize:11})})]}),n&&i.jsx("div",{className:"faq-a open",children:t})]})}function HKe(){const[e,t]=v.useState(!1);return i.jsxs("div",{className:"lagoscyber",children:[i.jsx("nav",{children:i.jsxs(Ae,{customClass:"flex justify-between items-center !w-full !sm:w-[90%]",children:[i.jsxs("div",{className:"nav-brand",children:[i.jsx("div",{className:"nav-brand-icon",children:i.jsx(FKe,{})}),i.jsxs("div",{className:"flex flex-col -mt-1 gap-[2px]",children:[i.jsx("span",{children:"Lagos Cybersecurity Guide"}),i.jsx("small",{children:"MIST · 2026 Official Guidelines"})]})]}),i.jsx("button",{className:"hamburger-btn",onClick:()=>t(!e),"aria-label":"Toggle navigation menu",children:e?i.jsx(et,{size:24}):i.jsx(Ni,{size:24})}),i.jsxs("ul",{className:`nav-links ${e?"mobile-open":""}`,children:[i.jsx("li",{children:i.jsx("a",{href:"#",className:"active",onClick:()=>t(!1),children:"Home"})}),i.jsx("li",{children:i.jsx("a",{href:"#overview",onClick:()=>t(!1),children:"Guidelines"})}),i.jsx("li",{children:i.jsx("a",{href:"#audience",onClick:()=>t(!1),children:"For SMEs"})}),i.jsx("li",{children:i.jsx("a",{href:"#footer",onClick:()=>t(!1),children:"Contact"})})]}),i.jsxs("div",{className:`nav-actions ${e?"mobile-open":""}`,children:[i.jsx("a",{href:"#overview",className:"btn-nav-ghost",onClick:()=>t(!1),children:"Learn More"}),i.jsx("a",{href:TF,target:"_blank",rel:"noopener noreferrer",className:"btn-nav-solid",children:"Download PDF"})]})]})}),i.jsx("section",{className:"hero",children:i.jsxs(Ae,{customClass:"flex mx-auto! justify-between !w-full !sm:w-[90%]",children:[i.jsx("div",{className:"hero-blob"}),i.jsxs("div",{className:"hero-left",children:[i.jsxs("h1",{children:["Secure Your Business",i.jsx("br",{}),"for ",i.jsx("em",{children:"Digital Lagos"})]}),i.jsx("p",{children:"2026 cybersecurity guidelines for SMEs, enterprises and public institutions â practical, scalable and built for Nigeria's fastest-growing digital economy."}),i.jsxs("div",{className:"hero-btns",children:[i.jsxs("a",{href:TF,target:"_blank",rel:"noopener noreferrer",className:"btn-primary",children:[i.jsx(OF,{})," Download Guidelines"]}),i.jsx("a",{href:"#overview",className:"btn-secondary",children:"How It Works"})]})]}),i.jsx("div",{className:"hero-right",children:i.jsx(MKe,{})})]})}),i.jsx(Ae,{customClass:"!w-full !sm:w-[90%]",children:i.jsxs("section",{className:"tagline",id:"overview",children:[i.jsxs("h2",{children:["Cybersecurity Made ",i.jsx("span",{children:"Ridiculously Simple"})]}),i.jsx("p",{children:"These guidelines give every Lagos organisation a clear, step-by-step path to protection â from a quick self-assessment to full compliance with national law."}),i.jsx("div",{className:"steps-row grid lg:grid-cols-4 md:grid-cols-2 sm:grid-cols-1 gap-3 lg:gap-0",children:LF.map((n,r)=>i.jsxs("div",{className:"flex",children:[i.jsxs("div",{className:"step-box",children:[i.jsx("div",{className:"step-icon-wrap",children:n.icon}),i.jsx("h4",{children:n.title}),i.jsx("p",{children:n.desc})]},n.title),r<LF.length-1&&i.jsx("div",{className:"step-arrow hidden lg:block",children:i.jsx(er,{})},`arrow-${r}`)]}
2964))})]})}),i.jsx("div",{className:"bg-[#f7faf8]",children:i.jsx(Ae,{customClass:"!w-full !sm:w-[90%]",children:i.jsxs("section",{className:"features-split",children:[i.jsx("div",{className:"features-photo",children:i.jsx("div",{className:"features-photo-bg",children:i.jsxs("div",{className:"features-photo-inner",children:[i.jsx("div",{className:"big-num",children:"$15.3B"}),i.jsx("div",{className:"big-lbl",children:"Lagos startup ecosystem value"}),i.jsxs("div",{className:"stat-pills",children:[i.jsx("div",{className:"stat-pill",children:"22M+ active digital users"}),i.jsx("div",{className:"stat-pill",children:"â¦53.4B lost in 2024 alone"}),i.jsx("div",{className:"stat-pill",children:"Africa's fastest-growing digital economy"})]})]})})}),i.jsxs("div",{className:"features-right",children:[i.jsx("div",{className:"eyebrow",children:"Why It Matters"}),i.jsxs("h2",{children:["Your Better ",i.jsx("span",{children:"Cyber Defence"})]}),i.jsx("p",{children:"We believe cybersecurity should be accessible, practical and worry-free. That's why we've translated national policy into actions any organisation can take today."}),i.jsx("div",{className:"feat-list",children:BKe.map(n=>i.jsxs("div",{className:"feat-row",children:[i.jsx("div",{className:"feat-row-icon",children:n.icon}),i.jsxs("div",{children:[i.jsx("h4",{children:n.title}),i.jsx("p",{children:n.desc})]})]},n.title))})]})]})})}),i.jsx(Ae,{className:"!w-full",children:i.jsxs("section",{className:"audience-section",id:"audience",children:[i.jsxs("div",{className:"section-head",children:[i.jsx("div",{className:"eyebrow",children:"Who This Covers"}),i.jsxs("h2",{children:["Built for Every ",i.jsx("span",{children:"Lagos Organisation"})]})]}),i.jsx("div",{className:"aud-grid",children:RKe.map(n=>i.jsxs("div",{className:`aud-card${n.featured?" featured":""}`,children:[i.jsx("div",{className:"aud-emoji",children:n.emoji}),i.jsx("span",{className:"aud-badge",children:n.badge}),i.jsx("h3",{children:n.title}),i.jsx("ul",{children:n.items.map(r=>i.jsxs("li",{children:[i.jsx("span",{className:"li-check",children:i.jsx(Ua,{})}),r]},r))})]},n.title))})]})}),i.jsx("div",{className:"bg-[#f7faf8]",children:i.jsx(Ae,{customClass:"!w-full !sm:w-[90%]",children:i.jsxs("section",{className:"legal-section",children:[i.jsxs("div",{className:"section-head",children:[i.jsx("div",{className:"eyebrow",children:"National Legal Alignment"}),i.jsxs("h2",{children:["Your ",i.jsx("span",{children:"Legal Responsibilities"})]})]}),i.jsxs("div",{className:"legal-grid",children:[i.jsxs("div",{className:"leg-card dark",children:[i.jsx("span",{className:"leg-tag lt-dark",children:"Cybercrime Act 2024"}),i.jsx("h3",{children:"Cybercrime Responsibilities"}),i.jsx("ul",{children:["Report incidents to ngCERT within 72 hours","Maintain a documented incident response plan","Educate all staff on cybercrime awareness","Secure management of national infrastructure"].map(n=>i.jsxs("li",{children:[i.jsx("span",{className:"arr",children:i.jsx(er,{fontSize:9})}),n]},n))})]}),i.jsxs("div",{className:"leg-card light",children:[i.jsx("span",{className:"leg-tag lt-green",children:"NDPA 2023"}),i.jsx("h3",{children:"Data Protection Responsibilities"}),i.jsx("ul",{children:["Apply data minimisation at all times","Encrypt and securely store all personal data","Notify NDPC & customers after any breach","Assess all third-party vendor data practices"].map(n=>i.jsxs("li",{children:[i.jsx("span",{className:"arr",children:i.jsx(er,{fontSize:9})}),n]},n))})]})]})]})})}),i.jsx("div",{className:"bg-[#f7faf8]",children:i.jsx(Ae,{customClass:"!w-full",children:i.jsxs("section",{className:"enterprise-section",children:[i.jsxs("div",{className:"section-head",children:[i.jsx("div",{className:"eyebrow",children:"Enterprise Architecture"}),i.jsxs("h2",{children:["Core Technical ",i.jsx("span",{children:"Security Controls"})]})]}),i.jsx("div",{className:"ent-grid",children:IKe.map(n=>i.jsxs("div",{className:"ent-card",children:[i.jsx("div",{className:"ent-icon",children:n.icon}),i.jsx("h4",{children:n.title}),i.jsx("p",{children:n.desc})]},n.title))})]})})}),i.jsxs("section",{className:"testi-section",children:[i.jsxs("div",{className:"section-head",children:[i.jsx("div",{className:"eyebrow",children:"Why It Matters"}),i.jsxs("h2",{children:["Don't Just Take ",i.jsx("span",{children:"Our Word For It"})]})]}),i.jsx("div",{className:"testi-grid",children:$Ke.map(n=>i.jsxs("div",{className:"testi-card",children:[i.jsx("div",{className:"testi-quote",children:'"'}),i.jsx("p",{children:n.quote}),i.jsxs("div",{className:"testi-author",children:[i.jsx("div",{className:"testi-avatar",children:n.initials}),i.jsxs("div",{children:[i.jsx("div",{className:"testi-name",children:n.name}),i.jsx("div",{className:"testi-role",children:n.role})]})]})]},n.name))})]}),i.jsxs("section",{className:"faq-section",id:"faq",children:[i.jsxs("div",{className:"section-head",children:[i.jsx("div",{className:"eyebrow",children:"Common Questions"}),i.jsxs("h2",{children:["Frequently Asked ",i.jsx("span",{children:"Questions"})]})]}),i.jsx("div",{className:"faq-wrap",children:PKe.map(n=>i.jsx(zKe,{q:n.q,a:n.a},n.q))})]}),i.jsxs("section",{className:"cta-section",children:[i.jsx("div",{className:"cta-blob"}),i.jsx("div",{className:"cta-blob2"}),i.jsxs("div",{className:"cta-inner",children:[i.jsxs("h2",{children:["Build a ",i.jsx("span",{children:"Cyber-Secure Lagos"})," Starting Today"]}),i.jsx("p",{children:"Cybersecurity is a shared responsibility. Every organisation that acts makes Lagos stronger, safer and more competitive on the global stage."}),i.jsx("div",{className:"cta-pills",children:qKe.map((n,r)=>i.jsxs("div",{className:"cta-pill",children:[i.jsx("div",{className:"cta-pill-num",children:r+1}),n]},n))}),i.jsxs("a",{href:DKe,target:"_blank",rel:"noopener noreferrer",className:"btn-cta-main",children:[i.jsx(OF,{size:16})," Download the Full Guidelines PDF"]})]})]}),i.jsxs("footer",{id:"footer",children:[i.jsxs("div",{className:"footer-top",children:[i.jsxs("div",{className:"footer-brand",children:[i.jsx("h3",{children:"Lagos CyberSafe 2026"}),i.jsx("p",{children:"Official cybersecurity guidelines issued by the Lagos State Ministry of Innovation, Science & Technology."})]}),i.jsxs("div",{className:"footer-col",children:[i.jsx("h4",{children:"Qu
2964ick Links"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"#",children:"Home"})}),i.jsx("li",{children:i.jsx("a",{href:"#overview",children:"Guidelines"})}),i.jsx("li",{children:i.jsx("a",{href:"#audience",children:"For SMEs"})}),i.jsx("li",{children:i.jsx("a",{href:"#audience",children:"For Enterprises"})}),i.jsx("li",{children:i.jsx("a",{href:"#faq",children:"Contact Us"})})]})]}),i.jsxs("div",{className:"footer-col",children:[i.jsx("h4",{children:"Nigeria Computer Emergency Response Team"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsxs("span",{className:"flex items-center gap-2 border-b-2 border-green-950 pb-2",children:[i.jsx(Xoe,{fontSize:11,className:"mt-[2px] text-green-300"})," [email protected]"]})}),i.jsx("li",{children:i.jsxs("span",{className:"flex items-center gap-2 border-b-2 border-green-950 pb-2",children:[i.jsx(hce,{fontSize:11,className:"mt-[2px] text-green-300"})," https://cert.gov.ng/"]})}),i.jsx("li",{children:i.jsxs("span",{className:"flex items-center gap-2 border-b-amber-50",children:[i.jsx(wz,{fontSize:11,className:"mt-[2px] text-green-300"})," Abuja, Nigeria"]})})]})]}),i.jsxs("div",{className:"footer-col",children:[i.jsx("h4",{children:"Lagos MIST Social Media"}),i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"https://x.com/lasgmist",target:"_blank",rel:"noopener noreferrer",children:"Twitter / X"})}),i.jsx("li",{children:i.jsx("a",{href:"https://www.linkedin.com/company/lasgmist/",target:"_blank",rel:"noopener noreferrer",children:"LinkedIn"})}),i.jsx("li",{children:i.jsx("a",{href:"https://facebook.com/lasgmist/?_rdc=1&_rdr#",target:"_blank",rel:"noopener noreferrer",children:"Facebook"})}),i.jsx("li",{children:i.jsx("a",{href:"https://www.instagram.com/lasgmist/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})})]})]})]}),i.jsxs("div",{className:"footer-bottom",children:[i.jsx("span",{children:"© 2026 Lagos State Government. All rights reserved."}),i.jsxs("div",{className:"footer-social",children:[i.jsx("div",{className:"social-dot",children:"ð"}),i.jsx("div",{className:"social-dot",children:"in"}),i.jsx("div",{className:"social-dot",children:"f"})]})]})]})]})}function UKe(){return i.jsx("div",{className:"connect",children:i.jsx(Mt,{children:i.jsx("div",{className:"connect__pages",children:i.jsxs("div",{className:"connect__contact",children:[i.jsxs("div",{className:"connect__heading",children:["Connect with Lagos",i.jsx("p",{children:"Send a message to the email address below to get in touch."})]}),i.jsxs("div",{className:"action__connect",children:[i.jsxs("div",{className:"email",children:[" ",i.jsx("a",{href:"mailto:[email protected]",children:" [email protected] "})," "]}),i.jsxs("div",{className:"address",children:[i.jsx("p",{children:"The Secretariat, Obafemi Awolowo way, Ikeja, Lagos State, Nigeria."}),i.jsx("a",{target:"_blank",href:"https://www.google.com/maps/dir//Lagos+State+Secretariat+-+Alausa,+Obafemi+Awolowo+Way,+Oregun,+Ikeja+101233,+Lagos/@6.5765376,3.3390592,13z/data=!4m9!4m8!1m0!1m5!1m1!1s0x103b93a333810f2f:0x6f664872f21b48bd!2m2!1d3.3596427!2d6.6169887!3e0?entry=ttu",children:"Get directions"})]}),i.jsxs("div",{className:"social__media",children:[i.jsx("p",{children:"Follow Lagos State"}),i.jsxs("div",{className:"socials__icons",children:[i.jsx("a",{target:"_blank",href:"https://www.instagram.com/lagosstategovt/?hl=en",className:"soc insta",children:i.jsx(w5,{})}),i.jsx("a",{target:"_blank",href:"https://x.com/followlasg",className:"soc x",children:i.jsx(C5,{})}),i.jsx("a",{target:"_blank",href:"https://web.facebook.com/followlasg",className:"soc fb",children:i.jsx(Cse,{})}),i.jsx("a",{target:"_blank",href:"https://www.linkedin.com/company/lagosstategovernment/?originalSubdomain=ng",className:"soc linkdn",children:i.jsx(bz,{})}),i.jsx("a",{target:"_blank",href:"https://youtube.com/@lasgpage",className:"soc yt",children:i.jsx(k5,{})})]})]})]})]})})})})}const VKe=({close:e,data:t})=>{const[n,r]=v.useState("default"),[a,s]=v.useState(""),[o,l]=v.useState(""),[d,u]=v.useState(""),h=()=>{r("pending");const p=Dn(new Date);o===""||d===""?(s("All fields are required!"),setTimeout(()=>{s("")},2e3)):n==="default"&&eW(t._id,{email:o,fullname:d,date:p}).then(g=>{g.status==="ok"?(s(g.message),setTimeout(()=>{l(""),u(""),r("default"),s(""),e(!1)},2e3)):(s(g.message),setTimeout(()=>{r("default"),s("")},2e3))})};return i.jsx("div",{className:"registerEvent",children:i.jsxs("div",{className:"registrationCard",children:[i.jsxs("div",{className:"title",children:["Register for Event",i.jsx("div",{className:"arry",onClick:()=>e(!1),children:i.jsx(et,{})})]}),i.jsxs("form",{children:[i.jsxs("div",{className:"formation",children:[i.jsx("label",{htmlFor:"fullname",children:"Fullname"}),i.jsx("input",{type:"text",name:"fullname",placeholder:"Enter fullname",value:d,onChange:p=>u(p.target.value)})]}),i.jsxs("div",{className:"formation",children:[i.jsx("label",{htmlFor:"email",children:"Email"}),i.jsx("input",{type:"email",name:"email",placeholder:"Enter email",value:o,onChange:p=>l(p.target.value)})]}),i.jsx("div",{className:"submitEvent",onClick:h,children:" Register "})]}),a!==""?i.jsx("div",{className:"message",children:a}):null]})})},GKe=({data:e})=>{const[t,n]=v.useState(""),[r,a]=v.useState(""),[s,o]=v.useState(!1);return v.useEffect(()=>{(()=>{const d=zbe(e.date);n(d);const u=Fbe(e.date);a(u)})()},[]),i.jsxs("div",{className:"event__item",children:[i.jsx("div",{className:"event__photo",children:i.jsx("img",{src:e.photo,alt:""})}),i.jsxs("div",{className:"event__details",children:[i.jsxs("div",{className:"event__date",children:[" ",Dn(e.date)," "]}),i.jsx("div",{className:"event__title",children:e.title}),i.jsx("div",{className:"event__time",children:t?i.jsxs("div",{className:"isPast expired",children:[" Expired ",r," ago "]}):i.jsxs("div",{className:"isPast",children:[" upcoming in ",r," "]})}),t?null:i.jsxs("div",{className:"rsvp",onClick:()=>o(!0),children:[" Register for this event ",i.jsx("div",{className:"arry",children:i.jsx(er,{})})," "]})]}),s?i.jsx(VKe,{close:o,data:e}):null]})};function WKe(){pt();const{page:e,topic:t}=Pe(),[n,r]=v.useState({length:0,pageCount:0}),[a,s]=v.useState(0),o=Ke({queryKey:["events",e,t],queryFn:()=>SNe(t,Number(e-1))});return v.useEffect(()=>
2964{window.scroll(0,0),r({length:a,pageCount:parseInt(a/20)+1})},[e,t,a]),v.useEffect(()=>{s(o?.data?.length)},[o?.data]),o.error?(o.error.message,i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})})):o.isLoading||o.isLoading?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):i.jsx("div",{className:"events",children:i.jsx(Mt,{children:i.jsxs("div",{className:"events__body",children:[i.jsx("div",{className:"events__body__title",children:" Lagos State Events "}),i.jsx("div",{className:"events",children:o?.data?.data?.length?o?.data?.data.map((l,d)=>i.jsx(GKe,{data:l},l._id)):i.jsx("div",{className:"emptyTray uppercase",children:" Sorry there are no upcoming events "})})]})})})}const YKe="/assets/%20grain-B3td5-o3.png",KKe="/assets/buildings-u25oBZe_.svg",XKe="data:image/svg+xml,%3csvg%20width='847'%20height='485'%20viewBox='0%200%20847%20485'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_129_699)'%3e%3cpath%20d='M422.5%2028L830.5%20472M822.5%20472L426%2039L814.5%20472M422.5%2043L807.5%20472M426%2050.5L799.5%20472M426%2057L792%20472M426%2064.5L783%20472M426%2071L774.5%20472M426%2077.5L765%20472M426%2084.5L758%20472M426%2090.5L753.5%20476M426%2097.5L748.5%20476M426%20105.5L742.5%20476M426%20112.5L735%20476M433%20127L727%20476M433%20135L718.5%20476M436%20142.5L709%20476M436%20150.5L702.5%20476M440%20160.5L693.5%20476'%20stroke='%23A9A9A6'%20stroke-width='0.7'/%3e%3cpath%20d='M483.262%20242.652L462.444%20150.475L488.242%207.19922L471.179%209.69854L445.408%20150.475L492.732%20397.501L514.449%20385.113L483.262%20242.652ZM424.454%2030.0463H409.214L431.665%20139.5H445.408L431.665%2065.3356L424.454%2030.0463Z'%20fill='%23D9DBC5'/%3e%3cpath%20d='M408%2040L0%20484M8%20484L408%2047L16%20484M412%2051L23%20484M412%2061L31%20484M412%2066L38.5%20484M412%2073L47.5%20484M412%2081L56%20484M415.5%2087L65.5%20484M415.5%2094L72.5%20484M415.5%20100.5L77%20488M419%20107.5L82%20488M419%20114.5L88%20488M424.5%20120.5L95.5%20488M424.5%20130.5L103.5%20488M424.5%20139L112%20488M428.5%20147L121.5%20488M428.5%20154.5L128%20488M432.5%20162.5L137%20488'%20stroke='%23A9A9A6'%20stroke-width='0.7'/%3e%3cpath%20d='M479.5%2017L887.5%20461M879.5%20461L479.5%2024L871.5%20461M475.5%2028L864.5%20461M475.5%2038L856.5%20461M475.5%2043L849%20461M475.5%2050L840%20461M475.5%2058L831.5%20461M472%2064L822%20461M472%2071L815%20461M472%2077.5L810.5%20465M468.5%2084.5L805.5%20465M468.5%2091.5L799.5%20465M463%2097.5L792%20465M463%20107.5L784%20465M463%20116L775.5%20465M459%20124L766%20465M459%20131.5L759.5%20465M455%20139.5L750.5%20465'%20stroke='%23A9A9A6'%20stroke-width='0.7'/%3e%3cpath%20d='M514.449%20385.113L492.732%20397.501L445.408%20150.475L471.179%209.69854L488.242%207.19922L462.444%20150.475L483.262%20242.652L514.449%20385.113Z'%20fill='%23D9DBC5'/%3e%3cpath%20d='M424.454%2030.0463H409.214L395.063%207.19922H402.547L410.874%209.26387L418.249%2019.234L423.773%2026.7048L424.454%2030.0463Z'%20fill='%23CCCEB9'/%3e%3cpath%20d='M435.829%2030.046H434.931L434.876%2028.3345L435.829%2030.046Z'%20stroke='%23D9DBC5'%20stroke-miterlimit='10'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M471.179%209.69854L445.408%20150.475L492.732%20397.501L491.154%20398.397L473.275%20386.362L450.66%20245.586L450.633%20245.531V245.423L450.388%20243.901L450.334%20244.227L437.298%20193.562L399.635%20395.898H379.66L427.501%20165.825L395.063%207.19922L409.214%2030.0463L417.813%2065.2813L435.829%2065.5258L450.796%2066.1778L460.375%2027.1395L471.179%209.69854ZM418.575%2077.9952L422.521%2092.9639V92.964H447.068V92.9639L451.64%2077.9952L451.64%2077.9951H418.575V77.9952ZM425.733%20114.751V114.752H445.408V114.751V100.435V100.435H425.733V100.435V114.751ZM428.563%20125.971L432.291%20135.615H438.85L442.605%20125.971L442.605%20125.971H428.563L428.563%20125.971Z'%20fill='%237C8B88'/%3e%3cpath%20d='M450.334%20244.227V244.254L422.113%20388.427L399.635%20395.898L437.298%20193.562L450.334%20244.227Z'%20fill='%23D9DBC5'/%3e%3c/g%3e%3crect%20y='472'%20width='176'%20height='13'%20fill='%237C8B88'/%3e%3cdefs%3e%3cclipPath%20id='clip0_129_699'%3e%3crect%20width='842'%20height='485'%20fill='white'%20transform='translate(5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ZKe="data:image/svg+xml,%3csvg%20width='1623'%20height='27'%20viewBox='0%200%201623%2027'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1623'%20height='27'%20fill='%23384D4E'/%3e%3crect%20x='21'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='191'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='361'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='531'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='701'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='871'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='1041'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='1211'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='1381'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3crect%20x='1551'%20y='11.8535'%20width='40'%20height='3'%20fill='%23D9D9D9'/%3e%3c/svg%3e",QKe="data:image/svg+xml,%3csvg%20width='1517'%20height='91'%20viewBox='0%200%201517%2091'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='27'%20width='1517'%20height='64'%20fill='%2399C8FF'/%3e%3crect%20width='1201'%20height='11'%20fill='%23038B5C'/%3e%3crect%20x='26.6809'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='22.6383'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='52.5532'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='48.5106'%20y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='153.958'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='149.915'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='179.83'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='175.787'%2
29640y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='281.234'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='277.192'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='307.106'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='303.064'%20y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='408.51'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='404.468'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='434.383'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='430.34'%20y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='535.787'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='531.745'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='561.66'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='557.617'%20y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='663.064'%20y='11.2339'%20width='10.5106'%20height='23.4468'%20fill='%2302764E'/%3e%3crect%20x='659.021'%20y='34.6807'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3crect%20x='688.936'%20y='11.2339'%20width='10.5106'%20height='20.2128'%20fill='%2302764E'/%3e%3crect%20x='684.894'%20y='31.4468'%20width='19.4043'%20height='11.3191'%20fill='%23015035'/%3e%3c/svg%3e",JKe="/assets/brt-D9HOleQA.svg",eXe="/assets/danfo-DMcnn-rJ.svg",tXe="/assets/eyo-mgJydo8i.svg",nXe="/assets/lagosride
2964-HMA1pcmQ.svg",rXe="/assets/lasg__blueline__rail-Uyqc1jR9.svg",iXe="/assets/lasumbus-QDqmIooE.svg",aXe="/assets/train__station-DhjhM0gY.svg";function sXe(){return i.jsxs("div",{className:"lasg__illustration",children:[i.jsx("div",{className:"lasg__illustration__road",children:i.jsx("img",{src:ZKe,alt:""})}),i.jsx("div",{className:"lasg__illustration__theatre",children:i.jsx("img",{src:KKe,alt:""})}),i.jsx("div",{className:"lasg__illustration__water",children:i.jsx("img",{src:QKe,alt:""})}),i.jsx("div",{className:"lasg__illustration__eko",children:i.jsx("img",{src:XKe,alt:""})}),i.jsx("div",{className:"lasg__illustration__station",children:i.jsx("img",{src:aXe,alt:""})}),i.jsx("div",{className:"lasg__illustration__train",children:i.jsx("img",{src:rXe,alt:""})}),i.jsx("div",{className:"lasg__illustration__eyo",children:i.jsx("img",{src:tXe,alt:""})}),i.jsx("div",{className:"motion__illustration brt",children:i.jsx("img",{src:JKe,alt:"Lagos State Assets"})}),i.jsx("div",{className:"motion__illustration lasumbus",children:i.jsx("img",{src:iXe,alt:"Lagos State Assets"})}),i.jsx("div",{className:"motion__illustration lagride",children:i.jsx("img",{src:nXe,alt:"Lagos State Assets"})}),i.jsx("div",{className:"motion__illustration__2 danfo",children:i.jsx("img",{src:eXe,alt:"Lagos State Assets"})})]})}const oXe="/assets/blur__gradient-jaX8mkgo.png",lXe="/assets/blur__gradient__orange-CuaY4TQX.png";function cXe(){const[e,t]=v.useState(""),[n,r]=v.useState(!1),[a,s]=v.useState(!1),o=ps(D=>D.setCheckIsChatOpen),l=ps(D=>D.setLanguagePreference),d=ps(D=>D.languagePreference),u=ps(D=>D.addMessage),[h,p]=v.useState(""),[g,y]=v.useState(!1),b={en:{name:"English",code:"en"},yo:{name:"Yorùbá",code:"yo"},pcm:{name:"Nigerian Pidgin",code:"pcm"},ig:{name:"Igbo",code:"ig"},ha:{name:"Hausa",code:"ha"}},w=ou(D=>D.darkmode),j=()=>{r(!1),t(""),document.body.style.overflowY="visible"},S=D=>{window.scrollTo({top:document.querySelector(`#${D}`).getBoundingClientRect().top-document.body.getBoundingClientRect().top-100})},k=ou(D=>D.initialSuggestions),N=v.useRef(null),[_,L]=v.useState(!1),[E,T]=v.useState(!1),P=()=>{const D=N.current;D&&(L(D.scrollLeft>4),T(D.scrollLeft+D.clientWidth<D.scrollWidth-4))};v.useEffect(()=>{P();const D=N.current;if(D)return D.addEventListener("scroll",P),window.addEventListener("resize",P),()=>{D.removeEventListener("scroll",P),window.removeEventListener("resize",P)}},[k]);const $=D=>{N.current?.scrollBy({left:D==="right"?200:-200,behavior:"smooth"})},O=()=>{h!==""&&(u(h),o(!0),p(""))},q=D=>{D!==""&&(u(D),o(!0),p(""))};return v.useEffect(()=>{const D=z=>{g&&!z.target.closest(".language-preference")&&y(!1)};return document.addEventListener("click",D),()=>document.removeEventListener("click",D)},[g]),i.jsxs("div",{className:`slider home ${w?"dark":"light"}`,children:[i.jsx("div",{className:"filters background__filters",children:i.jsx("img",{src:oXe,alt:""})}),i.jsx("div",{className:"filters orange__part",children:i.jsx("img",{src:lXe,alt:""})}),i.jsxs("div",{className:"grain",children:[" ",i.jsx("img",{src:YKe,alt:""})," "]}),n?i.jsx(RN,{query:e,closeModal:j}):null,i.jsxs(Mt,{customStyle:"",children:[i.jsxs("div",{className:"photo_container",children:[i.jsx("div",{className:"home__content",children:i.jsx("div",{className:"text__area",children:"A Smarter, Simpler Way to Access Lagos State Services"})}),i.jsxs("div",{className:"lasg-ai-chatbot",children:[i.jsxs("div",{className:"chat-textarea",children:[i.jsx("div",{className:"hero-type"}),i.jsx("textarea",{name:"chatInput",id:"chatInput",placeholder:"Ask Eko
2964Smart about Lagos State services...",value:h,onChange:D=>p(D.target.value),onKeyDown:D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),O())}}),i.jsx("button",{className:"send-chat",onClick:()=>O(),children:i.jsx(Qde,{strokeWidth:2})}),i.jsxs("div",{className:"language-preference flex items-center gap-[6px]",onMouseDown:D=>{D.preventDefault(),D.stopPropagation(),y(!0)},children:[i.jsx("div",{children:i.jsx(xz,{className:"text-[12px]"})}),i.jsx("p",{className:"font-medium",children:b[d].name}),i.jsx("div",{children:i.jsx(ar,{className:"text-[12px]"})})]}),g?i.jsx(hU,{closeModal:()=>y(!1),language:d,setLanguage:l,setShowLanguageMenu:y,LANGUAGES:b}):null]}),k?.length>0&&i.jsxs("div",{className:"suggestions-wrapper",children:[i.jsx("div",{className:`arrow__nav abs1 ${_?"":"is-disabled"}`,onClick:()=>_&&$("left"),"aria-label":"Scroll suggestions left",children:i.jsx("div",{className:"abs",children:i.jsx(jf,{})})}),i.jsx("div",{className:"suggestions",ref:N,children:k.map((D,z)=>i.jsx("div",{className:"suggestion",onClick:()=>q(D),children:i.jsxs("p",{className:"flex items-center gap-2",children:[D," ",i.jsx(Oe,{fontSize:8,className:"text-amber-300",strokeWidth:2})]})},z))}),i.jsx("div",{className:`arrow__nav abs2 ${E?"":"is-disabled"}`,onClick:()=>E&&$("right"),"aria-label":"Scroll suggestions right",children:i.jsx("div",{className:"abs",children:i.jsx(Ul,{})})})]})]})]}),i.jsxs("div",{onClick:()=>S("quickCheck"),className:"trigger",style:{color:w?"#fff":""},children:["Get Started,"," ",i.jsxs("span",{children:["Scroll down"," ",i.jsx("div",{className:"icon",children:i.jsx(Hm,{strokeWidth:2.5})})]})]})]}),i.jsx(sXe,{})]})}const uXe="/assets/ileraeko-bcA3YzZH.png",dXe="/assets/lagride-C8GABJxW.png",fXe="/assets/lasrra-BMlgSc36.png",hXe="/assets/ileraeko_sm-BVVeaxqR.png",pXe="/assets/lagride_sm-CLqWROss.png",mXe="/assets/lasrra_sm-C27fpA0b.png";function gXe(){const e=r=>{const a=document.getElementById("quick__holder");r==="right"?a.scrollLeft+=500:a.scrollLeft-=500},[t,n]=v.useState(!1);return v.useEffect(()=>{window.innerWidth<1e3&&n(!0)},[t]),i.jsxs("div",{className:"newQuick",children:[i.jsxs("div",{className:"quick__controls flex",children:[i.jsx("div",{className:"arrow__nav abs1",onClick:()=>e("left"),children:i.jsx("div",{className:"abs",children:i.jsx(jf,{strokeWidth:.7})})}),i.jsx("div",{className:"arrow__nav abs1",onClick:()=>e("right"),children:i.jsx("div",{className:"abs",children:i.jsx(Ul,{strokeWidth:.7})})})]}),i.jsx(Mt,{children:t?i.jsxs("div",{className:"quick__holder",id:"quick__holder",children:[i.jsxs("div",{onClick:()=>window.open("https://www.lagosresidents.gov.ng/"),className:"mobile",children:[" ",i.jsx("img",{src:mXe,alt:"lasrra"})," "]}),i.jsxs("div",{onClick:()=>window.open("https://ileraeko.com/"),className:"mobile",children:[" ",i.jsx("img",{src:hXe,alt:"ilera eko"})," "]}),i.jsxs("div",{onClick:()=>window.open("https://lagosride.com/"),className:"mobile",children:[" ",i.jsx("img",{src:pXe,alt:"lagos ride"})," "]})]}):i.jsxs("div",{className:"quick__holder desktop py-25 pb-30",id:"quick__holder",children:[i.jsxs("div",{onClick:()=>window.open("https://www.lagosresidents.gov.ng/"),className:"quickId",children:[" ",i.jsx("img",{src:fXe,alt:"lasrra"})," "]}),i.jsxs("div",{onClick:()=>window.open("https://ileraeko.com/"),className:"quickId",children:[" ",i.jsx("img",{src:uXe,alt:"ilera eko"})," "]}),i.jsxs("div",{onClick:()=>window.open("https://lagosride.com/"),className:"quickId",children:[" ",i.jsx("img",{src:dXe,alt:"lagos ride"})," "]})]})})]})}function yJ({bgColor:e,location:t,data_limit:n}){const[r,a]=v.useState([]),s=Ke({queryKey:["category"],queryFn:()=>tg()});return v.useEffect(()=>{gb(s?.data?.data,"name").then(o=>a(o))},[s?.data]),i.jsx("div",{className:`services ${t==="services"?"server":""}`,id:"services",style:{backgroundColor:e},children:i.jsxs(Mt,{children:[t==="home"?i.jsxs("div",{className:"midTopic",children:[i.jsx("div",{className:"topic thick_700",children:"Browse all Lagos State Services & Topics"}),i.jsx("div",{className:"subtitle uppercase",children:"Making it easier to have quick access to Lagos State services and information"})]}
2964):null,s.isLoading?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsx("div",{className:`servicesPlatoon ${t==="services"?"servicePagePlatoon":""} `,children:r?.filter(o=>!o.isOffline)?.map((o,l)=>i.jsxs(Rl.div,{className:"services_card",onClick:()=>window.location.href=`/services/${o.formattedName}`,children:[i.jsxs("div",{className:"icon",children:[i.jsx("div",{className:"hov hov1",children:i.jsx("img",{src:o.icon,alt:""})}),i.jsx("div",{className:"hov hov2",children:i.jsx("img",{src:o.icon,alt:""})})]}),i.jsxs("div",{className:"title thick",children:[" ",o.name," "]}),i.jsxs("div",{className:"subtext",children:[" ",o.short," "]})]},l))})]})})}function vXe({darkmode:e}){return i.jsx(Mt,{children:i.jsxs("div",{className:`budgetting flex ${e?"darkmode":""}`,children:[i.jsxs("div",{className:"budget__card",children:[i.jsx("div",{className:"tiny",children:"Est. Population"}),i.jsx("p",{children:"22mn+"})]}),i.jsx("div",{className:"divider"}),i.jsxs("div",{className:"budget__card",children:[i.jsx("div",{className:"tiny",children:"Number of Visitors"}),i.jsx("p",{children:"1.3mn+"})]}),i.jsx("div",{className:"divider"}),i.jsxs("div",{className:"budget__card",children:[i.jsx("div",{className:"tiny",children:" State Revenue - 2023 "}),i.jsx("p",{children:"N651.2bn"})]}),i.jsx("div",{className:"divider"}),i.jsxs("div",{className:"budget__card",children:[i.jsx("div",{className:"tiny",children:" vehicles on the road "}),i.jsx("p",{children:"5.2mn+"})]}),i.jsx("div",{className:"divider"}),i.jsxs("div",{className:"budget__card",children:[i.jsx("div",{className:"tiny",children:"biggest economy"}),i.jsx("p",{children:"6th in Africa"})]})]})})}function yXe(){const[e,t]=v.useState([]);return v.useEffect(()=>{XN(0,"all").then(n=>{const r=n.data.filter((a,s)=>s<5);t(r)})},[]),i.jsx("div",{className:"rent",children:i.jsx(Mt,{children:i.jsxs("div",{className:"news_card_body renty",children:[i.jsx("div",{className:"notion",children:" Stay Informed with the latest news "}),i.jsx("p",{children:" Read latest news and events in Lagos state "}),i.jsx("div",{className:"news_results_section",children:e.map(n=>i.jsxs("a",{className:"news_card",href:`/news/${n.categories[0]}/view/${n._id}`,children:[i.jsx("div",{className:"news_image",children:i.jsx("img",{src:n.photo})}),i.jsxs("div",{className:"news_body_content",children:[i.jsxs("div",{className:"date",children:[" ",Y5(n.date)," "]}),i.jsxs("div",{className:"news_topic",children:[" ",Wn(vn(n.title),75)," "]}),i.jsxs("div",{className:"news_details",children:[i.jsxs("div",{className:"details_themes",children:[" ",n.categories[0]," "]}),i.jsxs("div",{className:"details_readTime",children:[" ",i.jsx(rm,{})," ",su(n.content)," Mins Read - "]})]})]})]},n._id))})]})})})}const xXe="data:image/svg+xml,%3csvg%20width='1822'%20height='1822'%20viewBox='0%200%201822%201822'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1777.37%200C1777.37%200%20666.513%20266.605%20666.513%20666.513C666.513%201066.42%201244.16%201021.99%201244.16%201199.72C1244.16%201377.46%20177.737%201644.07%200%201688.5L44.4342%201821.8C44.4342%201821.8%201377.46%201555.2%201377.46%201199.72C1377.46%20844.25%20799.816%20977.553%20799.816%20666.513C799.816%20355.474%201821.8%20133.303%201821.8%20133.303L1777.37%200Z'%20fill='%23009C3E'/%3e%3c/svg%3e",bXe=[{id:"housing",title:"Find Housing & Property Services in Lagos",description:"Access housing permits, land services, and property management solutions in Lagos.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/q_auto/f_auto/v1775550824/housing-lagos_cw0gvs.jpg",attr:'Photo by <a href="https://unsplash.com/@joaccord?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Joshua Oluwagbemiga</a> on <a href="https://unsplash.com/photos/beige-and-brown-concrete-house-under-blue-sky--W9baa2VIBU?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>',href:"/services/housingandlands",buttonText:"View Services",delay:.1},{id:"tourism",title:"Find and Explore Tourism & Visitor Services",description:"Access tourism, travel, and visitor services designed to help you experience the best of Lagos.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/q_auto/f_auto/v1775550825/tourism_sn31vi.jpg",attr:'Photo by <a href="https://unsplash.com/@joaccord?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Joshua Oluwagbemiga</a> on <a href="https://unsplash.com/photos/beige-and-brown-concrete-house-under-blue-sky--W9baa2VIBU?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>',href:"/services/tourism_culture",buttonText:"View Services",delay:.2},{id:"jobs",title:"Discover Work & Employment Services in Lagos",description:"Access employment, business, and regulatory services driving sustainable growth in Lagos.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/q_auto/f_auto/v1775551078/work-lagos_cmd6ou.jpg",attr:"Photo by <a href='https://unsplash.com/@ninthgrid_?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Ninthgrid</a> on <a href='https://unsplash.com/photos/a-group-of-people-standing-next-to-each-other-ti8cT
2964-DKwes?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Unsplash</a>",href:"/services/jobopportunities",buttonText:"View Services",delay:.3},{id:"education",title:"Find Lagos state Education & School Services",description:"Access education services, school systems, and learning resources that support excellence across Lagos.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/q_auto/f_auto/v1775553412/education-lagos_oxebm0.jpg",href:"/services/education",buttonText:"Explore Services",delay:.4},{id:"payment",title:"Find and Manage Payments & Government Fees",description:"Access taxes, levies, fines, and payment services securely and conveniently across Lagos State.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/v1775552306/payment_uqrfp6.jpg",attr:"",href:"/services/payments_levies",buttonText:"Find Payments",delay:.5},{id:"safety",title:"Find and Manage Safety & Emergency Services",description:"Access security, emergency response, and public safety services whenever you need them most quickly.",image:"https://res.cloudinary.com/dirmxkznt/image/upload/q_auto/f_auto/v1775551670/safety_gqnnso.jpg",attr:"",href:"/services/disasters_emergencies",buttonText:"View Services",delay:.6}];function wXe({darkmode:e}){const t=()=>{window.scrollTo({top:document.querySelector("#services").getBoundingClientRect().top-document.body.getBoundingClientRect().top-100})};return i.jsx("div",{className:`${e?"quickCheck darkmode":"quickCheck"} bg-gray-50!`,id:"quickCheck",children:i.jsxs(Mt,{children:[i.jsxs("div",{className:"getStarted",children:[i.jsxs("div",{className:"textString thick",children:[i.jsx("div",{className:"textChange",children:"Find and Access 300+ Essential Public Services in Lagos State"}),i.jsx("div",{className:"pasty",children:"Access everything you need from payments and permits to registrations and public services on a unified digital platform designed to be faster, simpler, and secure."})]}),i.jsx(x5,{iconProps:{strokeWidth:2,width:16,height:16},children:i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-4 lg:gap-6 mt-10 w-full",children:bXe.map(n=>i.jsxs("div",{className:"p-5 bg-white rounded-[16px] flex flex-col max-w-110 md:max-w-full mx-auto",children:[i.jsx("img",{src:n.image,alt:n.attr,className:"w-full h-50 object-cover rounded-lg"}),i.jsx("h3",{className:"text-[17px] font-semibold w-full xl:w-[75%] leading-[1.45] mt-4",children:n.title}),i.jsx("p",{className:"text-[15px] text-gray-600! mt-2 leading-[1.5]",children:n.description}),i.jsxs("a",{className:"text-white! flex gap-2 items-center font-medium mt-6 mb-1 text-[14px] bg-green-950 rounded-[6px] px-4 py-2 w-max",href:n.href,children:["View Services",i.jsx(Oe,{className:"text-green-200"})]})]},n.id))})}),i.jsxs("div",{className:"linkServices mt-1 bg-white py-3 px-6 rounded-[10px] shadow-gray-100 shadow-lg border border-gray-100 text-[15px] flex gap-2 items-center",children:["Ready to explore?"," ",i.jsx("a",{className:"font-semibold! text-gray-700!",onClick:t,children:"Browse all services"}),i.jsx(Hm,{className:"text-[10px] ml-1 mt-[2px]",strokeWidth:2.5})]})]}),i.jsx("div",{className:"lineBg",children:i.jsx("img",{src:xXe,alt:""})})]})})}const jXe=()=>{const[e,t]=v.useState(!1),n=ou(r=>r.darkmode);return i.jsxs("div",{className:"home",children:[i.jsx("div",{className:"bg-[#f0f7f673]",children:i.jsx(cXe,{})}),i.jsx(vXe,{darkmode:n}),i.jsx(wXe,{darkmode:n}),i.jsx(gXe,{}),i.jsx(yJ,{bgColor:"#f0f7f6",location:"home",data_limit:100}),i.jsx(yXe,{})]})};function SXe({size:e,page:t,topic:n}){let r=pt();const[a,s]=v.useState(1);v.useEffect(()=>{setTimeout(()=>{s(t)},500)},[t]);const o=()=>{let p=[],g=Number(t);const y=document.querySelector(`.page${a}`),b=document.querySelector(".page1");if(document.querySelector(".activePage")!==null&&document.querySelector(".activePage").classList.remove("activePage"),g<1?b?.classList.add("activePage"):y?.classList.add("activePage"),g<1)for(var w=1;w<=10&&w<=e?.pageCount;w++)p.push(w);else if(g>10&&g<20)for(var w=11;w<20&&w<=e?.pageCount;w++)p.push(w);else if(g<=10&&g>=1)for(var w=1;w<=10&&w<=e?.pageCount;w++)p.push(w);else for(var w=t.split("")[0]*10-9;w<=t.split("")[0]*10&&w<=e?.pageCount;w++)p.push(w);return p},l=()=>{let p=[];for(var g=1;g<=e?.pageCount;g++)p.push(g);return p},d=()=>{r(`/news/${n}/${Math.min(Number(t)+1,e.pageCount)}`)},u=()=>{r(`/news/${n}/${Math.max(Number(t)-1,1)}`)},h=p=>{r(`/news/${n}/${p}`)};return i.jsx("div",{className:"pagination__container",children:e?.pageCount>0&&Number(t)<=e?.pageCount?i.jsxs("div",{className:"pagination flex",children:[i.jsxs("div",{className:"link__point",onClick:()=>h(1),children:[" ","First Page (1)"," "]}),i.jsxs("div",{className:"pagination__controls",onClick:()=>u(),children:[" ",i.jsx(jf,{})," "]}),i.jsx("div",{className:"pageControl",children:o().map(p=>i.jsxs("div",{className:`pageIndex page${p}`,onClick:()=>h(p),children:[" ",p," "]}))}
2964),i.jsx("select",{name:"page",id:"page",onChange:p=>h(p.target.value),value:t,children:l().map(p=>i.jsxs("option",{value:p,children:[" Page ",p," "]}))}),i.jsxs("div",{className:"pagination__controls",onClick:()=>d(),children:[" ",i.jsx(Ul,{})," "]}),i.jsxs("div",{className:"link__point",onClick:()=>h(e.pageCount),children:[" ","Last Page ( ",e.pageCount," )"," "]})]}):null})}function CXe({data:e,topic:t}){const[n,r]=v.useState(e),[a,s]=v.useState([]);v.useEffect(()=>{const u=e?.filter((h,p)=>p>0);s(u)},[e]);const o=u=>{const h=document.createElement("div");h.innerHTML=u;const p=h.innerText;return Wn(p,100)},l=u=>{const h=vn(u);return Wn(h,60)},d=u=>u.split(" ")[0].replace(",","");return i.jsx("div",{className:"fetchedNews",children:e?.length?i.jsxs("div",{children:[i.jsx("a",{className:"landingNews",href:`/news/${t}/view/${e[0]._id}`,children:i.jsxs("div",{className:"mainHighlight",children:[i.jsx("div",{className:"overlay"}),i.jsx("div",{className:"highlight_image",children:i.jsx("img",{src:e[0].photo,alt:""})}),i.jsx(Mt,{children:i.jsx("div",{className:"contentArea__news",children:i.jsxs("div",{className:"highlight_content",children:[i.jsxs("div",{className:"date",children:[" ",nf(e[0]?.date)," "]}),i.jsx("div",{className:"highlight_title",children:vn(e[0].title)}),i.jsx("div",{className:"highlight__short",children:o(e[0].content)}),i.jsxs("div",{className:"info",children:[i.jsx("div",{className:"highlight_theme",children:e[0].categories[0]}),i.jsxs("div",{className:"timeToRead",children:[" ",i.jsx(rm,{})," ",su(e[0].content)," Mins Read - "]})]})]})})})]})}),i.jsx("div",{className:"holderNewsBar",children:i.jsx(Mt,{children:i.jsx("div",{className:"news_card_body main",children:i.jsx("div",{className:"news_results_section",children:a?.length?a.map((u,h)=>i.jsxs("a",{className:"news_card",href:`/news/${t}/view/${u._id}`,children:[i.jsx("div",{className:"news_image",children:i.jsx("img",{src:u.photo})}),i.jsxs("div",{className:"news_body_content",children:[i.jsxs("div",{className:"date",children:[" ",nf(u.date)," "]}),i.jsxs("div",{className:"news_topic",children:[" ",l(u.title)," "]}),i.jsxs("div",{className:"news_details",children:[i.jsxs("div",{className:"details_themes",children:[" ",d(u.categories[0])," "]}),i.jsxs("div",{className:"details_readTime",children:[" ",i.jsx(rm,{})," ",su(e[0].content)," Mins Read - "]})]})]})]},h)):i.jsx("div",{className:"uppercase",style:{letterSpacing:"2px",fontSize:"11px"},children:" No other additional news found! "})})})})})]}):i.jsx("div",{className:"loaderPage uppercase-t",children:" Oops! No news found! "})})}function kXe(){let e=pt();const[t,n]=v.useState([]),{page:r,topic:a}=Pe(),[s,o]=v.useState({length:0,pageCount:0}),[l,d]=v.useState(0),u=Ke({queryKey:["news",r,a],queryFn:()=>XN(Number(r-1),a)}),h=Ke({queryKey:["category"],queryFn:()=>tg()});v.useEffect(()=>{gb(h?.data?.data,"name").then(y=>n(y))},[h?.data]),v.useEffect(()=>{window.scroll(0,0),o({length:l,pageCount:parseInt(l/20)+1})},[r,a,l]),v.useEffect(()=>{d(u?.data?.length)},[u?.data]);const p=y=>{e(`/news/${y}/1`)},g=y=>{const b=document.getElementById("newsTopic");y==="left"?b.scrollLeft+=250:b.scrollLeft-=250};return u.error?(u.error.message,i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})})):u.isLoading||h.isLoading?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):i.jsx("div",{className:"news_body",children:i.jsxs("div",{className:"news",children:[i.jsx("div",{className:"news_tag",children:i.jsx(Mt,{children:i.jsxs("div",{className:"containerWrap flex",children:[i.jsxs("div",{className:"arrowNavigation",onClick:()=>g("right"),children:[" ",i.jsx(jf,{})," "]}),i.jsxs("div",{className:"newsTopic flex",id:"newsTopic",children:[i.jsxs("div",{className:`news_tagging ${a==="all"?"active":""} `,onClick:()=>p("all"),children:[" ","All"," "]}),t?.length?t.map((y,b)=>i.jsxs("div",{className:`news_tagging ${y.name===a?"active":""} `,onClick:()=>p(y.name),children:[" ",y.name," "]},b)):null]}),i.jsxs("div",{className:"arrowNavigation",onClick:()=>g("left"),children:[" ",i.jsx(Ul,{})," "]})]})})}),i.jsxs("div",{className:"news__show__body",children:[i.jsx(CXe,{data:u.data?.data,topic:a}),u.data?.length>1?i.jsx(SXe,{size:s,page:r,topic:a}):null]})]})})}function NXe(){const{id:e,topic:t}=Pe(),n=pt(),[r,a]=v.useState([]),{isLoading:s,error:o,data:l}=Ke({queryKey:["view_news",{id:e}],queryFn:()=>uW(e)}),d=Ke({queryKey:["view-news",t,e],queryFn:()=>XN(0,t)});v.useEffect(()=>
2964{gb(d?.data?.data,"date").then(h=>a(h))},[d?.data]),v.useEffect(()=>{if(l){const h=document.getElementById("text");h.innerHTML=l?.data.content}},[l]);const u=()=>{n(-1),n(-1)};return s?i.jsx("div",{className:"loaderPage",children:i.jsx(yn,{})}):o?"An error has occurred: "+o.message:i.jsx("div",{className:"view_news",children:i.jsx(Mt,{children:i.jsxs("div",{className:"overhold flex",children:[i.jsxs("div",{className:"news_container",children:[i.jsxs("div",{className:"back_to_news",onClick:()=>u(),children:[" ",i.jsx(Xa,{})," "]}),i.jsxs("div",{className:"current_news",children:[i.jsxs("div",{className:"dateNow",children:[i.jsxs("div",{className:"firstPart flex",children:[Dn(l?.data.date),i.jsx("p",{children:"-"}),i.jsxs("div",{className:"readtime",children:[" ",su(l?.data.content)," Mins Read "]})]}),i.jsxs("div",{className:"tagsArea",children:[" ",l?.data.categories.map((h,p)=>i.jsxs("div",{className:"categoryTag",children:[" ",h," "]},p))," "]})]}),i.jsx("div",{className:"current_news_title",children:vn(l?.data.title)}),i.jsx("div",{className:"current_news_image",children:i.jsx("img",{src:l?.data.photo,alt:""})}),i.jsx("div",{className:"current_news_body",id:"text"})]})]}),i.jsxs("div",{className:"sub_news_container",children:[i.jsx("div",{className:"title__sub__news",children:i.jsx("p",{children:"Other Related News "})}),i.jsx("div",{className:"sub__news__data",children:r?.length?r.map((h,p)=>{if(p<8)return i.jsxs("a",{className:"subs_news",href:`/news/${t}/view/${h._id}`,children:[i.jsx("div",{className:"sub__image",children:i.jsx("img",{src:h.photo,alt:""})}),i.jsxs("div",{className:"sub__title flex",children:[Wn(vn(h.title),60),i.jsx("div",{className:"date",children:Dn(h.date)})]})]})}):null})]})]})})})}const AXe=()=>i.jsxs("div",{className:"privacy",children:[i.jsxs("div",{className:"privacy__header",children:[i.jsx("h1",{children:"Lagos State Privacy Policy"}),i.jsx("p",{children:"Document effective: September 2023"})]}),i.jsx(Mt,{children:i.jsxs("div",{className:"privacy__body",children:[i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 1. Introduction "}),"As a State Government, Lagos State (LASG) must meet its contractual, statutory, and administrative obligations. We are committed to ensuring that the personal data of our residents and service users is handled in accordance with the data protection regulation.",i.jsx("br",{})," ",i.jsx("br",{}),"This privacy notice tells you what to expect when LASG collects personal information about you. It applies to all service users. However, the information we will process about you will vary depending on your specific involvement with LASG.",i.jsx("br",{})," ",i.jsx("br",{}),"If we are requesting your personal data, it is because it is necessary and relevant tothe service or function being performed. As such, if you withhold information, it is likely that we will not be able to perform the service or function, or there will be a delay in doing so.",i.jsx("br",{})," ",i.jsx("br",{}),"LASG is the controller for this information unless this notice specifically states otherwise, and its Data Protection Officer can be contacted at ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 2. Collection of Information "}),"The personal data processed by LASG in order to perform its official tasks includes but not limited to:",i.jsxs("ol",{children:[i.jsx("li",{children:"Names, titles, aliases, and photographs"}),i.jsx("li",{children:"Contact details such as telephone numbers, addresses, vehicle registration and email addresses"}),i.jsx("li",{children:"Gender, age, marital status, nationality, education/work history, place of birth, academic/professional qualifications, hobbies, family composition, and dependents"}),i.jsx("li",{children:"Social care records for adults and children in our care"}),i.jsx("li",{children:"Financial identifiers such as bank account numbers, BVN, payment card numbers, payment/transaction identifiers, policy numbers, and claim numbers"}),i.jsx("li",{children:"Residency identifiers such as LASRRA number, National Identification Number (NIN)"})]}),"We also process Sensitive Personal Data such as criminal convictions, racial or ethnic origin, mental and physical health records, details of injuries, medication/treatment received, political beliefs, trade union affiliation, genetic data and biometric data.",i.jsx("br",{}),i.jsx("br",{}
2964),"These types of data are described in the Nigerian Data Protection Act (NDPA) as âSensitive dataâ and require higher levels of protection. We need to have further justification for collecting, storing and using this type of personal data.",i.jsx("br",{})," ",i.jsx("br",{}),"We process sensitive personal data in the following circumstances:",i.jsxs("ol",{children:[i.jsx("li",{children:"For the provision of social care to children and adults"}),i.jsx("li",{children:"Where it is needed in order to carry out our specific legal obligations."}),i.jsx("li",{children:"Where it is needed for a matter of substantial public interest (such as in the case of a threat to public health)"})]}),"Sometimes we may process this type of personal data in relation to legal claims or to protect your vital interests (or someone elseâs vital interests), and you are not capable of giving your consent. This also applies where you have already made the information public."]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 3. Use of Personal Data "}),"We may use your Personal Data, including non-public Personal Data as followsbut not limited to:",i.jsxs("ol",{children:[i.jsx("li",{children:"To deliver public services including to understand your needs, to provide the services that you request, and to understand what we can do for you and inform you of other relevant services"}),i.jsx("li",{children:"To confirm your identity"}),i.jsx("li",{children:"To contact you"}),i.jsx("li",{children:"To help us to build up a picture of how we are performing"}),i.jsx("li",{children:"To prevent and detect fraud and corruption in the use of public funds and, where necessary, for the law enforcement functions"}),i.jsx("li",{children:"To enable us to meet all legal and statutory obligations and powers including any delegated functions"}),i.jsx("li",{children:"To carry out comprehensive safeguarding procedures (including due diligence and complaints handling) in accordance with best safeguarding practice, from time to time with the aim of ensuring that all children and adults-at-risk are provided with safe environments, and as necessary to protect individuals from harm or injury"}),i.jsx("li",{children:"To protect the use of public funds"}),i.jsx("li",{children:"To maintain our own accounts and records"}),i.jsx("li",{children:"To seek your views, opinions or comments"}),i.jsx("li",{children:"To notify you of changes to our facilities, services, events and staff and other role holders"}),i.jsx("li",{children:"To send you communications which you have requested and that may be of interest to you. These may include information about campaigns, appeals, other new projects or initiatives"}),i.jsx("li",{children:"To process relevant financial transactions including grants and payments for goods and services supplied to the State"}),i.jsx("li",{children:"To allow the statistical analysis of data so we can plan the provision of services"})]}),"LASG is based in Nigeria and the information we collect is governed by the Nigeria Data Protection Act (NDPA). By accessing or using the Services or otherwise providing information to us, you consent to the processing and transfer of information in and to Nigeria."]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 4. Information Sharing "}),"We use a number of 3rd party consultants, vendors and partners to either store personal information or to manage it on our behalf, and also to provide certain services to you. Where we have these arrangements there is always a contract, memorandum of understanding or information sharing protocol in place to ensure that the organization complies with data protection regulation.",i.jsx("br",{}),i.jsx("br",{}),"We may also need to share data internally between ministries, departments and agencies where this is legal and proportionate.",i.jsx("br",{}),i.jsx("br",{}),"In addition, there are circumstances when we are likely to share data with other public authorities and organizations where there is a legal basis for doing so, which might include but not limited to:",i.jsxs("ol",{children:[i.jsx("li",{children:"Local Governments"}),i.jsx("li",{children:"Federal Government"}),i.jsx("li",{children:"Health service providers/regulator"}),i.jsx("li",{children:"The Police"}),i.jsx("li",{children:"FRSC"}),i.jsx("li",{children:"Housing associations"}),i.jsx("li",{children:"Voluntary and charity organizations"})]}),"Sometimes we have a legal duty to supply information about people. This is often because we must give that information to courts, including:",i.jsxs("ol",{children:[i.jsx("li",{children:"When we take a child into care;"}),i.jsx("li",{children:"Court orders; and"}
2964),i.jsx("li",{children:"Cases under health emergencies."})]}),"In very limited circumstances we may share your personal information when there is a pressing and legal reason for doing so that is more important than protecting your confidentiality, for example, if there a serious risk to an individualâs safety. Wemay share your information:",i.jsxs("ol",{children:[i.jsx("li",{children:"For the detection and prevention of crime/fraudulent activity; or"}),i.jsx("li",{children:"If there are serious risks to the public, our staff or to other professionals;"}),i.jsx("li",{children:"To protect a child; or"}),i.jsx("li",{children:"To protect adults who are thought to be at risk, for example if they are frail, confused or cannot understand what is happening to them."})]}),"This risk must be identified as being serious before we can go against your right to privacy. When we are worried about your physical safety or we feel that we need to take action to protect you or another person from being harmed in other ways, we will discuss this with you and, if possible, get your permission to tell others about your situation.",i.jsx("br",{}),i.jsx("br",{}),"When using personal data for research purposes, the data will be anonymized to avoid the identification of an individual, unless consent has been given for the use of the personal data.",i.jsx("br",{}),i.jsx("br",{}),"We do not sell or provide personal information to any other organization for the purposes of direct marketing.",i.jsx("br",{}),i.jsx("br",{}),"We will seek your consent where we need to send your Personal Data to a country without an adequate data protection law."]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 5. Security "}),"We will take appropriate steps to make sure we hold records about you (on paper and electronically) in a secure way, and we will only make them available to thosewho have a right to see them. Our security includes:",i.jsxs("ol",{children:[i.jsx("li",{children:"Encryption"}),i.jsx("li",{children:"Firewall and network security frameworks"}),i.jsx("li",{children:"Access controls on systems"}),i.jsx("li",{children:"Access controls in offices containing personal/sensitive data"}),i.jsx("li",{children:"Security training for all staff"}),i.jsx("li",{children:"Data protection awareness for all staff"}),i.jsx("li",{children:"Policies and procedures around data protection"})]})]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 6. How long will we keep your personal data? "}),"LASG will only retain and store your data for as long as it is needed for the purpose for which it was collected, or as required by the law, or as dictated by best practice as stipulated by our retention policy. We will keep some records permanently if we are legally required to do so. We may keep some other records for an extended period of time. For example, it is currently best practice to keep financial records for a minimum period of 8 years to support audits or provide tax information. We may have legal obligations to retain some data in connection with our statutory obligations as a public authority. We will endeavor to keep data only for as long as we need it, and this means that we will delete it when it is no longer needed"]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 7. Your rights as a data subject "}),"The law gives you certain rights in respect to your Personal Data LASG hold about you. Below is a highlight of some of those rights. At any point while we are in possession of or processing your Personal Data, you, the Data Subject has the following rights:",i.jsxs("ol",{children:[i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT OF ACCESS"})," â You have the right to request a copy of the information that we hold about you."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT TO RECTIFY"})," â You have the right to correct the Personal Data we hold about you that is inaccurate (a legal document backing the claim may be requested)."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT TO BE FORGOTTEN"})," â In certain circumstances you may ask for the data we hold about you to be erased from our record."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT TO RESTRICT PROCESSING"})," â Where certain conditions apply, you have a right to restrict processing of your Personal Data."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT TO PORTABILITY"})," â You have the right to have your Personal Data transferred to another organisation."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"LODGE COMPLAINT"})," â You have a right to lodge a complaint about the handling of your Personal Data with the Nigeria Data Protection Commission (NDPC)."]}),i.jsxs("li",{children:[i.jsx("strong",{children:"RIGHT TO OBJECT"})," â You have the right to object to the Processing of Personal Data."]})]}),"NDPCâs website has a wealth of useful information in respect of your rights over your Personal Data. If you wish to exercise your rights, you may contact our Data Protection Officer at ",i.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),i.jsxs("section",{children:[i.jsx("div",{className:"title",children:" 8. Breach / Privacy Violation "}),"In the event of a breach of security leading to the accidental or unlawful destruction, loss, alteration, unauthorized disclosure of, or access to Personal Data, LASG shall within 72 (Seventy-Two) hours of having knowledge of such breach report the details of the breach to the Nigeria Data Protection Commission (NDPC).",i.jsx("br",{}),i.jsx("br",{}),"Furthermore, where we ascertain that such breach is detrimental to your rights and freedoms in relation to your Personal Data, we shall within 7 (Seven) days of having knowledge of the occurrence of such breach take steps to inform you of the breach incident, the risk to your rights and freedoms resulting from such breach and any course of action to remedy said breach."]})]})})]}),Tp=[{id:1,title:"LAGOS AGRIPRENEURSHIP PROGRAMME (LAP) ONLINE APPLICATION",url:"https://www.lapapplication.com/",theme:"agriculture "},{id:2,title:"Agriculture Estate Development Scheme form",url:"http://alha.lagosagric.org/wp-content/uploads/2022/11/Adobe-Scan-28-Nov-2022-1.pdf",theme:"agriculture"},{id:3,title:"Detailed on Nafdac website (url links to pdf requirements)",url:"https://www.nafdac.gov.ng/wp-content/uploads/Files/Resources/Guidelines/VETERINARY_GUIDELINES/Guidelines-for-Listing-of-Animal-Feed-Toll-Millers-Requirments-for-the-Toll-Milling-Facility-Renewal-new.pdf",theme:"agriculture"},{id:4,title:"Lagos state official gazette ",url:"https://archive.gazettes.africa/archive/ng-la/2020
2964/ng-la-official-gazette-supplement-dated-2020-05-26-no-7.pdf",theme:"laws"},{id:5,title:"MEMR Application Guidelines ( CLEARANCE FOR EXISTING PETROLEUMÂ FILLING STATION)",url:"https://lagosmemr.com/og-guidelines-existing-pfs/",theme:"lisense"},{id:6,title:`MEMR Application Guidelines - Existing PFS 2965GUIDELINES FOR OBTAINING A LOCATION CLEARANCE`,url:"https://lagosmemr.com/mr-guidelines-location-clearance/",theme:"lisense"},{id:7,title:"Lagos State Emergency Numbers",url:"https://trafficonplus.wordpress.com/wp-content/uploads/2018/07/lagos-state-emergency-numbers.pdf",theme:"Emergency "},{id:8,title:"Lagos State Road Traffic Law ",url:"http://lagosministryofjustice.org/wp-content/uploads/2022/01/Lagos-State-Road-Traffic-Law.pdf",theme:"Law "},{id:9,title:"Tenancy Law ",url:"http://lagosministryofjustice.org/wp-content/uploads/2022/01/Tenancy-Law-2011.pdf",theme:"Law"},{id:10,title:"LASAA Download form",url:"http://www.lasaa.com/wp-content/uploads/2012/06/APPLICATION-FORM-1ST-PARTY.pdf",theme:"Applications"},{id:11,title:" LASAA Processing fees ",url:" http://www.lasaa.com/wp-content/uploads/2022/11/PROCESSING-FEE.pdf",theme:"Advertisment"},{id:12,title:"LASAA Rates ",url:"http://www.lasaa.com/wp-content/uploads/2012/06/LASAA-RATE-REVIEW-2022-UPDATE.pdf",theme:"Advertisment"},{id:13,title:"LASAA registrated agencies",url:"http://www.lasaa.com/need-permission/view-registered-agencies/",theme:"Advertisment"},{id:14,title:"download LASAA registration requirements ",url:"http://www.lasaa.com/wp-content/uploads/2012/06/REGISTERATION-REQUIREMENT.pdf",theme:"Applications"},{id:15,title:"BRT Regulation",url:"https://www.lamata-ng.com/wp-content/uploads/2019/09/BRT-REGULATIONS.pdf",theme:"Tranportion"},{id:16,title:"Download Application forms",url:"https://landsbureau.lagosstate.gov.ng/category/forms/",theme:"Application"},{id:17,title:"directorate of land registry application requirements ",url:"https://landsbureau.lagosstate.gov.ng/directorate-of-land-registry/",theme:"Land"},{id:18,title:"Lagos state official gazette for Land spots and their fair value ",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://gazettes.africa/archive/ng-la/2015/ng-la-official-gazette-dated-2015-02-05-no-10.pdf&ved=2ahUKEwii2Iz23teDAxU-S0EAHQADDXkQFnoECDYQAQ&usg=AOvVaw2oz9nl8XBtU9UiKhI4VDKE",theme:"Law"},{id:19,title:"confirm school status (secondary school)",url:"https://drive.google.com/file/d/1HgfRmw_mEzdudvvR2txp_-iILApiIYq5/view?usp=sharing",theme:"Education"},{id:20,title:"confirm school status (Nursery and primary sch)",url:"https://drive.google.com/file/d/16Q9iWjyyLg2gVFNS-l0AESbM2Azq6rfl/view?usp=sharing",theme:"Education"},{id:21,title:"Development Levy (CORPORATE)",url:"https://surveyorgeneral.lagosstate.gov.ng/wp-content/uploads/sites/208/2022/12/OSSG-OVERVIEW-2.pdf",theme:"Tax"},{id:22,title:"Development Levy (INDIVIDUAL)",url:"https://surveyorgeneral.lagosstate.gov.ng/wp-content/uploads/sites/208/2022/12/OSSG-OVERVIEW-2.pdf",theme:"Tax"},{id:23,title:"Consent to Survey (2001 - 5000SQM) (CORPORATE)",url:"https://surveyorgeneral.lagosstate.gov.ng/wp-content/uploads/sites/208/2022/12/OSSG-OVERVIEW-2.pdf",theme:"Tax"},{id:24,title:"DEM (ASCII) 1:2000 (1KM X 1KM)",url:"https://surveyorgeneral.lagosstate.gov.ng/wp-content/uploads/sites/208/2022/12/OSSG-OVERVIEW-2.pdf",theme:"Tax"},{id:25,title:"DEM (LAS) 1:2000 (1KM X 1KM)",url:"https://surveyorgeneral.lagosstate.gov.ng/wp-content/uploads/sites/208/2022/12/OSSG-OVERVIEW-2.pdf",theme:"Tax"},{id:26,title:"Lagos State Laws",url:"https://lagosstate.gov.ng/wp-content/uploads/sites/228/2020/08/Law-1.pdf",theme:"Law"},{id:27,title:"LASBCA GUIDE (PDF)",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://lasbca.lagosstate.gov.ng/wp-content/uploads/2023/11/LASBCA-GUIDE.pdf&ved=2ahUKEwjqhseBhNGDAxUOUEEAHY6wBcMQFnoECBwQAQ&usg=AOvVaw1DNsO8AV5qbfJADeX7aUJ-",theme:"Handbook"},{id:28,title:"PROCEDURE FOR STAGE CERTIFICATION",url:"https://epp.lagosstate.gov.ng/Home/StageCertification",theme:"Registration"},{id:29,title:"Faq on registration for CEC",url:"https://lagosame.org/cec-faqs/",theme:"Ragistration"},{id:30,title:"Registration of Tutorial Centres For Private Resident",url:"https://lagosame.org/register-a-centre/",theme:"Registration"},{id:31,title:"Search For Voational Centers around you ",url:"https://lagosame.org/lagos-vocational-training-centres/",theme:"Education"},{id:32,title:"Offences and penalties pdf ",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://trafficonplus.files.wordpress.com/2018/07/lastma-fines-and-penalties.pdf&ved=2ahUKEwiYvvLy_NCDAxWyUUEAHecADwwQFnoECBwQAQ&usg=AOvVaw1AfrbzR1DQ4c6LUwdkbGKD",theme:"Law"}
2965,{id:33,title:"law regulating waterfront infrastructure in Lagos state",url:"ddhmag.com",theme:"Law"},{id:34,title:"PUBLIC HEALTH LAW",url:"https://moelagos.gov.ng/wp-content/uploads/2013/06/PUBLIC-HEALTH-LAW.pptx",theme:"Law"},{id:35,title:"PATH-WAY TO SUSTAINABLE ENVIRONMENT",url:"https://moelagos.gov.ng/wp-content/uploads/2013/06/PATH-WAY-TO-SUSTAINABLE-ENVIRONMENT.pptx",theme:"article"},{id:36,title:"Wastewater Management Office",url:"https://moelagos.gov.ng/wp-content/uploads/2013/06/WASTEWATER-MANAGEMENT-OFFICE.pptx",theme:"Article"},{id:37,title:"Lagos State DNA & Forensic Center (LSD&FC) complaint form",url:"https://lsdfc.org/wp-content/uploads/2020/05/LSDFC-Form-QAC-003-v3-Customer-Feedback.pdf",theme:"Application"},{id:38,title:"Lagos State DNA & Forensic Center (LSD&FC) chain of custody",url:"https://lsdfc.org/wp-content/uploads/2020/05/LSDFC-Form-For-003-Chain-of-Custody-Rev-2-.pdf",theme:"Application"},{id:39,title:" Lagos State DNA & Forensic Center (LSD&FC) Peace of Mind Biological Relationship Case Submission Form",url:"https://lsdfc.org/wp-content/uploads/2024/01/Peace-of-Mind-Biological-Relationship-Sample-Submission-Form_v2.pdf",theme:"Application"},{id:40,title:"Lagos State DNA & Forensic Center (LSD&FC) Biological Relationship Case Submission Form",url:"https://lsdfc.org/wp-content/uploads/2024/01/LSDFC-Form-For-001_Ver-14_Biological-Relationship-Case-Submission-Form-June-1-2023.pdf",theme:"Application"},{id:41,title:"Lagos State DNA & Forensic Center (LSD&FC) Forensic Case Submission Form",url:"https://lsdfc.org/wp-content/uploads/2023/02/LSDFC-Form-For-002_Ver-11_Forensic-Case-Submission-Form-_06202022.pdf",theme:"Application"},{id:42,title:"NIgerian Tax Laws",url:"https://lagos.ebs-rcm.com/Home/NigeriaTaxLaws",theme:"Law"},{id:43,title:"Lagos State Tax Forms/ ",url:"https://lagos.ebs-rcm.com/Home/DownloadAll",theme:"Application"},{id:44,title:"SME Guideline",url:"https://lagosppa.gov.ng/wp-content/uploads/2021/04/SME-Guideline-ppa-v1.pdf",theme:"Registration"},{id:45,title:"Ministry of Commerce, Industry & Cooperatives pdf",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://lagosstate.gov.ng/wp-content/uploads/sites/147/2022/10/MCIC.pdf&ved=2ahUKEwjo5NO_v9eDAxXpUUEAHUy2BNQQFnoECBwQAQ&usg=AOvVaw0r9-V1Fv67riNoX0waySOD",theme:"Article"},{id:46,title:"Registration guidelines for LSFVCB",url:"https://lagostourism.lagosstate.gov.ng/film-fund",theme:"Registration"},{id:47,title:"Lagos state official gazette for Land spots and their fair value PDF ",url:"https://www.google.com/url?q=https://www.google.com/url?sa%3Dt%26source%3Dweb%26rct%3Dj%26opi%3D89978449%26url%3Dhttps://gazettes.africa/archive/ng-la/2015/ng-la-official-gazette-dated-2015-02-05-no-10.pdf%26ved%3D2ahUKEwii2Iz23teDAxU-S0EAHQADDXkQFnoECDYQAQ%26usg%3DAOvVaw2oz9nl8XBtU9UiKhI4VDKE&sa=D&source=editors&ust=1705795500063033&usg=AOvVaw1iDAwGBEDyege7KN5rSDuI",theme:"Hanbook"},{id:48,title:"LASBCA GUIDE PDF ",url:"https://www.google.com/url?q=https://www.google.com/url?sa%3Dt%26source%3Dweb%26rct%3Dj%26opi%3D89978449%26url%3Dhttps://lasbca.lagosstate.gov.ng/wp-content/uploads/2023/11/LASBCA-GUIDE.pdf%26ved%3D2ahUKEwjqhseBhNGDAxUOUEEAHY6wBcMQFnoECBwQAQ%26usg%3DAOvVaw1DNsO8AV5qbfJADeX7aUJ-&sa=D&source=editors&ust=1705794426681820&usg=AOvVaw0UdC14pzo4Q_v5sRE8tyv8",theme:"Handbook"},{id:49,title:"lastma-fines-and-penalties",url:"https://www.google.com/url?q=https://www.google.com/url?sa%3Dt%26source%3Dweb%26rct%3Dj%26opi%3D89978449%26url%3Dhttps://trafficonplus.files.wordpress.com/2018/07/lastma-fines-and-penalties.pdf%26ved%3D2ahUKEwiYvvLy_NCDAxWyUUEAHecADwwQFnoECBwQAQ%26usg%3DAOvVaw1AfrbzR1DQ4c6LUwdkbGKD&sa=D&source=editors&ust=1705791276308079&usg=AOvVaw0MVDZC5wnDwMx5KLJbV2SK",theme:"Fines"},{id:50,title:"drainage clearance fees and checklist PDF ",url:"https://epp.lagosstate.gov.ng/standards/Fees_and_Checklist.pdf",theme:"Fee_Payment"},{id:51,title:"Criminal laws of Lagos state. ",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://s3-eu-west-1.amazonaws.com/s3.sourceafrica.net/documents/120445/Criminal-Law-of-Lagos-State.pdf&ved=2ahUKEwjd2uiont6DAxVuU0EAHcgy
2965DywQFnoECBAQAQ&usg=AOvVaw0_CFam3hTODurhm8fjBM9a",theme:"Law"},{id:52,title:"Drainage fees PDF ",url:"https://epp.lagosstate.gov.ng/standards/Fees_and_Checklist.pdf",theme:"Fee_Payment"},{id:53,title:"Radio Lagos 107.5 Rate Card",url:"https://radiolagos1075.com/rate-card/",theme:"Fee_Payment"},{id:54,title:"Lagos State Government Y2024 Citizens' Budget ...",url:"https://lagosmepb.org/wp-content/uploads/Y2024-CITIZENS-BUDGET.pdf",theme:"Article"},{id:55,title:":Lagos State Traffic Management solution Enlightenment Video",url:"https://tms.lagosstate.gov.ng/Mobile/mVideos.aspx",theme:"Enlightenment Videos"},{id:56,title:"Lagos Ride Partnership Details",url:"https://lagosride.com/files/partnership-001.pdf",theme:"Article"},{id:57,title:" Lagos Ride Drivers Requirement Documents",url:"https://lagosride.com/files/driver-requirement-doc04.pdf",theme:"Registration"},{id:58,title:"How To Use Lagos Ride",url:"https://lagosride.com/how-to-use/book-a-ride-for-friend",theme:"Article"},{id:59,title:"Lagos State Tenancy Law",url:"http://lagosministryofjustice.org/wp-content/uploads/2022/01/Tenancy-Law-2011.pdf",theme:"Law"},{id:60,title:"Lagos State Official Gazette",url:"https://archive.gazettes.africa/archive/ng-la/2015/ng-la-official-gazette-supplement-dated-2015-09-01-no-46.pdf",theme:"Law"},{id:61,title:"Administration Of Criminal Justice Law",url:"https://v1.corruptioncases.ng/storage/resources/acja/Lagos%20State%20Administration%20of%20Criminal%20Justice%20Law%202015.pdf",theme:"Law"},{id:62,title:"Public Procurement Law",url:"https://lagosppa.gov.ng/wp-content/uploads/2021/04/PPA%20LAW%202021%20-%20opt.pdf",theme:"Law"},{id:63,title:"Lagos State House Of Assembly Bills",url:"https://www.lagoshouseofassembly.gov.ng/bills-2/",theme:"Article"},{id:64,title:"Lagos State Arbitration Law ",url:"https://lca.org.ng/wp-content/uploads/2016/11/Lagos-State-Arbitration-Law_-2009.pdf",theme:"Law"},{id:65,title:"Lagos State Apropriation ",url:"https://lagosmepb.org/wp-content/uploads/Appropriation-Law-in-Published-NCoA-Format-vs2-pages-1-75_80-IF_2.pdf",theme:"Law"},{id:66,title:"LSHS Form",url:"https://lasu.edu.ng/home/downloadables/LAGOS%20STATE%20HEALTH%20INSURANCE%20SCHEME%20FORM_1595931442.pdf",theme:"Registration"},{id:67,title:"LAgos State Lotteries Ans Gaming Law",url:"https://www.gelias.com/images/The_Lagos_State_Lotteries_and_Gaming_Authority_Law_2021_Top_Ten_Significant_Provisions_-compressed.pdf",theme:"Law"},{id:68,title:"Land Use Charge Law",url:"https://pwcnigeria.typepad.com/files/2018-land-use-charge-law-lagos-state.pdf",theme:"Law"},{id:69,title:"Lagos State Safety Commission Law",url:"https://lasgsafety.com/lasgsafety-law",theme:"Article"},{id:70,title:"Lagos State Safeguarding And Child Protection Policy",url:"https://lagosstatemoj.org/wp-content/uploads/2020/12/DSVRT-Child-Protection-Policy.pdf-1.pdf",theme:"Article"},{id:71,title:"Lagos State Real Estate Regulatory Law ",url:"https://www.templars-law.com/app/uploads/2022/03/Review-of-the-Lagos-State-Real-Estate-Regulatory-Authority-Law-Newsletter.pdf",theme:"Law"},{id:72,title:"LASPA Policy",url:"https://www.laspa.lg.gov.ng/wp-content/uploads/2022/02/LASPA-POLICY.pdf",theme:"Law"},{id:73,title:"Regulations For The Administration Of Retirement And Terminal Benefits",url:"https://laspec.gov.ng/wp-content/uploads/2020/11/RegulationOnAdministrationOfRetirementAndTerminalBenefits.pdf",theme:"Archives"},{id:74,title:"Lagos State Electricity Policy",url:"https://lagosmemr.com/wp-content/uploads/2023/05/Lagos_Electricity_Policy.pdf?ref=thesustainableinvestor.org.uk",theme:"Articles"},{id:75,title:"Guideline For Public And Private Schools",url:"https://www.lagosschoolsonline.com/backend/document/download-9.pdf",theme:"Education"},{id:76,title:"PPP Manual For Lagos State",url:"https://ppplagos.lagosstate.gov.ng/home/doc/LAGOS%20PPP%20MANUAL%202022.pdf",theme:"Business"},{id:77,title:"Properties Registration Guidelines",url:"https://landsbureau.lagosstate.gov.ng/wp-content/uploads/sites/153/2022/12/PROCESS-AND-GUIDELINES-FOR-OBTAINING-Cof-O.pdf",theme:"Land"},{id:78,title:"EXCERPTS FROM THE LAGOS STATE TRANSPORT SECTOR REFORM LAW, 2018",url:"https://tms.lagosstate.gov.ng/docs/TrafficLaw.pdf",theme:"Law"}];function EXe({data:e,openModal:t}){return i.jsxs("div",{className:"mda_card",onClick:()=>t(e),children:[i.jsxs("div",{className:"logo",children:[" ",i.jsx("img",{src:qN,alt:"Lagos State Ministries, Departments & Agencies"})," "]}),i.jsx("div",{className:"topx",children:i.jsxs("div",{className:"mda_name",children:[" ",e.title," "]})}),i.jsxs("div",{className:"arrowMai",children:[i.jsxs("div",{className:"arrowMe top",children:[" ",i.jsx(Oe,{strokeWidth:2})," "]}),i.jsxs("div",{className:"arrowMe bot",children:[" ",i.jsx(Oe,{color:"#0C766F",strokeWidth:2})," "]})]})]})}function _Xe(){const[e,t]=v.useState(""),[n,r]=v.useState(!1),a=v.useRef(null);pt();const[s,o]=v.useState(""),[l,d]=v.useState(Tp),[u,h]=v.useState(!1),[p,g]=v.useState({}),y=()=>{h(!1)},b=w=>{g(w),window.open(w.url)};return v.useEffect(()=>{const w={keys:["title","theme"]},S=new Va(Tp,w).search(s),k=s?S.map(N=>N.item):Tp;d(k)},[s]),v.useEffect(()=>{if(e!==""){const w=Tp.filter(j=>j.index===e);d(w)}else d(Tp)},[e]),v.useEffect(()=>{const w=new IntersectionObserver(([j])=>{r(j.isIntersecting)},{root:null,rootMargin:"0px",threshold:0});return a.current&&w.observe(a.current),()=>{a.current&&w.unobserve(a.current)}},[]),i.jsxs("div",{className:"government_style",children:[u?i.jsx(wG,{data:p,closeModal:y}):null,n?i.jsxs("div",{className:"abcAgain",children:[i.jsxs("div",{className:"searchField fixedTop",children:[i.jsx("input",{type:"text",className:"searchInput",value:s,onChange:w=>o(w.target.value)}),s===""?i.jsx("div",{className:"typeSide",children:i.jsx(Wk,{options:{strings:["Search for Lagos State Ministries...","Search for Lagos State Departments...","Search for Lagos State Agencies..."],autoStart:!0,loop:!0,delay:40,deleteSpeed:10}})}):null]}),i.jsx("div",{className:"mdas_sections fixedTop_2",children:i.jsxs("div",{className:"section all",children:[" ",l.length," Results Found "]}
2965)})]}):null,i.jsxs(Mt,{children:[i.jsx("div",{className:"topArea",children:i.jsxs("div",{className:"mdaHeader flex flex_col",children:[i.jsx("div",{className:"mdaTitle",children:" All Lagos State Resources & Archive "}),i.jsx("div",{className:"mdaTitleSubs",children:"Find contact information for Lagos government ministries, departments and agencies including websites, emails, phone numbers, addresses, and more. "})]})}),i.jsxs("div",{className:"searchField",children:[i.jsx("input",{type:"text",className:"searchInput",value:s,onChange:w=>o(w.target.value)}),s===""?i.jsx("div",{className:"typeSide",children:i.jsx(Wk,{options:{strings:["Search for Lagos State Ministries...","Search for Lagos State Departments...","Search for Lagos State Agencies..."],autoStart:!0,loop:!0,delay:40,deleteSpeed:10}})}):null]}),i.jsx("div",{className:"mdas_sections",children:i.jsxs("div",{className:"section all",children:[" ",l.length," Results Found "]})}),i.jsx("div",{className:"resultArea",children:l.length?l.map((w,j)=>i.jsx(EXe,{data:w,openModal:b},j)):i.jsx("h1",{children:"Oops! Sorry No results Found, Try Again!"})})]})]})}function TXe(){return i.jsx(RN,{query:""})}const LXe=[{id:1,theme:"advertisement",keywords:[{key:"main"},{key:"pain seth oau in love"}],sub_service:"On-Premise Signage",url:"https://lasaa.lg.gov.ng/permits/on-premise-signage-permit",cta:"Apply for Signage now",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/22/on-premise-advertising.jpg" width="3840" height="1450"></figure> 2966 <p> </p> 2967 <p>1st Party Signage Registration : These are applications for <a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/on-premise-signage-permit">on-premise signages</a> for companies, business owners and shops. Permit fees are charged using parameters such as type of sign, size and location. </p> 2968 <p> </p> 2969 <p><a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/on-premise-signage-permit">On-premise signage advertising</a> remains a stalwart in the marketing landscape, leveraging physical locations to captivate audiences. These static or digital displays strategically placed at business premises wield a unique power, offering immediate visibility to passersby. Whether through eye-catching graphics, compelling messages, or dynamic digital content, on-premise signage serves as a silent yet impactful brand ambassador. It fosters brand recognition, communicates promotions, and guides potential customers to the doorstep. In an age inundated with digital marketing, on-premise signage stands tall, connecting with the local community and establishing a tangible presence that transcends the virtual realm, making it an enduring and effective advertising medium.</p>`},{id:2,theme:"advertisement",sub_service:"Third-party Advertising",url:"https://lasaa.lg.gov.ng/permits/3rd-party-ad-permit",cta:"Register to become a practitioner",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/23/3rd-party.jpg" width="3840" height="1450"></figure> 2970 <p>This category applies only to registered outdoor advertising companies to deploy permanent structures. The roadside outdoor billboards range from LED Screens, Unipole, Overhead Gantries, Rooftops, Iconic Billboards, 48-Sheet, 96-Sheets, Water Tanks, Wall Panels and Wall Drapes.</p>`},{id:3,theme:"advertisement",sub_service:"Mobile Branding,",cta:"Apply for permit",url:"https://lasaa.lg.gov.ng/permits/mobile-branding-permit",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/22/3rd-party-advertising-2.jpg" width="3840" height="1450"></figure> 2971 <p>Mobile Branding Advertising are branding options for vehicles, bikes, trucks, taxis etc. Permit fees are flexible under categories such as partial and full branding. In addition, rates are monthly, quarterly, biannually or yearly.</p>`},{id:4,theme:"advertisement",sub_service:"Tempoary Advertisement",url:"https://lasaa.lg.gov.ng/permits/temporary-ad-permit",cta:"Apply for permit",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/22/temporary-ad.jpg" width="3840" height="1450"></figure> 2972 <p>Temporary Advertising : this are advertising such as banners, Parasols, road shows, branded shirts, activations, flag signs, feather signs and Gazebo. Such applications are carried out for short periods, per daily, week and month.</p> 2973`},{id:5,theme:"advertisement",sub_service:"Small Format Advertisement",url:"https://lasaa.lg.gov.ng/permits/small-formats-street-furniture-ads-permit",cta:"Apply for permit",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/23/3rd-party-1.jpg" width="3840" height="1450"></figure> 2974 <p>3rd Party Temporary & Small Format Advertising : Products under this category are Street-Furniture, Temporary Wall Drapes, Special Builds, Bus Shelters, Police Posts, Blimps, Inflatables, Water Signs, Kiosks and Roundabout Branding. These applications range from daily, weekly, monthly, quarterly, biannually or yearly.</p>`},{id:6,theme:"advertisement",sub_service:"Street Lamps Poles",url:"https://lasaa.lg.gov.ng/permits/street-lamp-poles-ad-permit",cta:"Make payment for Lamp poles Ads Permit",short:`<figure class="image"><img style="aspect-ratio:3840/1450;" src="https://lasaa.lg.gov.ng/images/2023/11/23/3rd-party-2.jpg" width="3840" height="1450"></figure> 2975 <p>Street Lamp Post : this category of advertising falls under the 3rd party application for registered outdoor practitioners in Lagos State. This product has options such as of static banners, light box and digital screens.</p>`},{id:7,theme:"advertisement",sub_service:"How Do I Pay For LASAA",url:"http://www.lasaa.com/need-permission/pay-a-fee-or-bill/",cta:"Make payment for LASAA",short:`<p>Make payment to ECOBANK. </p> 2976 <p><strong>Name of Account</strong> : <a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/">LASAA</a> MOBILE ADVERTISEMENT; </p> 2977 <p><strong>Account Number </strong>: 2832037833.</p> 2978 <p>
2978Bring teller to the Customer Service Desk or submit to any <a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/">LASAA</a> Branch Office close to you.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/"> LASAA</a> permit (sticker) is processed</p>`},{id:8,theme:"advertisement",sub_service:"How To Register For LASAA",url:"https://app.lasaa.lg.gov.ng/auth/register",cta:"Register for LASAA",short:`<p>Click the link below to get more information on LASAA registration :</p> 2979 <p> </p> 2980 <p><a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/steps-on-how-to-register">https://lasaa.lg.gov.ng/steps-on-how-to-register</a></p> 2981 <p> </p> 2982 <p><strong>Types of Advertisements</strong></p> 2983 <p>1.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/mobile-branding-permit">Mobile Branding</a></p> 2984 <p>2.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/on-premise-signage-permit">On-Premise Signage</a></p> 2985 <p>3.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/3rd-party-ad-permit">Third-party Advertising</a></p> 2986 <p>4.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/temporary-ad-permit">Temporary Advertisement</a></p> 2987 <p>5<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/small-formats-street-furniture-ads-permit">.Small Format Advertisement</a></p> 2988 <p>6.<a target="_blank" rel="noopener noreferrer" href="https://lasaa.lg.gov.ng/permits/street-lamp-poles-ad-permit">Street Lamps Poles</a></p>`},{id:9,theme:"advertisement",sub_service:"How Much Is Signage Permit",url:"http://www.lasaa.com/wp-content/uploads/2012/06/1ST-PARTY-RATE-20211.pdf",cta:"Download Rates",short:"<p>Find out the cost of obtaining a signage permit in Lagos State, Nigeria. Get instant quotes and information on requirements and regulations</p>"},{id:10,theme:"agriculture",sub_service:"How to seth Register For a Farm in Lagos",url:"https://lagosappeals.ng/Programmes/Farm-Owner-Registration",cta:"Register for a Farm",short:`<p>The Farm-Owner Registration Program is an initiative by the<a target="_blank" rel="noopener noreferrer" href="https://lagosstate.gov.ng/"> Lagos State Government</a> to register and certify farm owners and farmers in the state. The program aims to create a database of farm owners, provide a platform for farmers to access government support and services, and promote sustainable agriculture development in the state.</p> 2989 <p> </p> 2990 <p><strong>Benefits</strong></p> 2991 <p>1. Registration : The program provides a formal registration process for farm owners, which gives them a unique identification number and certificate of registration.</p> 2992 <p>2. Access to Government Support : Registered farm owners can access various government support services, including training, credit facilities, market information, and technical assistance.</p> 2993 <p>3. Increased Visibility : The registration process helps to increase visibility for farm owners, making it easier for them to access markets, buyers, and other stakeholders.</p> 2994 <p>4. Improved Record Keeping : The program promotes accurate record keeping, which helps the government track and monitor agricultural activities in the state.</p> 2995 <p>5. Certification : The certificate of registration serves as proof of ownership and authenticity, making it easier for farmers to access loans, insurance, and other services.</p> 2996 <p> </p> 2997 <p>Eligibility Criteria</p> 2998 <p>1. Location : The program is open to all farm owners in Lagos State.</p> 2999 <p>2. Crop Type : The program covers all types of crops, including food crops, cash crops, and livestock.</p> 3000 <p>3. Farm Size : There is no specific requirement for farm size, but the program is open to both small-scale and large-scale farmers.</p> 3001 <p> </p> 3002 <p>Registration Process</p> 3003 <p>1. Application Form : Farm owners can download and fill out the application form on the <a target="_blank" rel="noopener noreferrer" href="https://lagosstate.gov.ng/">Lagos State Government website</a> or obtain one from the <a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/">Ministry of Agriculture</a>
3003 or local government offices.</p> 3004 <p>2. Submission : Completed forms should be submitted to the <a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/">Ministry of Agriculture</a> or local government offices.</p> 3005 <p>3. Verification : The application will be verified by the <a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/">Ministry of Agriculture</a> or local government officials.</p> 3006 <p>4. Certificate of Registration : Upon successful verification, a certificate of registration will be issued to the farm owner.</p> 3007 <p> </p> 3008 <p><br> </p> 3009 <p><strong>Downloadable:</strong></p> 3010 <p><a target="_blank" rel="noopener noreferrer" href="https://lagosappeals.ng/Downloads/APPEALS_INFORMATION_LEAFLET_CORRECTED" download="file">LAGOS STATE APPEALS_INFORMATION_LEAFLET</a></p>`},{id:11,theme:"agriculture",sub_service:"How to Apply For Agric-Land Allocation ",url:"https://lagosappeals.ng/Programmes/Farm-Owner-Registration",cta:"Apply for a Farm",short:`<p>Lagos State has various farming schemes, such as the <a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/category/on-going-projects/">Lagos Agricultural Development Project (LADP)</a>, the Lagos State Agricultural Infrastructure Development Project (LASIDP), and others, research each scheme to determine which one aligns with your goals and interests.</p> 3011 <p> </p> 3012 <p> Gather Required Documents</p> 3013 <p> </p> 3014 <p>Visit the <a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/">Lagos State Ministry of Agriculture website</a> at to download and complete the application form.</p> 3015 <p> </p> 3016 <p> Gather the following documents:</p> 3017 <p> </p> 3018 <p>+ Photocopy of your valid ID card (e.g., driver's license, national ID card, or international passport)</p> 3019 <p>+ Proof of citizenship (e.g., birth certificate or naturalization certificate)</p> 3020 <p>+ Proof of residence in Lagos State (e.g., utility bill, voter's card, or tenancy agreement)</p> 3021 <p>+ Business plan or proposal outlining your farming project</p> 3022 <p>+ Certificate of registration with CAC (if applicable)</p> 3023 <p>+ Recommendation letter from a reputable organization or community leader</p> 3024 <p> </p> 3025 <p> Fill Out the Application Form</p> 3026 <p> </p> 3027 <p> - Complete the application form in block letters and attach all required documents.</p> 3028 <p>- Ensure you provide accurate and complete information.</p> 3029 <p> </p> 3030 <p> Submit Your Application</p> 3031 <p> </p> 3032 <p>Submit your completed application form and supporting documents to the<a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/"> Lagos State Ministry of Agriculture</a> at:</p> 3033 <p>+ Address: 13/15, Alausa Road, Ikeja, Lagos State</p> 3034 <p>+ Phone: +234 802 352 1111</p> 3035 <p>You can also submit your application online through the Ministry's website.</p> 3036 <p> </p> 3037 <p><br> </p> 3038 <p><strong>Downloadable:</strong></p> 3039 <p><a target="_blank" rel="noopener noreferrer" href="https://lagosappeals.ng/Downloads/APPEALS_INFORMATION_LEAFLET_CORRECTED" download="file">LAGOS STATE APPEALS_INFORMATION_LEAFLET</a></p>`},{id:12,theme:"agriculture",sub_service:"Lagos Agric Investment Application",url:"https://lagosagric.com/investment-application/",cta:"Apply for Investment",short:`<p>Here are steps to take in creating an account and applying for<a target="_blank" rel="noopener noreferrer" href="https://lagosagric.com/investment-application/"> agricultural investment in lagos state</a></p> 3040 <p> </p> 3041 <p><strong>Step 1 : Register and Create an Account</strong></p> 3042 <p>* Click on the "Register" button at the top right corner of the website.</p> 3043 <p>* Fill out the registration form with your personal and business information.</p> 3044 <p>* Upload a valid ID document (e.g., driver's license, national ID card, or international passport).<
3044/p> 3045 <p>* Click "Create Account" to complete the registration process.</p> 3046 <p> </p> 3047 <p><strong>Step 2 : Log in and Fill Out the Application Form</strong></p> 3048 <p>-Log in to your account using your registered email and password.</p> 3049 <p>-Click on the "Apply for Investment" button.</p> 3050 <p>-Fill out the application form, which includes:</p> 3051 <p>+ Personal Information (name, email, phone number, etc.)</p> 3052 <p>+ Business Information (business name, business type, etc.)</p> 3053 <p>+ Investment Proposal (project title, project description, budget, etc.)</p> 3054 <p>+ Attach required documents (business plan, feasibility study, etc.)</p> 3055 <p> </p> 3056 <p><strong>Step 3 : Upload Required Documents</strong></p> 3057 <p>Attach the following documents to support your application:</p> 3058 <p>+ Business Plan </p> 3059 <p>+ Feasibility Study</p> 3060 <p>+ Tax Clearance Certificate </p> 3061 <p>+ CAC Certificate</p> 3062 <p>+ Evidence of Bank Account Statement </p> 3063 <p> </p> 3064 <p><strong>Step 4: Submit Your Application</strong></p> 3065 <p><br> </p> 3066 <p><strong>Agencies</strong></p> 3067 <p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3068 <p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3069 <p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3070 <p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p> 3071 `},{id:13,theme:"agriculture",sub_service:"Lagos Agric License Application",url:"https://lagosagric.com/license-application/",cta:"Apply for lagos Agric License",short:`<p><strong>About The Ministry</strong></p> 3072<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3073<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3074<p><br> </p> 3075<p><strong>Agencies</strong></p> 3076<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3077<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3078<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3079<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:14,theme:"agriculture",sub_service:"Lagos Agric Permit Application",url:"https://lagosagric.com/permit-application/",cta:"Apply for lagos state Agric Permit",short:`<p><strong>About The Ministry</strong></p> 3080<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3081<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3082<p><br> </p> 3083<p><strong>
3083Agencies</strong></p> 3084<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3085<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3086<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3087<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:15,theme:"agriculture",sub_service:"Lagos Agric Training Application",url:"https://lagosagric.com/training-application/",cta:"Start Lagos State Agric Training",short:`<p><strong>About The Ministry</strong></p> 3088<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3089<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3090<p><br> </p> 3091<p><strong>Agencies</strong></p> 3092<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3093<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3094<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3095<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:16,theme:"agriculture",sub_service:"Lagos Agric Strategic Plan 2020 - 2025",url:"https://lagosagric.com/2020-2025-strategic-plan/",cta:"View Lagos State Agric Strategic Plan",short:`<p><strong>About The Ministry</strong></p> 3096<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3097<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3098<p><br> </p> 3099<p><strong>Agencies</strong></p> 3100<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3101<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3102<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3103<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:17,theme:"agriculture",sub_service:"Food Stats In Lagos",url:"https://lagosagric.com/food-stats-in-lagos/",cta:"View the Lagos State Food Statistics Today",short:`<p><strong>About The Ministry</strong></p> 3104<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3105<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3106<p><br> </p> 3107<p><strong>
3107Agencies</strong></p> 3108<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3109<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3110<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3111<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:18,theme:"agriculture",sub_service:"Lagos Agric Opportunities",url:"https://lagosagric.com/opportunities/",cta:"Check out for agricultural Opportunities",short:`<p><strong>About The Ministry</strong></p> 3112<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3113<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3114<p><br> </p> 3115<p><strong>Agencies</strong></p> 3116<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3117<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3118<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3119<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:19,theme:"agriculture",sub_service:"Lagos Agric Trajectory Development",url:"https://lagosagric.com/lagos-agric-sector-development-trajectory/",cta:"View Lagos State Trajectory Develpment",short:`<p><strong>About The Ministry</strong></p> 3120<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3121<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3122<p><br> </p> 3123<p><strong>Agencies</strong></p> 3124<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3125<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3126<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3127<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:20,theme:"agriculture",sub_service:"Lagos Economy",url:"https://lagosagric.com/lagos-economy/",cta:"Read Up On Lagos Economy",short:`<p><strong>About The Ministry</strong></p> 3128<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3129<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3130<p><br> </p> 3131<p><strong>
3131Agencies</strong></p> 3132<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3133<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3134<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3135<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:21,theme:"agriculture",sub_service:"Lagos Foods System Stats",url:"https://lagosagric.com/food-system-stat/",cta:"Check Out Lagos State Food Statistics ",short:` <p><strong>About The Ministry</strong></p> 3136<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3137<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3138<p><br> </p> 3139<p><strong>Agencies</strong></p> 3140<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3141<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3142<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3143<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:22,theme:"agriculture",sub_service:"Lagos State Agric Projects",url:"https://lagosagric.com/projects/",cta:"Check Out Lagos State Agric Projects",short:`<p><strong>About The Ministry</strong></p> 3144<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3145<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3146<p><br> </p> 3147<p><strong>Agencies</strong></p> 3148<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3149<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3150<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3151<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:23,theme:"agriculture",sub_service:"Lagos Agripreneurship Programme",url:"https://lagosagric.com/lagos-agripreneurship-program/",cta:"Lagos Agripreneurship Programme",short:`<p><strong>About The Ministry</strong></p> 3152<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3153<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p> 3154<p><br> </p> 3155<p><strong>
3155Agencies</strong></p> 3156<p><a target="_blank" rel="noopener noreferrer" href="https://lsada.org/">Lagos State Agricultural Development Authority</a></p> 3157<p><a target="_blank" rel="noopener noreferrer" href="https://laisa.lagosstate.gov.ng/">Lagos State Agricultural Input Supply Authority</a></p> 3158<p><a target="_blank" rel="noopener noreferrer" href="http://alha.lagosagric.org/">Lagos State Agricultural Land Holding Authority</a></p> 3159<p><a target="_blank" rel="noopener noreferrer" href="https://lascoda.lagosstate.gov.ng/">Lagos State Coconut Development Authority</a></p>`},{id:24,theme:"business_trade_commerce",sub_service:"How Much is Value Added Tax in Lagos?",url:"https://pwcnigeria.typepad.com/files/lagos-state-draft-vat-law.pdf",cta:"Download Lagos VAT fees",short:"<p>Lagos State, Nigeria's commercial hub, thrives with busy ports, markets, and a dynamic business environment, driving growth and opportunity</p>"},{id:25,theme:"business_trade_commerce",sub_service:"How to Register SMEDAN",url:"https://smedanregister.ng/",cta:"Get Started with SMEDAN",short:`<p><strong>SMEDAN Loan Program in Lagos State</strong></p> 3160 <p> </p> 3161 <p>The Small and Medium Enterprises Development Agency of Nigeria (SMEDAN) offers a loan program designed to support small and medium-sized enterprises (SMEs) in Lagos State. This initiative aims to provide access to finance for entrepreneurs and business owners in the state, enabling them to grow and develop their businesses.</p> 3162 <p> </p> 3163 <p><strong>Benefits</strong></p> 3164 <ul> 3165 <li>Access to affordable financing for SMEs in Lagos State</li> 3166 <li>Support for business growth and development</li> 3167 <li>Job creation and employment opportunities</li> 3168 <li> 3169 <p>Contribution to the economic development of Lagos State</p> 3170 <p> </p> 3171 </li> 3172 </ul> 3173 <p><strong>Eligibility Criteria</strong></p> 3174 <ul> 3175 <li>SMEs operating in Lagos State</li> 3176 <li>Businesses must be registered with the Corporate Affairs Commission (CAC)</li> 3177 <li>Must have a valid business plan and feasibility study</li> 3178 <li> 3179 <p>Must be a citizen of Nigeria</p> 3180 <p> </p> 3181 </li> 3182 </ul> 3183 <p><strong>How to Apply</strong></p> 3184 <ul> 3185 <li>Visit the SMEDAN website </li> 3186 <li>Fill out the online application form</li> 3187 <li>Submit required documents, including business plan and feasibility study</li> 3188 <li>Wait for processing and approval</li> 3189 </ul>`},{id:26,theme:"business_trade_commerce",sub_service:"Tax systems in Lagos",url:"https://lirs.gov.ng/tax-information/tax-systems/system-of-tax",media:{type:"video",src:"https://youtu.be/zs9fadLa1rU"},cta:"Checkout Lagos Tax System",short:"<p>LIRS is the operational arm of the Lagos State Government responsible for the collection of taxes and other revenues.LIRS is the operational arm of the Lagos State Government responsible for the collection of taxes and other revenues.</p>"},{id:27,theme:"business_trade_commerce",sub_service:"SME Digital Academy ",url:"https://smedigitalacademy.com/",cta:"Start Learning",short:`<p>SMEDigital Academy: Empowering Lagos State's MSMEs for Digital Success</p> 3190 <p>In collaboration with the Lagos State Government, SMEDigital Academy is a revolutionary initiative designed to equip Micro, Small, and Medium-sized Enterprises (MSMEs) with the digital skills necessary to thrive in today's fast-paced business landscape.</p> 3191 <p>
3191Bridging the Digital Gap</p> 3192 <p>Recognizing the importance of digital literacy in driving economic growth, the Lagos State Government has partnered with SMEDigital Academy to provide MSMEs with access to cutting-edge training and resources. This initiative aims to bridge the digital gap, empowering businesses to compete effectively in the global market.</p> 3193 <p>Developing Digital Skills</p> 3194 <p>SMEDigital Academy offers a comprehensive range of courses and programs tailored to meet the unique needs of Lagos State's MSMEs. From digital marketing and e-commerce to data analysis and cybersecurity, the academy's expert instructors provide hands-on training and mentorship.</p> 3195 <p>Supporting Lagos State's Economic Growth</p> 3196 <p>By empowering MSMEs with digital skills, SMEDigital Academy is contributing to the growth and development of Lagos State's economy. This initiative aligns with the state government's vision to create a vibrant and sustainable economy, driven by innovation and technology.</p> 3197 <p>Key Benefits</p> 3198 <p>Enhanced digital literacy for MSMEs</p> 3199 <p>Improved competitiveness in the global market</p> 3200 <p>Increased access to new markets and customers</p> 3201 <p>Job creation and economic growth</p> 3202 <p>Contribution to Lagos State's economic development</p> 3203 <p>Join the Digital Revolution</p> 3204 <p>SMEDigital Academy, in partnership with the Lagos State Government, invites MSMEs to take advantage of this transformative opportunity. Embrace the digital future and discover the boundless possibilities for growth and success.</p>`},{id:28,theme:"business_trade_commerce",sub_service:"LCCI Membership - New Local Subscription",url:"https://memberships.lagoschamber.com/local-subscription",cta:"Renew Subscription",short:`<figure class="image"><img style="aspect-ratio:1920/1080;" src="https://www.onewildcard.com/wp-content/uploads/2021/09/LCCI-Cover-1.jpg" width="1920" height="1080"></figure> 3205 <p>Founded in 1888, the Lagos Chamber of Commerce and Industry is the Premier Chamber of Commerce in Nigeria.</p> 3206 <p>It was incorporated in 1950 as a non-profit making organization, Limited by Guarantee under the Companies Act of 1948.</p> 3207 <p>The Lagos Chamber of Commerce & Industry is a non-profit organization that promotes the interests of the business community in Lagos, Nigeria. It provides a platform for businesses to express their opinions and concerns regarding legislative or other measures affecting trade, industry, commerce, and agriculture.</p> 3208 <p>The organization also represents the views of the Lagos business community on the economy as a whole.</p> 3209 <p>Its main goal is to support the growth and success of businesses in Lagos by advocating for their interests and providing resources and support.</p> 3210 <p>It boasts over 1,500 members with the current Director General being Chinyere Almona.</p> 3211 <p><br> </p> 3212 <p><strong>INFORMATION BEFORE STARTING</strong></p> 3213<p style="margin-left:0px;"><u>Prospective Members are required to upload the following with their application</u>:<br>1. a completed sponsorship application form by a financially active member of the Chamber. One can be downloaded <a target="_blank" rel="noopener noreferrer" href="https://www.lagoschamber.com/download/membership-sponsors-form/"><strong>HERE</strong></a> to facilitate this purpose.<br>2. a copy of their CAC Registration Certificate.</p>`},{id:29,theme:"business_trade_commerce",sub_service:"Lagos State Trade Fair",url:"https://lagosinternationaltradefair.com/",cta:"Exhibit with us",short:`<figure class="image"><img style="aspect-ratio:1920/1080;" src="https://www.onewildcard.com/wp-content/uploads/2021/09/LCCI-Cover-1.jpg" width="1920" height="1080"></figure> 3214 <p>Founded in 1888, the Lagos Chamber of Commerce and Industry is the Premier Chamber of Commerce in Nigeria.</p> 3215 <p>It was incorporated in 1950 as a non-profit making organization, Limited by Guarantee under the Companies Act of 1948.</p> 3216 <p>The Lagos Chamber of Commerce & Industry is a non-profit organization that promotes the interests of the business community in Lagos, Nigeria. It provides a platform for businesses to express their opinions and concerns regarding legislative or other measures affecting trade, industry, commerce, and agriculture.</p> 3217 <p>The organization also represents the views of the Lagos business community on the economy as a whole.</p> 3218 <p>Its main goal is to support the growth and success of businesses in Lagos by advocating for their interests and providing resources and support.</p> 3219 <p>It boasts over 1,500 members with the current Director General being Chinyere Almona.</p>`},{id:30,theme:"business_trade_commerce",sub_service:"LCCI Membership Registration",url:"https://www.lagoschamber.com/diaspora-members-registration/",cta:"Register for LCCI",short:`<figure class="image"><img style="aspect-ratio:1920/1080;
3219" src="https://www.onewildcard.com/wp-content/uploads/2021/09/LCCI-Cover-1.jpg" width="1920" height="1080"></figure> 3220 <p>Founded in 1888, the Lagos Chamber of Commerce and Industry is the Premier Chamber of Commerce in Nigeria.</p> 3221 <p>It was incorporated in 1950 as a non-profit making organization, Limited by Guarantee under the Companies Act of 1948.</p> 3222 <p>The Lagos Chamber of Commerce & Industry is a non-profit organization that promotes the interests of the business community in Lagos, Nigeria. It provides a platform for businesses to express their opinions and concerns regarding legislative or other measures affecting trade, industry, commerce, and agriculture.</p> 3223 <p>The organization also represents the views of the Lagos business community on the economy as a whole.</p> 3224 <p>Its main goal is to support the growth and success of businesses in Lagos by advocating for their interests and providing resources and support.</p> 3225 <p>It boasts over 1,500 members with the current Director General being Chinyere Almona.</p> 3226 <p><br> </p> 3227 <p><strong>DOCUMENTS TO BE UPLOADED IN SUPPORT OF DIASPORA MEMBERSHIP APPLICATION</strong></p> 3228 <p>1. Certificate of Registration of your business in your country of residence.</p> 3229 <p>2. Completed referral form by two sponsors. Please<a target="_blank" rel="noopener noreferrer" href="https://www.lagoschamber.com/download/diaspora-membership-sponsors-form/"> download a copy here</a>.</p> 3230 <p>3. Endorsement by a bank, government institution, or registered business association.</p> 3231 <p>4. Proof of payment.</p> 3232 <p><strong>Payment Should be made to</strong>:</p> 3233 <p><strong>Name:</strong> Lagos Chamber of Commerce & Industry</p> 3234 <p><strong>Bank Name: </strong>United Bank for Africa Plc, Nigeria</p> 3235 <p><strong>Account Number(Dollar):</strong> 3002674079</p> 3236 <p><strong>Bank Sort Code:</strong> 033154282</p> 3237 <p><strong>Bank Swift Code:</strong> UNAFNGLA</p> 3238 <p><strong>Total Fees Payable:</strong> $750</p> 3239 <p><br> </p>`},{id:31,theme:"business_trade_commerce",sub_service:"Diasporal Membership Registration",url:"https://www.lagoschamber.com/diaspora-members-registration/",cta:"Register for Lagos Diasporal membership",short:`<figure class="image"><img style="aspect-ratio:1920/1080;" src="https://www.onewildcard.com/wp-content/uploads/2021/09/LCCI-Cover-1.jpg" width="1920" height="1080"></figure> 3240 <p>Founded in 1888, the Lagos Chamber of Commerce and Industry is the Premier Chamber of Commerce in Nigeria.</p> 3241 <p>It was incorporated in 1950 as a non-profit making organization, Limited by Guarantee under the Companies Act of 1948.</p> 3242 <p>The Lagos Chamber of Commerce & Industry is a non-profit organization that promotes the interests of the business community in Lagos, Nigeria. It provides a platform for businesses to express their opinions and concerns regarding legislative or other measures affecting trade, industry, commerce, and agriculture.</p> 3243 <p>The organization also represents the views of the Lagos business community on the economy as a whole.</p> 3244 <p>Its main goal is to support the growth and success of businesses in Lagos by advocating for their interests and providing resources and support.</p> 3245 <p>It boasts over 1,500 members with the current Director General being Chinyere Almona.</p>`},{id:32,theme:"business_trade_commerce",sub_service:"Apply for SMEDAN Loan ",url:"https://sterling.ng/smedan/",cta:"Apply for SMEDAN loan",short:`<p>The mandate of SMEDAN as contained in the enabling Act can be summarized as follows:</p> 3246 <p>Stimulating, monitoring and coordinating the development of the MSMEs sub-sector;</p> 3247 <p>Initiating and articulating policy ideas for small and medium enterprises growth and development;</p> 3248 <p>Promoting and facilitating development programmes, instruments and support services to accelerate the development and modernization of MSME operations; </p> 3249 <p>Serving as vanguard for rural industrialization, poverty reduction, job creation and enhanced livelihoods;</p> 3250 <p>Linking MSMEs to internal and external sources of finance, appropriate technology, technical skills as well as to large enterprises;</p> 3251 <p>
3251Promoting and providing access to industrial infrastructures such as layouts, incubators, industrial parks;</p> 3252 <p>Intermediating between MSMEs and Government [SMEDAN is the voice of the MSMEs];</p> 3253 <p>Working in contact with other institutions in both public and private sector to create a good enabling environment of business in general, and MSME activities in particular.</p>`},{id:33,theme:"business_trade_commerce",sub_service:"MSME Loan Program ",url:"https://lsetf.ng/content/msme-loan-programme",cta:"Apply Now",short:"<p>The LSETF Loan Programme aims to create affordable access to funding for small businesses to grow, expand, create wealth and put people to work. The loan scheme, which attracts only 9% interest rate per annum, is available to business owners who are registered residents of Lagos State. </p>"},{id:34,theme:"business_trade_commerce",sub_service:"Register for Lagos State Innovatives ",url:"https://app.lagosinnovates.ng/wp-login.php?action=register",cta:"Register Now",short:"<p>Lagos State, Nigeria's commercial hub, thrives with busy ports, markets, and a dynamic business environment, driving growth and opportunity</p>"},{id:35,theme:"business_trade_commerce",sub_service:"Join Lagos State MEMR Investment Forum ",url:"https://lagosmemr.com/investors/",cta:"Join Lagos MEMR forum",short:`<p>New Horizon For Mining & Energy Investment in Lagos</p> 3254 <p>Lagos State Government is committed to expanded participation and transparency that supports private sector participation in the Energy and Mineral Resources sectors in the state</p> 3255 <p> </p> 3256 <p>You can access policy documents, reports, forms, research & geological data, and guidelines for doing business in the Energy sector or the exploration and exploitation Mineral Resources in Lagos.</p> 3257 <p> </p> 3258 <p>Members of the investors forum will receive regular updates on specific opportunities for investments and public procurement of services (RFPs) in Energy and Mineral Resources sectors.</p> 3259 <p> </p> 3260 <p>IMPORTANT LINKS</p> 3261 <ul> 3262 <li><a target="_blank" rel="noopener noreferrer" href="https://lagosmemr.com/memr-report-outage/">Report Outage</a></li> 3263 <li><a target="_blank" rel="noopener noreferrer" href="https://lagosmemr.com/memr-appeals-complaints/">Appeals & Complaints</a></li> 3264 <li><a target="_blank" rel="noopener noreferrer" href="https://lagosmemr.com/memr-request-for-information/">Request for Information</a></li> 3265 </ul>`},{id:36,theme:"education",sub_service:"LASU Registration ",url:"https://lasu.edu.ng/home/",cta:"Apply Now",short:`<figure class="image"><img style="aspect-ratio:500/300;" src="https://lcdc.lasu.edu.ng/img/header-logo.png" width="500" height="300"></figure> 3266 <p><strong>LAGOS STATE UNIVERSITY</strong> was established in 1983 by the enabling law of Lagos State with the vision of pursuing the advancement of learning and academic excellence. The university has been unrelenting in the pursuit of its mission of becoming a citadel of learning, a community with the trademark of excellence in teaching, research and service to humanity.</p>`},{id:37,theme:"education",sub_service:"Become a LASUBEB Partner",url:"https://lasubeb.lg.gov.ng/lasubeb-partners",cta:"Become a partner",short:`<p>As one of the Global Sustainable Development Goals, equitable quality education takes the centre stage in Governor Babatunde Olushola Sanwo-Oluâs administration. As such, we, the Lagos State Universal Basic Education Board, share in the duty to see that every child in Lagos has access to quality basic education.</p> 3267 <p>Summarised under the Education & Technology pillar of the Governorâs THEMES Agenda, we seek to provide basic education â while leveraging technology â that meets global standards to children of school-going age in Lagos state irrespective of their economic or physical circumstance.</p> 3268 <p>
3268We believe that every child has the right to receive sound knowledge and learn the right skills that will enable him/her make wiser decisions and function well as a human, become more creative, inventive, and solution-oriented, and be a better citizen.</p>`},{id:38,theme:"education",sub_service:"LASUBEB Educational Data",url:"https://lasubeb.lg.gov.ng/download-education-data-report",cta:"Check out LASU Education data",short:`<p>As one of the Global Sustainable Development Goals, equitable quality education takes the centre stage in Governor Babatunde Olushola Sanwo-Oluâs administration. As such, we, the Lagos State Universal Basic Education Board, share in the duty to see that every child in Lagos has access to quality basic education.</p> 3269 <p>Summarised under the Education & Technology pillar of the Governorâs THEMES Agenda, we seek to provide basic education â while leveraging technology â that meets global standards to children of school-going age in Lagos state irrespective of their economic or physical circumstance.</p> 3270 <p>We believe that every child has the right to receive sound knowledge and learn the right skills that will enable him/her make wiser decisions and function well as a human, become more creative, inventive, and solution-oriented, and be a better citizen.</p>`},{id:39,theme:"education",sub_service:"UNILAG Application",url:"https://applications.unilag.edu.ng/(S(fcdhqrsoxvqo3myvn1vg1gmm))/default.aspx",cta:"Apply for UNILAG ",short:`<figure class="image"><img style="aspect-ratio:274/275;" src="https://iconape.com/wp-content/files/wf/195254/svg/195254.svg" width="274" height="275"></figure> 3271 <p>Founded in 1962, the University of Lagos has, for over 5 decades, provided qualitative and research-oriented education to Nigerians and all those who have entered its domain in search of knowledge. The University has built a legacy of excellence and has been instrumental in the production of top range graduates and academia who have had tremendous impact, directly or indirectly, on growth and development in Nigeria.</p>`},{id:40,theme:"education",sub_service:"UNILAG Online Screening",url:"https://unilag.edu.ng/?p=32568#:~:text=With%20UTME%20Number%20as%20Username,and%20print%20the%20Screening%20Form.",cta:"Apply for online screening form",short:`<figure class="image"><img style="aspect-ratio:274/275;" src="https://iconape.com/wp-content/files/wf/195254/svg/195254.svg" width="274" height="275"></figure> 3272 <p>Founded in 1962, the University of Lagos has, for over 5 decades, provided qualitative and research-oriented education to Nigerians and all those who have entered its domain in search of knowledge. The University has built a legacy of excellence and has been instrumental in the production of top range graduates and academia who have had tremendous impact, directly or indirectly, on growth and development in Nigeria.</p>`},{id:41,theme:"education",sub_service:"UNILAG Fees Per Semester",url:"https://unilag.edu.ng/?p=24374",cta:"Check UNILAG payment information",short:`<figure class="image"><img style="aspect-ratio:274/275;" src="https://iconape.com/wp-content/files/wf/195254/svg/195254.svg" width="274" height="275"></figure> 3273 <p>Founded in 1962, the University of Lagos has, for over 5 decades, provided qualitative and research-oriented education to Nigerians and all those who have entered its domain in search of knowledge. The University has built a legacy of excellence and has been instrumental in the production of top range graduates and academia who have had tremendous impact, directly or indirectly, on growth and development in Nigeria.</p>`},{id:42,theme:"education",sub_service:"UNILAG School Fees Payment",url:"https://unilag.edu.ng/?p=24374",cta:"Check UNILAG payment information",short:`<figure class="image"><img style="aspect-ratio:274/275;" src="https://iconape.com/wp-content/files/wf/195254/svg/195254.svg" width="274" height="275"></figure> 3274 <p>Founded in 1962, the University of Lagos has, for over 5 decades, provided qualitative and research-oriented education to Nigerians and all those who have entered its domain in search of knowledge. The University has built a legacy of excellence and has been instrumental in the production of top range graduates and academia who have had tremendous impact, directly or indirectly, on growth and development in Nigeria.</p>`},{id:43,theme:"education",sub_service:"LASUTECH Application",url:"https://admission.lasustech.edu.ng/",cta:"Apply Now",short:'<figure class="image"><img style="aspect-ratio:900/542;" src="https://image.pngaaa.com/389/995389-middle.png" width="900" height="542"></figure><p>Lagos State: a centre of learning excellence, providing quality education from primary to tert
3274iary institutions, shaping minds and building a brighter future</p>'},{id:44,theme:"education",sub_service:"LASUED Application",url:"https://admission.lasued.edu.ng/#",cta:"Apply Now",short:`<p>Lagos State: a centre of learning excellence, providing quality education from primary to tertiary institutions, shaping minds and building a brighter future</p> 3275 3276 <p style="margin-left:0px;">1. Check the list of available programmes by clicking on <a target="_blank" rel="noopener noreferrer" href="https://admission.lasued.edu.ng/index.php#">List of Programmes</a></p> 3277 <p style="margin-left:0px;">2. Apply for the Admissions process by clicking <a target="_blank" rel="noopener noreferrer" href="https://admission.lasued.edu.ng/index.php#">Apply Now</a> link of the programme whose admission status is <strong>open</strong><br> <strong>(Please fill the form correctly and supply a VALID EMAIL ADDRESS)</strong></p> 3278 <figure class="table" style="width:1337px;"> 3279 <table style="background-color:transparent;border:1px solid rgb(221, 221, 221);"> 3280 <thead> 3281 <tr> 3282 <th style="border-bottom:2px solid rgb(221, 221, 221);border-left:1px solid rgb(221, 221, 221);border-right:1px solid rgb(221, 221, 221);border-top:0px initial initial;padding:8px;vertical-align:bottom;">Programme</th> 3283 <th style="border-bottom:2px solid rgb(221, 221, 221);border-left:1px solid rgb(221, 221, 221);border-right:1px solid rgb(221, 221, 221);border-top:0px initial initial;padding:8px;vertical-align:bottom;">Academic session</th> 3284 <th style="border-bottom:2px solid rgb(221, 221, 221);border-left:1px solid rgb(221, 221, 221);border-right:1px solid rgb(221, 221, 221);border-top:0px initial initial;padding:8px;vertical-align:bottom;">Admission Status</th> 3285 <th style="border-bottom:2px solid rgb(221, 221, 221);border-left:1px solid rgb(221, 221, 221);border-right:1px solid rgb(221, 221, 221);border-top:0px initial initial;padding:8px;vertical-align:bottom;" colspan="2">Action</th> 3286 </tr> 3287 </thead> 3288 <tbody> 3289 <tr> 3290 <td style="border:1px solid rgb(221, 221, 221);padding:8px;vertical-align:top;">Undergraduate Bachelor's Degree (Full-Time)</td> 3291 <td style="border:1px solid rgb(221, 221, 221);padding:8px;vertical-align:top;">2023/2024</td> 3292 <td style="border:1px solid rgb(221, 221, 221);padding:8px;vertical-align:top;">CLOSED</td> 3293 <td style="border:1px solid rgb(221, 221, 221);padding:8px;vertical-align:top;"><a target="_blank" rel="noopener noreferrer" href="https://admission.lasued.edu.ng/index.php#programmes">List of Programmes</a></td> 3294 <td style="border:1px solid rgb(221, 221, 221);padding:8px;vertical-align:top;"><a target="_blank" rel="noopener noreferrer" href="https://admission.lasued.edu.ng/index.php#ApplicationForm_closed#Undergraduate%20Bachelor's%20Degree%20(Full-Time)#2023/2024">Application Closed</a> <a target="_blank" rel="noopener noreferrer" href="https://admission.lasued.edu.ng/login.php">Login</a></td> 3295 </tr> 3296 </tbody> 3297 </table> 3298 </figure> 3299 <p style="margin-left:0px;">3. Your <strong>Jamb Registration Number</strong> on this platform is your <strong>Username</strong> and your <strong>Surname</strong> is your <strong>Password</strong></p> 3300 <p style="margin-left:0px;">4. Continue by filling the Application Form step by step and click submit at the final stage</p> 3301 <p style="margin-left:0px;">4. Make payment for the Post UTME screening fee and undergo the online screening exercise</p> 3302 <p style="margin-left:0px;">5. Print the Completed Application form and Post-UTME screening Receipt</p> 3303 <p style="margin-left:0px;"><strong>NOTE:</strong></p> 3304 <p style="margin-left:0px;"><strong>Only candidate with minimum JAMB score of 170 and above is eligible to apply for the 2023/2024 admisssion.</strong></p> 3305 <p style="margin-left:0px;"><strong>Did you register during the previous session? </strong>Kindly login to the portal using your <strong>JAMB Reg</strong> as username, and Surname as password</p> 3306 <p style="margin-left:0px;">Candidate of <strong>Lagos State</strong> indigeneship should apply for the <a target="_blank" rel="noopener noreferrer" href="https://www.lasued.edu.ng/liive">LASUED Independent Indigeneship Verification</a> before proceeding for the POST UTME screening form for 2023/2024 session. After completing the Indigeneship verification exercise, The applicant should proceed to login with their JAMB Reg as username, and Surname as password</p>`},{id:45,theme:"education",sub_service:"Lagos State Student Loan Sc
3306heme ",url:"https://lasucom.edu.ng/student-loan/#",cta:"Apply for Lagos State Student Loan scheme",short:` 3307 <figure class="image"><img style="aspect-ratio:220/211;" src="https://upload.wikimedia.org/wikipedia/en/thumb/b/b7/Lagos_State_University_College_of_Medicine_logo.jpg/220px-Lagos_State_University_College_of_Medicine_logo.jpg" width="220" height="211"></figure> 3308 <p>LASU Student Loan: Supporting academic excellence, Lagos State University (LASU) offers financial assistance to students, providing access to education and helping them achieve their goals, with flexible repayment terms and a commitment to student success.</p>`},{id:46,theme:"education",sub_service:"Apply for Scholarship .",url:"https://portal.lagosscholarship.org/",cta:"Apply for Lagos Scholarship",short:"<p>Lagos State: a centre of learning excellence, providing quality education from primary to tertiary institutions, shaping minds and building a brighter future</p>"},{id:47,theme:"education",sub_service:"BECE Examination",url:"https://bece.examsboard.lagosstate.gov.ng/",cta:"Login to BECE portal",short:`<p><strong>Lagos State Examinations Board Website</strong></p> 3309 <p>The Lagos State Examinations Board website is an online platform designed to provide information and services related to examinations and assessments in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting transparency and efficiency in the conduct of examinations and assessments in the state.</p> 3310 <p> </p> 3311 <p><strong>Features</strong></p> 3312 <ul> 3313 <li>Information on examination schedules and timetables</li> 3314 <li>Online registration and payment for examinations</li> 3315 <li>Access to examination results and certificates</li> 3316 <li>Resources and past questions for students preparing for examinations</li> 3317 <li>Information on examination rules and regulations</li> 3318 </ul> 3319 <p> </p> 3320 <p><strong>Benefits</strong></p> 3321 <ul> 3322 <li>Convenient access to examination information and services</li> 3323 <li>Easy online registration and payment for examinations</li> 3324 <li>Timely release of examination results and certificates</li> 3325 <li>Improved preparation and performance in examinations</li> 3326 <li>Enhanced transparency and accountability in the conduct of examinations</li> 3327 </ul> 3328 <p> </p> 3329 <p><strong>Target Audience</strong></p> 3330 <ul> 3331 <li>Students in Lagos State</li> 3332 <li>Parents and guardians of students</li> 3333 <li>Teachers and school administrators</li> 3334 <li>Examination candidates and professionals</li> 3335 </ul>`},{id:48,theme:"education",sub_service:"Screening Test ",url:"https://screeningtest.examsboard.lagosstate.gov.ng/",cta:"apply for Lagos State screening test",short:`<p><strong>Lagos State Examinations Board Website</strong></p> 3336 <p>The Lagos State Examinations Board website is an online platform designed to provide information and services related to examinations and assessments in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting transparency and efficiency in the conduct of examinations and assessments in the state.</p> 3337 <p> </p> 3338 <p><strong>Features</strong></p> 3339 <ul> 3340 <li>Information on examination schedules and timetables</li> 3341 <li>Online registration and payment for examinations</li> 3342 <li>Access to examination results and certificates</li> 3343 <li>Resources and past questions for students preparing for examinations</li> 3344 <li>Information on examination rules and regulations</li> 3345 </ul> 3346 <p> </p> 3347 <p><strong>Benefits</strong></p> 3348 <ul> 3349 <li>Convenient access to examination information and services</li> 3350 <li>Easy online registration and payment for examinations</li> 3351 <li>Timely release of examination results and certificates</li> 3352 <li>Improved preparation and performance in examinations</li> 3353 <li>Enhanced transparency and accountability in the conduct of examinations</li> 3354 </ul> 3355 <p> </p> 3356 <p><strong>Target Audience</strong></p> 3357 <ul> 3358 <li>Students in Lagos State</li> 3359 <li>Parents and guardians of students</li> 3360 <li>Teachers and school administrators</li> 3361 <li>Examination candidates and professionals</li> 3362 </ul>`},{id:49,theme:"education",sub_service:"Placement Test",url:"https://placementtest.examsboard.lagosstate.gov.ng/",cta:"Take Placement Test",short:`<p><strong>Lagos State Examinations Board Website</strong></p> 3363 <p>The Lagos State Examinations Board website is an online platform designed to provide information and services related to examinations and assessments in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting transparency and efficie
3363ncy in the conduct of examinations and assessments in the state.</p> 3364 <p> </p> 3365 <p><strong>Features</strong></p> 3366 <ul> 3367 <li>Information on examination schedules and timetables</li> 3368 <li>Online registration and payment for examinations</li> 3369 <li>Access to examination results and certificates</li> 3370 <li>Resources and past questions for students preparing for examinations</li> 3371 <li>Information on examination rules and regulations</li> 3372 </ul> 3373 <p> </p> 3374 <p><strong>Benefits</strong></p> 3375 <ul> 3376 <li>Convenient access to examination information and services</li> 3377 <li>Easy online registration and payment for examinations</li> 3378 <li>Timely release of examination results and certificates</li> 3379 <li>Improved preparation and performance in examinations</li> 3380 <li>Enhanced transparency and accountability in the conduct of examinations</li> 3381 </ul> 3382 <p> </p> 3383 <p><strong>Target Audience</strong></p> 3384 <ul> 3385 <li>Students in Lagos State</li> 3386 <li>Parents and guardians of students</li> 3387 <li>Teachers and school administrators</li> 3388 <li>Examination candidates and professionals</li> 3389 </ul>`},{id:50,theme:"education",sub_service:"Public service examination ",url:"https://publicservice.examsboard.lagosstate.gov.ng/",cta:"Apply Now",short:`<p><strong>Lagos State Examinations Board Website</strong></p> 3390 <p>The Lagos State Examinations Board website is an online platform designed to provide information and services related to examinations and assessments in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting transparency and efficiency in the conduct of examinations and assessments in the state.</p> 3391 <p> </p> 3392 <p><strong>Features</strong></p> 3393 <ul> 3394 <li>Information on examination schedules and timetables</li> 3395 <li>Online registration and payment for examinations</li> 3396 <li>Access to examination results and certificates</li> 3397 <li>Resources and past questions for students preparing for examinations</li> 3398 <li>Information on examination rules and regulations</li> 3399 </ul> 3400 <p> </p> 3401 <p><strong>Benefits</strong></p> 3402 <ul> 3403 <li>Convenient access to examination information and services</li> 3404 <li>Easy online registration and payment for examinations</li> 3405 <li>Timely release of examination results and certificates</li> 3406 <li>Improved preparation and performance in examinations</li> 3407 <li>Enhanced transparency and accountability in the conduct of examinations</li> 3408 </ul> 3409 <p> </p> 3410 <p><strong>Target Audience</strong></p> 3411 <ul> 3412 <li>Students in Lagos State</li> 3413 <li>Parents and guardians of students</li> 3414 <li>Teachers and school administrators</li> 3415 <li>Examination candidates and professionals</li> 3416 </ul>`},{id:51,theme:"environment",sub_service:"Accredited Environmental Consultant ",url:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.lasepa.gov.ng/accredited-environmental-consultants/&ved=2ahUKEwjq6dC6wc6DAxXDZkEAHaH7DwkQFnoECA4QAQ&usg=AOvVaw2HOIOyohyqlgJNi51Bzl0p",cta:"",short:""},{id:52,theme:"environment",sub_service:"Environmental Permit",url:"https://www.lasepa.gov.ng/environmental-permits/",cta:"",short:""},{id:53,theme:"environment",sub_service:"Environmental Education Units",url:"https://moelagos.gov.ng/units/environmental-education-unit-eeu/",cta:"",short:""},{id:54,theme:"environment",sub_service:"Environmental Health Units",url:"https://moelagos.gov.ng/units/environmental-health-unit-ehu/",cta:"",short:""},{id:55,theme:"environment",sub_service:"Administration and Human Resource ",url:"https://moelagos.gov.ng/departments/administration-human-resources/",cta:"",short:""},{id:56,theme:"environment",sub_service:"LAWMA Payments",url:"https://mypaycube.com/vendor/lawma",cta:"Proceed To Payment",short:`<p><strong>LAWMAâS PROFILE </strong></p> 3417 <p>The Lagos Waste Management Authority(LAWMA), formerly known as Lagos State Refuse Disposal Board (LSRDB) at inception was established in 1977 vide Edict No. 9 of 1977 when it was glaring during Nigeriaâs preparation for Festival of Arts and Culture (Festac â77) that the then two Local Government Councils, namely Lagos Island and Lagos Mainland, could not cope with the volume of waste resulting from the oil- boom stimulated economy and its attendant influence on migrants into the new capital city from the rural and less developed areas of Nigeria and neighbouring West African countries.</p> 3418 <p> </p> 3419 <p><strong>Authority (LAWMA)</strong></p> 3420 <p>In December 1991, the name Lagos State Waste Management Authority was christened vide Edict No 55 which made the agency to be responsible for the collection, transportation and disposal of municipal and industrial waste as well as the provision of commercial waste services to the state and Local Government Councils.</p> 3421 <p>The Authority was renamed Lagos Waste Management Authority in March 2007 vide LAWMA Law No. 5 cap. 27, Vol. 40 of 2007.</p> 3422 <p> </p> 3423 <p><strong>Restructuring into a Regulatory Agency</strong></p> 3424 <p>
3424By provision of Environmental Management & Protection Law of 1st March, 2017 the Authority is re-positioned from an Operator/Regulator into a full Regulator in the Waste Management Sector, in line with Cleaner Lagos initiative. By this arrangement, public waste operations, Domestic Waste Operations, Waste Management Operations, Landfill</p> 3425 <p>Operations and Transfer Loading stations have been concessioned to private sector participants, while LAWMA will guide, model and appraise these practitioners in line with international best practices.</p> 3426 <p> </p> 3427 <p><strong>CORE OPERATIONS/INITIATIVES</strong></p> 3428 <p>The amount of waste generation in Lagos State continues to increase along with rapid increase in population, accelerated urbanization, industrialization pace, economic growth, business activities and consumption patterns; all these directly and indirectly drive up solid waste quantities from households, commercial institutions, industrial concerns and market outlets. In a bid to achieve a cleaner and livable Lagos, the Authority has continued to plan and implement programs and activities, not only to meet the ever expanding challenges, but also to prepare for future challenges.</p> 3429 <p>The Authority has continued to consolidate on efforts made on environmental sustainability, adopting the following strategies in meeting the waste management needs of residents in the state:</p> 3430 <p> </p> 3431 <p><strong>RECYCLING</strong></p> 3432 <p>Lagos Waste Management Authority (LAWMA), in ensuring that waste sorting and recycling message is taken to every nook and cranny of the state, began the distribution of bins at markets, malls, schools and other public spaces for segregation of recyclables, in line with the Lagos Recycle Initiative.</p> 3433 <p>The placement of the bins, strictly designed for collection of recyclable items like PET bottles, aluminum, cans and other plastic waste, was meant to sensitize and encourage residents to imbibe the culture of waste segregation at points of generation.</p>`},{id:57,theme:"environment",sub_service:"LAWMA Recycling Operators ",url:"https://lawma.gov.ng/psp-and-recycling-operators/",cta:"Get LAWMA Recycling Operators Close By",short:`<p><strong>LAWMAâS PROFILE </strong></p> 3434 <p>The Lagos Waste Management Authority(LAWMA), formerly known as Lagos State Refuse Disposal Board (LSRDB) at inception was established in 1977 vide Edict No. 9 of 1977 when it was glaring during Nigeriaâs preparation for Festival of Arts and Culture (Festac â77) that the then two Local Government Councils, namely Lagos Island and Lagos Mainland, could not cope with the volume of waste resulting from the oil- boom stimulated economy and its attendant influence on migrants into the new capital city from the rural and less developed areas of Nigeria and neighbouring West African countries.</p> 3435 <p> </p> 3436 <p><strong>Authority (LAWMA)</strong></p> 3437 <p>In December 1991, the name Lagos State Waste Management Authority was christened vide Edict No 55 which made the agency to be responsible for the collection, transportation and disposal of municipal and industrial waste as well as the provision of commercial waste services to the state and Local Government Councils.</p> 3438 <p>The Authority was renamed Lagos Waste Management Authority in March 2007 vide LAWMA Law No. 5 cap. 27, Vol. 40 of 2007.</p> 3439 <p> </p> 3440 <p><strong>Restructuring into a Regulatory Agency</strong></p> 3441 <p>By provision of Environmental Management & Protection Law of 1st March, 2017 the Authority is re-positioned from an Operator/Regulator into a full Regulator in the Waste Management Sector, in line with Cleaner Lagos initiative. By this arrangement, public waste operations, Domestic Waste Operations, Waste Management Operations, Landfill</p> 3442 <p>Operations and Transfer Loading stations have been concessioned to private sector participants, while LAWMA will guide, model and appraise these practitioners in line with international best practices.</p> 3443 <p> </p> 3444 <p><strong>CORE OPERATIONS/INITIATIVES</strong></p> 3445 <p>The amount of waste generation in Lagos State continues to increase along with rapid increase in population, accelerated urbanization, industrialization pace, economic growth, business activities and consumption patterns; all these directly and indirectly drive up solid waste quantities from households, c
3445ommercial institutions, industrial concerns and market outlets. In a bid to achieve a cleaner and livable Lagos, the Authority has continued to plan and implement programs and activities, not only to meet the ever expanding challenges, but also to prepare for future challenges.</p> 3446 <p>The Authority has continued to consolidate on efforts made on environmental sustainability, adopting the following strategies in meeting the waste management needs of residents in the state:</p> 3447 <p> </p> 3448 <p><strong>RECYCLING</strong></p> 3449 <p>Lagos Waste Management Authority (LAWMA), in ensuring that waste sorting and recycling message is taken to every nook and cranny of the state, began the distribution of bins at markets, malls, schools and other public spaces for segregation of recyclables, in line with the Lagos Recycle Initiative.</p> 3450 <p>The placement of the bins, strictly designed for collection of recyclable items like PET bottles, aluminum, cans and other plastic waste, was meant to sensitize and encourage residents to imbibe the culture of waste segregation at points of generation.</p>`},{id:58,theme:"environment",sub_service:"Private Sector Partnership LAWMA",url:"https://lawma.gov.ng/psp/",cta:"Get list Of P
3450SP",short:`<p><strong>LAWMAâS PROFILE </strong></p> 3451 <p>The Lagos Waste Management Authority(LAWMA), formerly known as Lagos State Refuse Disposal Board (LSRDB) at inception was established in 1977 vide Edict No. 9 of 1977 when it was glaring during Nigeriaâs preparation for Festival of Arts and Culture (Festac â77) that the then two Local Government Councils, namely Lagos Island and Lagos Mainland, could not cope with the volume of waste resulting from the oil- boom stimulated economy and its attendant influence on migrants into the new capital city from the rural and less developed areas of Nigeria and neighbouring West African countries.</p> 3452 <p> </p> 3453 <p><strong>Authority (LAWMA)</strong></p> 3454 <p>In December 1991, the name Lagos State Waste Management Authority was christened vide Edict No 55 which made the agency to be responsible for the collection, transportation and disposal of municipal and industrial waste as well as the provision of commercial waste services to the state and Local Government Councils.</p> 3455 <p>The Authority was renamed Lagos Waste Management Authority in March 2007 vide LAWMA Law No. 5 cap. 27, Vol. 40 of 2007.</p> 3456 <p> </p> 3457 <p><strong>Restructuring into a Regulatory Agency</strong></p> 3458 <p>By provision of Environmental Management & Protection Law of 1st March, 2017 the Authority is re-positioned from an Operator/Regulator into a full Regulator in the Waste Management Sector, in line with Cleaner Lagos initiative. By this arrangement, public waste operations, Domestic Waste Operations, Waste Management Operations, Landfill</p> 3459 <p>Operations and Transfer Loading stations have been concessioned to private sector participants, while LAWMA will guide, model and appraise these practitioners in line with international best practices.</p> 3460 <p> </p> 3461 <p><strong>CORE OPERATIONS/INITIATIVES</strong></p> 3462 <p>The amount of waste generation in Lagos State continues to increase along with rapid increase in population, accelerated urbanization, industrialization pace, economic growth, business activities and consumption patterns; all these directly and indirectly drive up solid waste quantities from households, commercial institutions, industrial concerns and market outlets. In a bid to achieve a cleaner and livable Lagos, the Authority has continued to plan and implement programs and activities, not only to meet the ever expanding challenges, but also to prepare for future challenges.</p> 3463 <p>The Authority has continued to consolidate on efforts made on environmental sustainability, adopting the following strategies in meeting the waste management needs of residents in the state:</p> 3464 <p> </p> 3465 <p><strong>RECYCLING</strong></p> 3466 <p>Lagos Waste Management Authority (LAWMA), in ensuring that waste sorting and recycling message is taken to every nook and cranny of the state, began the distribution of bins at markets, malls, schools and other public spaces for segregation of recyclables, in line with the Lagos Recycle Initiative.</p> 3467 <p>The placement of the bins, strictly designed for collection of recyclable items like PET bottles, aluminum, cans and other plastic waste, was meant to sensitize and encourage residents to imbibe the culture of waste segregation at points of generation.</p>`},{id:59,theme:"environment",sub_service:"Healthcare & Medical Waste PSP Operators",url:"https://lawma.gov.ng/5667-2/",cta:"Locate Waste PSP Operators Close To You",short:`<p><strong>LAWMAâS PROFILE </strong></p> 3468 <p>The Lagos Waste Management Authority(LAWMA), formerly known as Lagos State Refuse Disposal Board (LSRDB) at inception was established in 1977 vide Edict No. 9 of 1977 when it was glaring during Nigeriaâs preparation for Festival of Arts and Culture (Festac â77) that the then two Local Government Councils, namely Lagos Island and Lagos Mainland, could not cope with the volume of waste resulting from the oil- boom stimulated economy and its attendant influence on migrants into the new capital city from the rural and less developed areas of Nigeria and neighbouring West African countries.</p> 3469 <p> </p> 3470 <p><strong>Authority (LAWMA)</strong></p> 3471 <p>In December 1991, the name Lagos State Waste Management Authority was christened vide Edict No 55 which made the agency to be responsible for the collection, transportation and disposal of municipal and industrial waste as well as the provision of commercial waste services to the state and Local Government Councils.</p> 3472 <p>The Authority was renamed Lagos Waste Management Authority in March 2007 vide LAWMA Law No. 5 cap. 27, Vol. 40 of 2007.</p> 3473 <p> </p> 3474 <p><strong>Restructuring into a Regulatory Agency</strong></p> 3475 <p>
3475By provision of Environmental Management & Protection Law of 1st March, 2017 the Authority is re-positioned from an Operator/Regulator into a full Regulator in the Waste Management Sector, in line with Cleaner Lagos initiative. By this arrangement, public waste operations, Domestic Waste Operations, Waste Management Operations, Landfill</p> 3476 <p>Operations and Transfer Loading stations have been concessioned to private sector participants, while LAWMA will guide, model and appraise these practitioners in line with international best practices.</p> 3477 <p> </p> 3478 <p><strong>CORE OPERATIONS/INITIATIVES</strong></p> 3479 <p>The amount of waste generation in Lagos State continues to increase along with rapid increase in population, accelerated urbanization, industrialization pace, economic growth, business activities and consumption patterns; all these directly and indirectly drive up solid waste quantities from households, commercial institutions, industrial concerns and market outlets. In a bid to achieve a cleaner and livable Lagos, the Authority has continued to plan and implement programs and activities, not only to meet the ever expanding challenges, but also to prepare for future challenges.</p> 3480 <p>The Authority has continued to consolidate on efforts made on environmental sustainability, adopting the following strategies in meeting the waste management needs of residents in the state:</p> 3481 <p> </p> 3482 <p><strong>RECYCLING</strong></p> 3483 <p>Lagos Waste Management Authority (LAWMA), in ensuring that waste sorting and recycling message is taken to every nook and cranny of the state, began the distribution of bins at markets, malls, schools and other public spaces for segregation of recyclables, in line with the Lagos Recycle Initiative.</p> 3484 <p>The placement of the bins, strictly designed for collection of recyclable items like PET bottles, aluminum, cans and other plastic waste, was meant to sensitize and encourage residents to imbibe the culture of waste segregation at points of generation.</p>`},{id:60,theme:"environment",sub_service:"Noice Pollution Control",url:"https://www.lasepa.gov.ng/noise-pollution-control/",cta:"",short:""},{id:61,theme:"environment",sub_service:"Report a Noise ",url:"http://www.lasepa.gov.ng/report/contact.php",cta:"",short:""},{id:62,theme:"environment",sub_service:"Accredited Recycling Agencies ",url:"https://lawma.gov.ng/recycling/",cta:"Get Accredited Recycling Agencies ",short:`<p><strong>LAWMAâS PROFILE </strong></p> 3485 <p>The Lagos Waste Management Authority(LAWMA), formerly known as Lagos State Refuse Disposal Board (LSRDB) at inception was established in 1977 vide Edict No. 9 of 1977 when it was glaring during Nigeriaâs preparation for Festival of Arts and Culture (Festac â77) that the then two Local Government Councils, namely Lagos Island and Lagos Mainland, could not cope with the volume of waste resulting from the oil- boom stimulated economy and its attendant influence on migrants into the new capital city from the rural and less developed areas of Nigeria and neighbouring West African countries.</p> 3486 <p> </p> 3487 <p><strong>Authority (LAWMA)</strong></p> 3488 <p>In December 1991, the name Lagos State Waste Management Authority was christened vide Edict No 55 which made the agency to be responsible for the collection, transportation and disposal of municipal and industrial waste as well as the provision of commercial waste services to the state and Local Government Councils.</p> 3489 <p>The Authority was renamed Lagos Waste Management Authority in March 2007 vide LAWMA Law No. 5 cap. 27, Vol. 40 of 2007.</p> 3490 <p> </p> 3491 <p><strong>Restructuring into a Regulatory Agency</strong></p> 3492 <p>
3492By provision of Environmental Management & Protection Law of 1st March, 2017 the Authority is re-positioned from an Operator/Regulator into a full Regulator in the Waste Management Sector, in line with Cleaner Lagos initiative. By this arrangement, public waste operations, Domestic Waste Operations, Waste Management Operations, Landfill</p> 3493 <p>Operations and Transfer Loading stations have been concessioned to private sector participants, while LAWMA will guide, model and appraise these practitioners in line with international best practices.</p> 3494 <p> </p> 3495 <p><strong>CORE OPERATIONS/INITIATIVES</strong></p> 3496 <p>The amount of waste generation in Lagos State continues to increase along with rapid increase in population, accelerated urbanization, industrialization pace, economic growth, business activities and consumption patterns; all these directly and indirectly drive up solid waste quantities from households, commercial institutions, industrial concerns and market outlets. In a bid to achieve a cleaner and livable Lagos, the Authority has continued to plan and implement programs and activities, not only to meet the ever expanding challenges, but also to prepare for future challenges.</p> 3497 <p>The Authority has continued to consolidate on efforts made on environmental sustainability, adopting the following strategies in meeting the waste management needs of residents in the state:</p> 3498 <p> </p> 3499 <p><strong>RECYCLING</strong></p> 3500 <p>Lagos Waste Management Authority (LAWMA), in ensuring that waste sorting and recycling message is taken to every nook and cranny of the state, began the distribution of bins at markets, malls, schools and other public spaces for segregation of recyclables, in line with the Lagos Recycle Initiative.</p> 3501 <p>The placement of the bins, strictly designed for collection of recyclable items like PET bottles, aluminum, cans and other plastic waste, was meant to sensitize and encourage residents to imbibe the culture of waste segregation at points of generation.</p>`},{id:63,theme:"environment",sub_service:"How do i pay LASEPA Bills Online",url:"https://www.lasepa.gov.ng/you-can-now-pay-your-lasepa-bills-online/",cta:"",short:""},{id:64,theme:"environment",sub_service:"Pay Your LASEPA Bills Online",url:"https://lasepay.wemabank.com/",cta:"",short:""},{id:65,theme:"environment",sub_service:"Enviromental Protection",url:"https://www.lasepa.gov.ng/environmental-protection/",cta:"",short:""},{id:66,theme:"lisense",sub_service:"LASRRA Registration ",url:"https://www.lagosresidents.gov.ng/lagos-state-residents-registration-agency-lasrra-meets-with-the-management-of-lagos-state-office-for-disability-affairs-lasoda-the-aim-was-to-discuss-how-people-living-with-disabilities-pwds-wo/",cta:"Proceed To Registration",short:`<p> </p> 3502 <p><strong>OUR HISTORY</strong></p> 3503 <p>The need for State Information Communication Technology is very germane to the growth and development of a State. This was the foresight of the Government then that gave birth to Lagos State Residentsâ Registration Agency (LASRRA), when the bill was passed into law on 27 June 2011 (Law No 21), it was formally launched and registration was flagged off on the 19th September 2013 by the former Governor, His Excellency, Mr. Babatunde Raji Fashola.nn</p> 3504 <p> </p> 3505 <p>The Lagos State Residentsâ Registration Agency (LASRRA) is the Agency of Government responsible for the creation of a reliable database of all Residents in Lagos State to assist the State Government in deploying resources for the overall development and growth of the State. LASRRAâs strategic plan is to provide a unique means of identification for access to State services and facilities while also providing a centralized database to all MDAs of Lagos State for planning purposes.</p> 3506 <p> </p> 3507 <p>LASRRA, an autonomous and strategic Agency of Government, saddled with the primary responsibility to create an accurate database of all Lagos residents for effective planning and resource allocation.</p> 3508 <p> </p> 3509 <p>
3509Building a greater and smarter Lagos in line with the six pillars of development (T.H.E.M.E.S), LASRRA 2.0. was introduced.</p> 3510 <p> </p> 3511 <p>LASRRA 2.0 is a continuation of the registration of residents utilizing new applications and technologies to drive seamless and real-time registration processes for residents in the State.</p> 3512 <p> </p> 3513 <p>The outcome of the registration process is to generate a Unique Identification Number (UID) and to issue a Lagos State Resident âSmartâ identity card for each resident of the State.</p> 3514 <p> </p> 3515 <p>The Smart Card provides a unified data ecosystem for ease of access to all services across the various MDAs in the State.</p>`},{id:67,theme:"lisense",sub_service:"Register CIN",url:"https://portal.lashmaregulations.com.ng/",cta:"Get Registered",short:`<p><strong>Lagos State Health Scheme</strong></p> 3516 <p>Lagos State Health Management Agency (LASHMA) was established by the enabling act No. 14 of 25 May 2015 and registered in Lagos State of Nigeria (Official Gazette No. 32, Vol. 48) dated 5 th June 2015 to ensure that all residents of Lagos State including Public Servants have access to affordable and quality Health Care. Through the Scheme, people living in Lagos can be protected from financial distress resulting from huge medical bills.</p> 3517 <p><strong>Lagos State Health Scheme</strong></p> 3518 <p>The Ministry in conjunction with the State House of Assembly drafted the Lagos State Health Scheme Bill and was signed into law in May, 2015</p> 3519 <p>The Lagos State Health Scheme (LSHS) Law establishes the:</p> 3520 <p>â Lagos State Health Management Agency</p> 3521 <p>â Lagos State Health Scheme and the</p> 3522 <p>â Lagos State Health Fund.</p>`},{id:68,theme:"lisense",sub_service:"HEFAMAA Registration ",url:"https://hefamaa.lagosstate.gov.ng/registration/",cta:"Proceed To Registration",short:`<p><strong>OVERVIEW OF HEFAMAA</strong></p> 3523 <p>Since the inception of the current administration in Lagos State, several attempts have been made to improve the Health Care Services Delivery System in the State. These attempts had culminated in the introduction of the Health Reform Agenda which is backed by Law. The main aim of this reform agenda is to improve the quality of health care delivery in the State.</p> 3524 <p> </p> 3525 <p>A vital component of this process is the regulation of the private sector, a major provider of healthcare services to over 60% of the population. Hence, the establishment of a number of regulatory and monitoring agencies which included the Health Facilities Monitoring and Accreditation Agency (HEFAMAA).</p> 3526 <p> </p> 3527 <p>The HEFAMAA was established in March 2006 and is charged with the responsibility of monitoring both private and public health facilities to ensure registration and in the near future, accreditation of all health facilities in Lagos State.</p> 3528 <p> </p> 3529 <p>With the recent launch of the Lagos State Health Scheme, HEFAMAA has been given the responsibility of providing facilities that will be empaneled on the scheme by Lagos State Health Management Agency using some strict eligibility criteria.</p> 3530 <p> </p> 3531 <p><strong>HEALTH RELATED LINKS</strong></p> 3532 <ul> 3533 <li><a target="_blank" rel="noopener noreferrer" href="https://health.lagosstate.gov.ng/">Ministry of Health</a></li> 3534 <li><a target="_blank" rel="noopener noreferrer" href="https://hsc.lagosstate.gov.ng/">Health Service Commission</a></li> 3535 <li><a target="_blank" rel="noopener noreferrer" href="http://traditionalmedicine.lagosstate.gov.ng/">Lagos State Board of Traditional Medicine</a></li> 3536 <li><a target="_blank" rel="noopener noreferrer" href="https://primaryhealthcare.lagosstate.gov.ng/">State Primary Healthcare Board</a></li> 3537 </ul>`},{id:69,theme:"lisense",sub_service:"Verify LASBCA Clertificate ",url:"https://lasbca.lagosstate.gov.ng/lasbca-verify/",cta:" Verify Your Certificate",short:`<p>The LASBCA Verify website is an online platform designed to verify the authenticity of building construction and development documents in Lagos State. The website is an initiative of the Lagos State Building Control Agency (LASBCA), aimed at promoting transparency and accountability in the building construction industry.</p> 3538 <p> </p> 3539 <p><strong>Features</strong></p> 3540 <ul> 3541 <li>Verification of building plans and approvals</li> 3542 <li>Authentication of building permits and certificates</li> 3543 <li>Verification of builder and contractor licenses</li> 3544 <li>Reporting of illegal building constructions and violations</li> 3545 </ul>`},{id:70,theme:"lisense",sub_service:"Verify RWC License ",url:"https://dvis.lg.gov.ng/verify",cta:"Verify RWC License",short:"<p>Lagos State Vehicle Inspection Service formally known as Vehicle Inspection Unit was established on 2nd August 2012, by the former Governor of Lagos State Mr. Babatunde Raji Fashola. The Vehicle inspection. Service is one of the enforcement agencies the State Government responsible for the implementing the compliance on Road Traffic Law 2021; it is saddled with the duties of ensuring compliance with all stipulated/required vehicle policies such as Road Worthiness, Vehicle License, Hackney Permit, Testing and Training of applicants for driverâs license/ rider card and sometime compliment the duties of other Trans
3545port Agencie</p>"},{id:71,theme:"lisense",sub_service:"Verify International Drivers License ",url:"https://dvis.lg.gov.ng/check-international-drivers-license/",cta:"Verify International Drivers License",short:"<p>Lagos State Vehicle Inspection Service formally known as Vehicle Inspection Unit was established on 2nd August 2012, by the former Governor of Lagos State Mr. Babatunde Raji Fashola. The Vehicle inspection. Service is one of the enforcement agencies the State Government responsible for the implementing the compliance on Road Traffic Law 2021; it is saddled with the duties of ensuring compliance with all stipulated/required vehicle policies such as Road Worthiness, Vehicle License, Hackney Permit, Testing and Training of applicants for driverâs license/ rider card and sometime compliment the duties of other Transport Agencie</p>"},{id:72,theme:"lisense",sub_service:"Gaming and Lottery Permits ",url:"https://lslga.org/#",cta:"Register Gaming And Lottery Permit",short:`<p><strong>LAGOS STATE LOTTERIES AND GAMING AUTHORITY</strong></p> 3546 <p> </p> 3547 <p>The<strong> LSLGA </strong>is the foremost Gaming regulatory body in Nigeria and is empowered to regulate all Lottery and Gaming activities in Lagos State. It derives its powers from the Lagos State Lotteries and Gaming Authority Law, 2021.</p> 3548 <p> </p> 3549 <p><strong>REGULATORY ROLES</strong></p> 3550 <p><strong>LSLGA </strong>regulates and issues retail, virtual and/or on-line operating licenses to a plethora of gaming categories which includes but not limited to Public Online Lottery, Online Sports Betting, Scratch Cards, Interactive games, Casino, Gaming machine, Pool betting, Other lotteries (promotional competition), Remote gaming, Online and Retail gaming and related activities in Lagos State.</p> 3551 <p> </p> 3552 <p>In line with global best practices,<strong> LSLGA </strong>conducts surveillance, inspection, and</p> 3553 <p>compliance exercises on operators within Lagos State in addition to ensuring all license fees, gaming levies/Good Causes Levy (GCL), promo and draw fees,</p> 3554 <p>penalties and license renewal fees are promptly paid to Government.</p> 3555 <p> </p> 3556 <p>Responsible gaming is also an integral part of the regulatory functions of LSLGA. The Authority holds all its operators to the highest operational</p> 3557 <p>standards towards ensuring that vulnerable and underage persons are</p> 3558 <p>prohibited from partaking in any lottery and gaming activity; this also involves</p> 3559 <p>putting in place mechanisms to address gaming/gambling addiction.</p>`},{id:73,theme:"lisense",sub_service:"Ministry of Agriculture License Application",url:"https://lagosagric.com/license-application/",cta:"Register For Agriculture License Application",short:`<p><strong>About The Ministry</strong></p> 3560<p>Lagos State Ministry of Agriculture has the ministerial responsibility of implementing the State Governmentâs Development Policy on Agriculture. This Policy aims at facilitating sustainable food production, poverty reduction and job creation through several agricultural projects and programmes.</p> 3561<p>The Ministry has six technical, two supportive Departments and two supportive Units, four Extra Ministerial Agencies, two donor assisted projects, as well as two vocational training schools through which it carries out its specific mandates.</p>`},{id:74,theme:"lisense",sub_service:"Apply for scholarship .",url:"https://portal.lagosscholarship.org/",cta:"Apply For Scholarship",short:`<p><strong>Lagos State Examinations Board Website</strong></p> 3562 <p>The Lagos State Examinations Board website is an online platform designed to provide information and services related to examinations and assessments in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting transparency and efficie
3562ncy in the conduct of examinations and assessments in the state.</p> 3563 <p> </p> 3564 <p><strong>Features</strong></p> 3565 <ul> 3566 <li>Information on examination schedules and timetables</li> 3567 <li>Online registration and payment for examinations</li> 3568 <li>Access to examination results and certificates</li> 3569 <li>Resources and past questions for students preparing for examinations</li> 3570 <li>Information on examination rules and regulations</li> 3571 </ul> 3572 <p> </p> 3573 <p><strong>Benefits</strong></p> 3574 <ul> 3575 <li>Convenient access to examination information and services</li> 3576 <li>Easy online registration and payment for examinations</li> 3577 <li>Timely release of examination results and certificates</li> 3578 <li>Improved preparation and performance in examinations</li> 3579 <li>Enhanced transparency and accountability in the conduct of examinations</li> 3580 </ul> 3581 <p> </p> 3582 <p><strong>Target Audience</strong></p> 3583 <ul> 3584 <li>Students in Lagos State</li> 3585 <li>Parents and guardians of students</li> 3586 <li>Teachers and school administrators</li> 3587 <li>Examination candidates and professionals</li> 3588 </ul>`},{id:77,theme:"lisense",sub_service:"Environmental permits ",url:"https://www.lasepa.gov.ng/environmental-permits/",cta:"",short:""},{id:78,theme:"lisense",sub_service:"Lagos State NPF Registration",url:"https://lagos.npf.gov.ng/register",cta:"Open An Account",short:`<p><strong>CP Special Squad</strong></p> 3589 <p> </p> 3590 <p>MISSION:</p> 3591 <p>CP Squad Squad Lagos State Command is commited to provide effective security services through a proactive actions and community centered approach to stamp out Armed robbers, Kidnappers, Cultists and other heinous criminals in Lagos and its environ.</p> 3592 <p> </p> 3593 <p>VISION:</p> 3594 <p>CP Special Squad has a vision to use proactive, intelligence led policing and community centered security method of innternational standard to combat all kinds of heinous crimes which includes armed robbery, kidnapping, cultism and banditry among others in Lagos State and environs.</p>`},{id:79,theme:"health",sub_service:"Lagos State Health Management Agency (LASHMA)",url:"https://www.lashmaregulations.com.ng/",cta:"Register for CIN today",short:`<p><strong>Lagos State Health Scheme</strong></p> 3595 <p>Lagos State Health Management Agency (LASHMA) was established by the enabling act No. 14 of 25 May 2015 and registered in Lagos State of Nigeria (Official Gazette No. 32, Vol. 48) dated 5 th June 2015 to ensure that all residents of Lagos State including Public Servants have access to affordable and quality Health Care. Through the Scheme, people living in Lagos can be protected from financial distress resulting from huge medical bills.</p> 3596 <p><strong>Lagos State Health Scheme</strong></p> 3597 <p>The Ministry in conjunction with the State House of Assembly drafted the Lagos State Health Scheme Bill and was signed into law in May, 2015</p> 3598 <p>The Lagos State Health Scheme (LSHS) Law establishes the:</p> 3599 <p>â Lagos State Health Management Agency</p> 3600 <p>â Lagos State Health Scheme and the</p> 3601 <p>â Lagos State Health Fund.</p>`},{id:80,theme:"health",sub_service:"Register CIN",url:"https://portal.lashmaregulations.com.ng/",cta:"Register for CIN today",short:"<p>Lagos State provides quality healthcare services, offering accessible and affordable medical solutions, state-of-the-art facilities, and skilled professionals, prioritizing the well-being of its diverse population</p>"},{id:81,theme:"health",sub_service:"HEFAMAA registration ",url:"https://hefamaa.lagosstate.gov.ng/registration/",cta:"Register for HEFAMAA",short:`<p><strong>OVERVIEW OF HEFAMAA</strong></p> 3602 <p>Since the inception of the current administration in Lagos State, several attempts have been made to improve the Health Care Services Delivery System in the State. These attempts had culminated in the introduction of the Health Reform Agenda which is backed by Law. The main aim of this reform agenda is to improve the quality of health care delivery in the State.</p> 3603 <p> </p> 3604 <p>A vital component of this process is the regulation of the private sector, a major provider of healthcare services to over 60% of the population. Hence, the establishment of a number of regulatory and monitoring agencies which included the Health Facilities Monitoring and Accreditation Agency (HEFAMAA).</p> 3605 <p> </p> 3606 <p>The HEFAMAA was established in March 2006 and is charged with the responsibility of monitoring both private and public health facilities to ensure registration and in the near future, accreditation of all health facilities in Lagos State.</p> 3607 <p> </p> 3608 <p>With the recent launch of the Lagos State Health Scheme, HEFAMAA has been given the responsibility of providing facilities that will be empaneled on the scheme by Lagos State Health Management Agency using some strict eligibility criteria.</p> 3609 <p> </p> 3610 <p><strong>HEALTH RELATED LINKS</strong></p> 3611 <ul> 3612 <li><a target="_blank" rel="noopener noreferrer" href="https://health.lagosstate.gov.ng/">Ministry of Health</a></li> 3613 <li><a target="_blank" rel="noopener noreferrer" href="https://hsc.lagosstate.gov.ng/">Health Service Commission</a></li> 3614 <li><a target="_blank" rel="noopener noreferrer" href="http://traditionalmedicine.lagosstate.gov.ng/">Lagos State Board of Traditional Medicine</a></li> 3615 <li><a target="_blank" rel="noopener noreferrer" href="https://primaryhealthcare.lagosstate.gov.ng/">State Primary Healthcare Board</a></li> 3616 </ul>`},{id:82,theme:"health",sub_service:"Medical Service and Diseases Control",url:"https://lsphcb.lg.gov.ng/medical-services-and-disease-control/",cta:"Know more about Lagos Medical Service",short:`<p><strong>Medical Services and Disease Control</strong></p> 3617 <p><strong>MANDATE</strong></p> 3618 <p>The Directorate of Medical Services and Disease Control (DMS&DC) is one of the directorates stipulated in the health sector reform law with the responsibility of:</p> 3619 <ul> 3620 <li>Overseeing medical services offered at the Primary Health Care (PHC) centres as well as the quality of service delivered </li> 3621 <li>Review of service delivery protocols</li> 3622 <li>Provide oversight on disease control and surveillance at the primary health care level</li> 3623 <li>Develop and implement standards of care for service delivery improvements</li> 3624 <li>Oversee recommendations for medical staff deployment, training and appraisal</li> 3625 <li>Collaboration with State Ministry of Health (SMoH), LGA and implementing partners on program implementation</li> 3626 <li> 3627 <p>Capacity building of health care workers and supportive supervision to ensure effective accessible and qualitative PHC service.</p> 3628 <p> </p> 3629 </li> 3630 </ul> 3631 <p><strong>RESPONSIBILITIES/FUNCTIONS</strong></p> 3632 <ul> 3633 <li>Coordinates the management and implementation of immunisation services and activities in the State</li> 3634 <li>Responsible for the Primary Health Care System strengthening of facility-based and community-based MCH Nutrition related activities. </li> 3635 <li>Implementation of the SOML P4R activities to strengthen the Primary Health Care System.</li> 3636 <li>Coordinate and strengthen first responder intervention strategies and improve disease notification procedures at the Primary Health Care Level.</li> 3637 <li>Facilitate, initiate and strengthen emergency response and referral services at the Primary Health Level. Also, improve c
3637ollaboration on the linkage system with the secondary level of care.</li> 3638 <li>Review and approve research programs centres on the PHC system that will provide evidence-based reports on services analysis and improvement strategies.</li> 3639 <li>Increase awareness access and utilisation of RH and FP commodities and services through PHC facilities and programs.</li> 3640 <li>Create awareness on DSVRT and provide medical assistance as required for survivors working in collaboration with relevant stakeholders to develop a robust case management system.</li> 3641 <li>Promote healthy adolescent health behaviour for informed decision making and across to friendly focused youth health services</li> 3642 <li>Management and oversight on all Laboratory activities personnel and service deliverables in the PHC centres</li> 3643 <li>Improve institutionalise and strengthen Quality of care/facility assessment improvement and at the Primary Health Care level.</li> 3644 <li>Institutionalise the Service Charter Initiative at the Primary Health Care level for improved client satisfaction with the provision of health services</li> 3645 <li>Supervision of programs coordinated by the Medical Officers of Health at the LG/LCDA Level</li> 3646 <li>Collation of report of monthly activities on PHC activities and management</li> 3647 <li>Coordinate monthly meetings of the Medical Officers of Health</li> 3648 <li>Institute investigation of complaints and enquiries from the community level on PHC services and facilities</li> 3649 </ul>`},{id:83,theme:"health",sub_service:"Administration and Human Resource ",url:"https://lsphcb.lg.gov.ng/administration-and-human-resource/",cta:"Get more information on Lagos ",short:`<p><strong>Administration and Human Resource</strong></p> 3650 <p>The Directorate of Administration and Human Resource is headed by Mrs. Funmi Blaize, Director, GL. 17.</p> 3651 <p> </p> 3652 <p><strong>Directorate Responsibilities/Functions:</strong></p> 3653 <ul> 3654 <li>Coordination and implementation of personnel policies for the PHCB</li> 3655 <li>Capacity development (training) of members of Staff of the Office</li> 3656 <li>Maintenance of office building, equipment, furniture and other properties</li> 3657 <li>Handling Staff promotion, conversion, discipline, exit and welfare</li> 3658 <li>Compilation of leave roster and ensuring its implementation</li> 3659 <li>Assisting the Accounting Officer in executing the ministerial assignments of the Office</li> 3660 <li>Advising Heads of Directorates and other Officers on Personnel Matters</li> 3661 <li>Member of Procurement Committee</li> 3662 <li>Management of Secret and Open Registries of the Office</li> 3663 <li>Maintenance and servicing of the official vehicles of the PHCB</li> 3664 <li>Monitoring and providing necessary support for the implementation of the Electronic Document Management System (EDMS)</li> 3665 <li>Provision/maintenance of Staff uniforms</li> 3666 </ul>`},{id:84,theme:"health",sub_service:"Nursing Services",url:"https://lsphcb.lg.gov.ng/nursing-services/",cta:"Get more information on Lagos Nursing Service",short:`<p><strong>Nursing Services</strong></p> 3667 <p>The primary purpose of the Directorate is to plan, organise, develop and direct the overall operation of the Nursing Services Department to ensure that the highest degree of quality care is maintained at all times. The strategic goals of the Directorate in the Primary Health Care Board is to work harmoniously with other members of the health team to reduce maternal, infant and child mortality and morbidity rate in the State by 80% and improvement of nursing care through education, monitoring and supervision. The Directorate is supported by four (4) Committees saddled with the responsibility of monitoring, updating and checkmating nurses within the Local Government and also to enhance the quality of services to the clients/patients in the PHCs. These Committees are:</p> 3668 <ul> 3669 <li>Education</li> 3670 <li>Research</li> 3671 <li>Monitoring and Supervision</li> 3672 <li>Disciplinary</li> 3673 </ul> 3674 <p>The Apex Nurses head each of the above Committee in the 57 LGAs/LCDAs in the State and supervised by the PHCB Head of Nursing Administration, Mrs Ayeni. </p> 3675 <p> </p> 3676 <p> </p> 3677 <p><strong>RESPONSIBILITIES/FUNCTIONS</strong></p> 3678 <p>The responsibilities and functions of the Directorate of Nursing Services are as follows: </p> 3679 <ul> 3680 <li>Develop a method of co-ordination of Nursing Services with other Patient Services to ensure the continuity of the patientsâ total regimen.</li> 3681 <li>Develop and implement a nursing services organisation structure</li> 3682 <li>Make reports and recommendations to the Permanent Secretary as required concerning the operations of the Nursing Services Directorate.</li> 3683 <li>Determine staffing/workforce needs of the Nursing Directorate necessary to meet the total nursing needs of the clients/patients in the facilities.</li> 3684 <li>Develop, implement and maintain an ongoing quality assurance programme for the Nursing Services Directorate.</li> 3685 <li>Monitor the activity of Nurses with Local Government periodically to ensure proper nursing service delivery to clients/patients,</li> 3686 <li>Monitor absenteeism to ensure that an adequate number of Nursing care Personnel are on duty at all times</li> 3687 <li>Develop, implement and maintain an effective orientation program that explains the new employeesâ job/position and responsibilities in the Local Government.</li> 3688 <li>Assign a sufficient number of licensed, registered Nurses to each LGA/LCDA to ensure that routine care is provided to meet daily
3688Nursing care needs of the clients.</li> 3689 <li>Develop and present to the Administration and Human Resource </li> 3690 <li>Department of PHCB, the implementation of in- house service training programs that relate to Nursing Services Directorate</li> 3691 </ul>`},{id:85,theme:"health",sub_service:"Medical Laboratory Services",url:"https://lsphcb.lg.gov.ng/medical-laboratory-services/",cta:"Get more information on Lagos Medical Laboratory Service",short:`<p><strong>Medical Laboratory Services</strong></p> 3692 <p><strong>BRIEF HISTORY</strong></p> 3693 <p> </p> 3694 <p>The Department came into existence 2014 at the peak of Ebola outbreak when the DMLS got seconded at the instance of then Permanent Secretary, Dr Olukayode Oguntimehin to coordinate and direct the affairs of the medical laboratory services. The directorate is saddled with monitoring and mentoring of Medical Laboratory Scientists and Medical Laboratory technicians. It also monitors and evaluate as well as laboratory tests and reagents ensure quality assured reagents.</p> 3695 <p> </p> 3696 <p><strong>VISION:</strong></p> 3697 <p> </p> 3698 <p>The vision of Medical Laboratory services (LSPHCB) is to provide all Lagosians with an appropriate cost effective and high quality assured Laboratory service as a functional component of reliable State Health Care delivery system.</p> 3699 <p> </p> 3700 <p><strong>FUNCTIONS OF DEPARTMENT</strong></p> 3701 <p> </p> 3702 <ul> 3703 <li>To oversee the practice of Medical Laboratory services using good clinical Laboratory Practice in all the laboratories.</li> 3704 <li>To ensure timely and prompt routine and desired investigations are done in PHCs.</li> 3705 <li>To perform Quality Assurance on all the processes (pre-analytical, analytical and post-analytical).</li> 3706 <li>To monitor the activities of Medical Laboratory in PHCs by regular visitations, mentoring and onsite training.</li> 3707 <li>To liaise with other departments and professional bodies towards clients/patients satisfaction.</li> 3708 <li> Appraisal and competency assessment of personnel and equipment towards Good Laboratory Practice (GLP) and Laboratory House Keeping.</li> 3709 <li>To coordinate, check and validate equipment and reagents in sustaining Laboratory Reagent Revolving Fund.</li> 3710 <li>To provide linkage with secondary facilities for tests/investigations not done in PHCCs.</li> 3711 <li>To coordinate monthly meetings of the LGA Medical Laboratory Scientists for effective oversight functions and step down trainings.</li> 3712 <li>To have bimonthly meeting with Heads of Laboratory in 57LG/LCDAs and Regional Medical Laboratory Meeting with focal Laboratory Representatives across the Primary Health Centers this is a rally point for Contract and Permanent Laboratory Personnel in the State.</li> 3713 <li>To disseminate information to laboratory personnel from time to ensure conducive working environment.</li> 3714 <li>To ensure a good relationship with MOHs, Nurses, Community Health Officers, Pharmacy Personnel, Environmentalist and all other health workers.</li> 3715 <li>To perform other duties as assigned/directed by the Permanent Secretary.</li> 3716 </ul>`},{id:86,theme:"health",sub_service:"Book Vaccination ",url:"https://lagosvaccine.com/",cta:"Book Vaccine",short:`<p><strong>Lagos Vaccine Website</strong></p> 3717 <p>The Lagos Vaccine website () is an online platform designed to provide information and resources on vaccination services in Lagos State. The website is an initiative of the Lagos State Government, aimed at promoting vaccination and immunization among residents of the state.</p> 3718 <p> </p> 3719 <p><strong>Features</strong></p> 3720 <ul> 3721 <li>Information on available vaccines and immunization schedules</li> 3722 <li>Registration and scheduling for vaccination appointments</li> 3723 <li>Locations and contact details of vaccination centers across Lagos State</li> 3724 <li>Updates on vaccination campaigns and public health initiatives</li> 3725 </ul> 3726 <p> </p> 3727 <p><strong>Benefits</strong></p> 3728 <ul> 3729 <li>Convenient access to vaccination information and services</li> 3730 <li>Easy registration and scheduling for vaccination appointments</li> 3731 <li>Increased awareness and education on vaccine importance</li> 3732 <li>Improved public health and well-being in Lagos State</li> 3733 <li> </li> 3734 </ul> 3735 <p><strong>Target Audience</strong></p> 3736 <ul> 3737 <li>Residents of Lagos State</li> 3738 <li>Parents and caregivers seeking vaccination services for children</li> 3739 <li>Healthcare professionals and workers</li> 3740 <li>Individuals seeking information on vaccination and immunization</li> 3741 </ul>`},{id:87,theme:"health",sub_service:"Health Care Planning, Research & Statisticsâ",url:"https://lagosministryofhealth.org/health-care-planning-research-statistics/",cta:"Get more information on Lagos Health Care Service",short:`<p><strong>About Directorate of Healthcare Planning Research & statistics</strong></p> 3742 <p>The Directorate of Healthcare Research, Planning and Statistics is one of the eleven (11) Directorates of the Lagos State Ministry of Health (LSMOH). The overall goal of the directorate is to provide effective leadership and an enabling policy environment for health systems strengthening using evidence-based data and delivery of quality timely projects thereby actualizing the governmentâs desired agenda.</p> 3743 <p> </p> 3744 <p>The directorate is made up of seven (7) units that perform varying functions in order to achieve these objectives. The units include: E-Health unit, Healthcare Planning unit, Grant Management Office, Health Statistics unit, Health Financing & Economics unit, Project Implementation Unit and Research unit.</p> 3745 <p> </p> 3746 <p><strong>The core objectives of the directorate include:</strong></p> 3747 <ul> 3748 <li>
3748To use quality data, research and digital technology to support policies and strategies that strengthen the health system and improves service delivery at all levels of care.</li> 3749 <li>To strengthen health infrastructure development in the State.</li> 3750 <li>Increase sustainable and predictable investments in health and ensure financial protection.</li> 3751 </ul>`},{id:88,theme:"health",sub_service:"Hospital Services",url:"https://lagosministryofhealth.org/hospital-services-lasambus/",cta:"View Lagos State Hospital Service",short:`<p><strong>Hospital Services: LASAMBUSâ</strong></p> 3752 <p>The Directorate of family health and nutrition was established in year 2006 having been carved out from Directorate of Public Health in order to further promote positive health outcomes of families through the actualization of SDGs 2 and 3.</p> 3753 <p> </p> 3754 <p><strong>Mission</strong></p> 3755 <p>To develop and coordinate the implementation of Government policies and programmes that promote the wellbeing of the family through efficient and integrated healthcare services in the State.</p> 3756 <p>Family Health and Nutrition is made up of 5 coordinating units namely Reproductive Health unit, Youth and Adolescent Health unit, Nutrition unit, Child Health unit and School Health programme.</p>`},{id:89,theme:"health",sub_service:"Ambulance Services",url:"https://lasambus.org/home",cta:"Contact an Ambulance",short:"<p>Lagos State Ambulance Service (LASAMBUS) provides emergency medical care and transportation, responding promptly to medical emergencies across Lagos State with a fleet of ambulances and trained paramedics.</p>"},{id:90,theme:"loans",sub_service:"LSETF Loan Programme",url:"https://lsetf.ng/content/msme-loan-programme",cta:"Apply Here",media:{type:"video",src:"https://youtu.be/2js7SKawB-o"},short:`<p>The Lagos State Employment Trust Fund (LSETF) was established by The Lagos State Employment Trust Fund Law 2016 to provide financial support to residents of Lagos State, to tackle unemployment through job and wealth creation.</p> 3757 <p>The Fund will operate with an initial capital of N25Billion contributed over four years by the Lagos State Government, but will also raise additional funding from various sources including donor partners, development agencies, corporate organizations and individuals. </p>`},{id:91,theme:"loans",sub_service:"Apply for SMEDAN Loan",url:"https://smedan.gov.ng/smedan-loan/",cta:"Proceed To Application",short:`<p><strong>SMEDAN Loan Program in Lagos State</strong></p> 3758 <p> </p> 3759 <p>The Small and Medium Enterprises Development Agency of Nigeria (SMEDAN) offers a loan program designed to support small and medium-sized enterprises (SMEs) in Lagos State. This initiative aims to provide access to finance for entrepreneurs and business owners in the state, enabling them to grow and develop their businesses.</p> 3760 <p> </p> 3761 <p><strong>Benefits</strong></p> 3762 <ul> 3763 <li>Access to affordable financing for SMEs in Lagos State</li> 3764 <li>Support for business growth and development</li> 3765 <li>Job creation and employment opportunities</li> 3766 <li> 3767 <p>Contribution to the economic development of Lagos State</p> 3768 <p> </p> 3769 </li> 3770 </ul> 3771 <p><strong>Eligibility Criteria</strong></p> 3772 <ul> 3773 <li>SMEs operating in Lagos State</li> 3774 <li>Businesses must be registered with the Corporate Affairs Commission (CAC)</li> 3775 <li>Must have a valid business plan and feasibility study</li> 3776 <li> 3777 <p>Must be a citizen of Nigeria</p> 3778 <p> </p> 3779 </li> 3780 </ul> 3781 <p><strong>How to Apply</strong></p> 3782 <ul> 3783 <li>Visit the SMEDAN website </li> 3784 <li>Fill out the online application form</li> 3785 <li>Submit required documents, including business plan and feasibility study</li> 3786 <li>Wait for processing and approval</li> 3787 </ul>`}
3787,{id:92,theme:"loans",sub_service:"Lagos State Student Loan Scheme ",url:"https://lasucom.edu.ng/student-loan/#",cta:"Commence Application",short:"<p>LASU Student Loan: Supporting academic excellence, Lagos State University (LASU) offers financial assistance to students, providing access to education and helping them achieve their goals, with flexible repayment terms and a commitment to student success.</p>"},{id:93,theme:"loans",sub_service:"Hub Loan Lagos Innovatives ",url:"https://www.lagosinnovates.ng/programs/startups-enterprises/hub-loans",cta:"Apply Now",short:`<p>Hub Loans are available to operators of co-working spaces, incubators and hubs in Lagos State on very attractive terms: 9 percent interest for four years. </p> 3788 <p> </p> 3789 <p>Lagos Innovates recognises the vital role that co-working spaces, incubators and hubs play in the Lagos startup ecosystem. By taking a community-focused approach, and through their programs, mentorship, networks and resources, co-working spaces, hubs and incubators in Lagos help to catalyse growth opportunities for high potential entrepreneurs and startups.</p> 3790 <p>Lagos Innovates is making meaningful capital available on very attractive terms to high-performing, outcome-focused workspace providers in Lagos State. The Hub Loan program is available to operators who are looking to fund expansion or improvement of their existing facilities at current sites, or to increase their number of locations.</p>`},{id:94,theme:"payments ",sub_service:"Pay VIS",url:"https://payvis.ng/",cta:"Proceed To Payment",short:`<p><strong>Welcome to LASG</strong></p> 3791 <p>PlateDetect is a Traffic analytics and access control application developed for Lagos Stateâs Vehicle Inspection Service to track, monitor and book traffic offenders.</p> 3792 <p> </p> 3793 <p>LASGâs PlateDetect ensures that all vehicle documentation (vehicle license, Insurance policy, Road worthiness certificate, Driverâs license, Hackney permit (Commercial vehicles only), Lagos State Driversâ Institute card ( Commercial vehicles) can be verified and tickets raised for violators.</p> 3794 <p> </p> 3795 <p><strong>How To Pay Your Bills</strong></p> 3796 <ul> 3797 <li>Please present your vehicle plate number in the "Plate Number" or,</li> 3798 <li>Present your Bill Number in the "Bill Number" field</li> 3799 <li>Confirm the transaction and pay with your: ATM Card, Bank Account or USSD</li> 3800 <li>Note your payment reference received to reprint your Payment confirmation</li> 3801 </ul>`},{id:95,theme:"payments",sub_service:"Tax payment",url:"http://etax.lirs.net/register",cta:"Proceed To Tax Payment",short:`<p>Create a New Tax Payer ID</p> 3802 <p>To create your Individual Tax Payer ID, provide your Identification number and to create your corporate Tax Payer ID, provide your CAC number.</p> 3803 <p> </p> 3804 <p>In order to enforce authorization, your new TaxPayer account will be verified using the phone number or email provided.</p>`},{id:96,theme:"payments",sub_service:"Pay Land Use Charge Online ",url:"https://luc.lagosstate.gov.ng/bill-payment",cta:"Proceed To Payment",short:"<p>Lagos State Land Use Charge Payment Portal: A secure online platform for property owners to pay their Land Use Charge (LUC) bills, making it easy to fulfill their civic obligations and supporting the state's infrastructure development and urban planning initiatives.</p>"},{id:97,theme:"payments",sub_service:"Pay land use charge through Whatsapp ",url:"https://wa.me/message/J7NCO3ANVKGUH1",cta:"Pay LUC Via Whatsapp",short:"<p>Lagos State Land Use Charge Payment: Now easy and convenient on WhatsApp! Pay your Land Use Charge (LUC) bills effortlessly via WhatsApp, simplifying your payment experience and supporting Lagos State's development.</p>"},{id:98,theme:"payments",sub_service:"Pay Land Use Charge via Remita",url:"https://login.remita.net/remita/lirs/internal/pay-invoice.reg",cta:"Pay LUC Via Remita",short:"<p>Lagos State Land Use Charge Payment: Now easy and convenient on WhatsApp! Pay your Land Use Charge (LUC) bills effortlessly via WhatsApp, simplifying your payment experience and supporting Lagos State's development.</p>"},{id:99,theme:"payments",sub_service:"Verify TTC ",url:"https://lagos.ebs-rcm.com/Home/VerifyTcc",cta:" Verify TTC",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3805 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3806 <p>lasg-EBS-RCM:</p> 3807 <p>Increases the internally generated revenue base of Lagos State</p> 3808 <p>
3808Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3809 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3810 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:100,theme:"payments",sub_service:"Lands bureau ",url:"https://landsbureau.lagosstate.gov.ng/schdule-of-fees/",cta:"",short:""},{id:101,theme:"payments",sub_service:"Survey Fees",url:"http://housing.lagosstate.gov.ng/",cta:"",short:""},{id:102,theme:"payments",sub_service:"How to Verify Tax Clerance Card For Individual ",url:"https://lagos.ebs-rcm.com/Home/VerifyeTCC",cta:"Verify Tax Clearance",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3811 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3812 <p>lasg-EBS-RCM:</p> 3813 <p>Increases the internally generated revenue base of Lagos State</p> 3814 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3815 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3816 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:103,theme:"payments",sub_service:"Verify Tax Clerance Card For Company",url:"https://lagos.ebs-rcm.com/Home/VerifycTCC",cta:"Verify Tax Clearance",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3817 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3818 <p>lasg-EBS-RCM:</p> 3819 <p>Increases the internally generated revenue base of Lagos State</p> 3820 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3821 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3822 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:104,theme:"payments",sub_service:"Quick LASG-CBS Bill Receipt Validation/Print ",url:"https://lagos.ebs-rcm.com/Home/ValidateCBSq",cta:"Validate Receipt",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3823 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3824 <p>lasg-EBS-RCM:</p> 3825 <p>Increases the internally generated revenue base of Lagos State</p> 3826 <p>
3826Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3827 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3828 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:105,theme:"payments",sub_service:"Tax Receipt/Remittance statement ",url:"https://lagos.ebs-rcm.com/Pages/RemitanceStmt",cta:"Get Remittance Statement",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3829 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3830 <p>lasg-EBS-RCM:</p> 3831 <p>Increases the internally generated revenue base of Lagos State</p> 3832 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3833 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3834 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:106,theme:"payments",sub_service:"How To Validate My Receipt ",url:"https://lagos.ebs-rcm.com/Home/Validates",cta:"Validate Receipt",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3835 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3836 <p>lasg-EBS-RCM:</p> 3837 <p>Increases the internally generated revenue base of Lagos State</p> 3838 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3839 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3840 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:107,theme:"payments",sub_service:"Withholding Receipt Validation",url:"https://lagos.ebs-rcm.com/Home/ValidateWht",cta:"Validate Witholding Receipt",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3841 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3842 <p>lasg-EBS-RCM:</p> 3843 <p>Increases the internally generated revenue base of Lagos State</p> 3844 <p>
3844Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3845 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3846 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:108,theme:"payments",sub_service:"How To Verify PayerID",url:"https://lagos.ebs-rcm.com/Home/ValidatePayerID",cta:"Verfy PayerID",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3847 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3848 <p>lasg-EBS-RCM:</p> 3849 <p>Increases the internally generated revenue base of Lagos State</p> 3850 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3851 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3852 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:109,theme:"payments",sub_service:"Validate Receipts",url:"https://lagos.ebs-rcm.com/Home/Validate",cta:" Validate Receipts",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3853 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3854 <p>lasg-EBS-RCM:</p> 3855 <p>Increases the internally generated revenue base of Lagos State</p> 3856 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3857 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3858 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:110,theme:"payments",sub_service:"Merge PayerID Request",url:"https://lagos.ebs-rcm.com/Home/PayerIDMergerRequest",cta:"Duplicate PayerID Merger Request",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3859 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3860 <p>lasg-EBS-RCM:</p> 3861 <p>Increases the internally generated revenue base of Lagos State</p> 3862 <p>
3862Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3863 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3864 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:111,theme:"payments",sub_service:"Generate Payment Code",url:"https://lagos.ebs-rcm.com/Webteller/WebGenCode",cta:"Generate Payment Code",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3865 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3866 <p>lasg-EBS-RCM:</p> 3867 <p>Increases the internally generated revenue base of Lagos State</p> 3868 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3869 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3870 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:112,theme:"payments",sub_service:"Create Payer ID",url:"https://lagos.ebs-rcm.com/Pages/SelServicePID",cta:"Create Payer ID",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3871 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3872 <p>lasg-EBS-RCM:</p> 3873 <p>Increases the internally generated revenue base of Lagos State</p> 3874 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3875 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3876 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:113,theme:"payments",sub_service:"Validate Email",url:"https://lagos.ebs-rcm.com/Home/ValidateEmail",cta:"Validate Email",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3877 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3878 <p>lasg-EBS-RCM:</p> 3879 <p>Increases the internally generated revenue base of Lagos State</p> 3880 <p>
3880Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3881 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3882 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:114,theme:"payments",sub_service:"Payment and Receipt Compliant",url:"https://lagos.ebs-rcm.com/Home/PmtReceiptComplaints",cta:"Report Complaints",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3883 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3884 <p>lasg-EBS-RCM:</p> 3885 <p>Increases the internally generated revenue base of Lagos State</p> 3886 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3887 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3888 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:115,theme:"payments",sub_service:"Check Web Teller Reference",url:"https://lagos.ebs-rcm.com/WebTeller/WebtellerOptionMenu1",cta:"Check Web Teller Reference",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3889 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3890 <p>lasg-EBS-RCM:</p> 3891 <p>Increases the internally generated revenue base of Lagos State</p> 3892 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3893 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3894 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:116,theme:"payments",sub_service:"Bank Reporting Procedure",url:"https://lagos.ebs-rcm.com/Home/BankReportingProcedure",cta:"Read Bank Reporting Procedure",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3895 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3896 <p>lasg-EBS-RCM:</p> 3897 <p>Increases the internally generated revenue base of Lagos State</p> 3898 <p>
3898Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3899 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3900 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:117,theme:"payments",sub_service:"Bank Compliance",url:"https://lagos.ebs-rcm.com/",cta:"Check Bank Compliance",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3901 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3902 <p>lasg-EBS-RCM:</p> 3903 <p>Increases the internally generated revenue base of Lagos State</p> 3904 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3905 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3906 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:118,theme:"payments",sub_service:"Bank Performance",url:"https://lagos.ebs-rcm.com/Home/BankPerformance",cta:"Check Bank Performance",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3907 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3908 <p>lasg-EBS-RCM:</p> 3909 <p>Increases the internally generated revenue base of Lagos State</p> 3910 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3911 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3912 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:119,theme:"payments",sub_service:"Tax Paye Regulations",url:"https://lagos.ebs-rcm.com/Home/Payeregulation",cta:" View Tax Paye Regulations",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3913 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3914 <p>lasg-EBS-RCM:</p> 3915 <p>Increases the internally generated revenue base of Lagos State</p> 3916 <p>
3916Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3917 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3918 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:120,theme:"payments",sub_service:"Sales Tax",url:"https://lagos.ebs-rcm.com/Home/salestax",cta:"Pay Sales Tax",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3919 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3920 <p>lasg-EBS-RCM:</p> 3921 <p>Increases the internally generated revenue base of Lagos State</p> 3922 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3923 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3924 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:121,theme:"payments",sub_service:"Validate Receipt for Central Billing System Transaction",url:"https://lagos.ebs-rcm.com/Home/ValidateCBSq",cta:" Validate Receipt",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3925 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3926 <p>lasg-EBS-RCM:</p> 3927 <p>Increases the internally generated revenue base of Lagos State</p> 3928 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3929 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3930 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:122,theme:"payments",sub_service:"Verify Tax Clearance Certificate (TCC)",url:"https://etax.lirs.net/",cta:"Verify TCC",short:`<p><strong>Lagos State eTax Platform</strong></p> 3931<p>The Lagos State eTax platform is an online tax payment system that enables taxpayers to pay taxes and levies conveniently and securely. The platform, provided by the Lagos State Internal Revenue Service (LIRS), offers a range of services including tax payment, return filing, and payment history viewing.</p>`},{id:123,theme:"complaints_feedbacks ",sub_service:"Make Complaints",url:"https://citizensgate.lagosstate.gov.ng/#services",cta:"Fill Complaint Form",short:`<p>You can Report any issue that will make living in Lagos State a rewarding experience for Citizens.</p> 3932 <p>From fixing dilapidated infrastructure (bad roads/ Potholes/ collapsing building) to giving you convenience, we are interested in serving you well.</p> 3933 <p> </p> 3934 <p>Accessing various goverment services</p> 3935 <p>You can secure your C of O, report bad building or road condition and suggest how to better serve you here.</p> 3936 <p>
3936Better traffic experience</p> 3937 <p>You can send a message on any issue stopping free flow of traffic (hold-up/traffic jam).</p> 3938 <p>Really, you can even see how well we serve you on this platform through the dashboard charts and tables.</p>`},{id:124,theme:"complaints_feedbacks ",sub_service:"Enviromental Complaints",url:"https://moelagos.gov.ng/complaints-desk/",cta:"",short:""},{id:125,theme:"complaints_feedbacks ",sub_service:"LASRERA Complaints",url:"https://lasrera.lagosstate.gov.ng/complaint.jsp",cta:"Fill Complaint",short:`<p>ABOUT LASRERA</p> 3939 <p>In the quest and vision of the current Governor of Lagos State , Mr. Babajide Olusola Sanwo-Olu in making Lagos a 21st Century economy, the Office of the Special Adviser on Housing had the mandate responsibilities to oversee the erstwhile Lagos State Real Estate Transaction Department in the Ministry of Housing as established by Law on the 18th of May, 2007. The Law was expedient due to reported/ increasing cases of fraud in the Real Estate Sector. However, after careful examination of the extant laws and engagements with relevant Stakeholders within the public and private space , Mr Governor unveiled the intention of his Administration to put an end to fraudulent and unscrupulous practices in the real estate sector.</p> 3940 <p>In a memo Ref. No: CIR/HOS/'20/Vol.1/027 dated the 7th February 2020 Mr. Governor approved the transition of Lagos State Real Estate Transaction Department (LASRETRAD) from a Department to a full Agency now known as Lagos State Real Estate Regulatory Authority(LASRERA).</p> 3941 <p>The Lagos State Estate Agency Regulatory Law, Cap L28, Laws of Lagos State, 2015 ("Law") presently in operation in the State, provides for the establishment of the Lagos State Real Estate Regulatory Authority. The essence of this Law is to regulate real estate transactions in Lagos State by identifying persons eligible to be licensed as Real Estate Practitioners and provides for the issuance or renewal of annual permits, as well as collating and registering Real Estate transactions in the State.Specifically, the Authority has the responsibility for maintaining a register of Licensed Real Estate Practitioners and sanctioning of unlicensed Estate Agents in the State.In its bid to sanitize and promote transparency, the State must keep a database of persons dealing in Real Estate transactions, regulate and monitor the activities of all Practitioners. Thus, the State must ensure strict compliance and adherence to the law in its efforts to protect its citizens and rid the State of unethical practices in the Sector.</p>`},{id:126,theme:"complaints_feedbacks ",sub_service:"Report a Noice",url:"http://www.lasepa.gov.ng/report/contact.php",cta:"",short:""},{id:127,theme:"complaints_feedbacks ",sub_service:"LASUED Help Desk",url:"https://support.lasued.edu.ng/",cta:"Fill Your Complaint Form",short:`<p><strong>LASUED Support Portal</strong></p> 3942 <p> </p> 3943 <p>Welcome to the Lagos State University of Education (LASUED) Support Portal! This platform is designed to provide technical assistance, resources, and support to students, staff, and faculty members of LASUED.</p> 3944 <p> </p> 3945 <p><strong>Here, you can:</strong></p> 3946 <ul> 3947 <li>Report technical issues and request IT support</li> 3948 <li>Find answers to frequently asked questions</li> 3949 <li>Access guides and tutorials for university systems and services</li> 3950 <li>Submit suggestions and feedback for improving our services</li> 3951 </ul> 3952 <p>Our dedicated support team is available to help you with any questions or concerns you may have, from troubleshooting technical issues to providing guidance on university processes.</p> 3953 <p> </p> 3954 <p><strong>Get Support:</strong></p> 3955 <p>Report a Technical Issue</p> 3956 <p>Ask a Question</p> 3957 <p>Request a Service</p>`},{id:128,theme:"complaints_feedbacks ",sub_service:"MEMR Report An Outage",url:"https://lagosmemr.com/memr-report-outage/",cta:"Make Complaint To MEMR",short:`<p><strong>Lagos State Ministry of Energy and Mineral Resources</strong></p> 3958<p>The official website of the Lagos State Ministry of Energy and Mineral Resources provides information on the ministry's initiatives, programs, and services related to energy and mineral resources in Lagos State. The website offers news, updates, and resources on energy generation, distribution, and conservation, as well as mineral resource management. It also provides a platform for reporting power outages and streetlight faults, and offers a portal for citizens to access energy-related services.</p>`},{id:129,theme:"complaints_feedbacks ",sub_service:"Lagos Transport Compliant hotline1",url:"Lagos Transport Compliant hotline1/09020009000",cta:"Call Lagos Transport Complaint Line",short:""},{id:130,theme:"complaints_feedbacks ",sub_service:"Lagos Transport Compliant hotline 2",url:"Lagos Transport Compliant hotline 2/09020004000",cta:"Call Lagos Transport Complaint Line",short:""},{id:131,theme:"complaints_feedbacks ",sub_service:"Payment and Receipt Compliant",url:"https://lagos.ebs-rcm.com/Home/PmtReceiptC
3958omplaints",cta:"Make Payment Complaint",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3959 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3960 <p>lasg-EBS-RCM:</p> 3961 <p>Increases the internally generated revenue base of Lagos State</p> 3962 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3963 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3964 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:132,theme:"complaints_feedbacks ",sub_service:"Lagos State Ministry Of Environment Complaint Desk",url:"https://moelagos.gov.ng/complaints-desk/",cta:"",short:""},{id:133,theme:"complaints_feedbacks ",sub_service:"Ministry Of Energy and Mineral Resources Appeals & Complaints",url:"https://lagosmemr.com/memr-appeals-complaints/",cta:"Make Complaint To MEMR",short:`<p><strong>Lagos State Ministry of Energy and Mineral Resources</strong></p> 3965<p>The official website of the Lagos State Ministry of Energy and Mineral Resources provides information on the ministry's initiatives, programs, and services related to energy and mineral resources in Lagos State. The website offers news, updates, and resources on energy generation, distribution, and conservation, as well as mineral resource management. It also provides a platform for reporting power outages and streetlight faults, and offers a portal for citizens to access energy-related services.</p>`},{id:134,theme:"complaints_feedbacks ",sub_service:"Citizensâ Mediation Centre(CMC) ",url:"https://lagosstatemoj.org/cmc/",cta:" Report to Citizen's Mediation Center",short:`<p>The Citizensâ Mediation Centre (CMC) is an initiative of the Lagos state government under the ministry of justice. It was first established in 1999 as a unit of the directorate of citizensâ right in the ministry of justice. With the enactment of the CMC law in 2007, it became a statutory agency of the state government.</p> 3966 <p>ÂÂ</p> 3967 <p>The centre provides an alternative dispute resolution mechanism which residents of Lagos state can use to resolve their cases instead of litigation. Its main objective is to provide free and less cumbersome means of obtaining justice for all residents thereby discouraging self-help and impunity. Mediation and various other ADR available at CMC are confidential, free, voluntary, fast, and rendered in such a way as to ensure that disputes are resolved amicably without jeopardizing the relationship between the parties.</p> 3968 <p>Services rendered by the centre include the settlement of disputes relating to landlords/tenants, employers and employees disputes, family matters (including marital disputes, child custody etc.). Others are property inheritance, land matters, monetary claims, local relationships and commercial disputes.</p> 3969 <p>Since the commencement of mediation services in Lagos state and its wide acceptance by residents, there has been drastic reduction in unresolved disputes and court congestion. 26,756 cases were settled in 2019 and over 9,118 matters have already been settled in the current year.</p>`},{id:135,theme:"complaints_feedbacks ",sub_service:"Comments and Complaints",url:"https://lagos.ebs-rcm.com/Home/Complaints",cta:"Make Tax Related Complant",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3970 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3971 <p>lasg-EBS-RCM:</p> 3972 <p>Increases the internally generated revenue base of Lagos State</p> 3973 <p>
3973Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3974 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3975 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:136,theme:"complaints_feedbacks ",sub_service:"Payment and Receipt Compliant",url:"https://lagos.ebs-rcm.com/Home/PmtReceiptComplaints",cta:"Make Payment Complaint",short:`<p>The Lagos State Government Electronic Banking System of Revenue Cycle Management (LASG EBS-RCM) is aimed to Go-online with the Direct Bank Lodgment System (DBLS) of the revenue collection process and provide information for tax administration and planning while monitoring and co-ordinating all revenue generating activities of the state.</p> 3976 <p>It is a sophisticated information network system linking Tax Stations & other Revenue Agencies to lodgment banks. It uses the e-Pay messaging system for inter-bank communications by creating and maintaining a database of all revenue collection activities thus allowing for on-line tracking.</p> 3977 <p>lasg-EBS-RCM:</p> 3978 <p>Increases the internally generated revenue base of Lagos State</p> 3979 <p>Provides easy administration, monitoring and co-ordination of all revenue activities in the state</p> 3980 <p>Assists to identify fraudulent debit, diversion of funds and excess charges on the state accounts</p> 3981 <p>Alpha-Beta Consulting LLP powers the lasg-EBS-RCM and strives to make the system more and more efficient and dependable.We invite your suggestions to help us serve you better.</p>`},{id:137,theme:"complaints_feedbacks ",sub_service:"Citizen's Meditation Center Phonenumber",url:"Citizen's Meditation Center Phonenumber/08118161620",cta:"Call Citezen's Mediation Center",short:`<p>The Citizensâ Mediation Centre (CMC) is an initiative of the Lagos state government under the ministry of justice. It was first established in 1999 as a unit of the directorate of citizensâ right in the ministry of justice. With the enactment of the CMC law in 2007, it became a statutory agency of the state government.</p> 3982 <p>ÂÂ</p> 3983 <p>The centre provides an alternative dispute resolution mechanism which residents of Lagos state can use to resolve their cases instead of litigation. Its main objective is to provide free and less cumbersome means of obtaining justice for all residents thereby discouraging self-help and impunity. Mediation and various other ADR available at CMC are confidential, free, voluntary, fast, and rendered in such a way as to ensure that disputes are resolved amicably without jeopardizing the relationship between the parties.</p> 3984 <p>Services rendered by the centre include the settlement of disputes relating to landlords/tenants, employers and employees disputes, family matters (including marital disputes, child custody etc.). Others are property inheritance, land matters, monetary claims, local relationships and commercial disputes.</p> 3985 <p>Since the commencement of mediation services in Lagos state and its wide acceptance by residents, there has been drastic reduction in unresolved disputes and court congestion. 26,756 cases were settled in 2019 and over 9,118 matters have already been settled in the current year.</p>`},{id:138,theme:"transportation",sub_service:"How to Apply for Online LASDRI Certification Renewal ",url:"https://new.lasdri.org/#",cta:"Apply For LASDRI Certification",short:`<p><strong>LAGOS STATE DRIVING INSTITUTE (LASDRI)</strong></p> 3986 <p> </p> 3987 <p>The Lagos State Driversâ Institute was established through Law N0 13 published in Lagos State official Gazette of July 2007.</p> 3988 <p> </p> 3989 <p>It was established to correct mistakes of the past whereby drivers drive on the highway without adequate training. This has led to road traffic accidents, wastage of man hours and its attendant pressure on health facilities. The Lagos State Government decided to retrain and recertify professional drivers and this is compulsory. The Institute will also conduct vision test and make appropriate recommendation</p> 3990 <p> </p> 3991 <p><strong>ESTABLISHMENT:</strong></p> 3992 <p> </p> 3993 <p> Professionalizing the activities of drivers in the State.</p> 3994 <p> Improved Driving Culture</p> 3995 <p> Reduced Road Traffic Accidents/ Crashes</p> 3996 <p> Reduction in Traffic Jams / Congestion</p> 3997 <p> Reduced Road Rage</p> 3998 <p>
3998Improved Environmental Condition</p> 3999 <p> Improved health condition and decrease in associated hospital bills</p> 4000 <p> Increase in foreign exchange through reduced capital flight</p> 4001 <p> Improved economic growth</p> 4002 <p> </p> 4003 <p><strong>MANDATE OF THE INSTITUTE</strong></p> 4004 <p> </p> 4005 <p>It is no gain saying that the rate and severity of road traffic crashes in Nigeria and Lagos State has adverse effects on the economy of the State. The attendant loss of lives properties and man-hours coupled with its socio-psychological effects deserves immediate attention of Government. Noting that 75% of road traffic crashes that results from human errors could be attributed to the driver, the Lagos State Government being aware that many drivers did not pass through any formal training in the Technology of drivingâ and as a result, lack of adequate knowledge of road traffic rules and regulations as well as simple requirements for vehicle maintenance, set up the Lagos State Driversâ Institute and equipped its five centres with driving simulators and audio visual aids, to amongst other things.</p> 4006 <p> </p> 4007 <p> Training, retraining and recertification of all professional drivers in the State.</p> 4008 <p> Standardizing the driving profession in the State.</p> 4009 <p> Registering and creating a database for professional drivers in the State.</p> 4010 <p> Standardizing, registration and accreditation of private driving schools in the State</p> 4011 <p> Assisting private driving schools in curriculum development and Instructorsâ training.</p> 4012 <p> Provide courses of instruction, training, set standards for driving schools in the state in collaboration with the Ministry of Transportation.</p> 4013 <p> Ensure that all professional drivers in the employment of both Government and private organizations attend the Institute for training and re-training at least once every year towards updating their skills.</p> 4014 <p> Issue certificate of competence to drivers who have successfully completed training in the institute.</p> 4015 <p> Provide facilities to assist registered driving schools in the state.</p> 4016 <p> Compile and maintain database of all professional drivers in Lagos state.</p> 4017 <p> Train professional drivers in driving skills</p> 4018 <p> Train professional drivers in road traffic rules and regulations</p> 4019 <p> Improve driving techniques of all categories of drivers</p> 4020 <p> Organize conferences, seminars, workshops and educational programs for professional and non-professional drivers from time to time.</p>`},{id:141,theme:"transportation",sub_service:"Check and Verify my International Drivers License Online ",url:"https://dvis.lg.gov.ng/check-international-drivers-license/",cta:" Verify Drivers License",short:"<p>Lagos State Vehicle Inspection Service formally known as Vehicle Inspection Unit was established on 2nd August 2012, by the former Governor of Lagos State Mr. Babatunde Raji Fashola. The Vehicle inspection. Service is one of the enforcement agencies the State Government responsible for the implementing the compliance on Road Traffic Law 2021; it is saddled with the duties of ensuring compliance with all stipulated/required vehicle policies such as Road Worthiness, Vehicle License, Hackney Permit, Testing and Training of applicants for driverâs license/ rider card and sometime compliment the duties of other Transport Agencie</p>"},{id:142,theme:"transportation",sub_service:"Book an Inspection / Check RWC Validation ",url:"https://dvis.lg.gov.ng/verify/",cta:"Validate RW
4020C",short:"<p>Lagos State Vehicle Inspection Service formally known as Vehicle Inspection Unit was established on 2nd August 2012, by the former Governor of Lagos State Mr. Babatunde Raji Fashola. The Vehicle inspection. Service is one of the enforcement agencies the State Government responsible for the implementing the compliance on Road Traffic Law 2021; it is saddled with the duties of ensuring compliance with all stipulated/required vehicle policies such as Road Worthiness, Vehicle License, Hackney Permit, Testing and Training of applicants for driverâs license/ rider card and sometime compliment the duties of other Transport Agencie</p>"},{id:143,theme:"transportation",sub_service:"List Of Approved Driving School In Lagos State",url:"https://new.lasdri.org/drivingSchool",cta:"Search For Lagos State Driving School",short:`<p><strong>LAGOS STATE DRIVING INSTITUTE (LASDRI)</strong></p> 4021 <p> </p> 4022 <p>The Lagos State Driversâ Institute was established through Law N0 13 published in Lagos State official Gazette of July 2007.</p> 4023 <p> </p> 4024 <p>It was established to correct mistakes of the past whereby drivers drive on the highway without adequate training. This has led to road traffic accidents, wastage of man hours and its attendant pressure on health facilities. The Lagos State Government decided to retrain and recertify professional drivers and this is compulsory. The Institute will also conduct vision test and make appropriate recommendation</p> 4025 <p> </p> 4026 <p><strong>ESTABLISHMENT:</strong></p> 4027 <p> </p> 4028 <p> Professionalizing the activities of drivers in the State.</p> 4029 <p> Improved Driving Culture</p> 4030 <p> Reduced Road Traffic Accidents/ Crashes</p> 4031 <p> Reduction in Traffic Jams / Congestion</p> 4032 <p> Reduced Road Rage</p> 4033 <p> Improved Environmental Condition</p> 4034 <p> Improved health condition and decrease in associated hospital bills</p> 4035 <p> Increase in foreign exchange through reduced capital flight</p> 4036 <p> Improved economic growth</p> 4037 <p> </p> 4038 <p><strong>MANDATE OF THE INSTITUTE</strong></p> 4039 <p> </p> 4040 <p>It is no gain saying that the rate and severity of road traffic crashes in Nigeria and Lagos State has adverse effects on the economy of the State. The attendant loss of lives properties and man-hours coupled with its socio-psychological effects deserves immediate attention of Government. Noting that 75% of road traffic crashes that results from human errors could be attributed to the driver, the Lagos State Government being aware that many drivers did not pass through any formal training in the Technology of drivingâ and as a result, lack of adequate knowledge of road traffic rules and regulations as well as simple requirements for vehicle maintenance, set up the Lagos State Driversâ Institute and equipped its five centres with driving simulators and audio visual aids, to amongst other things.</p> 4041 <p> </p> 4042 <p> Training, retraining and recertification of all professional drivers in the State.</p> 4043 <p> Standardizing the driving profession in the State.</p> 4044 <p> Registering and creating a database for professional drivers in the State.</p> 4045 <p> Standardizing, registration and accreditation of private driving schools in the State</p> 4046 <p> Assisting private driving schools in curriculum development and Instructorsâ training.</p> 4047 <p> Provide courses of instruction, training, set standards for driving schools in the state in collaboration with the Ministry of Transportation.</p> 4048 <p> Ensure that all professional drivers in the employment of both Government and private organizations attend the Institute for training and re-training at least once every year towards updating their skills.</p> 4049 <p> Issue certificate of competence to drivers who have successfully completed training in the institute.</p> 4050 <p> Provide facilities to assist registered driving schools in the state.</p> 4051 <p> Compile and maintain database of all professional drivers in Lagos state.</p> 4052 <p> Train professional drivers in driving skills</p> 4053 <p> Train professional drivers in road traffic rules and regulations</p> 4054 <p> Improve driving techniques of all categories of drivers</p> 4055 <p> Organize conferences, seminars, workshops and educational programs for professional and n
4055on-professional drivers from time to time.</p>`},{id:144,theme:"transportation",sub_service:" Book LAGOSRIDE AppStore Link",url:"https://apps.apple.com/ng/app/lagosride/id1587430214",cta:"Download LAGOSRIDE",short:"Click here to downoad LAGRIDE on Playstore"},{id:145,theme:"transportation",sub_service:" Book LAGOSRIDE PlayStore Link",url:"https://play.google.com/store/apps/details?id=com.lagosride.rider",cta:"DOWNLOAD LAGOSRIDE",short:"Click here to downoad LAGRIDE on Playstore"},{id:146,theme:"transportation",sub_service:"BRT Eletronic Payment",url:"https://www.lamata-ng.com/services/electronic-fare-payment-system/",cta:"Read More On BRT Electronic Payment",short:`<p><strong>Electronic Fare Payment System</strong></p> 4056 <p>Electronic Fare Payment (EFP), also known as Automatic Fare Collection (AFC), provides an automated means of collecting and processing fares for public transportation services such as bus, rail, ferry and other modes.</p> 4057 <p> </p> 4058 <p>The AFC process entails the use of an Electronic Payment System to collect public transport fares and verify payment. A central, integrated e-payment system would be implemented on all modes of transportation.</p> 4059 <p> </p> 4060 <p>An EFP was deployed on the Ikorodu â TBS BRT for revenue protection and has been extended to other services under the regulation of the Lagos Metropolitan Area Transport Authority (LAMATA).</p> 4061 <p> </p> 4062 <p>The EFP is powered by a smart card known as Cowry card with card readers and validators on board of transport vehicles</p> 4063 <p> </p> 4064 <p> </p>`},{id:147,theme:"disasters_emergencies",sub_service:"Fire Services",url:"https://lagosstate.gov.ng/fire-station-numbers/",cta:"",short:""},{id:148,theme:"disasters_emergencies",sub_service:"Report a Missing Person",url:"https://lagos.npf.gov.ng/news/post/3",cta:"Report A MIssing Person",short:`<p><strong>CP Special Squad</strong></p> 4065 <p> </p> 4066 <p>MISSION:</p> 4067 <p>CP Squad Squad Lagos State Command is commited to provide effective security services through a proactive actions and community centered approach to stamp out Armed robbers, Kidnappers, Cultists and other heinous criminals in Lagos and its environ.</p> 4068 <p> </p> 4069 <p>VISION:</p> 4070 <p>CP Special Squad has a vision to use proactive, intelligence led policing and community centered security method of innternational standard to combat all kinds of heinous crimes which includes armed robbery, kidnapping, cultism and banditry among others in Lagos State and environs.</p>`},{id:149,theme:"disasters_emergencies",sub_service:"Report Stolen Vehicles",url:"https://lagos.npf.gov.ng/news/post/12",cta:"Report Stolen Vehicle",short:`<p><strong>CP Special Squad</strong></p> 4071 <p> </p> 4072 <p>MISSION:</p> 4073 <p>CP Squad Squad Lagos State Command is commited to provide effective security services through a proactive actions and community centered approach to stamp out Armed robbers, Kidnappers, Cultists and other heinous criminals in Lagos and its environ.</p> 4074 <p> </p> 4075 <p>VISION:</p> 4076 <p>CP Special Squad has a vision to use proactive, intelligence led policing and community centered security method of innternational standard to combat all kinds of heinous crimes which includes armed robbery, kidnapping, cultism and banditry among others in Lagos State and environs.</p>`},{id:150,theme:"disasters_emergencies",sub_service:"Find Area Commands and Police Divisions ",url:"https://lagos.npf.gov.ng/home/find/division",cta:"Search Area Commands And Police Divisions",short:`<p><strong>CP Special Squad</strong></p> 4077 <p> </p> 4078 <p>MISSION:</p> 4079 <p>CP Squad Squad Lagos State Command is commited to provide effective security services through a proactive actions and community centered approach to
4079stamp out Armed robbers, Kidnappers, Cultists and other heinous criminals in Lagos and its environ.</p> 4080 <p> </p> 4081 <p>VISION:</p> 4082 <p>CP Special Squad has a vision to use proactive, intelligence led policing and community centered security method of innternational standard to combat all kinds of heinous crimes which includes armed robbery, kidnapping, cultism and banditry among others in Lagos State and environs.</p>`},{id:151,theme:"disasters_emergencies",sub_service:"Police Emergency Phone Numbers",url:"disaster_emergencies/police",cta:"",short:""},{id:153,theme:"media",sub_service:"Lagos Traffic Radio Article Talk",url:"http://trafficradio961.ng/",cta:" Visit Traffic Radio Article Talk",short:"<p>Lagos Traffic Radio 96.1FM pioneers cutting-edge solutions to deliver precise and dependable traffic reports and travel guidance to the people of Lagos. Harnessing the latest technologies, we spearhead innovation to ensure timely and accurate information, empowering Lagosians to navigate the bustling city with confidence and ease.</p>"},{id:154,theme:"media",sub_service:"Eko FM",url:"https://ekofm897.com/",cta:" Visit Eko FM",short:`<p><strong>EKO FM HISTORY</strong></p> 4083 <p><strong>Eko 89.7FM</strong> was established in 1997 as the ââsisterââ station of Radio Lagos.</p> 4084 <p>The stationâs functions centre mainly on the presentation of typically traditional values and concept of Lagos life. Through it carefully knitted programmes.<br> </p> 4085 <p>Eko FM ensures a perfect blend of programming in the area of fun filled excitement, news courage and delivery, appropriate music presentation, socially relevant and audience involving concepts. The station perfects its act in the art of breaking news, consists interviews and accommodating aura for the young and old, music tastes.<br><br> </p> 4086 <figure class="image image_resized" style="height:auto;width:150px;"><img style="aspect-ratio:150/150;" src="https://ekofm897.com/wp-content/uploads/2022/01/ekofm.jpeg" alt="" srcset="https://ekofm897.com/wp-content/uploads/2022/01/ekofm.jpeg 225w, https://ekofm897.com/wp-content/uploads/2022/01/ekofm-150x150.jpeg 150w" sizes="100vw" width="150" height="150"></figure> 4087 <p>The station hall music: is its technique success at enabling live signals from Lagos into eight states within Nigeria. This spread ensures a ready market for your promos and campaigns. The station boasts of various local and international awards, such as P.H.A.B.A (2000) as Africaâs most exciting and educative station, the National Media Merit and D.AM.E Awards.</p> 4088 <p> </p> 4089 <p><strong>TARGET AUDIENCE:</strong> Adults, upwardly mobile</p> 4090 <p> </p> 4091 <p><strong>TERRESTIAL COVERAGE:</strong> Lagos, Oyo, Ondo, Ekiti, Kwara, Edo, Delta, Part of Rivers, Bayelsa, Niger, Kogi, Benue </p> 4092 <p> </p> 4093 <p><strong>ONLINE COVERAGE: </strong>Throughout the whole world via <strong>RADIO GARDEN</strong></p>`},{id:154,theme:"media",sub_service:"Lagos State Television LTV",url:"https://lagostelevision.com/",cta:"Visit LTV Website",short:`<p><strong>Brief History of Lagos Television</strong></p> 4094 <p>In October 1980, the administration of Alhaji Lateef Kayode Jakande established its own Television Station to oil its information dissemination machinery on November 9, 1980, Lagos Television commenced transmission on a Very High Frequency (VHF) Channel 5.</p> 4095 <p>The formal review of the Nigerian Communication Laws as well as the return of military rule in 1983 engendered a new dawn in broadcasting as there was a firm directive that all Television stations, apart from NTA be restricted to the Ultra High Frequency (UHF) band. In compliance, Lagos Television moved to UHF Channel 35.</p> 4096 <p>Lagos Television was the first TV station in Nigeria to operate on two frequencies â VHF and UHF simultaneously. This explains the Stationâs former payoff; The Power of Television x2. Apart from being the first Television Station outside the NTA family, the Station took the Nigerian Television industry by storm in the early 80s with the introduction of a 60- hour non-stop weekend transmission from 7pm on Friday till 7am on Mondays. The then Lagos Weekend Television was the first marathon Television station in Africa. Itâs unprecedented public approval transformed TV viewership especially with the Lagos precinct and brought a change in the call sign to LTV/LWT.</p> 4097 <p>During those years, the operations of Lagos Television were not without its challenges. In September, 1985, a mysterious midnight inferno consumed the entire legacy of the station. It destroyed the studios, the library, office
4097s and equipment even official records; personal effects of the staff were not spared.</p> 4098 <p>For about one and half year, Lagos Television remained in the doldrums merely surviving but in 1995 Col. Buba Marwa, the then sole administrator of the State set up a re-organization committee to assess the position of the Lagos State Broadcasting Corporation (LSBC) and determine her need to survive.</p> 4099 <p>In 1998, the administration of the former Governor of Lagos State, Asiwaju Bola Ahmed Tinubu saw the need to implement the recommendation of the committee set up to look into the re-organization of the Lagos State Broadcasting Corporation (LSBC) (Lagos Television and Radio Services under the management) and this led to the split of the two organizations for effective management, better performance, autonomy and to create career prospect for members of staff.</p> 4100 <p>Thereafter, Asiwaju Bola Tinubu called for a blue print on the re- engineering and re-positioning of Lagos Television. Satisfied with what was presented and undaunted by the enormity of the capital outlay, in the midst of competing demands, he took the bull by the horn and gave a fresh breadth of life to the Station. Impact</p> 4101 <p>In June 2008, Lagos Television scored another first when it became the first and the only state-owned Television Station on DSTV Channel 129 and the formal switch-over ceremony was performed by the Governor of Lagos State, Mr. Babatunde Fashola (SAN). The Channel was later changed to 256.</p> 4102 <p>The Station did not stop there because of the introduction of various âDirect to Homes (DHT) platformsâ she also secured platforms on Startimes channel 113, GOTV Channel 90, Play TV Channel 950; which increased the Stationâs visibility beyond the shores of Nigeria. The live streaming facility (on TV now and Lagos Television apps) was another plus.</p> 4103 <p>In the area of extra broadcasting activities, LTV has carved a niche as a truly people-oriented TV station with the annual Lagos Television Christmas Fair and the ultra-modern event facilities nicknamed De-Blue Roof and Combo Hall.</p>`},{id:156,theme:"laws",sub_service:"CTC Certification ",url:"https://lagosstatemoj.ebs-rcm.com/",cta:" Get CTC Certification",short:`<p><strong>Welcome to Lagos State Ministry of Justice.</strong></p> 4104 <p>The Ministry of Justice is the Ministry charged with the responsibility of counselling the State in all legal matters. It has the major role of promoting and enhancing justice for all, the rule of law and good governance.</p> 4105 <p>The Chief Legal Officer in the Ministry is the Attorney General and Commissioner of Justice, supported by the Solicitor-General and </p> 4106 <p>Permanent Secretary. The Ministry consists of nine Directorates and four Units which are dedicated to meeting the Stateâs legal needs, and geared towards addressing the needs and interest of the people of Lagos State.</p> 4107 <p>This site is featured to allow easy accessibility to the services that the Ministry provides and the best way to utilize our services including the whistle blower project which interestingly has a methodology for people to report disturbing facts anonymously.</p>`},{id:157,theme:"laws",sub_service:"Certified True copy form ",url:"https://lagosstatemoj.ebs-rcm.com/",cta:"Pay For CTC",short:`<p><strong>Welcome to Lagos State Ministry of Justice.</strong></p> 4108 <p>The Ministry of Justice is the Ministry charged with the responsibility of counselling the State in all legal matters. It has the major role of promoting and enhancing justice for all, the rule of law and good governance.</p> 4109 <p>The Chief Legal Officer in the Ministry is the Attorney General and Commissioner of Justice, supported by the Solicitor-General and </p> 4110 <p>Permanent Secretary. The Ministry consists of nine Directorates and four Units which are dedicated to meeting the Stateâs legal needs, and geared towards addressing the needs and interest of the people of Lagos State.</p> 4111 <p>This site is featured to allow easy accessibility to the services that the Ministry provides and the best way to utilize our services including the whistle blower project which interestingly has a methodology for people to report disturbing facts anonymously.</p>`},{id:158,theme:"laws",sub_service:"Lagos State NPF Registration ",url:"https://lagos.npf.gov.ng/register",cta:"Register Your Account",short:`<p><strong>CP Special Squad</strong></p> 4112 <p> </p> 4113 <p>MISSION:</p> 4114 <p>CP Squad Squad Lagos State Command is commited to provide effective security services through a proactive actions and community centered approach to
4114stamp out Armed robbers, Kidnappers, Cultists and other heinous criminals in Lagos and its environ.</p> 4115 <p> </p> 4116 <p>VISION:</p> 4117 <p>CP Special Squad has a vision to use proactive, intelligence led policing and community centered security method of innternational standard to combat all kinds of heinous crimes which includes armed robbery, kidnapping, cultism and banditry among others in Lagos State and environs.</p>`},{id:159,theme:"jobs",sub_service:"job opportunities in Lagos State ",url:"http://jobs.lagosstate.gov.ng/",cta:"",short:""},{id:160,theme:"jobs",sub_service:"Lagos State Government Recruitment",url:"https://www.myjobmag.com/jobs-at/lagos-state-government",cta:"Apply Now",short:`<p><strong>About Lagos State Government</strong></p> 4118 <p>Lagos State came into existence on May 27, 1967 through Decree No. 14 promulgated by the Federal Military Government. Major Mobolaji Johnson (now Brig. Gen. RTD) was posted to assume the position of the Military Governor of the State. With the creation of Lagos State, the Governor's Office was established and an official working unit was created to assist the Military Administrator in the discharge of his duties. This team comprised the Military Administrator in the person of Major Mobolaji Johnson and four officers namely: Mr. A. E. Howson-Wright, then Permanent Secretary of Internal Affairs and chairman of the Caretaker Committee for the City of Lagos, Mr. F.C.O. Coker, a brilliant economist and Chartered Accountant, Mr. I. O. Agoro, a Legal Officer seconed from the Federal Ministry of Justice and Mr. J. O. Adeyemi-Bero, an Administrative Officer who was the Secretary of the working unit. Since the creation of the Lagos State Governor's Office, it has undergone series of transformation in structure and nomenclature for effective and efficient administration of the State Government. It was once referred to as Political and General Administration Department, Military Governor's Office, until June 1999 when it was change to the Office of the Chief of Staff (Governor's Office).</p>`},{id:161,theme:"jobs",sub_service:"Lagos Ferry Services Recruitment",url:"https://www.myjobmag.com/jobs-at/lagos-ferry-services",cta:"Apply Now",short:`<p><strong>About Lagos Ferry Services</strong></p> 4119 <p>Lagos Ferry Services Company (LFSC) (also known as LAGFERRY) is the major ferry services provider in Lagos State. Although Lagos ferry services commenced operations in 1925, passenger ferries gradually intensified until the 1970s which led to the establishment of Lagferry in 1983. The former Lagos State Ferry Services Corporation as at jakandeâs administration was wound-down as an agency of the Government due to lack of evidence of its legal incorporation. The entity was responsible for both the regulatory and operational aspects of water transportation. The next step was then to create a new regulatory Agency for the management of the water ways with a mandate that includes the business of water transportation. The Lagos STtae Waterways (LASWA) was established in 2008 and is responsible for monitoring and ensuring compliance of operators to the former Gov. Babatunde Raji Fasholaâs administration policy, in addition to being a resource hub for all manners of marine related matters. This provides the appropriate enabling environment for potential operators to implement their business strategies and capitalize on the vast number of commuters seeking alternate transport in Lagos.</p>`},{id:162,theme:"government ",sub_service:"Lagos State Health Scheme",url:"https://www.lashmaregulations.com.ng/",cta:" VIsit LSHS ",short:`<p><strong>Lagos State Health Scheme</strong></p> 4120 <p>Lagos State Health Management Agency (LASHMA) was established by the enabling act No. 14 of 25 May 2015 and registered in Lagos State of Nigeria (Official Gazette No. 32, Vol. 48) dated 5 th June 2015 to ensure that all residents of Lagos State including Public Servants have access to affordable and quality Health Care. Through the Scheme, people living in Lagos can be protected from financial distress resulting from huge medical bills.</p> 4121 <p><strong>Lagos State Health Scheme</strong></p> 4122 <p>The Ministry in conjunction with the State House of Assembly drafted the Lagos State Health Scheme Bill and was signed into law in May, 2015</p> 4123 <p>The Lagos State Health Scheme (LSHS) Law establishes the:</p> 4124 <p>â Lagos State Health Management Agency</p> 4125 <p>â Lagos State Health Scheme and the</p> 4126 <p>â Lagos State Health Fund.</p>`},{id:163,theme:"government ",sub_service:"Lagos State Contributory Pension Scheme",url:"https://laspec.gov.ng/",cta:"Get Started",short:`<p><strong>The Contributory Pension Scheme</strong></p> 4127 <p>As with the Federal scheme, the State schemes were also fraught with problems such as lack of adequate funding, irregular pe
4127nsion payments and the rigorous exercise of verification of pensioners. In line with modern global changes, the Federal Government on 27th June 2004 changed from the Defined Benefit scheme to the Contributory Pension Scheme with the signing into law of the Pension Reform Act 2004 which set up the National Pension Commission (PENCOM) to regulate and supervise the scheme and register the operators of the scheme.</p> 4128 <p><strong>Lagos State Pension Reform Law</strong></p> 4129 <p>The Lagos State government, against the background of challenges with the Defined Benefit scheme, also adopted the new Contributory Pension scheme and became the first State in Nigeria to commence the new scheme with the signing into law on 19th March 2007 of the Lagos State Pension Reform Law 2007 and eventual commencement in July 2009.</p> 4130 <p><strong>Objectives</strong></p> 4131 <p>The main objectives of the Lagos State Pension Reform Law are:</p> 4132 <p>To assist all persons in the employment of the State Government to save towards their retirement.</p> 4133 <p>To ensure that persons who leave or retire from the Public Service of the State receive their terminal or retirement benefits as and when due.</p> 4134 <p>To establish a set of rules and regulations for the administration and payment of retirement benefits in the Public Service of the State.</p> 4135 <p>The law also established the group life policy for death benefits of employees, whilst in service, as well as the Retirement Bond for employees with past service benefits and the Redemption Fund from which the liability of the bond payment would be made.</p>`},{id:164,theme:"housing ",sub_service:"Opal Membership Register",url:"https://lsdpc.gov.ng/opal-membership-register/",cta:" Get Registered",short:`<p> </p> 4136 <p><strong>LSDPC at a glance..</strong></p> 4137 <p>LSDPC is the foremost property company and the best among other property companies or corporations in Lagos and the Real Estate Sector of Nigerian Economy.</p> 4138 <p>Since 1972, LSDPC has been known for the development and sale of affordable residential properties (houses) and shopping malls(shops). We are also into rentals, lease and consultancy services.</p> 4139 <p>On this site, you will learn and discover everything you may want to know about our Corporation..</p> 4140 <p>Why choose us</p> 4141 <p> </p> 4142 <p><strong>PROPERTY SEARCH</strong></p> 4143 <p>We conduct a second to none property search which has placed us in a leading position since the last 40 years.</p> 4144 <p> </p> 4145 <p><strong>REAL ESTATE MANAGEMENT</strong></p> 4146 <p>We are known for the development and sale of affordable residential properties (houses) and shopping malls(shops) in Lagos State. Our records speaks for us</p> 4147 <ul> 4148 <li>Professionalism</li> 4149 <li>Integrity & Ethical Practice</li> 4150 <li>Communication</li> 4151 <li>Excellence</li> 4152 <li>Accountability</li> 4153 <li>Leadership</li> 4154 </ul> 4155 <p> </p>`},{id:165,theme:"housing ",sub_service:"Lagos State Contributory Pension Scheme",url:"https://www.lbicplc.com/estate-form",cta:"Get Started",short:`<p>WHAT DO I NEED TO OPEN AN INDIVIDUAL ACCOUNT?</p> 4156 <ul> 4157 <li>Scanned copy of the Original Survey</li> 4158 <li>Photograph of the site</li> 4159 <li> 4160 <p>Scanned copy of Passport photo</p> 4161 <p> </p> 4162 </li> 4163 </ul> 4164 <p style="margin-left:0px;">Downloadables</p> 4165 <ul> 4166 <li> 4167 <p style="margin-left:0px;"><a target="_blank" rel="noopener noreferrer" href="https://www.lbicplc.com/forms/Customer-Information-Update-Form.docx">Customer Information Update Form</a></p> 4168 </li> 4169 <li> 4170 <p style="margin-left:0px;"><a target="_blank" rel="noopener noreferrer" href="https://www.lbicplc.com/forms/KYC_FORM.docx">KYC-Customer Profile Form</a></p> 4171 </li> 4172 <li> 4173 <p style="margin-left:0px;"><a target="_blank" rel="noopener noreferrer" href="https://www.lbicplc.com/forms/Dormant-Account-Reactivation-Form.docx">Dormant Account Reactivation Form</a></p> 4174 </li> 4175 </ul> 4176 <p style="margin-left:0px;">All forms should be submitted to <a href="href:mailto:[email protected]">[email protected]</a></p>`},{id:166,theme:"housing",sub_service:"Properties listing",url:"https://lsdpc.gov.ng/property/",cta:" Search For Property Now",short:`<p> </p> 4177 <p><strong>LSDPC at a glance..</strong></p> 4178 <p>LSDPC is the foremost property company and the best among other property companies or corporations in Lagos and the Real Estate Sector of Nigerian Economy.</p> 4179 <p>Since 1972, LSDPC has been known for the development and sale of affordable residential properties (houses
4179) and shopping malls(shops). We are also into rentals, lease and consultancy services.</p> 4180 <p>On this site, you will learn and discover everything you may want to know about our Corporation..</p> 4181 <p>Why choose us</p> 4182 <p> </p> 4183 <p><strong>PROPERTY SEARCH</strong></p> 4184 <p>We conduct a second to none property search which has placed us in a leading position since the last 40 years.</p> 4185 <p> </p> 4186 <p><strong>REAL ESTATE MANAGEMENT</strong></p> 4187 <p>We are known for the development and sale of affordable residential properties (houses) and shopping malls(shops) in Lagos State. Our records speaks for us</p> 4188 <ul> 4189 <li>Professionalism</li> 4190 <li>Integrity & Ethical Practice</li> 4191 <li>Communication</li> 4192 <li>Excellence</li> 4193 <li>Accountability</li> 4194 <li>Leadership</li> 4195 </ul> 4196 <p> </p>`},{id:167,theme:"housing",sub_service:"Verify LASBCA Certificate ",url:"https://lasbca.lagosstate.gov.ng/lasbca-verify/",cta:"Verify Now",short:`<p>The LASBCA Verify website is an online platform designed to verify the authenticity of building construction and development documents in Lagos State. The website is an initiative of the Lagos State Building Control Agency (LASBCA), aimed at promoting transparency and accountability in the building construction industry.</p> 4197 <p> </p> 4198 <p><strong>Features</strong></p> 4199 <ul> 4200 <li>Verification of building plans and approvals</li> 4201 <li>Authentication of building permits and certificates</li> 4202 <li>Verification of builder and contractor licenses</li> 4203 <li>Reporting of illegal building constructions and violations</li> 4204 </ul>`},{id:168,theme:"water ",sub_service:"Apply for Lagos Waterways Authority (LASWA) as Boat Owner",url:"https://lsdpc./",cta:"Apply As A Boat Owner",short:`<p><strong>The Lagos State Government (LASG)</strong> in 2008 enacted the Lagos State Waterways Authority Act, which established the Lagos Waterways Authority (LASWA). LASWA is charged with the responsibility of coordinating and managing the reforms necessary for the long-term growth and development of water transportation in Lagos State, including the granting of ferry licenses and concessions for the operation of terminals to the private sector. These reforms entail the creation of an enabling long-term regulatory environment that attracts significant private sector involvement in the provision of water transport services. Through LASWA, the LASG has embarked on policy reforms that promote and facilitate investments for the provision of water transport aimed at realizing potentials towards becoming an attractive mode of transport. The fundamental responsibility of LASWA is to manage, improve and enhance navigation opportunities for Lagos State inland waterways.</p> 4205 <p> </p> 4206 <p><strong>LASWA</strong>...Travel Water... Travel Safe</p> 4207 <p>Water transportation is an integral component of the development of Lagosâ inter-modal transport system. The physical environment of Lagos is well-suited to accommodate water transport as about 17% of Lagos is composed of lagoons and waterways. The main water bodies in Lagos State are the Lagos Lagoon, Ologe Lagoon, Porto-Novo Creek, Badagry Creeks and the Atlantic Ocean.</p> 4208 <p>Water transport is one of the most advantageous transport modes, having the least impact on the environment, the lowest cost for city transport, enormous capacity reserves and the least energy</p>`},{id:169,theme:"water ",sub_service:"Lagos Waterways Authority (LASWA).",url:"https://lagoswaterways.com/",cta:"Visit LASWA",short:`<p><strong>The Lagos State Government (LASG)</strong> in 2008 enacted the Lagos State Waterways Authority Act, which established the Lagos Waterways Authority (LASWA). LASWA is charged with the responsibility of coordinating and managing the reforms necessary for the long-term growth and development of water transportation in Lagos State, including the granting of ferry licenses and concessions for the operation of terminals to the private sector. These reforms entail the creation of an enabling long-term regulatory environment that attracts significant private sector involvement in the provision of water transport services. Through LASWA, the LASG has embarked on policy reforms that promote and facilitate investments for the provision of water transport aimed at realizing potentials towards becoming an attractive mode of transport. The fundamental responsibility of LASWA is to manage, improve and enhance navigation opportunities for Lagos State inland waterways.</p> 4209 <p> </p> 4210 <p><strong>LASWA</strong>...Travel Water... Travel Safe</p> 4211 <p>Water transportation is an integral component of the development of Lagosâ inter-modal transport system. The physical environment of Lagos is well-suited to accommodate water transport as about 17% of Lagos is composed of lagoons and waterways. The main water bodies in Lagos State are the Lagos Lagoon, Ologe Lagoon, Porto-Novo Creek, Badagry Creeks and the Atlantic Ocean.</p> 4212 <p>Water transport is one of the most advantageous transport modes, having the least impact on the environment, the lowest cost for city transport, enormous capacity reserves and the least energy</p>`},{id:170,theme:"water ",sub_service:"Lagos Ferry Services Recruitment",url:"https://www.myjobmag.com/jobs-at/lagos-ferry-services",cta:"Apply Now",short:`<p><strong>About Lagos Ferry Services</strong></p> 4213 <p>Lagos Ferry Services Company (LFSC) (also known as LAGFERRY) is the major ferry services provider in Lagos State. Although Lagos ferry services commenced operations in 1925, passenger ferries gradually intensified until the 1970s which led to the establishment of Lagferry in 1983. The former Lagos State Ferry Services Corporation as at jakandeâs administration was wound-down as an agency of the Government due to lack of evidence of its legal incorporation. The entity was responsible for both the regulatory and operational aspects of water transportation. The next step was then to create a new regulatory Agency for the management of the water ways with a mandate that includes the business of water transportation. The Lagos STtae Waterways (LASWA) was established in 2008 and is responsible for monitoring and ensuring compliance of operators to the former Gov. Babatunde Raji Fasholaâs administration policy, in addition to being a resource hub for all manners of marine related matters. This provides the appropriate enabling environment for potential operators to implement their business strategies and capitalize on the vast number of commuters seeking alternate transport in Lagos.</p>`},{id:171,theme:"water ",sub_service:"lagferry login ",url:" https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.lagferryoperations.com.ng/&ved=2ahUKEwj2lJ7Si_-FAxUkgv0HHZSPDk4QFnoECBgQAQ&usg=AOvVaw1v8JbpMtv-8dyLIl04wOIT",cta:" Login",short:`<p><strong>About Lagos Ferry Services</strong></p> 4214 <p>Lagos Ferry Services Company (LFSC) (also known as LAGFERRY) is the major ferry services provider in Lagos State. Although Lagos ferry services commenced operations in 1925, passenger ferries gradually intensified until the 1970s which led to the establishment of Lagferry in 1983. The former Lagos State Ferry Services Corporation as at jakandeâs administration was wound-down as an agency of the Government due to lack of evidence of its legal incorporation. The entity was responsible for both the regulatory and operational aspects of water transportation. The next step was then to create a new regulatory Agency for the management of the water ways with a mandate that includes the business of water transportation. The Lagos STtae Waterways (LASWA) was established in 2008 and is responsible for monitoring and ensuring compliance of operators to the former Gov. Babatunde Raji Fasholaâs administration policy, in addition to being a resource hub for all manners of marine related matters. This provides the appropriate enabling environment for potential operators to implement their business strategies and capitalize on the vast number of commuters seeking alternate transport in Lagos.</p>`},{id:173,theme:"tourism ",sub_service:"How Can I Contact or Get a Tour Guide In Lagos",url:"https://lagostourism.lagosstate.gov.ng/tour-guide",cta:" Get Tourist Guide Contact Details",short:`<p><strong>OUR BACKGROUND</strong></p> 4215 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4216 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4217 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4218 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4219 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4220 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastru
4220cture Development</p> 4221 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:174,theme:"tourism ",sub_service:"How Can I Search For Tourist Centers In Lagos State",url:"https://lagostourism.lagosstate.gov.ng/attractions",cta:" Find Tourist Attractions In Lagos State",short:`<p><strong>OUR BACKGROUND</strong></p> 4222 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4223 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4224 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4225 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4226 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4227 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastructure Development</p> 4228 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:175,theme:"tourism ",sub_service:"How Can I Search For Hotels In Lagos State ",url:" https://lagostourism.lagosstate.gov.ng/hotels",cta:"Find Hotel In Lagos",short:`<p><strong>OUR BACKGROUND</strong></p> 4229 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4230 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4231 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4232 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4233 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4234 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastructure Development</p> 4235 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:176,theme:"tourism ",sub_service:"Resaurants In Lagos",url:"https://lagostourism.lagosstate.gov.ng/restaurants",cta:" Search Resturant In Lagos",short:`<p><strong>OUR BACKGROUND</strong></p> 4236 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4237 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4238 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4239 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4240 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4241 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastru
4241cture Development</p> 4242 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:177,theme:"tourism ",sub_service:"How To Apply For Lagos State Film Film Fund",url:"https://lagostourism.lagosstate.gov.ng/film-fund",cta:"Apply for Lagos State Film Fund",short:`<p>Who Is Eligible?</p> 4243 <p>It is open to all film makers/distributors who are not below the age of 18 and who MUST be resident in Lagos State (The fund is available for al genre of films).</p> 4244 <p>All film makers/distributors are required to acquire a permit from Lagos State Film and Video Censors Board (LSFVCB)</p>`},{id:178,theme:"tourism ",sub_service:"Calendar Of Events In Lagos ",url:"https://lagosstate.gov.ng/Calendar_of_Events_2019_new.pdf",cta:" Download Lagos State Event Calender",short:`<p><strong>OUR BACKGROUND</strong></p> 4245 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4246 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4247 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4248 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4249 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4250 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastructure Development</p> 4251 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:179,theme:"tourism ",sub_service:"Lagos State Visitors Guide ",url:" https://lagosstate.gov.ng/wp-content/uploads/2018/11/Visitors-Guide.docx",cta:"Download Visitors Guide",short:` <p><strong>OUR BACKGROUND</strong></p> 4252 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4253 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4254 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4255 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4256 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4257 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastru
4257cture Development</p> 4258 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:180,theme:"tourism ",sub_service:"Discover Lagos Tourism ",url:" https://lagostourism.lagosstate.gov.ng/discover-lagos",cta:"Check out ",short:`<p><strong>OUR BACKGROUND</strong></p> 4259 <p>Tourism in Lagos State was first fashioned in 1995 by the Military Administration of Captain Mike Akhigbe as a department under the Ministry of Home Affairs.</p> 4260 <p>In 1991 the Government of Chief Michael Otedola, removed the Tourism Department from the Ministry of Home Affairs and merged it with the Ministry of Information and Culture, thus becoming the Bureau of Information, Culture & Tourism and was headed by a Permanent Secretary.</p> 4261 <p>In 1994, the Tourism Department was again detached from Bureau of Information, Culture and Tourism and was merged with the Ministry of Commerce, Industry and Tourism (MCIT) and was headed by a Commissioner.</p> 4262 <p>During that period, the Lagos State Tourism Board was created out of the Tourism Department; the functions of the Board were strictly tourism promotion and marketing while on the other hand the Tourism Department was in charge of policy matters.</p> 4263 <p>In 1998, the Tourism Department and the Lagos State Tourism Board became a full Corporation with the name Lagos State Waterfront and Tourism Development Corporation (LSWTDC) under a Managing Director</p> 4264 <p>In 2007 the LSWTDC was divided into 2 (two) different ministries: Ministry of Tourism & Intergovernmental Relations and Ministry of Waterfront Infrastructure Development</p> 4265 <p>The Administration of His Excellency, Mr. Akinwunmi Ambode in 2015 rechristened the Ministry and expanded its Ministerial responsibilities to read Ministry of Tourism Arts and Culture.</p>`},{id:181,theme:"security",sub_service:"Lagos Neighborhood Safety Corps ",url:"http://lnsa.lg.gov.ng/",cta:" Learn More",short:`<p>Lagos State Neighborhood Safety Agency</p> 4266 <p>The Lagos State Neighborhood Safety Agency (LSNA) is a government agency established to ensure the safety and security of citizens in Lagos State, Nigeria. Their website provides information on their initiatives, programs, and services aimed at promoting community safety, preventing crime, and enhancing the overall well-being of residents in Lagos State.</p> 4267 <p>Key Features:</p> 4268 <p>Safety Tips: Get valuable tips on how to stay safe in various situations.</p> 4269 <p>Programs: Learn about the agency's initiatives, such as community policing, youth empowerment, and disaster response.</p> 4270 <p>News: Stay updated on the latest news and events related to safety and security in Lagos State.</p> 4271 <p>Contact: Reach out to the agency for assistance, feedback, or to report incidents.</p> 4272 <p>Mission:</p> 4273 <p>The LSNA is committed to creating a safe and secure environment for all residents in Lagos State, fostering a culture of safety and community engagement.</p> 4274 <p>Vision:</p> 4275 <p>To become a model for neighborhood safety in Nigeria, ensuring that Lagos State is a safe haven for citizens, businesses, and visitors alike.</p>`},{id:182,theme:"security",sub_service:"The Lagos State Security Trust Fund (LSSTF) ",url:"https://lagosstatesecuritytrustfund.com/",cta:" Learn More",short:`<p><strong>ABOUT LAGOS STATE SECURITY TRUST FUND (LSSTF)</strong></p> 4276 <p>The LSSTF is a Public-Private Partnership established by law of the Lagos State House of Assembly in 2007 with the mandate to source for resources (cash or kind) to improve the operational capacity of the security operatives in the State to effectively discharge their duties.</p>`}
4276,{id:185,theme:"identity",sub_service:"check LAG-ID Status ",url:"https://lasrra-card-tracker.netlify.app/",cta:" Get Started",short:`<p><strong>Elevate your Lagos experience with the LAG ID card solutions</strong></p> 4277 <p>The LAG ID card is a vital identity document that connects you to a wide range of services in Lagos and qualifies you for an array of benefits and opportunities. Check the status of processing and collection of your LAG ID card.</p>`},{id:186,theme:"identity",sub_service:"register LASRRA online",url:"https://registration.lagosresidents.gov.ng/register/",cta:" Start Registration",short:`<p>Submit your personal details for the Lagos State Resident Registration.</p> 4278<p> </p> 4279<p>Filling out the Online form is the first step in the process of registration.</p> 4280<p> </p> 4281<p>You will still need to complete your registration at an<a target="_blank" rel="noopener noreferrer" href="https://registration.lagosresidents.gov.ng/help/requirements"> enrolment station </a>where we will capture your biometric information.</p> 4282<p> </p> 4283<p>Before Starting: (Review)</p> 4284<p><a target="_blank" rel="noopener noreferrer" href="https://registration.lagosresidents.gov.ng/help/howto">How to fill the registration form</a></p> 4285<p><a target="_blank" rel="noopener noreferrer" href="https://registration.lagosresidents.gov.ng/help/requirements">List of documents you will need</a></p>`}];function p5({data:e,openModal:t,logo:n}){return i.jsxs("div",{className:"mda_card",id:"na_me_be_this",onClick:()=>t(e),children:[i.jsxs("div",{className:"details__zone flex",children:[i.jsxs("div",{className:"logo",children:[" ",i.jsx("img",{src:n,alt:"Lagos State Ministries, Departments & Agencies"})," "]}),i.jsxs("div",{className:"mda_name",children:[" ",Wn(e.name,60)," "]})]}),i.jsx("div",{className:"topx",children:i.jsxs("div",{className:"mda_desc",children:[" ",vn(Wn(e.short,80))," "]})})]})}function OXe(){const[e,t]=v.useState(""),[n,r]=v.useState([]),[a,s]=v.useState(0),[o,l]=v.useState({}),[d,u]=v.useState(!1);v.useEffect(()=>{const y={includeScore:!0,keys:["sub_service","theme","short"]},j=new Va(LXe,y).search(e).map(S=>S.item);r(j)},[e]);const h=y=>{l(y),u(!0),document.body.style.overflow="hidden"},p=y=>{l({}),u(!1),document.body.style.overflow="visible"},g=y=>{y.target.classList[0]==="view_service_modal"&&p()};return i.jsxs("div",{className:"servicesPage",children:[d?i.jsxs("div",{className:"viewMax",onClick:g,children:[" ",i.jsx(V4,{data:o,close:p})," "]}):null,i.jsx(Mt,{children:i.jsxs("div",{className:"servicesBody",children:[i.jsx("div",{className:"servicesTop",children:i.jsxs("div",{className:"pageHeader flex flex_col",children:[i.jsxs("div",{className:"pageTitle",children:[" ","Explore Lagos State Government : Browse all Services in One Place"," "]}),i.jsxs("div",{className:"pageTitleSubs",children:[" ","Empowering Citizens of Lagos State to Engage with their Government."," "]})]})}),e!==""?i.jsx("div",{className:"mdas_sections",children:i.jsxs("div",{className:"section all",children:[" ",n.length," Results Found "]})}):null,i.jsx("div",{className:"resultArea",children:n.length&&e!==""?n.map((y,b)=>i.jsx(p5,{data:y,openModal:h,icon:y.theme.trim()},b)):e!==""?i.jsx("h1",{children:"Oops! Sorry No results Found, Try Again!"}):null})]})}),e===""?i.jsx("div",{className:"servicesSide",children:i.jsx(yJ,{bgColor:"#fdfdfd",location:"services",data_limit:1e3})}):null]})}const MXe="/assets/404-DLPWdFY_.png";function DXe(){let e=Pe(),t=pt();const[n,r]=v.useState([]),[a,s]=v.useState(""),[o,l]=v.useState([]),[d,u]=v.useState([]),[h,p]=v.useState({}),[g,y]=v.useState(!1),[b,w]=v.useState(!1);v.useEffect(()=>{document.body.style.overflow="visible",w(!0),Qa(e.theme).then(_=>{w(!1),r(_.data)}),ng(e.theme).then(_=>u(_.data[0]))},[]),v.useEffect(()=>{document.body.style.overflow="visible";const _={includeScore:!0,keys:["short","name"]},E=new Va(n,_).search(a),T=a?E.map(P=>P.item):n;l(T)},[a]);const j=_=>{p(_),y(!0),document.body.style.overflow="hidden"},S=_=>{p({}),y(!1),document.body.style.overflow="visible"},k=_=>{_.target.classList[0]==="view_service_modal"&&S()},N=_=>{s(_.target.value)};return d?i.jsxs("div",{className:"viewService",children:[g?i.jsxs("div",{className:"viewMax",onClick:k,children:[" ",i.jsx(V4,{data:h,close:S,category:d.name})," "]}):null,i.jsx(Mt,{children:i.jsxs("div",{className:"viewArea",children:[i.jsxs("div",{className:"navigationPin",children:[i.jsxs("div",{className:"goBack",onClick:()=>t("/services"),children:[i.jsx(Xa,{})," "]}),i.jsxs("div",{className:"serviceTitle",children:[" ",d.name," "]})]}),i.jsx("div",{className:"searchField",children:i.jsx("input",{type:"text",className:"searchInput",value:a,onChange:_=>N(_),placeholder:"Start searching here..."})}),i.jsx("div",{className:"mdas_sections",children:b?null:i.jsxs("div",{className:"section all",children:[" ",a!==""?o.length:n.length," Results Found"," "]})}),b?i.jsx("div",{className:"fullPortion",children:i.jsx(yn,{})}):i.jsx("div",{className:"resultArea",children:o.length?o.map((_,L)=>i.jsx(p5,{data:_,openModal:j,logo:d.icon},_._id)):a!==""?i.jsx("h1",{children:"Oops! Sorry No results Found, Try Again!"}):n?.map((_,L)=>i.jsx(p5,{data:_,openModal:j,logo:d.icon},_._id))})]})})]}):i.jsxs("div",{className:"found",children:[" ",i.jsx("div",{className:"photo",children:i.jsx("img",{src:MXe,alt:""})})," ",i.jsx("h1",{children:"Oops! Page not found"})]})}const PXe=()=>i.jsx(One,{children:i.jsxs(zt,{path:"/",children:[i.jsx(zt,{index:!0,element:i.jsx(jXe,{})}),i.jsx(zt,{path:":mda/:page?/:id?",element:i.jsx(OKe,{})}),i.jsxs(zt,{path:"government",children:[i.jsx(zt,{path:"elected_officials",element:i.jsx(zCe,{})}),i.jsx(zt,{path:"elected_officials/governor/view",element:i.jsx(QCe,{})}),i.jsx(zt,{path:"elected_officials/deputy_governor/view",element:i.jsx(ZCe,{})}),i.jsx(zt,{path:"elected_officials/ssg/view",element:i.jsx(tke,{})}),i.jsx(zt,{path:"elected_officials/hos/view",element:i.jsx(JCe,{})}),i.jsx(zt,{path:"elected_officials/cos/view",element:i.jsx(XCe,{})}),i.jsx(zt,{path:"elected_officials/dcos/view",element:i.jsx(eke,{})}),i.jsx(zt,{path:"judiciary_officials",element:i.jsx(HCe,{})}),i.jsx(zt,{path:"legistlative_officials",element:i.jsx(UCe,{})}),i.jsx(zt,{path:"elected_officials/view/:name",element:i.jsx(nke,{})}),i.jsx(zt,{path:"mdas/:index",element:i.jsx(KCe,{})})]}),i.jsxs(zt,{path:"services",children:[i.jsx(zt,{path:"",element:i.jsx(OXe,{})}),i.jsx(zt,{path:":theme",element:i.jsx(DXe,{})})]}),i.jsx(zt,{path:"news/:topic/:page",element:i.jsx(kXe,{})}),i.jsx(zt,{path:"news/:topic/view/:id",element:i.jsx(NXe,{})}),i.jsx(zt,{path:"resources",element:i.jsx(_Xe,{})}),i.jsx(zt,{path:"search",element:i.jsx(TXe,{})}),i.jsx(zt,{path:"connect",element:i.jsx(UKe,{})}),i.jsx(zt,{path:"events/:topic/:page",element:i.jsx(WKe,{})}),i.jsx(zt,{path:"/privacy",element:i.jsx(AXe,{})}),i.jsx(zt,{path:"/cybersecguide",element:i.jsx(HKe,{})}),i.jsx(zt,{path:"*",element:i.jsx(mJ,{})})]})}),RXe=e=>{const t=e.replace(/^\/+|\/+$/g,"").split("/"),n=window.location.hostname;if(!["lagosstate.gov.ng","www.lagosstate.gov.ng","localhost"].includes(n)&&n.split(".").length>2)return{isPublicRoute:!1,isAdminRoute:!1,isDynamicPath:!0};const s=["","government/elected_officials","government/elected_officials/governor/view","government/elected_officials/deputy_governor/view","government/elected_officials/ssg/view","government/elected_officials/hos/view","government/elected_officials/cos/view","government/elected_officials/dcos/view","government/judiciary_officials","government/legistlative_officials","services","resources","search","connect","privacy","
4285news","events","government","cybersecguide"],o=t[1]==="admin"||t.includes("admin"),l=s.some(u=>{if(u===""&&t.length===0||u===t[0])return!0;const h=u.split("/");return h.length!==t.length?!1:h.every((p,g)=>p===t[g])}),d=!l&&!o&&t.length>=1&&t.length<=3;return{isPublicRoute:l,isAdminRoute:o,isDynamicPath:d,publicRoutes:s}},IXe=()=>{const{pathname:e}=window.location;return RXe(e)},$Xe="G-NB0QB4RDM7";function BXe(){const[e,t]=v.useState(!1),[n,r]=v.useState(!1),a=ou(p=>p.setSuggestions),{pathname:s}=As(),l=As().pathname.replace("/",""),{isPublicRoute:d,isAdminRoute:u}=IXe();yG(d?"main":null,l||"home"),v.useEffect(()=>{if(u){r(!0);return}let p=!1;return fU((l||"general").toLowerCase()).then(g=>{p||(a(g),r(!0))}),()=>{p=!0}},[]),v.useEffect(()=>{const p=VC.get("lasgConsent");p===void 0?(t(!1),s==="/privacy"&&t(!0)):JSON.parse(p).status==="accept"?(t(!0),H0.initialize($Xe)):t(!0)},[e,s]);const h=p=>{t(p)};return n?i.jsxs("div",{className:"App",children:[d?i.jsx(pCe,{}):null,i.jsx(PXe,{}),d?i.jsx(d1e,{}):null,i.jsx(uie,{position:"top-right",containerStyle:{top:"100px",right:"0px"},toastOptions:{style:{fontSize:"14px",padding:"12px 16px",borderRadius:"4px",zIndex:1e6,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"}}}),!u&&i.jsx(u1e,{pageContext:l||"general"}),!e&&i.jsx(mCe,{cookieStatus:h})]}):i.jsx("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff",zIndex:999999},children:i.jsx(yn,{})})}const qXe=new P1e,FXe=qte.createRoot(document.getElementById("root"));FXe.render(i.jsx(ft.StrictMode,{children:i.jsx(R1e,{client:qXe,children:i.jsx(Rne,{children:i.jsx(BXe,{})})})}));export{SRe as E,zXe as c,Aa as g};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.