var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ne(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return ne(e.type,t,e.props)}function w(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function T(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?T(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(w(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ae(a,u),c+=se(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ce(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function le(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var E=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},D={map:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=D,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!te.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ne(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)te.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ne(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=w,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:le}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(S,E)}catch(e){E(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),C.T=t}},e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},e.use=function(e){return C.H.use(e)},e.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},e.useCallback=function(e,t){return C.H.useCallback(e,t)},e.useContext=function(e){return C.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return C.H.useEffect(e,t)},e.useEffectEvent=function(e){return C.H.useEffectEvent(e)},e.useId=function(){return C.H.useId()},e.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return C.H.useMemo(e,t)},e.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},e.useRef=function(e){return C.H.useRef(e)},e.useState=function(e){return C.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return C.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,w());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<C)}function re(){if(g=!1,ee){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(S),S=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():ee=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var T=new MessageChannel,ie=T.port2;T.port1.onmessage=re,w=function(){ie.postMessage(null)}}else w=function(){_(re,0)};function ae(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,w()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),w=Symbol.for(`react.lazy`),T=Symbol.for(`react.activity`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case T:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case S:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case w:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(e){return{current:e}}function me(e){0>fe||(e.current=de[fe],de[fe]=null,fe--)}function O(e,t){fe++,de[fe]=e.current,e.current=t}var he=pe(null),ge=pe(null),_e=pe(null),ve=pe(null);function ye(e,t){switch(O(_e,t),O(ge,e),O(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(he),O(he,e)}function be(){me(he),me(ge),me(_e)}function xe(e){e.memoizedState!==null&&O(ve,e);var t=he.current,n=Hd(t,e.type);t!==n&&(O(ge,e),O(he,n))}function Se(e){ge.current===e&&(me(he),me(ge)),ve.current===e&&(me(ve),Qf._currentValue=ue)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=D.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function mt(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var ht=Math.random().toString(36).slice(2),k=`__reactFiber$`+ht,gt=`__reactProps$`+ht,_t=`__reactContainer$`+ht,vt=`__reactEvents$`+ht,yt=`__reactListeners$`+ht,bt=`__reactHandles$`+ht,xt=`__reactResources$`+ht,St=`__reactMarker$`+ht;function Ct(e){delete e[k],delete e[gt],delete e[vt],delete e[yt],delete e[bt]}function wt(e){var t=e[k];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[k]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[k])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function Tt(e){if(e=e[k]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Dt(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[St]=!0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=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]*$`),Pt={},Ft={};function It(e){return Ae.call(Ft,e)?!0:Ae.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}function Lt(e,t,n){if(It(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Rt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function zt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ht(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ut(e){if(!e._valueTracker){var t=Vt(e)?`checked`:`value`;e._valueTracker=Ht(e,t,``+e[t])}}function Wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Vt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Gt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Kt=/[\n"\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Bt(t)):e.value!==``+Bt(t)&&(e.value=``+Bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,o,Bt(n)):Xt(e,o,Bt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Bt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ut(e);return}n=n==null?``:``+Bt(n),t=t==null?n:``+Bt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ut(e)}function Xt(e,t,n){t===`number`&&Gt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){if(t!=null&&(t=``+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Bt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(le(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ut(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=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 nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&nn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var on=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),sn=/^[\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 cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+qt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Wt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(bu(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var vn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,"passive",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=h({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=h({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(h({},In,{dataTransfer:0})),zn=On(h({},jn,{relatedTarget:0})),Bn=On(h({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(h({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(h({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={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`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(h({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(h({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(h({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(h({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(h({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),$n=On(h({},kn,{newState:0,oldState:0})),er=[9,13,27,32],tr=vn&&`CompositionEvent`in window,nr=null;vn&&`documentMode`in document&&(nr=document.documentMode);var rr=vn&&`TextEvent`in window&&!nr,ir=vn&&(!tr||nr&&8<nr&&11>=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var A=!1;function lr(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function ur(e,t){if(A)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,A=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ir&&t.locale!==`ko`?null:t.data;default:return null}}var dr={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 fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=Ed(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){yd(e,0)}function _r(e){if(Wt(Et(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(vn){var br;if(vn){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,dn(e)),gn(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ae.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Lr=vn&&`documentMode`in document&&11>=document.documentMode,Rr=null,zr=null,Br=null,Vr=!1;function Hr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Rr==null||Rr!==Gt(r)||(r=Rr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Br&&jr(Br,r)||(Br=r,r=Ed(zr,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Rr)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Wr={animationend:Ur(`Animation`,`AnimationEnd`),animationiteration:Ur(`Animation`,`AnimationIteration`),animationstart:Ur(`Animation`,`AnimationStart`),transitionrun:Ur(`Transition`,`TransitionRun`),transitionstart:Ur(`Transition`,`TransitionStart`),transitioncancel:Ur(`Transition`,`TransitionCancel`),transitionend:Ur(`Transition`,`TransitionEnd`)},Gr={},Kr={};vn&&(Kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),`TransitionEvent`in window||delete Wr.transitionend.transition);function j(e){if(Gr[e])return Gr[e];if(!Wr[e])return e;var t=Wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kr)return Gr[e]=t[n];return e}var qr=j(`animationend`),Jr=j(`animationiteration`),Yr=j(`animationstart`),Xr=j(`transitionrun`),Zr=j(`transitionstart`),Qr=j(`transitioncancel`),$r=j(`transitionend`),ei=new Map,ti=`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(` `);ti.push(`scrollEnd`);function ni(e,t){ei.set(e,t),jt(t,[e])}var ri=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ii=[],ai=0,oi=0;function si(){for(var e=ai,t=oi=ai=0;t<e;){var n=ii[t];ii[t++]=null;var r=ii[t];ii[t++]=null;var i=ii[t];ii[t++]=null;var a=ii[t];if(ii[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ui(n,i,a)}}function ci(e,t,n,r){ii[ai++]=e,ii[ai++]=t,ii[ai++]=n,ii[ai++]=r,oi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function M(e,t,n,r){return ci(e,t,n,r),di(e)}function li(e,t){return ci(e,null,null,t),di(e)}function ui(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function di(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fi={};function pi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mi(e,t,n,r){return new pi(e,t,n,r)}function hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gi(e,t){var n=e.alternate;return n===null?(n=mi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _i(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)hi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,he.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case T:return e=mi(31,n,t,a),e.elementType=T,e.lanes=o,e;case y:return yi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=mi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case te:return e=mi(13,n,t,a),e.elementType=te,e.lanes=o,e;case ne:return e=mi(19,n,t,a),e.elementType=ne,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case ee:s=9;break a;case C:s=11;break a;case re:s=14;break a;case w:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function yi(e,t,n,r){return e=mi(7,e,r,t),e.lanes=n,e}function bi(e,t,n){return e=mi(6,e,null,t),e.lanes=n,e}function xi(e){var t=mi(18,null,null,0);return t.stateNode=e,t}function Si(e,t,n){return t=mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ci=new WeakMap;function wi(e,t){if(typeof e==`object`&&e){var n=Ci.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Ci.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Ti=[],Ei=0,Di=null,Oi=0,ki=[],N=0,Ai=null,ji=1,Mi=``;function Ni(e,t){Ti[Ei++]=Oi,Ti[Ei++]=Di,Di=e,Oi=t}function Pi(e,t,n){ki[N++]=ji,ki[N++]=Mi,ki[N++]=Ai,Ai=e;var r=ji;e=Mi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ji=1<<32-qe(t)+i|n<<i|r,Mi=a+e}else ji=1<<a|n<<i|r,Mi=e}function Fi(e){e.return!==null&&(Ni(e,1),Pi(e,1,0))}function Ii(e){for(;e===Di;)Di=Ti[--Ei],Ti[Ei]=null,Oi=Ti[--Ei],Ti[Ei]=null;for(;e===Ai;)Ai=ki[--N],ki[N]=null,Mi=ki[--N],ki[N]=null,ji=ki[--N],ki[N]=null}function Li(e,t){ki[N++]=ji,ki[N++]=Mi,ki[N++]=Ai,ji=t.id,Mi=t.overflow,Ai=e}var Ri=null,P=null,F=!1,zi=null,I=!1,Bi=Error(i(519));function Vi(e){throw qi(wi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Bi}function Hi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[k]=e,t[gt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Vi(e,!0)}function Ui(e){for(Ri=e.return;Ri;)switch(Ri.tag){case 5:case 31:case 13:I=!1;return;case 27:case 3:I=!0;return;default:Ri=Ri.return}}function Wi(e){if(e!==Ri)return!1;if(!F)return Ui(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&P&&Vi(e),Ui(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));P=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));P=uf(e)}else t===27?(t=P,Zd(e.type)?(e=lf,lf=null,P=e):P=t):P=Ri?cf(e.stateNode.nextSibling):null;return!0}function Gi(){P=Ri=null,F=!1}function Ki(){var e=zi;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),zi=null),e}function qi(e){zi===null?zi=[e]:zi.push(e)}var Ji=pe(null),Yi=null,Xi=null;function Zi(e,t,n){O(Ji,t._currentValue),t._currentValue=n}function Qi(e){e._currentValue=Ji.current,me(Ji)}function $i(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ea(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),$i(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),$i(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ta(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Ar(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ve.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&ea(t,e,n,r),t.flags|=262144}function na(e){for(e=e.firstContext;e!==null;){if(!Ar(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ra(e){Yi=e,Xi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ia(e){return oa(Yi,e)}function aa(e,t){return Yi===null&&ra(e),oa(e,t)}function oa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Xi===null){if(e===null)throw Error(i(308));Xi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xi=Xi.next=t;return n}var sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ca=t.unstable_scheduleCallback,la=t.unstable_NormalPriority,L={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ua(){return{controller:new sa,data:new Map,refCount:0}}function da(e){e.refCount--,e.refCount===0&&ca(la,function(){e.controller.abort()})}var fa=null,pa=0,ma=0,ha=null;function ga(e,t){if(fa===null){var n=fa=[];pa=0,ma=dd(),ha={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return pa++,t.then(_a,_a),t}function _a(){if(--pa===0&&fa!==null){ha!==null&&(ha.status=`fulfilled`);var e=fa;fa=null,ma=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ya=E.S;E.S=function(e,t){eu=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&ga(e,t),ya!==null&&ya(e,t)};var ba=pe(null);function xa(){var e=ba.current;return e===null?K.pooledCache:e}function Sa(e,t){t===null?O(ba,ba.current):O(ba,t.pool)}function Ca(){var e=xa();return e===null?null:{parent:L._currentValue,pool:e}}var wa=Error(i(460)),Ta=Error(i(474)),Ea=Error(i(542)),Da={then:function(){}};function Oa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ka(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Na(e),e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Na(e),e}throw ja=t,wa}}function Aa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ja=e,wa):e}}var ja=null;function Ma(){if(ja===null)throw Error(i(459));var e=ja;return ja=null,e}function Na(e){if(e===wa||e===Ea)throw Error(i(483))}var Pa=null,Fa=0;function Ia(e){var t=Fa;return Fa+=1,Pa===null&&(Pa=[]),ka(Pa,e,t)}function La(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ra(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function za(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=gi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===w&&Aa(i)===t.type)?(t=a(t,n.props),La(t,n),t.return=e,t):(t=vi(n.type,n.key,n.props,null,e.mode,r),La(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Si(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=yi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=bi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=vi(t.type,t.key,t.props,null,e.mode,n),La(n,t),n.return=e,n;case v:return t=Si(t,e.mode,n),t.return=e,t;case w:return t=Aa(t),f(e,t,n)}if(le(t)||oe(t))return t=yi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ia(t),n);if(t.$$typeof===S)return f(e,aa(e,t),n);Ra(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case w:return n=Aa(n),p(e,t,n,r)}if(le(n)||oe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ia(n),r);if(n.$$typeof===S)return p(e,t,aa(e,n),r);Ra(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case w:return r=Aa(r),m(e,t,n,r,i)}if(le(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ia(r),i);if(r.$$typeof===S)return m(e,t,n,aa(t,r),i);Ra(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&Ni(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return F&&Ni(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&Ni(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),F&&Ni(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return F&&Ni(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),F&&Ni(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Aa(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=yi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=vi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Si(o,e.mode,c),c.return=e,e=c}return s(e);case w:return o=Aa(o),b(e,r,o,c)}if(le(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ia(o),c);if(o.$$typeof===S)return b(e,r,aa(e,o),c);Ra(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=bi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return Pa=null,i}catch(t){if(t===wa||t===Ea)throw t;var a=mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=di(e),ui(e,null,n),t}return ci(e,r,t,n),di(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function Ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ya=!1;function Xa(){if(Ya){var e=ha;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===ma&&(Ya=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ha=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Qa(n[e],t)}var eo=pe(null),to=pe(0);function no(e,t){e=Wl,O(to,e),O(eo,t),Wl=e|t.baseLanes}function ro(){O(to,Wl),O(eo,eo.current)}function io(){Wl=to.current,me(eo),me(to)}var ao=pe(null),oo=null;function so(e){var t=e.alternate;O(R,R.current&1),O(ao,e),oo===null&&(t===null||eo.current!==null||t.memoizedState!==null)&&(oo=e)}function co(e){O(R,R.current),O(ao,e),oo===null&&(oo=e)}function lo(e){e.tag===22?(O(R,R.current),O(ao,e),oo===null&&(oo=e)):uo(e)}function uo(){O(R,R.current),O(ao,ao.current)}function fo(e){me(ao),oo===e&&(oo=null),me(R)}var R=pe(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mo=0,z=null,B=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function V(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return mo=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Bs:Vs,vo=!1,a=n(r,i),vo=!1,_o&&(a=Eo(t,n,r,i)),To(e),a}function To(e){E.H=zs;var t=B!==null&&B.next!==null;if(mo=0,ho=B=z=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&na(e)&&(ic=!0))}function Eo(e,t,n,r){z=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=B=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}E.H=Hs,o=t(n,r)}while(_o);return o}function Do(){var e=E.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(B===null?null:B.memoizedState)!==e&&(z.flags|=1024),t}function Oo(){var e=yo!==0;return yo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}mo=0,ho=B=z=null,_o=!1,bo=yo=0,xo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?z.memoizedState=ho=e:ho=ho.next=e,ho}function H(){if(B===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=B.next;var t=ho===null?z.memoizedState:ho.next;if(t!==null)ho=t,B=e;else{if(e===null)throw z.alternate===null?Error(i(467)):Error(i(310));B=e,e={memoizedState:B.memoizedState,baseState:B.baseState,baseQueue:B.baseQueue,queue:B.queue,next:null},ho===null?z.memoizedState=ho=e:ho=ho.next=e}return ho}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=ka(xo,e,t),t=z,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===S)return ia(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),z.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ie;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(H(),B,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(mo&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ma&&(d=!0);else if((mo&p)===p){u=u.next,p===ma&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,z.lanes|=p,Gl|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,z.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Ar(o,e.memoizedState)&&(ic=!0,d&&(n=ha,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=H(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=z,a=H(),o=F;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Ar((B||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),K===null)throw Error(i(349));o||mo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=Mo(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function Go(e){var t=li(e,2);t!==null&&hu(t,e,2)}function Ko(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),vo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,B,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};E.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=E.T,o={};E.T=o;try{var s=n(i,r),c=E.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),E.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(F){var n=K.formState;if(n!==null){a:{var r=z;if(F){if(P){b:{for(var i=P,a=I;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){P=cf(i.nextSibling),r=i.data===`F!`;break a}}Vi(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,z,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,z,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(H(),B,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===wa?Ea:e}else r=t;t=H();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=H(),n=B;if(n!==null)return rs(t,n,e);H(),t=t.memoizedState,n=H();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=z.updateQueue,t===null&&(t=Mo(),z.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return H().memoizedState}function cs(e,t,n,r){var i=jo();z.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=H();r=r===void 0?null:r;var a=i.memoizedState.inst;B!==null&&r!==null&&Co(r,B.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(z.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){z.flags|=4;var t=z.updateQueue;if(t===null)t=Mo(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=H().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=H();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=H();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),vo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||mo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),z.lanes|=e,Gl|=e,n)}function Ss(e,t,n,r){return Ar(n,t)?n:eo.current===null?!(mo&42)||mo&1073741824&&!(J&261930)?(ic=!0,e.memoizedState=n):(e=mu(),z.lanes|=e,Gl|=e,t):(e=xs(e,n,r),Ar(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=D.p;D.p=a!==0&&8>a?a:8;var o=E.T,s={};E.T=s,Fs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,va(c,r),pu(e)):Ps(e,t,r,pu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,ue,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},pu())}function Os(){return ia(Qf)}function ks(){return H().memoizedState}function As(){return H().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(hu(r,t,n),qa(r,t,n)),t={cache:ua()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=M(e,t,n,r),n!==null&&(hu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,pu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o))return ci(e,t,i,0),K===null&&si(),!1}catch{}if(n=M(e,t,i,r),n!==null)return hu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=M(e,n,r,2),t!==null&&hu(t,e,2)}function Is(e){var t=e.alternate;return e===z||t!==null&&t===z}function Ls(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var zs={readContext:ia,use:Po,useCallback:V,useContext:V,useEffect:V,useImperativeHandle:V,useLayoutEffect:V,useInsertionEffect:V,useMemo:V,useReducer:V,useRef:V,useState:V,useDebugValue:V,useDeferredValue:V,useTransition:V,useSyncExternalStore:V,useId:V,useHostTransitionStatus:V,useFormState:V,useActionState:V,useOptimistic:V,useMemoCache:V,useCacheRefresh:V};zs.useEffectEvent=V;var Bs={readContext:ia,use:Po,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ia,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(vo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(vo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(jo(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,z,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=jo();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=K.identifierPrefix;if(F){var n=Mi,r=ji;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return jo().memoizedState=js.bind(null,z)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ia,use:Po,useCallback:ys,useContext:ia,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(H(),B.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=H().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(H(),B,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ia,use:Po,useCallback:ys,useContext:ia,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=H();return B===null?xs(n,e,t):Ss(n,B.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=H().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=H();return B===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,B,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ga(r);i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(hu(t,e,r),qa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ga(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ka(e,i,r),t!==null&&(hu(t,e,r),qa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ga(n);r.tag=2,t!=null&&(r.callback=t),t=Ka(e,r,n),t!==null&&(hu(t,e,n),qa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){ri(e)}function Ys(e){console.error(e)}function Xs(e){ri(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ga(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ga(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ta(t,n,a,!0),n=ao.current,n!==null){switch(n.tag){case 31:case 13:return oo===null?Du():n.alternate===null&&X===0&&(X=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Da?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Da?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Du(),!1}if(F)return t=ao.current,t===null?(r!==Bi&&(t=Error(i(423),{cause:r}),qi(wi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=wi(r,n),a=$s(e.stateNode,r,a),Ja(e,a),X!==4&&(X=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Bi&&(e=Error(i(422),{cause:r}),qi(wi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=wi(o,n),Xl===null?Xl=[o]:Xl.push(o),X!==4&&(X=2),t===null)return!0;r=wi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ja(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ja(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Va(t,null,n,r):Ba(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ra(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(F&&s&&Fi(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!hi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=vi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?jr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=gi(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sa(t,a===null?null:a.cachePool),a===null?ro():no(t,a),lo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Sa(t,null),ro(),uo(t)):(Sa(t,a.cachePool),no(t,a),uo(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=xa();return a=a===null?null:{parent:L._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Sa(t,null),ro(),lo(t),e!==null&&ta(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Ba(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,fo(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(co(t),(e=P)?(e=rf(e,I),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ai===null?null:{id:ji,overflow:Mi},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,Ri=t,P=null)):e=null,e===null)throw Vi(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(co(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||ta(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=K,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,li(e,s),hu(r,e,s),rc;Du(),t=pc(e,t,n)}else e=o.treeContext,P=cf(s.nextSibling),Ri=t,F=!0,zi=null,I=!1,e!==null&&Li(t,e),t=fc(t,r),t.flags|=4096;return t}return e=gi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ra(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(F&&r&&Fi(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ra(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ic?(ko(e,t,a),Ac(e,t,a)):(F&&r&&Fi(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ra(t),t.stateNode===null){var a=fi,o=n.contextType;typeof o==`object`&&o&&(a=ia(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ua(t),o=n.contextType,a.context=typeof o==`object`&&o?ia(o):fi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Za(t,r,a,i),Xa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=fi,typeof u==`object`&&u&&(o=ia(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),Ha=!1;var f=t.memoizedState;a.state=f,Za(t,r,a,i),Xa(),l=t.memoizedState,s||f!==l||Ha?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Ha||Gs(t,n,c,r,f,l,o))?(u||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`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Wa(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=fi,typeof l==`object`&&l&&(c=ia(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),Ha=!1,f=t.memoizedState,a.state=f,Za(t,r,a,i),Xa();var p=t.memoizedState;o!==d||f!==p||Ha||e!==null&&e.dependencies!==null&&na(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Ha||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&na(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ba(t,e.child,null,i),t.child=Ba(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Gi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:Ca()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(R.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(F){if(a?so(t):uo(t),(e=P)?(e=rf(e,I),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ai===null?null:{id:ji,overflow:Mi},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,Ri=t,P=null)):e=null,e===null)throw Vi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(uo(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=yi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(so(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(so(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(uo(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=yi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ba(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(uo(t),t.child=e.child,t.flags|=128,t=null);else if(so(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,qi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||ta(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=K,s!==null&&(r=ut(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,li(e,r),hu(s,e,r),rc;af(c)||Du(),t=Ec(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,P=cf(c.nextSibling),Ri=t,F=!0,zi=null,I=!1,e!==null&&Li(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(uo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=gi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=yi(c,a,n,null),c.flags|=2):c=gi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=Ca():(l=L._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(so(t),n=e.child,e=n.sibling,n=gi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=mi(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ba(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$i(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=R.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,O(R,o),ac(e,t,r,n),r=F?Oi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=gi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&na(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),Zi(t,L,e.memoizedState.cache),Gi();break;case 27:case 5:xe(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:Zi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,co(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(so(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(so(t),t.flags|=128,null);so(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ta(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),O(R,R.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Zi(t,L,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,F&&t.flags&1048576&&Pi(t,Oi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Aa(t.elementType),t.type=e,typeof e==`function`)hi(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===C){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===re){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=ce(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Wa(e,t),Za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Zi(t,L,r),r!==o.cache&&ea(t,[L],n,!0),Xa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=wi(Error(i(424)),t),qi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(P=cf(e.firstChild),Ri=t,F=!0,zi=null,I=!0,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(n=t.type,e=t.pendingProps,r=Bd(_e.current).createElement(n),r[k]=t,r[gt]=e,Pd(r,n,e),Ot(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&F&&(r=t.stateNode=ff(t.type,t.pendingProps,_e.current),Ri=t,I=!0,a=P,Zd(t.type)?(lf=a,P=cf(r.firstChild)):P=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((a=r=P)&&(r=tf(r,t.type,t.pendingProps,I),r===null?a=!1:(t.stateNode=r,Ri=t,P=cf(r.firstChild),I=!1,a=!0)),a||Vi(t)),xe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),Qf._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=P)&&(n=nf(n,t.pendingProps,I),n===null?e=!1:(t.stateNode=n,Ri=t,P=null,e=!0)),e||Vi(t)),null;case 13:return Cc(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Zi(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ra(t),a=ia(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ra(t),r=ia(L),e===null?(a=xa(),a===null&&(a=K,o=ua(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ua(t),Zi(t,L,a)):((e.lanes&n)!==0&&(Wa(e,t),Za(t,null,null,n),Xa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Zi(t,L,r),r!==a.cache&&ea(t,[L],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Zi(t,L,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw ja=Da,Ta}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(wu())e.flags|=8192;else throw ja=Da,Ta}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,Yl|=t)}function Rc(e,t){if(!F)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function U(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Ii(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return U(t),null;case 1:return U(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Qi(L),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ki())),U(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(U(t),Fc(t,a,null,r,n)):(U(t),Ic(t,o))):o?o===e.memoizedState?(U(t),t.flags&=-16777217):(Pc(t),U(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),U(t),Fc(t,a,e,r,n)),null;case 27:if(Se(t),n=_e.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return U(t),null}e=he.current,Wi(t)?Hi(t,e):(e=ff(a,r,n),t.stateNode=e,Pc(t))}return U(t),null;case 5:if(Se(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return U(t),null}if(o=he.current,Wi(t))Hi(t,o);else{var s=Bd(_e.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[k]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return U(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=_e.current,Wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ri,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[k]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Vi(t,!0)}else e=Bd(e).createTextNode(r),e[k]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[k]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[k]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),a=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),U(t),null);case 4:return be(),e===null&&Sd(t.stateNode.containerInfo),U(t),null;case 10:return Qi(t.type),U(t),null;case 19:if(me(R),r=t.memoizedState,r===null)return U(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_i(n,e),n=n.sibling;return O(R,R.current&1|2),F&&Ni(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>tu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!F)return U(t),null}else 2*Fe()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(U(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=R.current,O(R,a?n&1|2:n&1),F&&Ni(t,r.treeForkCount),e);case 22:case 23:return fo(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&me(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(L),U(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Ii(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(L),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(R),null;case 4:return be(),null;case 10:return Qi(t.type),null;case 22:case 23:return fo(t),io(),e!==null&&me(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qi(L),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ii(t),t.tag){case 3:Qi(L),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:me(R);break;case 10:Qi(t.type);break;case 22:case 23:fo(t),io(),e!==null&&me(ba);break;case 24:Qi(L)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){Z(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[gt]=t}catch(t){Z(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[k]=e,t[gt]=n}catch(t){Z(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Fr(e),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),r&4&&Hc(5,n);break;case 1:if(xl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(xl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{$a(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:xl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:xl(e,n);break;case 31:xl(e,n),r&4&&fl(e,n);break;case 13:xl(e,n),r&4&&pl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?Cl(e,n,(n.subtreeFlags&8772)!=0):xl(e,n),tl=i,nl=a}break;case 30:break;default:xl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var W=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=W,i=ll;Zd(n.type)&&(W=n.stateNode,ll=!1),ul(e,t,n),pf(n.stateNode),W=r,ll=i;break;case 5:nl||qc(n,t);case 6:if(r=W,i=ll,W=null,ul(e,t,n),W=r,ll=i,W!==null)if(ll)try{(W.nodeType===9?W.body:W.nodeName===`HTML`?W.ownerDocument.body:W).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{W.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:W!==null&&(ll?(e=W,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(W,n.stateNode));break;case 4:r=W,i=ll,W=n.stateNode.containerInfo,ll=!0,ul(e,t,n),W=r,ll=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),ul(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,ul(e,t,n),nl=r;break;default:ul(e,t,n)}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function ml(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function hl(e,t){var n=ml(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){W=c.stateNode,ll=!1;break a}break;case 5:W=c.stateNode,ll=!1;break a;case 3:case 4:W=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(W===null)throw Error(i(160));dl(o,s,a),W=null,ll=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vl(t,e),t=t.sibling}var _l=null;function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gl(t,e),yl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=_l;if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[St]||o[k]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[k]=e,Ot(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[k]=e,Ot(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{en(a,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(gl(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,a=_l,_l=gf(t.containerInfo),gl(t,e),_l=a,yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}rl&&(rl=!1,bl(e));break;case 4:r=_l,_l=gf(e.stateNode.containerInfo),gl(t,e),yl(e),_l=r;break;case 12:gl(t,e),yl(e);break;case 31:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 13:gl(t,e),yl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=Fe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,gl(t,e),nl=d,tl=u,yl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,hl(e,n))));break;case 19:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 30:break;case 21:break;default:gl(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(en(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Sl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Sl(t);break;case 27:pf(t.stateNode);case 26:case 5:qc(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Cl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Cl(i,a,n),Hc(4,a);break;case 1:if(Cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Qa(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:Cl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:Cl(i,a,n);break;case 31:Cl(i,a,n),n&&o&4&&fl(i,a);break;case 13:Cl(i,a,n),n&&o&4&&pl(i,a);break;case 22:a.memoizedState===null&&Cl(i,a,n),Kc(a,a.return);break;case 30:break;default:Cl(i,a,n)}t=t.sibling}}function wl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&da(n))}function Tl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e))}function El(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:El(e,t,n,r),i&2048&&Hc(9,t);break;case 1:El(e,t,n,r);break;case 3:El(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e)));break;case 12:if(i&2048){El(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else El(e,t,n,r);break;case 31:El(e,t,n,r);break;case 13:El(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?El(e,t,n,r):(a._visibility|=2,Ol(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?El(e,t,n,r):kl(e,t),i&2048&&wl(o,t);break;case 24:El(e,t,n,r),i&2048&&Tl(t.alternate,t);break;default:El(e,t,n,r)}}function Ol(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ol(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ol(a,o,s,c,i)):u._visibility&2?Ol(a,o,s,c,i):kl(a,o),i&&l&2048&&wl(o.alternate,o);break;case 24:Ol(a,o,s,c,i),i&&l&2048&&Tl(o.alternate,o);break;default:Ol(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&wl(r.alternate,r);break;case 24:kl(n,r),i&2048&&Tl(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Gf(n,_l,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=_l;_l=gf(e.stateNode.containerInfo),jl(e,t,n),_l=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Rl={getCacheForType:function(e){var t=ia(L),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ia(L).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,X=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return G&2&&J!==0?J&-J:E.T===null?pt():dd()}function mu(){if(Jl===0)if(!(J&536870912)||F){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),Jl=e}else Jl=536870912;return e=ao.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,J,Jl,!1)),ot(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(Kl|=n),X===4&&yu(e,J,Jl,!1)),rd(e))}function gu(e,t,n){if(G&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||nt(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Hl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,a=4;break a}o=Zl,Zl=a,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Vl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=$l+300-Fe(),10<a)){if(yu(r,t,Jl,!Vl),tt(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Kd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Vl,o,`Throttled`,-0,0),a);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Vl,o,null,-0,0)}}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Ml(t,a,d);var m=(a&62914560)===a?$l-Fe():(a&4194048)===a?eu-Fe():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function bu(){return G&6?!0:(id(0,!1),!1)}function xu(){if(q!==null){if(Y===0)var e=q.return;else e=q,Xi=Yi=null,Ao(e),Pa=null,Fa=0,e=q;for(;e!==null;)Vc(e.alternate,e),e=e.return;q=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),K=e,q=n=gi(e.current,null),J=t,Y=0,Bl=null,Vl=!1,Hl=nt(e,t),Ul=!1,Yl=Jl=ql=Kl=Gl=X=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,si(),n}function Cu(e,t){z=null,E.H=zs,t===wa||t===Ea?(t=Ma(),Y=3):t===Ta?(t=Ma(),Y=4):Y=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,q===null&&(X=1,Zs(e,wi(t,e.current)))}function wu(){var e=ao.current;return e===null?!0:(J&4194048)===J?oo===null:(J&62914560)===J||J&536870912?e===oo:!1}function Tu(){var e=E.H;return E.H=zs,e===null?zs:e}function Eu(){var e=E.A;return E.A=Rl,e}function Du(){X=4,Vl||(J&4194048)!==J&&ao.current!==null||(Hl=!0),!(Gl&134217727)&&!(Kl&134217727)||K===null||yu(K,J,Jl,!1)}function Ou(e,t,n){var r=G;G|=2;var i=Tu(),a=Eu();(K!==e||J!==t)&&(nu=null,Su(e,t)),t=!1;var o=X;a:do try{if(Y!==0&&q!==null){var s=q,c=Bl;switch(Y){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:ao.current===null&&(t=!0);var l=Y;if(Y=0,Bl=null,Pu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=Y,Y=0,Bl=null,Pu(e,s,c,l)}}ku(),o=X;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Xi=Yi=null,G=r,E.H=i,E.A=a,q===null&&(K=null,J=0,si()),o}function ku(){for(;q!==null;)Mu(q)}function Au(e,t){var n=G;G|=2;var r=Tu(),a=Eu();K!==e||J!==t?(nu=null,tu=Fe()+500,Su(e,t)):Hl=nt(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=Bl;b:switch(Y){case 1:Y=0,Bl=null,Pu(e,t,o,1);break;case 2:case 9:if(Oa(o)){Y=0,Bl=null,Nu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),rd(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Oa(o)?(Y=0,Bl=null,Nu(t)):(Y=0,Bl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Wf(s):c.stateNode.complete){Y=0,Bl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Fu(u))}break b}}Y=0,Bl=null,Pu(e,t,o,5);break;case 6:Y=0,Bl=null,Pu(e,t,o,6);break;case 8:xu(),X=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Xi=Yi=null,E.H=r,E.A=a,G=n,q===null?(K=null,J=0,si(),X):0}function ju(){for(;q!==null&&!Ne();)Mu(q)}function Mu(e){var t=Nc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Fu(e):q=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:Ao(t);default:Vc(n,t),t=q=_i(t,Wl),t=Nc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Fu(e):q=t}function Pu(e,t,n,r){Xi=Yi=null,Ao(t),Pa=null,Fa=0;var i=t.return;try{if(nc(e,i,t,n,J)){X=1,Zs(e,wi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;X=1,Zs(e,wi(n,e.current)),q=null;return}t.flags&32768?(F||r===1?e=!0:Hl||J&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ao.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Vl);return}e=t.return;var n=zc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);X===0&&(X=5)}function Iu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);X=6,q=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=oi,st(e,n,o,s,c,l),e===K&&(q=K=null,J=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(ze,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=E.T,E.T=null,a=D.p,D.p=2,s=G,G|=4;try{ol(e,t,n)}finally{G=s,D.p=a,E.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=G;G|=4;try{vl(t,e);var a=zd,o=Fr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Pr(s.ownerDocument.documentElement,s)){if(c!==null&&Ir(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Nr(s,h),v=Nr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{G=i,D.p=r,E.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=G;G|=4;try{sl(e,t.alternate,t)}finally{G=i,D.p=r,E.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Pe();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),ft(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=E.T,i=D.p,D.p=2,E.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{E.T=t,D.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,da(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=ft(su),r=E.T,a=D.p;try{D.p=32>n?32:n,E.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,G&6)throw Error(i(331));var c=G;if(G|=4,Fl(o.current),Dl(o,o.current,s,n),G=c,id(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{D.p=a,E.T=r,Vu(e,t)}}function Wu(e,t,n){t=wi(n,t),t=$s(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(ot(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=wi(n,e),n=ec(2),r=Ka(t,n,2),r!==null&&(tc(n,r,t,e),ot(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(X===4||X===3&&(J&62914560)===J&&300>Fe()-$l?!(G&2)&&Su(e,0):ql|=n,Yl===J&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=it()),e=li(e,t),e!==null&&(ot(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return je(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=J,a=tt(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Fe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),ft(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=cd.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=J;return r=tt(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Yd(function(){G&6?je(Le,ad):od()})}function dd(){if(nd===0){var e=ma;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<ti.length;hd++){var gd=ti[hd];ni(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}ni(qr,`onAnimationEnd`),ni(Jr,`onAnimationIteration`),ni(Yr,`onAnimationStart`),ni(`dblclick`,`onDoubleClick`),ni(`focusin`,`onFocus`),ni(`focusout`,`onBlur`),ni(Xr,`onTransitionRun`),ni(Zr,`onTransitionStart`),ni(Qr,`onTransitionCancel`),ni($r,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,kt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=wt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),s=[];a:{var c=ei.get(e);if(c!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Xn;break;case qr:case Jr:case Yr:l=Bn;break;case $r:l=Zn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=Qn;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`toggle`:case`beforetoggle`:l=$n}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?wt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Et(l),h=u==null?c:Et(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,wt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?Et(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=vr;else if(fr(c))if(yr)v=Or;else{v=Er;var y=Tr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&an(r.elementType)&&(v=vr):v=Dr;if(v&&=v(e,r)){pr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Xt(c,`number`,c.value)}switch(y=r?Et(r):window,e){case`focusin`:(fr(y)||y.contentEditable===`true`)&&(Rr=y,zr=r,Br=null);break;case`focusout`:Br=zr=Rr=null;break;case`mousedown`:Vr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Vr=!1,Hr(s,n,i);break;case`selectionchange`:if(Lr)break;case`keydown`:case`keyup`:Hr(s,n,i)}var b;if(tr)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else A?sr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(ir&&n.locale!==`ko`&&(A||x!==`onCompositionStart`?x===`onCompositionEnd`&&A&&(b=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,A=!0)),y=Ed(r,x),0<y.length&&(x=new Hn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=cr(n),b!==null&&(x.data=b)))),(b=rr?lr(e,n):ur(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Td(e,i,a)),i=_n(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||en(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&en(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:rn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=on.get(n)||n,Lt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:rn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?en(e,r):(typeof r==`number`||typeof r==`bigint`)&&en(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[gt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Lt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}$t(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=D.d;D.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Dt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Ot(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=_e.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,Ot(a),a):(r=n,(a=mf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[k]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:S,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=mi(3,null,null,t),e.current=a,a.stateNode=e,t=ua(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ua(a),e}function tp(e){return e?(e=fi,e):fi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ga(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ka(e,r,t),n!==null&&(hu(n,e,t),qa(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=li(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=dt(t);var n=li(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=2,up(e,t,n,r)}finally{D.p=a,E.T=i}}function lp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=8,up(e,t,n,r)}finally{D.p=a,E.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}rd(a),!(G&6)&&(tu=Fe()+500,id(0,!1))}}break;case 31:case 13:s=li(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=dn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=wt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=wt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,mt(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Tt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[_t]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));D.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:E,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{We=zp.inject(Rp),Ge=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[_t]=t.current,Sd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g(),y=`modulepreload`,b=function(e){return`/`+e},x={},ee=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=b(t,n),t=s(t),t in x)return;x[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:y,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},S=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,C=/^[\\/]{2}/;function te(e,t){return t+e.replace(/\\/g,`/`)}var ne=`popstate`;function re(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return se(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ce(t)}return E(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function ie(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ae(){return Math.random().toString(36).substring(2,10)}function oe(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function se(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?le(t):t,state:n,key:t&&t.key||r||ae(),mask:i}}function ce({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function le(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function E(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=re(e)?e:se(h.location,e,t);n&&n(r,e),l=u()+1;let d=oe(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=re(e)?e:se(h.location,e,t);n&&n(r,e),l=u();let i=oe(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return D(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ne,d),c=e,()=>{i.removeEventListener(ne,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function D(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),T(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ce(t);return i=i.replace(/ $/,`%20`),!n&&C.test(i)&&(i=r+i),new URL(i,r)}function ue(e,t,n=`/`){return de(e,t,n,!1)}function de(e,t,n,r,i){let a=Ae((typeof t==`string`?le(t):t).pathname||`/`,n);if(a==null)return null;let o=i??pe(e),s=null,c=ke(a);for(let e=0;s==null&&e<o.length;++e)s=Te(o[e],c,r);return s}function fe(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function pe(e){let t=me(e);return he(t),t}function me(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Re([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),me(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Ce(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Oe(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of O(e.path))a(e,t,!0,n)}),t}function O(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=O(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function he(e){e.sort((e,t)=>e.score===t.score?we(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ge=/^:[\w-]+$/,_e=3,ve=2,ye=1,be=10,xe=-2,Se=e=>e===`*`;function Ce(e,t){let n=e.split(`/`),r=n.length;return n.some(Se)&&(r+=xe),t&&(r+=ve),n.filter(e=>!Se(e)).reduce((e,t)=>e+(ge.test(t)?_e:t===``?ye:be),r)}function we(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Te(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?De(u,l,s.matcher,s.compiledParams):Ee(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ee({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Re([a,d.pathname]),pathnameBase:Be(Re([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Re([a,d.pathnameBase]))}return o}function Ee(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Oe(e.path,e.caseSensitive,e.end);return De(e,t,n,r)}function De(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Oe(e,t=!1,n=!0){ie(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=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ke(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ie(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ae(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 je(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?le(e):e,a;return n?(n=Le(n),a=n.startsWith(`/`)?Me(n.substring(1),`/`):Me(n,t)):a=t,{pathname:a,search:Ve(r),hash:He(i)}}function Me(e,t){let n=ze(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ne(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 Pe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Fe(e){let t=Pe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ie(e,t,n,r=!1){let i;typeof e==`string`?i=le(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),Ne(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),Ne(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),Ne(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=je(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Le=e=>e.replace(/[\\/]{2,}/g,`/`),Re=e=>Le(e.join(`/`)),ze=e=>e.replace(/\/+$/,``),Be=e=>ze(e).replace(/^\/*/,`/`),Ve=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,He=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ue=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function We(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ge(e){return Re(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ke=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function qe(e,t){let n=e;if(typeof n!=`string`||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ke)try{let e=new URL(window.location.href),r=C.test(n)?new URL(te(n,e.protocol)):new URL(n),a=Ae(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ie(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Je=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Je);var Ye=[`GET`,...Je];new Set(Ye);var Xe=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ze(e){try{return Xe.includes(new URL(e).protocol)}catch{return!1}}var Qe=_.createContext(null);Qe.displayName=`DataRouter`;var $e=_.createContext(null);$e.displayName=`DataRouterState`;var et=_.createContext(!1);function tt(){return _.useContext(et)}var nt=_.createContext({isTransitioning:!1});nt.displayName=`ViewTransition`;var rt=_.createContext(new Map);rt.displayName=`Fetchers`;var it=_.createContext(null);it.displayName=`Await`;var at=_.createContext(null);at.displayName=`Navigation`;var ot=_.createContext(null);ot.displayName=`Location`;var st=_.createContext({outlet:null,matches:[],isDataRoute:!1});st.displayName=`Route`;var ct=_.createContext(null);ct.displayName=`RouteError`;var lt=`REACT_ROUTER_ERROR`,ut=`REDIRECT`,dt=`ROUTE_ERROR_RESPONSE`;function ft(e){if(e.startsWith(`${lt}:${ut}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function pt(e){if(e.startsWith(`${lt}:${dt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ue(t.status,t.statusText,t.data)}catch{}}function mt(e,{relative:t}={}){T(ht(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(at),{hash:i,pathname:a,search:o}=xt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Re([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ht(){return _.useContext(ot)!=null}function k(){return T(ht(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(ot).location}var gt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function _t(e){_.useContext(at).static||_.useLayoutEffect(e)}function vt(){let{isDataRoute:e}=_.useContext(st);return e?Bt():yt()}function yt(){T(ht(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(Qe),{basename:t,navigator:n}=_.useContext(at),{matches:r}=_.useContext(st),{pathname:i}=k(),a=JSON.stringify(Fe(r)),o=_.useRef(!1);return _t(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(ie(o.current,gt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ie(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Re([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}_.createContext(null);function bt(){let{matches:e}=_.useContext(st);return e[e.length-1]?.params??{}}function xt(e,{relative:t}={}){let{matches:n}=_.useContext(st),{pathname:r}=k(),i=JSON.stringify(Fe(n));return _.useMemo(()=>Ie(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function St(e,t){return Ct(e,t)}function Ct(e,t,n){T(ht(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(at),{matches:i}=_.useContext(st),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ht(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=k(),d;if(t){let e=typeof t==`string`?le(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ue(e,{pathname:p});ie(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ie(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=At(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Re([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Re([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(ot.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function wt(){let e=zt(),t=We(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=_.createElement(_.Fragment,null,_.createElement(`p`,null,`💿 Hey developer 👋`),_.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,_.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,_.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),_.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:i},n):null,o)}var Tt=_.createElement(wt,null),Et=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=pt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(st.Provider,{value:this.props.routeContext},_.createElement(ct.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(Ot,{error:e},t):t}};Et.contextType=et;var Dt=new WeakMap;function Ot({children:e,error:t}){let{basename:n}=_.useContext(at);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ft(t.digest);if(e){let r=Dt.get(t);if(r)throw r;let i=qe(e.location,n),a=i.absoluteURL||i.to;if(Ze(a))throw Error(`Invalid redirect location`);if(Ke&&!Dt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Dt.set(t,n),n}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function kt({routeContext:e,match:t,children:n}){let r=_.useContext(Qe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(st.Provider,{value:e},n)}function At(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ge(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Tt,o&&(s<0&&c===0?(Ht(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(kt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(Et,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function jt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mt(e){let t=_.useContext(Qe);return T(t,jt(e)),t}function Nt(e){let t=_.useContext($e);return T(t,jt(e)),t}function Pt(e){let t=_.useContext(st);return T(t,jt(e)),t}function Ft(e){let t=Pt(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function It(){return Ft(`useRouteId`)}function Lt(){let e=Nt(`useNavigation`);return _.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Rt(){let{matches:e,loaderData:t}=Nt(`useMatches`);return _.useMemo(()=>e.map(e=>fe(e,t)),[e,t])}function zt(){let e=_.useContext(ct),t=Nt(`useRouteError`),n=Ft(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Bt(){let{router:e}=Mt(`useNavigate`),t=Ft(`useNavigate`),n=_.useRef(!1);return _t(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{ie(n.current,gt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Vt={};function Ht(e,t,n){!t&&!Vt[e]&&(Vt[e]=!0,ie(!1,n))}_.memo(Ut);function Ut({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ct(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Wt(e){T(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Gt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!ht(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=_.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=le(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=_.useMemo(()=>{let e=Ae(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ie(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:_.createElement(at.Provider,{value:c},_.createElement(ot.Provider,{children:t,value:h}))}function Kt({children:e,location:t}){return St(qt(e),t)}_.Component;function qt(e,t=[]){let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,qt(e.props.children,i));return}T(e.type===Wt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),T(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=qt(e.props.children,i)),n.push(a)}),n}var Jt=`get`,Yt=`application/x-www-form-urlencoded`;function Xt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Zt(e){return Xt(e)&&e.tagName.toLowerCase()===`button`}function Qt(e){return Xt(e)&&e.tagName.toLowerCase()===`form`}function $t(e){return Xt(e)&&e.tagName.toLowerCase()===`input`}function en(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tn(e,t){return e.button===0&&(!t||t===`_self`)&&!en(e)}var nn=null;function rn(){if(nn===null)try{new FormData(document.createElement(`form`),0),nn=!1}catch{nn=!0}return nn}var an=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function on(e){return e!=null&&!an.has(e)?(ie(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yt}"`),null):e}function sn(e,t){let n,r,i,a,o;if(Qt(e)){let o=e.getAttribute(`action`);r=o?Ae(o,t):null,n=e.getAttribute(`method`)||Jt,i=on(e.getAttribute(`enctype`))||Yt,a=new FormData(e)}else if(Zt(e)||$t(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ae(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Jt,i=on(e.getAttribute(`formenctype`))||on(o.getAttribute(`enctype`))||Yt,a=new FormData(o,e),!rn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Xt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Jt,r=null,i=Yt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var cn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ln=/[&><\u2028\u2029]/g;function un(e){return e.replace(ln,e=>cn[e])}function dn(e,t){if(e===!1||e==null)throw Error(t)}function fn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Ae(i.pathname,t)===`/`?i.pathname=`${ze(t)}/_root.${r}`:i.pathname=`${ze(i.pathname)}.${r}`,i}async function pn(e,t){if(e.id in t)return t[e.id];try{let n=await ee(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mn(e){return e!=null&&typeof e.page==`string`}function hn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function gn(e,t,n){return xn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await pn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(hn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function _n(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function vn(e,t,{includeHydrateFallback:n}={}){return yn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function yn(e){return[...new Set(e)]}function bn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function xn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!mn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(bn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Sn(){let e=_.useContext(Qe);return dn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Cn(){let e=_.useContext($e);return dn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var wn=_.createContext(void 0);wn.displayName=`FrameworkContext`;function Tn(){let e=_.useContext(wn);return dn(e,`You must render this element inside a <HydratedRouter> element`),e}function En(e,t){let n=_.useContext(wn),[r,i]=_.useState(!1),[a,o]=_.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=_.useRef(null);_.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),_.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Dn(s,p),onBlur:Dn(c,m),onMouseEnter:Dn(l,p),onMouseLeave:Dn(u,m),onTouchStart:Dn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Dn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function On({page:e,...t}){let n=tt(),{nonce:r}=Tn(),{router:i}=Sn(),a=_.useMemo(()=>ue(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?_.createElement(An,{page:e,matches:a,...t}):_.createElement(jn,{page:e,matches:a,...t})):null}function kn(e){let{manifest:t,routeModules:n}=Tn(),[r,i]=_.useState([]);return _.useEffect(()=>{let r=!1;return gn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function An({page:e,matches:t,...n}){let r=k(),{future:i}=Tn(),{basename:a}=Sn(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=fn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return _.createElement(_.Fragment,null,o.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function jn({page:e,matches:t,...n}){let r=k(),{future:i,manifest:a,routeModules:o}=Tn(),{basename:s}=Sn(),{loaderData:c,matches:l}=Cn(),u=_.useMemo(()=>_n(e,t,l,a,r,`data`),[e,t,l,a,r]),d=_.useMemo(()=>_n(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=fn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=_.useMemo(()=>vn(d,a),[d,a]),m=kn(d);return _.createElement(_.Fragment,null,f.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>_.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>_.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Mn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}_.Component;var Nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Nn&&(window.__reactRouterVersion=`7.18.0`)}catch{}function Pn({basename:e,children:t,useTransitions:n,window:r}){let i=_.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=_.useState({action:a.action,location:a.location}),c=_.useCallback(e=>{n===!1?s(e):_.startTransition(()=>s(e))},[n]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.createElement(Gt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Fn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=_.useState({action:n.action,location:n.location}),o=_.useCallback(e=>{r===!1?a(e):_.startTransition(()=>a(e))},[r]);return _.useLayoutEffect(()=>n.listen(o),[n,o]),_.createElement(Gt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Fn.displayName=`unstable_HistoryRouter`;var In=_.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:v}=_.useContext(at),y=typeof l==`string`&&S.test(l),b=qe(l,h);l=b.to;let x=mt(l,{relative:r}),ee=k(),C=null;if(o){let e=Ie(o,[],ee.mask?ee.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Re([h,e.pathname])),C=g.createHref(e)}let[te,ne,re]=En(n,p),w=Un(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function T(t){e&&e(t),t.defaultPrevented||w(t)}let ie=!(b.isExternal||i),ae=_.createElement(`a`,{...p,...re,href:(ie?C:void 0)||b.absoluteURL||x,onClick:ie?T:e,ref:Mn(m,ne),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return te&&!y?_.createElement(_.Fragment,null,ae,_.createElement(On,{page:x})):ae});In.displayName=`Link`;var Ln=_.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=xt(a,{relative:c.relative}),d=k(),f=_.useContext($e),{navigator:p,basename:m}=_.useContext(at),h=f!=null&&$n(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=Ae(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=v===g||!r&&v.startsWith(g)&&v.charAt(b)===`/`,ee=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),S={isActive:x,isPending:ee,isTransitioning:h},C=x?e:void 0,te;te=typeof n==`function`?n(S):[n,x?`active`:null,ee?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let ne=typeof i==`function`?i(S):i;return _.createElement(In,{...c,"aria-current":C,className:te,ref:l,style:ne,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Ln.displayName=`NavLink`;var Rn=_.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Jt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=_.useContext(at),g=Kn(),v=qn(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&S.test(s);return _.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?_.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});Rn.displayName=`Form`;function zn({getKey:e,storageKey:t,...n}){let r=_.useContext(wn),{basename:i}=_.useContext(at),a=k(),o=Rt();Zn({getKey:e,storageKey:t});let s=_.useMemo(()=>{if(!r||!e)return null;let t=Xn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),_.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${un(JSON.stringify(t||Jn))}, ${un(JSON.stringify(s))})`}})}zn.displayName=`ScrollRestoration`;function Bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vn(e){let t=_.useContext(Qe);return T(t,Bn(e)),t}function Hn(e){let t=_.useContext($e);return T(t,Bn(e)),t}function Un(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=vt(),d=k(),f=xt(e,{relative:o});return _.useCallback(p=>{if(tn(p,t)){p.preventDefault();let t=n===void 0?ce(d)===ce(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?_.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Wn=0,Gn=()=>`__${String(++Wn)}__`;function Kn(){let{router:e}=Vn(`useSubmit`),{basename:t}=_.useContext(at),n=It(),r=e.fetch,i=e.navigate;return _.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=sn(e,t);a.navigate===!1?await r(a.fetcherKey||Gn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function qn(e,{relative:t}={}){let{basename:n}=_.useContext(at),r=_.useContext(st);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...xt(e||`.`,{relative:t})},o=k();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Re([n,a.pathname])),ce(a)}var Jn=`react-router-scroll-positions`,Yn={};function Xn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Ae(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Zn({getKey:e,storageKey:t}={}){let{router:n}=Vn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Hn(`useScrollRestoration`),{basename:a}=_.useContext(at),o=k(),s=Rt(),c=Lt();_.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Qn(_.useCallback(()=>{if(c.state===`idle`){let t=Xn(o,s,a,e);Yn[t]=window.scrollY}try{sessionStorage.setItem(t||Jn,JSON.stringify(Yn))}catch(e){ie(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(_.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Jn);e&&(Yn=JSON.parse(e))}catch{}},[t]),_.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Yn,()=>window.scrollY,e?(t,n)=>Xn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),_.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{ie(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Qn(e,t){let{capture:n}=t||{};_.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function $n(e,{relative:t}={}){let n=_.useContext(nt);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Vn(`useViewTransitionState`),i=xt(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ae(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ae(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ee(i.pathname,o)!=null||Ee(i.pathname,a)!=null}var er=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),tr=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),nr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),rr=e=>{let t=nr(e);return t.charAt(0).toUpperCase()+t.slice(1)},ir={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ar=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},or=(0,_.createContext)({}),sr=()=>(0,_.useContext)(or),cr=(0,_.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=sr()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,_.createElement)(`svg`,{ref:c,...ir,width:t??l??ir.width,height:t??l??ir.height,stroke:e??f,strokeWidth:m,className:er(`lucide`,p,i),...!a&&!ar(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),A=(e,t)=>{let n=(0,_.forwardRef)(({className:n,...r},i)=>(0,_.createElement)(cr,{ref:i,iconNode:t,className:er(`lucide-${tr(rr(e))}`,`lucide-${e}`,n),...r}));return n.displayName=rr(e),n},lr=A(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),ur=A(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),dr=A(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),fr=A(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),pr=A(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),mr=A(`baby`,[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]),hr=A(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),gr=A(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),_r=A(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),vr=A(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),yr=A(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),br=A(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),xr=A(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Sr=A(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Cr=A(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),wr=A(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Tr=A(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Er=A(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Dr=A(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Or=A(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),kr=A(`heart-pulse`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]),Ar=A(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),jr=A(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Mr=A(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),Nr=A(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Pr=A(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Fr=A(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Ir=A(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Lr=A(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Rr=A(`navigation`,[[`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`,key:`1ltx0t`}]]),zr=A(`newspaper`,[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]),Br=A(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Vr=A(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Hr=A(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Ur=A(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Wr=A(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),Gr=A(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Kr=A(`shirt`,[[`path`,{d:`M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z`,key:`1wgbhj`}]]),j=A(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),qr=A(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Jr=A(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),Yr=A(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Xr=A(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Zr=A(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Qr=A(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),$r=[{id:`news`,title:`News`,navLabel:`News`,subtitle:`NZ & Global Updates`,description:`Stay informed with the latest happenings around New Zealand and the wider world.`,color:`#2EA3F2`,icon:`Newspaper`},{id:`technology`,title:`Technology`,navLabel:`Technology`,subtitle:`Information & Learning`,description:`A fast-changing world led by innovation and new ideas — thoughts to keep you curious, informed, and ready for whatever the future brings.`,color:`#2EA3F2`,icon:`Monitor`},{id:`health`,title:`Health & Wellbeing`,navLabel:`Health`,subtitle:`Body, Mind & Energy`,description:`Exploring wellness, fitness, and the science of living well — keeping body and mind in harmony.`,color:`#27ae60`,icon:`HeartPulse`},{id:`finance`,title:`Money & Finance`,navLabel:`Money`,subtitle:`Investments & Money Matters`,description:`Navigating personal finance, investments, and cryptocurrency — building financial wisdom for a secure future.`,color:`#f39c12`,icon:`TrendingUp`},{id:`diy`,title:`Home & DIY`,navLabel:`Home & DIY`,subtitle:`Do It Yourself Projects`,description:`Practical guides, home-improvement tips, and creative projects anyone can tackle with the right guidance.`,color:`#e74c3c`,icon:`Wrench`},{id:`faith`,title:`Faith & Reflection`,navLabel:`Faith`,subtitle:`Spirit, Scripture & the Subconscious Mind`,description:`Reflections on faith, scripture, and the power within — drawing on the wisdom of the Bible and the teachings of Joseph Murphy.`,color:`#9b59b6`,icon:`Sparkles`,sub:[`joseph-murphy`,`daily-bible`]},{id:`young-parents`,title:`Family & Parenting`,navLabel:`Family`,subtitle:`Parenting with Purpose`,description:`Honest advice and reflections for parents navigating the early years and everything that follows.`,color:`#e67e22`,icon:`Baby`},{id:`work-stress`,title:`Work & Life`,navLabel:`Work & Life`,subtitle:`Balance & Working from Home`,description:`Strategies for balance, productivity, and wellbeing in the modern, remote-first workplace.`,color:`#3498db`,icon:`Briefcase`},{id:`fashion`,title:`Fashion & Style`,navLabel:`Fashion`,subtitle:`Style & Wardrobe`,description:`Timeless style tips and fashion advice for every budget and every body.`,color:`#e91e63`,icon:`Shirt`}],ei={"joseph-murphy":{title:`The Subconscious Mind`,subtitle:`Joseph Murphy`,description:`Exploring the timeless teachings of Dr. Joseph Murphy on harnessing the power within.`,color:`#9b59b6`,icon:`BookOpen`},"daily-bible":{title:`Daily Bible`,subtitle:`Scripture for Daily Living`,description:`Daily readings and reflections drawn from the Bible for modern life.`,color:`#D4A843`,icon:`BookMarked`}},ti=Object.fromEntries([...$r.map(e=>[e.id,e]),...Object.entries(ei).map(([e,t])=>[e,{id:e,...t}])]),ni=Object.fromEntries($r.filter(e=>e.sub).map(e=>[e.id,e.sub])),ri=Object.fromEntries($r.filter(e=>e.sub).flatMap(e=>e.sub.map(t=>[t,e.id]))),ii=[{path:`/`,label:`Welcome`},...$r.map(e=>({path:`/category/${e.id}`,label:e.navLabel||e.title}))],ai={technology:[{id:1,title:`The Rise of Artificial Intelligence in Everyday Life`,excerpt:`Some thoughts on how AI slipped into my daily life, and what I think it means for the rest of us.`,date:`Mar 15, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`I can still remember when artificial intelligence felt like something out of a film. Distant, a little ominous, and certainly nothing to do with me. Then one day I realised it was already part of my ordinary life: the films it nudges me towards, the voice that sets my reminders, the way my phone seems to know what I want before I do.`},{type:`heading`,text:`AI in the Home`},{type:`paragraph`,text:`Smart speakers, robot vacuums, thermostats that learn your habits. These are only the beginning. What strikes me most is how little fuss these devices make about it. They study our preferences and reshape our homes around us without ever announcing themselves. I find that both wonderful and slightly unsettling.`},{type:`heading`,text:`AI at Work`},{type:`paragraph`,text:`At work I have watched AI take over the repetitive jobs, sift through data at a scale no person could manage, and even lend a hand with creative work. My own conclusion is simple. There is little point fearing these changes; the real task is learning to work alongside them.`},{type:`quote`,text:`The best way to predict the future is to create it.`},{type:`heading`,text:`What This Means for Us`},{type:`paragraph`,text:`The more capable these machines become, the more I notice what they still cannot do. They do not create the way we do, or feel what we feel, or weigh a hard decision with any real judgement. Those qualities are ours. Our part, I think, is to stay curious and keep adapting.`}]},{id:2,title:`Understanding Blockchain Beyond Cryptocurrency`,excerpt:`Why I think the technology behind cryptocurrency is far more interesting than the coins themselves.`,date:`Mar 10, 2025`,readTime:`7 min`,content:[{type:`paragraph`,text:`For a long time, whenever I heard the word "blockchain" I thought only of Bitcoin and the headlines about people getting rich or ruined. It took me a while to realise that the technology underneath all of that has far broader uses, and that its real potential is only beginning to be understood.`},{type:`heading`,text:`What Is Blockchain, Simply Put?`},{type:`paragraph`,text:`The simplest way I have found to explain it is this. A blockchain is a distributed ledger, a record of transactions shared across many computers at once. Once something is written down, it cannot easily be changed. That is what makes it trustworthy without needing anyone in charge to vouch for it.`},{type:`heading`,text:`Beyond Currency`},{type:`paragraph`,text:`What fascinates me are the uses that have nothing to do with money. It is being tried out to trace products along a supply chain from origin to shelf, to secure patient records in hospitals, even to make voting systems harder to tamper with.`},{type:`list`,items:[`Supply chain transparency`,`Secure medical records`,`Digital identity verification`,`Smart contracts that execute automatically`,`Decentralised finance (DeFi)`]},{type:`heading`,text:`The Road Ahead`},{type:`paragraph`,text:`I am the first to admit the technology is still maturing. The questions around energy use, scalability and regulation are real ones. But as it matures, I find its promise of fairer, more open systems hard to ignore.`},{type:`quote`,text:`Blockchain is not just about money. It is about trust in a trustless world.`}]},{id:3,title:`Smart Home Essentials: Where to Start`,excerpt:`How I learned to build a connected home that actually makes life easier, without the overwhelm.`,date:`Feb 28, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`When I first looked into building a smart home, I nearly gave up before I started. There were hundreds of devices, apps and rival ecosystems all clamouring for my attention. What I have since learned is that a connected home does not need to be complicated or expensive. The trick is to start small and focus on what actually makes life easier.`},{type:`heading`,text:`Start with a Smart Speaker`},{type:`paragraph`,text:`A smart speaker was my own entry point, and I still think it is the simplest one. It gives you voice control over music, timers and the weather, and it can become the hub for whatever you add later.`},{type:`heading`,text:`Lighting Is the Quick Win`},{type:`paragraph`,text:`If I had to recommend one first step, it would be smart bulbs or smart plugs. They are cheap, and the difference is hard to miss. Lights that come on at sunset, dim themselves in the evening, or switch off when you leave the house.`},{type:`heading`,text:`Security and Comfort`},{type:`list`,items:[`Smart doorbell with camera for package deliveries`,`Smart thermostat to reduce energy bills`,`Motion sensors for outdoor lighting`,`Smart locks for keyless entry`]},{type:`paragraph`,text:`The best smart home, I think, is the one you barely notice. It works away in the background, making things a little easier without ever demanding your attention. Start with one or two devices and build from there.`}]},{id:4,title:`Cybersecurity for the Average Person`,excerpt:`No expertise required. Just the simple habits I have picked up to protect myself online.`,date:`Feb 20, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`I am no security expert, and I do not think you need to be one to stay safe online. From everything I have read and seen, most attacks succeed through ordinary human slips rather than clever hacking: a weak password, a careless click, an update we keep putting off.`},{type:`heading`,text:`Passwords Are Your First Defence`},{type:`paragraph`,text:`The single change that gave me the most peace of mind was using a different password for every account. A password manager creates and stores the strong ones, so you only have to remember one master password. Turn on two-factor authentication wherever you can, too.`},{type:`heading`,text:`Recognising Scams`},{type:`list`,items:[`Be suspicious of unexpected emails asking you to click links or download files.`,`Check the sender's email address carefully, since scammers often use addresses that look almost identical to the real ones.`,`Never share personal or financial information by email.`,`If something feels urgent or too good to be true, it probably is.`]},{type:`heading`,text:`Keep Everything Updated`},{type:`paragraph`,text:`I used to ignore the little "update available" badges for weeks. I no longer do. Those updates often carry security patches, and turning on automatic updates across my phone, computer and apps is one small habit that prevents a great many problems.`},{type:`quote`,text:`The best security is the one you actually use consistently.`}]},{id:5,title:`The Future of Remote Work Technology`,excerpt:`Reflections on the tools and trends reshaping where I work, and how.`,date:`Feb 15, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`Remote work began, for many of us, as a temporary measure. Watching it become a permanent part of modern life has been one of the stranger shifts of my working years. The tools that hold distributed teams together keep changing fast, and they are reshaping where we work and how we work together.`},{type:`heading`,text:`Collaboration Tools Are Getting Smarter`},{type:`paragraph`,text:`Platforms like Teams, Slack and Zoom have become part of the furniture. What I am watching for is the next generation: meeting summaries written for you, real-time translation, scheduling clever enough to handle time zones and the way people actually work.`},{type:`heading`,text:`The Rise of Async Work`},{type:`paragraph`,text:`One lesson I keep returning to is that not every conversation needs to happen in real time. Tools like Loom for video messages and Notion for shared documentation let teams work asynchronously. In my experience that means less meeting fatigue and more focused time for real work.`},{type:`heading`,text:`What to Watch`},{type:`list`,items:[`Virtual reality meeting spaces`,`AI assistants that handle scheduling and note-taking`,`Better home office ergonomics and equipment`,`Digital wellness tools to prevent burnout`]},{type:`paragraph`,text:`The future of work, as I see it, is not a tug of war between the office and home. It is about having the technology and the culture that let people do their best work from wherever they happen to be.`}]},{id:38,title:`Understanding AI: From "I Love You" to Mathematical Meaning`,excerpt:`A chapter I wrote for my children and grandchildren: what is really happening when AI "thinks", and why a phrase as simple as "I love you" can become mathematics and still keep its meaning.`,date:`Jun 26, 2026`,readTime:`11 min`,content:[{type:`paragraph`,text:`One day, I asked ChatGPT a simple question:`},{type:`quote`,text:`When you say you are thinking, what exactly are you doing?`},{type:`paragraph`,text:`At first glance it seemed ordinary. Yet the answer opened a door into one of the most fascinating subjects of our time, and I have been turning it over ever since. Most people use AI every day without ever asking what is happening beneath the surface. They ask their questions, get their answers, and move on.`},{type:`paragraph`,text:`But understanding how AI works is becoming as important in this century as understanding electricity was in the last. This chapter is not written for computer scientists. It is for ordinary people: my children, grandchildren, relatives, friends, and anyone curious about the world they live in. My hope is that by the end of it you will understand AI a little better, and also see something deeper about human intelligence itself.`},{type:`heading`,text:`What Most People Think AI Is`},{type:`paragraph`,text:`When people first meet AI, they usually imagine one of three things. All three, it turns out, are mistaken.`},{type:`heading`,text:`Misconception 1: AI Is a Search Engine`},{type:`paragraph`,text:`Many assume AI works like Google: you ask a question, it searches through websites, and it hands back an answer. Modern AI does not really work this way. A search engine finds information that already exists somewhere. AI generates information from patterns it has learned.`},{type:`heading`,text:`Misconception 2: AI Is a Giant Database`},{type:`paragraph`,text:`Others picture a vast encyclopedia holding every possible answer, with the machine simply looking up the right one. Again, that is not how it works. There is no giant internal book with a chapter labelled "History of Chess" or "How to Fix Linux". What it knows is spread across billions of mathematical relationships.`},{type:`heading`,text:`Misconception 3: AI Is Just Computer Code`},{type:`paragraph`,text:`Traditional software follows explicit instructions. You can almost read them like a recipe:`},{type:`code`,text:`IF user enters 2 + 2
THEN display 4`},{type:`paragraph`,text:`Modern AI is different in kind. It was not programmed with millions of individual rules. It learned patterns from enormous amounts of text. That one distinction changes everything that follows.`},{type:`heading`,text:`What AI Actually Is`},{type:`paragraph`,text:`At heart, modern AI is a machine that has learned patterns. Think of a child learning to speak. Nobody sits the child down and teaches every sentence they will ever say. The child simply hears millions of examples, and over time the patterns emerge: grammar, the meanings of words, the way ideas hang together.`},{type:`paragraph`,text:`AI learns in a loosely similar way. Not by understanding in the human sense, but by recognising patterns across vast amounts of text. The result is a system that can produce remarkably human-like answers. The strange part is worth sitting with: the machine learns which words belong together long before it has any idea what those words mean. In truth it never gets that idea at all.`},{type:`heading`,text:`What Happens When AI "Thinks"?`},{type:`paragraph`,text:`When ChatGPT shows you the word "Thinking...", it is not pausing to reflect the way a person would. It is doing calculations, a great many of them. The process looks roughly like this:`},{type:`code`,text:`Question
↓
Words
↓
Tokens
↓
Numbers
↓
Patterns
↓
Predictions
↓
Response`},{type:`paragraph`,text:`Everything beneath the surface is mathematics. And yet, somehow, that mathematics becomes language.`},{type:`heading`,text:`The Journey of "I Love You"`},{type:`paragraph`,text:`Let us follow the simplest example I can think of. Suppose you type:`},{type:`code`,text:`I love you`},{type:`paragraph`,text:`A person instantly understands everything it carries:`},{type:`list`,items:[`Affection`,`Relationship`,`Emotion`,`Connection`]},{type:`paragraph`,text:`But AI feels none of this. So what does it actually see?`},{type:`heading`,text:`Step 1: Breaking the Sentence Apart`},{type:`paragraph`,text:`The sentence is first split into pieces called tokens:`},{type:`code`,text:`"I" "love" "you"`},{type:`paragraph`,text:`Each token is given a number for a name. For illustration:`},{type:`code`,text:`I → 247
love → 891
you → 412`},{type:`paragraph`,text:`These numbers are only labels. They hold no meaning in themselves. Think of them as page numbers in a dictionary.`},{type:`heading`,text:`Step 2: Converting Words into Mathematics`},{type:`paragraph`,text:`Now comes the surprising part. Each word is turned into a long list of numbers:`},{type:`code`,text:`love → [0.23, -0.67, 0.91, 0.33, ...]`},{type:`paragraph`,text:`The real list runs to thousands of values. Together they describe where the concept sits in a vast mathematical landscape. Words become coordinates. Meaning becomes location.`},{type:`paragraph`,text:`These lists of numbers have a name: embeddings. You can picture one as a kind of fingerprint for a word. Not a definition, but a precise position that captures how the word tends to be used. And once meaning has a position, something extraordinary becomes possible. It can be measured.`},{type:`heading`,text:`The Geometry of Meaning`},{type:`paragraph`,text:`Imagine a giant map. Instead of cities and roads, it is filled with ideas. A simplified corner of it might look like this:`},{type:`code`,text:` affection
|
adore ---- love ---- cherish
|
like`},{type:`paragraph`,text:`Related concepts sit close together. Now compare the distance to something unrelated:`},{type:`code`,text:`love ---------------- engine
love ---------------- screwdriver`},{type:`paragraph`,text:`Here the concepts lie far apart. Researchers call this a semantic space. A simpler name might be the geography of meaning.`},{type:`heading`,text:`Why "Love" Is Close to "Adore"`},{type:`paragraph`,text:`Nobody programmed this relationship. The AI learned it. Having seen, over and over, phrases like "I love you", "I adore you" and "I cherish you", the system worked out for itself that these words belong together. Meaning, it turns out, comes from relationships.`},{type:`heading`,text:`Discoveries That Surprised the Researchers`},{type:`paragraph`,text:`One of the most astonishing findings in AI research was that some relationships emerged on their own. The classic example is almost poetic:`},{type:`code`,text:`King − Man + Woman ≈ Queen`},{type:`paragraph`,text:`And another:`},{type:`code`,text:`Paris − France + Italy ≈ Rome`},{type:`paragraph`,text:`Nobody taught the machine these little equations. They appeared because language itself has structure, and the AI uncovered that structure through mathematics.`},{type:`heading`,text:`Why Context Matters`},{type:`paragraph`,text:`Consider two sentences:`},{type:`code`,text:`I love you.
I love pizza.`},{type:`paragraph`,text:`The word "love" sits in both, yet we read them completely differently. The surrounding words supply the context:`},{type:`code`,text:`love + you love + pizza
↓ ↓
relationship enjoyment
emotion preference
affection taste`},{type:`paragraph`,text:`Meaning is never held in a single word on its own. It comes from relationships. The same lesson, returning again.`},{type:`heading`,text:`Why AI Sometimes Gets Things Wrong`},{type:`paragraph`,text:`This part matters. Many people assume AI is always right. It is not. At bottom, it predicts which words are likely to come next. Most of the time that works remarkably well. Sometimes it fails, producing something that sounds entirely convincing and is simply untrue. This is often called a hallucination.`},{type:`paragraph`,text:`It helps to understand why this happens. The system is built to produce the most plausible-sounding continuation, not to check that continuation against reality. Fluency and truth usually travel together, but not always, and the machine cannot tell the two apart on its own. That is exactly why it is best treated as:`},{type:`list`,items:[`a helpful assistant`,`a thinking partner`,`a source of ideas`]},{type:`paragraph`,text:`But never as an unquestionable authority. Human judgement still matters.`},{type:`heading`,text:`AI and Human Intelligence`},{type:`paragraph`,text:`Perhaps the most interesting question of all is how different humans and AI really are. We have things the machine does not:`},{type:`list`,items:[`Consciousness`,`Emotions`,`Values`,`Wisdom`,`Life experience`]},{type:`paragraph`,text:`AI has none of these. And yet it far outdoes us at:`},{type:`list`,items:[`Memory`,`Speed`,`Pattern recognition`,`Information retrieval`,`Language generation`]},{type:`paragraph`,text:`Humans and machines are good at different things. The future, I suspect, will belong to people who learn to combine the two rather than treat them as rivals.`},{type:`heading`,text:`Can AI Become Conscious?`},{type:`paragraph`,text:`Nobody knows. Some believe it may happen one day; others believe it never will. For now there is no evidence that AI has consciousness of any kind.`},{type:`paragraph`,text:`It can discuss happiness, but it cannot feel happiness. It can describe grief, but it cannot experience grief. It can explain love, at length and rather well, but it cannot love. That stays a uniquely human thing.`},{type:`heading`,text:`The Future of AI`},{type:`paragraph`,text:`AI will almost certainly change a great many areas of life: education, medicine, science, the way we communicate. The task for future generations will not be learning to avoid it. It will be learning to use it wisely.`},{type:`paragraph`,text:`Just as earlier generations learned to live with electricity, the motor car and the internet, those who come after us will have to learn to work alongside intelligent machines.`},{type:`heading`,text:`How to Ask Better Questions`},{type:`paragraph`,text:`If the future belongs to those who ask the best questions, it is worth saying plainly how that is done, because it is a skill rather than a gift. Over time I have found a few habits that turn a mediocre answer into a genuinely useful one.`},{type:`list`,items:[`Give it context. The more it knows about what you are trying to do, the better it can help. Vague questions earn vague answers.`,`Ask for its reasoning, not just its conclusion. Seeing how it got somewhere tells you whether to trust it.`,`Invite it to disagree. Ask what you might be missing, or where your assumption could be wrong.`,`Always verify what matters. Treat important facts as claims to be checked, not truths to be accepted.`]},{type:`paragraph`,text:`A good question does two things at once. It draws a better answer out of the machine, and it keeps your own mind awake while you read the reply.`},{type:`heading`,text:`Lessons for My Children and Grandchildren`},{type:`paragraph`,text:`If there is one lesson I hope you remember, it is this: technology changes, but human nature does not. The tools grow more powerful. The need for wisdom stays exactly the same.`},{type:`paragraph`,text:`So learn to use AI. Study it. Experiment with it. Take what is good from it. But never hand over your ability to think for yourself. The greatest advantage in this new age will not belong to those who own the cleverest machines. It will belong to those who ask the best questions.`},{type:`quote`,text:`Curiosity will remain valuable. Wisdom will remain essential. Character will remain irreplaceable.`},{type:`heading`,text:`Final Reflection`},{type:`paragraph`,text:`This chapter began with a simple question: what happens when AI is thinking? The answer led somewhere I did not expect. Behind every conversation with a machine lies a world of mathematics.`},{type:`paragraph`,text:`Words become numbers. Numbers become relationships. Relationships become meaning. And meaning becomes conversation.`},{type:`paragraph`,text:`Perhaps the most remarkable part of all is that a phrase as simple as "I love you" can be turned into mathematics and still keep its meaning. That is one of the most extraordinary technological achievements of our age.`},{type:`paragraph`,text:`And yet the lesson is not really about machines. It is about us. Our curiosity created these systems. Our wisdom has to guide their use. And our humanity remains the one thing that mathematics, for all its power, cannot replace.`},{type:`quote`,text:`Written for those who come after, as part of a personal library of things worth remembering.`}]}],health:[{id:7,title:`Morning Routines That Actually Work`,excerpt:`The small morning habits that, over time, changed the shape of my days.`,date:`Mar 12, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`I have become convinced that the first hour of the day sets the tone for everything after it. For years I spent mine scrolling through notifications, rushing breakfast, and hitting snooze until the last possible second. A few small changes made a difference I did not expect.`},{type:`heading`,text:`Wake Up at the Same Time`},{type:`paragraph`,text:`What I have learned is that consistency matters more than the exact hour. The body loves rhythm. Waking at the same time every day, weekends included, trains your internal clock, and after a while the mornings stop feeling like a fight.`},{type:`heading`,text:`Move Before You Think`},{type:`paragraph`,text:`You do not need an intense gym session, and I rarely manage one. A short walk, a few stretches, even ten minutes of yoga is enough to wake the body and clear the head. The movement gets the blood going and brings the small lift that carries me through the morning.`},{type:`heading`,text:`A Simple Framework`},{type:`list`,items:[`Hydrate. Drink a glass of water before coffee.`,`Move. Even five minutes of stretching counts.`,`Focus. Spend ten minutes on something that matters before checking your phone.`,`Nourish. Eat a proper breakfast, not just caffeine.`]},{type:`quote`,text:`Win the morning, win the day.`},{type:`paragraph`,text:`The best morning routine, I have found, is simply the one you can keep. Start with a single habit, let it settle, then add another. The small steps add up to something lasting.`}]},{id:8,title:`Walking: The Most Underrated Exercise`,excerpt:`Why I think a simple daily walk is one of the best things I do for myself.`,date:`Mar 5, 2025`,readTime:`3 min`,content:[{type:`paragraph`,text:`In a world that seems obsessed with high-intensity workouts and gym memberships, I think walking gets badly overlooked. The more I read about it, the more sure I am that a daily walk is one of the most useful things any of us can do for body and mind.`},{type:`heading`,text:`The Physical Benefits`},{type:`list`,items:[`Improves cardiovascular health and lowers blood pressure.`,`Helps maintain a healthy weight without joint strain.`,`Strengthens bones and muscles, especially as we age.`,`Boosts immune function and reduces inflammation.`]},{type:`heading`,text:`The Mental Benefits`},{type:`paragraph`,text:`This is the part I feel most. A walk clears my head in a way little else does. It eases stress, settles the nerves, lifts a flat mood. Twenty minutes among trees has been shown to lower cortisol noticeably, and my best thinking has always happened on my feet. I am clearly in good company there.`},{type:`quote`,text:`All truly great thoughts are conceived while walking. — Friedrich Nietzsche`},{type:`heading`,text:`Making It Stick`},{type:`paragraph`,text:`The key, I am sure, is consistency rather than intensity. A walk after dinner, a morning stroll to the coffee shop, walking to the shops instead of driving: it all adds up. No gym, no special gear, just you and the pavement.`}]},{id:9,title:`Mental Health in the Digital Age`,excerpt:`Some honest reflections on finding peace of mind in a world that never stops buzzing.`,date:`Feb 25, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`We carry the whole world in our pockets now. News, social media, work emails, messages, all of it competing for our attention around the clock. I am as grateful as anyone for what technology has given us, but I have also felt the quiet toll that being always reachable takes on the mind.`},{type:`heading`,text:`The Attention Economy`},{type:`paragraph`,text:`It helped me to realise that every app on my phone is designed to capture and hold my attention. The feeds are built to keep me scrolling. The notifications manufacture an urgency that rarely matches reality. Just seeing that clearly was the first step to getting a little peace back.`},{type:`heading`,text:`Practical Steps`},{type:`list`,items:[`Turn off non-essential notifications.`,`Set specific times for checking email and social media.`,`Keep your phone out of the bedroom.`,`Take regular screen breaks. The 20-20-20 rule works well.`,`Be deliberate about what you consume online.`]},{type:`heading`,text:`It Is OK to Disconnect`},{type:`paragraph`,text:`I have had to remind myself, more than once, that I do not owe anyone an instant reply. Time offline is not laziness. It is self-preservation. The world keeps turning while you take a walk, read a book, or just sit in silence for a few minutes.`},{type:`quote`,text:`Almost everything will work again if you unplug it for a few minutes, including you.`}]},{id:10,title:`Nutrition Myths Debunked`,excerpt:`My attempt to separate fact from fiction after years of contradictory diet advice.`,date:`Feb 18, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`Nutrition advice seems to change with the seasons, and keeping up with it has worn me out. Fat is bad, then fat is good. Carbs are the enemy, then they are essential. With so much conflicting noise, it is hard to know what to believe. So here are a few of the myths I have stopped worrying about.`},{type:`heading`,text:`Myth: Carbs Make You Fat`},{type:`paragraph`,text:`Carbohydrates are the body's main fuel, and I no longer treat them as the villain. The problem was never carbs themselves but the type and the amount. Whole grains, fruit and vegetables are full of them and good for you. The real culprits are the heavily processed kind and oversized portions.`},{type:`heading`,text:`Myth: You Need to Eat Every Three Hours`},{type:`paragraph`,text:`There is no magic meal frequency, as far as I can tell. Some people do well on three meals a day, others on smaller, more frequent ones. What seems to matter is the total intake and its quality, not the clock.`},{type:`heading`,text:`Myth: Supplements Can Replace a Good Diet`},{type:`paragraph`,text:`I have learned to think of supplements as filling specific gaps rather than replacing real food. They cannot reproduce the complex mix of nutrients and fibre found in whole foods. A balanced diet, to my mind, always comes first.`},{type:`heading`,text:`The Simple Truth`},{type:`list`,items:[`Eat mostly whole, unprocessed foods.`,`Include plenty of vegetables and fruit.`,`Stay hydrated. Water is your best drink.`,`Enjoy treats in moderation, without guilt.`]},{type:`quote`,text:`The best diet is the one you can sustain for life, not just for January.`}]},{id:11,title:`The Power of Sleep`,excerpt:`Why I stopped treating sleep as the thing I could always borrow against.`,date:`Feb 10, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`For years I treated sleep as the one thing I could always sacrifice, the price of getting more done. It took me far too long to understand that it is the foundation everything else is built on. In a culture that worships hustle, sleep is usually the first thing we give up, and the science is clear that going short on it for long affects mood, memory, immunity, and our health for years afterwards.`},{type:`heading`,text:`What Happens When You Sleep`},{type:`paragraph`,text:`What changed my mind was learning what actually goes on while we rest. The body repairs tissue, files away memories, and balances hormones. The brain works through the day and clears out waste. Missing sleep is not just about feeling tired. It dulls our ability to think, learn and decide well.`},{type:`heading`,text:`Building Better Sleep Habits`},{type:`list`,items:[`Go to bed and wake up at consistent times.`,`Make your bedroom cool, dark and quiet.`,`Avoid screens for at least 30 minutes before bed.`,`Limit caffeine after midday.`,`Wind down with reading, gentle stretching, or deep breathing.`]},{type:`quote`,text:`Sleep is the best meditation. — Dalai Lama`},{type:`paragraph`,text:`Aiming for seven to nine hours is not a luxury, whatever I once told myself. It is a necessity. Protecting my sleep has turned out to be one of the best things I have ever done for my wellbeing.`}]}],finance:[{id:12,title:`Investing 101: Starting with What You Have`,excerpt:`You do not need a fortune to begin. A lesson I wish I had taken to heart sooner.`,date:`Mar 8, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`One of the biggest myths I believed for too long was that investing was for people with money to spare. The truth, I have since learned, is that you can begin with whatever you have. Even small, regular contributions add up over time, thanks to the quiet magic of compound interest.`},{type:`heading`,text:`Start Small, Start Now`},{type:`paragraph`,text:`Many platforms now let you invest with as little as five or ten dollars. The amount matters far less than the habit. Setting up an automatic weekly or fortnightly investment took the decision out of my hands and kept me consistent, and that is where the real progress came from.`},{type:`heading`,text:`Understand the Basics`},{type:`list`,items:[`Shares. Owning a piece of a company.`,`Bonds. Lending money to a company or government in return for interest.`,`Index funds. A basket of shares that tracks a market index, giving you diversification at low cost.`,`KiwiSaver (NZ). A retirement savings scheme with employer and government contributions.`]},{type:`heading`,text:`The Golden Rules`},{type:`list`,items:[`Invest for the long term. Do not try to time the market.`,`Diversify. Do not put all your eggs in one basket.`,`Keep costs low. Fees eat into returns over time.`,`Stay calm during downturns. Markets recover.`]},{type:`quote`,text:`The best time to plant a tree was twenty years ago. The second best time is now.`}]},{id:13,title:`Understanding Interest Rates and Your Money`,excerpt:`How I finally made sense of the force that shapes our savings and our debts.`,date:`Mar 1, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`Interest rates are one of the most powerful forces in personal finance, and yet for years I never really understood how they worked or how their changes touched my own life. Whether you are saving, borrowing or investing, I have come to appreciate just how much they matter.`},{type:`heading`,text:`The Basics`},{type:`paragraph`,text:`Here is how I learned to think of it. When you save money in a bank, the bank pays you interest, a reward for letting it use your money. When you borrow, whether a mortgage, a car loan or a credit card, you pay interest, the cost of using someone else's money. Everything else follows from those two ideas.`},{type:`heading`,text:`When Rates Rise`},{type:`list`,items:[`Savings accounts earn more.`,`Mortgage and loan repayments increase.`,`Borrowing becomes more expensive.`,`Consumer spending tends to slow down.`]},{type:`heading`,text:`When Rates Fall`},{type:`list`,items:[`Savings earn less.`,`Borrowing becomes cheaper.`,`Property prices often rise.`,`People tend to spend and borrow more.`]},{type:`paragraph`,text:`The lesson I keep coming back to is to be ready for both directions. When rates are low, I try to lock in fixed-rate loans where I can. When they are high, I make the most of the better savings returns and steer clear of unnecessary debt.`}]},{id:14,title:`Teaching Kids About Money`,excerpt:`Practical ways I have tried to raise financially wise children in a world built to spend.`,date:`Feb 22, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`Financial sense is one of the most valuable gifts I think we can give our children, and yet it is rarely taught in schools. What I have found is that everyday life offers no end of small chances to teach kids about money in ways that suit their age.`},{type:`heading`,text:`For Young Children (Ages 4-8)`},{type:`list`,items:[`Use a clear jar for savings so they can see money grow.`,`Give a small allowance and let them make spending decisions.`,`Talk about needs versus wants when shopping together.`,`Play shop or use board games that involve money.`]},{type:`heading`,text:`For Older Children (Ages 9-14)`},{type:`list`,items:[`Open a savings account together.`,`Encourage them to save for something they want.`,`Introduce the idea of earning through chores or small jobs.`,`Talk about how advertising influences spending.`]},{type:`heading`,text:`For Teenagers`},{type:`list`,items:[`Talk about budgeting, bank accounts and interest.`,`Involve them in family financial discussions where it makes sense.`,`Encourage part-time work and responsible spending.`,`Introduce basic investing concepts.`]},{type:`quote`,text:`Train up a child in the way he should go; even when he is old he will not depart from it. — Proverbs 22:6`}]},{id:15,title:`Emergency Funds: Why and How`,excerpt:`The unglamorous safety net that has given me more peace of mind than any investment.`,date:`Feb 14, 2025`,readTime:`3 min`,content:[{type:`paragraph`,text:`An emergency fund is simply money set aside for life's unexpected turns: a car breakdown, a medical bill, a sudden loss of income. It is not exciting, and it will never make anyone rich. But it is, I think, the single most important thing any of us can do for our financial security.`},{type:`heading`,text:`How Much Do You Need?`},{type:`paragraph`,text:`The usual target is three to six months of essential living expenses. When that felt overwhelming to me, I started with a much smaller goal. Even a thousand dollars gives you a real buffer against most of the everyday emergencies that catch us out.`},{type:`heading`,text:`How to Build It`},{type:`list`,items:[`Set up a separate savings account, out of sight and out of mind.`,`Automate a regular transfer, even a small one.`,`Send any windfalls, like tax refunds or bonuses, straight to the fund.`,`Cut one unnecessary expense and redirect the savings.`]},{type:`heading`,text:`When to Use It`},{type:`paragraph`,text:`I have had to be honest with myself here. An emergency fund is for genuine emergencies, not holidays, not sales, not impulse buys. And when you do dip into it, make rebuilding it your first job.`},{type:`quote`,text:`The peace of mind from knowing you have a safety net is worth more than any investment return.`}]},{id:16,title:`Cryptocurrency for Cautious Investors`,excerpt:`A measured take on digital assets, written for those of us who prefer to tread carefully.`,date:`Feb 7, 2025`,readTime:`7 min`,content:[{type:`paragraph`,text:`Cryptocurrency is exciting, volatile and full of promise, but I will be the first to say it is not for everyone. If you are like me, the cautious type who wants to understand something thoroughly before committing a cent, this is the approach I have settled on.`},{type:`heading`,text:`Learn Before You Earn`},{type:`paragraph`,text:`I spent a good while just learning. How blockchain works, what the different cryptocurrencies actually do, why the prices swing so wildly. Free resources, podcasts and reputable news sites are the best starting point I have found. The voices I would steer well clear of are the ones on social media promising quick riches.`},{type:`heading`,text:`A Cautious Approach`},{type:`list`,items:[`Only invest money you can afford to lose entirely.`,`Start with a very small amount to learn the mechanics.`,`Stick to established cryptocurrencies like Bitcoin or Ethereum at first.`,`Use reputable, regulated exchanges.`,`Never share your private keys or seed phrases.`]},{type:`heading`,text:`Keep Perspective`},{type:`paragraph`,text:`For me, cryptocurrency belongs as a small part of a wider portfolio, never the whole plan. I treat it as a long-term position rather than a get-rich-quick scheme. The people who seem to do best are the ones who buy, learn and hold, not the ones who panic-sell at every dip.`},{type:`quote`,text:`Risk comes from not knowing what you are doing. — Warren Buffett`}]},{id:6,title:`Bitcoin and Cryptocurrency: A Practical Perspective`,excerpt:`Cutting through the hype to share what I think digital currencies really mean for ordinary people.`,date:`Feb 5, 2025`,readTime:`8 min`,content:[{type:`paragraph`,text:`Cryptocurrency has been called everything from the future of money to a speculative bubble. The truth, as I see it, lies somewhere in between. For an everyday person like me, getting the basics straight has mattered far more than chasing the latest coin.`},{type:`heading`,text:`What Is Cryptocurrency?`},{type:`paragraph`,text:`At its simplest, and this is the explanation that finally made it click for me, cryptocurrency is digital money that runs on a decentralised network. Unlike ordinary currencies controlled by central banks, it uses blockchain technology to verify and record transactions without a middleman.`},{type:`heading`,text:`Should You Invest?`},{type:`paragraph`,text:`My honest answer is: only what you can afford to lose. These markets are volatile, and prices can swing wildly in a matter of hours. If you are curious, I would start by learning rather than buying, and understand the risks before you commit any money.`},{type:`list`,items:[`Never invest money you cannot afford to lose.`,`Be wary of anyone promising guaranteed returns.`,`Use reputable exchanges and turn on the security features.`,`Diversify. Do not put all your savings into crypto.`]},{type:`quote`,text:`The goal is not to predict the market, but to be prepared for it.`},{type:`heading`,text:`Looking Forward`},{type:`paragraph`,text:`Whether cryptocurrency becomes mainstream money or stays a niche asset, I am fairly sure the blockchain technology behind it is here to stay. Getting the fundamentals straight now, as I see it, puts you in a better spot whichever way the market turns.`}]}],diy:[{id:17,title:`A Primer on Painting Your Home`,excerpt:`What I have learned about water-based paints, primers, preparation, and doing the job properly.`,date:`Mar 11, 2025`,readTime:`8 min`,content:[{type:`paragraph`,text:`Over the years I have done my share of painting, and water-based paints have become my go-to, as they have for most DIYers and tradespeople. They are easy to work with, dry quickly, give off fewer fumes than oil-based paints, and clean up with nothing more than soap and water. But if there is one thing I have learned the hard way, it is that a professional, lasting finish comes down to the dull parts: primers, preparation, and the right care with your tools.`},{type:`heading`,text:`Understanding the Role of Primers`},{type:`paragraph`,text:`In plain terms, a primer is just another undercoat, but it does a very particular job. I think of it as the foundation the final coat sits on. Primers are made differently from ordinary paint. They grip the surface better, block stains, even out how much paint the surface drinks in, and give the topcoat a uniform base.`},{type:`paragraph`,text:`I have seen what happens without a good primer. The paint peels, blisters or flakes, old stains and knots bleed through, and the colour never reaches its full depth. It is not a step worth skipping.`},{type:`heading`,text:`Surface Preparation`},{type:`list`,items:[`Clean the surface thoroughly. Remove dust, grease and flaking paint.`,`Sand glossy surfaces to give the primer something to grip.`,`Fill any cracks or holes with a suitable filler and sand smooth.`,`Mask off areas you don't want painted with painter's tape.`]},{type:`heading`,text:`Safety Precautions`},{type:`list`,items:[`Work in a well-ventilated area.`,`Wear safety glasses, gloves and a dust mask when sanding.`,`Keep paint and solvents away from children and pets.`,`Dispose of materials responsibly. Do not pour paint down drains.`]},{type:`quote`,text:`A good paint job is 80% preparation and 20% application.`}]},{id:18,title:`Using a Drop Saw Safely`,excerpt:`A safety guide born from respect for a tool I have come to rely on in the workshop.`,date:`Mar 3, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`A drop saw, also called a mitre saw or chop saw, is one of the most useful tools I own. But like any power tool, it demands respect and careful handling, and I have never lost my healthy caution around it. Here is the routine I follow to use mine safely and well.`},{type:`heading`,text:`Before You Start`},{type:`list`,items:[`Read the manufacturer's manual thoroughly. Each model may have its own features and safety requirements.`,`Inspect the saw for any visible damage or defects before each use.`,`Check that the blade is secure, the fence is properly aligned, and all safety features are working.`]},{type:`heading`,text:`Personal Protective Equipment`},{type:`list`,items:[`Safety glasses or goggles to shield your eyes from flying debris.`,`Ear protection, whether earplugs or earmuffs, to reduce noise exposure.`,`A dust mask or respirator to avoid breathing in dust and particles.`,`Close-fitting clothing. Avoid loose sleeves and jewellery that can catch in the saw.`]},{type:`quote`,text:`Measure twice, cut once, and always keep your hands well clear of the blade.`}]},{id:19,title:`Building a Garden from Scratch`,excerpt:`A few thoughts on creating a thriving garden, even if you have never planted a seed in your life.`,date:`Feb 24, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`There is something deeply satisfying about growing things with your own hands. It is one of the simple pleasures I would not give up. Whether you have a big backyard or just a few pots on a balcony, starting a garden is one of the most rewarding projects I know.`},{type:`heading`,text:`Choose Your Spot`},{type:`paragraph`,text:`Most vegetables and herbs want at least six hours of sun a day. Spend a little time watching how the light moves across your space to find the sunniest patch. On a balcony, the spots that face the sun (north-facing here in the Southern Hemisphere) tend to do best.`},{type:`heading`,text:`Start Simple`},{type:`list`,items:[`Herbs like basil, parsley and mint are forgiving and grow fast.`,`Lettuce and spinach are easy to grow and ready to harvest in weeks.`,`Tomatoes are rewarding but need consistent watering and support.`,`Raised beds make gardening easier on your back and improve drainage.`]},{type:`heading`,text:`Soil Is Everything`},{type:`paragraph`,text:`If I have learned one lesson in the garden, it is that good soil is the foundation of everything. Invest in quality compost, work it into your beds, feed the soil regularly, and it will feed your plants in return.`},{type:`quote`,text:`To plant a garden is to believe in tomorrow. — Audrey Hepburn`},{type:`paragraph`,text:`Start small, learn as you go, and try not to be discouraged by the failures. I have killed plenty of plants over the years. Every gardener has. The only thing that really matters is that you keep planting.`}]},{id:20,title:`Organising Your Workspace on a Budget`,excerpt:`Simple, low-cost ways I have found to keep a work area tidy, and my head a little clearer.`,date:`Feb 16, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`I have always felt that a cluttered workspace leads to a cluttered mind. But getting my desk in order never needed expensive furniture or fancy storage. With a little creativity, you can build a tidy, productive workspace on almost no budget at all.`},{type:`heading`,text:`Declutter First`},{type:`paragraph`,text:`Before buying anything, I take everything off the desk and only put back what I actually use each day. It pays to be ruthless here. If I have not touched something in a month, it has no business on my desk.`},{type:`heading`,text:`Budget-Friendly Solutions`},{type:`list`,items:[`Use jars or tins for pens and stationery.`,`Repurpose shoe boxes as drawer organisers.`,`Use binder clips to manage cables.`,`A simple shelf above your desk doubles your storage.`,`Pegboards are cheap and endlessly customisable.`]},{type:`heading`,text:`Digital Declutter`},{type:`paragraph`,text:`I try to give my computer the same treatment. Clear folders, old files archived, a clean desktop. A tidy digital workspace, I have found, matters just as much as a tidy physical one.`},{type:`quote`,text:`For every minute spent organising, an hour is earned. — Benjamin Franklin`}]}],news:[{id:21,title:`What's Happening in NZ Tech`,excerpt:`A few reflections on the technology coming out of New Zealand, and why it gives me hope.`,date:`Mar 14, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`I have always taken a quiet pride in how New Zealand's technology sector punches above its weight on the world stage. From fintech innovators to agricultural-technology pioneers, Kiwi companies keep solving real problems with smart, creative ideas, and that is something I love to watch.`},{type:`heading`,text:`Key Developments`},{type:`list`,items:[`The growth of AI adoption across NZ businesses, from agriculture to healthcare.`,`Expansion of high-speed internet into rural communities.`,`NZ fintech companies gaining traction in international markets.`,`Government initiatives to support digital skills training and STEM education.`]},{type:`heading`,text:`Challenges Ahead`},{type:`paragraph`,text:`I do not want to paint too rosy a picture, though. The challenges are real. The shortage of tech talent has companies competing globally for skilled workers, cybersecurity threats keep rising, and smaller businesses often lack the resources to protect themselves properly.`},{type:`paragraph`,text:`Still, my outlook stays positive. New Zealand's reputation for innovation, paired with a quality of life few places can match, keeps drawing talent and investment from around the world.`}]},{id:22,title:`Global Markets Weekly Update`,excerpt:`My take on the movements shaping global markets this week, and what they mean for the rest of us.`,date:`Mar 7, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`Markets around the world keep picking their way through a complicated mix of interest-rate decisions, geopolitical tension and shifting economic data. Here is how I read what moved them this week, and what I think it means for everyday investors like me.`},{type:`heading`,text:`Key Takeaways`},{type:`list`,items:[`Central banks continue to signal caution on rate cuts despite easing inflation.`,`Technology stocks remain strong, driven by AI-related investment.`,`Commodity prices are stabilising after recent volatility.`,`The NZ dollar has held steady against major currencies.`]},{type:`heading`,text:`What to Watch Next Week`},{type:`paragraph`,text:`I will be keeping an eye on the key data releases, especially employment figures and consumer-confidence surveys. Any surprises there could shift the mood quickly.`},{type:`paragraph`,text:`As always, the approach I trust for the long term is to stay informed but avoid reacting to the short-term noise. In my experience, markets reward patience.`}]},{id:23,title:`Climate Action: Progress and Challenges`,excerpt:`Where I think we stand on climate change: the genuine progress, and the distance still to go.`,date:`Feb 28, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`Climate change remains, to my mind, one of the defining challenges of our generation. There is real progress to celebrate. Renewable energy is booming, electric vehicles are going mainstream, awareness has never been higher. And yet I cannot shake the feeling that the pace of change is still not fast enough to meet what the scientists tell us is needed.`},{type:`heading`,text:`Where We Are Making Progress`},{type:`list`,items:[`Solar and wind energy are now cheaper than fossil fuels in many regions.`,`Electric vehicle sales continue to grow year on year.`,`More countries and corporations are committing to net-zero targets.`,`Reforestation and conservation efforts are expanding.`]},{type:`heading`,text:`Where We Are Falling Short`},{type:`list`,items:[`Global emissions are still rising, albeit more slowly.`,`Deforestation in critical regions continues.`,`Developing nations need more support to move to clean energy.`,`Political will remains inconsistent across governments.`]},{type:`heading`,text:`What Can We Do?`},{type:`paragraph`,text:`I hold on to the belief that individual actions matter. Reducing waste, choosing sustainable products, supporting clean energy, holding our leaders to account. But I have no illusions that they are enough on their own. The systemic change we need takes collective action at every level.`},{type:`quote`,text:`We do not inherit the earth from our ancestors; we borrow it from our children.`}]}],"joseph-murphy":[{id:24,title:`The Power of Your Subconscious Mind`,excerpt:`Reflecting on Joseph Murphy's timeless teachings, and what they have meant to me.`,date:`Mar 13, 2025`,readTime:`7 min`,content:[{type:`paragraph`,text:`Among all the self-help books I have read over the years, one keeps drawing me back: Joseph Murphy's "The Power of the Subconscious Mind." It took me on a journey into the deeper recesses of my own mind, where, as Murphy puts it, belief and the quiet pull of our subconscious thoughts hold sway over our lives.`},{type:`heading`,text:`The Connection Between Mind, Prayer, and the Divine`},{type:`paragraph`,text:`What moves me most in Murphy's thinking is the link he draws between the subconscious mind, prayer and the divine. Drawing on older wisdom, much of it from the Bible, he weaves together teachings that have genuinely spoken to my own search for spiritual and personal growth.`},{type:`paragraph`,text:`I find his view of prayer especially compelling. For Murphy, prayer is not a ritual so much as a living force, one that taps into the reservoir of the subconscious and lines up our thoughts and desires with the intelligence that governs all creation.`},{type:`heading`,text:`Practical Tools for Transformation`},{type:`paragraph`,text:`Beyond religion, his principles rise above dogma and offer practical tools for change and self-mastery. Through visualisation, affirmation and a steady positive attitude, I have felt for myself how a person can begin to draw on the hidden power of the subconscious and steer towards a fuller life.`},{type:`quote`,text:`Busy your mind with the concepts of harmony, health, peace, and good will, and wonders will happen in your life.`},{type:`heading`,text:`A Beacon of Hope`},{type:`paragraph`,text:`For me, "The Power of the Subconscious Mind" is a quiet source of hope, a guide for anyone wanting to unlock their inner potential and rise above the limits of the material world. Taking its principles to heart has felt like the start of a journey towards a life of greater abundance, joy and spiritual depth.`}]},{id:25,title:`Affirmations That Transform`,excerpt:`How I came to see positive affirmations as a daily discipline that reshapes the mind.`,date:`Mar 6, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`An affirmation, as I understand it, is a positive statement that slowly reshapes the patterns of the subconscious mind when you repeat it with conviction. Joseph Murphy taught that whatever we press into the subconscious through repetition and feeling will eventually show up in our outer world, and I think there is real truth in that.`},{type:`heading`,text:`How Affirmations Work`},{type:`paragraph`,text:`What struck me is that the subconscious does not tell the difference between what is real and what is vividly imagined. When you repeat a positive affirmation with feeling and belief, the subconscious takes it as truth and begins, quietly, to bring your thoughts, actions and circumstances into line with it.`},{type:`heading`,text:`Effective Affirmations`},{type:`list`,items:[`State them in the present tense: "I am confident and capable."`,`Keep them positive: "I attract abundance" rather than "I am not poor."`,`Repeat them with feeling. Emotion is the language of the subconscious.`,`Be consistent. Morning and evening are ideal times.`]},{type:`quote`,text:`The only path by which another person can upset you is through your own thought. — Joseph Murphy`},{type:`paragraph`,text:`I have learned not to treat affirmations as magic words. They are a discipline of the mind, a way of choosing, each day, what I feed my thoughts. Over time they carve new pathways and shift the patterns we fall into without realising.`}]},{id:26,title:`Prayer and Visualisation Techniques`,excerpt:`The practical methods I have drawn from Murphy's teachings on mental imagery.`,date:`Feb 27, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`Joseph Murphy believed that prayer, rightly understood, is a conversation with your subconscious mind, and through it, with the infinite intelligence of the universe. Paired with vivid visualisation, I have found it becomes a genuinely powerful way of shaping how I experience my own reality.`},{type:`heading`,text:`The Technique of Visualisation`},{type:`paragraph`,text:`The practice I return to is simple. Find a quiet place, close your eyes, and let the body relax. I picture the outcome I hope for as though it has already happened, seeing it clearly, feeling the emotions that come with it, holding the image with gratitude and expectation.`},{type:`heading`,text:`Steps for Effective Prayer`},{type:`list`,items:[`Relax your mind and body completely.`,`State your desire clearly and simply.`,`Visualise the desired outcome as already achieved.`,`Feel the joy and gratitude of having received it.`,`Release it to your subconscious with trust and faith.`]},{type:`heading`,text:`The Sleepy State`},{type:`paragraph`,text:`One idea of Murphy's that I keep coming back to is the power of the moments just before sleep. In that drowsy state, the conscious mind lowers its guard and suggestions pass straight into the deeper mind. I try to repeat my affirmation or hold my visualisation as I drift off. It has become a small ritual I look forward to.`},{type:`quote`,text:`Whatever you impress on your subconscious mind is expressed on the screen of space as conditions, experiences, and events.`}]}],"daily-bible":[{id:27,title:`Daily Reading: Acts and Psalms`,excerpt:`Scripture readings and a few reflections from the Acts of the Apostles and the Psalms.`,date:`Mar 15, 2025`,readTime:`3 min`,content:[{type:`heading`,text:`From the Acts of the Apostles`},{type:`paragraph`,text:`A man crippled from birth was carried each day and placed at the temple gate called "the Beautiful Gate" to beg from those who entered. When he saw Peter and John about to go into the temple, he asked them for alms.`},{type:`paragraph`,text:`Peter said, "I have neither silver nor gold, but what I do have I give you: in the name of Jesus Christ the Nazorean, rise and walk." Then Peter took him by the right hand and raised him up, and immediately his feet and ankles grew strong. He leaped up, stood, and walked around, and went into the temple with them, walking and jumping and praising God.`},{type:`paragraph`,text:`I keep returning to that line: "what I do have I give you." It reminds me that what we have to give is rarely silver or gold, and almost always something worth more.`},{type:`heading`,text:`Psalm 105: Give Thanks to the Lord`},{type:`paragraph`,text:`Give thanks to the LORD, invoke his name; make known among the nations his deeds. Sing to him, sing his praise, proclaim all his wondrous deeds. Glory in his holy name; rejoice, O hearts that seek the LORD!`},{type:`quote`,text:`Seek the LORD and his strength; seek his presence constantly. — Psalm 105:4`}]},{id:28,title:`Finding Peace in Psalms`,excerpt:`Meditations on the Psalms that have brought me comfort and strength in daily life.`,date:`Mar 8, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`The Book of Psalms has been a source of comfort, strength and inspiration for thousands of years, and it has been one for me too. Written as songs and prayers, the Psalms give voice to every human emotion, from deep despair to pure joy, and they remind me, again and again, that we are never alone in our struggles.`},{type:`heading`,text:`Psalm 23: The Lord Is My Shepherd`},{type:`paragraph`,text:`Perhaps the most beloved of all the Psalms, Psalm 23 paints God as a caring shepherd who provides, protects and restores. In my own seasons of uncertainty, its words have offered me a deep sense of peace and assurance.`},{type:`quote`,text:`The LORD is my shepherd; I shall not want. He maketh me to lie down in green pastures: he leadeth me beside the still waters. He restoreth my soul. — Psalm 23:1-3`},{type:`heading`,text:`Psalm 46: God Is Our Refuge`},{type:`paragraph`,text:`When the world feels chaotic and overwhelming, I find myself drawn to Psalm 46 and its quiet instruction to be still and know that God is in control. It reads, to me, as an invitation to set down my anxiety and trust in a power greater than myself.`},{type:`quote`,text:`Be still, and know that I am God. — Psalm 46:10`}]},{id:29,title:`Faith and Work: A Daily Balance`,excerpt:`Reflections on weaving faith into our working lives without forcing it.`,date:`Mar 1, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`For many of us, work fills the largest part of our waking hours. Finding a way to bring my faith into my working life, without forcing it on anyone or shutting it away in a separate box, has been one of the more meaningful challenges I have faced.`},{type:`heading`,text:`Work as Service`},{type:`paragraph`,text:`Whatever the profession, I have come to see work itself as a kind of service. Approaching the day's tasks with integrity, kindness and care for doing things well honours both the people around me and my faith. For me it has never been about preaching at work. It is about living my values through how I act.`},{type:`quote`,text:`Whatever you do, work heartily, as for the Lord and not for men. — Colossians 3:23`},{type:`heading`,text:`Practical Ways to Integrate Faith`},{type:`list`,items:[`Start your workday with a moment of quiet reflection or prayer.`,`Treat every person you meet with dignity and respect.`,`Be honest in your dealings, even when it is difficult.`,`Take time to rest. The Sabbath principle applies to modern work too.`,`When faced with hard decisions, pause and seek wisdom.`]},{type:`paragraph`,text:`Faith at work, I have learned, is not about perfection. It is about intention. Choosing, each day, to bring my whole self, spiritual side included, to the work in front of me.`}]}],fashion:[{id:30,title:`What Fashion Means to Me`,excerpt:`A few honest thoughts on why I think the clothes we choose say more about us than we realise.`,date:`Mar 10, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`I have never quite believed that clothes are just clothes. What we put on each morning is one of the most honest forms of self-expression we have, a quiet way of telling the world who we are before we have said a single word. That is really what draws me to fashion. Not the trends, but what they reveal about us.`},{type:`heading`,text:`Why It Matters to Me`},{type:`paragraph`,text:`Over the years I have noticed a few things that have shaped how I think about getting dressed:`},{type:`list`,items:[`How a single well-chosen piece can change the way you carry yourself for a whole day.`,`That style has very little to do with money and almost everything to do with intention.`,`That the most memorable looks are rarely the most expensive ones.`,`How our choices can be kinder, to ourselves and to the planet, when we buy a little less and a little better.`]},{type:`heading`,text:`A Few Parting Thoughts`},{type:`paragraph`,text:`Whether you have thought hard about your wardrobe or never given it a second glance, my hope is simply that you start to see getting dressed as more than routine. Fashion, for me, has always been less about following the crowd and more about feeling, quietly and unmistakably, like myself.`}]},{id:31,title:`Understanding Fabrics and Quality`,excerpt:`What I have learned to look for when buying clothes that are actually made to last.`,date:`Mar 2, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`In an age of fast fashion, learning to spot quality fabric and construction is a skill I am glad I picked up. It has saved me money and a fair amount of waste. A well-made garment that lasts years is, to my mind, always better value than a cheap one that falls apart after a few washes.`},{type:`heading`,text:`Natural vs Synthetic`},{type:`paragraph`,text:`I have generally found that natural fibres, like cotton, linen, wool and silk, breathe better, last longer and feel kinder against the skin. Synthetics like polyester and nylon have their place. They are durable and wick moisture well. But in my experience they tend to trap heat and odour more readily.`},{type:`heading`,text:`Signs of Quality`},{type:`list`,items:[`Even, tight stitching with no loose threads.`,`Pattern matching at the seams, so checks and stripes align.`,`Reinforced stress points at buttons, zips and pockets.`,`Natural fibre content listed on the label.`,`The garment holds its shape when gently stretched.`]},{type:`heading`,text:`The Cost-Per-Wear Approach`},{type:`paragraph`,text:`The idea that finally changed how I shop is cost-per-wear. Divide the price of a garment by the number of times you expect to wear it. A two-hundred-dollar jacket worn two hundred times costs a dollar a wear. A thirty-dollar one that falls apart after five wears costs six. Quality, almost every time, turns out to be the better buy.`}]}],"young-parents":[{id:32,title:`What the Early Years Taught Me`,excerpt:`Reflections on parenthood: the sleepless nights, the small victories, and what I wish I had known sooner.`,date:`Mar 9, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`Of all the things I have done in my life, raising children has been the most humbling. Nothing quite prepares you for it, and no two days are ever the same. These are a few of the reflections that have stayed with me through the early years, offered not as expert advice but simply as one parent to another.`},{type:`heading`,text:`What I've Learned`},{type:`list`,items:[`That the long nights really do pass, even when they feel endless.`,`That children watch what we do far more closely than they listen to what we say.`,`That asking for help is a strength, never a failure.`,`That the small, ordinary moments are the ones you end up remembering most.`]},{type:`heading`,text:`You Are Not Alone in It`},{type:`paragraph`,text:`If there is one thing I would want any new parent to know, it is that feeling overwhelmed is not a sign you are doing it wrong. Parenthood is a journey best shared, and the questions you are quietly asking yourself are the same ones so many of us have asked. Whether you are getting through sleepless nights, celebrating first steps, or wrestling with school choices, you are in good company.`},{type:`quote`,text:`Train up a child in the way he should go; even when he is old he will not depart from it. — Proverbs 22:6`}]},{id:33,title:`Balancing Parenthood and Personal Growth`,excerpt:`You do not have to lose yourself to be a good parent. A truth I had to learn for myself.`,date:`Mar 2, 2025`,readTime:`5 min`,content:[{type:`paragraph`,text:`One of the struggles I see in so many new parents, and felt keenly myself, is the sense that your own identity has been swallowed whole by parenthood. The hobbies, friendships and ambitions that once defined you can feel impossibly far away when every waking moment revolves around a tiny person who depends on you completely.`},{type:`heading`,text:`You Matter Too`},{type:`paragraph`,text:`It took me a while to accept that taking care of myself is not selfish. It is essential. A depleted parent simply has less to give. Just as the flight attendants tell us to fit our own oxygen mask first, I have learned that looking after my own wellbeing is what lets me be the parent I want to be.`},{type:`heading`,text:`Small Steps Make a Difference`},{type:`list`,items:[`Carve out even 15 minutes a day for something you enjoy.`,`Stay connected with friends. Even a text or a short call counts.`,`Set one small personal goal each month that is not about the kids.`,`Accept help when it is offered, and ask for it when it is not.`]},{type:`quote`,text:`You cannot pour from an empty cup. Take care of yourself first.`},{type:`paragraph`,text:`What I hold on to is this: our children gain from seeing a parent who has interests, passions and a sense of self. By tending to my own life, I am quietly showing them what a full, balanced one looks like. That, I think, is one of the greatest gifts I can give.`}]},{id:34,title:`Screen Time: A Balanced Approach`,excerpt:`How I try to navigate technology and children without the guilt or the extremes.`,date:`Feb 23, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`Few topics have stirred up as much guilt in me as screen time. The headlines swing between alarm and reassurance, and leave us unsure where the line should sit. What I have slowly come to believe is that screens are neither all bad nor all harmless. Context is what matters.`},{type:`heading`,text:`Quality Over Quantity`},{type:`paragraph`,text:`I have learned that not all screen time is equal. An educational app that gets a child solving problems is a world away from passively scrolling videos. When we watch together and talk about what we are seeing, screen time turns from passive viewing into something closer to active learning.`},{type:`heading`,text:`Practical Guidelines`},{type:`list`,items:[`Under 2: avoid screens other than video calls with family.`,`Ages 2-5: limit to about an hour of quality content a day.`,`Ages 6+: set consistent limits, and put homework, sleep and physical activity first.`,`All ages: no screens during meals or in the hour before bed.`]},{type:`heading`,text:`Model the Behaviour`},{type:`paragraph`,text:`The hardest lesson, and the one I keep relearning, is that children copy what we do, not what we say. If I am forever on my phone, my children will want to be too. Putting my own device down during family time and simply being there has spoken louder than any rule I have ever set.`}]}],"work-stress":[{id:35,title:`Managing Work Stresses and Working from Home`,excerpt:`Reflections on work culture, earning potential, and staying positive in the remote-work era.`,date:`Mar 11, 2025`,readTime:`6 min`,content:[{type:`paragraph`,text:`Working from home in the IT world has given me real flexibility and freedom. But I would be dishonest if I did not admit it can also bring a creeping sense of isolation, a distance from the rhythm of a team. With remote work now the norm for so many of us, there is a genuine chance to build a good career from home. Alongside the rewards, though, come quieter challenges around work culture, earnings and staying positive.`},{type:`heading`,text:`Embracing the Work Culture`},{type:`paragraph`,text:`To stay connected, I have found that communication has to be deliberate. Regular video calls, the odd virtual get-together, and keeping the channels open are what hold a remote team together. None of it happens by accident the way it does in an office.`},{type:`quote`,text:`Iron sharpens iron, and one man sharpens another. — Proverbs 27:17`},{type:`heading`,text:`Maximising Earning Potential`},{type:`paragraph`,text:`The remote world, I believe, holds real room for growth. I keep investing in my own skills, staying current with where the industry is heading, and seeking out people I can learn from. Dedication and consistency, in my experience, are what slowly pave the way to advancement.`},{type:`heading`,text:`Life Beyond Work`},{type:`paragraph`,text:`Most of all, I have had to protect a healthy balance. Clear boundaries between work hours and personal time, real engagement with hobbies and the people I love, proper self-care. A full life outside of work, I have come to see, is exactly what sharpens my performance within it.`}]},{id:36,title:`Setting Boundaries in the Remote Era`,excerpt:`How I learned to switch off when work is always just twelve steps from the kitchen.`,date:`Mar 4, 2025`,readTime:`4 min`,content:[{type:`paragraph`,text:`When your office is the spare bedroom and your commute is twelve steps from the kitchen, the line between work and life can vanish entirely. I have watched it happen to me. Setting boundaries, I have realised, is not about working less. It is about working better, and protecting the time that actually recharges you.`},{type:`heading`,text:`Create Physical Boundaries`},{type:`paragraph`,text:`Where I can, I keep a specific area for work, so that leaving it means leaving work behind. When a separate room is not an option, even a particular chair or corner of the table can become "the office", and closing the laptop becomes the signal that the day is done.`},{type:`heading`,text:`Create Time Boundaries`},{type:`list`,items:[`Set a firm start and end time for your workday.`,`Close work apps and email outside those hours.`,`Block time for lunch, away from your desk.`,`Communicate your availability clearly to your team.`]},{type:`heading`,text:`The Power of a Shutdown Ritual`},{type:`paragraph`,text:`The small habit that helped me most is a simple end-of-day ritual. I review tomorrow's tasks, close all the tabs, tidy the desk, and say "workday complete" out loud. It sounds almost silly, but it gives my brain a clear signal that it is finally time to switch off.`},{type:`quote`,text:`You will never feel truly satisfied by work until you are satisfied by life. — Heather Schuck`}]},{id:37,title:`Burnout Recovery: A Personal Guide`,excerpt:`On recognising the signs of burnout and finding the slow way back to balance.`,date:`Feb 25, 2025`,readTime:`7 min`,content:[{type:`paragraph`,text:`Burnout does not arrive overnight. That is the thing I have learned about it. It builds slowly: a skipped lunch here, a late night there, a weekend of "catching up" that never quite catches up. By the time you notice what is happening, you are exhausted, cynical, and struggling to care about work that once gave you energy.`},{type:`heading`,text:`Recognising the Signs`},{type:`list`,items:[`Chronic fatigue that sleep does not fix.`,`Growing cynicism or detachment from your work.`,`Decreased productivity despite working longer hours.`,`Physical symptoms: headaches, stomach issues, frequent illness.`,`Difficulty concentrating or making decisions.`]},{type:`heading`,text:`The Path Back`},{type:`paragraph`,text:`Recovery, in my experience, starts with admitting it. You are not weak for burning out. You simply pushed too hard for too long without enough rest or support. Here is what I have found helps in beginning the way back.`},{type:`list`,items:[`Talk to someone, whether a trusted friend, a family member, or a professional.`,`Take time off if you can, even a few days of real rest.`,`Find the root causes. Is it workload, culture, lack of control, or something else?`,`Bring back activities that give you joy and have nothing to do with work.`,`Set firm boundaries going forward. Burnout recovery without boundary change is just a pause.`]},{type:`quote`,text:`Rest is not idleness, and to lie sometimes on the grass under trees on a summer's day is by no means a waste of time. — John Lubbock`},{type:`paragraph`,text:`Above all, I would say this: be patient with yourself. Recovery is not a straight line. There are good days and there are setbacks. What matters is that you have seen the problem clearly and started to act on it. That, I think, takes real courage.`}]}]};function oi(){let e=typeof localStorage<`u`?localStorage.getItem(`niknit-nav`):null;if(e)try{return JSON.parse(e)}catch{}return JSON.parse(JSON.stringify(ii))}function si(e){localStorage.setItem(`niknit-nav`,JSON.stringify(e)),window.dispatchEvent(new Event(`nav-updated`))}var ci=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),M=o(((e,t)=>{t.exports=ci()}))();function li(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(oi),o=k();(0,_.useEffect)(()=>{let e=()=>a(oi());return window.addEventListener(`nav-updated`,e),()=>window.removeEventListener(`nav-updated`,e)},[]),(0,_.useEffect)(()=>{t(!1)},[o.pathname]);let s=e=>e===`/`?o.pathname===`/`:o.pathname.startsWith(e);return(0,M.jsxs)(`nav`,{className:`bg-[#1a1a2e]/95 backdrop-blur sticky top-0 z-50 shadow-lg border-b border-white/5`,"data-id":`z6u2rx0vh`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsxs)(`div`,{className:`max-w-[1140px] mx-auto px-4`,"data-id":`a0r0gvcxv`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between py-3`,"data-id":`4a0aqanid`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsxs)(In,{to:`/`,className:`flex items-center gap-3 group`,"data-id":`ykctmqcmh`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsx)(`span`,{className:`w-10 h-10 rounded-full bg-[#0f0f1a] border-2 border-[#D4A843] flex items-center justify-center overflow-hidden shadow-[0_0_18px_rgba(212,168,67,0.25)] group-hover:shadow-[0_0_26px_rgba(212,168,67,0.45)] transition-shadow`,"data-id":`1ie8abxq9`,"data-path":`src/components/Navbar.jsx`,children:(0,M.jsxs)(`span`,{className:`inline-flex items-center leading-none`,style:{fontFamily:`Parisienne, cursive`,fontSize:`26px`},"data-id":`q7tkgpxri`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsx)(`span`,{style:{color:`#D4A843`},"data-id":`ks2fhymg7`,"data-path":`src/components/Navbar.jsx`,children:`N`}),(0,M.jsx)(`span`,{style:{color:`#F2DC9E`,marginLeft:`-0.42em`,position:`relative`,top:`0.04em`,textShadow:`-2px 2px 3px rgba(0,0,0,0.45)`},"data-id":`lx55nhhqc`,"data-path":`src/components/Navbar.jsx`,children:`N`})]})}),(0,M.jsx)(`span`,{className:`text-[#D4A843] text-xl italic`,style:{fontFamily:`Playfair Display`},"data-id":`9g77c73wx`,"data-path":`src/components/Navbar.jsx`,children:`niknit.com`})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`c6jdxo9wp`,"data-path":`src/components/Navbar.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>r(!n),"aria-label":`Search`,className:`text-gray-400 hover:text-[#D4A843] transition-colors p-1`,"data-id":`iq2p86v7t`,"data-path":`src/components/Navbar.jsx`,children:(0,M.jsx)(Ur,{size:20,"data-id":`psl0eyywa`,"data-path":`src/components/Navbar.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>t(!e),"aria-label":`Menu`,className:`lg:hidden text-gray-400 hover:text-white transition-colors p-1`,"data-id":`krvgije56`,"data-path":`src/components/Navbar.jsx`,children:e?(0,M.jsx)(Qr,{size:24,"data-id":`qh47pturi`,"data-path":`src/components/Navbar.jsx`}):(0,M.jsx)(Fr,{size:24,"data-id":`1b7ug782f`,"data-path":`src/components/Navbar.jsx`})})]})]}),n&&(0,M.jsx)(`div`,{className:`pb-3 fade-up`,"data-id":`2419vzh1u`,"data-path":`src/components/Navbar.jsx`,children:(0,M.jsx)(`input`,{type:`text`,placeholder:`Search articles...`,className:`w-full px-4 py-2 bg-[#0f0f1a] border border-gray-600 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:border-[#2EA3F2]`,autoFocus:!0,"data-id":`odcgdi8v5`,"data-path":`src/components/Navbar.jsx`})}),(0,M.jsx)(`div`,{className:`hidden lg:flex flex-wrap items-center gap-x-1 gap-y-1 pb-3`,"data-id":`ue6aok3gk`,"data-path":`src/components/Navbar.jsx`,children:i.map(e=>(0,M.jsx)(In,{to:e.path,className:`nav-link px-3 py-1 text-sm rounded transition-colors ${s(e.path)?`text-[#D4A843] active`:`text-gray-300 hover:text-[#D4A843]`}`,"data-id":`r46zvfdgt`,"data-path":`src/components/Navbar.jsx`,children:e.label},e.path))})]}),e&&(0,M.jsx)(`div`,{className:`lg:hidden bg-[#0f0f1a] border-t border-gray-700`,"data-id":`8n223z4mo`,"data-path":`src/components/Navbar.jsx`,children:(0,M.jsx)(`div`,{className:`max-w-[1140px] mx-auto px-4 py-4 grid grid-cols-2 gap-2`,"data-id":`gpch441vw`,"data-path":`src/components/Navbar.jsx`,children:i.map(e=>(0,M.jsx)(In,{to:e.path,className:`px-3 py-2 text-sm rounded-lg transition-colors ${s(e.path)?`text-[#D4A843] bg-[#1a1a2e]`:`text-gray-300 hover:text-[#D4A843] hover:bg-[#1a1a2e]`}`,"data-id":`ghc458uly`,"data-path":`src/components/Navbar.jsx`,children:e.label},e.path))})})]})}var ui=`144afa185a2630e7e3120a86755a16c4e069e74f3f361d039d01f4d441cb4856`,di=`am9obnN5QG5pa25pdC5jb20=`,fi=()=>atob(di),pi=`NjQyMTI0NzM1MDE=`,mi=()=>atob(pi),hi=`niknit-gate-unlocked`;async function gi(e){let t=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e));return Array.from(new Uint8Array(t)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var _i=(0,_.createContext)(null);function vi({children:e}){let[t,n]=(0,_.useState)(()=>typeof localStorage<`u`&&localStorage.getItem(hi)===`1`),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(``),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(!1),p=(0,_.useCallback)(e=>{if(localStorage.getItem(hi)===`1`){e?.();return}o(()=>e||null),c(``),u(``),i(!0)},[]),m=()=>{i(!1),o(null)};return(0,M.jsxs)(_i.Provider,{value:{unlocked:t,requestUnlock:p},"data-id":`n9quoqeye`,"data-path":`src/contexts/GateContext.jsx`,children:[e,r&&(0,M.jsx)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm px-4`,onClick:m,"data-id":`nyaexevpo`,"data-path":`src/contexts/GateContext.jsx`,children:(0,M.jsxs)(`div`,{className:`relative w-full max-w-sm bg-[#1a1a2e] border border-white/10 rounded-2xl shadow-2xl p-7 text-center`,onClick:e=>e.stopPropagation(),"data-id":`0bg5qucmt`,"data-path":`src/contexts/GateContext.jsx`,children:[(0,M.jsx)(`button`,{onClick:m,"aria-label":`Close`,className:`absolute top-3 right-3 text-gray-500 hover:text-white transition-colors`,"data-id":`pniqcy6wu`,"data-path":`src/contexts/GateContext.jsx`,children:(0,M.jsx)(Qr,{size:20,"data-id":`i9ymeitq1`,"data-path":`src/contexts/GateContext.jsx`})}),(0,M.jsx)(`div`,{className:`w-12 h-12 mx-auto mb-4 rounded-full bg-[#0f0f1a] border border-[#D4A843]/40 flex items-center justify-center`,"data-id":`09fnflqoz`,"data-path":`src/contexts/GateContext.jsx`,children:(0,M.jsx)(Mr,{size:20,className:`text-[#D4A843]`,"data-id":`ldngfutky`,"data-path":`src/contexts/GateContext.jsx`})}),(0,M.jsx)(`h3`,{className:`text-white text-xl mb-2`,style:{fontFamily:`Playfair Display`},"data-id":`hqjmk6vpg`,"data-path":`src/contexts/GateContext.jsx`,children:`For Family & Friends`}),(0,M.jsx)(`p`,{className:`text-gray-400 text-sm mb-5`,"data-id":`h2r7qaz4h`,"data-path":`src/contexts/GateContext.jsx`,children:`These contact details are kept for people I know. Please enter the password to continue.`}),(0,M.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),f(!0),u(``);let t=await gi(s);if(f(!1),t===ui){localStorage.setItem(hi,`1`),n(!0),i(!1);let e=a;o(null),e?.()}else u(`That password is not right. Please try again.`),c(``)},className:`space-y-3`,"data-id":`ausowauaq`,"data-path":`src/contexts/GateContext.jsx`,children:[(0,M.jsx)(`input`,{type:`password`,autoFocus:!0,value:s,onChange:e=>c(e.target.value),placeholder:`Password`,className:`w-full px-4 py-3 bg-[#0f0f1a] border border-gray-600 rounded-lg text-white placeholder-gray-500 text-center focus:outline-none focus:border-[#D4A843]`,"data-id":`nsf0kllaa`,"data-path":`src/contexts/GateContext.jsx`}),l&&(0,M.jsx)(`p`,{className:`text-red-400 text-sm`,"data-id":`s4jywx3qe`,"data-path":`src/contexts/GateContext.jsx`,children:l}),(0,M.jsx)(`button`,{type:`submit`,disabled:d||!s,className:`w-full py-3 bg-[#D4A843] text-[#1a1a2e] rounded-lg font-semibold hover:bg-[#c39838] transition-colors disabled:opacity-50 disabled:cursor-not-allowed`,"data-id":`zvyd0d1x1`,"data-path":`src/contexts/GateContext.jsx`,children:d?`Checking…`:`Unlock`})]})]})})]})}function yi(){return(0,_.useContext)(_i)||{unlocked:!1,requestUnlock:()=>{}}}function bi(){let e=$r.slice(0,6),{unlocked:t,requestUnlock:n}=yi();return(0,M.jsx)(`footer`,{className:`bg-[#1a1a2e] text-gray-400`,"data-id":`qco7ws2l4`,"data-path":`src/components/Footer.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[1140px] mx-auto px-4 py-14`,"data-id":`i522bqrn3`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsxs)(`div`,{className:`grid md:grid-cols-3 gap-10`,"data-id":`f4recsdwb`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`kx5oetmb4`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(`h3`,{className:`text-[#D4A843] text-2xl italic mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`ajkdd3wit`,"data-path":`src/components/Footer.jsx`,children:`niknit.com`}),(0,M.jsx)(`p`,{className:`text-sm leading-relaxed`,"data-id":`4gelmcb62`,"data-path":`src/components/Footer.jsx`,children:`Living Smart: Insights, How-Tos & Honest Advice. A collection of thoughts, insights, and lessons gathered over the years — on technology, faith, family, and everything in between.`})]}),(0,M.jsxs)(`div`,{"data-id":`s0t74dyhu`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(`h4`,{className:`text-white font-semibold mb-4`,"data-id":`py5wywxnx`,"data-path":`src/components/Footer.jsx`,children:`Explore`}),(0,M.jsx)(`ul`,{className:`space-y-2 text-sm`,"data-id":`0grjsxg9v`,"data-path":`src/components/Footer.jsx`,children:e.map(e=>(0,M.jsx)(`li`,{"data-id":`2mc40yhm5`,"data-path":`src/components/Footer.jsx`,children:(0,M.jsx)(In,{to:`/category/${e.id}`,className:`hover:text-[#D4A843] transition-colors`,"data-id":`xs30k6ke2`,"data-path":`src/components/Footer.jsx`,children:e.title})},e.id))})]}),(0,M.jsxs)(`div`,{"data-id":`5kqps8qgh`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(`h4`,{className:`text-white font-semibold mb-4`,"data-id":`spxyd5zpq`,"data-path":`src/components/Footer.jsx`,children:`Contact Us`}),(0,M.jsxs)(`div`,{className:`space-y-3 text-sm`,"data-id":`7jygatwc1`,"data-path":`src/components/Footer.jsx`,children:[t?(0,M.jsxs)(`a`,{href:`mailto:${fi()}`,className:`flex items-center gap-2 hover:text-[#D4A843] transition-colors`,"data-id":`a5omo41g8`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(Pr,{size:16,"data-id":`47xvrvq4r`,"data-path":`src/components/Footer.jsx`}),` `,fi()]}):(0,M.jsxs)(`button`,{onClick:()=>n(()=>{window.location.href=`mailto:${fi()}`}),className:`flex items-center gap-2 hover:text-[#D4A843] transition-colors text-left`,"data-id":`0pnfcxria`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(Pr,{size:16,"data-id":`1iimax298`,"data-path":`src/components/Footer.jsx`}),` Email Us`]}),t?(0,M.jsxs)(`a`,{href:`https://wa.me/${mi()}`,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 hover:text-[#D4A843] transition-colors`,"data-id":`s2bxzjb2i`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(Ir,{size:16,"data-id":`aw7oeqmg2`,"data-path":`src/components/Footer.jsx`}),` WhatsApp Us`]}):(0,M.jsxs)(`button`,{onClick:()=>n(()=>{window.open(`https://wa.me/${mi()}`,`_blank`,`noopener,noreferrer`)}),className:`flex items-center gap-2 hover:text-[#D4A843] transition-colors text-left`,"data-id":`ofm9e69zy`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(Ir,{size:16,"data-id":`sbpf5za1z`,"data-path":`src/components/Footer.jsx`}),` WhatsApp Us`]})]})]})]}),(0,M.jsxs)(`div`,{className:`border-t border-gray-700 mt-10 pt-6 text-center text-sm`,"data-id":`dvgma5f2x`,"data-path":`src/components/Footer.jsx`,children:[(0,M.jsx)(`p`,{"data-id":`zzs3qtqkf`,"data-path":`src/components/Footer.jsx`,children:`We have used images on our website downloaded from unsplash.com, with thanks to the various artists.`}),(0,M.jsxs)(`p`,{className:`mt-2 text-gray-500`,"data-id":`0a7i1o2jj`,"data-path":`src/components/Footer.jsx`,children:[`© `,new Date().getFullYear(),` niknit.com. All rights reserved.`]})]})]})})}var xi={Newspaper:zr,Monitor:Lr,HeartPulse:kr,TrendingUp:qr,Wrench:Zr,Sparkles:dr,Baby:mr,Briefcase:_r,Shirt:Kr,BookOpen:gr,BookMarked:hr},Si={hero:{siteName:`niknit.com`,heading:`My Reflections`,subheading:`A Journey Through My Thoughts and Experiences`,tagline:`The thoughts I always wanted to share`,quote:`Counsel in the heart of man is like deep water; but a man of understanding will draw it out.`,quoteSource:`Proverbs 20:5`},welcome:{sectionTitle:`Questions we always ask`,heading:`Welcome to My Reflections – A Journey Through Thoughts and Experiences`,paragraphs:[`This space is a collection of thoughts, insights, and lessons gathered over the years — shaped by my experiences, the wisdom I've encountered, and the ever-evolving world around us.`,`I started this blog as a way to put into words the thoughts that have taken root in my mind — some from personal experiences, others from the questions I've pondered, and many inspired by the curious minds of my children, family, and friends.`,`Here, you won't find just another set of generic articles. Instead, you'll step into a world of musings that span technology, life lessons, personal growth, and everything in between. Some posts might make you think, others may bring a smile, and a few might even challenge your perspective.`,`So, take a moment, explore, and journey with me through the ideas that have shaped my life. I hope they resonate with you, spark curiosity, and maybe even inspire a new way of looking at things.`],closing:`Welcome, and happy reading!`,featureQuote:`Busy your mind with the concepts of harmony, health, peace, and good will, and wonders will happen in your life.`,featureQuoteLink:`/category/faith`,featureQuoteLinkText:`READ MORE in Faith & Reflection`},categories:{heading:`Categories`,subheading:`Our Answers`,description:`Real answers from life, faith, and tech — for my family and for everyone. Explore a variety of reflections that cover technology, personal growth, life lessons, and more.`},homepageType:`default`};function Ci(){let e=typeof localStorage<`u`?localStorage.getItem(`niknit-homedata`):null;if(e)try{return JSON.parse(e)}catch{}return JSON.parse(JSON.stringify(Si))}function wi(e){localStorage.setItem(`niknit-homedata`,JSON.stringify(e)),window.dispatchEvent(new Event(`homedata-updated`))}function Ti(){let[e,t]=(0,_.useState)(()=>{let e=typeof localStorage<`u`?localStorage.getItem(`niknit-articles`):null;if(e)try{return JSON.parse(e)}catch{}return ai});return(0,_.useEffect)(()=>{let e=()=>{let e=localStorage.getItem(`niknit-articles`);if(e)try{t(JSON.parse(e))}catch{}};return window.addEventListener(`articles-updated`,e),()=>window.removeEventListener(`articles-updated`,e)},[]),e}var Ei=3e3,Di=3e4;function Oi(){let{unlocked:e,requestUnlock:t}=yi(),[n,r]=(0,_.useState)({name:``,email:``,subject:``,message:``}),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(``),c=(0,_.useRef)(Date.now());return(0,M.jsx)(`section`,{className:`bg-gray-50 py-16`,"data-id":`vmyktz03a`,"data-path":`src/components/ContactSection.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[700px] mx-auto px-4`,"data-id":`xovr2vuwd`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-3xl text-center mb-2`,style:{fontFamily:`Playfair Display`},"data-id":`baoy5d9ui`,"data-path":`src/components/ContactSection.jsx`,children:`Contact Us`}),(0,M.jsx)(`p`,{className:`text-center text-gray-500 mb-8`,"data-id":`k9h3xjyzk`,"data-path":`src/components/ContactSection.jsx`,children:`We'd love to hear from you`}),i&&(0,M.jsxs)(`div`,{className:`text-center py-8 mb-4`,"data-id":`nplz88abv`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsx)(lr,{size:48,className:`mx-auto mb-4 text-green-500`,"data-id":`9zgjqcpiu`,"data-path":`src/components/ContactSection.jsx`}),(0,M.jsx)(`h3`,{className:`text-xl font-semibold text-gray-800 mb-2`,"data-id":`rbypq2om9`,"data-path":`src/components/ContactSection.jsx`,children:`Message Sent!`}),(0,M.jsx)(`p`,{className:`text-gray-500`,"data-id":`4sn2314fp`,"data-path":`src/components/ContactSection.jsx`,children:`Thank you for reaching out. We'll get back to you soon.`})]}),!i&&!e&&(0,M.jsxs)(`div`,{className:`text-center bg-white border border-gray-200 rounded-xl py-10 px-6 max-w-[500px] mx-auto`,"data-id":`rijf4lim8`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsx)(`div`,{className:`w-12 h-12 mx-auto mb-4 rounded-full bg-gray-50 border border-[#D4A843]/40 flex items-center justify-center`,"data-id":`3ovwfu760`,"data-path":`src/components/ContactSection.jsx`,children:(0,M.jsx)(Mr,{size:20,className:`text-[#D4A843]`,"data-id":`569jo0h8d`,"data-path":`src/components/ContactSection.jsx`})}),(0,M.jsx)(`p`,{className:`text-gray-600 mb-5`,"data-id":`jba4genx4`,"data-path":`src/components/ContactSection.jsx`,children:`This message form is kept for family and friends. Enter the password to send me a message.`}),(0,M.jsx)(`button`,{onClick:()=>t(),className:`px-6 py-3 bg-[#2EA3F2] text-white rounded-lg font-semibold hover:bg-[#1a8fd8] transition-colors`,"data-id":`dwrxk6b9e`,"data-path":`src/components/ContactSection.jsx`,children:`Unlock to continue`})]}),(0,M.jsxs)(`form`,{onSubmit:e=>{if(e.preventDefault(),o){a(!0),r({name:``,email:``,subject:``,message:``}),setTimeout(()=>a(!1),5e3);return}if(Date.now()-c.current<Ei){a(!0),r({name:``,email:``,subject:``,message:``}),setTimeout(()=>a(!1),5e3);return}let t=Number(localStorage.getItem(`niknit-contact-last`)||0);if(Date.now()-t<Di){a(!0),r({name:``,email:``,subject:``,message:``}),setTimeout(()=>a(!1),5e3);return}localStorage.setItem(`niknit-contact-last`,String(Date.now()));let i=localStorage.getItem(`niknit-submissions`),s=i?JSON.parse(i):[];s.push({formId:`contact-form`,data:{...n},timestamp:new Date().toISOString()}),localStorage.setItem(`niknit-submissions`,JSON.stringify(s));let l=localStorage.getItem(`niknit-sheets-url`);l&&fetch(l,{method:`POST`,mode:`no-cors`,headers:{"Content-Type":`application/json`},body:JSON.stringify({formId:`contact-form`,...n,timestamp:new Date().toISOString()})}).catch(()=>{}),a(!0),r({name:``,email:``,subject:``,message:``}),c.current=Date.now(),setTimeout(()=>a(!1),5e3)},className:`space-y-4 ${i||!e?`hidden`:``}`,"data-id":`jo7ral06n`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsxs)(`div`,{"aria-hidden":`true`,className:`absolute left-[-9999px] top-[-9999px] h-0 w-0 overflow-hidden`,tabIndex:-1,"data-id":`zqj7s49ox`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsx)(`label`,{htmlFor:`contact-website`,"data-id":`1f4v8uf57`,"data-path":`src/components/ContactSection.jsx`,children:`Website (leave blank)`}),(0,M.jsx)(`input`,{id:`contact-website`,name:`website`,type:`text`,tabIndex:-1,autoComplete:`off`,value:o,onChange:e=>s(e.target.value),"data-id":`75hhbuvxj`,"data-path":`src/components/ContactSection.jsx`})]}),(0,M.jsx)(`input`,{type:`text`,placeholder:`Name`,value:n.name,onChange:e=>r({...n,name:e.target.value}),className:`w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] bg-white`,required:!0,"data-id":`w5s950eln`,"data-path":`src/components/ContactSection.jsx`}),(0,M.jsx)(`input`,{type:`email`,placeholder:`Email Address`,value:n.email,onChange:e=>r({...n,email:e.target.value}),className:`w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] bg-white`,required:!0,"data-id":`5jtdgqmjs`,"data-path":`src/components/ContactSection.jsx`}),(0,M.jsx)(`input`,{type:`text`,placeholder:`Subject`,value:n.subject,onChange:e=>r({...n,subject:e.target.value}),className:`w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] bg-white`,"data-id":`p14i37cdp`,"data-path":`src/components/ContactSection.jsx`}),(0,M.jsx)(`textarea`,{placeholder:`Message`,rows:5,value:n.message,onChange:e=>r({...n,message:e.target.value}),className:`w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] bg-white resize-none`,required:!0,"data-id":`p326gjvkk`,"data-path":`src/components/ContactSection.jsx`}),(0,M.jsxs)(`button`,{type:`submit`,className:`w-full py-3 bg-[#2EA3F2] text-white rounded-lg font-semibold hover:bg-[#1a8fd8] transition-colors flex items-center justify-center gap-2`,"data-id":`4ma5316qo`,"data-path":`src/components/ContactSection.jsx`,children:[(0,M.jsx)(Wr,{size:18,"data-id":`kcky1c9qc`,"data-path":`src/components/ContactSection.jsx`}),`Submit`]})]})]})})}function ki({article:e,accentColor:t=`#2EA3F2`,categoryLabel:n}){return(0,M.jsxs)(In,{to:`/article/${e.id}`,className:`category-card group bg-white rounded-xl shadow-md overflow-hidden border border-gray-100 flex flex-col`,"data-id":`ojnmpb2gt`,"data-path":`src/components/ArticleCard.jsx`,children:[(0,M.jsx)(`div`,{className:`h-1.5`,style:{background:t},"data-id":`6j8zo64vi`,"data-path":`src/components/ArticleCard.jsx`}),(0,M.jsxs)(`div`,{className:`p-6 flex flex-col flex-1`,"data-id":`231isw16j`,"data-path":`src/components/ArticleCard.jsx`,children:[n&&(0,M.jsx)(`span`,{className:`self-start text-[11px] font-semibold uppercase tracking-wide px-2.5 py-1 rounded-full mb-3`,style:{color:t,background:`${t}14`},"data-id":`iep4m086w`,"data-path":`src/components/ArticleCard.jsx`,children:n}),(0,M.jsx)(`h3`,{className:`text-lg font-semibold mb-2 leading-snug transition-colors group-hover:text-[#1a8fd8]`,style:{fontFamily:`Playfair Display`},"data-id":`iypwrc3x7`,"data-path":`src/components/ArticleCard.jsx`,children:e.title}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-4 leading-relaxed flex-1`,"data-id":`3dqrkt162`,"data-path":`src/components/ArticleCard.jsx`,children:e.excerpt}),(0,M.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-gray-400 mt-auto`,"data-id":`mmbtdi7lo`,"data-path":`src/components/ArticleCard.jsx`,children:[(0,M.jsxs)(`span`,{className:`flex items-center gap-3`,"data-id":`jva16nu5q`,"data-path":`src/components/ArticleCard.jsx`,children:[(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,"data-id":`8petqhnip`,"data-path":`src/components/ArticleCard.jsx`,children:[(0,M.jsx)(vr,{size:12,"data-id":`3hvgxbfnr`,"data-path":`src/components/ArticleCard.jsx`}),e.date]}),(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,"data-id":`l7jx8xru4`,"data-path":`src/components/ArticleCard.jsx`,children:[(0,M.jsx)(Sr,{size:12,"data-id":`wg0glkp58`,"data-path":`src/components/ArticleCard.jsx`}),e.readTime,` read`]})]}),(0,M.jsx)(pr,{size:15,className:`opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all`,style:{color:t},"data-id":`xhty4ems7`,"data-path":`src/components/ArticleCard.jsx`})]})]})]})}var N=`https://niknit.com`,Ai=`niknit`,ji=`Living Smart: Insights, How-Tos & Honest Advice`,Mi=`Personal reflections, honest how-tos and insights on faith and the subconscious mind, wellbeing, money, technology and living smart — written in a first-person voice by niknit.`,Ni=`/welcome-niknit.png`,Pi=`${N}/favicon.svg`;function Fi(e=`/`){return!e||e===`/`?`${N}/`:N+(e.startsWith(`/`)?e:`/${e}`).replace(/\/+$/,``)}function Ii(e,t=155){if(!e)return Mi;let n=String(e).replace(/\s+/g,` `).trim();return n.length<=t?n:n.slice(0,n.lastIndexOf(` `,t)).trim()+`…`}function Li(e){if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t.toISOString().slice(0,10)}function Ri(){return{"@context":`https://schema.org`,"@type":`Organization`,name:Ai,url:`${N}/`,logo:Pi,description:Mi}}function P(){return{"@context":`https://schema.org`,"@type":`WebSite`,name:Ai,url:`${N}/`,description:Mi}}function F({title:e,description:t,path:n,datePublished:r,image:i}){return{"@context":`https://schema.org`,"@type":`BlogPosting`,headline:e,description:t,mainEntityOfPage:{"@type":`WebPage`,"@id":Fi(n)},url:Fi(n),image:i?i.startsWith(`http`)?i:N+i:`${N}${Ni}`,datePublished:r||void 0,dateModified:r||void 0,author:{"@type":`Person`,name:Ai,url:`${N}/`},publisher:Ri()}}function zi(e){return{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:e.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:Fi(e.path)}))}}function I(e,t,n){if(n==null)return;let r=document.head.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement(`meta`),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute(`content`,n)}function Bi(e,t){let n=document.head.querySelector(`link[rel="${e}"]`);n||(n=document.createElement(`link`),n.setAttribute(`rel`,e),document.head.appendChild(n)),n.setAttribute(`href`,t)}function Vi({title:e,description:t=Mi,path:n=`/`,type:r=`website`,image:i=Ni,jsonLd:a,noindex:o=!1}){return(0,_.useEffect)(()=>{let s=e?`${e} | ${Ai}`:`${Ai} | ${ji}`,c=Fi(n),l=i?.startsWith(`http`)?i:`${N}${i}`;document.title=s,I(`name`,`description`,t),I(`name`,`robots`,o?`noindex, nofollow`:`index, follow`),Bi(`canonical`,c),I(`property`,`og:type`,r),I(`property`,`og:title`,s),I(`property`,`og:description`,t),I(`property`,`og:url`,c),I(`property`,`og:image`,l),I(`name`,`twitter:title`,s),I(`name`,`twitter:description`,t),I(`name`,`twitter:image`,l),document.head.querySelectorAll(`script[data-seo-jsonld]`).forEach(e=>e.remove()),(Array.isArray(a)?a.filter(Boolean):a?[a]:[]).forEach(e=>{let t=document.createElement(`script`);t.type=`application/ld+json`,t.setAttribute(`data-seo-jsonld`,``),t.textContent=JSON.stringify(e),document.head.appendChild(t)})},[e,t,n,r,i,o,JSON.stringify(a??null)]),null}function Hi({overrideId:e}){let{id:t}=bt(),n=e||t,r=Ti(),i=ti[n],a=r[n]||[],o=ni[n]||[];if(!i)return(0,M.jsxs)(`div`,{className:`max-w-[1100px] mx-auto px-4 py-20 text-center`,"data-id":`t9crg4ulr`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsx)(`h1`,{className:`text-3xl mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`r5doihnoz`,"data-path":`src/pages/CategoryPage.jsx`,children:`Category Not Found`}),(0,M.jsx)(`p`,{className:`text-gray-500`,"data-id":`2jnrl1ryk`,"data-path":`src/pages/CategoryPage.jsx`,children:`The category you're looking for doesn't exist.`})]});let s=xi[i.icon],c=a.length+o.reduce((e,t)=>e+(r[t]?.length||0),0),l=e?`/`:`/category/${n}`;return(0,M.jsxs)(`div`,{"data-id":`oast0q0or`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsx)(Vi,{title:e?null:`${i.title} — ${i.subtitle}`,description:Ii(i.description),path:l,jsonLd:zi([{name:`Home`,path:`/`},{name:i.title,path:`/category/${n}`}]),"data-id":`wb8pm50x1`,"data-path":`src/pages/CategoryPage.jsx`}),(0,M.jsxs)(`section`,{className:`page-hero py-20`,"data-id":`rbio594t0`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsx)(`div`,{className:`starfield opacity-60`,"data-id":`vjrfbxk4u`,"data-path":`src/pages/CategoryPage.jsx`}),(0,M.jsxs)(`div`,{className:`max-w-[1100px] mx-auto px-4 relative z-10 text-center fade-up`,"data-id":`9ieol0ep6`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsx)(`div`,{className:`w-20 h-20 rounded-full mx-auto mb-5 flex items-center justify-center`,style:{background:`${i.color}26`,boxShadow:`0 0 40px ${i.color}40`},"data-id":`3x17ao45r`,"data-path":`src/pages/CategoryPage.jsx`,children:s&&(0,M.jsx)(s,{size:36,style:{color:i.color},"data-id":`vdo5ksxsd`,"data-path":`src/pages/CategoryPage.jsx`})}),(0,M.jsx)(`h1`,{className:`text-white text-4xl md:text-5xl mb-3`,style:{fontFamily:`Playfair Display`},"data-id":`sb8bulqjt`,"data-path":`src/pages/CategoryPage.jsx`,children:i.title}),(0,M.jsx)(`p`,{className:`text-gray-300 text-lg`,"data-id":`xfb33thky`,"data-path":`src/pages/CategoryPage.jsx`,children:i.subtitle}),(0,M.jsx)(`p`,{className:`text-gray-400 mt-4 max-w-2xl mx-auto text-[15px]`,"data-id":`ptf72syvx`,"data-path":`src/pages/CategoryPage.jsx`,children:i.description}),(0,M.jsxs)(`p`,{className:`text-[#D4A843] text-xs font-semibold uppercase tracking-wider mt-5`,"data-id":`864hlsvgd`,"data-path":`src/pages/CategoryPage.jsx`,children:[c,` `,c===1?`article`:`articles`]})]})]}),(0,M.jsxs)(`section`,{className:`max-w-[1100px] mx-auto px-4 py-14`,"data-id":`hnb08djhy`,"data-path":`src/pages/CategoryPage.jsx`,children:[a.length>0&&(0,M.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-6`,"data-id":`ditb7y8rs`,"data-path":`src/pages/CategoryPage.jsx`,children:a.map(e=>(0,M.jsx)(ki,{article:e,accentColor:i.color,"data-id":`srlbbgh9s`,"data-path":`src/pages/CategoryPage.jsx`},e.id))}),a.length===0&&o.length===0&&(0,M.jsx)(`div`,{className:`text-center py-12`,"data-id":`ih83eybo1`,"data-path":`src/pages/CategoryPage.jsx`,children:(0,M.jsx)(`p`,{className:`text-gray-400 text-lg`,"data-id":`m0nflsucd`,"data-path":`src/pages/CategoryPage.jsx`,children:`Articles coming soon...`})}),o.map(e=>{let t=ti[e];if(!t)return null;let n=r[e]||[],i=xi[t.icon];return(0,M.jsxs)(`div`,{className:`${a.length>0?`mt-14 pt-12 border-t border-gray-200`:``} mb-4`,"data-id":`noocbog99`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-3 mb-2`,"data-id":`4dlal8ylj`,"data-path":`src/pages/CategoryPage.jsx`,children:[i&&(0,M.jsx)(`div`,{className:`w-11 h-11 rounded-full flex items-center justify-center`,style:{background:`${t.color}15`},"data-id":`0at9chswo`,"data-path":`src/pages/CategoryPage.jsx`,children:(0,M.jsx)(i,{size:20,style:{color:t.color},"data-id":`nrrg16ivc`,"data-path":`src/pages/CategoryPage.jsx`})}),(0,M.jsxs)(`div`,{"data-id":`s9kvi2od2`,"data-path":`src/pages/CategoryPage.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-2xl font-bold`,style:{fontFamily:`Playfair Display`,color:`#333`},"data-id":`3utpf5qwl`,"data-path":`src/pages/CategoryPage.jsx`,children:t.title}),(0,M.jsx)(`p`,{className:`text-sm text-gray-400`,"data-id":`l9s3f0gtk`,"data-path":`src/pages/CategoryPage.jsx`,children:t.subtitle})]})]}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-6 ml-[56px]`,"data-id":`iayw8tomh`,"data-path":`src/pages/CategoryPage.jsx`,children:t.description}),n.length>0?(0,M.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-6`,"data-id":`l4if5wpxn`,"data-path":`src/pages/CategoryPage.jsx`,children:n.map(e=>(0,M.jsx)(ki,{article:e,accentColor:t.color,"data-id":`arha9cvss`,"data-path":`src/pages/CategoryPage.jsx`},e.id))}):(0,M.jsx)(`p`,{className:`text-gray-400 text-center py-6`,"data-id":`nrqaxpccj`,"data-path":`src/pages/CategoryPage.jsx`,children:`Articles coming soon...`})]},e)})]})]})}function Ui(){let[e,t]=(0,_.useState)(Ci),n=Ti();(0,_.useEffect)(()=>{let e=()=>t(Ci());return window.addEventListener(`homedata-updated`,e),()=>window.removeEventListener(`homedata-updated`,e)},[]);let r=(0,_.useMemo)(()=>{let e=Object.entries(n).flatMap(([e,t])=>t.map(t=>({...t,categoryKey:e})));return e.sort((e,t)=>new Date(t.date)-new Date(e.date)),e.slice(0,6)},[n]);if(e.homepageType&&e.homepageType!=="default")return(0,M.jsx)(Hi,{overrideId:e.homepageType,"data-id":`6og793306`,"data-path":`src/pages/Home.jsx`});let{hero:i,welcome:a,categories:o}=e,s=e=>[e.id,...e.sub||[]].reduce((e,t)=>e+(n[t]?.length||0),0);return(0,M.jsxs)(`div`,{"data-id":`gdx9s75ix`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(Vi,{path:`/`,description:`${a.heading}. ${i.tagline}.`,jsonLd:[P(),Ri()],"data-id":`mboy4ux12`,"data-path":`src/pages/Home.jsx`}),(0,M.jsxs)(`section`,{className:`hero-gradient min-h-[520px] flex items-center`,"data-id":`4s3ubyvhu`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`div`,{className:`starfield`,"data-id":`c4lcynxxa`,"data-path":`src/pages/Home.jsx`}),(0,M.jsxs)(`div`,{className:`max-w-[1140px] mx-auto px-4 py-24 relative z-10 fade-up`,"data-id":`ul5z53plq`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`p`,{className:`text-[#D4A843] text-2xl italic mb-5`,style:{fontFamily:`Playfair Display`},"data-id":`wnq5h1rvm`,"data-path":`src/pages/Home.jsx`,children:i.siteName}),(0,M.jsx)(`h1`,{className:`text-white text-4xl md:text-5xl lg:text-6xl font-bold leading-[1.1] mb-3`,style:{fontFamily:`Playfair Display`},"data-id":`jyyqoj2r6`,"data-path":`src/pages/Home.jsx`,children:i.heading}),(0,M.jsx)(`p`,{className:`text-gray-200 text-xl md:text-2xl lg:text-3xl font-light tracking-wide mb-7`,"data-id":`y7bidddk9`,"data-path":`src/pages/Home.jsx`,children:i.subheading}),(0,M.jsx)(`p`,{className:`text-[#D4A843] text-sm font-semibold mb-3 uppercase tracking-wider`,"data-id":`5xk2txjmo`,"data-path":`src/pages/Home.jsx`,children:i.tagline}),(0,M.jsxs)(`blockquote`,{className:`border-l-2 border-[#D4A843]/50 pl-4 max-w-xl`,"data-id":`q8ayslw8s`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`p`,{className:`text-gray-300 text-[15px] italic`,"data-id":`4sd2hjsvn`,"data-path":`src/pages/Home.jsx`,children:i.quote}),(0,M.jsx)(`cite`,{className:`text-[#D4A843] text-sm font-bold not-italic mt-1 block`,"data-id":`9b5kocf1l`,"data-path":`src/pages/Home.jsx`,children:i.quoteSource})]}),(0,M.jsxs)(`div`,{className:`flex flex-wrap gap-3 mt-9`,"data-id":`7o7kt8z71`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsxs)(`a`,{href:`#categories`,className:`btn-gold`,"data-id":`xdh65imqc`,"data-path":`src/pages/Home.jsx`,children:[`Explore Categories `,(0,M.jsx)(pr,{size:16,"data-id":`a0i9opuie`,"data-path":`src/pages/Home.jsx`})]}),(0,M.jsxs)(`a`,{href:`#latest`,className:`inline-flex items-center gap-2 px-5 py-[0.7rem] rounded-full border border-white/25 text-gray-200 hover:border-[#D4A843] hover:text-[#D4A843] transition-colors text-sm font-semibold`,"data-id":`c7afbi107`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(dr,{size:16,"data-id":`g8uuku93r`,"data-path":`src/pages/Home.jsx`}),` Latest Reflections`]})]})]})]}),(0,M.jsx)(`section`,{className:`max-w-[1140px] mx-auto px-4 py-20`,"data-id":`6g96p8547`,"data-path":`src/pages/Home.jsx`,children:(0,M.jsxs)(`div`,{className:`grid lg:grid-cols-3 gap-12`,"data-id":`5o1p5jfac`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsxs)(`div`,{className:`lg:col-span-2`,"data-id":`lrauwcguc`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`h2`,{className:`eyebrow text-2xl mb-4`,"data-id":`o4r7pdsz7`,"data-path":`src/pages/Home.jsx`,children:a.sectionTitle}),(0,M.jsx)(`h3`,{className:`text-2xl font-semibold text-gray-800 mb-5`,style:{fontFamily:`Playfair Display`},"data-id":`gul9xd05i`,"data-path":`src/pages/Home.jsx`,children:a.heading}),(0,M.jsxs)(`div`,{className:`space-y-4 text-[15px] text-gray-600 leading-relaxed`,"data-id":`3k3um0i50`,"data-path":`src/pages/Home.jsx`,children:[a.paragraphs.map((e,t)=>(0,M.jsx)(`p`,{"data-id":`8wvu3ybia`,"data-path":`src/pages/Home.jsx`,children:e},t)),(0,M.jsx)(`p`,{className:`font-semibold text-gray-700`,"data-id":`wgkevmeij`,"data-path":`src/pages/Home.jsx`,children:a.closing})]}),(0,M.jsxs)(`div`,{className:`mt-8 p-6 bg-gradient-to-r from-[#f8f6f0] to-[#faf8f2] border-l-4 border-[#D4A843] rounded-r-lg`,"data-id":`9wfcq1rm2`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsxs)(`p`,{className:`italic text-gray-600 text-[15px]`,"data-id":`38n2fv4a5`,"data-path":`src/pages/Home.jsx`,children:[`"`,a.featureQuote,`"`]}),(0,M.jsxs)(In,{to:a.featureQuoteLink||`/category/faith`,className:`inline-flex items-center gap-1 mt-3 text-sm text-[#2EA3F2] font-semibold hover:text-[#1a8fd8]`,"data-id":`longnqz1b`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(gr,{size:14,"data-id":`2zyail918`,"data-path":`src/pages/Home.jsx`}),a.featureQuoteLinkText]})]})]}),(0,M.jsx)(`div`,{className:`hidden lg:block`,"data-id":`ir6mqs5mu`,"data-path":`src/pages/Home.jsx`,children:(0,M.jsx)(`img`,{src:`/welcome-niknit.png`,alt:`Welcome to My Reflections`,className:`rounded-xl shadow-xl w-full object-cover sticky top-28`,"data-id":`7h8bo6u5q`,"data-path":`src/pages/Home.jsx`})})]})}),(0,M.jsx)(`section`,{id:`latest`,className:`bg-gray-50 py-20 border-y border-gray-100`,"data-id":`kcububhez`,"data-path":`src/pages/Home.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[1140px] mx-auto px-4`,"data-id":`7wqfbrz3u`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`div`,{className:`flex items-end justify-between mb-10 flex-wrap gap-4`,"data-id":`w3o8jgb42`,"data-path":`src/pages/Home.jsx`,children:(0,M.jsxs)(`div`,{"data-id":`um70baoy2`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`p`,{className:`eyebrow text-lg mb-1`,"data-id":`ci1vj6nzd`,"data-path":`src/pages/Home.jsx`,children:`Fresh from the journal`}),(0,M.jsx)(`h2`,{className:`text-3xl`,style:{fontFamily:`Playfair Display`,color:`#333`},"data-id":`ril47y91j`,"data-path":`src/pages/Home.jsx`,children:`Latest Reflections`})]})}),(0,M.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-6`,"data-id":`v1vgwgwlg`,"data-path":`src/pages/Home.jsx`,children:r.map(e=>{let t=ti[e.categoryKey];return(0,M.jsx)(ki,{article:e,accentColor:t?.color||`#2EA3F2`,categoryLabel:t?.title,"data-id":`ji2sf5pex`,"data-path":`src/pages/Home.jsx`},e.id)})})]})}),(0,M.jsx)(`section`,{id:`categories`,className:`py-20`,"data-id":`36hvtas64`,"data-path":`src/pages/Home.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[1140px] mx-auto px-4`,"data-id":`t2ccxmtec`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-3xl text-center mb-2`,style:{fontFamily:`Playfair Display`,color:`#333`},"data-id":`qtffvhxaq`,"data-path":`src/pages/Home.jsx`,children:o.heading}),(0,M.jsx)(`h3`,{className:`eyebrow text-center text-lg mb-4`,"data-id":`nf017f1ff`,"data-path":`src/pages/Home.jsx`,children:o.subheading}),(0,M.jsx)(`p`,{className:`text-center text-gray-500 max-w-2xl mx-auto mb-14 text-[15px]`,"data-id":`zm6wlfp1g`,"data-path":`src/pages/Home.jsx`,children:o.description}),(0,M.jsx)(`div`,{className:`grid sm:grid-cols-2 lg:grid-cols-3 gap-6`,"data-id":`r1qro4kgp`,"data-path":`src/pages/Home.jsx`,children:$r.map(e=>{let t=xi[e.icon],n=s(e);return(0,M.jsxs)(In,{to:`/category/${e.id}`,className:`category-card group relative bg-white rounded-xl p-7 shadow-md border border-gray-100 flex flex-col`,style:{borderTop:`3px solid ${e.color}`},"data-id":`rn1av8e8b`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-start justify-between mb-4`,"data-id":`05m47lq58`,"data-path":`src/pages/Home.jsx`,children:[(0,M.jsx)(`div`,{className:`w-14 h-14 rounded-full flex items-center justify-center`,style:{background:`${e.color}15`},"data-id":`5i2l3r8s6`,"data-path":`src/pages/Home.jsx`,children:t&&(0,M.jsx)(t,{size:26,style:{color:e.color},"data-id":`4hg98rnwx`,"data-path":`src/pages/Home.jsx`})}),(0,M.jsxs)(`span`,{className:`text-xs font-semibold text-gray-400 mt-1`,"data-id":`ufx4ih2yw`,"data-path":`src/pages/Home.jsx`,children:[n,` `,n===1?`article`:`articles`]})]}),(0,M.jsx)(`h4`,{className:`text-xl font-semibold mb-1`,style:{fontFamily:`Playfair Display`,color:`#333`},"data-id":`uyexld40z`,"data-path":`src/pages/Home.jsx`,children:e.title}),(0,M.jsx)(`p`,{className:`text-xs uppercase tracking-wide text-gray-400 mb-3`,"data-id":`py158xwwi`,"data-path":`src/pages/Home.jsx`,children:e.subtitle}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 leading-relaxed mb-5 flex-1`,"data-id":`yxzw67n2p`,"data-path":`src/pages/Home.jsx`,children:e.description}),(0,M.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm font-semibold mt-auto`,style:{color:e.color},"data-id":`h1v1y1ejn`,"data-path":`src/pages/Home.jsx`,children:[`Explore`,(0,M.jsx)(pr,{size:14,className:`group-hover:translate-x-1 transition-transform`,"data-id":`udh58e2f7`,"data-path":`src/pages/Home.jsx`})]})]},e.id)})})]})}),(0,M.jsx)(Oi,{"data-id":`necoaor7c`,"data-path":`src/pages/Home.jsx`})]})}function Wi(e){return!e||e.length===0?(0,M.jsx)(`div`,{className:`text-center py-12 text-gray-400 italic`,"data-id":`8n55xpji9`,"data-path":`src/pages/ArticlePage.jsx`,children:(0,M.jsx)(`p`,{"data-id":`naknnkhim`,"data-path":`src/pages/ArticlePage.jsx`,children:`Article content coming soon...`})}):e.map((e,t)=>{switch(e.type){case`paragraph`:return(0,M.jsx)(`p`,{"data-id":`b0r7x0t78`,"data-path":`src/pages/ArticlePage.jsx`,children:e.text},t);case`heading`:return(0,M.jsx)(`h2`,{className:`text-2xl`,style:{fontFamily:`Playfair Display`},"data-id":`3186uy70d`,"data-path":`src/pages/ArticlePage.jsx`,children:e.text},t);case`quote`:return(0,M.jsx)(`blockquote`,{className:`border-l-4 border-[#D4A843] pl-6 py-3 my-8 bg-gray-50 rounded-r-lg`,"data-id":`4qvj2hxr5`,"data-path":`src/pages/ArticlePage.jsx`,children:(0,M.jsx)(`p`,{className:`italic text-gray-600 text-lg`,style:{fontFamily:`Playfair Display`},"data-id":`t2jgyd250`,"data-path":`src/pages/ArticlePage.jsx`,children:e.text})},t);case`list`:return(0,M.jsx)(`ul`,{className:`list-disc pl-6 space-y-2 my-4 marker:text-[#D4A843]`,"data-id":`ae33xxxdc`,"data-path":`src/pages/ArticlePage.jsx`,children:e.items.map((e,t)=>(0,M.jsx)(`li`,{"data-id":`6wk9o9j4p`,"data-path":`src/pages/ArticlePage.jsx`,children:e},t))},t);case`code`:return(0,M.jsx)(`pre`,{className:`bg-[#0f0f1a] text-[#D4A843] text-[13px] md:text-sm rounded-lg p-5 my-6 overflow-x-auto leading-relaxed font-mono whitespace-pre`,"data-id":`3buh2iq9f`,"data-path":`src/pages/ArticlePage.jsx`,children:e.text},t);default:return(0,M.jsx)(`p`,{"data-id":`n555bwa7w`,"data-path":`src/pages/ArticlePage.jsx`,children:e.text},t)}})}function Gi(){let{id:e}=bt(),t=Ti(),n=(0,_.useMemo)(()=>{for(let[n,r]of Object.entries(t)){let t=r.find(t=>t.id===Number(e));if(t)return{...t,categoryKey:n}}return null},[t,e]),r=(0,_.useMemo)(()=>n?(t[n.categoryKey]||[]).filter(e=>e.id!==n.id).slice(0,3):[],[t,n]);if(!n)return(0,M.jsxs)(`div`,{className:`max-w-[800px] mx-auto px-4 py-20 text-center`,"data-id":`3ks6dmdoh`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(`h1`,{className:`text-3xl mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`5i1f78kb8`,"data-path":`src/pages/ArticlePage.jsx`,children:`Article Not Found`}),(0,M.jsx)(`p`,{className:`text-gray-500 mb-6`,"data-id":`4o0pf8x7y`,"data-path":`src/pages/ArticlePage.jsx`,children:`The article you're looking for doesn't exist.`}),(0,M.jsx)(In,{to:`/`,className:`text-[#2EA3F2] font-semibold hover:underline`,"data-id":`l4hbq9miz`,"data-path":`src/pages/ArticlePage.jsx`,children:`Go Home`})]});let i=ri[n.categoryKey]||n.categoryKey,a=ti[i],o=ti[n.categoryKey]?.color||`#2EA3F2`,s=a?.title||`Home`,c=({className:e})=>(0,M.jsxs)(In,{to:`/category/${i}`,className:e,"data-id":`t69daez8y`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(fr,{size:16,"data-id":`9d1poz586`,"data-path":`src/pages/ArticlePage.jsx`}),`Back to `,s]}),l=`/article/${n.id}`,u=Ii(n.excerpt);return(0,M.jsxs)(`div`,{"data-id":`700bwz3lp`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(Vi,{title:n.title,description:u,path:l,type:`article`,jsonLd:[F({title:n.title,description:u,path:l,datePublished:Li(n.date)}),zi([{name:`Home`,path:`/`},{name:s,path:`/category/${i}`},{name:n.title,path:l}])],"data-id":`2c6cpyqf2`,"data-path":`src/pages/ArticlePage.jsx`}),(0,M.jsx)(`section`,{className:`page-hero py-16`,"data-id":`2j8blfjy1`,"data-path":`src/pages/ArticlePage.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[800px] mx-auto px-4 relative z-10 fade-up`,"data-id":`c006cbwqm`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(c,{className:`inline-flex items-center gap-2 text-sm text-gray-400 hover:text-[#D4A843] mb-6 transition-colors`,"data-id":`67ed1654n`,"data-path":`src/pages/ArticlePage.jsx`}),a&&(0,M.jsx)(`span`,{className:`inline-block text-[11px] font-semibold uppercase tracking-wide px-3 py-1 rounded-full mb-4`,style:{color:`#fff`,background:`${o}cc`},"data-id":`hfizvkkwc`,"data-path":`src/pages/ArticlePage.jsx`,children:a.title}),(0,M.jsx)(`h1`,{className:`text-white text-3xl md:text-4xl leading-tight mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`pb3yknfiu`,"data-path":`src/pages/ArticlePage.jsx`,children:n.title}),(0,M.jsxs)(`div`,{className:`flex items-center gap-6 text-sm text-gray-400`,"data-id":`eeuukb622`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,"data-id":`81fe1rwsa`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(vr,{size:14,"data-id":`lwj4de1s0`,"data-path":`src/pages/ArticlePage.jsx`}),n.date]}),(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,"data-id":`6oexxk28u`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(Sr,{size:14,"data-id":`tfj789med`,"data-path":`src/pages/ArticlePage.jsx`}),n.readTime,` read`]}),(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,"data-id":`diww24g4q`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(Yr,{size:14,"data-id":`g0bcytph1`,"data-path":`src/pages/ArticlePage.jsx`}),`niknit`]})]})]})}),(0,M.jsxs)(`article`,{className:`max-w-[800px] mx-auto px-4 py-12`,"data-id":`c4zkinfy9`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsx)(`p`,{className:`text-lg text-gray-600 leading-relaxed mb-8 font-medium italic border-l-4 border-[#D4A843] pl-6`,"data-id":`rja4unsse`,"data-path":`src/pages/ArticlePage.jsx`,children:n.excerpt}),(0,M.jsx)(`div`,{className:`prose-niknit space-y-6 text-[16px] text-gray-600 leading-[1.85]`,"data-id":`ohk8g8ha7`,"data-path":`src/pages/ArticlePage.jsx`,children:Wi(n.content)}),(0,M.jsx)(`div`,{className:`mt-12 pt-8 border-t border-gray-200`,"data-id":`6vbke0mmd`,"data-path":`src/pages/ArticlePage.jsx`,children:(0,M.jsx)(c,{className:`inline-flex items-center gap-2 text-[#2EA3F2] font-semibold hover:text-[#1a8fd8] transition-colors`,"data-id":`5vfvt9d00`,"data-path":`src/pages/ArticlePage.jsx`})})]}),r.length>0&&(0,M.jsx)(`section`,{className:`bg-gray-50 border-t border-gray-100 py-16`,"data-id":`l64x5d4ch`,"data-path":`src/pages/ArticlePage.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[1100px] mx-auto px-4`,"data-id":`3ortenba4`,"data-path":`src/pages/ArticlePage.jsx`,children:[(0,M.jsxs)(`h2`,{className:`text-2xl mb-8`,style:{fontFamily:`Playfair Display`,color:`#333`},"data-id":`2fp4ppiag`,"data-path":`src/pages/ArticlePage.jsx`,children:[`More from `,s]}),(0,M.jsx)(`div`,{className:`grid md:grid-cols-3 gap-6`,"data-id":`cebro96x1`,"data-path":`src/pages/ArticlePage.jsx`,children:r.map(e=>(0,M.jsx)(ki,{article:e,accentColor:o,"data-id":`6ineh3w6l`,"data-path":`src/pages/ArticlePage.jsx`},e.id))})]})})]})}function Ki({label:e,value:t,onChange:n,onSave:r,saving:i,saved:a,changed:o,isLong:s}){return(0,M.jsxs)(`div`,{className:`mb-4`,"data-id":`12fsrcxyy`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm font-medium text-gray-600 mb-1`,"data-id":`22kv3mpp8`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:e}),s?(0,M.jsx)(`textarea`,{rows:3,value:t,onChange:e=>n(e.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-gray-800 resize-y`,style:{minHeight:80},"data-id":`g7t7o3oi5`,"data-path":`src/pages/admin/HomepageEditor.jsx`}):(0,M.jsx)(`input`,{type:`text`,value:t,onChange:e=>n(e.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-gray-800`,"data-id":`zv3k4z0p9`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3 mt-1.5`,"data-id":`yd4cmmgu5`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:r,disabled:i||!o,className:`px-4 py-1.5 rounded-md text-sm font-semibold transition-all ${i||!o?`bg-gray-300 text-gray-500 cursor-default opacity-50`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e] cursor-pointer`}`,"data-id":`jyl7hjjpl`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:i?`Saving...`:`Save`}),a&&(0,M.jsx)(`span`,{className:`text-green-600 text-sm font-medium`,"data-id":`9x19xrwg6`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`✓ Saved!`})]})]})}function qi(){let[e,t]=(0,_.useState)(Ci),[n,r]=(0,_.useState)(Ci),[i,a]=(0,_.useState)({}),[o,s]=(0,_.useState)({}),c=(0,_.useCallback)(t=>{a(e=>({...e,[t]:!0})),setTimeout(()=>{wi(e),r(JSON.parse(JSON.stringify(e))),a(e=>({...e,[t]:!1})),s(e=>({...e,[t]:!0})),setTimeout(()=>s(e=>({...e,[t]:!1})),2500)},300)},[e]),l=(n,r)=>{t({...e,hero:{...e.hero,[n]:r}})},u=(n,r)=>{t({...e,welcome:{...e.welcome,[n]:r}})},d=(n,r)=>{let i=[...e.welcome.paragraphs];i[n]=r,t({...e,welcome:{...e.welcome,paragraphs:i}})},f=()=>{t({...e,welcome:{...e.welcome,paragraphs:[...e.welcome.paragraphs,``]}})},p=n=>{t({...e,welcome:{...e.welcome,paragraphs:e.welcome.paragraphs.filter((e,t)=>t!==n)}})},m=(n,r)=>{t({...e,categories:{...e.categories,[n]:r}})},h=n=>{let i={...e,homepageType:n};t(i),wi(i),r(JSON.parse(JSON.stringify(i))),s(e=>({...e,homepageType:!0})),setTimeout(()=>s(e=>({...e,homepageType:!1})),2500)},g=(t,r)=>JSON.stringify(e[t]?.[r])!==JSON.stringify(n[t]?.[r]),v=()=>JSON.stringify(e.welcome.paragraphs)!==JSON.stringify(n.welcome.paragraphs),y=[{id:`default`,label:`Default Homepage (current design)`},...ii.filter(e=>e.path!==`/`).map(e=>({id:e.path.replace(`/category/`,``),label:e.label}))];return(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8 space-y-6`,"data-id":`1w24fs8gg`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-blue-100`,"data-id":`ktvc2y20k`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-2 mb-4`,"data-id":`fyucuh8ly`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(ur,{size:18,className:`text-[#2EA3F2]`,"data-id":`g1shhq6l2`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider`,"data-id":`fjv6ggx6d`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Homepage Selection`})]}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-4`,"data-id":`b7dv3rafy`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Choose which page visitors see when they arrive at your site.`}),(0,M.jsx)(`div`,{className:`grid md:grid-cols-2 gap-3`,"data-id":`5whheiheo`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:y.map(t=>(0,M.jsx)(`button`,{onClick:()=>h(t.id),className:`p-4 rounded-lg border-2 text-left transition-all ${e.homepageType===t.id?`border-[#2EA3F2] bg-blue-50 text-gray-800`:`border-gray-200 hover:border-gray-300 text-gray-600`}`,"data-id":`rl5vv1dxm`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:(0,M.jsxs)(`div`,{className:`flex items-center justify-between`,"data-id":`mc9184gcd`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`span`,{className:`font-medium text-sm`,"data-id":`wbsq6l5m3`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:t.label}),e.homepageType===t.id&&(0,M.jsx)(`span`,{className:`text-xs bg-[#2EA3F2] text-white px-2 py-0.5 rounded-full`,"data-id":`wmyslhjwi`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Active`})]})},t.id))}),o.homepageType&&(0,M.jsx)(`p`,{className:`text-green-600 text-sm font-medium mt-3`,"data-id":`cyt8ezit4`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`✓ Homepage updated!`})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`ilre8vgjy`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`kel27ymcm`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Hero Section`}),(0,M.jsx)(Ki,{label:`Site Name`,value:e.hero.siteName,onChange:e=>l(`siteName`,e),onSave:()=>c(`hero.siteName`),saving:i[`hero.siteName`],saved:o[`hero.siteName`],changed:g(`hero`,`siteName`),"data-id":`m8mllxnn6`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Main Heading`,value:e.hero.heading,onChange:e=>l(`heading`,e),onSave:()=>c(`hero.heading`),saving:i[`hero.heading`],saved:o[`hero.heading`],changed:g(`hero`,`heading`),isLong:!0,"data-id":`4nc6n0qql`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Tagline`,value:e.hero.tagline,onChange:e=>l(`tagline`,e),onSave:()=>c(`hero.tagline`),saving:i[`hero.tagline`],saved:o[`hero.tagline`],changed:g(`hero`,`tagline`),"data-id":`yuvny777x`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Quote`,value:e.hero.quote,onChange:e=>l(`quote`,e),onSave:()=>c(`hero.quote`),saving:i[`hero.quote`],saved:o[`hero.quote`],changed:g(`hero`,`quote`),isLong:!0,"data-id":`v4kikt227`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Quote Source`,value:e.hero.quoteSource,onChange:e=>l(`quoteSource`,e),onSave:()=>c(`hero.quoteSource`),saving:i[`hero.quoteSource`],saved:o[`hero.quoteSource`],changed:g(`hero`,`quoteSource`),"data-id":`e9t33yk8x`,"data-path":`src/pages/admin/HomepageEditor.jsx`})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`v4yg0hirx`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`kus82rr8g`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Welcome Section`}),(0,M.jsx)(Ki,{label:`Section Title`,value:e.welcome.sectionTitle,onChange:e=>u(`sectionTitle`,e),onSave:()=>c(`welcome.sectionTitle`),saving:i[`welcome.sectionTitle`],saved:o[`welcome.sectionTitle`],changed:g(`welcome`,`sectionTitle`),"data-id":`pwmpn3a43`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Heading`,value:e.welcome.heading,onChange:e=>u(`heading`,e),onSave:()=>c(`welcome.heading`),saving:i[`welcome.heading`],saved:o[`welcome.heading`],changed:g(`welcome`,`heading`),isLong:!0,"data-id":`55bj3f06c`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsxs)(`div`,{className:`mb-4`,"data-id":`6gxt8eiyu`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,"data-id":`84458dy60`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`text-sm font-medium text-gray-600`,"data-id":`xupply4e2`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Welcome Paragraphs`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`ymja591gh`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>c(`welcome.paragraphs`),disabled:i[`welcome.paragraphs`]||!v(),className:`px-4 py-1.5 rounded-md text-sm font-semibold transition-all ${i[`welcome.paragraphs`]||!v()?`bg-gray-300 text-gray-500 opacity-50`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e]`}`,"data-id":`yfeyvmnez`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:i[`welcome.paragraphs`]?`Saving...`:`Save Paragraphs`}),o[`welcome.paragraphs`]&&(0,M.jsx)(`span`,{className:`text-green-600 text-sm font-medium`,"data-id":`a9qpbkf1w`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`✓ Saved!`})]})]}),e.welcome.paragraphs.map((e,t)=>(0,M.jsxs)(`div`,{className:`flex gap-2 mb-2`,"data-id":`d98dynus5`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`textarea`,{rows:2,value:e,onChange:e=>d(t,e.target.value),className:`flex-1 px-3 py-2 border border-gray-200 rounded-lg text-sm focus:outline-none focus:border-[#2EA3F2] resize-y`,"data-id":`x097i7bmr`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(`button`,{onClick:()=>p(t),className:`p-2 text-red-400 hover:text-red-600 self-start`,"data-id":`9uqmitexn`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`ka7u86owi`,"data-path":`src/pages/admin/HomepageEditor.jsx`})})]},t)),(0,M.jsxs)(`button`,{onClick:f,className:`text-sm text-[#2EA3F2] font-medium flex items-center gap-1`,"data-id":`zyd91oxyq`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`zq1zrzjfk`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),` Add paragraph`]})]}),(0,M.jsx)(Ki,{label:`Closing Line`,value:e.welcome.closing,onChange:e=>u(`closing`,e),onSave:()=>c(`welcome.closing`),saving:i[`welcome.closing`],saved:o[`welcome.closing`],changed:g(`welcome`,`closing`),"data-id":`jszqpn8ob`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Feature Quote`,value:e.welcome.featureQuote,onChange:e=>u(`featureQuote`,e),onSave:()=>c(`welcome.featureQuote`),saving:i[`welcome.featureQuote`],saved:o[`welcome.featureQuote`],changed:g(`welcome`,`featureQuote`),isLong:!0,"data-id":`ijczoshv5`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Feature Quote Link Text`,value:e.welcome.featureQuoteLinkText,onChange:e=>u(`featureQuoteLinkText`,e),onSave:()=>c(`welcome.featureQuoteLinkText`),saving:i[`welcome.featureQuoteLinkText`],saved:o[`welcome.featureQuoteLinkText`],changed:g(`welcome`,`featureQuoteLinkText`),"data-id":`fdl52k2hd`,"data-path":`src/pages/admin/HomepageEditor.jsx`})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`nqgj8q0t2`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`2kmzzc1p8`,"data-path":`src/pages/admin/HomepageEditor.jsx`,children:`Categories Section`}),(0,M.jsx)(Ki,{label:`Heading`,value:e.categories.heading,onChange:e=>m(`heading`,e),onSave:()=>c(`categories.heading`),saving:i[`categories.heading`],saved:o[`categories.heading`],changed:g(`categories`,`heading`),"data-id":`2ihpt478j`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Subheading`,value:e.categories.subheading,onChange:e=>m(`subheading`,e),onSave:()=>c(`categories.subheading`),saving:i[`categories.subheading`],saved:o[`categories.subheading`],changed:g(`categories`,`subheading`),"data-id":`xqci8ayzb`,"data-path":`src/pages/admin/HomepageEditor.jsx`}),(0,M.jsx)(Ki,{label:`Description`,value:e.categories.description,onChange:e=>m(`description`,e),onSave:()=>c(`categories.description`),saving:i[`categories.description`],saved:o[`categories.description`],changed:g(`categories`,`description`),isLong:!0,"data-id":`lnuxmcawo`,"data-path":`src/pages/admin/HomepageEditor.jsx`})]})]})}function Ji(){let[e,t]=(0,_.useState)(oi),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(``),c=()=>{si(e),r(!0),setTimeout(()=>r(!1),2500)},l=(n,r)=>{let i=[...e],a=n+r;a<0||a>=i.length||([i[n],i[a]]=[i[a],i[n]],t(i))},u=n=>{t(e.filter((e,t)=>t!==n))},d=(n,r,i)=>{let a=[...e];a[n]={...a[n],[r]:i},t(a)},f=()=>{if(!i.trim())return;let n=o.trim()||`/category/${i.toLowerCase().replace(/\s+/g,`-`)}`;t([...e,{label:i.trim(),path:n}]),a(``),s(``)},p=()=>{if(!window.confirm(`Reset navigation to default? This will undo all your changes.`))return;let e=JSON.parse(JSON.stringify(ii));t(e),si(e),r(!0),setTimeout(()=>r(!1),2500)},m=[{label:`Welcome`,path:`/`},{label:`News`,path:`/category/news`},{label:`Technology`,path:`/category/technology`},{label:`Health`,path:`/category/health`},{label:`Finance`,path:`/category/finance`},{label:`DIY Advice`,path:`/category/diy`},{label:`Joseph Murphy`,path:`/category/joseph-murphy`},{label:`Spiritual`,path:`/category/daily-bible`},{label:`Fashion`,path:`/category/fashion`},{label:`Investments`,path:`/category/investments`},{label:`Young Parents`,path:`/category/young-parents`},{label:`Work & Stress`,path:`/category/work-stress`},{label:`Bitcoin & Crypto`,path:`/category/bitcoin`}],h=e.map(e=>e.path),g=m.filter(e=>!h.includes(e.path));return(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8 space-y-6`,"data-id":`b7wh1ggle`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-5 shadow-sm border border-gray-200 flex items-center justify-between`,"data-id":`yx2txybvh`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`m282knvoh`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700`,"data-id":`2ammgzed2`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Navigation Bar`}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500`,"data-id":`lqwlt9ctv`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Drag to reorder, add or remove menu items`})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`3in110tfa`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:p,className:`px-3 py-1.5 text-sm text-gray-500 hover:text-gray-700 border border-gray-300 rounded-lg hover:bg-gray-50`,"data-id":`g5c3cdmc8`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Reset Default`}),(0,M.jsxs)(`button`,{onClick:c,className:`flex items-center gap-2 px-4 py-2 rounded-lg font-semibold text-sm transition-all ${n?`bg-green-500 text-white`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e]`}`,"data-id":`jcuc66jcz`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(Hr,{size:14,"data-id":`ncapk6ioh`,"data-path":`src/pages/admin/NavEditor.jsx`}),` `,n?`✓ Saved!`:`Save Navigation`]})]})]}),(0,M.jsxs)(`div`,{className:`bg-[#1a1a2e] rounded-xl p-4 shadow-sm`,"data-id":`oqn66jwb8`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`p`,{className:`text-xs text-gray-500 mb-2 uppercase tracking-wider`,"data-id":`e3282m8t0`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Preview`}),(0,M.jsx)(`div`,{className:`flex flex-wrap gap-x-1 gap-y-1`,"data-id":`0cdafrkth`,"data-path":`src/pages/admin/NavEditor.jsx`,children:e.map((e,t)=>(0,M.jsx)(`span`,{className:`px-3 py-1 text-sm text-gray-300 rounded`,"data-id":`dny9wmdup`,"data-path":`src/pages/admin/NavEditor.jsx`,children:e.label},t))})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`8cdkxsmox`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsxs)(`h3`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`brmhtyi9m`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[`Menu Items (`,e.length,`)`]}),(0,M.jsx)(`div`,{className:`space-y-2`,"data-id":`svx6m1u8k`,"data-path":`src/pages/admin/NavEditor.jsx`,children:e.map((e,t)=>(0,M.jsxs)(`div`,{className:`flex items-center gap-3 p-3 border border-gray-200 rounded-lg hover:border-gray-300 group`,"data-id":`16fpy5ebw`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(Or,{size:16,className:`text-gray-300 shrink-0`,"data-id":`5vinkeyxr`,"data-path":`src/pages/admin/NavEditor.jsx`}),(0,M.jsxs)(`div`,{className:`flex-1 grid grid-cols-2 gap-3`,"data-id":`24iyhwwwc`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`wz60oblwg`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-400 mb-0.5`,"data-id":`3ri29l1ws`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Label`}),(0,M.jsx)(`input`,{type:`text`,value:e.label,onChange:e=>d(t,`label`,e.target.value),className:`w-full px-3 py-1.5 border border-gray-200 rounded text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`sad9mfhuk`,"data-path":`src/pages/admin/NavEditor.jsx`})]}),(0,M.jsxs)(`div`,{"data-id":`mpgosrtm9`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-400 mb-0.5`,"data-id":`6nzpgiale`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Path`}),(0,M.jsx)(`input`,{type:`text`,value:e.path,onChange:e=>d(t,`path`,e.target.value),className:`w-full px-3 py-1.5 border border-gray-200 rounded text-sm text-gray-500 focus:outline-none focus:border-[#2EA3F2]`,"data-id":`pbg7c5vzz`,"data-path":`src/pages/admin/NavEditor.jsx`})]})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-0.5 shrink-0`,"data-id":`hrtgmb2a8`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>l(t,-1),className:`p-1 text-gray-400 hover:text-gray-600`,title:`Move up`,"data-id":`p1chf20op`,"data-path":`src/pages/admin/NavEditor.jsx`,children:(0,M.jsx)(br,{size:16,"data-id":`25942pytj`,"data-path":`src/pages/admin/NavEditor.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>l(t,1),className:`p-1 text-gray-400 hover:text-gray-600`,title:`Move down`,"data-id":`hehubkpv3`,"data-path":`src/pages/admin/NavEditor.jsx`,children:(0,M.jsx)(yr,{size:16,"data-id":`97z81wbm0`,"data-path":`src/pages/admin/NavEditor.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>u(t),className:`p-1 text-red-400 hover:text-red-600`,title:`Remove`,"data-id":`klbwpgsa7`,"data-path":`src/pages/admin/NavEditor.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`lzx0fgx7l`,"data-path":`src/pages/admin/NavEditor.jsx`})})]})]},t))})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`b69zo6exg`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`xgvpgf66h`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Add Menu Item`}),(0,M.jsxs)(`div`,{className:`flex gap-3 items-end`,"data-id":`8stq8kone`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex-1`,"data-id":`emfg1fa7g`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`on2vnuiqn`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Label`}),(0,M.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),placeholder:`e.g. About Us`,onKeyDown:e=>e.key===`Enter`&&f(),className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`5m4bmqfv4`,"data-path":`src/pages/admin/NavEditor.jsx`})]}),(0,M.jsxs)(`div`,{className:`flex-1`,"data-id":`1hkjenwbd`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`ih0ali7im`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Path (optional — auto-generated)`}),(0,M.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),placeholder:`e.g. /category/about-us`,onKeyDown:e=>e.key===`Enter`&&f(),className:`w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`fd42ogzz7`,"data-path":`src/pages/admin/NavEditor.jsx`})]}),(0,M.jsxs)(`button`,{onClick:f,className:`flex items-center gap-2 px-4 py-2 bg-[#2EA3F2] text-white rounded-lg text-sm font-semibold hover:bg-[#1a8fd8] shrink-0`,"data-id":`de4196w11`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(Br,{size:16,"data-id":`9z9e16it3`,"data-path":`src/pages/admin/NavEditor.jsx`}),` Add`]})]})]}),g.length>0&&(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`ypv1qv7ob`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-3`,"data-id":`fcg1p57nz`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`Quick Add — Available Pages`}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-4`,"data-id":`ryta5rzvj`,"data-path":`src/pages/admin/NavEditor.jsx`,children:`These pages exist but aren't in your navigation. Click to add:`}),(0,M.jsx)(`div`,{className:`flex flex-wrap gap-2`,"data-id":`7sew7llcd`,"data-path":`src/pages/admin/NavEditor.jsx`,children:g.map(n=>(0,M.jsxs)(`button`,{onClick:()=>{t([...e,{...n}])},className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-gray-100 hover:bg-blue-50 hover:text-[#2EA3F2] rounded-lg text-gray-600 transition-colors`,"data-id":`5hbjeayuf`,"data-path":`src/pages/admin/NavEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`q0emi53sr`,"data-path":`src/pages/admin/NavEditor.jsx`}),` `,n.label]},n.path))})]})]})}function Yi(){let e=localStorage.getItem(`niknit-articles`);if(e)try{return JSON.parse(e)}catch{}return JSON.parse(JSON.stringify(ai))}function Xi(e){localStorage.setItem(`niknit-articles`,JSON.stringify(e)),window.dispatchEvent(new Event(`articles-updated`))}function Zi({label:e,value:t,onChange:n,onSave:r,saving:i,saved:a,changed:o,isLong:s}){return(0,M.jsxs)(`div`,{className:`mb-4`,"data-id":`yxvakjzcc`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm font-medium text-gray-600 mb-1`,"data-id":`1vqz3gs6m`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:e}),s?(0,M.jsx)(`textarea`,{rows:3,value:t,onChange:e=>n(e.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-gray-800 resize-y`,style:{minHeight:80,fontFamily:`inherit`},"data-id":`59tr1ckz1`,"data-path":`src/pages/admin/ArticleEditor.jsx`}):(0,M.jsx)(`input`,{type:`text`,value:t,onChange:e=>n(e.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-gray-800`,"data-id":`cddubx47z`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3 mt-1.5`,"data-id":`9ldkw21ku`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:r,disabled:i||!o,className:`px-4 py-1.5 rounded-md text-sm font-semibold transition-all ${i||!o?`bg-gray-300 text-gray-500 cursor-default opacity-50`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e] cursor-pointer`}`,"data-id":`69ka5tsid`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:i?`Saving...`:`Save`}),a&&(0,M.jsx)(`span`,{className:`text-green-600 text-sm font-medium`,"data-id":`v3b22c7r3`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`✓ Saved!`})]})]})}function Qi(){let[e,t]=(0,_.useState)(Yi),[n,r]=(0,_.useState)(Yi),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)({}),[u,d]=(0,_.useState)({}),f={technology:`Technology`,health:`Health`,finance:`Finance`,diy:`DIY`,news:`News`,"joseph-murphy":`Joseph Murphy`,"daily-bible":`Spiritual`,fashion:`Fashion`,"young-parents":`Young Parents`,"work-stress":`Work & Stress`},p=(0,_.useCallback)(t=>{l(e=>({...e,[t]:!0})),d(e=>({...e,[t]:!1})),setTimeout(()=>{Xi(e),r(JSON.parse(JSON.stringify(e))),l(e=>({...e,[t]:!1})),d(e=>({...e,[t]:!0})),setTimeout(()=>d(e=>({...e,[t]:!1})),2500)},300)},[e]),m=()=>{l(e=>({...e,_all:!0})),setTimeout(()=>{Xi(e),r(JSON.parse(JSON.stringify(e))),l(e=>({...e,_all:!1})),d(e=>({...e,_all:!0})),setTimeout(()=>d(e=>({...e,_all:!1})),2500)},300)},h=t=>i===null||o===null?!1:e[i]?.[o]?.[t]!==n[i]?.[o]?.[t],g=()=>i===null||o===null?!1:JSON.stringify(e[i]?.[o]?.content)!==JSON.stringify(n[i]?.[o]?.content),v=(n,r,i,a)=>{let o={...e};o[n]=[...o[n]],o[n][r]={...o[n][r],[i]:a},t(o)},y=(n,r,i,a,o)=>{let s={...e};s[n]=[...s[n]];let c={...s[n][r]};c.content=[...c.content],c.content[i]={...c.content[i],[a]:o},s[n][r]=c,t(s)},b=(n,r,i)=>{let a={...e};a[n]=[...a[n]];let o={...a[n][r]};o.content=[...o.content],o.content.push(i===`list`?{type:`list`,items:[``]}:{type:i,text:``}),a[n][r]=o,t(a)},x=(n,r,i)=>{let a={...e};a[n]=[...a[n]];let o={...a[n][r]};o.content=o.content.filter((e,t)=>t!==i),a[n][r]=o,t(a)},ee=(n,r,i,a)=>{let o={...e};o[n]=[...o[n]];let s={...o[n][r]};s.content=[...s.content];let c=i+a;c<0||c>=s.content.length||([s.content[i],s.content[c]]=[s.content[c],s.content[i]],o[n][r]=s,t(o))},S=(n,r,i,a,o)=>{let s={...e};s[n]=[...s[n]];let c={...s[n][r]};c.content=[...c.content];let l={...c.content[i],items:[...c.content[i].items]};l.items[a]=o,c.content[i]=l,s[n][r]=c,t(s)},C=(n,r,i)=>{let a={...e};a[n]=[...a[n]];let o={...a[n][r]};o.content=[...o.content];let s={...o.content[i],items:[...o.content[i].items,``]};o.content[i]=s,a[n][r]=o,t(a)},te=(n,r,i,a)=>{let o={...e};o[n]=[...o[n]];let s={...o[n][r]};s.content=[...s.content];let c={...s.content[i],items:s.content[i].items.filter((e,t)=>t!==a)};s.content[i]=c,o[n][r]=s,t(o)},ne=n=>{let i={...e};i[n]=[...i[n]||[]];let a=Object.values(i).flat().reduce((e,t)=>Math.max(e,t.id),0);i[n].push({id:a+1,title:`New Article`,excerpt:`Article description...`,date:new Date().toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`}),readTime:`3 min`,content:[{type:`paragraph`,text:`Start writing your article here...`}]}),t(i),Xi(i),r(JSON.parse(JSON.stringify(i))),s(i[n].length-1)},re=(n,i)=>{let a=e[n][i].title;if(!window.confirm(`Are you sure you want to delete "${a}"?\n\nThis cannot be undone.`))return;let o={...e};o[n]=o[n].filter((e,t)=>t!==i),t(o),Xi(o),r(JSON.parse(JSON.stringify(o))),s(null)};if(!i)return(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`1f2b1dml0`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-lg font-semibold text-gray-700 mb-4`,"data-id":`te7v8dpvv`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`Choose a category to edit:`}),(0,M.jsx)(`div`,{className:`grid md:grid-cols-2 gap-4`,"data-id":`sqlubyldg`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:Object.entries(f).map(([t,n])=>(0,M.jsxs)(`button`,{onClick:()=>a(t),className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200 text-left hover:shadow-md hover:border-[#2EA3F2] transition-all`,"data-id":`6bq7prb2w`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h3`,{className:`text-lg font-semibold text-gray-800`,"data-id":`safjpbeoe`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:n}),(0,M.jsxs)(`p`,{className:`text-sm text-gray-500 mt-1`,"data-id":`yz2jn4ilv`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(e[t]||[]).length,` articles`]})]},t))})]});if(o===null&&i){let t=e[i]||[];return(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`8l8wg13nx`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>a(null),className:`flex items-center gap-2 text-sm text-gray-500 hover:text-[#2EA3F2] mb-4`,"data-id":`tf9f631oc`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(fr,{size:16,"data-id":`kk8941zu5`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Back to categories`]}),(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,"data-id":`2160esdgb`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-xl font-bold text-gray-800`,style:{fontFamily:`Playfair Display`},"data-id":`q9a3z2pem`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:f[i]}),(0,M.jsxs)(`button`,{onClick:()=>ne(i),className:`flex items-center gap-2 px-4 py-2 bg-[#2EA3F2] text-white rounded-lg text-sm font-semibold hover:bg-[#1a8fd8]`,"data-id":`fl54lwa9y`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Br,{size:16,"data-id":`og0p1lgo9`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` New Article`]})]}),(0,M.jsx)(`div`,{className:`space-y-3`,"data-id":`o5vwf387s`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:t.map((e,t)=>(0,M.jsxs)(`div`,{className:`bg-white rounded-xl shadow-sm border border-gray-200 flex items-center hover:shadow-md hover:border-[#2EA3F2] transition-all`,"data-id":`1bvtlsm6u`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>s(t),className:`flex-1 p-5 text-left`,"data-id":`1wl0l5ox9`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-800`,"data-id":`nwq937fo1`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:e.title}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mt-1`,"data-id":`vxkd7flw6`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:e.excerpt}),(0,M.jsxs)(`p`,{className:`text-xs text-gray-400 mt-2`,"data-id":`ktr9pq0wy`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[e.date,` · `,e.content.length,` content blocks`]})]}),(0,M.jsx)(`button`,{onClick:()=>re(i,t),className:`p-4 text-gray-300 hover:text-red-500 transition-colors`,title:`Delete article`,"data-id":`3a5y789wa`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:(0,M.jsx)(j,{size:18,"data-id":`97hew2ktd`,"data-path":`src/pages/admin/ArticleEditor.jsx`})})]},e.id))})]})}let w=e[i][o];return(0,M.jsxs)(`div`,{"data-id":`a7htego0y`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-[#0f0f1a] text-white py-3 px-4 flex items-center justify-between sticky top-[52px] z-40`,"data-id":`n248qmo39`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`fmwwj3vzz`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>s(null),className:`flex items-center gap-2 text-sm text-gray-400 hover:text-[#D4A843] mb-1`,"data-id":`cdzath2c3`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(fr,{size:14,"data-id":`8s5cqb71p`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Back to `,f[i]]}),(0,M.jsx)(`p`,{className:`text-sm font-semibold truncate max-w-[400px]`,"data-id":`mzim5qdkm`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:w.title||`Untitled`})]}),(0,M.jsxs)(In,{to:`/article/${w.id}`,target:`_blank`,className:`flex items-center gap-1 text-xs text-gray-400 hover:text-white`,"data-id":`qgn8j95za`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Er,{size:14,"data-id":`nj8drnett`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Preview`]})]}),(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-6 space-y-6`,"data-id":`xwk9pqeop`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`h1xug7us5`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`vyg4q5ldu`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`Article Details`}),(0,M.jsx)(Zi,{label:`Title`,value:w.title,onChange:e=>v(i,o,`title`,e),onSave:()=>p(`title`),saving:c.title,saved:u.title,changed:h(`title`),"data-id":`be86llevy`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),(0,M.jsx)(Zi,{label:`Excerpt (short summary)`,value:w.excerpt,onChange:e=>v(i,o,`excerpt`,e),onSave:()=>p(`excerpt`),saving:c.excerpt,saved:u.excerpt,changed:h(`excerpt`),isLong:!0,"data-id":`i1h0lbd61`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),(0,M.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,"data-id":`kozmmhans`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Zi,{label:`Date`,value:w.date,onChange:e=>v(i,o,`date`,e),onSave:()=>p(`date`),saving:c.date,saved:u.date,changed:h(`date`),"data-id":`zlps3uq8x`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),(0,M.jsx)(Zi,{label:`Read Time`,value:w.readTime,onChange:e=>v(i,o,`readTime`,e),onSave:()=>p(`readTime`),saving:c.readTime,saved:u.readTime,changed:h(`readTime`),"data-id":`ddho8wk00`,"data-path":`src/pages/admin/ArticleEditor.jsx`})]})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`5hiqtq2ma`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,"data-id":`rcj6r96i8`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider`,"data-id":`uvpqsrb4n`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`Article Content`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`fno50xohy`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`button`,{onClick:m,disabled:c._all||!g(),className:`flex items-center gap-2 px-4 py-1.5 rounded-md text-sm font-semibold transition-all ${c._all||!g()?`bg-gray-300 text-gray-500 cursor-default opacity-50`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e] cursor-pointer`}`,"data-id":`hyrijvx0c`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Hr,{size:14,"data-id":`ygolx6kcf`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),c._all?`Saving...`:`Save Content`]}),u._all&&(0,M.jsx)(`span`,{className:`text-green-600 text-sm font-medium`,"data-id":`565hn1yjz`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`✓ Saved!`})]})]}),(0,M.jsx)(`div`,{className:`space-y-4`,"data-id":`hb2rwi4rg`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:w.content.map((e,t)=>(0,M.jsxs)(`div`,{className:`border border-gray-200 rounded-lg p-4`,"data-id":`olfi8x0ef`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,"data-id":`c39zcuxue`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`span`,{className:`text-xs font-bold uppercase px-2 py-0.5 rounded ${e.type===`heading`?`bg-blue-100 text-blue-700`:e.type===`quote`?`bg-amber-100 text-amber-700`:e.type===`list`?`bg-green-100 text-green-700`:`bg-gray-100 text-gray-600`}`,"data-id":`81f304ri4`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:e.type}),(0,M.jsxs)(`div`,{className:`flex items-center gap-1`,"data-id":`en74mgxd6`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>ee(i,o,t,-1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`dqj9wx6eg`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:(0,M.jsx)(br,{size:16,"data-id":`odv4q8dpc`,"data-path":`src/pages/admin/ArticleEditor.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>ee(i,o,t,1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`po2hflpef`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:(0,M.jsx)(yr,{size:16,"data-id":`bcjlftv60`,"data-path":`src/pages/admin/ArticleEditor.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>x(i,o,t),className:`p-1 text-red-400 hover:text-red-600`,"data-id":`8s2pduzek`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`ppnb7pf44`,"data-path":`src/pages/admin/ArticleEditor.jsx`})})]})]}),e.type===`list`?(0,M.jsxs)(`div`,{className:`space-y-2`,"data-id":`6blj0j682`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[e.items.map((e,n)=>(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,"data-id":`uh0llbt1x`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`span`,{className:`text-gray-400 text-sm`,"data-id":`9r6yacdg7`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[n+1,`.`]}),(0,M.jsx)(`input`,{type:`text`,value:e,onChange:e=>S(i,o,t,n,e.target.value),className:`flex-1 px-3 py-2 border border-gray-200 rounded focus:outline-none focus:border-[#2EA3F2] text-sm`,"data-id":`9sqf64ip5`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),(0,M.jsx)(`button`,{onClick:()=>te(i,o,t,n),className:`text-red-400 hover:text-red-600`,"data-id":`82maunvfq`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:(0,M.jsx)(j,{size:14,"data-id":`8tz2udlmy`,"data-path":`src/pages/admin/ArticleEditor.jsx`})})]},n)),(0,M.jsx)(`button`,{onClick:()=>C(i,o,t),className:`text-sm text-[#2EA3F2] hover:text-[#1a8fd8] font-medium`,"data-id":`syj89cpma`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`+ Add item`})]}):e.type===`heading`?(0,M.jsx)(`input`,{type:`text`,value:e.text,onChange:e=>y(i,o,t,`text`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded focus:outline-none focus:border-[#2EA3F2] text-lg font-semibold`,style:{fontFamily:`Playfair Display`},"data-id":`82os2crz6`,"data-path":`src/pages/admin/ArticleEditor.jsx`}):(0,M.jsx)(`textarea`,{rows:e.type===`quote`?2:3,value:e.text,onChange:e=>y(i,o,t,`text`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded focus:outline-none focus:border-[#2EA3F2] resize-none text-sm ${e.type===`quote`?`italic bg-amber-50`:``}`,"data-id":`ftdeyzs5i`,"data-path":`src/pages/admin/ArticleEditor.jsx`})]},t))}),(0,M.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,"data-id":`5r4vnhjlx`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>b(i,o,`paragraph`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700`,"data-id":`1hacr800m`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`ba1leywdz`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Paragraph`]}),(0,M.jsxs)(`button`,{onClick:()=>b(i,o,`heading`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-blue-50 hover:bg-blue-100 rounded-lg text-blue-700`,"data-id":`sc827e1pu`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`niwakz5fy`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Heading`]}),(0,M.jsxs)(`button`,{onClick:()=>b(i,o,`quote`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-amber-50 hover:bg-amber-100 rounded-lg text-amber-700`,"data-id":`ih4rtu7qa`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`f697xusws`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Quote`]}),(0,M.jsxs)(`button`,{onClick:()=>b(i,o,`list`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-green-50 hover:bg-green-100 rounded-lg text-green-700`,"data-id":`ze0i9zqdf`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`akzl2mdjq`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` List`]})]})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-red-100`,"data-id":`23laucipa`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-red-600 text-sm uppercase tracking-wider mb-2`,"data-id":`ftumt4bie`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`Danger Zone`}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-4`,"data-id":`4bjj8iqc3`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:`Permanently delete this article. This action cannot be undone.`}),(0,M.jsxs)(`button`,{onClick:()=>re(i,o),className:`flex items-center gap-2 px-4 py-2 bg-red-50 text-red-600 border border-red-200 rounded-lg text-sm font-semibold hover:bg-red-100 transition-colors`,"data-id":`ih6uwvl0i`,"data-path":`src/pages/admin/ArticleEditor.jsx`,children:[(0,M.jsx)(j,{size:16,"data-id":`4e1qxcic7`,"data-path":`src/pages/admin/ArticleEditor.jsx`}),` Delete This Article`]})]})]})]})}function $i(){let e=localStorage.getItem(`niknit-forms`);if(e)try{return JSON.parse(e)}catch{}return[]}function ea(e){localStorage.setItem(`niknit-forms`,JSON.stringify(e))}var ta=[{type:`text`,label:`Text Input`,icon:`Aa`},{type:`email`,label:`Email`,icon:`@`},{type:`textarea`,label:`Text Area`,icon:`¶`},{type:`select`,label:`Dropdown`,icon:`▼`},{type:`checkbox`,label:`Checkbox`,icon:`☑`},{type:`radio`,label:`Radio Buttons`,icon:`◉`}];function na(){let[e,t]=(0,_.useState)($i),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),c=()=>{let r=[...e],i=r.findIndex(e=>e.id===n.id);i>=0?r[i]=n:r.push(n),t(r),ea(r),a(!0),setTimeout(()=>a(!1),2e3)},l=()=>{r({id:`form-`+Date.now(),name:`New Form`,description:``,fields:[{id:`f1`,type:`text`,label:`Name`,placeholder:`Enter your name`,required:!0,options:[]},{id:`f2`,type:`email`,label:`Email`,placeholder:`Enter your email`,required:!0,options:[]}],createdAt:new Date().toISOString()})},u=n=>{let r=e.filter(e=>e.id!==n);t(r),ea(r)},d=e=>{let t={id:`f`+Date.now(),type:e,label:ta.find(t=>t.type===e)?.label||`Field`,placeholder:``,required:!1,options:e===`select`||e===`radio`?[`Option 1`,`Option 2`]:[]};r({...n,fields:[...n.fields,t]})},f=(e,t,i)=>{let a=[...n.fields];a[e]={...a[e],[t]:i},r({...n,fields:a})},p=e=>{r({...n,fields:n.fields.filter((t,n)=>n!==e)})},m=(e,t)=>{let i=[...n.fields],a=e+t;a<0||a>=i.length||([i[e],i[a]]=[i[a],i[e]],r({...n,fields:i}))},h=(e,t,i)=>{let a=[...n.fields],o=[...a[e].options];o[t]=i,a[e]={...a[e],options:o},r({...n,fields:a})},g=e=>{let t=[...n.fields];t[e]={...t[e],options:[...t[e].options,``]},r({...n,fields:t})},v=(e,t)=>{let i=[...n.fields];i[e]={...i[e],options:i[e].options.filter((e,n)=>n!==t)},r({...n,fields:i})};return n?(0,M.jsxs)(`div`,{"data-id":`1tuv1p0m4`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-[#0f0f1a] text-white py-3 px-4 flex items-center justify-between sticky top-[52px] z-40`,"data-id":`nrbbq71mx`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`an86cypt4`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>r(null),className:`flex items-center gap-2 text-sm text-gray-400 hover:text-[#D4A843] mb-1`,"data-id":`1o421t0ey`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(fr,{size:14,"data-id":`jaghv71dw`,"data-path":`src/pages/admin/FormBuilder.jsx`}),` Back to forms`]}),(0,M.jsx)(`p`,{className:`text-sm font-semibold`,"data-id":`oiy9t1y1x`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:n.name||`Untitled Form`})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`wltf1hilh`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>{navigator.clipboard.writeText(window.location.origin+`/form/`+n.id),s(!0),setTimeout(()=>s(!1),2e3)},className:`flex items-center gap-1 text-xs text-gray-400 hover:text-white`,"data-id":`o2f5nde29`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(Cr,{size:14,"data-id":`0t0zvymyz`,"data-path":`src/pages/admin/FormBuilder.jsx`}),` `,o?`Copied!`:`Copy Link`]}),(0,M.jsxs)(`button`,{onClick:c,className:`flex items-center gap-2 px-4 py-1.5 rounded-lg font-semibold text-sm ${i?`bg-green-500 text-white`:`bg-[#D4A843] text-[#1a1a2e] hover:bg-[#c49a38]`}`,"data-id":`p57hl94yo`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(Hr,{size:14,"data-id":`iu4zozehx`,"data-path":`src/pages/admin/FormBuilder.jsx`}),` `,i?`Saved!`:`Save`]})]})]}),(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-6 space-y-6`,"data-id":`i38829212`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200 space-y-4`,"data-id":`26aw2c5ax`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider`,"data-id":`l5567e1zt`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Form Details`}),(0,M.jsxs)(`div`,{"data-id":`z15ujvkag`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm font-medium text-gray-600 mb-1`,"data-id":`3h6oa3wxb`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Form Name`}),(0,M.jsx)(`input`,{type:`text`,value:n.name,onChange:e=>r({...n,name:e.target.value}),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2]`,"data-id":`sds0sl4pt`,"data-path":`src/pages/admin/FormBuilder.jsx`})]}),(0,M.jsxs)(`div`,{"data-id":`09svho5ub`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm font-medium text-gray-600 mb-1`,"data-id":`i4grs94wl`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Description (optional)`}),(0,M.jsx)(`textarea`,{rows:2,value:n.description,onChange:e=>r({...n,description:e.target.value}),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] resize-none`,"data-id":`id1yonroz`,"data-path":`src/pages/admin/FormBuilder.jsx`})]})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`etkz1b9ve`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`7evs31lr8`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Form Fields`}),(0,M.jsx)(`div`,{className:`space-y-4`,"data-id":`vigwfn40r`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:n.fields.map((e,t)=>(0,M.jsxs)(`div`,{className:`border border-gray-200 rounded-lg p-4`,"data-id":`t1rlnaysx`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-3`,"data-id":`gk9a1dgzj`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,"data-id":`k1al6e898`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(Or,{size:16,className:`text-gray-300`,"data-id":`yd9tda6pu`,"data-path":`src/pages/admin/FormBuilder.jsx`}),(0,M.jsx)(`span`,{className:`text-xs font-bold uppercase px-2 py-0.5 rounded ${e.type===`email`?`bg-blue-100 text-blue-700`:e.type===`textarea`?`bg-purple-100 text-purple-700`:e.type===`select`?`bg-orange-100 text-orange-700`:e.type===`checkbox`?`bg-green-100 text-green-700`:e.type===`radio`?`bg-pink-100 text-pink-700`:`bg-gray-100 text-gray-600`}`,"data-id":`pc1yc4e97`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:e.type})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-1`,"data-id":`z3s7949r3`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>m(t,-1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`8tcc5ptna`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(br,{size:16,"data-id":`z6rp4cadx`,"data-path":`src/pages/admin/FormBuilder.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>m(t,1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`5dmrtcn4n`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(yr,{size:16,"data-id":`f301v3hcv`,"data-path":`src/pages/admin/FormBuilder.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>p(t),className:`p-1 text-red-400 hover:text-red-600`,"data-id":`csa3f8pjq`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`d1gzbpmyq`,"data-path":`src/pages/admin/FormBuilder.jsx`})})]})]}),(0,M.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,"data-id":`9g8szz7ub`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`1938bs406`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`1jguj2yjm`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Label`}),(0,M.jsx)(`input`,{type:`text`,value:e.label,onChange:e=>f(t,`label`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`i12ev0cs6`,"data-path":`src/pages/admin/FormBuilder.jsx`})]}),(0,M.jsxs)(`div`,{"data-id":`updhtjqrz`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`12qqi5vta`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Placeholder`}),(0,M.jsx)(`input`,{type:`text`,value:e.placeholder,onChange:e=>f(t,`placeholder`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`4u35va1uv`,"data-path":`src/pages/admin/FormBuilder.jsx`})]})]}),(0,M.jsxs)(`label`,{className:`flex items-center gap-2 mt-3 text-sm text-gray-600 cursor-pointer`,"data-id":`ohksc3iok`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`input`,{type:`checkbox`,checked:e.required,onChange:e=>f(t,`required`,e.target.checked),className:`rounded border-gray-300`,"data-id":`3pnc2osf6`,"data-path":`src/pages/admin/FormBuilder.jsx`}),`Required field`]}),(e.type===`select`||e.type===`radio`)&&(0,M.jsxs)(`div`,{className:`mt-3 border-t border-gray-100 pt-3`,"data-id":`161glk2gz`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-2`,"data-id":`w1s8wpmq7`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Options`}),e.options.map((e,n)=>(0,M.jsxs)(`div`,{className:`flex items-center gap-2 mb-2`,"data-id":`zm5d66cmn`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`input`,{type:`text`,value:e,onChange:e=>h(t,n,e.target.value),className:`flex-1 px-3 py-1.5 border border-gray-200 rounded text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`axiyhs4eq`,"data-path":`src/pages/admin/FormBuilder.jsx`}),(0,M.jsx)(`button`,{onClick:()=>v(t,n),className:`text-red-400 hover:text-red-600`,"data-id":`ymc92dzkz`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(j,{size:14,"data-id":`437obdeig`,"data-path":`src/pages/admin/FormBuilder.jsx`})})]},n)),(0,M.jsx)(`button`,{onClick:()=>g(t),className:`text-sm text-[#2EA3F2] hover:text-[#1a8fd8] font-medium`,"data-id":`8oxmlbzzq`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`+ Add option`})]})]},e.id))}),(0,M.jsx)(`div`,{className:`mt-4 flex flex-wrap gap-2`,"data-id":`ueus6anr7`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:ta.map(e=>(0,M.jsxs)(`button`,{onClick:()=>d(e.type),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700`,"data-id":`qrnt2zdlh`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`e76geo9ac`,"data-path":`src/pages/admin/FormBuilder.jsx`}),` `,e.label]},e.type))})]})]})]}):(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`k689yrrmv`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,"data-id":`fxsahthlp`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-lg font-semibold text-gray-700`,"data-id":`i7vclrry2`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Your Forms`}),(0,M.jsxs)(`button`,{onClick:l,className:`flex items-center gap-2 px-4 py-2 bg-[#2EA3F2] text-white rounded-lg text-sm font-semibold hover:bg-[#1a8fd8]`,"data-id":`609x3uayx`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(Br,{size:16,"data-id":`hsp0osycr`,"data-path":`src/pages/admin/FormBuilder.jsx`}),` Create Form`]})]}),e.length===0?(0,M.jsxs)(`div`,{className:`text-center py-16 text-gray-400`,"data-id":`h3i3j7dbt`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`p`,{className:`text-lg mb-2`,"data-id":`4ws3fn9cq`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`No forms yet`}),(0,M.jsx)(`p`,{className:`text-sm`,"data-id":`w9nxzjlos`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Click "Create Form" to build your first form`})]}):(0,M.jsx)(`div`,{className:`space-y-3`,"data-id":`n06ngjbd9`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:e.map(e=>(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-5 shadow-sm border border-gray-200 flex items-center justify-between`,"data-id":`v6aw80zcy`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsxs)(`div`,{className:`cursor-pointer flex-1`,onClick:()=>r({...e}),"data-id":`fof31gy6f`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-800`,"data-id":`z5a0ya39e`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:e.name}),(0,M.jsxs)(`p`,{className:`text-sm text-gray-500`,"data-id":`py08at8yn`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[e.fields.length,` fields · Created `,new Date(e.createdAt).toLocaleDateString()]})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,"data-id":`qhluwv85m`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:[(0,M.jsx)(`a`,{href:`/form/${e.id}`,target:`_blank`,className:`p-2 text-gray-400 hover:text-[#2EA3F2]`,title:`Open form`,"data-id":`f7fiod4z7`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(Tr,{size:16,"data-id":`yy78dohed`,"data-path":`src/pages/admin/FormBuilder.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>r({...e}),className:`p-2 text-gray-400 hover:text-[#2EA3F2]`,title:`Edit`,"data-id":`zksdn9eib`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:`Edit`}),(0,M.jsx)(`button`,{onClick:()=>u(e.id),className:`p-2 text-red-400 hover:text-red-600`,title:`Delete`,"data-id":`79q3tbths`,"data-path":`src/pages/admin/FormBuilder.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`u7atcvson`,"data-path":`src/pages/admin/FormBuilder.jsx`})})]})]},e.id))})]})}function ra(){let e=localStorage.getItem(`niknit-submissions`);if(e)try{return JSON.parse(e)}catch{}return[]}function ia(){let e=localStorage.getItem(`niknit-forms`);if(e)try{return JSON.parse(e)}catch{}return[]}function aa(){let[e,t]=(0,_.useState)(ra),[n,r]=(0,_.useState)(null),i=ia(),a=()=>t(ra()),o=n=>{let r=e.filter(e=>e.formId!==n);localStorage.setItem(`niknit-submissions`,JSON.stringify(r)),t(r)},s=t=>{let n=e.filter(e=>e.formId===t);if(n.length===0)return;let r=new Set;n.forEach(e=>Object.keys(e.data).forEach(e=>r.add(e)));let i=[`timestamp`,...r],a=[i.join(`,`),...n.map(e=>i.map(t=>{let n=t===`timestamp`?e.timestamp:e.data[t]||``;return`"${String(n).replace(/"/g,`""`)}"`}).join(`,`))].join(`
`),o=new Blob([a],{type:`text/csv`}),s=URL.createObjectURL(o),c=document.createElement(`a`);c.href=s,c.download=`submissions-${t}.csv`,c.click(),URL.revokeObjectURL(s)},c={};return e.forEach(e=>{c[e.formId]||(c[e.formId]=[]),c[e.formId].push(e)}),e.filter(e=>e.formId===`contact-form`),(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`t9be9ju3t`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,"data-id":`yf8f42l9s`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-lg font-semibold text-gray-700`,"data-id":`99bjpbkaz`,"data-path":`src/pages/admin/Submissions.jsx`,children:`Form Submissions`}),(0,M.jsxs)(`button`,{onClick:a,className:`flex items-center gap-2 px-3 py-1.5 text-sm text-gray-500 hover:text-[#2EA3F2] border border-gray-300 rounded-lg`,"data-id":`t1sjrfeoc`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(Vr,{size:14,"data-id":`7cv13opyv`,"data-path":`src/pages/admin/Submissions.jsx`}),` Refresh`]})]}),e.length===0?(0,M.jsxs)(`div`,{className:`text-center py-16 text-gray-400`,"data-id":`c4c959jn5`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`p`,{className:`text-lg mb-2`,"data-id":`3whg8u9wr`,"data-path":`src/pages/admin/Submissions.jsx`,children:`No submissions yet`}),(0,M.jsx)(`p`,{className:`text-sm`,"data-id":`1n8g8n23v`,"data-path":`src/pages/admin/Submissions.jsx`,children:`Form submissions will appear here when people fill out your forms`})]}):(0,M.jsx)(`div`,{className:`space-y-6`,"data-id":`q3m5zuhjf`,"data-path":`src/pages/admin/Submissions.jsx`,children:Object.entries(c).map(([e,t])=>{let a=i.find(t=>t.id===e),c=e===`contact-form`?`Contact Form`:a?.name||e,l=n===e;return(0,M.jsxs)(`div`,{className:`bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden`,"data-id":`cpjwp0va8`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsxs)(`div`,{className:`p-5 flex items-center justify-between cursor-pointer hover:bg-gray-50`,onClick:()=>r(l?null:e),"data-id":`4vk66wwsm`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`hlyp35gr3`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-800`,"data-id":`dbxixhkpy`,"data-path":`src/pages/admin/Submissions.jsx`,children:c}),(0,M.jsxs)(`p`,{className:`text-sm text-gray-500`,"data-id":`4pla3j6zb`,"data-path":`src/pages/admin/Submissions.jsx`,children:[t.length,` submission`,t.length===1?``:`s`]})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,"data-id":`dlfg1bhj6`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsxs)(`button`,{onClick:t=>{t.stopPropagation(),s(e)},className:`flex items-center gap-1 px-3 py-1.5 text-sm text-[#2EA3F2] hover:bg-blue-50 rounded-lg`,title:`Export CSV`,"data-id":`1fyclo38e`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(wr,{size:14,"data-id":`mmh2wc6qs`,"data-path":`src/pages/admin/Submissions.jsx`}),` CSV`]}),(0,M.jsx)(`button`,{onClick:t=>{t.stopPropagation(),o(e)},className:`flex items-center gap-1 px-3 py-1.5 text-sm text-red-400 hover:bg-red-50 rounded-lg`,title:`Clear`,"data-id":`u710u53i8`,"data-path":`src/pages/admin/Submissions.jsx`,children:(0,M.jsx)(j,{size:14,"data-id":`cs5o9dhd6`,"data-path":`src/pages/admin/Submissions.jsx`})})]})]}),l&&(0,M.jsx)(`div`,{className:`border-t border-gray-200 overflow-x-auto`,"data-id":`xrpwck2la`,"data-path":`src/pages/admin/Submissions.jsx`,children:(0,M.jsxs)(`table`,{className:`w-full text-sm`,"data-id":`v4mc4wiyz`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`thead`,{className:`bg-gray-50`,"data-id":`ynfl6giql`,"data-path":`src/pages/admin/Submissions.jsx`,children:(0,M.jsxs)(`tr`,{"data-id":`ykojrecac`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`th`,{className:`text-left px-4 py-2 text-xs font-semibold text-gray-500 uppercase`,"data-id":`e2bdksi6r`,"data-path":`src/pages/admin/Submissions.jsx`,children:`Time`}),Object.keys(t[0]?.data||{}).map(e=>(0,M.jsx)(`th`,{className:`text-left px-4 py-2 text-xs font-semibold text-gray-500 uppercase`,"data-id":`iwswrmuyx`,"data-path":`src/pages/admin/Submissions.jsx`,children:e},e))]})}),(0,M.jsx)(`tbody`,{"data-id":`gav6r3rhf`,"data-path":`src/pages/admin/Submissions.jsx`,children:t.slice().reverse().map((e,t)=>(0,M.jsxs)(`tr`,{className:`border-t border-gray-100 hover:bg-gray-50`,"data-id":`95lqbyd6z`,"data-path":`src/pages/admin/Submissions.jsx`,children:[(0,M.jsx)(`td`,{className:`px-4 py-2.5 text-gray-400 whitespace-nowrap`,"data-id":`g0eosykxp`,"data-path":`src/pages/admin/Submissions.jsx`,children:new Date(e.timestamp).toLocaleString()}),Object.values(e.data).map((e,t)=>(0,M.jsx)(`td`,{className:`px-4 py-2.5 text-gray-700`,"data-id":`y3v3cs425`,"data-path":`src/pages/admin/Submissions.jsx`,children:String(e)},t))]},t))})]})})]},e)})})]})}function oa(){let e=localStorage.getItem(`niknit-subscribers`);if(e)try{return JSON.parse(e)}catch{}return[]}function sa(e){localStorage.setItem(`niknit-subscribers`,JSON.stringify(e))}function ca(){let e=localStorage.getItem(`niknit-newsletters`);if(e)try{return JSON.parse(e)}catch{}return[]}function la(e){localStorage.setItem(`niknit-newsletters`,JSON.stringify(e))}function L(){let[e,t]=(0,_.useState)(`list`),[n,r]=(0,_.useState)(oa),[i,a]=(0,_.useState)(ca),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),m=()=>{if(!c||!c.includes(`@`))return;let e=[...n,{email:c,addedAt:new Date().toISOString()}];r(e),sa(e),l(``)},h=e=>{let t=n.filter((t,n)=>n!==e);r(t),sa(t)},g=()=>{s({id:`nl-`+Date.now(),subject:``,content:[{type:`paragraph`,text:``}],status:`draft`,createdAt:new Date().toISOString()}),t(`editor`)},v=()=>{let e=[...i],t=e.findIndex(e=>e.id===o.id);t>=0?e[t]=o:e.push(o),a(e),la(e),d(!0),setTimeout(()=>d(!1),2e3)},y=e=>{let t=i.filter(t=>t.id!==e);a(t),la(t)},b=e=>{let t=[...o.content];t.push(e===`list`?{type:`list`,items:[``]}:{type:e,text:``}),s({...o,content:t})},x=(e,t,n)=>{let r=[...o.content];r[e]={...r[e],[t]:n},s({...o,content:r})},ee=e=>{s({...o,content:o.content.filter((t,n)=>n!==e)})},S=(e,t)=>{let n=[...o.content],r=e+t;r<0||r>=n.length||([n[e],n[r]]=[n[r],n[e]],s({...o,content:n}))},C=(e,t,n)=>{let r=[...o.content],i=[...r[e].items];i[t]=n,r[e]={...r[e],items:i},s({...o,content:r})},te=e=>{let t=[...o.content];t[e]={...t[e],items:[...t[e].items,``]},s({...o,content:t})},ne=(e,t)=>{let n=[...o.content];n[e]={...n[e],items:n[e].items.filter((e,n)=>n!==t)},s({...o,content:n})};return e===`subscribers`?(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`gu2c31xrz`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>t(`list`),className:`flex items-center gap-2 text-sm text-gray-500 hover:text-[#2EA3F2] mb-4`,"data-id":`glxkykeuz`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(fr,{size:16,"data-id":`h5mw41ug5`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Back to newsletters`]}),(0,M.jsxs)(`h2`,{className:`text-xl font-bold text-gray-800 mb-6`,style:{fontFamily:`Playfair Display`},"data-id":`s3ly22swu`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[`Subscribers (`,n.length,`)`]}),(0,M.jsx)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200 mb-6`,"data-id":`pb2m5gqv5`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsxs)(`div`,{className:`flex gap-3`,"data-id":`9sw79vxho`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`input`,{type:`email`,value:c,onChange:e=>l(e.target.value),placeholder:`Add email address...`,onKeyDown:e=>e.key===`Enter`&&m(),className:`flex-1 px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2]`,"data-id":`o3w93mrb2`,"data-path":`src/pages/admin/Newsletter.jsx`}),(0,M.jsxs)(`button`,{onClick:m,className:`flex items-center gap-2 px-4 py-2.5 bg-[#2EA3F2] text-white rounded-lg font-semibold text-sm hover:bg-[#1a8fd8]`,"data-id":`4kh5zck63`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Jr,{size:16,"data-id":`362ya2xaq`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Add`]})]})}),n.length===0?(0,M.jsx)(`div`,{className:`text-center py-12 text-gray-400`,"data-id":`0a3ilplau`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(`p`,{"data-id":`depffwtaa`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`No subscribers yet. Add email addresses above.`})}):(0,M.jsx)(`div`,{className:`bg-white rounded-xl shadow-sm border border-gray-200 divide-y divide-gray-100`,"data-id":`09tjtvka6`,"data-path":`src/pages/admin/Newsletter.jsx`,children:n.map((e,t)=>(0,M.jsxs)(`div`,{className:`px-5 py-3 flex items-center justify-between`,"data-id":`yyqzvor4o`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`hwwjdnc0v`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`p`,{className:`text-gray-800 text-sm`,"data-id":`0r09s2i15`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.email}),(0,M.jsxs)(`p`,{className:`text-xs text-gray-400`,"data-id":`j2pks5vnb`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[`Added `,new Date(e.addedAt).toLocaleDateString()]})]}),(0,M.jsx)(`button`,{onClick:()=>h(t),className:`text-red-400 hover:text-red-600`,"data-id":`lyk7erb6s`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`5vdstocrp`,"data-path":`src/pages/admin/Newsletter.jsx`})})]},t))})]}):e===`editor`&&o?(0,M.jsxs)(`div`,{"data-id":`i5idp2h7f`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{className:`bg-[#0f0f1a] text-white py-3 px-4 flex items-center justify-between sticky top-[52px] z-40`,"data-id":`kog510b43`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`3jx0sestd`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>{t(`list`),s(null)},className:`flex items-center gap-2 text-sm text-gray-400 hover:text-[#D4A843] mb-1`,"data-id":`yojbbh5wv`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(fr,{size:14,"data-id":`7m7i6sep2`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Back`]}),(0,M.jsx)(`p`,{className:`text-sm font-semibold`,"data-id":`6n8k363e0`,"data-path":`src/pages/admin/Newsletter.jsx`,children:o.subject||`Untitled Newsletter`})]}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`wpsj79ilx`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>p(!f),className:`flex items-center gap-1 text-xs text-gray-400 hover:text-white`,"data-id":`jnu5ixicb`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Er,{size:14,"data-id":`obc09flw1`,"data-path":`src/pages/admin/Newsletter.jsx`}),` `,f?`Edit`:`Preview`]}),(0,M.jsxs)(`button`,{onClick:v,className:`flex items-center gap-2 px-4 py-1.5 rounded-lg font-semibold text-sm ${u?`bg-green-500 text-white`:`bg-[#D4A843] text-[#1a1a2e] hover:bg-[#c49a38]`}`,"data-id":`vykk6c1mb`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Hr,{size:14,"data-id":`5zwuhfjsh`,"data-path":`src/pages/admin/Newsletter.jsx`}),` `,u?`Saved!`:`Save Draft`]}),(0,M.jsxs)(`button`,{disabled:!0,className:`flex items-center gap-2 px-4 py-1.5 rounded-lg font-semibold text-sm bg-gray-600 text-gray-400 cursor-not-allowed`,title:`Connect an email service to enable sending`,"data-id":`xj70tln48`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Wr,{size:14,"data-id":`1ux4rz5p4`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Send`]})]})]}),(0,M.jsx)(`div`,{className:`max-w-[900px] mx-auto px-4 py-6 space-y-6`,"data-id":`zb2ue3567`,"data-path":`src/pages/admin/Newsletter.jsx`,children:f?(0,M.jsxs)(`div`,{className:`bg-white rounded-xl shadow-sm border border-gray-200 p-8 max-w-[600px] mx-auto`,"data-id":`z2piqz8bq`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`div`,{className:`text-center mb-6 pb-6 border-b border-gray-200`,"data-id":`mvbilg3vc`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(`h1`,{className:`text-[#D4A843] text-xl italic`,style:{fontFamily:`Playfair Display`},"data-id":`qacoop3jn`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`niknit.com`})}),(0,M.jsx)(`h2`,{className:`text-2xl font-bold text-gray-800 mb-6`,style:{fontFamily:`Playfair Display`},"data-id":`des85kib1`,"data-path":`src/pages/admin/Newsletter.jsx`,children:o.subject||`Newsletter Subject`}),(0,M.jsx)(`div`,{className:`space-y-4 text-gray-600 leading-relaxed`,"data-id":`tda73p36e`,"data-path":`src/pages/admin/Newsletter.jsx`,children:o.content.map((e,t)=>e.type===`heading`?(0,M.jsx)(`h3`,{className:`text-xl font-semibold text-gray-800 mt-6`,style:{fontFamily:`Playfair Display`},"data-id":`7ighvrqq7`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.text},t):e.type===`quote`?(0,M.jsx)(`blockquote`,{className:`border-l-4 border-[#D4A843] pl-4 italic text-gray-500 my-4`,"data-id":`uyvjagyec`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.text},t):e.type===`list`?(0,M.jsx)(`ul`,{className:`list-disc pl-6 space-y-1`,"data-id":`ph7vzwrbw`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.items.map((e,t)=>(0,M.jsx)(`li`,{"data-id":`44imzeied`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e},t))},t):(0,M.jsx)(`p`,{"data-id":`qvqzel57v`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.text},t))}),(0,M.jsx)(`div`,{className:`text-center mt-8 pt-6 border-t border-gray-200 text-xs text-gray-400`,"data-id":`voo7t0rhm`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(`p`,{"data-id":`cs8njstqb`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`You received this email because you subscribed to niknit.com`})})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`jhp05cu4k`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm font-medium text-gray-600 mb-1`,"data-id":`kkchg06ab`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`Subject Line`}),(0,M.jsx)(`input`,{type:`text`,value:o.subject,onChange:e=>s({...o,subject:e.target.value}),placeholder:`Enter newsletter subject...`,className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-lg`,"data-id":`jlzc9ol0g`,"data-path":`src/pages/admin/Newsletter.jsx`})]}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-6 shadow-sm border border-gray-200`,"data-id":`umaf75erm`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`h2`,{className:`font-semibold text-gray-700 text-sm uppercase tracking-wider mb-4`,"data-id":`negvngpm5`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`Content`}),(0,M.jsx)(`div`,{className:`space-y-4`,"data-id":`m7eqhuwse`,"data-path":`src/pages/admin/Newsletter.jsx`,children:o.content.map((e,t)=>(0,M.jsxs)(`div`,{className:`border border-gray-200 rounded-lg p-4`,"data-id":`jl5uhsads`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,"data-id":`04gkc4mgx`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`span`,{className:`text-xs font-bold uppercase px-2 py-0.5 rounded ${e.type===`heading`?`bg-blue-100 text-blue-700`:e.type===`quote`?`bg-amber-100 text-amber-700`:e.type===`list`?`bg-green-100 text-green-700`:`bg-gray-100 text-gray-600`}`,"data-id":`v54uv1ye4`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.type}),(0,M.jsxs)(`div`,{className:`flex items-center gap-1`,"data-id":`jka1j5oi2`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>S(t,-1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`w0jbmygnw`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(br,{size:16,"data-id":`qli7s3mv0`,"data-path":`src/pages/admin/Newsletter.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>S(t,1),className:`p-1 text-gray-400 hover:text-gray-600`,"data-id":`y4uks104s`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(yr,{size:16,"data-id":`xnqecmc3q`,"data-path":`src/pages/admin/Newsletter.jsx`})}),(0,M.jsx)(`button`,{onClick:()=>ee(t),className:`p-1 text-red-400 hover:text-red-600`,"data-id":`yt5qk83oc`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`s3axfbbyq`,"data-path":`src/pages/admin/Newsletter.jsx`})})]})]}),e.type===`list`?(0,M.jsxs)(`div`,{className:`space-y-2`,"data-id":`0lpkz4h86`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[e.items.map((e,n)=>(0,M.jsxs)(`div`,{className:`flex items-center gap-2`,"data-id":`y1xo81e8b`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`input`,{type:`text`,value:e,onChange:e=>C(t,n,e.target.value),className:`flex-1 px-3 py-2 border border-gray-200 rounded text-sm focus:outline-none focus:border-[#2EA3F2]`,"data-id":`1rd2m5y0q`,"data-path":`src/pages/admin/Newsletter.jsx`}),(0,M.jsx)(`button`,{onClick:()=>ne(t,n),className:`text-red-400 hover:text-red-600`,"data-id":`m9dua5n53`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(j,{size:14,"data-id":`ffhldfnnz`,"data-path":`src/pages/admin/Newsletter.jsx`})})]},n)),(0,M.jsx)(`button`,{onClick:()=>te(t),className:`text-sm text-[#2EA3F2] font-medium`,"data-id":`tsuiu54dw`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`+ Add item`})]}):e.type===`heading`?(0,M.jsx)(`input`,{type:`text`,value:e.text,onChange:e=>x(t,`text`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded text-lg font-semibold focus:outline-none focus:border-[#2EA3F2]`,style:{fontFamily:`Playfair Display`},"data-id":`n9ysi1e58`,"data-path":`src/pages/admin/Newsletter.jsx`}):(0,M.jsx)(`textarea`,{rows:3,value:e.text,onChange:e=>x(t,`text`,e.target.value),className:`w-full px-3 py-2 border border-gray-200 rounded resize-none text-sm focus:outline-none focus:border-[#2EA3F2] ${e.type===`quote`?`italic bg-amber-50`:``}`,"data-id":`i4youj5ev`,"data-path":`src/pages/admin/Newsletter.jsx`})]},t))}),(0,M.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,"data-id":`x4tcj7fr5`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>b(`paragraph`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-gray-100 hover:bg-gray-200 rounded-lg`,"data-id":`6mute96hy`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`am39mibkr`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Paragraph`]}),(0,M.jsxs)(`button`,{onClick:()=>b(`heading`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-blue-50 hover:bg-blue-100 rounded-lg text-blue-700`,"data-id":`kf0qsiu34`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`o3ox7voi6`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Heading`]}),(0,M.jsxs)(`button`,{onClick:()=>b(`quote`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-amber-50 hover:bg-amber-100 rounded-lg text-amber-700`,"data-id":`i3ksz4tfv`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`19xsrze4m`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Quote`]}),(0,M.jsxs)(`button`,{onClick:()=>b(`list`),className:`flex items-center gap-1 px-3 py-1.5 text-sm bg-green-50 hover:bg-green-100 rounded-lg text-green-700`,"data-id":`geuyh2w0k`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Br,{size:14,"data-id":`frrsjelg6`,"data-path":`src/pages/admin/Newsletter.jsx`}),` List`]})]})]}),(0,M.jsxs)(`div`,{className:`bg-amber-50 border border-amber-200 rounded-xl p-4 text-sm text-amber-700`,"data-id":`h7kur7jdt`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`strong`,{"data-id":`jnsjav71o`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`Note:`}),` The "Send" button is currently disabled. To enable sending, connect an email service (EmailJS, Mailchimp, etc.) in a future update.`]})]})})]}):(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-8`,"data-id":`mhy3t4tei`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,"data-id":`63tskss3e`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`h2`,{className:`text-lg font-semibold text-gray-700`,"data-id":`f6z2aog1e`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`Newsletters`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`svv8pmy8u`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`button`,{onClick:()=>t(`subscribers`),className:`flex items-center gap-2 px-4 py-2 border border-gray-300 text-gray-600 rounded-lg text-sm font-semibold hover:bg-gray-50`,"data-id":`bkp639u47`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Xr,{size:16,"data-id":`qdi152ry5`,"data-path":`src/pages/admin/Newsletter.jsx`}),` Subscribers (`,n.length,`)`]}),(0,M.jsxs)(`button`,{onClick:g,className:`flex items-center gap-2 px-4 py-2 bg-[#2EA3F2] text-white rounded-lg text-sm font-semibold hover:bg-[#1a8fd8]`,"data-id":`9mtbvu15i`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Br,{size:16,"data-id":`ju741vf1p`,"data-path":`src/pages/admin/Newsletter.jsx`}),` New Newsletter`]})]})]}),i.length===0?(0,M.jsxs)(`div`,{className:`text-center py-16 text-gray-400`,"data-id":`c1lrxn9au`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(Pr,{size:48,className:`mx-auto mb-4 opacity-30`,"data-id":`pk2ls4afc`,"data-path":`src/pages/admin/Newsletter.jsx`}),(0,M.jsx)(`p`,{className:`text-lg mb-2`,"data-id":`zrq8qesn1`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`No newsletters yet`}),(0,M.jsx)(`p`,{className:`text-sm`,"data-id":`lox6nqisl`,"data-path":`src/pages/admin/Newsletter.jsx`,children:`Create your first newsletter draft`})]}):(0,M.jsx)(`div`,{className:`space-y-3`,"data-id":`tlgir59j1`,"data-path":`src/pages/admin/Newsletter.jsx`,children:i.map(e=>(0,M.jsxs)(`div`,{className:`bg-white rounded-xl p-5 shadow-sm border border-gray-200 flex items-center justify-between`,"data-id":`cxxx3henq`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsxs)(`div`,{className:`cursor-pointer flex-1`,onClick:()=>{s({...e,content:e.content.map(e=>({...e}))}),t(`editor`)},"data-id":`q3xsdmjnk`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-800`,"data-id":`cph9267sf`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.subject||`Untitled`}),(0,M.jsxs)(`p`,{className:`text-sm text-gray-500`,"data-id":`vifh8c1zn`,"data-path":`src/pages/admin/Newsletter.jsx`,children:[(0,M.jsx)(`span`,{className:`inline-block px-2 py-0.5 rounded text-xs font-medium mr-2 ${e.status===`sent`?`bg-green-100 text-green-700`:`bg-gray-100 text-gray-600`}`,"data-id":`g77z9oppa`,"data-path":`src/pages/admin/Newsletter.jsx`,children:e.status}),new Date(e.createdAt).toLocaleDateString(),` · `,e.content.length,` blocks`]})]}),(0,M.jsx)(`button`,{onClick:()=>y(e.id),className:`p-2 text-red-400 hover:text-red-600`,"data-id":`ird8f65gq`,"data-path":`src/pages/admin/Newsletter.jsx`,children:(0,M.jsx)(j,{size:16,"data-id":`c4k6uwvr3`,"data-path":`src/pages/admin/Newsletter.jsx`})})]},e.id))})]})}var ua=`admin`,da=`niknit2025`;function fa(){let e=localStorage.getItem(`niknit-admin-creds`);if(e)try{return JSON.parse(e)}catch{}return{username:ua,password:da}}function pa(e){localStorage.setItem(`niknit-admin-creds`,JSON.stringify(e))}function ma({onLogin:e}){let[t,n]=(0,_.useState)(``),[r,i]=(0,_.useState)(``),[a,o]=(0,_.useState)(``);return(0,M.jsx)(`div`,{className:`min-h-screen bg-[#0f0f1a] flex items-center justify-center px-4`,"data-id":`dvmq00fx5`,"data-path":`src/pages/Admin.jsx`,children:(0,M.jsxs)(`div`,{className:`w-full max-w-[400px]`,"data-id":`v6qtyv3hi`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{className:`text-center mb-8`,"data-id":`bsb6t8ewn`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{className:`w-16 h-16 rounded-full bg-[#1a1a2e] border-2 border-[#D4A843] flex items-center justify-center mx-auto mb-4 relative`,"data-id":`n08ioxm8q`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`span`,{className:`text-[#D4A843] text-3xl absolute z-10`,style:{left:`17px`},"data-id":`stfqwd9ks`,"data-path":`src/pages/Admin.jsx`,children:`ð“`}),(0,M.jsx)(`span`,{className:`text-[#D4A843] text-3xl absolute`,style:{left:`29px`,opacity:.6},"data-id":`sqgt8jgp7`,"data-path":`src/pages/Admin.jsx`,children:`ð“`})]}),(0,M.jsx)(`h1`,{className:`text-[#D4A843] text-2xl font-bold italic`,style:{fontFamily:`Playfair Display`},"data-id":`6plas0f5l`,"data-path":`src/pages/Admin.jsx`,children:`niknit Admin`}),(0,M.jsx)(`p`,{className:`text-gray-500 text-sm mt-2`,"data-id":`gmh7bum4e`,"data-path":`src/pages/Admin.jsx`,children:`Sign in to manage your site`})]}),(0,M.jsxs)(`form`,{onSubmit:n=>{n.preventDefault();let i=fa();t===i.username&&r===i.password?(sessionStorage.setItem(`niknit-admin-auth`,`true`),e()):(o(`Invalid username or password`),setTimeout(()=>o(``),3e3))},className:`bg-[#1a1a2e] rounded-xl p-8 shadow-xl border border-gray-800`,"data-id":`ac69fgylv`,"data-path":`src/pages/Admin.jsx`,children:[a&&(0,M.jsx)(`div`,{className:`mb-4 p-3 bg-red-500/10 border border-red-500/30 rounded-lg text-red-400 text-sm text-center`,"data-id":`le4vuyqd5`,"data-path":`src/pages/Admin.jsx`,children:a}),(0,M.jsxs)(`div`,{className:`mb-4`,"data-id":`64ijxg0w7`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm text-gray-400 mb-1.5`,"data-id":`u1upgdo06`,"data-path":`src/pages/Admin.jsx`,children:`Username`}),(0,M.jsx)(`input`,{type:`text`,value:t,onChange:e=>n(e.target.value),autoFocus:!0,autoComplete:`username`,className:`w-full px-4 py-3 bg-[#0f0f1a] border border-gray-700 rounded-lg text-white placeholder-gray-600 focus:outline-none focus:border-[#D4A843]`,placeholder:`Enter username`,"data-id":`vnl6sk4zq`,"data-path":`src/pages/Admin.jsx`})]}),(0,M.jsxs)(`div`,{className:`mb-6`,"data-id":`rrrt6niog`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-sm text-gray-400 mb-1.5`,"data-id":`rlus4d6y0`,"data-path":`src/pages/Admin.jsx`,children:`Password`}),(0,M.jsx)(`input`,{type:`password`,value:r,onChange:e=>i(e.target.value),autoComplete:`current-password`,className:`w-full px-4 py-3 bg-[#0f0f1a] border border-gray-700 rounded-lg text-white placeholder-gray-600 focus:outline-none focus:border-[#D4A843]`,placeholder:`Enter password`,"data-id":`vl8uiqqvp`,"data-path":`src/pages/Admin.jsx`})]}),(0,M.jsx)(`button`,{type:`submit`,className:`w-full py-3 bg-[#D4A843] text-[#1a1a2e] rounded-lg font-bold hover:bg-[#c49a38] transition-colors`,"data-id":`k5x88iaa1`,"data-path":`src/pages/Admin.jsx`,children:`Sign In`})]}),(0,M.jsx)(`p`,{className:`text-center text-gray-600 text-xs mt-6`,"data-id":`e0hz1tkid`,"data-path":`src/pages/Admin.jsx`,children:`Protected area. Authorised access only.`})]})})}var ha=[{id:`homepage`,label:`Homepage`,icon:ur},{id:`navigation`,label:`Navigation`,icon:Rr},{id:`articles`,label:`Articles`,icon:Dr},{id:`forms`,label:`Forms`,icon:xr},{id:`submissions`,label:`Submissions`,icon:Ar},{id:`newsletter`,label:`Newsletter`,icon:Pr}];function ga(){let[e,t]=(0,_.useState)(()=>sessionStorage.getItem(`niknit-admin-auth`)===`true`),[n,r]=(0,_.useState)(`homepage`),[i,a]=(0,_.useState)(()=>localStorage.getItem(`niknit-sheets-url`)||``),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(!1);return e?(0,M.jsxs)(`div`,{className:`min-h-screen bg-gray-100`,"data-id":`hvdcg22jh`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`div`,{className:`bg-[#1a1a2e] sticky top-0 z-50`,"data-id":`2j9k2xxnb`,"data-path":`src/pages/Admin.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[1100px] mx-auto px-4`,"data-id":`fdshhqntu`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between py-3`,"data-id":`nge8g31bq`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`h1`,{className:`text-[#D4A843] text-lg font-bold italic`,style:{fontFamily:`Playfair Display`},"data-id":`vac30hyxq`,"data-path":`src/pages/Admin.jsx`,children:`niknit Admin`}),(0,M.jsxs)(`div`,{className:`flex items-center gap-3`,"data-id":`mw7c4s3fn`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`button`,{onClick:()=>s(!o),className:`text-gray-400 hover:text-white transition-colors`,title:`Settings`,"data-id":`da6qen57o`,"data-path":`src/pages/Admin.jsx`,children:(0,M.jsx)(Gr,{size:18,"data-id":`07rfqs6as`,"data-path":`src/pages/Admin.jsx`})}),(0,M.jsxs)(In,{to:`/`,className:`flex items-center gap-1 text-sm text-gray-400 hover:text-white transition-colors`,"data-id":`gmw9j7um9`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(Er,{size:16,"data-id":`hxepghboc`,"data-path":`src/pages/Admin.jsx`}),` View Site`]}),(0,M.jsxs)(`button`,{onClick:()=>{sessionStorage.removeItem(`niknit-admin-auth`),t(!1)},className:`flex items-center gap-1 text-sm text-gray-400 hover:text-red-400 transition-colors`,title:`Log out`,"data-id":`vtj8uecyf`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(Nr,{size:16,"data-id":`qzbe10abb`,"data-path":`src/pages/Admin.jsx`}),` Logout`]})]})]}),(0,M.jsx)(`div`,{className:`flex gap-1 -mb-px overflow-x-auto`,"data-id":`irjp1ag3i`,"data-path":`src/pages/Admin.jsx`,children:ha.map(e=>{let t=e.icon;return(0,M.jsxs)(`button`,{onClick:()=>r(e.id),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===e.id?`bg-gray-100 text-gray-800`:`text-gray-400 hover:text-gray-200 hover:bg-white/5`}`,"data-id":`6zet3qeqm`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(t,{size:16,"data-id":`326zsssk0`,"data-path":`src/pages/Admin.jsx`}),e.label]},e.id)})})]})}),o&&(0,M.jsx)(`div`,{className:`bg-white border-b border-gray-200 shadow-sm`,"data-id":`trzejir8b`,"data-path":`src/pages/Admin.jsx`,children:(0,M.jsxs)(`div`,{className:`max-w-[900px] mx-auto px-4 py-6 space-y-6`,"data-id":`qz2x5gw11`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{"data-id":`1j8zn1oo2`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`h3`,{className:`font-semibold text-gray-700 mb-2`,"data-id":`h6udcckvs`,"data-path":`src/pages/Admin.jsx`,children:`Google Sheets Integration`}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-3`,"data-id":`lckwfpron`,"data-path":`src/pages/Admin.jsx`,children:`Paste your Google Apps Script web app URL for form submissions.`}),(0,M.jsxs)(`div`,{className:`flex gap-3`,"data-id":`4yyvkclbe`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`input`,{type:`url`,value:i,onChange:e=>a(e.target.value),placeholder:`https://script.google.com/macros/s/...`,className:`flex-1 px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-sm`,"data-id":`p7qho3h2m`,"data-path":`src/pages/Admin.jsx`}),(0,M.jsx)(`button`,{onClick:()=>{localStorage.setItem(`niknit-sheets-url`,i)},className:`px-4 py-2.5 bg-[#2EA3F2] text-white rounded-lg text-sm font-semibold hover:bg-[#1a8fd8]`,"data-id":`jicwof0y0`,"data-path":`src/pages/Admin.jsx`,children:`Save`})]})]}),(0,M.jsxs)(`div`,{className:`border-t border-gray-200 pt-6`,"data-id":`e7wcj1x6j`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-2 mb-2`,"data-id":`4wghakvnw`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(jr,{size:16,className:`text-gray-600`,"data-id":`w0ok1bjeh`,"data-path":`src/pages/Admin.jsx`}),(0,M.jsx)(`h3`,{className:`font-semibold text-gray-700`,"data-id":`uc9f09oq8`,"data-path":`src/pages/Admin.jsx`,children:`Change Admin Credentials`})]}),(0,M.jsx)(`p`,{className:`text-sm text-gray-500 mb-3`,"data-id":`fhwi689fm`,"data-path":`src/pages/Admin.jsx`,children:`Update your admin username and password.`}),(0,M.jsxs)(`div`,{className:`flex gap-3 items-end`,"data-id":`mgzv5uuuw`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsxs)(`div`,{className:`flex-1`,"data-id":`z856399jb`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`e1ic4elxq`,"data-path":`src/pages/Admin.jsx`,children:`New Username`}),(0,M.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),placeholder:`Enter new username`,autoComplete:`off`,className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-sm`,"data-id":`b62nhngbe`,"data-path":`src/pages/Admin.jsx`})]}),(0,M.jsxs)(`div`,{className:`flex-1`,"data-id":`daasu1eif`,"data-path":`src/pages/Admin.jsx`,children:[(0,M.jsx)(`label`,{className:`block text-xs text-gray-500 mb-1`,"data-id":`bzziwfbec`,"data-path":`src/pages/Admin.jsx`,children:`New Password`}),(0,M.jsx)(`input`,{type:`password`,value:u,onChange:e=>d(e.target.value),placeholder:`Enter new password`,autoComplete:`new-password`,className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] text-sm`,"data-id":`l2fec82no`,"data-path":`src/pages/Admin.jsx`})]}),(0,M.jsx)(`button`,{onClick:()=>{!c.trim()||!u.trim()||(pa({username:c.trim(),password:u.trim()}),l(``),d(``),p(!0),setTimeout(()=>p(!1),3e3))},className:`px-4 py-2.5 rounded-lg text-sm font-semibold shrink-0 ${f?`bg-green-500 text-white`:`bg-[#1a1a2e] text-white hover:bg-[#2a2a4e]`}`,"data-id":`6zfs4ffr3`,"data-path":`src/pages/Admin.jsx`,children:f?`✓ Updated!`:`Update`})]})]})]})}),n===`homepage`&&(0,M.jsx)(qi,{"data-id":`6171sjdij`,"data-path":`src/pages/Admin.jsx`}),n===`navigation`&&(0,M.jsx)(Ji,{"data-id":`03g9v8m52`,"data-path":`src/pages/Admin.jsx`}),n===`articles`&&(0,M.jsx)(Qi,{"data-id":`n8hittqou`,"data-path":`src/pages/Admin.jsx`}),n===`forms`&&(0,M.jsx)(na,{"data-id":`8j5eou551`,"data-path":`src/pages/Admin.jsx`}),n===`submissions`&&(0,M.jsx)(aa,{"data-id":`fw0opvocb`,"data-path":`src/pages/Admin.jsx`}),n===`newsletter`&&(0,M.jsx)(L,{"data-id":`wqbzqc4hn`,"data-path":`src/pages/Admin.jsx`})]}):(0,M.jsx)(ma,{onLogin:()=>t(!0),"data-id":`1svsezpbp`,"data-path":`src/pages/Admin.jsx`})}function _a(){let e=localStorage.getItem(`niknit-forms`);if(e)try{return JSON.parse(e)}catch{}return[]}function va(e,t){let n=localStorage.getItem(`niknit-submissions`),r=n?JSON.parse(n):[];r.push({formId:e,data:t,timestamp:new Date().toISOString()}),localStorage.setItem(`niknit-submissions`,JSON.stringify(r));let i=localStorage.getItem(`niknit-sheets-url`);i&&fetch(i,{method:`POST`,mode:`no-cors`,headers:{"Content-Type":`application/json`},body:JSON.stringify({formId:e,...t,timestamp:new Date().toISOString()})}).catch(()=>{})}function ya(){let{id:e}=bt(),[t,n]=(0,_.useState)({}),[r,i]=(0,_.useState)(!1),a=_a().find(t=>t.id===e);if(!a)return(0,M.jsxs)(`div`,{className:`max-w-[600px] mx-auto px-4 py-20 text-center`,"data-id":`tw1mbnq7m`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`h1`,{className:`text-3xl mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`3b7pxwu6i`,"data-path":`src/pages/FormPage.jsx`,children:`Form Not Found`}),(0,M.jsx)(`p`,{className:`text-gray-500 mb-6`,"data-id":`rh2iya4cs`,"data-path":`src/pages/FormPage.jsx`,children:`This form doesn't exist or has been removed.`}),(0,M.jsx)(In,{to:`/`,className:`text-[#2EA3F2] font-semibold hover:underline`,"data-id":`n5mn0ytvw`,"data-path":`src/pages/FormPage.jsx`,children:`Go Home`})]});if(r)return(0,M.jsxs)(`div`,{className:`max-w-[600px] mx-auto px-4 py-20 text-center`,"data-id":`xiecqgdax`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(lr,{size:64,className:`mx-auto mb-6 text-green-500`,"data-id":`m6jt8clju`,"data-path":`src/pages/FormPage.jsx`}),(0,M.jsx)(`h1`,{className:`text-3xl mb-4`,style:{fontFamily:`Playfair Display`},"data-id":`7dx25mfxp`,"data-path":`src/pages/FormPage.jsx`,children:`Thank You!`}),(0,M.jsx)(`p`,{className:`text-gray-500 mb-6`,"data-id":`xz9ickj5j`,"data-path":`src/pages/FormPage.jsx`,children:`Your response has been submitted successfully.`}),(0,M.jsx)(In,{to:`/`,className:`text-[#2EA3F2] font-semibold hover:underline`,"data-id":`kaqm7j5ds`,"data-path":`src/pages/FormPage.jsx`,children:`Back to Home`})]});let o=e=>{e.preventDefault(),va(a.id,t),i(!0)},s=(e,r)=>{n({...t,[e]:r})};return(0,M.jsxs)(`div`,{className:`max-w-[600px] mx-auto px-4 py-12`,"data-id":`b2844u6oj`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`div`,{className:`text-center mb-8`,"data-id":`l7irptlor`,"data-path":`src/pages/FormPage.jsx`,children:(0,M.jsx)(In,{to:`/`,className:`text-[#D4A843] text-xl italic`,style:{fontFamily:`Playfair Display`},"data-id":`bsr06f81p`,"data-path":`src/pages/FormPage.jsx`,children:`niknit.com`})}),(0,M.jsxs)(`div`,{className:`bg-white rounded-xl shadow-lg border border-gray-200 p-8`,"data-id":`os218hirz`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`h1`,{className:`text-2xl font-bold text-gray-800 mb-2`,style:{fontFamily:`Playfair Display`},"data-id":`8kay14d81`,"data-path":`src/pages/FormPage.jsx`,children:a.name}),a.description&&(0,M.jsx)(`p`,{className:`text-gray-500 text-sm mb-6`,"data-id":`vmq0l5tx2`,"data-path":`src/pages/FormPage.jsx`,children:a.description}),(0,M.jsxs)(`form`,{onSubmit:o,className:`space-y-5`,"data-id":`03pl72sqt`,"data-path":`src/pages/FormPage.jsx`,children:[a.fields.map(e=>(0,M.jsxs)(`div`,{"data-id":`xbsjkx9m7`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsxs)(`label`,{className:`block text-sm font-medium text-gray-700 mb-1`,"data-id":`w8i65ekut`,"data-path":`src/pages/FormPage.jsx`,children:[e.label,` `,e.required&&(0,M.jsx)(`span`,{className:`text-red-400`,"data-id":`tvoc4aqv6`,"data-path":`src/pages/FormPage.jsx`,children:`*`})]}),e.type===`text`&&(0,M.jsx)(`input`,{type:`text`,placeholder:e.placeholder,required:e.required,value:t[e.label]||``,onChange:t=>s(e.label,t.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2]`,"data-id":`wpxlsemjw`,"data-path":`src/pages/FormPage.jsx`}),e.type===`email`&&(0,M.jsx)(`input`,{type:`email`,placeholder:e.placeholder,required:e.required,value:t[e.label]||``,onChange:t=>s(e.label,t.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2]`,"data-id":`87pzgxfcp`,"data-path":`src/pages/FormPage.jsx`}),e.type===`textarea`&&(0,M.jsx)(`textarea`,{rows:4,placeholder:e.placeholder,required:e.required,value:t[e.label]||``,onChange:t=>s(e.label,t.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] resize-none`,"data-id":`6lojf8a80`,"data-path":`src/pages/FormPage.jsx`}),e.type===`select`&&(0,M.jsxs)(`select`,{required:e.required,value:t[e.label]||``,onChange:t=>s(e.label,t.target.value),className:`w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:border-[#2EA3F2] bg-white`,"data-id":`s8uoj7y9l`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`option`,{value:``,"data-id":`798zucy9y`,"data-path":`src/pages/FormPage.jsx`,children:e.placeholder||`Select...`}),e.options.map((e,t)=>(0,M.jsx)(`option`,{value:e,"data-id":`jp505qfxy`,"data-path":`src/pages/FormPage.jsx`,children:e},t))]}),e.type===`checkbox`&&(0,M.jsxs)(`label`,{className:`flex items-center gap-2 cursor-pointer`,"data-id":`hhgauuz1w`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`input`,{type:`checkbox`,checked:t[e.label]||!1,onChange:t=>s(e.label,t.target.checked),className:`rounded border-gray-300 w-4 h-4`,"data-id":`646j0li5w`,"data-path":`src/pages/FormPage.jsx`}),(0,M.jsx)(`span`,{className:`text-sm text-gray-600`,"data-id":`hg96klc91`,"data-path":`src/pages/FormPage.jsx`,children:e.placeholder||e.label})]}),e.type===`radio`&&(0,M.jsx)(`div`,{className:`space-y-2`,"data-id":`9g6n2mukw`,"data-path":`src/pages/FormPage.jsx`,children:e.options.map((n,r)=>(0,M.jsxs)(`label`,{className:`flex items-center gap-2 cursor-pointer`,"data-id":`rq9y7ctw1`,"data-path":`src/pages/FormPage.jsx`,children:[(0,M.jsx)(`input`,{type:`radio`,name:e.id,value:n,checked:t[e.label]===n,onChange:()=>s(e.label,n),className:`w-4 h-4`,"data-id":`jd6tpph32`,"data-path":`src/pages/FormPage.jsx`}),(0,M.jsx)(`span`,{className:`text-sm text-gray-600`,"data-id":`242x294au`,"data-path":`src/pages/FormPage.jsx`,children:n})]},r))})]},e.id)),(0,M.jsx)(`button`,{type:`submit`,className:`w-full py-3 bg-[#2EA3F2] text-white rounded-lg font-semibold hover:bg-[#1a8fd8] transition-colors`,"data-id":`rj48lkla2`,"data-path":`src/pages/FormPage.jsx`,children:`Submit`})]})]})]})}function ba(){let{pathname:e}=k();return(0,_.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}function xa(){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(ba,{"data-id":`qgkxugcdu`,"data-path":`src/App.jsx`}),(0,M.jsxs)(Kt,{"data-id":`04gfpwe1v`,"data-path":`src/App.jsx`,children:[(0,M.jsx)(Wt,{path:`/admin`,element:(0,M.jsx)(ga,{"data-id":`r9ieshn9t`,"data-path":`src/App.jsx`}),"data-id":`or1xvzwmi`,"data-path":`src/App.jsx`}),(0,M.jsx)(Wt,{path:`/form/:id`,element:(0,M.jsx)(ya,{"data-id":`pqi1sq6ab`,"data-path":`src/App.jsx`}),"data-id":`y7dpuhknc`,"data-path":`src/App.jsx`}),(0,M.jsx)(Wt,{path:`*`,element:(0,M.jsx)(vi,{"data-id":`ef8ul8bfa`,"data-path":`src/App.jsx`,children:(0,M.jsxs)(`div`,{className:`min-h-screen flex flex-col`,"data-id":`i4k0lykfs`,"data-path":`src/App.jsx`,children:[(0,M.jsx)(li,{"data-id":`r3n2co8re`,"data-path":`src/App.jsx`}),(0,M.jsx)(`main`,{className:`flex-1`,"data-id":`mtgoj6rcf`,"data-path":`src/App.jsx`,children:(0,M.jsxs)(Kt,{"data-id":`umd5wlhtv`,"data-path":`src/App.jsx`,children:[(0,M.jsx)(Wt,{path:`/`,element:(0,M.jsx)(Ui,{"data-id":`m5vngx33o`,"data-path":`src/App.jsx`}),"data-id":`o6buqx7fq`,"data-path":`src/App.jsx`}),(0,M.jsx)(Wt,{path:`/category/:id`,element:(0,M.jsx)(Hi,{"data-id":`vmpwu2uwr`,"data-path":`src/App.jsx`}),"data-id":`ts90bg9v4`,"data-path":`src/App.jsx`}),(0,M.jsx)(Wt,{path:`/article/:id`,element:(0,M.jsx)(Gi,{"data-id":`7a1yppcsl`,"data-path":`src/App.jsx`}),"data-id":`m6fbtg69r`,"data-path":`src/App.jsx`})]})}),(0,M.jsx)(bi,{"data-id":`xev1plrvk`,"data-path":`src/App.jsx`})]})}),"data-id":`5cw7u4c5n`,"data-path":`src/App.jsx`})]})]})}function Sa(){return(0,M.jsx)(Pn,{"data-id":`fmkt9wj3q`,"data-path":`src/App.jsx`,children:(0,M.jsx)(xa,{"data-id":`i3u8dxre1`,"data-path":`src/App.jsx`})})}var Ca=`3`;localStorage.getItem(`niknit-schema-version`)!==Ca&&([`niknit-nav`,`niknit-articles`,`niknit-homedata`].forEach(e=>localStorage.removeItem(e)),localStorage.setItem(`niknit-schema-version`,Ca)),(0,v.createRoot)(document.getElementById(`root`)).render((0,M.jsx)(_.StrictMode,{"data-id":`n5hjcscjw`,"data-path":`src/main.jsx`,children:(0,M.jsx)(Sa,{"data-id":`ndqn5gsfh`,"data-path":`src/main.jsx`})}));