var uH=Object.defineProperty;var AT=e=>{throw TypeError(e)};var hH=(e,t,n)=>t in e?uH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dv=(e,t,n)=>hH(e,typeof t!="symbol"?t+"":t,n),hj=(e,t,n)=>t.has(e)||AT("Cannot "+n);var F=(e,t,n)=>(hj(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>t.has(e)?AT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Se=(e,t,n,i)=>(hj(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),at=(e,t,n)=>(hj(e,t,"access private method"),n);var uv=(e,t,n,i)=>({set _(s){Se(e,t,s,n)},get _(){return F(e,t,i)}});function mH(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fH(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var VD={exports:{}},ub={},GD={exports:{}},ht={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xg=Symbol.for("react.element"),pH=Symbol.for("react.portal"),gH=Symbol.for("react.fragment"),vH=Symbol.for("react.strict_mode"),xH=Symbol.for("react.profiler"),yH=Symbol.for("react.provider"),bH=Symbol.for("react.context"),wH=Symbol.for("react.forward_ref"),jH=Symbol.for("react.suspense"),NH=Symbol.for("react.memo"),SH=Symbol.for("react.lazy"),OT=Symbol.iterator;function kH(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var YD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KD=Object.assign,XD={};function Ah(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||YD}Ah.prototype.isReactComponent={};Ah.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ah.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QD(){}QD.prototype=Ah.prototype;function pC(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||YD}var gC=pC.prototype=new QD;gC.constructor=pC;KD(gC,Ah.prototype);gC.isPureReactComponent=!0;var IT=Array.isArray,JD=Object.prototype.hasOwnProperty,vC={current:null},ZD={key:!0,ref:!0,__self:!0,__source:!0};function eM(e,t,n){var i,s={},a=null,o=null;if(t!=null)for(i in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)JD.call(t,i)&&!ZD.hasOwnProperty(i)&&(s[i]=t[i]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)s[i]===void 0&&(s[i]=l[i]);return{$$typeof:xg,type:e,key:a,ref:o,props:s,_owner:vC.current}}function CH(e,t){return{$$typeof:xg,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xC(e){return typeof e=="object"&&e!==null&&e.$$typeof===xg}function _H(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var DT=/\/+/g;function mj(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_H(""+e.key):t.toString(36)}function fx(e,t,n,i,s){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case xg:case pH:o=!0}}if(o)return o=e,s=s(o),e=i===""?"."+mj(o,0):i,IT(s)?(n="",e!=null&&(n=e.replace(DT,"$&/")+"/"),fx(s,t,n,"",function(d){return d})):s!=null&&(xC(s)&&(s=CH(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(DT,"$&/")+"/")+e)),t.push(s)),1;if(o=0,i=i===""?".":i+":",IT(e))for(var l=0;l<e.length;l++){a=e[l];var c=i+mj(a,l);o+=fx(a,t,n,c,s)}else if(c=kH(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=i+mj(a,l++),o+=fx(a,t,n,c,s);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function hv(e,t,n){if(e==null)return e;var i=[],s=0;return fx(e,i,"","",function(a){return t.call(n,a,s++)}),i}function TH(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Br={current:null},px={transition:null},PH={ReactCurrentDispatcher:Br,ReactCurrentBatchConfig:px,ReactCurrentOwner:vC};function tM(){throw Error("act(...) is not supported in production builds of React.")}ht.Children={map:hv,forEach:function(e,t,n){hv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hv(e,function(){t++}),t},toArray:function(e){return hv(e,function(t){return t})||[]},only:function(e){if(!xC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=Ah;ht.Fragment=gH;ht.Profiler=xH;ht.PureComponent=pC;ht.StrictMode=vH;ht.Suspense=jH;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PH;ht.act=tM;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=KD({},e.props),s=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=vC.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)JD.call(t,c)&&!ZD.hasOwnProperty(c)&&(i[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)i.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:xg,type:e.type,key:s,ref:a,props:i,_owner:o}};ht.createContext=function(e){return e={$$typeof:bH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:yH,_context:e},e.Consumer=e};ht.createElement=eM;ht.createFactory=function(e){var t=eM.bind(null,e);return t.type=e,t};ht.createRef=function(){return{current:null}};ht.forwardRef=function(e){return{$$typeof:wH,render:e}};ht.isValidElement=xC;ht.lazy=function(e){return{$$typeof:SH,_payload:{_status:-1,_result:e},_init:TH}};ht.memo=function(e,t){return{$$typeof:NH,type:e,compare:t===void 0?null:t}};ht.startTransition=function(e){var t=px.transition;px.transition={};try{e()}finally{px.transition=t}};ht.unstable_act=tM;ht.useCallback=function(e,t){return Br.current.useCallback(e,t)};ht.useContext=function(e){return Br.current.useContext(e)};ht.useDebugValue=function(){};ht.useDeferredValue=function(e){return Br.current.useDeferredValue(e)};ht.useEffect=function(e,t){return Br.current.useEffect(e,t)};ht.useId=function(){return Br.current.useId()};ht.useImperativeHandle=function(e,t,n){return Br.current.useImperativeHandle(e,t,n)};ht.useInsertionEffect=function(e,t){return Br.current.useInsertionEffect(e,t)};ht.useLayoutEffect=function(e,t){return Br.current.useLayoutEffect(e,t)};ht.useMemo=function(e,t){return Br.current.useMemo(e,t)};ht.useReducer=function(e,t,n){return Br.current.useReducer(e,t,n)};ht.useRef=function(e){return Br.current.useRef(e)};ht.useState=function(e){return Br.current.useState(e)};ht.useSyncExternalStore=function(e,t,n){return Br.current.useSyncExternalStore(e,t,n)};ht.useTransition=function(){return Br.current.useTransition()};ht.version="18.3.1";GD.exports=ht;var j=GD.exports;const L=jt(j),nM=mH({__proto__:null,default:L},[j]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var EH=j,AH=Symbol.for("react.element"),OH=Symbol.for("react.fragment"),IH=Object.prototype.hasOwnProperty,DH=EH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MH={key:!0,ref:!0,__self:!0,__source:!0};function rM(e,t,n){var i,s={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(i in t)IH.call(t,i)&&!MH.hasOwnProperty(i)&&(s[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)s[i]===void 0&&(s[i]=t[i]);return{$$typeof:AH,type:e,key:a,ref:o,props:s,_owner:DH.current}}ub.Fragment=OH;ub.jsx=rM;ub.jsxs=rM;VD.exports=ub;var r=VD.exports,iM={exports:{}},Ei={},sM={exports:{}},aM={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(O,$){var q=O.length;O.push($);e:for(;0<q;){var z=q-1>>>1,J=O[z];if(0<s(J,$))O[z]=$,O[q]=J,q=z;else break e}}function n(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var $=O[0],q=O.pop();if(q!==$){O[0]=q;e:for(var z=0,J=O.length,ne=J>>>1;z<ne;){var pe=2*(z+1)-1,xe=O[pe],De=pe+1,de=O[De];if(0>s(xe,q))De<J&&0>s(de,xe)?(O[z]=de,O[De]=q,z=De):(O[z]=xe,O[pe]=q,z=pe);else if(De<J&&0>s(de,q))O[z]=de,O[De]=q,z=De;else break e}}return $}function s(O,$){var q=O.sortIndex-$.sortIndex;return q!==0?q:O.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,m=3,f=!1,g=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var $=n(d);$!==null;){if($.callback===null)i(d);else if($.startTime<=O)i(d),$.sortIndex=$.expirationTime,t(c,$);else break;$=n(d)}}function w(O){if(p=!1,b(O),!g)if(n(c)!==null)g=!0,I(N);else{var $=n(d);$!==null&&R(w,$.startTime-O)}}function N(O,$){g=!1,p&&(p=!1,y(_),_=-1),f=!0;var q=m;try{for(b($),h=n(c);h!==null&&(!(h.expirationTime>$)||O&&!E());){var z=h.callback;if(typeof z=="function"){h.callback=null,m=h.priorityLevel;var J=z(h.expirationTime<=$);$=e.unstable_now(),typeof J=="function"?h.callback=J:h===n(c)&&i(c),b($)}else i(c);h=n(c)}if(h!==null)var ne=!0;else{var pe=n(d);pe!==null&&R(w,pe.startTime-$),ne=!1}return ne}finally{h=null,m=q,f=!1}}var S=!1,k=null,_=-1,D=5,A=-1;function E(){return!(e.unstable_now()-A<D)}function T(){if(k!==null){var O=e.unstable_now();A=O;var $=!0;try{$=k(!0,O)}finally{$?M():(S=!1,k=null)}}else S=!1}var M;if(typeof x=="function")M=function(){x(T)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,P=C.port2;C.port1.onmessage=T,M=function(){P.postMessage(null)}}else M=function(){v(T,0)};function I(O){k=O,S||(S=!0,M())}function R(O,$){_=v(function(){O(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,I(N))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(O){switch(m){case 1:case 2:case 3:var $=3;break;default:$=m}var q=m;m=$;try{return O()}finally{m=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,$){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var q=m;m=O;try{return $()}finally{m=q}},e.unstable_scheduleCallback=function(O,$,q){var z=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?z+q:z):q=z,O){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=q+J,O={id:u++,callback:$,priorityLevel:O,startTime:q,expirationTime:J,sortIndex:-1},q>z?(O.sortIndex=q,t(d,O),n(c)===null&&O===n(d)&&(p?(y(_),_=-1):p=!0,R(w,q-z))):(O.sortIndex=J,t(c,O),g||f||(g=!0,I(N))),O},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(O){var $=m;return function(){var q=m;m=$;try{return O.apply(this,arguments)}finally{m=q}}}})(aM);sM.exports=aM;var RH=sM.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $H=j,Ti=RH;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var oM=new Set,Wf={};function ad(e,t){Uu(e,t),Uu(e+"Capture",t)}function Uu(e,t){for(Wf[e]=t,e=0;e<t.length;e++)oM.add(t[e])}var ho=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lN=Object.prototype.hasOwnProperty,LH=/^[: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]*$/,MT={},RT={};function UH(e){return lN.call(RT,e)?!0:lN.call(MT,e)?!1:LH.test(e)?RT[e]=!0:(MT[e]=!0,!1)}function FH(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function BH(e,t,n,i){if(t===null||typeof t>"u"||FH(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wr(e,t,n,i,s,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lr[e]=new Wr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lr[t]=new Wr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lr[e]=new Wr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lr[e]=new Wr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){lr[e]=new Wr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lr[e]=new Wr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lr[e]=new Wr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lr[e]=new Wr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lr[e]=new Wr(e,5,!1,e.toLowerCase(),null,!1,!1)});var yC=/[\-:]([a-z])/g;function bC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yC,bC);lr[t]=new Wr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yC,bC);lr[t]=new Wr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yC,bC);lr[t]=new Wr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!1,!1)});lr.xlinkHref=new Wr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!0,!0)});function wC(e,t,n,i){var s=lr.hasOwnProperty(t)?lr[t]:null;(s!==null?s.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(BH(t,n,s,i)&&(n=null),i||s===null?UH(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,i=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var ko=$H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mv=Symbol.for("react.element"),Wd=Symbol.for("react.portal"),zd=Symbol.for("react.fragment"),jC=Symbol.for("react.strict_mode"),cN=Symbol.for("react.profiler"),lM=Symbol.for("react.provider"),cM=Symbol.for("react.context"),NC=Symbol.for("react.forward_ref"),dN=Symbol.for("react.suspense"),uN=Symbol.for("react.suspense_list"),SC=Symbol.for("react.memo"),Uo=Symbol.for("react.lazy"),dM=Symbol.for("react.offscreen"),$T=Symbol.iterator;function um(e){return e===null||typeof e!="object"?null:(e=$T&&e[$T]||e["@@iterator"],typeof e=="function"?e:null)}var mn=Object.assign,fj;function Gm(e){if(fj===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fj=t&&t[1]||""}return`
`+fj+e}var pj=!1;function gj(e,t){if(!e||pj)return"";pj=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var i=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){i=d}e.call(t.prototype)}else{try{throw Error()}catch(d){i=d}e()}}catch(d){if(d&&i&&typeof d.stack=="string"){for(var s=d.stack.split(`
`),a=i.stack.split(`
`),o=s.length-1,l=a.length-1;1<=o&&0<=l&&s[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==a[l]){var c=`
`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{pj=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gm(e):""}function WH(e){switch(e.tag){case 5:return Gm(e.type);case 16:return Gm("Lazy");case 13:return Gm("Suspense");case 19:return Gm("SuspenseList");case 0:case 2:case 15:return e=gj(e.type,!1),e;case 11:return e=gj(e.type.render,!1),e;case 1:return e=gj(e.type,!0),e;default:return""}}function hN(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zd:return"Fragment";case Wd:return"Portal";case cN:return"Profiler";case jC:return"StrictMode";case dN:return"Suspense";case uN:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cM:return(e.displayName||"Context")+".Consumer";case lM:return(e._context.displayName||"Context")+".Provider";case NC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case SC:return t=e.displayName||null,t!==null?t:hN(e.type)||"Memo";case Uo:t=e._payload,e=e._init;try{return hN(e(t))}catch{}}return null}function zH(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hN(t);case 8:return t===jC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qH(e){var t=uM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fv(e){e._valueTracker||(e._valueTracker=qH(e))}function hM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=uM(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Hx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mN(e,t){var n=t.checked;return mn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LT(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=kl(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mM(e,t){t=t.checked,t!=null&&wC(e,"checked",t,!1)}function fN(e,t){mM(e,t);var n=kl(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pN(e,t.type,n):t.hasOwnProperty("defaultValue")&&pN(e,t.type,kl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function UT(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pN(e,t,n){(t!=="number"||Hx(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ym=Array.isArray;function lu(e,t,n,i){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&i&&(e[n].defaultSelected=!0)}else{for(n=""+kl(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function gN(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ce(91));return mn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function FT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ce(92));if(Ym(n)){if(1<n.length)throw Error(ce(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kl(n)}}function fM(e,t){var n=kl(t.value),i=kl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function BT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pM(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vN(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pv,gM=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pv=pv||document.createElement("div"),pv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},HH=["Webkit","ms","Moz","O"];Object.keys(mf).forEach(function(e){HH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mf[t]=mf[e]})});function vM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mf.hasOwnProperty(e)&&mf[e]?(""+t).trim():t+"px"}function xM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,s=vM(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,s):e[n]=s}}var VH=mn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xN(e,t){if(t){if(VH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function yN(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bN=null;function kC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wN=null,cu=null,du=null;function WT(e){if(e=wg(e)){if(typeof wN!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=gb(t),wN(e.stateNode,e.type,t))}}function yM(e){cu?du?du.push(e):du=[e]:cu=e}function bM(){if(cu){var e=cu,t=du;if(du=cu=null,WT(e),t)for(e=0;e<t.length;e++)WT(t[e])}}function wM(e,t){return e(t)}function jM(){}var vj=!1;function NM(e,t,n){if(vj)return e(t,n);vj=!0;try{return wM(e,t,n)}finally{vj=!1,(cu!==null||du!==null)&&(jM(),bM())}}function qf(e,t){var n=e.stateNode;if(n===null)return null;var i=gb(n);if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ce(231,t,typeof n));return n}var jN=!1;if(ho)try{var hm={};Object.defineProperty(hm,"passive",{get:function(){jN=!0}}),window.addEventListener("test",hm,hm),window.removeEventListener("test",hm,hm)}catch{jN=!1}function GH(e,t,n,i,s,a,o,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(u){this.onError(u)}}var ff=!1,Vx=null,Gx=!1,NN=null,YH={onError:function(e){ff=!0,Vx=e}};function KH(e,t,n,i,s,a,o,l,c){ff=!1,Vx=null,GH.apply(YH,arguments)}function XH(e,t,n,i,s,a,o,l,c){if(KH.apply(this,arguments),ff){if(ff){var d=Vx;ff=!1,Vx=null}else throw Error(ce(198));Gx||(Gx=!0,NN=d)}}function od(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 SM(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 zT(e){if(od(e)!==e)throw Error(ce(188))}function QH(e){var t=e.alternate;if(!t){if(t=od(e),t===null)throw Error(ce(188));return t!==e?null:e}for(var n=e,i=t;;){var s=n.return;if(s===null)break;var a=s.alternate;if(a===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===a.child){for(a=s.child;a;){if(a===n)return zT(s),e;if(a===i)return zT(s),t;a=a.sibling}throw Error(ce(188))}if(n.return!==i.return)n=s,i=a;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,i=a;break}if(l===i){o=!0,i=s,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,i=s;break}if(l===i){o=!0,i=a,n=s;break}l=l.sibling}if(!o)throw Error(ce(189))}}if(n.alternate!==i)throw Error(ce(190))}if(n.tag!==3)throw Error(ce(188));return n.stateNode.current===n?e:t}function kM(e){return e=QH(e),e!==null?CM(e):null}function CM(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=CM(e);if(t!==null)return t;e=e.sibling}return null}var _M=Ti.unstable_scheduleCallback,qT=Ti.unstable_cancelCallback,JH=Ti.unstable_shouldYield,ZH=Ti.unstable_requestPaint,Nn=Ti.unstable_now,eV=Ti.unstable_getCurrentPriorityLevel,CC=Ti.unstable_ImmediatePriority,TM=Ti.unstable_UserBlockingPriority,Yx=Ti.unstable_NormalPriority,tV=Ti.unstable_LowPriority,PM=Ti.unstable_IdlePriority,hb=null,ua=null;function nV(e){if(ua&&typeof ua.onCommitFiberRoot=="function")try{ua.onCommitFiberRoot(hb,e,void 0,(e.current.flags&128)===128)}catch{}}var Es=Math.clz32?Math.clz32:sV,rV=Math.log,iV=Math.LN2;function sV(e){return e>>>=0,e===0?32:31-(rV(e)/iV|0)|0}var gv=64,vv=4194304;function Km(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kx(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,s=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?i=Km(l):(a&=o,a!==0&&(i=Km(a)))}else o=n&~s,o!==0?i=Km(o):a!==0&&(i=Km(a));if(i===0)return 0;if(t!==0&&t!==i&&!(t&s)&&(s=i&-i,a=t&-t,s>=a||s===16&&(a&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-Es(t),s=1<<n,i|=e[n],t&=~s;return i}function aV(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oV(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Es(a),l=1<<o,c=s[o];c===-1?(!(l&n)||l&i)&&(s[o]=aV(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}function SN(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function EM(){var e=gv;return gv<<=1,!(gv&4194240)&&(gv=64),e}function xj(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Es(t),e[t]=n}function lV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Es(n),a=1<<s;t[s]=0,i[s]=-1,e[s]=-1,n&=~a}}function _C(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Es(n),s=1<<i;s&t|e[i]&t&&(e[i]|=t),n&=~s}}var At=0;function AM(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var OM,TC,IM,DM,MM,kN=!1,xv=[],cl=null,dl=null,ul=null,Hf=new Map,Vf=new Map,Ho=[],cV="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function HT(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Hf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vf.delete(t.pointerId)}}function mm(e,t,n,i,s,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[s]},t!==null&&(t=wg(t),t!==null&&TC(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function dV(e,t,n,i,s){switch(t){case"focusin":return cl=mm(cl,e,t,n,i,s),!0;case"dragenter":return dl=mm(dl,e,t,n,i,s),!0;case"mouseover":return ul=mm(ul,e,t,n,i,s),!0;case"pointerover":var a=s.pointerId;return Hf.set(a,mm(Hf.get(a)||null,e,t,n,i,s)),!0;case"gotpointercapture":return a=s.pointerId,Vf.set(a,mm(Vf.get(a)||null,e,t,n,i,s)),!0}return!1}function RM(e){var t=fc(e.target);if(t!==null){var n=od(t);if(n!==null){if(t=n.tag,t===13){if(t=SM(n),t!==null){e.blockedOn=t,MM(e.priority,function(){IM(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 gx(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=CN(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);bN=i,n.target.dispatchEvent(i),bN=null}else return t=wg(n),t!==null&&TC(t),e.blockedOn=n,!1;t.shift()}return!0}function VT(e,t,n){gx(e)&&n.delete(t)}function uV(){kN=!1,cl!==null&&gx(cl)&&(cl=null),dl!==null&&gx(dl)&&(dl=null),ul!==null&&gx(ul)&&(ul=null),Hf.forEach(VT),Vf.forEach(VT)}function fm(e,t){e.blockedOn===t&&(e.blockedOn=null,kN||(kN=!0,Ti.unstable_scheduleCallback(Ti.unstable_NormalPriority,uV)))}function Gf(e){function t(s){return fm(s,e)}if(0<xv.length){fm(xv[0],e);for(var n=1;n<xv.length;n++){var i=xv[n];i.blockedOn===e&&(i.blockedOn=null)}}for(cl!==null&&fm(cl,e),dl!==null&&fm(dl,e),ul!==null&&fm(ul,e),Hf.forEach(t),Vf.forEach(t),n=0;n<Ho.length;n++)i=Ho[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<Ho.length&&(n=Ho[0],n.blockedOn===null);)RM(n),n.blockedOn===null&&Ho.shift()}var uu=ko.ReactCurrentBatchConfig,Xx=!0;function hV(e,t,n,i){var s=At,a=uu.transition;uu.transition=null;try{At=1,PC(e,t,n,i)}finally{At=s,uu.transition=a}}function mV(e,t,n,i){var s=At,a=uu.transition;uu.transition=null;try{At=4,PC(e,t,n,i)}finally{At=s,uu.transition=a}}function PC(e,t,n,i){if(Xx){var s=CN(e,t,n,i);if(s===null)Tj(e,t,i,Qx,n),HT(e,i);else if(dV(s,e,t,n,i))i.stopPropagation();else if(HT(e,i),t&4&&-1<cV.indexOf(e)){for(;s!==null;){var a=wg(s);if(a!==null&&OM(a),a=CN(e,t,n,i),a===null&&Tj(e,t,i,Qx,n),a===s)break;s=a}s!==null&&i.stopPropagation()}else Tj(e,t,i,null,n)}}var Qx=null;function CN(e,t,n,i){if(Qx=null,e=kC(i),e=fc(e),e!==null)if(t=od(e),t===null)e=null;else if(n=t.tag,n===13){if(e=SM(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 Qx=e,null}function $M(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(eV()){case CC:return 1;case TM:return 4;case Yx:case tV:return 16;case PM:return 536870912;default:return 16}default:return 16}}var il=null,EC=null,vx=null;function LM(){if(vx)return vx;var e,t=EC,n=t.length,i,s="value"in il?il.value:il.textContent,a=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===s[a-i];i++);return vx=s.slice(e,1<i?1-i:void 0)}function xx(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 yv(){return!0}function GT(){return!1}function Ai(e){function t(n,i,s,a,o){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?yv:GT,this.isPropagationStopped=GT,this}return mn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yv)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yv)},persist:function(){},isPersistent:yv}),t}var Oh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},AC=Ai(Oh),bg=mn({},Oh,{view:0,detail:0}),fV=Ai(bg),yj,bj,pm,mb=mn({},bg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:OC,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!==pm&&(pm&&e.type==="mousemove"?(yj=e.screenX-pm.screenX,bj=e.screenY-pm.screenY):bj=yj=0,pm=e),yj)},movementY:function(e){return"movementY"in e?e.movementY:bj}}),YT=Ai(mb),pV=mn({},mb,{dataTransfer:0}),gV=Ai(pV),vV=mn({},bg,{relatedTarget:0}),wj=Ai(vV),xV=mn({},Oh,{animationName:0,elapsedTime:0,pseudoElement:0}),yV=Ai(xV),bV=mn({},Oh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wV=Ai(bV),jV=mn({},Oh,{data:0}),KT=Ai(jV),NV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SV={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"},kV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kV[e])?!!t[e]:!1}function OC(){return CV}var _V=mn({},bg,{key:function(e){if(e.key){var t=NV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xx(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:OC,charCode:function(e){return e.type==="keypress"?xx(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xx(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TV=Ai(_V),PV=mn({},mb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XT=Ai(PV),EV=mn({},bg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:OC}),AV=Ai(EV),OV=mn({},Oh,{propertyName:0,elapsedTime:0,pseudoElement:0}),IV=Ai(OV),DV=mn({},mb,{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}),MV=Ai(DV),RV=[9,13,27,32],IC=ho&&"CompositionEvent"in window,pf=null;ho&&"documentMode"in document&&(pf=document.documentMode);var $V=ho&&"TextEvent"in window&&!pf,UM=ho&&(!IC||pf&&8<pf&&11>=pf),QT=" ",JT=!1;function FM(e,t){switch(e){case"keyup":return RV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qd=!1;function LV(e,t){switch(e){case"compositionend":return BM(t);case"keypress":return t.which!==32?null:(JT=!0,QT);case"textInput":return e=t.data,e===QT&&JT?null:e;default:return null}}function UV(e,t){if(qd)return e==="compositionend"||!IC&&FM(e,t)?(e=LM(),vx=EC=il=null,qd=!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 UM&&t.locale!=="ko"?null:t.data;default:return null}}var FV={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 ZT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!FV[e.type]:t==="textarea"}function WM(e,t,n,i){yM(i),t=Jx(t,"onChange"),0<t.length&&(n=new AC("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var gf=null,Yf=null;function BV(e){ZM(e,0)}function fb(e){var t=Gd(e);if(hM(t))return e}function WV(e,t){if(e==="change")return t}var zM=!1;if(ho){var jj;if(ho){var Nj="oninput"in document;if(!Nj){var e4=document.createElement("div");e4.setAttribute("oninput","return;"),Nj=typeof e4.oninput=="function"}jj=Nj}else jj=!1;zM=jj&&(!document.documentMode||9<document.documentMode)}function t4(){gf&&(gf.detachEvent("onpropertychange",qM),Yf=gf=null)}function qM(e){if(e.propertyName==="value"&&fb(Yf)){var t=[];WM(t,Yf,e,kC(e)),NM(BV,t)}}function zV(e,t,n){e==="focusin"?(t4(),gf=t,Yf=n,gf.attachEvent("onpropertychange",qM)):e==="focusout"&&t4()}function qV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fb(Yf)}function HV(e,t){if(e==="click")return fb(t)}function VV(e,t){if(e==="input"||e==="change")return fb(t)}function GV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ms=typeof Object.is=="function"?Object.is:GV;function Kf(e,t){if(Ms(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!lN.call(t,s)||!Ms(e[s],t[s]))return!1}return!0}function n4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r4(e,t){var n=n4(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=n4(n)}}function HM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?HM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VM(){for(var e=window,t=Hx();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hx(e.document)}return t}function DC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function YV(e){var t=VM(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&HM(n.ownerDocument.documentElement,n)){if(i!==null&&DC(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,a=Math.min(i.start,s);i=i.end===void 0?a:Math.min(i.end,s),!e.extend&&a>i&&(s=i,i=a,a=s),s=r4(n,a);var o=r4(n,i);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var KV=ho&&"documentMode"in document&&11>=document.documentMode,Hd=null,_N=null,vf=null,TN=!1;function i4(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;TN||Hd==null||Hd!==Hx(i)||(i=Hd,"selectionStart"in i&&DC(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vf&&Kf(vf,i)||(vf=i,i=Jx(_N,"onSelect"),0<i.length&&(t=new AC("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Hd)))}function bv(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vd={animationend:bv("Animation","AnimationEnd"),animationiteration:bv("Animation","AnimationIteration"),animationstart:bv("Animation","AnimationStart"),transitionend:bv("Transition","TransitionEnd")},Sj={},GM={};ho&&(GM=document.createElement("div").style,"AnimationEvent"in window||(delete Vd.animationend.animation,delete Vd.animationiteration.animation,delete Vd.animationstart.animation),"TransitionEvent"in window||delete Vd.transitionend.transition);function pb(e){if(Sj[e])return Sj[e];if(!Vd[e])return e;var t=Vd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in GM)return Sj[e]=t[n];return e}var YM=pb("animationend"),KM=pb("animationiteration"),XM=pb("animationstart"),QM=pb("transitionend"),JM=new Map,s4="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $l(e,t){JM.set(e,t),ad(t,[e])}for(var kj=0;kj<s4.length;kj++){var Cj=s4[kj],XV=Cj.toLowerCase(),QV=Cj[0].toUpperCase()+Cj.slice(1);$l(XV,"on"+QV)}$l(YM,"onAnimationEnd");$l(KM,"onAnimationIteration");$l(XM,"onAnimationStart");$l("dblclick","onDoubleClick");$l("focusin","onFocus");$l("focusout","onBlur");$l(QM,"onTransitionEnd");Uu("onMouseEnter",["mouseout","mouseover"]);Uu("onMouseLeave",["mouseout","mouseover"]);Uu("onPointerEnter",["pointerout","pointerover"]);Uu("onPointerLeave",["pointerout","pointerover"]);ad("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ad("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ad("onBeforeInput",["compositionend","keypress","textInput","paste"]);ad("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ad("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ad("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xm="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(" "),JV=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xm));function a4(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,XH(i,t,void 0,e),e.currentTarget=null}function ZM(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],s=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var l=i[o],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==a&&s.isPropagationStopped())break e;a4(s,l,d),a=c}else for(o=0;o<i.length;o++){if(l=i[o],c=l.instance,d=l.currentTarget,l=l.listener,c!==a&&s.isPropagationStopped())break e;a4(s,l,d),a=c}}}if(Gx)throw e=NN,Gx=!1,NN=null,e}function Vt(e,t){var n=t[IN];n===void 0&&(n=t[IN]=new Set);var i=e+"__bubble";n.has(i)||(e8(t,e,2,!1),n.add(i))}function _j(e,t,n){var i=0;t&&(i|=4),e8(n,e,i,t)}var wv="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[wv]){e[wv]=!0,oM.forEach(function(n){n!=="selectionchange"&&(JV.has(n)||_j(n,!1,e),_j(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wv]||(t[wv]=!0,_j("selectionchange",!1,t))}}function e8(e,t,n,i){switch($M(t)){case 1:var s=hV;break;case 4:s=mV;break;default:s=PC}n=s.bind(null,t,n,e),s=void 0,!jN||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Tj(e,t,n,i,s){var a=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var l=i.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=i.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=fc(l),o===null)return;if(c=o.tag,c===5||c===6){i=a=o;continue e}l=l.parentNode}}i=i.return}NM(function(){var d=a,u=kC(n),h=[];e:{var m=JM.get(e);if(m!==void 0){var f=AC,g=e;switch(e){case"keypress":if(xx(n)===0)break e;case"keydown":case"keyup":f=TV;break;case"focusin":g="focus",f=wj;break;case"focusout":g="blur",f=wj;break;case"beforeblur":case"afterblur":f=wj;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=YT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=gV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=AV;break;case YM:case KM:case XM:f=yV;break;case QM:f=IV;break;case"scroll":f=fV;break;case"wheel":f=MV;break;case"copy":case"cut":case"paste":f=wV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=XT}var p=(t&4)!==0,v=!p&&e==="scroll",y=p?m!==null?m+"Capture":null:m;p=[];for(var x=d,b;x!==null;){b=x;var w=b.stateNode;if(b.tag===5&&w!==null&&(b=w,y!==null&&(w=qf(x,y),w!=null&&p.push(Qf(x,w,b)))),v)break;x=x.return}0<p.length&&(m=new f(m,g,null,n,u),h.push({event:m,listeners:p}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==bN&&(g=n.relatedTarget||n.fromElement)&&(fc(g)||g[mo]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(g=n.relatedTarget||n.toElement,f=d,g=g?fc(g):null,g!==null&&(v=od(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=d),f!==g)){if(p=YT,w="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=XT,w="onPointerLeave",y="onPointerEnter",x="pointer"),v=f==null?m:Gd(f),b=g==null?m:Gd(g),m=new p(w,x+"leave",f,n,u),m.target=v,m.relatedTarget=b,w=null,fc(u)===d&&(p=new p(y,x+"enter",g,n,u),p.target=b,p.relatedTarget=v,w=p),v=w,f&&g)t:{for(p=f,y=g,x=0,b=p;b;b=kd(b))x++;for(b=0,w=y;w;w=kd(w))b++;for(;0<x-b;)p=kd(p),x--;for(;0<b-x;)y=kd(y),b--;for(;x--;){if(p===y||y!==null&&p===y.alternate)break t;p=kd(p),y=kd(y)}p=null}else p=null;f!==null&&o4(h,m,f,p,!1),g!==null&&v!==null&&o4(h,v,g,p,!0)}}e:{if(m=d?Gd(d):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var N=WV;else if(ZT(m))if(zM)N=VV;else{N=qV;var S=zV}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(N=HV);if(N&&(N=N(e,d))){WM(h,N,n,u);break e}S&&S(e,m,d),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&pN(m,"number",m.value)}switch(S=d?Gd(d):window,e){case"focusin":(ZT(S)||S.contentEditable==="true")&&(Hd=S,_N=d,vf=null);break;case"focusout":vf=_N=Hd=null;break;case"mousedown":TN=!0;break;case"contextmenu":case"mouseup":case"dragend":TN=!1,i4(h,n,u);break;case"selectionchange":if(KV)break;case"keydown":case"keyup":i4(h,n,u)}var k;if(IC)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else qd?FM(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(UM&&n.locale!=="ko"&&(qd||_!=="onCompositionStart"?_==="onCompositionEnd"&&qd&&(k=LM()):(il=u,EC="value"in il?il.value:il.textContent,qd=!0)),S=Jx(d,_),0<S.length&&(_=new KT(_,e,null,n,u),h.push({event:_,listeners:S}),k?_.data=k:(k=BM(n),k!==null&&(_.data=k)))),(k=$V?LV(e,n):UV(e,n))&&(d=Jx(d,"onBeforeInput"),0<d.length&&(u=new KT("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:d}),u.data=k))}ZM(h,t)})}function Qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jx(e,t){for(var n=t+"Capture",i=[];e!==null;){var s=e,a=s.stateNode;s.tag===5&&a!==null&&(s=a,a=qf(e,n),a!=null&&i.unshift(Qf(e,a,s)),a=qf(e,t),a!=null&&i.push(Qf(e,a,s))),e=e.return}return i}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function o4(e,t,n,i,s){for(var a=t._reactName,o=[];n!==null&&n!==i;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===i)break;l.tag===5&&d!==null&&(l=d,s?(c=qf(n,a),c!=null&&o.unshift(Qf(n,c,l))):s||(c=qf(n,a),c!=null&&o.push(Qf(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ZV=/\r\n?/g,eG=/\u0000|\uFFFD/g;function l4(e){return(typeof e=="string"?e:""+e).replace(ZV,`
`).replace(eG,"")}function jv(e,t,n){if(t=l4(t),l4(e)!==t&&n)throw Error(ce(425))}function Zx(){}var PN=null,EN=null;function AN(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ON=typeof setTimeout=="function"?setTimeout:void 0,tG=typeof clearTimeout=="function"?clearTimeout:void 0,c4=typeof Promise=="function"?Promise:void 0,nG=typeof queueMicrotask=="function"?queueMicrotask:typeof c4<"u"?function(e){return c4.resolve(null).then(e).catch(rG)}:ON;function rG(e){setTimeout(function(){throw e})}function Pj(e,t){var n=t,i=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(i===0){e.removeChild(s),Gf(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=s}while(n);Gf(t)}function hl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function d4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ih=Math.random().toString(36).slice(2),ra="__reactFiber$"+Ih,Jf="__reactProps$"+Ih,mo="__reactContainer$"+Ih,IN="__reactEvents$"+Ih,iG="__reactListeners$"+Ih,sG="__reactHandles$"+Ih;function fc(e){var t=e[ra];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ra]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=d4(e);e!==null;){if(n=e[ra])return n;e=d4(e)}return t}e=n,n=e.parentNode}return null}function wg(e){return e=e[ra]||e[mo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ce(33))}function gb(e){return e[Jf]||null}var DN=[],Yd=-1;function Ll(e){return{current:e}}function Kt(e){0>Yd||(e.current=DN[Yd],DN[Yd]=null,Yd--)}function Wt(e,t){Yd++,DN[Yd]=e.current,e.current=t}var Cl={},br=Ll(Cl),ei=Ll(!1),Uc=Cl;function Fu(e,t){var n=e.type.contextTypes;if(!n)return Cl;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var s={},a;for(a in n)s[a]=t[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ti(e){return e=e.childContextTypes,e!=null}function ey(){Kt(ei),Kt(br)}function u4(e,t,n){if(br.current!==Cl)throw Error(ce(168));Wt(br,t),Wt(ei,n)}function t8(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var s in i)if(!(s in t))throw Error(ce(108,zH(e)||"Unknown",s));return mn({},n,i)}function ty(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cl,Uc=br.current,Wt(br,e),Wt(ei,ei.current),!0}function h4(e,t,n){var i=e.stateNode;if(!i)throw Error(ce(169));n?(e=t8(e,t,Uc),i.__reactInternalMemoizedMergedChildContext=e,Kt(ei),Kt(br),Wt(br,e)):Kt(ei),Wt(ei,n)}var Ha=null,vb=!1,Ej=!1;function n8(e){Ha===null?Ha=[e]:Ha.push(e)}function aG(e){vb=!0,n8(e)}function Ul(){if(!Ej&&Ha!==null){Ej=!0;var e=0,t=At;try{var n=Ha;for(At=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Ha=null,vb=!1}catch(s){throw Ha!==null&&(Ha=Ha.slice(e+1)),_M(CC,Ul),s}finally{At=t,Ej=!1}}return null}var Kd=[],Xd=0,ny=null,ry=0,Ui=[],Fi=0,Fc=null,Za=1,eo="";function ic(e,t){Kd[Xd++]=ry,Kd[Xd++]=ny,ny=e,ry=t}function r8(e,t,n){Ui[Fi++]=Za,Ui[Fi++]=eo,Ui[Fi++]=Fc,Fc=e;var i=Za;e=eo;var s=32-Es(i)-1;i&=~(1<<s),n+=1;var a=32-Es(t)+s;if(30<a){var o=s-s%5;a=(i&(1<<o)-1).toString(32),i>>=o,s-=o,Za=1<<32-Es(t)+s|n<<s|i,eo=a+e}else Za=1<<a|n<<s|i,eo=e}function MC(e){e.return!==null&&(ic(e,1),r8(e,1,0))}function RC(e){for(;e===ny;)ny=Kd[--Xd],Kd[Xd]=null,ry=Kd[--Xd],Kd[Xd]=null;for(;e===Fc;)Fc=Ui[--Fi],Ui[Fi]=null,eo=Ui[--Fi],Ui[Fi]=null,Za=Ui[--Fi],Ui[Fi]=null}var Ni=null,wi=null,en=!1,ks=null;function i8(e,t){var n=zi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function m4(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ni=e,wi=hl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ni=e,wi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fc!==null?{id:Za,overflow:eo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ni=e,wi=null,!0):!1;default:return!1}}function MN(e){return(e.mode&1)!==0&&(e.flags&128)===0}function RN(e){if(en){var t=wi;if(t){var n=t;if(!m4(e,t)){if(MN(e))throw Error(ce(418));t=hl(n.nextSibling);var i=Ni;t&&m4(e,t)?i8(i,n):(e.flags=e.flags&-4097|2,en=!1,Ni=e)}}else{if(MN(e))throw Error(ce(418));e.flags=e.flags&-4097|2,en=!1,Ni=e}}}function f4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ni=e}function Nv(e){if(e!==Ni)return!1;if(!en)return f4(e),en=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!AN(e.type,e.memoizedProps)),t&&(t=wi)){if(MN(e))throw s8(),Error(ce(418));for(;t;)i8(e,t),t=hl(t.nextSibling)}if(f4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ce(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wi=hl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wi=null}}else wi=Ni?hl(e.stateNode.nextSibling):null;return!0}function s8(){for(var e=wi;e;)e=hl(e.nextSibling)}function Bu(){wi=Ni=null,en=!1}function $C(e){ks===null?ks=[e]:ks.push(e)}var oG=ko.ReactCurrentBatchConfig;function gm(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ce(309));var i=n.stateNode}if(!i)throw Error(ce(147,e));var s=i,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=s.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(ce(284));if(!n._owner)throw Error(ce(290,e))}return e}function Sv(e,t){throw e=Object.prototype.toString.call(t),Error(ce(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function p4(e){var t=e._init;return t(e._payload)}function a8(e){function t(y,x){if(e){var b=y.deletions;b===null?(y.deletions=[x],y.flags|=16):b.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function i(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function s(y,x){return y=gl(y,x),y.index=0,y.sibling=null,y}function a(y,x,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<x?(y.flags|=2,x):b):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,x,b,w){return x===null||x.tag!==6?(x=$j(b,y.mode,w),x.return=y,x):(x=s(x,b),x.return=y,x)}function c(y,x,b,w){var N=b.type;return N===zd?u(y,x,b.props.children,w,b.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Uo&&p4(N)===x.type)?(w=s(x,b.props),w.ref=gm(y,x,b),w.return=y,w):(w=kx(b.type,b.key,b.props,null,y.mode,w),w.ref=gm(y,x,b),w.return=y,w)}function d(y,x,b,w){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=Lj(b,y.mode,w),x.return=y,x):(x=s(x,b.children||[]),x.return=y,x)}function u(y,x,b,w,N){return x===null||x.tag!==7?(x=Oc(b,y.mode,w,N),x.return=y,x):(x=s(x,b),x.return=y,x)}function h(y,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=$j(""+x,y.mode,b),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case mv:return b=kx(x.type,x.key,x.props,null,y.mode,b),b.ref=gm(y,null,x),b.return=y,b;case Wd:return x=Lj(x,y.mode,b),x.return=y,x;case Uo:var w=x._init;return h(y,w(x._payload),b)}if(Ym(x)||um(x))return x=Oc(x,y.mode,b,null),x.return=y,x;Sv(y,x)}return null}function m(y,x,b,w){var N=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return N!==null?null:l(y,x,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case mv:return b.key===N?c(y,x,b,w):null;case Wd:return b.key===N?d(y,x,b,w):null;case Uo:return N=b._init,m(y,x,N(b._payload),w)}if(Ym(b)||um(b))return N!==null?null:u(y,x,b,w,null);Sv(y,b)}return null}function f(y,x,b,w,N){if(typeof w=="string"&&w!==""||typeof w=="number")return y=y.get(b)||null,l(x,y,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case mv:return y=y.get(w.key===null?b:w.key)||null,c(x,y,w,N);case Wd:return y=y.get(w.key===null?b:w.key)||null,d(x,y,w,N);case Uo:var S=w._init;return f(y,x,b,S(w._payload),N)}if(Ym(w)||um(w))return y=y.get(b)||null,u(x,y,w,N,null);Sv(x,w)}return null}function g(y,x,b,w){for(var N=null,S=null,k=x,_=x=0,D=null;k!==null&&_<b.length;_++){k.index>_?(D=k,k=null):D=k.sibling;var A=m(y,k,b[_],w);if(A===null){k===null&&(k=D);break}e&&k&&A.alternate===null&&t(y,k),x=a(A,x,_),S===null?N=A:S.sibling=A,S=A,k=D}if(_===b.length)return n(y,k),en&&ic(y,_),N;if(k===null){for(;_<b.length;_++)k=h(y,b[_],w),k!==null&&(x=a(k,x,_),S===null?N=k:S.sibling=k,S=k);return en&&ic(y,_),N}for(k=i(y,k);_<b.length;_++)D=f(k,y,_,b[_],w),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?_:D.key),x=a(D,x,_),S===null?N=D:S.sibling=D,S=D);return e&&k.forEach(function(E){return t(y,E)}),en&&ic(y,_),N}function p(y,x,b,w){var N=um(b);if(typeof N!="function")throw Error(ce(150));if(b=N.call(b),b==null)throw Error(ce(151));for(var S=N=null,k=x,_=x=0,D=null,A=b.next();k!==null&&!A.done;_++,A=b.next()){k.index>_?(D=k,k=null):D=k.sibling;var E=m(y,k,A.value,w);if(E===null){k===null&&(k=D);break}e&&k&&E.alternate===null&&t(y,k),x=a(E,x,_),S===null?N=E:S.sibling=E,S=E,k=D}if(A.done)return n(y,k),en&&ic(y,_),N;if(k===null){for(;!A.done;_++,A=b.next())A=h(y,A.value,w),A!==null&&(x=a(A,x,_),S===null?N=A:S.sibling=A,S=A);return en&&ic(y,_),N}for(k=i(y,k);!A.done;_++,A=b.next())A=f(k,y,_,A.value,w),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?_:A.key),x=a(A,x,_),S===null?N=A:S.sibling=A,S=A);return e&&k.forEach(function(T){return t(y,T)}),en&&ic(y,_),N}function v(y,x,b,w){if(typeof b=="object"&&b!==null&&b.type===zd&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case mv:e:{for(var N=b.key,S=x;S!==null;){if(S.key===N){if(N=b.type,N===zd){if(S.tag===7){n(y,S.sibling),x=s(S,b.props.children),x.return=y,y=x;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Uo&&p4(N)===S.type){n(y,S.sibling),x=s(S,b.props),x.ref=gm(y,S,b),x.return=y,y=x;break e}n(y,S);break}else t(y,S);S=S.sibling}b.type===zd?(x=Oc(b.props.children,y.mode,w,b.key),x.return=y,y=x):(w=kx(b.type,b.key,b.props,null,y.mode,w),w.ref=gm(y,x,b),w.return=y,y=w)}return o(y);case Wd:e:{for(S=b.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(y,x.sibling),x=s(x,b.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=Lj(b,y.mode,w),x.return=y,y=x}return o(y);case Uo:return S=b._init,v(y,x,S(b._payload),w)}if(Ym(b))return g(y,x,b,w);if(um(b))return p(y,x,b,w);Sv(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(y,x.sibling),x=s(x,b),x.return=y,y=x):(n(y,x),x=$j(b,y.mode,w),x.return=y,y=x),o(y)):n(y,x)}return v}var Wu=a8(!0),o8=a8(!1),iy=Ll(null),sy=null,Qd=null,LC=null;function UC(){LC=Qd=sy=null}function FC(e){var t=iy.current;Kt(iy),e._currentValue=t}function $N(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function hu(e,t){sy=e,LC=Qd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Jr=!0),e.firstContext=null)}function Ki(e){var t=e._currentValue;if(LC!==e)if(e={context:e,memoizedValue:t,next:null},Qd===null){if(sy===null)throw Error(ce(308));Qd=e,sy.dependencies={lanes:0,firstContext:e}}else Qd=Qd.next=e;return t}var pc=null;function BC(e){pc===null?pc=[e]:pc.push(e)}function l8(e,t,n,i){var s=t.interleaved;return s===null?(n.next=n,BC(t)):(n.next=s.next,s.next=n),t.interleaved=n,fo(e,i)}function fo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Fo=!1;function WC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c8(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ml(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,bt&2){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,fo(e,n)}return s=i.interleaved,s===null?(t.next=t,BC(i)):(t.next=s.next,s.next=t),i.interleaved=t,fo(e,n)}function yx(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,_C(e,n)}}function g4(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?s=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?s=a=t:a=a.next=t}else s=a=t;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ay(e,t,n,i){var s=e.updateQueue;Fo=!1;var a=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?a=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(a!==null){var h=s.baseState;o=0,u=d=c=null,l=a;do{var m=l.lane,f=l.eventTime;if((i&m)===m){u!==null&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,p=l;switch(m=t,f=n,p.tag){case 1:if(g=p.payload,typeof g=="function"){h=g.call(f,h,m);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,m=typeof g=="function"?g.call(f,h,m):g,m==null)break e;h=mn({},h,m);break e;case 2:Fo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[l]:m.push(l))}else f={eventTime:f,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=f,c=h):u=u.next=f,o|=m;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;m=l,l=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(u===null&&(c=h),s.baseState=c,s.firstBaseUpdate=d,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else a===null&&(s.shared.lanes=0);Wc|=o,e.lanes=o,e.memoizedState=h}}function v4(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],s=i.callback;if(s!==null){if(i.callback=null,i=n,typeof s!="function")throw Error(ce(191,s));s.call(i)}}}var jg={},ha=Ll(jg),Zf=Ll(jg),ep=Ll(jg);function gc(e){if(e===jg)throw Error(ce(174));return e}function zC(e,t){switch(Wt(ep,t),Wt(Zf,e),Wt(ha,jg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vN(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vN(t,e)}Kt(ha),Wt(ha,t)}function zu(){Kt(ha),Kt(Zf),Kt(ep)}function d8(e){gc(ep.current);var t=gc(ha.current),n=vN(t,e.type);t!==n&&(Wt(Zf,e),Wt(ha,n))}function qC(e){Zf.current===e&&(Kt(ha),Kt(Zf))}var ln=Ll(0);function oy(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Aj=[];function HC(){for(var e=0;e<Aj.length;e++)Aj[e]._workInProgressVersionPrimary=null;Aj.length=0}var bx=ko.ReactCurrentDispatcher,Oj=ko.ReactCurrentBatchConfig,Bc=0,dn=null,Mn=null,Yn=null,ly=!1,xf=!1,tp=0,lG=0;function ur(){throw Error(ce(321))}function VC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ms(e[n],t[n]))return!1;return!0}function GC(e,t,n,i,s,a){if(Bc=a,dn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bx.current=e===null||e.memoizedState===null?hG:mG,e=n(i,s),xf){a=0;do{if(xf=!1,tp=0,25<=a)throw Error(ce(301));a+=1,Yn=Mn=null,t.updateQueue=null,bx.current=fG,e=n(i,s)}while(xf)}if(bx.current=cy,t=Mn!==null&&Mn.next!==null,Bc=0,Yn=Mn=dn=null,ly=!1,t)throw Error(ce(300));return e}function YC(){var e=tp!==0;return tp=0,e}function Qs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?dn.memoizedState=Yn=e:Yn=Yn.next=e,Yn}function Xi(){if(Mn===null){var e=dn.alternate;e=e!==null?e.memoizedState:null}else e=Mn.next;var t=Yn===null?dn.memoizedState:Yn.next;if(t!==null)Yn=t,Mn=e;else{if(e===null)throw Error(ce(310));Mn=e,e={memoizedState:Mn.memoizedState,baseState:Mn.baseState,baseQueue:Mn.baseQueue,queue:Mn.queue,next:null},Yn===null?dn.memoizedState=Yn=e:Yn=Yn.next=e}return Yn}function np(e,t){return typeof t=="function"?t(e):t}function Ij(e){var t=Xi(),n=t.queue;if(n===null)throw Error(ce(311));n.lastRenderedReducer=e;var i=Mn,s=i.baseQueue,a=n.pending;if(a!==null){if(s!==null){var o=s.next;s.next=a.next,a.next=o}i.baseQueue=s=a,n.pending=null}if(s!==null){a=s.next,i=i.baseState;var l=o=null,c=null,d=a;do{var u=d.lane;if((Bc&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),i=d.hasEagerState?d.eagerState:e(i,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,o=i):c=c.next=h,dn.lanes|=u,Wc|=u}d=d.next}while(d!==null&&d!==a);c===null?o=i:c.next=l,Ms(i,t.memoizedState)||(Jr=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=c,n.lastRenderedState=i}if(e=n.interleaved,e!==null){s=e;do a=s.lane,dn.lanes|=a,Wc|=a,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Dj(e){var t=Xi(),n=t.queue;if(n===null)throw Error(ce(311));n.lastRenderedReducer=e;var i=n.dispatch,s=n.pending,a=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do a=e(a,o.action),o=o.next;while(o!==s);Ms(a,t.memoizedState)||(Jr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function u8(){}function h8(e,t){var n=dn,i=Xi(),s=t(),a=!Ms(i.memoizedState,s);if(a&&(i.memoizedState=s,Jr=!0),i=i.queue,KC(p8.bind(null,n,i,e),[e]),i.getSnapshot!==t||a||Yn!==null&&Yn.memoizedState.tag&1){if(n.flags|=2048,rp(9,f8.bind(null,n,i,s,t),void 0,null),Jn===null)throw Error(ce(349));Bc&30||m8(n,t,s)}return s}function m8(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=dn.updateQueue,t===null?(t={lastEffect:null,stores:null},dn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function f8(e,t,n,i){t.value=n,t.getSnapshot=i,g8(t)&&v8(e)}function p8(e,t,n){return n(function(){g8(t)&&v8(e)})}function g8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ms(e,n)}catch{return!0}}function v8(e){var t=fo(e,1);t!==null&&As(t,e,1,-1)}function x4(e){var t=Qs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:np,lastRenderedState:e},t.queue=e,e=e.dispatch=uG.bind(null,dn,e),[t.memoizedState,e]}function rp(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=dn.updateQueue,t===null?(t={lastEffect:null,stores:null},dn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function x8(){return Xi().memoizedState}function wx(e,t,n,i){var s=Qs();dn.flags|=e,s.memoizedState=rp(1|t,n,void 0,i===void 0?null:i)}function xb(e,t,n,i){var s=Xi();i=i===void 0?null:i;var a=void 0;if(Mn!==null){var o=Mn.memoizedState;if(a=o.destroy,i!==null&&VC(i,o.deps)){s.memoizedState=rp(t,n,a,i);return}}dn.flags|=e,s.memoizedState=rp(1|t,n,a,i)}function y4(e,t){return wx(8390656,8,e,t)}function KC(e,t){return xb(2048,8,e,t)}function y8(e,t){return xb(4,2,e,t)}function b8(e,t){return xb(4,4,e,t)}function w8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function j8(e,t,n){return n=n!=null?n.concat([e]):null,xb(4,4,w8.bind(null,t,e),n)}function XC(){}function N8(e,t){var n=Xi();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&VC(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function S8(e,t){var n=Xi();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&VC(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function k8(e,t,n){return Bc&21?(Ms(n,t)||(n=EM(),dn.lanes|=n,Wc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Jr=!0),e.memoizedState=n)}function cG(e,t){var n=At;At=n!==0&&4>n?n:4,e(!0);var i=Oj.transition;Oj.transition={};try{e(!1),t()}finally{At=n,Oj.transition=i}}function C8(){return Xi().memoizedState}function dG(e,t,n){var i=pl(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},_8(e))T8(t,n);else if(n=l8(e,t,n,i),n!==null){var s=Dr();As(n,e,i,s),P8(n,t,i)}}function uG(e,t,n){var i=pl(e),s={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(_8(e))T8(t,s);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(s.hasEagerState=!0,s.eagerState=l,Ms(l,o)){var c=t.interleaved;c===null?(s.next=s,BC(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=l8(e,t,s,i),n!==null&&(s=Dr(),As(n,e,i,s),P8(n,t,i))}}function _8(e){var t=e.alternate;return e===dn||t!==null&&t===dn}function T8(e,t){xf=ly=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P8(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,_C(e,n)}}var cy={readContext:Ki,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},hG={readContext:Ki,useCallback:function(e,t){return Qs().memoizedState=[e,t===void 0?null:t],e},useContext:Ki,useEffect:y4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wx(4194308,4,w8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wx(4194308,4,e,t)},useInsertionEffect:function(e,t){return wx(4,2,e,t)},useMemo:function(e,t){var n=Qs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Qs();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=dG.bind(null,dn,e),[i.memoizedState,e]},useRef:function(e){var t=Qs();return e={current:e},t.memoizedState=e},useState:x4,useDebugValue:XC,useDeferredValue:function(e){return Qs().memoizedState=e},useTransition:function(){var e=x4(!1),t=e[0];return e=cG.bind(null,e[1]),Qs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=dn,s=Qs();if(en){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Jn===null)throw Error(ce(349));Bc&30||m8(i,t,n)}s.memoizedState=n;var a={value:n,getSnapshot:t};return s.queue=a,y4(p8.bind(null,i,a,e),[e]),i.flags|=2048,rp(9,f8.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Qs(),t=Jn.identifierPrefix;if(en){var n=eo,i=Za;n=(i&~(1<<32-Es(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=tp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mG={readContext:Ki,useCallback:N8,useContext:Ki,useEffect:KC,useImperativeHandle:j8,useInsertionEffect:y8,useLayoutEffect:b8,useMemo:S8,useReducer:Ij,useRef:x8,useState:function(){return Ij(np)},useDebugValue:XC,useDeferredValue:function(e){var t=Xi();return k8(t,Mn.memoizedState,e)},useTransition:function(){var e=Ij(np)[0],t=Xi().memoizedState;return[e,t]},useMutableSource:u8,useSyncExternalStore:h8,useId:C8,unstable_isNewReconciler:!1},fG={readContext:Ki,useCallback:N8,useContext:Ki,useEffect:KC,useImperativeHandle:j8,useInsertionEffect:y8,useLayoutEffect:b8,useMemo:S8,useReducer:Dj,useRef:x8,useState:function(){return Dj(np)},useDebugValue:XC,useDeferredValue:function(e){var t=Xi();return Mn===null?t.memoizedState=e:k8(t,Mn.memoizedState,e)},useTransition:function(){var e=Dj(np)[0],t=Xi().memoizedState;return[e,t]},useMutableSource:u8,useSyncExternalStore:h8,useId:C8,unstable_isNewReconciler:!1};function vs(e,t){if(e&&e.defaultProps){t=mn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function LN(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:mn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yb={isMounted:function(e){return(e=e._reactInternals)?od(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Dr(),s=pl(e),a=so(i,s);a.payload=t,n!=null&&(a.callback=n),t=ml(e,a,s),t!==null&&(As(t,e,s,i),yx(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Dr(),s=pl(e),a=so(i,s);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ml(e,a,s),t!==null&&(As(t,e,s,i),yx(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dr(),i=pl(e),s=so(n,i);s.tag=2,t!=null&&(s.callback=t),t=ml(e,s,i),t!==null&&(As(t,e,i,n),yx(t,e,i))}};function b4(e,t,n,i,s,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Kf(n,i)||!Kf(s,a):!0}function E8(e,t,n){var i=!1,s=Cl,a=t.contextType;return typeof a=="object"&&a!==null?a=Ki(a):(s=ti(t)?Uc:br.current,i=t.contextTypes,a=(i=i!=null)?Fu(e,s):Cl),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yb,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=a),t}function w4(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&yb.enqueueReplaceState(t,t.state,null)}function UN(e,t,n,i){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},WC(e);var a=t.contextType;typeof a=="object"&&a!==null?s.context=Ki(a):(a=ti(t)?Uc:br.current,s.context=Fu(e,a)),s.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(LN(e,t,a,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&yb.enqueueReplaceState(s,s.state,null),ay(e,n,s,i),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qu(e,t){try{var n="",i=t;do n+=WH(i),i=i.return;while(i);var s=n}catch(a){s=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:s,digest:null}}function Mj(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function FN(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pG=typeof WeakMap=="function"?WeakMap:Map;function A8(e,t,n){n=so(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){uy||(uy=!0,XN=i),FN(e,t)},n}function O8(e,t,n){n=so(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var s=t.value;n.payload=function(){return i(s)},n.callback=function(){FN(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){FN(e,t),typeof i!="function"&&(fl===null?fl=new Set([this]):fl.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function j4(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new pG;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(n)||(s.add(n),e=PG.bind(null,e,t,n),t.then(e,e))}function N4(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function S4(e,t,n,i,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=so(-1,1),t.tag=2,ml(n,t,1))),n.lanes|=1),e)}var gG=ko.ReactCurrentOwner,Jr=!1;function kr(e,t,n,i){t.child=e===null?o8(t,null,n,i):Wu(t,e.child,n,i)}function k4(e,t,n,i,s){n=n.render;var a=t.ref;return hu(t,s),i=GC(e,t,n,i,a,s),n=YC(),e!==null&&!Jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,po(e,t,s)):(en&&n&&MC(t),t.flags|=1,kr(e,t,i,s),t.child)}function C4(e,t,n,i,s){if(e===null){var a=n.type;return typeof a=="function"&&!i_(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,I8(e,t,a,i,s)):(e=kx(n.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&s)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Kf,n(o,i)&&e.ref===t.ref)return po(e,t,s)}return t.flags|=1,e=gl(a,i),e.ref=t.ref,e.return=t,t.child=e}function I8(e,t,n,i,s){if(e!==null){var a=e.memoizedProps;if(Kf(a,i)&&e.ref===t.ref)if(Jr=!1,t.pendingProps=i=a,(e.lanes&s)!==0)e.flags&131072&&(Jr=!0);else return t.lanes=e.lanes,po(e,t,s)}return BN(e,t,n,i,s)}function D8(e,t,n){var i=t.pendingProps,s=i.children,a=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(Zd,fi),fi|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Wt(Zd,fi),fi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:n,Wt(Zd,fi),fi|=i}else a!==null?(i=a.baseLanes|n,t.memoizedState=null):i=n,Wt(Zd,fi),fi|=i;return kr(e,t,s,n),t.child}function M8(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function BN(e,t,n,i,s){var a=ti(n)?Uc:br.current;return a=Fu(t,a),hu(t,s),n=GC(e,t,n,i,a,s),i=YC(),e!==null&&!Jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,po(e,t,s)):(en&&i&&MC(t),t.flags|=1,kr(e,t,n,s),t.child)}function _4(e,t,n,i,s){if(ti(n)){var a=!0;ty(t)}else a=!1;if(hu(t,s),t.stateNode===null)jx(e,t),E8(t,n,i),UN(t,n,i,s),i=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ki(d):(d=ti(n)?Uc:br.current,d=Fu(t,d));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==i||c!==d)&&w4(t,o,i,d),Fo=!1;var m=t.memoizedState;o.state=m,ay(t,i,o,s),c=t.memoizedState,l!==i||m!==c||ei.current||Fo?(typeof u=="function"&&(LN(t,n,u,i),c=t.memoizedState),(l=Fo||b4(t,n,l,i,m,c,d))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=d,i=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,c8(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:vs(t.type,l),o.props=d,h=t.pendingProps,m=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ki(c):(c=ti(n)?Uc:br.current,c=Fu(t,c));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||m!==c)&&w4(t,o,i,c),Fo=!1,m=t.memoizedState,o.state=m,ay(t,i,o,s);var g=t.memoizedState;l!==h||m!==g||ei.current||Fo?(typeof f=="function"&&(LN(t,n,f,i),g=t.memoizedState),(d=Fo||b4(t,n,d,i,m,g,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,g,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,g,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=g),o.props=i,o.state=g,o.context=c,i=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),i=!1)}return WN(e,t,n,i,a,s)}function WN(e,t,n,i,s,a){M8(e,t);var o=(t.flags&128)!==0;if(!i&&!o)return s&&h4(t,n,!1),po(e,t,a);i=t.stateNode,gG.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&o?(t.child=Wu(t,e.child,null,a),t.child=Wu(t,null,l,a)):kr(e,t,l,a),t.memoizedState=i.state,s&&h4(t,n,!0),t.child}function R8(e){var t=e.stateNode;t.pendingContext?u4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&u4(e,t.context,!1),zC(e,t.containerInfo)}function T4(e,t,n,i,s){return Bu(),$C(s),t.flags|=256,kr(e,t,n,i),t.child}var zN={dehydrated:null,treeContext:null,retryLane:0};function qN(e){return{baseLanes:e,cachePool:null,transitions:null}}function $8(e,t,n){var i=t.pendingProps,s=ln.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Wt(ln,s&1),e===null)return RN(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=i.children,e=i.fallback,a?(i=t.mode,a=t.child,o={mode:"hidden",children:o},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=jb(o,i,0,null),e=Oc(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=qN(n),t.memoizedState=zN,e):QC(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return vG(e,t,o,i,l,s,n);if(a){a=i.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:i.children};return!(o&1)&&t.child!==s?(i=t.child,i.childLanes=0,i.pendingProps=c,t.deletions=null):(i=gl(s,c),i.subtreeFlags=s.subtreeFlags&14680064),l!==null?a=gl(l,a):(a=Oc(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,o=e.child.memoizedState,o=o===null?qN(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=zN,i}return a=e.child,e=a.sibling,i=gl(a,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function QC(e,t){return t=jb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kv(e,t,n,i){return i!==null&&$C(i),Wu(t,e.child,null,n),e=QC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vG(e,t,n,i,s,a,o){if(n)return t.flags&256?(t.flags&=-257,i=Mj(Error(ce(422))),kv(e,t,o,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=i.fallback,s=t.mode,i=jb({mode:"visible",children:i.children},s,0,null),a=Oc(a,s,o,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,t.mode&1&&Wu(t,e.child,null,o),t.child.memoizedState=qN(o),t.memoizedState=zN,a);if(!(t.mode&1))return kv(e,t,o,null);if(s.data==="$!"){if(i=s.nextSibling&&s.nextSibling.dataset,i)var l=i.dgst;return i=l,a=Error(ce(419)),i=Mj(a,i,void 0),kv(e,t,o,i)}if(l=(o&e.childLanes)!==0,Jr||l){if(i=Jn,i!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(i.suspendedLanes|o)?0:s,s!==0&&s!==a.retryLane&&(a.retryLane=s,fo(e,s),As(i,e,s,-1))}return r_(),i=Mj(Error(ce(421))),kv(e,t,o,i)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=EG.bind(null,e),s._reactRetry=t,null):(e=a.treeContext,wi=hl(s.nextSibling),Ni=t,en=!0,ks=null,e!==null&&(Ui[Fi++]=Za,Ui[Fi++]=eo,Ui[Fi++]=Fc,Za=e.id,eo=e.overflow,Fc=t),t=QC(t,i.children),t.flags|=4096,t)}function P4(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),$N(e.return,t,n)}function Rj(e,t,n,i,s){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=s)}function L8(e,t,n){var i=t.pendingProps,s=i.revealOrder,a=i.tail;if(kr(e,t,i.children,n),i=ln.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P4(e,n,t);else if(e.tag===19)P4(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Wt(ln,i),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&oy(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Rj(t,!1,s,n,a);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oy(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Rj(t,!0,n,null,a);break;case"together":Rj(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jx(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function po(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=gl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xG(e,t,n){switch(t.tag){case 3:R8(t),Bu();break;case 5:d8(t);break;case 1:ti(t.type)&&ty(t);break;case 4:zC(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,s=t.memoizedProps.value;Wt(iy,i._currentValue),i._currentValue=s;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Wt(ln,ln.current&1),t.flags|=128,null):n&t.child.childLanes?$8(e,t,n):(Wt(ln,ln.current&1),e=po(e,t,n),e!==null?e.sibling:null);Wt(ln,ln.current&1);break;case 19:if(i=(n&t.childLanes)!==0,e.flags&128){if(i)return L8(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Wt(ln,ln.current),i)break;return null;case 22:case 23:return t.lanes=0,D8(e,t,n)}return po(e,t,n)}var U8,HN,F8,B8;U8=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};HN=function(){};F8=function(e,t,n,i){var s=e.memoizedProps;if(s!==i){e=t.stateNode,gc(ha.current);var a=null;switch(n){case"input":s=mN(e,s),i=mN(e,i),a=[];break;case"select":s=mn({},s,{value:void 0}),i=mn({},i,{value:void 0}),a=[];break;case"textarea":s=gN(e,s),i=gN(e,i),a=[];break;default:typeof s.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Zx)}xN(n,i);var o;n=null;for(d in s)if(!i.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var l=s[d];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Wf.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in i){var c=i[d];if(l=s!=null?s[d]:void 0,i.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Wf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Vt("scroll",e),a||l===c||(a=[])):(a=a||[]).push(d,c))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}};B8=function(e,t,n,i){n!==i&&(t.flags|=4)};function vm(e,t){if(!en)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&14680064,i|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function yG(e,t,n){var i=t.pendingProps;switch(RC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(t),null;case 1:return ti(t.type)&&ey(),hr(t),null;case 3:return i=t.stateNode,zu(),Kt(ei),Kt(br),HC(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Nv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ks!==null&&(ZN(ks),ks=null))),HN(e,t),hr(t),null;case 5:qC(t);var s=gc(ep.current);if(n=t.type,e!==null&&t.stateNode!=null)F8(e,t,n,i,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(ce(166));return hr(t),null}if(e=gc(ha.current),Nv(t)){i=t.stateNode,n=t.type;var a=t.memoizedProps;switch(i[ra]=t,i[Jf]=a,e=(t.mode&1)!==0,n){case"dialog":Vt("cancel",i),Vt("close",i);break;case"iframe":case"object":case"embed":Vt("load",i);break;case"video":case"audio":for(s=0;s<Xm.length;s++)Vt(Xm[s],i);break;case"source":Vt("error",i);break;case"img":case"image":case"link":Vt("error",i),Vt("load",i);break;case"details":Vt("toggle",i);break;case"input":LT(i,a),Vt("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Vt("invalid",i);break;case"textarea":FT(i,a),Vt("invalid",i)}xN(n,a),s=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?i.textContent!==l&&(a.suppressHydrationWarning!==!0&&jv(i.textContent,l,e),s=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&jv(i.textContent,l,e),s=["children",""+l]):Wf.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Vt("scroll",i)}switch(n){case"input":fv(i),UT(i,a,!0);break;case"textarea":fv(i),BT(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=Zx)}i=s,t.updateQueue=i,i!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pM(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(n,{is:i.is}):(e=o.createElement(n),n==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,n),e[ra]=t,e[Jf]=i,U8(e,t,!1,!1),t.stateNode=e;e:{switch(o=yN(n,i),n){case"dialog":Vt("cancel",e),Vt("close",e),s=i;break;case"iframe":case"object":case"embed":Vt("load",e),s=i;break;case"video":case"audio":for(s=0;s<Xm.length;s++)Vt(Xm[s],e);s=i;break;case"source":Vt("error",e),s=i;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),s=i;break;case"details":Vt("toggle",e),s=i;break;case"input":LT(e,i),s=mN(e,i),Vt("invalid",e);break;case"option":s=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},s=mn({},i,{value:void 0}),Vt("invalid",e);break;case"textarea":FT(e,i),s=gN(e,i),Vt("invalid",e);break;default:s=i}xN(n,s),l=s;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?xM(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&gM(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&zf(e,c):typeof c=="number"&&zf(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Wf.hasOwnProperty(a)?c!=null&&a==="onScroll"&&Vt("scroll",e):c!=null&&wC(e,a,c,o))}switch(n){case"input":fv(e),UT(e,i,!1);break;case"textarea":fv(e),BT(e);break;case"option":i.value!=null&&e.setAttribute("value",""+kl(i.value));break;case"select":e.multiple=!!i.multiple,a=i.value,a!=null?lu(e,!!i.multiple,a,!1):i.defaultValue!=null&&lu(e,!!i.multiple,i.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Zx)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hr(t),null;case 6:if(e&&t.stateNode!=null)B8(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(ce(166));if(n=gc(ep.current),gc(ha.current),Nv(t)){if(i=t.stateNode,n=t.memoizedProps,i[ra]=t,(a=i.nodeValue!==n)&&(e=Ni,e!==null))switch(e.tag){case 3:jv(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jv(i.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[ra]=t,t.stateNode=i}return hr(t),null;case 13:if(Kt(ln),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(en&&wi!==null&&t.mode&1&&!(t.flags&128))s8(),Bu(),t.flags|=98560,a=!1;else if(a=Nv(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(ce(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ce(317));a[ra]=t}else Bu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hr(t),a=!1}else ks!==null&&(ZN(ks),ks=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||ln.current&1?Fn===0&&(Fn=3):r_())),t.updateQueue!==null&&(t.flags|=4),hr(t),null);case 4:return zu(),HN(e,t),e===null&&Xf(t.stateNode.containerInfo),hr(t),null;case 10:return FC(t.type._context),hr(t),null;case 17:return ti(t.type)&&ey(),hr(t),null;case 19:if(Kt(ln),a=t.memoizedState,a===null)return hr(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)vm(a,!1);else{if(Fn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oy(e),o!==null){for(t.flags|=128,vm(a,!1),i=o.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)a=n,e=i,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Wt(ln,ln.current&1|2),t.child}e=e.sibling}a.tail!==null&&Nn()>Hu&&(t.flags|=128,i=!0,vm(a,!1),t.lanes=4194304)}else{if(!i)if(e=oy(o),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vm(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!en)return hr(t),null}else 2*Nn()-a.renderingStartTime>Hu&&n!==1073741824&&(t.flags|=128,i=!0,vm(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Nn(),t.sibling=null,n=ln.current,Wt(ln,i?n&1|2:n&1),t):(hr(t),null);case 22:case 23:return n_(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?fi&1073741824&&(hr(t),t.subtreeFlags&6&&(t.flags|=8192)):hr(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function bG(e,t){switch(RC(t),t.tag){case 1:return ti(t.type)&&ey(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zu(),Kt(ei),Kt(br),HC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qC(t),null;case 13:if(Kt(ln),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));Bu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Kt(ln),null;case 4:return zu(),null;case 10:return FC(t.type._context),null;case 22:case 23:return n_(),null;case 24:return null;default:return null}}var Cv=!1,pr=!1,wG=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Jd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){xn(e,t,i)}else n.current=null}function VN(e,t,n){try{n()}catch(i){xn(e,t,i)}}var E4=!1;function jG(e,t){if(PN=Xx,e=VM(),DC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,m=null;t:for(;;){for(var f;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==a||i!==0&&h.nodeType!==3||(c=o+i),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++d===s&&(l=o),m===a&&++u===i&&(c=o),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(EN={focusedElem:e,selectionRange:n},Xx=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,v=g.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:vs(t.type,p),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(w){xn(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return g=E4,E4=!1,g}function yf(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&e)===e){var a=s.destroy;s.destroy=void 0,a!==void 0&&VN(t,n,a)}s=s.next}while(s!==i)}}function bb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function GN(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function W8(e){var t=e.alternate;t!==null&&(e.alternate=null,W8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ra],delete t[Jf],delete t[IN],delete t[iG],delete t[sG])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function z8(e){return e.tag===5||e.tag===3||e.tag===4}function A4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z8(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function YN(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zx));else if(i!==4&&(e=e.child,e!==null))for(YN(e,t,n),e=e.sibling;e!==null;)YN(e,t,n),e=e.sibling}function KN(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(KN(e,t,n),e=e.sibling;e!==null;)KN(e,t,n),e=e.sibling}var sr=null,bs=!1;function Oo(e,t,n){for(n=n.child;n!==null;)q8(e,t,n),n=n.sibling}function q8(e,t,n){if(ua&&typeof ua.onCommitFiberUnmount=="function")try{ua.onCommitFiberUnmount(hb,n)}catch{}switch(n.tag){case 5:pr||Jd(n,t);case 6:var i=sr,s=bs;sr=null,Oo(e,t,n),sr=i,bs=s,sr!==null&&(bs?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&(bs?(e=sr,n=n.stateNode,e.nodeType===8?Pj(e.parentNode,n):e.nodeType===1&&Pj(e,n),Gf(e)):Pj(sr,n.stateNode));break;case 4:i=sr,s=bs,sr=n.stateNode.containerInfo,bs=!0,Oo(e,t,n),sr=i,bs=s;break;case 0:case 11:case 14:case 15:if(!pr&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){s=i=i.next;do{var a=s,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&VN(n,t,o),s=s.next}while(s!==i)}Oo(e,t,n);break;case 1:if(!pr&&(Jd(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){xn(n,t,l)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(pr=(i=pr)||n.memoizedState!==null,Oo(e,t,n),pr=i):Oo(e,t,n);break;default:Oo(e,t,n)}}function O4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wG),t.forEach(function(i){var s=AG.bind(null,e,i);n.has(i)||(n.add(i),i.then(s,s))})}}function ds(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:sr=l.stateNode,bs=!1;break e;case 3:sr=l.stateNode.containerInfo,bs=!0;break e;case 4:sr=l.stateNode.containerInfo,bs=!0;break e}l=l.return}if(sr===null)throw Error(ce(160));q8(a,o,s),sr=null,bs=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(d){xn(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)H8(t,e),t=t.sibling}function H8(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ds(t,e),Xs(e),i&4){try{yf(3,e,e.return),bb(3,e)}catch(p){xn(e,e.return,p)}try{yf(5,e,e.return)}catch(p){xn(e,e.return,p)}}break;case 1:ds(t,e),Xs(e),i&512&&n!==null&&Jd(n,n.return);break;case 5:if(ds(t,e),Xs(e),i&512&&n!==null&&Jd(n,n.return),e.flags&32){var s=e.stateNode;try{zf(s,"")}catch(p){xn(e,e.return,p)}}if(i&4&&(s=e.stateNode,s!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&mM(s,a),yN(l,o);var d=yN(l,a);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];u==="style"?xM(s,h):u==="dangerouslySetInnerHTML"?gM(s,h):u==="children"?zf(s,h):wC(s,u,h,d)}switch(l){case"input":fN(s,a);break;case"textarea":fM(s,a);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var f=a.value;f!=null?lu(s,!!a.multiple,f,!1):m!==!!a.multiple&&(a.defaultValue!=null?lu(s,!!a.multiple,a.defaultValue,!0):lu(s,!!a.multiple,a.multiple?[]:"",!1))}s[Jf]=a}catch(p){xn(e,e.return,p)}}break;case 6:if(ds(t,e),Xs(e),i&4){if(e.stateNode===null)throw Error(ce(162));s=e.stateNode,a=e.memoizedProps;try{s.nodeValue=a}catch(p){xn(e,e.return,p)}}break;case 3:if(ds(t,e),Xs(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Gf(t.containerInfo)}catch(p){xn(e,e.return,p)}break;case 4:ds(t,e),Xs(e);break;case 13:ds(t,e),Xs(e),s=e.child,s.flags&8192&&(a=s.memoizedState!==null,s.stateNode.isHidden=a,!a||s.alternate!==null&&s.alternate.memoizedState!==null||(e_=Nn())),i&4&&O4(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(pr=(d=pr)||u,ds(t,e),pr=d):ds(t,e),Xs(e),i&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(_e=e,u=e.child;u!==null;){for(h=_e=u;_e!==null;){switch(m=_e,f=m.child,m.tag){case 0:case 11:case 14:case 15:yf(4,m,m.return);break;case 1:Jd(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){i=m,n=m.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(p){xn(i,n,p)}}break;case 5:Jd(m,m.return);break;case 22:if(m.memoizedState!==null){D4(h);continue}}f!==null?(f.return=m,_e=f):D4(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{s=h.stateNode,d?(a=s.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=vM("display",o))}catch(p){xn(e,e.return,p)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(p){xn(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ds(t,e),Xs(e),i&4&&O4(e);break;case 21:break;default:ds(t,e),Xs(e)}}function Xs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(z8(n)){var i=n;break e}n=n.return}throw Error(ce(160))}switch(i.tag){case 5:var s=i.stateNode;i.flags&32&&(zf(s,""),i.flags&=-33);var a=A4(e);KN(e,a,s);break;case 3:case 4:var o=i.stateNode.containerInfo,l=A4(e);YN(e,l,o);break;default:throw Error(ce(161))}}catch(c){xn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function NG(e,t,n){_e=e,V8(e)}function V8(e,t,n){for(var i=(e.mode&1)!==0;_e!==null;){var s=_e,a=s.child;if(s.tag===22&&i){var o=s.memoizedState!==null||Cv;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||pr;l=Cv;var d=pr;if(Cv=o,(pr=c)&&!d)for(_e=s;_e!==null;)o=_e,c=o.child,o.tag===22&&o.memoizedState!==null?M4(s):c!==null?(c.return=o,_e=c):M4(s);for(;a!==null;)_e=a,V8(a),a=a.sibling;_e=s,Cv=l,pr=d}I4(e)}else s.subtreeFlags&8772&&a!==null?(a.return=s,_e=a):I4(e)}}function I4(e){for(;_e!==null;){var t=_e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pr||bb(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!pr)if(n===null)i.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:vs(t.type,n.memoizedProps);i.componentDidUpdate(s,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&v4(t,a,i);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}v4(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Gf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ce(163))}pr||t.flags&512&&GN(t)}catch(m){xn(t,t.return,m)}}if(t===e){_e=null;break}if(n=t.sibling,n!==null){n.return=t.return,_e=n;break}_e=t.return}}function D4(e){for(;_e!==null;){var t=_e;if(t===e){_e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_e=n;break}_e=t.return}}function M4(e){for(;_e!==null;){var t=_e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bb(4,t)}catch(c){xn(t,n,c)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var s=t.return;try{i.componentDidMount()}catch(c){xn(t,s,c)}}var a=t.return;try{GN(t)}catch(c){xn(t,a,c)}break;case 5:var o=t.return;try{GN(t)}catch(c){xn(t,o,c)}}}catch(c){xn(t,t.return,c)}if(t===e){_e=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_e=l;break}_e=t.return}}var SG=Math.ceil,dy=ko.ReactCurrentDispatcher,JC=ko.ReactCurrentOwner,Vi=ko.ReactCurrentBatchConfig,bt=0,Jn=null,Tn=null,or=0,fi=0,Zd=Ll(0),Fn=0,ip=null,Wc=0,wb=0,ZC=0,bf=null,Yr=null,e_=0,Hu=1/0,Wa=null,uy=!1,XN=null,fl=null,_v=!1,sl=null,hy=0,wf=0,QN=null,Nx=-1,Sx=0;function Dr(){return bt&6?Nn():Nx!==-1?Nx:Nx=Nn()}function pl(e){return e.mode&1?bt&2&&or!==0?or&-or:oG.transition!==null?(Sx===0&&(Sx=EM()),Sx):(e=At,e!==0||(e=window.event,e=e===void 0?16:$M(e.type)),e):1}function As(e,t,n,i){if(50<wf)throw wf=0,QN=null,Error(ce(185));yg(e,n,i),(!(bt&2)||e!==Jn)&&(e===Jn&&(!(bt&2)&&(wb|=n),Fn===4&&Vo(e,or)),ni(e,i),n===1&&bt===0&&!(t.mode&1)&&(Hu=Nn()+500,vb&&Ul()))}function ni(e,t){var n=e.callbackNode;oV(e,t);var i=Kx(e,e===Jn?or:0);if(i===0)n!==null&&qT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&qT(n),t===1)e.tag===0?aG(R4.bind(null,e)):n8(R4.bind(null,e)),nG(function(){!(bt&6)&&Ul()}),n=null;else{switch(AM(i)){case 1:n=CC;break;case 4:n=TM;break;case 16:n=Yx;break;case 536870912:n=PM;break;default:n=Yx}n=eR(n,G8.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function G8(e,t){if(Nx=-1,Sx=0,bt&6)throw Error(ce(327));var n=e.callbackNode;if(mu()&&e.callbackNode!==n)return null;var i=Kx(e,e===Jn?or:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=my(e,i);else{t=i;var s=bt;bt|=2;var a=K8();(Jn!==e||or!==t)&&(Wa=null,Hu=Nn()+500,Ac(e,t));do try{_G();break}catch(l){Y8(e,l)}while(!0);UC(),dy.current=a,bt=s,Tn!==null?t=0:(Jn=null,or=0,t=Fn)}if(t!==0){if(t===2&&(s=SN(e),s!==0&&(i=s,t=JN(e,s))),t===1)throw n=ip,Ac(e,0),Vo(e,i),ni(e,Nn()),n;if(t===6)Vo(e,i);else{if(s=e.current.alternate,!(i&30)&&!kG(s)&&(t=my(e,i),t===2&&(a=SN(e),a!==0&&(i=a,t=JN(e,a))),t===1))throw n=ip,Ac(e,0),Vo(e,i),ni(e,Nn()),n;switch(e.finishedWork=s,e.finishedLanes=i,t){case 0:case 1:throw Error(ce(345));case 2:sc(e,Yr,Wa);break;case 3:if(Vo(e,i),(i&130023424)===i&&(t=e_+500-Nn(),10<t)){if(Kx(e,0)!==0)break;if(s=e.suspendedLanes,(s&i)!==i){Dr(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ON(sc.bind(null,e,Yr,Wa),t);break}sc(e,Yr,Wa);break;case 4:if(Vo(e,i),(i&4194240)===i)break;for(t=e.eventTimes,s=-1;0<i;){var o=31-Es(i);a=1<<o,o=t[o],o>s&&(s=o),i&=~a}if(i=s,i=Nn()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*SG(i/1960))-i,10<i){e.timeoutHandle=ON(sc.bind(null,e,Yr,Wa),i);break}sc(e,Yr,Wa);break;case 5:sc(e,Yr,Wa);break;default:throw Error(ce(329))}}}return ni(e,Nn()),e.callbackNode===n?G8.bind(null,e):null}function JN(e,t){var n=bf;return e.current.memoizedState.isDehydrated&&(Ac(e,t).flags|=256),e=my(e,t),e!==2&&(t=Yr,Yr=n,t!==null&&ZN(t)),e}function ZN(e){Yr===null?Yr=e:Yr.push.apply(Yr,e)}function kG(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var s=n[i],a=s.getSnapshot;s=s.value;try{if(!Ms(a(),s))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 Vo(e,t){for(t&=~ZC,t&=~wb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Es(t),i=1<<n;e[n]=-1,t&=~i}}function R4(e){if(bt&6)throw Error(ce(327));mu();var t=Kx(e,0);if(!(t&1))return ni(e,Nn()),null;var n=my(e,t);if(e.tag!==0&&n===2){var i=SN(e);i!==0&&(t=i,n=JN(e,i))}if(n===1)throw n=ip,Ac(e,0),Vo(e,t),ni(e,Nn()),n;if(n===6)throw Error(ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sc(e,Yr,Wa),ni(e,Nn()),null}function t_(e,t){var n=bt;bt|=1;try{return e(t)}finally{bt=n,bt===0&&(Hu=Nn()+500,vb&&Ul())}}function zc(e){sl!==null&&sl.tag===0&&!(bt&6)&&mu();var t=bt;bt|=1;var n=Vi.transition,i=At;try{if(Vi.transition=null,At=1,e)return e()}finally{At=i,Vi.transition=n,bt=t,!(bt&6)&&Ul()}}function n_(){fi=Zd.current,Kt(Zd)}function Ac(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tG(n)),Tn!==null)for(n=Tn.return;n!==null;){var i=n;switch(RC(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&ey();break;case 3:zu(),Kt(ei),Kt(br),HC();break;case 5:qC(i);break;case 4:zu();break;case 13:Kt(ln);break;case 19:Kt(ln);break;case 10:FC(i.type._context);break;case 22:case 23:n_()}n=n.return}if(Jn=e,Tn=e=gl(e.current,null),or=fi=t,Fn=0,ip=null,ZC=wb=Wc=0,Yr=bf=null,pc!==null){for(t=0;t<pc.length;t++)if(n=pc[t],i=n.interleaved,i!==null){n.interleaved=null;var s=i.next,a=n.pending;if(a!==null){var o=a.next;a.next=s,i.next=o}n.pending=i}pc=null}return e}function Y8(e,t){do{var n=Tn;try{if(UC(),bx.current=cy,ly){for(var i=dn.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}ly=!1}if(Bc=0,Yn=Mn=dn=null,xf=!1,tp=0,JC.current=null,n===null||n.return===null){Fn=1,ip=t,Tn=null;break}e:{var a=e,o=n.return,l=n,c=t;if(t=or,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var m=u.alternate;m?(u.updateQueue=m.updateQueue,u.memoizedState=m.memoizedState,u.lanes=m.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=N4(o);if(f!==null){f.flags&=-257,S4(f,o,l,a,t),f.mode&1&&j4(a,d,t),t=f,c=d;var g=t.updateQueue;if(g===null){var p=new Set;p.add(c),t.updateQueue=p}else g.add(c);break e}else{if(!(t&1)){j4(a,d,t),r_();break e}c=Error(ce(426))}}else if(en&&l.mode&1){var v=N4(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),S4(v,o,l,a,t),$C(qu(c,l));break e}}a=c=qu(c,l),Fn!==4&&(Fn=2),bf===null?bf=[a]:bf.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=A8(a,c,t);g4(a,y);break e;case 1:l=c;var x=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(fl===null||!fl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=O8(a,l,t);g4(a,w);break e}}a=a.return}while(a!==null)}Q8(n)}catch(N){t=N,Tn===n&&n!==null&&(Tn=n=n.return);continue}break}while(!0)}function K8(){var e=dy.current;return dy.current=cy,e===null?cy:e}function r_(){(Fn===0||Fn===3||Fn===2)&&(Fn=4),Jn===null||!(Wc&268435455)&&!(wb&268435455)||Vo(Jn,or)}function my(e,t){var n=bt;bt|=2;var i=K8();(Jn!==e||or!==t)&&(Wa=null,Ac(e,t));do try{CG();break}catch(s){Y8(e,s)}while(!0);if(UC(),bt=n,dy.current=i,Tn!==null)throw Error(ce(261));return Jn=null,or=0,Fn}function CG(){for(;Tn!==null;)X8(Tn)}function _G(){for(;Tn!==null&&!JH();)X8(Tn)}function X8(e){var t=Z8(e.alternate,e,fi);e.memoizedProps=e.pendingProps,t===null?Q8(e):Tn=t,JC.current=null}function Q8(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bG(n,t),n!==null){n.flags&=32767,Tn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fn=6,Tn=null;return}}else if(n=yG(n,t,fi),n!==null){Tn=n;return}if(t=t.sibling,t!==null){Tn=t;return}Tn=t=e}while(t!==null);Fn===0&&(Fn=5)}function sc(e,t,n){var i=At,s=Vi.transition;try{Vi.transition=null,At=1,TG(e,t,n,i)}finally{Vi.transition=s,At=i}return null}function TG(e,t,n,i){do mu();while(sl!==null);if(bt&6)throw Error(ce(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ce(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(lV(e,a),e===Jn&&(Tn=Jn=null,or=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_v||(_v=!0,eR(Yx,function(){return mu(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Vi.transition,Vi.transition=null;var o=At;At=1;var l=bt;bt|=4,JC.current=null,jG(e,n),H8(n,e),YV(EN),Xx=!!PN,EN=PN=null,e.current=n,NG(n),ZH(),bt=l,At=o,Vi.transition=a}else e.current=n;if(_v&&(_v=!1,sl=e,hy=s),a=e.pendingLanes,a===0&&(fl=null),nV(n.stateNode),ni(e,Nn()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],i(s.value,{componentStack:s.stack,digest:s.digest});if(uy)throw uy=!1,e=XN,XN=null,e;return hy&1&&e.tag!==0&&mu(),a=e.pendingLanes,a&1?e===QN?wf++:(wf=0,QN=e):wf=0,Ul(),null}function mu(){if(sl!==null){var e=AM(hy),t=Vi.transition,n=At;try{if(Vi.transition=null,At=16>e?16:e,sl===null)var i=!1;else{if(e=sl,sl=null,hy=0,bt&6)throw Error(ce(331));var s=bt;for(bt|=4,_e=e.current;_e!==null;){var a=_e,o=a.child;if(_e.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(_e=d;_e!==null;){var u=_e;switch(u.tag){case 0:case 11:case 15:yf(8,u,a)}var h=u.child;if(h!==null)h.return=u,_e=h;else for(;_e!==null;){u=_e;var m=u.sibling,f=u.return;if(W8(u),u===d){_e=null;break}if(m!==null){m.return=f,_e=m;break}_e=f}}}var g=a.alternate;if(g!==null){var p=g.child;if(p!==null){g.child=null;do{var v=p.sibling;p.sibling=null,p=v}while(p!==null)}}_e=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,_e=o;else e:for(;_e!==null;){if(a=_e,a.flags&2048)switch(a.tag){case 0:case 11:case 15:yf(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,_e=y;break e}_e=a.return}}var x=e.current;for(_e=x;_e!==null;){o=_e;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,_e=b;else e:for(o=x;_e!==null;){if(l=_e,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:bb(9,l)}}catch(N){xn(l,l.return,N)}if(l===o){_e=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,_e=w;break e}_e=l.return}}if(bt=s,Ul(),ua&&typeof ua.onPostCommitFiberRoot=="function")try{ua.onPostCommitFiberRoot(hb,e)}catch{}i=!0}return i}finally{At=n,Vi.transition=t}}return!1}function $4(e,t,n){t=qu(n,t),t=A8(e,t,1),e=ml(e,t,1),t=Dr(),e!==null&&(yg(e,1,t),ni(e,t))}function xn(e,t,n){if(e.tag===3)$4(e,e,n);else for(;t!==null;){if(t.tag===3){$4(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(fl===null||!fl.has(i))){e=qu(n,e),e=O8(t,e,1),t=ml(t,e,1),e=Dr(),t!==null&&(yg(t,1,e),ni(t,e));break}}t=t.return}}function PG(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Dr(),e.pingedLanes|=e.suspendedLanes&n,Jn===e&&(or&n)===n&&(Fn===4||Fn===3&&(or&130023424)===or&&500>Nn()-e_?Ac(e,0):ZC|=n),ni(e,t)}function J8(e,t){t===0&&(e.mode&1?(t=vv,vv<<=1,!(vv&130023424)&&(vv=4194304)):t=1);var n=Dr();e=fo(e,t),e!==null&&(yg(e,t,n),ni(e,n))}function EG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),J8(e,n)}function AG(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(ce(314))}i!==null&&i.delete(t),J8(e,n)}var Z8;Z8=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ei.current)Jr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Jr=!1,xG(e,t,n);Jr=!!(e.flags&131072)}else Jr=!1,en&&t.flags&1048576&&r8(t,ry,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;jx(e,t),e=t.pendingProps;var s=Fu(t,br.current);hu(t,n),s=GC(null,t,i,e,s,n);var a=YC();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ti(i)?(a=!0,ty(t)):a=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,WC(t),s.updater=yb,t.stateNode=s,s._reactInternals=t,UN(t,i,e,n),t=WN(null,t,i,!0,a,n)):(t.tag=0,en&&a&&MC(t),kr(null,t,s,n),t=t.child),t;case 16:i=t.elementType;e:{switch(jx(e,t),e=t.pendingProps,s=i._init,i=s(i._payload),t.type=i,s=t.tag=IG(i),e=vs(i,e),s){case 0:t=BN(null,t,i,e,n);break e;case 1:t=_4(null,t,i,e,n);break e;case 11:t=k4(null,t,i,e,n);break e;case 14:t=C4(null,t,i,vs(i.type,e),n);break e}throw Error(ce(306,i,""))}return t;case 0:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:vs(i,s),BN(e,t,i,s,n);case 1:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:vs(i,s),_4(e,t,i,s,n);case 3:e:{if(R8(t),e===null)throw Error(ce(387));i=t.pendingProps,a=t.memoizedState,s=a.element,c8(e,t),ay(t,i,null,n);var o=t.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){s=qu(Error(ce(423)),t),t=T4(e,t,i,n,s);break e}else if(i!==s){s=qu(Error(ce(424)),t),t=T4(e,t,i,n,s);break e}else for(wi=hl(t.stateNode.containerInfo.firstChild),Ni=t,en=!0,ks=null,n=o8(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bu(),i===s){t=po(e,t,n);break e}kr(e,t,i,n)}t=t.child}return t;case 5:return d8(t),e===null&&RN(t),i=t.type,s=t.pendingProps,a=e!==null?e.memoizedProps:null,o=s.children,AN(i,s)?o=null:a!==null&&AN(i,a)&&(t.flags|=32),M8(e,t),kr(e,t,o,n),t.child;case 6:return e===null&&RN(t),null;case 13:return $8(e,t,n);case 4:return zC(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wu(t,null,i,n):kr(e,t,i,n),t.child;case 11:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:vs(i,s),k4(e,t,i,s,n);case 7:return kr(e,t,t.pendingProps,n),t.child;case 8:return kr(e,t,t.pendingProps.children,n),t.child;case 12:return kr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,s=t.pendingProps,a=t.memoizedProps,o=s.value,Wt(iy,i._currentValue),i._currentValue=o,a!==null)if(Ms(a.value,o)){if(a.children===s.children&&!ei.current){t=po(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i){if(a.tag===1){c=so(-1,n&-n),c.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),$N(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ce(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$N(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}kr(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,i=t.pendingProps.children,hu(t,n),s=Ki(s),i=i(s),t.flags|=1,kr(e,t,i,n),t.child;case 14:return i=t.type,s=vs(i,t.pendingProps),s=vs(i.type,s),C4(e,t,i,s,n);case 15:return I8(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:vs(i,s),jx(e,t),t.tag=1,ti(i)?(e=!0,ty(t)):e=!1,hu(t,n),E8(t,i,s),UN(t,i,s,n),WN(null,t,i,!0,e,n);case 19:return L8(e,t,n);case 22:return D8(e,t,n)}throw Error(ce(156,t.tag))};function eR(e,t){return _M(e,t)}function OG(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zi(e,t,n,i){return new OG(e,t,n,i)}function i_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IG(e){if(typeof e=="function")return i_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===NC)return 11;if(e===SC)return 14}return 2}function gl(e,t){var n=e.alternate;return n===null?(n=zi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kx(e,t,n,i,s,a){var o=2;if(i=e,typeof e=="function")i_(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case zd:return Oc(n.children,s,a,t);case jC:o=8,s|=8;break;case cN:return e=zi(12,n,t,s|2),e.elementType=cN,e.lanes=a,e;case dN:return e=zi(13,n,t,s),e.elementType=dN,e.lanes=a,e;case uN:return e=zi(19,n,t,s),e.elementType=uN,e.lanes=a,e;case dM:return jb(n,s,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lM:o=10;break e;case cM:o=9;break e;case NC:o=11;break e;case SC:o=14;break e;case Uo:o=16,i=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=zi(o,n,t,s),t.elementType=e,t.type=i,t.lanes=a,t}function Oc(e,t,n,i){return e=zi(7,e,i,t),e.lanes=n,e}function jb(e,t,n,i){return e=zi(22,e,i,t),e.elementType=dM,e.lanes=n,e.stateNode={isHidden:!1},e}function $j(e,t,n){return e=zi(6,e,null,t),e.lanes=n,e}function Lj(e,t,n){return t=zi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DG(e,t,n,i,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xj(0),this.expirationTimes=xj(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xj(0),this.identifierPrefix=i,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function s_(e,t,n,i,s,a,o,l,c){return e=new DG(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=zi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},WC(a),e}function MG(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wd,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function tR(e){if(!e)return Cl;e=e._reactInternals;e:{if(od(e)!==e||e.tag!==1)throw Error(ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ce(171))}if(e.tag===1){var n=e.type;if(ti(n))return t8(e,n,t)}return t}function nR(e,t,n,i,s,a,o,l,c){return e=s_(n,i,!0,e,s,a,o,l,c),e.context=tR(null),n=e.current,i=Dr(),s=pl(n),a=so(i,s),a.callback=t??null,ml(n,a,s),e.current.lanes=s,yg(e,s,i),ni(e,i),e}function Nb(e,t,n,i){var s=t.current,a=Dr(),o=pl(s);return n=tR(n),t.context===null?t.context=n:t.pendingContext=n,t=so(a,o),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=ml(s,t,o),e!==null&&(As(e,s,o,a),yx(e,s,o)),o}function fy(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function L4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function a_(e,t){L4(e,t),(e=e.alternate)&&L4(e,t)}function RG(){return null}var rR=typeof reportError=="function"?reportError:function(e){console.error(e)};function o_(e){this._internalRoot=e}Sb.prototype.render=o_.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ce(409));Nb(e,t,null,null)};Sb.prototype.unmount=o_.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zc(function(){Nb(null,e,null,null)}),t[mo]=null}};function Sb(e){this._internalRoot=e}Sb.prototype.unstable_scheduleHydration=function(e){if(e){var t=DM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ho.length&&t!==0&&t<Ho[n].priority;n++);Ho.splice(n,0,e),n===0&&RM(e)}};function l_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kb(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function U4(){}function $G(e,t,n,i,s){if(s){if(typeof i=="function"){var a=i;i=function(){var d=fy(o);a.call(d)}}var o=nR(t,i,e,0,null,!1,!1,"",U4);return e._reactRootContainer=o,e[mo]=o.current,Xf(e.nodeType===8?e.parentNode:e),zc(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof i=="function"){var l=i;i=function(){var d=fy(c);l.call(d)}}var c=s_(e,0,!1,null,null,!1,!1,"",U4);return e._reactRootContainer=c,e[mo]=c.current,Xf(e.nodeType===8?e.parentNode:e),zc(function(){Nb(t,c,n,i)}),c}function Cb(e,t,n,i,s){var a=n._reactRootContainer;if(a){var o=a;if(typeof s=="function"){var l=s;s=function(){var c=fy(o);l.call(c)}}Nb(t,o,e,s)}else o=$G(n,t,e,s,i);return fy(o)}OM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Km(t.pendingLanes);n!==0&&(_C(t,n|1),ni(t,Nn()),!(bt&6)&&(Hu=Nn()+500,Ul()))}break;case 13:zc(function(){var i=fo(e,1);if(i!==null){var s=Dr();As(i,e,1,s)}}),a_(e,1)}};TC=function(e){if(e.tag===13){var t=fo(e,134217728);if(t!==null){var n=Dr();As(t,e,134217728,n)}a_(e,134217728)}};IM=function(e){if(e.tag===13){var t=pl(e),n=fo(e,t);if(n!==null){var i=Dr();As(n,e,t,i)}a_(e,t)}};DM=function(){return At};MM=function(e,t){var n=At;try{return At=e,t()}finally{At=n}};wN=function(e,t,n){switch(t){case"input":if(fN(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=gb(i);if(!s)throw Error(ce(90));hM(i),fN(i,s)}}}break;case"textarea":fM(e,n);break;case"select":t=n.value,t!=null&&lu(e,!!n.multiple,t,!1)}};wM=t_;jM=zc;var LG={usingClientEntryPoint:!1,Events:[wg,Gd,gb,yM,bM,t_]},xm={findFiberByHostInstance:fc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},UG={bundleType:xm.bundleType,version:xm.version,rendererPackageName:xm.rendererPackageName,rendererConfig:xm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ko.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kM(e),e===null?null:e.stateNode},findFiberByHostInstance:xm.findFiberByHostInstance||RG,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tv.isDisabled&&Tv.supportsFiber)try{hb=Tv.inject(UG),ua=Tv}catch{}}Ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LG;Ei.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l_(t))throw Error(ce(200));return MG(e,t,null,n)};Ei.createRoot=function(e,t){if(!l_(e))throw Error(ce(299));var n=!1,i="",s=rR;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=s_(e,1,!1,null,null,n,!1,i,s),e[mo]=t.current,Xf(e.nodeType===8?e.parentNode:e),new o_(t)};Ei.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ce(188)):(e=Object.keys(e).join(","),Error(ce(268,e)));return e=kM(t),e=e===null?null:e.stateNode,e};Ei.flushSync=function(e){return zc(e)};Ei.hydrate=function(e,t,n){if(!kb(t))throw Error(ce(200));return Cb(null,e,t,!0,n)};Ei.hydrateRoot=function(e,t,n){if(!l_(e))throw Error(ce(405));var i=n!=null&&n.hydratedSources||null,s=!1,a="",o=rR;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=nR(t,null,e,1,n??null,s,!1,a,o),e[mo]=t.current,Xf(e),i)for(e=0;e<i.length;e++)n=i[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Sb(t)};Ei.render=function(e,t,n){if(!kb(t))throw Error(ce(200));return Cb(null,e,t,!1,n)};Ei.unmountComponentAtNode=function(e){if(!kb(e))throw Error(ce(40));return e._reactRootContainer?(zc(function(){Cb(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0):!1};Ei.unstable_batchedUpdates=t_;Ei.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!kb(n))throw Error(ce(200));if(e==null||e._reactInternals===void 0)throw Error(ce(38));return Cb(e,t,n,!1,i)};Ei.version="18.3.1-next-f1338f8080-20240426";function iR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iR)}catch(e){console.error(e)}}iR(),iM.exports=Ei;var ld=iM.exports;const FG=jt(ld);var sR,F4=ld;sR=F4.createRoot,F4.hydrateRoot;var Dh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},BG={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ko,fC,MD,WG=(MD=class{constructor(){Me(this,Ko,BG);Me(this,fC,!1)}setTimeoutProvider(e){Se(this,Ko,e)}setTimeout(e,t){return F(this,Ko).setTimeout(e,t)}clearTimeout(e){F(this,Ko).clearTimeout(e)}setInterval(e,t){return F(this,Ko).setInterval(e,t)}clearInterval(e){F(this,Ko).clearInterval(e)}},Ko=new WeakMap,fC=new WeakMap,MD),vc=new WG;function zG(e){setTimeout(e,0)}var qc=typeof window>"u"||"Deno"in globalThis;function Cr(){}function qG(e,t){return typeof e=="function"?e(t):e}function e2(e){return typeof e=="number"&&e>=0&&e!==1/0}function aR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vl(e,t){return typeof e=="function"?e(t):e}function Li(e,t){return typeof e=="function"?e(t):e}function B4(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:a,queryKey:o,stale:l}=e;if(o){if(i){if(t.queryHash!==c_(o,t.options))return!1}else if(!sp(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||a&&!a(t))}function W4(e,t){const{exact:n,status:i,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Hc(t.options.mutationKey)!==Hc(a))return!1}else if(!sp(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function c_(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hc)(e)}function Hc(e){return JSON.stringify(e,(t,n)=>t2(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function sp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sp(e[n],t[n])):!1}var HG=Object.prototype.hasOwnProperty;function oR(e,t){if(e===t)return e;const n=z4(e)&&z4(t);if(!n&&!(t2(e)&&t2(t)))return t;const s=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),o=a.length,l=n?new Array(o):{};let c=0;for(let d=0;d<o;d++){const u=n?d:a[d],h=e[u],m=t[u];if(h===m){l[u]=h,(n?d<s:HG.call(e,u))&&c++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[u]=m;continue}const f=oR(h,m);l[u]=f,f===h&&c++}return s===o&&c===s?e:l}function py(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function z4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function t2(e){if(!q4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!q4(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function q4(e){return Object.prototype.toString.call(e)==="[object Object]"}function VG(e){return new Promise(t=>{vc.setTimeout(t,e)})}function n2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oR(e,t):t}function GG(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function YG(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var d_=Symbol();function lR(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===d_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cR(e,t){return typeof e=="function"?e(...t):!!e}var jc,Xo,_u,RD,KG=(RD=class extends Dh{constructor(){super();Me(this,jc);Me(this,Xo);Me(this,_u);Se(this,_u,t=>{if(!qc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,Xo)||this.setEventListener(F(this,_u))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,Xo))==null||t.call(this),Se(this,Xo,void 0))}setEventListener(t){var n;Se(this,_u,t),(n=F(this,Xo))==null||n.call(this),Se(this,Xo,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){F(this,jc)!==t&&(Se(this,jc,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof F(this,jc)=="boolean"?F(this,jc):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},jc=new WeakMap,Xo=new WeakMap,_u=new WeakMap,RD),u_=new KG;function r2(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var XG=zG;function QG(){let e=[],t=0,n=l=>{l()},i=l=>{l()},s=XG;const a=l=>{t?e.push(l):s(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{i(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{i=l},setScheduler:l=>{s=l}}}var $n=QG(),Tu,Qo,Pu,$D,JG=($D=class extends Dh{constructor(){super();Me(this,Tu,!0);Me(this,Qo);Me(this,Pu);Se(this,Pu,t=>{if(!qc&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){F(this,Qo)||this.setEventListener(F(this,Pu))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,Qo))==null||t.call(this),Se(this,Qo,void 0))}setEventListener(t){var n;Se(this,Pu,t),(n=F(this,Qo))==null||n.call(this),Se(this,Qo,t(this.setOnline.bind(this)))}setOnline(t){F(this,Tu)!==t&&(Se(this,Tu,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return F(this,Tu)}},Tu=new WeakMap,Qo=new WeakMap,Pu=new WeakMap,$D),gy=new JG;function ZG(e){return Math.min(1e3*2**e,3e4)}function dR(e){return(e??"online")==="online"?gy.isOnline():!0}var i2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uR(e){let t=!1,n=0,i;const s=r2(),a=()=>s.status!=="pending",o=p=>{var v;if(!a()){const y=new i2(p);m(y),(v=e.onCancel)==null||v.call(e,y)}},l=()=>{t=!0},c=()=>{t=!1},d=()=>u_.isFocused()&&(e.networkMode==="always"||gy.isOnline())&&e.canRun(),u=()=>dR(e.networkMode)&&e.canRun(),h=p=>{a()||(i==null||i(),s.resolve(p))},m=p=>{a()||(i==null||i(),s.reject(p))},f=()=>new Promise(p=>{var v;i=y=>{(a()||d())&&p(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;i=void 0,a()||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(a())return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(h).catch(y=>{var S;if(a())return;const x=e.retry??(qc?0:3),b=e.retryDelay??ZG,w=typeof b=="function"?b(n,y):b,N=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!N){m(y);return}n++,(S=e.onFail)==null||S.call(e,n,y),VG(w).then(()=>d()?void 0:f()).then(()=>{t?m(y):g()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?g():f().then(g),s)}}var Nc,LD,hR=(LD=class{constructor(){Me(this,Nc)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),e2(this.gcTime)&&Se(this,Nc,vc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qc?1/0:5*60*1e3))}clearGcTimeout(){F(this,Nc)&&(vc.clearTimeout(F(this,Nc)),Se(this,Nc,void 0))}},Nc=new WeakMap,LD),Sc,Eu,$i,kc,qn,mg,Cc,xs,Ua,UD,eY=(UD=class extends hR{constructor(t){super();Me(this,xs);Me(this,Sc);Me(this,Eu);Me(this,$i);Me(this,kc);Me(this,qn);Me(this,mg);Me(this,Cc);Se(this,Cc,!1),Se(this,mg,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,kc,t.client),Se(this,$i,F(this,kc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,Sc,H4(this.options)),this.state=t.state??F(this,Sc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=F(this,qn))==null?void 0:t.promise}setOptions(t){if(this.options={...F(this,mg),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=H4(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),Se(this,Sc,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&F(this,$i).remove(this)}setData(t,n){const i=n2(this.state.data,t,this.options);return at(this,xs,Ua).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){at(this,xs,Ua).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=F(this,qn))==null?void 0:i.promise;return(s=F(this,qn))==null||s.cancel(t),n?n.then(Cr).catch(Cr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(F(this,Sc))}isActive(){return this.observers.some(t=>Li(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===d_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>vl(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!aR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,qn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,qn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),F(this,$i).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(F(this,qn)&&(F(this,Cc)?F(this,qn).cancel({revert:!0}):F(this,qn).cancelRetry()),this.scheduleGc()),F(this,$i).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||at(this,xs,Ua).call(this,{type:"invalidate"})}async fetch(t,n){var c,d,u,h,m,f,g,p,v,y,x,b;if(this.state.fetchStatus!=="idle"&&((c=F(this,qn))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(F(this,qn))return F(this,qn).continueRetry(),F(this,qn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(N=>N.options.queryFn);w&&this.setOptions(w.options)}const i=new AbortController,s=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(Se(this,Cc,!0),i.signal)})},a=()=>{const w=lR(this.options,n),S=(()=>{const k={client:F(this,kc),queryKey:this.queryKey,meta:this.meta};return s(k),k})();return Se(this,Cc,!1),this.options.persister?this.options.persister(w,S,this):w(S)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:F(this,kc),state:this.state,fetchFn:a};return s(w),w})();(d=this.options.behavior)==null||d.onFetch(l,this),Se(this,Eu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&at(this,xs,Ua).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta}),Se(this,qn,uR({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof i2&&w.revert&&this.setState({...F(this,Eu),fetchStatus:"idle"}),i.abort()},onFail:(w,N)=>{at(this,xs,Ua).call(this,{type:"failed",failureCount:w,error:N})},onPause:()=>{at(this,xs,Ua).call(this,{type:"pause"})},onContinue:()=>{at(this,xs,Ua).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await F(this,qn).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(f=(m=F(this,$i).config).onSuccess)==null||f.call(m,w,this),(p=(g=F(this,$i).config).onSettled)==null||p.call(g,w,this.state.error,this),w}catch(w){if(w instanceof i2){if(w.silent)return F(this,qn).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw at(this,xs,Ua).call(this,{type:"error",error:w}),(y=(v=F(this,$i).config).onError)==null||y.call(v,w,this),(b=(x=F(this,$i).config).onSettled)==null||b.call(x,this.state.data,w,this),w}finally{this.scheduleGc()}}},Sc=new WeakMap,Eu=new WeakMap,$i=new WeakMap,kc=new WeakMap,qn=new WeakMap,mg=new WeakMap,Cc=new WeakMap,xs=new WeakSet,Ua=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mR(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Se(this,Eu,t.manual?s:void 0),s;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),$n.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),F(this,$i).notify({query:this,type:"updated",action:t})})},UD);function mR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function H4(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Vr,pt,fg,Nr,_c,Au,Ga,Jo,pg,Ou,Iu,Tc,Pc,Zo,Du,Tt,Qm,s2,a2,o2,l2,c2,d2,u2,fR,FD,tY=(FD=class extends Dh{constructor(t,n){super();Me(this,Tt);Me(this,Vr);Me(this,pt);Me(this,fg);Me(this,Nr);Me(this,_c);Me(this,Au);Me(this,Ga);Me(this,Jo);Me(this,pg);Me(this,Ou);Me(this,Iu);Me(this,Tc);Me(this,Pc);Me(this,Zo);Me(this,Du,new Set);this.options=n,Se(this,Vr,t),Se(this,Jo,null),Se(this,Ga,r2()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(F(this,pt).addObserver(this),V4(F(this,pt),this.options)?at(this,Tt,Qm).call(this):this.updateResult(),at(this,Tt,l2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h2(F(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h2(F(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,at(this,Tt,c2).call(this),at(this,Tt,d2).call(this),F(this,pt).removeObserver(this)}setOptions(t){const n=this.options,i=F(this,pt);if(this.options=F(this,Vr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Li(this.options.enabled,F(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");at(this,Tt,u2).call(this),F(this,pt).setOptions(this.options),n._defaulted&&!py(this.options,n)&&F(this,Vr).getQueryCache().notify({type:"observerOptionsUpdated",query:F(this,pt),observer:this});const s=this.hasListeners();s&&G4(F(this,pt),i,this.options,n)&&at(this,Tt,Qm).call(this),this.updateResult(),s&&(F(this,pt)!==i||Li(this.options.enabled,F(this,pt))!==Li(n.enabled,F(this,pt))||vl(this.options.staleTime,F(this,pt))!==vl(n.staleTime,F(this,pt)))&&at(this,Tt,s2).call(this);const a=at(this,Tt,a2).call(this);s&&(F(this,pt)!==i||Li(this.options.enabled,F(this,pt))!==Li(n.enabled,F(this,pt))||a!==F(this,Zo))&&at(this,Tt,o2).call(this,a)}getOptimisticResult(t){const n=F(this,Vr).getQueryCache().build(F(this,Vr),t),i=this.createResult(n,t);return rY(this,i)&&(Se(this,Nr,i),Se(this,Au,this.options),Se(this,_c,F(this,pt).state)),i}getCurrentResult(){return F(this,Nr)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&F(this,Ga).status==="pending"&&F(this,Ga).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(t){F(this,Du).add(t)}getCurrentQuery(){return F(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=F(this,Vr).defaultQueryOptions(t),i=F(this,Vr).getQueryCache().build(F(this,Vr),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return at(this,Tt,Qm).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),F(this,Nr)))}createResult(t,n){var D;const i=F(this,pt),s=this.options,a=F(this,Nr),o=F(this,_c),l=F(this,Au),d=t!==i?t.state:F(this,fg),{state:u}=t;let h={...u},m=!1,f;if(n._optimisticResults){const A=this.hasListeners(),E=!A&&V4(t,n),T=A&&G4(t,i,n,s);(E||T)&&(h={...h,...mR(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:g,errorUpdatedAt:p,status:v}=h;f=h.data;let y=!1;if(n.placeholderData!==void 0&&f===void 0&&v==="pending"){let A;a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(A=a.data,y=!0):A=typeof n.placeholderData=="function"?n.placeholderData((D=F(this,Iu))==null?void 0:D.state.data,F(this,Iu)):n.placeholderData,A!==void 0&&(v="success",f=n2(a==null?void 0:a.data,A,n),m=!0)}if(n.select&&f!==void 0&&!y)if(a&&f===(o==null?void 0:o.data)&&n.select===F(this,pg))f=F(this,Ou);else try{Se(this,pg,n.select),f=n.select(f),f=n2(a==null?void 0:a.data,f,n),Se(this,Ou,f),Se(this,Jo,null)}catch(A){Se(this,Jo,A)}F(this,Jo)&&(g=F(this,Jo),f=F(this,Ou),p=Date.now(),v="error");const x=h.fetchStatus==="fetching",b=v==="pending",w=v==="error",N=b&&x,S=f!==void 0,_={status:v,fetchStatus:h.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:N,isLoading:N,data:f,dataUpdatedAt:h.dataUpdatedAt,error:g,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!b,isLoadingError:w&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&S,isStale:h_(t,n),refetch:this.refetch,promise:F(this,Ga),isEnabled:Li(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const A=M=>{_.status==="error"?M.reject(_.error):_.data!==void 0&&M.resolve(_.data)},E=()=>{const M=Se(this,Ga,_.promise=r2());A(M)},T=F(this,Ga);switch(T.status){case"pending":t.queryHash===i.queryHash&&A(T);break;case"fulfilled":(_.status==="error"||_.data!==T.value)&&E();break;case"rejected":(_.status!=="error"||_.error!==T.reason)&&E();break}}return _}updateResult(){const t=F(this,Nr),n=this.createResult(F(this,pt),this.options);if(Se(this,_c,F(this,pt).state),Se(this,Au,this.options),F(this,_c).data!==void 0&&Se(this,Iu,F(this,pt)),py(n,t))return;Se(this,Nr,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!F(this,Du).size)return!0;const o=new Set(a??F(this,Du));return this.options.throwOnError&&o.add("error"),Object.keys(F(this,Nr)).some(l=>{const c=l;return F(this,Nr)[c]!==t[c]&&o.has(c)})};at(this,Tt,fR).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&at(this,Tt,l2).call(this)}},Vr=new WeakMap,pt=new WeakMap,fg=new WeakMap,Nr=new WeakMap,_c=new WeakMap,Au=new WeakMap,Ga=new WeakMap,Jo=new WeakMap,pg=new WeakMap,Ou=new WeakMap,Iu=new WeakMap,Tc=new WeakMap,Pc=new WeakMap,Zo=new WeakMap,Du=new WeakMap,Tt=new WeakSet,Qm=function(t){at(this,Tt,u2).call(this);let n=F(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Cr)),n},s2=function(){at(this,Tt,c2).call(this);const t=vl(this.options.staleTime,F(this,pt));if(qc||F(this,Nr).isStale||!e2(t))return;const i=aR(F(this,Nr).dataUpdatedAt,t)+1;Se(this,Tc,vc.setTimeout(()=>{F(this,Nr).isStale||this.updateResult()},i))},a2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(F(this,pt)):this.options.refetchInterval)??!1},o2=function(t){at(this,Tt,d2).call(this),Se(this,Zo,t),!(qc||Li(this.options.enabled,F(this,pt))===!1||!e2(F(this,Zo))||F(this,Zo)===0)&&Se(this,Pc,vc.setInterval(()=>{(this.options.refetchIntervalInBackground||u_.isFocused())&&at(this,Tt,Qm).call(this)},F(this,Zo)))},l2=function(){at(this,Tt,s2).call(this),at(this,Tt,o2).call(this,at(this,Tt,a2).call(this))},c2=function(){F(this,Tc)&&(vc.clearTimeout(F(this,Tc)),Se(this,Tc,void 0))},d2=function(){F(this,Pc)&&(vc.clearInterval(F(this,Pc)),Se(this,Pc,void 0))},u2=function(){const t=F(this,Vr).getQueryCache().build(F(this,Vr),this.options);if(t===F(this,pt))return;const n=F(this,pt);Se(this,pt,t),Se(this,fg,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fR=function(t){$n.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(F(this,Nr))}),F(this,Vr).getQueryCache().notify({query:F(this,pt),type:"observerResultsUpdated"})})},FD);function nY(e,t){return Li(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function V4(e,t){return nY(e,t)||e.state.data!==void 0&&h2(e,t,t.refetchOnMount)}function h2(e,t,n){if(Li(t.enabled,e)!==!1&&vl(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&h_(e,t)}return!1}function G4(e,t,n,i){return(e!==t||Li(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&h_(e,n)}function h_(e,t){return Li(t.enabled,e)!==!1&&e.isStaleByTime(vl(t.staleTime,e))}function rY(e,t){return!py(e.getCurrentResult(),t)}function Y4(e){return{onFetch:(t,n)=>{var u,h,m,f,g;const i=t.options,s=(m=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,a=((f=t.state.data)==null?void 0:f.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let p=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=lR(t.options,t.fetchOptions),x=async(b,w,N)=>{if(p)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const k=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:w,direction:N?"backward":"forward",meta:t.options.meta};return v(E),E})(),_=await y(k),{maxPages:D}=t.options,A=N?YG:GG;return{pages:A(b.pages,_,D),pageParams:A(b.pageParams,w,D)}};if(s&&a.length){const b=s==="backward",w=b?iY:K4,N={pages:a,pageParams:o},S=w(i,N);l=await x(N,S,b)}else{const b=e??a.length;do{const w=c===0?o[0]??i.initialPageParam:K4(i,l);if(c>0&&w==null)break;l=await x(l,w),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function K4(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function iY(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var gg,Js,Sr,Ec,Zs,Ro,BD,sY=(BD=class extends hR{constructor(t){super();Me(this,Zs);Me(this,gg);Me(this,Js);Me(this,Sr);Me(this,Ec);Se(this,gg,t.client),this.mutationId=t.mutationId,Se(this,Sr,t.mutationCache),Se(this,Js,[]),this.state=t.state||pR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){F(this,Js).includes(t)||(F(this,Js).push(t),this.clearGcTimeout(),F(this,Sr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,Js,F(this,Js).filter(n=>n!==t)),this.scheduleGc(),F(this,Sr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){F(this,Js).length||(this.state.status==="pending"?this.scheduleGc():F(this,Sr).remove(this))}continue(){var t;return((t=F(this,Ec))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,c,d,u,h,m,f,g,p,v,y,x,b,w,N,S,k,_,D;const n=()=>{at(this,Zs,Ro).call(this,{type:"continue"})},i={client:F(this,gg),meta:this.options.meta,mutationKey:this.options.mutationKey};Se(this,Ec,uR({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(A,E)=>{at(this,Zs,Ro).call(this,{type:"failed",failureCount:A,error:E})},onPause:()=>{at(this,Zs,Ro).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>F(this,Sr).canRun(this)}));const s=this.state.status==="pending",a=!F(this,Ec).canStart();try{if(s)n();else{at(this,Zs,Ro).call(this,{type:"pending",variables:t,isPaused:a}),await((l=(o=F(this,Sr).config).onMutate)==null?void 0:l.call(o,t,this,i));const E=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,i));E!==this.state.context&&at(this,Zs,Ro).call(this,{type:"pending",context:E,variables:t,isPaused:a})}const A=await F(this,Ec).start();return await((h=(u=F(this,Sr).config).onSuccess)==null?void 0:h.call(u,A,t,this.state.context,this,i)),await((f=(m=this.options).onSuccess)==null?void 0:f.call(m,A,t,this.state.context,i)),await((p=(g=F(this,Sr).config).onSettled)==null?void 0:p.call(g,A,null,this.state.variables,this.state.context,this,i)),await((y=(v=this.options).onSettled)==null?void 0:y.call(v,A,null,t,this.state.context,i)),at(this,Zs,Ro).call(this,{type:"success",data:A}),A}catch(A){try{throw await((b=(x=F(this,Sr).config).onError)==null?void 0:b.call(x,A,t,this.state.context,this,i)),await((N=(w=this.options).onError)==null?void 0:N.call(w,A,t,this.state.context,i)),await((k=(S=F(this,Sr).config).onSettled)==null?void 0:k.call(S,void 0,A,this.state.variables,this.state.context,this,i)),await((D=(_=this.options).onSettled)==null?void 0:D.call(_,void 0,A,t,this.state.context,i)),A}finally{at(this,Zs,Ro).call(this,{type:"error",error:A})}}finally{F(this,Sr).runNext(this)}}},gg=new WeakMap,Js=new WeakMap,Sr=new WeakMap,Ec=new WeakMap,Zs=new WeakSet,Ro=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),$n.batch(()=>{F(this,Js).forEach(i=>{i.onMutationUpdate(t)}),F(this,Sr).notify({mutation:this,type:"updated",action:t})})},BD);function pR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ya,ys,vg,WD,aY=(WD=class extends Dh{constructor(t={}){super();Me(this,Ya);Me(this,ys);Me(this,vg);this.config=t,Se(this,Ya,new Set),Se(this,ys,new Map),Se(this,vg,0)}build(t,n,i){const s=new sY({client:t,mutationCache:this,mutationId:++uv(this,vg)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){F(this,Ya).add(t);const n=Pv(t);if(typeof n=="string"){const i=F(this,ys).get(n);i?i.push(t):F(this,ys).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(F(this,Ya).delete(t)){const n=Pv(t);if(typeof n=="string"){const i=F(this,ys).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&F(this,ys).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Pv(t);if(typeof n=="string"){const i=F(this,ys).get(n),s=i==null?void 0:i.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=Pv(t);if(typeof n=="string"){const s=(i=F(this,ys).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$n.batch(()=>{F(this,Ya).forEach(t=>{this.notify({type:"removed",mutation:t})}),F(this,Ya).clear(),F(this,ys).clear()})}getAll(){return Array.from(F(this,Ya))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>W4(n,i))}findAll(t={}){return this.getAll().filter(n=>W4(t,n))}notify(t){$n.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return $n.batch(()=>Promise.all(t.map(n=>n.continue().catch(Cr))))}},Ya=new WeakMap,ys=new WeakMap,vg=new WeakMap,WD);function Pv(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ka,el,Gr,Xa,uo,Cx,m2,zD,oY=(zD=class extends Dh{constructor(n,i){super();Me(this,uo);Me(this,Ka);Me(this,el);Me(this,Gr);Me(this,Xa);Se(this,Ka,n),this.setOptions(i),this.bindMethods(),at(this,uo,Cx).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=F(this,Ka).defaultMutationOptions(n),py(this.options,i)||F(this,Ka).getMutationCache().notify({type:"observerOptionsUpdated",mutation:F(this,Gr),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Hc(i.mutationKey)!==Hc(this.options.mutationKey)?this.reset():((s=F(this,Gr))==null?void 0:s.state.status)==="pending"&&F(this,Gr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=F(this,Gr))==null||n.removeObserver(this)}onMutationUpdate(n){at(this,uo,Cx).call(this),at(this,uo,m2).call(this,n)}getCurrentResult(){return F(this,el)}reset(){var n;(n=F(this,Gr))==null||n.removeObserver(this),Se(this,Gr,void 0),at(this,uo,Cx).call(this),at(this,uo,m2).call(this)}mutate(n,i){var s;return Se(this,Xa,i),(s=F(this,Gr))==null||s.removeObserver(this),Se(this,Gr,F(this,Ka).getMutationCache().build(F(this,Ka),this.options)),F(this,Gr).addObserver(this),F(this,Gr).execute(n)}},Ka=new WeakMap,el=new WeakMap,Gr=new WeakMap,Xa=new WeakMap,uo=new WeakSet,Cx=function(){var i;const n=((i=F(this,Gr))==null?void 0:i.state)??pR();Se(this,el,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},m2=function(n){$n.batch(()=>{var i,s,a,o,l,c,d,u;if(F(this,Xa)&&this.hasListeners()){const h=F(this,el).variables,m=F(this,el).context,f={client:F(this,Ka),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(i=F(this,Xa)).onSuccess)==null||s.call(i,n.data,h,m,f),(o=(a=F(this,Xa)).onSettled)==null||o.call(a,n.data,null,h,m,f)):(n==null?void 0:n.type)==="error"&&((c=(l=F(this,Xa)).onError)==null||c.call(l,n.error,h,m,f),(u=(d=F(this,Xa)).onSettled)==null||u.call(d,void 0,n.error,h,m,f))}this.listeners.forEach(h=>{h(F(this,el))})})},zD),ea,qD,lY=(qD=class extends Dh{constructor(t={}){super();Me(this,ea);this.config=t,Se(this,ea,new Map)}build(t,n,i){const s=n.queryKey,a=n.queryHash??c_(s,n);let o=this.get(a);return o||(o=new eY({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){F(this,ea).has(t.queryHash)||(F(this,ea).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=F(this,ea).get(t.queryHash);n&&(t.destroy(),n===t&&F(this,ea).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$n.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return F(this,ea).get(t)}getAll(){return[...F(this,ea).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>B4(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>B4(t,i)):n}notify(t){$n.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$n.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$n.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ea=new WeakMap,qD),gn,tl,nl,Mu,Ru,rl,$u,Lu,HD,cY=(HD=class{constructor(e={}){Me(this,gn);Me(this,tl);Me(this,nl);Me(this,Mu);Me(this,Ru);Me(this,rl);Me(this,$u);Me(this,Lu);Se(this,gn,e.queryCache||new lY),Se(this,tl,e.mutationCache||new aY),Se(this,nl,e.defaultOptions||{}),Se(this,Mu,new Map),Se(this,Ru,new Map),Se(this,rl,0)}mount(){uv(this,rl)._++,F(this,rl)===1&&(Se(this,$u,u_.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,gn).onFocus())})),Se(this,Lu,gy.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,gn).onOnline())})))}unmount(){var e,t;uv(this,rl)._--,F(this,rl)===0&&((e=F(this,$u))==null||e.call(this),Se(this,$u,void 0),(t=F(this,Lu))==null||t.call(this),Se(this,Lu,void 0))}isFetching(e){return F(this,gn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return F(this,tl).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,gn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=F(this,gn).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(vl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return F(this,gn).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=F(this,gn).get(i.queryHash),a=s==null?void 0:s.state.data,o=qG(t,a);if(o!==void 0)return F(this,gn).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return $n.batch(()=>F(this,gn).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,gn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=F(this,gn);$n.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=F(this,gn);return $n.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=$n.batch(()=>F(this,gn).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Cr).catch(Cr)}invalidateQueries(e,t={}){return $n.batch(()=>(F(this,gn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=$n.batch(()=>F(this,gn).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(Cr)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(Cr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=F(this,gn).build(this,t);return n.isStaleByTime(vl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Cr).catch(Cr)}fetchInfiniteQuery(e){return e.behavior=Y4(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Cr).catch(Cr)}ensureInfiniteQueryData(e){return e.behavior=Y4(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gy.isOnline()?F(this,tl).resumePausedMutations():Promise.resolve()}getQueryCache(){return F(this,gn)}getMutationCache(){return F(this,tl)}getDefaultOptions(){return F(this,nl)}setDefaultOptions(e){Se(this,nl,e)}setQueryDefaults(e,t){F(this,Mu).set(Hc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...F(this,Mu).values()],n={};return t.forEach(i=>{sp(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){F(this,Ru).set(Hc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...F(this,Ru).values()],n={};return t.forEach(i=>{sp(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...F(this,nl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=c_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===d_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...F(this,nl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){F(this,gn).clear(),F(this,tl).clear()}},gn=new WeakMap,tl=new WeakMap,nl=new WeakMap,Mu=new WeakMap,Ru=new WeakMap,rl=new WeakMap,$u=new WeakMap,Lu=new WeakMap,HD),gR=j.createContext(void 0),m_=e=>{const t=j.useContext(gR);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},dY=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(gR.Provider,{value:e,children:t})),vR=j.createContext(!1),uY=()=>j.useContext(vR);vR.Provider;function hY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mY=j.createContext(hY()),fY=()=>j.useContext(mY),pY=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},gY=e=>{j.useEffect(()=>{e.clearReset()},[e])},vY=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||cR(n,[e.error,i])),xY=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},yY=(e,t)=>e.isLoading&&e.isFetching&&!t,bY=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,X4=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function wY(e,t,n){var h,m,f,g,p;const i=uY(),s=fY(),a=m_(),o=a.defaultQueryOptions(e);(m=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,o),o._optimisticResults=i?"isRestoring":"optimistic",xY(o),pY(o,s),gY(s);const l=!a.getQueryCache().get(o.queryHash),[c]=j.useState(()=>new t(a,o)),d=c.getOptimisticResult(o),u=!i&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(v=>{const y=u?c.subscribe($n.batchCalls(v)):Cr;return c.updateResult(),y},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),j.useEffect(()=>{c.setOptions(o)},[o,c]),bY(o,d))throw X4(o,c,s);if(vY({result:d,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;if((g=(f=a.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,o,d),o.experimental_prefetchInRender&&!qc&&yY(d,i)){const v=l?X4(o,c,s):(p=a.getQueryCache().get(o.queryHash))==null?void 0:p.promise;v==null||v.catch(Cr).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}function ba(e,t){return wY(e,tY)}function jY(e,t){const n=m_(),[i]=j.useState(()=>new oY(n,e));j.useEffect(()=>{i.setOptions(e)},[i,e]);const s=j.useSyncExternalStore(j.useCallback(o=>i.subscribe($n.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=j.useCallback((o,l)=>{i.mutate(o,l).catch(Cr)},[i]);if(s.error&&cR(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const NY=1,SY=1e6;let Uj=0;function kY(){return Uj=(Uj+1)%Number.MAX_SAFE_INTEGER,Uj.toString()}const Fj=new Map,Q4=e=>{if(Fj.has(e))return;const t=setTimeout(()=>{Fj.delete(e),jf({type:"REMOVE_TOAST",toastId:e})},SY);Fj.set(e,t)},CY=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,NY)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Q4(n):e.toasts.forEach(i=>{Q4(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},_x=[];let Tx={toasts:[]};function jf(e){Tx=CY(Tx,e),_x.forEach(t=>{t(Tx)})}function _Y({...e}){const t=kY(),n=s=>jf({type:"UPDATE_TOAST",toast:{...s,id:t}}),i=()=>jf({type:"DISMISS_TOAST",toastId:t});return jf({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||i()}}}),{id:t,dismiss:i,update:n}}function Lt(){const[e,t]=j.useState(Tx);return j.useEffect(()=>(_x.push(t),()=>{const n=_x.indexOf(t);n>-1&&_x.splice(n,1)}),[e]),{...e,toast:_Y,dismiss:n=>jf({type:"DISMISS_TOAST",toastId:n})}}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function TY(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function xR(...e){return t=>e.forEach(n=>TY(n,t))}function ut(...e){return j.useCallback(xR(...e),e)}function PY(e,t=[]){let n=[];function i(a,o){const l=j.createContext(o),c=n.length;n=[...n,o];function d(h){const{scope:m,children:f,...g}=h,p=(m==null?void 0:m[e][c])||l,v=j.useMemo(()=>g,Object.values(g));return r.jsx(p.Provider,{value:v,children:f})}function u(h,m){const f=(m==null?void 0:m[e][c])||l,g=j.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,u]}const s=()=>{const a=n.map(o=>j.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[i,EY(s,...t)]}function EY(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var _l=j.forwardRef((e,t)=>{const{children:n,...i}=e,s=j.Children.toArray(n),a=s.find(AY);if(a){const o=a.props.children,l=s.map(c=>c===a?j.Children.count(o)>1?j.Children.only(null):j.isValidElement(o)?o.props.children:null:c);return r.jsx(f2,{...i,ref:t,children:j.isValidElement(o)?j.cloneElement(o,void 0,l):null})}return r.jsx(f2,{...i,ref:t,children:n})});_l.displayName="Slot";var f2=j.forwardRef((e,t)=>{const{children:n,...i}=e;if(j.isValidElement(n)){const s=IY(n);return j.cloneElement(n,{...OY(i,n.props),ref:t?xR(t,s):s})}return j.Children.count(n)>1?j.Children.only(null):null});f2.displayName="SlotClone";var f_=({children:e})=>r.jsx(r.Fragment,{children:e});function AY(e){return j.isValidElement(e)&&e.type===f_}function OY(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...l)=>{a(...l),s(...l)}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function IY(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _b(e){const t=e+"CollectionProvider",[n,i]=PY(t),[s,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:g,children:p}=f,v=L.useRef(null),y=L.useRef(new Map).current;return r.jsx(s,{scope:g,itemMap:y,collectionRef:v,children:p})};o.displayName=t;const l=e+"CollectionSlot",c=L.forwardRef((f,g)=>{const{scope:p,children:v}=f,y=a(l,p),x=ut(g,y.collectionRef);return r.jsx(_l,{ref:x,children:v})});c.displayName=l;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=L.forwardRef((f,g)=>{const{scope:p,children:v,...y}=f,x=L.useRef(null),b=ut(g,x),w=a(d,p);return L.useEffect(()=>(w.itemMap.set(x,{ref:x,...y}),()=>void w.itemMap.delete(x))),r.jsx(_l,{[u]:"",ref:b,children:v})});h.displayName=d;function m(f){const g=a(e+"CollectionConsumer",f);return L.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((w,N)=>y.indexOf(w.ref.current)-y.indexOf(N.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},m,i]}function DY(e,t){const n=j.createContext(t),i=a=>{const{children:o,...l}=a,c=j.useMemo(()=>l,Object.values(l));return r.jsx(n.Provider,{value:c,children:o})};i.displayName=e+"Provider";function s(a){const o=j.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,s]}function Ca(e,t=[]){let n=[];function i(a,o){const l=j.createContext(o),c=n.length;n=[...n,o];const d=h=>{var y;const{scope:m,children:f,...g}=h,p=((y=m==null?void 0:m[e])==null?void 0:y[c])||l,v=j.useMemo(()=>g,Object.values(g));return r.jsx(p.Provider,{value:v,children:f})};d.displayName=a+"Provider";function u(h,m){var p;const f=((p=m==null?void 0:m[e])==null?void 0:p[c])||l,g=j.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,u]}const s=()=>{const a=n.map(o=>j.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[i,MY(s,...t)]}function MY(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var RY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ze=RY.reduce((e,t)=>{const n=j.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?_l:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(l,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yR(e,t){e&&ld.flushSync(()=>e.dispatchEvent(t))}function si(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function $Y(e,t=globalThis==null?void 0:globalThis.document){const n=si(e);j.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var LY="DismissableLayer",p2="dismissableLayer.update",UY="dismissableLayer.pointerDownOutside",FY="dismissableLayer.focusOutside",J4,bR=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mh=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...c}=e,d=j.useContext(bR),[u,h]=j.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=j.useState({}),g=ut(t,k=>h(k)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),x=u?p.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,N=WY(k=>{const _=k.target,D=[...d.branches].some(A=>A.contains(_));!w||D||(s==null||s(k),o==null||o(k),k.defaultPrevented||l==null||l())},m),S=zY(k=>{const _=k.target;[...d.branches].some(A=>A.contains(_))||(a==null||a(k),o==null||o(k),k.defaultPrevented||l==null||l())},m);return $Y(k=>{x===d.layers.size-1&&(i==null||i(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),j.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(J4=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Z4(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=J4)}},[u,m,n,d]),j.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Z4())},[u,d]),j.useEffect(()=>{const k=()=>f({});return document.addEventListener(p2,k),()=>document.removeEventListener(p2,k)},[]),r.jsx(ze.div,{...c,ref:g,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,N.onPointerDownCapture)})});Mh.displayName=LY;var BY="DismissableLayerBranch",wR=j.forwardRef((e,t)=>{const n=j.useContext(bR),i=j.useRef(null),s=ut(t,i);return j.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),r.jsx(ze.div,{...e,ref:s})});wR.displayName=BY;function WY(e,t=globalThis==null?void 0:globalThis.document){const n=si(e),i=j.useRef(!1),s=j.useRef(()=>{});return j.useEffect(()=>{const a=l=>{if(l.target&&!i.current){let c=function(){jR(UY,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function zY(e,t=globalThis==null?void 0:globalThis.document){const n=si(e),i=j.useRef(!1);return j.useEffect(()=>{const s=a=>{a.target&&!i.current&&jR(FY,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Z4(){const e=new CustomEvent(p2);document.dispatchEvent(e)}function jR(e,t,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?yR(s,a):s.dispatchEvent(a)}var qY=Mh,HY=wR,cr=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},VY="Portal",Ng=j.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[s,a]=j.useState(!1);cr(()=>a(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?FG.createPortal(r.jsx(ze.div,{...i,ref:t}),o):null});Ng.displayName=VY;function GY(e,t){return j.useReducer((n,i)=>t[n][i]??n,e)}var zs=e=>{const{present:t,children:n}=e,i=YY(t),s=typeof n=="function"?n({present:i.isPresent}):j.Children.only(n),a=ut(i.ref,KY(s));return typeof n=="function"||i.isPresent?j.cloneElement(s,{ref:a}):null};zs.displayName="Presence";function YY(e){const[t,n]=j.useState(),i=j.useRef({}),s=j.useRef(e),a=j.useRef("none"),o=e?"mounted":"unmounted",[l,c]=GY(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const d=Ev(i.current);a.current=l==="mounted"?d:"none"},[l]),cr(()=>{const d=i.current,u=s.current;if(u!==e){const m=a.current,f=Ev(d);e?c("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&m!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),cr(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=f=>{const p=Ev(i.current).includes(f.animationName);if(f.target===t&&p&&(c("ANIMATION_END"),!s.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=f=>{f.target===t&&(a.current=Ev(i.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:j.useCallback(d=>{d&&(i.current=getComputedStyle(d)),n(d)},[])}}function Ev(e){return(e==null?void 0:e.animationName)||"none"}function KY(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rs({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,s]=XY({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:i,l=si(n),c=j.useCallback(d=>{if(a){const h=typeof d=="function"?d(e):d;h!==e&&l(h)}else s(d)},[a,e,s,l]);return[o,c]}function XY({defaultProp:e,onChange:t}){const n=j.useState(e),[i]=n,s=j.useRef(i),a=si(t);return j.useEffect(()=>{s.current!==i&&(a(i),s.current=i)},[i,s,a]),n}var QY="VisuallyHidden",Sg=j.forwardRef((e,t)=>r.jsx(ze.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Sg.displayName=QY;var JY=Sg,p_="ToastProvider",[g_,ZY,eK]=_b("Toast"),[NR,rUe]=Ca("Toast",[eK]),[tK,Tb]=NR(p_),SR=e=>{const{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:o}=e,[l,c]=j.useState(null),[d,u]=j.useState(0),h=j.useRef(!1),m=j.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${p_}\`. Expected non-empty \`string\`.`),r.jsx(g_.Provider,{scope:t,children:r.jsx(tK,{scope:t,label:n,duration:i,swipeDirection:s,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:j.useCallback(()=>u(f=>f+1),[]),onToastRemove:j.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:o})})};SR.displayName=p_;var kR="ToastViewport",nK=["F8"],g2="toast.viewportPause",v2="toast.viewportResume",CR=j.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:i=nK,label:s="Notifications ({hotkey})",...a}=e,o=Tb(kR,n),l=ZY(n),c=j.useRef(null),d=j.useRef(null),u=j.useRef(null),h=j.useRef(null),m=ut(t,h,o.onViewportChange),f=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;j.useEffect(()=>{const v=y=>{var b;i.length!==0&&i.every(w=>y[w]||y.code===w)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[i]),j.useEffect(()=>{const v=c.current,y=h.current;if(g&&v&&y){const x=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(g2);y.dispatchEvent(S),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(v2);y.dispatchEvent(S),o.isClosePausedRef.current=!1}},w=S=>{!v.contains(S.relatedTarget)&&b()},N=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",x),v.addEventListener("focusout",w),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",N),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",w),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",N),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[g,o.isClosePausedRef]);const p=j.useCallback(({tabbingDirection:v})=>{const x=l().map(b=>{const w=b.ref.current,N=[w,...pK(w)];return v==="forwards"?N:N.reverse()});return(v==="forwards"?x.reverse():x).flat()},[l]);return j.useEffect(()=>{const v=h.current;if(v){const y=x=>{var N,S,k;const b=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!b){const _=document.activeElement,D=x.shiftKey;if(x.target===v&&D){(N=d.current)==null||N.focus();return}const T=p({tabbingDirection:D?"backwards":"forwards"}),M=T.findIndex(C=>C===_);Bj(T.slice(M+1))?x.preventDefault():D?(S=d.current)==null||S.focus():(k=u.current)==null||k.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[l,p]),r.jsxs(HY,{ref:c,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&r.jsx(x2,{ref:d,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});Bj(v)}}),r.jsx(g_.Slot,{scope:n,children:r.jsx(ze.ol,{tabIndex:-1,...a,ref:m})}),g&&r.jsx(x2,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});Bj(v)}})]})});CR.displayName=kR;var _R="ToastFocusProxy",x2=j.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...s}=e,a=Tb(_R,n);return r.jsx(Sg,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=a.viewport)!=null&&d.contains(l))&&i()}})});x2.displayName=_R;var Pb="Toast",rK="toast.swipeStart",iK="toast.swipeMove",sK="toast.swipeCancel",aK="toast.swipeEnd",TR=j.forwardRef((e,t)=>{const{forceMount:n,open:i,defaultOpen:s,onOpenChange:a,...o}=e,[l=!0,c]=Rs({prop:i,defaultProp:s,onChange:a});return r.jsx(zs,{present:n||l,children:r.jsx(cK,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:si(e.onPause),onResume:si(e.onResume),onSwipeStart:Ee(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});TR.displayName=Pb;var[oK,lK]=NR(Pb,{onClose(){}}),cK=j.forwardRef((e,t)=>{const{__scopeToast:n,type:i="foreground",duration:s,open:a,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...g}=e,p=Tb(Pb,n),[v,y]=j.useState(null),x=ut(t,C=>y(C)),b=j.useRef(null),w=j.useRef(null),N=s||p.duration,S=j.useRef(0),k=j.useRef(N),_=j.useRef(0),{onToastAdd:D,onToastRemove:A}=p,E=si(()=>{var P;(v==null?void 0:v.contains(document.activeElement))&&((P=p.viewport)==null||P.focus()),o()}),T=j.useCallback(C=>{!C||C===1/0||(window.clearTimeout(_.current),S.current=new Date().getTime(),_.current=window.setTimeout(E,C))},[E]);j.useEffect(()=>{const C=p.viewport;if(C){const P=()=>{T(k.current),d==null||d()},I=()=>{const R=new Date().getTime()-S.current;k.current=k.current-R,window.clearTimeout(_.current),c==null||c()};return C.addEventListener(g2,I),C.addEventListener(v2,P),()=>{C.removeEventListener(g2,I),C.removeEventListener(v2,P)}}},[p.viewport,N,c,d,T]),j.useEffect(()=>{a&&!p.isClosePausedRef.current&&T(N)},[a,N,p.isClosePausedRef,T]),j.useEffect(()=>(D(),()=>A()),[D,A]);const M=j.useMemo(()=>v?MR(v):null,[v]);return p.viewport?r.jsxs(r.Fragment,{children:[M&&r.jsx(dK,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:M}),r.jsx(oK,{scope:n,onClose:E,children:ld.createPortal(r.jsx(g_.ItemSlot,{scope:n,children:r.jsx(qY,{asChild:!0,onEscapeKeyDown:Ee(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||E(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(ze.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,C=>{C.key==="Escape"&&(l==null||l(C.nativeEvent),C.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Ee(e.onPointerDown,C=>{C.button===0&&(b.current={x:C.clientX,y:C.clientY})}),onPointerMove:Ee(e.onPointerMove,C=>{if(!b.current)return;const P=C.clientX-b.current.x,I=C.clientY-b.current.y,R=!!w.current,O=["left","right"].includes(p.swipeDirection),$=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,q=O?$(0,P):0,z=O?0:$(0,I),J=C.pointerType==="touch"?10:2,ne={x:q,y:z},pe={originalEvent:C,delta:ne};R?(w.current=ne,Av(iK,h,pe,{discrete:!1})):eP(ne,p.swipeDirection,J)?(w.current=ne,Av(rK,u,pe,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(P)>J||Math.abs(I)>J)&&(b.current=null)}),onPointerUp:Ee(e.onPointerUp,C=>{const P=w.current,I=C.target;if(I.hasPointerCapture(C.pointerId)&&I.releasePointerCapture(C.pointerId),w.current=null,b.current=null,P){const R=C.currentTarget,O={originalEvent:C,delta:P};eP(P,p.swipeDirection,p.swipeThreshold)?Av(aK,f,O,{discrete:!0}):Av(sK,m,O,{discrete:!0}),R.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),dK=e=>{const{__scopeToast:t,children:n,...i}=e,s=Tb(Pb,t),[a,o]=j.useState(!1),[l,c]=j.useState(!1);return mK(()=>o(!0)),j.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:r.jsx(Ng,{asChild:!0,children:r.jsx(Sg,{...i,children:a&&r.jsxs(r.Fragment,{children:[s.label," ",n]})})})},uK="ToastTitle",PR=j.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return r.jsx(ze.div,{...i,ref:t})});PR.displayName=uK;var hK="ToastDescription",ER=j.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return r.jsx(ze.div,{...i,ref:t})});ER.displayName=hK;var AR="ToastAction",OR=j.forwardRef((e,t)=>{const{altText:n,...i}=e;return n.trim()?r.jsx(DR,{altText:n,asChild:!0,children:r.jsx(v_,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${AR}\`. Expected non-empty \`string\`.`),null)});OR.displayName=AR;var IR="ToastClose",v_=j.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e,s=lK(IR,n);return r.jsx(DR,{asChild:!0,children:r.jsx(ze.button,{type:"button",...i,ref:t,onClick:Ee(e.onClick,s.onClose)})})});v_.displayName=IR;var DR=j.forwardRef((e,t)=>{const{__scopeToast:n,altText:i,...s}=e;return r.jsx(ze.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...s,ref:t})});function MR(e){const t=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&t.push(i.textContent),fK(i)){const s=i.ariaHidden||i.hidden||i.style.display==="none",a=i.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const o=i.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...MR(i))}}),t}function Av(e,t,n,{discrete:i}){const s=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?yR(s,a):s.dispatchEvent(a)}var eP=(e,t,n=0)=>{const i=Math.abs(e.x),s=Math.abs(e.y),a=i>s;return t==="left"||t==="right"?a&&i>n:!a&&s>n};function mK(e=()=>{}){const t=si(e);cr(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[t])}function fK(e){return e.nodeType===e.ELEMENT_NODE}function pK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bj(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var gK=SR,RR=CR,$R=TR,LR=PR,UR=ER,FR=OR,BR=v_;function WR(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=WR(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function rt(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=WR(e))&&(i&&(i+=" "),i+=t);return i}const tP=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nP=rt,kg=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return nP(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:a}=t,o=Object.keys(s).map(d=>{const u=n==null?void 0:n[d],h=a==null?void 0:a[d];if(u===null)return null;const m=tP(u)||tP(h);return s[d][m]}),l=n&&Object.entries(n).reduce((d,u)=>{let[h,m]=u;return m===void 0||(d[h]=m),d},{}),c=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((d,u)=>{let{class:h,className:m,...f}=u;return Object.entries(f).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...a,...l}[p]):{...a,...l}[p]===v})?[...d,h,m]:d},[]);return nP(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zR=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var xK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yK=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:o,...l},c)=>j.createElement("svg",{ref:c,...xK,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:zR("lucide",s),...l},[...o.map(([d,u])=>j.createElement(d,u)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const le=(e,t)=>{const n=j.forwardRef(({className:i,...s},a)=>j.createElement(yK,{ref:a,iconNode:t,className:zR(`lucide-${vK(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ic=le("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x_=le("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qR=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Os=le("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bK=le("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y_=le("BookOpen",[["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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cd=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wK=le("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qn=le("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HR=le("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rP=le("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ln=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jK=le("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VR=le("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NK=le("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GR=le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wa=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SK=le("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b_=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YR=le("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pn=le("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const we=le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KR=le("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XR=le("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kK=le("ClipboardCheck",[["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:"m9 14 2 2 4-4",key:"df797q"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CK=le("ClipboardList",[["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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sn=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _K=le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TK=le("Cross",[["path",{d:"M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z",key:"1xbrqy"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w_=le("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ma=le("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vu=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tl=le("ExternalLink",[["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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PK=le("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ai=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EK=le("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QR=le("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fl=le("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ct=le("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AK=le("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OK=le("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jm=le("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pl=le("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y2=le("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const IK=le("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xl=le("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j_=le("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-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JR=le("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DK=le("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const MK=le("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RK=le("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $K=le("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LK=le("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fu=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yl=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Eb=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xr=le("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Et=le("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Px=le("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UK=le("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bl=le("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FK=le("MousePointerClick",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iP=le("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BK=le("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WK=le("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fn=le("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zK=le("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qK=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ap=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HK=le("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VK=le("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const op=le("RefreshCw",[["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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZR=le("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eu=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zn=le("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pi=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vy=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e$=le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Be=le("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GK=le("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hn=le("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N_=le("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fa=le("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xy=le("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S_=le("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b2=le("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rh=le("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t$=le("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $s=le("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ri=le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YK=le("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KK=le("Unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XK=le("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k_=le("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gi=le("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"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pn=le("Users",[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C_=le("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pa=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QK=le("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n$=le("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),__="-",JK=e=>{const t=eX(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{const l=o.split(__);return l[0]===""&&l.length!==1&&l.shift(),r$(l,t)||ZK(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&i[o]?[...c,...i[o]]:c}}},r$=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?r$(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(__);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},sP=/^\[(.+)\]$/,ZK=e=>{if(sP.test(e)){const t=sP.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eX=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return nX(Object.entries(e.classGroups),n).forEach(([a,o])=>{w2(o,i,a,t)}),i},w2=(e,t,n,i)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:aP(t,s);a.classGroupId=n;return}if(typeof s=="function"){if(tX(s)){w2(s(i),t,n,i);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{w2(o,aP(t,a),n,i)})})},aP=(e,t)=>{let n=e;return t.split(__).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},tX=e=>e.isThemeGetter,nX=(e,t)=>t?e.map(([n,i])=>{const s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[n,s]}):e,rX=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const s=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,i=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=i.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}},i$="!",iX=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,s=t[0],a=t.length,o=l=>{const c=[];let d=0,u=0,h;for(let v=0;v<l.length;v++){let y=l[v];if(d===0){if(y===s&&(i||l.slice(v,v+a)===t)){c.push(l.slice(u,v)),u=v+a;continue}if(y==="/"){h=v;continue}}y==="["?d++:y==="]"&&d--}const m=c.length===0?l:l.substring(u),f=m.startsWith(i$),g=f?m.substring(1):m,p=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}};return n?l=>n({className:l,parseClassName:o}):o},sX=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},aX=e=>({cache:rX(e.cacheSize),parseClassName:iX(e),...JK(e)}),oX=/\s+/,lX=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],o=e.trim().split(oX);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=n(d);let g=!!f,p=i(g?m.substring(0,f):m);if(!p){if(!g){l=d+(l.length>0?" "+l:l);continue}if(p=i(m),!p){l=d+(l.length>0?" "+l:l);continue}g=!1}const v=sX(u).join(":"),y=h?v+i$:v,x=y+p;if(a.includes(x))continue;a.push(x);const b=s(p,g);for(let w=0;w<b.length;++w){const N=b[w];a.push(y+N)}l=d+(l.length>0?" "+l:l)}return l};function cX(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=s$(t))&&(i&&(i+=" "),i+=n);return i}const s$=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=s$(e[i]))&&(n&&(n+=" "),n+=t);return n};function dX(e,...t){let n,i,s,a=o;function o(c){const d=t.reduce((u,h)=>h(u),e());return n=aX(d),i=n.cache.get,s=n.cache.set,a=l,l(c)}function l(c){const d=i(c);if(d)return d;const u=lX(c,n);return s(c,u),u}return function(){return a(cX.apply(null,arguments))}}const Ht=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},a$=/^\[(?:([a-z-]+):)?(.+)\]$/i,uX=/^\d+\/\d+$/,hX=new Set(["px","full","screen"]),mX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fX=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ma=e=>pu(e)||hX.has(e)||uX.test(e),Io=e=>$h(e,"length",kX),pu=e=>!!e&&!Number.isNaN(Number(e)),Wj=e=>$h(e,"number",pu),ym=e=>!!e&&Number.isInteger(Number(e)),xX=e=>e.endsWith("%")&&pu(e.slice(0,-1)),it=e=>a$.test(e),Do=e=>mX.test(e),yX=new Set(["length","size","percentage"]),bX=e=>$h(e,yX,o$),wX=e=>$h(e,"position",o$),jX=new Set(["image","url"]),NX=e=>$h(e,jX,_X),SX=e=>$h(e,"",CX),bm=()=>!0,$h=(e,t,n)=>{const i=a$.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},kX=e=>fX.test(e)&&!pX.test(e),o$=()=>!1,CX=e=>gX.test(e),_X=e=>vX.test(e),TX=()=>{const e=Ht("colors"),t=Ht("spacing"),n=Ht("blur"),i=Ht("brightness"),s=Ht("borderColor"),a=Ht("borderRadius"),o=Ht("borderSpacing"),l=Ht("borderWidth"),c=Ht("contrast"),d=Ht("grayscale"),u=Ht("hueRotate"),h=Ht("invert"),m=Ht("gap"),f=Ht("gradientColorStops"),g=Ht("gradientColorStopPositions"),p=Ht("inset"),v=Ht("margin"),y=Ht("opacity"),x=Ht("padding"),b=Ht("saturate"),w=Ht("scale"),N=Ht("sepia"),S=Ht("skew"),k=Ht("space"),_=Ht("translate"),D=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",it,t],T=()=>[it,t],M=()=>["",Ma,Io],C=()=>["auto",pu,it],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",it],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[pu,it];return{cacheSize:500,separator:":",theme:{colors:[bm],spacing:[Ma,Io],blur:["none","",Do,it],brightness:z(),borderColor:[e],borderRadius:["none","","full",Do,it],borderSpacing:T(),borderWidth:M(),contrast:z(),grayscale:$(),hueRotate:z(),invert:$(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[xX,Io],inset:E(),margin:E(),opacity:z(),padding:T(),saturate:z(),scale:z(),sepia:$(),skew:z(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[Do]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),it]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,it]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",ym,it]}],"grid-cols":[{"grid-cols":[bm]}],"col-start-end":[{col:["auto",{span:["full",ym,it]},it]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[bm]}],"row-start-end":[{row:["auto",{span:[ym,it]},it]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",it,t]}],"min-w":[{"min-w":[it,t,"min","max","fit"]}],"max-w":[{"max-w":[it,t,"none","full","min","max","fit","prose",{screen:[Do]},Do]}],h:[{h:[it,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[it,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Do,Io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wj]}],"font-family":[{font:[bm]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",it]}],"line-clamp":[{"line-clamp":["none",pu,Wj]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ma,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ma,Io]}],"underline-offset":[{"underline-offset":["auto",Ma,it]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),wX]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bX]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NX]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:I()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Ma,it]}],"outline-w":[{outline:[Ma,Io]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ma,Io]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Do,SX]}],"shadow-color":[{shadow:[bm]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...R(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Do,it]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ym,it]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ma,Io,Wj]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},PX=dX(TX);function je(...e){return PX(rt(e))}const EX=gK,l$=j.forwardRef(({className:e,...t},n)=>r.jsx(RR,{ref:n,className:je("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));l$.displayName=RR.displayName;const AX=kg("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),c$=j.forwardRef(({className:e,variant:t,...n},i)=>r.jsx($R,{ref:i,className:je(AX({variant:t}),e),...n}));c$.displayName=$R.displayName;const OX=j.forwardRef(({className:e,...t},n)=>r.jsx(FR,{ref:n,className:je("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));OX.displayName=FR.displayName;const d$=j.forwardRef(({className:e,...t},n)=>r.jsx(BR,{ref:n,className:je("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(pa,{className:"h-4 w-4"})}));d$.displayName=BR.displayName;const u$=j.forwardRef(({className:e,...t},n)=>r.jsx(LR,{ref:n,className:je("text-sm font-semibold",e),...t}));u$.displayName=LR.displayName;const h$=j.forwardRef(({className:e,...t},n)=>r.jsx(UR,{ref:n,className:je("text-sm opacity-90",e),...t}));h$.displayName=UR.displayName;function IX(){const{toasts:e}=Lt();return r.jsxs(EX,{children:[e.map(function({id:t,title:n,description:i,action:s,...a}){return r.jsxs(c$,{...a,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(u$,{children:n}),i&&r.jsx(h$,{children:i})]}),s,r.jsx(d$,{})]},t)}),r.jsx(l$,{})]})}/**
* @remix-run/router v1.20.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lp.apply(this,arguments)}var al;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(al||(al={}));const oP="popstate";function DX(e){e===void 0&&(e={});function t(i,s){let{pathname:a,search:o,hash:l}=i.location;return j2("",{pathname:a,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){return typeof s=="string"?s:yy(s)}return RX(t,n,null,e)}function An(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function m$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function MX(){return Math.random().toString(36).substr(2,8)}function lP(e,t){return{usr:e.state,key:e.key,idx:t}}function j2(e,t,n,i){return n===void 0&&(n=null),lp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Lh(t):t,{state:n,key:t&&t.key||i||MX()})}function yy(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Lh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function RX(e,t,n,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,o=s.history,l=al.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(lp({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function h(){l=al.Pop;let v=u(),y=v==null?null:v-d;d=v,c&&c({action:l,location:p.location,delta:y})}function m(v,y){l=al.Push;let x=j2(p.location,v,y);d=u()+1;let b=lP(x,d),w=p.createHref(x);try{o.pushState(b,"",w)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(w)}a&&c&&c({action:l,location:p.location,delta:1})}function f(v,y){l=al.Replace;let x=j2(p.location,v,y);d=u();let b=lP(x,d),w=p.createHref(x);o.replaceState(b,"",w),a&&c&&c({action:l,location:p.location,delta:0})}function g(v){let y=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof v=="string"?v:yy(v);return x=x.replace(/ $/,"%20"),An(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let p={get action(){return l},get location(){return e(s,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(oP,h),c=v,()=>{s.removeEventListener(oP,h),c=null}},createHref(v){return t(s,v)},createURL:g,encodeLocation(v){let y=g(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:f,go(v){return o.go(v)}};return p}var cP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cP||(cP={}));function $X(e,t,n){return n===void 0&&(n="/"),LX(e,t,n,!1)}function LX(e,t,n,i){let s=typeof t=="string"?Lh(t):t,a=T_(s.pathname||"/",n);if(a==null)return null;let o=f$(e);UX(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let d=XX(a);l=YX(o[c],d,i)}return l}function f$(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let s=(a,o,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(An(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let d=bl([i,c.relativePath]),u=n.concat(c);a.children&&a.children.length>0&&(An(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),f$(a.children,t,u,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:VX(d,a.index),routesMeta:u})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))s(a,o);else for(let c of p$(a.path))s(a,o,c)}),t}function p$(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let o=p$(i.join("/")),l=[];return l.push(...o.map(c=>c===""?a:[a,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function UX(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:GX(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const FX=/^:[\w-]+$/,BX=3,WX=2,zX=1,qX=10,HX=-2,dP=e=>e==="*";function VX(e,t){let n=e.split("/"),i=n.length;return n.some(dP)&&(i+=HX),t&&(i+=WX),n.filter(s=>!dP(s)).reduce((s,a)=>s+(FX.test(a)?BX:a===""?zX:qX),i)}function GX(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function YX(e,t,n){let{routesMeta:i}=e,s={},a="/",o=[];for(let l=0;l<i.length;++l){let c=i[l],d=l===i.length-1,u=a==="/"?t:t.slice(a.length)||"/",h=uP({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),m=c.route;if(!h&&d&&n&&!i[i.length-1].route.index&&(h=uP({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;Object.assign(s,h.params),o.push({params:s,pathname:bl([a,h.pathname]),pathnameBase:eQ(bl([a,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(a=bl([a,h.pathnameBase]))}return o}function uP(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=KX(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let a=s[0],o=a.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:i.reduce((d,u,h)=>{let{paramName:m,isOptional:f}=u;if(m==="*"){let p=l[h]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const g=l[h];return f&&!g?d[m]=void 0:d[m]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:o,pattern:e}}function KX(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),m$(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 i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(i.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function XX(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return m$(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function T_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function QX(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:s=""}=typeof e=="string"?Lh(e):e;return{pathname:n?n.startsWith("/")?n:JX(n,t):t,search:tQ(i),hash:nQ(s)}}function JX(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function zj(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. 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 ZX(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function g$(e,t){let n=ZX(e);return t?n.map((i,s)=>s===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function v$(e,t,n,i){i===void 0&&(i=!1);let s;typeof e=="string"?s=Lh(e):(s=lp({},e),An(!s.pathname||!s.pathname.includes("?"),zj("?","pathname","search",s)),An(!s.pathname||!s.pathname.includes("#"),zj("#","pathname","hash",s)),An(!s.search||!s.search.includes("#"),zj("#","search","hash",s)));let a=e===""||s.pathname==="",o=a?"/":s.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!i&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;s.pathname=m.join("/")}l=h>=0?t[h]:"/"}let c=QX(s,l),d=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const bl=e=>e.join("/").replace(/\/\/+/g,"/"),eQ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tQ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nQ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rQ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const x$=["post","put","patch","delete"];new Set(x$);const iQ=["get",...x$];new Set(iQ);/**
* React Router v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cp.apply(this,arguments)}const P_=j.createContext(null),sQ=j.createContext(null),dd=j.createContext(null),Ab=j.createContext(null),Wl=j.createContext({outlet:null,matches:[],isDataRoute:!1}),y$=j.createContext(null);function aQ(e,t){let{relative:n}=t===void 0?{}:t;Cg()||An(!1);let{basename:i,navigator:s}=j.useContext(dd),{hash:a,pathname:o,search:l}=N$(e,{relative:n}),c=o;return i!=="/"&&(c=o==="/"?i:bl([i,o])),s.createHref({pathname:c,search:l,hash:a})}function Cg(){return j.useContext(Ab)!=null}function zl(){return Cg()||An(!1),j.useContext(Ab).location}function b$(e){j.useContext(dd).static||j.useLayoutEffect(e)}function w$(){let{isDataRoute:e}=j.useContext(Wl);return e?yQ():oQ()}function oQ(){Cg()||An(!1);let e=j.useContext(P_),{basename:t,future:n,navigator:i}=j.useContext(dd),{matches:s}=j.useContext(Wl),{pathname:a}=zl(),o=JSON.stringify(g$(s,n.v7_relativeSplatPath)),l=j.useRef(!1);return b$(()=>{l.current=!0}),j.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){i.go(d);return}let h=v$(d,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:bl([t,h.pathname])),(u.replace?i.replace:i.push)(h,u.state,u)},[t,i,o,a,e])}function j$(){let{matches:e}=j.useContext(Wl),t=e[e.length-1];return t?t.params:{}}function N$(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=j.useContext(dd),{matches:s}=j.useContext(Wl),{pathname:a}=zl(),o=JSON.stringify(g$(s,i.v7_relativeSplatPath));return j.useMemo(()=>v$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function lQ(e,t){return cQ(e,t)}function cQ(e,t,n,i){Cg()||An(!1);let{navigator:s}=j.useContext(dd),{matches:a}=j.useContext(Wl),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=zl(),u;if(t){var h;let v=typeof t=="string"?Lh(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||An(!1),u=v}else u=d;let m=u.pathname||"/",f=m;if(c!=="/"){let v=c.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=$X(e,{pathname:f}),p=fQ(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:bl([c,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:bl([c,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,i);return t&&p?j.createElement(Ab.Provider,{value:{location:cp({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:al.Pop}},p):p}function dQ(){let e=xQ(),t=rQ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:s},n):null,null)}const uQ=j.createElement(dQ,null);class hQ extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?j.createElement(Wl.Provider,{value:this.props.routeContext},j.createElement(y$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mQ(e){let{routeContext:t,match:n,children:i}=e,s=j.useContext(P_);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(Wl.Provider,{value:t},i)}function fQ(e,t,n,i){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=i)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let u=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||An(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:m,errors:f}=n,g=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||g){c=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((u,h,m)=>{let f,g=!1,p=null,v=null;n&&(f=l&&h.route.id?l[h.route.id]:void 0,p=h.route.errorElement||uQ,c&&(d<0&&m===0?(g=!0,v=null):d===m&&(g=!0,v=h.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),x=()=>{let b;return f?b=p:g?b=v:h.route.Component?b=j.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=u,j.createElement(mQ,{match:h,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?j.createElement(hQ,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var S$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S$||{}),by=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(by||{});function pQ(e){let t=j.useContext(P_);return t||An(!1),t}function gQ(e){let t=j.useContext(sQ);return t||An(!1),t}function vQ(e){let t=j.useContext(Wl);return t||An(!1),t}function k$(e){let t=vQ(),n=t.matches[t.matches.length-1];return n.route.id||An(!1),n.route.id}function xQ(){var e;let t=j.useContext(y$),n=gQ(by.UseRouteError),i=k$(by.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function yQ(){let{router:e}=pQ(S$.UseNavigateStable),t=k$(by.UseNavigateStable),n=j.useRef(!1);return b$(()=>{n.current=!0}),j.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,cp({fromRouteId:t},a)))},[e,t])}function qe(e){An(!1)}function bQ(e){let{basename:t="/",children:n=null,location:i,navigationType:s=al.Pop,navigator:a,static:o=!1,future:l}=e;Cg()&&An(!1);let c=t.replace(/^\/*/,"/"),d=j.useMemo(()=>({basename:c,navigator:a,static:o,future:cp({v7_relativeSplatPath:!1},l)}),[c,l,a,o]);typeof i=="string"&&(i=Lh(i));let{pathname:u="/",search:h="",hash:m="",state:f=null,key:g="default"}=i,p=j.useMemo(()=>{let v=T_(u,c);return v==null?null:{location:{pathname:v,search:h,hash:m,state:f,key:g},navigationType:s}},[c,u,h,m,f,g,s]);return p==null?null:j.createElement(dd.Provider,{value:d},j.createElement(Ab.Provider,{children:n,value:p}))}function wQ(e){let{children:t,location:n}=e;return lQ(N2(t),n)}new Promise(()=>{});function N2(e,t){t===void 0&&(t=[]);let n=[];return j.Children.forEach(e,(i,s)=>{if(!j.isValidElement(i))return;let a=[...t,s];if(i.type===j.Fragment){n.push.apply(n,N2(i.props.children,a));return}i.type!==qe&&An(!1),!i.props.index||!i.props.children||An(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=N2(i.props.children,a)),n.push(o)}),n}/**
* React Router DOM v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S2.apply(this,arguments)}function jQ(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function NQ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SQ(e,t){return e.button===0&&(!t||t==="_self")&&!NQ(e)}const kQ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],CQ="6";try{window.__reactRouterVersion=CQ}catch{}const _Q="startTransition",hP=nM[_Q];function TQ(e){let{basename:t,children:n,future:i,window:s}=e,a=j.useRef();a.current==null&&(a.current=DX({window:s,v5Compat:!0}));let o=a.current,[l,c]=j.useState({action:o.action,location:o.location}),{v7_startTransition:d}=i||{},u=j.useCallback(h=>{d&&hP?hP(()=>c(h)):c(h)},[c,d]);return j.useLayoutEffect(()=>o.listen(u),[o,u]),j.createElement(bQ,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:i})}const PQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EQ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,te=j.forwardRef(function(t,n){let{onClick:i,relative:s,reloadDocument:a,replace:o,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}=t,m=jQ(t,kQ),{basename:f}=j.useContext(dd),g,p=!1;if(typeof d=="string"&&EQ.test(d)&&(g=d,PQ))try{let b=new URL(window.location.href),w=d.startsWith("//")?new URL(b.protocol+d):new URL(d),N=T_(w.pathname,f);w.origin===b.origin&&N!=null?d=N+w.search+w.hash:p=!0}catch{}let v=aQ(d,{relative:s}),y=AQ(d,{replace:o,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:h});function x(b){i&&i(b),b.defaultPrevented||y(b)}return j.createElement("a",S2({},m,{href:g||v,onClick:p||a?i:x,ref:n,target:c}))});var mP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mP||(mP={}));var fP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fP||(fP={}));function AQ(e,t){let{target:n,replace:i,state:s,preventScrollReset:a,relative:o,viewTransition:l}=t===void 0?{}:t,c=w$(),d=zl(),u=N$(e,{relative:o});return j.useCallback(h=>{if(SQ(h,n)){h.preventDefault();let m=i!==void 0?i:yy(d)===yy(u);c(e,{replace:m,state:s,preventScrollReset:a,relative:o,viewTransition:l})}},[d,c,u,i,s,n,e,a,o,l])}const OQ="modulepreload",IQ=function(e){return"/"+e},pP={},Si=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=IQ(c),c in pP)return;pP[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":OQ,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},DQ=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:i}=await Promise.resolve().then(()=>Uh);return{default:i}},void 0).then(({default:i})=>i(...n)):t=fetch,(...n)=>t(...n)};class E_ extends Error{constructor(t,n="FunctionsError",i){super(t),this.name=n,this.context=i}}class MQ extends E_{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class RQ extends E_{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class $Q extends E_{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var k2;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(k2||(k2={}));var LQ=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};class UQ{constructor(t,{headers:n={},customFetch:i,region:s=k2.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=DQ(i)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var i;return LQ(this,void 0,void 0,function*(){try{const{headers:s,method:a,body:o}=n;let l={},{region:c}=n;c||(c=this.region),c&&c!=="any"&&(l["x-region"]=c);let d;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(l["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(l["Content-Type"]="application/json",d=JSON.stringify(o)));const u=yield this.fetch(`${this.url}/${t}`,{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),s),body:d}).catch(g=>{throw new MQ(g)}),h=u.headers.get("x-relay-error");if(h&&h==="true")throw new RQ(u);if(!u.ok)throw new $Q(u);let m=((i=u.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),f;return m==="application/json"?f=yield u.json():m==="application/octet-stream"?f=yield u.blob():m==="text/event-stream"?f=u:m==="multipart/form-data"?f=yield u.formData():f=yield u.text(),{data:f,error:null}}catch(s){return{data:null,error:s}}})}}var Kr={},A_={},Ob={},_g={},Ib={},Db={},FQ=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Gu=FQ();const BQ=Gu.fetch,C$=Gu.fetch.bind(Gu),_$=Gu.Headers,WQ=Gu.Request,zQ=Gu.Response,Uh=Object.freeze(Object.defineProperty({__proto__:null,Headers:_$,Request:WQ,Response:zQ,default:C$,fetch:BQ},Symbol.toStringTag,{value:"Module"})),qQ=fH(Uh);var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});let HQ=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};Mb.default=HQ;var T$=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Db,"__esModule",{value:!0});const VQ=T$(qQ),GQ=T$(Mb);let YQ=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=VQ.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const i=this.fetch;let s=i(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{var o,l,c;let d=null,u=null,h=null,m=a.status,f=a.statusText;if(a.ok){if(this.method!=="HEAD"){const y=await a.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=y:u=JSON.parse(y))}const p=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),v=(l=a.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");p&&v&&v.length>1&&(h=parseInt(v[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(d={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,h=null,m=406,f="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const p=await a.text();try{d=JSON.parse(p),Array.isArray(d)&&a.status===404&&(u=[],d=null,m=200,f="OK")}catch{a.status===404&&p===""?(m=204,f="No Content"):d={message:p}}if(d&&this.isMaybeSingle&&(!((c=d==null?void 0:d.details)===null||c===void 0)&&c.includes("0 rows"))&&(d=null,m=200,f="OK"),d&&this.shouldThrowOnError)throw new GQ.default(d)}return{error:d,data:u,count:h,status:m,statusText:f}});return this.shouldThrowOnError||(s=s.catch(a=>{var o,l,c;return{error:{message:`${(o=a==null?void 0:a.name)!==null&&o!==void 0?o:"FetchError"}: ${a==null?void 0:a.message}`,details:`${(l=a==null?void 0:a.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=a==null?void 0:a.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};Db.default=YQ;var KQ=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ib,"__esModule",{value:!0});const XQ=KQ(Db);let QQ=class extends XQ.default{select(t){let n=!1;const i=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",i),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:i,foreignTable:s,referencedTable:a=s}={}){const o=a?`${a}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${t}.${n?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:i=n}={}){const s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:i,referencedTable:s=i}={}){const a=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:i=!1,buffers:s=!1,wal:a=!1,format:o="text"}={}){var l;const c=[t?"analyze":null,n?"verbose":null,i?"settings":null,s?"buffers":null,a?"wal":null].filter(Boolean).join("|"),d=(l=this.headers.Accept)!==null&&l!==void 0?l:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${d}"; options=${c};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Ib.default=QQ;var JQ=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_g,"__esModule",{value:!0});const ZQ=JQ(Ib);let eJ=class extends ZQ.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const i=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${i})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:i,type:s}={}){let a="";s==="plain"?a="pl":s==="phrase"?a="ph":s==="websearch"&&(a="w");const o=i===void 0?"":`(${i})`;return this.url.searchParams.append(t,`${a}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,i])=>{this.url.searchParams.append(n,`eq.${i}`)}),this}not(t,n,i){return this.url.searchParams.append(t,`not.${n}.${i}`),this}or(t,{foreignTable:n,referencedTable:i=n}={}){const s=i?`${i}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,i){return this.url.searchParams.append(t,`${n}.${i}`),this}};_g.default=eJ;var tJ=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ob,"__esModule",{value:!0});const wm=tJ(_g);let nJ=class{constructor(t,{headers:n={},schema:i,fetch:s}){this.url=t,this.headers=n,this.schema=i,this.fetch=s}select(t,{head:n=!1,count:i}={}){const s=n?"HEAD":"GET";let a=!1;const o=(t??"*").split("").map(l=>/\s/.test(l)&&!a?"":(l==='"'&&(a=!a),l)).join("");return this.url.searchParams.set("select",o),i&&(this.headers.Prefer=`count=${i}`),new wm.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:i=!0}={}){const s="POST",a=[];if(this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const o=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new wm.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:i=!1,count:s,defaultToNull:a=!0}={}){const o="POST",l=[`resolution=${i?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&l.push(this.headers.Prefer),s&&l.push(`count=${s}`),a||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(t)){const c=t.reduce((d,u)=>d.concat(Object.keys(u)),[]);if(c.length>0){const d=[...new Set(c)].map(u=>`"${u}"`);this.url.searchParams.set("columns",d.join(","))}}return new wm.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const i="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new wm.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",i=[];return t&&i.push(`count=${t}`),this.headers.Prefer&&i.unshift(this.headers.Prefer),this.headers.Prefer=i.join(","),new wm.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Ob.default=nJ;var Rb={},$b={};Object.defineProperty($b,"__esModule",{value:!0});$b.version=void 0;$b.version="0.0.0-automated";Object.defineProperty(Rb,"__esModule",{value:!0});Rb.DEFAULT_HEADERS=void 0;const rJ=$b;Rb.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${rJ.version}`};var P$=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(A_,"__esModule",{value:!0});const iJ=P$(Ob),sJ=P$(_g),aJ=Rb;let oJ=class E${constructor(t,{headers:n={},schema:i,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},aJ.DEFAULT_HEADERS),n),this.schemaName=i,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new iJ.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new E$(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:i=!1,get:s=!1,count:a}={}){let o;const l=new URL(`${this.url}/rpc/${t}`);let c;i||s?(o=i?"HEAD":"GET",Object.entries(n).filter(([u,h])=>h!==void 0).map(([u,h])=>[u,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([u,h])=>{l.searchParams.append(u,h)})):(o="POST",c=n);const d=Object.assign({},this.headers);return a&&(d.Prefer=`count=${a}`),new sJ.default({method:o,url:l,headers:d,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};A_.default=oJ;var Fh=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.PostgrestError=Kr.PostgrestBuilder=Kr.PostgrestTransformBuilder=Kr.PostgrestFilterBuilder=Kr.PostgrestQueryBuilder=Kr.PostgrestClient=void 0;const A$=Fh(A_);Kr.PostgrestClient=A$.default;const O$=Fh(Ob);Kr.PostgrestQueryBuilder=O$.default;const I$=Fh(_g);Kr.PostgrestFilterBuilder=I$.default;const D$=Fh(Ib);Kr.PostgrestTransformBuilder=D$.default;const M$=Fh(Db);Kr.PostgrestBuilder=M$.default;const R$=Fh(Mb);Kr.PostgrestError=R$.default;var lJ=Kr.default={PostgrestClient:A$.default,PostgrestQueryBuilder:O$.default,PostgrestFilterBuilder:I$.default,PostgrestTransformBuilder:D$.default,PostgrestBuilder:M$.default,PostgrestError:R$.default};const{PostgrestClient:cJ,PostgrestQueryBuilder:cUe,PostgrestFilterBuilder:dUe,PostgrestTransformBuilder:uUe,PostgrestBuilder:hUe,PostgrestError:mUe}=lJ;function dJ(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const uJ=dJ(),hJ="2.11.15",mJ=`realtime-js/${hJ}`,fJ="1.0.0",$$=1e4,pJ=1e3;var Nf;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Nf||(Nf={}));var mr;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(mr||(mr={}));var ws;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ws||(ws={}));var C2;(function(e){e.websocket="websocket"})(C2||(C2={}));var hc;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(hc||(hc={}));class gJ{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),i=new TextDecoder;return this._decodeBroadcast(t,n,i)}_decodeBroadcast(t,n,i){const s=n.getUint8(1),a=n.getUint8(2);let o=this.HEADER_LENGTH+2;const l=i.decode(t.slice(o,o+s));o=o+s;const c=i.decode(t.slice(o,o+a));o=o+a;const d=JSON.parse(i.decode(t.slice(o,t.byteLength)));return{ref:null,topic:l,event:c,payload:d}}}let L$=class{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}};var Ut;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Ut||(Ut={}));const gP=(e,t,n={})=>{var i;const s=(i=n.skipTypes)!==null&&i!==void 0?i:[];return Object.keys(t).reduce((a,o)=>(a[o]=vJ(o,e,t,s),a),{})},vJ=(e,t,n,i)=>{const s=t.find(l=>l.name===e),a=s==null?void 0:s.type,o=n[e];return a&&!i.includes(a)?U$(a,o):_2(o)},U$=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return wJ(t,n)}switch(e){case Ut.bool:return xJ(t);case Ut.float4:case Ut.float8:case Ut.int2:case Ut.int4:case Ut.int8:case Ut.numeric:case Ut.oid:return yJ(t);case Ut.json:case Ut.jsonb:return bJ(t);case Ut.timestamp:return jJ(t);case Ut.abstime:case Ut.date:case Ut.daterange:case Ut.int4range:case Ut.int8range:case Ut.money:case Ut.reltime:case Ut.text:case Ut.time:case Ut.timestamptz:case Ut.timetz:case Ut.tsrange:case Ut.tstzrange:return _2(t);default:return _2(t)}},_2=e=>e,xJ=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},yJ=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},bJ=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},wJ=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,i=e[n];if(e[0]==="{"&&i==="}"){let a;const o=e.slice(1,n);try{a=JSON.parse("["+o+"]")}catch{a=o?o.split(","):[]}return a.map(l=>U$(t,l))}return e},jJ=e=>typeof e=="string"?e.replace(" ","T"):e,F$=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class qj{constructor(t,n,i={},s=$$){this.channel=t,this.event=n,this.payload=i,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var i;return this._hasReceived(t)&&n((i=this.receivedResp)===null||i===void 0?void 0:i.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(i=>i.status===t).forEach(i=>i.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var vP;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(vP||(vP={}));class Sf{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const i=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(i.state,{},s=>{const{onJoin:a,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Sf.syncState(this.state,s,a,o),this.pendingDiffs.forEach(c=>{this.state=Sf.syncDiff(this.state,c,a,o)}),this.pendingDiffs=[],l()}),this.channel._on(i.diff,{},s=>{const{onJoin:a,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Sf.syncDiff(this.state,s,a,o),l())}),this.onJoin((s,a,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:a,newPresences:o})}),this.onLeave((s,a,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:a,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,i,s){const a=this.cloneDeep(t),o=this.transformState(n),l={},c={};return this.map(a,(d,u)=>{o[d]||(c[d]=u)}),this.map(o,(d,u)=>{const h=a[d];if(h){const m=u.map(v=>v.presence_ref),f=h.map(v=>v.presence_ref),g=u.filter(v=>f.indexOf(v.presence_ref)<0),p=h.filter(v=>m.indexOf(v.presence_ref)<0);g.length>0&&(l[d]=g),p.length>0&&(c[d]=p)}else l[d]=u}),this.syncDiff(a,{joins:l,leaves:c},i,s)}static syncDiff(t,n,i,s){const{joins:a,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return i||(i=()=>{}),s||(s=()=>{}),this.map(a,(l,c)=>{var d;const u=(d=t[l])!==null&&d!==void 0?d:[];if(t[l]=this.cloneDeep(c),u.length>0){const h=t[l].map(f=>f.presence_ref),m=u.filter(f=>h.indexOf(f.presence_ref)<0);t[l].unshift(...m)}i(l,u,c)}),this.map(o,(l,c)=>{let d=t[l];if(!d)return;const u=c.map(h=>h.presence_ref);d=d.filter(h=>u.indexOf(h.presence_ref)<0),t[l]=d,s(l,d,c),d.length===0&&delete t[l]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(i=>n(i,t[i]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,i)=>{const s=t[i];return"metas"in s?n[i]=s.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[i]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var xP;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(xP||(xP={}));var yP;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(yP||(yP={}));var za;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(za||(za={}));class O_{constructor(t,n={config:{}},i){this.topic=t,this.params=n,this.socket=i,this.bindings={},this.state=mr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new qj(this,ws.join,this.params,this.timeout),this.rejoinTimer=new L$(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=mr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=mr.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=mr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=mr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ws.reply,{},(s,a)=>{this._trigger(this._replyEventName(a),s)}),this.presence=new Sf(this),this.broadcastEndpointURL=F$(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==mr.closed){const{config:{broadcast:a,presence:o,private:l}}=this.params;this._onError(u=>t==null?void 0:t(za.CHANNEL_ERROR,u)),this._onClose(()=>t==null?void 0:t(za.CLOSED));const c={},d={broadcast:a,presence:o,postgres_changes:(s=(i=this.bindings.postgres_changes)===null||i===void 0?void 0:i.map(u=>u.filter))!==null&&s!==void 0?s:[],private:l};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:d},c)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:u})=>{var h;if(this.socket.setAuth(),u===void 0){t==null||t(za.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,f=(h=m==null?void 0:m.length)!==null&&h!==void 0?h:0,g=[];for(let p=0;p<f;p++){const v=m[p],{filter:{event:y,schema:x,table:b,filter:w}}=v,N=u&&u[p];if(N&&N.event===y&&N.schema===x&&N.table===b&&N.filter===w)g.push(Object.assign(Object.assign({},v),{id:N.id}));else{this.unsubscribe(),this.state=mr.errored,t==null||t(za.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,t&&t(za.SUBSCRIBED);return}}).receive("error",u=>{this.state=mr.errored,t==null||t(za.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(za.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,i){return this._on(t,n,i)}async send(t,n={}){var i,s;if(!this._canPush()&&t.type==="broadcast"){const{event:a,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);return await((s=d.body)===null||s===void 0?void 0:s.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var o,l,c;const d=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&a("ok"),d.receive("ok",()=>a("ok")),d.receive("error",()=>a("error")),d.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=mr.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ws.close,"leave",this._joinRef())};this.joinPush.destroy();let i=null;return new Promise(s=>{i=new qj(this,ws.leave,{},t),i.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),i.send(),this._canPush()||i.trigger("ok",{})}).finally(()=>{i==null||i.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(t,n,i){const s=new AbortController,a=setTimeout(()=>s.abort(),i),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(a),o}_push(t,n,i=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new qj(this,t,n,i);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,i){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,i){var s,a;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:d,join:u}=ws;if(i&&[l,c,d,u].indexOf(o)>=0&&i!==this._joinRef())return;let m=this._onMessage(o,n,i);if(n&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var g,p,v;return((g=f.filter)===null||g===void 0?void 0:g.event)==="*"||((v=(p=f.filter)===null||p===void 0?void 0:p.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(f=>f.callback(m,i)):(a=this.bindings[o])===null||a===void 0||a.filter(f=>{var g,p,v,y,x,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const w=f.id,N=(g=f.filter)===null||g===void 0?void 0:g.event;return w&&((p=n.ids)===null||p===void 0?void 0:p.includes(w))&&(N==="*"||(N==null?void 0:N.toLocaleLowerCase())===((v=n.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const w=(x=(y=f==null?void 0:f.filter)===null||y===void 0?void 0:y.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return w==="*"||w===((b=n==null?void 0:n.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof m=="object"&&"ids"in m){const g=m.data,{schema:p,table:v,commit_timestamp:y,type:x,errors:b}=g;m=Object.assign(Object.assign({},{schema:p,table:v,commit_timestamp:y,eventType:x,new:{},old:{},errors:b}),this._getPayloadRecords(g))}f.callback(m,i)})}_isClosed(){return this.state===mr.closed}_isJoined(){return this.state===mr.joined}_isJoining(){return this.state===mr.joining}_isLeaving(){return this.state===mr.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,i){const s=t.toLocaleLowerCase(),a={type:s,filter:n,callback:i};return this.bindings[s]?this.bindings[s].push(a):this.bindings[s]=[a],this}_off(t,n){const i=t.toLocaleLowerCase();return this.bindings[i]=this.bindings[i].filter(s=>{var a;return!(((a=s.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===i&&O_.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const i in t)if(t[i]!==n[i])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ws.close,{},t)}_onError(t){this._on(ws.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=mr.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=gP(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=gP(t.columns,t.old_record)),n}}const bP=()=>{},NJ=`
addEventListener("message", (e) => {
if (e.data.event === "start") {
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
}
});`;class SJ{constructor(t,n){var i;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=$$,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=bP,this.ref=0,this.logger=bP,this.conn=null,this.sendBuffer=[],this.serializer=new gJ,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=a=>{let o;return a?o=a:typeof fetch>"u"?o=(...l)=>Si(async()=>{const{default:c}=await Promise.resolve().then(()=>Uh);return{default:c}},void 0).then(({default:c})=>c(...l)):o=fetch,(...l)=>o(...l)},this.endPoint=`${t}/${C2.websocket}`,this.httpEndpoint=F$(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),(n!=null&&n.logLevel||n!=null&&n.log_level)&&(this.logLevel=n.logLevel||n.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(i=n==null?void 0:n.params)===null||i===void 0?void 0:i.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:a=>[1e3,2e3,5e3,1e4][a-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(a,o)=>o(JSON.stringify(a)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new L$(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=uJ),!this.transport)throw new Error("No transport provided");this.conn=new this.transport(this.endpointURL()),this.setupConnection()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:fJ}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(i=>i.teardown()))}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,i){this.logger(t,n,i)}connectionState(){switch(this.conn&&this.conn.readyState){case Nf.connecting:return hc.Connecting;case Nf.open:return hc.Open;case Nf.closing:return hc.Closing;default:return hc.Closed}}isConnected(){return this.connectionState()===hc.Open}channel(t,n={config:{}}){const i=`realtime:${t}`,s=this.getChannels().find(a=>a.topic===i);if(s)return s;{const a=new O_(`realtime:${t}`,n,this);return this.channels.push(a),a}}push(t){const{topic:n,event:i,payload:s,ref:a}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${n} ${i} (${a})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:mJ};n&&i.updateJoinPayload(s),i.joinedOnce&&i._isJoined()&&i._push(ws.access_token,{access_token:n})}))}async sendHeartbeat(){var t;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(t=this.conn)===null||t===void 0||t.close(pJ,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(i=>i.topic===t&&(i._isJoined()||i._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:i,event:s,payload:a,ref:o}=n;i==="phoenix"&&s==="phx_reply"&&this.heartbeatCallback(n.payload.status=="ok"?"ok":"error"),o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${a.status||""} ${i} ${s} ${o&&"("+o+")"||""}`,a),Array.from(this.channels).filter(l=>l._isMember(i)).forEach(l=>l._trigger(s,a,o)),this.stateChangeCallbacks.message.forEach(l=>l(n))})}_onConnOpen(){this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this.stateChangeCallbacks.open.forEach(t=>t())}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",`${t}`),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(ws.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const i=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${i}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const i=new Blob([NJ],{type:"application/javascript"});n=URL.createObjectURL(i)}return n}}class I_ extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Vn(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class kJ extends I_{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class T2 extends I_{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var CJ=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};const B$=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:i}=await Promise.resolve().then(()=>Uh);return{default:i}},void 0).then(({default:i})=>i(...n)):t=fetch,(...n)=>t(...n)},_J=()=>CJ(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Si(()=>Promise.resolve().then(()=>Uh),void 0)).Response:Response}),P2=e=>{if(Array.isArray(e))return e.map(n=>P2(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=n.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[s]=P2(i)}),t};var ud=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};const Hj=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),TJ=(e,t,n)=>ud(void 0,void 0,void 0,function*(){const i=yield _J();e instanceof i&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{t(new kJ(Hj(s),e.status||500))}).catch(s=>{t(new T2(Hj(s),s))}):t(new T2(Hj(e),e))}),PJ=(e,t,n,i)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i&&(s.body=JSON.stringify(i)),Object.assign(Object.assign({},s),n))};function Tg(e,t,n,i,s,a){return ud(this,void 0,void 0,function*(){return new Promise((o,l)=>{e(n,PJ(t,i,s,a)).then(c=>{if(!c.ok)throw c;return i!=null&&i.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>TJ(c,l,i))})})}function wy(e,t,n,i){return ud(this,void 0,void 0,function*(){return Tg(e,"GET",t,n,i)})}function Bo(e,t,n,i,s){return ud(this,void 0,void 0,function*(){return Tg(e,"POST",t,i,s,n)})}function EJ(e,t,n,i,s){return ud(this,void 0,void 0,function*(){return Tg(e,"PUT",t,i,s,n)})}function AJ(e,t,n,i){return ud(this,void 0,void 0,function*(){return Tg(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),i)})}function W$(e,t,n,i,s){return ud(this,void 0,void 0,function*(){return Tg(e,"DELETE",t,i,s,n)})}var qr=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};const OJ={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},wP={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class IJ{constructor(t,n={},i,s){this.url=t,this.headers=n,this.bucketId=i,this.fetch=B$(s)}uploadOrUpdate(t,n,i,s){return qr(this,void 0,void 0,function*(){try{let a;const o=Object.assign(Object.assign({},wP),s);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&i instanceof Blob?(a=new FormData,a.append("cacheControl",o.cacheControl),c&&a.append("metadata",this.encodeMetadata(c)),a.append("",i)):typeof FormData<"u"&&i instanceof FormData?(a=i,a.append("cacheControl",o.cacheControl),c&&a.append("metadata",this.encodeMetadata(c))):(a=i,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),s!=null&&s.headers&&(l=Object.assign(Object.assign({},l),s.headers));const d=this._removeEmptyFolders(n),u=this._getFinalPath(d),h=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:a,headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{})),m=yield h.json();return h.ok?{data:{path:d,id:m.Id,fullPath:m.Key},error:null}:{data:null,error:m}}catch(a){if(Vn(a))return{data:null,error:a};throw a}})}upload(t,n,i){return qr(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,i)})}uploadToSignedUrl(t,n,i,s){return qr(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(t),o=this._getFinalPath(a),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",n);try{let c;const d=Object.assign({upsert:wP.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(d.upsert)});typeof Blob<"u"&&i instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",i)):typeof FormData<"u"&&i instanceof FormData?(c=i,c.append("cacheControl",d.cacheControl)):(c=i,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType);const h=yield this.fetch(l.toString(),{method:"PUT",body:c,headers:u}),m=yield h.json();return h.ok?{data:{path:a,fullPath:m.Key},error:null}:{data:null,error:m}}catch(c){if(Vn(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,n){return qr(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const a=yield Bo(this.fetch,`${this.url}/object/upload/sign/${i}`,{},{headers:s}),o=new URL(this.url+a.url),l=o.searchParams.get("token");if(!l)throw new I_("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(i){if(Vn(i))return{data:null,error:i};throw i}})}update(t,n,i){return qr(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,i)})}move(t,n,i){return qr(this,void 0,void 0,function*(){try{return{data:yield Bo(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:i==null?void 0:i.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(Vn(s))return{data:null,error:s};throw s}})}copy(t,n,i){return qr(this,void 0,void 0,function*(){try{return{data:{path:(yield Bo(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:i==null?void 0:i.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(Vn(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,i){return qr(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),a=yield Bo(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},i!=null&&i.transform?{transform:i.transform}:{}),{headers:this.headers});const o=i!=null&&i.download?`&download=${i.download===!0?"":i.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${o}`)},{data:a,error:null}}catch(s){if(Vn(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,i){return qr(this,void 0,void 0,function*(){try{const s=yield Bo(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),a=i!=null&&i.download?`&download=${i.download===!0?"":i.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${a}`):null})),error:null}}catch(s){if(Vn(s))return{data:null,error:s};throw s}})}download(t,n){return qr(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=a?`?${a}`:"";try{const l=this._getFinalPath(t);return{data:yield(yield wy(this.fetch,`${this.url}/${s}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(Vn(l))return{data:null,error:l};throw l}})}info(t){return qr(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const i=yield wy(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:P2(i),error:null}}catch(i){if(Vn(i))return{data:null,error:i};throw i}})}exists(t){return qr(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield AJ(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(i){if(Vn(i)&&i instanceof T2){const s=i.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:i}}throw i}})}getPublicUrl(t,n){const i=this._getFinalPath(t),s=[],a=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";a!==""&&s.push(a);const l=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});c!==""&&s.push(c);let d=s.join("&");return d!==""&&(d=`?${d}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${i}${d}`)}}}remove(t){return qr(this,void 0,void 0,function*(){try{return{data:yield W$(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Vn(n))return{data:null,error:n};throw n}})}list(t,n,i){return qr(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},OJ),n),{prefix:t||""});return{data:yield Bo(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},i),error:null}}catch(s){if(Vn(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const DJ="2.7.1",MJ={"X-Client-Info":`storage-js/${DJ}`};var Cd=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};class RJ{constructor(t,n={},i){this.url=t,this.headers=Object.assign(Object.assign({},MJ),n),this.fetch=B$(i)}listBuckets(){return Cd(this,void 0,void 0,function*(){try{return{data:yield wy(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Vn(t))return{data:null,error:t};throw t}})}getBucket(t){return Cd(this,void 0,void 0,function*(){try{return{data:yield wy(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Vn(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Cd(this,void 0,void 0,function*(){try{return{data:yield Bo(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(i){if(Vn(i))return{data:null,error:i};throw i}})}updateBucket(t,n){return Cd(this,void 0,void 0,function*(){try{return{data:yield EJ(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(i){if(Vn(i))return{data:null,error:i};throw i}})}emptyBucket(t){return Cd(this,void 0,void 0,function*(){try{return{data:yield Bo(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Vn(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Cd(this,void 0,void 0,function*(){try{return{data:yield W$(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Vn(n))return{data:null,error:n};throw n}})}}class $J extends RJ{constructor(t,n={},i){super(t,n,i)}from(t){return new IJ(this.url,this.headers,t,this.fetch)}}const LJ="2.50.2";let Zm="";typeof Deno<"u"?Zm="deno":typeof document<"u"?Zm="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Zm="react-native":Zm="node";const UJ={"X-Client-Info":`supabase-js-${Zm}/${LJ}`},FJ={headers:UJ},BJ={schema:"public"},WJ={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},zJ={};var qJ=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};const HJ=e=>{let t;return e?t=e:typeof fetch>"u"?t=C$:t=fetch,(...n)=>t(...n)},VJ=()=>typeof Headers>"u"?_$:Headers,GJ=(e,t,n)=>{const i=HJ(n),s=VJ();return(a,o)=>qJ(void 0,void 0,void 0,function*(){var l;const c=(l=yield t())!==null&&l!==void 0?l:e;let d=new s(o==null?void 0:o.headers);return d.has("apikey")||d.set("apikey",e),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),i(a,Object.assign(Object.assign({},o),{headers:d}))})};var YJ=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};function KJ(e){return e.endsWith("/")?e:e+"/"}function XJ(e,t){var n,i;const{db:s,auth:a,realtime:o,global:l}=e,{db:c,auth:d,realtime:u,global:h}=t,m={db:Object.assign(Object.assign({},c),s),auth:Object.assign(Object.assign({},d),a),realtime:Object.assign(Object.assign({},u),o),global:Object.assign(Object.assign(Object.assign({},h),l),{headers:Object.assign(Object.assign({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(i=l==null?void 0:l.headers)!==null&&i!==void 0?i:{})}),accessToken:()=>YJ(this,void 0,void 0,function*(){return""})};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}const z$="2.70.0",Bd=30*1e3,E2=3,Vj=E2*Bd,QJ="http://localhost:9999",JJ="supabase.auth.token",ZJ={"X-Client-Info":`gotrue-js/${z$}`},A2="X-Supabase-Api-Version",q$={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},eZ=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,tZ=6e5;class D_ extends Error{constructor(t,n,i){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=i}}function nt(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class nZ extends D_{constructor(t,n,i){super(t,n,i),this.name="AuthApiError",this.status=n,this.code=i}}function rZ(e){return nt(e)&&e.name==="AuthApiError"}class H$ extends D_{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ql extends D_{constructor(t,n,i,s){super(t,i,s),this.name=n,this.status=i}}class $o extends ql{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function iZ(e){return nt(e)&&e.name==="AuthSessionMissingError"}class Ov extends ql{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Iv extends ql{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Dv extends ql{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function sZ(e){return nt(e)&&e.name==="AuthImplicitGrantRedirectError"}class jP extends ql{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class O2 extends ql{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Gj(e){return nt(e)&&e.name==="AuthRetryableFetchError"}class NP extends ql{constructor(t,n,i){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=i}}class kf extends ql{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const jy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),SP=`
\r=`.split(""),aZ=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<SP.length;t+=1)e[SP[t].charCodeAt(0)]=-2;for(let t=0;t<jy.length;t+=1)e[jy[t].charCodeAt(0)]=t;return e})();function kP(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const i=t.queue>>t.queuedBits-6&63;n(jy[i]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const i=t.queue>>t.queuedBits-6&63;n(jy[i]),t.queuedBits-=6}}function V$(e,t,n){const i=aZ[e];if(i>-1)for(t.queue=t.queue<<6|i,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(i===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function CP(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},i={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},a=o=>{cZ(o,i,n)};for(let o=0;o<e.length;o+=1)V$(e.charCodeAt(o),s,a);return t.join("")}function oZ(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function lZ(e,t){for(let n=0;n<e.length;n+=1){let i=e.charCodeAt(n);if(i>55295&&i<=56319){const s=(i-55296)*1024&65535;i=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}oZ(i,t)}}function cZ(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let i=1;i<6;i+=1)if(!(e>>7-i&1)){t.utf8seq=i;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function dZ(e){const t=[],n={queue:0,queuedBits:0},i=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)V$(e.charCodeAt(s),n,i);return new Uint8Array(t)}function uZ(e){const t=[];return lZ(e,n=>t.push(n)),new Uint8Array(t)}function hZ(e){const t=[],n={queue:0,queuedBits:0},i=s=>{t.push(s)};return e.forEach(s=>kP(s,n,i)),kP(null,n,i),t.join("")}function mZ(e){return Math.round(Date.now()/1e3)+e}function fZ(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const fs=()=>typeof window<"u"&&typeof document<"u",Jl={tested:!1,writable:!1},Cf=()=>{if(!fs())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Jl.tested)return Jl.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Jl.tested=!0,Jl.writable=!0}catch{Jl.tested=!0,Jl.writable=!1}return Jl.writable};function pZ(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,a)=>{t[a]=s})}catch{}return n.searchParams.forEach((i,s)=>{t[s]=i}),t}const G$=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Si(async()=>{const{default:i}=await Promise.resolve().then(()=>Uh);return{default:i}},void 0).then(({default:i})=>i(...n)):t=fetch,(...n)=>t(...n)},gZ=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Y$=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Mv=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Rv=async(e,t)=>{await e.removeItem(t)};class Lb{constructor(){this.promise=new Lb.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Lb.promiseConstructor=Promise;function Yj(e){const t=e.split(".");if(t.length!==3)throw new kf("Invalid JWT structure");for(let i=0;i<t.length;i++)if(!eZ.test(t[i]))throw new kf("JWT not in base64url format");return{header:JSON.parse(CP(t[0])),payload:JSON.parse(CP(t[1])),signature:dZ(t[2]),raw:{header:t[0],payload:t[1]}}}async function vZ(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function xZ(e,t){return new Promise((i,s)=>{(async()=>{for(let a=0;a<1/0;a++)try{const o=await e(a);if(!t(a,null,o)){i(o);return}}catch(o){if(!t(a,o)){s(o);return}}})()})}function yZ(e){return("0"+e.toString(16)).substr(-2)}function bZ(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=n.length;let s="";for(let a=0;a<56;a++)s+=n.charAt(Math.floor(Math.random()*i));return s}return crypto.getRandomValues(t),Array.from(t,yZ).join("")}async function wZ(e){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(i);return Array.from(s).map(a=>String.fromCharCode(a)).join("")}async function jZ(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await wZ(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _d(e,t,n=!1){const i=bZ();let s=i;n&&(s+="/PASSWORD_RECOVERY"),await Y$(e,`${t}-code-verifier`,s);const a=await jZ(i);return[a,i===a?"plain":"s256"]}const NZ=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function SZ(e){const t=e.headers.get(A2);if(!t||!t.match(NZ))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function kZ(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function CZ(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const _Z=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Td(e){if(!_Z.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var TZ=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n};const ac=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),PZ=[502,503,504];async function _P(e){var t;if(!gZ(e))throw new O2(ac(e),0);if(PZ.includes(e.status))throw new O2(ac(e),e.status);let n;try{n=await e.json()}catch(a){throw new H$(ac(a),a)}let i;const s=SZ(e);if(s&&s.getTime()>=q$["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?i=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(i=n.error_code),i){if(i==="weak_password")throw new NP(ac(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(i==="session_not_found")throw new $o}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((a,o)=>a&&typeof o=="string",!0))throw new NP(ac(n),e.status,n.weak_password.reasons);throw new nZ(ac(n),e.status||500,i)}const EZ=(e,t,n,i)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(i),Object.assign(Object.assign({},s),n))};async function dt(e,t,n,i){var s;const a=Object.assign({},i==null?void 0:i.headers);a[A2]||(a[A2]=q$["2024-01-01"].name),i!=null&&i.jwt&&(a.Authorization=`Bearer ${i.jwt}`);const o=(s=i==null?void 0:i.query)!==null&&s!==void 0?s:{};i!=null&&i.redirectTo&&(o.redirect_to=i.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await AZ(e,t,n+l,{headers:a,noResolveJson:i==null?void 0:i.noResolveJson},{},i==null?void 0:i.body);return i!=null&&i.xform?i==null?void 0:i.xform(c):{data:Object.assign({},c),error:null}}async function AZ(e,t,n,i,s,a){const o=EZ(t,i,s,a);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new O2(ac(c),0)}if(l.ok||await _P(l),i!=null&&i.noResolveJson)return l;try{return await l.json()}catch(c){await _P(c)}}function Fa(e){var t;let n=null;MZ(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=mZ(e.expires_in)));const i=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:i},error:null}}function TP(e){const t=Fa(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,i)=>n&&typeof i=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Go(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function OZ(e){return{data:e,error:null}}function IZ(e){const{action_link:t,email_otp:n,hashed_token:i,redirect_to:s,verification_type:a}=e,o=TZ(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:i,redirect_to:s,verification_type:a},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function DZ(e){return e}function MZ(e){return e.access_token&&e.refresh_token&&e.expires_in}const Kj=["global","local","others"];var RZ=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n};class $Z{constructor({url:t="",headers:n={},fetch:i}){this.url=t,this.headers=n,this.fetch=G$(i),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n=Kj[0]){if(Kj.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Kj.join(", ")}`);try{return await dt(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(i){if(nt(i))return{data:null,error:i};throw i}}async inviteUserByEmail(t,n={}){try{return await dt(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Go})}catch(i){if(nt(i))return{data:{user:null},error:i};throw i}}async generateLink(t){try{const{options:n}=t,i=RZ(t,["options"]),s=Object.assign(Object.assign({},i),n);return"newEmail"in i&&(s.new_email=i==null?void 0:i.newEmail,delete s.newEmail),await dt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:IZ,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(nt(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await dt(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Go})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,i,s,a,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await dt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(i=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&i!==void 0?i:"",per_page:(a=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""},xform:DZ});if(u.error)throw u.error;const h=await u.json(),m=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(g=>{const p=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(g.split(";")[1].split("=")[1]);d[`${v}Page`]=p}),d.total=parseInt(m)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(nt(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){Td(t);try{return await dt(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Go})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Td(t);try{return await dt(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Go})}catch(i){if(nt(i))return{data:{user:null},error:i};throw i}}async deleteUser(t,n=!1){Td(t);try{return await dt(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Go})}catch(i){if(nt(i))return{data:{user:null},error:i};throw i}}async _listFactors(t){Td(t.userId);try{const{data:n,error:i}=await dt(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:i}}catch(n){if(nt(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Td(t.userId),Td(t.id);try{return{data:await dt(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(nt(n))return{data:null,error:n};throw n}}}const LZ={getItem:e=>Cf()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Cf()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Cf()&&globalThis.localStorage.removeItem(e)}};function PP(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function UZ(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Pd={debug:!!(globalThis&&Cf()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class K$ extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class FZ extends K${}async function BZ(e,t,n){Pd.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const i=new globalThis.AbortController;return t>0&&setTimeout(()=>{i.abort(),Pd.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:i.signal},async s=>{if(s){Pd.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Pd.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Pd.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new FZ(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Pd.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}UZ();const WZ={url:QJ,storageKey:JJ,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:ZJ,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function EP(e,t,n){return await n()}class dp{constructor(t){var n,i;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=dp.nextInstanceID,dp.nextInstanceID+=1,this.instanceID>0&&fs()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},WZ),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new $Z({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=G$(s.fetch),this.lock=s.lock||EP,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:fs()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=BZ:this.lock=EP,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?s.storage?this.storage=s.storage:Cf()?this.storage=LZ:(this.memoryStorage={},this.storage=PP(this.memoryStorage)):(this.memoryStorage={},this.storage=PP(this.memoryStorage)),fs()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${z$}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=pZ(window.location.href);let i="none";if(this._isImplicitGrantCallback(n)?i="implicit":await this._isPKCECallback(n)&&(i="pkce"),fs()&&this.detectSessionInUrl&&i!=="none"){const{data:s,error:a}=await this._getSessionFromURL(n,i);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),sZ(a)){const c=(t=a.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:a}}return await this._removeSession(),{error:a}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return nt(n)?{error:n}:{error:new H$("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,i,s;try{const a=await dt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(i=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Fa}),{data:o,error:l}=a;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(a){if(nt(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(t){var n,i,s;try{let a;if("email"in t){const{email:u,password:h,options:m}=t;let f=null,g=null;this.flowType==="pkce"&&([f,g]=await _d(this.storage,this.storageKey)),a=await dt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:u,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:f,code_challenge_method:g},xform:Fa})}else if("phone"in t){const{phone:u,password:h,options:m}=t;a=await dt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:h,data:(i=m==null?void 0:m.data)!==null&&i!==void 0?i:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:Fa})}else throw new Iv("You must provide either an email or phone number and a password");const{data:o,error:l}=a;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(a){if(nt(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(t){try{let n;if("email"in t){const{email:a,password:o,options:l}=t;n=await dt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:TP})}else if("phone"in t){const{phone:a,password:o,options:l}=t;n=await dt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:TP})}else throw new Iv("You must provide either an email or phone number and a password");const{data:i,error:s}=n;return s?{data:{user:null,session:null},error:s}:!i||!i.session||!i.user?{data:{user:null,session:null},error:new Ov}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign({user:i.user,session:i.session},i.weak_password?{weakPassword:i.weak_password}:null),error:s})}catch(n){if(nt(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,i,s,a;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(i=t.options)===null||i===void 0?void 0:i.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;if(n==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(t){var n,i,s,a,o,l,c,d,u,h,m,f;let g,p;if("message"in t)g=t.message,p=t.signature;else{const{chain:v,wallet:y,statement:x,options:b}=t;let w;if(fs())if(typeof y=="object")w=y;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))w=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=y}const N=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in w&&w.signIn){const S=await w.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:N.host,uri:N.href}),x?{statement:x}:null));let k;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")k=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)k=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)g=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),p=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in w)||typeof w.signMessage!="function"||!("publicKey"in w)||typeof w!="object"||!w.publicKey||!("toBase58"in w.publicKey)||typeof w.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${N.host} wants you to sign in with your Solana account:`,w.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${N.href}`,`Issued At: ${(s=(i=b==null?void 0:b.signInWithSolana)===null||i===void 0?void 0:i.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((d=b==null?void 0:b.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(u=b==null?void 0:b.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
`);const S=await w.signMessage(new TextEncoder().encode(g),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=S}}try{const{data:v,error:y}=await dt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:hZ(p)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Fa});if(y)throw y;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new Ov}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:y})}catch(v){if(nt(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(t){const n=await Mv(this.storage,`${this.storageKey}-code-verifier`),[i,s]=(n??"").split("/");try{const{data:a,error:o}=await dt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:i},xform:Fa});if(await Rv(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!a||!a.session||!a.user?{data:{user:null,session:null,redirectType:null},error:new Ov}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign(Object.assign({},a),{redirectType:s??null}),error:o})}catch(a){if(nt(a))return{data:{user:null,session:null,redirectType:null},error:a};throw a}}async signInWithIdToken(t){try{const{options:n,provider:i,token:s,access_token:a,nonce:o}=t,l=await dt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:i,id_token:s,access_token:a,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Fa}),{data:c,error:d}=l;return d?{data:{user:null,session:null},error:d}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Ov}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:d})}catch(n){if(nt(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,i,s,a,o;try{if("email"in t){const{email:l,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await _d(this.storage,this.storageKey));const{error:h}=await dt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:h}}if("phone"in t){const{phone:l,options:c}=t,{data:d,error:u}=await dt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(a=c==null?void 0:c.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u}}throw new Iv("You must provide either an email or phone number.")}catch(l){if(nt(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var n,i;try{let s,a;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(i=t.options)===null||i===void 0?void 0:i.captchaToken);const{data:o,error:l}=await dt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:s,xform:Fa});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(s){if(nt(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,i,s;try{let a=null,o=null;return this.flowType==="pkce"&&([a,o]=await _d(this.storage,this.storageKey)),await dt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&i!==void 0?i:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:o}),headers:this.headers,xform:OZ})}catch(a){if(nt(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:i}=t;if(i)throw i;if(!n)throw new $o;const{error:s}=await dt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(nt(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:i,type:s,options:a}=t,{error:o}=await dt(this.fetch,"POST",n,{headers:this.headers,body:{email:i,type:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:i,type:s,options:a}=t,{data:o,error:l}=await dt(this.fetch,"POST",n,{headers:this.headers,body:{phone:i,type:s,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new Iv("You must provide either an email or phone number and a type")}catch(n){if(nt(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const i=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await i,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const i=n();for(this.pendingInLock.push((async()=>{try{await i}catch{}})()),await i;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await i}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Mv(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const i=t.expires_at?t.expires_at*1e3-Date.now()<Vj:!1;if(this._debug("#__loadSession()",`session has${i?"":" not"} expired`,"expires_at",t.expires_at),!i){if(this.storage.isServer){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,d,u)=>(!o&&d==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,d,u))})}return{data:{session:t},error:null}}const{session:s,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{session:null},error:a}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await dt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Go}):await this._useSession(async n=>{var i,s,a;const{data:o,error:l}=n;if(l)throw l;return!(!((i=o.session)===null||i===void 0)&&i.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $o}:await dt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&a!==void 0?a:void 0,xform:Go})})}catch(n){if(nt(n))return iZ(n)&&(await this._removeSession(),await Rv(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async i=>{const{data:s,error:a}=i;if(a)throw a;if(!s.session)throw new $o;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await _d(this.storage,this.storageKey));const{data:d,error:u}=await dt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Go});if(u)throw u;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(i){if(nt(i))return{data:{user:null},error:i};throw i}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new $o;const n=Date.now()/1e3;let i=n,s=!0,a=null;const{payload:o}=Yj(t.access_token);if(o.exp&&(i=o.exp,s=i<=n),s){const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};a=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;a={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:i-n,expires_at:i},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(n){if(nt(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var i;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(i=o.session)!==null&&i!==void 0?i:void 0}if(!(t!=null&&t.refresh_token))throw new $o;const{session:s,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{user:null,session:null},error:a}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(nt(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!fs())throw new Dv("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Dv(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new jP("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Dv("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new jP("No code detected.");const{data:x,error:b}=await this._exchangeCodeForSession(t.code);if(b)throw b;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:i,provider_refresh_token:s,access_token:a,refresh_token:o,expires_in:l,expires_at:c,token_type:d}=t;if(!a||!l||!o||!d)throw new Dv("No session defined in URL");const u=Math.round(Date.now()/1e3),h=parseInt(l);let m=u+h;c&&(m=parseInt(c));const f=m-u;f*1e3<=Bd&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const g=m-h;u-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,m,u):u-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,m,u);const{data:p,error:v}=await this._getUser(a);if(v)throw v;const y={provider_token:i,provider_refresh_token:s,access_token:a,expires_in:h,expires_at:m,refresh_token:o,token_type:d,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(i){if(nt(i))return{data:{session:null,redirectType:null},error:i};throw i}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Mv(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var i;const{data:s,error:a}=n;if(a)return{error:a};const o=(i=s.session)===null||i===void 0?void 0:i.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(rZ(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await Rv(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=fZ(),i={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,i),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:i}}}async _emitInitialSession(t){return await this._useSession(async n=>{var i,s;try{const{data:{session:a},error:o}=n;if(o)throw o;await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let i=null,s=null;this.flowType==="pkce"&&([i,s]=await _d(this.storage,this.storageKey,!0));try{return await dt(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:i,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(nt(a))return{data:null,error:a};throw a}}async getUserIdentities(){var t;try{const{data:n,error:i}=await this.getUser();if(i)throw i;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(nt(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:i,error:s}=await this._useSession(async a=>{var o,l,c,d,u;const{data:h,error:m}=a;if(m)throw m;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await dt(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return fs()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(i==null?void 0:i.url),{data:{provider:t.provider,url:i==null?void 0:i.url},error:null}}catch(i){if(nt(i))return{data:{provider:t.provider,url:null},error:i};throw i}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var i,s;const{data:a,error:o}=n;if(o)throw o;return await dt(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(nt(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const i=Date.now();return await xZ(async s=>(s>0&&await vZ(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await dt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Fa})),(s,a)=>{const o=200*Math.pow(2,s);return a&&Gj(a)&&Date.now()+o-i<Bd})}catch(i){if(this._debug(n,"error",i),nt(i))return{data:{session:null,user:null},error:i};throw i}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const i=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",i),fs()&&!n.skipBrowserRedirect&&window.location.assign(i),{data:{provider:t,url:i},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Mv(this.storage,this.storageKey);if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const s=((t=i.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Vj;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${Vj}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(console.error(a),Gj(a)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,i;if(!t)throw new $o;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Lb;const{data:a,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!a.session)throw new $o;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const l={session:a.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(a){if(this._debug(s,"error",a),nt(a)){const o={session:null,error:a};return Gj(a)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(i=this.refreshingDeferred)===null||i===void 0||i.reject(a),a}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,i=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${i}`);try{this.broadcastChannel&&i&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){a.push(c)}});if(await Promise.all(o),a.length>0){for(let l=0;l<a.length;l+=1)console.error(a[l]);throw a[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Y$(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Rv(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&fs()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Bd);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:i}}=n;if(!i||!i.refresh_token||!i.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((i.expires_at*1e3-t)/Bd);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Bd}ms, refresh threshold is ${E2} ticks`),s<=E2&&await this._callRefreshToken(i.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof K$)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!fs()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,i){const s=[`provider=${encodeURIComponent(n)}`];if(i!=null&&i.redirectTo&&s.push(`redirect_to=${encodeURIComponent(i.redirectTo)}`),i!=null&&i.scopes&&s.push(`scopes=${encodeURIComponent(i.scopes)}`),this.flowType==="pkce"){const[a,o]=await _d(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(i!=null&&i.queryParams){const a=new URLSearchParams(i.queryParams);s.push(a.toString())}return i!=null&&i.skipBrowserRedirect&&s.push(`skip_http_redirect=${i.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var i;const{data:s,error:a}=n;return a?{data:null,error:a}:await dt(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(i=s==null?void 0:s.session)===null||i===void 0?void 0:i.access_token})})}catch(n){if(nt(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var i,s;const{data:a,error:o}=n;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:d}=await dt(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(i=a==null?void 0:a.session)===null||i===void 0?void 0:i.access_token});return d?{data:null,error:d}:(t.factorType==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(n){if(nt(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var i;const{data:s,error:a}=n;if(a)return{data:null,error:a};const{data:o,error:l}=await dt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(i=s==null?void 0:s.session)===null||i===void 0?void 0:i.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(n){if(nt(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var i;const{data:s,error:a}=n;return a?{data:null,error:a}:await dt(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(i=s==null?void 0:s.session)===null||i===void 0?void 0:i.access_token})})}catch(n){if(nt(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:i}=await this._challenge({factorId:t.factorId});return i?{data:null,error:i}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const i=(t==null?void 0:t.factors)||[],s=i.filter(o=>o.factor_type==="totp"&&o.status==="verified"),a=i.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:i,totp:s,phone:a},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,i;const{data:{session:s},error:a}=t;if(a)return{data:null,error:a};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Yj(s.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((i=(n=s.user.factors)===null||n===void 0?void 0:n.filter(h=>h.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(c="aal2");const u=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,n={keys:[]}){let i=n.keys.find(o=>o.kid===t);if(i||(i=this.jwks.keys.find(o=>o.kid===t),i&&this.jwks_cached_at+tZ>Date.now()))return i;const{data:s,error:a}=await dt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;if(!s.keys||s.keys.length===0)throw new kf("JWKS is empty");if(this.jwks=s,this.jwks_cached_at=Date.now(),i=s.keys.find(o=>o.kid===t),!i)throw new kf("No matching signing key found in JWKS");return i}async getClaims(t,n={keys:[]}){try{let i=t;if(!i){const{data:f,error:g}=await this.getSession();if(g||!f.session)return{data:null,error:g};i=f.session.access_token}const{header:s,payload:a,signature:o,raw:{header:l,payload:c}}=Yj(i);if(kZ(a.exp),!s.kid||s.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:f}=await this.getUser(i);if(f)throw f;return{data:{claims:a,header:s,signature:o},error:null}}const d=CZ(s.alg),u=await this.fetchJwk(s.kid,n),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,uZ(`${l}.${c}`)))throw new kf("Invalid JWT signature");return{data:{claims:a,header:s,signature:o},error:null}}catch(i){if(nt(i))return{data:null,error:i};throw i}}}dp.nextInstanceID=0;const zZ=dp;class qZ extends zZ{constructor(t){super(t)}}var HZ=function(e,t,n,i){function s(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{d(i.next(u))}catch(h){o(h)}}function c(u){try{d(i.throw(u))}catch(h){o(h)}}function d(u){u.done?a(u.value):s(u.value).then(l,c)}d((i=i.apply(e,t||[])).next())})};class VZ{constructor(t,n,i){var s,a,o;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const l=KJ(t),c=new URL(l);this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const d=`sb-${c.hostname.split(".")[0]}-auth-token`,u={db:BJ,realtime:zJ,auth:Object.assign(Object.assign({},WJ),{storageKey:d}),global:FJ},h=XJ(i??{},u);this.storageKey=(s=h.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(a=h.global.headers)!==null&&a!==void 0?a:{},h.accessToken?(this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(m,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=h.auth)!==null&&o!==void 0?o:{},this.headers,h.global.fetch),this.fetch=GJ(n,this._getAccessToken.bind(this),h.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},h.realtime)),this.rest=new cJ(new URL("rest/v1",c).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch}),h.accessToken||this._listenForAuthEvents()}get functions(){return new UQ(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new $J(this.storageUrl.href,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},i={}){return this.rest.rpc(t,n,i)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return HZ(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:i}=yield this.auth.getSession();return(n=(t=i.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:i,storage:s,storageKey:a,flowType:o,lock:l,debug:c},d,u){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new qZ({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),d),storageKey:a,autoRefreshToken:t,persistSession:n,detectSessionInUrl:i,storage:s,flowType:o,lock:l,debug:c,fetch:u,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new SJ(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,i)=>{this._handleTokenChanged(n,"CLIENT",i==null?void 0:i.access_token)})}_handleTokenChanged(t,n,i){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==i?this.changedAccessToken=i:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const GZ=(e,t,n)=>new VZ(e,t,n),YZ="https://ongeqmnwprabwzgzgjqy.supabase.co",KZ="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9uZ2VxbW53cHJhYnd6Z3pnanF5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTA4OTI1NjIsImV4cCI6MjA2NjQ2ODU2Mn0.vPgNHi0BJ_tDhi_-i1qm8Tcm_yURVBFT8Oh_p2p1V8w",Q=GZ(YZ,KZ),Xj=Object.freeze(Object.defineProperty({__proto__:null,supabase:Q},Symbol.toStringTag,{value:"Module"})),XZ=()=>{const e=w$(),t=zl(),n=j.useRef(!1);return j.useEffect(()=>{if(n.current)return;const i=async()=>{const a=new URLSearchParams(window.location.search),o=new URLSearchParams(window.location.hash.slice(1)),l=a.get("code"),c=o.get("access_token")||o.get("code");if(l||c){n.current=!0;const d=localStorage.getItem("oauth_redirect_destination"),u=()=>{if(d)return d;const m=t.pathname;return m.includes("/agent")?"/agent":m.includes("/admin")?"/admin":"/"},h=async(m=0,f=5)=>{try{const{data:{session:g},error:p}=await Q.auth.getSession();if(g!=null&&g.user){localStorage.removeItem("oauth_redirect_destination");const v=u();e(v,{replace:!0});return}if(m<f)setTimeout(()=>{h(m+1,f)},500*(m+1));else{const v=u();e(v,{replace:!0})}}catch(g){console.error("Session check error:",g);const p=u();e(p,{replace:!0})}};h()}},{data:{subscription:s}}=Q.auth.onAuthStateChange((a,o)=>{if(a==="SIGNED_IN"&&(o!=null&&o.user)&&!n.current){const l=new URLSearchParams(window.location.search),c=new URLSearchParams(window.location.hash.slice(1)),d=l.get("code"),u=c.get("access_token")||c.get("code");if(d||u){n.current=!0;const h=localStorage.getItem("oauth_redirect_destination");localStorage.removeItem("oauth_redirect_destination");const m=h||(t.pathname.includes("/agent")?"/agent":t.pathname.includes("/admin")?"/admin":"/");e(m,{replace:!0})}}});return i(),()=>s.unsubscribe()},[e,t]),null},I2="trident_marketing_data",D2=90,QZ=(e,t,n,i,s,a)=>!e&&!t&&!i&&!s&&!a?"Direct":s||t&&(t.includes("cpc")||t.includes("ppc"))||e&&(e.includes("google")||e.includes("bing"))&&(t!=null&&t.includes("cpc"))?"Paid Search":a||t&&t.includes("social")||n&&(n.includes("facebook")||n.includes("instagram")||n.includes("linkedin")||n.includes("twitter"))?"Paid Social":i&&(i.includes("google.")||i.includes("bing.")||i.includes("yahoo.")||i.includes("duckduckgo.")||i.includes("baidu."))?"Organic Search":i&&(i.includes("facebook.")||i.includes("instagram.")||i.includes("linkedin.")||i.includes("twitter.")||i.includes("youtube."))?"Social Media":t&&(t.includes("email")||t.includes("newsletter"))?"Email Marketing":i||t!=null&&t.includes("referral")?"Referral":"Other",JZ=(e,t,n)=>{const i=(e||"").toLowerCase(),s=(t||"").toLowerCase();return(n||"").toLowerCase(),i.includes("premium")||i.includes("enterprise")||i.includes("corporate")||s.includes("corporate")||s.includes("business")||s.includes("enterprise")?"high":i.includes("budget")||i.includes("cheap")||i.includes("affordable")||s.includes("cheap")||s.includes("budget")||s.includes("free")?"low":"mid"},ZZ=(e,t,n)=>{const i=(e||"").toLowerCase(),s=(t||"").toLowerCase();return i.includes("corporate")||i.includes("business")||i.includes("law")||s.includes("corporate")||s.includes("business")||s.includes("attorney")||n==="corporate"?"business":"consumer"},eee=(e,t,n)=>{const i=(e||"").toLowerCase(),s=(t||"").toLowerCase(),a=(n||"").toLowerCase();return i.includes("divorce")||s.includes("divorce")||a.includes("divorce")?"divorce":i.includes("custody")||s.includes("custody")||a.includes("custody")?"child_custody":i.includes("corporate")||s.includes("corporate")||a.includes("corporate")?"corporate":i.includes("insurance")||s.includes("insurance")||a.includes("insurance")?"insurance":i.includes("asset")||s.includes("asset")||a.includes("asset")?"asset_search":i.includes("surveillance")||s.includes("surveillance")||a.includes("surveillance")?"surveillance":null},tee=e=>{if(!e)return null;const t=e.toLowerCase();return t.includes("firefox")?"firefox":t.includes("chrome")&&!t.includes("edg")?"chrome":t.includes("safari")&&!t.includes("chrome")?"safari":t.includes("edg")?"edge":t.includes("opera")||t.includes("opr")?"opera":"other"},nee=e=>{if(!e)return"unknown";const t=e.toLowerCase();return t.includes("mobile")||t.includes("android")||t.includes("iphone")?"mobile":t.includes("tablet")||t.includes("ipad")?"tablet":"desktop"},ree=e=>new Date>new Date(e),iee=()=>{try{if(typeof window>"u")return null;const e=localStorage.getItem(I2);if(!e)return null;const t=JSON.parse(e);return ree(t.expires_at)?(localStorage.removeItem(I2),null):t}catch(e){return console.warn("Error reading stored marketing data:",e),null}},AP=e=>{try{if(typeof window>"u")return;localStorage.setItem(I2,JSON.stringify(e))}catch(t){console.warn("Error storing marketing data:",t)}},OP=()=>{const e=new URLSearchParams(window.location.search),t=document.referrer||null,n=window.location.href,i=navigator.userAgent,s=e.get("utm_source"),a=e.get("utm_medium"),o=e.get("utm_campaign"),l=e.get("utm_term"),c=e.get("utm_content"),d=e.get("gclid"),u=e.get("fbclid"),h=e.get("msclkid"),m=e.get("ttclid"),f=e.get("wbraid"),g=e.get("gbraid"),p=e.get("srsltid"),v=e.get("utm_source_platform"),y=e.get("utm_id"),x=e.get("utm_campaign_id"),b=e.get("utm_creative_format"),w=e.get("utm_marketing_tactic"),N=e.get("campaign_id")||e.get("campaignid"),S=e.get("adgroupid")||e.get("ad_group_id"),k=e.get("adid")||e.get("ad_id"),_=e.get("keyword")||e.get("kwd"),D=e.get("matchtype")||e.get("match_type"),A=e.get("network"),E=e.get("device"),T=eee(o,l,n),M=QZ(s,a,v,t,d,u),C=JZ(o,l,s),P=ZZ(o,l,T),I=new Date,R=new Date(I.getTime()+D2*24*60*60*1e3);return{utm_source:s,utm_medium:a,utm_campaign:o,utm_term:l,utm_content:c,gclid:d,fbclid:u,msclkid:h,ttclid:m,wbraid:f,gbraid:g,srsltid:p,utm_source_platform:v,utm_id:y,utm_campaign_id:x,utm_creative_format:b,utm_marketing_tactic:w,campaign_id_detailed:N,ad_group_id:S,ad_id:k,keyword:_,match_type:D,network:A,device:E,channel_group:M,value_tier:C,client_type:P,service_type_auto:T,referrer_url:t,landing_page_url:n,device_type:nee(i),browser:tee(i),user_agent:i,first_touch_utm_source:s,first_touch_utm_medium:a,first_touch_utm_campaign:o,first_touch_gclid:d,first_touch_fbclid:u,first_touch_referrer:t,last_touch_source:s||M,do_not_share:!1,captured_at:I.toISOString(),session_start:I.toISOString(),expires_at:R.toISOString()}},see=()=>{try{return localStorage.getItem("trident_do_not_share")==="1"}catch{return!1}},M_=()=>{try{if(typeof window>"u")return{utm_source:null,utm_medium:null,utm_campaign:null,utm_term:null,utm_content:null,gclid:null,fbclid:null,msclkid:null,ttclid:null,wbraid:null,gbraid:null,srsltid:null,utm_source_platform:null,utm_id:null,utm_campaign_id:null,utm_creative_format:null,utm_marketing_tactic:null,campaign_id_detailed:null,ad_group_id:null,ad_id:null,keyword:null,match_type:null,network:null,device:null,channel_group:"Direct",value_tier:"mid",client_type:"consumer",service_type_auto:null,referrer_url:null,landing_page_url:null,device_type:"unknown",browser:null,user_agent:null,first_touch_utm_source:null,first_touch_utm_medium:null,first_touch_utm_campaign:null,first_touch_gclid:null,first_touch_fbclid:null,first_touch_referrer:null,last_touch_source:null,do_not_share:!1,captured_at:new Date().toISOString(),session_start:new Date().toISOString(),expires_at:new Date(Date.now()+D2*24*60*60*1e3).toISOString()};const e=iee();if(e){console.log("π Using stored marketing data (TTL active):",{channel_group:e.channel_group,value_tier:e.value_tier,client_type:e.client_type,expires_at:e.expires_at});const i=new URLSearchParams(window.location.search);if(i.get("utm_source")||i.get("gclid")||i.get("fbclid")){const a=OP(),o={...e,last_touch_source:a.utm_source||a.channel_group};return AP(o),o}return e}console.log("π Capturing fresh marketing data with 90-day TTL");const t=OP();return see()&&(t.gclid="",t.fbclid="",t.msclkid="",t.ttclid="",t.wbraid="",t.gbraid="",t.srsltid="",t.utm_id="",t.utm_source_platform="",t.utm_creative_format="",t.utm_marketing_tactic="",t.channel_group=t.channel_group||"Direct",t.do_not_share=!0),AP(t),console.log("π Fresh marketing data captured:",{channel_group:t.channel_group,value_tier:t.value_tier,client_type:t.client_type,service_type_auto:t.service_type_auto,do_not_share:t.do_not_share,expires_at:t.expires_at}),t}catch(e){return console.warn("β οΈ Error in getTrackingData:",e),{utm_source:null,utm_medium:null,utm_campaign:null,utm_term:null,utm_content:null,gclid:null,fbclid:null,msclkid:null,ttclid:null,wbraid:null,gbraid:null,srsltid:null,utm_source_platform:null,utm_id:null,utm_campaign_id:null,utm_creative_format:null,utm_marketing_tactic:null,campaign_id_detailed:null,ad_group_id:null,ad_id:null,keyword:null,match_type:null,network:null,device:null,channel_group:"Direct",value_tier:"mid",client_type:"consumer",service_type_auto:null,referrer_url:null,landing_page_url:null,device_type:"unknown",browser:null,user_agent:null,first_touch_utm_source:null,first_touch_utm_medium:null,first_touch_utm_campaign:null,first_touch_gclid:null,first_touch_fbclid:null,first_touch_referrer:null,last_touch_source:null,do_not_share:!1,captured_at:new Date().toISOString(),session_start:new Date().toISOString(),expires_at:new Date(Date.now()+D2*24*60*60*1e3).toISOString()}}},X$="trident_session",IP="trident_visitor_id",aee=30,DP="",Qj="",oee=()=>{const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,15);return`sess_${e}_${t}`},lee=()=>{const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,15);return`vis_${e}_${t}`},cee=()=>{if(typeof window>"u")return"";let e=localStorage.getItem(IP);return e||(e=lee(),localStorage.setItem(IP,e)),e},R_=()=>{if(typeof window>"u")return null;try{const e=sessionStorage.getItem(X$);return e?JSON.parse(e):null}catch{return null}},Ex=e=>{if(!(typeof window>"u"))try{sessionStorage.setItem(X$,JSON.stringify(e))}catch(t){console.warn("Failed to store session:",t)}},dee=e=>Date.now()-e.lastActivity>aee*60*1e3,uee=async e=>{const t=e.replace(/[^0-9]/g,""),i=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(s)).map(o=>o.toString(16).padStart(2,"0")).join("")},hee=e=>e.replace(/[^0-9]/g,""),mee=async(e,t)=>(console.log("π Attribution sync skipped - not configured"),null),fee=async e=>{},pUe=async(e,t,n="contact")=>{const i=R_();if(!(!(i!=null&&i.supabaseId)||!DP||!Qj))try{const s=await uee(e),a=hee(e);let o=null;if(t){const c=new TextEncoder().encode(t.toLowerCase().trim()),d=await crypto.subtle.digest("SHA-256",c);o=Array.from(new Uint8Array(d)).map(h=>h.toString(16).padStart(2,"0")).join("")}await fetch(`${DP}/rest/v1/website_sessions?id=eq.${i.supabaseId}`,{method:"PATCH",headers:{"Content-Type":"application/json",apikey:Qj,Authorization:`Bearer ${Qj}`},body:JSON.stringify({phone_hash:s,phone_raw:a,email_hash:o,form_submitted:!0,form_submitted_at:new Date().toISOString(),form_type:n,last_activity:new Date().toISOString(),updated_at:new Date().toISOString()})}),console.log("π Form submission recorded for attribution")}catch(s){console.warn("π Failed to record form submission:",s)}},pee=()=>{const e=R_();if(e&&!dee(e))return e.lastActivity=Date.now(),e.pageViews+=1,Ex(e),e.supabaseId&&e.pageViews%5===0&&fee(e.supabaseId),e;const t={sessionId:oee(),visitorId:cee(),startTime:Date.now(),lastActivity:Date.now(),pageViews:1,synced:!1};return Ex(t),M_(),mee().then(n=>{n&&(t.supabaseId=n,t.synced=!0,Ex(t))}),console.log("π New session started:",t.sessionId),t},gee=()=>{typeof window>"u"||(pee(),document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="visible"){const e=R_();e&&(e.lastActivity=Date.now(),Ex(e))}}),console.log("π Session tracking initialized"))},ol=({to:e,children:t,className:n="nav-link text-white",onClick:i})=>{const s=()=>{window.gtag&&window.gtag("event","navigation_click",{event_category:"Navigation",event_label:typeof t=="string"?t:"Navigation link",destination:e,navigation_type:"main_nav"}),i&&i()};return r.jsx(te,{to:e,className:n,onClick:s,children:t})},M2=[{name:"Salt Lake County",path:"/locations/utah/salt-lake-county"},{name:"Utah County",path:"/locations/utah/utah-county"},{name:"Davis County",path:"/locations/utah/davis-county"},{name:"Weber County",path:"/locations/utah/weber-county"},{name:"Washington County",path:"/locations/utah/washington-county"},{name:"Cache County",path:"/locations/utah/cache-county"},{name:"Tooele County",path:"/locations/utah/tooele-county"}],Q$=[{name:"Utah Private Investigator",path:"/services/utah-private-investigator"},{name:"Domestic Investigations",path:"/services/domestic"},{name:"Legal Investigation Services",path:"/services/legal-investigation-utah"},{name:"Corporate Investigations",path:"/services/corporate"},{name:"Insurance Investigations",path:"/services/insurance"},{name:"Criminal Investigations",path:"/services/criminal"},{name:"Investigations for Law Firms",path:"/services/law-firms"},{name:"Asset Searches",path:"/services/asset-searches"}],J$=[{name:"Utah",path:"/locations/utah"},{name:"Idaho",path:"/locations/idaho"},{name:"Wyoming",path:"/locations/wyoming"}],Ny=({title:e,items:t,isOpen:n,setIsOpen:i,isMobile:s=!1,onMobileItemClick:a,showSubMenu:o=!1})=>{const l=()=>{window.gtag&&window.gtag("event","dropdown_toggle",{event_category:"Navigation",event_label:`${e} dropdown ${n?"close":"open"}`,dropdown_name:e,action:n?"close":"open",device_type:s?"mobile":"desktop"})},c=(u,h)=>{window.gtag&&window.gtag("event","dropdown_selection",{event_category:"Navigation",event_label:`${e} - ${u}`,dropdown_name:e,selection:u,destination:h,device_type:s?"mobile":"desktop"})},d=(u,h,m)=>{window.gtag&&window.gtag("event","submenu_selection",{event_category:"Navigation",event_label:`${e} - ${u} - ${h}`,dropdown_name:e,parent_menu:u,selection:h,destination:m,device_type:s?"mobile":"desktop"})};return s?r.jsxs("div",{children:[r.jsxs("button",{className:"flex items-center justify-between w-full py-2 text-white hover:text-trident-blue",onClick:()=>{i(!n),l()},children:[r.jsx("span",{children:e}),r.jsx("span",{children:n?"β΄":"βΎ"})]}),n&&r.jsx("div",{className:"pl-4 mt-2 border-l border-trident-gray/30",children:t.map(u=>{const h=o&&u.name==="Utah";return r.jsxs("div",{children:[r.jsx(te,{to:u.path,className:"block py-2 text-white hover:text-trident-blue",onClick:()=>{c(u.name,u.path),a&&a()},children:u.name}),h&&r.jsx("div",{className:"pl-4 mt-1 mb-3 border-l border-trident-gray/20",children:M2.map(m=>r.jsx(te,{to:m.path,className:"block py-1 text-sm text-white hover:text-trident-blue",onClick:()=>{d(u.name,m.name,m.path),a&&a()},children:m.name},m.path))})]},u.path)})})]}):r.jsxs("div",{className:"relative group",children:[r.jsxs("button",{className:"nav-link text-white flex items-center",onClick:()=>{i(!n),l()},"aria-expanded":n,children:[e," ",r.jsx("span",{className:"ml-1",children:"βΎ"})]}),r.jsx("div",{className:"absolute left-0 w-64 pt-2 group-hover:block hidden z-20",children:r.jsx("div",{className:"rounded-md shadow-lg bg-trident-black",children:r.jsx("div",{className:"py-1",children:t.map(u=>{const h=o&&u.name==="Utah";return r.jsxs("div",{children:[r.jsx(te,{to:u.path,className:"block px-4 py-2 text-sm text-white hover:bg-trident-blue transition-colors",onClick:()=>c(u.name,u.path),children:u.name}),h&&r.jsx("div",{className:"relative",children:r.jsx("div",{className:"absolute left-full top-0 w-64 ml-0.5 rounded-md shadow-lg bg-trident-black",children:r.jsx("div",{className:"py-1",children:M2.map(m=>r.jsx(te,{to:m.path,className:"block px-4 py-2 text-sm text-white hover:bg-trident-blue transition-colors",onClick:()=>d(u.name,m.name,m.path),children:m.name},m.path))})})})]},u.path)})})})})]})},Pg="+13855032939",Dc="(385) 503-2939",Ub="+13855032939",gu="(385) 503-2939",vee=()=>`tel:${Pg}`,xee=()=>`sms:${Ub}`,Qi="ghl-number-swap",yee=({servicesOpen:e,setServicesOpen:t,locationsOpen:n,setLocationsOpen:i,isScrolled:s=!1})=>r.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[r.jsx(ol,{to:"/",children:"Home"}),r.jsx(ol,{to:"/about",children:"About"}),r.jsx(Ny,{title:"Services",items:Q$,isOpen:e,setIsOpen:t}),r.jsx(Ny,{title:"Locations",items:J$,isOpen:n,setIsOpen:i,showSubMenu:!0}),r.jsx(ol,{to:"/blog",children:"Blog"}),r.jsx(ol,{to:"/licensing-information",children:"Licensing"}),r.jsxs("div",{className:je("flex items-center gap-2 transition-all duration-300",s?"opacity-100":"opacity-0 pointer-events-none"),children:[r.jsxs("a",{href:`tel:${Pg}`,"aria-label":`Call ${Dc}`,className:`inline-flex items-center justify-center gap-1 bg-trident-gold text-trident-black font-medium py-1 px-3 rounded-full text-sm hover:opacity-90 transition-colors ${Qi}`,onClick:()=>{window.gtag&&window.gtag("event","header_contact_click",{event_category:"Navigation",event_label:"call_compact",value:1})},children:[r.jsx(fn,{className:"w-4 h-4"}),r.jsx("span",{children:"Call"})]}),r.jsxs("a",{href:`sms:${Ub}`,"aria-label":`Text ${gu}`,className:"inline-flex items-center justify-center gap-1 bg-trident-blue text-white font-medium py-1 px-3 rounded-full text-sm hover:opacity-90 transition-colors",onClick:()=>{window.gtag&&window.gtag("event","header_contact_click",{event_category:"Navigation",event_label:"text_compact",value:1})},children:[r.jsx(Bl,{className:"w-4 h-4"}),r.jsx("span",{children:"Text"})]})]}),r.jsx(te,{to:"/contact",className:"btn-primary",children:"Contact Us"})]}),bee=({isMenuOpen:e,servicesOpen:t,setServicesOpen:n,locationsOpen:i,setLocationsOpen:s,toggleMenu:a})=>e?r.jsx("div",{className:"lg:hidden bg-trident-black",children:r.jsxs("div",{className:"px-4 pt-2 pb-4 space-y-3",children:[r.jsx(ol,{to:"/",className:"block py-2 text-white hover:text-trident-blue",onClick:a,children:"Home"}),r.jsx(ol,{to:"/about",className:"block py-2 text-white hover:text-trident-blue",onClick:a,children:"About"}),r.jsx(Ny,{title:"Services",items:Q$,isOpen:t,setIsOpen:n,isMobile:!0,onMobileItemClick:a}),r.jsx(Ny,{title:"Locations",items:J$,isOpen:i,setIsOpen:s,isMobile:!0,onMobileItemClick:a,showSubMenu:!0}),r.jsx(ol,{to:"/blog",className:"block py-2 text-white hover:text-trident-blue",onClick:a,children:"Blog"}),r.jsx(ol,{to:"/licensing-information",className:"block py-2 text-white hover:text-trident-blue",onClick:a,children:"Licensing"}),r.jsx(te,{to:"/contact",className:"block py-2 mt-4 text-center btn-primary",onClick:a,children:"Contact Us"})]})}):null,Xe=()=>{const[e,t]=j.useState(!1),[n,i]=j.useState(!1),[s,a]=j.useState(!1),[o,l]=j.useState(!1),c=()=>{const m=e?"close":"open";window.gtag&&window.gtag("event","mobile_menu",{event_category:"Navigation",event_label:`Mobile menu ${m}`,action:m})};j.useEffect(()=>{const m=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]);const d=()=>{t(!e),c(),e||(a(!1),l(!1))},u=je("sticky w-full top-0 z-50 transition-all duration-300",n?"bg-trident-black shadow-md":"hero-gradient"),h=()=>{window.gtag&&window.gtag("event","logo_click",{event_category:"Navigation",event_label:"Header logo click",value:1})};return r.jsxs(r.Fragment,{children:[r.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-[100] bg-trident-blue text-white px-4 py-2 rounded-md focus:outline-none focus:ring-2 focus:ring-white",children:"Skip to main content"}),r.jsxs("nav",{className:u,role:"navigation","aria-label":"Main navigation",children:[r.jsx("div",{className:je("hidden md:block text-sm transition-all duration-300 overflow-hidden",n?"max-h-0 py-0 opacity-0":"max-h-24 py-3 opacity-100"),children:r.jsx("div",{className:"container-custom flex items-center justify-center",children:r.jsx("div",{className:"rounded-full bg-trident-black/80 backdrop-blur supports-[backdrop-filter]:bg-trident-black/60 px-2 py-2 shadow-md border border-white/10",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("a",{href:`tel:${Pg}`,"aria-label":`Call ${Dc}`,className:`inline-flex items-center justify-center gap-2 bg-trident-gold text-trident-black font-semibold py-2 px-4 rounded-full hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-trident-gold focus-visible:ring-offset-2 ring-offset-background transition-colors ${Qi}`,onClick:()=>{window.gtag&&window.gtag("event","header_contact_click",{event_category:"Navigation",event_label:"call",value:1})},children:[r.jsx(fn,{className:"w-4 h-4"}),r.jsx("span",{children:"Call"})]}),r.jsxs("a",{href:`sms:${Ub}`,"aria-label":`Text ${gu}`,className:"inline-flex items-center justify-center gap-2 bg-trident-blue text-white font-semibold py-2 px-4 rounded-full hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-trident-blue focus-visible:ring-offset-2 ring-offset-background transition-colors",onClick:()=>{window.gtag&&window.gtag("event","header_contact_click",{event_category:"Navigation",event_label:"text",value:1})},children:[r.jsx(Bl,{className:"w-4 h-4"}),r.jsx("span",{children:"Text"})]})]})})})}),r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"flex justify-between items-center h-16 lg:h-20",children:[r.jsx(te,{to:"/",className:"flex items-center text-white font-bold text-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-trident-black rounded-sm","aria-label":"Trident Private Investigations - Home",onClick:h,children:r.jsx("img",{src:"/logo/Trident Investigations Logo.jpg",alt:"Trident Private Investigations",className:"h-10 w-auto",width:180,height:40})}),r.jsx(yee,{servicesOpen:s,setServicesOpen:a,locationsOpen:o,setLocationsOpen:l,isScrolled:n}),r.jsx("button",{className:"lg:hidden p-2 text-white hover:text-trident-gold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-trident-black rounded-md",onClick:d,"aria-expanded":e,"aria-controls":"mobile-menu","aria-label":e?"Close menu":"Open menu",children:e?r.jsx(pa,{size:28}):r.jsx(UK,{size:28})})]})}),r.jsx(bee,{isMenuOpen:e,toggleMenu:d,servicesOpen:s,setServicesOpen:a,locationsOpen:o,setLocationsOpen:l})]})]})},jm=({href:e,platform:t,eventLabel:n,children:i,className:s="",brandColor:a})=>r.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:`group flex items-center justify-center w-12 h-12 rounded-full bg-white hover:bg-gray-50 border border-gray-200 hover:border-gray-300 text-white hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg ${s}`,style:{backgroundColor:a,borderColor:a},onClick:()=>{window.gtag&&window.gtag("event","social_link_click",{social_platform:t,event_category:"Social",event_label:n})},children:i}),wee=()=>r.jsxs("div",{children:[r.jsx("h4",{className:"text-lg font-semibold mb-4 text-white",children:"Connect With Us"}),r.jsx("p",{className:"text-white/80 mb-4 text-sm leading-relaxed",children:"Follow us for investigation tips, case studies, and industry insights."}),r.jsxs("div",{className:"flex space-x-3",children:[r.jsx(jm,{href:"https://www.facebook.com/tridentinvestigationsutah",platform:"Facebook",eventLabel:"Facebook Follow",brandColor:"#1877f2",children:r.jsx(EK,{size:20})}),r.jsx(jm,{href:"https://x.com/TridentSpy",platform:"X",eventLabel:"X Follow",brandColor:"#000000",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),r.jsx(jm,{href:"https://www.linkedin.com/company/tridentinvestigations/",platform:"LinkedIn",eventLabel:"LinkedIn Follow",brandColor:"#0077b5",children:r.jsx(LK,{size:20})}),r.jsx(jm,{href:"https://www.youtube.com/@tridentinvestigations",platform:"YouTube",eventLabel:"YouTube Follow",brandColor:"#ff0000",children:r.jsx(QK,{size:20})}),r.jsx(jm,{href:"https://www.tiktok.com/@tridentinvestigations",platform:"TikTok",eventLabel:"TikTok Follow",brandColor:"#000000",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M19.321 5.562a5.124 5.124 0 0 1-.443-.258 6.228 6.228 0 0 1-1.137-.966c-.849-.849-1.167-1.924-1.167-2.847C16.574.826 16.574.826 16.574 0h-3.848v16.235c0 1.664-1.347 3.011-3.011 3.011s-3.011-1.347-3.011-3.011 1.347-3.011 3.011-3.011c.332 0 .65.054.947.153V9.485a6.972 6.972 0 0 0-.947-.066c-3.85 0-6.973 3.123-6.973 6.973s3.123 6.973 6.973 6.973 6.973-3.123 6.973-6.973V7.542c1.264.8 2.739 1.225 4.253 1.225v-3.84c-.491 0-.968-.067-1.419-.197z"})})})]})]}),jee=()=>r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-gold",children:"Trident Investigations"}),r.jsx("p",{className:"text-white/80 mb-4",children:"Professional private investigators serving Utah, Idaho, and Wyoming with confidential, effective investigative services."}),r.jsx(wee,{})]}),Nee=()=>r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-gold",children:"Quick Links"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{children:r.jsx(te,{to:"/",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Home"})}),r.jsx("li",{children:r.jsx(te,{to:"/about",className:"text-white/80 hover:text-trident-gold transition-colors",children:"About Us"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/domestic",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Services"})}),r.jsx("li",{children:r.jsx(te,{to:"/blog",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Blog"})}),r.jsx("li",{children:r.jsx(te,{to:"/contact",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Contact"})})]})]}),See=()=>r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-gold",children:"Services"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{children:r.jsx(te,{to:"/services/domestic",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Domestic Investigations"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/corporate",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Corporate Investigations"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/insurance",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Insurance Investigations"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/criminal",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Criminal Investigations"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/law-firms",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Investigations for Law Firms"})}),r.jsx("li",{children:r.jsx(te,{to:"/services/asset-searches",className:"text-white/80 hover:text-trident-gold transition-colors",children:"Asset Searches"})})]})]});class kee{constructor(){dv(this,"sessionId");dv(this,"pageVisitTime");dv(this,"contactActions",[]);this.sessionId=this.generateSessionId(),this.pageVisitTime=Date.now(),this.loadSessionData(),this.trackPageVisit()}generateSessionId(){return`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}loadSessionData(){const t=sessionStorage.getItem("conversionTracker");if(t)try{const n=JSON.parse(t);this.sessionId=n.sessionId,this.pageVisitTime=n.pageVisitTime,this.contactActions=n.contactActions||[]}catch(n){console.warn("Failed to load conversion tracking data:",n)}}saveSessionData(){const t={sessionId:this.sessionId,pageVisitTime:this.pageVisitTime,contactActions:this.contactActions,firstContactMethod:this.getFirstContactMethod(),lastContactMethod:this.getLastContactMethod(),methodSwitches:this.getMethodSwitches(),timeToFirstContact:this.getTimeToFirstContact(),timeToLastContact:this.getTimeToLastContact()};sessionStorage.setItem("conversionTracker",JSON.stringify(t))}trackPageVisit(){const t=this.getOptOutStatus();window.gtag&&!t&&window.gtag("event","page_visit_start",{event_category:"Conversion Tracking",event_label:"Session Start",session_id:this.sessionId,page_path:window.location.pathname})}getOptOutStatus(){try{return localStorage.getItem("trident_do_not_share")==="1"}catch{return!1}}trackContactAction(t,n){const i={method:t,timestamp:Date.now(),label:n};this.contactActions.push(i),this.saveSessionData();const s=i.timestamp-this.pageVisitTime,a=this.contactActions.length===1,o=this.contactActions.length>1?this.contactActions[this.contactActions.length-2].method:null,l=this.getOptOutStatus();window.gtag&&!l&&(window.gtag("event","contact_action",{event_category:"Conversion Tracking",event_label:`${t}${n?` - ${n}`:""}`,contact_method:t,session_id:this.sessionId,is_first_contact:a,time_from_page_visit:Math.round(s/1e3),contact_sequence_number:this.contactActions.length,previous_method:o,total_methods_used:this.getUniqueMethods().length}),!a&&o!==t&&window.gtag("event","contact_method_switch",{event_category:"Conversion Tracking",event_label:`${o} to ${t}`,from_method:o,to_method:t,session_id:this.sessionId,switch_number:this.getMethodSwitches()}),a&&window.gtag("event","first_contact_made",{event_category:"Conversion",event_label:t,contact_method:t,time_to_contact:Math.round(s/1e3),session_id:this.sessionId})),console.log("Contact action tracked:",{method:t,label:n,timeFromPageVisit:Math.round(s/1e3),isFirstContact:a,totalActions:this.contactActions.length})}trackConsultationBooked(t,n){const i=this.getOptOutStatus();window.gtag&&!i&&window.gtag("event","consultation_booked",{event_category:"Conversion",event_label:`${t}${n?` - ${n}`:""}`,contact_method:t,session_id:this.sessionId,first_contact_method:this.getFirstContactMethod(),total_contact_methods:this.getUniqueMethods().length,time_from_first_contact:this.getTimeFromFirstContact(),value:1}),console.log("Consultation booked:",{method:t,consultationType:n,firstContactMethod:this.getFirstContactMethod(),totalMethods:this.getUniqueMethods().length})}getFirstContactMethod(){var t;return(t=this.contactActions[0])==null?void 0:t.method}getLastContactMethod(){var t;return(t=this.contactActions[this.contactActions.length-1])==null?void 0:t.method}getUniqueMethods(){return[...new Set(this.contactActions.map(t=>t.method))]}getMethodSwitches(){let t=0;for(let n=1;n<this.contactActions.length;n++)this.contactActions[n].method!==this.contactActions[n-1].method&&t++;return t}getTimeToFirstContact(){if(this.contactActions.length!==0)return this.contactActions[0].timestamp-this.pageVisitTime}getTimeToLastContact(){if(this.contactActions.length!==0)return this.contactActions[this.contactActions.length-1].timestamp-this.pageVisitTime}getTimeFromFirstContact(){if(this.contactActions.length!==0)return Date.now()-this.contactActions[0].timestamp}getSessionSummary(){return{sessionId:this.sessionId,pageVisitTime:this.pageVisitTime,contactActions:this.contactActions,firstContactMethod:this.getFirstContactMethod(),lastContactMethod:this.getLastContactMethod(),methodSwitches:this.getMethodSwitches(),timeToFirstContact:this.getTimeToFirstContact(),timeToLastContact:this.getTimeToLastContact()}}}let Jj;const Z$=()=>(Jj||(Jj=new kee),Jj),wl=(e,t)=>{Z$().trackContactAction(e,t)},Cee=(e,t)=>{Z$().trackConsultationBooked(e,t)},_ee=()=>{const e=()=>{wl("phone","Footer")},t=()=>{wl("email","Footer")},n=()=>{wl("schedule","Footer Button")};return r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-gold",children:"Contact Us"}),r.jsxs("ul",{className:"space-y-4",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx(fn,{size:22,className:"mr-3 text-trident-gold"}),r.jsx("span",{className:"text-white/80",children:r.jsx("a",{href:`tel:${Pg}`,className:`text-trident-gold hover:text-white transition-colors font-semibold ${Qi}`,onClick:e,children:Dc})})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(xr,{size:22,className:"mr-3 text-trident-gold"}),r.jsx("span",{className:"text-white/80",children:r.jsx("a",{href:"mailto:info@tridentpi.net",className:"text-trident-gold hover:text-white transition-colors font-semibold",onClick:t,children:"info@tridentpi.net"})})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{size:22,className:"mr-3 text-trident-gold"}),r.jsxs("span",{className:"text-white/80",children:["Offices in Salt Lake County",r.jsx("br",{}),"and Utah County"]})]})]}),r.jsx(te,{to:"/contact",className:"inline-flex items-center gap-2 mt-6 text-trident-gold hover:text-white transition-colors font-medium underline underline-offset-4",onClick:n,"aria-label":"Schedule a consultation",children:"Schedule a Consultation"})]})},Tee=()=>{const e=new Date().getFullYear();return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"bg-trident-black px-6 py-4 rounded-lg mb-6",children:r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("p",{className:"text-white font-semibold",children:"Utah Private Investigation License #G105645 | Licensed by Utah Bureau of Criminal Identification"}),r.jsx("p",{className:"text-white/80",children:"Bonded & Insured | Professional Investigation Services"}),r.jsx("p",{className:"text-white/80 text-sm",children:"Trident Private Investigations | 770 E Main St, Suite 126, Lehi, UT 84043"}),r.jsx("p",{className:"text-white/80 text-sm",children:"Licensed in Utah | All investigations conducted in full legal compliance"})]})}),r.jsxs("div",{className:"border-t border-trident-gray/20 pt-6 text-sm text-white/80 flex flex-col md:flex-row justify-between",children:[r.jsxs("p",{children:["Β© ",e," Trident Investigations. All rights reserved."]}),r.jsxs("div",{className:"mt-2 md:mt-0 space-x-4",children:[r.jsx(te,{to:"/privacy-policy",className:"text-trident-orange hover:text-white transition-colors",children:"Privacy Policy"}),r.jsx(te,{to:"/terms",className:"text-trident-orange hover:text-white transition-colors",children:"Terms of Service"}),r.jsx(te,{to:"/licensing-information",className:"text-trident-orange hover:text-white transition-colors",children:"Licensing Information"})]})]})]})},Pee=()=>r.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 md:hidden",children:r.jsx("div",{className:"mx-4 mb-4 rounded-full shadow-lg bg-trident-black/90 backdrop-blur supports-[backdrop-filter]:bg-trident-black/70",children:r.jsxs("div",{className:"flex items-center gap-2 p-2",children:[r.jsxs("a",{href:`tel:${Pg}`,className:`flex-1 inline-flex items-center justify-center gap-2 bg-trident-gold text-trident-black font-semibold py-2 px-3 rounded-full ${Qi}`,"aria-label":`Call ${Dc}`,children:[r.jsx(fn,{className:"w-4 h-4"}),"Call"]}),r.jsxs("a",{href:`sms:${Ub}`,className:"flex-1 inline-flex items-center justify-center gap-2 bg-trident-blue text-white font-semibold py-2 px-3 rounded-full","aria-label":`Text ${gu}`,children:[r.jsx(Bl,{className:"w-4 h-4"}),"Text"]})]})})}),Qe=()=>r.jsxs("footer",{className:"bg-trident-black text-white",children:[r.jsxs("div",{className:"container-custom py-12 pb-20 md:pb-12",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[r.jsx(jee,{}),r.jsx(Nee,{}),r.jsx(See,{}),r.jsx(_ee,{})]}),r.jsx(Tee,{})]}),r.jsx(Pee,{})]}),tr=({title:e="Need a Professional Investigation?",subtitle:t="Our team of experienced investigators is ready to help with your case.",description:n,buttonText:i="Schedule a Free Consultation",buttonLink:s="/contact",className:a=""})=>{const o=n||t;return r.jsx("section",{className:`bg-gradient-to-r from-trident-black to-trident-blue py-16 ${a}`,children:r.jsxs("div",{className:"container-custom text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:e}),r.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:o}),r.jsx(te,{to:s,className:"btn-primary text-lg px-8 py-3",children:i})]})})},up=kg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gradient-to-r from-trident-orange to-orange-700 text-white hover:from-trident-orange/90 hover:to-orange-700/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-gradient-to-r from-trident-orange to-orange-700 text-white hover:from-trident-orange/80 hover:to-orange-700/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-trident-orange underline-offset-4 hover:underline",gold:"bg-trident-gold text-trident-black hover:bg-trident-gold/90 border border-trident-gold",goldOutline:"border-2 border-trident-gold text-trident-white bg-transparent hover:bg-trident-gold/20 focus-visible:ring-trident-gold"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=j.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...s},a)=>{const o=i?_l:"button";return r.jsx(o,{className:je(up({variant:t,size:n,className:e})),ref:a,...s})});V.displayName="Button";const Eee=()=>r.jsxs("section",{className:"relative hero-gradient text-white py-12 lg:py-16",children:[r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 items-center gap-8",children:[r.jsxs("div",{className:"order-2 lg:order-1 relative group",children:[r.jsxs("div",{className:"relative overflow-hidden rounded-2xl shadow-2xl bg-transparent",children:[r.jsx("img",{src:"/logo/trident-hero-optimized.jpg",alt:"Trident Investigations - Professional Private Investigation Services in Utah",loading:"eager",fetchPriority:"high",decoding:"async",className:"w-full h-[400px] lg:h-[600px] object-contain transition-transform duration-700 group-hover:scale-105"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-trident-black/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),r.jsxs("div",{className:"absolute bottom-6 left-6 bg-trident-black/90 backdrop-blur-sm rounded-lg p-4 border border-trident-gold/20",children:[r.jsx("p",{className:"text-white font-semibold text-sm",children:"Professional Investigation Services"}),r.jsx("p",{className:"text-trident-gold text-xs",children:"Utah β’ Idaho β’ Wyoming"})]})]}),r.jsx("div",{className:"absolute -top-4 -right-4 w-24 h-24 bg-trident-gold/20 rounded-full blur-xl"}),r.jsx("div",{className:"absolute -bottom-4 -left-4 w-32 h-32 bg-trident-blue/20 rounded-full blur-xl"})]}),r.jsx("div",{className:"order-1 lg:order-2 relative z-10 bg-trident-black/50 backdrop-blur-sm rounded-xl p-8 lg:p-12 border border-trident-gold/10",children:r.jsxs("div",{className:"animate-fade-up",children:[r.jsx("div",{className:"mb-6",children:r.jsx("span",{className:"inline-block px-4 py-2 bg-trident-gold text-white text-sm font-bold rounded-full uppercase tracking-wide mb-4",children:"Professional Investigators"})}),r.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:"Utah Private Investigator & Detective Services"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 leading-relaxed text-gray-200",children:"Trident Investigations is a full-service private investigator agency providing professional surveillance, infidelity investigations, background checks, and more throughout Utah."}),r.jsxs("div",{className:"flex flex-col sm:flex-row justify-start gap-4 mb-8",children:[r.jsx(V,{asChild:!0,variant:"gold",size:"lg",children:r.jsx(te,{to:"/contact",children:"Schedule a Call"})}),r.jsx(V,{asChild:!0,variant:"goldOutline",size:"lg",children:r.jsx(te,{to:"/contact",children:"Request a Consultation"})})]}),r.jsxs("div",{className:"flex items-center gap-6 text-sm text-trident-light",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-trident-gold rounded-full animate-pulse"}),r.jsx("span",{children:"Licensed & Insured"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-trident-gold rounded-full animate-pulse"}),r.jsx("span",{children:"We work 24/7"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-trident-gold rounded-full animate-pulse"}),r.jsx("span",{children:"Confidential"})]})]})]})})]})}),r.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 animate-bounce",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-trident-gold",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})})]}),Aee=({title:e,description:t,link:n,className:i=""})=>{const s=()=>{window.gtag&&window.gtag("event","service_selection",{event_category:"Service",event_label:e,service_type:e,service_path:n})};return r.jsxs("div",{className:`bg-white p-6 rounded-lg shadow-md transition-all duration-300 hover:shadow-xl hover:translate-y-[-5px] ${i}`,children:[r.jsx("h3",{className:"heading-secondary text-xl mb-3",children:e}),r.jsx("p",{className:"body-primary mb-4",children:t}),r.jsxs(te,{to:n,className:"inline-flex items-center font-semibold text-trident-gold hover:underline",onClick:s,children:["Learn More",r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})},Oee=({services:e})=>(j.useEffect(()=>{const t=new IntersectionObserver(i=>{i.forEach(s=>{s.isIntersecting&&(window.gtag&&window.gtag("event","services_section_view",{event_category:"Content",event_label:"Home Services Section View",non_interaction:!0}),t.disconnect())})},{threshold:.2}),n=document.getElementById("services-section");return n&&t.observe(n),()=>{t.disconnect()}},[]),j.useEffect(()=>{if(window.gtag&&e.length>0){const t=e.map((n,i)=>({item_id:n.link,item_name:n.title,item_list_name:"Home Page Services",item_list_id:"home_services",index:i+1}));window.gtag("event","view_item_list",{event_category:"Ecommerce",event_label:"Service Impressions",items:t})}},[e]),r.jsx("section",{id:"services-section",className:"section bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"heading-primary text-3xl md:text-4xl mb-4",children:"Our Investigative Services"}),r.jsx("p",{className:"body-primary text-lg max-w-2xl mx-auto",children:"Professional investigation services tailored to meet your specific needs with discretion and expertise."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>r.jsx(Aee,{title:t.title,description:t.description,link:t.link,className:"h-full"},n))})]})})),ef=({className:e,size:t=24,...n})=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 768 768",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,...n,children:r.jsx("path",{d:"M 518.00,865.50 515.00,865.50 512.00,865.50 509.00,865.50 506.00,865.50 503.50,865.00 501.00,864.50 498.50,864.00 496.00,863.50 494.00,862.50 491.50,862.00 490.00,860.50 488.00,859.50 486.00,858.50 484.50,857.00 483.00,855.50 481.50,854.00 480.50,852.00 479.50,850.00 478.50,848.00 477.50,846.00 476.50,844.00 476.50,841.00 475.50,839.00 475.50,836.00 475.50,833.00 475.50,830.00 475.50,827.00 475.50,824.00 475.50,821.00 475.50,818.00 475.50,815.00 475.50,812.00 475.50,809.00 475.50,806.00 475.50,803.00 475.50,800.00 475.50,797.00 475.50,794.00 475.50,791.00 475.50,788.00 475.50,785.00 475.50,782.00 475.50,779.00 475.50,776.00 475.50,773.00 475.50,770.00 475.50,767.00 475.50,764.00 475.50,761.00 475.50,758.00 475.50,755.00 475.50,752.00 475.50,749.00 476.00,746.50 476.50,744.00 477.50,742.00 478.50,740.00 479.50,738.00 481.00,736.50 482.50,735.00 484.00,733.50 486.00,732.50 488.00,731.50 490.00,730.50 489.00,729.50 489.00,727.50 490.50,728.00 490.50,725.00 490.50,722.00 490.50,719.00 490.50,716.00 490.50,713.00 490.50,710.00 490.50,707.00 490.50,704.00 490.50,701.00 491.50,699.00 491.50,696.00 490.50,694.00 491.50,692.00 491.50,689.00 491.50,686.00 491.50,683.00 491.50,680.00 491.50,677.00 491.50,674.00 491.50,671.00 491.50,668.00 491.50,665.00 491.50,662.00 491.50,659.00 491.50,656.00 491.50,653.00 491.50,650.00 491.50,647.00 491.50,644.00 491.50,641.00 491.50,638.00 491.50,635.00 491.50,632.00 491.50,629.00 491.50,626.00 491.50,623.00 491.50,620.00 491.50,617.00 491.50,614.00 491.50,611.00 491.50,608.00 491.50,605.00 491.50,602.00 491.50,599.00 491.50,596.00 491.50,593.00 491.50,590.00 490.50,588.00 490.50,585.00 490.50,582.00 490.50,579.00 490.50,576.00 490.50,573.00 490.50,570.00 490.50,567.00 490.50,564.00 490.50,561.00 490.50,558.00 490.50,555.00 490.50,552.00 490.50,549.00 489.50,547.00 488.00,545.50 486.00,544.50 484.00,543.50 482.00,542.50 480.00,541.50 478.00,540.50 476.00,539.50 474.00,538.50 471.50,538.00 469.00,537.50 467.00,536.50 465.00,535.50 463.00,534.50 460.50,534.00 458.00,533.50 456.00,532.50 454.00,531.50 452.00,530.50 449.50,530.00 447.00,529.50 445.00,528.50 443.00,527.50 440.50,527.00 438.00,526.50 436.00,525.50 433.50,525.00 431.50,524.00 429.00,523.50 427.00,522.50 425.00,521.50 422.50,521.00 420.00,520.50 418.00,519.50 416.00,518.50 413.00,518.50 411.00,517.50 409.00,516.50 406.50,516.00 404.00,515.50 402.00,514.50 400.00,513.50 397.50,513.00 395.00,512.50 393.00,511.50 391.00,510.50 388.50,510.00 386.00,509.50 384.00,508.50 382.00,507.50 380.00,506.50 377.50,506.00 375.50,505.00 373.00,504.50 371.00,503.50 369.00,502.50 367.00,501.50 365.00,500.50 363.50,499.00 361.50,498.00 360.00,496.50 358.00,495.50 356.00,494.50 354.50,493.00 353.00,491.50 351.50,490.00 350.50,488.00 349.00,486.50 347.50,485.00 346.50,483.00 345.50,481.00 344.50,479.00 343.50,477.00 342.50,475.00 341.50,473.00 341.50,470.00 340.50,468.00 340.50,465.00 340.00,462.50 339.50,460.00 339.50,457.00 339.50,454.00 339.50,451.00 340.50,449.00 340.50,446.00 340.50,443.00 341.50,441.00 341.50,438.00 341.50,435.00 342.50,433.00 342.50,430.00 343.50,428.00 343.50,425.00 344.50,423.00 344.50,420.00 345.50,418.00 345.50,415.00 346.50,413.00 346.50,410.00 347.50,408.00 347.50,405.00 348.00,402.50 348.50,400.00 349.00,397.50 349.50,395.00 349.50,392.00 350.50,390.00 350.50,387.00 351.50,385.00 351.50,382.00 351.50,379.00 352.50,377.00 352.50,374.00 353.00,371.50 353.50,369.00 353.50,366.00 353.50,363.00 354.00,360.50 353.50,359.00 354.50,357.00 354.50,354.00 354.50,351.00 354.50,348.00 354.50,345.00 354.50,342.00 354.50,339.00 354.50,336.00 355.00,334.50 354.50,332.00 354.50,329.00 354.50,326.00 354.50,323.00 354.50,320.00 354.50,317.00 353.50,315.00 353.50,312.00 353.50,309.00 353.00,306.50 352.50,304.00 352.50,301.00 351.50,299.00 351.50,296.00 351.00,293.50 350.50,291.00 350.00,288.50 349.50,286.00 349.00,283.50 348.50,281.00 347.50,279.00 347.50,276.00 346.50,274.00 346.00,271.50 345.50,269.00 344.50,267.00 344.00,264.50 343.50,262.00 342.50,260.00 341.50,258.00 341.00,255.50 340.50,253.00 339.50,251.00 338.50,249.00 337.50,247.00 337.00,244.50 336.00,242.50 335.50,240.00 334.50,238.00 333.50,236.00 332.50,234.00 331.50,232.00 330.50,230.00 329.50,228.00 328.50,226.00 327.50,224.00 326.50,222.00 325.50,220.00 324.00,218.50 323.00,216.50 322.00,214.50 320.50,213.00 319.50,211.00 318.50,209.00 320.00,207.50 323.00,207.50 325.50,208.00 324.00,209.50 322.00,208.50 322.50,210.00 324.50,211.00 326.50,212.00 328.00,213.50 330.00,214.50 332.00,215.50 334.00,216.50 335.50,218.00 337.50,219.00 339.00,220.50 341.00,221.50 342.50,223.00 344.00,224.50 346.00,225.50 347.50,227.00 349.00,228.50 351.00,229.50 352.50,231.00 354.00,232.50 356.00,233.50 357.50,235.00 359.00,236.50 360.50,238.00 362.00,239.50 363.50,241.00 365.00,242.50 366.50,244.00 368.00,245.50 369.50,247.00 370.50,249.00 372.00,250.50 373.50,252.00 375.00,253.50 376.50,255.00 377.50,257.00 379.00,258.50 380.50,260.00 381.50,262.00 383.00,263.50 384.00,265.50 385.50,267.00 386.50,269.00 388.00,270.50 389.00,272.50 390.50,274.00 391.50,276.00 392.50,278.00 393.50,280.00 395.00,281.50 396.00,283.50 397.00,285.50 398.00,287.50 399.00,289.50 400.50,291.00 401.50,293.00 402.50,295.00 403.50,297.00 404.50,299.00 405.50,301.00 406.50,303.00 407.00,305.50 408.00,307.50 409.00,309.50 410.00,311.50 411.00,313.50 411.50,316.00 412.50,318.00 413.50,320.00 411.50,320.00 409.50,319.00 408.00,317.50 405.50,317.00 403.50,316.00 401.50,315.00 399.00,314.50 397.00,313.50 395.00,312.50 393.00,311.50 390.50,312.00 390.50,315.00 390.50,318.00 391.00,320.50 391.50,323.00 391.50,326.00 391.50,329.00 391.50,332.00 391.50,335.00 391.50,338.00 392.00,339.50 392.00,341.50 391.50,343.00 392.50,345.00 392.00,347.50 392.50,349.00 391.50,351.00 391.50,354.00 391.50,357.00 391.50,360.00 391.50,363.00 391.50,366.00 390.50,368.00 390.50,371.00 390.50,374.00 390.50,377.00 389.50,379.00 389.50,382.00 389.50,385.00 388.50,387.00 388.50,390.00 388.50,393.00 387.50,395.00 387.50,398.00 387.00,400.50 386.50,403.00 386.50,406.00 386.00,408.50 385.50,411.00 385.50,414.00 384.50,416.00 384.50,419.00 384.00,421.50 383.50,424.00 383.50,427.00 382.50,429.00 382.50,432.00 381.50,434.00 381.50,437.00 381.50,440.00 380.50,442.00 380.50,445.00 380.50,448.00 380.50,451.00 380.50,454.00 381.50,456.00 382.50,458.00 384.00,459.50 385.50,461.00 387.00,462.50 389.00,463.50 390.50,465.00 392.50,466.00 395.00,466.50 397.00,467.50 399.00,468.50 401.00,469.50 403.50,470.00 406.00,470.50 408.00,471.50 410.50,472.00 413.00,472.50 414.50,472.00 416.00,473.50 418.00,474.50 420.50,475.00 423.00,475.50 425.00,476.50 427.50,477.00 430.00,477.50 432.00,478.50 434.50,479.00 437.00,479.50 439.00,480.50 441.50,481.00 444.00,481.50 446.00,482.50 448.50,483.00 451.00,483.50 453.00,484.50 455.50,485.00 458.00,485.50 460.00,486.50 462.50,487.00 465.00,487.50 467.00,488.50 469.00,489.50 472.00,489.50 474.00,490.50 476.00,491.50 479.00,491.50 481.00,492.50 483.00,493.50 485.50,494.00 488.00,494.50 488.50,492.00 488.50,489.00 488.00,486.50 488.50,485.00 489.50,483.00 489.50,480.00 489.50,477.00 489.50,474.00 489.50,471.00 489.50,468.00 489.50,465.00 490.00,462.50 490.50,460.00 490.50,457.00 490.50,454.00 490.50,451.00 490.50,448.00 490.50,445.00 490.50,442.00 490.50,439.00 490.50,436.00 491.50,434.00 491.50,431.00 491.50,428.00 491.50,425.00 491.50,422.00 491.50,419.00 491.50,416.00 491.50,413.00 491.50,410.00 491.50,407.00 491.50,404.00 491.50,401.00 491.50,398.00 491.50,395.00 491.50,392.00 491.50,389.00 492.50,387.00 491.50,385.00 492.00,383.50 491.50,381.00 492.50,379.00 492.00,377.50 492.50,375.00 492.50,372.00 492.50,369.00 492.50,366.00 492.50,363.00 492.50,360.00 492.50,357.00 492.50,354.00 492.50,351.00 492.50,348.00 492.50,345.00 492.50,342.00 492.50,339.00 492.50,336.00 492.50,333.00 492.50,330.00 492.50,327.00 492.50,324.00 492.50,321.00 492.50,318.00 492.50,315.00 492.50,312.00 492.50,309.00 492.50,306.00 492.50,303.00 492.50,300.00 492.50,297.00 492.50,294.00 492.50,291.00 492.00,289.50 492.50,287.00 491.50,285.00 492.50,283.00 491.50,281.00 492.50,279.00 491.00,277.50 489.00,278.50 486.50,279.00 484.00,279.50 482.00,280.50 480.00,281.50 478.00,282.50 476.00,283.50 474.00,284.50 472.50,286.00 470.50,287.00 468.50,288.00 466.50,289.00 465.00,290.50 463.00,291.50 461.00,292.50 460.00,291.50 460.50,289.00 462.00,287.50 463.00,285.50 463.50,283.00 464.50,281.00 465.50,279.00 466.50,277.00 467.50,275.00 468.50,273.00 469.50,271.00 470.50,269.00 471.50,267.00 472.50,265.00 473.50,263.00 474.50,261.00 475.00,258.50 476.00,256.50 476.50,254.00 477.50,252.00 478.50,250.00 479.50,248.00 480.50,246.00 481.00,243.50 481.50,241.00 482.50,239.00 483.50,237.00 484.50,235.00 484.50,232.00 485.50,230.00 486.50,228.00 487.50,226.00 487.50,223.00 488.50,221.00 489.50,219.00 490.00,216.50 490.50,214.00 491.50,212.00 492.00,209.50 492.50,207.00 493.50,205.00 494.50,203.00 494.50,200.00 495.50,198.00 496.50,196.00 497.00,193.50 497.50,191.00 498.50,189.00 498.50,186.00 499.50,184.00 500.50,182.00 500.50,179.00 501.50,177.00 502.50,175.00 502.50,172.00 503.50,170.00 504.00,167.50 504.50,165.00 505.50,163.00 506.00,160.50 506.50,158.00 507.50,156.00 508.00,153.50 508.50,151.00 509.50,149.00 510.50,147.00 511.00,144.50 512.50,144.00 513.00,146.50 513.50,149.00 514.50,151.00 514.50,154.00 515.50,156.00 516.00,158.50 516.50,161.00 517.50,163.00 518.00,165.50 518.50,168.00 519.50,170.00 519.50,173.00 520.50,175.00 521.50,177.00 521.50,180.00 522.50,182.00 523.50,184.00 523.50,187.00 524.50,189.00 525.50,191.00 525.50,194.00 526.50,196.00 527.00,198.50 527.50,201.00 528.50,203.00 529.50,205.00 529.50,208.00 530.50,210.00 531.50,212.00 531.50,215.00 532.50,217.00 533.50,219.00 534.00,221.50 534.50,224.00 535.50,226.00 536.50,228.00 537.00,230.50 537.50,233.00 538.50,235.00 539.50,237.00 540.00,239.50 540.50,242.00 541.50,244.00 542.50,246.00 543.50,248.00 544.00,250.50 544.50,253.00 545.50,255.00 546.50,257.00 547.50,259.00 548.50,261.00 549.50,263.00 550.00,265.50 551.00,267.50 552.00,269.50 552.50,272.00 553.50,274.00 554.50,276.00 555.50,278.00 556.50,280.00 557.50,282.00 558.50,284.00 559.50,286.00 560.50,288.00 561.50,290.00 562.50,292.00 561.50,293.00 559.50,292.00 558.00,290.50 556.00,289.50 554.00,288.50 552.00,287.50 550.50,286.00 548.50,285.00 546.50,284.00 544.50,283.00 542.50,282.00 540.50,281.00 538.50,280.00 536.50,279.00 534.00,278.50 532.00,277.50 530.00,276.50 529.50,279.00 529.50,282.00 529.50,285.00 529.50,288.00 529.50,291.00 529.50,294.00 529.50,297.00 529.50,300.00 529.50,303.00 529.50,306.00 529.50,309.00 529.50,312.00 529.50,315.00 529.50,318.00 529.50,321.00 529.50,324.00 529.50,327.00 529.50,330.00 529.50,333.00 529.50,336.00 529.50,339.00 529.50,342.00 529.50,345.00 529.50,348.00 529.50,351.00 529.50,354.00 529.50,357.00 529.50,360.00 529.50,363.00 529.50,366.00 529.50,369.00 529.50,372.00 529.50,375.00 530.00,376.50 529.50,379.00 530.00,381.50 530.50,384.00 530.50,387.00 530.50,390.00 530.50,393.00 530.50,396.00 530.50,399.00 530.50,402.00 530.50,405.00 530.50,408.00 530.50,411.00 530.50,414.00 530.50,417.00 530.50,420.00 531.50,422.00 531.50,425.00 531.50,428.00 531.50,431.00 531.50,434.00 531.50,437.00 531.50,440.00 531.50,443.00 531.50,446.00 532.00,447.50 531.50,450.00 532.50,452.00 532.50,455.00 532.50,458.00 532.50,461.00 532.50,464.00 532.50,467.00 533.00,469.50 533.50,472.00 533.50,475.00 533.50,478.00 533.50,481.00 533.50,484.00 533.50,487.00 534.50,489.00 534.50,492.00 535.00,493.50 536.00,494.50 538.00,493.50 540.50,493.00 543.00,492.50 545.00,491.50 547.50,491.00 550.00,490.50 552.00,489.50 554.50,489.00 557.00,488.50 559.00,487.50 561.50,487.00 564.00,486.50 566.00,485.50 568.50,485.00 571.00,484.50 573.00,483.50 575.50,483.00 578.00,482.50 580.00,481.50 582.50,481.00 585.00,480.50 587.00,479.50 589.50,479.00 592.00,478.50 594.00,477.50 596.50,477.00 599.00,476.50 601.00,475.50 603.50,475.00 606.00,474.50 608.00,473.50 610.50,473.00 613.00,472.50 615.00,471.50 617.00,470.50 620.00,470.50 622.00,469.50 624.00,468.50 626.50,468.00 629.00,467.50 631.00,466.50 633.00,465.50 634.50,464.00 636.50,463.00 638.00,461.50 639.50,460.00 640.50,458.00 641.50,456.00 642.50,454.00 643.00,451.50 642.50,450.00 642.50,447.00 642.50,444.00 642.50,441.00 641.50,439.00 641.50,436.00 641.00,433.50 640.50,431.00 640.50,428.00 639.50,426.00 639.50,423.00 639.00,420.50 638.50,418.00 638.00,415.50 637.50,413.00 637.50,410.00 636.50,408.00 636.50,405.00 636.50,402.00 635.50,400.00 635.50,397.00 635.50,394.00 634.50,392.00 634.50,389.00 634.00,386.50 633.50,384.00 633.50,381.00 633.50,378.00 632.50,376.00 632.50,373.00 632.50,370.00 632.50,367.00 631.50,365.00 631.50,362.00 631.50,359.00 631.50,356.00 631.50,353.00 631.50,350.00 631.50,347.00 631.50,344.00 631.50,341.00 631.50,338.00 631.50,335.00 631.50,332.00 631.50,329.00 631.50,326.00 631.50,323.00 632.50,321.00 632.50,318.00 632.50,315.00 633.50,313.00 632.00,311.50 629.50,312.00 627.00,312.50 625.00,313.50 623.00,314.50 621.00,315.50 619.00,316.50 617.00,317.50 615.00,318.50 613.00,319.50 611.00,320.50 608.50,320.00 609.50,318.00 610.50,316.00 611.50,314.00 612.50,312.00 613.50,310.00 614.50,308.00 615.50,306.00 616.00,303.50 617.00,301.50 618.00,299.50 619.00,297.50 620.00,295.50 621.00,293.50 622.00,291.50 623.50,290.00 624.50,288.00 625.50,286.00 626.50,284.00 627.50,282.00 628.50,280.00 629.50,278.00 631.00,276.50 632.00,274.50 633.50,273.00 634.50,271.00 635.50,269.00 637.00,267.50 638.00,265.50 639.50,264.00 640.50,262.00 642.00,260.50 643.50,259.00 644.50,257.00 646.00,255.50 647.50,254.00 648.50,252.00 650.00,250.50 651.50,249.00 653.00,247.50 654.50,246.00 656.00,244.50 657.50,243.00 659.00,241.50 660.00,239.50 662.00,238.50 663.50,237.00 665.00,235.50 666.50,234.00 668.00,232.50 669.50,231.00 671.50,230.00 673.00,228.50 674.50,227.00 676.00,225.50 678.00,224.50 679.50,223.00 681.00,221.50 683.00,220.50 684.50,219.00 686.50,218.00 688.00,216.50 690.00,215.50 692.00,214.50 693.50,213.00 695.50,212.00 696.50,210.00 697.50,209.00 699.00,210.50 700.50,209.00 702.00,207.50 703.50,209.00 702.50,211.00 701.50,213.00 700.50,215.00 699.00,216.50 698.00,218.50 697.00,220.50 696.00,222.50 694.50,224.00 693.50,226.00 692.50,228.00 692.00,230.50 691.00,232.50 690.00,234.50 689.00,236.50 688.00,238.50 687.00,240.50 686.50,243.00 685.50,245.00 684.50,247.00 683.50,249.00 683.00,251.50 682.50,254.00 681.50,256.00 680.50,258.00 679.50,260.00 679.50,263.00 678.50,265.00 677.50,267.00 677.50,270.00 676.50,272.00 676.00,274.50 675.50,277.00 674.50,279.00 674.50,282.00 673.50,284.00 673.50,287.00 672.50,289.00 672.50,292.00 671.50,294.00 671.50,297.00 671.50,300.00 670.50,302.00 670.50,305.00 669.50,307.00 669.50,310.00 669.50,313.00 669.50,316.00 668.50,318.00 668.50,321.00 668.50,324.00 668.50,327.00 668.50,330.00 668.50,333.00 668.50,336.00 668.50,339.00 668.50,342.00 668.50,345.00 668.50,348.00 668.50,351.00 668.50,354.00 668.50,357.00 669.50,359.00 669.50,362.00 669.50,365.00 669.50,368.00 670.50,370.00 670.50,373.00 670.50,376.00 671.50,378.00 671.50,381.00 671.50,384.00 672.50,386.00 672.50,389.00 673.50,391.00 673.50,394.00 674.00,396.50 674.50,399.00 674.50,402.00 675.50,404.00 675.50,407.00 676.50,409.00 676.50,412.00 677.50,414.00 677.50,417.00 678.50,419.00 678.50,422.00 679.00,424.50 679.50,427.00 679.50,430.00 680.50,432.00 680.50,435.00 681.50,437.00 681.50,440.00 682.50,442.00 682.50,445.00 682.50,448.00 682.50,451.00 683.50,453.00 683.50,456.00 683.50,459.00 683.50,462.00 682.50,464.00 682.50,467.00 682.00,469.50 681.50,472.00 680.50,474.00 679.50,476.00 679.00,478.50 678.00,480.50 676.50,482.00 675.50,484.00 674.50,486.00 673.00,487.50 672.00,489.50 670.50,491.00 669.00,492.50 667.00,493.50 665.50,495.00 663.50,496.00 662.00,497.50 660.00,498.50 658.00,499.50 656.50,501.00 654.50,502.00 652.00,502.50 650.00,503.50 648.00,504.50 646.00,505.50 644.00,506.50 642.00,507.50 640.00,508.50 637.50,509.00 635.50,510.00 633.00,510.50 631.00,511.50 629.00,512.50 626.50,513.00 624.00,513.50 622.00,514.50 620.00,515.50 617.50,516.00 615.00,516.50 613.00,517.50 611.00,518.50 608.50,519.00 606.00,519.50 604.00,520.50 602.00,521.50 599.50,522.00 597.00,522.50 595.00,523.50 592.50,524.00 590.00,524.50 588.00,525.50 586.00,526.50 583.50,527.00 581.00,527.50 579.00,528.50 577.00,529.50 574.50,530.00 572.00,530.50 570.00,531.50 568.00,532.50 565.50,533.00 563.50,534.00 561.00,534.50 559.00,535.50 557.00,536.50 554.50,537.00 552.50,538.00 550.00,538.50 548.00,539.50 546.00,540.50 544.00,541.50 542.00,542.50 539.50,543.00 537.50,544.00 536.00,545.50 534.00,546.50 533.50,549.00 532.50,551.00 532.50,554.00 532.50,557.00 532.50,560.00 532.50,563.00 532.50,566.00 532.50,569.00 532.50,572.00 532.50,575.00 532.50,578.00 532.50,581.00 532.50,584.00 532.50,587.00 532.50,590.00 532.50,593.00 532.50,596.00 532.50,599.00 532.50,602.00 532.50,605.00 532.50,608.00 532.50,611.00 532.00,612.50 532.00,614.50 531.50,617.00 532.00,618.50 531.50,621.00 531.50,624.00 531.50,627.00 531.50,630.00 531.50,633.00 531.50,636.00 531.50,639.00 531.50,642.00 531.50,645.00 531.50,648.00 531.50,651.00 531.50,654.00 531.50,657.00 531.50,660.00 531.50,663.00 531.50,666.00 531.50,669.00 532.00,670.50 532.00,672.50 532.50,675.00 532.50,678.00 532.50,681.00 532.00,683.50 532.50,685.00 532.50,688.00 532.50,691.00 532.50,694.00 532.50,697.00 532.50,700.00 532.50,703.00 532.50,706.00 532.50,709.00 532.50,712.00 532.50,715.00 532.50,718.00 532.50,721.00 532.50,724.00 532.50,727.00 532.50,730.00 534.50,731.00 536.00,732.50 538.00,733.50 540.00,734.50 541.50,736.00 542.50,738.00 544.00,739.50 545.00,741.50 545.50,744.00 546.50,746.00 546.50,749.00 546.50,752.00 546.50,755.00 547.50,757.00 546.50,759.00 547.00,760.50 546.50,763.00 547.00,765.50 547.50,768.00 547.00,770.50 546.50,773.00 546.50,776.00 546.50,779.00 546.50,782.00 547.00,784.50 546.50,786.00 546.50,789.00 547.00,790.50 547.50,792.00 546.50,794.00 546.50,797.00 547.00,798.50 546.50,801.00 546.50,804.00 547.50,806.00 547.00,807.50 546.50,809.00 547.00,811.50 547.50,814.00 547.50,817.00 547.50,820.00 547.50,823.00 546.50,825.00 546.50,828.00 547.50,830.00 546.50,832.00 546.50,835.00 546.50,838.00 546.50,841.00 546.00,843.50 545.50,846.00 544.50,848.00 543.50,850.00 542.50,852.00 541.00,853.50 540.00,855.50 538.00,856.50 536.50,858.00 535.00,859.50 533.00,860.50 531.00,861.50 529.00,862.50 527.00,863.50 524.50,864.00 522.00,864.50 519.00,864.50",fill:"currentColor",transform:"rotate(90 510.92 430.88) translate(-126.92 -46.88)"})}),Iee=()=>r.jsx("section",{className:"section bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Why Choose Trident Investigations?"}),r.jsxs("ul",{className:"space-y-4",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 mr-3 text-trident-blue flex items-center mt-1",children:r.jsx(ef,{className:"h-7.5 w-7.5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Experienced Investigators"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our team includes former law enforcement professionals with decades of experience."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 mr-3 text-trident-blue flex items-center mt-1",children:r.jsx(ef,{className:"h-7.5 w-7.5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Complete Confidentiality"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We prioritize your privacy with secure communications and discreet operations."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 mr-3 text-trident-blue flex items-center mt-1",children:r.jsx(ef,{className:"h-7.5 w-7.5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We collect and document evidence that meets legal standards for court proceedings."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 mr-3 text-trident-blue flex items-center mt-1",children:r.jsx(ef,{className:"h-7.5 w-7.5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Latest Technology"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We utilize advanced surveillance equipment and investigative tools for optimal results."})]})]})]}),r.jsx(te,{to:"/about",className:"inline-block mt-6 btn-secondary",children:"Learn More About Us"})]}),r.jsx("div",{className:"bg-trident-black rounded-lg p-8",children:r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute -top-4 -left-4 h-12 w-12 bg-trident-blue rounded-full flex items-center justify-center",children:r.jsx("svg",{className:"h-6 w-6 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}),r.jsxs("div",{className:"bg-trident-black p-6 rounded-lg text-white",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Licensed & Insured"}),r.jsx("p",{className:"mb-4",children:"Trident Investigations is fully licensed and insured to operate across Utah, Idaho, and Wyoming. Our investigators maintain all necessary certifications and adhere to the highest ethical standards in the industry."}),r.jsx("div",{className:"flex flex-wrap gap-4 mt-6",children:r.jsx("div",{className:"bg-trident-black px-4 py-2 rounded text-sm",children:"Utah License #G105645"})})]})]})})]})})}),Dee=()=>r.jsxs("div",{className:"absolute bottom-4 right-4 z-10 bg-white p-2 rounded shadow-md text-sm",children:[r.jsxs("div",{className:"flex items-center mb-1",children:[r.jsx("div",{className:"w-4 h-4 bg-[#ff9200] opacity-50 mr-2"}),r.jsx("span",{children:"Service Area"})]}),r.jsxs("div",{className:"flex items-center mb-1",children:[r.jsx("div",{className:"w-4 h-4 bg-[#ff9200] opacity-80 mr-2"}),r.jsx("span",{children:"Focus Area"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"w-4 h-4 bg-[#cccccc] opacity-70 mr-2"}),r.jsx("span",{children:"No Service"})]})]}),eL=()=>r.jsxs("div",{className:"relative w-full h-96 md:h-[500px]",children:[r.jsx("div",{className:"absolute inset-0 bg-gray-50 rounded-lg flex items-center justify-center p-3",children:r.jsx("img",{src:"/service-areas-map.png",alt:"Trident Investigations Service Areas - Utah, Idaho, and Wyoming",loading:"lazy",className:"w-full h-full object-contain rounded-md shadow-sm",style:{filter:"drop-shadow(0 4px 8px rgba(0,0,0,0.1))"},onError:e=>{console.error("Image failed to load:",e),e.currentTarget.src="/lovable-uploads/825fa9c4-c70d-42d1-b704-9234bdc24b69.png"}})}),r.jsx(Dee,{})]}),Mee=({locations:e})=>r.jsx("section",{className:"section bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Areas We Serve"}),r.jsx("p",{className:"text-lg text-trident-black opacity-70 max-w-2xl mx-auto",children:"Licensed Private Investigators Serving All of Utah, as well as Idaho & Wyoming"}),r.jsx("div",{className:"mt-4",children:r.jsxs(te,{to:"/locations",className:"text-trident-orange font-semibold hover:underline inline-flex items-center",children:["View All Locations",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]}),r.jsx("div",{className:"mb-12",children:r.jsx("div",{className:"rounded-lg overflow-hidden shadow-md",children:r.jsx(eL,{})})}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:e.map((t,n)=>r.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[r.jsx("div",{className:"h-48 bg-trident-black flex items-center justify-center p-6 text-center",children:r.jsx("h3",{className:"text-3xl font-bold text-white",children:t.name})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("p",{className:"text-trident-black opacity-70 mb-4",children:["Our licensed investigators are ready to assist with all types of cases throughout ",t.name,"."]}),r.jsxs(te,{to:t.link,className:"inline-flex items-center font-semibold text-trident-orange hover:underline",children:["View ",t.name," Services",r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]},n))})]})}),Ree=({quote:e,author:t,location:n="",className:i=""})=>r.jsxs("div",{className:`bg-white p-6 rounded-lg shadow-md ${i}`,children:[r.jsx("svg",{className:"h-8 w-8 text-trident-blue opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-black italic mb-4",children:e}),r.jsx("div",{className:"font-bold text-trident-black",children:t}),n&&r.jsx("div",{className:"text-sm text-text-supporting",children:n})]}),$ee=({reviews:e,businessName:t="Trident Investigations",aggregateRating:n={ratingValue:4.8,reviewCount:e.length,bestRating:5,worstRating:1}})=>{const i={"@context":"https://schema.org","@type":"Organization",name:t,aggregateRating:{"@type":"AggregateRating",ratingValue:n.ratingValue,reviewCount:n.reviewCount,bestRating:n.bestRating,worstRating:n.worstRating},review:e.map((s,a)=>({"@type":"Review",author:{"@type":"Person",name:s.author},reviewBody:s.reviewBody,reviewRating:{"@type":"Rating",ratingValue:s.reviewRating,bestRating:5,worstRating:1},...s.datePublished&&{datePublished:s.datePublished},...s.location&&{contentLocation:{"@type":"Place",name:s.location}}}))};return r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}})},Lee=({testimonials:e})=>{const t=e.map(n=>({author:n.author,reviewBody:n.quote,reviewRating:5,location:n.location}));return r.jsxs(r.Fragment,{children:[r.jsx($ee,{reviews:t}),r.jsx("section",{className:"section bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Client Testimonials"}),r.jsx("p",{className:"text-lg text-trident-black opacity-70 max-w-2xl mx-auto",children:"Don't just take our word for it. See what our clients have to say about our services."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((n,i)=>r.jsx(Ree,{quote:n.quote,author:n.author,location:n.location},i))})]})})]})},Uee=()=>{const e=j.useRef(null),t=j.useRef(!1);return j.useEffect(()=>{const n=document.createElement("script");n.src="https://link.msgsndr.com/js/form_embed.js",n.async=!0,document.body.appendChild(n),e.current&&!t.current&&(e.current.addEventListener("load",()=>{wl("schedule","Homepage Scheduling Calendar"),window.gtag&&window.gtag("event","homepage_schedule_view",{event_category:"Contact",event_label:"Homepage Scheduling Calendar",value:1})}),t.current=!0);const i=s=>{s.origin==="https://api.leadconnectorhq.com"&&Array.isArray(s.data)&&s.data[0]==="msgsndr-booking-complete"&&(Cee("schedule","homepage consultation"),window.gtag&&window.gtag("event","consultation_booked",{event_category:"Conversion",event_label:"Homepage Consultation",value:1}),window.dataLayer&&window.dataLayer.push({event:"ghl_booking_complete",booking_type:"homepage_consultation"}))};return window.addEventListener("message",i),()=>{document.body.removeChild(n),window.removeEventListener("message",i)}},[]),r.jsx("section",{className:"section bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Schedule Your Consultation"}),r.jsx("p",{className:"text-lg text-trident-black opacity-70 max-w-2xl mx-auto",children:"Choose a convenient time for a confidential consultation with our lead investigator."})]}),r.jsx("div",{className:"max-w-3xl mx-auto bg-white rounded-lg shadow-md p-6",children:r.jsx("iframe",{ref:e,src:"https://api.leadconnectorhq.com/widget/booking/TGek26pMN7pEsBMxatD4",style:{width:"100%",minHeight:"900px",border:"none"},scrolling:"yes",id:"wXoBn0aFyahkIO43Jx5i_1747745296621",allow:"camera *; microphone *"})})]})})},Bh=(e,t,n,i,s,a,o,l)=>({focusKeyword:e,relatedKeywords:t,metaTitle:n,metaDescription:i,readingTime:s,wordCount:a,headingStructure:["h1","h2","h3"],internalLinks:[{text:"Contact Us",url:"/contact",context:"consultation request",placement:"mid"},{text:"Investigation Services",url:"/services",context:"service overview",placement:"early"},{text:"Utah Investigations",url:"/locations/utah-investigations",context:"location services",placement:"mid"},{text:"Domestic Investigations",url:"/services/domestic-investigations",context:"specific service",placement:"early"},{text:"Salt Lake County",url:"/locations/utah/salt-lake-county",context:"specific county service",placement:"mid"},{text:"Davis County",url:"/locations/utah/davis-county",context:"specific county service",placement:"mid"},{text:"Weber County",url:"/locations/utah/weber-county",context:"specific county service",placement:"mid"}],externalLinks:[{text:"Utah BCI",url:"https://bci.utah.gov/",authority:90,relevance:95,nofollow:!1}],images:[{src:o||"/lovable-uploads/investigation-scene.jpg",alt:l||"Professional investigation scene",title:"Utah Private Investigation",placement:"header",optimization:{compressed:!0,webp:!0,lazy:!0}}],socialShareData:{twitterCard:"summary_large_image",ogTitle:n,ogDescription:i,ogImage:o||"/lovable-uploads/investigation-scene.jpg"},localSEO:{location:"Wasatch Front, Utah",businessType:"Private Investigation Services",serviceArea:["Salt Lake County","Utah County","Davis County","Weber County","Tooele County","Utah","Idaho","Wyoming"]}}),Wh=(e="investigation",t="consultation")=>({callToActions:[{id:`cta-${e}-header`,type:t,title:"Need Professional Investigation Services?",description:"Get confidential consultation about evidence gathering that meets Utah court standards.",buttonText:"Schedule Confidential Consultation",buttonLink:"/contact",placement:"header",priority:1,trackingId:`track-${e}-header`,utmParams:`?utm_source=blog&utm_medium=cta&utm_campaign=${e}_investigation`},{id:`cta-${e}-mid`,type:"phone",title:"Questions About Investigation Services?",description:"Speak directly with our investigation team about your case.",buttonText:"Call (385) 275-8220",buttonLink:"+1-385-275-8220",placement:"mid",priority:2,trackingId:`track-${e}-mid`},{id:`cta-${e}-late`,type:"download",title:"Free Utah Investigation Information Guide",description:"Download our comprehensive guide to understanding investigation options in Utah.",buttonText:"Download Free Guide",buttonLink:"/downloads/utah-investigation-guide.pdf",placement:"late",priority:3,trackingId:`track-${e}-download`}],leadMagnets:[{id:`${e}-guide-download`,title:"Utah Investigation Information Guide",description:"Comprehensive guide covering investigation process and considerations.",type:"pdf",gatedContent:!0,downloadUrl:"/downloads/utah-investigation-guide.pdf",formFields:["email","name","phone"]}],exitIntentOffer:{title:"Wait! Get Professional Information",description:"Don't face potential legal issues alone. Get expert consultation before making crucial decisions.",offerType:"free-consultation",triggerDelay:2e3},scrollTriggeredCTAs:[{scrollPercentage:50,cta:{id:`scroll-cta-${e}-50`,type:"consultation",title:"Questions About Your Situation?",description:"Get personalized information from our investigation team.",buttonText:"Get Free Consultation",buttonLink:"/contact",placement:"mid",priority:3,trackingId:`scroll-${e}-50`},showOnce:!0}]}),hd=(e="expert")=>({expertiseLevel:e,authorCredentials:["Licensed Private Investigator","Utah State Certified","15+ Years Experience"],factChecked:!0,sources:[{title:"Utah Private Investigator Regulation Act",url:"https://le.utah.gov/xcode/Title58/Chapter55/58-55.html",type:"legal",date:"2024-01-01"}],lastUpdated:"2025-07-07"}),md=()=>({trackingEvents:[{name:"page_view",category:"Blog Engagement",action:"view",label:"blog_post"},{name:"cta_click",category:"Conversion",action:"click",label:"consultation_request"}],conversionGoals:[{name:"consultation_request",type:"form_submit",value:500,funnelStep:1}]}),zh=(e,t,n,i)=>({articleSchema:{"@type":"Article",headline:e,description:t,author:{"@type":"Person",name:n},datePublished:i,publisher:{"@type":"Organization",name:"Trident Investigations"}},breadcrumbSchema:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"/"},{"@type":"ListItem",position:2,name:"Blog",item:"/blog"}]},organizationSchema:{"@type":"Organization",name:"Trident Investigations",url:"https://tridentinvestigations.com"}}),Fb=()=>["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah family law attorney for advice specific to your situation.","Investigation services must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind."],la=(e,t,n,i,s,a,o="investigation",l,c=[],d=[],u=[],h,m)=>({id:e,slug:t,title:n,excerpt:i,content:s,publishDate:h||new Date().toISOString().split("T")[0],category:a,author:"Legal Investigation Team",authorTitle:"Family Law Investigation Specialists",keywordFocus:l,tags:[a,"Private Investigator","Utah Law","Legal Investigation"],featured:!1,metaDescription:i.substring(0,160),seoData:Bh(l,c,n,i.substring(0,160),Math.ceil(s.replace(/<[^>]*>/g,"").split(/\s+/).length/200),s.replace(/<[^>]*>/g,"").split(/\s+/).length,m),conversionData:Wh(o),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh(n,i,"Legal Investigation Team",h||new Date().toISOString().split("T")[0]),legalReferences:d.length>0?d:void 0,disclaimers:u.length>0?u:Fb(),image:m}),Fee=`
<p>Trident Investigations is proud to announce that we have been ranked the <strong>#1 Private Investigator in Lehi, Utah</strong> by <a href="https://businessrate.com" target="_blank" rel="noopener noreferrer">BusinessRate</a>, earning an overall score of <strong>231 out of 300</strong> for November 2025. This recognition reflects years of dedicated service to individuals, families, and attorneys across the Wasatch Front.</p>
<div style="background: linear-gradient(135deg, #b45309, #d97706, #f59e0b); border-radius: 12px; padding: 32px; text-align: center; color: white; margin: 32px 0;">
<p style="font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; opacity: 0.9;">BusinessRate Overall Score</p>
<p style="font-size: 64px; font-weight: 800; margin: 0; line-height: 1;">231 <span style="font-size: 28px; font-weight: 400;">/ 300</span></p>
<p style="font-size: 18px; margin-top: 12px; font-weight: 600;">#1 Private Investigator in Lehi, UT</p>
<p style="font-size: 14px; opacity: 0.85; margin-top: 4px;">November 2025 Award</p>
</div>
<h2>What Is BusinessRate?</h2>
<p>BusinessRate is an independent platform that evaluates local businesses using a data-driven scoring system based on verified customer reviews. Unlike simple star ratings, BusinessRate uses a weighted 300-point scale that accounts for long-term reputation, recent performance, and the quality of individual reviews.</p>
<div style="background: #f3f4f6; border-radius: 8px; padding: 24px; margin: 24px 0;">
<p style="font-weight: 700; font-size: 18px; margin-bottom: 16px;">Trident's Score Breakdown</p>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;">
<div style="flex: 1; min-width: 140px; text-align: center;">
<p style="font-size: 36px; font-weight: 800; color: #b45309; margin: 0;">146</p>
<p style="font-size: 13px; color: #6b7280; margin: 4px 0 0;">All-Time Reviews</p>
<p style="font-size: 12px; color: #9ca3af;">(60% weight)</p>
</div>
<div style="flex: 1; min-width: 140px; text-align: center;">
<p style="font-size: 36px; font-weight: 800; color: #b45309; margin: 0;">67</p>
<p style="font-size: 13px; color: #6b7280; margin: 4px 0 0;">Recent 90-Day Reviews</p>
<p style="font-size: 12px; color: #9ca3af;">(33% weight)</p>
</div>
<div style="flex: 1; min-width: 140px; text-align: center;">
<p style="font-size: 36px; font-weight: 800; color: #b45309; margin: 0;">18</p>
<p style="font-size: 13px; color: #6b7280; margin: 4px 0 0;">Review Quality</p>
<p style="font-size: 12px; color: #9ca3af;">(7% weight)</p>
</div>
</div>
</div>
<h2>What This Means for Our Clients</h2>
<p>Earning the top ranking in Lehi isn't just a badge β it's a reflection of the trust our clients place in us and the results we deliver. Here's what this score represents:</p>
<ul>
<li><strong>Verified Reputation:</strong> With 146 points from all-time reviews, our track record speaks for itself. Clients consistently rate Trident among the best investigation firms in Utah.</li>
<li><strong>Consistent Recent Performance:</strong> A score of 67 in recent 90-day reviews shows that our quality hasn't declined β we continue to deliver results that exceed expectations.</li>
<li><strong>Competitive Excellence:</strong> Achieving 231/300 and the #1 position means we outperformed every other private investigation firm in the Lehi area across all measured categories.</li>
</ul>
<h2>Our Commitment to Excellence</h2>
<p>At Trident Investigations, every case receives the same level of professionalism, discretion, and dedication β whether it's a domestic investigation, a custody matter, insurance fraud, or corporate due diligence. Our team of licensed investigators brings decades of combined experience and a commitment to ethical, legal, and thorough work.</p>
<p>We are grateful to every client who has taken the time to share their experience. Your reviews not only help us improve β they help others in difficult situations find a team they can trust.</p>
<div style="background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 12px; padding: 32px; text-align: center; color: white; margin: 32px 0;">
<p style="font-size: 22px; font-weight: 700; margin-bottom: 8px;">Need a Trusted Private Investigator?</p>
<p style="font-size: 15px; opacity: 0.9; margin-bottom: 20px;">Contact Trident Investigations for a confidential consultation.</p>
<p style="margin-bottom: 12px;"><a href="tel:+13852758220" style="color: #93c5fd; font-size: 20px; font-weight: 600; text-decoration: none;">π (385) 275-8220</a></p>
<p><a href="/contact" style="background: white; color: #1e3a5f; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-block;">Schedule a Consultation</a></p>
</div>
`,Bee={id:"businessrate-award-2025",slug:"trident-investigations-businessrate-award-utah",title:"Trident Investigations Ranked #1 Private Investigator in Lehi by BusinessRate",excerpt:"Trident Investigations earned a 231/300 score and the #1 Private Investigator ranking in Lehi, Utah from BusinessRate for November 2025.",content:Fee,publishDate:"2026-02-09",category:"Company News",author:"Trident Investigations",authorTitle:"Licensed Private Investigation Agency",keywordFocus:"Utah private investigator BusinessRate award",tags:["Company News","BusinessRate","Utah Private Investigator","Lehi PI","Awards"],featured:!0,metaDescription:"Trident Investigations scored 231/300 and ranked #1 Private Investigator in Lehi, UT by BusinessRate for November 2025.",seoData:Bh("Utah private investigator BusinessRate award",["private investigation Utah","licensed PI Utah","top rated PI Utah","Lehi private investigator","best private investigator Utah"],"Trident Investigations Ranked #1 Private Investigator in Lehi by BusinessRate","Trident Investigations scored 231/300 and ranked #1 Private Investigator in Lehi, UT by BusinessRate for November 2025.",3,650),conversionData:Wh("company-news","consultation"),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh("Trident Investigations Ranked #1 Private Investigator in Lehi by BusinessRate","Trident Investigations scored 231/300 and ranked #1 Private Investigator in Lehi, UT by BusinessRate for November 2025.","Trident Investigations","2025-11-15"),disclaimers:Fb()},Wee=()=>({focusKeyword:"catch cheating spouse",relatedKeywords:["infidelity investigation methods","private investigator Utah","spouse investigation","cheating spouse evidence","Utah infidelity investigation"],metaTitle:"How to Catch a Cheating Spouse: Professional Investigation Strategies in Utah | Trident Investigations",metaDescription:"Learn professional methods for investigating suspected infidelity. Utah private investigators share legal strategies for uncovering the truth about cheating spouses.",readingTime:12,wordCount:2800,headingStructure:["h1","h2","h3"],canonicalUrl:"https://tridentpi.net/blog/how-to-catch-a-cheating-spouse",author:"CH",publishDate:"2025-05-08",modifiedDate:new Date().toISOString().split("T")[0],robots:"index, follow",internalLinks:[{text:"Contact Us",url:"/contact",context:"consultation request",placement:"mid"},{text:"Domestic Investigation Services",url:"/services/domestic-investigations",context:"service overview",placement:"early"},{text:"Utah Investigations",url:"/locations/utah-investigations",context:"location services",placement:"mid"},{text:"Infidelity Investigations",url:"/services/domestic-investigations",context:"specific service",placement:"early"}],externalLinks:[{text:"Utah Family Law",url:"https://le.utah.gov/xcode/Title30/Chapter3/30-3.html",authority:95,relevance:90,nofollow:!1}],images:[{src:"/images/how-to-catch-a-cheating-spouse-hero.jpg",alt:"Professional Utah private investigator conducting legal spousal investigation with discretion and expertise",title:"Professional Spousal Investigation Services Utah",placement:"header",optimization:{compressed:!0,webp:!0,lazy:!0}}],socialShareData:{twitterCard:"summary_large_image",ogTitle:"How to Catch a Cheating Spouse: Professional Investigation Strategies in Utah",ogDescription:"Learn professional methods for investigating suspected infidelity. Utah private investigators share legal strategies for uncovering the truth about cheating spouses.",ogImage:"https://tridentpi.net/images/how-to-catch-a-cheating-spouse-hero.jpg",ogType:"article",ogUrl:"https://tridentpi.net/blog/how-to-catch-a-cheating-spouse",ogSiteName:"Trident Investigations"},localSEO:{location:"Utah",businessType:"Private Investigation Services",serviceArea:["Salt Lake County","Utah County","Davis County","Weber County","Wasatch Front","Utah"]}}),zee=()=>({articleSchema:{"@context":"https://schema.org","@type":"Article",headline:"How to Catch a Cheating Spouse: Professional Investigation Strategies in Utah",author:{"@type":"Person",name:"CH"},publisher:{"@type":"Organization",name:"Trident Investigations",url:"https://tridentpi.net",logo:{"@type":"ImageObject",url:"https://tridentpi.net/logo.png"}},datePublished:"2025-05-08",dateModified:new Date().toISOString().split("T")[0],mainEntityOfPage:{"@type":"WebPage","@id":"https://tridentpi.net/blog/how-to-catch-a-cheating-spouse"},articleSection:"Infidelity Investigations",keywords:["catch cheating spouse","infidelity investigation methods","private investigator Utah","spouse investigation"],image:{"@type":"ImageObject",url:"https://tridentpi.net/images/how-to-catch-a-cheating-spouse-hero.jpg",width:1200,height:630}},breadcrumbSchema:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://tridentpi.net"},{"@type":"ListItem",position:2,name:"Blog",item:"https://tridentpi.net/blog"},{"@type":"ListItem",position:3,name:"How to Catch a Cheating Spouse",item:"https://tridentpi.net/blog/how-to-catch-a-cheating-spouse"}]},organizationSchema:{"@type":"Organization",name:"Trident Investigations",url:"https://tridentpi.net",logo:{"@type":"ImageObject",url:"https://tridentpi.net/logo.png"}}}),qee={id:"catch-cheating-spouse-investigation-utah",slug:"how-to-catch-a-cheating-spouse",title:"How to Catch a Cheating Spouse: Professional Investigation Strategies in Utah",excerpt:"Learn professional methods for investigating suspected infidelity. Utah private investigators share legal strategies for uncovering the truth about cheating spouses.",content:`
<div class="investigation-intro">
<p>Suspecting your spouse of infidelity creates overwhelming emotional stress and uncertainty. The question "how to catch a cheating spouse" weighs heavily on your mind, but approaching this situation requires careful planning, legal compliance, and professional expertise. At Trident Investigations, we understand the delicate nature of these circumstances and provide Utah residents with professional, discrete investigation services that uncover facts through legally compliant methods.</p>
</div>
<div class="interactive-checklist bg-gradient-to-r from-trident-purple/10 to-trident-orange/10 border border-trident-orange/20 rounded-xl p-8 my-8">
<h3 class="text-2xl font-bold mb-6 text-trident-dark">Key Investigation Considerations</h3>
<div class="checklist-container space-y-4">
<div class="checklist-item flex items-start space-x-3 p-4 bg-white/50 rounded-lg hover:bg-white/70 transition-all duration-300">
<div class="checklist-icon w-6 h-6 rounded-full bg-trident-orange flex items-center justify-center text-white text-sm font-bold">β</div>
<div>
<h4 class="font-semibold text-trident-dark">Legal Compliance First</h4>
<p class="text-gray-600">Ensure all investigation methods comply with Utah privacy laws</p>
</div>
</div>
<div class="checklist-item flex items-start space-x-3 p-4 bg-white/50 rounded-lg hover:bg-white/70 transition-all duration-300">
<div class="checklist-icon w-6 h-6 rounded-full bg-trident-orange flex items-center justify-center text-white text-sm font-bold">β</div>
<div>
<h4 class="font-semibold text-trident-dark">Professional Documentation</h4>
<p class="text-gray-600">Court-admissible evidence gathering through proper channels</p>
</div>
</div>
<div class="checklist-item flex items-start space-x-3 p-4 bg-white/50 rounded-lg hover:bg-white/70 transition-all duration-300">
<div class="checklist-icon w-6 h-6 rounded-full bg-trident-orange flex items-center justify-center text-white text-sm font-bold">β</div>
<div>
<h4 class="font-semibold text-trident-dark">Emotional Protection</h4>
<p class="text-gray-600">Professional buffer to protect your mental health during investigation</p>
</div>
</div>
</div>
</div>
<section id="understanding-complexity">
<h2>Understanding the Complexity of Spousal Investigation</h2>
<p>Investigating a spouse's potential infidelity involves more than suspicionβit requires systematic fact-gathering that respects legal boundaries while providing clear answers. Many people attempt to investigate independently, but this approach often leads to incomplete information, legal complications, or emotional distress that could have been avoided through professional channels.</p>
<p>Our <a href="/services/domestic-investigations" class="text-trident-orange hover:text-trident-dark font-semibold">domestic investigation services</a> at Trident Investigations are specifically designed to handle these sensitive situations with the expertise and discretion they require through legally compliant methods.</p>
</section>
<section id="legal-considerations">
<h2>Legal Considerations Before Beginning Any Investigation</h2>
<h3>Utah Laws and Privacy Rights</h3>
<p>Before exploring how to catch a cheating spouse, understanding Utah's legal framework is essential. Privacy laws protect individuals even within marriage, making certain investigation methods illegal when conducted improperly. Professional investigators understand these boundaries and operate within legal parameters to protect your interests through compliant methods.</p>
<h3>Evidence Admissibility</h3>
<p>If your situation leads to divorce proceedings, improperly gathered evidence may be inadmissible in court. Professional investigation services ensure all documentation meets legal standards and can be properly utilized in legal proceedings through appropriate channels.</p>
<h3>Protecting Your Legal Position</h3>
<p>Working with licensed investigators demonstrates to courts that you approached your concerns responsibly, using proper legal channels rather than potentially questionable methods that could harm your case.</p>
</section>
<div class="cta-section bg-trident-smoke rounded-xl p-8 my-8 text-center">
<h3 class="text-2xl font-bold mb-4 text-trident-dark">Need Professional Investigation Guidance?</h3>
<p class="text-lg mb-6 text-gray-600">Get confidential consultation about legal investigation methods that protect your interests.</p>
<a href="/contact" class="inline-block bg-trident-orange text-white px-8 py-4 rounded-lg font-semibold text-lg hover:bg-trident-dark transition-colors">
Schedule Confidential Consultation
</a>
</div>
<section id="professional-methods">
<h2>Professional Methods for Uncovering Infidelity</h2>
<h3>Systematic Surveillance Techniques</h3>
<p>Professional investigators use sophisticated surveillance methods that individuals cannot replicate safely or legally. This includes:</p>
<ul>
<li>Strategic positioning for optimal observation through legal methods</li>
<li>Professional equipment that captures clear documentation within legal boundaries</li>
<li>Timing techniques that maximize information gathering through compliant channels</li>
<li>Multi-day observation patterns that reveal behavior trends through proper methods</li>
</ul>
<p>Our team at Trident Investigations employs these advanced techniques while maintaining complete discretion and legal compliance.</p>
<h3>Digital Investigation Within Legal Boundaries</h3>
<p>Modern infidelity often leaves digital traces, but accessing this information requires legal expertise. Professional methods include:</p>
<ul>
<li>Analysis of publicly available social media activity through legal channels</li>
<li>Communication pattern analysis within legal boundaries</li>
<li>Digital footprint research through proper methods</li>
<li>Technology behavior documentation through compliant techniques</li>
</ul>
<p>These methods require specialized knowledge to ensure legal compliance while gathering meaningful information through appropriate channels.</p>
<h3>Financial Investigation for Suspicious Activity</h3>
<p>Infidelity often involves financial irregularities that professional investigators can uncover through legal methods:</p>
<ul>
<li>Expense pattern analysis through proper channels</li>
<li>Credit card and bank statement review when legally permitted</li>
<li>Unexplained purchase documentation through compliant methods</li>
<li>Travel and entertainment expense verification through legal channels</li>
</ul>
<p>Our financial investigation services can reveal spending patterns that indicate deceptive behavior through legally compliant methods.</p>
</section>
<section id="why-professional-services">
<h2>Why Professional Investigation Services Are Essential</h2>
<h3>Expertise in Evidence Gathering</h3>
<p>Professional investigators understand how to document findings in ways that protect your interests. This includes:</p>
<ul>
<li>Proper photographic and video documentation through legal methods</li>
<li>Witness statement collection through appropriate channels</li>
<li>Timeline development that establishes patterns through compliant techniques</li>
<li>Chain of custody procedures that maintain evidence integrity through proper methods</li>
</ul>
<h3>Emotional Protection</h3>
<p>Attempting to catch a cheating spouse independently often causes additional emotional trauma. Professional investigators provide a buffer that allows you to receive information without direct confrontation or personal involvement in potentially distressing situations through legal channels.</p>
<h3>Legal Compliance and Protection</h3>
<p>Licensed investigators understand the legal boundaries that protect your case. They ensure all methods comply with Utah laws and provide documentation that courts will accept through proper channels.</p>
</section>
<div class="phone-cta bg-gradient-to-r from-trident-blue to-trident-purple text-white rounded-xl p-8 my-8 text-center">
<h3 class="text-2xl font-bold mb-4">Questions About Investigation Services?</h3>
<p class="text-lg mb-6">Speak directly with our investigation team about your specific situation.</p>
<a href="tel:+1-385-275-8220" class="inline-block bg-white text-trident-dark px-8 py-4 rounded-lg font-semibold text-lg hover:bg-gray-100 transition-colors">
Call (385) 275-8220
</a>
</div>
<section id="common-mistakes">
<h2>Common Mistakes to Avoid</h2>
<h3>Attempting Independent Surveillance</h3>
<p>Following your spouse yourself often leads to:</p>
<ul>
<li>Legal complications if done improperly</li>
<li>Emotional distress from direct observation</li>
<li>Compromised evidence that courts may reject</li>
<li>Safety concerns in potentially confrontational situations</li>
</ul>
<h3>Violating Privacy Laws</h3>
<p>Installing tracking devices, accessing private accounts, or other invasive methods without proper legal authority can harm your case and potentially result in criminal charges.</p>
<h3>Confronting Without Evidence</h3>
<p>Approaching your spouse with suspicions but no evidence often results in:</p>
<ul>
<li>Increased deceptive behavior and better concealment</li>
<li>Emotional confrontations that complicate legal proceedings</li>
<li>Destroyed evidence that could have supported your case</li>
<li>Strained relationships that make resolution more difficult</li>
</ul>
</section>
<section id="professional-process">
<h2>The Professional Investigation Process</h2>
<h3>Initial Consultation and Strategy Development</h3>
<p>Our process begins with a confidential consultation where we discuss your concerns and develop a tailored investigation plan through legal methods. This ensures our approach addresses your specific situation while maintaining legal compliance.</p>
<h3>Systematic Information Gathering</h3>
<p>Professional investigators use multiple techniques simultaneously to build a comprehensive picture of your spouse's activities through legally compliant methods:</p>
<ul>
<li>Scheduled surveillance during key periods through proper channels</li>
<li>Digital analysis within legal boundaries</li>
<li>Financial review through appropriate methods</li>
<li>Background verification through legal channels</li>
</ul>
<h3>Documentation and Reporting</h3>
<p>All findings are compiled into detailed reports that meet legal standards and provide clear, actionable information through compliant documentation methods.</p>
</section>
<div class="guide-download-cta bg-trident-gold/10 border border-trident-gold/30 rounded-xl p-8 my-8 text-center">
<h3 class="text-2xl font-bold mb-4 text-trident-dark">Free Utah Investigation Information Guide</h3>
<p class="text-lg mb-6 text-gray-600">Download our comprehensive guide to understanding investigation options and legal considerations in Utah.</p>
<a href="/downloads/utah-investigation-guide.pdf" class="inline-block bg-trident-gold text-trident-dark px-8 py-4 rounded-lg font-semibold text-lg hover:bg-trident-orange hover:text-white transition-colors">
Download Free Guide
</a>
</div>
<section id="when-investigation-confirms">
<h2>When Investigation Confirms Your Concerns</h2>
<h3>Preparing for Legal Proceedings</h3>
<p>If investigation confirms infidelity, professional documentation supports your position in divorce proceedings regarding:</p>
<ul>
<li>Alimony considerations under Utah law</li>
<li>Asset division decisions when marital waste is involved</li>
<li>Child custody determinations if inappropriate behavior affects family stability</li>
</ul>
<h3>Emotional Support and Next Steps</h3>
<p>Discovering confirmed infidelity is emotionally challenging. Our team provides compassionate support while helping you understand your options and next steps through appropriate channels.</p>
</section>
<section id="when-investigation-dismisses">
<h2>When Investigation Dismisses Your Concerns</h2>
<h3>Peace of Mind Through Facts</h3>
<p>Sometimes investigations reveal that suspicions were unfounded, providing peace of mind and allowing relationship healing to begin through proper resolution.</p>
<h3>Relationship Counseling Recommendations</h3>
<p>If investigations dismiss infidelity concerns but reveal other relationship issues, we can recommend professional counseling resources to help address underlying problems through appropriate support.</p>
</section>
<section id="why-choose-trident">
<h2>Why Choose Trident Investigations</h2>
<h3>Local Utah Expertise</h3>
<p>Our deep knowledge of <a href="/locations/utah-investigations" class="text-trident-orange hover:text-trident-dark font-semibold">Utah laws</a>, local areas from Salt Lake City to St. George, and regional resources enhances our ability to conduct thorough investigations through legally compliant methods.</p>
<h3>Proven Track Record</h3>
<p>We've helped 500+ Utah residents navigate these challenging situations with discretion and professionalism through proper legal channels over 15+ years of experience.</p>
<h3>Comprehensive Services</h3>
<p>Beyond infidelity investigation, our full range of services supports whatever legal or personal needs arise from your situation through compliant methods.</p>
</section>
<section id="take-action">
<h2>Take Action With Professional Support</h2>
<p>Learning how to catch a cheating spouse isn't about becoming a detective yourselfβit's about recognizing when professional help is necessary and choosing licensed investigators who operate within legal boundaries.</p>
<p>If you're facing concerns about your spouse's fidelity, don't navigate this challenging situation alone. Professional investigation services provide the expertise, legal compliance, and emotional protection you need through appropriate channels.</p>
</section>
<div class="final-cta bg-gradient-to-br from-trident-dark to-trident-blue text-white rounded-xl p-12 my-8 text-center">
<h2 class="text-3xl font-bold mb-6">Contact Trident Investigations Today</h2>
<p class="text-xl mb-8 leading-relaxed">Ready to uncover the truth about your relationship? Contact Trident Investigations at 385-275-8220 for a confidential consultation. Our experienced team is ready to help you address your concerns with discretion and professionalism through legally compliant investigation services.</p>
<div class="flex flex-col sm:flex-row gap-6 justify-center items-center">
<a href="/contact" class="bg-trident-orange text-white px-10 py-5 rounded-lg font-bold text-xl hover:bg-trident-gold hover:text-trident-dark transition-colors">
Schedule Consultation
</a>
<a href="/services/domestic-investigations" class="bg-white/20 text-white px-10 py-5 rounded-lg font-bold text-xl hover:bg-white/30 transition-colors border border-white/30">
Learn About Our Services
</a>
</div>
<p class="mt-8 text-lg opacity-90">Don't let uncertainty control your life. Professional investigation services can provide the clarity you deserve, allowing you to move forward with confidence whatever the outcome may be through appropriate support.</p>
</div>
`,publishDate:"2025-05-08",category:"Infidelity Investigations",author:"CH",authorTitle:"Licensed Private Investigator",keywordFocus:"catch cheating spouse",tags:["cheating spouse investigation","infidelity detection","Utah private investigator","professional investigation methods","relationship verification","spouse surveillance","legal compliance","evidence gathering"],featured:!0,metaDescription:"Learn professional methods for investigating suspected infidelity. Utah private investigators share legal strategies for uncovering the truth about cheating spouses.",seoData:Wee(),conversionData:Wh("infidelity","consultation"),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zee(),disclaimers:["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah family law attorney for advice specific to your situation.","Investigation services must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind."]},Hee={id:"adultery-infidelity-legal-implications-utah",slug:"adultery-infidelity-legal-implications-hire-pi-cheating-utah",title:"Adultery and Infidelity Legal Implications: When to Hire a PI for Cheating in Utah",excerpt:"Understanding the legal implications of adultery and infidelity in Utah divorce proceedings. Learn when hiring a private investigator for cheating cases can significantly impact alimony, property division, and custody outcomes.",content:`
<p>In Utah, adultery and infidelity carry significant legal implications that extend far beyond emotional betrayal. While Utah is technically a "no-fault" divorce state, allowing couples to divorce based on "irreconcilable differences," adultery remains both a ground for divorce and a factor that can substantially impact alimony, property division, and child custody decisions. Understanding these legal implications and knowing when to engage <a href="/services/domestic-investigations">professional investigation services</a> can be crucial for protecting your rights and securing fair outcomes. <strong>This information is for educational purposes only and does not constitute legal advice. Consult with a qualified Utah family law attorney for guidance specific to your situation.</strong></p>
<h2 id="utah-legal-definition-historical-context">Utah's Legal Definition and Historical Context</h2>
<p>Under Utah law, adultery is defined as voluntary sexual intercourse between a married person and someone other than their spouse. Until 2019, adultery was classified as a class B misdemeanor criminal offense in Utah, though prosecutions were rare. The decriminalization reflects changing social attitudes while maintaining adultery's relevance in civil family law proceedings.</p>
<p>As established in <a href="#legal-references"><em>Nix v. Nix</em>, 2022 UT App 83</a>, the Utah Court of Appeals clarified that "evidence of adultery committed subsequent to the filing of a divorce complaint is inadmissible for the purpose of establishing grounds for divorce." This means evidence must demonstrate adultery that occurred during the marriage but before filing for divorce.</p>
<h2 id="legal-implications-divorce-proceedings">Legal Implications in Utah Divorce Proceedings</h2>
<h3>Fault-Based vs. No-Fault Divorce</h3>
<p>While most <a href="/locations/utah-investigations">Utah couples</a> pursue no-fault divorce based on irreconcilable differences due to simplicity and speed, fault-based divorce citing adultery remains an option. According to FindLaw, "<a href="/services">Private investigators</a> are often able to prove relationship misconduct or uncover activities and expenditures suggesting inappropriate behavior" when evidence is obtained through proper legal channels.</p>
<h3>Alimony Impact</h3>
<p>Utah Code Β§ 30-3-5 specifically allows judges to consider a spouse's wrongful conduct, including adultery, when determining alimony awards. Key factors include:</p>
<ul>
<li><strong>Award Denial:</strong> Courts may deny alimony to the adulterous spouse entirely</li>
<li><strong>Amount Reduction:</strong> Proven adultery can reduce alimony amounts or duration</li>
<li><strong>Asset Dissipation:</strong> If marital funds were spent on the affair, judges may award the innocent spouse a greater share of remaining assets</li>
</ul>
<p>The Utah Supreme Court in <a href="#legal-references"><em>Shepherd v. Shepherd</em>, 876 P.2d 429 (Utah Ct. App. 1994)</a> established that when one spouse has depleted marital assets, courts may offset this by awarding more than half of the property to the other spouse.</p>
<h3>Child Custody Considerations</h3>
<p>While adultery doesn't automatically affect child custody, Utah Code allows courts to consider "past moral conduct" as one factor in determining custody arrangements. According to Red Law Family & Divorce Attorneys, courts may limit parent time or decision-making authority if the affair negatively impacted the children.</p>
<h2 id="when-professional-investigation-warranted">When Professional Investigation Services Are Warranted</h2>
<h3>Clear Evidence Requirements</h3>
<p>Proving adultery in Utah requires meeting specific legal standards. The burden of proof is "clear and convincing evidence," which means more than mere suspicion or accusation. <a href="/services/domestic-investigations">Professional investigators</a> can provide:</p>
<ul>
<li><strong>Direct Evidence:</strong> Eyewitness testimony, photographic or video documentation</li>
<li><strong>Circumstantial Evidence:</strong> Communication records, financial records, opportunity and motive documentation</li>
<li><strong>Financial Analysis:</strong> Evidence of inappropriate spending on the affair</li>
</ul>
<p>For cases requiring investigation services across the <a href="/locations/utah-investigations">Wasatch Front</a>, including <a href="/locations/utah/salt-lake-county">Salt Lake County</a>, <a href="/locations/utah/utah-county">Utah County</a>, <a href="/locations/utah/davis-county">Davis County</a>, and <a href="/locations/utah/weber-county">Weber County</a>, experienced local investigators understand the specific court requirements and evidence standards expected by Utah family law judges.</p>
<h3>Strategic Timing Considerations</h3>
<p>The <em>Nix</em> case emphasizes that evidence of adultery must predate the filing of divorce papers. Professional investigators can help establish timelines and gather evidence that meets legal requirements for admissibility.</p>
<h3>Professional Documentation Standards</h3>
<p>Licensed private investigators understand evidence collection requirements for court proceedings. As noted by Intermountain Legal, "establishing adultery will not help you get divorced faster or otherwise alter the divorce process," but it can significantly impact financial outcomes when properly documented.</p>
<h2 id="private-investigation-process">The Private Investigation Process</h2>
<h3>Initial Assessment</h3>
<p>Professional investigators begin with confidential consultations to understand concerns and outline legally compliant investigation plans. This includes:</p>
<ul>
<li><strong>Legal Boundary Establishment:</strong> Understanding Utah's surveillance and privacy laws</li>
<li><strong>Evidence Strategy:</strong> Developing plans to gather admissible evidence</li>
<li><strong>Timeline Planning:</strong> Ensuring evidence collection occurs within legal parameters</li>
</ul>
<h3>Investigation Techniques</h3>
<p>Licensed Utah investigators employ various legal methods:</p>
<ul>
<li><strong>Surveillance:</strong> Discreet observation within legal boundaries</li>
<li><strong>Financial Analysis:</strong> Examining spending patterns and unexplained expenses</li>
<li><strong>Communication Review:</strong> Legal analysis of available communication records</li>
<li><strong>Background Research:</strong> Comprehensive investigation of third parties involved</li>
</ul>
<p>Investigators serving the <a href="/locations/utah-investigations">Wasatch Front region</a>, including <a href="/locations/utah/davis-county">Davis County</a>, <a href="/locations/utah/weber-county">Weber County</a>, <a href="/locations/utah/tooele-county">Tooele County</a>, and surrounding areas understand local court procedures and can provide testimony when required.</p>
<h3>Documentation and Reporting</h3>
<p>Professional investigators provide comprehensive reports suitable for legal proceedings, including:</p>
<ul>
<li>Detailed timeline documentation</li>
<li>Photographic and video evidence (when legally obtained)</li>
<li>Financial analysis and documentation</li>
<li>Witness statements and supporting evidence</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>Adultery and infidelity carry serious legal implications in Utah family law proceedings. While the state allows no-fault divorce, proven adultery can significantly impact alimony awards, property division, and sometimes child custody arrangements. The key lies in understanding when <a href="/contact">professional investigation services</a> can provide legally admissible evidence that justifies their cost.</p>
<p>Utah's legal framework requires clear and convincing evidence of adultery, making professional investigation services valuable for clients who suspect infidelity and face significant financial implications in their divorce proceedings. Licensed private investigators understand the legal requirements, evidence standards, and documentation necessary to support successful outcomes in Utah courts.</p>
<p>When considering whether to hire a private investigator for suspected cheating, consult with experienced Utah family law attorneys who can assess your specific situation and determine whether adultery evidence would meaningfully impact your case outcomes. For immediate consultation about your case, <a href="/contact">contact our investigation team</a> today.</p>
`,publishDate:"2025-07-07",category:"Family Law Investigations",author:"Legal Investigation Team",authorTitle:"Family Law Investigation Specialists",keywordFocus:"adultery Utah law, infidelity investigation, hire PI for cheating",tags:["Adultery Law Utah","Infidelity Investigation","Cheating Spouse","Utah Divorce","Private Investigator","Legal Implications","Family Law","Relationship Misconduct"],featured:!0,metaDescription:"Understanding legal implications of adultery and infidelity in Utah. Learn when hiring a private investigator for cheating cases can impact divorce proceedings and legal outcomes.",seoData:Bh("adultery Utah law",["infidelity investigation","hire PI for cheating","Utah divorce laws","relationship misconduct","cheating spouse investigation"],"Adultery and Infidelity Legal Implications: When to Hire a PI for Cheating in Utah","Understanding legal implications of adultery and infidelity in Utah. Learn when hiring a private investigator for cheating cases can impact divorce proceedings and legal outcomes.",14,2800,"/Adultery and Infidelity Legal Implications- When to Hire a PI for Cheating in Utah.png"),conversionData:{callToActions:[{id:"cta-adultery-header",type:"consultation",title:"Need Professional Investigation Services?",description:"Get confidential consultation about evidence gathering that meets Utah court standards.",buttonText:"Schedule Confidential Consultation",buttonLink:"/contact",placement:"header",priority:1,trackingId:"track-adultery-header",utmParams:"?utm_source=blog&utm_medium=cta&utm_campaign=adultery_investigation"},{id:"cta-adultery-mid",type:"phone",title:"Questions About Investigation Services?",description:"Speak directly with our investigation team about your case.",buttonText:"Call (385) 275-8220",buttonLink:"+1-385-275-8220",placement:"mid",priority:2,trackingId:"track-adultery-mid"},{id:"cta-adultery-late",type:"download",title:"Free Utah Investigation Information Guide",description:"Download our comprehensive guide to understanding investigation options in Utah.",buttonText:"Download Free Guide",buttonLink:"/downloads/utah-investigation-guide.pdf",placement:"late",priority:3,trackingId:"track-adultery-download"}],leadMagnets:[{id:"adultery-guide-download",title:"Utah Investigation Information Guide",description:"Comprehensive guide covering investigation process and considerations.",type:"pdf",gatedContent:!0,downloadUrl:"/downloads/utah-investigation-guide.pdf",formFields:["email","name","phone"]}],exitIntentOffer:{title:"Wait! Get Professional Information",description:"Don't face potential legal issues alone. Get expert consultation before making crucial decisions.",offerType:"free-consultation",triggerDelay:2e3},scrollTriggeredCTAs:[{scrollPercentage:50,cta:{id:"scroll-cta-adultery-50",type:"consultation",title:"Questions About Your Situation?",description:"Get personalized information from our investigation team.",buttonText:"Get Free Consultation",buttonLink:"/contact",placement:"mid",priority:3,trackingId:"scroll-adultery-50"},showOnce:!0}]},contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh("Adultery and Infidelity Legal Implications: When to Hire a PI for Cheating in Utah","Understanding legal implications of adultery and infidelity in Utah. Learn when hiring a private investigator for cheating cases can impact divorce proceedings and legal outcomes.","Legal Investigation Team","2025-07-07"),legalReferences:[{title:"Nix v. Nix, 2022 UT App 83",description:"Utah Court of Appeals case establishing timing requirements for adultery evidence in divorce proceedings.",url:"https://law.justia.com/cases/utah/court-of-appeals-published/2022/20200691-ca.html",jurisdiction:"Utah",type:"case-law"},{title:"Utah Code Β§ 30-3-5 - Alimony Factors",description:"Utah statute outlining factors courts consider when determining alimony awards, including wrongful conduct.",url:"https://www.utcourts.gov/en/self-help/case-categories/family/divorce/alimony.html",jurisdiction:"Utah",type:"statute"},{title:"Shepherd v. Shepherd, 876 P.2d 429",description:"Utah Court of Appeals case establishing principles for property division when marital assets are dissipated.",url:"https://www.divorcenet.com/resources/adultery-and-divorce-utah.html",jurisdiction:"Utah",type:"case-law"}],disclaimers:["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah family law attorney for advice specific to your situation.","Investigation services must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind."]},Vee="/assets/child-welfare-investigation-utah-Dkq7fBnb.jpg",Gee=la("child-welfare-investigations-utah","child-welfare-investigations-safeguarding-children-supporting-families-utah","Child Welfare Investigations: Safeguarding Children, Supporting Families in Utah","Professional child welfare investigation services in Utah. Learn how licensed investigators support child protection, family safety, and work with DCFS in safeguarding children.",`
<p>Child welfare investigations represent one of the most critical and sensitive areas of professional investigative work. In Utah, the <a href="/locations/utah-investigations">Division of Child and Family Services (DCFS)</a> is the primary governmental agency responsible for protecting children from abuse, neglect, and dependency. However, <a href="/services/domestic-investigations">private investigators</a> play a crucial supplemental role in gathering evidence, supporting family law proceedings, and ensuring child safety through legally compliant methods. Understanding Utah's child welfare framework and the role of professional investigation services is essential for protecting vulnerable children and supporting families in crisis.</p>
<h2 id="utah-child-welfare-legal-framework">Utah's Child Welfare Legal Framework</h2>
<h3>Mandatory Reporting Requirements</h3>
<p>Utah law requires any person who has reason to believe that a child has been subjected to abuse, neglect, or dependency to immediately notify the nearest DCFS office, a peace officer, or law enforcement agency. This obligation is codified in Utah Law 62A-4a-403, which establishes a "Good Faith Clause" protecting reporters from legal liability when reports are made in good faith.</p>
<h3>Legal Definitions Under Utah Code</h3>
<p>Utah Administrative Code R512-80-2 provides comprehensive definitions for child welfare investigations:</p>
<ul>
<li><strong>Abuse:</strong> Non-accidental harm or threatened harm of a child, including sexual exploitation or abuse</li>
<li><strong>Neglect:</strong> Action or inaction causing abandonment, lack of proper parental care, failure to provide necessary subsistence, education, or medical care</li>
<li><strong>Dependency:</strong> Circumstances where a child requires intervention due to parental inability to provide adequate care</li>
<li><strong>Environmental Neglect:</strong> An environment posing unreasonable risk to a child's physical health or safety</li>
</ul>
<h3>Investigation Standards</h3>
<p>Utah Administrative Code R512-201-4 requires Child Protective Services investigations to include SDM Safety and Risk Assessments, face-to-face contact with alleged victims, and coordination across jurisdictional boundaries when families move between states.</p>
<h2 id="role-private-investigators-child-welfare">The Role of Private Investigators in Child Welfare</h2>
<h3>Supporting DCFS Investigations</h3>
<p>While DCFS caseworkers face high caseloads and resource limitations, <a href="/services">private investigators</a> can provide focused, specialized support through legally compliant methods. Professional investigators may assist by:</p>
<ul>
<li><strong>Evidence Collection:</strong> Gathering additional documentation and witness statements</li>
<li><strong>Environmental Assessment:</strong> Documenting living conditions and safety concerns</li>
<li><strong>Background Verification:</strong> Researching caregivers and household members</li>
<li><strong>Surveillance Services:</strong> Monitoring concerning situations within legal boundaries</li>
</ul>
<h3>Family Law Integration</h3>
<p>Private investigators frequently work alongside family law attorneys in custody proceedings where child welfare concerns arise. According to FindLaw, professional documentation can be crucial in demonstrating parental fitness and protecting children's best interests in contested custody cases.</p>
<h3>Coordination with Legal Professionals</h3>
<p>Effective child welfare investigations require collaboration with attorneys, guardians ad litem, and court-appointed special advocates. <a href="/contact">Professional investigators</a> provide objective, factual information that supports legal decision-making in children's best interests.</p>
<h2 id="types-child-welfare-investigations">Types of Child Welfare Investigations</h2>
<h3>Custody and Visitation Assessments</h3>
<p>When parents dispute custody arrangements across the <a href="/locations/utah-investigations">Wasatch Front</a>, including <a href="/locations/utah/salt-lake-county">Salt Lake County</a>, <a href="/locations/utah/utah-county">Utah County</a>, <a href="/locations/utah/davis-county">Davis County</a>, <a href="/locations/utah/weber-county">Weber County</a>, and <a href="/locations/utah/tooele-county">Tooele County</a>, private investigators can document:</p>
<ul>
<li><strong>Parental Behavior:</strong> Observation of parent-child interactions and caregiving quality</li>
<li><strong>Home Environment:</strong> Assessment of living conditions, safety, and stability</li>
<li><strong>Substance Use Concerns:</strong> Documentation of concerning behaviors affecting child safety</li>
<li><strong>Supervision Quality:</strong> Evaluation of parental supervision and protection capabilities</li>
</ul>
<h3>Abuse and Neglect Documentation</h3>
<p>In suspected abuse or neglect cases, professional investigators provide:</p>
<ul>
<li><strong>Medical Documentation:</strong> Coordination with healthcare providers for injury documentation</li>
<li><strong>Witness Interviews:</strong> Professional consultation with neighbors, teachers, and family members</li>
<li><strong>Pattern Analysis:</strong> Identification of concerning behavioral patterns or environmental factors</li>
<li><strong>Safety Assessment:</strong> Evaluation of immediate and ongoing risk factors</li>
</ul>
<h3>Interstate Investigations</h3>
<p>Utah Code requires DCFS to coordinate with other states when families move during investigations. <a href="/services/domestic-investigations">Private investigators</a> can provide consistent investigation services across jurisdictional boundaries, ensuring child protection doesn't suffer due to geographic complications.</p>
<h2 id="investigation-methodologies-best-practices">Investigation Methodologies and Best Practices</h2>
<h3>Legal Compliance Standards</h3>
<p>All child welfare investigations must adhere to strict legal and ethical standards:</p>
<ul>
<li><strong>Constitutional Protections:</strong> Respecting Fourth Amendment privacy rights while gathering necessary evidence</li>
<li><strong>Evidence Chain of Custody:</strong> Proper documentation and handling of all investigative materials</li>
<li><strong>Professional Boundaries:</strong> Working within authorized scope and maintaining appropriate relationships</li>
<li><strong>Confidentiality Requirements:</strong> Protecting sensitive information while supporting legitimate investigations</li>
</ul>
<h3>Trauma-Informed Approaches</h3>
<p>Professional child welfare investigators understand the psychological impact of abuse and neglect on children. Best practices include:</p>
<ul>
<li><strong>Minimizing Re-traumatization:</strong> Reducing the number of interviews and using child-friendly techniques</li>
<li><strong>Professional Coordination:</strong> Working with trained child forensic interviewers and mental health professionals</li>
<li><strong>Cultural Sensitivity:</strong> Understanding diverse family structures and cultural practices</li>
<li><strong>Developmental Considerations:</strong> Adapting investigation techniques to children's developmental stages</li>
</ul>
<h2 id="working-with-utah-dcfs">Working with Utah DCFS</h2>
<h3>Understanding DCFS Procedures</h3>
<p>DCFS investigations follow specific timelines and requirements:</p>
<ul>
<li><strong>Initial Contact:</strong> Caseworkers must make face-to-face contact with alleged victims within specified timeframes</li>
<li><strong>Safety Assessment:</strong> Immediate evaluation of child safety and family capacity for protection</li>
<li><strong>Investigation Process:</strong> Comprehensive assessment including medical evaluations when required</li>
<li><strong>Court Coordination:</strong> Preparation of evidence for juvenile court proceedings when necessary</li>
</ul>
<h3>Supporting DCFS Investigations</h3>
<p>Private investigators can enhance DCFS investigations by:</p>
<ul>
<li><strong>Additional Resources:</strong> Providing specialized skills and equipment beyond DCFS capacity</li>
<li><strong>Focused Attention:</strong> Dedicating concentrated time to complex cases requiring detailed investigation</li>
<li><strong>Professional Expertise:</strong> Contributing specialized knowledge in areas like financial analysis or surveillance</li>
<li><strong>Objective Documentation:</strong> Providing unbiased professional assessment of concerning situations</li>
</ul>
<h2 id="special-considerations-utah">Special Considerations in Utah</h2>
<h3>Religious and Cultural Factors</h3>
<p><a href="/locations/utah-investigations">Utah's diverse population</a> requires investigators to understand various religious and cultural practices that may affect family dynamics and child-rearing approaches. Professional investigators must distinguish between cultural differences and genuine welfare concerns.</p>
<h3>Rural vs. Urban Challenges</h3>
<p>Utah's geographic diversity presents different challenges:</p>
<ul>
<li><strong>Rural Areas:</strong> Limited resources, extended family networks, and geographic isolation factors</li>
<li><strong>Urban Centers:</strong> Higher population density, more resources, but potentially greater anonymity</li>
<li><strong>Resource Access:</strong> Varying availability of support services and professional resources</li>
</ul>
<h2 id="indicators-requiring-professional-investigation">Indicators Requiring Professional Investigation</h2>
<h3>Immediate Safety Concerns</h3>
<p>Situations requiring immediate professional assessment include:</p>
<ul>
<li><strong>Physical Injury:</strong> Unexplained injuries or patterns suggesting abuse</li>
<li><strong>Environmental Hazards:</strong> Unsafe living conditions or exposure to dangerous substances</li>
<li><strong>Supervision Failures:</strong> Children left alone inappropriately or exposed to dangerous situations</li>
<li><strong>Substance Exposure:</strong> Children exposed to illegal drug activity or unsafe substance use</li>
</ul>
<h3>Behavioral and Emotional Indicators</h3>
<p>Professional investigation may be warranted when children exhibit:</p>
<ul>
<li><strong>Sudden Behavioral Changes:</strong> Dramatic shifts in behavior, mood, or academic performance</li>
<li><strong>Age-Inappropriate Knowledge:</strong> Sexual knowledge or behavior inappropriate for developmental stage</li>
<li><strong>Fear Responses:</strong> Excessive fear of specific individuals or situations</li>
<li><strong>Regression:</strong> Loss of previously acquired developmental skills</li>
</ul>
<h2 id="professional-standards-ethics">Professional Standards and Ethics</h2>
<h3>Licensed Investigator Requirements</h3>
<p>Child welfare investigations require specialized skills and legal knowledge. Licensed investigators must:</p>
<ul>
<li><strong>Maintain Current Training:</strong> Stay updated on child development, trauma responses, and legal requirements</li>
<li><strong>Professional Certification:</strong> Hold appropriate licenses and certifications for investigative work</li>
<li><strong>Ethical Standards:</strong> Adhere to strict professional codes governing child welfare investigations</li>
<li><strong>Continuing Education:</strong> Participate in ongoing training on child protection and investigation techniques</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>Child welfare investigations in <a href="/locations/utah-investigations">Utah</a> require a comprehensive understanding of state laws, DCFS procedures, and professional investigation techniques. Licensed private investigators serve as crucial supplements to governmental child protection services, providing specialized skills and focused attention to complex cases requiring detailed investigation.</p>
<p>The primary goal of all child welfare investigations must be protecting children while supporting families through crisis situations. <a href="/services/domestic-investigations">Professional investigators</a> working in this field must maintain the highest ethical standards, work within strict legal boundaries, and prioritize children's safety and well-being above all other considerations.</p>
<p>When child welfare concerns arise, early intervention through professional investigation can make the difference between protecting a vulnerable child and allowing dangerous situations to continue. Working with experienced, licensed investigators who understand Utah's child welfare laws and DCFS procedures ensures that investigations meet legal standards while serving children's best interests.</p>
<p>For families facing child welfare investigations or custody disputes involving child safety concerns, <a href="/contact">professional investigation services</a> can provide crucial support in documenting facts, protecting rights, and ensuring that children's welfare remains the paramount consideration in all legal proceedings.</p>
<p><strong>Remember:</strong> If a child is in immediate danger, contact local law enforcement or emergency services immediately. Professional investigation services supplement but do not replace emergency intervention when children face immediate threats to their safety.</p>
`,"Family Law Investigations","child-welfare","child welfare investigations Utah",["Utah child protection","child safety concerns","family protection services","DCFS investigations","child custody investigations"],[{title:"Utah Division of Child and Family Services",description:"Primary governmental agency responsible for protecting children from abuse, neglect, and dependency in Utah.",url:"https://dcfs.utah.gov/services/child-protective-services/",jurisdiction:"Utah",type:"government-agency"},{title:"Utah Law 62A-4a-403 - Mandatory Reporting",description:"Utah statute requiring reporting of suspected child abuse, neglect, or dependency.",url:"https://le.utah.gov/xcode/Title62A/Chapter4A/62A-4a-S403.html",jurisdiction:"Utah",type:"statute"},{title:"Utah Administrative Code R512-80-2",description:"Administrative code providing comprehensive definitions for child welfare investigations.",url:"https://rules.utah.gov/publicat/code/r512/r512-080.htm",jurisdiction:"Utah",type:"regulation"}],["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah family law attorney for advice specific to your situation.","Child welfare investigations must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards when working with sensitive child welfare matters.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed in child welfare cases.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind.","If a child is in immediate danger, contact local law enforcement (911) or the Utah Child Abuse Hotline at 1-855-323-DCFS (3237) immediately."],"2025-06-24",Vee),Yee="/assets/surveillance-technology-utah-Dd2Skv5Y.jpg",Kee=la("surveillance-technology-utah","surveillance-technology-modern-tools-legal-compliance-utah-private-investigation","Surveillance Technology: Modern Tools and Legal Compliance in Utah Private Investigation","Comprehensive guide to surveillance technology used by Utah private investigators. Learn about modern investigation tools, legal compliance requirements, and professional standards.",`
<p>Surveillance technology has revolutionized private investigation, providing sophisticated tools that enhance evidence collection while requiring strict adherence to legal boundaries and privacy protections. In Utah, <a href="/services">licensed private investigators</a> must navigate complex technology regulations while leveraging advanced equipment to serve client needs effectively. Understanding modern surveillance capabilities, legal limitations, and professional standards ensures that technology enhances investigation effectiveness while maintaining full compliance with state and federal law.</p>
<h2 id="evolution-surveillance-technology">Evolution of Surveillance Technology in Private Investigation</h2>
<h3>Historical Context and Modern Development</h3>
<p>Private investigation has transformed dramatically from basic observation and manual documentation to sophisticated technological systems that provide comprehensive evidence collection capabilities. This evolution reflects broader technological advancement while requiring ongoing professional education and legal compliance training.</p>
<h3>Utah's Regulatory Framework</h3>
<p><a href="/locations/utah-investigations">Utah's Bureau of Criminal Identification</a> oversees private investigator licensing and conduct, with regulations that address technology use in professional investigations. The Private Investigators Association of Utah (PIAU) has worked to ensure that technology regulations balance investigative effectiveness with privacy protection and legal compliance.</p>
<h3>Professional Standards for Technology Use</h3>
<p>Licensed Utah investigators must meet strict professional standards for technology deployment, including understanding legal boundaries, maintaining equipment certification, and ensuring evidence collection meets court admissibility requirements. These standards protect both investigators and their clients while maintaining investigation integrity.</p>
<h2 id="modern-surveillance-equipment">Modern Surveillance Equipment and Capabilities</h2>
<h3>Professional Photography and Video Systems</h3>
<p>Contemporary surveillance relies heavily on advanced imaging technology that provides clear documentation while maintaining investigator safety and evidence quality.</p>
<p><strong>High-Definition Camera Systems:</strong></p>
<ul>
<li>Professional DSLR cameras with telephoto lenses for long-distance documentation</li>
<li>High-definition video cameras with image stabilization and low-light capabilities</li>
<li>Covert camera systems for discrete documentation in appropriate circumstances</li>
<li>Digital storage systems ensuring evidence integrity and proper chain of custody</li>
</ul>
<p><strong>Specialized Imaging Technology:</strong></p>
<ul>
<li>Night vision and low-light imaging equipment for extended surveillance operations</li>
<li>Multiple angle documentation systems for comprehensive evidence collection</li>
<li>Time-lapse photography capabilities for long-term pattern documentation</li>
<li>Professional lighting and enhancement tools for optimal evidence quality</li>
</ul>
<p><strong>Mobile Surveillance Platforms:</strong></p>
<ul>
<li>Professionally equipped vehicles with discrete observation capabilities</li>
<li>Mobile command centers for extended surveillance operations</li>
<li>Coordination systems for multi-investigator surveillance teams</li>
<li>Professional communication equipment for secure team coordination</li>
</ul>
<h3>Digital Investigation and Analysis Tools</h3>
<p>Modern <a href="/services/domestic-investigations">private investigation</a> increasingly involves digital evidence collection and analysis requiring specialized software and technical expertise.</p>
<p><strong>Database Access and Research Tools:</strong></p>
<ul>
<li>Professional investigative databases for background research and verification</li>
<li>Public records access systems for comprehensive information gathering</li>
<li>Social media monitoring tools operating within legal privacy boundaries</li>
<li>Financial investigation software for asset research and transaction analysis</li>
</ul>
<p><strong>Communication Analysis Systems:</strong></p>
<ul>
<li>Professional software for analyzing available communication patterns and timing</li>
<li>Social media investigation tools for relationship development analysis</li>
<li>Digital footprint analysis for comprehensive online presence evaluation</li>
<li>Secure data storage systems protecting sensitive investigation information</li>
</ul>
<h2 id="legal-compliance-technology-limitations">Legal Compliance and Technology Limitations</h2>
<h3>Utah Privacy Laws and Surveillance Restrictions</h3>
<p><a href="/locations/utah-investigations">Utah law</a> establishes strict boundaries for surveillance technology use, requiring professional investigators to understand and comply with privacy protections while conducting effective investigations.</p>
<p><strong>Location Tracking Restrictions:</strong></p>
<ul>
<li>Prohibition against placing tracking devices on vehicles or property without consent</li>
<li>Legal limitations on GPS monitoring and location service access</li>
<li>Professional understanding of public vs. private property surveillance boundaries</li>
<li>Compliance requirements for any authorized tracking activities</li>
</ul>
<p><strong>Communication Monitoring Laws:</strong></p>
<ul>
<li>Strict restrictions on unauthorized access to private communications</li>
<li>Legal requirements for consent in communication recording and monitoring</li>
<li>Professional compliance with federal wiretapping laws and privacy protections</li>
<li>Understanding of social media privacy settings and legal access limitations</li>
</ul>
<h3>Photography and Video Recording Regulations</h3>
<p>Professional surveillance must operate within constitutional privacy protections while providing effective evidence collection capabilities.</p>
<p><strong>Public vs. Private Space Documentation:</strong></p>
<ul>
<li>Legal authority for photography and video recording in public spaces</li>
<li>Restrictions on surveillance in private residences and personal property</li>
<li>Professional understanding of reasonable expectation of privacy standards</li>
<li>Compliance requirements for documentation in commercial and business locations</li>
</ul>
<p>Investigators serving <a href="/locations/utah/salt-lake-county">Salt Lake County</a>, <a href="/locations/utah/utah-county">Utah County</a>, <a href="/locations/utah/davis-county">Davis County</a>, <a href="/locations/utah/weber-county">Weber County</a>, and <a href="/locations/utah/tooele-county">Tooele County</a> must be particularly aware of local ordinances and regulations that may impose additional restrictions on surveillance activities across the Wasatch Front region.</p>
<h2 id="professional-equipment-standards">Professional Equipment Standards and Certification</h2>
<h3>Industry Standards for Investigation Equipment</h3>
<p>Licensed private investigators must use professional-grade equipment that meets industry standards for reliability, accuracy, and legal compliance.</p>
<p><strong>Equipment Certification and Calibration:</strong></p>
<ul>
<li>Professional certification for surveillance equipment ensuring accurate documentation</li>
<li>Regular calibration and maintenance of technical equipment</li>
<li>Documentation of equipment specifications for court testimony requirements</li>
<li>Professional training on proper equipment operation and legal boundaries</li>
</ul>
<p><strong>Evidence Management Standards:</strong></p>
<ul>
<li>Professional case management software for investigation organization</li>
<li>Secure evidence storage systems maintaining chain of custody requirements</li>
<li>Digital evidence authentication tools ensuring legal admissibility</li>
<li>Client communication portals providing secure progress reporting</li>
</ul>
<h2 id="emerging-technologies-future-trends">Emerging Technologies and Future Trends</h2>
<h3>Advanced Analytics and AI Integration</h3>
<p>The future of surveillance technology includes advanced analytics capabilities that enhance investigation efficiency while maintaining legal compliance requirements.</p>
<p><strong>Pattern Recognition Technology:</strong></p>
<ul>
<li>Advanced software for identifying behavioral patterns and anomalies</li>
<li>Facial recognition technology operating within legal privacy boundaries</li>
<li>Vehicle tracking and identification systems for comprehensive surveillance</li>
<li>Professional integration of AI tools with human investigative expertise</li>
</ul>
<h3>Legal and Ethical Considerations for New Technology</h3>
<p>As technology advances, professional investigators must stay current with evolving legal requirements and ethical standards governing new surveillance capabilities.</p>
<p><strong>Ongoing Professional Development:</strong></p>
<ul>
<li>Regular training on new technology capabilities and legal limitations</li>
<li>Professional certification maintenance for advanced surveillance systems</li>
<li>Understanding of evolving privacy laws and technology regulations</li>
<li>Ethical guidelines for responsible technology deployment in investigations</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>Surveillance technology continues to evolve, providing <a href="/services">Utah private investigators</a> with sophisticated tools for evidence collection and case development. However, technological capability must always be balanced with legal compliance, ethical standards, and privacy protections that ensure professional investigation serves legitimate interests while respecting individual rights.</p>
<p><strong>Technology Selection and Professional Discretion:</strong> The surveillance technologies and methods discussed in this article represent commonly used professional tools in the private investigation industry. However, <a href="/contact">our investigation team</a> maintains the discretion to utilize additional technologies, resources, and methodologies not specifically mentioned here, based on the unique requirements of each case and the most current available professional tools. Technology selection is determined by case-specific needs, legal compliance requirements, and professional best practices.</p>
<p>The most effective private investigators understand that technology enhances but does not replace professional expertise, legal knowledge, and ethical judgment. <a href="/contact">Professional investigation services</a> that combine advanced surveillance technology with comprehensive legal compliance provide clients with the most effective and reliable investigation outcomes.</p>
<p>For clients considering professional investigation services, understanding modern surveillance capabilities and legal limitations helps ensure realistic expectations and optimal case outcomes. Working with <a href="/locations/utah-investigations">licensed Utah investigators</a> who maintain current technology standards and legal compliance provides the best foundation for successful investigation results.</p>
<p>As surveillance technology continues advancing, professional investigators must balance innovation with responsibility, ensuring that technological capabilities serve legitimate investigation goals while maintaining the highest standards of legal compliance and ethical conduct.</p>
`,"Investigation Technology","surveillance-technology","surveillance technology Utah",["Utah private investigator technology","investigation equipment","legal surveillance methods","professional investigation tools","modern surveillance equipment"],[{title:"Utah Bureau of Criminal Identification - Private Investigator Licensing",description:"State agency overseeing private investigator licensing and conduct requirements in Utah.",url:"https://bci.utah.gov/licensing/private-investigator/",jurisdiction:"Utah",type:"government-agency"},{title:"Private Investigators Association of Utah (PIAU)",description:"Professional organization promoting ethical standards and legal compliance in Utah private investigation.",url:"https://www.piau.org/",jurisdiction:"Utah",type:"professional-organization"},{title:"Utah Code Β§ 53-9-104 - Private Investigator Conduct",description:"Utah statute governing professional conduct and standards for licensed private investigators.",url:"https://le.utah.gov/xcode/Title53/Chapter9/53-9-S104.html",jurisdiction:"Utah",type:"statute"}],["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah attorney for advice specific to your situation.","Surveillance technology must be used in compliance with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards governing technology use.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind.","All surveillance activities must comply with privacy laws and constitutional protections. Unauthorized surveillance or technology use may result in criminal liability."],"2025-06-17",Yee),Xee=la("detecting-false-insurance-claims","detecting-false-insurance-claims-expert-insights","Detecting False Insurance Claims: Expert Insights","Expert insights into detecting fraudulent insurance claims. Learn professional investigation techniques, warning signs, and legal compliance requirements.",`
<p>Insurance fraud costs the industry billions of dollars annually and drives up premiums for honest policyholders. <a href="/services">Professional private investigators</a> play a crucial role in detecting false insurance claims through specialized investigation techniques, advanced evidence gathering, and comprehensive fraud analysis. Understanding the methods used to identify fraudulent claims helps insurance companies protect their interests while ensuring legitimate claims receive proper attention and fair settlements.</p>
<h2 id="understanding-insurance-fraud">Understanding Insurance Fraud and Its Impact</h2>
<h3>Types of Insurance Fraud</h3>
<p>Insurance fraud encompasses various deceptive practices designed to obtain undeserved benefits or payments from insurance companies.</p>
<p><strong>Common Types of Fraudulent Claims:</strong></p>
<ul>
<li>Staged accidents and collisions designed to generate false injury claims</li>
<li>Exaggerated property damage claims with inflated repair costs</li>
<li>False disability claims involving fabricated or exaggerated injuries</li>
<li>Healthcare fraud including unnecessary treatments and billing irregularities</li>
</ul>
<p><strong>Financial Impact on the Industry:</strong></p>
<ul>
<li>Increased premiums for all policyholders due to fraudulent claim payouts</li>
<li>Administrative costs associated with fraud investigation and prevention</li>
<li>Legal expenses for pursuing fraudulent claim prosecution</li>
<li>Reduced profitability affecting insurance company stability and growth</li>
</ul>
<h3>Professional Investigation Response</h3>
<p><a href="/services/insurance-investigations">Insurance investigation specialists</a> work closely with insurance companies to identify suspicious claims and gather evidence supporting fraud allegations. This collaborative approach ensures thorough investigation while maintaining legal compliance and professional standards.</p>
<h2 id="investigation-techniques-fraud-detection">Investigation Techniques for Fraud Detection</h2>
<h3>Initial Claim Analysis and Red Flag Identification</h3>
<p>Professional investigators begin fraud detection with comprehensive claim analysis, examining documentation, timelines, and circumstances for inconsistencies or suspicious patterns.</p>
<p><strong>Documentation Review Process:</strong></p>
<ul>
<li>Detailed analysis of claim forms, medical records, and police reports</li>
<li>Timeline construction to identify inconsistencies and gaps in reported events</li>
<li>Verification of witness statements and supporting documentation</li>
<li>Cross-referencing claim details with available public records and databases</li>
</ul>
<p><strong>Common Red Flags in Fraudulent Claims:</strong></p>
<ul>
<li>Inconsistent or changing statements about incident details and circumstances</li>
<li>Delayed reporting of incidents without reasonable explanation</li>
<li>Unusual patterns in medical treatment or excessive therapy claims</li>
<li>Claimants with histories of multiple previous insurance claims</li>
</ul>
<h3>Surveillance and Evidence Gathering</h3>
<p>Professional surveillance forms a cornerstone of insurance fraud investigation, providing objective evidence of claimant activities and capabilities.</p>
<p><strong>Surveillance Investigation Methods:</strong></p>
<ul>
<li>Professional video and photographic documentation of claimant activities</li>
<li>Activity monitoring to assess claimed disabilities versus actual capabilities</li>
<li>Social media investigation within legal privacy boundaries</li>
<li>Witness interviews and statement collection for comprehensive case development</li>
</ul>
<p>Investigators serving <a href="/locations/utah/salt-lake-county">Salt Lake County</a>, <a href="/locations/utah/utah-county">Utah County</a>, and surrounding areas must understand local legal requirements governing surveillance activities and evidence collection procedures.</p>
<h2 id="advanced-investigation-methods">Advanced Investigation Methods and Technology</h2>
<h3>Digital Investigation and Analysis</h3>
<p>Modern insurance fraud investigation incorporates advanced digital analysis techniques to uncover evidence that may not be apparent through traditional investigation methods.</p>
<p><strong>Digital Evidence Collection:</strong></p>
<ul>
<li>Social media analysis for evidence contradicting claimed limitations or injuries</li>
<li>Public records research for comprehensive background and history verification</li>
<li>Database searches for patterns of previous claims or related activities</li>
<li>Professional network analysis to identify potential co-conspirators or organized fraud</li>
</ul>
<p><strong>Financial Investigation Techniques:</strong></p>
<ul>
<li>Asset verification to assess financial motivations for fraudulent claims</li>
<li>Employment verification to confirm claimed income losses and disabilities</li>
<li>Banking and financial record analysis where legally appropriate and authorized</li>
<li>Business investigation for commercial claims involving company operations</li>
</ul>
<h3>Expert Witness Services and Legal Support</h3>
<p><a href="/services">Professional investigators</a> provide expert witness testimony and legal support throughout the claim denial and prosecution process.</p>
<p><strong>Legal Support Services:</strong></p>
<ul>
<li>Expert witness testimony regarding investigation findings and methodologies</li>
<li>Comprehensive case file preparation for legal proceedings</li>
<li>Collaboration with attorneys and prosecutors in fraud prosecution cases</li>
<li>Professional testimony regarding industry standards and investigation practices</li>
</ul>
<h2 id="legal-compliance-ethical-standards">Legal Compliance and Ethical Standards</h2>
<h3>Utah Legal Requirements for Insurance Investigation</h3>
<p><a href="/locations/utah-investigations">Utah private investigators</a> must comply with strict legal and ethical standards when conducting insurance fraud investigations.</p>
<p><strong>Legal Compliance Requirements:</strong></p>
<ul>
<li>Licensed investigator certification and ongoing education requirements</li>
<li>Privacy law compliance in surveillance and information gathering activities</li>
<li>Proper evidence collection procedures ensuring legal admissibility</li>
<li>Professional conduct standards established by state licensing authorities</li>
</ul>
<p><strong>Ethical Investigation Practices:</strong></p>
<ul>
<li>Objective evidence collection without bias toward predetermined outcomes</li>
<li>Truthful reporting of investigation findings regardless of client preferences</li>
<li>Respect for individual privacy rights within legal investigation boundaries</li>
<li>Professional integrity in testimony and case presentation</li>
</ul>
<h2 id="case-development-prosecution-support">Case Development and Prosecution Support</h2>
<h3>Building Strong Fraud Cases</h3>
<p>Successful insurance fraud prosecution requires comprehensive case development with legally admissible evidence and professional testimony support.</p>
<p><strong>Evidence Package Development:</strong></p>
<ul>
<li>Comprehensive documentation of all investigation activities and findings</li>
<li>Professional video and photographic evidence with proper authentication</li>
<li>Witness statement collection and verification for case support</li>
<li>Expert analysis reports explaining investigation methodologies and conclusions</li>
</ul>
<p><strong>Prosecution Collaboration:</strong></p>
<ul>
<li>Close cooperation with insurance company legal teams and fraud units</li>
<li>Professional consultation with prosecutors regarding case strength and strategy</li>
<li>Expert witness preparation for trial testimony and evidence presentation</li>
<li>Ongoing case support throughout legal proceedings and appeals processes</li>
</ul>
<h2 id="prevention-future-fraud">Prevention and Future Fraud Mitigation</h2>
<h3>Proactive Fraud Prevention Strategies</h3>
<p>Professional investigation services extend beyond individual case investigation to include fraud prevention consulting and system improvement recommendations.</p>
<p><strong>Prevention Consulting Services:</strong></p>
<ul>
<li>Claims processing system review and improvement recommendations</li>
<li>Staff training on fraud detection techniques and red flag identification</li>
<li>Investigation protocol development for consistent fraud detection procedures</li>
<li>Technology implementation consultation for enhanced fraud detection capabilities</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>Detecting false insurance claims requires professional expertise, advanced investigation techniques, and strict adherence to legal and ethical standards. <a href="/services/insurance-investigations">Professional investigators</a> provide insurance companies with the specialized skills and resources necessary to identify fraudulent claims while protecting legitimate claimants and maintaining industry integrity.</p>
<p>The most effective insurance fraud investigation combines traditional investigation methods with modern technology and comprehensive legal compliance. <a href="/contact">Professional investigation services</a> that understand both the technical aspects of fraud detection and the legal requirements for evidence collection provide insurance companies with the strongest foundation for protecting their interests and serving their policyholders effectively.</p>
<p>For insurance companies seeking professional fraud investigation services, working with <a href="/locations/utah-investigations">licensed Utah investigators</a> who specialize in insurance fraud detection ensures access to the expertise and resources necessary for successful fraud identification and prosecution support.</p>
<p>As insurance fraud continues evolving with new technologies and methods, professional investigators must stay current with investigation techniques, legal requirements, and industry best practices to provide effective fraud detection services that protect both insurance companies and honest policyholders from the financial impact of fraudulent claims.</p>
`,"Insurance Investigations","insurance-fraud","detecting false insurance claims",["Utah insurance fraud investigation","false insurance claims","insurance fraud detection","professional fraud investigation","insurance claim analysis"],[{title:"Utah Bureau of Criminal Identification - Private Investigator Licensing",description:"State agency overseeing private investigator licensing and conduct requirements in Utah.",url:"https://bci.utah.gov/licensing/private-investigator/",jurisdiction:"Utah",type:"government-agency"},{title:"National Insurance Crime Bureau (NICB)",description:"Non-profit organization dedicated to preventing insurance fraud and crime.",url:"https://www.nicb.org/",jurisdiction:"National",type:"professional-organization"},{title:"Utah Code Β§ 76-6-521 - Insurance Fraud",description:"Utah statute defining insurance fraud and establishing criminal penalties.",url:"https://le.utah.gov/xcode/Title76/Chapter6/76-6-S521.html",jurisdiction:"Utah",type:"statute"}],["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah attorney for advice specific to your situation.","Insurance fraud investigation must be conducted in compliance with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind.","All investigation activities must comply with privacy laws and constitutional protections. Unauthorized surveillance or investigation may result in criminal liability."],"2025-06-10"),Qee={id:"post-malone-utah-custody-battle-analysis",slug:"post-malone-utah-custody-battle-private-investigator-analysis",title:"Protecting Your Child's Best Interests: Lessons from High-Profile Custody Cases - The Ultimate Guide",excerpt:"How Post Malone's Utah custody victory reveals critical protection strategies every parent should know. Learn to defend against custody manipulation tactics and protect your child's stability through professional investigation.",content:`
<div class="prose max-w-none">
<p class="lead">A recent high-profile custody case involving music artist Post Malone offers valuable insights for parents navigating complex custody disputes. When his ex-fiancΓ©e attempted to file for primary custody in California after moving there from Utahβwhere their 3-year-old daughter livedβPost Malone's legal team successfully challenged what they characterized as a "back door attempt" to relocate the child. The case was ultimately dismissed, with custody arrangements returning to <a href="/locations/utah-investigations">Utah courts</a> where the child's primary residence was established.</p>
<p>This case highlights critical <a href="/child-custody-investigations">custody protection strategies</a> that every parent should understand when facing similar challenges. Whether you're dealing with a high-profile case or a standard custody dispute, the lessons learned here can help protect your child's best interests through professional investigation and legal strategy.</p>
<h2 id="understanding-jurisdictional-manipulation">Understanding Jurisdictional Manipulation in Custody Cases</h2>
<p>One of the most concerning tactics in custody disputes involves jurisdictional manipulationβwhen one parent attempts to move legal proceedings to a different state or county to gain advantage. In Post Malone's case, his ex-fiancΓ©e's relocation to California and subsequent custody filing there raised red flags about potential forum shopping.</p>
<p>As <a href="/services/domestic-investigations">professional family law investigators</a>, we've seen similar patterns where one parent:</p>
<ul>
<li>Relocates to a state with different custody laws</li>
<li>Files in courts they believe will be more favorable</li>
<li>Attempts to establish new "home state" jurisdiction</li>
<li>Uses geographical distance to complicate the other parent's participation</li>
</ul>
<p>These tactics can seriously impact your child's stability and your parental rights through improper venue manipulation. Understanding these patterns is the first step in protecting your family through <a href="/about">professional investigation services</a>.</p>
<h2 id="why-utah-jurisdiction-matters">Why Utah Jurisdiction Matters in Custody Cases</h2>
<p><a href="/locations/utah-investigations">Utah's family court system</a> offers several strategic advantages that make it attractive for custody disputes. The state's <strong>expedited hearing schedules</strong> mean cases move faster than in California's backlogged courts. Utah judges also have a reputation for focusing on <strong>evidence over celebrity status</strong>, creating a more level playing field.</p>
<p>Utah follows the Uniform Child Custody Jurisdiction and Enforcement Act (UCCJEA), which prioritizes the child's "home state" for custody determinations. This means:</p>
<ul>
<li>The state where the child has lived for six consecutive months typically has jurisdiction</li>
<li>Courts consider the child's best interests over parental convenience</li>
<li>Attempts to manipulate venue are viewed unfavorably by judges</li>
<li>Evidence of forum shopping can impact custody decisions</li>
</ul>
<p>More importantly, Utah's discovery rules allow for comprehensive investigation of both parents' living situations, financial stability, and parenting capabilities. This is where <a href="/surveillance">private investigators</a> become invaluable - Utah courts readily accept properly documented surveillance evidence, background investigations, and witness statements that might face more scrutiny in other jurisdictions.</p>
<h2 id="professional-investigation-custody-protection">The Role of Professional Investigation in Custody Protection</h2>
<p>When facing potential custody manipulation, <a href="/services/domestic-investigations">professional investigation services</a> provide crucial support through legally compliant methods. In high-stakes custody cases like Post Malone's, private investigators serve as the eyes and ears that attorneys need to build compelling cases.</p>
<h3>Documentation of Living Arrangements</h3>
<p>Professional investigators can verify actual living situations, documenting where children truly reside versus where legal filings claim. This evidence becomes vital when challenging inappropriate venue changes. We document everything with timestamps, GPS coordinates, and proper chain of custody procedures to ensure court admissibility.</p>
<h3>Monitoring Relocation Patterns</h3>
<p>Sudden relocations before custody filings often indicate strategic positioning rather than genuine need. Our investigators track these patterns through legal methods, providing courts with factual timelines that can expose manipulative tactics.</p>
<h3>Evidence Collection That Courts Accept</h3>
<p>Professional investigators understand <a href="/locations/utah-investigations">Utah's strict evidence rules</a>. When we conduct surveillance of a parent's activities, we're not just taking photos - we're creating court-admissible evidence that can demonstrate parenting patterns, lifestyle choices, and living conditions.</p>
<p>For high-profile cases, this might include documenting touring schedules, late-night activities, substance use patterns, or the presence of unsuitable influences around children. Every piece of evidence must meet Utah's evidentiary standards across all Wasatch Front jurisdictions.</p>
<h3>Gathering Supporting Evidence</h3>
<p>From school enrollment records to medical provider locations, professional investigators compile comprehensive evidence showing a child's true home state through proper legal channels. This includes <a href="/background-checks">thorough background investigations</a> of all parties involved with the children.</p>
<h2 id="red-flags-custody-manipulation">Red Flags That Warrant Professional Investigation</h2>
<p>Watch for these warning signs that may indicate custody manipulation requiring immediate professional attention:</p>
<div class="bg-amber-50 border-l-4 border-l-amber-500 p-4 my-6">
<h4 class="font-semibold text-amber-900 mb-2">Immediate Red Flags:</h4>
<ul class="text-amber-800 space-y-1">
<li><strong>Sudden Relocation:</strong> An ex-partner moves to a different state shortly before filing custody petitions</li>
<li><strong>New Legal Venue:</strong> Custody cases filed in courts far from where your child primarily lives</li>
<li><strong>School Enrollment Changes:</strong> Attempts to enroll children in new schools to establish residency</li>
<li><strong>Medical Provider Changes:</strong> Switching to new doctors or services in a different jurisdiction</li>
<li><strong>Extended Visitation:</strong> Using long visits to establish temporary residence patterns</li>
</ul>
</div>
<h2 id="building-defense-trident-investigations">Building Your Defense: How Trident Investigations Can Help</h2>
<p>When facing custody challenges, <a href="/child-custody-investigations">professional investigation services</a> provide essential support that can make the difference between winning and losing your case:</p>
<h3>Comprehensive Documentation</h3>
<p>We gather evidence of your child's established lifeβschools, healthcare providers, social connections, and residence historyβall through legally compliant methods that meet <a href="/locations/utah-investigations">Utah court standards</a>.</p>
<h3>Background Investigations and Witness Location</h3>
<p><a href="/locations/utah-investigations">Utah's family courts</a> require comprehensive background checks on all parties involved with the children. This includes nannies, new romantic partners, household staff, and frequent visitors. Our investigators conduct thorough vetting that includes:</p>
<ul>
<li>Criminal history verification across all relevant jurisdictions</li>
<li>Employment and financial stability assessments</li>
<li>Social media analysis for concerning behavior patterns</li>
<li>Reference checks with former employers and associates</li>
<li>Substance abuse history investigation through <a href="/background-checks">professional verification services</a></li>
</ul>
<h3>Court-Admissible Reports</h3>
<p>All evidence is compiled into comprehensive reports that meet legal standards for custody proceedings, supporting your attorney's arguments with professionally documented facts.</p>
<h3>Ongoing Support</h3>
<p>Custody disputes often evolve over time. We provide continued monitoring and investigation services as your case develops through legal frameworks, ensuring you maintain the evidential advantage.</p>
<blockquote class="border-l-4 border-blue-500 pl-4 italic text-gray-700 my-6">
"In my 15 years of family law investigations, I've seen how proper evidence collection can protect children from being used as pawns in jurisdictional games. The key is acting quickly and professionally when red flags appear." - CH, Senior Custody Investigator, Trident Investigations
</blockquote>
<h2 id="protecting-child-stability">Protecting Your Child's Stability</h2>
<p>The Post Malone case demonstrates how proper legal response and evidence gathering can protect children from being used as pawns in jurisdictional games. When one parent attempts to manipulate venue for advantage, <a href="/services/domestic-investigations">professional investigation</a> helps ensure the child's true best interests remain the focus.</p>
<p>At <a href="/about">Trident Investigations</a>, we understand the emotional toll of custody disputes. Our team approaches every case with sensitivity and precision, always operating within legal boundaries while safeguarding your child's welfare. We specialize in <a href="/family-law">family law support</a> that makes a measurable difference in case outcomes.</p>
<h2 id="take-action-custody-protection">Don't Face Custody Challenges Alone</h2>
<p>If you're concerned about potential custody manipulation or need to document your child's established life patterns, <a href="/child-custody-investigations">professional investigation services</a> can provide the clarity and evidence you need. The sooner you act, the better positioned you'll be to protect your parental rights and your child's best interests.</p>
<div class="bg-blue-50 border border-blue-200 rounded-lg p-6 my-6">
<h3 class="text-blue-900 font-semibold mb-3">Take Action Today:</h3>
<ul class="text-blue-800 space-y-2">
<li>β Document your child's current living situation</li>
<li>β Gather evidence of established routines and connections</li>
<li>β Monitor any concerning relocation patterns</li>
<li>β Consult with experienced investigators about your specific situation</li>
</ul>
</div>
<h2 id="contact-professional-help">Contact Trident Investigations</h2>
<p>Custody disputes require swift, professional response. Our licensed team specializes in <a href="/family-law">family law investigations</a>, providing the evidence and support you need to protect your children through legally compliant methods.</p>
<div class="text-center bg-gray-50 p-6 rounded-lg my-6">
<p class="text-xl font-semibold text-gray-900 mb-2">π <strong>Call us today: 385-275-8220</strong></p>
<p class="text-lg text-gray-800 mb-4">π <strong><a href="/contact" class="text-trident-blue hover:text-trident-orange underline">Schedule Your Confidential Consultation</a></strong></p>
<p class="text-gray-700">Don't let custody manipulation tactics threaten your child's stability.</p>
</div>
<p>Whether you're a celebrity like Post Malone or a working parent fighting for time with your children, <a href="/contact">professional investigation</a> can provide the evidence needed to protect your parental rights. <a href="/locations/utah-investigations">Utah's family court system</a> rewards thorough preparation and quality evidence over emotional appeals.</p>
<p>The investment in <a href="/services/domestic-investigations">professional investigation services</a> often pays for itself many times over in improved custody arrangements, reduced ongoing legal costs, and most importantly, more time with your children.</p>
</div>
`,publishDate:"2025-09-23",category:"Family Law Investigations",author:"CH",authorTitle:"Senior Custody Investigator, Trident Investigations",keywordFocus:"child custody protection, custody jurisdiction, Utah child custody, parental relocation",tags:["Child Custody","Custody Investigation","Parental Relocation","Utah Family Law","Custody Protection","Private Investigator","Family Protection","Jurisdictional Disputes"],featured:!0,metaDescription:"Learn how to protect your children from custody manipulation tactics. Professional investigation services help parents navigate complex custody disputes and jurisdictional challenges.",seoData:Bh("child custody protection",["custody jurisdiction","Utah child custody","parental relocation","custody manipulation","family law investigation"],"Protecting Your Child's Best Interests: Lessons from High-Profile Custody Cases - The Ultimate Guide","Learn how to protect your children from custody manipulation tactics. Professional investigation services help parents navigate complex custody disputes and jurisdictional challenges.",15,4200,"/lovable-uploads/de5c9241-d01c-4005-939e-2b5401e3da67.png","Child custody protection guide with professional investigation strategies"),conversionData:Wh("consultation"),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh("Protecting Your Child's Best Interests: Lessons from High-Profile Custody Cases - The Ultimate Guide","Learn how to protect your children from custody manipulation tactics. Professional investigation services help parents navigate complex custody disputes and jurisdictional challenges.","CH","2025-09-23")},Jee=la("byron-cabot-workplace-affair-utah-investigation","utah-workplace-affair-investigation-byron-cabot-case-divorce-evidence","Workplace Affair Investigation: Byron-Cabot Case Reveals Divorce Law Impact","Utah private investigators analyze the viral Byron-Cabot workplace affair case, revealing how professional investigation evidence impacts alimony, asset division, and divorce outcomes in Utah courts.",`
<p>Sometimes, the most private betrayals become the most public scandals. In July 2025, a Coldplay concert kiss cam moment involving Astronomer CEO Andy Byron and Chief People Officer Kristin Cabot sparked widespread speculation about a potential workplace affair. While the individuals involved deserve privacy regarding their personal lives, this incident provides valuable insights into how modern infidelity cases unfoldβand why professional investigation services are more crucial than ever.</p>
<p>At <strong>Trident Investigations</strong>, we've seen similar scenarios countless times. What begins as suspicion often leads to a complex web of personal, professional, and legal consequences. Understanding these dynamics can help you recognize when professional support becomes essential for protecting your rights and future.</p>
<h2>The Anatomy of Modern Workplace Affairs</h2>
<p><strong>When Suspicion Becomes Reality</strong></p>
<p>The Byron-Cabot incident highlights how quickly private matters can become public knowledge. In our experience, most infidelity cases follow a predictable pattern: initial suspicion, escalating behavioral changes, and eventually, undeniable evidence. The difference is that most cases don't involve viral videosβthey involve careful documentation by professional investigators.</p>
<p>What makes this case particularly instructive is how it demonstrates the intersection of personal and professional relationships. When workplace affairs occur, especially at executive levels, the implications extend far beyond the marriage. Career consequences, company policies, and reputational damage all factor into the complex equation of modern infidelity cases.</p>
<div class="bg-blue-50 border-l-4 border-blue-500 p-6 my-8">
<h4 class="font-bold text-blue-900 mb-2">Professional Insight</h4>
<p class="text-blue-800">Unlike previous generations, today's infidelity cases often involve digital footprints that can be traced and documented. Social media interactions, location data, and communication patterns provide investigators with unprecedented tools for evidence gathering that meets Utah court standards.</p>
</div>
<h2>Utah Legal Landscape: How Workplace Affairs Impact Divorce</h2>
<p><strong>Understanding Utah's Approach to Fault-Based Evidence</strong></p>
<p>While Utah allows no-fault divorce, proven infidelity can still significantly impact various aspects of divorce proceedings. According to Utah divorce law experts at <a href="https://www.cramercramer.com/blog/does-adultery-affect-property-division-in-a-utah-divorce/" target="_blank" rel="noopener">Cramer & Anderson</a>, adultery can influence alimony decisions, particularly when it involves the dissipation of marital assets or creates an environment harmful to children.</p>
<p>As noted by <a href="https://www.cramercramer.com/practice-areas/divorce-lawyer-2/" target="_blank" rel="noopener">Utah divorce attorneys</a>, fault-based grounds like adultery remain relevant even in no-fault states for specific aspects of divorce proceedings, including:</p>
<ul>
<li><strong>Alimony determinations</strong> - Courts may deny or reduce spousal support for adulterous spouses</li>
<li><strong>Asset division</strong> - Marital waste documentation can impact property distribution</li>
<li><strong>Child custody considerations</strong> - When affairs impact the family environment</li>
<li><strong>Professional consequences</strong> - Executive-level affairs may affect career prospects</li>
</ul>
<h3>Asset Division and Hidden Expenses</h3>
<p>In high-profile cases like the Byron-Cabot incident, asset division becomes complex. When infidelity involves workplace relationships, there are often hidden expensesβbusiness trips, entertainment costs, or giftsβthat constitute marital waste. According to <a href="https://www.rcglawgroup.com/blog/how-does-utah-law-handle-property-disputes-in-divorce/" target="_blank" rel="noopener">RCG Law Group's property division experts</a>, documenting marital waste is crucial for achieving equitable property division in Utah divorce cases.</p>
<p>Our asset search services specialize in tracing these expenses, ensuring that the innocent spouse receives fair compensation. Professional investigators understand how to identify and document:</p>
<ul>
<li>Unauthorized use of marital funds for affair-related expenses</li>
<li>Hidden credit card accounts or financial transactions</li>
<li>Business expense reimbursements for personal relationship costs</li>
<li>Gift purchases and entertainment expenses outside normal spending patterns</li>
</ul>
<h3>The Alimony Factor in Utah</h3>
<p>Under Utah law, courts may deny or reduce alimony for spouses who committed adultery, particularly if it contributed to the marriage's breakdown. As detailed by <a href="https://www.cor-law.com/divorce/how-does-an-affair-affect-divorce-in-utah-/" target="_blank" rel="noopener">Cor Law attorneys</a>, proven adultery can significantly impact both the amount and duration of spousal support awards in Utah.</p>
<blockquote class="border-l-4 border-trident-gold bg-yellow-50 p-6 my-8">
<p class="text-lg italic">"Professional documentation of infidelity is crucial for protecting your financial future. Utah courts take adultery seriously when it comes to spousal support determinations."</p>
<footer class="text-sm text-gray-600 mt-2">β Utah Family Law Expert</footer>
</blockquote>
<h2>Professional Investigation: The Trident Advantage</h2>
<p><strong>Discreet Documentation Services</strong></p>
<p>The Byron-Cabot case demonstrates how quickly situations can escalate when handled publicly. Professional investigators provide discreet alternatives. Our investigation services are:</p>
<ul>
<li><strong>Undetectable</strong> - Advanced surveillance techniques that maintain complete discretion</li>
<li><strong>Court-admissible</strong> - Evidence gathering that meets Utah legal standards</li>
<li><strong>Privacy-protecting</strong> - Methods that respect all parties' legal rights</li>
<li><strong>Comprehensive</strong> - Complete documentation packages for legal proceedings</li>
</ul>
<h3>Workplace Affair Investigation Specialization</h3>
<p>Workplace affairs present unique challenges that require specialized expertise. Our domestic investigation services understand:</p>
<ul>
<li>Corporate environments and professional relationship dynamics</li>
<li>Employment law considerations and privacy boundaries</li>
<li>Policy violations that may impact divorce proceedings</li>
<li>Executive-level relationship complexity and reputational factors</li>
</ul>
<div class="bg-gradient-to-r from-trident-purple/10 to-trident-orange/10 border border-trident-orange/20 rounded-lg p-6 my-8">
<h4 class="font-bold text-trident-dark mb-3">Case Study Insights</h4>
<p class="text-trident-dark">In executive-level workplace affairs, we often discover patterns of policy violations, conflicts of interest, and misuse of company resources. These factors become crucial evidence in divorce proceedings, particularly for asset division and alimony determinations.</p>
</div>
<h3>Comprehensive Evidence Gathering</h3>
<p>Unlike amateur attempts at catching infidelity, our professional investigation services provide comprehensive evidence packages including:</p>
<ul>
<li><strong>Timeline Documentation</strong> - Detailed chronology of suspicious activities and behavioral changes</li>
<li><strong>Financial Analysis</strong> - Investigation of potentially inappropriate expenses and hidden accounts</li>
<li><strong>Communication Patterns</strong> - Analysis of digital communications and social media interactions</li>
<li><strong>Witness Corroboration</strong> - Professional interviews with relevant parties and witnesses</li>
<li><strong>Surveillance Evidence</strong> - Video and photographic documentation when legally permissible</li>
</ul>
<h2>Corporate Implications: When Personal Becomes Professional</h2>
<p><strong>Workplace Policy Violations</strong></p>
<p>The Byron-Cabot case highlights potential corporate policy violations that often accompany workplace affairs. As investigators, we understand how personal relationships can create professional liabilities:</p>
<ul>
<li><strong>Conflicts of Interest</strong> - Hiring, promotion, and business decision complications</li>
<li><strong>Harassment Claims</strong> - Potential discrimination issues from other employees</li>
<li><strong>Code of Conduct Breaches</strong> - Violation of company relationship policies</li>
<li><strong>Securities Concerns</strong> - Potential violations in publicly traded companies</li>
</ul>
<p>According to employment law specialists, executive-level workplace affairs can expose companies to significant legal liability, making proper documentation essential for all parties involved.</p>
<h3>Reputational Risk Management</h3>
<p>For executives involved in workplace affairs, reputational damage extends beyond personal relationships. Our professional investigation services help document the full scope of misconduct, protecting innocent spouses from being blindsided by additional revelations.</p>
<p>High-profile divorce cases involving corporate executives often involve complex asset structures that require specialized investigation techniques, including:</p>
<ul>
<li>Executive compensation analysis and hidden benefits</li>
<li>Stock option and equity investigation</li>
<li>Corporate expense account scrutiny</li>
<li>Business partnership and investment review</li>
</ul>
<h2>Red Flags: When to Engage Professional Services</h2>
<p><strong>Behavioral Changes That Warrant Investigation</strong></p>
<p>While every case is unique, certain patterns consistently indicate the need for professional investigation services:</p>
<ul>
<li><strong>Schedule Changes</strong> - Sudden modifications to work hours or travel patterns</li>
<li><strong>Digital Secrecy</strong> - Increased privacy regarding devices and communications</li>
<li><strong>Financial Irregularities</strong> - Unexplained expenses or account activities</li>
<li><strong>Emotional Distance</strong> - Combined with defensive behavior about activities</li>
<li><strong>Appearance Focus</strong> - New attention to fitness or appearance without explanation</li>
<li><strong>Workplace Dynamics</strong> - Unusual relationships or late meetings with specific colleagues</li>
</ul>
<h3>The Importance of Early Professional Intervention</h3>
<p>The Byron-Cabot incident escalated quickly once public attention focused on their relationship. In private cases, early professional intervention can prevent situations from spiraling out of control while preserving crucial evidence.</p>
<div class="bg-red-50 border-l-4 border-red-500 p-6 my-8">
<h4 class="font-bold text-red-900 mb-2">Critical Timing Factor</h4>
<p class="text-red-800">Evidence preservation is time-sensitive. Digital communications can be deleted, financial records may be altered, and witnesses' memories fade. Early professional intervention ensures crucial evidence is secured before it disappears.</p>
</div>
<h2>Utah-Specific Investigation Expertise</h2>
<p><strong>Local Legal Knowledge</strong></p>
<p>Our team understands Utah divorce law and family court procedures, ensuring that our investigation methods and documentation meet local legal standards. This Utah-specific expertise is crucial for cases that will be decided in Utah courts.</p>
<p>We work closely with prominent Utah family law attorneys, including those at <a href="https://www.cramercramer.com/alimony/" target="_blank" rel="noopener">Cramer & Anderson</a> and other respected Utah divorce law firms, to ensure our evidence supports your legal strategy.</p>
<h3>Wasatch Front Coverage Area</h3>
<p>Our investigation services cover the entire Wasatch Front region, including:</p>
<ul>
<li><strong>Salt Lake County</strong> - Salt Lake City, West Valley, Sandy, West Jordan</li>
<li><strong>Utah County</strong> - Provo, Orem, Lehi, American Fork</li>
<li><strong>Davis County</strong> - Layton, Bountiful, Farmington, Kaysville</li>
<li><strong>Weber County</strong> - Ogden, Roy, Clearfield, North Ogden</li>
<li><strong>Tooele County</strong> - Tooele, Grantsville, and surrounding areas</li>
</ul>
<h3>Proven Track Record in Utah</h3>
<p>We've successfully handled hundreds of infidelity cases throughout Utah, from simple suspicions to complex corporate affairs. Our methods are legally sound, our evidence is court-admissible, and our approach protects your interests throughout the process.</p>
<h2>Taking the Next Step: Professional Support</h2>
<p>If you're facing suspected infidelity, don't wait for a public moment like the Byron-Cabot incident to force the issue. Professional investigation services provide the clarity and evidence you need to make informed decisions about your future.</p>
<p>The emotional toll of suspected infidelity is significant enough without the added stress of uncertainty. As noted by <a href="https://www.cor-law.com/blog/2022/march/5-myths-about-alimony-in-utah/" target="_blank" rel="noopener">Utah family law attorneys</a>, having documented evidence of adultery can significantly impact divorce outcomes, making professional investigation services not just helpful, but essential for protecting your rights.</p>
<div class="bg-gradient-to-r from-trident-orange/10 to-trident-gold/10 border border-trident-gold/30 rounded-lg p-8 my-8 text-center">
<h3 class="text-2xl font-bold text-trident-dark mb-4">Ready to Get Answers?</h3>
<p class="text-lg text-trident-dark mb-6">Don't let suspicion destroy your peace of mind. Our Utah-licensed investigators provide discreet, professional services that meet court standards.</p>
<div class="space-y-4">
<p class="text-xl font-bold text-trident-dark">Call (385) 275-8220 for Confidential Consultation</p>
<p class="text-trident-dark">We work 7 days a week, 365 days a year</p>
</div>
</div>
<h3>Comprehensive Investigation Services</h3>
<p>Whether you're dealing with suspected workplace affairs, financial infidelity, or traditional relationship misconduct, our licensed investigators are ready to help. We offer:</p>
<ul>
<li><strong>Confidential Consultations</strong> - Free initial assessment of your situation</li>
<li><strong>Professional Investigation Services</strong> - Court-admissible evidence gathering</li>
<li><strong>Ongoing Support</strong> - Guidance throughout the legal process</li>
<li><strong>Attorney Collaboration</strong> - Direct coordination with your legal team</li>
</ul>
<p>Our team at Trident Investigations is here to provide answers, support, and professional guidance during this challenging time. Whether you need spousal support modification assistance or comprehensive investigation services, we're equipped to handle complex cases with discretion and expertise.</p>
<h2>Contact Trident Investigations Today</h2>
<p>For additional resources, explore our comprehensive investigation services and learn about Utah divorce law implications. Working with experienced Utah divorce attorneys like those at <a href="https://www.rcglawgroup.com/divorce/" target="_blank" rel="noopener">RCG Law Group</a> alongside our investigation services ensures you have the strongest possible legal strategy.</p>
<p><strong>Remember:</strong> In infidelity cases, the truth has a way of surfacing. Professional investigation services ensure that when it does, you're prepared with legally sound evidence to protect your interests and your future.</p>
<div class="bg-trident-dark text-white p-8 rounded-lg my-8">
<h3 class="text-xl font-bold mb-4">Emergency Investigation Services</h3>
<p class="mb-4">If you believe evidence is being destroyed or your situation is escalating rapidly, contact us immediately. We provide emergency investigation services to preserve crucial evidence before it's lost.</p>
<p class="text-trident-gold font-bold text-lg">Call (385) 275-8220 - We work 7 days a week, 365 days a year</p>
</div>
`,"Infidelity Investigations","workplace-affair-investigation","Utah infidelity investigation",["workplace affair investigation Utah","Utah divorce alimony adultery","private investigator Utah asset search","Byron-Cabot workplace affair","Utah divorce evidence gathering","executive affair investigation","Utah family law investigation","workplace romance investigation Utah"],[{title:"Utah Divorce Law and Adultery",description:"Comprehensive overview of how adultery affects divorce proceedings in Utah",url:"https://www.divorcenet.com/resources/adultery-and-divorce-utah.html",jurisdiction:"Utah",type:"statute"},{title:"Cramer & Anderson - Property Division in Utah Divorce",description:"Expert analysis of how adultery impacts asset division",url:"https://www.cramercramer.com/blog/does-adultery-affect-property-division-in-a-utah-divorce/",jurisdiction:"Utah",type:"case-law"},{title:"Utah Alimony Laws and Adultery Impact",description:"Legal guidance on spousal support modifications due to infidelity",url:"https://www.cor-law.com/divorce/how-does-an-affair-affect-divorce-in-utah-/",jurisdiction:"Utah",type:"statute"}],["This article analyzes a public incident for educational purposes only and does not make claims about any individuals' private conduct. All investigation services comply with Utah privacy laws and legal standards.","Professional investigation services must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind. Consult with a qualified Utah family law attorney for advice specific to your situation."],"2025-07-18","/lovable-uploads/e17d170b-4527-4b9b-b425-5a3507ad20cd.png"),Zee=la("signs-of-infidelity-2025","signs-of-infidelity","Signs of Infidelity: Recognizing Warning Indicators in Utah Relationships","Learn to recognize key signs of infidelity in relationships. Professional Utah private investigators share expert insights on warning indicators and when to seek help.",`
<p>Discovering potential infidelity in a relationship can be one of life's most painful experiences. At Trident Investigations, we understand the emotional turmoil that comes with suspecting a partner's unfaithfulness. Our licensed investigators have helped countless Utah residents navigate these challenging situations with discretion and professionalism through legally compliant methods. In this guide, we'll explore the key signs of infidelity to watch for and explain how professional investigation services can provide the clarity you need.</p>
<h2>Understanding the Impact of Infidelity Concerns</h2>
<p>Infidelity affects relationships across Utah, from Salt Lake City to Provo and beyond. When trust is broken or questioned, the emotional and legal consequences can be significant. According to relationship experts, suspicions of unfaithfulness often stem from observable behavioral changes that, when recognized early, can help individuals make informed decisions about their relationships through proper channels.</p>
<p>At Trident Investigations, we've seen how these concerns impact families throughout Utah. Our <a href="/services/domestic">domestic investigation services</a> are designed to provide facts while maintaining the sensitivity these situations require through legally compliant methods.</p>
<h2>Common Signs of Infidelity to Recognize</h2>
<h3>Sudden Changes in Communication Patterns</h3>
<p>One of the most telling signs of potential infidelity involves dramatic shifts in how your partner communicates. This might include becoming secretive with their phone or computer, avoiding calls in your presence, or being vague about their daily activities. These communication changes often represent the first observable indicators of concerning behavior.</p>
<p>Our professional investigators in Utah frequently work with clients who notice these early warning signs but need verification to confirm their concerns through legal methods.</p>
<h3>Unexplained Schedule Changes and Absences</h3>
<p>Another significant indicator involves sudden changes to established routines. This might manifest as:</p>
<ul>
<li>Working late more frequently without clear explanations</li>
<li>Unexplained trips or extended absences</li>
<li>New social activities that exclude you</li>
<li>Inconsistent explanations for time away from home</li>
</ul>
<p>These scheduling inconsistencies often warrant professional attention, as they can indicate deceptive behavior patterns through legally documented methods.</p>
<h3>Technology and Privacy Behavior Changes</h3>
<p>In today's digital world, technology behavior often reveals concerning patterns. Warning signs include:</p>
<ul>
<li>Guarding devices more carefully than before</li>
<li>Changing passwords without explanation</li>
<li>Deleting communication histories</li>
<li>Using new privacy measures on social media</li>
<li>Receiving calls or messages they won't explain</li>
</ul>
<p>Our team at Trident Investigations specializes in digital verification services, analyzing communication patterns to uncover concerning interactions through proper legal channels.</p>
<h3>Emotional and Physical Distance</h3>
<p>Infidelity often creates emotional barriers that affect relationship intimacy. Signs include:</p>
<ul>
<li>Reduced interest in shared activities</li>
<li>Less physical affection</li>
<li>Avoiding meaningful conversations</li>
<li>Seeming distracted or emotionally distant</li>
<li>Defensive responses to routine questions</li>
</ul>
<p>These emotional changes, when combined with other indicators, often signal the need for professional investigation services through legal methods.</p>
<h2>Financial and Lifestyle Inconsistencies</h2>
<h3>Unexplained Expenses</h3>
<p>Financial irregularities can indicate concerning behavior, including:</p>
<ul>
<li>Unusual credit card charges</li>
<li>Unexplained cash withdrawals</li>
<li>New purchases without clear explanations</li>
<li>Hidden financial accounts or statements</li>
<li>Spending patterns that don't align with claimed activities</li>
</ul>
<p>At Trident Investigations, our <a href="/services/asset-searches">financial investigation services</a> can help uncover discrepancies that may indicate deceptive behavior through legally compliant methods.</p>
<h3>Changes in Personal Appearance and Habits</h3>
<p>Sometimes infidelity manifests through sudden changes in personal presentation:</p>
<ul>
<li>New interest in fitness or appearance</li>
<li>Different clothing choices or styles</li>
<li>Changes in grooming habits</li>
<li>New fragrances or personal care products</li>
<li>Altered sleep patterns or eating habits</li>
</ul>
<p>While these changes alone don't confirm infidelity, they often form part of a broader pattern worthy of professional attention through legal channels.</p>
<h2>When to Seek Professional Investigation Services</h2>
<h3>Trust Your Instincts</h3>
<p>If you're noticing multiple warning signs, your concerns deserve professional attention. Many clients tell us they "just knew something was wrong" but needed verification to confirm their suspicions through proper methods.</p>
<h3>Legal Considerations in Utah</h3>
<p>Utah's divorce laws can be influenced by proven infidelity, particularly regarding:</p>
<ul>
<li>Alimony determinations</li>
<li>Asset division decisions</li>
<li>Child custody considerations when inappropriate behavior affects the family environment</li>
</ul>
<p>Professional investigation services ensure any evidence gathered meets legal standards and can be properly utilized in legal proceedings through compliant methods.</p>
<h3>Protecting Your Emotional Wellbeing</h3>
<p>Living with uncertainty takes an emotional toll. Professional verification services can provide closure, whether your concerns are confirmed or dismissed, allowing you to move forward with clarity through legally compliant support.</p>
<h2>How Trident Investigations Can Help</h2>
<p>Our experienced team provides comprehensive infidelity investigation services throughout Utah. We understand the emotional weight of these situations and approach every case with sensitivity and professionalism through legal methods.</p>
<div class="bg-trident-gold/10 border-l-4 border-trident-gold p-6 my-8">
<h4 class="font-bold text-trident-dark mb-3">Our Services Include:</h4>
<ul class="space-y-2">
<li>β’ Discreet surveillance and documentation through legal channels</li>
<li>β’ Digital communication analysis within legal boundaries</li>
<li>β’ Background verification services through proper methods</li>
<li>β’ Financial investigation when appropriate through legal channels</li>
<li>β’ Comprehensive reporting that meets legal standards</li>
</ul>
</div>
<p><strong>Ready for answers?</strong> Contact Trident Investigations at <a href="tel:385-275-8220" class="text-trident-gold font-bold">385-275-8220</a> for a confidential consultation.</p>
<h2>Why Choose Professional Investigation Services</h2>
<h3>Objectivity and Expertise</h3>
<p>When emotions run high, professional investigators provide objective analysis and skilled fact-gathering that you cannot accomplish alone through legal methods. Our team brings decades of experience to every case, ensuring thorough and discrete investigation within legal frameworks.</p>
<h3>Legal Compliance</h3>
<p>All our investigation methods comply with Utah laws and regulations, protecting your interests should legal proceedings become necessary. We ensure any evidence gathered can be properly utilized in court through compliant channels.</p>
<h3>Discretion and Confidentiality</h3>
<p>At Trident Investigations, your privacy is paramount. We conduct all investigations with complete discretion, protecting your reputation and personal matters throughout the process through legally compliant methods.</p>
<h2>Moving Forward with Confidence</h2>
<p>Recognizing signs of infidelity is the first step toward addressing relationship concerns. Whether your suspicions are confirmed or dismissed, having facts allows you to make informed decisions about your future through proper channels.</p>
<p>Don't let uncertainty control your life. If you're noticing warning signs in your Utah relationship, Trident Investigations is here to help with professional, discrete investigation services through legally compliant methods.</p>
<h2>Take Action Today</h2>
<p>The signs of infidelity can be subtle, but they often reveal important truths about your relationship. If you're experiencing concerns about your partner's faithfulness, professional investigation services can provide the clarity you need to move forward with confidence through legal channels.</p>
<p>Contact Trident Investigations today at <a href="tel:385-275-8220" class="text-trident-gold font-bold">385-275-8220</a> or visit <a href="/contact">our website</a> for a confidential consultation. Our licensed investigators are ready to help you uncover the facts with discretion and professionalism through legally compliant services.</p>
<p><strong>Don't let suspicions and uncertainty define your relationship.</strong> Take control of your situation with professional support that delivers answers you can trust through proper legal methods.</p>
`,"Infidelity Investigations","infidelity","signs of infidelity, cheating signs, relationship red flags, Utah infidelity investigation",["infidelity signs","cheating indicators","relationship warning signs","Utah private investigator","relationship concerns","professional investigation","infidelity investigation","Utah family services"],[],["CH"],"2025-04-25","/lovable-uploads/signs-of-infidelity-utah-relationships.jpg"),Yu=la("custody-investigation-child-safety","custody-investigation-child-safety","Custody Investigation Child Safety: Protecting Utah Children Through Professional Investigation","Professional custody investigation services focused on child safety in Utah. Expert investigators help protect children and support custody decisions through legal compliance.",`
<p>When custody investigation concerns arise in Utah, child safety becomes the paramount concern that demands immediate professional attention. <a href="/services/domestic-investigations">Trident Investigations</a> specializes in professional custody investigation services throughout Utah, combining decades of experience with deep compassion for the families we serve. Our licensed Utah private investigators understand that protecting children requires legally compliant methods, court-admissible documentation, and 24/7 emergency response when child safety is at stake.</p>
<div class="emergency-contact bg-red-50 border-l-4 border-red-500 p-6 my-8 rounded-r-lg">
<h4 class="text-lg font-bold text-red-800 mb-2">π¨ Urgent Child Safety Concerns?</h4>
<p class="text-red-700 mb-3">If a child is in immediate danger, contact 911 first. For professional custody investigation services, our team provides 24/7 emergency response.</p>
<a href="tel:+1-385-275-8220" class="inline-block bg-red-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-700 transition-colors">
Call Emergency Line: (385) 275-8220
</a>
</div>
<h2 id="what-is-child-custody-investigation">What is a Child Custody Investigation?</h2>
<p>A child custody investigation is a professional assessment of parenting capabilities, living conditions, and potential safety concerns to support court decisions about child custody arrangements through legally compliant methods. These investigations provide objective documentation that helps Utah family courts make informed decisions based on a child's best interests rather than emotional testimony alone, in accordance with Utah Code Section 30-3-10.2.</p>
<p>Professional <a href="/locations/utah/salt-lake-county">Salt Lake City child custody investigation</a> services use specialized techniques to gather admissible evidence while maintaining strict ethical standards and legal compliance throughout the investigation process.</p>
<h3>Child Safety Assessment Components</h3>
<div class="child-safety-checklist bg-blue-50 border border-blue-200 rounded-xl p-6 my-8">
<h4 class="text-lg font-bold mb-4 text-blue-900">Professional Child Safety Documentation</h4>
<ul class="space-y-3">
<li class="flex items-start gap-3">
<span class="w-2 h-2 bg-blue-600 rounded-full mt-2 flex-shrink-0"></span>
<span>Living environment safety assessment through legal observation methods</span>
</li>
<li class="flex items-start gap-3">
<span class="w-2 h-2 bg-blue-600 rounded-full mt-2 flex-shrink-0"></span>
<span>Parent-child interaction quality through proper documentation</span>
</li>
<li class="flex items-start gap-3">
<span class="w-2 h-2 bg-blue-600 rounded-full mt-2 flex-shrink-0"></span>
<span>Supervision adequacy during parenting time through compliant investigation</span>
</li>
<li class="flex items-start gap-3">
<span class="w-2 h-2 bg-blue-600 rounded-full mt-2 flex-shrink-0"></span>
<span>Safety hazard identification through legal channels</span>
</li>
</ul>
</div>
<h2 id="when-do-you-need-custody-investigator">When Do You Need a Custody Investigator?</h2>
<p>Consider hiring a <strong>Utah custody investigator</strong> when you have concerns about child safety, substance abuse, neglect, or when you need documented evidence to support custody modification requests in Utah family court. Professional documentation is essential when standard testimony may not be sufficient to protect a child's wellbeing in <a href="/locations/utah/utah-county">Provo custody investigation services</a> and throughout the Wasatch Front.</p>
<h2 id="common-child-safety-concerns">Common Child Safety Concerns in Custody Cases</h2>
<p>Utah custody investigators frequently encounter specific safety concerns that require immediate professional attention and documentation. Understanding these concerns helps parents recognize when professional intervention is necessary to protect their children.</p>
<h3>Substance Abuse Issues</h3>
<p>Substance abuse represents one of the most serious child safety concerns in custody disputes. Professional investigators document evidence of alcohol or drug use around children, impaired parenting due to substance abuse, and unsafe environments created by substance abuse through legally compliant methods. Our <a href="/locations/utah/davis-county">Davis County custody investigation</a> team works closely with Utah Division of Child and Family Services (DCFS) when substance abuse threatens child welfare.</p>
<h3>Neglect and Inadequate Supervision</h3>
<p>Child neglect can take many forms, and professional documentation is essential for court proceedings. This includes inadequate supervision during parenting time, poor living conditions that affect child wellbeing, failure to meet basic needs like nutrition, hygiene, or medical care, and educational neglect through proper legal channels. Our <a href="/services/surveillance">surveillance services</a> provide court-admissible documentation of supervision patterns and care quality.</p>
<h3>Exposure to Dangerous Individuals</h3>
<p>Sometimes custody concerns involve exposure to individuals who may pose risks to children. Professional investigators conduct <a href="/services/background">background verification</a> of new romantic partners, document inappropriate individuals in the home environment, and assess supervision when children are around concerning individuals through compliant investigation methods.</p>
<h2 id="what-do-custody-investigators-look-for">What Do Custody Investigators Look For?</h2>
<p>Custody investigators document living conditions, parenting behaviors, safety hazards, supervision quality, and interactions between parents and children through legally compliant observation methods. All documentation must meet Utah family court standards for admissibility and provide objective evidence rather than subjective opinions, following Utah family law procedures and Guardian ad Litem program requirements.</p>
<h3>Environmental Assessment and Documentation</h3>
<p>Thorough evaluation of living conditions provides courts with clear information about child safety through home environment safety assessment, documentation of appropriate sleeping arrangements, evaluation of childproofing and safety measures, and assessment of cleanliness and basic living standards through legal observation methods in <a href="/locations/utah/weber-county">Ogden child safety investigator</a> services and statewide.</p>
<h3>Parenting Behavior Observation</h3>
<p>Professional investigators document parenting interactions to establish patterns including parent-child interaction quality, consistency in parenting approaches, response to child needs and emergencies, and discipline methods and appropriateness through legal observation methods.</p>
<h2 id="professional-investigation-methods-child-safety">Professional Investigation Methods for Child Safety</h2>
<p>Professional <a href="/locations/utah-investigations">Utah custody investigators</a> use specialized methods designed to gather comprehensive evidence while protecting children's emotional wellbeing throughout the investigation process. Our licensed former law enforcement professionals employ court-tested techniques that ensure evidence admissibility.</p>
<h3>Schedule and Routine Documentation</h3>
<p>Stable routines support child wellbeing, and professional documentation establishes patterns including consistency in daily schedules, school attendance and support, extracurricular activity participation, and healthcare and medical appointment management through legal observation methods.</p>
<h3>Safety Protocol Assessment</h3>
<p>Professional investigators evaluate how parents handle emergency situations, implement safety measures, and protect children from potential hazards in various environments through compliant documentation methods that meet Utah family court requirements.</p>
<h2 id="working-within-utah-legal-framework">Working Within Utah's Legal Framework</h2>
<p>Utah family courts prioritize child safety above all other considerations when making custody determinations. According to Utah Code Section 30-3-10.2, courts must consider "the best interest of the child" as the primary factor in custody decisions through comprehensive evaluation of each parent's ability to provide a safe, stable, nurturing environment.</p>
<h3>Understanding Court Requirements</h3>
<p>Utah family courts require specific types of evidence to consider custody modifications or restrictions. Professional investigators understand these requirements and ensure all documentation meets <a href="https://www.utcourts.gov/">Utah State Courts</a> standards through legally compliant methods that support admissible evidence.</p>
<h3>Guardian Ad Litem Collaboration</h3>
<p>When courts appoint guardians ad litem to represent children's interests, professional investigators often work collaboratively to provide comprehensive information through proper channels that support the guardian's assessment and recommendations under Utah's Guardian ad Litem program.</p>
<h3>Coordination with Child Protective Services</h3>
<p>In cases involving potential abuse or neglect, professional investigators may coordinate with <a href="https://dcfs.utah.gov/">Utah Division of Child and Family Services</a> to ensure appropriate intervention through legal cooperation while maintaining investigation integrity and confidential child safety assessments.</p>
<h2 id="how-long-do-custody-investigations-take">How Long Do Custody Investigations Take?</h2>
<p>Custody investigations typically take 2-6 weeks depending on the complexity of concerns and the scope of documentation required. Emergency situations may require immediate assessment, while comprehensive evaluations for court proceedings may require extended observation periods to establish behavioral patterns in <a href="/blog/surveillance-techniques-modern-investigations">modern investigation techniques</a>.</p>
<h3>Initial Consultation and Risk Assessment</h3>
<p>Our process begins with confidential consultation to understand your concerns and assess the appropriate investigation approach through legal methods. This includes reviewing existing documentation, identifying specific safety concerns, and developing tailored investigation plans with 24/7 emergency response available.</p>
<h3>Comprehensive Investigation Implementation</h3>
<p>Based on specific concerns, we develop tailored investigation plans that may include scheduled observation during parenting time, environmental safety assessment, background verification when appropriate, and documentation of specific incidents or patterns through legal channels that ensure court-admissible documentation.</p>
<h2 id="how-much-does-child-custody-investigation-cost">How Much Does a Child Custody Investigation Cost?</h2>
<p>Child custody investigation costs vary based on the scope of services required, duration of observation needed, and complexity of documentation requirements. Professional services typically range from basic safety assessments to comprehensive evaluations supporting court proceedings, with emergency response services available for urgent child safety concerns.</p>
<h3>Investment in Child Protection</h3>
<p>The cost of professional custody investigation services represents an investment in your child's safety and wellbeing. Proper documentation can prevent ongoing exposure to dangerous situations and support court decisions that truly serve a child's best interests through legally compliant evidence and confidential child safety assessments.</p>
<div class="consultation-cta bg-green-50 border border-green-200 rounded-xl p-6 my-8">
<h4 class="text-lg font-bold mb-3 text-green-800">Get Free Child Safety Consultation</h4>
<p class="text-green-700 mb-4">Speak with our experienced custody investigation specialists about protecting your child. Licensed Utah private investigators with court-admissible documentation expertise.</p>
<div class="flex flex-col sm:flex-row gap-3">
<a href="/contact" class="btn-primary">Schedule Urgent Custody Investigation</a>
<a href="tel:+1-385-275-8220" class="btn-secondary">Call (385) 275-8220</a>
</div>
</div>
<h2 id="choosing-trident-investigations-child-safety">Why Choose Trident Investigations for Child Safety Cases</h2>
<p>Our team has extensive experience in child custody investigations throughout Utah, from <a href="/locations/utah/weber-county">Weber County</a> to <a href="/locations/utah/utah-county">Utah County</a>, bringing deep understanding of local court requirements through legally compliant services with over 15 years of professional experience and 500+ resolved cases.</p>
<h3>Specialized Experience and Compassionate Approach</h3>
<p>We understand the emotional weight of these cases and approach every situation with sensitivity and professionalism through appropriate methods. Our detailed, professional reports have supported numerous successful custody decisions that prioritized child safety through proper legal channels, earning recognition as the best custody investigator Utah families trust.</p>
<h3>Comprehensive Support Throughout Legal Proceedings</h3>
<p>Beyond investigation, we provide ongoing support throughout legal proceedings, including expert testimony when needed and coordination with legal teams to ensure evidence presentation meets court requirements through appropriate professional services and experienced child safety investigator expertise.</p>
<h2 id="emergency-child-safety-resources">Emergency Child Safety Resources</h2>
<h3>Utah Division of Child and Family Services</h3>
<p>For immediate child safety concerns requiring state intervention, contact <a href="https://dcfs.utah.gov/">DCFS</a> through appropriate emergency channels. Professional investigators work collaboratively with state agencies when child welfare requires immediate intervention and professional child welfare investigation services.</p>
<h3>National Resources</h3>
<p>The <a href="https://www.missingkids.org/">National Center for Missing & Exploited Children</a> and <a href="https://www.apsac.org/">American Professional Society on the Abuse of Children</a> provide additional resources for child protection and safety education.</p>
<h2 id="related-custody-concerns">Related Custody Investigation Concerns</h2>
<p>Child custody cases often involve multiple interconnected concerns that require comprehensive investigation. Parents may also need to address <a href="/blog/signs-of-infidelity">relationship concerns affecting children</a> or <a href="/blog/hidden-asset-detection">financial investigations in custody cases</a> to ensure complete protection of their children's interests.</p>
<h2 id="taking-action-protect-child">Taking Action to Protect Your Child</h2>
<p>Child safety concerns in custody situations require immediate, professional attention. Waiting can put children at risk and make legal intervention more difficult through delayed response. If you have concerns about your child's safety during custody or visitation, professional investigation services provide the documentation and evidence needed to protect your child through legal channels.</p>
<p>Don't wait when your child's safety is at stake. <a href="/contact">Contact Trident Investigations</a> at 385-275-8220 for immediate consultation about child custody investigation services through our experienced team that understands the urgency of child safety concerns and provides custody investigator near me Utah services with 24/7 emergency response.</p>
<p>Your child's safety is our priority. Let us help you gather the Utah child custody evidence needed to ensure their protection and wellbeing through professional, legally compliant custody investigation services that support Utah family court requirements and truly serve children's best interests.</p>
`,"Child Custody Investigations","domestic","custody investigation child safety",["child custody investigator","child safety investigation","custody investigations Utah","child welfare investigation","child custody investigator Utah","child safety concerns investigation","professional custody investigation services","Utah child custody investigation"],[{title:"Utah State Courts",description:"Official Utah court system providing family law procedures and requirements.",url:"https://www.utcourts.gov/",jurisdiction:"Utah",type:"government-resource"},{title:"Utah Division of Child and Family Services",description:"State agency responsible for child protection and welfare services in Utah.",url:"https://dcfs.utah.gov/",jurisdiction:"Utah",type:"government-agency"},{title:"National Center for Missing & Exploited Children",description:"National resource for child protection and safety education.",url:"https://www.missingkids.org/",jurisdiction:"National",type:"resource"},{title:"American Professional Society on the Abuse of Children",description:"Professional organization focused on child abuse prevention and response.",url:"https://www.apsac.org/",jurisdiction:"National",type:"professional-organization"}],["This article is for informational purposes only and does not constitute legal advice. Private investigators do not provide legal advice or legal services. Consult with a qualified Utah family law attorney for advice specific to your situation.","Child custody investigations must comply with all applicable Utah and federal laws. Private investigators are bound by strict ethical and legal standards when working with child welfare matters.","If a child is in immediate danger, contact local law enforcement (911) or the Utah Child Abuse Hotline at 1-855-323-DCFS (3237) immediately.","Results of investigations may vary based on individual circumstances and available evidence. No outcomes are guaranteed in child custody cases.","Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind."],"2025-05-20","/lovable-uploads/custody-investigation-child-safety-utah.jpg");Yu.seoData={...Yu.seoData,focusKeyword:"custody investigation child safety",relatedKeywords:["child custody investigator","child safety investigation","custody investigations Utah","child welfare investigation","child custody investigator Utah","child safety concerns investigation","professional custody investigation services","Utah child custody investigation","Utah custody investigator","Salt Lake City child custody investigation","Provo custody investigation services","Ogden child safety investigator","Wasatch Front custody investigations","Utah County child custody investigator","Davis County custody investigation"],metaTitle:"Custody Investigation Child Safety: Protecting Utah Children | Trident Investigations",metaDescription:"Professional custody investigation services focused on child safety in Utah. Expert investigators help protect children and support custody decisions through legal compliance.",socialShareData:{twitterCard:"summary_large_image",ogTitle:"Custody Investigation Child Safety: Protecting Utah Children | Trident Investigations",ogDescription:"Professional custody investigation services focused on child safety in Utah. Expert investigators help protect children and support custody decisions through legal compliance.",ogImage:"/lovable-uploads/custody-investigation-child-safety-utah.jpg"},localSEO:{location:"Utah",businessType:"Child Custody Investigation Services",serviceArea:["Salt Lake County","Utah County","Davis County","Weber County","Tooele County","Cache County","Washington County","Utah"]}};Yu.schemaMarkup={...Yu.schemaMarkup,faqSchema:{"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is a child custody investigation?",acceptedAnswer:{"@type":"Answer",text:"A child custody investigation is a professional assessment of parenting capabilities, living conditions, and potential safety concerns to support court decisions about child custody arrangements through legally compliant methods."}},{"@type":"Question",name:"When should I hire a custody investigator in Utah?",acceptedAnswer:{"@type":"Answer",text:"Consider hiring a custody investigator when you have concerns about child safety, substance abuse, neglect, or when you need documented evidence to support custody modification requests in Utah family court."}},{"@type":"Question",name:"What do custody investigators document?",acceptedAnswer:{"@type":"Answer",text:"Custody investigators document living conditions, parenting behaviors, safety hazards, supervision quality, and interactions between parents and children through legally compliant observation methods."}},{"@type":"Question",name:"How much does a child custody investigation cost?",acceptedAnswer:{"@type":"Answer",text:"Child custody investigation costs vary based on the scope of services required, duration of observation needed, and complexity of documentation requirements. Contact Trident Investigations for a consultation and cost estimate."}},{"@type":"Question",name:"How long do custody investigations take?",acceptedAnswer:{"@type":"Answer",text:"Custody investigations typically take 2-6 weeks depending on the complexity of concerns and the scope of documentation required. Emergency situations may require immediate assessment."}},{"@type":"Question",name:"What do custody investigators look for?",acceptedAnswer:{"@type":"Answer",text:"Custody investigators look for living conditions, parenting behaviors, safety hazards, supervision quality, and parent-child interactions to document evidence that supports the child's best interests in court proceedings."}}]},serviceSchema:{"@type":"Service",name:"Child Custody Investigation Services",description:"Professional custody investigation services focused on child safety and protection in Utah",provider:{"@type":"Organization",name:"Trident Investigations"},areaServed:{"@type":"State",name:"Utah"},serviceType:"Child Custody Investigation"}};Yu.conversionData={callToActions:[{id:"custody-safety-emergency",type:"phone",title:"Urgent Child Safety Concerns?",description:"24/7 Emergency Response Available - Licensed Utah Private Investigators",buttonText:"Call Emergency Line: (385) 275-8220",buttonLink:"+1-385-275-8220",placement:"header",priority:1,trackingId:"custody-safety-emergency",utmParams:"?utm_source=blog&utm_medium=emergency_cta&utm_campaign=custody_investigation&utm_content=child_safety_emergency"},{id:"custody-consultation-free",type:"consultation",title:"Get Free Child Safety Consultation",description:"Speak with our experienced custody investigation specialists about protecting your child.",buttonText:"Schedule Urgent Custody Investigation",buttonLink:"/contact",placement:"early",priority:1,trackingId:"custody-consultation-free"},{id:"custody-emergency-assessment",type:"consultation",title:"Get Emergency Child Safety Assessment",description:"Court-admissible documentation from licensed Utah investigators.",buttonText:"Protect Your Child - Get Assessment",buttonLink:"/contact",placement:"mid",priority:2,trackingId:"custody-emergency-assessment"},{id:"custody-services-best",type:"consultation",title:"Best Custody Investigator Utah",description:"Professional custody investigator Salt Lake City with 500+ resolved cases.",buttonText:"Hire Top Child Custody Investigation Services",buttonLink:"/services/domestic-investigations",placement:"late",priority:3,trackingId:"custody-services-best"}],leadMagnets:[{id:"child-custody-investigation-guide",title:"Utah Child Custody Investigation Guide",description:"Comprehensive guide covering child safety assessment, investigation process, and legal requirements.",type:"pdf",gatedContent:!0,downloadUrl:"/downloads/utah-investigation-guide.pdf",formFields:["email","name","phone","custody_concern"]}],exitIntentOffer:{title:"Don't Let Child Safety Concerns Wait",description:"Get immediate professional consultation about protecting your child in custody situations. Licensed Utah private investigators with 24/7 emergency response.",offerType:"free-consultation",triggerDelay:3e3},scrollTriggeredCTAs:[{scrollPercentage:25,cta:{id:"scroll-custody-emergency",type:"phone",title:"Child Safety Questions?",description:"Emergency custody investigator available 24/7.",buttonText:"Call Now: (385) 275-8220",buttonLink:"+1-385-275-8220",placement:"mid",priority:2,trackingId:"scroll-custody-emergency"},showOnce:!0}]};const ete={id:"kouri-richins-case-investigation-lessons",slug:"kouri-richins-case-utah-investigation-lessons-domestic-homicide",title:"The Kouri Richins Case: What Utah's Most Shocking Murder Case Teaches Us About Domestic Investigation",excerpt:"The Kouri Richins case shocked Utah when a grieving widow who wrote a children's book about loss was charged with murdering her husband. Learn what this high-profile investigation reveals about recognizing warning signs, the importance of thorough death investigations, and when to hire a private investigator.",content:`
<div class="prose max-w-none">
<p class="lead">In March 2022, Eric Richins died suddenly at his Summit County, Utah home. His wife Kouri painted a picture of tragic lossβeven authoring a children's book called "Are You With Me?" to help her sons cope with their father's death. But beneath this facade of grief, <a href="/services/domestic-investigations">investigators uncovered a different story</a>βone that would become Utah's most talked-about murder case in recent memory.</p>
<p>The Kouri Richins case isn't just a cautionary taleβit's a masterclass in why professional investigation matters, why family concerns should never be dismissed, and how <a href="/services">private investigators</a> can help uncover the truth when something doesn't feel right.</p>
<h2 id="what-happened-kouri-richins-case">What Happened: The Kouri Richins Case Timeline</h2>
<p>Eric Richins, a successful business owner and father, died in March 2022 at age 39. The initial cause of death was attributed to a fentanyl overdose. His wife Kouri, a real estate agent, publicly mourned his passing and even wrote a children's book about grief to help their three young sons understand death.</p>
<p>But Eric's family wasn't satisfied. They raised concerns about the circumstances of his death. According to court documents and family statements, Eric had reportedly told relatives he was worried about being poisonedβa concern that would prove tragically prescient.</p>
<p>In May 2023, more than a year after Eric's death, <a href="/locations/utah-investigations">Utah authorities</a> arrested Kouri Richins and charged her with aggravated murder. The investigation revealed:</p>
<ul>
<li><strong>Digital evidence</strong> showing searches for how to obtain fentanyl</li>
<li><strong>Purchase records</strong> indicating she had obtained fentanyl multiple times</li>
<li><strong>Witness testimony</strong> about Eric's fears before his death</li>
<li><strong>Financial motives</strong> related to life insurance and business assets</li>
<li><strong>A pattern of behavior</strong> that painted a picture of premeditation</li>
</ul>
<h2 id="warning-signs-investigators-look-for">Warning Signs That Investigators Look For</h2>
<p>The Kouri Richins case highlights several red flags that <a href="/services/domestic-investigations">professional investigators</a> are trained to identify in suspicious death cases:</p>
<h3>1. Victim Expressed Fears Before Death</h3>
<p>Eric reportedly told family members he was worried about being poisoned. When a victim expresses concerns about their safety before their death, investigators take this extremely seriously. Family statements and prior communications become crucial evidence.</p>
<div class="bg-amber-50 border-l-4 border-l-amber-500 p-4 my-6">
<h4 class="font-semibold text-amber-900 mb-2">Key Lesson:</h4>
<p class="text-amber-800">If someone tells you they fear for their safety, document it. Keep records of conversations, dates, and any witnesses. This information can be vital if something happens.</p>
</div>
<h3>2. Financial Motives</h3>
<p>In many domestic homicide cases, money plays a central role. Life insurance policies, business interests, property, and divorce proceedings can all create financial incentives. Professional <a href="/background-checks">background investigations</a> often uncover financial pressures that may have motivated criminal behavior.</p>
<h3>3. Digital Footprint</h3>
<p>In the Richins case, digital evidence proved critical. Search history, purchase records, and communications all contributed to the prosecution's case. Modern <a href="/services/corporate-investigations">investigators</a> understand how to properly request and preserve digital evidence that meets court standards.</p>
<h3>4. Behavioral Changes</h3>
<p>Investigators look for unusual behavior patterns both before and after a death. In this case, Kouri's quick pivot to writing a grief book while allegedly having planned her husband's death raised questions that warranted deeper investigation.</p>
<h2 id="why-family-concerns-matter">Why Family Concerns Should Never Be Dismissed</h2>
<p>One of the most important takeaways from the Kouri Richins case is this: <strong>family members often sense when something is wrong before anyone else</strong>. Eric's family pushed for answers when official explanations didn't satisfy their concerns.</p>
<p>At <a href="/about">Trident Investigations</a>, we've seen this pattern repeatedly. Family members notice:</p>
<ul>
<li>Changes in their loved one's behavior or demeanor</li>
<li>Tensions in relationships that outsiders might miss</li>
<li>Financial irregularities or unusual spending patterns</li>
<li>Inconsistencies in stories told by surviving family members</li>
<li>A "gut feeling" that something doesn't add up</li>
</ul>
<p>If you have concerns about a loved one's death or safety, those feelings deserve to be taken seriously. A professional investigator can help determine whether your concerns warrant further action.</p>
<h2 id="role-private-investigators-suspicious-deaths">The Role of Private Investigators in Suspicious Death Cases</h2>
<p><a href="/services/domestic-investigations">Private investigators</a> can provide crucial support when families suspect foul play or when official investigations seem incomplete. Here's how we help:</p>
<h3>Independent Investigation</h3>
<p>We conduct our own investigation separate from law enforcement, often uncovering evidence or witnesses that official channels may have missed. Our work can either corroborate official findings or identify areas that warrant further scrutiny.</p>
<h3>Background Research</h3>
<p>Through comprehensive <a href="/background-checks">background investigations</a>, we can uncover financial pressures, relationship issues, prior incidents, and patterns of behavior that provide context for suspicious circumstances.</p>
<h3>Witness Location and Interviews</h3>
<p>We locate and interview witnesses who may have relevant information. Often, people who didn't speak to police are more willing to talk to a private investigator, especially when approached sensitively.</p>
<h3>Evidence Preservation</h3>
<p>We help families understand what evidence to preserve and how to document their concerns properly. This can be crucial if the case eventually goes to court.</p>
<h3>Liaison with Attorneys</h3>
<p>Our investigative reports are designed to meet <a href="/locations/utah-investigations">Utah court standards</a>, making them valuable resources for attorneys pursuing civil or criminal cases.</p>
<h2 id="protecting-yourself-and-loved-ones">Protecting Yourself and Loved Ones</h2>
<p>While the Kouri Richins case represents an extreme situation, it offers important lessons for everyone:</p>
<h3>Document Your Concerns</h3>
<p>If you or someone you know is worried about their safety in a relationship, document everything. Keep a journal, save text messages, and tell trusted friends or family members about your concerns.</p>
<h3>Trust Your Instincts</h3>
<p>If something feels wrong, it might be. Don't dismiss your gut feelings, especially when they involve the safety of yourself or loved ones.</p>
<h3>Know the Signs of Financial Manipulation</h3>
<p>Changes to life insurance policies, unusual financial pressures, or secretive behavior around money can all be warning signs in troubled relationships.</p>
<h3>Seek Professional Help</h3>
<p>Whether through law enforcement, <a href="/contact">private investigators</a>, or victim advocacy organizations, professional help is available for those who feel unsafe.</p>
<blockquote class="border-l-4 border-blue-500 pl-4 italic text-gray-700 my-6">
"In my experience, family members often know when something is wrong long before anyone else. The Kouri Richins case reminds us that those instincts deserve to be heardβand investigated." β CH, Senior Investigator, Trident Investigations
</blockquote>
<h2 id="when-to-hire-private-investigator">When Should You Hire a Private Investigator?</h2>
<p>Consider contacting a <a href="/services/domestic-investigations">professional investigator</a> if:</p>
<div class="bg-blue-50 border border-blue-200 rounded-lg p-6 my-6">
<h3 class="text-blue-900 font-semibold mb-3">Signs You Need Professional Investigation:</h3>
<ul class="text-blue-800 space-y-2">
<li>β A loved one's death seems suspicious but authorities have closed the case</li>
<li>β You have concerns about a family member's safety in their relationship</li>
<li>β Financial irregularities suggest possible exploitation or fraud</li>
<li>β Someone has expressed fear for their safety</li>
<li>β You need evidence for civil litigation related to a wrongful death</li>
<li>β Official investigations seem incomplete or dismissive of your concerns</li>
</ul>
</div>
<h2 id="utah-investigation-resources">Utah Investigation Resources</h2>
<p><a href="/locations/utah-investigations">Utah families</a> dealing with suspicious circumstances have several resources available:</p>
<ul>
<li><strong>Local law enforcement</strong> for criminal matters</li>
<li><strong>Utah Office of the Medical Examiner</strong> for questions about cause of death determinations</li>
<li><strong>Licensed private investigators</strong> for independent investigation</li>
<li><strong>Victim advocacy organizations</strong> for support and guidance</li>
<li><strong>Family law attorneys</strong> for civil remedies and wrongful death claims</li>
</ul>
<h2 id="contact-trident-investigations">Contact Trident Investigations</h2>
<p>If you have concerns about a loved one's safety or questions about suspicious circumstances, <a href="/services/domestic-investigations">professional investigation</a> can provide the answers you need.</p>
<p>At <a href="/about">Trident Investigations</a>, we approach every case with sensitivity, professionalism, and a commitment to uncovering the truth. Our licensed investigators have experience with complex domestic cases throughout <a href="/locations/utah-investigations">Utah</a> and the surrounding region.</p>
<div class="text-center bg-gray-50 p-6 rounded-lg my-6">
<p class="text-xl font-semibold text-gray-900 mb-2">π <strong>Confidential Consultation: (385) 275-8220</strong></p>
<p class="text-lg text-gray-800 mb-4">π <strong><a href="/contact" class="text-trident-blue hover:text-trident-orange underline">Request a Private Consultation</a></strong></p>
<p class="text-gray-700">All inquiries are strictly confidential.</p>
</div>
<p>The Kouri Richins case reminds us that the truth mattersβand that professional investigation can help bring it to light. Whether you're dealing with suspicious circumstances, safety concerns, or simply unanswered questions, you don't have to navigate these challenges alone.</p>
<p>Trust your instincts. Document your concerns. And when you need answers, <a href="/contact">reach out for professional help</a>.</p>
</div>
`,publishDate:"2025-01-29",category:"Domestic Investigations",author:"CH",authorTitle:"Senior Investigator, Trident Investigations",keywordFocus:"Kouri Richins case, Utah murder investigation, suspicious death investigation, domestic homicide",tags:["Domestic Investigation","Suspicious Death","Utah Crime","Murder Investigation","Private Investigator","Family Safety","Warning Signs","Death Investigation"],featured:!0,metaDescription:"The Kouri Richins murder case reveals critical lessons about suspicious death investigations in Utah. Learn warning signs, when to hire a PI, and how professional investigation can uncover the truth.",seoData:Bh("Kouri Richins case investigation",["Utah murder investigation","suspicious death investigation","domestic homicide","private investigator Utah","death investigation warning signs"],"The Kouri Richins Case: What Utah's Most Shocking Murder Teaches Us About Domestic Investigation","The Kouri Richins murder case reveals critical lessons about suspicious death investigations in Utah. Learn warning signs, when to hire a PI, and how professional investigation can uncover the truth.",12,3200,"/lovable-uploads/de5c9241-d01c-4005-939e-2b5401e3da67.png","Professional investigation team analyzing evidence in Utah case"),conversionData:Wh("domestic-investigation"),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh("The Kouri Richins Case: What Utah's Most Shocking Murder Case Teaches Us About Domestic Investigation","The Kouri Richins murder case reveals critical lessons about suspicious death investigations in Utah. Learn warning signs, when to hire a PI, and how professional investigation can uncover the truth.","CH","2025-01-29"),disclaimers:Fb()},tte={id:"utah-alienation-of-affection-law-2026",slug:"utah-alienation-of-affection-law-2026",title:"Utah Alienation of Affection Law 2026: What Families Need to Know",excerpt:"Utah may eliminate its alienation of affection law in 2026. Learn what this 'homewrecker law' means for your family and why gathering evidence now is critical.",content:`
<div class="prose max-w-none">
<p class="lead">If your marriage has been devastated by a third party's interference β whether an affair partner, a meddling in-law, or someone who intentionally drove a wedge between you and your spouse β Utah law has traditionally given you a path to justice. But the legal landscape may be shifting.</p>
<h2 id="what-is-alienation-of-affection">What Is Alienation of Affection?</h2>
<p>Alienation of affection is a civil lawsuit that allows a spouse to seek monetary damages against a third party who intentionally caused or contributed to the destruction of their marriage. While anyone who interferes with a marriage can technically be sued, the defendant is typically an affair partner.</p>
<p>These lawsuits can seek:</p>
<ul>
<li><strong>Compensatory damages</strong> for emotional distress and loss of companionship</li>
<li><strong>Punitive damages</strong> to punish the wrongdoer and deter similar behavior</li>
</ul>
<p>Utah is currently one of only <strong>five states</strong> that still recognize this cause of action. The others are Hawaii, Mississippi, North Carolina, and South Dakota. New Mexico recently became the latest state to eliminate theirs β on January 26, 2026, their Supreme Court unanimously abolished the law after 103 years.</p>
<h2 id="changes-coming-to-utah">Changes May Be Coming to Utah</h2>
<p>Legislation is currently moving through Utah's legislature that would eliminate the state's alienation of affection law. The bill has already passed the Senate and is now being considered by the House.</p>
<p>There are valid perspectives on both sides of this debate. Some argue the law protects families and provides accountability for those who deliberately interfere with marriages. Others believe it's an outdated remedy that doesn't align with modern views on relationships and personal responsibility.</p>
<div class="bg-blue-50 border-l-4 border-l-blue-500 p-4 my-6">
<h4 class="font-semibold text-blue-900 mb-2">Expert Perspective:</h4>
<p class="text-blue-800">Alan Hawkins, professor emeritus at Brigham Young University and former chair of the Utah Marriage Commission, has noted: "Family instability is the most important social issue of our time. The research shows how beneficial good marriages are to adults, children, and communities."</p>
</div>
<p>Regardless of where you stand on the policy question, one thing is clear: <strong>if you may need evidence of infidelity or interference in your marriage, the time to gather it is now.</strong></p>
<h2 id="why-evidence-matters">Why Evidence Matters β Law or No Law</h2>
<p>Whether Utah keeps its alienation of affection law or not, evidence of infidelity remains critically important for Utah families. Here's why:</p>
<h3>For Divorce Proceedings</h3>
<p>Even in a no-fault divorce state, evidence of an affair can impact:</p>
<ul>
<li><strong>Child custody determinations</strong> β Courts consider parental conduct when evaluating the best interests of children</li>
<li><strong>Division of marital assets</strong> β Dissipation of assets on an affair partner may affect property division</li>
<li><strong>Spousal support (alimony) decisions</strong> β Fault can be considered in alimony awards under Utah law</li>
</ul>
<h3>For Alienation of Affection Cases (While the Law Exists)</h3>
<p>Utah courts require proof that:</p>
<ol>
<li>A genuine marital relationship existed with love and affection</li>
<li>The love and affection were alienated and destroyed</li>
<li>The defendant's wrongful conduct caused the destruction</li>
</ol>
<h3>For Your Own Clarity</h3>
<p>Sometimes you simply need to know the truth about what's happening in your marriage before you can decide how to move forward. <a href="/services/domestic-investigations">Professional investigation</a> can provide the answers you need.</p>
<h2 id="how-private-investigator-can-help">How a Private Investigator Can Help</h2>
<p>At <a href="/about">Trident Investigations</a>, we specialize in <a href="/services/domestic-investigations">domestic investigations</a> that gather court-admissible evidence while protecting your privacy and legal position. Our services include:</p>
<ul>
<li><strong>Discreet surveillance</strong> β Document activities and meetings without alerting the subjects</li>
<li><strong>Digital investigation</strong> β Analyze digital footprints within legal boundaries</li>
<li><strong>Background checks</strong> β Uncover relevant information about suspected affair partners</li>
<li><strong>Asset investigation</strong> β Track spending and hidden assets related to infidelity</li>
<li><strong>Witness interviews</strong> β Gather statements from those with knowledge of the situation</li>
</ul>
<div class="bg-amber-50 border-l-4 border-l-amber-500 p-4 my-6">
<h4 class="font-semibold text-amber-900 mb-2">Why Professional Investigation Matters:</h4>
<p class="text-amber-800">Evidence gathered improperly can be inadmissible in court or even expose you to legal liability. Licensed investigators understand Utah's laws regarding evidence collection and ensure everything we gather can be used effectively in legal proceedings.</p>
</div>
<h2 id="what-evidence-is-most-valuable">What Evidence Is Most Valuable?</h2>
<p>For alienation of affection and divorce cases, the most impactful evidence typically includes:</p>
<div class="bg-gray-50 border border-gray-200 rounded-lg p-6 my-6">
<h3 class="text-gray-900 font-semibold mb-3">Types of Valuable Evidence:</h3>
<ul class="text-gray-800 space-y-2">
<li>β <strong>Photographic and video documentation</strong> of the relationship</li>
<li>β <strong>Records of communication</strong> between the spouse and third party</li>
<li>β <strong>Financial records</strong> showing money spent on the affair</li>
<li>β <strong>Witness testimony</strong> from those who observed the relationship</li>
<li>β <strong>Timeline documentation</strong> showing when the interference began</li>
<li>β <strong>Evidence of intent</strong> to interfere with the marriage</li>
</ul>
</div>
<h2 id="the-clock-may-be-ticking">The Clock May Be Ticking</h2>
<p>If Utah's legislature eliminates the alienation of affection law, your ability to pursue this legal remedy could disappear. Even if you're not ready to file a lawsuit today, having documented evidence preserves your options for the future.</p>
<p>Consider taking action now if:</p>
<ul>
<li>You suspect your spouse is having an affair</li>
<li>A third party has been actively interfering in your marriage</li>
<li>You're contemplating divorce and want to protect your position</li>
<li>You want to hold someone accountable for destroying your family</li>
</ul>
<blockquote class="border-l-4 border-blue-500 pl-4 italic text-gray-700 my-6">
"Evidence gathered today may be essential for legal options that could disappear tomorrow. Don't wait until it's too late to protect your family's interests." β Senior Investigator, Trident Investigations
</blockquote>
<h2 id="confidential-consultation">Contact Trident Investigations</h2>
<p>If you're dealing with suspected infidelity or third-party interference in your marriage, <a href="/contact">professional investigation</a> can provide the clarity and evidence you need.</p>
<p>At <a href="/about">Trident Investigations</a>, we handle every case with discretion, professionalism, and sensitivity to the emotional challenges you're facing. Our licensed investigators have extensive experience with <a href="/services/domestic-investigations">domestic investigations</a> throughout <a href="/locations/utah-investigations">Utah</a>.</p>
<div class="text-center bg-gray-50 p-6 rounded-lg my-6">
<p class="text-xl font-semibold text-gray-900 mb-2">π <strong>Confidential Consultation: (385) 275-8220</strong></p>
<p class="text-lg text-gray-800 mb-4">π <strong><a href="/contact" class="text-trident-blue hover:text-trident-orange underline">Request a Private Consultation</a></strong></p>
<p class="text-gray-700">All inquiries are strictly confidential. We understand the sensitive nature of these matters.</p>
</div>
<p>Whether Utah keeps its alienation of affection law or not, you deserve to know the truth about your marriage. And if you decide to pursue legal action, you'll need evidence gathered properly and professionally.</p>
<p>Don't wait for the law to change. <a href="/contact">Contact us today</a> to discuss your situation confidentially.</p>
</div>
`,publishDate:"2026-02-06",category:"Family Law Investigations",author:"Trident Investigations",authorTitle:"Licensed Private Investigators",keywordFocus:"Utah alienation of affection law, homewrecker law Utah, infidelity investigation",tags:["alienation of affection","Utah family law","infidelity investigation","homewrecker law","cheating spouse","domestic investigation","divorce evidence"],featured:!0,metaDescription:"Utah may eliminate its alienation of affection law in 2026. Learn what this 'homewrecker law' means for your family and why gathering evidence now is critical.",seoData:Bh("Utah alienation of affection law",["homewrecker law Utah","alienation of affection Utah 2026","cheating spouse lawsuit","Utah family law changes","infidelity evidence gathering"],"Utah Alienation of Affection Law 2026: What Families Need to Know","Utah may eliminate its alienation of affection law in 2026. Learn what this 'homewrecker law' means for your family and why gathering evidence now is critical.",8,2100,"/lovable-uploads/de5c9241-d01c-4005-939e-2b5401e3da67.png","Utah family law investigation - alienation of affection evidence"),conversionData:Wh("domestic-investigation"),contentQuality:hd("expert"),analytics:md(),schemaMarkup:zh("Utah Alienation of Affection Law 2026: What Families Need to Know","Utah may eliminate its alienation of affection law in 2026. Learn what this 'homewrecker law' means for your family and why gathering evidence now is critical.","Trident Investigations","2026-02-06"),disclaimers:Fb()},nte=[Bee,tte,ete,Yu,qee,Zee,Jee,Hee,Gee,Kee,Xee,Qee],rte=[{...la("signs-cheating-relationships","signs-of-cheating-in-relationships","Signs of Cheating in Relationships: Professional Investigation Guide","Discover the warning signs of infidelity and learn when professional investigation services can provide the clarity and evidence you need to protect your future.",`
<div class="prose max-w-none">
<p class="lead">When trust breaks down in a relationship, the emotional toll can be devastating. Understanding the warning signs of infidelity and knowing when to seek professional help can protect both your emotional well-being and legal interests.</p>
<h2>Understanding Relationship Warning Signs</h2>
<p>Infidelity affects millions of relationships, with studies suggesting that 20-25% of married individuals will experience infidelity at some point. Recognizing the early warning signs can help you make informed decisions about your relationship and future.</p>
<h3>Behavioral Changes to Monitor</h3>
<p>Sudden shifts in behavior often indicate underlying issues in a relationship. These changes may include increased secrecy around devices, unexplained absences, defensive reactions to simple questions, and emotional withdrawal from the relationship.</p>
<h3>Communication Pattern Shifts</h3>
<p>Partners who are being unfaithful often change their communication patterns significantly. This might manifest as avoiding eye contact during conversations, providing vague answers about their whereabouts, or becoming unusually critical or picking fights.</p>
<h2>When Professional Investigation Becomes Necessary</h2>
<p>While some relationship issues can be resolved through communication and counseling, certain situations require professional intervention to protect your legal and financial interests.</p>
<h3>Legal Protection Considerations</h3>
<p>In Utah, proper documentation of infidelity can significantly impact divorce proceedings, asset division, and custody arrangements. Professional investigation ensures that any evidence gathered meets court standards and can be admissible in legal proceedings.</p>
<h3>Financial Safeguarding</h3>
<p>Undiscovered financial infidelity often accompanies emotional infidelity. Professional investigators can uncover hidden assets, secret accounts, and financial misconduct that could affect your financial security.</p>
<h2>The Investigation Process</h2>
<p>Professional relationship investigations follow strict protocols to ensure both legal compliance and emotional sensitivity. The process typically involves comprehensive background research, discrete surveillance when appropriate, and thorough documentation of findings.</p>
<h3>Evidence Documentation Standards</h3>
<p>Utah courts require specific standards for evidence admissibility. Professional investigators understand these requirements and ensure that all documentation meets legal standards for potential court proceedings.</p>
<h2>Protecting Your Emotional Well-being</h2>
<p>While gathering evidence is important, protecting your emotional health throughout the process is equally crucial. Professional investigators work with sensitivity to minimize additional emotional trauma while providing the clarity you need.</p>
<h3>Confidential Support Services</h3>
<p>Reputable investigation services provide not just evidence gathering, but also connect clients with appropriate support resources including counseling services, legal referrals, and financial planning assistance.</p>
<h2>Moving Forward with Clarity</h2>
<p>Whether your suspicions are confirmed or dispelled, professional investigation provides the clarity needed to make informed decisions about your future. This knowledge empowers you to take appropriate steps to protect yourself legally, financially, and emotionally.</p>
<div class="bg-blue-50 p-6 rounded-lg border-l-4 border-blue-400 my-8">
<h3 class="text-lg font-semibold text-blue-900 mb-2">Important Note</h3>
<p class="text-blue-800">If you're experiencing relationship concerns, professional investigation services can provide the clarity and documentation you need while maintaining complete confidentiality and legal compliance.</p>
</div>
</div>
`,"Infidelity Investigation","infidelity","signs of cheating relationships",["infidelity investigation","relationship warning signs","Utah divorce evidence","marital investigation","cheating spouse investigation"],[],[],"2024-12-15","/lovable-uploads/effective-pi-tips-utah.jpg"),keywordFocus:"signs of cheating relationships",tags:["Infidelity Investigation","Relationship Investigation","Utah Divorce","Private Investigator","Marriage Investigation"],metaDescription:"Discover warning signs of cheating in relationships and when professional investigation can provide clarity and court-admissible evidence in Utah.",featured:!0},{...la("effective-pi-tips-utah","effective-private-investigator-tips-utah","Effective Private Investigator Tips for Utah Residents","Learn essential tips for working with private investigators in Utah, including what to expect, how to prepare, and maximizing the value of professional investigation services.",`
<div class="prose max-w-none">
<p class="lead">Working with a private investigator can be a crucial step in resolving personal, legal, or business matters. Understanding how to effectively collaborate with investigation professionals ensures you get the best possible outcomes while protecting your interests.</p>
<h2>Choosing the Right Private Investigator in Utah</h2>
<p>Utah has specific licensing requirements for private investigators. Always verify that your chosen investigator holds a valid Utah Private Investigator License and carries appropriate insurance. Look for investigators with experience relevant to your specific type of case.</p>
<h3>Licensing and Credentials</h3>
<p>Utah requires private investigators to be licensed through the Department of Public Safety. Verify licensing status and check for any disciplinary actions. Professional investigators should also carry liability insurance and bonding.</p>
<h3>Experience and Specialization</h3>
<p>Different investigators specialize in different areas. Some focus on domestic investigations, others on corporate matters, background checks, or surveillance. Choose an investigator whose expertise aligns with your specific needs.</p>
<h2>Preparing for Your Investigation</h2>
<p>Proper preparation can significantly improve the effectiveness of your investigation while potentially reducing costs. Organize all relevant information and documents before your initial consultation.</p>
<h3>Document Organization</h3>
<p>Gather all relevant documents, photos, communications, and other evidence you already have. Create a timeline of events and prepare a list of key individuals involved in your case.</p>
<h3>Clear Objectives</h3>
<p>Define what you hope to achieve through the investigation. Whether you need evidence for legal proceedings, want to locate someone, or need background information, clear objectives help your investigator develop an effective strategy.</p>
<h2>Understanding the Investigation Process</h2>
<p>Professional investigations follow systematic approaches designed to gather reliable, admissible evidence while maintaining legal and ethical standards.</p>
<h3>Initial Consultation</h3>
<p>Most reputable investigators offer initial consultations to assess your case, explain their approach, and provide cost estimates. This is your opportunity to evaluate their professionalism and expertise.</p>
<h3>Investigation Planning</h3>
<p>Your investigator should develop a comprehensive plan outlining their approach, timeline, and expected outcomes. This plan should be flexible enough to adapt as new information emerges.</p>
<h2>Legal and Ethical Considerations</h2>
<p>Utah private investigators must operate within strict legal and ethical boundaries. Understanding these limitations helps set realistic expectations for your investigation.</p>
<h3>Privacy Laws</h3>
<p>Investigators must respect privacy rights and cannot engage in illegal surveillance or evidence gathering. They cannot trespass, hack into private accounts, or use illegal recording devices.</p>
<h3>Evidence Admissibility</h3>
<p>Professional investigators understand court requirements for evidence admissibility. They follow proper procedures to ensure any evidence gathered can be used in legal proceedings if necessary.</p>
<h2>Communication and Updates</h2>
<p>Establish clear communication protocols with your investigator. Regular updates help you stay informed about progress and make informed decisions about continuing or modifying the investigation.</p>
<h3>Reporting Schedule</h3>
<p>Agree on a regular reporting schedule that keeps you informed without interfering with the investigation. Most investigators provide written reports summarizing their findings and activities.</p>
<h3>Confidentiality</h3>
<p>Professional investigators maintain strict confidentiality about your case. However, discuss confidentiality expectations and any limitations upfront to avoid misunderstandings.</p>
<h2>Cost Management</h2>
<p>Investigation costs can vary significantly based on case complexity and duration. Understanding fee structures and managing costs effectively helps you get maximum value from investigation services.</p>
<h3>Fee Structures</h3>
<p>Investigators may charge hourly rates, flat fees for specific services, or retainer arrangements. Understand what's included in quoted prices and what additional costs might arise.</p>
<h3>Budget Planning</h3>
<p>Set a realistic budget for your investigation and discuss cost management strategies with your investigator. They can often suggest approaches that maximize results within your budget constraints.</p>
<h2>Working with Legal Counsel</h2>
<p>If your investigation relates to legal matters, coordinate between your investigator and attorney. This ensures investigation activities support your legal strategy and that evidence is properly preserved.</p>
<h3>Attorney-Investigator Coordination</h3>
<p>Your attorney and investigator should work together to ensure investigation activities support your legal case. This coordination can also provide additional protection for privileged communications.</p>
<div class="bg-blue-50 p-6 rounded-lg border-l-4 border-blue-400 my-8">
<h3 class="text-lg font-semibold text-blue-900 mb-2">Professional Tip</h3>
<p class="text-blue-800">The most successful investigations result from clear communication, realistic expectations, and professional collaboration between client and investigator.</p>
</div>
</div>
`,"Private Investigation","investigation","private investigator tips Utah",["Utah private investigator","investigation services","PI tips","Utah investigation","private detective Utah"],[],[],"2024-12-10"),keywordFocus:"private investigator tips Utah",tags:["Private Investigation","Utah PI","Investigation Tips","Professional Services"],metaDescription:"Essential tips for working effectively with private investigators in Utah. Learn how to prepare, what to expect, and maximize investigation value.",featured:!1},{...la("utah-divorce-evidence","utah-divorce-evidence-gathering-guide","Utah Divorce Evidence Gathering: Complete Legal Guide","Comprehensive guide to gathering admissible evidence for Utah divorce proceedings, including documentation requirements, investigation options, and legal considerations.",`
<div class="prose max-w-none">
<p class="lead">Divorce proceedings in Utah require proper evidence documentation to support claims regarding asset division, custody arrangements, and other critical matters. Understanding evidence requirements and gathering procedures protects your legal interests.</p>
<h2>Utah Divorce Evidence Requirements</h2>
<p>Utah courts follow specific rules for evidence admissibility in divorce proceedings. Understanding these requirements ensures that evidence you gather can be effectively used to support your case.</p>
<h3>Admissible Evidence Types</h3>
<p>Utah courts accept various types of evidence including financial documents, communication records, photographs, witness testimony, and professional reports. Each type has specific authentication and presentation requirements.</p>
<h3>Chain of Custody</h3>
<p>Proper chain of custody documentation is crucial for evidence admissibility. This includes maintaining records of who collected evidence, when it was collected, and how it has been stored and handled.</p>
<h2>Financial Evidence Documentation</h2>
<p>Financial evidence often plays a central role in Utah divorce proceedings, particularly regarding asset division and support determinations.</p>
<h3>Asset Documentation</h3>
<p>Comprehensive asset documentation includes bank statements, investment accounts, retirement funds, real estate records, business valuations, and personal property inventories. Professional appraisals may be necessary for significant assets.</p>
<h3>Income Verification</h3>
<p>Income documentation includes tax returns, pay stubs, employment contracts, business records, and other income sources. Self-employed individuals may require additional documentation and professional analysis.</p>
<h2>Digital Evidence Considerations</h2>
<p>Digital communications and records increasingly play important roles in divorce proceedings. However, gathering digital evidence requires careful attention to legal and technical requirements.</p>
<h3>Communication Records</h3>
<p>Text messages, emails, social media posts, and other digital communications can provide important evidence. However, privacy laws and authentication requirements must be carefully considered.</p>
<h3>Social Media Evidence</h3>
<p>Social media posts can provide evidence of lifestyle, relationships, and financial circumstances. Professional documentation ensures proper authentication and admissibility.</p>
<h2>Custody-Related Evidence</h2>
<p>Child custody determinations in Utah focus on the best interests of the child. Evidence supporting parenting capabilities and child welfare is crucial for custody proceedings.</p>
<h3>Parenting Documentation</h3>
<p>Document involvement in children's activities, school participation, medical care, and daily routines. Maintain records of parenting time and any concerning incidents.</p>
<h3>Child Welfare Evidence</h3>
<p>Evidence of substance abuse, domestic violence, neglect, or other factors affecting child welfare requires careful documentation and often professional investigation.</p>
<h2>Professional Investigation Services</h2>
<p>Complex divorce cases often benefit from professional investigation services to gather comprehensive, admissible evidence while maintaining legal compliance.</p>
<h3>Surveillance Documentation</h3>
<p>Professional surveillance can document behavior, relationships, and activities relevant to divorce proceedings. Licensed investigators understand legal limitations and documentation requirements.</p>
<h3>Asset Investigation</h3>
<p>Professional investigators can uncover hidden assets, trace financial transactions, and document financial misconduct that might otherwise go undetected.</p>
<h2>Legal Compliance and Ethics</h2>
<p>Evidence gathering must comply with Utah law and ethical standards. Improper evidence gathering can result in evidence exclusion and potential legal consequences.</p>
<h3>Privacy Rights</h3>
<p>Respect privacy rights and legal limitations when gathering evidence. Illegal surveillance, trespassing, or unauthorized access to private information can invalidate evidence and create legal liability.</p>
<h3>Professional Standards</h3>
<p>Licensed private investigators follow professional standards and legal requirements for evidence gathering. This ensures admissibility and protects against legal challenges.</p>
<h2>Working with Legal Counsel</h2>
<p>Coordinate evidence gathering with your divorce attorney to ensure activities support your legal strategy and comply with court requirements.</p>
<h3>Attorney Guidance</h3>
<p>Your attorney can provide guidance on evidence priorities, legal requirements, and strategic considerations for your specific case circumstances.</p>
<h3>Evidence Presentation</h3>
<p>Proper evidence presentation in court requires understanding of legal procedures and requirements. Professional preparation ensures maximum impact and admissibility.</p>
<div class="bg-blue-50 p-6 rounded-lg border-l-4 border-blue-400 my-8">
<h3 class="text-lg font-semibold text-blue-900 mb-2">Legal Reminder</h3>
<p class="text-blue-800">Evidence gathering for divorce proceedings must comply with Utah law and court rules. Professional guidance ensures proper procedures and admissibility.</p>
</div>
</div>
`,"Divorce Investigation","divorce","Utah divorce evidence gathering",["Utah divorce evidence","divorce investigation","Utah family law","divorce documentation","custody evidence"],[],[],"2024-12-05"),keywordFocus:"Utah divorce evidence gathering",tags:["Divorce Investigation","Utah Family Law","Legal Evidence","Custody Investigation"],metaDescription:"Complete guide to gathering admissible evidence for Utah divorce proceedings. Learn documentation requirements and professional investigation options.",featured:!1},{...la("background-check-utah","comprehensive-background-check-guide-utah","Comprehensive Background Check Guide for Utah Residents","Everything you need to know about background checks in Utah, including legal requirements, types of checks available, and when professional services are necessary.",`
<div class="prose max-w-none">
<p class="lead">Background checks serve various purposes from employment screening to personal safety verification. Understanding Utah's background check laws and available options helps you make informed decisions about when and how to conduct these important investigations.</p>
<h2>Types of Background Checks in Utah</h2>
<p>Utah offers various types of background checks depending on your specific needs and legal requirements. Each type provides different levels of information and has specific use cases.</p>
<h3>Criminal Background Checks</h3>
<p>Criminal background checks reveal criminal history including arrests, convictions, and pending charges. Utah maintains criminal records at both state and local levels, requiring comprehensive searches for complete results.</p>
<h3>Employment Background Checks</h3>
<p>Employment background checks verify education, employment history, professional licenses, and other qualifications. These checks help employers make informed hiring decisions while complying with legal requirements.</p>
<h2>Utah Legal Requirements</h2>
<p>Utah has specific laws governing background checks, particularly for employment purposes. Understanding these requirements ensures compliance and protects against legal liability.</p>
<h3>Fair Credit Reporting Act (FCRA)</h3>
<p>The FCRA governs background checks used for employment, housing, and other purposes. Compliance requires proper disclosure, consent, and adverse action procedures.</p>
<h3>Utah Employment Laws</h3>
<p>Utah employment laws provide additional protections and requirements for employment-related background checks. These include timing restrictions and disclosure requirements.</p>
<h2>Professional Background Check Services</h2>
<p>Professional background check services provide comprehensive, accurate, and legally compliant investigations that individual searches often cannot match.</p>
<h3>Comprehensive Database Access</h3>
<p>Professional services access multiple databases and records sources that are not available to the general public, providing more complete and accurate results.</p>
<h3>Legal Compliance</h3>
<p>Professional services ensure compliance with federal and state laws governing background checks, protecting you from legal liability and ensuring proper procedures.</p>
<h2>Personal Safety Background Checks</h2>
<p>Personal safety background checks help verify information about individuals in your personal life, from dating partners to service providers.</p>
<h3>Dating and Relationship Verification</h3>
<p>Background checks can verify identity, criminal history, and other important information about potential romantic partners, helping protect your safety and security.</p>
<h3>Service Provider Screening</h3>
<p>Background checks for service providers like contractors, babysitters, or caregivers help ensure the safety of your family and property.</p>
<h2>Business and Employment Uses</h2>
<p>Businesses use background checks for various purposes including employee screening, vendor verification, and due diligence investigations.</p>
<h3>Pre-Employment Screening</h3>
<p>Pre-employment background checks help verify candidate qualifications and identify potential risks. Proper procedures ensure legal compliance and effective screening.</p>
<h3>Ongoing Employee Monitoring</h3>
<p>Some positions require ongoing background monitoring to maintain security clearances or professional licenses. Regular updates help identify new issues that might affect employment.</p>
<h2>Limitations and Considerations</h2>
<p>Background checks have limitations and legal restrictions that affect what information is available and how it can be used.</p>
<h3>Information Accuracy</h3>
<p>Background check accuracy depends on database quality and search comprehensiveness. Professional services typically provide more accurate and complete results than individual searches.</p>
<h3>Legal Restrictions</h3>
<p>Various laws restrict what information can be included in background checks and how it can be used. Understanding these restrictions prevents legal violations and ensures proper use.</p>
<h2>Choosing Background Check Services</h2>
<p>Selecting appropriate background check services depends on your specific needs, legal requirements, and budget considerations.</p>
<h3>Service Comparison</h3>
<p>Compare services based on comprehensiveness, accuracy, turnaround time, and legal compliance. Professional services often provide better value despite higher costs.</p>
<h3>Ongoing Needs</h3>
<p>Consider whether you need one-time checks or ongoing monitoring services. Some providers offer subscription services for regular updates and monitoring.</p>
<div class="bg-blue-50 p-6 rounded-lg border-l-4 border-blue-400 my-8">
<h3 class="text-lg font-semibold text-blue-900 mb-2">Important Note</h3>
<p class="text-blue-800">Background checks must comply with federal and state laws. Professional services ensure legal compliance and provide more comprehensive, accurate results.</p>
</div>
</div>
`,"Background Investigation","background-check","Utah background check guide",["Utah background check","employment screening","criminal background check","background investigation","Utah employment law"],[],[],"2024-11-30"),keywordFocus:"Utah background check guide",tags:["Background Investigation","Employment Screening","Utah Law","Criminal Records"],metaDescription:"Complete guide to background checks in Utah. Learn about types, legal requirements, and when to use professional background check services.",featured:!1}],jl=[...nte,...rte],Qr={useStaticData:!0},ite=async()=>{if(!Qr.supabaseUrl||!Qr.supabaseKey)return console.log("Supabase not configured, using static data"),jl;try{const e=await fetch(`${Qr.supabaseUrl}/rest/v1/blog_posts?status=eq.published&order=publish_date.desc`,{headers:{apikey:Qr.supabaseKey,Authorization:`Bearer ${Qr.supabaseKey}`}});if(!e.ok)return console.error("Failed to fetch from API, falling back to static data"),jl;const t=await e.json();return console.log(`Loaded ${t.length} blog posts from API`),t}catch(e){return console.error("Error fetching from API, using static data:",e),jl}},ste=async e=>{if(!Qr.supabaseUrl||!Qr.supabaseKey)return jl.find(t=>t.slug===e);try{const t=await fetch(`${Qr.supabaseUrl}/rest/v1/blog_posts?slug=eq.${e}&status=eq.published&limit=1`,{headers:{apikey:Qr.supabaseKey,Authorization:`Bearer ${Qr.supabaseKey}`}});return t.ok?(await t.json())[0]:jl.find(i=>i.slug===e)}catch(t){return console.error("Error fetching post from API:",t),jl.find(n=>n.slug===e)}},Bb=async()=>{if(console.log("Fetching blog posts..."),Qr.useStaticData){const e=[...jl].sort((t,n)=>new Date(n.publishDate).getTime()-new Date(t.publishDate).getTime());return console.log(`Loaded ${e.length} blog posts from static data`),e}return ite()},ate=async e=>{if(console.log(`Fetching blog post with slug: ${e}`),Qr.useStaticData){const t=jl.find(n=>n.slug===e);return console.log(t?`Found blog post: ${t.title}`:`Blog post not found for slug: ${e}`),t}return ste(e)},ote=async e=>{console.log(`Fetching blog posts for tag: ${e}`);const t=e.replace(/-/g," "),s=(await Bb()).filter(a=>a.tags&&a.tags.some(o=>o.toLowerCase()===t.toLowerCase())).sort((a,o)=>new Date(o.publishDate).getTime()-new Date(a.publishDate).getTime());return console.log(`Found ${s.length} posts for tag: ${t}`),s},$_=e=>{try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}catch{return e}},lte=e=>e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase()),cte=()=>{const{data:e=[],isLoading:t}=ba({queryKey:["blogPostsTeaser"],queryFn:Bb}),n=e.filter(i=>{var s;return((s=i.seoData)==null?void 0:s.images)&&i.seoData.images.length>0}).slice(0,3);return r.jsx("section",{className:"section bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Latest from Our Blog"}),r.jsx("p",{className:"text-lg text-trident-black opacity-70 max-w-2xl mx-auto",children:"Investigative insights, industry news, and helpful resources."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-10",children:t?Array(3).fill(0).map((i,s)=>r.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg overflow-hidden shadow-md animate-pulse",children:[r.jsx("div",{className:"h-48 bg-gray-300"}),r.jsxs("div",{className:"p-6",children:[r.jsx("div",{className:"h-6 bg-gray-300 rounded mb-2"}),r.jsx("div",{className:"h-16 bg-gray-200 rounded mb-4"}),r.jsx("div",{className:"h-4 w-24 bg-gray-300 rounded"})]})]},s)):n.map(i=>r.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg overflow-hidden shadow-md",children:[r.jsx("img",{src:i.seoData.images[0].src,alt:i.seoData.images[0].alt,loading:"lazy",className:"w-full h-48 object-cover"}),r.jsxs("div",{className:"p-6",children:[r.jsx("div",{className:"text-sm text-trident-black opacity-70 mb-2",children:i.category}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:i.title}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:i.excerpt}),r.jsxs("div",{className:"flex items-center justify-between text-sm text-trident-black opacity-70 mb-4",children:[r.jsxs("span",{children:["By ",i.author]}),r.jsx("span",{children:$_(i.publishDate)})]}),r.jsxs(te,{to:`/blog/${i.slug}`,className:"inline-flex items-center font-semibold text-trident-blue hover:underline","aria-label":`Read more about ${i.title}`,children:["Read More",r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]},i.id||i.slug))}),r.jsx("div",{className:"text-center py-8",children:r.jsx(V,{asChild:!0,variant:"secondary",size:"lg",className:"px-8",children:r.jsx(te,{to:"/blog",children:"Visit Our Blog"})})})]})})},Wb=({type:e="service",className:t=""})=>e==="homepage"?r.jsx("div",{className:`bg-trident-black text-white p-6 rounded-lg ${t}`,children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(ri,{className:"w-6 h-6 mr-3 mt-1 text-trident-orange flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2 text-white",children:"Licensed Professional Services"}),r.jsx("p",{className:"text-white opacity-70",children:"All investigations conducted in full compliance with Utah Code Title 53, Chapter 9. Licensed by Utah Bureau of Criminal Identification (License #G105645). Professional investigation services with court-admissible evidence gathering."})]})]})}):e==="blog"?r.jsx("div",{className:`bg-amber-50 border-l-4 border-amber-400 p-6 mb-8 ${t}`,children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(ri,{className:"w-5 h-5 mr-3 mt-0.5 text-amber-600 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-amber-800 mb-2",children:"Important Notice - No Legal Advice"}),r.jsx("p",{className:"text-amber-700 text-sm",children:"This content is for informational purposes only and does not constitute legal advice. Trident Investigations provides investigative services only and does not provide legal advice, legal representation, or legal services of any kind. For legal advice specific to your situation, consult with a qualified Utah family law attorney."})]})]})}):r.jsx("div",{className:`bg-blue-50 border-l-4 border-blue-400 p-6 ${t}`,children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(ri,{className:"w-5 h-5 mr-3 mt-0.5 text-blue-600 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-blue-800 mb-2",children:"Legal Compliance Notice"}),r.jsx("p",{className:"text-blue-700 text-sm",children:"All investigative services are performed within the bounds of federal and state law. Evidence gathering follows strict legal protocols to ensure court admissibility. Consultation required to determine legal scope of investigation. Licensed by Utah Bureau of Criminal Identification (License #G105645). We do not provide legal advice or legal services."})]})]})}),dte=({name:e="Trident Investigations",description:t="Licensed private investigation agency serving Utah, Idaho, and Wyoming. Specializing in domestic investigations, corporate investigations, insurance fraud, and legal support services.",address:n={streetAddress:"Utah, Idaho, Wyoming Service Area",addressLocality:"Salt Lake City",addressRegion:"UT",postalCode:"84000",addressCountry:"US"},phone:i="+1-801-555-0199",email:s="contact@tridentpi.net",url:a="https://tridentpi.net",serviceArea:o=["Utah","Idaho","Wyoming","Salt Lake County","Utah County","Davis County","Weber County"],services:l=["Private Investigation","Domestic Investigation","Corporate Investigation","Insurance Investigation","Criminal Investigation","Asset Search","Legal Investigation Support","Surveillance Services","Background Checks","Fraud Investigation"],license:c="Utah Private Investigator License",priceRange:d="$$"})=>{const u={"@context":"https://schema.org","@type":"LocalBusiness","@id":a,name:e,description:t,url:a,telephone:i,email:s,priceRange:d,address:{"@type":"PostalAddress",streetAddress:n.streetAddress,addressLocality:n.addressLocality,addressRegion:n.addressRegion,postalCode:n.postalCode,addressCountry:n.addressCountry},areaServed:o.map(h=>({"@type":"State",name:h})),hasOfferCatalog:{"@type":"OfferCatalog",name:"Investigation Services",itemListElement:l.map((h,m)=>({"@type":"Offer",itemOffered:{"@type":"Service",name:h,description:`Professional ${h.toLowerCase()} services in Utah, Idaho, and Wyoming`,provider:{"@type":"LocalBusiness",name:e}}}))},contactPoint:{"@type":"ContactPoint",telephone:i,email:s,contactType:"customer service",availableLanguage:"English"},makesOffer:l.map(h=>({"@type":"Offer",itemOffered:{"@type":"Service",name:h,serviceType:h}})),knowsAbout:["Private Investigation","Legal Investigation","Surveillance","Background Checks","Fraud Detection","Asset Recovery","Utah Investigation Laws","Evidence Collection"],memberOf:[{"@type":"Organization",name:"National Council of Investigation and Security Services (NCISS)"},{"@type":"Organization",name:"Professional Private Investigators Association of Colorado (PPIAC)"}],hasCredential:c,openingHours:"Mo-Fr 09:00-17:00",paymentAccepted:["Cash","Credit Card","Check"],currenciesAccepted:"USD"};return r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(u)}})},wn=({title:e,description:t,keywords:n,canonicalUrl:i,ogTitle:s,ogDescription:a,ogImage:o="/logo/Trident Investigations Logo.jpg",articleData:l,twitterCard:c="summary_large_image",robots:d="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1",localSEO:u,faqSchema:h})=>{j.useEffect(()=>{document.title=e;const m=(f,g,p=!1)=>{const v=p?"property":"name";let y=document.querySelector(`meta[${v}="${f}"]`);if(y)y.setAttribute("content",g);else{const x=document.createElement("meta");x.setAttribute(v,f),x.content=g,document.head.appendChild(x)}};if(m("description",t),m("robots",d),n&&m("keywords",n),l&&(l.author&&m("author",l.author),l.publishedTime&&m("article:published_time",l.publishedTime,!0),l.modifiedTime&&m("article:modified_time",l.modifiedTime,!0),l.author&&m("article:author",l.author,!0),l.section&&m("article:section",l.section,!0),l.tags&&(document.querySelectorAll('meta[property="article:tag"]').forEach(g=>g.remove()),l.tags.forEach(g=>{const p=document.createElement("meta");p.setAttribute("property","article:tag"),p.content=g,document.head.appendChild(p)}))),u&&(u.region&&m("geo.region",u.region),u.location&&m("geo.placename",u.location),u.coordinates&&m("ICBM",u.coordinates)),i){let f=document.querySelector('link[rel="canonical"]');if(f)f.setAttribute("href",i);else{const g=document.createElement("link");g.rel="canonical",g.href=i,document.head.appendChild(g)}}if(m("og:title",s||e,!0),m("og:description",a||t,!0),m("og:image",o,!0),m("og:type",l?"article":"website",!0),m("og:site_name","Trident Investigations",!0),i&&m("og:url",i,!0),m("twitter:card",c),m("twitter:title",s||e),m("twitter:description",a||t),m("twitter:image",o),m("twitter:site","@TridentSpy"),h){const f=document.querySelector('script[data-schema="faq"]');f&&f.remove();const g=document.createElement("script");g.type="application/ld+json",g.setAttribute("data-schema","faq"),g.textContent=JSON.stringify(h),document.head.appendChild(g)}},[e,t,n,i,s,a,o,l,c,d,u,h])},ft={homepage:{title:"Salt Lake City Private Investigator | Licensed PI Services Utah | Trident Investigations",description:"Professional Salt Lake City private investigator services. Licensed surveillance, corporate investigations, asset searches & more throughout Utah. Call (385) 275-8220.",keywords:"Salt Lake City private investigator, private investigator Salt Lake City, Utah private detective, surveillance Salt Lake City, licensed PI Utah"},about:{title:"About Trident Investigations | Licensed Private Investigators Utah",description:"Learn about Trident Investigations, Utah's trusted private investigator agency. Licensed, experienced team providing professional investigation services since founding.",keywords:"about Trident Investigations, Utah private investigator, licensed PI Utah, professional investigators"},contact:{title:"Contact Utah Private Investigator | Free Consultation | Trident Investigations",description:"Contact Trident Investigations for a free consultation. Licensed private investigators serving Salt Lake City, Provo, Ogden & all Utah. Call (385) 275-8220.",keywords:"contact private investigator Utah, hire private investigator Salt Lake City, PI consultation Utah"},services:{title:"Private Investigation Services Utah | Professional PI Services | Trident",description:"Comprehensive private investigation services in Utah. Domestic investigations, corporate fraud, insurance claims, legal support & more. Licensed & insured.",keywords:"private investigation services Utah, PI services Salt Lake City, investigation services Utah County",domestic:{title:"Infidelity Investigation Salt Lake City | Cheating Spouse Surveillance Utah",description:"Professional infidelity investigations in Utah. Discreet cheating spouse surveillance, child custody support, cohabitation verification. Licensed investigators.",keywords:"infidelity investigation Utah, cheating spouse surveillance Salt Lake City, child custody investigation Utah, cohabitation investigation"},corporate:{title:"Corporate Investigation Salt Lake City | Business Fraud Detection Utah",description:"Professional corporate investigations in Utah. Employee misconduct, fraud detection, internal theft, due diligence. Protect your business with licensed investigators.",keywords:"corporate investigation Utah, business fraud investigation Salt Lake City, employee misconduct Utah, internal theft investigation"},corporateUtah:{title:"Corporate Investigation Services Utah | Business Protection | Trident PI",description:"Professional corporate investigation services in Utah. Employee screening, fraud detection, workplace investigations, due diligence. Licensed Utah business investigators.",keywords:"corporate investigation Utah, business investigation Salt Lake City, employee screening Utah, fraud detection Utah, workplace investigation, Utah business protection"},insurance:{title:"Insurance Investigation Utah | Workers Comp Fraud Detection Salt Lake City",description:"Professional insurance investigations in Utah. Workers compensation fraud, claim verification, surveillance services. Licensed investigators for insurance companies.",keywords:"insurance investigation Utah, workers comp fraud Salt Lake City, claim verification Utah, insurance fraud detection"},criminal:{title:"Criminal Investigation Defense Utah | Private Investigator Criminal Cases",description:"Criminal defense investigation services in Utah. Evidence gathering, witness location, case analysis for defense attorneys. Licensed criminal investigators.",keywords:"criminal defense investigation Utah, criminal private investigator Salt Lake City, defense investigation services Utah"},lawFirms:{title:"Law Firm Investigation Services Utah | Legal Support Investigators",description:"Professional investigation services for law firms in Utah. Litigation support, witness location, evidence gathering, expert testimony. Licensed legal investigators.",keywords:"law firm investigation Utah, legal investigation services Salt Lake City, litigation support Utah, attorney investigator"},assetSearches:{title:"Asset Search Investigation Utah | Hidden Asset Detection Salt Lake City",description:"Professional asset search investigations in Utah. Locate hidden assets, financial resources, property searches. Court-admissible results from licensed investigators.",keywords:"asset search Utah, hidden asset investigation Salt Lake City, financial investigation Utah, asset recovery services"},legalInvestigation:{title:"Legal Investigation Services Utah | Court Evidence | Trident Investigations",description:"Professional legal investigation services in Utah. Court-admissible evidence collection for divorce, custody, personal injury & civil cases. Licensed investigators. Free consultation.",keywords:"legal investigation utah, court evidence collection, divorce investigation, custody investigation, personal injury investigation, civil litigation support, criminal defense investigation"},divorceInvestigation:{title:"Divorce Investigation Utah | Asset Discovery | Evidence Collection | Trident PI",description:"Professional divorce investigation services in Utah. Asset discovery, lifestyle documentation, hidden income searches. Court-admissible evidence for divorce proceedings. Licensed investigators.",keywords:"divorce investigation Utah, asset discovery, lifestyle documentation, hidden income searches, court-admissible evidence, divorce proceedings, licensed investigators"}},counties:{saltLake:{title:"Salt Lake County Private Investigator | Licensed PI Services Utah",description:"Professional private investigator services throughout Salt Lake County. Licensed surveillance, corporate investigations, domestic cases in Sandy, Draper, Murray & more.",keywords:"Salt Lake County private investigator, private investigator Salt Lake County, Sandy PI, Draper investigator"},utah:{title:"Utah County Private Investigator | Licensed PI Services Provo Orem",description:"Professional private investigator services throughout Utah County. Licensed surveillance, corporate investigations, domestic cases in Provo, Orem, Lehi & more.",keywords:"Utah County private investigator, private investigator Utah County, Provo PI, Orem investigator"}},cities:{bountiful:{title:"Bountiful Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Bountiful, Utah. Licensed surveillance, domestic investigations, corporate cases & more in Davis County.",keywords:"Bountiful private investigator, private investigator Bountiful Utah, Davis County PI, surveillance Bountiful"},clearfield:{title:"Clearfield Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Clearfield, Utah. Licensed surveillance, infidelity investigations, corporate cases in Davis County.",keywords:"Clearfield private investigator, private investigator Clearfield Utah, Davis County PI services"},kaysville:{title:"Kaysville Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Kaysville, Utah. Licensed surveillance, domestic investigations, background checks in Davis County.",keywords:"Kaysville private investigator, private investigator Kaysville Utah, Davis County investigation services"},farmington:{title:"Farmington Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Farmington, Utah. Licensed surveillance, corporate investigations, asset searches in Davis County.",keywords:"Farmington private investigator, private investigator Farmington Utah, Davis County PI"},centerville:{title:"Centerville Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Centerville, Utah. Licensed surveillance, infidelity investigations, legal support in Davis County.",keywords:"Centerville private investigator, private investigator Centerville Utah, Davis County investigation"},clinton:{title:"Clinton Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Clinton, Utah. Licensed surveillance, domestic investigations, corporate cases in Davis County.",keywords:"Clinton private investigator, private investigator Clinton Utah, Davis County PI services"},syracuse:{title:"Syracuse Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Syracuse, Utah. Licensed surveillance, background investigations, legal support in Davis County.",keywords:"Syracuse private investigator, private investigator Syracuse Utah, Davis County investigation services"},woodsCross:{title:"Woods Cross Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Woods Cross, Utah. Licensed surveillance, corporate investigations, asset searches in Davis County.",keywords:"Woods Cross private investigator, private investigator Woods Cross Utah, Davis County PI"},northSaltLake:{title:"North Salt Lake Private Investigator | Licensed PI Services Davis County",description:"Professional private investigator services in North Salt Lake, Utah. Licensed surveillance, infidelity investigations, legal support in Davis County.",keywords:"North Salt Lake private investigator, private investigator North Salt Lake Utah, Davis County investigation"},layton:{title:"Layton Private Investigator | Licensed PI Services Davis County Utah",description:"Professional private investigator services in Layton, Utah. Licensed surveillance, domestic investigations, corporate cases in Davis County.",keywords:"Layton private investigator, private investigator Layton Utah, Davis County PI services"},provo:{title:"Provo Private Investigator | Licensed PI Services Utah County Utah",description:"Professional private investigator services in Provo, Utah. Licensed surveillance, domestic investigations, corporate cases & more in Utah County.",keywords:"Provo private investigator, private investigator Provo Utah, Utah County PI, surveillance Provo"},saltLakeCity:{title:"Salt Lake City Private Investigator | Licensed PI Services Utah",description:"Professional Salt Lake City private investigator services. Licensed surveillance, corporate investigations, domestic cases & more. Call (385) 275-8220.",keywords:"Salt Lake City private investigator, private investigator Salt Lake City, SLC PI, surveillance Salt Lake City"},sandy:{title:"Sandy Private Investigator | Licensed PI Services Salt Lake County Utah",description:"Professional private investigator services in Sandy, Utah. Licensed surveillance, infidelity investigations, corporate cases in Salt Lake County.",keywords:"Sandy private investigator, private investigator Sandy Utah, Salt Lake County PI, surveillance Sandy"},murray:{title:"Murray Private Investigator | Licensed PI Services Salt Lake County Utah",description:"Professional private investigator services in Murray, Utah. Licensed surveillance, domestic investigations, legal support in Salt Lake County.",keywords:"Murray private investigator, private investigator Murray Utah, Salt Lake County investigation services"},draper:{title:"Draper Private Investigator | Licensed PI Services Salt Lake County Utah",description:"Professional private investigator services in Draper, Utah. Licensed surveillance, corporate investigations, asset searches in Salt Lake County.",keywords:"Draper private investigator, private investigator Draper Utah, Salt Lake County PI services"},riverton:{title:"Riverton Private Investigator | Licensed PI Services Salt Lake County Utah",description:"Professional private investigator services in Riverton, Utah. Licensed surveillance, infidelity investigations, background checks in Salt Lake County.",keywords:"Riverton private investigator, private investigator Riverton Utah, Salt Lake County investigation"},westValleyCity:{title:"West Valley City Private Investigator | Licensed PI Services Salt Lake County",description:"Professional private investigator services in West Valley City, Utah. Licensed surveillance, domestic investigations, corporate cases in Salt Lake County.",keywords:"West Valley City private investigator, private investigator West Valley City Utah, Salt Lake County PI"},southJordan:{title:"South Jordan Private Investigator | Licensed PI Services Salt Lake County",description:"Professional private investigator services in South Jordan, Utah. Licensed surveillance, corporate investigations, legal support in Salt Lake County.",keywords:"South Jordan private investigator, private investigator South Jordan Utah, Salt Lake County investigation services"},taylorsville:{title:"Taylorsville Private Investigator | Licensed PI Services Salt Lake County",description:"Professional private investigator services in Taylorsville, Utah. Licensed surveillance, infidelity investigations, asset searches in Salt Lake County.",keywords:"Taylorsville private investigator, private investigator Taylorsville Utah, Salt Lake County PI services"},orem:{title:"Orem Private Investigator | Licensed PI Services Utah County Utah",description:"Professional private investigator services in Orem, Utah. Licensed surveillance, domestic investigations, corporate cases in Utah County.",keywords:"Orem private investigator, private investigator Orem Utah, Utah County PI, surveillance Orem"},lehi:{title:"Lehi Private Investigator | Licensed PI Services Utah County Utah",description:"Professional private investigator services in Lehi, Utah. Licensed surveillance, infidelity investigations, legal support in Utah County.",keywords:"Lehi private investigator, private investigator Lehi Utah, Utah County investigation services"},americanFork:{title:"American Fork Private Investigator | Licensed PI Services Utah County",description:"Professional private investigator services in American Fork, Utah. Licensed surveillance, corporate investigations, background checks in Utah County.",keywords:"American Fork private investigator, private investigator American Fork Utah, Utah County PI services"},saratogaSprings:{title:"Saratoga Springs Private Investigator | Licensed PI Services Utah County",description:"Professional private investigator services in Saratoga Springs, Utah. Licensed surveillance, domestic investigations, asset searches in Utah County.",keywords:"Saratoga Springs private investigator, private investigator Saratoga Springs Utah, Utah County investigation"}}},ute=()=>{wn({title:ft.homepage.title,description:ft.homepage.description,keywords:ft.homepage.keywords,canonicalUrl:"https://tridentpi.net/"});const e=[{title:"Domestic Investigations",description:"Expert services for infidelity, child custody disputes, and cohabitation verification.",link:"/services/domestic"},{title:"Corporate Investigations",description:"Comprehensive solutions for fraud, employee misconduct, and internal investigations.",link:"/services/corporate"},{title:"Insurance Investigations",description:"Thorough investigation of insurance claims to uncover potential fraud.",link:"/services/insurance"},{title:"Criminal Investigations",description:"Professional investigative support for criminal defense cases.",link:"/services/criminal"},{title:"Investigations for Law Firms",description:"Specialized investigative services for attorneys and legal professionals.",link:"/services/law-firms"},{title:"Asset Searches",description:"Locate hidden assets for legal proceedings, financial disputes, and collection efforts.",link:"/services/asset-searches"}],t=[{name:"Utah",link:"/locations/utah"},{name:"Idaho",link:"/locations/idaho"},{name:"Wyoming",link:"/locations/wyoming"}],n=[{quote:"Trident Investigations provided the evidence I needed for my case. Their professionalism and attention to detail were exceptional.",author:"John D.",location:"Salt Lake City, UT"},{quote:"Our law firm regularly uses Trident for our investigative needs. They consistently deliver results in a timely manner.",author:"Sarah M.",location:"Legal Professional"}];return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(dte,{}),r.jsx(Xe,{}),r.jsx(Eee,{}),r.jsx("section",{className:"py-8 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsx(Wb,{type:"homepage"})})}),r.jsx(Oee,{services:e}),r.jsx(Iee,{}),r.jsx(Mee,{locations:t}),r.jsx(Lee,{testimonials:n}),r.jsx(Uee,{}),r.jsx(cte,{}),r.jsx(tr,{title:"Ready to Uncover the Truth?",subtitle:"Contact Trident Investigations today for a confidential consultation with our experienced team."}),r.jsx(Qe,{})]})};var hte="AspectRatio",tL=j.forwardRef((e,t)=>{const{ratio:n=1/1,style:i,...s}=e;return r.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:r.jsx(ze.div,{...s,ref:t,style:{...i,position:"absolute",top:0,right:0,bottom:0,left:0}})})});tL.displayName=hte;var mte=tL;const MP=mte;var fte=nM.useId||(()=>{}),pte=0;function Is(e){const[t,n]=j.useState(fte());return cr(()=>{n(i=>i??String(pte++))},[e]),t?`radix-${t}`:""}const gte=["top","right","bottom","left"],El=Math.min,vi=Math.max,Sy=Math.round,$v=Math.floor,Al=e=>({x:e,y:e}),vte={left:"right",right:"left",bottom:"top",top:"bottom"},xte={start:"end",end:"start"};function R2(e,t,n){return vi(e,El(t,n))}function go(e,t){return typeof e=="function"?e(t):e}function vo(e){return e.split("-")[0]}function qh(e){return e.split("-")[1]}function L_(e){return e==="x"?"y":"x"}function U_(e){return e==="y"?"height":"width"}function Ol(e){return["top","bottom"].includes(vo(e))?"y":"x"}function F_(e){return L_(Ol(e))}function yte(e,t,n){n===void 0&&(n=!1);const i=qh(e),s=F_(e),a=U_(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ky(o)),[o,ky(o)]}function bte(e){const t=ky(e);return[$2(e),t,$2(t)]}function $2(e){return e.replace(/start|end/g,t=>xte[t])}function wte(e,t,n){const i=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:i:t?i:s;case"left":case"right":return t?a:o;default:return[]}}function jte(e,t,n,i){const s=qh(e);let a=wte(vo(e),n==="start",i);return s&&(a=a.map(o=>o+"-"+s),t&&(a=a.concat(a.map($2)))),a}function ky(e){return e.replace(/left|right|bottom|top/g,t=>vte[t])}function Nte(e){return{top:0,right:0,bottom:0,left:0,...e}}function nL(e){return typeof e!="number"?Nte(e):{top:e,right:e,bottom:e,left:e}}function Cy(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function RP(e,t,n){let{reference:i,floating:s}=e;const a=Ol(t),o=F_(t),l=U_(o),c=vo(t),d=a==="y",u=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[l]/2-s[l]/2;let f;switch(c){case"top":f={x:u,y:i.y-s.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-s.width,y:h};break;default:f={x:i.x,y:i.y}}switch(qh(t)){case"start":f[o]-=m*(n&&d?-1:1);break;case"end":f[o]+=m*(n&&d?-1:1);break}return f}const Ste=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=RP(d,i,c),m=i,f={},g=0;for(let p=0;p<l.length;p++){const{name:v,fn:y}=l[p],{x,y:b,data:w,reset:N}=await y({x:u,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:f,rects:d,platform:o,elements:{reference:e,floating:t}});u=x??u,h=b??h,f={...f,[v]:{...f[v],...w}},N&&g<=50&&(g++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(d=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):N.rects),{x:u,y:h}=RP(d,m,c)),p=-1)}return{x:u,y:h,placement:m,strategy:s,middlewareData:f}};async function hp(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:a,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=go(t,e),g=nL(f),v=l[m?h==="floating"?"reference":"floating":h],y=Cy(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),x=h==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},N=Cy(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:c}):x);return{top:(y.top-N.top+g.top)/w.y,bottom:(N.bottom-y.bottom+g.bottom)/w.y,left:(y.left-N.left+g.left)/w.x,right:(N.right-y.right+g.right)/w.x}}const kte=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:a,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=go(e,t)||{};if(d==null)return{};const h=nL(u),m={x:n,y:i},f=F_(s),g=U_(f),p=await o.getDimensions(d),v=f==="y",y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[f]-m[f]-a.floating[g],N=m[f]-a.reference[f],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let k=S?S[b]:0;(!k||!await(o.isElement==null?void 0:o.isElement(S)))&&(k=l.floating[b]||a.floating[g]);const _=w/2-N/2,D=k/2-p[g]/2-1,A=El(h[y],D),E=El(h[x],D),T=A,M=k-p[g]-E,C=k/2-p[g]/2+_,P=R2(T,C,M),I=!c.arrow&&qh(s)!=null&&C!==P&&a.reference[g]/2-(C<T?A:E)-p[g]/2<0,R=I?C<T?C-T:C-M:0;return{[f]:m[f]+R,data:{[f]:P,centerOffset:C-P-R,...I&&{alignmentOffset:R}},reset:I}}}),Cte=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:a,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=go(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=vo(s),x=Ol(l),b=vo(l)===l,w=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=m||(b||!p?[ky(l)]:bte(l)),S=g!=="none";!m&&S&&N.push(...jte(l,p,g,w));const k=[l,...N],_=await hp(t,v),D=[];let A=((i=a.flip)==null?void 0:i.overflows)||[];if(u&&D.push(_[y]),h){const C=yte(s,o,w);D.push(_[C[0]],_[C[1]])}if(A=[...A,{placement:s,overflows:D}],!D.every(C=>C<=0)){var E,T;const C=(((E=a.flip)==null?void 0:E.index)||0)+1,P=k[C];if(P)return{data:{index:C,overflows:A},reset:{placement:P}};let I=(T=A.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:T.placement;if(!I)switch(f){case"bestFit":{var M;const R=(M=A.filter(O=>{if(S){const $=Ol(O.placement);return $===x||$==="y"}return!0}).map(O=>[O.placement,O.overflows.filter($=>$>0).reduce(($,q)=>$+q,0)]).sort((O,$)=>O[1]-$[1])[0])==null?void 0:M[0];R&&(I=R);break}case"initialPlacement":I=l;break}if(s!==I)return{reset:{placement:I}}}return{}}}};function $P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function LP(e){return gte.some(t=>e[t]>=0)}const _te=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=go(e,t);switch(i){case"referenceHidden":{const a=await hp(t,{...s,elementContext:"reference"}),o=$P(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:LP(o)}}}case"escaped":{const a=await hp(t,{...s,altBoundary:!0}),o=$P(a,n.floating);return{data:{escapedOffsets:o,escaped:LP(o)}}}default:return{}}}}};async function Tte(e,t){const{placement:n,platform:i,elements:s}=e,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=vo(n),l=qh(n),c=Ol(n)==="y",d=["left","top"].includes(o)?-1:1,u=a&&c?-1:1,h=go(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof g=="number"&&(f=l==="end"?g*-1:g),c?{x:f*u,y:m*d}:{x:m*d,y:f*u}}const Pte=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:a,placement:o,middlewareData:l}=t,c=await Tte(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:o}}}}},Ete=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=go(e,t),d={x:n,y:i},u=await hp(t,c),h=Ol(vo(s)),m=L_(h);let f=d[m],g=d[h];if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=f+u[v],b=f-u[y];f=R2(x,f,b)}if(o){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=g+u[v],b=g-u[y];g=R2(x,g,b)}const p=l.fn({...t,[m]:f,[h]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:a,[h]:o}}}}}},Ate=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=go(e,t),u={x:n,y:i},h=Ol(s),m=L_(h);let f=u[m],g=u[h];const p=go(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const b=m==="y"?"height":"width",w=a.reference[m]-a.floating[b]+v.mainAxis,N=a.reference[m]+a.reference[b]-v.mainAxis;f<w?f=w:f>N&&(f=N)}if(d){var y,x;const b=m==="y"?"width":"height",w=["top","left"].includes(vo(s)),N=a.reference[h]-a.floating[b]+(w&&((y=o.offset)==null?void 0:y[h])||0)+(w?0:v.crossAxis),S=a.reference[h]+a.reference[b]+(w?0:((x=o.offset)==null?void 0:x[h])||0)-(w?v.crossAxis:0);g<N?g=N:g>S&&(g=S)}return{[m]:f,[h]:g}}}},Ote=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:a,platform:o,elements:l}=t,{apply:c=()=>{},...d}=go(e,t),u=await hp(t,d),h=vo(s),m=qh(s),f=Ol(s)==="y",{width:g,height:p}=a.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");const x=p-u.top-u.bottom,b=g-u.left-u.right,w=El(p-u[v],x),N=El(g-u[y],b),S=!t.middlewareData.shift;let k=w,_=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=b),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(k=x),S&&!m){const A=vi(u.left,0),E=vi(u.right,0),T=vi(u.top,0),M=vi(u.bottom,0);f?_=g-2*(A!==0||E!==0?A+E:vi(u.left,u.right)):k=p-2*(T!==0||M!==0?T+M:vi(u.top,u.bottom))}await c({...t,availableWidth:_,availableHeight:k});const D=await o.getDimensions(l.floating);return g!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function zb(){return typeof window<"u"}function Hh(e){return rL(e)?(e.nodeName||"").toLowerCase():"#document"}function ki(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _a(e){var t;return(t=(rL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rL(e){return zb()?e instanceof Node||e instanceof ki(e).Node:!1}function Ls(e){return zb()?e instanceof Element||e instanceof ki(e).Element:!1}function ja(e){return zb()?e instanceof HTMLElement||e instanceof ki(e).HTMLElement:!1}function UP(e){return!zb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ki(e).ShadowRoot}function Eg(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Us(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(s)}function Ite(e){return["table","td","th"].includes(Hh(e))}function qb(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function B_(e){const t=W_(),n=Ls(e)?Us(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Dte(e){let t=Il(e);for(;ja(t)&&!Ku(t);){if(B_(t))return t;if(qb(t))return null;t=Il(t)}return null}function W_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ku(e){return["html","body","#document"].includes(Hh(e))}function Us(e){return ki(e).getComputedStyle(e)}function Hb(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Il(e){if(Hh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||UP(e)&&e.host||_a(e);return UP(t)?t.host:t}function iL(e){const t=Il(e);return Ku(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Eg(t)?t:iL(t)}function mp(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=iL(e),a=s===((i=e.ownerDocument)==null?void 0:i.body),o=ki(s);if(a){const l=L2(o);return t.concat(o,o.visualViewport||[],Eg(s)?s:[],l&&n?mp(l):[])}return t.concat(s,mp(s,[],n))}function L2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sL(e){const t=Us(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=ja(e),a=s?e.offsetWidth:n,o=s?e.offsetHeight:i,l=Sy(n)!==a||Sy(i)!==o;return l&&(n=a,i=o),{width:n,height:i,$:l}}function z_(e){return Ls(e)?e:e.contextElement}function vu(e){const t=z_(e);if(!ja(t))return Al(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:a}=sL(t);let o=(a?Sy(n.width):n.width)/i,l=(a?Sy(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Mte=Al(0);function aL(e){const t=ki(e);return!W_()||!t.visualViewport?Mte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rte(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ki(e)?!1:t}function Vc(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=z_(e);let o=Al(1);t&&(i?Ls(i)&&(o=vu(i)):o=vu(e));const l=Rte(a,n,i)?aL(a):Al(0);let c=(s.left+l.x)/o.x,d=(s.top+l.y)/o.y,u=s.width/o.x,h=s.height/o.y;if(a){const m=ki(a),f=i&&Ls(i)?ki(i):i;let g=m,p=L2(g);for(;p&&i&&f!==g;){const v=vu(p),y=p.getBoundingClientRect(),x=Us(p),b=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,w=y.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,d*=v.y,u*=v.x,h*=v.y,c+=b,d+=w,g=ki(p),p=L2(g)}}return Cy({width:u,height:h,x:c,y:d})}function $te(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const a=s==="fixed",o=_a(i),l=t?qb(t.floating):!1;if(i===o||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Al(1);const u=Al(0),h=ja(i);if((h||!h&&!a)&&((Hh(i)!=="body"||Eg(o))&&(c=Hb(i)),ja(i))){const m=Vc(i);d=vu(i),u.x=m.x+i.clientLeft,u.y=m.y+i.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x,y:n.y*d.y-c.scrollTop*d.y+u.y}}function Lte(e){return Array.from(e.getClientRects())}function U2(e,t){const n=Hb(e).scrollLeft;return t?t.left+n:Vc(_a(e)).left+n}function Ute(e){const t=_a(e),n=Hb(e),i=e.ownerDocument.body,s=vi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=vi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+U2(e);const l=-n.scrollTop;return Us(i).direction==="rtl"&&(o+=vi(t.clientWidth,i.clientWidth)-s),{width:s,height:a,x:o,y:l}}function Fte(e,t){const n=ki(e),i=_a(e),s=n.visualViewport;let a=i.clientWidth,o=i.clientHeight,l=0,c=0;if(s){a=s.width,o=s.height;const d=W_();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:a,height:o,x:l,y:c}}function Bte(e,t){const n=Vc(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,a=ja(e)?vu(e):Al(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,c=s*a.x,d=i*a.y;return{width:o,height:l,x:c,y:d}}function FP(e,t,n){let i;if(t==="viewport")i=Fte(e,n);else if(t==="document")i=Ute(_a(e));else if(Ls(t))i=Bte(t,n);else{const s=aL(e);i={...t,x:t.x-s.x,y:t.y-s.y}}return Cy(i)}function oL(e,t){const n=Il(e);return n===t||!Ls(n)||Ku(n)?!1:Us(n).position==="fixed"||oL(n,t)}function Wte(e,t){const n=t.get(e);if(n)return n;let i=mp(e,[],!1).filter(l=>Ls(l)&&Hh(l)!=="body"),s=null;const a=Us(e).position==="fixed";let o=a?Il(e):e;for(;Ls(o)&&!Ku(o);){const l=Us(o),c=B_(o);!c&&l.position==="fixed"&&(s=null),(a?!c&&!s:!c&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Eg(o)&&!c&&oL(e,o))?i=i.filter(u=>u!==o):s=l,o=Il(o)}return t.set(e,i),i}function zte(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const o=[...n==="clippingAncestors"?qb(t)?[]:Wte(t,this._c):[].concat(n),i],l=o[0],c=o.reduce((d,u)=>{const h=FP(t,u,s);return d.top=vi(h.top,d.top),d.right=El(h.right,d.right),d.bottom=El(h.bottom,d.bottom),d.left=vi(h.left,d.left),d},FP(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qte(e){const{width:t,height:n}=sL(e);return{width:t,height:n}}function Hte(e,t,n){const i=ja(t),s=_a(t),a=n==="fixed",o=Vc(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Al(0);if(i||!i&&!a)if((Hh(t)!=="body"||Eg(s))&&(l=Hb(t)),i){const f=Vc(t,!0,a,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=U2(s));let d=0,u=0;if(s&&!i&&!a){const f=s.getBoundingClientRect();u=f.top+l.scrollTop,d=f.left+l.scrollLeft-U2(s,f)}const h=o.left+l.scrollLeft-c.x-d,m=o.top+l.scrollTop-c.y-u;return{x:h,y:m,width:o.width,height:o.height}}function Zj(e){return Us(e).position==="static"}function BP(e,t){if(!ja(e)||Us(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _a(e)===n&&(n=n.ownerDocument.body),n}function lL(e,t){const n=ki(e);if(qb(e))return n;if(!ja(e)){let s=Il(e);for(;s&&!Ku(s);){if(Ls(s)&&!Zj(s))return s;s=Il(s)}return n}let i=BP(e,t);for(;i&&Ite(i)&&Zj(i);)i=BP(i,t);return i&&Ku(i)&&Zj(i)&&!B_(i)?n:i||Dte(e)||n}const Vte=async function(e){const t=this.getOffsetParent||lL,n=this.getDimensions,i=await n(e.floating);return{reference:Hte(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Gte(e){return Us(e).direction==="rtl"}const Yte={convertOffsetParentRelativeRectToViewportRelativeRect:$te,getDocumentElement:_a,getClippingRect:zte,getOffsetParent:lL,getElementRects:Vte,getClientRects:Lte,getDimensions:qte,getScale:vu,isElement:Ls,isRTL:Gte};function Kte(e,t){let n=null,i;const s=_a(e);function a(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const{left:d,top:u,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const f=$v(u),g=$v(s.clientWidth-(d+h)),p=$v(s.clientHeight-(u+m)),v=$v(d),x={rootMargin:-f+"px "+-g+"px "+-p+"px "+-v+"px",threshold:vi(0,El(1,c))||1};let b=!0;function w(N){const S=N[0].intersectionRatio;if(S!==c){if(!b)return o();S?o(!1,S):i=setTimeout(()=>{o(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(w,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,x)}n.observe(e)}return o(!0),a}function Xte(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,d=z_(e),u=s||a?[...d?mp(d):[],...mp(t)]:[];u.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const h=d&&l?Kte(d,n):null;let m=-1,f=null;o&&(f=new ResizeObserver(y=>{let[x]=y;x&&x.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),d&&!c&&f.observe(d),f.observe(t));let g,p=c?Vc(e):null;c&&v();function v(){const y=Vc(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&n(),p=y,g=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(x=>{s&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Qte=Pte,Jte=Ete,Zte=Cte,ene=Ote,tne=_te,WP=kte,nne=Ate,rne=(e,t,n)=>{const i=new Map,s={platform:Yte,...n},a={...s.platform,_c:i};return Ste(e,t,{...s,platform:a})};var Ax=typeof document<"u"?j.useLayoutEffect:j.useEffect;function _y(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!_y(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const a=s[i];if(!(a==="_owner"&&e.$$typeof)&&!_y(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function cL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zP(e,t){const n=cL(e);return Math.round(t*n)/n}function e1(e){const t=j.useRef(e);return Ax(()=>{t.current=e}),t}function ine(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=j.useState(i);_y(m,i)||f(i);const[g,p]=j.useState(null),[v,y]=j.useState(null),x=j.useCallback(O=>{O!==S.current&&(S.current=O,p(O))},[]),b=j.useCallback(O=>{O!==k.current&&(k.current=O,y(O))},[]),w=a||g,N=o||v,S=j.useRef(null),k=j.useRef(null),_=j.useRef(u),D=c!=null,A=e1(c),E=e1(s),T=e1(d),M=j.useCallback(()=>{if(!S.current||!k.current)return;const O={placement:t,strategy:n,middleware:m};E.current&&(O.platform=E.current),rne(S.current,k.current,O).then($=>{const q={...$,isPositioned:T.current!==!1};C.current&&!_y(_.current,q)&&(_.current=q,ld.flushSync(()=>{h(q)}))})},[m,t,n,E,T]);Ax(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[d]);const C=j.useRef(!1);Ax(()=>(C.current=!0,()=>{C.current=!1}),[]),Ax(()=>{if(w&&(S.current=w),N&&(k.current=N),w&&N){if(A.current)return A.current(w,N,M);M()}},[w,N,M,A,D]);const P=j.useMemo(()=>({reference:S,floating:k,setReference:x,setFloating:b}),[x,b]),I=j.useMemo(()=>({reference:w,floating:N}),[w,N]),R=j.useMemo(()=>{const O={position:n,left:0,top:0};if(!I.floating)return O;const $=zP(I.floating,u.x),q=zP(I.floating,u.y);return l?{...O,transform:"translate("+$+"px, "+q+"px)",...cL(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:q}},[n,l,I.floating,u.x,u.y]);return j.useMemo(()=>({...u,update:M,refs:P,elements:I,floatingStyles:R}),[u,M,P,I,R])}const sne=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?WP({element:i.current,padding:s}).fn(n):{}:i?WP({element:i,padding:s}).fn(n):{}}}},ane=(e,t)=>({...Qte(e),options:[e,t]}),one=(e,t)=>({...Jte(e),options:[e,t]}),lne=(e,t)=>({...nne(e),options:[e,t]}),cne=(e,t)=>({...Zte(e),options:[e,t]}),dne=(e,t)=>({...ene(e),options:[e,t]}),une=(e,t)=>({...tne(e),options:[e,t]}),hne=(e,t)=>({...sne(e),options:[e,t]});var mne="Arrow",dL=j.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...a}=e;return r.jsx(ze.svg,{...a,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});dL.displayName=mne;var fne=dL;function pne(e,t=[]){let n=[];function i(a,o){const l=j.createContext(o),c=n.length;n=[...n,o];function d(h){const{scope:m,children:f,...g}=h,p=(m==null?void 0:m[e][c])||l,v=j.useMemo(()=>g,Object.values(g));return r.jsx(p.Provider,{value:v,children:f})}function u(h,m){const f=(m==null?void 0:m[e][c])||l,g=j.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,u]}const s=()=>{const a=n.map(o=>j.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[i,gne(s,...t)]}function gne(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function q_(e){const[t,n]=j.useState(void 0);return cr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let o,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var H_="Popper",[uL,Vh]=pne(H_),[vne,hL]=uL(H_),mL=e=>{const{__scopePopper:t,children:n}=e,[i,s]=j.useState(null);return r.jsx(vne,{scope:t,anchor:i,onAnchorChange:s,children:n})};mL.displayName=H_;var fL="PopperAnchor",pL=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,a=hL(fL,n),o=j.useRef(null),l=ut(t,o);return j.useEffect(()=>{a.onAnchorChange((i==null?void 0:i.current)||o.current)}),i?null:r.jsx(ze.div,{...s,ref:l})});pL.displayName=fL;var V_="PopperContent",[xne,yne]=uL(V_),gL=j.forwardRef((e,t)=>{var de,Pe,ie,me,ve,K;const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:g,...p}=e,v=hL(V_,n),[y,x]=j.useState(null),b=ut(t,Ve=>x(Ve)),[w,N]=j.useState(null),S=q_(w),k=(S==null?void 0:S.width)??0,_=(S==null?void 0:S.height)??0,D=i+(a!=="center"?"-"+a:""),A=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(d)?d:[d],T=E.length>0,M={padding:A,boundary:E.filter(wne),altBoundary:T},{refs:C,floatingStyles:P,placement:I,isPositioned:R,middlewareData:O}=ine({strategy:"fixed",placement:D,whileElementsMounted:(...Ve)=>Xte(...Ve,{animationFrame:f==="always"}),elements:{reference:v.anchor},middleware:[ane({mainAxis:s+_,alignmentAxis:o}),c&&one({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?lne():void 0,...M}),c&&cne({...M}),dne({...M,apply:({elements:Ve,rects:Le,availableWidth:st,availableHeight:yt})=>{const{width:Dt,height:sn}=Le.reference,ae=Ve.floating.style;ae.setProperty("--radix-popper-available-width",`${st}px`),ae.setProperty("--radix-popper-available-height",`${yt}px`),ae.setProperty("--radix-popper-anchor-width",`${Dt}px`),ae.setProperty("--radix-popper-anchor-height",`${sn}px`)}}),w&&hne({element:w,padding:l}),jne({arrowWidth:k,arrowHeight:_}),m&&une({strategy:"referenceHidden",...M})]}),[$,q]=yL(I),z=si(g);cr(()=>{R&&(z==null||z())},[R,z]);const J=(de=O.arrow)==null?void 0:de.x,ne=(Pe=O.arrow)==null?void 0:Pe.y,pe=((ie=O.arrow)==null?void 0:ie.centerOffset)!==0,[xe,De]=j.useState();return cr(()=>{y&&De(window.getComputedStyle(y).zIndex)},[y]),r.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:R?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(me=O.transformOrigin)==null?void 0:me.x,(ve=O.transformOrigin)==null?void 0:ve.y].join(" "),...((K=O.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(xne,{scope:n,placedSide:$,onArrowChange:N,arrowX:J,arrowY:ne,shouldHideArrow:pe,children:r.jsx(ze.div,{"data-side":$,"data-align":q,...p,ref:b,style:{...p.style,animation:R?void 0:"none"}})})})});gL.displayName=V_;var vL="PopperArrow",bne={top:"bottom",right:"left",bottom:"top",left:"right"},xL=j.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,a=yne(vL,i),o=bne[a.placedSide];return r.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:r.jsx(fne,{...s,ref:n,style:{...s.style,display:"block"}})})});xL.displayName=vL;function wne(e){return e!==null}var jne=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:i,middlewareData:s}=t,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=yL(n),h={start:"0%",center:"50%",end:"100%"}[u],m=(((y=s.arrow)==null?void 0:y.x)??0)+l/2,f=(((x=s.arrow)==null?void 0:x.y)??0)+c/2;let g="",p="";return d==="bottom"?(g=o?h:`${m}px`,p=`${-c}px`):d==="top"?(g=o?h:`${m}px`,p=`${i.floating.height+c}px`):d==="right"?(g=`${-c}px`,p=o?h:`${f}px`):d==="left"&&(g=`${i.floating.width+c}px`,p=o?h:`${f}px`),{data:{x:g,y:p}}}});function yL(e){const[t,n="center"]=e.split("-");return[t,n]}var G_=mL,Vb=pL,Y_=gL,K_=xL,[Gb,gUe]=Ca("Tooltip",[Vh]),Yb=Vh(),bL="TooltipProvider",Nne=700,F2="tooltip.open",[Sne,X_]=Gb(bL),wL=e=>{const{__scopeTooltip:t,delayDuration:n=Nne,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:a}=e,[o,l]=j.useState(!0),c=j.useRef(!1),d=j.useRef(0);return j.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(Sne,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:j.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:j.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:a})};wL.displayName=bL;var Kb="Tooltip",[kne,Xb]=Gb(Kb),jL=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:s=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:l}=e,c=X_(Kb,e.__scopeTooltip),d=Yb(t),[u,h]=j.useState(null),m=Is(),f=j.useRef(0),g=o??c.disableHoverableContent,p=l??c.delayDuration,v=j.useRef(!1),[y=!1,x]=Rs({prop:i,defaultProp:s,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(F2))):c.onClose(),a==null||a(k)}}),b=j.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=j.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v.current=!1,x(!0)},[x]),N=j.useCallback(()=>{window.clearTimeout(f.current),f.current=0,x(!1)},[x]),S=j.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{v.current=!0,x(!0),f.current=0},p)},[p,x]);return j.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),r.jsx(G_,{...d,children:r.jsx(kne,{scope:t,contentId:m,open:y,stateAttribute:b,trigger:u,onTriggerChange:h,onTriggerEnter:j.useCallback(()=>{c.isOpenDelayed?S():w()},[c.isOpenDelayed,S,w]),onTriggerLeave:j.useCallback(()=>{g?N():(window.clearTimeout(f.current),f.current=0)},[N,g]),onOpen:w,onClose:N,disableHoverableContent:g,children:n})})};jL.displayName=Kb;var B2="TooltipTrigger",NL=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,s=Xb(B2,n),a=X_(B2,n),o=Yb(n),l=j.useRef(null),c=ut(t,l,s.onTriggerChange),d=j.useRef(!1),u=j.useRef(!1),h=j.useCallback(()=>d.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),r.jsx(Vb,{asChild:!0,...o,children:r.jsx(ze.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:c,onPointerMove:Ee(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ee(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:Ee(e.onBlur,s.onClose),onClick:Ee(e.onClick,s.onClose)})})});NL.displayName=B2;var Cne="TooltipPortal",[vUe,_ne]=Gb(Cne,{forceMount:void 0}),Xu="TooltipContent",SL=j.forwardRef((e,t)=>{const n=_ne(Xu,e.__scopeTooltip),{forceMount:i=n.forceMount,side:s="top",...a}=e,o=Xb(Xu,e.__scopeTooltip);return r.jsx(zs,{present:i||o.open,children:o.disableHoverableContent?r.jsx(kL,{side:s,...a,ref:t}):r.jsx(Tne,{side:s,...a,ref:t})})}),Tne=j.forwardRef((e,t)=>{const n=Xb(Xu,e.__scopeTooltip),i=X_(Xu,e.__scopeTooltip),s=j.useRef(null),a=ut(t,s),[o,l]=j.useState(null),{trigger:c,onClose:d}=n,u=s.current,{onPointerInTransitChange:h}=i,m=j.useCallback(()=>{l(null),h(!1)},[h]),f=j.useCallback((g,p)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=One(y,v.getBoundingClientRect()),b=Ine(y,x),w=Dne(p.getBoundingClientRect()),N=Rne([...b,...w]);l(N),h(!0)},[h]);return j.useEffect(()=>()=>m(),[m]),j.useEffect(()=>{if(c&&u){const g=v=>f(v,u),p=v=>f(v,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",p)}}},[c,u,f,m]),j.useEffect(()=>{if(o){const g=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},x=(c==null?void 0:c.contains(v))||(u==null?void 0:u.contains(v)),b=!Mne(y,o);x?m():b&&(m(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,o,d,m]),r.jsx(kL,{...e,ref:a})}),[Pne,Ene]=Gb(Kb,{isInside:!1}),kL=j.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,c=Xb(Xu,n),d=Yb(n),{onClose:u}=c;return j.useEffect(()=>(document.addEventListener(F2,u),()=>document.removeEventListener(F2,u)),[u]),j.useEffect(()=>{if(c.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),r.jsx(Mh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:r.jsxs(Y_,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(f_,{children:i}),r.jsx(Pne,{scope:n,isInside:!0,children:r.jsx(JY,{id:c.contentId,role:"tooltip",children:s||i})})]})})});SL.displayName=Xu;var CL="TooltipArrow",Ane=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,s=Yb(n);return Ene(CL,n).isInside?null:r.jsx(K_,{...s,...i,ref:t})});Ane.displayName=CL;function One(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,i,s,a)){case a:return"left";case s:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Ine(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function Dne(e){const{top:t,right:n,bottom:i,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:i},{x:s,y:i}]}function Mne(e,t){const{x:n,y:i}=e;let s=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const l=t[a].x,c=t[a].y,d=t[o].x,u=t[o].y;c>i!=u>i&&n<(d-l)*(i-c)/(u-c)+l&&(s=!s)}return s}function Rne(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),$ne(t)}function $ne(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const s=e[i];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(s.y-o.y)>=(a.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const s=e[i];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(s.y-o.y)>=(a.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Lne=wL,Une=jL,Fne=NL,_L=SL;const TL=Lne,PL=Une,EL=Fne,Q_=j.forwardRef(({className:e,sideOffset:t=4,...n},i)=>r.jsx(_L,{ref:i,sideOffset:t,className:je("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Q_.displayName=_L.displayName;var Bne="Separator",qP="horizontal",Wne=["horizontal","vertical"],AL=j.forwardRef((e,t)=>{const{decorative:n,orientation:i=qP,...s}=e,a=zne(i)?i:qP,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return r.jsx(ze.div,{"data-orientation":a,...l,...s,ref:t})});AL.displayName=Bne;function zne(e){return Wne.includes(e)}var OL=AL;const Dl=j.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...i},s)=>r.jsx(OL,{ref:s,decorative:n,orientation:t,className:je("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));Dl.displayName=OL.displayName;const HP=[{name:"World Association of Detectives",acronym:"WAD",logo:"/lovable-uploads/9cefb84a-99ff-4932-8f4f-4e8203ce6c63.png",description:"The World Association of Detectives is an international organization of professional investigators dedicated to maintaining high ethical standards in the field of private investigation. Founded in 1925, WAD is the longest established and largest global association of its kind.",website:"https://www.wad.net/"},{name:"Professional Private Investigators Association of Colorado",acronym:"PPIAC",logo:"/lovable-uploads/20f3c2e9-d8c8-4028-a472-bb1338626a8f.png",description:"The Professional Private Investigators Association of Colorado is dedicated to promoting the highest ethical and professional standards for private investigators in Colorado. PPIAC provides education, legislative advocacy, and a network of trusted professionals.",website:"https://ppiac.org/"},{name:"Private Investigators Association of Utah",acronym:"PIAU",logo:"/lovable-uploads/686e4abf-bdd8-4d21-bbe5-75cc49a644c0.png",description:"The Private Investigators Association of Utah serves to promote professionalism, ethics, and legal compliance among Utah private investigators. PIAU provides members with resources, training, and networking opportunities to enhance their investigative capabilities.",website:"https://piau.com/"},{name:"National Council of Investigation & Security Services",acronym:"NCISS",logo:"/lovable-uploads/5ae6b02b-2677-4591-b861-cf11609b8f60.png",description:"The National Council of Investigation & Security Services is the voice of the private investigation and security professions at the national level. NCISS monitors legislation affecting the industry and advocates for the interests of its members.",website:"https://www.nciss.org/"},{name:"Council of International Investigators",acronym:"CII",logo:"/lovable-uploads/7f5e7b82-2bca-41aa-9222-8b0f7aa85b54.png",description:"The Council of International Investigators is a global network of professional investigators who work together to deliver high-quality investigative services worldwide. CII members adhere to strict standards of professionalism and ethics.",website:"https://www.cii2.org/"}],qne=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Professional Affiliations"}),r.jsx("div",{className:"flex flex-wrap justify-center items-center gap-10 mb-16",children:r.jsx(TL,{children:HP.map(e=>r.jsxs(PL,{children:[r.jsx(EL,{asChild:!0,children:r.jsx("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"block w-[120px] grayscale hover:grayscale-0 transition-all duration-300",children:r.jsx("div",{className:"w-[120px]",children:r.jsx(MP,{ratio:1/1,className:"bg-white rounded-md overflow-hidden",children:r.jsx("img",{src:e.logo,alt:`${e.name} logo`,loading:"lazy",className:"object-contain w-full h-full p-2"})})})})}),r.jsx(Q_,{children:r.jsx("p",{className:"font-semibold",children:e.name})})]},e.acronym))})}),r.jsx("div",{className:"space-y-10",children:HP.map((e,t)=>r.jsxs("div",{children:[t>0&&r.jsx(Dl,{className:"mb-10"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 items-start",children:[r.jsx("div",{className:"md:col-span-1 flex justify-center md:justify-start",children:r.jsx("div",{className:"w-[150px]",children:r.jsx(MP,{ratio:1/1,className:"bg-white rounded-md overflow-hidden",children:r.jsx("img",{src:e.logo,alt:`${e.name} logo`,loading:"lazy",className:"object-contain w-full h-full p-2"})})})}),r.jsxs("div",{className:"md:col-span-3",children:[r.jsxs("div",{className:"flex items-center mb-3",children:[r.jsxs("h3",{className:"text-xl font-bold mr-2",children:[e.name," (",e.acronym,")"]}),r.jsx("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"text-trident-blue hover:text-trident-blue/80",children:r.jsx(Tl,{className:"h-4 w-4"})})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:e.description}),r.jsxs("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"text-trident-blue hover:underline flex items-center",children:["Visit Website",r.jsx(Tl,{className:"h-4 w-4 ml-1"})]})]})]})]},e.acronym))})]})}),Hne=()=>r.jsxs("section",{className:"relative flex items-center pt-32 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"About Trident Investigations"}),r.jsx("p",{className:"text-xl mb-8 text-readable-light",children:"Professional private investigators with law enforcement experience, serving Utah, Idaho, and Wyoming."})]})})]}),Vne=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"heading-primary text-3xl mb-6",children:"Who We Are"}),r.jsx("p",{className:"body-primary mb-4",children:"Trident Investigations is a premier private investigation agency founded by former law enforcement professionals with decades of combined experience. Our mission is to provide our clients with the truth, delivered through professional, ethical, and effective investigative services."}),r.jsx("p",{className:"body-primary mb-4",children:"Based in Utah and serving clients throughout the Intermountain West, we've built our reputation on discretion, thoroughness, and results. Whether you're facing personal challenges like infidelity, corporate issues like fraud, or need investigative support for legal matters, our team has the expertise to uncover the facts you need."}),r.jsx("p",{className:"body-primary mb-6",children:"We pride ourselves on maintaining the highest ethical standards while using advanced investigative techniques and technology to deliver accurate, actionable intelligence to our clients."}),r.jsx("div",{className:"bg-gradient-to-r from-trident-purple/10 to-trident-orange/10 border border-trident-purple/20 rounded-xl p-6 mb-6",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-12 w-12 rounded-full bg-gradient-to-r from-trident-orange to-orange-700 flex items-center justify-center mr-4",children:r.jsx(BK,{className:"h-6 w-6 text-white"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"heading-secondary text-xl mb-2",children:"Learn About Our Brand"}),r.jsx("p",{className:"body-primary mb-4",children:"Discover the story behind the Trident symbol and what our brand represents in professional investigation services."}),r.jsxs(te,{to:"/about/brand",className:"inline-flex items-center px-6 py-3 bg-gradient-to-r from-trident-orange to-orange-700 text-white font-semibold rounded-lg hover:from-trident-orange/90 hover:to-orange-700/90 transition-all duration-300 hover:scale-105",children:["About Our Brand",r.jsx("svg",{className:"ml-2 h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})})]}),r.jsxs("div",{className:"bg-gray-100 p-8 rounded-lg shadow-md",children:[r.jsx("h3",{className:"heading-secondary text-xl mb-6",children:"Why Choose Trident Investigations"}),r.jsxs("ul",{className:"space-y-6",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-10 w-10 rounded-full bg-trident-purple flex items-center justify-center mr-4",children:r.jsx(Be,{className:"h-5 w-5 text-white"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"heading-secondary font-bold",children:"Law Enforcement Background"}),r.jsx("p",{className:"body-primary",children:"Our investigators bring police and military experience to every case."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-10 w-10 rounded-full bg-trident-purple flex items-center justify-center mr-4",children:r.jsx(Os,{className:"h-5 w-5 text-white"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold",children:"Licensed & Insured"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Fully licensed in Utah, Idaho, and Wyoming with comprehensive liability coverage."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-10 w-10 rounded-full bg-trident-purple flex items-center justify-center mr-4",children:r.jsx(Sn,{className:"h-5 w-5 text-white"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold",children:"Rapid Response"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Quick deployment of investigators for time-sensitive cases."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-10 w-10 rounded-full bg-trident-purple flex items-center justify-center mr-4",children:r.jsx(QR,{className:"h-5 w-5 text-white"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Documentation that meets legal standards for use in litigation."})]})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("div",{className:"flex-shrink-0 h-10 w-10 rounded-full bg-trident-purple flex items-center justify-center mr-4",children:r.jsx(k_,{className:"h-5 w-5 text-white"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold",children:"Complete Confidentiality"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Strict privacy protocols to protect client information and case details."})]})]})]})]})]})})}),Gne=()=>r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Investigative Approach"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("div",{className:"text-trident-blue text-4xl font-bold mb-4",children:"01"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Consultation & Strategy"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We begin with a thorough assessment of your situation. After understanding your needs and objectives, we develop a customized investigation plan tailored to your specific case."})]}),r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("div",{className:"text-trident-blue text-4xl font-bold mb-4",children:"02"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Execution & Documentation"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our investigators implement the strategy using appropriate techniques, from surveillance and interviews to background checks and digital forensics. Every finding is meticulously documented."})]}),r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("div",{className:"text-trident-blue text-4xl font-bold mb-4",children:"03"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Analysis & Reporting"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We analyze all evidence collected and prepare comprehensive reports detailing our findings. When needed, we provide expert testimony to support legal proceedings."})]})]}),r.jsxs("div",{className:"mt-16 max-w-3xl mx-auto text-center",children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Our Commitment to Ethics"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"At Trident Investigations, we conduct all operations within the boundaries of the law and uphold the highest ethical standards. We refuse cases involving harassment or illegal activities and ensure our methods respect privacy rights while achieving results."}),r.jsx(te,{to:"/contact",className:"btn-primary",children:"Schedule a Confidential Consultation"})]})]})}),Yne=()=>{const e=[{name:"Domestic Investigations",path:"/services/domestic"},{name:"Corporate Investigations",path:"/services/corporate"},{name:"Insurance Investigations",path:"/services/insurance"},{name:"Criminal Investigations",path:"/services/criminal"},{name:"Investigations for Law Firms",path:"/services/law-firms"},{name:"Asset Searches",path:"/services/asset-searches"}];j.useEffect(()=>{const n=new IntersectionObserver(s=>{s.forEach(a=>{a.isIntersecting&&(window.gtag&&window.gtag("event","services_overview_view",{event_category:"Content",event_label:"About Page Services Overview",non_interaction:!0}),n.disconnect())})},{threshold:.2}),i=document.getElementById("services-overview");return i&&n.observe(i),()=>{n.disconnect()}},[]),j.useEffect(()=>{if(window.gtag){const n=e.map((i,s)=>({item_id:i.path,item_name:i.name,item_list_name:"About Page Services",item_list_id:"about_services",index:s+1}));window.gtag("event","view_item_list",{event_category:"Ecommerce",event_label:"Service Card Impressions",items:n})}},[]);const t=(n,i)=>{window.gtag&&window.gtag("event","select_item",{event_category:"Service",event_label:n,items:[{item_id:i,item_name:n,item_list_name:"About Page Services",item_list_id:"about_services"}]})};return r.jsx("section",{id:"services-overview",className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Services"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsxs(te,{to:"/services/domestic",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Domestic Investigations","/services/domestic"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Domestic Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Infidelity investigations, child custody support, cohabitation verification, and other personal matters."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/services/corporate",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Corporate Investigations","/services/corporate"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Corporate Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Fraud detection, employee misconduct, due diligence, and internal theft investigations."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/services/insurance",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Insurance Investigations","/services/insurance"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Insurance Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Workers' compensation, personal injury claims verification, and insurance fraud cases."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/services/criminal",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Criminal Investigations","/services/criminal"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Criminal Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Defense investigations, witness interviews, and evidence gathering for criminal cases."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/services/law-firms",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Investigations for Law Firms","/services/law-firms"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Investigations for Law Firms"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Specialized investigative support for attorneys in civil and criminal proceedings."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/services/asset-searches",className:"bg-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300",onClick:()=>t("Asset Searches","/services/asset-searches"),children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Asset Searches"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Uncovering hidden assets, property investigations, and financial background checks."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]}),r.jsx("div",{className:"mt-12 text-center",children:r.jsx(te,{to:"/services",className:"btn-secondary",onClick:()=>{window.gtag&&window.gtag("event","view_all_services_click",{event_category:"Navigation",event_label:"View All Services Button"})},children:"View All Services"})})]})})},Kne=()=>r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Areas We Serve"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs(te,{to:"/locations/utah",className:"bg-white p-8 rounded-lg shadow-md text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Utah"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Serving Salt Lake City, Provo, Ogden, St. George, and all counties in Utah."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center justify-center",children:["Utah Services",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/locations/idaho",className:"bg-white p-8 rounded-lg shadow-md text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Idaho"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Serving Boise, Idaho Falls, Twin Falls, Pocatello, and surrounding areas."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center justify-center",children:["Idaho Services",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs(te,{to:"/locations/wyoming",className:"bg-white p-8 rounded-lg shadow-md text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Wyoming"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Serving Cheyenne, Casper, Jackson, and communities across Wyoming."}),r.jsxs("div",{className:"text-trident-blue font-semibold inline-flex items-center justify-center",children:["Wyoming Services",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})}),Xne=()=>(wn({title:ft.about.title,description:ft.about.description,keywords:ft.about.keywords,canonicalUrl:"https://tridentpi.net/about"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(Hne,{}),r.jsx(Vne,{}),r.jsx(qne,{}),r.jsx(Gne,{}),r.jsx(Yne,{}),r.jsx(Kne,{}),r.jsx(tr,{title:"Ready to Work with Trident Investigations?",subtitle:"Contact us today for a free, confidential consultation about your investigative needs."}),r.jsx(Qe,{})]})),Qne=()=>r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-32 pb-20 bg-gradient-to-br from-trident-black via-trident-black to-trident-blue",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/95 to-trident-black/85"}),r.jsxs("div",{className:"container-custom relative z-10",children:[r.jsxs(te,{to:"/about",className:"inline-flex items-center text-trident-orange hover:text-trident-orange/80 mb-8 font-semibold text-lg transition-colors",children:[r.jsx(x_,{className:"mr-2 h-5 w-5"}),"Back to About Us"]}),r.jsxs("div",{className:"max-w-4xl",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-8 text-white leading-tight",children:["About Our ",r.jsx("span",{className:"text-transparent bg-gradient-to-r from-trident-orange to-orange-700 bg-clip-text",children:"Brand"})]}),r.jsx("p",{className:"text-xl text-trident-light leading-relaxed",children:"Discover the story behind Trident Investigations and what our brand represents in the world of professional investigation services."})]})]})]}),r.jsx("section",{className:"py-20 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center mb-16",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-trident-black",children:"The Trident Symbol"}),r.jsx("p",{className:"text-text-secondary mb-6 leading-relaxed",children:"Our brand is built around the powerful symbol of the trident - a three-pronged spear that has represented strength, authority, and precision throughout history. In the world of investigation, these qualities are essential for uncovering truth and delivering justice."}),r.jsxs("p",{className:"text-text-secondary mb-6 leading-relaxed",children:["The three prongs of our trident represent our core principles: ",r.jsx("strong",{children:"Integrity"})," in our methods, ",r.jsx("strong",{children:"Accuracy"})," in our findings, and ",r.jsx("strong",{children:"Discretion"})," in our operations. These values guide every case we handle and every client relationship we build."]}),r.jsx("p",{className:"text-text-secondary leading-relaxed",children:"Just as the trident was wielded by those who commanded respect, our brand commands trust in the investigation industry through our unwavering commitment to professional excellence."})]}),r.jsxs("div",{className:"relative",children:[r.jsx("img",{src:"/hero-image.jpg",alt:"Trident Investigations Brand Identity",loading:"lazy",className:"w-full h-[400px] object-cover rounded-2xl shadow-xl"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-trident-black/30 to-transparent rounded-2xl"})]})]})})}),r.jsx("section",{className:"py-20 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-trident-black",children:"Our Brand Values"}),r.jsx("p",{className:"text-xl text-text-secondary max-w-3xl mx-auto",children:"Every aspect of our brand reflects our commitment to professional investigation services and client satisfaction."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[r.jsxs("div",{className:"text-center bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-blue rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx(ai,{className:"h-8 w-8 text-white"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Vigilant Observation"}),r.jsx("p",{className:"text-text-secondary",children:"We see what others miss, uncovering details that make the difference in your case."})]}),r.jsxs("div",{className:"text-center bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-orange rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx(Be,{className:"h-8 w-8 text-white"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Unwavering Integrity"}),r.jsx("p",{className:"text-text-secondary",children:"Our ethical standards are non-negotiable, ensuring every investigation is conducted with honor."})]}),r.jsxs("div",{className:"text-center bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-blue rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx(S_,{className:"h-8 w-8 text-white"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Precise Results"}),r.jsx("p",{className:"text-text-secondary",children:"We deliver accurate, actionable intelligence that stands up in court and life."})]}),r.jsxs("div",{className:"text-center bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-orange rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx(Os,{className:"h-8 w-8 text-white"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Professional Excellence"}),r.jsx("p",{className:"text-text-secondary",children:"Our commitment to excellence sets the standard for private investigation services."})]})]})]})}),r.jsx("section",{className:"py-20 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-trident-black",children:"Our Visual Identity"}),r.jsx("p",{className:"text-xl text-text-secondary mb-12 leading-relaxed",children:"Our brand colors, typography, and imagery all work together to convey professionalism, trustworthiness, and strength. The deep blues represent trust and reliability, while our orange accents symbolize energy and determination."}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mb-12",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"w-20 h-20 bg-trident-black rounded-full mx-auto mb-4"}),r.jsx("p",{className:"font-semibold text-trident-black",children:"Trident Black"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Authority & Strength"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"w-20 h-20 bg-trident-blue rounded-full mx-auto mb-4"}),r.jsx("p",{className:"font-semibold text-trident-black",children:"Trident Blue"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Trust & Reliability"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"w-20 h-20 bg-trident-orange rounded-full mx-auto mb-4"}),r.jsx("p",{className:"font-semibold text-trident-black",children:"Trident Orange"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Energy & Determination"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"w-20 h-20 bg-trident-gray rounded-full mx-auto mb-4"}),r.jsx("p",{className:"font-semibold text-trident-black",children:"Trident Gray"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Balance & Sophistication"})]})]})]})})}),r.jsx(tr,{title:"Experience the Trident Difference",subtitle:"Ready to work with a team that embodies professionalism, integrity, and results? Contact us today."}),r.jsx(Qe,{})]}),IL=({faqs:e,title:t="Frequently Asked Questions",pageUrl:n,serviceContext:i,tone:s="light"})=>{const a={"@context":"https://schema.org","@type":"FAQPage",...n&&{"@id":`${n}#faq`},...i&&{about:i},mainEntity:e.map((l,c)=>({"@type":"Question","@id":n?`${n}#faq-${c+1}`:void 0,name:l.question,acceptedAnswer:{"@type":"Answer",text:l.answer,...i&&{about:i}}}))},o=s==="dark"?"text-trident-white":"text-trident-black";return r.jsxs(r.Fragment,{children:[r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:`text-3xl font-bold text-center mb-12 ${o}`,children:t}),r.jsx("div",{className:"space-y-6",children:e.map((l,c)=>r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx("h3",{className:"text-lg font-bold mb-3 text-trident-dark",children:l.question}),r.jsx("p",{className:"text-trident-black opacity-70",children:l.answer})]},c))})]})})})]})},Jne=()=>{const e=[{question:"How much does an investigator cost?",answer:"In Utah, top investigators charge $100-$200 per hour, but hourly rates don't tell the full story. Our efficient approach often costs less overall than cheaper investigators who take weeks to get results. We offer free consultations to discuss your case and provide accurate cost estimates based on your specific needs. Remember: the most expensive investigator is a bad one who delivers unusable evidence at any price."},{question:"What makes Trident different from other investigators?",answer:"We're not just licensed β our founder sits on the State Board that monitors Private Investigator compliance in Utah. We spend thousands of hours in challenging conditions and across the dark corners of the internet to get answers others can't. Our investigators are bonded, insured, and focused on gathering evidence that actually holds up in court. We go into the dark places so you don't have to."},{question:"Are you licensed and insured?",answer:"Absolutely. All our investigators are licensed with Utah's Bureau of Criminal Identification (BCI), fully bonded, and insured. This isn't just paperwork β it's what allows us to legally access the tools and resources needed to get real answers. Professional licensing in Utah is mandatory for investigators to operate legally and effectively."},{question:"How do you protect my privacy?",answer:"Your confidentiality is paramount. Case details and investigator identities are only disclosed to clients or their attorneys β never publicized. We understand the sensitive nature of investigations and maintain strict confidentiality protocols. In many cases, even your spouse or family won't know you've hired us unless you choose to tell them."},{question:"Is evidence you gather admissible in court?",answer:"Yes, when gathered legally and properly documented. Our skilled investigators ensure proper chain of custody and documentation for all evidence to maintain its credibility in legal proceedings. We know the difference between getting information and getting evidence that actually helps your case."},{question:"How long do investigations typically take?",answer:"It depends on complexity. Simple background checks can be completed in a day, while surveillance or fraud investigations may take weeks or months. During our consultation, we'll provide an estimated timeline specific to your case and keep you updated throughout the process."}];return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white",children:r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Professional Investigation Services"}),r.jsx("p",{className:"text-xl text-trident-grey mb-8",children:"Comprehensive, discreet, and ethical private investigation services for individuals and businesses"})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Our Investigation Services"}),r.jsx("p",{className:"text-lg text-trident-black text-center",children:"At Trident Investigations, we offer a wide range of professional investigation services tailored to meet the specific needs of individuals, businesses, attorneys, and insurance companies. Our team of experienced investigators combines traditional investigative techniques with cutting-edge technology to deliver results."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(Be,{className:"h-12 w-12 text-trident-gold"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-black",children:"Domestic Investigations"}),r.jsx("p",{className:"text-trident-black mb-6 flex-grow",children:"Our specialized team handles sensitive personal matters including infidelity investigations, child custody support, and cohabitation verification."}),r.jsxs(te,{to:"/services/domestic",className:"text-trident-gold font-semibold inline-flex items-center mt-auto hover:text-trident-black transition-colors","aria-label":"Learn more about domestic investigations",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(Qn,{className:"h-12 w-12 text-trident-blue"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Corporate Investigations"}),r.jsx("p",{className:"text-trident-grey mb-6 flex-grow",children:"We help businesses address concerns including employee misconduct, fraud detection, due diligence, and internal theft investigations."}),r.jsxs(te,{to:"/services/corporate",className:"text-trident-blue font-semibold inline-flex items-center mt-auto","aria-label":"Learn more about corporate investigations",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(Fl,{className:"h-12 w-12 text-trident-blue"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Insurance Investigations"}),r.jsx("p",{className:"text-trident-grey mb-6 flex-grow",children:"Our investigators verify workers' compensation and personal injury claims, helping insurance companies identify and prevent fraudulent activities."}),r.jsxs(te,{to:"/services/insurance",className:"text-trident-blue font-semibold inline-flex items-center mt-auto","aria-label":"Learn more about insurance investigations",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(Zn,{className:"h-12 w-12 text-trident-blue"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Criminal Investigations"}),r.jsx("p",{className:"text-trident-grey mb-6 flex-grow",children:"We provide defense investigations, witness interviews, and evidence gathering to support criminal cases and help establish the facts."}),r.jsxs(te,{to:"/services/criminal",className:"text-trident-blue font-semibold inline-flex items-center mt-auto","aria-label":"Learn more about criminal investigations",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(pn,{className:"h-12 w-12 text-trident-blue"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Investigations for Law Firms"}),r.jsx("p",{className:"text-trident-grey mb-6 flex-grow",children:"We offer specialized investigative support for attorneys in civil and criminal proceedings, helping gather evidence and locate witnesses."}),r.jsxs(te,{to:"/services/law-firms",className:"text-trident-blue font-semibold inline-flex items-center mt-auto","aria-label":"Learn more about investigations for law firms",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),r.jsxs("div",{className:"bg-trident-white border border-trident-grey p-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-300 flex flex-col",children:[r.jsx("div",{className:"mb-4",children:r.jsx(Pi,{className:"h-12 w-12 text-trident-blue"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Asset Searches"}),r.jsx("p",{className:"text-trident-grey mb-6 flex-grow",children:"Our team specializes in uncovering hidden assets, conducting property investigations, and performing financial background checks."}),r.jsxs(te,{to:"/services/asset-searches",className:"text-trident-blue font-semibold inline-flex items-center mt-auto","aria-label":"Learn more about asset searches",children:["Learn More",r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})}),r.jsx(IL,{faqs:e}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Our Investigation Process"}),r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md text-center",children:[r.jsx("div",{className:"h-16 w-16 bg-trident-gold text-trident-black rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold",children:"1"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-black",children:"Consultation"}),r.jsx("p",{className:"text-trident-black",children:"We begin with a thorough consultation to understand your specific needs and develop a tailored investigation plan."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md text-center",children:[r.jsx("div",{className:"h-16 w-16 bg-trident-gold text-trident-black rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold",children:"2"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Investigation"}),r.jsx("p",{className:"text-trident-grey",children:"Our experienced investigators use proven techniques and advanced technology to gather the information and evidence you need."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md text-center",children:[r.jsx("div",{className:"h-16 w-16 bg-trident-blue text-white rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold",children:"3"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Documentation"}),r.jsx("p",{className:"text-trident-grey",children:"We provide detailed reports with our findings, including documentation that can be used for legal proceedings if necessary."})]})]})})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Where We Operate"}),r.jsx("p",{className:"text-lg text-trident-grey text-center max-w-3xl mx-auto mb-12",children:"Trident Investigations provides professional investigation services throughout Utah, Idaho, and Wyoming. Our team has extensive knowledge of these areas and the legal requirements for investigations in each state."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[r.jsxs(te,{to:"/locations/utah",className:"bg-trident-white p-6 rounded-lg shadow-md border border-trident-grey text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-blue",children:"Utah"}),r.jsx("p",{className:"text-trident-grey",children:"Serving Salt Lake City, Provo, Ogden, and all major counties throughout Utah."})]}),r.jsxs(te,{to:"/locations/idaho",className:"bg-trident-white p-6 rounded-lg shadow-md border border-trident-grey text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-blue",children:"Idaho"}),r.jsx("p",{className:"text-trident-grey",children:"Providing investigation services in the Treasure Valley area, Northern Idaho, and Eastern Idaho."})]}),r.jsxs(te,{to:"/locations/wyoming",className:"bg-trident-white p-6 rounded-lg shadow-md border border-trident-grey text-center hover:shadow-lg transition-all duration-300",children:[r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-blue",children:"Wyoming"}),r.jsx("p",{className:"text-trident-grey",children:"Investigation services available in Cheyenne, Casper, Jackson, and surrounding areas."})]})]})]})}),r.jsx(tr,{title:"Need Professional Investigation Services?",description:"Contact us today for a free, confidential consultation about your investigative needs.",buttonText:"Schedule a Consultation",buttonLink:"/contact"}),r.jsx(Qe,{})]})},Zne=()=>r.jsxs("section",{className:"relative pt-48 md:pt-56 pb-12 hero-gradient text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-[url('/contact-hero.jpg')] bg-cover bg-center opacity-20"}),r.jsx("div",{className:"absolute inset-0 hero-overlay-fade"}),r.jsxs("div",{className:"container-custom relative z-10 text-center",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Contact Us"}),r.jsx("p",{className:"text-xl max-w-2xl mx-auto",children:"Our investigators are ready to assist with your case. Reach out through your preferred contact method for a confidential consultation."})]})]}),ere=()=>{const e=()=>{wl("phone","Main Office"),window.gtag&&window.gtag("event","phone_call",{event_category:"Contact",event_label:"Main Office",value:1})},t=()=>{wl("text","Text Line"),window.gtag&&window.gtag("event","text_message",{event_category:"Contact",event_label:"Text Line",value:1})},n=()=>{wl("email","Main Email"),window.gtag&&window.gtag("event","email_click",{event_category:"Contact",event_label:"Main Email",value:1})};return r.jsx("section",{className:"py-12 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-6",children:[r.jsxs("a",{href:vee(),onClick:e,"aria-label":`Call ${Dc}`,title:`Call ${Dc}`,className:`group flex flex-col items-center p-6 bg-muted/70 rounded-lg text-center hover-scale focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-trident-blue focus-visible:ring-offset-2 ring-offset-background transition-shadow hover:shadow-lg no-underline ${Qi}`,children:[r.jsx(fn,{size:32,className:"text-trident-gold mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Click to Call Us"}),r.jsx("p",{className:"text-trident-blue",children:r.jsx("span",{className:`text-2xl md:text-3xl font-extrabold tracking-tight ${Qi}`,children:Dc})})]}),r.jsxs("a",{href:xee(),onClick:t,"aria-label":`Text ${gu}`,title:`Text ${gu}`,className:"group flex flex-col items-center p-6 bg-muted/70 rounded-lg text-center hover-scale focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-trident-blue focus-visible:ring-offset-2 ring-offset-background transition-shadow hover:shadow-lg no-underline",children:[r.jsx(Bl,{size:32,className:"text-trident-gold mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Click to Text Us"}),r.jsx("p",{className:"text-trident-blue",children:r.jsx("span",{className:"text-2xl md:text-3xl font-extrabold tracking-tight",children:gu})})]}),r.jsxs("div",{className:"flex flex-col items-center p-6 bg-muted/50 rounded-lg text-center",children:[r.jsx(xr,{size:32,className:"text-trident-gold mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Email"}),r.jsx("p",{className:"text-trident-black opacity-70",children:r.jsx("a",{href:"mailto:info@tridentpi.net",className:"hover:text-trident-blue transition-colors",onClick:n,children:"info@tridentpi.net"})})]}),r.jsxs("div",{className:"flex flex-col items-center p-6 bg-muted/50 rounded-lg text-center",children:[r.jsx(Et,{size:32,className:"text-trident-gold mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Locations"}),r.jsxs("p",{className:"text-trident-black opacity-70",children:["Offices in Salt Lake County",r.jsx("br",{}),"and Utah County",r.jsx("br",{}),"Serving Utah, Idaho & Wyoming"]})]}),r.jsxs("div",{className:"flex flex-col items-center p-6 bg-muted/50 rounded-lg text-center",children:[r.jsx(Sn,{size:32,className:"text-trident-gold mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Hours"}),r.jsxs("p",{className:"text-trident-black opacity-70",children:["Available 24/7 for urgent cases",r.jsx("br",{}),"Office: Mon-Fri, 9am-5pm"]})]})]})})})};function _r({className:e,...t}){return r.jsx("div",{className:je("animate-pulse rounded-md bg-muted",e),...t})}const tre=j.lazy(()=>Si(()=>import("./ContactFormSection-DIEjgdsf.js"),[])),nre=j.lazy(()=>Si(()=>import("./ServiceAreasMap-CjER2WMK.js"),[])),rre=j.lazy(()=>Si(()=>import("./PrivacyNotice-D7-KQcMc.js"),[])),ire=j.lazy(()=>Si(()=>import("./InvestigativeMethods-DyYqzzG3.js"),[])),sre=()=>r.jsx("section",{className:"py-12 bg-muted/50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsx(_r,{className:"h-8 w-64"}),r.jsx(_r,{className:"h-4 w-full"}),r.jsx(_r,{className:"h-32 w-full"}),r.jsx(_r,{className:"h-10 w-full"})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(_r,{className:"h-8 w-48"}),r.jsx(_r,{className:"h-[700px] w-full"})]})]})})}),are=()=>r.jsx("section",{className:"py-12",children:r.jsxs("div",{className:"container-custom",children:[r.jsx(_r,{className:"h-8 w-64 mx-auto mb-8"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[1,2,3].map(e=>r.jsx(_r,{className:"h-48 w-full"},e))})]})}),ore=()=>r.jsx("section",{className:"py-12",children:r.jsxs("div",{className:"container-custom",children:[r.jsx(_r,{className:"h-8 w-48 mx-auto mb-8"}),r.jsx(_r,{className:"h-96 w-full rounded-lg"})]})}),lre=()=>r.jsx("section",{className:"py-8",children:r.jsx("div",{className:"container-custom",children:r.jsx(_r,{className:"h-24 w-full"})})}),cre=()=>(wn({title:ft.contact.title,description:ft.contact.description,keywords:ft.contact.keywords,canonicalUrl:"https://tridentpi.net/contact"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(Zne,{}),r.jsx(ere,{}),r.jsx(j.Suspense,{fallback:r.jsx(sre,{}),children:r.jsx(tre,{})}),r.jsx(j.Suspense,{fallback:r.jsx(are,{}),children:r.jsx(ire,{})}),r.jsx(j.Suspense,{fallback:r.jsx(ore,{}),children:r.jsx(nre,{})}),r.jsx(j.Suspense,{fallback:r.jsx(lre,{}),children:r.jsx(rre,{})}),r.jsx(Qe,{})]})),dre=()=>r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx("section",{className:"pt-32 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Our Service Locations"}),r.jsx("p",{className:"text-xl mb-8",children:"Licensed private investigators serving Utah, Idaho, and Wyoming with comprehensive investigative services."})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:[r.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 shadow-md overflow-hidden",children:[r.jsx("div",{className:"bg-trident-black p-6",children:r.jsx("h2",{className:"text-2xl font-bold text-white text-center",children:"Utah"})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx(Px,{className:"w-5 h-5 mr-2 text-trident-purple"}),r.jsx("p",{className:"font-semibold",children:"Statewide Coverage"})]}),r.jsx("p",{className:"mb-4 text-trident-gray",children:"Our team provides comprehensive investigation services throughout Utah, with special focus on the Wasatch Front metropolitan areas and surrounding counties."}),r.jsx(te,{to:"/locations/utah",className:"btn-secondary w-full text-center block py-3 px-4 rounded-md text-sm font-semibold whitespace-nowrap overflow-hidden text-ellipsis",children:"Utah Investigation Services"}),r.jsx("h3",{className:"text-lg font-bold mt-8 mb-3",children:"Counties We Serve:"}),r.jsxs("ul",{className:"grid grid-cols-2 gap-2 mb-6",children:[r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-blue rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/salt-lake-county",className:"hover:text-trident-blue transition-colors",children:"Salt Lake County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/utah-county",className:"hover:text-trident-purple transition-colors",children:"Utah County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/davis-county",className:"hover:text-trident-purple transition-colors",children:"Davis County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/weber-county",className:"hover:text-trident-purple transition-colors",children:"Weber County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/tooele-county",className:"hover:text-trident-purple transition-colors",children:"Tooele County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/cache-county",className:"hover:text-trident-purple transition-colors",children:"Cache County"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx(te,{to:"/locations/utah/washington-county",className:"hover:text-trident-purple transition-colors",children:"Washington County"})]})]})]})]}),r.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 shadow-md overflow-hidden",children:[r.jsx("div",{className:"bg-trident-black p-6",children:r.jsx("h2",{className:"text-2xl font-bold text-white text-center",children:"Idaho"})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx(Px,{className:"w-5 h-5 mr-2 text-trident-purple"}),r.jsx("p",{className:"font-semibold",children:"Statewide Coverage"})]}),r.jsx("p",{className:"mb-4 text-trident-gray",children:"Our licensed investigators provide professional services throughout Idaho, focusing on major population centers and surrounding areas."}),r.jsx("p",{className:"mb-6 text-sm italic text-trident-gray",children:"Note: We do not currently provide services in Boise."}),r.jsx(te,{to:"/locations/idaho",className:"btn-secondary w-full text-center block py-3 px-4 rounded-md text-sm font-semibold whitespace-nowrap overflow-hidden text-ellipsis",children:"Idaho Investigation Services"}),r.jsx("h3",{className:"text-lg font-bold mt-8 mb-3",children:"Major Areas:"}),r.jsxs("ul",{className:"grid grid-cols-2 gap-2",children:[r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Treasure Valley"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Idaho Falls"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Pocatello"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Twin Falls"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Coeur d'Alene"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Lewiston"})]})]})]})]}),r.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 shadow-md overflow-hidden",children:[r.jsx("div",{className:"bg-trident-black p-6",children:r.jsx("h2",{className:"text-2xl font-bold text-white text-center",children:"Wyoming"})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[r.jsx(Px,{className:"w-5 h-5 mr-2 text-trident-purple"}),r.jsx("p",{className:"font-semibold",children:"Statewide Coverage"})]}),r.jsx("p",{className:"mb-4 text-trident-gray",children:"Our licensed private investigators are available for cases throughout the state of Wyoming, with a focus on major cities and surrounding areas."}),r.jsx(te,{to:"/locations/wyoming",className:"btn-secondary w-full text-center block py-3 px-4 rounded-md text-sm font-semibold whitespace-nowrap overflow-hidden text-ellipsis",children:"Wyoming Investigation Services"}),r.jsx("h3",{className:"text-lg font-bold mt-8 mb-3",children:"Major Cities:"}),r.jsxs("ul",{className:"grid grid-cols-2 gap-2",children:[r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Cheyenne"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Casper"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Laramie"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Gillette"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Rock Springs"})]}),r.jsxs("li",{className:"flex items-center",children:[r.jsx("span",{className:"w-2 h-2 bg-trident-purple rounded-full mr-2"}),r.jsx("span",{children:"Sheridan"})]})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Our Coverage Area"}),r.jsx("p",{className:"text-lg text-trident-gray max-w-3xl mx-auto",children:"Trident Investigations is licensed to operate in Utah, Idaho, and Wyoming, providing comprehensive investigative services across the Mountain West."})]}),r.jsx("div",{className:"rounded-lg overflow-hidden shadow-md",children:r.jsx(eL,{})})]})}),r.jsx(tr,{}),r.jsx(Qe,{})]}),ure=()=>{const{data:e=[],isLoading:t,error:n}=ba({queryKey:["blogPosts"],queryFn:Bb});return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-40 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4 text-white",children:"Investigation Insights"}),r.jsx("p",{className:"text-xl text-gray-300",children:"Professional advice and industry knowledge from our experienced team"})]})})]}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsx("div",{className:"max-w-5xl mx-auto",children:t?r.jsx("div",{className:"flex justify-center items-center py-20",children:r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-trident-blue"})}):n?r.jsxs("div",{className:"text-center py-20",children:[r.jsx("h3",{className:"text-xl text-red-500",children:"Error loading blog posts"}),r.jsx("p",{className:"text-text-secondary",children:"Please try again later"})]}):r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map(i=>r.jsx("article",{className:"bg-white rounded-lg shadow-md overflow-hidden border border-gray-100 transition-all duration-300 hover:shadow-lg",children:r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center text-sm text-text-supporting mb-2",children:[r.jsx("span",{className:"text-trident-gold font-medium",children:i.category}),r.jsx("span",{className:"mx-2",children:"β’"}),r.jsx("span",{children:$_(i.publishDate)})]}),r.jsx("h2",{className:"text-xl font-bold mb-3 text-trident-black hover:text-trident-gold transition-colors",children:r.jsx(te,{to:`/blog/${i.slug}`,children:i.title})}),r.jsx("p",{className:"text-text-secondary mb-4 leading-relaxed",children:i.excerpt}),i.tags&&i.tags.length>0&&r.jsxs("div",{className:"flex flex-wrap gap-1 mb-4",children:[i.tags.slice(0,3).map((s,a)=>r.jsx(te,{to:`/blog/tag/${encodeURIComponent(s.toLowerCase().replace(/\s+/g,"-"))}`,className:"tag-outline",children:s},a)),i.tags.length>3&&r.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-text-supporting text-xs rounded font-medium",children:["+",i.tags.length-3," more"]})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-text-supporting",children:["By ",i.author]}),r.jsx(te,{to:`/blog/${i.slug}`,className:"text-trident-gold font-medium hover:underline",children:"Read More β"})]})]})},i.id||i.slug))})})})}),r.jsx("section",{className:"py-12 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4 text-trident-black",children:"Subscribe to Our Newsletter"}),r.jsx("p",{className:"text-text-secondary mb-6",children:"Stay updated with the latest insights and news in the investigation industry"}),r.jsxs("form",{className:"flex flex-col md:flex-row gap-3 justify-center",children:[r.jsx("input",{type:"email",placeholder:"Your email address",className:"px-4 py-3 rounded border border-input flex-grow max-w-md focus:outline-none focus:ring-2 focus:ring-trident-gold focus:border-trident-gold bg-background text-foreground",required:!0}),r.jsx("button",{type:"submit",className:"btn-primary whitespace-nowrap px-6",children:"Subscribe"})]})]})})}),r.jsx(Qe,{})]})},hre=({post:e,currentUrl:t})=>(j.useEffect(()=>{const n=(d,u,h=!1)=>{const m=h?"property":"name";let f=document.querySelector(`meta[${m}="${d}"]`);if(f)f.setAttribute("content",u);else{const g=document.createElement("meta");g.setAttribute(m,d),g.content=u,document.head.appendChild(g)}};document.title=`${e.title} | Trident Investigations`,n("description",e.seoData.metaDescription.substring(0,155)),n("keywords",[e.seoData.focusKeyword,...e.seoData.relatedKeywords,"Utah private investigator"].join(", ")),n("author",e.author),n("robots","index, follow"),n("article:published_time",e.publishDate,!0),n("article:modified_time",e.contentQuality.lastUpdated,!0),n("article:author",e.author,!0),n("article:section",e.category,!0),e.tags.forEach(d=>{const u=document.createElement("meta");u.setAttribute("property","article:tag"),u.content=d,document.head.appendChild(u)});const i="https://tridentpi.net";n("og:title",e.seoData.socialShareData.ogTitle,!0),n("og:description",e.seoData.socialShareData.ogDescription,!0),n("og:image",e.seoData.socialShareData.ogImage,!0),n("og:url",`${i}/blog/${e.slug}`,!0),n("og:type","article",!0),n("og:site_name","Trident Investigations",!0),n("twitter:card","summary_large_image"),n("twitter:title",e.seoData.socialShareData.ogTitle),n("twitter:description",e.seoData.socialShareData.ogDescription),n("twitter:image",e.seoData.socialShareData.ogImage),e.seoData.localSEO&&(n("geo.region","US-UT"),n("geo.placename",e.seoData.localSEO.location),n("ICBM","40.7608, -111.8910"));const s=`${i}/blog/${e.slug}`;let a=document.querySelector('link[rel="canonical"]');if(a)a.setAttribute("href",s);else{const d=document.createElement("link");d.rel="canonical",d.href=s,document.head.appendChild(d)}const o={"@context":"https://schema.org","@graph":[{"@type":"Article",headline:e.title,author:{"@type":"Person",name:e.author},publisher:{"@type":"Organization",name:"Trident Investigations",url:"https://tridentpi.net",logo:{"@type":"ImageObject",url:"https://tridentpi.net/logo.png"}},datePublished:e.publishDate,dateModified:e.contentQuality.lastUpdated,mainEntityOfPage:{"@type":"WebPage","@id":`${i}/blog/${e.slug}`},articleSection:e.category,keywords:[e.seoData.focusKeyword,...e.seoData.relatedKeywords],image:{"@type":"ImageObject",url:e.seoData.socialShareData.ogImage,width:1200,height:630}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:i},{"@type":"ListItem",position:2,name:"Blog",item:`${i}/blog`},{"@type":"ListItem",position:3,name:e.title,item:`${i}/blog/${e.slug}`}]},{"@type":"Organization",name:"Trident Investigations",url:"https://tridentpi.net",logo:{"@type":"ImageObject",url:"https://tridentpi.net/logo.png"}},...e.schemaMarkup.faqSchema?[e.schemaMarkup.faqSchema]:[],...e.schemaMarkup.serviceSchema?[e.schemaMarkup.serviceSchema]:[]]},l=document.querySelector('script[type="application/ld+json"]');l&&l.remove();const c=document.createElement("script");c.type="application/ld+json",c.textContent=JSON.stringify(o),document.head.appendChild(c)},[e,t]),null),mre=({post:e,estimatedReadTime:t})=>{const[n,i]=j.useState([]),s=window.location.href,a=d=>{i(u=>u.includes(d)?u.filter(h=>h!==d):[...u,d]),typeof window<"u"&&"gtag"in window&&window.gtag("event","checklist_interaction",{items_checked:n.length+(n.includes(d)?-1:1),item_index:d})},o=d=>{typeof window<"u"&&"gtag"in window&&window.gtag("event","cta_click",{cta_location:d,page_url:window.location.href})},c=e.slug==="signs-of-infidelity"?["Sudden changes in communication patterns with devices and social media","Unexplained schedule changes, late nights, or extended absences","Increased secrecy about phone calls, messages, or online activities","Unusual financial expenses or unexplained credit card charges","Emotional distance and defensive behavior about daily activities","New focus on personal appearance or grooming without explanation"]:e.slug==="signs-of-cheating-in-relationships"?["Sudden changes in work schedule or unexplained late nights","Increased secrecy with phone, computer, or social media","Unexplained expenses or financial irregularities","Emotional distance and defensive behavior about whereabouts","New focus on appearance or personal grooming","Avoiding intimacy or showing decreased interest in the relationship"]:["Sudden changes to work schedule or travel patterns","Increased secrecy regarding devices and communications","Unexplained expenses or financial irregularities","Emotional distance combined with defensive behavior","New focus on appearance without explanation","Unusual workplace relationships or late meetings"];return r.jsxs("div",{className:"bg-trident-white",children:[r.jsx(hre,{post:e,currentUrl:s}),r.jsx("section",{className:"bg-gradient-to-r from-trident-black to-trident-blue py-16 md:py-24",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsxs(te,{to:"/blog",className:"inline-flex items-center text-trident-white hover:text-trident-white mb-8 font-semibold text-lg transition-colors opacity-80 hover:opacity-100",children:[r.jsx(x_,{className:"mr-2 h-5 w-5"}),"Back to All Posts"]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-6",children:[r.jsx("span",{className:"bg-trident-gold text-trident-black px-4 py-2 rounded-full text-sm font-semibold uppercase tracking-wide",children:e.category}),r.jsx("span",{className:"text-trident-white font-medium text-lg opacity-80",children:new Date(e.publishDate).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),r.jsxs("div",{className:"flex items-center gap-2 text-trident-white opacity-80",children:[r.jsx(Sn,{className:"h-4 w-4 text-trident-gold"}),r.jsxs("span",{children:[t," min read"]})]})]}),r.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-trident-white mb-6 leading-tight font-serif",children:e.title}),r.jsx("p",{className:"text-xl md:text-2xl text-trident-white leading-relaxed mb-8 opacity-80",children:e.excerpt}),r.jsx(V,{asChild:!0,variant:"gold",size:"lg",onClick:()=>o("hero"),children:r.jsxs("a",{href:"tel:+13855032939",className:"hero-cta ghl-number-swap",children:[r.jsx("span",{className:"hidden md:inline",children:"Get Confidential Consultation - Free Case Assessment"}),r.jsx("span",{className:"md:hidden",children:"Free Consultation"})]})})]})})}),r.jsx("section",{className:"bg-trident-smoke py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("p",{className:"text-xl md:text-2xl italic text-trident-black text-center mb-8 leading-relaxed opacity-70",children:"Professional investigation services provide the clarity and evidence you need to make informed decisions about your future and protect your legal rights."}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 bg-trident-white py-6 px-8 rounded-lg mb-12 shadow-lg",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-2xl md:text-3xl font-bold text-trident-gold",children:"5.0"}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Stars"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-2xl md:text-3xl font-bold text-trident-gold",children:"500+"}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Resolved"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-2xl md:text-3xl font-bold text-trident-gold",children:"Utah"}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Licensed"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-2xl md:text-3xl font-bold text-trident-gold",children:"Legal"}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Compliance"})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"text-center p-6 bg-trident-white rounded-lg hover:shadow-xl transition-all duration-300",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-black hover:bg-trident-gold transition-colors duration-300 rounded-full mx-auto mb-4 flex items-center justify-center",children:r.jsx(Be,{className:"text-trident-white h-8 w-8"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-black",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Professional documentation that meets Utah legal standards and holds up in court proceedings, protecting your rights and interests."})]}),r.jsxs("div",{className:"text-center p-6 bg-trident-white rounded-lg hover:shadow-xl transition-all duration-300",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-black hover:bg-trident-gold transition-colors duration-300 rounded-full mx-auto mb-4 flex items-center justify-center",children:r.jsx(ma,{className:"text-trident-white h-8 w-8"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-black",children:"Financial Protection"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Safeguard assets and strengthen your position in legal proceedings and financial decisions"})]}),r.jsxs("div",{className:"text-center p-6 bg-trident-white rounded-lg hover:shadow-xl transition-all duration-300",children:[r.jsx("div",{className:"w-16 h-16 bg-trident-black hover:bg-trident-gold transition-colors duration-300 rounded-full mx-auto mb-4 flex items-center justify-center",children:r.jsx(Tl,{className:"text-trident-white h-8 w-8"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-trident-black",children:"Discreet Documentation"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Complete confidentiality while gathering comprehensive evidence that protects your privacy and legal standing."})]})]})]})})}),r.jsx("section",{className:"bg-trident-black py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsx("div",{className:"max-w-6xl mx-auto",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-serif mb-6 text-trident-white",children:"What's Really at Stake in Your Investigation"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start bg-trident-blue p-4 rounded-lg shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-8 h-8 bg-trident-gold rounded-full mr-4 flex items-center justify-center",children:r.jsx(Be,{className:"text-trident-black text-sm h-4 w-4"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-2 text-trident-white",children:"Legal Protection"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Utah courts require proper evidence documentation to support your case in legal proceedings."})]})]}),r.jsxs("div",{className:"flex items-start bg-trident-blue p-4 rounded-lg shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-8 h-8 bg-trident-gold rounded-full mr-4 flex items-center justify-center",children:r.jsx(ma,{className:"text-trident-black text-sm h-4 w-4"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-2 text-trident-white",children:"Financial Security"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Professional investigation can significantly impact asset protection and financial outcomes."})]})]}),r.jsxs("div",{className:"flex items-start bg-trident-blue p-4 rounded-lg shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-8 h-8 bg-trident-gold rounded-full mr-4 flex items-center justify-center",children:r.jsx(xl,{className:"text-trident-black text-sm h-4 w-4"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-2 text-trident-white",children:"Peace of Mind"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Professional investigation provides clarity and certainty in difficult situations."})]})]}),r.jsxs("div",{className:"flex items-start bg-trident-blue p-4 rounded-lg shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-8 h-8 bg-trident-gold rounded-full mr-4 flex items-center justify-center",children:r.jsx(cd,{className:"text-trident-black text-sm h-4 w-4"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-2 text-trident-white",children:"Professional Reputation"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Discreet investigation protects your reputation while gathering necessary information."})]})]})]})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"bg-trident-blue text-trident-white p-6 rounded-lg border-l-4 border-trident-gold",children:[r.jsx("p",{className:"italic text-lg mb-4",children:'"Professional documentation of evidence is crucial for protecting your rights and interests. Without proper investigation, you may lose significant leverage in legal proceedings."'}),r.jsx("footer",{className:"text-trident-white opacity-80",children:"β Utah Investigation Expert"})]}),r.jsxs("div",{className:"bg-trident-gold bg-opacity-10 border-l-4 border-trident-gold p-6 rounded-r-lg mt-6",children:[r.jsxs("div",{className:"flex items-center mb-2",children:[r.jsx(ri,{className:"h-5 w-5 text-trident-gold mr-2"}),r.jsx("h3",{className:"text-xl font-bold text-trident-white",children:"Time-Sensitive Evidence"})]}),r.jsx("p",{className:"text-trident-white text-sm opacity-80",children:"Digital communications can be deleted, financial records altered, and witnesses' memories fade. Every day you wait makes evidence preservation more difficult."})]})]})]})})})}),r.jsx("section",{className:"bg-trident-white py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"blog-content",children:[r.jsx("p",{className:"text-xl text-trident-black leading-relaxed mb-8 opacity-70",children:"Discovering potential infidelity in a relationship can be one of life's most painful experiences. At Trident Investigations, we understand the emotional turmoil that comes with suspecting a partner's unfaithfulness. Our licensed investigators have helped countless Utah residents navigate these challenging situations with discretion and professionalism through legally compliant methods."}),r.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6 text-trident-black",children:"Understanding the Impact of Infidelity Concerns"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Infidelity affects relationships across Utah, from Salt Lake City to Provo and beyond. When trust is broken or questioned, the emotional and legal consequences can be significant. According to relationship experts, suspicions of unfaithfulness often stem from observable behavioral changes that, when recognized early, can help individuals make informed decisions about their relationships through proper channels."}),r.jsxs("p",{className:"text-trident-black opacity-70 mb-6",children:["At Trident Investigations, we've seen how these concerns impact families throughout Utah. Our ",r.jsx("a",{href:"/services/domestic",className:"text-trident-gold hover:text-orange-600 font-semibold underline",children:"domestic investigation services"})," are designed to provide facts while maintaining the sensitivity these situations require through legally compliant methods."]}),r.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6 text-trident-black",children:"Common Signs of Infidelity to Recognize"}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Sudden Changes in Communication Patterns"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"One of the most telling signs of potential infidelity involves dramatic shifts in how your partner communicates. This might include becoming secretive with their phone or computer, avoiding calls in your presence, or being vague about their daily activities. These communication changes often represent the first observable indicators of concerning behavior."}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Our professional investigators in Utah frequently work with clients who notice these early warning signs but need verification to confirm their concerns through legal methods."}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Unexplained Schedule Changes and Absences"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Another significant indicator involves sudden changes to established routines. This might manifest as:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Working late more frequently without clear explanations"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Unexplained trips or extended absences"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"New social activities that exclude you"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Inconsistent explanations for time away from home"})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"These scheduling inconsistencies often warrant professional attention, as they can indicate deceptive behavior patterns through legally documented methods."}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Technology and Privacy Behavior Changes"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"In today's digital world, technology behavior often reveals concerning patterns. Warning signs include:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Guarding devices more carefully than before"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Changing passwords without explanation"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Deleting communication histories"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Using new privacy measures on social media"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Receiving calls or messages they won't explain"})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Our team at Trident Investigations specializes in digital verification services, analyzing communication patterns to uncover concerning interactions through proper legal channels."}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Emotional and Physical Distance"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Infidelity often creates emotional barriers that affect relationship intimacy. Signs include:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Reduced interest in shared activities"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Less physical affection"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Avoiding meaningful conversations"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Seeming distracted or emotionally distant"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Defensive responses to routine questions"})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"These emotional changes, when combined with other indicators, often signal the need for professional investigation services through legal methods."}),r.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6 text-trident-black",children:"Financial and Lifestyle Inconsistencies"}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Unexplained Expenses"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Financial irregularities can indicate concerning behavior, including:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Unusual credit card charges"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Unexplained cash withdrawals"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"New purchases without clear explanations"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Hidden financial accounts or statements"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Spending patterns that don't align with claimed activities"})]}),r.jsxs("p",{className:"text-trident-black opacity-70 mb-6",children:["At Trident Investigations, our ",r.jsx("a",{href:"/services/financial",className:"text-trident-gold hover:text-orange-600 font-semibold underline",children:"financial investigation services"})," can help uncover discrepancies that may indicate deceptive behavior through legally compliant methods."]}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Changes in Personal Appearance and Habits"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Sometimes infidelity manifests through sudden changes in personal presentation:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"New interest in fitness or appearance"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Different clothing choices or styles"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Changes in grooming habits"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"New fragrances or personal care products"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Altered sleep patterns or eating habits"})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"While these changes alone don't confirm infidelity, they often form part of a broader pattern worthy of professional attention through legal channels."}),r.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6 text-trident-black",children:"When to Seek Professional Investigation Services"}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Trust Your Instincts"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:`If you're noticing multiple warning signs, your concerns deserve professional attention. Many clients tell us they "just knew something was wrong" but needed verification to confirm their suspicions through proper methods.`}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Legal Considerations in Utah"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Utah's divorce laws can be influenced by proven infidelity, particularly regarding:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Alimony determinations"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Asset division decisions"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Child custody considerations when inappropriate behavior affects the family environment"})]}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Professional investigation services ensure any evidence gathered meets legal standards and can be properly utilized in legal proceedings through compliant methods."}),r.jsx("h3",{className:"text-2xl font-bold mt-10 mb-4 text-trident-black",children:"Protecting Your Emotional Wellbeing"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Living with uncertainty takes an emotional toll. Professional verification services can provide closure, whether your concerns are confirmed or dismissed, allowing you to move forward with clarity through legally compliant support."}),r.jsx("h2",{className:"text-3xl font-bold mt-12 mb-6 text-trident-black",children:"How Trident Investigations Can Help"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Our experienced team provides comprehensive infidelity investigation services throughout Utah. We understand the emotional weight of these situations and approach every case with sensitivity and professionalism through legal methods."}),r.jsx("p",{className:"text-trident-black opacity-70 mb-6",children:"Our Services Include:"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Discreet surveillance and documentation through legal channels"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Digital communication analysis within legal boundaries"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Background verification services through proper methods"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Financial investigation when appropriate through legal channels"}),r.jsx("li",{className:"text-trident-black opacity-70 leading-relaxed relative pl-6",children:"Comprehensive reporting that meets legal standards"})]}),r.jsxs("p",{className:"text-trident-black opacity-70 mb-8",children:["Ready for answers? Contact Trident Investigations at ",r.jsx("a",{href:"tel:385-275-8220",className:"text-trident-gold hover:text-orange-600 font-semibold",children:"385-275-8220"})," for a confidential consultation."]})]})})})}),r.jsx("section",{className:"bg-trident-smoke py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-serif mb-4 text-trident-black",children:"Warning Signs Checklist"}),r.jsx("p",{className:"text-xl text-trident-black opacity-70",children:"Check the items that apply to your situation"}),r.jsx("div",{className:"mt-4",children:r.jsxs("div",{className:"inline-flex items-center gap-2 bg-trident-gold bg-opacity-20 px-4 py-2 rounded-full",children:[r.jsx("div",{className:"w-3 h-3 bg-trident-gold rounded-full animate-pulse"}),r.jsx("span",{className:"text-sm font-medium text-trident-black",children:"Click to check items below"})]})})]}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:c.map((d,u)=>r.jsxs("div",{className:`border rounded-lg p-4 cursor-pointer transition-all duration-300 hover:shadow-lg hover:-translate-y-1 min-h-[60px] group relative ${n.includes(u)?"bg-trident-gold border-trident-gold bg-opacity-20 transform scale-105":"bg-trident-white border-trident-grey hover:border-trident-gold hover:border-opacity-50 hover:bg-trident-gold hover:bg-opacity-5"}`,onClick:()=>a(u),children:[!n.includes(u)&&r.jsx("div",{className:"absolute -top-1 -right-1 w-4 h-4 bg-trident-gold rounded-full animate-pulse opacity-60 group-hover:opacity-100"}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:`w-6 h-6 rounded border-2 flex items-center justify-center transition-all duration-300 ${n.includes(u)?"bg-trident-gold border-trident-gold transform rotate-12":"bg-trident-white border-trident-grey group-hover:border-trident-gold"}`,children:n.includes(u)&&r.jsx(we,{className:"h-4 w-4 text-trident-black animate-scale-in"})}),r.jsx("span",{className:`font-medium text-base leading-relaxed ${n.includes(u),"text-trident-black"}`,children:d})]})]},u))}),r.jsxs("div",{className:"text-center mt-8",children:[r.jsxs("div",{className:"inline-flex items-center gap-3 mb-4",children:[r.jsxs("div",{className:"text-lg text-trident-black opacity-70",children:["Checked ",n.length," of ",c.length," red flags"]}),r.jsx("div",{className:"w-32 bg-trident-grey bg-opacity-30 rounded-full h-2",children:r.jsx("div",{className:"h-2 bg-gradient-to-r from-trident-gold to-orange-600 rounded-full transition-all duration-500 ease-out",style:{width:`${n.length/c.length*100}%`}})})]}),n.length>=3&&r.jsx("div",{className:"bg-trident-gold bg-opacity-10 border-l-4 border-trident-gold p-6 rounded-r-lg mt-6 animate-fade-in",children:r.jsx("p",{className:"text-trident-black font-semibold text-lg",children:"If you checked 3+ items, professional investigation may be necessary to protect your legal rights."})})]}),r.jsxs("div",{className:"bg-trident-blue text-trident-white p-6 rounded-lg text-center mt-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Free Utah Investigation Guide"}),r.jsx("p",{className:"mb-4 text-trident-white opacity-90",children:"Download our comprehensive guide to understanding investigation options and protecting your rights in Utah legal proceedings."}),r.jsx(V,{asChild:!0,variant:"gold",size:"lg",onClick:()=>o("lead_magnet"),children:r.jsx("a",{href:"/contact",children:"Request Free Guide & Assessment"})})]})]})})}),r.jsx("section",{className:"bg-trident-black py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center font-serif mb-12 text-trident-white",children:"Our Professional Investigation Process"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:[r.jsxs("div",{className:"bg-trident-blue p-6 rounded-lg text-center shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold text-trident-black rounded-full flex items-center justify-center font-bold text-lg mx-auto mb-4",children:"1"}),r.jsx("h3",{className:"font-bold mb-3 text-trident-white",children:"Confidential Consultation"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Free assessment of your situation with complete discretion and professional guidance."})]}),r.jsxs("div",{className:"bg-trident-blue p-6 rounded-lg text-center shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold text-trident-black rounded-full flex items-center justify-center font-bold text-lg mx-auto mb-4",children:"2"}),r.jsx("h3",{className:"font-bold mb-3 text-trident-white",children:"Strategic Planning"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Custom investigation plan designed for your specific situation and needs."})]}),r.jsxs("div",{className:"bg-trident-blue p-6 rounded-lg text-center shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold text-trident-black rounded-full flex items-center justify-center font-bold text-lg mx-auto mb-4",children:"3"}),r.jsx("h3",{className:"font-bold mb-3 text-trident-white",children:"Evidence Gathering"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Discreet investigation and documentation using advanced professional techniques within legal boundaries."})]}),r.jsxs("div",{className:"bg-trident-blue p-6 rounded-lg text-center shadow-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold text-trident-black rounded-full flex items-center justify-center font-bold text-lg mx-auto mb-4",children:"4"}),r.jsx("h3",{className:"font-bold mb-3 text-trident-white",children:"Legal Documentation"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Court-admissible reports formatted for Utah legal proceedings with professional testimony available."})]})]}),r.jsxs("div",{className:"bg-trident-blue text-trident-white p-8 rounded-lg text-center",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Legal Compliance Focus"}),r.jsx("p",{className:"mb-6 text-trident-white opacity-90",children:"We focus on gathering evidence in a way that can be used in court. We don't cut corners when it comes to legal compliance and professional standards."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"flex items-center text-trident-white",children:[r.jsx("div",{className:"w-6 h-6 bg-trident-gold rounded-full flex items-center justify-center mr-3",children:r.jsx(we,{className:"text-trident-black text-sm h-4 w-4"})}),"Court-admissible documentation"]}),r.jsxs("div",{className:"flex items-center text-trident-white",children:[r.jsx("div",{className:"w-6 h-6 bg-trident-gold rounded-full flex items-center justify-center mr-3",children:r.jsx(we,{className:"text-trident-black text-sm h-4 w-4"})}),"Utah legal compliance"]}),r.jsxs("div",{className:"flex items-center text-trident-white",children:[r.jsx("div",{className:"w-6 h-6 bg-trident-gold rounded-full flex items-center justify-center mr-3",children:r.jsx(we,{className:"text-trident-black text-sm h-4 w-4"})}),"Professional testimony available"]}),r.jsxs("div",{className:"flex items-center text-trident-white",children:[r.jsx("div",{className:"w-6 h-6 bg-trident-gold rounded-full flex items-center justify-center mr-3",children:r.jsx(we,{className:"text-trident-black text-sm h-4 w-4"})}),"Chain of custody protocols"]})]})]})]})})}),r.jsx("section",{className:"bg-gradient-to-r from-trident-black to-trident-blue text-trident-white py-16 md:py-20",children:r.jsx("div",{className:"container mx-auto px-4 md:px-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center mb-16",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-serif mb-8",children:"Utah's Most Trusted Investigation Team"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center bg-trident-blue p-4 rounded-lg backdrop-blur-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold rounded-lg mr-4 flex items-center justify-center",children:r.jsx(Be,{className:"text-trident-black h-6 w-6"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1 text-trident-white",children:"Utah State Licensed"}),r.jsx("p",{className:"text-trident-white text-sm",children:"License #G105645 - Fully licensed and insured PI services"})]})]}),r.jsxs("div",{className:"flex items-center bg-trident-blue p-4 rounded-lg backdrop-blur-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold rounded-lg mr-4 flex items-center justify-center",children:r.jsx(pn,{className:"text-trident-black h-6 w-6"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1 text-trident-white",children:"15+ Years Experience"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Specialized in professional investigation and legal support services"})]})]}),r.jsxs("div",{className:"flex items-center bg-trident-blue p-4 rounded-lg backdrop-blur-sm bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-gold rounded-lg mr-4 flex items-center justify-center",children:r.jsx(IK,{className:"text-trident-black h-6 w-6"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1 text-trident-white",children:"Attorney Network"}),r.jsx("p",{className:"text-trident-white text-sm",children:"Direct partnerships with Utah's top legal professionals"})]})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold mb-6 text-trident-white",children:"Wasatch Front Coverage"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"bg-trident-blue p-3 rounded border border-trident-blue border-opacity-30 border-l-4 border-l-trident-gold bg-opacity-20",children:[r.jsx("div",{className:"font-semibold mb-1 text-trident-white",children:"Salt Lake County"}),r.jsx("div",{className:"text-trident-white text-sm",children:"Salt Lake City, West Valley, Sandy"})]}),r.jsxs("div",{className:"bg-trident-blue p-3 rounded border border-trident-blue border-opacity-30 border-l-4 border-l-trident-gold bg-opacity-20",children:[r.jsx("div",{className:"font-semibold mb-1 text-trident-white",children:"Utah County"}),r.jsx("div",{className:"text-trident-white text-sm",children:"Provo, Orem, Lehi"})]}),r.jsxs("div",{className:"bg-trident-blue p-3 rounded border border-trident-blue border-opacity-30 border-l-4 border-l-trident-gold bg-opacity-20",children:[r.jsx("div",{className:"font-semibold mb-1 text-trident-white",children:"Davis County"}),r.jsx("div",{className:"text-trident-white text-sm",children:"Layton, Bountiful, Farmington"})]}),r.jsxs("div",{className:"bg-trident-blue p-3 rounded border border-trident-blue border-opacity-30 border-l-4 border-l-trident-gold bg-opacity-20",children:[r.jsx("div",{className:"font-semibold mb-1 text-trident-white",children:"Weber County"}),r.jsx("div",{className:"text-trident-white text-sm",children:"Ogden, Roy, Clearfield"})]})]})]})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold font-serif mb-6",children:"Don't Let Uncertainty Control Your Future"}),r.jsx("p",{className:"text-xl mb-8 leading-relaxed text-trident-white opacity-90",children:"Every day you wait is another day for evidence to disappear. Professional investigation provides the clarity and documentation you need to protect what matters most."}),r.jsxs("div",{className:"bg-trident-blue backdrop-blur-sm p-6 rounded-lg mb-8 bg-opacity-20 border border-trident-blue border-opacity-30",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-white",children:"Why Utah Families Choose Trident Investigations:"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-left",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx(we,{className:"text-trident-gold mr-3 h-5 w-5"}),r.jsx("span",{className:"text-trident-white",children:"Evidence gathered within legal boundaries"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx(we,{className:"text-trident-gold mr-3 h-5 w-5"}),r.jsx("span",{className:"text-trident-white",children:"Complete discretion guaranteed"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx(we,{className:"text-trident-gold mr-3 h-5 w-5"}),r.jsx("span",{className:"text-trident-white",children:"Utah law expertise and compliance"})]})]})]}),r.jsxs("div",{className:"text-center mb-12 px-6",children:[r.jsx(V,{asChild:!0,variant:"gold",size:"lg",className:"px-12 py-5 text-xl rounded-xl shadow-2xl",onClick:()=>o("final_cta"),children:r.jsx("a",{href:"/contact",children:"Start Your Investigation Today"})}),r.jsx("p",{className:"text-trident-white mt-6 text-lg opacity-80",children:"Available 7 days a week β’ No obligation β’ Complete confidentiality guaranteed"})]}),r.jsxs("div",{className:"bg-trident-gold text-trident-black p-6 rounded-lg text-center",children:[r.jsx("p",{className:"font-bold mb-3 text-lg",children:"Urgent Situation? Call Now"}),r.jsx("a",{href:"tel:+1-385-275-8220",className:"inline-flex items-center justify-center text-2xl font-bold hover:opacity-80 transition-opacity px-4 py-2",onClick:()=>o("emergency_contact"),children:"(385) 275-8220"})]})]})]})})})]})},fre=()=>{const{slug:e}=j$(),{data:t,isLoading:n,error:i}=ba({queryKey:["blogPost",e],queryFn:()=>ate(e||""),enabled:!!e}),{data:s=[]}=ba({queryKey:["blogPosts"],queryFn:Bb});s.filter(o=>o.slug!==e).slice(0,3);const a=o=>{const c=o.replace(/<[^>]*>/g,"").split(/\s+/).length;return Math.ceil(c/200)};return n?r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("div",{className:"container-custom py-32 flex-grow flex flex-col items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-trident-blue"})}),r.jsx(Qe,{})]}):i||!t?r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("div",{className:"container-custom py-32 flex-grow flex flex-col items-center justify-center",children:[r.jsx("h1",{className:"text-3xl font-bold mb-4 text-trident-black",children:"Post Not Found"}),r.jsx("p",{className:"text-text-secondary mb-8",children:"The blog post you're looking for doesn't exist."}),r.jsx(te,{to:"/blog",className:"btn-primary",children:"Back to Blog"})]}),r.jsx(Qe,{})]}):r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(mre,{post:t,estimatedReadTime:a(t.content)}),r.jsx(Qe,{})]})},pre=()=>{const{tag:e}=j$(),{data:t=[],isLoading:n,error:i}=ba({queryKey:["blogPostsByTag",e],queryFn:()=>ote(e||""),enabled:!!e}),s=e?lte(e):"";return n?r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("div",{className:"container-custom py-32 flex-grow flex flex-col items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-trident-purple"})}),r.jsx(Qe,{})]}):i||!e?r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("div",{className:"container-custom py-32 flex-grow flex flex-col items-center justify-center",children:[r.jsx("h1",{className:"text-3xl font-bold mb-4 text-trident-dark",children:"Tag Not Found"}),r.jsx("p",{className:"text-text-secondary mb-8",children:"The tag you're looking for doesn't exist."}),r.jsx(te,{to:"/blog",className:"btn-primary",children:"Back to Blog"})]}),r.jsx(Qe,{})]}):r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-40 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs(te,{to:"/blog",className:"inline-flex items-center text-trident-orange hover:text-trident-orange/80 mb-6 font-semibold transition-colors",children:[r.jsx(x_,{size:20,className:"mr-2"}),"Back to All Posts"]}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(xy,{size:24,className:"text-trident-orange"}),r.jsx("span",{className:"text-supporting-readable text-lg",children:"Tag:"})]}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:s}),r.jsxs("p",{className:"text-xl text-readable-light",children:[t.length," ",t.length===1?"article":"articles"," found"]})]})})]}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsx("div",{className:"max-w-5xl mx-auto",children:t.length===0?r.jsxs("div",{className:"text-center py-20",children:[r.jsx(xy,{size:48,className:"mx-auto mb-4 text-supporting-readable"}),r.jsx("h3",{className:"text-2xl font-bold mb-4 text-trident-dark",children:"No articles found"}),r.jsxs("p",{className:"text-text-secondary mb-8",children:['There are currently no articles tagged with "',s,'".']}),r.jsx(te,{to:"/blog",className:"btn-primary",children:"View All Articles"})]}):r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map(a=>r.jsx("article",{className:"bg-white rounded-lg shadow-md overflow-hidden border border-gray-100 transition-all duration-300 hover:shadow-lg",children:r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center text-sm text-supporting-readable mb-2",children:[r.jsx("span",{className:"text-trident-orange font-medium",children:a.category}),r.jsx("span",{className:"mx-2",children:"β’"}),r.jsx("span",{children:$_(a.publishDate)})]}),r.jsx("h2",{className:"text-xl font-bold mb-3 text-trident-dark hover:text-trident-orange transition-colors",children:r.jsx(te,{to:`/blog/${a.slug}`,children:a.title})}),r.jsx("p",{className:"text-text-secondary mb-4 leading-relaxed",children:a.excerpt}),a.tags&&a.tags.length>0&&r.jsxs("div",{className:"flex flex-wrap gap-1 mb-4",children:[a.tags.slice(0,3).map((o,l)=>r.jsx(te,{to:`/blog/tag/${encodeURIComponent(o.toLowerCase().replace(/\s+/g,"-"))}`,className:`transition-colors ${o.toLowerCase()===s.toLowerCase()?"tag-primary":"tag-outline"}`,children:o},l)),a.tags.length>3&&r.jsxs("span",{className:"tag-secondary",children:["+",a.tags.length-3," more"]})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:"text-sm text-supporting-readable",children:["By ",a.author]}),r.jsx(te,{to:`/blog/${a.slug}`,className:"text-trident-orange font-medium hover:underline",children:"Read More β"})]})]})},a.id||a.slug))})})})}),r.jsx("section",{className:"py-12 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4 text-trident-dark",children:"Subscribe to Our Newsletter"}),r.jsx("p",{className:"text-text-secondary mb-6",children:"Stay updated with the latest insights and news in the investigation industry"}),r.jsxs("form",{className:"flex flex-col md:flex-row gap-3 justify-center",children:[r.jsx("input",{type:"email",placeholder:"Your email address",className:"px-4 py-3 rounded border border-input flex-grow max-w-md focus:outline-none focus:ring-2 focus:ring-trident-orange focus:border-trident-orange bg-background text-foreground",required:!0}),r.jsx("button",{type:"submit",className:"btn-primary whitespace-nowrap px-6",children:"Subscribe"})]})]})})}),r.jsx(Qe,{})]})},gre=()=>{const e=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx("main",{className:"bg-background min-h-screen",children:r.jsx("div",{className:"container-custom py-16",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("header",{className:"mb-12",children:[r.jsx("h1",{className:"text-4xl font-bold text-trident-blue mb-4",children:"Privacy Policy"}),r.jsxs("p",{className:"text-muted-foreground",children:["Effective date: ",e," β’ Last updated: ",e]})]}),r.jsx("div",{className:"prose prose-lg max-w-none",children:r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Who we are"}),r.jsx("p",{className:"text-muted-foreground",children:'Trident Investigations ("we," "us"). This Policy covers our website and lead intake. Information collected and processed in the course of licensed investigative services is handled under client agreements and applicable law and may be exempt from certain consumer privacy statutes.'})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"What we collect"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"When you visit or submit our forms, we may collect:"}),r.jsxs("ul",{className:"list-disc list-inside space-y-2 text-muted-foreground",children:[r.jsxs("li",{children:[r.jsx("strong",{children:"Contact info:"})," name, email, phone, message, service type."]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Marketing context:"})," UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content; GA4: utm_id, utm_source_platform, utm_creative_format, utm_marketing_tactic), click IDs (gclid, fbclid, msclkid, ttclid, wbraid, gbraid, srsltid), referrer URL, landing page URL, device/browser, IP address, and page events. We persist UTMs for ~90 days to attribute requests."]}),r.jsxs("li",{children:[r.jsx("strong",{children:"Business fields we may derive or receive:"})," channel group, client type, value tier, service type hints, ad campaign metadata (campaign/ad group/ad id)."]})]})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"How we use info"}),r.jsx("p",{className:"text-muted-foreground",children:"To respond to inquiries, provide services, prevent fraud, operate and improve the site, measure marketing, and comply with law."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Service providers"}),r.jsx("p",{className:"text-muted-foreground",children:"We use third-party processors to operate our website, manage databases, automate workflows, and handle customer relationship management. These providers process data only to deliver their services to us, under contract."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Sale/Share statement"}),r.jsxs("p",{className:"text-muted-foreground",children:["We do not sell personal information. We may share limited identifiers (e.g., cookie/click IDs or UTMs) with advertising or analytics partners for cross-context behavioral advertising. You can opt out using ",r.jsx("a",{href:"/privacy-choices",className:"text-trident-orange hover:underline",children:'"Do Not Sell or Share My Personal Information"'}),"."]})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Your State Privacy Rights"}),r.jsxs("p",{className:"text-muted-foreground",children:["If you are a resident of California, Colorado, Connecticut, Virginia, or Utahβand if we are subject to the applicable state lawβyou may have rights to access, delete, correct certain personal information, and to opt out of sale/share/targeted advertising. Submit a request at ",r.jsx("a",{href:"/privacy-requests",className:"text-trident-orange hover:underline",children:"/privacy-requests"})," or email privacy@tridentpi.net. We will verify and respond as required by law."]})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Retention"}),r.jsx("p",{className:"text-muted-foreground",children:"Marketing identifiers are typically kept for ~90 days. Lead records are kept as needed for intake, operations, and legal obligations. Investigative case records follow contract or law."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Security"}),r.jsx("p",{className:"text-muted-foreground",children:"We use reasonable administrative, technical, and physical safeguards."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Children"}),r.jsx("p",{className:"text-muted-foreground",children:"This site is not for children under 13."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Changes"}),r.jsx("p",{className:"text-muted-foreground",children:"We may update this Policy. The revised date will appear above."})]}),r.jsxs("section",{children:[r.jsx("h2",{className:"text-2xl font-semibold text-trident-blue mb-4",children:"Contact"}),r.jsxs("p",{className:"text-muted-foreground",children:["privacy@tridentpi.net or ",r.jsx("a",{href:"/privacy-requests",className:"text-trident-orange hover:underline",children:"/privacy-requests"}),"."]})]})]})})]})})}),r.jsx(Qe,{})]})},vre=()=>r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative flex items-center pt-32 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Terms of Service"}),r.jsx("p",{className:"text-xl text-trident-gray leading-relaxed",children:"Last updated: July 2, 2025"})]})})]}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"1. Acceptance of Terms"}),r.jsx("p",{className:"text-lg leading-relaxed mb-8 text-trident-gray",children:'By accessing and using Go.TridentPI.net/ or TridentPI.net/ (the "Website"), you agree to be bound by these Terms and Conditions of Use ("Terms"). If you do not agree with any part of these Terms, you must not use this Website.'}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"2. Service Scope and Limitations"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"SCOPE OF SERVICES:"}),r.jsx("p",{className:"text-lg leading-relaxed mb-4 text-trident-gray",children:"Trident Investigations provides licensed private investigation services including:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Surveillance (within legal boundaries)"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Background investigations"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Asset searches"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Digital forensics"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Witness interviews"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Process service"})]}),r.jsxs("div",{className:"bg-trident-dark text-white p-8 rounded-lg mb-8 shadow-lg",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4 text-white",children:"ALL SERVICES ARE SUBJECT TO:"}),r.jsxs("ul",{className:"ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Utah Code Title 53, Chapter 9 (Private Investigator Licensing)"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Federal and state privacy laws"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Constitutional protections against unreasonable search"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Local jurisdiction laws where investigations occur"})]})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"3. Legal Compliance Disclaimers"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"LEGAL COMPLIANCE:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"All investigations are conducted within legal boundaries"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We cannot and will not conduct illegal surveillance"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"GPS tracking requires legal authority or vehicle owner consent"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Evidence gathering follows court-admissible procedures"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Client requests for illegal activities will be declined"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"EVIDENCE LIMITATIONS:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We cannot guarantee specific investigation outcomes"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Evidence admissibility depends on proper collection procedures"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Some evidence may not be obtainable through legal means"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Investigation results may not support client expectations"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"4. Client Responsibilities"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"CLIENT OBLIGATIONS:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Provide truthful information about investigation needs"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Respect legal boundaries of investigation"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Pay agreed-upon fees according to contract terms"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Do not request illegal surveillance or evidence gathering"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Understand that some information may not be legally obtainable"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"PROHIBITED REQUESTS:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Illegal surveillance or harassment"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Unauthorized access to private property"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Wiretapping without court authorization"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Impersonation of law enforcement"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Any activity violating Utah or federal law"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"5. Fee Structure and Expectations"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"PRICING AND PAYMENT:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Hourly rates: $100-200 per hour depending on case complexity"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Consultation fees may apply"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Expenses (travel, equipment, etc.) billed separately"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Payment terms established in individual contracts"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"No guarantee of specific time investment for results"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"REFUND POLICY:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Professional time invested is non-refundable"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Unused retainer amounts may be refundable"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Equipment/expense costs are non-refundable"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Refund requests subject to contract terms"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"6. Professional Standards"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"ETHICAL STANDARDS:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Licensed by Utah Bureau of Criminal Identification (License #G105645)"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Member of Private Investigators Association of Utah"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Bonded and insured for client protection"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Continuing education in legal and ethical standards"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Zero tolerance for illegal or unethical practices"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"CONFLICT OF INTEREST:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We will not work for opposing parties in the same matter"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We disclose any potential conflicts before engagement"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We maintain professional boundaries with all parties"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We refuse cases that present ethical conflicts"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"7. Limitation of Liability"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"LIABILITY LIMITATIONS:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Our liability is limited to fees paid for services"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We are not responsible for third-party actions"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Investigation outcomes may not meet expectations"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Legal advice should be obtained from licensed attorneys"}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"We are not responsible for client use of investigation results"})]}),r.jsxs("div",{className:"bg-yellow-50 border-l-4 border-yellow-400 p-6 mb-8",children:[r.jsx("h4",{className:"font-bold text-yellow-800 mb-2",children:"DISCLAIMER:"}),r.jsx("p",{className:"text-yellow-700",children:"Private investigation results are for informational purposes and should not be considered legal advice. Clients should consult with licensed attorneys for legal guidance on investigation findings."})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"8. User Conduct"}),r.jsx("p",{className:"text-lg leading-relaxed mb-4 text-trident-gray",children:"You agree to use this Website only for lawful purposes. You must not:"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Use the Website in any way that may impair its functionality or accessibility."}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Attempt to gain unauthorized access to any portion of the Website or its related systems."}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Use the Website to transmit or distribute any harmful or malicious software."}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Provide false or misleading information."}),r.jsx("li",{className:"text-trident-gray leading-relaxed relative pl-6",children:"Use the website to harass, threaten, or defame any individual."})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"9. Third-Party Links"}),r.jsx("p",{className:"text-lg leading-relaxed mb-8 text-trident-gray",children:"This Website may contain links to third-party websites. Trident Investigations is not responsible for the content or privacy practices of these websites."}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"10. Privacy Policy"}),r.jsxs("p",{className:"text-lg leading-relaxed mb-8 text-trident-gray",children:["Your use of this Website is also governed by our Privacy Policy, which can be found at: ",r.jsx("a",{href:"/privacy-policy",className:"text-trident-orange hover:text-trident-purple font-semibold underline decoration-2 underline-offset-2 transition-all duration-300",children:"Privacy Policy"}),". Please review this policy carefully."]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"11. Governing Law"}),r.jsx("p",{className:"text-lg leading-relaxed mb-8 text-trident-gray",children:"These Terms shall be governed by and construed in accordance with the laws of the State of Utah, without regard to its conflict of law provisions."}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"12. Changes to Terms"}),r.jsx("p",{className:"text-lg leading-relaxed mb-8 text-trident-gray",children:"Trident Investigations reserves the right to modify these Terms at any time. Any changes will be posted on this Website, and your continued use of the Website after such changes constitutes your acceptance of the new Terms."}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Contact Information"}),r.jsxs("div",{className:"bg-gray-50 p-8 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-6 text-trident-dark",children:"CONTACT FOR LEGAL CONCERNS:"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"font-bold text-trident-dark",children:"Trident Private Investigations"}),r.jsx("p",{className:"text-trident-gray",children:"770 E Main St, Suite 126"}),r.jsx("p",{className:"text-trident-gray",children:"Lehi, UT 84043"}),r.jsxs("p",{className:"text-trident-gray",children:["Phone: ",r.jsx("a",{href:"tel:+13852758220",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"(385) 275-8220"})]}),r.jsxs("p",{className:"text-trident-gray",children:["Email: ",r.jsx("a",{href:"mailto:info@tridentpi.net",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"info@tridentpi.net"})]})]})]})]})})}),r.jsx(Qe,{})]}),xre=()=>r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative flex items-center pt-32 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Professional Licensing Information"}),r.jsx("p",{className:"text-xl text-readable-light leading-relaxed",children:"Licensed, Bonded, and Insured Private Investigation Services"})]})})]}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("div",{className:"bg-trident-black text-white p-8 rounded-lg mb-12 shadow-lg",children:r.jsxs("div",{className:"text-center space-y-4",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-white",children:"Utah Private Investigation License"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 text-left",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"text-white font-semibold mb-2",children:[r.jsx("strong",{children:"License Number:"})," G105645"]}),r.jsxs("p",{className:"text-gray-300 mb-2",children:[r.jsx("strong",{children:"Licensing Authority:"})," Utah Bureau of Criminal Identification"]}),r.jsxs("p",{className:"text-gray-300",children:[r.jsx("strong",{children:"License Status:"})," Active and in Good Standing"]})]}),r.jsxs("div",{children:[r.jsxs("p",{className:"text-gray-300 mb-2",children:[r.jsx("strong",{children:"License Type:"})," Private Investigator Agency License"]}),r.jsxs("p",{className:"text-gray-300 mb-2",children:[r.jsx("strong",{children:"Regulated Under:"})," Utah Code Title 53, Chapter 9"]}),r.jsxs("p",{className:"text-gray-300",children:[r.jsx("strong",{children:"Business Address:"})," 770 E Main St, Suite 126, Lehi, UT 84043"]})]})]})]})}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Regulatory Oversight"}),r.jsx("p",{className:"text-lg leading-relaxed mb-8 text-text-secondary",children:"Trident Investigations operates under the direct oversight of the Utah Bureau of Criminal Identification, which ensures compliance with all state laws governing private investigation services."}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Utah Bureau of Criminal Identification"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Regulatory oversight and license maintenance"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Continuing education requirements enforcement"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Professional conduct standards monitoring"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Client complaint resolution process"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Professional Associations"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Private Investigators Association of Utah (PIAU)"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Member in good standing"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Adherence to professional ethical standards"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Continuing education participation"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Professional development and training"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Bonding and Insurance Coverage"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Professional Liability Insurance"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Comprehensive errors and omissions coverage"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Client protection against professional negligence"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Coverage for investigative activities"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Legal defense coverage"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Surety Bond"}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Required Utah state surety bond"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Client financial protection"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Regulatory compliance assurance"})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Multi-State Licensing"}),r.jsxs("div",{className:"bg-gray-50 p-8 rounded-lg mb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-6 text-trident-dark",children:"SERVICE AREAS:"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-trident-dark mb-2",children:"Utah"}),r.jsx("p",{className:"text-sm text-supporting-readable mb-1",children:"Licensed Agency #G105645"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Full service authorization"})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-trident-dark mb-2",children:"Idaho"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Statewide coverage"})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-trident-dark mb-2",children:"Wyoming"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Statewide coverage"})]})]})]}),r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-trident-dark",children:"Compliance Standards"}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Legal Compliance Framework"}),r.jsxs("ul",{className:"mb-6 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Utah Code Title 53, Chapter 9 (Private Investigator Licensing)"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Federal privacy laws and regulations"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Constitutional protections against unreasonable search"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Local jurisdiction laws where investigations occur"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Court-admissible evidence collection procedures"})]}),r.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-4 text-trident-dark",children:"Ethical Standards"}),r.jsxs("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-6 mb-6",children:[r.jsx("h4",{className:"font-bold text-blue-800 mb-3",children:"Confidentiality Protection"}),r.jsxs("p",{className:"text-blue-700 mb-3",children:[r.jsx("strong",{children:"Divulging investigative information -- False reports prohibited."})," Except as otherwise provided by this chapter, a licensee may not divulge or release to anyone other than the licensee's client or employer the contents of an investigative file acquired in the course of licensed investigative activity."]}),r.jsxs("p",{className:"text-blue-700",children:["Reference: ",r.jsx("a",{href:"https://le.utah.gov/xcode/Title53/Chapter9/53-9-S116.html",target:"_blank",rel:"noopener noreferrer",className:"text-trident-orange hover:text-trident-purple font-semibold underline decoration-2 underline-offset-2 transition-all duration-300",children:"Utah Code Β§ 53-9-116"})]})]}),r.jsxs("ul",{className:"mb-8 ml-6 space-y-3",children:[r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Professional conduct requirements"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Conflict of interest avoidance"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Client privacy protection"}),r.jsx("li",{className:"text-text-secondary leading-relaxed relative pl-6",children:"Legal boundaries compliance"})]}),r.jsxs("div",{className:"bg-yellow-50 border-l-4 border-yellow-400 p-6 mb-8",children:[r.jsx("h4",{className:"font-bold text-yellow-800 mb-3",children:"VERIFY OUR LICENSE:"}),r.jsx("p",{className:"text-yellow-700",children:"You can verify our license status through the Utah Bureau of Criminal Identification's official license verification system."})]}),r.jsxs("div",{className:"bg-gray-50 p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-6 text-trident-dark",children:"DIRECT CONTACT:"}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"font-bold text-trident-dark",children:"Trident Private Investigations"}),r.jsx("p",{className:"text-supporting-readable",children:"770 E Main St, Suite 126"}),r.jsx("p",{className:"text-supporting-readable",children:"Lehi, UT 84043"}),r.jsxs("p",{className:"text-supporting-readable",children:["Phone: ",r.jsx("a",{href:"tel:+13852758220",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"(385) 275-8220"})]}),r.jsxs("p",{className:"text-supporting-readable",children:["Email: ",r.jsx("a",{href:"mailto:info@tridentpi.net",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"info@tridentpi.net"})]})]})]})]})})}),r.jsx(Qe,{})]}),us={main:[{name:"Home",path:"/",icon:r.jsx(Ct,{className:"h-4 w-4"})},{name:"About",path:"/about",icon:r.jsx(Gi,{className:"h-4 w-4"})},{name:"About Brand",path:"/about/brand",icon:r.jsx(Gi,{className:"h-4 w-4"})},{name:"Contact",path:"/contact",icon:r.jsx(fn,{className:"h-4 w-4"})},{name:"Blog",path:"/blog",icon:r.jsx(y_,{className:"h-4 w-4"})},{name:"Reviews",path:"/reviews",icon:r.jsx(Gi,{className:"h-4 w-4"})},{name:"Thank You",path:"/thank-you",icon:r.jsx(Ct,{className:"h-4 w-4"})},{name:"Licensing Information",path:"/licensing-information",icon:r.jsx(Be,{className:"h-4 w-4"})}],blog:[{name:"Detecting False Insurance Claims",path:"/blog/detecting-false-insurance-claims-expert-insights"},{name:"Private Investigators and Family Law",path:"/blog/private-investigators-and-family-law-how-a-pi-can-help"},{name:"Witness Location Strategies",path:"/blog/witness-location-strategies"},{name:"Surveillance Technology in Utah",path:"/blog/surveillance-technology-modern-tools-legal-compliance-utah-private-investigation"},{name:"Adultery and Infidelity Legal Implications",path:"/blog/adultery-infidelity-legal-implications-when-to-hire-pi-cheating-utah"}],services:[{name:"Services Overview",path:"/services"},{name:"Domestic Investigations",path:"/services/domestic"},{name:"Cohabitation Investigations",path:"/services/domestic/cohabitation"},{name:"Child Custody Investigation",path:"/services/domestic/child-custody-investigation"},{name:"Corporate Investigations",path:"/services/corporate"},{name:"Insurance Investigations",path:"/services/insurance"},{name:"Criminal Investigations",path:"/services/criminal"},{name:"Investigations for Law Firms",path:"/services/law-firms"},{name:"Legal Investigation Utah",path:"/services/legal-investigation-utah"},{name:"Asset Searches",path:"/services/asset-searches"}],locations:[{name:"Locations Overview",path:"/locations"},{name:"Utah",path:"/locations/utah"},{name:"Idaho",path:"/locations/idaho"},{name:"Wyoming",path:"/locations/wyoming"}],utahCounties:[{name:"Davis County",path:"/locations/utah/davis-county"},{name:"Salt Lake County",path:"/locations/utah/salt-lake-county"},{name:"Tooele County",path:"/locations/utah/tooele-county"},{name:"Utah County",path:"/locations/utah/utah-county"},{name:"Weber County",path:"/locations/utah/weber-county"},{name:"Cache County",path:"/locations/utah/cache-county"},{name:"Washington County",path:"/locations/utah/washington-county"}],davisCountyCities:[{name:"Bountiful",path:"/locations/utah/davis-county/bountiful"},{name:"Layton",path:"/locations/utah/davis-county/layton"},{name:"Clearfield",path:"/locations/utah/davis-county/clearfield"},{name:"Kaysville",path:"/locations/utah/davis-county/kaysville"},{name:"Syracuse",path:"/locations/utah/davis-county/syracuse"},{name:"Farmington",path:"/locations/utah/davis-county/farmington"},{name:"Centerville",path:"/locations/utah/davis-county/centerville"},{name:"North Salt Lake",path:"/locations/utah/davis-county/north-salt-lake"},{name:"West Point",path:"/locations/utah/davis-county/west-point"},{name:"Woods Cross",path:"/locations/utah/davis-county/woods-cross"},{name:"Clinton",path:"/locations/utah/davis-county/clinton"}],saltLakeCountyCities:[{name:"Salt Lake City",path:"/locations/utah/salt-lake-county/salt-lake-city"},{name:"Sandy",path:"/locations/utah/salt-lake-county/sandy"},{name:"Draper",path:"/locations/utah/salt-lake-county/draper"},{name:"South Jordan",path:"/locations/utah/salt-lake-county/south-jordan"},{name:"West Jordan",path:"/locations/utah/salt-lake-county/west-jordan"},{name:"Riverton",path:"/locations/utah/salt-lake-county/riverton"},{name:"Herriman",path:"/locations/utah/salt-lake-county/herriman"},{name:"Bluffdale",path:"/locations/utah/salt-lake-county/bluffdale"},{name:"Cottonwood Heights",path:"/locations/utah/salt-lake-county/cottonwood-heights"},{name:"Holladay",path:"/locations/utah/salt-lake-county/holladay"},{name:"Millcreek",path:"/locations/utah/salt-lake-county/millcreek"},{name:"South Salt Lake",path:"/locations/utah/salt-lake-county/south-salt-lake"},{name:"West Valley City",path:"/locations/utah/salt-lake-county/west-valley-city"},{name:"Taylorsville",path:"/locations/utah/salt-lake-county/taylorsville"},{name:"Murray",path:"/locations/utah/salt-lake-county/murray"}],tooeleCountyCities:[{name:"Tooele",path:"/locations/utah/tooele-county/tooele"},{name:"Grantsville",path:"/locations/utah/tooele-county/grantsville"}],utahCountyCities:[{name:"Provo",path:"/locations/utah/utah-county/provo"},{name:"Orem",path:"/locations/utah/utah-county/orem"},{name:"Lehi",path:"/locations/utah/utah-county/lehi"},{name:"American Fork",path:"/locations/utah/utah-county/american-fork"},{name:"Pleasant Grove",path:"/locations/utah/utah-county/pleasant-grove"},{name:"Spanish Fork",path:"/locations/utah/utah-county/spanish-fork"},{name:"Springville",path:"/locations/utah/utah-county/springville"},{name:"Eagle Mountain",path:"/locations/utah/utah-county/eagle-mountain"},{name:"Saratoga Springs",path:"/locations/utah/utah-county/saratoga-springs"},{name:"Highland",path:"/locations/utah/utah-county/highland"},{name:"Mapleton",path:"/locations/utah/utah-county/mapleton"},{name:"Payson",path:"/locations/utah/utah-county/payson"}],weberCountyCities:[{name:"North Ogden",path:"/locations/utah/weber-county/north-ogden"},{name:"West Haven",path:"/locations/utah/weber-county/west-haven"},{name:"South Ogden",path:"/locations/utah/weber-county/south-ogden"},{name:"Roy",path:"/locations/utah/weber-county/roy"}],legal:[{name:"Privacy Policy",path:"/privacy-policy"},{name:"Terms of Service",path:"/terms"},{name:"Licensing Information",path:"/licensing-information"}]},hs=({title:e,items:t,icon:n})=>r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[r.jsxs("div",{className:"flex items-center mb-4",children:[n&&r.jsx("div",{className:"mr-3 text-trident-purple",children:n}),r.jsx("h2",{className:"text-xl font-bold text-trident-dark",children:e})]}),r.jsx("ul",{className:"space-y-2",children:t.map(i=>r.jsx("li",{children:r.jsxs(te,{to:i.path,className:"flex items-center text-trident-gray hover:text-trident-purple transition-colors",children:[i.icon&&r.jsx("span",{className:"mr-2",children:i.icon}),i.name]})},i.path))})]}),yre=()=>r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative flex items-center pt-32 pb-16 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Site Map"}),r.jsx("p",{className:"text-xl text-trident-gray",children:"Navigate our complete directory of investigative services and coverage areas across Utah, Idaho, and Wyoming."})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsx(hs,{title:"Main Pages",items:us.main,icon:r.jsx(Ct,{className:"h-5 w-5"})}),r.jsx(hs,{title:"Investigation Services",items:us.services,icon:r.jsx(cd,{className:"h-5 w-5"})}),r.jsx(hs,{title:"Blog Posts",items:us.blog,icon:r.jsx(y_,{className:"h-5 w-5"})}),r.jsx(hs,{title:"Service Areas",items:us.locations,icon:r.jsx(Et,{className:"h-5 w-5"})}),r.jsx(hs,{title:"Utah Counties",items:us.utahCounties,icon:r.jsx(Et,{className:"h-5 w-5"})}),r.jsx(hs,{title:"Davis County Cities",items:us.davisCountyCities}),r.jsx(hs,{title:"Salt Lake County Cities",items:us.saltLakeCountyCities}),r.jsx(hs,{title:"Tooele County Cities",items:us.tooeleCountyCities}),r.jsx(hs,{title:"Utah County Cities",items:us.utahCountyCities}),r.jsx(hs,{title:"Weber County Cities",items:us.weberCountyCities}),r.jsx(hs,{title:"Legal Information",items:us.legal,icon:r.jsx(Be,{className:"h-5 w-5"})})]}),r.jsxs("div",{className:"mt-16 bg-white rounded-lg shadow-md p-8 text-center",children:[r.jsx("h2",{className:"text-2xl font-bold mb-4 text-trident-dark",children:"Our Coverage"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"3"}),r.jsx("div",{className:"text-trident-gray",children:"States Covered"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"7"}),r.jsx("div",{className:"text-trident-gray",children:"Utah Counties"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"40+"}),r.jsx("div",{className:"text-trident-gray",children:"Cities Served"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"6"}),r.jsx("div",{className:"text-trident-gray",children:"Service Categories"})]})]})]})]})}),r.jsx(Qe,{})]}),bre=()=>{const e=[{id:1,name:"Sarah M.",location:"Salt Lake City, UT",rating:5,date:"June 2025",review:"Trident Investigations provided exceptional service during a very difficult time. Their professionalism and attention to detail gave me the peace of mind I needed. Highly recommend their services."},{id:2,name:"Michael R.",location:"Provo, UT",rating:5,date:"May 2025",review:"Outstanding work on our corporate investigation. The team was thorough, discreet, and delivered results that exceeded our expectations. Professional service from start to finish."},{id:3,name:"Jennifer L.",location:"Ogden, UT",rating:5,date:"April 2025",review:"I was impressed by the speed and accuracy of their background investigation services. The report was comprehensive and delivered exactly when promised. Excellent communication throughout the process."},{id:4,name:"David K.",location:"West Jordan, UT",rating:5,date:"March 2025",review:"Trident Investigations helped us with a complex insurance fraud case. Their expertise and professional approach made all the difference. I would definitely work with them again."},{id:5,name:"Lisa H.",location:"Layton, UT",rating:5,date:"February 2025",review:"The team at Trident was compassionate and understanding during our family law investigation. They handled everything with the utmost discretion and professionalism."},{id:6,name:"Robert T.",location:"Sandy, UT",rating:5,date:"January 2025",review:"Excellent surveillance work that provided the evidence we needed for our legal case. The investigators were professional, thorough, and maintained complete confidentiality throughout."}],t=i=>Array.from({length:5},(s,a)=>r.jsx(fa,{className:`w-5 h-5 ${a<i?"text-yellow-400 fill-current":"text-gray-300"}`},a)),n=e.reduce((i,s)=>i+s.rating,0)/e.length;return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("main",{className:"flex-grow",children:[r.jsx("section",{className:"bg-gradient-to-br from-trident-navy to-trident-purple text-white py-20",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Client Reviews"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-white/90",children:"See what our clients say about our professional investigation services"}),r.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-lg p-6 inline-block",children:[r.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[t(5),r.jsx("span",{className:"text-2xl font-bold ml-3",children:n.toFixed(1)})]}),r.jsxs("p",{className:"text-white/80",children:["Based on ",e.length," verified reviews"]})]})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(i=>r.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 relative",children:[r.jsx(HK,{className:"absolute top-4 right-4 w-8 h-8 text-trident-purple/20"}),r.jsx("div",{className:"flex items-center gap-1 mb-4",children:t(i.rating)}),r.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',i.review,'"']}),r.jsxs("div",{className:"border-t pt-4",children:[r.jsx("div",{className:"font-semibold text-trident-navy",children:i.name}),r.jsxs("div",{className:"text-sm text-gray-600",children:[i.location," β’ ",i.date]})]})]},i.id))})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom text-center",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-navy mb-6",children:"Ready to Experience Professional Investigation Services?"}),r.jsx("p",{className:"text-xl text-gray-700 mb-8 max-w-2xl mx-auto",children:"Join our satisfied clients and get the professional investigation services you need with complete discretion and expertise."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx("a",{href:"/contact",className:"btn-primary text-center",children:"Get Free Consultation"}),r.jsx("a",{href:"/services",className:"btn-secondary text-center",children:"View Our Services"})]})]})}),r.jsx("section",{className:"py-12 bg-gray-100",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid md:grid-cols-3 gap-8 text-center",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"100%"}),r.jsx("div",{className:"text-gray-700",children:"Confidentiality Guaranteed"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"Licensed"}),r.jsx("div",{className:"text-gray-700",children:"Utah State Licensed Investigators"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-3xl font-bold text-trident-purple mb-2",children:"24/7"}),r.jsx("div",{className:"text-gray-700",children:"Professional Case Support"})]})]})})})]}),r.jsx(Qe,{})]})},wre=()=>(j.useEffect(()=>{typeof window<"u"&&window.gtag&&window.gtag("event","conversion",{send_to:"AW-CONVERSION_ID/CONVERSION_LABEL",value:1,currency:"USD"})},[]),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("main",{className:"flex-grow",children:[r.jsx("section",{className:"bg-gradient-to-br from-trident-navy to-trident-purple text-white py-20",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx(we,{className:"w-20 h-20 text-green-400 mx-auto mb-6"}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Thank You!"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-white/90",children:"Your message has been received successfully"})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-navy mb-8 text-center",children:"What Happens Next?"}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-trident-purple/10 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold text-trident-purple",children:"1"})}),r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-navy",children:"Review Your Case"}),r.jsx("p",{className:"text-gray-700",children:"Our experienced investigators will carefully review your case details and determine the best approach for your situation."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-trident-purple/10 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold text-trident-purple",children:"2"})}),r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-navy",children:"Initial Consultation"}),r.jsx("p",{className:"text-gray-700",children:"We'll contact you within 24 hours to schedule a confidential consultation to discuss your needs and our services."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-trident-purple/10 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4",children:r.jsx("span",{className:"text-2xl font-bold text-trident-purple",children:"3"})}),r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-navy",children:"Begin Investigation"}),r.jsx("p",{className:"text-gray-700",children:"Once you approve our proposal, we'll begin your investigation with complete discretion and professionalism."})]})]}),r.jsxs("div",{className:"bg-gray-50 rounded-lg p-8",children:[r.jsx("h3",{className:"text-2xl font-bold text-trident-navy mb-6 text-center",children:"Need Immediate Assistance?"}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"text-center",children:[r.jsx(fn,{className:"w-8 h-8 text-trident-purple mx-auto mb-3"}),r.jsx("h4",{className:"font-semibold text-trident-navy mb-2",children:"Call Us"}),r.jsx("a",{href:"tel:+1-801-415-1663",className:"text-trident-purple hover:text-trident-navy font-medium",children:"(801) 415-1663"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(xr,{className:"w-8 h-8 text-trident-purple mx-auto mb-3"}),r.jsx("h4",{className:"font-semibold text-trident-navy mb-2",children:"Email Us"}),r.jsx("a",{href:"mailto:info@tridentinvestigations.com",className:"text-trident-purple hover:text-trident-navy font-medium",children:"info@tridentinvestigations.com"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Sn,{className:"w-8 h-8 text-trident-purple mx-auto mb-3"}),r.jsx("h4",{className:"font-semibold text-trident-navy mb-2",children:"Response Time"}),r.jsx("span",{className:"text-gray-700",children:"Within 24 Hours"})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-navy mb-8",children:"While You Wait"}),r.jsx("p",{className:"text-xl text-gray-700 mb-8",children:"Learn more about our services and expertise"}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[r.jsxs("a",{href:"/services",className:"bg-white rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("h3",{className:"text-xl font-semibold text-trident-navy mb-3",children:"Our Services"}),r.jsx("p",{className:"text-gray-700",children:"Explore our comprehensive range of professional investigation services."})]}),r.jsxs("a",{href:"/about",className:"bg-white rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("h3",{className:"text-xl font-semibold text-trident-navy mb-3",children:"About Us"}),r.jsx("p",{className:"text-gray-700",children:"Learn about our experienced team and professional expertise."})]}),r.jsxs("a",{href:"/blog",className:"bg-white rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow",children:[r.jsx("h3",{className:"text-xl font-semibold text-trident-navy mb-3",children:"Investigation Insights"}),r.jsx("p",{className:"text-gray-700",children:"Read expert insights and tips from our professional investigators."})]})]})]})})}),r.jsx("section",{className:"py-12 bg-trident-navy text-white",children:r.jsxs("div",{className:"container-custom text-center",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Complete Confidentiality Guaranteed"}),r.jsx("p",{className:"text-white/90 max-w-2xl mx-auto",children:"Your privacy is our top priority. All information shared with us is kept strictly confidential and protected by professional investigator-client privilege."})]})})]}),r.jsx(Qe,{})]})),jre=()=>{wn({title:"Child Custody Investigation Utah | Parental Fitness Documentation | Trident PI",description:"Professional child custody investigation services in Utah. Parental fitness evaluation, environment assessment, best interests documentation. Licensed family investigators.",keywords:"child custody investigation Utah, parental fitness evaluation, environment assessment, best interests documentation, family court evidence, Utah custody law, child welfare investigation"});const e=[{icon:r.jsx(Gi,{className:"h-8 w-8 text-trident-purple"}),title:"Parental Fitness Evaluation",description:"Daily routine and child care capability documentation, parenting skill observation and assessment, consistency in child care and supervision evaluation."},{icon:r.jsx(j_,{className:"h-8 w-8 text-trident-orange"}),title:"Living Environment Assessment",description:"Home safety and cleanliness evaluation, neighborhood safety and school district quality assessment, space adequacy and child accommodation evaluation."},{icon:r.jsx(Sn,{className:"h-8 w-8 text-trident-purple"}),title:"Daily Care & Routine Documentation",description:"School attendance and academic support patterns, medical care and health maintenance records, meal planning and nutritional care assessment."},{icon:r.jsx(Be,{className:"h-8 w-8 text-trident-orange"}),title:"Character & Lifestyle Investigation",description:"Substance use assessment and documentation, criminal background and safety concern investigation, social environment and relationship assessment."},{icon:r.jsx(xl,{className:"h-8 w-8 text-trident-purple"}),title:"Child Welfare & Safety Assessment",description:"Physical safety and supervision adequacy, emotional wellbeing and psychological safety, protection from domestic violence or abuse."},{icon:r.jsx(Ct,{className:"h-8 w-8 text-trident-orange"}),title:"Modification & Enforcement Support",description:"Significant change in circumstances documentation, violation of custody order evidence collection, relocation impact assessment."}],t=["Past conduct and demonstrated moral standards","Ability to provide love, affection, and guidance","Continuation of relationships with extended family","Financial condition and ability to provide necessities","Character and emotional stability assessment","Parenting skills and child-rearing experience"],n=["Physical, mental, and emotional needs of the child","Capability of each parent to meet child's needs","Child's preference (when age and maturity appropriate)","Benefit of continuing existing relationships","Evidence of domestic violence or child abuse","Moral fitness and conduct of parents"],i=["Detailed written reports with professional observations","Photographic documentation of living environments","Video evidence of parenting interactions (when legally obtained)","Background investigation reports and documentation","Character reference interviews and statements","Professional assessment of child welfare factors"],s=["Initial custody determination support","Custody modification requests","Relocation and move-away cases","Enforcement of existing custody orders","Emergency custody situations","Grandparent rights and third-party custody","Adoption and guardianship proceedings"],a=[{title:"Child-Centered Focus",description:"All investigations prioritize child welfare and safety while gathering objective evidence for court consideration."},{title:"Discrete Observation",description:"We conduct investigations with complete discretion to protect children from awareness of custody disputes when possible."},{title:"Comprehensive Documentation",description:"Professional reports include detailed observations, photographic evidence, and expert assessment of child welfare factors."},{title:"Court Preparation",description:"All evidence is prepared for court presentation with professional testimony available when required."}];return r.jsxs("div",{className:"min-h-screen bg-gray-50",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative bg-gradient-to-r from-trident-black to-trident-blue pt-32 pb-16 text-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsxs("div",{className:"flex justify-center gap-6 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur-sm rounded-lg px-4 py-2 shadow-sm",children:[r.jsx(Be,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{className:"text-sm font-medium text-trident-white",children:"Licensed"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur-sm rounded-lg px-4 py-2 shadow-sm",children:[r.jsx(Zn,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{className:"text-sm font-medium text-trident-white",children:"Family Court Experience"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur-sm rounded-lg px-4 py-2 shadow-sm",children:[r.jsx(xl,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{className:"text-sm font-medium text-trident-white",children:"Child-Centered"})]})]}),r.jsx("div",{className:"text-center mb-8",children:r.jsxs("div",{className:"inline-flex items-center gap-2 bg-trident-gold/20 text-trident-gold px-4 py-2 rounded-full text-sm font-medium mb-4",children:[r.jsx(fn,{className:"h-4 w-4"}),"Protecting Children's Best Interests"]})}),r.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-trident-white mb-6",children:"Professional Child Custody Investigation Services in Utah"}),r.jsx("p",{className:"text-xl text-trident-white/80 mb-8 leading-relaxed",children:"Protecting your children's best interests during custody proceedings? Our professional child custody investigation services help document the evidence Utah courts need to make informed custody decisions. We focus on child safety, parental fitness, and environmental factors that impact your children's wellbeing."}),r.jsx("div",{className:"text-lg text-trident-gold font-semibold mb-8",children:"Parental Fitness Assessment | Environment Evaluation | Best Interests Documentation"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx("a",{href:"#contact",className:"bg-trident-purple hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-colors duration-200 shadow-lg hover:shadow-xl",children:"Protect Your Children"}),r.jsx("a",{href:"tel:8012845105",className:"bg-trident-orange hover:bg-orange-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-colors duration-200 shadow-lg hover:shadow-xl",children:"Free Consultation"})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-black mb-6",children:"Utah Custody Law Focus"}),r.jsxs("p",{className:"text-lg text-trident-black leading-relaxed",children:["Utah courts prioritize the ",r.jsx("strong",{children:'"best interests of the child"'})," when making custody determinations. Our investigations provide the documented evidence courts need to assess parental fitness, living environments, and factors affecting child welfare and development."]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl font-bold text-trident-black mb-4",children:"Our Child Custody Investigation Services"})}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((o,l)=>r.jsxs("div",{className:"bg-trident-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-200",children:[r.jsx("div",{className:"mb-4",children:o.icon}),r.jsx("h3",{className:"text-xl font-semibold text-trident-black mb-3",children:o.title}),r.jsx("p",{className:"text-trident-black",children:o.description})]},l))})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-dark text-center mb-12",children:"Utah Custody Factors We Document"}),r.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-semibold text-trident-purple mb-6",children:"Primary Legal Considerations"}),r.jsx("ul",{className:"space-y-3",children:t.map((o,l)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(Zn,{className:"h-5 w-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-text-secondary",children:o})]},l))})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-semibold text-trident-orange mb-6",children:"Best Interests Documentation"}),r.jsx("ul",{className:"space-y-3",children:n.map((o,l)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(xl,{className:"h-5 w-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-text-secondary",children:o})]},l))})]})]})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("div",{className:"text-center mb-12",children:r.jsx("h2",{className:"text-3xl font-bold text-trident-dark mb-4",children:"Our Professional Approach"})}),r.jsx("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:a.map((o,l)=>r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm",children:[r.jsx("h3",{className:"text-xl font-semibold text-trident-dark mb-3",children:o.title}),r.jsx("p",{className:"text-text-secondary",children:o.description})]},l))})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-dark text-center mb-12",children:"Evidence We Provide"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:i.map((o,l)=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Ct,{className:"h-5 w-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-text-secondary",children:o})]},l))})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-dark text-center mb-12",children:"Common Investigation Scenarios"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:s.map((o,l)=>r.jsxs("div",{className:"flex items-center gap-3 bg-white rounded-lg p-4 shadow-sm",children:[r.jsx(Be,{className:"h-5 w-5 text-trident-orange flex-shrink-0"}),r.jsx("span",{className:"text-text-secondary",children:o})]},l))})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-dark mb-6",children:"Utah Family Court Experience"}),r.jsx("p",{className:"text-lg text-text-secondary leading-relaxed",children:"Our investigators have extensive experience with Utah family court procedures and understand the evidentiary standards required for custody proceedings. We ensure all documentation meets court requirements and supports your case effectively."})]})})}),r.jsx("section",{id:"contact",className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold text-trident-dark mb-4",children:"Confidential Family Consultation"}),r.jsx("p",{className:"text-lg text-text-secondary",children:"Child custody decisions impact your children's lives permanently. Ensure the court has complete, professional documentation of all factors affecting your children's best interests."})]}),r.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:r.jsxs("form",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Name *"}),r.jsx("input",{type:"text",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Phone *"}),r.jsx("input",{type:"tel",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",required:!0})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Email *"}),r.jsx("input",{type:"email",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",required:!0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Custody Situation"}),r.jsxs("select",{className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",children:[r.jsx("option",{value:"",children:"Select situation"}),r.jsx("option",{value:"initial",children:"Initial custody determination"}),r.jsx("option",{value:"modification",children:"Custody modification"}),r.jsx("option",{value:"enforcement",children:"Enforcement issues"}),r.jsx("option",{value:"relocation",children:"Relocation case"}),r.jsx("option",{value:"emergency",children:"Emergency custody"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Children's Ages"}),r.jsx("input",{type:"text",placeholder:"e.g., 5, 8, 12",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent"})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Timeline"}),r.jsxs("select",{className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",children:[r.jsx("option",{value:"",children:"When do you need this completed?"}),r.jsx("option",{value:"immediate",children:"Immediate/Emergency"}),r.jsx("option",{value:"1-2weeks",children:"1-2 weeks"}),r.jsx("option",{value:"1month",children:"Within 1 month"}),r.jsx("option",{value:"flexible",children:"Flexible timeline"})]})]}),r.jsxs("div",{className:"md:col-span-2",children:[r.jsx("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Additional Details"}),r.jsx("textarea",{rows:4,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-trident-purple focus:border-transparent",placeholder:"Please describe your specific concerns or investigation needs..."})]}),r.jsxs("div",{className:"md:col-span-2 text-center",children:[r.jsx("button",{type:"submit",className:"bg-trident-purple hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-colors duration-200 shadow-lg hover:shadow-xl",children:"Request Confidential Consultation"}),r.jsx("p",{className:"text-sm text-text-supporting mt-4",children:"All communications are confidential. We prioritize child privacy and family discretion."})]})]})})]})})}),r.jsx("section",{className:"py-16 bg-trident-black text-white",children:r.jsxs("div",{className:"container-custom text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Protecting Your Children's Future"}),r.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-3xl mx-auto",children:"Child custody decisions impact your children's lives permanently. Ensure the court has complete, professional documentation of all factors affecting your children's best interests."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsxs("a",{href:"tel:3852758220",className:"bg-trident-purple hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-colors duration-200 shadow-lg hover:shadow-xl inline-flex items-center justify-center gap-2",children:[r.jsx(fn,{className:"h-5 w-5"}),"Call (385) 275-8220"]}),r.jsx("a",{href:"#contact",className:"bg-trident-orange hover:bg-orange-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-colors duration-200 shadow-lg hover:shadow-xl",children:"Schedule Consultation"})]})]})}),r.jsx(Wb,{}),r.jsx(Qe,{})]})},VP="trident_do_not_share",Nre=()=>{const[e,t]=j.useState(!1);j.useEffect(()=>{try{t(localStorage.getItem(VP)==="1")}catch{}},[]);function n(i){t(i);try{localStorage.setItem(VP,i?"1":"0")}catch{}}return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx("main",{className:"bg-background min-h-screen",children:r.jsx("div",{className:"container-custom py-16",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h1",{className:"text-4xl font-bold text-trident-blue mb-8",children:"Privacy Choices"}),r.jsxs("div",{className:"bg-card p-8 rounded-lg shadow-sm",children:[r.jsx("p",{className:"text-muted-foreground mb-6",children:'Opt out of "sale"/"share" for targeted advertising.'}),r.jsx("div",{className:"mb-6",children:r.jsxs("label",{className:"flex items-center space-x-3 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:e,onChange:i=>n(i.target.checked),className:"h-4 w-4 text-trident-orange focus:ring-trident-orange border-gray-300 rounded"}),r.jsx("span",{className:"text-lg font-medium text-foreground",children:"Do Not Sell or Share My Personal Information"})]})}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Your choice applies to this browser."})]})]})})}),r.jsx(Qe,{})]})},W=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:je("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));W.displayName="Card";const Z=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:je("flex flex-col space-y-1.5 p-6",e),...t}));Z.displayName="CardHeader";const re=j.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:je("text-2xl font-semibold leading-none tracking-tight",e),...t}));re.displayName="CardTitle";const wt=j.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:je("text-sm text-muted-foreground",e),...t}));wt.displayName="CardDescription";const H=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:je("p-6 pt-0",e),...t}));H.displayName="CardContent";const Sre=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:je("flex items-center p-6 pt-0",e),...t}));Sre.displayName="CardFooter";const he=j.forwardRef(({className:e,type:t,...n},i)=>r.jsx("input",{type:t,className:je("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i,...n}));he.displayName="Input";var kre="Label",DL=j.forwardRef((e,t)=>r.jsx(ze.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));DL.displayName=kre;var ML=DL;const Cre=kg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fe=j.forwardRef(({className:e,...t},n)=>r.jsx(ML,{ref:n,className:je(Cre(),e),...t}));fe.displayName=ML.displayName;function Ty(e,[t,n]){return Math.min(n,Math.max(t,e))}var _re=j.createContext(void 0);function Qb(e){const t=j.useContext(_re);return e||t||"ltr"}var t1=0;function J_(){j.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??GP()),document.body.insertAdjacentElement("beforeend",e[1]??GP()),t1++,()=>{t1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),t1--}},[])}function GP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var n1="focusScope.autoFocusOnMount",r1="focusScope.autoFocusOnUnmount",YP={bubbles:!1,cancelable:!0},Tre="FocusScope",Jb=j.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...o}=e,[l,c]=j.useState(null),d=si(s),u=si(a),h=j.useRef(null),m=ut(t,p=>c(p)),f=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(i){let p=function(b){if(f.paused||!l)return;const w=b.target;l.contains(w)?h.current=w:Lo(h.current,{select:!0})},v=function(b){if(f.paused||!l)return;const w=b.relatedTarget;w!==null&&(l.contains(w)||Lo(h.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const N of b)N.removedNodes.length>0&&Lo(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const x=new MutationObserver(y);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[i,l,f.paused]),j.useEffect(()=>{if(l){XP.add(f);const p=document.activeElement;if(!l.contains(p)){const y=new CustomEvent(n1,YP);l.addEventListener(n1,d),l.dispatchEvent(y),y.defaultPrevented||(Pre(Dre(RL(l)),{select:!0}),document.activeElement===p&&Lo(l))}return()=>{l.removeEventListener(n1,d),setTimeout(()=>{const y=new CustomEvent(r1,YP);l.addEventListener(r1,u),l.dispatchEvent(y),y.defaultPrevented||Lo(p??document.body,{select:!0}),l.removeEventListener(r1,u),XP.remove(f)},0)}}},[l,d,u,f]);const g=j.useCallback(p=>{if(!n&&!i||f.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const x=p.currentTarget,[b,w]=Ere(x);b&&w?!p.shiftKey&&y===w?(p.preventDefault(),n&&Lo(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),n&&Lo(w,{select:!0})):y===x&&p.preventDefault()}},[n,i,f.paused]);return r.jsx(ze.div,{tabIndex:-1,...o,ref:m,onKeyDown:g})});Jb.displayName=Tre;function Pre(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Lo(i,{select:t}),document.activeElement!==n)return}function Ere(e){const t=RL(e),n=KP(t,e),i=KP(t.reverse(),e);return[n,i]}function RL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function KP(e,t){for(const n of e)if(!Are(n,{upTo:t}))return n}function Are(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ore(e){return e instanceof HTMLInputElement&&"select"in e}function Lo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ore(e)&&t&&e.select()}}var XP=Ire();function Ire(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=QP(e,t),e.unshift(t)},remove(t){var n;e=QP(e,t),(n=e[0])==null||n.resume()}}}function QP(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function Dre(e){return e.filter(t=>t.tagName!=="A")}function Z_(e){const t=j.useRef({value:e,previous:e});return j.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Mre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ed=new WeakMap,Lv=new WeakMap,Uv={},i1=0,$L=function(e){return e&&(e.host||$L(e.parentNode))},Rre=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=$L(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$re=function(e,t,n,i){var s=Rre(t,Array.isArray(e)?e:[e]);Uv[n]||(Uv[n]=new WeakMap);var a=Uv[n],o=[],l=new Set,c=new Set(s),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};s.forEach(d);var u=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(l.has(m))u(m);else try{var f=m.getAttribute(i),g=f!==null&&f!=="false",p=(Ed.get(m)||0)+1,v=(a.get(m)||0)+1;Ed.set(m,p),a.set(m,v),o.push(m),p===1&&g&&Lv.set(m,!0),v===1&&m.setAttribute(n,"true"),g||m.setAttribute(i,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return u(t),l.clear(),i1++,function(){o.forEach(function(h){var m=Ed.get(h)-1,f=a.get(h)-1;Ed.set(h,m),a.set(h,f),m||(Lv.has(h)||h.removeAttribute(i),Lv.delete(h)),f||h.removeAttribute(n)}),i1--,i1||(Ed=new WeakMap,Ed=new WeakMap,Lv=new WeakMap,Uv={})}},e5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=Mre(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),$re(i,s,n,"aria-hidden")):function(){return null}},ia=function(){return ia=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ia.apply(this,arguments)};function LL(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function Lre(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var Ox="right-scroll-bar-position",Ix="width-before-scroll-bar",Ure="with-scroll-bars-hidden",Fre="--removed-body-scroll-bar-size";function s1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bre(e,t){var n=j.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var Wre=typeof window<"u"?j.useLayoutEffect:j.useEffect,JP=new WeakMap;function zre(e,t){var n=Bre(null,function(i){return e.forEach(function(s){return s1(s,i)})});return Wre(function(){var i=JP.get(n);if(i){var s=new Set(i),a=new Set(e),o=n.current;s.forEach(function(l){a.has(l)||s1(l,null)}),a.forEach(function(l){s.has(l)||s1(l,o)})}JP.set(n,e)},[e]),n}function qre(e){return e}function Hre(e,t){t===void 0&&(t=qre);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,i);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(i=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){i=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(a),o=n}var c=function(){var u=o;o=[],u.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){o.push(u),d()},filter:function(u){return o=o.filter(u),n}}}};return s}function Vre(e){e===void 0&&(e={});var t=Hre(null);return t.options=ia({async:!0,ssr:!1},e),t}var UL=function(e){var t=e.sideCar,n=LL(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return j.createElement(i,ia({},n))};UL.isSideCarExport=!0;function Gre(e,t){return e.useMedium(t),UL}var FL=Vre(),a1=function(){},Zb=j.forwardRef(function(e,t){var n=j.useRef(null),i=j.useState({onScrollCapture:a1,onWheelCapture:a1,onTouchMoveCapture:a1}),s=i[0],a=i[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,m=e.sideCar,f=e.noIsolation,g=e.inert,p=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,x=e.gapMode,b=LL(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=m,N=zre([n,t]),S=ia(ia({},b),s);return j.createElement(j.Fragment,null,u&&j.createElement(w,{sideCar:FL,removeScrollBar:d,shards:h,noIsolation:f,inert:g,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:x}),o?j.cloneElement(j.Children.only(l),ia(ia({},S),{ref:N})):j.createElement(y,ia({},S,{className:c,ref:N}),l))});Zb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zb.classNames={fullWidth:Ix,zeroRight:Ox};var Yre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yre();return t&&e.setAttribute("nonce",t),e}function Xre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kre())&&(Xre(t,n),Qre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zre=function(){var e=Jre();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},BL=function(){var e=Zre(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},eie={left:0,top:0,right:0,gap:0},o1=function(e){return parseInt(e||"",10)||0},tie=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[o1(n),o1(i),o1(s)]},nie=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eie;var t=tie(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},rie=BL(),xu="data-scroll-locked",iie=function(e,t,n,i){var s=e.left,a=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Ure,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(l,"px ").concat(i,`;
}
body[`).concat(xu,`] {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(a,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(i,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(Ox,` {
right: `).concat(l,"px ").concat(i,`;
}
.`).concat(Ix,` {
margin-right: `).concat(l,"px ").concat(i,`;
}
.`).concat(Ox," .").concat(Ox,` {
right: 0 `).concat(i,`;
}
.`).concat(Ix," .").concat(Ix,` {
margin-right: 0 `).concat(i,`;
}
body[`).concat(xu,`] {
`).concat(Fre,": ").concat(l,`px;
}
`)},ZP=function(){var e=parseInt(document.body.getAttribute(xu)||"0",10);return isFinite(e)?e:0},sie=function(){j.useEffect(function(){return document.body.setAttribute(xu,(ZP()+1).toString()),function(){var e=ZP()-1;e<=0?document.body.removeAttribute(xu):document.body.setAttribute(xu,e.toString())}},[])},aie=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;sie();var a=j.useMemo(function(){return nie(s)},[s]);return j.createElement(rie,{styles:iie(a,!t,s,n?"":"!important")})},W2=!1;if(typeof window<"u")try{var Fv=Object.defineProperty({},"passive",{get:function(){return W2=!0,!0}});window.addEventListener("test",Fv,Fv),window.removeEventListener("test",Fv,Fv)}catch{W2=!1}var Ad=W2?{passive:!1}:!1,oie=function(e){return e.tagName==="TEXTAREA"},WL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oie(e)&&n[t]==="visible")},lie=function(e){return WL(e,"overflowY")},cie=function(e){return WL(e,"overflowX")},eE=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=zL(e,i);if(s){var a=qL(e,i),o=a[1],l=a[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},die=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},uie=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},zL=function(e,t){return e==="v"?lie(t):cie(t)},qL=function(e,t){return e==="v"?die(t):uie(t)},hie=function(e,t){return e==="h"&&t==="rtl"?-1:1},mie=function(e,t,n,i,s){var a=hie(e,window.getComputedStyle(t).direction),o=a*i,l=n.target,c=t.contains(l),d=!1,u=o>0,h=0,m=0;do{var f=qL(e,l),g=f[0],p=f[1],v=f[2],y=p-v-a*g;(g||y)&&zL(e,l)&&(h+=y,m+=g),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(h)<1||!s)||!u&&(Math.abs(m)<1||!s))&&(d=!0),d},Bv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tE=function(e){return[e.deltaX,e.deltaY]},nE=function(e){return e&&"current"in e?e.current:e},fie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pie=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},gie=0,Od=[];function vie(e){var t=j.useRef([]),n=j.useRef([0,0]),i=j.useRef(),s=j.useState(gie++)[0],a=j.useState(BL)[0],o=j.useRef(e);j.useEffect(function(){o.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Lre([e.lockRef.current],(e.shards||[]).map(nE),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=j.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Bv(p),x=n.current,b="deltaX"in p?p.deltaX:x[0]-y[0],w="deltaY"in p?p.deltaY:x[1]-y[1],N,S=p.target,k=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in p&&k==="h"&&S.type==="range")return!1;var _=eE(k,S);if(!_)return!0;if(_?N=k:(N=k==="v"?"h":"v",_=eE(k,S)),!_)return!1;if(!i.current&&"changedTouches"in p&&(b||w)&&(i.current=N),!N)return!0;var D=i.current||N;return mie(D,v,p,D==="h"?b:w,!0)},[]),c=j.useCallback(function(p){var v=p;if(!(!Od.length||Od[Od.length-1]!==a)){var y="deltaY"in v?tE(v):Bv(v),x=t.current.filter(function(N){return N.name===v.type&&(N.target===v.target||v.target===N.shadowParent)&&fie(N.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var b=(o.current.shards||[]).map(nE).filter(Boolean).filter(function(N){return N.contains(v.target)}),w=b.length>0?l(v,b[0]):!o.current.noIsolation;w&&v.cancelable&&v.preventDefault()}}},[]),d=j.useCallback(function(p,v,y,x){var b={name:p,delta:v,target:y,should:x,shadowParent:xie(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),u=j.useCallback(function(p){n.current=Bv(p),i.current=void 0},[]),h=j.useCallback(function(p){d(p.type,tE(p),p.target,l(p,e.lockRef.current))},[]),m=j.useCallback(function(p){d(p.type,Bv(p),p.target,l(p,e.lockRef.current))},[]);j.useEffect(function(){return Od.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Ad),document.addEventListener("touchmove",c,Ad),document.addEventListener("touchstart",u,Ad),function(){Od=Od.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,Ad),document.removeEventListener("touchmove",c,Ad),document.removeEventListener("touchstart",u,Ad)}},[]);var f=e.removeScrollBar,g=e.inert;return j.createElement(j.Fragment,null,g?j.createElement(a,{styles:pie(s)}):null,f?j.createElement(aie,{gapMode:e.gapMode}):null)}function xie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yie=Gre(FL,vie);var ew=j.forwardRef(function(e,t){return j.createElement(Zb,ia({},e,{ref:t,sideCar:yie}))});ew.classNames=Zb.classNames;var bie=[" ","Enter","ArrowUp","ArrowDown"],wie=[" ","Enter"],Ag="Select",[tw,nw,jie]=_b(Ag),[Gh,xUe]=Ca(Ag,[jie,Vh]),rw=Vh(),[Nie,Hl]=Gh(Ag),[Sie,kie]=Gh(Ag),HL=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:l,onValueChange:c,dir:d,name:u,autoComplete:h,disabled:m,required:f,form:g}=e,p=rw(t),[v,y]=j.useState(null),[x,b]=j.useState(null),[w,N]=j.useState(!1),S=Qb(d),[k=!1,_]=Rs({prop:i,defaultProp:s,onChange:a}),[D,A]=Rs({prop:o,defaultProp:l,onChange:c}),E=j.useRef(null),T=v?g||!!v.closest("form"):!0,[M,C]=j.useState(new Set),P=Array.from(M).map(I=>I.props.value).join(";");return r.jsx(G_,{...p,children:r.jsxs(Nie,{required:f,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:N,contentId:Is(),value:D,onValueChange:A,open:k,onOpenChange:_,dir:S,triggerPointerDownPosRef:E,disabled:m,children:[r.jsx(tw.Provider,{scope:t,children:r.jsx(Sie,{scope:e.__scopeSelect,onNativeOptionAdd:j.useCallback(I=>{C(R=>new Set(R).add(I))},[]),onNativeOptionRemove:j.useCallback(I=>{C(R=>{const O=new Set(R);return O.delete(I),O})},[]),children:n})}),T?r.jsxs(gU,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:h,value:D,onChange:I=>A(I.target.value),disabled:m,form:g,children:[D===void 0?r.jsx("option",{value:""}):null,Array.from(M)]},P):null]})})};HL.displayName=Ag;var VL="SelectTrigger",GL=j.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...s}=e,a=rw(n),o=Hl(VL,n),l=o.disabled||i,c=ut(t,o.onTriggerChange),d=nw(n),u=j.useRef("touch"),[h,m,f]=vU(p=>{const v=d().filter(b=>!b.disabled),y=v.find(b=>b.value===o.value),x=xU(v,p,y);x!==void 0&&o.onValueChange(x.value)}),g=p=>{l||(o.onOpenChange(!0),f()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return r.jsx(Vb,{asChild:!0,...a,children:r.jsx(ze.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":pU(o.value)?"":void 0,...s,ref:c,onClick:Ee(s.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&g(p)}),onPointerDown:Ee(s.onPointerDown,p=>{u.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(g(p),p.preventDefault())}),onKeyDown:Ee(s.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(v&&p.key===" ")&&bie.includes(p.key)&&(g(),p.preventDefault())})})})});GL.displayName=VL;var YL="SelectValue",KL=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,children:a,placeholder:o="",...l}=e,c=Hl(YL,n),{onValueNodeHasChildrenChange:d}=c,u=a!==void 0,h=ut(t,c.onValueNodeChange);return cr(()=>{d(u)},[d,u]),r.jsx(ze.span,{...l,ref:h,style:{pointerEvents:"none"},children:pU(c.value)?r.jsx(r.Fragment,{children:o}):a})});KL.displayName=YL;var Cie="SelectIcon",XL=j.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...s}=e;return r.jsx(ze.span,{"aria-hidden":!0,...s,ref:t,children:i||"βΌ"})});XL.displayName=Cie;var _ie="SelectPortal",QL=e=>r.jsx(Ng,{asChild:!0,...e});QL.displayName=_ie;var Gc="SelectContent",JL=j.forwardRef((e,t)=>{const n=Hl(Gc,e.__scopeSelect),[i,s]=j.useState();if(cr(()=>{s(new DocumentFragment)},[]),!n.open){const a=i;return a?ld.createPortal(r.jsx(ZL,{scope:e.__scopeSelect,children:r.jsx(tw.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),a):null}return r.jsx(eU,{...e,ref:t})});JL.displayName=Gc;var ps=10,[ZL,Vl]=Gh(Gc),Tie="SelectContentImpl",eU=j.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:m,collisionPadding:f,sticky:g,hideWhenDetached:p,avoidCollisions:v,...y}=e,x=Hl(Gc,n),[b,w]=j.useState(null),[N,S]=j.useState(null),k=ut(t,de=>w(de)),[_,D]=j.useState(null),[A,E]=j.useState(null),T=nw(n),[M,C]=j.useState(!1),P=j.useRef(!1);j.useEffect(()=>{if(b)return e5(b)},[b]),J_();const I=j.useCallback(de=>{const[Pe,...ie]=T().map(K=>K.ref.current),[me]=ie.slice(-1),ve=document.activeElement;for(const K of de)if(K===ve||(K==null||K.scrollIntoView({block:"nearest"}),K===Pe&&N&&(N.scrollTop=0),K===me&&N&&(N.scrollTop=N.scrollHeight),K==null||K.focus(),document.activeElement!==ve))return},[T,N]),R=j.useCallback(()=>I([_,b]),[I,_,b]);j.useEffect(()=>{M&&R()},[M,R]);const{onOpenChange:O,triggerPointerDownPosRef:$}=x;j.useEffect(()=>{if(b){let de={x:0,y:0};const Pe=me=>{var ve,K;de={x:Math.abs(Math.round(me.pageX)-(((ve=$.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(me.pageY)-(((K=$.current)==null?void 0:K.y)??0))}},ie=me=>{de.x<=10&&de.y<=10?me.preventDefault():b.contains(me.target)||O(!1),document.removeEventListener("pointermove",Pe),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",Pe),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Pe),document.removeEventListener("pointerup",ie,{capture:!0})}}},[b,O,$]),j.useEffect(()=>{const de=()=>O(!1);return window.addEventListener("blur",de),window.addEventListener("resize",de),()=>{window.removeEventListener("blur",de),window.removeEventListener("resize",de)}},[O]);const[q,z]=vU(de=>{const Pe=T().filter(ve=>!ve.disabled),ie=Pe.find(ve=>ve.ref.current===document.activeElement),me=xU(Pe,de,ie);me&&setTimeout(()=>me.ref.current.focus())}),J=j.useCallback((de,Pe,ie)=>{const me=!P.current&&!ie;(x.value!==void 0&&x.value===Pe||me)&&(D(de),me&&(P.current=!0))},[x.value]),ne=j.useCallback(()=>b==null?void 0:b.focus(),[b]),pe=j.useCallback((de,Pe,ie)=>{const me=!P.current&&!ie;(x.value!==void 0&&x.value===Pe||me)&&E(de)},[x.value]),xe=i==="popper"?z2:tU,De=xe===z2?{side:l,sideOffset:c,align:d,alignOffset:u,arrowPadding:h,collisionBoundary:m,collisionPadding:f,sticky:g,hideWhenDetached:p,avoidCollisions:v}:{};return r.jsx(ZL,{scope:n,content:b,viewport:N,onViewportChange:S,itemRefCallback:J,selectedItem:_,onItemLeave:ne,itemTextRefCallback:pe,focusSelectedItem:R,selectedItemText:A,position:i,isPositioned:M,searchRef:q,children:r.jsx(ew,{as:_l,allowPinchZoom:!0,children:r.jsx(Jb,{asChild:!0,trapped:x.open,onMountAutoFocus:de=>{de.preventDefault()},onUnmountAutoFocus:Ee(s,de=>{var Pe;(Pe=x.trigger)==null||Pe.focus({preventScroll:!0}),de.preventDefault()}),children:r.jsx(Mh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:de=>de.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:r.jsx(xe,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:de=>de.preventDefault(),...y,...De,onPlaced:()=>C(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Ee(y.onKeyDown,de=>{const Pe=de.ctrlKey||de.altKey||de.metaKey;if(de.key==="Tab"&&de.preventDefault(),!Pe&&de.key.length===1&&z(de.key),["ArrowUp","ArrowDown","Home","End"].includes(de.key)){let me=T().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(de.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(de.key)){const ve=de.target,K=me.indexOf(ve);me=me.slice(K+1)}setTimeout(()=>I(me)),de.preventDefault()}})})})})})})});eU.displayName=Tie;var Pie="SelectItemAlignedPosition",tU=j.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...s}=e,a=Hl(Gc,n),o=Vl(Gc,n),[l,c]=j.useState(null),[d,u]=j.useState(null),h=ut(t,k=>u(k)),m=nw(n),f=j.useRef(!1),g=j.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=o,b=j.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&p&&v&&y){const k=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),D=a.valueNode.getBoundingClientRect(),A=y.getBoundingClientRect();if(a.dir!=="rtl"){const ve=A.left-_.left,K=D.left-ve,Ve=k.left-K,Le=k.width+Ve,st=Math.max(Le,_.width),yt=window.innerWidth-ps,Dt=Ty(K,[ps,Math.max(ps,yt-st)]);l.style.minWidth=Le+"px",l.style.left=Dt+"px"}else{const ve=_.right-A.right,K=window.innerWidth-D.right-ve,Ve=window.innerWidth-k.right-K,Le=k.width+Ve,st=Math.max(Le,_.width),yt=window.innerWidth-ps,Dt=Ty(K,[ps,Math.max(ps,yt-st)]);l.style.minWidth=Le+"px",l.style.right=Dt+"px"}const E=m(),T=window.innerHeight-ps*2,M=p.scrollHeight,C=window.getComputedStyle(d),P=parseInt(C.borderTopWidth,10),I=parseInt(C.paddingTop,10),R=parseInt(C.borderBottomWidth,10),O=parseInt(C.paddingBottom,10),$=P+I+M+O+R,q=Math.min(v.offsetHeight*5,$),z=window.getComputedStyle(p),J=parseInt(z.paddingTop,10),ne=parseInt(z.paddingBottom,10),pe=k.top+k.height/2-ps,xe=T-pe,De=v.offsetHeight/2,de=v.offsetTop+De,Pe=P+I+de,ie=$-Pe;if(Pe<=pe){const ve=E.length>0&&v===E[E.length-1].ref.current;l.style.bottom="0px";const K=d.clientHeight-p.offsetTop-p.offsetHeight,Ve=Math.max(xe,De+(ve?ne:0)+K+R),Le=Pe+Ve;l.style.height=Le+"px"}else{const ve=E.length>0&&v===E[0].ref.current;l.style.top="0px";const Ve=Math.max(pe,P+p.offsetTop+(ve?J:0)+De)+ie;l.style.height=Ve+"px",p.scrollTop=Pe-pe+p.offsetTop}l.style.margin=`${ps}px 0`,l.style.minHeight=q+"px",l.style.maxHeight=T+"px",i==null||i(),requestAnimationFrame(()=>f.current=!0)}},[m,a.trigger,a.valueNode,l,d,p,v,y,a.dir,i]);cr(()=>b(),[b]);const[w,N]=j.useState();cr(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const S=j.useCallback(k=>{k&&g.current===!0&&(b(),x==null||x(),g.current=!1)},[b,x]);return r.jsx(Aie,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:f,onScrollButtonChange:S,children:r.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:r.jsx(ze.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});tU.displayName=Pie;var Eie="SelectPopperPosition",z2=j.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:s=ps,...a}=e,o=rw(n);return r.jsx(Y_,{...o,...a,ref:t,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});z2.displayName=Eie;var[Aie,t5]=Gh(Gc,{}),q2="SelectViewport",nU=j.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...s}=e,a=Vl(q2,n),o=t5(q2,n),l=ut(t,a.onViewportChange),c=j.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),r.jsx(tw.Slot,{scope:n,children:r.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Ee(s.onScroll,d=>{const u=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=o;if(m!=null&&m.current&&h){const f=Math.abs(c.current-u.scrollTop);if(f>0){const g=window.innerHeight-ps*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y<g){const x=y+f,b=Math.min(g,x),w=x-b;h.style.height=b+"px",h.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,h.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});nU.displayName=q2;var rU="SelectGroup",[Oie,Iie]=Gh(rU),Die=j.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=Is();return r.jsx(Oie,{scope:n,id:s,children:r.jsx(ze.div,{role:"group","aria-labelledby":s,...i,ref:t})})});Die.displayName=rU;var iU="SelectLabel",sU=j.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=Iie(iU,n);return r.jsx(ze.div,{id:s.id,...i,ref:t})});sU.displayName=iU;var Py="SelectItem",[Mie,aU]=Gh(Py),oU=j.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:s=!1,textValue:a,...o}=e,l=Hl(Py,n),c=Vl(Py,n),d=l.value===i,[u,h]=j.useState(a??""),[m,f]=j.useState(!1),g=ut(t,x=>{var b;return(b=c.itemRefCallback)==null?void 0:b.call(c,x,i,s)}),p=Is(),v=j.useRef("touch"),y=()=>{s||(l.onValueChange(i),l.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(Mie,{scope:n,value:i,disabled:s,textId:p,isSelected:d,onItemTextChange:j.useCallback(x=>{h(b=>b||((x==null?void 0:x.textContent)??"").trim())},[]),children:r.jsx(tw.ItemSlot,{scope:n,value:i,disabled:s,textValue:u,children:r.jsx(ze.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:g,onFocus:Ee(o.onFocus,()=>f(!0)),onBlur:Ee(o.onBlur,()=>f(!1)),onClick:Ee(o.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Ee(o.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Ee(o.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:Ee(o.onPointerMove,x=>{var b;v.current=x.pointerType,s?(b=c.onItemLeave)==null||b.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ee(o.onPointerLeave,x=>{var b;x.currentTarget===document.activeElement&&((b=c.onItemLeave)==null||b.call(c))}),onKeyDown:Ee(o.onKeyDown,x=>{var w;((w=c.searchRef)==null?void 0:w.current)!==""&&x.key===" "||(wie.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});oU.displayName=Py;var tf="SelectItemText",lU=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:s,...a}=e,o=Hl(tf,n),l=Vl(tf,n),c=aU(tf,n),d=kie(tf,n),[u,h]=j.useState(null),m=ut(t,y=>h(y),c.onItemTextChange,y=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,y,c.value,c.disabled)}),f=u==null?void 0:u.textContent,g=j.useMemo(()=>r.jsx("option",{value:c.value,disabled:c.disabled,children:f},c.value),[c.disabled,c.value,f]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return cr(()=>(p(g),()=>v(g)),[p,v,g]),r.jsxs(r.Fragment,{children:[r.jsx(ze.span,{id:c.textId,...a,ref:m}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ld.createPortal(a.children,o.valueNode):null]})});lU.displayName=tf;var cU="SelectItemIndicator",dU=j.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return aU(cU,n).isSelected?r.jsx(ze.span,{"aria-hidden":!0,...i,ref:t}):null});dU.displayName=cU;var H2="SelectScrollUpButton",uU=j.forwardRef((e,t)=>{const n=Vl(H2,e.__scopeSelect),i=t5(H2,e.__scopeSelect),[s,a]=j.useState(!1),o=ut(t,i.onScrollButtonChange);return cr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?r.jsx(mU,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});uU.displayName=H2;var V2="SelectScrollDownButton",hU=j.forwardRef((e,t)=>{const n=Vl(V2,e.__scopeSelect),i=t5(V2,e.__scopeSelect),[s,a]=j.useState(!1),o=ut(t,i.onScrollButtonChange);return cr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<d;a(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?r.jsx(mU,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});hU.displayName=V2;var mU=j.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...s}=e,a=Vl("SelectScrollButton",n),o=j.useRef(null),l=nw(n),c=j.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return j.useEffect(()=>()=>c(),[c]),cr(()=>{var u;const d=l().find(h=>h.ref.current===document.activeElement);(u=d==null?void 0:d.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),r.jsx(ze.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Ee(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:Ee(s.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:Ee(s.onPointerLeave,()=>{c()})})}),Rie="SelectSeparator",fU=j.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return r.jsx(ze.div,{"aria-hidden":!0,...i,ref:t})});fU.displayName=Rie;var G2="SelectArrow",$ie=j.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,s=rw(n),a=Hl(G2,n),o=Vl(G2,n);return a.open&&o.position==="popper"?r.jsx(K_,{...s,...i,ref:t}):null});$ie.displayName=G2;function pU(e){return e===""||e===void 0}var gU=j.forwardRef((e,t)=>{const{value:n,...i}=e,s=j.useRef(null),a=ut(t,s),o=Z_(n);return j.useEffect(()=>{const l=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==n&&u){const h=new Event("change",{bubbles:!0});u.call(l,n),l.dispatchEvent(h)}},[o,n]),r.jsx(Sg,{asChild:!0,children:r.jsx("select",{...i,ref:a,defaultValue:n})})});gU.displayName="BubbleSelect";function vU(e){const t=si(e),n=j.useRef(""),i=j.useRef(0),s=j.useCallback(o=>{const l=n.current+o;t(l),function c(d){n.current=d,window.clearTimeout(i.current),d!==""&&(i.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=j.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return j.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,a]}function xU(e,t,n){const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=Lie(e,Math.max(a,0));s.length===1&&(o=o.filter(d=>d!==n));const c=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function Lie(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Uie=HL,yU=GL,Fie=KL,Bie=XL,Wie=QL,bU=JL,zie=nU,wU=sU,jU=oU,qie=lU,Hie=dU,NU=uU,SU=hU,kU=fU;const un=Uie,hn=Fie,nn=j.forwardRef(({className:e,children:t,...n},i)=>r.jsxs(yU,{ref:i,className:je("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,r.jsx(Bie,{asChild:!0,children:r.jsx(wa,{className:"h-4 w-4 opacity-50"})})]}));nn.displayName=yU.displayName;const CU=j.forwardRef(({className:e,...t},n)=>r.jsx(NU,{ref:n,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(YR,{className:"h-4 w-4"})}));CU.displayName=NU.displayName;const _U=j.forwardRef(({className:e,...t},n)=>r.jsx(SU,{ref:n,className:je("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(wa,{className:"h-4 w-4"})}));_U.displayName=SU.displayName;const rn=j.forwardRef(({className:e,children:t,position:n="popper",...i},s)=>r.jsx(Wie,{children:r.jsxs(bU,{ref:s,className:je("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:[r.jsx(CU,{}),r.jsx(zie,{className:je("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(_U,{})]})}));rn.displayName=bU.displayName;const Vie=j.forwardRef(({className:e,...t},n)=>r.jsx(wU,{ref:n,className:je("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Vie.displayName=wU.displayName;const be=j.forwardRef(({className:e,children:t,...n},i)=>r.jsxs(jU,{ref:i,className:je("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(Hie,{children:r.jsx(GR,{className:"h-4 w-4"})})}),r.jsx(qie,{children:t})]}));be.displayName=jU.displayName;const Gie=j.forwardRef(({className:e,...t},n)=>r.jsx(kU,{ref:n,className:je("-mx-1 my-1 h-px bg-muted",e),...t}));Gie.displayName=kU.displayName;const di=j.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:je("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));di.displayName="Textarea";const Yie=()=>{const[e,t]=j.useState({name:"",email:"",state:"",requestType:"",details:""}),[n,i]=j.useState(!1),s=o=>{o.preventDefault();const l=`Privacy Request - ${e.requestType}`,c=`
Name: ${e.name}
Email: ${e.email}
State: ${e.state}
Request Type: ${e.requestType}
Details:
${e.details}
`.trim(),d=`mailto:privacy@tridentpi.net?subject=${encodeURIComponent(l)}&body=${encodeURIComponent(c)}`;window.location.href=d,i(!0)},a=(o,l)=>{t(c=>({...c,[o]:l}))};return n?r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx("main",{className:"bg-background min-h-screen",children:r.jsx("div",{className:"container-custom py-16",children:r.jsx("div",{className:"max-w-2xl mx-auto text-center",children:r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{className:"text-2xl text-trident-blue",children:"Request Submitted"})}),r.jsxs(H,{children:[r.jsx("p",{className:"text-muted-foreground mb-6",children:"Your privacy request has been submitted via email. We will respond as required by law."}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(te,{to:"/privacy-policy",children:r.jsx(V,{variant:"outline",className:"w-full",children:"View Privacy Policy"})}),r.jsx(te,{to:"/privacy-choices",children:r.jsx(V,{variant:"outline",className:"w-full",children:"Privacy Choices"})})]})]})]})})})}),r.jsx(Qe,{})]}):r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx("main",{className:"bg-background min-h-screen",children:r.jsx("div",{className:"container-custom py-16",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsx("h1",{className:"text-4xl font-bold text-trident-blue mb-8",children:"Privacy Requests"}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Submit a Privacy Request"})}),r.jsx(H,{children:r.jsxs("form",{onSubmit:s,className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"name",children:"Name"}),r.jsx(he,{id:"name",value:e.name,onChange:o=>a("name",o.target.value),required:!0})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"email",children:"Email"}),r.jsx(he,{id:"email",type:"email",value:e.email,onChange:o=>a("email",o.target.value),required:!0})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"state",children:"State"}),r.jsxs(un,{value:e.state,onValueChange:o=>a("state",o),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select your state"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"CA",children:"California"}),r.jsx(be,{value:"CO",children:"Colorado"}),r.jsx(be,{value:"CT",children:"Connecticut"}),r.jsx(be,{value:"VA",children:"Virginia"}),r.jsx(be,{value:"UT",children:"Utah"}),r.jsx(be,{value:"other",children:"Other"})]})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"requestType",children:"Request Type"}),r.jsxs(un,{value:e.requestType,onValueChange:o=>a("requestType",o),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select request type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"access",children:"Access my personal information"}),r.jsx(be,{value:"delete",children:"Delete my personal information"}),r.jsx(be,{value:"correct",children:"Correct my personal information"}),r.jsx(be,{value:"opt-out",children:"Opt out of sale/share/targeted advertising"})]})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"details",children:"Additional Details (Optional)"}),r.jsx(di,{id:"details",value:e.details,onChange:o=>a("details",o.target.value),placeholder:"Please provide any additional details about your request..."})]}),r.jsx(V,{type:"submit",className:"w-full",children:"Submit Request"})]})})]}),r.jsxs("div",{className:"mt-8 text-center space-x-4",children:[r.jsx(te,{to:"/privacy-policy",className:"text-trident-orange hover:underline",children:"Privacy Policy"}),r.jsx(te,{to:"/privacy-choices",className:"text-trident-orange hover:underline",children:"Privacy Choices"})]})]})})}),r.jsx(Qe,{})]})},Kie=kg("inline-flex items-center border text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80 rounded-full px-2.5 py-0.5",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-full px-2.5 py-0.5",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80 rounded-full px-2.5 py-0.5",outline:"text-foreground rounded-full px-2.5 py-0.5","gold-primary":"bg-trident-gold text-trident-black px-4 py-2 rounded-full font-bold uppercase tracking-wide hover:bg-trident-gold/90","gold-secondary":"bg-trident-gold text-trident-black px-3 py-1 rounded-lg font-medium hover:bg-trident-gold/90","gold-outline":"border-2 border-trident-gold text-trident-gold bg-transparent px-3 py-1 rounded-lg font-medium hover:bg-trident-gold hover:text-trident-black"}},defaultVariants:{variant:"default"}});function Je({className:e,variant:t,...n}){return r.jsx("div",{className:je(Kie({variant:t}),e),...n})}/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:TU,setPrototypeOf:rE,isFrozen:Xie,getPrototypeOf:Qie,getOwnPropertyDescriptor:Jie}=Object;let{freeze:Mr,seal:Ji,create:Y2}=Object,{apply:K2,construct:X2}=typeof Reflect<"u"&&Reflect;Mr||(Mr=function(t){return t});Ji||(Ji=function(t){return t});K2||(K2=function(t,n){for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];return t.apply(n,s)});X2||(X2=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return new t(...i)});const Wv=Rr(Array.prototype.forEach),Zie=Rr(Array.prototype.lastIndexOf),iE=Rr(Array.prototype.pop),Nm=Rr(Array.prototype.push),ese=Rr(Array.prototype.splice),Dx=Rr(String.prototype.toLowerCase),l1=Rr(String.prototype.toString),c1=Rr(String.prototype.match),Sm=Rr(String.prototype.replace),tse=Rr(String.prototype.indexOf),nse=Rr(String.prototype.trim),gs=Rr(Object.prototype.hasOwnProperty),wr=Rr(RegExp.prototype.test),km=rse(TypeError);function Rr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return K2(e,t,i)}}function rse(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return X2(e,n)}}function ct(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dx;rE&&rE(e,null);let i=t.length;for(;i--;){let s=t[i];if(typeof s=="string"){const a=n(s);a!==s&&(Xie(t)||(t[i]=a),s=a)}e[s]=!0}return e}function ise(e){for(let t=0;t<e.length;t++)gs(e,t)||(e[t]=null);return e}function Ba(e){const t=Y2(null);for(const[n,i]of TU(e))gs(e,n)&&(Array.isArray(i)?t[n]=ise(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=Ba(i):t[n]=i);return t}function Cm(e,t){for(;e!==null;){const i=Jie(e,t);if(i){if(i.get)return Rr(i.get);if(typeof i.value=="function")return Rr(i.value)}e=Qie(e)}function n(){return null}return n}const sE=Mr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),d1=Mr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),u1=Mr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sse=Mr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),h1=Mr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ase=Mr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),aE=Mr(["#text"]),oE=Mr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),m1=Mr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lE=Mr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zv=Mr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ose=Ji(/\{\{[\w\W]*|[\w\W]*\}\}/gm),lse=Ji(/<%[\w\W]*|[\w\W]*%>/gm),cse=Ji(/\$\{[\w\W]*/gm),dse=Ji(/^data-[\-\w.\u00B7-\uFFFF]+$/),use=Ji(/^aria-[\-\w]+$/),PU=Ji(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hse=Ji(/^(?:\w+script|data):/i),mse=Ji(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),EU=Ji(/^html$/i),fse=Ji(/^[a-z][.\w]*(-[.\w]+)+$/i);var cE=Object.freeze({__proto__:null,ARIA_ATTR:use,ATTR_WHITESPACE:mse,CUSTOM_ELEMENT:fse,DATA_ATTR:dse,DOCTYPE_NAME:EU,ERB_EXPR:lse,IS_ALLOWED_URI:PU,IS_SCRIPT_OR_DATA:hse,MUSTACHE_EXPR:ose,TMPLIT_EXPR:cse});const _m={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},pse=function(){return typeof window>"u"?null:window},gse=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(i=n.getAttribute(s));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},dE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function AU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pse();const t=Re=>AU(Re);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==_m.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const i=n,s=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:m,trustedTypes:f}=e,g=c.prototype,p=Cm(g,"cloneNode"),v=Cm(g,"remove"),y=Cm(g,"nextSibling"),x=Cm(g,"childNodes"),b=Cm(g,"parentNode");if(typeof o=="function"){const Re=n.createElement("template");Re.content&&Re.content.ownerDocument&&(n=Re.content.ownerDocument)}let w,N="";const{implementation:S,createNodeIterator:k,createDocumentFragment:_,getElementsByTagName:D}=n,{importNode:A}=i;let E=dE();t.isSupported=typeof TU=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:M,TMPLIT_EXPR:C,DATA_ATTR:P,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:$}=cE;let{IS_ALLOWED_URI:q}=cE,z=null;const J=ct({},[...sE,...d1,...u1,...h1,...aE]);let ne=null;const pe=ct({},[...oE,...m1,...lE,...zv]);let xe=Object.seal(Y2(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,de=null;const Pe=Object.seal(Y2(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,me=!0,ve=!1,K=!0,Ve=!1,Le=!0,st=!1,yt=!1,Dt=!1,sn=!1,ae=!1,ke=!1,Ne=!0,Ue=!1;const kt="user-content-";let In=!0,os=!1,Eo={},Ao=null;const nv=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rv=null;const iv=ct({},["audio","video","img","source","image","track"]);let dm=null;const sv=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oi="http://www.w3.org/1998/Math/MathML",jd="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml";let X=U,Y=!1,oe=null;const se=ct({},[Oi,jd,U],l1);let ye=ct({},["mi","mo","mn","ms","mtext"]),Ae=ct({},["annotation-xml"]);const an=ct({},["title","style","font","a","script"]);let Mt=null;const Xt=["application/xhtml+xml","text/html"],zn="text/html";let mt=null,kn=null;const ls=n.createElement("form"),Gs=function(B){return B instanceof RegExp||B instanceof Function},Ys=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kn&&kn===B)){if((!B||typeof B!="object")&&(B={}),B=Ba(B),Mt=Xt.indexOf(B.PARSER_MEDIA_TYPE)===-1?zn:B.PARSER_MEDIA_TYPE,mt=Mt==="application/xhtml+xml"?l1:Dx,z=gs(B,"ALLOWED_TAGS")?ct({},B.ALLOWED_TAGS,mt):J,ne=gs(B,"ALLOWED_ATTR")?ct({},B.ALLOWED_ATTR,mt):pe,oe=gs(B,"ALLOWED_NAMESPACES")?ct({},B.ALLOWED_NAMESPACES,l1):se,dm=gs(B,"ADD_URI_SAFE_ATTR")?ct(Ba(sv),B.ADD_URI_SAFE_ATTR,mt):sv,rv=gs(B,"ADD_DATA_URI_TAGS")?ct(Ba(iv),B.ADD_DATA_URI_TAGS,mt):iv,Ao=gs(B,"FORBID_CONTENTS")?ct({},B.FORBID_CONTENTS,mt):nv,De=gs(B,"FORBID_TAGS")?ct({},B.FORBID_TAGS,mt):Ba({}),de=gs(B,"FORBID_ATTR")?ct({},B.FORBID_ATTR,mt):Ba({}),Eo=gs(B,"USE_PROFILES")?B.USE_PROFILES:!1,ie=B.ALLOW_ARIA_ATTR!==!1,me=B.ALLOW_DATA_ATTR!==!1,ve=B.ALLOW_UNKNOWN_PROTOCOLS||!1,K=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=B.SAFE_FOR_TEMPLATES||!1,Le=B.SAFE_FOR_XML!==!1,st=B.WHOLE_DOCUMENT||!1,sn=B.RETURN_DOM||!1,ae=B.RETURN_DOM_FRAGMENT||!1,ke=B.RETURN_TRUSTED_TYPE||!1,Dt=B.FORCE_BODY||!1,Ne=B.SANITIZE_DOM!==!1,Ue=B.SANITIZE_NAMED_PROPS||!1,In=B.KEEP_CONTENT!==!1,os=B.IN_PLACE||!1,q=B.ALLOWED_URI_REGEXP||PU,X=B.NAMESPACE||U,ye=B.MATHML_TEXT_INTEGRATION_POINTS||ye,Ae=B.HTML_INTEGRATION_POINTS||Ae,xe=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&Gs(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&Gs(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(me=!1),ae&&(sn=!0),Eo&&(z=ct({},aE),ne=[],Eo.html===!0&&(ct(z,sE),ct(ne,oE)),Eo.svg===!0&&(ct(z,d1),ct(ne,m1),ct(ne,zv)),Eo.svgFilters===!0&&(ct(z,u1),ct(ne,m1),ct(ne,zv)),Eo.mathMl===!0&&(ct(z,h1),ct(ne,lE),ct(ne,zv))),B.ADD_TAGS&&(typeof B.ADD_TAGS=="function"?Pe.tagCheck=B.ADD_TAGS:(z===J&&(z=Ba(z)),ct(z,B.ADD_TAGS,mt))),B.ADD_ATTR&&(typeof B.ADD_ATTR=="function"?Pe.attributeCheck=B.ADD_ATTR:(ne===pe&&(ne=Ba(ne)),ct(ne,B.ADD_ATTR,mt))),B.ADD_URI_SAFE_ATTR&&ct(dm,B.ADD_URI_SAFE_ATTR,mt),B.FORBID_CONTENTS&&(Ao===nv&&(Ao=Ba(Ao)),ct(Ao,B.FORBID_CONTENTS,mt)),In&&(z["#text"]=!0),st&&ct(z,["html","head","body"]),z.table&&(ct(z,["tbody"]),delete De.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw km('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw km('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=B.TRUSTED_TYPES_POLICY,N=w.createHTML("")}else w===void 0&&(w=gse(f,s)),w!==null&&typeof N=="string"&&(N=w.createHTML(""));Mr&&Mr(B),kn=B}},av=ct({},[...d1,...u1,...sse]),ov=ct({},[...h1,...ase]),dj=function(B){let ue=b(B);(!ue||!ue.tagName)&&(ue={namespaceURI:X,tagName:"template"});const Oe=Dx(B.tagName),Qt=Dx(ue.tagName);return oe[B.namespaceURI]?B.namespaceURI===jd?ue.namespaceURI===U?Oe==="svg":ue.namespaceURI===Oi?Oe==="svg"&&(Qt==="annotation-xml"||ye[Qt]):!!av[Oe]:B.namespaceURI===Oi?ue.namespaceURI===U?Oe==="math":ue.namespaceURI===jd?Oe==="math"&&Ae[Qt]:!!ov[Oe]:B.namespaceURI===U?ue.namespaceURI===jd&&!Ae[Qt]||ue.namespaceURI===Oi&&!ye[Qt]?!1:!ov[Oe]&&(an[Oe]||!av[Oe]):!!(Mt==="application/xhtml+xml"&&oe[B.namespaceURI]):!1},Ii=function(B){Nm(t.removed,{element:B});try{b(B).removeChild(B)}catch{v(B)}},Ks=function(B,ue){try{Nm(t.removed,{attribute:ue.getAttributeNode(B),from:ue})}catch{Nm(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(B),B==="is")if(sn||ae)try{Ii(ue)}catch{}else try{ue.setAttribute(B,"")}catch{}},lv=function(B){let ue=null,Oe=null;if(Dt)B="<remove></remove>"+B;else{const Cn=c1(B,/^[\r\n\t ]+/);Oe=Cn&&Cn[0]}Mt==="application/xhtml+xml"&&X===U&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const Qt=w?w.createHTML(B):B;if(X===U)try{ue=new m().parseFromString(Qt,Mt)}catch{}if(!ue||!ue.documentElement){ue=S.createDocument(X,"template",null);try{ue.documentElement.innerHTML=Y?N:Qt}catch{}}const dr=ue.body||ue.documentElement;return B&&Oe&&dr.insertBefore(n.createTextNode(Oe),dr.childNodes[0]||null),X===U?D.call(ue,st?"html":"body")[0]:st?ue.documentElement:dr},Nd=function(B){return k.call(B.ownerDocument||B,B,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ia=function(B){return B instanceof h&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},cv=function(B){return typeof l=="function"&&B instanceof l};function cs(Re,B,ue){Wv(Re,Oe=>{Oe.call(t,B,ue,kn)})}const kT=function(B){let ue=null;if(cs(E.beforeSanitizeElements,B,null),Ia(B))return Ii(B),!0;const Oe=mt(B.nodeName);if(cs(E.uponSanitizeElement,B,{tagName:Oe,allowedTags:z}),Le&&B.hasChildNodes()&&!cv(B.firstElementChild)&&wr(/<[/\w!]/g,B.innerHTML)&&wr(/<[/\w!]/g,B.textContent)||B.nodeType===_m.progressingInstruction||Le&&B.nodeType===_m.comment&&wr(/<[/\w]/g,B.data))return Ii(B),!0;if(!(Pe.tagCheck instanceof Function&&Pe.tagCheck(Oe))&&(!z[Oe]||De[Oe])){if(!De[Oe]&&_T(Oe)&&(xe.tagNameCheck instanceof RegExp&&wr(xe.tagNameCheck,Oe)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Oe)))return!1;if(In&&!Ao[Oe]){const Qt=b(B)||B.parentNode,dr=x(B)||B.childNodes;if(dr&&Qt){const Cn=dr.length;for(let zr=Cn-1;zr>=0;--zr){const Da=p(dr[zr],!0);Da.__removalCount=(B.__removalCount||0)+1,Qt.insertBefore(Da,y(B))}}}return Ii(B),!0}return B instanceof c&&!dj(B)||(Oe==="noscript"||Oe==="noembed"||Oe==="noframes")&&wr(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ii(B),!0):(Ve&&B.nodeType===_m.text&&(ue=B.textContent,Wv([T,M,C],Qt=>{ue=Sm(ue,Qt," ")}),B.textContent!==ue&&(Nm(t.removed,{element:B.cloneNode()}),B.textContent=ue)),cs(E.afterSanitizeElements,B,null),!1)},CT=function(B,ue,Oe){if(Ne&&(ue==="id"||ue==="name")&&(Oe in n||Oe in ls))return!1;if(!(me&&!de[ue]&&wr(P,ue))){if(!(ie&&wr(I,ue))){if(!(Pe.attributeCheck instanceof Function&&Pe.attributeCheck(ue,B))){if(!ne[ue]||de[ue]){if(!(_T(B)&&(xe.tagNameCheck instanceof RegExp&&wr(xe.tagNameCheck,B)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(B))&&(xe.attributeNameCheck instanceof RegExp&&wr(xe.attributeNameCheck,ue)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(ue,B))||ue==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&wr(xe.tagNameCheck,Oe)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Oe))))return!1}else if(!dm[ue]){if(!wr(q,Sm(Oe,O,""))){if(!((ue==="src"||ue==="xlink:href"||ue==="href")&&B!=="script"&&tse(Oe,"data:")===0&&rv[B])){if(!(ve&&!wr(R,Sm(Oe,O,"")))){if(Oe)return!1}}}}}}}return!0},_T=function(B){return B!=="annotation-xml"&&c1(B,$)},TT=function(B){cs(E.beforeSanitizeAttributes,B,null);const{attributes:ue}=B;if(!ue||Ia(B))return;const Oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Qt=ue.length;for(;Qt--;){const dr=ue[Qt],{name:Cn,namespaceURI:zr,value:Da}=dr,Sd=mt(Cn),uj=Da;let rr=Cn==="value"?uj:nse(uj);if(Oe.attrName=Sd,Oe.attrValue=rr,Oe.keepAttr=!0,Oe.forceKeepAttr=void 0,cs(E.uponSanitizeAttribute,B,Oe),rr=Oe.attrValue,Ue&&(Sd==="id"||Sd==="name")&&(Ks(Cn,B),rr=kt+rr),Le&&wr(/((--!?|])>)|<\/(style|title|textarea)/i,rr)){Ks(Cn,B);continue}if(Sd==="attributename"&&c1(rr,"href")){Ks(Cn,B);continue}if(Oe.forceKeepAttr)continue;if(!Oe.keepAttr){Ks(Cn,B);continue}if(!K&&wr(/\/>/i,rr)){Ks(Cn,B);continue}Ve&&Wv([T,M,C],ET=>{rr=Sm(rr,ET," ")});const PT=mt(B.nodeName);if(!CT(PT,Sd,rr)){Ks(Cn,B);continue}if(w&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!zr)switch(f.getAttributeType(PT,Sd)){case"TrustedHTML":{rr=w.createHTML(rr);break}case"TrustedScriptURL":{rr=w.createScriptURL(rr);break}}if(rr!==uj)try{zr?B.setAttributeNS(zr,Cn,rr):B.setAttribute(Cn,rr),Ia(B)?Ii(B):iE(t.removed)}catch{Ks(Cn,B)}}cs(E.afterSanitizeAttributes,B,null)},dH=function Re(B){let ue=null;const Oe=Nd(B);for(cs(E.beforeSanitizeShadowDOM,B,null);ue=Oe.nextNode();)cs(E.uponSanitizeShadowNode,ue,null),kT(ue),TT(ue),ue.content instanceof a&&Re(ue.content);cs(E.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(Re){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=null,Oe=null,Qt=null,dr=null;if(Y=!Re,Y&&(Re="<!-->"),typeof Re!="string"&&!cv(Re))if(typeof Re.toString=="function"){if(Re=Re.toString(),typeof Re!="string")throw km("dirty is not a string, aborting")}else throw km("toString is not a function");if(!t.isSupported)return Re;if(yt||Ys(B),t.removed=[],typeof Re=="string"&&(os=!1),os){if(Re.nodeName){const Da=mt(Re.nodeName);if(!z[Da]||De[Da])throw km("root node is forbidden and cannot be sanitized in-place")}}else if(Re instanceof l)ue=lv("<!---->"),Oe=ue.ownerDocument.importNode(Re,!0),Oe.nodeType===_m.element&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?ue=Oe:ue.appendChild(Oe);else{if(!sn&&!Ve&&!st&&Re.indexOf("<")===-1)return w&&ke?w.createHTML(Re):Re;if(ue=lv(Re),!ue)return sn?null:ke?N:""}ue&&Dt&&Ii(ue.firstChild);const Cn=Nd(os?Re:ue);for(;Qt=Cn.nextNode();)kT(Qt),TT(Qt),Qt.content instanceof a&&dH(Qt.content);if(os)return Re;if(sn){if(ae)for(dr=_.call(ue.ownerDocument);ue.firstChild;)dr.appendChild(ue.firstChild);else dr=ue;return(ne.shadowroot||ne.shadowrootmode)&&(dr=A.call(i,dr,!0)),dr}let zr=st?ue.outerHTML:ue.innerHTML;return st&&z["!doctype"]&&ue.ownerDocument&&ue.ownerDocument.doctype&&ue.ownerDocument.doctype.name&&wr(EU,ue.ownerDocument.doctype.name)&&(zr="<!DOCTYPE "+ue.ownerDocument.doctype.name+`>
`+zr),Ve&&Wv([T,M,C],Da=>{zr=Sm(zr,Da," ")}),w&&ke?w.createHTML(zr):zr},t.setConfig=function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ys(Re),yt=!0},t.clearConfig=function(){kn=null,yt=!1},t.isValidAttribute=function(Re,B,ue){kn||Ys({});const Oe=mt(Re),Qt=mt(B);return CT(Oe,Qt,ue)},t.addHook=function(Re,B){typeof B=="function"&&Nm(E[Re],B)},t.removeHook=function(Re,B){if(B!==void 0){const ue=Zie(E[Re],B);return ue===-1?void 0:ese(E[Re],ue,1)[0]}return iE(E[Re])},t.removeHooks=function(Re){E[Re]=[]},t.removeAllHooks=function(){E=dE()},t}var ta=AU();const vse=e=>{var a;const t=ta.sanitize(e.trim());if(!t)return{isValid:!1,message:"Email address is required"};if(!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t))return{isValid:!1,message:"Please enter a valid email address"};const i=["tempmail.org","10minutemail.com","guerrillamail.com"],s=(a=t.split("@")[1])==null?void 0:a.toLowerCase();return s&&i.includes(s)?{isValid:!1,message:"Please use a valid business or personal email address"}:{isValid:!0}},xse=e=>{const t=ta.sanitize(e.trim());if(!t)return{isValid:!1,message:"Phone number is required"};const n=t.replace(/\D/g,"");return n.length<7||n.length>15?{isValid:!1,message:"Please enter a valid phone number"}:n.length===10&&!/^[2-9]\d{2}[2-9]\d{6}$/.test(n)?{isValid:!1,message:"Please enter a valid US phone number"}:{isValid:!0}},uE=(e,t)=>{const n=ta.sanitize(e.trim());if(!n)return{isValid:!1,message:`${t} is required`};const i=[/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,/javascript:/gi,/on\w+\s*=/gi,/data:text\/html/gi];for(const s of i)if(s.test(n))return{isValid:!1,message:`${t} contains invalid characters`};return{isValid:!0}},yse=e=>{if(!e||!e.trim())return{isValid:!0};const t=ta.sanitize(e.trim());if(t.length>2e3)return{isValid:!1,message:"Message must be less than 2000 characters"};const n=[/\b(viagra|cialis|loan|casino|gambling)\b/gi,/\b(click here|act now|limited time)\b/gi,/\$\d+.*(?:guaranteed|easy money|make money)/gi];for(const i of n)if(i.test(t))return{isValid:!1,message:"Message contains prohibited content"};return{isValid:!0}},OU=e=>({firstName:ta.sanitize(e.firstName.trim()),lastName:ta.sanitize(e.lastName.trim()),email:ta.sanitize(e.email.trim().toLowerCase()),phone:ta.sanitize(e.phone.trim()),serviceType:ta.sanitize(e.serviceType.trim()),message:ta.sanitize(e.message.trim()),optInStatus:e.optInStatus}),yUe=e=>{console.log("Validating contact form data:",e);const t=OU(e),n=uE(t.firstName,"First name");if(!n.isValid)return console.log("First name validation failed:",n.message),n;const i=uE(t.lastName,"Last name");if(!i.isValid)return console.log("Last name validation failed:",i.message),i;const s=vse(t.email);if(!s.isValid)return console.log("Email validation failed:",s.message),s;const a=xse(t.phone);if(!a.isValid)return console.log("Phone validation failed:",a.message),a;const o=yse(t.message);return o.isValid?t.optInStatus?(console.log("Form validation passed"),{isValid:!0}):(console.log("Opt-in validation failed: consent required"),{isValid:!1,message:"Consent is required to submit this form"}):(console.log("Message validation failed:",o.message),o)},f1=()=>"INFO",bse=["email","phone","firstName","lastName","full_name","message","address","ssn","credit_card","password"],nf=e=>{if(!e||typeof e!="object")return e;const t={...e};return bse.forEach(n=>{if(t[n])if(n==="email"&&typeof t[n]=="string"){const i=t[n];i.indexOf("@")>0?t[n]=`${i[0]}***@${i.split("@")[1]}`:t[n]="***"}else if(n==="phone"&&typeof t[n]=="string"){const i=t[n].replace(/\D/g,"");t[n]=`***-***-${i.slice(-4)}`}else typeof t[n]=="string"&&(t[n]=t[n].length>0?"***":"")}),Object.keys(t).forEach(n=>{typeof t[n]=="object"&&t[n]!==null&&(t[n]=nf(t[n]))}),t},_t={error:(e,t)=>{const n=t?nf(t):void 0;console.error(`[ERROR] ${e}`,n)},warn:(e,t)=>{if(["DEBUG","INFO","WARN"].includes(f1())){const n=t?nf(t):void 0;console.warn(`[WARN] ${e}`,n)}},info:(e,t)=>{if(["DEBUG","INFO"].includes(f1())){const n=t?nf(t):void 0;console.info(`[INFO] ${e}`,n)}},debug:(e,t)=>{if(f1()==="DEBUG"){const n=t?nf(t):void 0;console.log(`[DEBUG] ${e}`,n)}}},wse=async e=>{try{console.log("π‘ Preparing webhook data for secure submission");const t={firstName:e.firstName,lastName:e.lastName,fullName:`${e.firstName} ${e.lastName}`.trim(),email:e.email,phone:e.phone,serviceType:e.serviceType,message:e.message,optInStatus:e.optInStatus,source:"TridentPI.net",timestamp:new Date().toISOString(),trackingData:M_()};console.log("π¦ Webhook data prepared (sanitized):",{...t,email:"masked",phone:"masked"}),_t.info("Sending data to secure webhook handler"),console.log("π Calling Supabase edge function: secure-webhook-handler");const n=await Q.functions.invoke("secure-webhook-handler",{body:{data:t}});if(console.log("π¨ Supabase function raw response:",n),n.error)throw console.error("π₯ Supabase function invocation error:",n.error),new Error(`Function invocation failed: ${n.error.message}`);const{data:i,error:s}=n;if(console.log("π Function response data:",i),console.log("π Function response error:",s),s)throw console.error("π₯ Edge function returned error:",s),new Error(`Webhook processing failed: ${s.message||s}`);if(!i)throw console.error("π₯ No data returned from edge function"),new Error("No response data from webhook handler");if(!i.success)throw console.error("π₯ Webhook handler returned failure:",i),new Error(i.error||"Webhook processing failed");return console.log("β
Secure webhook processed successfully, lead ID:",i.leadId),_t.info("Secure webhook processed successfully"),i}catch(t){throw console.error("π₯ Secure webhook submission failed:",t),console.error("π₯ Webhook error details:",{name:t instanceof Error?t.name:"Unknown",message:t instanceof Error?t.message:"Unknown error",stack:t instanceof Error?t.stack:"No stack trace"}),_t.error("Secure webhook submission failed",{errorMessage:t instanceof Error?t.message:"Unknown error"}),t}},IU=async e=>{try{console.log("π Processing lead securely with data:",{firstName:e.firstName,lastName:e.lastName,email:"masked",phone:"masked",serviceType:e.serviceType});const t=OU(e);console.log("π§Ή Data sanitized successfully"),console.log("π‘ Sending to secure webhook...");const n=await wse(t);if(console.log("β
Secure webhook processing completed:",n),!n||!n.success)throw new Error(`Webhook returned failure: ${(n==null?void 0:n.error)||"Unknown error"}`);return n}catch(t){throw console.error("π₯ Error in processLeadSecurely:",t),console.error("π₯ Error details:",{name:t instanceof Error?t.name:"Unknown",message:t instanceof Error?t.message:"Unknown error",stack:t instanceof Error?t.stack:"No stack trace"}),t}},_f=()=>({firstName:"John",lastName:"TestCase",email:"john.testcase@tridentpi.net",phone:"(385) 555-0123",serviceType:"Domestic Investigations",message:"[SYNTHETIC TEST] This is a comprehensive test submission to verify the n8n β GHL workflow with all available fields. Please ignore this test lead.",optInStatus:!0,businessName:"Test Business LLC",companyName:"TestCase Enterprises",streetAddress:"123 Test Street",postalCode:"84101",state:"Utah",dnd:!1,source:"Website Form Test",type:"Lead",attorneyPhone:"(801) 555-9876",attorneyEmail:"attorney@testlegal.com",background:"Corporate investigation needed for business dispute",valueTier:"High Value",clientType:"Corporate",leadScore:85,leadQuality:"Hot",leadStatus:"New",estimatedValue:15e3,website:"https://testbusiness.com",additionalEmails:"backup@testcase.com, legal@testcase.com",additionalPhones:"(385) 555-0124, (801) 555-0125",utmSource:"google",utmMedium:"cpc",utmTerm:"private investigator utah",utmContent:"test_ad_content",utmCampaign:"domestic_investigations_q4",campaignId:"camp_12345",campaignName:"Utah PI Services - Domestic",adGroupId:"adgroup_67890",adId:"ad_54321",googleClickId:"gclid_test123456",deviceCode:"desktop",channelGroup:"Paid Search",matchtype:"Exact",networkType:"Search",geoTargeting:"Utah, United States",firstTouchSource:"Google Ads",lastTouchSource:"Direct",engagementRate:78.5,engagementTime:240}),DU=async()=>{try{console.log("π§ͺ Starting test form submission...");const e=_f();console.log("π Test form data created:",{name:`${e.firstName} ${e.lastName}`,email:e.email,service:e.serviceType});const t=M_();if(console.log("π Current tracking data:",t),typeof window<"u"){const i=new URLSearchParams({utm_source:"test",utm_medium:"form_test",utm_campaign:"workflow_verification",utm_content:"test_submission"}),s=window.location.href,a=`${window.location.origin}${window.location.pathname}?${i.toString()}`;window.history.replaceState({},"",a),console.log("π·οΈ Test UTM parameters set for this submission")}console.log("π Submitting test lead through secure pipeline...");const n=await IU(e);return console.log("β
Test form submission completed successfully!"),console.log("π Result:",n),typeof window<"u"&&window.history.replaceState({},"",window.location.pathname),n}catch(e){throw console.error("β Test form submission failed:",e),e}},jse=async()=>{const e=[{name:"Domestic Investigation Inquiry",data:{..._f(),serviceType:"Domestic Investigations"}},{name:"Corporate Investigation Inquiry",data:{..._f(),serviceType:"Corporate Investigations",firstName:"Jane",lastName:"Corporate",email:"jane.corporate@tridentpi.net"}},{name:"Asset Search Inquiry",data:{..._f(),serviceType:"Asset Searches",firstName:"Bob",lastName:"Asset",email:"bob.asset@tridentpi.net"}}];console.log("π§ͺ Running test suite with multiple scenarios...");for(const t of e)try{console.log(`
π Testing: ${t.name}`),await IU(t.data),console.log(`β
${t.name} - PASSED`),await new Promise(n=>setTimeout(n,2e3))}catch(n){console.error(`β ${t.name} - FAILED:`,n)}console.log(`
π Test suite completed`)},MU=()=>{var m,f,g;const{toast:e}=Lt(),[t,n]=j.useState(!1),[i,s]=j.useState(!1),[a,o]=j.useState(null),[l,c]=j.useState("idle"),d=async()=>{n(!0),c("idle"),o(null);try{console.log("π§ͺ Starting single test form submission...");const p=await DU();o(p),c("success"),e({title:"Test Submission Successful!",description:"Check console logs and your n8n/GHL systems for the test lead."})}catch(p){console.error("Test failed:",p),c("error"),o({error:p instanceof Error?p.message:"Unknown error"}),e({title:"Test Failed",description:"Check console logs for details.",variant:"destructive"})}finally{n(!1)}},u=async()=>{s(!0),c("idle"),o(null);try{console.log("π§ͺ Starting test suite..."),await jse(),c("success"),o({message:"Test suite completed - check console for details"}),e({title:"Test Suite Completed!",description:"Multiple test scenarios have been submitted. Check console logs and your systems."})}catch(p){console.error("Test suite failed:",p),c("error"),o({error:p instanceof Error?p.message:"Unknown error"}),e({title:"Test Suite Failed",description:"Check console logs for details.",variant:"destructive"})}finally{s(!1)}},h=_f();return r.jsxs(W,{className:"w-full max-w-4xl mx-auto",children:[r.jsxs(Z,{children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(b2,{className:"w-6 h-6 text-blue-600"}),r.jsx(re,{children:"Form Submission Testing"})]}),r.jsx(wt,{children:"Test the complete form submission workflow: Form β Supabase Edge Function β n8n β GHL CRM"})]}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[r.jsxs("h4",{className:"font-medium mb-3 flex items-center gap-2",children:[r.jsx(n$,{className:"w-4 h-4"}),"Comprehensive Test Data Preview - ",Object.keys(h).length," Fields"]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-blue-700",children:"Core Contact Information"}),r.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Name:"})," ",h.firstName," ",h.lastName]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Email:"})," ",h.email]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Phone:"})," ",h.phone]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Service:"})," ",h.serviceType]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Opt-in:"})," ",h.optInStatus?"Yes":"No"]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-green-700",children:"Business Information"}),r.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Business:"})," ",h.businessName]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Company:"})," ",h.companyName]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Website:"})," ",h.website]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Type:"})," ",h.clientType]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-purple-700",children:"Address & Location"}),r.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Address:"})," ",h.streetAddress]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"ZIP:"})," ",h.postalCode]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"State:"})," ",h.state]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Geo Targeting:"})," ",h.geoTargeting]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-red-700",children:"Legal Case Details"}),r.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Attorney Phone:"})," ",h.attorneyPhone]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Attorney Email:"})," ",h.attorneyEmail]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Background:"})," ",(m=h.background)==null?void 0:m.substring(0,30),"..."]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Value Tier:"})," ",h.valueTier]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-orange-700",children:"Lead Qualification"}),r.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Score:"})," ",h.leadScore]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Quality:"})," ",h.leadQuality]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Status:"})," ",h.leadStatus]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Est. Value:"})," $",(f=h.estimatedValue)==null?void 0:f.toLocaleString()]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Source:"})," ",h.source]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Type:"})," ",h.type]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-indigo-700",children:"Marketing Attribution"}),r.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Source:"})," ",h.utmSource]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Medium:"})," ",h.utmMedium]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Campaign:"})," ",h.utmCampaign]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Campaign ID:"})," ",h.campaignId]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Ad Group:"})," ",h.adGroupId]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Google Click ID:"})," ",(g=h.googleClickId)==null?void 0:g.substring(0,15),"..."]})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("h5",{className:"font-medium text-sm mb-2 text-teal-700",children:"Technical Tracking"}),r.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Device:"})," ",h.deviceCode]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Channel:"})," ",h.channelGroup]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Network:"})," ",h.networkType]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Match Type:"})," ",h.matchtype]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Engagement Rate:"})," ",h.engagementRate,"%"]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Engagement Time:"})," ",h.engagementTime,"s"]})]})]}),r.jsxs("div",{className:"mt-4 pt-4 border-t",children:[r.jsx("span",{className:"font-medium text-sm",children:"Original Message:"}),r.jsx("p",{className:"text-xs text-gray-600 mt-1",children:h.message})]})]}),r.jsx(Dl,{}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsx("h4",{className:"font-medium",children:"Single Test Submission"}),r.jsx("p",{className:"text-sm text-gray-600",children:"Submit one test lead through the complete workflow."}),r.jsx(V,{onClick:d,disabled:t||i,className:"w-full",children:t?r.jsxs(r.Fragment,{children:[r.jsx(fu,{className:"mr-2 h-4 w-4 animate-spin"}),"Testing..."]}):r.jsxs(r.Fragment,{children:[r.jsx(qK,{className:"mr-2 h-4 w-4"}),"Run Single Test"]})})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h4",{className:"font-medium",children:"Test Suite (3 Scenarios)"}),r.jsx("p",{className:"text-sm text-gray-600",children:"Submit multiple test leads with different service types."}),r.jsx(V,{onClick:u,disabled:t||i,variant:"outline",className:"w-full",children:i?r.jsxs(r.Fragment,{children:[r.jsx(fu,{className:"mr-2 h-4 w-4 animate-spin"}),"Running Suite..."]}):r.jsxs(r.Fragment,{children:[r.jsx(b2,{className:"mr-2 h-4 w-4"}),"Run Test Suite"]})})]})]}),l!=="idle"&&r.jsxs("div",{className:"mt-6 p-4 rounded-lg border",children:[r.jsx("div",{className:"flex items-center gap-2 mb-2",children:l==="success"?r.jsxs(r.Fragment,{children:[r.jsx(we,{className:"w-5 h-5 text-green-600"}),r.jsx("span",{className:"font-medium text-green-800",children:"Test Successful"}),r.jsx(Je,{variant:"default",className:"ml-auto",children:"SUCCESS"})]}):r.jsxs(r.Fragment,{children:[r.jsx(KR,{className:"w-5 h-5 text-red-600"}),r.jsx("span",{className:"font-medium text-red-800",children:"Test Failed"}),r.jsx(Je,{variant:"destructive",className:"ml-auto",children:"FAILED"})]})}),a&&r.jsx("div",{className:"text-sm",children:a.error?r.jsxs("p",{className:"text-red-700",children:["Error: ",a.error]}):a.message?r.jsx("p",{className:"text-gray-700",children:a.message}):r.jsx("pre",{className:"text-xs bg-gray-100 p-2 rounded overflow-x-auto",children:JSON.stringify(a,null,2)})})]}),r.jsx(Dl,{}),r.jsxs("div",{className:"bg-blue-50 p-4 rounded-lg",children:[r.jsx("h4",{className:"font-medium text-blue-900 mb-2",children:"What to Check:"}),r.jsxs("ul",{className:"text-sm text-blue-800 space-y-1 list-disc list-inside",children:[r.jsx("li",{children:"Console logs for detailed submission flow"}),r.jsx("li",{children:"Your n8n workflow execution history"}),r.jsx("li",{children:'GHL CRM for new test contacts (search for "john.testcase@tridentpi.net")'}),r.jsx("li",{children:"Any error messages in n8n or GHL systems"})]})]})]})]})},RU=({user:e,children:t,fallback:n})=>{const[i,s]=j.useState(null),[a,o]=j.useState(!0);return j.useEffect(()=>{const l=async()=>{try{const{data:c,error:d}=await Q.rpc("has_role",{_user_id:e.id,_role:"admin"});d?(console.error("Error checking admin role:",d),_t.error("Admin role check failed",{userId:e.id,error:d.message}),s(!1)):(s(c||!1),c&&_t.info("Admin access granted",{userId:e.id}))}catch(c){console.error("Error in admin role check:",c),s(!1)}finally{o(!1)}};e!=null&&e.id?l():(o(!1),s(!1))},[e==null?void 0:e.id]),a?r.jsx("div",{className:"flex items-center justify-center min-h-screen",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-trident-purple"})}):i?r.jsx(r.Fragment,{children:t}):r.jsx("div",{className:"min-h-screen bg-muted/50 flex items-center justify-center p-6",children:n||r.jsxs("div",{className:"text-center",children:[r.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:"Access Denied"}),r.jsx("p",{className:"text-text-secondary",children:"You don't have permission to access this area."})]})})},Q2=({redirectTo:e="/"})=>{const{toast:t}=Lt(),n=async()=>{try{localStorage.setItem("oauth_redirect_destination",e);const{data:i,error:s}=await Q.auth.signInWithOAuth({provider:"google",options:{redirectTo:window.location.origin}});s&&(console.error("Google sign-in error:",s),t({title:"Sign In Error",description:s.message,variant:"destructive"}))}catch(i){console.error("Unexpected error during Google sign-in:",i),t({title:"Sign In Error",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}};return r.jsxs(V,{onClick:n,variant:"outline",className:"w-full flex items-center gap-2",children:[r.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Continue with Google"]})},n5=({onAuthSuccess:e})=>{const[t,n]=j.useState(""),[i,s]=j.useState(""),[a,o]=j.useState(!1),[l,c]=j.useState(!1),[d,u]=j.useState(!1),[h,m]=j.useState(!1),{toast:f}=Lt(),g=async v=>{var y,x,b,w;if(v.preventDefault(),console.log("π AdminAuth: Form submitted",{email:t,isSignUp:d,hasPassword:!!i}),!t||!i){console.log("β AdminAuth: Validation failed - missing email or password"),f({title:"Validation Error",description:"Please enter both email and password.",variant:"destructive"});return}console.log("π AdminAuth: Starting authentication..."),c(!0);try{if(d){const{data:N,error:S}=await Q.auth.signUp({email:t,password:i,options:{emailRedirectTo:`${window.location.origin}/admin`}});if(S)throw S;N.user&&!N.session?(m(!0),_t.info("Admin user registration - confirmation email sent",{email:t}),f({title:"Confirmation Email Sent",description:"Please check your email and click the confirmation link to complete registration."})):N.session&&(_t.info("Admin user registered and signed in",{email:t}),e(),f({title:"Registration Successful",description:"Welcome to the admin dashboard!"}))}else{const{data:N,error:S}=await Q.auth.signInWithPassword({email:t,password:i});if(S)throw S;_t.info("Admin authentication successful",{email:t}),e(),f({title:"Authentication Successful",description:"Welcome back to the admin dashboard."})}}catch(N){_t.warn("Admin authentication failed",{email:t,error:N.message,isSignUp:d});let S="Authentication failed. Please try again.",k=!1;(y=N.message)!=null&&y.includes("Invalid login credentials")?S="Invalid email or password. Please check your credentials.":(x=N.message)!=null&&x.includes("User already registered")?(S="An account with this email already exists. Try signing in instead.",u(!1)):(b=N.message)!=null&&b.includes("Email not confirmed")?(S="Your email address has not been confirmed yet.",k=!0,m(!0)):(w=N.message)!=null&&w.includes("Signup not allowed")&&(S="New registrations are currently disabled. Please contact an administrator."),f({title:"Authentication Failed",description:S,variant:"destructive"}),k&&setTimeout(()=>{f({title:"Need Help?",description:"Check your email for a confirmation link, or click 'Resend Confirmation' below."})},2e3)}finally{c(!1)}},p=async()=>{if(!t){f({title:"Email Required",description:"Please enter your email address first.",variant:"destructive"});return}c(!0);try{const{error:v}=await Q.auth.resend({type:"signup",email:t,options:{emailRedirectTo:`${window.location.origin}/admin`}});if(v)throw v;f({title:"Confirmation Email Sent",description:"Please check your email for the confirmation link."})}catch(v){f({title:"Resend Failed",description:v.message||"Failed to resend confirmation email.",variant:"destructive"})}finally{c(!1)}};return h?r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-6",children:r.jsxs(W,{className:"w-full max-w-md",children:[r.jsxs(Z,{className:"text-center",children:[r.jsx("div",{className:"flex justify-center mb-4",children:r.jsx(xr,{className:"w-12 h-12 text-green-600"})}),r.jsx(re,{className:"text-2xl",children:"Check Your Email"}),r.jsx("p",{className:"body-secondary",children:"We've sent a confirmation link to your email address"})]}),r.jsxs(H,{className:"space-y-4",children:[r.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:r.jsxs("div",{className:"flex items-start space-x-3",children:[r.jsx(we,{className:"w-5 h-5 text-blue-600 mt-0.5"}),r.jsxs("div",{className:"text-sm text-blue-800",children:[r.jsx("p",{className:"font-medium mb-1",children:"Next Steps:"}),r.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[r.jsx("li",{children:"Check your email inbox (and spam folder)"}),r.jsx("li",{children:"Click the confirmation link in the email"}),r.jsx("li",{children:"Return here and sign in"})]})]})]})}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(V,{onClick:p,disabled:l,variant:"outline",className:"w-full",children:l?"Sending...":"Resend Confirmation Email"}),r.jsx(V,{onClick:()=>{m(!1),u(!1)},variant:"ghost",className:"w-full",children:"Back to Sign In"})]}),r.jsx("div",{className:"mt-4 text-xs text-supporting text-center",children:r.jsx("p",{children:"Having trouble? Make sure to check your spam folder."})})]})]})}):r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-6",children:r.jsxs(W,{className:"w-full max-w-md",children:[r.jsxs(Z,{className:"text-center",children:[r.jsx("div",{className:"flex justify-center mb-4",children:r.jsx(Be,{className:"w-12 h-12 text-trident-purple"})}),r.jsx(re,{className:"text-2xl",children:"Admin Access"}),r.jsx("p",{className:"body-secondary",children:d?"Create your admin account":"Sign in to access the admin dashboard"})]}),r.jsxs(H,{children:[r.jsxs("div",{className:"space-y-4",children:[r.jsx(Q2,{redirectTo:"/admin"}),r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 flex items-center",children:r.jsx(Dl,{className:"w-full"})}),r.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:r.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with email"})})]}),r.jsxs("form",{onSubmit:g,className:"space-y-4",children:[r.jsxs("div",{className:"relative",children:[r.jsx(xr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-supporting",size:20}),r.jsx(he,{type:"email",placeholder:"Enter your email",value:t,onChange:v=>n(v.target.value),required:!0,className:"pl-10 focus:ring-2 focus:ring-trident-purple focus:border-trident-purple",autoComplete:"email"})]}),r.jsxs("div",{className:"relative",children:[r.jsx(yl,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-supporting",size:20}),r.jsx(he,{type:a?"text":"password",placeholder:"Enter your password",value:i,onChange:v=>s(v.target.value),required:!0,className:"pl-10 pr-10 focus:ring-2 focus:ring-trident-purple focus:border-trident-purple",autoComplete:d?"new-password":"current-password",minLength:d?6:void 0}),r.jsx("button",{type:"button",onClick:()=>o(!a),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-supporting hover:text-readable focus:outline-none focus:ring-2 focus:ring-trident-purple rounded","aria-label":a?"Hide password":"Show password",children:a?r.jsx(PK,{size:20}):r.jsx(ai,{size:20})})]}),d&&r.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-3",children:r.jsxs("div",{className:"flex items-start space-x-2",children:[r.jsx(Pn,{className:"w-4 h-4 text-yellow-600 mt-0.5"}),r.jsxs("div",{className:"text-sm text-yellow-800",children:[r.jsx("p",{className:"font-medium",children:"Email Confirmation Required"}),r.jsx("p",{children:"You'll receive a confirmation email after registration."})]})]})}),r.jsx(V,{type:"submit",disabled:l||!t||!i,className:"w-full",children:l?"Processing...":d?"Create Account":"Sign In"})]})]}),r.jsx("div",{className:"mt-4 text-center",children:r.jsx("button",{type:"button",onClick:()=>u(!d),className:"text-sm text-trident-purple hover:underline",children:d?"Already have an account? Sign in":"Need to create an admin account? Sign up"})}),r.jsx("div",{className:"mt-4 text-xs text-supporting text-center",children:r.jsx("p",{children:"Secure authentication powered by Supabase"})})]})]})})};var $U={exports:{}},Nse="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Sse=Nse,kse=Sse;function LU(){}function UU(){}UU.resetWarningCache=LU;var Cse=function(){function e(i,s,a,o,l,c){if(c!==kse){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:UU,resetWarningCache:LU};return n.PropTypes=n,n};$U.exports=Cse();var _se=$U.exports;const G=jt(_se);function Tse(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var FU=j,Pse=Tse(FU);function hE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ese(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ase=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ose(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function i(s){return s.displayName||s.name||"Component"}return function(a){if(typeof a!="function")throw new Error("Expected WrappedComponent to be a React component.");var o=[],l;function c(){l=e(o.map(function(u){return u.props})),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(u){Ese(h,u);function h(){return u.apply(this,arguments)||this}h.peek=function(){return l},h.rewind=function(){if(h.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var g=l;return l=void 0,o=[],g};var m=h.prototype;return m.UNSAFE_componentWillMount=function(){o.push(this),c()},m.componentDidUpdate=function(){c()},m.componentWillUnmount=function(){var g=o.indexOf(this);o.splice(g,1),c()},m.render=function(){return Pse.createElement(a,this.props)},h}(FU.PureComponent);return hE(d,"displayName","SideEffect("+i(a)+")"),hE(d,"canUseDOM",Ase),d}}var Ise=Ose;const Dse=jt(Ise);var Mse=typeof Element<"u",Rse=typeof Map=="function",$se=typeof Set=="function",Lse=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Mx(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!Mx(e[i],t[i]))return!1;return!0}var a;if(Rse&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;for(a=e.entries();!(i=a.next()).done;)if(!Mx(i.value[1],t.get(i.value[0])))return!1;return!0}if($se&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(Lse&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;if(Mse&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&e.$$typeof)&&!Mx(e[s[i]],t[s[i]]))return!1;return!0}return e!==e&&t!==t}var Use=function(t,n){try{return Mx(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const Fse=jt(Use);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var mE=Object.getOwnPropertySymbols,Bse=Object.prototype.hasOwnProperty,Wse=Object.prototype.propertyIsEnumerable;function zse(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qse(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(a){s[a]=a}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Hse=qse()?Object.assign:function(e,t){for(var n,i=zse(e),s,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var o in n)Bse.call(n,o)&&(i[o]=n[o]);if(mE){s=mE(n);for(var l=0;l<s.length;l++)Wse.call(n,s[l])&&(i[s[l]]=n[s[l]])}}return i};const Vse=jt(Hse);var Mc={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},et={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(et).map(function(e){return et[e]});var Jt={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Ey={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fp={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Gse=Object.keys(Ey).reduce(function(e,t){return e[Ey[t]]=t,e},{}),Yse=[et.NOSCRIPT,et.SCRIPT,et.STYLE],Ts="data-react-helmet",Kse=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xse=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Qse=function(){function e(t,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Jse=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},fE=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},Zse=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},J2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},eae=function(t){var n=yu(t,et.TITLE),i=yu(t,fp.TITLE_TEMPLATE);if(i&&n)return i.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var s=yu(t,fp.DEFAULT_TITLE);return n||s||void 0},tae=function(t){return yu(t,fp.ON_CHANGE_CLIENT_STATE)||function(){}},p1=function(t,n){return n.filter(function(i){return typeof i[t]<"u"}).map(function(i){return i[t]}).reduce(function(i,s){return Hr({},i,s)},{})},nae=function(t,n){return n.filter(function(i){return typeof i[et.BASE]<"u"}).map(function(i){return i[et.BASE]}).reverse().reduce(function(i,s){if(!i.length)for(var a=Object.keys(s),o=0;o<a.length;o++){var l=a[o],c=l.toLowerCase();if(t.indexOf(c)!==-1&&s[c])return i.concat(s)}return i},[])},Tm=function(t,n,i){var s={};return i.filter(function(a){return Array.isArray(a[t])?!0:(typeof a[t]<"u"&&aae("Helmet: "+t+' should be of type "Array". Instead found type "'+Kse(a[t])+'"'),!1)}).map(function(a){return a[t]}).reverse().reduce(function(a,o){var l={};o.filter(function(m){for(var f=void 0,g=Object.keys(m),p=0;p<g.length;p++){var v=g[p],y=v.toLowerCase();n.indexOf(y)!==-1&&!(f===Jt.REL&&m[f].toLowerCase()==="canonical")&&!(y===Jt.REL&&m[y].toLowerCase()==="stylesheet")&&(f=y),n.indexOf(v)!==-1&&(v===Jt.INNER_HTML||v===Jt.CSS_TEXT||v===Jt.ITEM_PROP)&&(f=v)}if(!f||!m[f])return!1;var x=m[f].toLowerCase();return s[f]||(s[f]={}),l[f]||(l[f]={}),s[f][x]?!1:(l[f][x]=!0,!0)}).reverse().forEach(function(m){return a.push(m)});for(var c=Object.keys(l),d=0;d<c.length;d++){var u=c[d],h=Vse({},s[u],l[u]);s[u]=h}return a},[]).reverse()},yu=function(t,n){for(var i=t.length-1;i>=0;i--){var s=t[i];if(s.hasOwnProperty(n))return s[n]}return null},rae=function(t){return{baseTag:nae([Jt.HREF,Jt.TARGET],t),bodyAttributes:p1(Mc.BODY,t),defer:yu(t,fp.DEFER),encode:yu(t,fp.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:p1(Mc.HTML,t),linkTags:Tm(et.LINK,[Jt.REL,Jt.HREF],t),metaTags:Tm(et.META,[Jt.NAME,Jt.CHARSET,Jt.HTTPEQUIV,Jt.PROPERTY,Jt.ITEM_PROP],t),noscriptTags:Tm(et.NOSCRIPT,[Jt.INNER_HTML],t),onChangeClientState:tae(t),scriptTags:Tm(et.SCRIPT,[Jt.SRC,Jt.INNER_HTML],t),styleTags:Tm(et.STYLE,[Jt.CSS_TEXT],t),title:eae(t),titleAttributes:p1(Mc.TITLE,t)}},Z2=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Z2(t)},0)}}(),pE=function(t){return clearTimeout(t)},iae=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Z2:global.requestAnimationFrame||Z2,sae=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||pE:global.cancelAnimationFrame||pE,aae=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Pm=null,oae=function(t){Pm&&sae(Pm),t.defer?Pm=iae(function(){gE(t,function(){Pm=null})}):(gE(t),Pm=null)},gE=function(t,n){var i=t.baseTag,s=t.bodyAttributes,a=t.htmlAttributes,o=t.linkTags,l=t.metaTags,c=t.noscriptTags,d=t.onChangeClientState,u=t.scriptTags,h=t.styleTags,m=t.title,f=t.titleAttributes;eS(et.BODY,s),eS(et.HTML,a),lae(m,f);var g={baseTag:Id(et.BASE,i),linkTags:Id(et.LINK,o),metaTags:Id(et.META,l),noscriptTags:Id(et.NOSCRIPT,c),scriptTags:Id(et.SCRIPT,u),styleTags:Id(et.STYLE,h)},p={},v={};Object.keys(g).forEach(function(y){var x=g[y],b=x.newTags,w=x.oldTags;b.length&&(p[y]=b),w.length&&(v[y]=g[y].oldTags)}),n&&n(),d(t,p,v)},BU=function(t){return Array.isArray(t)?t.join(""):t},lae=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=BU(t)),eS(et.TITLE,n)},eS=function(t,n){var i=document.getElementsByTagName(t)[0];if(i){for(var s=i.getAttribute(Ts),a=s?s.split(","):[],o=[].concat(a),l=Object.keys(n),c=0;c<l.length;c++){var d=l[c],u=n[d]||"";i.getAttribute(d)!==u&&i.setAttribute(d,u),a.indexOf(d)===-1&&a.push(d);var h=o.indexOf(d);h!==-1&&o.splice(h,1)}for(var m=o.length-1;m>=0;m--)i.removeAttribute(o[m]);a.length===o.length?i.removeAttribute(Ts):i.getAttribute(Ts)!==l.join(",")&&i.setAttribute(Ts,l.join(","))}},Id=function(t,n){var i=document.head||document.querySelector(et.HEAD),s=i.querySelectorAll(t+"["+Ts+"]"),a=Array.prototype.slice.call(s),o=[],l=void 0;return n&&n.length&&n.forEach(function(c){var d=document.createElement(t);for(var u in c)if(c.hasOwnProperty(u))if(u===Jt.INNER_HTML)d.innerHTML=c.innerHTML;else if(u===Jt.CSS_TEXT)d.styleSheet?d.styleSheet.cssText=c.cssText:d.appendChild(document.createTextNode(c.cssText));else{var h=typeof c[u]>"u"?"":c[u];d.setAttribute(u,h)}d.setAttribute(Ts,"true"),a.some(function(m,f){return l=f,d.isEqualNode(m)})?a.splice(l,1):o.push(d)}),a.forEach(function(c){return c.parentNode.removeChild(c)}),o.forEach(function(c){return i.appendChild(c)}),{oldTags:a,newTags:o}},WU=function(t){return Object.keys(t).reduce(function(n,i){var s=typeof t[i]<"u"?i+'="'+t[i]+'"':""+i;return n?n+" "+s:s},"")},cae=function(t,n,i,s){var a=WU(i),o=BU(n);return a?"<"+t+" "+Ts+'="true" '+a+">"+J2(o,s)+"</"+t+">":"<"+t+" "+Ts+'="true">'+J2(o,s)+"</"+t+">"},dae=function(t,n,i){return n.reduce(function(s,a){var o=Object.keys(a).filter(function(d){return!(d===Jt.INNER_HTML||d===Jt.CSS_TEXT)}).reduce(function(d,u){var h=typeof a[u]>"u"?u:u+'="'+J2(a[u],i)+'"';return d?d+" "+h:h},""),l=a.innerHTML||a.cssText||"",c=Yse.indexOf(t)===-1;return s+"<"+t+" "+Ts+'="true" '+o+(c?"/>":">"+l+"</"+t+">")},"")},zU=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(i,s){return i[Ey[s]||s]=t[s],i},n)},uae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(i,s){return i[Gse[s]||s]=t[s],i},n)},hae=function(t,n,i){var s,a=(s={key:n},s[Ts]=!0,s),o=zU(i,a);return[L.createElement(et.TITLE,o,n)]},mae=function(t,n){return n.map(function(i,s){var a,o=(a={key:s},a[Ts]=!0,a);return Object.keys(i).forEach(function(l){var c=Ey[l]||l;if(c===Jt.INNER_HTML||c===Jt.CSS_TEXT){var d=i.innerHTML||i.cssText;o.dangerouslySetInnerHTML={__html:d}}else o[c]=i[l]}),L.createElement(t,o)})},Ra=function(t,n,i){switch(t){case et.TITLE:return{toComponent:function(){return hae(t,n.title,n.titleAttributes)},toString:function(){return cae(t,n.title,n.titleAttributes,i)}};case Mc.BODY:case Mc.HTML:return{toComponent:function(){return zU(n)},toString:function(){return WU(n)}};default:return{toComponent:function(){return mae(t,n)},toString:function(){return dae(t,n,i)}}}},qU=function(t){var n=t.baseTag,i=t.bodyAttributes,s=t.encode,a=t.htmlAttributes,o=t.linkTags,l=t.metaTags,c=t.noscriptTags,d=t.scriptTags,u=t.styleTags,h=t.title,m=h===void 0?"":h,f=t.titleAttributes;return{base:Ra(et.BASE,n,s),bodyAttributes:Ra(Mc.BODY,i,s),htmlAttributes:Ra(Mc.HTML,a,s),link:Ra(et.LINK,o,s),meta:Ra(et.META,l,s),noscript:Ra(et.NOSCRIPT,c,s),script:Ra(et.SCRIPT,d,s),style:Ra(et.STYLE,u,s),title:Ra(et.TITLE,{title:m,titleAttributes:f},s)}},fae=function(t){var n,i;return i=n=function(s){Jse(a,s);function a(){return Xse(this,a),Zse(this,s.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(l){return!Fse(this.props,l)},a.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case et.SCRIPT:case et.NOSCRIPT:return{innerHTML:c};case et.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(l){var c,d=l.child,u=l.arrayTypeChildren,h=l.newChildProps,m=l.nestedChildren;return Hr({},u,(c={},c[d.type]=[].concat(u[d.type]||[],[Hr({},h,this.mapNestedChildrenToProps(d,m))]),c))},a.prototype.mapObjectTypeChildren=function(l){var c,d,u=l.child,h=l.newProps,m=l.newChildProps,f=l.nestedChildren;switch(u.type){case et.TITLE:return Hr({},h,(c={},c[u.type]=f,c.titleAttributes=Hr({},m),c));case et.BODY:return Hr({},h,{bodyAttributes:Hr({},m)});case et.HTML:return Hr({},h,{htmlAttributes:Hr({},m)})}return Hr({},h,(d={},d[u.type]=Hr({},m),d))},a.prototype.mapArrayTypeChildrenToProps=function(l,c){var d=Hr({},c);return Object.keys(l).forEach(function(u){var h;d=Hr({},d,(h={},h[u]=l[u],h))}),d},a.prototype.warnOnInvalidChildren=function(l,c){return!0},a.prototype.mapChildrenToProps=function(l,c){var d=this,u={};return L.Children.forEach(l,function(h){if(!(!h||!h.props)){var m=h.props,f=m.children,g=fE(m,["children"]),p=uae(g);switch(d.warnOnInvalidChildren(h,f),h.type){case et.LINK:case et.META:case et.NOSCRIPT:case et.SCRIPT:case et.STYLE:u=d.flattenArrayTypeChildren({child:h,arrayTypeChildren:u,newChildProps:p,nestedChildren:f});break;default:c=d.mapObjectTypeChildren({child:h,newProps:c,newChildProps:p,nestedChildren:f});break}}}),c=this.mapArrayTypeChildrenToProps(u,c),c},a.prototype.render=function(){var l=this.props,c=l.children,d=fE(l,["children"]),u=Hr({},d);return c&&(u=this.mapChildrenToProps(c,u)),L.createElement(t,u)},Qse(a,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),a}(L.Component),n.propTypes={base:G.object,bodyAttributes:G.object,children:G.oneOfType([G.arrayOf(G.node),G.node]),defaultTitle:G.string,defer:G.bool,encodeSpecialCharacters:G.bool,htmlAttributes:G.object,link:G.arrayOf(G.object),meta:G.arrayOf(G.object),noscript:G.arrayOf(G.object),onChangeClientState:G.func,script:G.arrayOf(G.object),style:G.arrayOf(G.object),title:G.string,titleAttributes:G.object,titleTemplate:G.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var s=t.rewind();return s||(s=qU({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},i},pae=function(){return null},gae=Dse(rae,oae,qU)(pae),oi=fae(gae);oi.renderStatic=oi.rewind;const vae=()=>{const{toast:e}=Lt(),[t,n]=j.useState(null),[i,s]=j.useState(null),[a,o]=j.useState(!0);j.useEffect(()=>{const{data:{subscription:c}}=Q.auth.onAuthStateChange((d,u)=>{s(u),n((u==null?void 0:u.user)??null)});return Q.auth.getSession().then(({data:{session:d}})=>{s(d),n((d==null?void 0:d.user)??null),o(!1)}),()=>c.unsubscribe()},[]);const l=async()=>{try{console.log("π§ͺ Running quick test...");const c=await DU();console.log("β
Quick test completed:",c),e({title:"Test Completed",description:"Check console logs and your n8n/GHL systems for the test lead."})}catch(c){console.error("β Quick test failed:",c),e({title:"Test Failed",description:"Check console logs for error details.",variant:"destructive"})}};return a?r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-trident-purple"})}):!t||!i?r.jsx(n5,{onAuthSuccess:()=>{}}):r.jsxs(RU,{user:t,children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Admin Test Workflow - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"}),r.jsx("meta",{name:"googlebot",content:"noindex, nofollow"})]}),r.jsx("div",{className:"container mx-auto py-12 px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Admin Workflow Testing"}),r.jsx("p",{className:"text-lg text-gray-600",children:"Test the complete form submission workflow: Form β Supabase β n8n β GHL CRM"})]}),r.jsxs(W,{className:"mb-8",children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Quick Test"}),r.jsx(wt,{children:"Run a single test submission to verify the workflow is functioning"})]}),r.jsx(H,{children:r.jsx(V,{onClick:l,size:"lg",className:"w-full",children:"π Run Quick Test"})})]}),r.jsx(MU,{}),r.jsxs(W,{className:"mt-8",children:[r.jsx(Z,{children:r.jsx(re,{children:"What This Tests"})}),r.jsx(H,{className:"space-y-4",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-2",children:"π Workflow Steps"}),r.jsxs("ol",{className:"text-sm space-y-1 list-decimal list-inside",children:[r.jsx("li",{children:"Form submission with test data"}),r.jsx("li",{children:"Data sanitization and validation"}),r.jsx("li",{children:"Supabase edge function processing"}),r.jsx("li",{children:"n8n webhook trigger"}),r.jsx("li",{children:"GHL CRM contact creation"})]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold mb-2",children:"π What to Check"}),r.jsxs("ul",{className:"text-sm space-y-1 list-disc list-inside",children:[r.jsx("li",{children:"Browser console for detailed logs"}),r.jsx("li",{children:"n8n workflow execution history"}),r.jsx("li",{children:"GHL CRM for new test contacts"}),r.jsx("li",{children:"Any error messages in systems"})]})]})]})})]})]})})]})},xae=()=>{const e=zl();return j.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:r.jsxs("div",{className:"text-center",children:[r.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),r.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),r.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},yae=()=>r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Service Area Notice - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted flex items-center justify-center px-4",children:r.jsxs("div",{className:"max-w-2xl w-full bg-card rounded-lg shadow-xl p-8 md:p-12 text-center",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-full bg-primary/10 mb-6",children:r.jsx(Pl,{className:"w-10 h-10 text-primary"})}),r.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Service Area Notice"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Thank you for your interest in Trident Investigations. We currently provide private investigation services exclusively within the United States and Canada."}),r.jsxs("div",{className:"bg-muted/50 rounded-lg p-6 mb-8",children:[r.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Our Service Areas"}),r.jsxs("ul",{className:"text-left space-y-2 max-w-md mx-auto",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-primary mr-2",children:"β’"}),r.jsx("span",{children:"Utah, Idaho, and Wyoming (primary coverage)"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-primary mr-2",children:"β’"}),r.jsx("span",{children:"All 50 United States (network partners)"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-primary mr-2",children:"β’"}),r.jsx("span",{children:"Canada (select provinces)"})]})]})]}),r.jsxs("div",{className:"border-t border-border pt-6",children:[r.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Need International Assistance?"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"While we don't provide direct services outside North America, we may be able to refer you to trusted international investigation partners."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsxs("a",{href:"tel:+13855032939",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors ghl-number-swap",children:[r.jsx(fn,{className:"w-4 h-4"}),r.jsx("span",{className:"ghl-number-swap",children:"(385) 503-2939"})]}),r.jsxs("a",{href:"mailto:contact@tridentpi.net",className:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-border rounded-lg hover:bg-muted transition-colors",children:[r.jsx(xr,{className:"w-4 h-4"}),"Email Us"]})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground mt-8",children:"If you're located in the US or Canada and seeing this message in error, please contact us directly by phone."})]})})]}),bae=()=>{wn({title:"Utah Private Investigator | Licensed PI Services | Professional Investigations",description:"Professional Utah private investigator services. Licensed investigators for legal, domestic, corporate & personal matters. Confidential consultations. Statewide coverage. Call today.",keywords:"Utah private investigator, licensed PI Utah, investigation services, surveillance, background checks, legal investigations",canonicalUrl:"https://tridentinvestigationsutah.com/services/utah-private-investigator"});const e=[{icon:Jm,title:"Legal Investigation Support",description:"Evidence collection for proceedings",services:["Evidence collection for legal proceedings","Asset searches and financial investigation","Background investigations","Expert testimony services"]},{icon:pn,title:"Domestic & Family Investigations",description:"Marital and relationship investigations",services:["Marital and relationship investigations","Child custody investigations","Missing person location","Family law support"]},{icon:Qn,title:"Corporate & Business Investigations",description:"Employee screening and background checks",services:["Employee screening and background checks","Workplace investigations","Corporate fraud investigation","Due diligence services"]},{icon:Pi,title:"Personal Investigation Services",description:"Personal protection assessments",services:["Personal protection assessments","Social media investigation","Personal injury support","Adoption and genealogy research"]}],t=[{region:"Wasatch Front Region",cities:["Salt Lake City","Provo","Ogden","West Jordan","Sandy"]},{region:"Northern Utah",cities:["Logan","Layton","Bountiful","Brigham City","Cache Valley"]},{region:"Central Utah",cities:["Orem","American Fork","Payson","Spanish Fork","Lehi"]},{region:"Southern Utah",cities:["St. George","Cedar City","Moab","Price","Washington County"]}],n=[{icon:Be,title:"Licensed & Insured Utah PIs",description:"Current Utah PI licenses and comprehensive insurance coverage"},{icon:we,title:"Ethical Investigation Practices",description:"Strict adherence to ethical guidelines and legal requirements"},{icon:ai,title:"Complete Client Confidentiality",description:"Absolute confidentiality maintained throughout all processes"},{icon:Jm,title:"Legal Compliance & Court Standards",description:"All investigations meet legal standards for court admissibility"},{icon:w_,title:"Advanced Technology & Resources",description:"State-of-the-art equipment and comprehensive databases"},{icon:Os,title:"Professional Training & Education",description:"Ongoing training to maintain current techniques and standards"}],i=["Local Utah Knowledge","Rapid Response Capability","Custom Investigation Solutions","Transparent Communication","Results-Oriented Approach","Professional Network"],s=["Advanced surveillance equipment","Database access and resources","GPS tracking capabilities (legal)","Digital investigation tools","Professional documentation systems","Comprehensive reporting"],a=[{name:"Legal professionals and law firms",icon:Zn},{name:"Insurance companies",icon:Be},{name:"Corporate clients and businesses",icon:Qn},{name:"Healthcare facilities",icon:TK},{name:"Government agencies",icon:RK},{name:"Individual and family clients",icon:pn}],o=[{name:"Attorney Sarah M.",text:"Trident Investigations provided exceptional legal support for our complex family law case. Their professional documentation and expert testimony were instrumental in achieving a favorable outcome.",rating:5},{name:"Business Owner John D.",text:"Their corporate investigation services helped us identify internal theft issues quickly and professionally. The evidence they gathered was comprehensive and court-ready.",rating:5},{name:"Private Client Lisa K.",text:"Professional, confidential, and results-oriented. They handled our sensitive family matter with complete discretion and delivered exactly what we needed.",rating:5},{name:"Insurance Adjuster Mike R.",text:"Trident's statewide coverage and rapid response capability make them our go-to investigators for complex insurance fraud cases throughout Utah.",rating:5}],l=[{step:1,title:"Confidential Consultation",description:"Private discussion of your situation and investigation needs"},{step:2,title:"Custom Investigation Plan",description:"Tailored strategy developed to meet your specific objectives"},{step:3,title:"Professional Investigation Execution",description:"Experienced investigators execute the plan using proven methods"},{step:4,title:"Comprehensive Reporting",description:"Detailed documentation of findings with evidence and supporting materials"},{step:5,title:"Ongoing Support & Testimony",description:"Continued support including testimony and follow-up services as needed"}];return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-black/20"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Licensed Investigators"}),r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Court-Admissible Evidence"}),r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Confidential Service"})]}),r.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 leading-tight",children:"Professional Utah Private Investigator Services"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-trident-white/80",children:"Licensed | Professional | Confidential | Statewide Coverage"}),r.jsx("p",{className:"text-lg mb-12 text-trident-white/80 max-w-3xl mx-auto",children:"Need professional investigation services in Utah? Our licensed private investigators provide comprehensive investigation solutions for legal, personal, and business matters throughout the state. With years of experience and proven results, we help individuals, attorneys, and businesses get the evidence and information they need."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",children:[r.jsx(V,{size:"lg",className:"btn-primary",children:"Free Consultation"}),r.jsx(V,{size:"lg",className:"bg-trident-orange text-white hover:bg-trident-orange/90",children:"View Services"}),r.jsxs(V,{size:"lg",className:"btn-primary",children:[r.jsx(fn,{className:"mr-2 h-4 w-4"}),"Call (385) 275-8220"]})]}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-sm",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Be,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{children:"Licensed Utah PI"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{children:"Insured"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Os,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{children:"Experienced"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Jm,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{children:"Court-Approved"})]})]})]})})]}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Our Utah Private Investigation Services"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Comprehensive investigation solutions for all your needs throughout Utah"})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((c,d)=>r.jsxs(W,{className:"group hover:shadow-xl transition-all duration-300 hover:-translate-y-2 border-0 shadow-lg bg-trident-white",children:[r.jsxs(Z,{className:"text-center pb-4",children:[r.jsx("div",{className:"mx-auto w-16 h-16 bg-trident-black rounded-full flex items-center justify-center mb-4 group-hover:bg-trident-gold transition-colors",children:r.jsx(c.icon,{className:"h-8 w-8 text-trident-white"})}),r.jsx(re,{className:"text-xl mb-2",children:c.title}),r.jsx(wt,{className:"text-trident-black",children:c.description})]}),r.jsx(H,{children:r.jsx("ul",{className:"space-y-2",children:c.services.map((u,h)=>r.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[r.jsx(we,{className:"h-4 w-4 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:u})]},h))})})]},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Statewide Utah Coverage"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Professional investigation services available throughout Utah from Salt Lake City to rural communities"})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((c,d)=>r.jsxs(W,{className:"border border-trident-grey",children:[r.jsx(Z,{children:r.jsxs(re,{className:"text-lg text-trident-black flex items-center gap-2",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-gold"}),c.region]})}),r.jsx(H,{children:r.jsx("ul",{className:"space-y-2",children:c.cities.map((u,h)=>r.jsxs("li",{className:"text-sm text-trident-black flex items-center gap-2",children:[r.jsx("div",{className:"h-2 w-2 bg-trident-gold rounded-full"}),u]},h))})})]},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-black text-trident-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Our Professional Standards"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"Six key differentiators that set us apart in the Utah investigation industry"})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map((c,d)=>r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"mx-auto w-16 h-16 bg-trident-gold rounded-full flex items-center justify-center mb-4",children:r.jsx(c.icon,{className:"h-8 w-8 text-trident-white"})}),r.jsx("h3",{className:"text-xl font-semibold mb-3",children:c.title}),r.jsx("p",{className:"text-trident-grey",children:c.description})]},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Why Choose Trident Investigations"}),r.jsx("p",{className:"text-lg text-trident-black mb-8",children:"Five key reasons that make us Utah's premier investigation firm"})]}),r.jsx("div",{className:"grid lg:grid-cols-1 gap-8 max-w-4xl mx-auto",children:r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-black",children:"Licensed Utah Private Investigators"}),r.jsx("p",{className:"text-trident-black",children:"Our team holds current Utah private investigator licenses and maintains all required credentials for professional investigation services."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-black",children:"Proven Experience"}),r.jsx("p",{className:"text-trident-black",children:"Years of successful investigations throughout Utah with a track record of delivering results for our clients."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-black",children:"Comprehensive Services"}),r.jsx("p",{className:"text-trident-black",children:"Full-service investigation firm handling personal, legal, and business investigation needs."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-black",children:"Statewide Coverage"}),r.jsx("p",{className:"text-trident-black",children:"Professional investigation services available throughout Utah from Salt Lake City to rural communities."})]}),r.jsxs("div",{className:"bg-trident-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-semibold mb-3 text-trident-black",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black",children:"All investigations conducted to legal standards with professional documentation and testimony services available."})]})]})})]})}),r.jsx("section",{className:"py-20 bg-trident-white",children:r.jsx("div",{className:"container mx-auto px-4",children:r.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"What Sets Us Apart"}),r.jsx("p",{className:"text-lg text-trident-black mb-8",children:"Our combination of local Utah knowledge, advanced technology, and professional expertise makes us the premier choice for investigation services throughout the state."}),r.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:i.map((c,d)=>r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-gold"}),r.jsx("span",{className:"font-medium",children:c})]},d))})]}),r.jsx("div",{children:r.jsxs(W,{className:"border-0 shadow-xl",children:[r.jsx(Z,{children:r.jsx(re,{className:"text-xl text-trident-black",children:"Technology & Resources"})}),r.jsx(H,{children:r.jsx("ul",{className:"space-y-3",children:s.map((c,d)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-gold mt-0.5"}),r.jsx("span",{children:c})]},d))})})]})})]})})}),r.jsx("section",{className:"py-20 bg-trident-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Industries We Serve"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Professional investigation services for diverse client needs across Utah"})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((c,d)=>r.jsxs("div",{className:"bg-trident-black text-trident-white rounded-lg p-6 text-center hover:bg-trident-gold hover:text-trident-white transition-all duration-300 group",children:[r.jsx(c.icon,{className:"h-8 w-8 mx-auto mb-3 text-trident-white group-hover:text-trident-white"}),r.jsx("span",{className:"font-medium",children:c.name})]},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Client Testimonials"}),r.jsx("p",{className:"text-xl text-trident-black",children:"What our clients say about our professional investigation services"})]}),r.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:o.map((c,d)=>r.jsx(W,{className:"border-0 shadow-lg bg-trident-white",children:r.jsxs(H,{className:"p-6",children:[r.jsx("div",{className:"flex mb-4",children:[...Array(c.rating)].map((u,h)=>r.jsx(fa,{className:"h-5 w-5 fill-trident-gold text-trident-gold"},h))}),r.jsxs("p",{className:"text-trident-black mb-4 italic",children:['"',c.text,'"']}),r.jsxs("p",{className:"font-semibold text-trident-black",children:["- ",c.name]})]})},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-black text-trident-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Our Investigation Process"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"A professional 5-step process ensuring comprehensive and effective investigations"})]}),r.jsx("div",{className:"grid md:grid-cols-5 gap-8",children:l.map((c,d)=>r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"mx-auto w-16 h-16 bg-trident-gold rounded-full flex items-center justify-center mb-4 text-2xl font-bold",children:c.step}),r.jsx("h3",{className:"text-lg font-semibold mb-3",children:c.title}),r.jsx("p",{className:"text-trident-grey text-sm",children:c.description})]},d))})]})}),r.jsx("section",{className:"py-20 bg-trident-white",children:r.jsx("div",{className:"container mx-auto px-4",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Start with a Free Consultation"}),r.jsx("p",{className:"text-xl text-trident-black mb-4",children:"Contact us today for a confidential consultation about your Utah private investigation needs."}),r.jsx("p",{className:"text-trident-black",children:"We'll discuss your situation, explain how our services can help, and provide a clear plan for achieving your objectives."}),r.jsx("p",{className:"text-lg font-semibold text-trident-black mt-6",children:"Call (385) 275-8220 or complete our online contact form to speak with an experienced Utah private investigator about your case."})]}),r.jsxs(W,{className:"border-0 shadow-xl",children:[r.jsxs(Z,{children:[r.jsx(re,{className:"text-2xl text-trident-black text-center",children:"Professional Consultation Form"}),r.jsx(wt,{className:"text-center",children:"All information shared is completely confidential"})]}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"name",children:"Full Name"}),r.jsx(he,{id:"name",placeholder:"Your full name"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"phone",children:"Phone Number"}),r.jsx(he,{id:"phone",placeholder:"(801) 555-0123"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"email",children:"Email Address"}),r.jsx(he,{id:"email",type:"email",placeholder:"your.email@example.com"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"investigation-type",children:"Investigation Type"}),r.jsxs(un,{children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select investigation type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"legal",children:"Legal Investigation Support"}),r.jsx(be,{value:"domestic",children:"Domestic & Family Investigations"}),r.jsx(be,{value:"corporate",children:"Corporate & Business Investigations"}),r.jsx(be,{value:"personal",children:"Personal Investigation Services"}),r.jsx(be,{value:"other",children:"Other"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"timeline",children:"Timeline"}),r.jsxs(un,{children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"When do you need results?"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"urgent",children:"Urgent (within 1 week)"}),r.jsx(be,{value:"soon",children:"Soon (1-2 weeks)"}),r.jsx(be,{value:"flexible",children:"Flexible (2-4 weeks)"}),r.jsx(be,{value:"planning",children:"Planning ahead"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"details",children:"Case Details"}),r.jsx(di,{id:"details",placeholder:"Please provide a brief description of your situation and what you need investigated. All information is confidential.",rows:4})]}),r.jsx("div",{className:"bg-blue-50 p-4 rounded-lg",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Be,{className:"h-5 w-5 text-trident-dark mt-0.5"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-trident-dark mb-1",children:"Confidentiality Assurance"}),r.jsx("p",{className:"text-sm text-gray-600",children:"All consultations are completely confidential. We guarantee a response within 24 hours."})]})]})}),r.jsx(V,{className:"btn-primary w-full",size:"lg",children:"Request Free Consultation"})]})]})]})})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Contact Information"}),r.jsx("p",{className:"text-xl text-trident-black",children:"Multiple ways to reach our professional investigation team"})]}),r.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-4xl mx-auto",children:[r.jsx(W,{className:"border-0 shadow-lg text-center bg-trident-white",children:r.jsxs(H,{className:"p-6",children:[r.jsx(fn,{className:"h-12 w-12 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Phone"}),r.jsx("p",{className:"text-trident-black font-semibold text-xl",children:"(385) 275-8220"}),r.jsx("p",{className:"text-sm text-trident-black mt-2",children:"24/7 Emergency Line Available"})]})}),r.jsx(W,{className:"border-0 shadow-lg text-center bg-trident-white",children:r.jsxs(H,{className:"p-6",children:[r.jsx(xr,{className:"h-12 w-12 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Email"}),r.jsx("p",{className:"text-trident-black font-semibold",children:"info@tridentinvestigations.com"}),r.jsx("p",{className:"text-sm text-trident-black mt-2",children:"Secure Communication"})]})}),r.jsx(W,{className:"border-0 shadow-lg text-center bg-trident-white",children:r.jsxs(H,{className:"p-6",children:[r.jsx(Sn,{className:"h-12 w-12 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Business Hours"}),r.jsx("p",{className:"text-trident-black font-semibold",children:"Mon-Fri: 8AM-6PM"}),r.jsx("p",{className:"text-sm text-trident-black",children:"Emergency Services: 24/7"})]})})]})]})}),r.jsx("section",{className:"py-20 bg-trident-black text-trident-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Credentials & Certifications"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"Our professional qualifications and industry recognition"})]}),r.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-8 text-center",children:[r.jsxs("div",{children:[r.jsx(Be,{className:"h-16 w-16 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Utah PI License"}),r.jsx("p",{className:"text-trident-grey text-sm",children:"Current and Active"})]}),r.jsxs("div",{children:[r.jsx(Os,{className:"h-16 w-16 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Professional Associations"}),r.jsx("p",{className:"text-trident-grey text-sm",children:"Industry Memberships"})]}),r.jsxs("div",{children:[r.jsx(Ct,{className:"h-16 w-16 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Training Certifications"}),r.jsx("p",{className:"text-trident-grey text-sm",children:"Ongoing Education"})]}),r.jsxs("div",{children:[r.jsx(Jm,{className:"h-16 w-16 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Court Experience"}),r.jsx("p",{className:"text-trident-grey text-sm",children:"Expert Testimony"})]}),r.jsxs("div",{children:[r.jsx(fa,{className:"h-16 w-16 text-trident-gold mx-auto mb-4"}),r.jsx("h3",{className:"font-semibold mb-2",children:"Success Statistics"}),r.jsx("p",{className:"text-trident-grey text-sm",children:"Proven Results"})]})]})]})}),r.jsx(tr,{title:"Get Professional Utah Investigation Services Today",description:"Contact our licensed Utah private investigators for comprehensive investigation solutions that deliver the evidence and information you need.",buttonText:"Get Free Consultation",buttonLink:"/contact"}),r.jsx(Qe,{})]})},wae=()=>r.jsx("section",{className:"pt-36 pb-16 hero-gradient text-white relative",children:r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:"Professional Domestic Investigation Services"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-trident-white",children:"Licensed private investigators providing court-admissible evidence gathering for marital concerns, child custody disputes, and cohabitation verification within full legal compliance."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx("a",{href:"/contact",className:"btn-primary text-center",children:"Schedule Confidential Consultation"}),r.jsx("a",{href:"tel:+13855032939",className:"btn-secondary text-center",children:"Call (385) 503-2939"})]})]})})}),jae=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Our Domestic Investigation Services"}),r.jsx("p",{className:"text-lg text-trident-black opacity-70",children:"Professional, discreet, and legally compliant domestic investigations tailored to your specific needs."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(Be,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Marital Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Discreet surveillance and evidence gathering for suspected infidelity cases with court-admissible documentation."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(pn,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Child Custody Support"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Comprehensive investigations to support child custody cases, documenting parental fitness and living conditions."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(Ct,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Cohabitation Verification"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Document cohabitation status for alimony modification cases with legally admissible evidence."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(ai,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Surveillance Services"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Professional surveillance operations conducted within legal boundaries with detailed documentation."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(Pi,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Background Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Thorough background checks for personal relationships, employment verification, and character assessment."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx(Zn,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Court Support"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Expert witness testimony and professional case documentation for legal proceedings."})]})]})]})}),Nae=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Legal Compliance & Ethics"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-12",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(Be,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Utah Licensed & Bonded"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"All our investigators are licensed with the Utah Bureau of Criminal Identification (License #G105645) and fully bonded for your protection."}),r.jsxs("ul",{className:"text-sm text-trident-black opacity-70 space-y-2",children:[r.jsx("li",{children:"β’ Professional liability insurance"}),r.jsx("li",{children:"β’ Compliance with Utah Code Β§ 53-9"}),r.jsx("li",{children:"β’ Regular continuing education requirements"})]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(QR,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Our evidence gathering methods ensure all documentation meets legal standards for court proceedings."}),r.jsxs("ul",{className:"text-sm text-trident-black opacity-70 space-y-2",children:[r.jsx("li",{children:"β’ Proper chain of custody protocols"}),r.jsx("li",{children:"β’ Detailed time-stamped documentation"}),r.jsx("li",{children:"β’ Professional testimony available"})]})]})]}),r.jsx("div",{className:"bg-yellow-50 border border-yellow-200 p-6 rounded-lg",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(ri,{className:"w-6 h-6 text-yellow-600 mr-3 mt-1 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-yellow-800 mb-2",children:"Important Legal Notice"}),r.jsx("p",{className:"text-yellow-700 text-sm",children:"All domestic investigations are conducted within strict legal boundaries. We do not engage in illegal surveillance, trespassing, or invasion of privacy. Our methods comply with federal and state privacy laws, including Utah Code Β§ 76-9-402 regarding privacy violations."})]})]})})]})})}),Sae=()=>{const e=[{question:"How much does a domestic investigation cost?",answer:"Domestic investigation costs vary based on complexity and duration. Simple cases may require 10-20 hours of work, while complex surveillance cases can take weeks. We provide detailed cost estimates during your free consultation and work within your budget whenever possible."},{question:"Is hiring a private investigator for domestic matters legal?",answer:"Yes, hiring a licensed private investigator for domestic investigations is completely legal when conducted properly. We operate within all federal and state laws, including privacy statutes, and ensure all evidence is gathered through legal means."},{question:"Can the evidence you gather be used in court?",answer:"Yes, evidence gathered by our licensed investigators is admissible in court when properly documented. We follow strict protocols for evidence collection, maintain proper chain of custody, and can provide expert witness testimony when needed."},{question:"How long do domestic investigations typically take?",answer:"Investigation duration varies significantly based on case complexity. Background checks may take 1-3 days, while surveillance operations can range from a few days to several weeks. We'll provide estimated timelines during your consultation."},{question:"Will my spouse know I hired an investigator?",answer:"Our investigations are conducted with complete discretion. Professional investigators are trained to remain undetected during surveillance operations. However, evidence gathered may eventually be disclosed if used in legal proceedings."},{question:"What types of evidence can you legally gather?",answer:"We can legally gather photographic evidence, video surveillance (in public areas), public records, witness statements, and other documentation that doesn't violate privacy laws. We cannot intercept communications, trespass on private property, or engage in illegal surveillance methods."}];return r.jsx(IL,{faqs:e,title:"Domestic Investigation FAQ"})},kae=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12",children:"Why Choose Trident Investigations"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[r.jsxs("div",{className:"text-center",children:[r.jsx(Os,{className:"w-12 h-12 text-trident-purple mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Licensed & Bonded"}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:"Utah License #G105645"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Be,{className:"w-12 h-12 text-trident-purple mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Legal Compliance"}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:"Court-admissible evidence gathering"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Sn,{className:"w-12 h-12 text-trident-purple mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Professional Experience"}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:"15+ years experience"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(pn,{className:"w-12 h-12 text-trident-purple mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Confidential Service"}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:"Protected by Utah Code Β§ 53-9-116"})]})]})]})})}),Cae=()=>(wn({title:"Professional Domestic Investigation Services | Utah Private Investigator",description:"Licensed domestic investigation services in Utah. Court-admissible evidence gathering for marital concerns, child custody, and cohabitation cases. Professional surveillance within legal boundaries.",keywords:"domestic investigations Utah, marital investigations, infidelity investigation, child custody investigation, cohabitation investigation, private investigator Utah"}),r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx(wae,{}),r.jsx("section",{className:"py-8 bg-trident-smoke",children:r.jsx("div",{className:"container-custom",children:r.jsx(Wb,{})})}),r.jsx(jae,{}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Specialized Cohabitation Investigations"}),r.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"If you're paying alimony and suspect your ex-spouse is cohabitating, you could save thousands. Utah law allows alimony modification when cohabitation is proven."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[r.jsx(te,{to:"/services/domestic/cohabitation",className:"block",children:r.jsxs("div",{className:"bg-gradient-to-r from-trident-gold to-orange-700 text-white p-6 rounded-lg hover:shadow-lg transition-all h-[140px] flex flex-col items-center justify-center",children:[r.jsx(y_,{className:"w-8 h-8 mb-2 mx-auto"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Learn More"}),r.jsx("p",{className:"text-sm",children:"Detailed investigation services"})]})}),r.jsx(te,{to:"/services/domestic/cohabitation#savings-calculator",className:"block",children:r.jsxs("div",{className:"bg-gradient-to-r from-trident-blue to-blue-700 text-white p-6 rounded-lg hover:shadow-lg transition-all h-[140px] flex flex-col items-center justify-center",children:[r.jsx(HR,{className:"w-8 h-8 mb-2 mx-auto"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Savings Calculator"}),r.jsx("p",{className:"text-sm",children:"Calculate your potential savings"})]})}),r.jsx(te,{to:"/services/domestic/cohabitation#assessment-quiz",className:"block",children:r.jsxs("div",{className:"bg-gradient-to-r from-trident-gold to-orange-700 text-white p-6 rounded-lg hover:shadow-lg transition-all h-[140px] flex flex-col items-center justify-center",children:[r.jsx(CK,{className:"w-8 h-8 mb-2 mx-auto"}),r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Free Assessment"}),r.jsx("p",{className:"text-sm",children:"Take our cohabitation quiz"})]})})]}),r.jsx("div",{className:"bg-trident-smoke border border-trident-gold rounded-lg p-6",children:r.jsx("p",{className:"text-trident-black font-semibold",children:"β οΈ Important: You have only 1 year from discovering cohabitation to file for alimony modification under Utah law."})})]})})}),r.jsx(Nae,{}),r.jsx(Sae,{}),r.jsx(kae,{}),r.jsx(tr,{title:"Need Professional Domestic Investigation Services?",subtitle:"Contact our licensed investigators for a confidential consultation about your case."}),r.jsx(Qe,{})]})),_ae=()=>(wn({title:ft.services.corporate.title,description:ft.services.corporate.description,keywords:ft.services.corporate.keywords,canonicalUrl:"https://tridentpi.net/services/corporate"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative flex items-center pt-32 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Corporate Investigations - Fraud Detection & Employee Misconduct"}),r.jsx("p",{className:"text-xl mb-8 text-readable-light",children:"Professional, discreet investigation services to protect your business from fraud, theft, and misconduct."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(te,{to:"/contact",className:"btn-primary",children:"Schedule a Consultation"}),r.jsx("a",{href:"tel:+18001234567",className:"btn-secondary",children:"Call (385) 275-8220"})]})]})})]}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Protect Your Business with Professional Investigations"}),r.jsx("p",{className:"mb-4 text-text-secondary",children:"Trident Investigations provides comprehensive corporate investigation services designed to help businesses identify and resolve issues related to fraud, employee misconduct, compliance violations, and other internal threats."}),r.jsx("p",{className:"mb-4 text-text-secondary",children:"Our experienced team of investigators brings law enforcement expertise and advanced investigative techniques to every case, ensuring thorough, legally compliant results you can depend on."}),r.jsx("p",{className:"text-text-secondary",children:"Based in Utah and serving clients throughout Idaho and Wyoming, our corporate investigations team understands the unique challenges businesses face in today's complex environment."})]}),r.jsxs("div",{className:"bg-gray-100 p-8 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Our Corporate Investigation Services Include:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx(Be,{className:"h-6 w-6 text-trident-purple mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Fraud & embezzlement investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Qn,{className:"h-6 w-6 text-trident-purple mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Internal theft & asset misappropriation"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Gi,{className:"h-6 w-6 text-trident-purple mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Employee misconduct & policy violations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Fl,{className:"h-6 w-6 text-trident-purple mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Background investigations & due diligence"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Pn,{className:"h-6 w-6 text-trident-purple mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{children:"Compliance investigations & risk assessments"})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Corporate Investigation Services"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md order-2 md:order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Fraud & Embezzlement Investigations"}),r.jsx("p",{className:"mb-4 text-text-secondary",children:"Corporate fraud can cost businesses millions in lost revenue and reputational damage. Our investigators are skilled at uncovering various types of fraud, from accounting irregularities to complex embezzlement schemes."}),r.jsx("p",{className:"text-text-secondary",children:"We employ forensic accounting techniques, digital forensics, surveillance, and interviews to identify perpetrators and document evidence admissible in legal proceedings."})]}),r.jsx("div",{className:"order-1 md:order-2",children:r.jsxs("div",{className:"bg-trident-dark p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-white",children:"Signs of Potential Fraud:"}),r.jsxs("ul",{className:"space-y-2 text-trident-gray",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Unexplained financial discrepancies"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Missing inventory or assets"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Unusual vendor relationships"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Lifestyle changes among employees"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Manipulation of accounting records"})]})]})]})})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsx("div",{className:"order-2",children:r.jsxs("div",{className:"bg-trident-dark p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-white",children:"Our Investigation Process:"}),r.jsxs("ol",{className:"space-y-2 text-trident-gray list-decimal pl-5",children:[r.jsx("li",{children:"Initial consultation and case assessment"}),r.jsx("li",{children:"Development of investigation strategy"}),r.jsx("li",{children:"Evidence gathering and documentation"}),r.jsx("li",{children:"Interviews with relevant parties"}),r.jsx("li",{children:"Surveillance and monitoring when necessary"}),r.jsx("li",{children:"Detailed report with findings and recommendations"}),r.jsx("li",{children:"Expert testimony if needed for legal proceedings"})]})]})}),r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Employee Misconduct Investigations"}),r.jsx("p",{className:"mb-4 text-trident-gray",children:"When employee behavior threatens your business, quick and discreet action is essential. Our investigators handle cases involving harassment, policy violations, theft, moonlighting, and other misconduct."}),r.jsx("p",{className:"text-text-secondary",children:"We conduct thorough, unbiased investigations that respect privacy while uncovering the facts you need to make informed decisions and mitigate risks to your organization."})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md order-2 md:order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Background Investigations & Due Diligence"}),r.jsx("p",{className:"mb-4 text-trident-gray",children:"Before making significant business decisions, know who you're dealing with. Our comprehensive background investigations provide insights into potential partners, acquisition targets, and key hires."}),r.jsx("p",{className:"text-text-secondary",children:"We verify credentials, uncover litigation history, assess financial stability, and identify potential conflicts of interest or reputational concerns that could impact your business relationships."})]}),r.jsx("div",{className:"order-1 md:order-2",children:r.jsxs("div",{className:"bg-trident-dark p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-white",children:"Our Due Diligence Covers:"}),r.jsxs("ul",{className:"space-y-2 text-trident-gray",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Criminal record searches"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Civil litigation history"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Education and employment verification"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Business and financial analysis"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Undisclosed conflicts of interest"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β’"}),r.jsx("span",{children:"Asset and property verification"})]})]})]})})]})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"How confidential are corporate investigations?"}),r.jsx("p",{className:"text-text-secondary",children:"We maintain strict confidentiality throughout the investigation process. Our team uses discreet methods, secure communications, and confidentiality agreements to protect sensitive information. We can work under attorney-client privilege when appropriate to add additional legal protection."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"What evidence can be used in termination or legal proceedings?"}),r.jsx("p",{className:"text-text-secondary",children:"Our investigators document evidence in compliance with legal requirements, ensuring it's admissible in court or administrative proceedings. We provide detailed reports, photographic/video evidence, interview statements, and can offer expert testimony if your case proceeds to litigation."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"How long do corporate investigations typically take?"}),r.jsx("p",{className:"text-text-secondary",children:"The timeline varies based on the complexity of the case. Simple investigations may be completed in days, while complex fraud or multi-location cases may take several weeks. We prioritize thoroughness while working efficiently to minimize disruption to your business."})]}),r.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Do you work with our legal counsel?"}),r.jsx("p",{className:"text-trident-gray",children:"Yes, we regularly collaborate with corporate legal teams and outside counsel. Working under the direction of attorneys can help maintain privilege and ensure the investigation supports your legal strategy. We're experienced at providing litigation support and expert testimony."})]})]})]})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"What Our Clients Say"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-purple opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-dark italic mb-4",children:'"Trident Investigations uncovered a complex fraud scheme that had been draining our company for months. Their thorough investigation provided exactly the evidence we needed for both termination and prosecution."'}),r.jsx("div",{className:"font-bold text-trident-dark",children:"CFO, Manufacturing Company"}),r.jsx("div",{className:"text-sm text-trident-gray",children:"Salt Lake City, UT"})]}),r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-purple opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-dark italic mb-4",children:'"We hired Trident for background investigations during an acquisition. Their detailed report revealed critical issues the target company had concealed, ultimately saving us from a disastrous deal."'}),r.jsx("div",{className:"font-bold text-trident-dark",children:"Legal Counsel, Technology Firm"}),r.jsx("div",{className:"text-sm text-trident-gray",children:"Boise, ID"})]})]})]})}),r.jsx(tr,{title:"Protect Your Business From Threats",subtitle:"Our corporate investigation team is ready to help safeguard your business and address potential issues discreetly.",buttonText:"Schedule a Confidential Consultation"}),r.jsx(Qe,{})]})),Tae=()=>(wn({title:ft.services.criminal.title,description:ft.services.criminal.description,keywords:ft.services.criminal.keywords,canonicalUrl:"https://tridentpi.net/services/criminal"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white",children:r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Criminal Investigation Services - Defense Support & Evidence Gathering"}),r.jsx("p",{className:"text-xl text-trident-grey mb-8",children:"Professional investigative services supporting attorneys, defendants, and families in criminal cases"})]})})}),r.jsx("section",{className:"py-8 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"bg-trident-smoke p-6 rounded-lg shadow-md border-l-4 border-trident-gold",children:[r.jsx("h3",{className:"text-xl font-bold mb-2 text-trident-black",children:"Good vs. Bad Investigators"}),r.jsxs("p",{className:"text-trident-black",children:[r.jsx("strong",{children:"Bad investigators"})," will act illegally or unethically and may ruin your case.",r.jsx("strong",{className:"ml-2",children:"Good investigators"})," will likely get the answers but in a way that preserves the value of the evidence gathered. All our methods comply with Utah Code Title 53, Chapter 9, ensuring legally admissible evidence."]})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Professional Criminal Investigation Services"}),r.jsx("p",{className:"text-lg mb-8 text-center text-trident-grey",children:"At Trident Investigations, we provide comprehensive criminal investigation services for defendants, attorneys, and families. Our experienced team helps find essential evidence, locate witnesses, and build strong defenses."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mt-12",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(Be,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Defense Investigations"}),r.jsx("p",{className:"text-trident-grey",children:"We work with defense attorneys to find exculpatory evidence, interview witnesses, and develop case strategies that support your defense."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(Pi,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Witness Location"}),r.jsx("p",{className:"text-trident-grey",children:"Our team excels at finding critical witnesses who may have valuable testimony for your criminal case."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(Ct,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Evidence Analysis"}),r.jsx("p",{className:"text-trident-grey",children:"We carefully review evidence, identify inconsistencies, and help attorneys prepare effective cross-examinations."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(we,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Background Investigations"}),r.jsx("p",{className:"text-trident-grey",children:"Thorough background checks on witnesses, accusers, and other parties involved in your criminal case."})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Our Investigative Methods"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:[r.jsx("div",{className:"bg-white p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(ai,{className:"w-8 h-8 text-trident-blue mr-3 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Observation"}),r.jsx("p",{className:"text-trident-grey",children:"Legal surveillance conducted in public places without violating privacy laws or trespassing."})]})]})}),r.jsx("div",{className:"bg-white p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(Pi,{className:"w-8 h-8 text-trident-blue mr-3 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Public Record Searches"}),r.jsx("p",{className:"text-trident-grey",children:"Accessing court filings, property records, and other public documents relevant to your case."})]})]})}),r.jsx("div",{className:"bg-white p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(Ct,{className:"w-8 h-8 text-trident-blue mr-3 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Interviews"}),r.jsx("p",{className:"text-trident-grey",children:"Professional interviews with witnesses conducted ethically to document their accounts."})]})]})})]}),r.jsx("div",{className:"bg-white p-6 rounded-lg shadow-md border-t-4 border-trident-blue",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(Zn,{className:"w-10 h-10 text-trident-blue mr-4 flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Legal Compliance"}),r.jsx("p",{className:"text-trident-grey",children:"All our investigation methods comply with Utah Code Title 53, Chapter 9, which regulates private investigators. We obtain proper licenses, maintain client confidentiality, and operate within state and federal law. This ensures that all evidence gathered is legally admissible in court."})]})]})})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Criminal Investigation Services"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Case Analysis & Strategy"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"We review case details and police reports to identify weaknesses in the prosecution's case and develop effective defense strategies."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Thorough review of discovery materials"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Identification of procedural errors"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Strategic planning with defense counsel"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Why Case Analysis Matters"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"A thorough case review often reveals critical details missed by law enforcement or prosecutors. Our investigators have uncovered evidence that has led to reduced charges and even case dismissals."})]})]}),r.jsxs("div",{className:"flex flex-col md:flex-row-reverse gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Witness Interviews"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"We conduct professional interviews with witnesses to document their accounts and identify inconsistencies in testimony."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Recorded witness statements"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Identification of favorable witnesses"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Discovery of overlooked witnesses"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Expert Interviewing Techniques"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"Our investigators use proven techniques to elicit accurate information from witnesses. We know how to ask the right questions to uncover crucial details that can significantly impact your case."})]})]})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"When should I hire a private investigator for a criminal case?"}),r.jsx("p",{className:"text-trident-grey",children:"It's best to hire a private investigator as early as possible in the process. The sooner we can begin investigating, the better chance we have of finding critical evidence before it disappears and interviewing witnesses while memories are fresh."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How do you work with defense attorneys?"}),r.jsx("p",{className:"text-trident-grey",children:"We work directly with defense attorneys as part of the defense team. We provide regular updates, share our findings, and coordinate strategy. All of our work is protected by attorney-client privilege when properly structured."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"What makes your criminal investigation services different?"}),r.jsx("p",{className:"text-trident-grey",children:"Our team includes former law enforcement officers who understand how criminal investigations work from the inside. We know what to look for and how to find the weaknesses in a prosecution's case that others might miss."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Are your investigations confidential?"}),r.jsx("p",{className:"text-trident-grey",children:"Absolutely. We maintain strict confidentiality in all of our cases. When working under the direction of an attorney, our work is generally protected by attorney-client privilege and work product doctrine."})]})]})]})}),r.jsx(tr,{title:"Need Help With a Criminal Case?",description:"Contact our team for a confidential consultation about your criminal investigation needs.",buttonText:"Contact Us Now",buttonLink:"/contact"}),r.jsx(Qe,{})]})),Pae=()=>(wn({title:ft.services.assetSearches.title,description:ft.services.assetSearches.description,keywords:ft.services.assetSearches.keywords,canonicalUrl:"https://tridentpi.net/services/asset-searches"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70 z-0"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsx("div",{className:"mb-6",children:r.jsx("span",{className:"inline-block bg-trident-gold/20 text-trident-gold px-4 py-2 rounded-full text-sm font-medium mb-4",children:"Professional β’ Legal β’ Court-Admissible Evidence"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Comprehensive Asset Search Services"}),r.jsx("p",{className:"text-xl text-trident-white opacity-80 mb-8",children:"Advanced blockchain technology access discovers 45% more assets than traditional methods. Legally obtained, court-admissible results that competitors simply cannot match."}),r.jsxs("div",{className:"flex flex-wrap gap-4 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(iP,{className:"w-5 h-5 text-primary"}),r.jsx("span",{className:"text-sm",children:"SWIFT Network Access"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(yl,{className:"w-5 h-5 text-primary"}),r.jsx("span",{className:"text-sm",children:"GLBA Compliant"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Ct,{className:"w-5 h-5 text-primary"}),r.jsx("span",{className:"text-sm",children:"Court-Admissible"})]})]})]})})]}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-trident-black",children:"Why Trident's Asset Searches Deliver Superior Results"}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center mb-12",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Complete Coverage with Advanced Banking Technology"}),r.jsx("p",{className:"text-muted-foreground mb-6",children:"While most investigators miss nearly half of all banking accounts, Trident provides comprehensive asset discovery through our access to both traditional banking networks and modern blockchain-based transaction systems."}),r.jsx("div",{className:"bg-muted border-l-4 border-primary p-4 mb-6",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(DK,{className:"w-5 h-5 text-primary mt-0.5"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-foreground mb-2",children:"Important: Blockchain in Banking"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:`When we refer to "blockchain" in banking, we're not talking about cryptocurrency. We're referring to the secure digital ledger technology that major banks now use for everyday transactions like deposits, withdrawals, and transfersβcompletely separate from crypto trading.`})]})]})})]}),r.jsxs("div",{className:"bg-muted p-8 rounded-lg",children:[r.jsxs("div",{className:"text-center mb-6",children:[r.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"45%"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"of financial institutions have migrated to blockchain-based transaction processing since 2014"})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Traditional banking systems access"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Blockchain transaction processing"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),r.jsx("span",{className:"text-sm",children:"SWIFT network authorization"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),r.jsx("span",{className:"text-sm",children:"No accounts left undiscovered"})]})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-trident-black",children:"Legally Obtained & Court-Admissible Evidence"}),r.jsx("p",{className:"text-lg text-center text-trident-black mb-12",children:'Unlike investigators who use questionable "pretexting" methods, Trident obtains all financial information through legitimate banking networks and legal channels.'}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:[r.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-md text-center",children:[r.jsx(iP,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"SWIFT Network Access"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Authorized member of the Society for Worldwide Interbank Financial Telecommunication"})]}),r.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-md text-center",children:[r.jsx(Be,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Full Legal Compliance"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Complies with GLBA, Dodd-Frank, and Privacy Act of 1974"})]}),r.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-md text-center",children:[r.jsx(Ct,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Court-Admissible"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Every piece of information can be presented in legal proceedings"})]}),r.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-md text-center",children:[r.jsx(Hn,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"No Legal Risk"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Clients protected from prosecution for information gathering methods"})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Our Asset Search Services"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-12",children:[r.jsxs("div",{className:"bg-card border-2 border-border rounded-lg p-6 hover:border-primary transition-colors",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx(Et,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Statewide Bank Searches"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Traditional banking systems within target state. Ideal for localized investigations and cost-conscious clients."})]})]}),r.jsxs("div",{className:"space-y-2 mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"All major state and federally chartered banks"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Pn,{className:"w-4 h-4 text-destructive"}),r.jsx("span",{className:"text-sm",children:"Does not include blockchain-based systems"})]})]})]}),r.jsxs("div",{className:"bg-card border-2 border-primary rounded-lg p-6 relative",children:[r.jsx("div",{className:"absolute -top-3 left-4 bg-primary text-primary-foreground px-3 py-1 rounded-full text-sm font-medium",children:"Recommended"}),r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx(Pl,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Nationwide Bank Searches"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Complete coverage across all 50 states with both traditional AND blockchain-based banking systems."})]})]}),r.jsxs("div",{className:"space-y-2 mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Comprehensive account discovery"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Hidden or forgotten accounts included"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Maximum asset discovery"})]})]})]}),r.jsxs("div",{className:"bg-card border-2 border-border rounded-lg p-6 hover:border-primary transition-colors",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx($s,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Nationwide Brokerage Searches"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Investment accounts, retirement funds, and securities. Higher asset values typically discovered."})]})]}),r.jsxs("div",{className:"space-y-2 mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Investment & retirement accounts"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Checking/savings at brokerage firms"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Essential for high-net-worth individuals"})]})]})]}),r.jsxs("div",{className:"bg-card border-2 border-border rounded-lg p-6 hover:border-primary transition-colors",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx(fa,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Complete Bank & Brokerage Combination"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Most comprehensive asset discovery available. Combines all banking and investment account searches."})]})]}),r.jsxs("div",{className:"space-y-2 mb-4",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Maximum coverage for complex situations"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Ideal for divorce proceedings"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-4 h-4 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Fraud investigations & judgment recovery"})]})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Add-On Search Services"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[r.jsx("div",{className:"bg-card p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Qn,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Credit Union Investigation"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Covers credit unions nationwide (often overlooked by other firms). Important due to growing popularity of credit union banking."}),r.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:r.jsx("p",{className:"text-sm font-medium",children:"Add to any nationwide search for $225"})})]})]})}),r.jsx("div",{className:"bg-card p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Ic,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Wire Transfer Analysis"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Tracks money movement patterns and transfers. Critical for fraud and embezzlement investigations."}),r.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:r.jsx("p",{className:"text-sm font-medium",children:"Essential for tracking hidden assets"})})]})]})}),r.jsx("div",{className:"bg-card p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(Sn,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Account Balance Updates"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Refreshes information on previously discovered accounts. Provides current balance verification."}),r.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:r.jsx("p",{className:"text-sm font-medium",children:"Useful for ongoing litigation"})})]})]})}),r.jsx("div",{className:"bg-card p-6 rounded-lg shadow-md",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx(n$,{className:"w-8 h-8 text-primary mt-1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold mb-2",children:"Rush Processing Service"}),r.jsx("p",{className:"text-muted-foreground text-sm mb-3",children:"Expedited 2-business-day turnaround with priority processing for urgent legal deadlines."}),r.jsx("div",{className:"bg-primary/10 p-3 rounded-lg",children:r.jsx("p",{className:"text-sm font-medium",children:"Available for all search types"})})]})]})})]})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"What Information We Need"}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-muted p-6 rounded-lg",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx(k_,{className:"w-8 h-8 text-primary"}),r.jsx("h3",{className:"text-xl font-bold",children:"Individual Searches"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Full legal name and any known variations/aliases"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Social Security Number"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Date of birth"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Current mailing address"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Previous addresses (past 5 years) - significantly improves discovery"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Any known financial institutions (helps verify completeness)"})]})]})]}),r.jsxs("div",{className:"bg-muted p-6 rounded-lg",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[r.jsx(cd,{className:"w-8 h-8 text-primary"}),r.jsx("h3",{className:"text-xl font-bold",children:"Business/Corporate Searches"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Exact legal business name (as registered)"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Federal Employer Identification Number (FEIN)"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Principal business address"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"State of incorporation"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Principal owner/financial controller information"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Hn,{className:"w-5 h-5 text-green-500 mt-0.5"}),r.jsx("span",{className:"text-sm",children:"Business registration details"})]})]})]})]}),r.jsx("div",{className:"bg-muted border border-border p-6 rounded-lg mt-8",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Pn,{className:"w-6 h-6 text-destructive mt-0.5"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-foreground mb-2",children:"Important"}),r.jsx("p",{className:"text-muted-foreground",children:"Incomplete or inaccurate information significantly reduces search effectiveness. We'll verify all details before beginning any search."})]})]})})]})})}),r.jsx("section",{className:"py-16 bg-muted/30",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Technology Advantage"}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Why Blockchain Access Matters for Asset Discovery"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h4",{className:"font-bold mb-2 flex items-center gap-2",children:[r.jsx(_K,{className:"w-5 h-5 text-primary"}),"The Banking Industry Evolution"]}),r.jsx("p",{className:"text-muted-foreground text-sm",children:"Since 2014, major financial institutions have rapidly adopted blockchain technology for transaction processing. This isn't cryptocurrencyβit's the secure digital ledger system banks use for everyday transactions."})]}),r.jsxs("div",{children:[r.jsxs("h4",{className:"font-bold mb-2 flex items-center gap-2",children:[r.jsx(Pn,{className:"w-5 h-5 text-destructive"}),"The Problem with Traditional Searches"]}),r.jsx("p",{className:"text-muted-foreground text-sm",children:'Most providers rely on outdated "middleman" networks that connected banks before blockchain adoption. As banks modernize, these old networks no longer capture complete account information.'})]}),r.jsxs("div",{children:[r.jsxs("h4",{className:"font-bold mb-2 flex items-center gap-2",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),"Our Solution"]}),r.jsxs("ul",{className:"text-muted-foreground text-sm space-y-1 ml-4",children:[r.jsx("li",{children:"β’ Database tracking since 2014"}),r.jsx("li",{children:"β’ Multiple platform access (IBM, Chain, Eris, Intel)"}),r.jsx("li",{children:"β’ Sequential ledger tracking"}),r.jsx("li",{children:"β’ Impossible to replicate"})]})]})]})]}),r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsxs("div",{className:"text-center mb-6",children:[r.jsx(w_,{className:"w-16 h-16 text-primary mx-auto mb-4"}),r.jsx("h4",{className:"text-xl font-bold mb-2",children:"Real-World Impact"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"This technology advantage means we discover accounts that other investigators simply cannot find, providing more complete asset pictures for our clients."})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4 text-center",children:[r.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg",children:[r.jsx("div",{className:"text-2xl font-bold text-primary",children:"55%"}),r.jsx("div",{className:"text-xs text-text-secondary",children:"Traditional Methods"})]}),r.jsxs("div",{className:"bg-primary/10 p-4 rounded-lg",children:[r.jsx("div",{className:"text-2xl font-bold text-primary",children:"100%"}),r.jsx("div",{className:"text-xs text-text-secondary",children:"Our Coverage"})]})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Industries We Serve"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[r.jsxs("div",{className:"text-center p-6 bg-muted/30 rounded-lg hover:bg-muted/50 transition-colors",children:[r.jsx(Os,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Legal Professionals"}),r.jsxs("ul",{className:"text-sm text-text-secondary space-y-1",children:[r.jsx("li",{children:"β’ Divorce and family law"}),r.jsx("li",{children:"β’ Civil litigation support"}),r.jsx("li",{children:"β’ Judgment enforcement"}),r.jsx("li",{children:"β’ Bankruptcy proceedings"})]})]}),r.jsxs("div",{className:"text-center p-6 bg-muted/30 rounded-lg hover:bg-muted/50 transition-colors",children:[r.jsx(Be,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Insurance Companies"}),r.jsxs("ul",{className:"text-sm text-text-secondary space-y-1",children:[r.jsx("li",{children:"β’ Fraud investigation support"}),r.jsx("li",{children:"β’ Coverage verification"}),r.jsx("li",{children:"β’ Settlement negotiations"}),r.jsx("li",{children:"β’ Claim validation"})]})]}),r.jsxs("div",{className:"text-center p-6 bg-muted/30 rounded-lg hover:bg-muted/50 transition-colors",children:[r.jsx(Qn,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Corporate Clients"}),r.jsxs("ul",{className:"text-sm text-text-secondary space-y-1",children:[r.jsx("li",{children:"β’ Due diligence investigations"}),r.jsx("li",{children:"β’ M&A research"}),r.jsx("li",{children:"β’ Internal fraud investigations"}),r.jsx("li",{children:"β’ Executive background verification"})]})]}),r.jsxs("div",{className:"text-center p-6 bg-muted/30 rounded-lg hover:bg-muted/50 transition-colors",children:[r.jsx(pn,{className:"w-12 h-12 text-primary mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Private Individuals"}),r.jsxs("ul",{className:"text-sm text-text-secondary space-y-1",children:[r.jsx("li",{children:"β’ Pre-marital investigations"}),r.jsx("li",{children:"β’ Estate planning verification"}),r.jsx("li",{children:"β’ Missing person financial traces"}),r.jsx("li",{children:"β’ Personal fraud recovery"})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-muted/30",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"What types of assets can you locate?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Bank accounts, investments, retirement accounts, real estate, vehicles, business interests, intellectual property, and more."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"How does blockchain access work?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"We access the secure digital ledger systems that banks use for everyday transactionsβnot cryptocurrency. This covers 45% more accounts than traditional methods."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"Are your methods completely legal?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Yes. We use only legitimate banking networks and legal channels. No pretexting, impersonation, or illegal techniques."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"How long does a search take?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Standard searches: 5-7 business days. Rush processing available for 2-business-day turnaround."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"What compliance standards do you follow?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"GLBA, Dodd-Frank Act, Privacy Act of 1974, and SWIFT network standards. All information is court-admissible."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"Can you find closed accounts?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Yes, upon request. We can disclose closed accounts to provide complete financial history."})]})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"What information do you need from me?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"For individuals: Full name, SSN, DOB, addresses. For businesses: Legal name, FEIN, incorporation details, principal owner info."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"Do you search internationally?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Yes, we have resources for international searches in many countries, though these may take longer to complete."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"What's included in the results?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Account types, balances, institution details, branch locations, safety deposit boxes, and moreβall guaranteed accurate."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"Can I get account numbers?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Account numbers are not provided due to federal banking regulations, but we provide all other discoverable information."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"What about privacy opt-outs?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"Our results include accounts even if the subject has opted out of information sharingβall legally obtained."})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"How accurate are your results?"}),r.jsx("p",{className:"text-text-secondary text-sm",children:"We guarantee accuracy as of the report date. While no service can find every account, what we find is 100% accurate."})]})]})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Getting Started"}),r.jsx("p",{className:"text-lg text-text-secondary mb-8",children:"Our combination of advanced technology access, legal compliance, and professional expertise provides the most comprehensive asset discovery available."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 mb-12",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(fn,{className:"w-8 h-8 text-primary"})}),r.jsx("h3",{className:"font-bold mb-2",children:"1. Consultation"}),r.jsx("p",{className:"text-sm text-text-secondary",children:"Confidential discussion of your specific needs and goals"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Ct,{className:"w-8 h-8 text-primary"})}),r.jsx("h3",{className:"font-bold mb-2",children:"2. Information Gathering"}),r.jsx("p",{className:"text-sm text-text-secondary",children:"We help you compile the necessary search data"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Pi,{className:"w-8 h-8 text-primary"})}),r.jsx("h3",{className:"font-bold mb-2",children:"3. Search Execution"}),r.jsx("p",{className:"text-sm text-text-secondary",children:"Professional investigation using all available resources"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-primary/10 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(S_,{className:"w-8 h-8 text-primary"})}),r.jsx("h3",{className:"font-bold mb-2",children:"4. Comprehensive Reporting"}),r.jsx("p",{className:"text-sm text-text-secondary",children:"Detailed results with actionable information"})]})]}),r.jsxs("div",{className:"bg-muted/30 p-8 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact Trident Investigations"}),r.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-6 mb-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(fn,{className:"w-5 h-5 text-primary"}),r.jsx("span",{className:"font-medium",children:"385-275-8220"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(we,{className:"w-5 h-5 text-green-500"}),r.jsx("span",{className:"text-sm",children:"Licensed, bonded, and insured in Utah"})]})]}),r.jsx("p",{className:"text-text-secondary text-sm mb-6",children:"Don't let outdated search methods leave critical assets undiscovered. Contact us today for complete asset discovery."}),r.jsxs("a",{href:"/contact",className:"inline-flex items-center gap-2 bg-primary text-white px-8 py-3 rounded-lg hover:bg-primary/90 transition-colors",children:["Start Your Asset Search",r.jsx(qR,{className:"w-4 h-4"})]})]})]})})}),r.jsx(tr,{title:"Ready to Discover Hidden Assets?",description:"Get comprehensive asset discovery with our advanced blockchain technology access and legal compliance standards.",buttonText:"Contact Us Today",buttonLink:"/contact"}),r.jsx(Qe,{})]})),Eae=()=>(wn({title:ft.services.lawFirms.title,description:ft.services.lawFirms.description,keywords:ft.services.lawFirms.keywords,canonicalUrl:"https://tridentpi.net/services/law-firms"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white",children:r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Law Firm Investigation Services - Legal Support & Expert Testimony"}),r.jsx("p",{className:"text-xl text-trident-grey mb-8",children:"Professional, court-admissible investigative support for attorneys and legal teams"})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-trident-black",children:"Specialized Investigation Services for Legal Professionals"}),r.jsx("p",{className:"text-lg mb-8 text-center text-trident-black",children:"Trident Investigations provides comprehensive investigative support to law firms handling civil litigation, criminal defense, and family law matters. Our team of experienced investigators works alongside attorneys to build strong cases with admissible evidence."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mt-12",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(Zn,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Civil Litigation Support"}),r.jsx("p",{className:"text-trident-grey",children:"From witness interviews to evidence collection, we provide the investigative support needed to strengthen your civil cases."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(Fl,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Criminal Defense Investigations"}),r.jsx("p",{className:"text-trident-grey",children:"Our investigators work to find exculpatory evidence and interview witnesses to support criminal defense cases."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(pn,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Family Law Investigations"}),r.jsx("p",{className:"text-trident-grey",children:"We provide discreet investigative services for custody disputes, asset searches, and other family law matters."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx(kK,{className:"w-12 h-12 text-trident-blue mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Expert Testimony"}),r.jsx("p",{className:"text-trident-grey",children:"Our investigators can provide expert testimony to support your case in court when needed."})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"How We Support Law Firms"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Witness Location & Interviews"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"We locate and interview witnesses, documenting their statements for use in your case."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Skip tracing and witness location"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Professional witness interviews"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Detailed documentation of statements"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Finding Critical Witnesses"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"Witnesses are often key to winning cases, but they can be difficult to locate. Our team has the tools and experience to find witnesses who may be crucial to your case's success."})]})]}),r.jsxs("div",{className:"flex flex-col md:flex-row-reverse gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Evidence Collection"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"We gather and document evidence in a manner that ensures it will be admissible in court."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Legally obtained evidence"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Proper chain of custody documentation"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β"}),r.jsx("span",{children:"Detailed evidence reports"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-grey mb-4",children:"Evidence is only valuable if it can be used in court. Our investigators understand the legal requirements for evidence collection and documentation to ensure admissibility."})]})]})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How do you maintain attorney-client privilege?"}),r.jsx("p",{className:"text-trident-grey",children:"When hired by a law firm, our work is generally protected under attorney-client privilege and work product doctrine. We work closely with attorneys to ensure all communications and work products remain confidential and protected."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Can your investigators testify in court?"}),r.jsx("p",{className:"text-trident-grey",children:"Yes, our investigators are experienced in providing courtroom testimony and can serve as fact witnesses or expert witnesses depending on the needs of your case."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How quickly can you begin an investigation?"}),r.jsx("p",{className:"text-trident-grey",children:"We understand that legal matters often require immediate attention. In most cases, we can begin work within 24-48 hours of engagement. For urgent matters, we can often accommodate same-day service."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Do you work on contingency cases?"}),r.jsx("p",{className:"text-trident-grey",children:"We typically work on a retainer basis, but we understand the financial considerations in contingency cases. We're happy to discuss arrangements that align with your firm's needs for contingency matters."})]})]})]})}),r.jsx(tr,{title:"Need Investigative Support for Your Legal Team?",description:"Contact us for a confidential consultation about your law firm's investigative needs.",buttonText:"Schedule a Consultation",buttonLink:"/contact"}),r.jsx(Qe,{})]})),Aae=()=>(wn({title:ft.services.insurance.title,description:ft.services.insurance.description,keywords:ft.services.insurance.keywords,canonicalUrl:"https://tridentpi.net/services/insurance"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx("section",{className:"relative flex items-center pt-32 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white",children:r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Insurance Investigations - Workers Comp & Fraud Detection"}),r.jsx("p",{className:"text-xl mb-8 text-trident-white opacity-80",children:"Professional investigative services to help insurance companies verify claims and detect potential fraud."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(te,{to:"/contact",className:"bg-trident-gold text-trident-black px-6 py-3 rounded-lg font-semibold hover:bg-trident-gold/90 transition-colors",children:"Schedule a Consultation"}),r.jsx("a",{href:"tel:+18001234567",className:"border-2 border-trident-white text-trident-white px-6 py-3 rounded-lg font-semibold hover:bg-trident-white/10 transition-colors",children:"Call (385) 275-8220"})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-trident-black",children:"Comprehensive Insurance Investigation Services"}),r.jsx("p",{className:"mb-4 text-trident-black",children:"Trident Investigations partners with insurance companies to verify claims and identify potential fraud. Our team of experienced investigators has a proven track record of helping insurers reduce losses while ensuring legitimate claims are processed efficiently."}),r.jsx("p",{className:"mb-4 text-trident-black",children:"Using advanced surveillance techniques, thorough background checks, and detailed interviews, we provide the evidence insurance companies need to make informed decisions about claims."}),r.jsx("p",{className:"text-trident-black",children:"Our investigators are available throughout Utah, Idaho, and Wyoming, allowing us to respond quickly to investigation requests across the region."})]}),r.jsxs("div",{className:"bg-trident-smoke p-8 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Our Insurance Investigation Services Include:"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx(Be,{className:"h-6 w-6 text-trident-gold mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-black",children:"Workers' compensation claim investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(jK,{className:"h-6 w-6 text-trident-blue mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-black",children:"Activity checks and surveillance"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Gi,{className:"h-6 w-6 text-trident-blue mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-black",children:"Personal injury claim verification"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Fl,{className:"h-6 w-6 text-trident-blue mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-black",children:"Background and social media investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Pn,{className:"h-6 w-6 text-trident-blue mr-3 mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-black",children:"Property and casualty claim investigations"})]})]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Insurance Investigation Services"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsxs("div",{className:"bg-trident-white p-8 rounded-lg shadow-xl order-2 md:order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4 text-trident-black",children:"Workers' Compensation Investigations"}),r.jsx("p",{className:"mb-4 text-trident-black",children:"Workers' compensation fraud costs insurers billions annually. Our specialized investigators document claimant activities to verify injury claims and identify potential misrepresentation."}),r.jsx("p",{className:"text-trident-black",children:"Using discreet surveillance, background research, and interviews, we provide clear evidence that can be used to make informed decisions about claim validity and appropriate benefits."})]}),r.jsx("div",{className:"order-1 md:order-2",children:r.jsxs("div",{className:"bg-trident-black p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-trident-white",children:"We Document:"}),r.jsxs("ul",{className:"space-y-2 text-trident-grey",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Activities inconsistent with claimed injuries"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Undisclosed employment while receiving benefits"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Exaggerated injury claims"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Pattern behavior suggesting fraud"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Activities that exceed medical restrictions"})]})]})]})})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsx("div",{className:"order-2",children:r.jsxs("div",{className:"bg-trident-black p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-trident-white",children:"Our Surveillance Capabilities:"}),r.jsxs("ul",{className:"space-y-2 text-trident-grey",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Covert video and photographic documentation"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Extended surveillance operations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Multi-investigator teams for complex cases"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"GPS tracking (when legally authorized)"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Detailed activity logs and written reports"})]})]})]})}),r.jsxs("div",{className:"bg-trident-white p-8 rounded-lg shadow-xl order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4 text-trident-black",children:"Activity Checks & Surveillance"}),r.jsx("p",{className:"mb-4 text-trident-black",children:"Our surveillance specialists utilize state-of-the-art equipment and proven techniques to document claimant activities without detection, providing court-admissible evidence of their actual capabilities."}),r.jsx("p",{className:"text-trident-black",children:"Whether monitoring for a single day or conducting extended surveillance over multiple days, our investigators capture the evidence needed to verify or challenge questionable claims."})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsxs("div",{className:"bg-trident-white p-8 rounded-lg shadow-xl order-2 md:order-1",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4 text-trident-black",children:"Background & Social Media Investigations"}),r.jsx("p",{className:"mb-4 text-trident-black",children:"In the digital age, claimants often inadvertently document activities that contradict their injury claims on social media and other online platforms."}),r.jsx("p",{className:"text-trident-black",children:"Our thorough background investigations include examination of social media profiles, online activities, and public records to identify inconsistencies and develop leads for further investigation."})]}),r.jsx("div",{className:"order-1 md:order-2",children:r.jsxs("div",{className:"bg-trident-black p-8 rounded-lg",children:[r.jsx("h4",{className:"text-xl font-bold mb-4 text-trident-white",children:"We Research:"}),r.jsxs("ul",{className:"space-y-2 text-trident-grey",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Social media activities contradicting claims"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Prior claims history and patterns"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Undisclosed business interests"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Online marketplace activities"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-blue mr-2",children:"β’"}),r.jsx("span",{children:"Recreational and sporting activities"})]})]})]})})]})]})]})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[r.jsxs("div",{className:"bg-trident-smoke p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2 text-trident-black",children:"How quickly can you initiate an insurance investigation?"}),r.jsx("p",{className:"text-trident-black",children:"We understand the time-sensitive nature of insurance investigations. In most cases, we can begin surveillance or background checks within 24-48 hours of receiving approval. For urgent matters, we offer expedited services when available."})]}),r.jsxs("div",{className:"bg-trident-smoke p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2 text-trident-black",children:"What documentation do you provide for insurance claims?"}),r.jsx("p",{className:"text-trident-black",children:"Our investigators provide comprehensive reports including detailed activity logs, high-resolution photos and video evidence, interview transcripts, background check results, and expert analysis. All documentation is prepared to meet evidentiary standards for potential legal proceedings."})]}),r.jsxs("div",{className:"bg-trident-smoke p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2 text-trident-black",children:"Do you work directly with insurance adjusters?"}),r.jsx("p",{className:"text-trident-black",children:"Yes, we regularly collaborate with adjusters and claims managers throughout the investigation process. We provide regular updates, coordinate surveillance schedules based on claim details, and deliver evidence in formats that integrate with your claims handling procedures."})]}),r.jsxs("div",{className:"bg-trident-smoke p-6 rounded-lg",children:[r.jsx("h3",{className:"text-xl font-bold mb-2 text-trident-black",children:"Are your investigators licensed in Utah, Idaho, and Wyoming?"}),r.jsx("p",{className:"text-trident-black",children:"Yes, Trident Investigations maintains all necessary licenses and insurance to operate professionally in Utah, Idaho, and Wyoming. Our investigators are familiar with local laws governing surveillance and investigative activities in each state."})]})]})]})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center text-trident-black",children:"What Our Clients Say"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-trident-white p-8 rounded-lg shadow-lg",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-gold opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-black italic mb-4",children:`"Trident's surveillance team captured decisive video evidence that allowed us to successfully deny a fraudulent claim. Their quick response and professional documentation made all the difference."`}),r.jsx("div",{className:"font-bold text-trident-black",children:"Claims Manager"}),r.jsx("div",{className:"text-sm text-trident-grey",children:"Regional Insurance Company"})]}),r.jsxs("div",{className:"bg-trident-white p-8 rounded-lg shadow-lg",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-gold opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-black italic mb-4",children:`"We've worked with several investigation firms, but Trident consistently delivers the most thorough and well-documented reports. Their investigators understand what insurance companies need to properly evaluate claims."`}),r.jsx("div",{className:"font-bold text-trident-black",children:"SIU Director"}),r.jsx("div",{className:"text-sm text-trident-grey",children:"National Insurance Provider"})]})]})]})}),r.jsx(tr,{title:"Combat Insurance Fraud with Professional Investigations",subtitle:"Partner with Trident Investigations to verify claims and identify potentially fraudulent activities.",buttonText:"Request an Insurance Investigation"}),r.jsx(Qe,{})]})),Dd=[{id:1,category:"Shared Residence",question:"Do they have keys to each other's homes?",options:[{text:"Yes, they both have keys and use them regularly",value:1},{text:"One has a key but rarely uses it",value:.5},{text:"No keys exchanged",value:0}]},{id:2,category:"Shared Residence",question:"Is mail delivered to both addresses for either person?",options:[{text:"Yes, both receive mail at each other's addresses",value:1},{text:"Occasional mail delivery to the other address",value:.5},{text:"No shared mail delivery",value:0}]},{id:3,category:"Shared Residence",question:"How often do they spend nights together?",options:[{text:"Almost every night (5-7 nights per week)",value:1},{text:"Several nights per week (3-4 nights)",value:.5},{text:"Rarely or never",value:0}]},{id:4,category:"Shared Residence",question:"Are personal belongings kept at both locations?",options:[{text:"Yes, clothes, toiletries, and personal items at both",value:1},{text:"Some items kept at the other location",value:.5},{text:"No personal belongings at the other location",value:0}]},{id:5,category:"Financial Interdependence",question:"Do they share utility bills or rent payments?",options:[{text:"Yes, regularly share or split major bills",value:1},{text:"Occasionally help with bills",value:.5},{text:"No shared financial responsibilities",value:0}]},{id:6,category:"Financial Interdependence",question:"Are they on joint bank accounts or insurance policies?",options:[{text:"Yes, joint accounts and/or insurance",value:1},{text:"One type of shared financial account",value:.5},{text:"No joint financial accounts",value:0}]},{id:7,category:"Financial Interdependence",question:"Do they make major purchases together?",options:[{text:"Yes, regularly make joint purchases or investments",value:1},{text:"Occasionally make purchases together",value:.5},{text:"No joint purchases",value:0}]},{id:8,category:"Financial Interdependence",question:"Is there shared financial responsibility or support?",options:[{text:"Yes, one supports the other or shared financial planning",value:1},{text:"Occasional financial help",value:.5},{text:"Completely separate finances",value:0}]},{id:9,category:"Romantic Relationship",question:"Do they present as a couple in public?",options:[{text:"Yes, consistently present as romantic partners",value:1},{text:"Sometimes appear as a couple",value:.5},{text:"No public displays of romantic relationship",value:0}]},{id:10,category:"Romantic Relationship",question:"Are they intimate partners?",options:[{text:"Yes, clearly in an intimate relationship",value:1},{text:"Evidence suggests intimacy",value:.5},{text:"No evidence of intimate relationship",value:0}]},{id:11,category:"Romantic Relationship",question:"Do they attend events together as a couple?",options:[{text:"Yes, regularly attend social events as partners",value:1},{text:"Sometimes attend events together",value:.5},{text:"Rarely or never attend events as a couple",value:0}]},{id:12,category:"Romantic Relationship",question:"Do they refer to each other as partners/boyfriend/girlfriend?",options:[{text:"Yes, use romantic relationship terms",value:1},{text:"Sometimes use relationship terms",value:.5},{text:"No romantic relationship terminology",value:0}]},{id:13,category:"Household Integration",question:"Do they share household duties and responsibilities?",options:[{text:"Yes, clear division of household tasks",value:1},{text:"Some shared household responsibilities",value:.5},{text:"No shared household duties",value:0}]},{id:14,category:"Household Integration",question:"Are they involved in each other's major decisions?",options:[{text:"Yes, consult on important life decisions",value:1},{text:"Sometimes involved in decisions",value:.5},{text:"No involvement in major decisions",value:0}]},{id:15,category:"Household Integration",question:"Do they care for each other's children (if applicable)?",options:[{text:"Yes, active parental role with partner's children",value:1},{text:"Some involvement with children",value:.5},{text:"No children or no parental involvement",value:0}]},{id:16,category:"Household Integration",question:"Is there integration of domestic responsibilities?",options:[{text:"Yes, fully integrated domestic life",value:1},{text:"Some integration of domestic responsibilities",value:.5},{text:"Separate domestic lives",value:0}]}],Oae=()=>{const[e,t]=j.useState(0),[n,i]=j.useState({}),[s,a]=j.useState(!1),[o,l]=j.useState(null),c=(p,v)=>{l(v),i(y=>({...y,[p]:v}))},d=()=>{e<Dd.length-1?(t(p=>p+1),l(null)):a(!0)},u=()=>Object.values(n).reduce((p,v)=>p+v,0),h=p=>p>=12?{level:"High Risk",color:"red",bgColor:"bg-red-50",borderColor:"border-red-200",textColor:"text-red-800",icon:ri,title:"Strong Cohabitation Evidence - Act Now!",description:"The evidence strongly suggests cohabitation under Utah law. You should document this immediately and consult with our team.",cta:"Start Your Investigation Today",urgency:!0}:p>=8?{level:"Moderate Risk",color:"trident-gold",bgColor:"bg-trident-gold/5",borderColor:"border-trident-gold/20",textColor:"text-trident-gold",icon:ai,title:"Emerging Cohabitation Patterns",description:"There are concerning patterns that could develop into legal cohabitation. Monitor closely and consider professional guidance.",cta:"Schedule a Consultation",urgency:!1}:{level:"Low Risk",color:"trident-blue",bgColor:"bg-trident-blue/5",borderColor:"border-trident-blue/20",textColor:"text-trident-blue",icon:we,title:"Continue Monitoring",description:"Current evidence is insufficient for cohabitation claims, but situations can change. Stay vigilant.",cta:"Learn More About Cohabitation",urgency:!1},m=()=>{t(0),i({}),a(!1),l(null)};if(s){const p=u(),v=h(p),y=v.icon;return r.jsxs(W,{className:"max-w-4xl mx-auto border-trident-grey/20",children:[r.jsx(Z,{className:"text-center",children:r.jsx(re,{className:"text-2xl font-bold mb-4 text-trident-black",children:"Your Cohabitation Risk Assessment"})}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:`${v.bgColor} ${v.borderColor} border rounded-lg p-6 text-center`,children:[r.jsx(y,{className:`w-12 h-12 ${v.textColor} mx-auto mb-4`}),r.jsxs("div",{className:`text-3xl font-bold ${v.textColor} mb-2`,children:[p,"/16 Points"]}),r.jsx("div",{className:`text-xl font-semibold ${v.textColor} mb-2`,children:v.level}),r.jsx("h3",{className:`text-lg font-bold ${v.textColor} mb-3`,children:v.title}),r.jsx("p",{className:`${v.textColor} mb-4`,children:v.description}),v.urgency&&r.jsx("div",{className:"bg-red-100 border border-red-300 rounded-lg p-4 mb-4",children:r.jsx("p",{className:"text-red-800 font-semibold",children:"β οΈ Remember: You have only 1 year from discovering cohabitation to file under Utah law!"})}),r.jsx(V,{size:"lg",className:v.urgency?"bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800":"bg-gradient-to-r from-trident-gold to-orange-700 hover:from-trident-gold/90 hover:to-orange-700/90",children:v.cta})]}),r.jsx("div",{className:"text-center",children:r.jsx(V,{variant:"outline",onClick:m,className:"border-trident-grey text-trident-black hover:bg-trident-grey/10",children:"Take Quiz Again"})})]})]})}const f=Dd[e],g=(e+1)/Dd.length*100;return r.jsxs(W,{className:"max-w-4xl mx-auto border-trident-grey/20",children:[r.jsxs(Z,{children:[r.jsxs("div",{className:"flex justify-between items-center mb-4",children:[r.jsx(re,{className:"text-xl font-bold text-trident-black",children:"Cohabitation Risk Assessment"}),r.jsxs("span",{className:"text-sm text-trident-black opacity-70",children:["Question ",e+1," of ",Dd.length]})]}),r.jsx("div",{className:"w-full bg-trident-grey/20 rounded-full h-2",children:r.jsx("div",{className:"bg-gradient-to-r from-trident-gold to-orange-700 h-2 rounded-full transition-all duration-300",style:{width:`${g}%`}})})]}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium text-trident-gold mb-2",children:f.category}),r.jsx("h3",{className:"text-lg font-semibold mb-4 text-trident-black",children:f.question})]}),r.jsx("div",{className:"space-y-3",children:f.options.map((p,v)=>r.jsxs("label",{className:"flex items-center space-x-3 p-4 border border-trident-grey/20 rounded-lg cursor-pointer hover:bg-trident-grey/5 transition-colors",children:[r.jsx("input",{type:"radio",name:`question-${f.id}`,value:p.value,checked:o===p.value,onChange:()=>c(f.id,p.value),className:"text-trident-gold focus:ring-trident-gold"}),r.jsx("span",{className:"text-trident-black opacity-70",children:p.text})]},v))}),r.jsxs("div",{className:"flex justify-between pt-4",children:[r.jsx(V,{variant:"outline",onClick:()=>{t(p=>Math.max(0,p-1)),l(n[Dd[Math.max(0,e-1)].id]??null)},disabled:e===0,className:"border-trident-grey text-trident-black hover:bg-trident-grey/10",children:"Previous"}),r.jsx(V,{onClick:d,disabled:o===null,className:"bg-gradient-to-r from-trident-gold to-orange-700 hover:from-trident-gold/90 hover:to-orange-700/90",children:e===Dd.length-1?"Get Results":"Next"})]})]})]})},Iae=()=>r.jsx(W,{className:"bg-gradient-to-r from-trident-orange to-orange-700 text-white",children:r.jsxs(Z,{className:"text-center",children:[r.jsx(re,{className:"text-3xl font-bold mb-2",children:"Alimony Savings Calculator"}),r.jsx("p",{className:"text-lg text-orange-100",children:"Calculate how much you could save by proving cohabitation"})]})}),Dae=({monthlyAlimony:e,setMonthlyAlimony:t,remainingMonths:n,setRemainingMonths:i,investigationCost:s,setInvestigationCost:a,legalCost:o,setLegalCost:l})=>r.jsxs(W,{className:"border-trident-gray/20",children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"flex items-center gap-2 text-trident-dark",children:[r.jsx(HR,{className:"w-5 h-5 text-trident-orange"}),"Enter Your Information"]}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:"Our clients pay between $1,200 and $10,000+ monthly in alimony"})]}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"monthlyAlimony",className:"text-sm font-semibold text-trident-dark",children:"Monthly Alimony Payment"}),r.jsxs("div",{className:"relative mt-1",children:[r.jsx(ma,{className:"absolute left-3 top-3 w-4 h-4 text-trident-black opacity-70"}),r.jsx(he,{id:"monthlyAlimony",type:"number",value:e,onChange:c=>t(Number(c.target.value)),className:"pl-10 text-lg border-trident-gray/30 focus:border-trident-orange focus:ring-trident-orange",placeholder:"5000"})]}),r.jsx("p",{className:"text-xs text-trident-black opacity-70 mt-1",children:"Range: $1,200 - $10,000+"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"remainingMonths",className:"text-sm font-semibold text-trident-dark",children:"Months Remaining"}),r.jsx(he,{id:"remainingMonths",type:"number",value:n,onChange:c=>i(Number(c.target.value)),className:"mt-1 text-lg border-trident-gray/30 focus:border-trident-orange focus:ring-trident-orange",placeholder:"60"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"investigationCost",className:"text-sm font-semibold text-trident-dark",children:"Investigation Cost"}),r.jsxs("div",{className:"relative mt-1",children:[r.jsx(ma,{className:"absolute left-3 top-3 w-4 h-4 text-trident-black opacity-70"}),r.jsx(he,{id:"investigationCost",type:"number",value:s,onChange:c=>a(Number(c.target.value)),className:"pl-10 text-lg border-trident-gray/30 focus:border-trident-orange focus:ring-trident-orange",placeholder:"15000"})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"legalCost",className:"text-sm font-semibold text-trident-dark",children:"Attorney Fees"}),r.jsxs("div",{className:"relative mt-1",children:[r.jsx(ma,{className:"absolute left-3 top-3 w-4 h-4 text-trident-black opacity-70"}),r.jsx(he,{id:"legalCost",type:"number",value:o,onChange:c=>l(Number(c.target.value)),className:"pl-10 text-lg border-trident-gray/30 focus:border-trident-orange focus:ring-trident-orange",placeholder:"15000"})]})]})]}),r.jsx(V,{size:"lg",variant:"gold",className:"w-full py-6 font-bold text-lg",children:"Calculate My Potential Savings"})]})]});var HU=["PageUp","PageDown"],VU=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],GU={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Yh="Slider",[tS,Mae,Rae]=_b(Yh),[YU,bUe]=Ca(Yh,[Rae]),[$ae,iw]=YU(Yh),KU=j.forwardRef((e,t)=>{const{name:n,min:i=0,max:s=100,step:a=1,orientation:o="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:d=[i],value:u,onValueChange:h=()=>{},onValueCommit:m=()=>{},inverted:f=!1,form:g,...p}=e,v=j.useRef(new Set),y=j.useRef(0),b=o==="horizontal"?Lae:Uae,[w=[],N]=Rs({prop:u,defaultProp:d,onChange:E=>{var M;(M=[...v.current][y.current])==null||M.focus(),h(E)}}),S=j.useRef(w);function k(E){const T=qae(w,E);A(E,T)}function _(E){A(E,y.current)}function D(){const E=S.current[y.current];w[y.current]!==E&&m(w)}function A(E,T,{commit:M}={commit:!1}){const C=Yae(a),P=Kae(Math.round((E-i)/a)*a+i,C),I=Ty(P,[i,s]);N((R=[])=>{const O=Wae(R,I,T);if(Gae(O,c*a)){y.current=O.indexOf(I);const $=String(O)!==String(R);return $&&M&&m(O),$?O:R}else return R})}return r.jsx($ae,{scope:e.__scopeSlider,name:n,disabled:l,min:i,max:s,valueIndexToChangeRef:y,thumbs:v.current,values:w,orientation:o,form:g,children:r.jsx(tS.Provider,{scope:e.__scopeSlider,children:r.jsx(tS.Slot,{scope:e.__scopeSlider,children:r.jsx(b,{"aria-disabled":l,"data-disabled":l?"":void 0,...p,ref:t,onPointerDown:Ee(p.onPointerDown,()=>{l||(S.current=w)}),min:i,max:s,inverted:f,onSlideStart:l?void 0:k,onSlideMove:l?void 0:_,onSlideEnd:l?void 0:D,onHomeKeyDown:()=>!l&&A(i,0,{commit:!0}),onEndKeyDown:()=>!l&&A(s,w.length-1,{commit:!0}),onStepKeyDown:({event:E,direction:T})=>{if(!l){const P=HU.includes(E.key)||E.shiftKey&&VU.includes(E.key)?10:1,I=y.current,R=w[I],O=a*P*T;A(R+O,I,{commit:!0})}}})})})})});KU.displayName=Yh;var[XU,QU]=YU(Yh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Lae=j.forwardRef((e,t)=>{const{min:n,max:i,dir:s,inverted:a,onSlideStart:o,onSlideMove:l,onSlideEnd:c,onStepKeyDown:d,...u}=e,[h,m]=j.useState(null),f=ut(t,b=>m(b)),g=j.useRef(),p=Qb(s),v=p==="ltr",y=v&&!a||!v&&a;function x(b){const w=g.current||h.getBoundingClientRect(),N=[0,w.width],k=r5(N,y?[n,i]:[i,n]);return g.current=w,k(b-w.left)}return r.jsx(XU,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:r.jsx(JU,{dir:p,"data-orientation":"horizontal",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const w=x(b.clientX);o==null||o(w)},onSlideMove:b=>{const w=x(b.clientX);l==null||l(w)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:b=>{const N=GU[y?"from-left":"from-right"].includes(b.key);d==null||d({event:b,direction:N?-1:1})}})})}),Uae=j.forwardRef((e,t)=>{const{min:n,max:i,inverted:s,onSlideStart:a,onSlideMove:o,onSlideEnd:l,onStepKeyDown:c,...d}=e,u=j.useRef(null),h=ut(t,u),m=j.useRef(),f=!s;function g(p){const v=m.current||u.current.getBoundingClientRect(),y=[0,v.height],b=r5(y,f?[i,n]:[n,i]);return m.current=v,b(p-v.top)}return r.jsx(XU,{scope:e.__scopeSlider,startEdge:f?"bottom":"top",endEdge:f?"top":"bottom",size:"height",direction:f?1:-1,children:r.jsx(JU,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const v=g(p.clientY);a==null||a(v)},onSlideMove:p=>{const v=g(p.clientY);o==null||o(v)},onSlideEnd:()=>{m.current=void 0,l==null||l()},onStepKeyDown:p=>{const y=GU[f?"from-bottom":"from-top"].includes(p.key);c==null||c({event:p,direction:y?-1:1})}})})}),JU=j.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:l,onStepKeyDown:c,...d}=e,u=iw(Yh,n);return r.jsx(ze.span,{...d,ref:t,onKeyDown:Ee(e.onKeyDown,h=>{h.key==="Home"?(o(h),h.preventDefault()):h.key==="End"?(l(h),h.preventDefault()):HU.concat(VU).includes(h.key)&&(c(h),h.preventDefault())}),onPointerDown:Ee(e.onPointerDown,h=>{const m=h.target;m.setPointerCapture(h.pointerId),h.preventDefault(),u.thumbs.has(m)?m.focus():i(h)}),onPointerMove:Ee(e.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&s(h)}),onPointerUp:Ee(e.onPointerUp,h=>{const m=h.target;m.hasPointerCapture(h.pointerId)&&(m.releasePointerCapture(h.pointerId),a(h))})})}),ZU="SliderTrack",eF=j.forwardRef((e,t)=>{const{__scopeSlider:n,...i}=e,s=iw(ZU,n);return r.jsx(ze.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...i,ref:t})});eF.displayName=ZU;var nS="SliderRange",tF=j.forwardRef((e,t)=>{const{__scopeSlider:n,...i}=e,s=iw(nS,n),a=QU(nS,n),o=j.useRef(null),l=ut(t,o),c=s.values.length,d=s.values.map(m=>rF(m,s.min,s.max)),u=c>1?Math.min(...d):0,h=100-Math.max(...d);return r.jsx(ze.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...i,ref:l,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:h+"%"}})});tF.displayName=nS;var rS="SliderThumb",nF=j.forwardRef((e,t)=>{const n=Mae(e.__scopeSlider),[i,s]=j.useState(null),a=ut(t,l=>s(l)),o=j.useMemo(()=>i?n().findIndex(l=>l.ref.current===i):-1,[n,i]);return r.jsx(Fae,{...e,ref:a,index:o})}),Fae=j.forwardRef((e,t)=>{const{__scopeSlider:n,index:i,name:s,...a}=e,o=iw(rS,n),l=QU(rS,n),[c,d]=j.useState(null),u=ut(t,x=>d(x)),h=c?o.form||!!c.closest("form"):!0,m=q_(c),f=o.values[i],g=f===void 0?0:rF(f,o.min,o.max),p=zae(i,o.values.length),v=m==null?void 0:m[l.size],y=v?Hae(v,g,l.direction):0;return j.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),r.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${g}% + ${y}px)`},children:[r.jsx(tS.ItemSlot,{scope:e.__scopeSlider,children:r.jsx(ze.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":o.min,"aria-valuenow":f,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...a,ref:u,style:f===void 0?{display:"none"}:e.style,onFocus:Ee(e.onFocus,()=>{o.valueIndexToChangeRef.current=i})})}),h&&r.jsx(Bae,{name:s??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:f},i)]})});nF.displayName=rS;var Bae=e=>{const{value:t,...n}=e,i=j.useRef(null),s=Z_(t);return j.useEffect(()=>{const a=i.current,o=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(o,"value").set;if(s!==t&&c){const d=new Event("input",{bubbles:!0});c.call(a,t),a.dispatchEvent(d)}},[s,t]),r.jsx("input",{style:{display:"none"},...n,ref:i,defaultValue:t})};function Wae(e=[],t,n){const i=[...e];return i[n]=t,i.sort((s,a)=>s-a)}function rF(e,t,n){const a=100/(n-t)*(e-t);return Ty(a,[0,100])}function zae(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function qae(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),i=Math.min(...n);return n.indexOf(i)}function Hae(e,t,n){const i=e/2,a=r5([0,50],[0,i]);return(i-a(t)*n)*n}function Vae(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Gae(e,t){if(t>0){const n=Vae(e);return Math.min(...n)>=t}return!0}function r5(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function Yae(e){return(String(e).split(".")[1]||"").length}function Kae(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var iF=KU,Xae=eF,Qae=tF,Jae=nF;const sF=j.forwardRef(({className:e,...t},n)=>r.jsxs(iF,{ref:n,className:je("relative flex w-full touch-none select-none items-center",e),...t,children:[r.jsx(Xae,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:r.jsx(Qae,{className:"absolute h-full bg-primary"})}),r.jsx(Jae,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));sF.displayName=iF.displayName;const Zae=({calculations:e,timelineYears:t,setTimelineYears:n,formatCurrency:i})=>r.jsx(W,{className:"bg-gradient-to-r from-green-50 to-trident-purple/10 border-2 border-trident-purple/20",children:r.jsxs(H,{className:"p-8",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-2",children:"Your Potential Savings"}),r.jsx("div",{className:"text-6xl font-bold text-trident-orange mb-4",children:i(e.netSavings)}),r.jsx("p",{className:"text-lg text-trident-black opacity-70",children:"This is what you could save by ending your alimony obligation"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 text-center shadow-sm border border-trident-gray/20",children:[r.jsx("div",{className:"text-2xl font-bold text-trident-dark",children:i(e.totalRemainingAlimony)}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Total Remaining Alimony"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 text-center shadow-sm border border-trident-gray/20",children:[r.jsxs("div",{className:"text-2xl font-bold text-red-600",children:["-",i(e.totalLegalCosts)]}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Investigation & Legal Costs"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 text-center shadow-sm border border-trident-gray/20",children:[r.jsx("div",{className:"text-2xl font-bold text-trident-orange",children:i(e.netSavings)}),r.jsx("div",{className:"text-sm text-trident-black opacity-70",children:"Your Net Savings"})]})]}),r.jsxs("div",{className:"bg-gradient-to-r from-trident-orange/10 to-trident-purple/5 border border-trident-orange/20 rounded-lg p-6 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[r.jsx($s,{className:"w-6 h-6 text-trident-orange"}),r.jsx("h4",{className:"text-xl font-bold text-trident-dark",children:"Break-Even Analysis"})]}),r.jsx("p",{className:"text-trident-dark text-lg",children:r.jsxs("strong",{children:["Your investigation pays for itself in just ",e.breakEvenMonths," months!"]})}),r.jsxs("p",{className:"text-trident-black opacity-70 mt-2",children:["After ",e.breakEvenMonths," months, you'll save ",i(e.monthlyAlimony)," every single month."]})]}),r.jsxs("div",{className:"mb-8",children:[r.jsxs("h4",{className:"text-xl font-bold mb-4 text-trident-dark",children:["Savings Timeline: ",t," Year",t>1?"s":""]}),r.jsxs("div",{className:"mb-4",children:[r.jsx(sF,{value:[t],onValueChange:s=>n(s[0]),max:10,min:1,step:1,className:"w-full"}),r.jsxs("div",{className:"flex justify-between text-sm text-trident-black opacity-70 mt-2",children:[r.jsx("span",{children:"1 year"}),r.jsx("span",{children:"10 years"})]})]}),r.jsx("div",{className:"bg-white rounded-lg p-4 border border-trident-gray/20",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-3xl font-bold text-trident-orange",children:i(e.timelineSavings)}),r.jsxs("div",{className:"text-trident-black opacity-70",children:["Total savings over ",t," year",t>1?"s":""]})]})})]})]})}),eoe=({netSavings:e,formatCurrency:t})=>{const n=[{icon:j_,item:"Dream Home Down Payment",description:`Down payment on a ${t(e*4)} home (20% down)`,color:"text-trident-orange",bgColor:"bg-trident-orange/5",borderColor:"border-trident-orange/20"},{icon:VR,item:"Luxury Vehicles",description:`${Math.floor(e/6e4)} luxury cars or ${Math.floor(e/35e3)} reliable vehicles`,color:"text-trident-blue",bgColor:"bg-trident-blue/5",borderColor:"border-trident-blue/20"},{icon:y2,item:"Education Investment",description:`${Math.floor(e/4e4)} college educations or advanced degrees`,color:"text-trident-black",bgColor:"bg-trident-black/5",borderColor:"border-trident-black/20"},{icon:cd,item:"Business Investment",description:`Start a business or invest in ${Math.floor(e/5e4)} franchise opportunities`,color:"text-trident-orange",bgColor:"bg-trident-orange/10",borderColor:"border-trident-orange/30"},{icon:xl,item:"Retirement Security",description:`Invest ${t(e)} for your retirement future`,color:"text-trident-blue",bgColor:"bg-trident-blue/10",borderColor:"border-trident-blue/30"},{icon:zK,item:"Dream Vacations",description:`${Math.floor(e/1e4)} luxury vacations around the world`,color:"text-trident-black",bgColor:"bg-trident-black/10",borderColor:"border-trident-black/30"}];return r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8",children:n.map((i,s)=>{const a=i.icon;return r.jsx(W,{className:`${i.bgColor} ${i.borderColor} border-2 hover:shadow-lg transition-all duration-300`,children:r.jsxs(H,{className:"p-6 text-center",children:[r.jsx(a,{className:`w-12 h-12 ${i.color} mx-auto mb-4`}),r.jsx("h3",{className:"text-lg font-semibold mb-2 text-trident-black",children:i.item}),r.jsx("p",{className:"text-sm text-trident-black opacity-70",children:i.description})]})},s)})})},toe=()=>r.jsx(W,{className:"bg-gradient-to-r from-trident-dark to-gray-800 text-white",children:r.jsxs(H,{className:"p-8 text-center",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Ready to Take Action?"}),r.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Don't let another month of alimony payments slip away. Our 99% success rate speaks for itself."}),r.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:[r.jsx(V,{size:"lg",variant:"gold",children:"Start Your Investigation Today"}),r.jsx(V,{size:"lg",variant:"goldOutline",children:"Schedule a Free Consultation"})]})]})}),noe=()=>{const[e,t]=j.useState(5e3),[n,i]=j.useState(60),[s,a]=j.useState(15e3),[o,l]=j.useState(15e3),[c,d]=j.useState(5),u=j.useMemo(()=>{const m=s+o,f=e*n,g=f-m,p=Math.ceil(m/e),v=e*12-m,y=c*12,x=Math.max(0,e*y-m);return{totalLegalCosts:m,totalRemainingAlimony:f,netSavings:g,breakEvenMonths:p,yearOneSavings:v,timelineSavings:x,monthlyAlimony:e}},[e,n,s,o,c]),h=m=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(m);return r.jsxs("div",{className:"space-y-8",children:[r.jsx(Iae,{}),r.jsx(Dae,{monthlyAlimony:e,setMonthlyAlimony:t,remainingMonths:n,setRemainingMonths:i,investigationCost:s,setInvestigationCost:a,legalCost:o,setLegalCost:l}),r.jsx(Zae,{calculations:u,timelineYears:c,setTimelineYears:d,formatCurrency:h}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{className:"text-2xl font-bold text-center",children:"What You Could Do With Your Savings"})}),r.jsxs(H,{children:[r.jsx(eoe,{netSavings:u.netSavings,formatCurrency:h}),r.jsx(toe,{})]})]})]})},roe=({scrollToCalculator:e,scrollToQuiz:t})=>r.jsxs("section",{className:"pt-32 pb-16 bg-gradient-to-br from-trident-black to-gray-800 text-white relative overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/95 to-trident-black/85"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[r.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 leading-tight",children:["Stop Paying Alimony You Don't Owe",r.jsx("span",{className:"block text-3xl md:text-4xl text-trident-gold mt-2",children:"We've Saved Clients Millions - Including $2M+ Last Year"})]}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-muted-foreground max-w-4xl mx-auto",children:"Proven 99% Success Rate β’ Court-Admissible Evidence β’ Professional Investigation Services"}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mb-8 text-sm",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur rounded-lg px-4 py-2",children:[r.jsx(Os,{className:"w-5 h-5 text-yellow-400"}),r.jsx("span",{children:"Recommended by Utah Divorce Attorneys"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur rounded-lg px-4 py-2",children:[r.jsx($s,{className:"w-5 h-5 text-green-400"}),r.jsx("span",{children:"Clients Pay $1,200 - $10,000+ Monthly"})]})]}),r.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-center mb-8",children:[r.jsx("button",{onClick:t,className:"bg-gradient-to-r from-red-600 to-red-700 text-white px-8 py-4 rounded-lg font-bold text-lg hover:from-red-700 hover:to-red-800 transition-all shadow-lg transform hover:scale-105",children:"Get My FREE Alimony Assessment"}),r.jsx("button",{onClick:e,className:"bg-white text-trident-black px-8 py-4 rounded-lg font-bold text-lg hover:bg-muted/10 transition-all shadow-lg",children:"Calculate My Potential Savings"})]}),r.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-center items-center text-center",children:[r.jsxs("a",{href:"tel:+13855032939",className:"inline-flex items-center gap-4 bg-white/10 backdrop-blur rounded-full px-6 py-3 text-white hover:bg-white/20 transition-all font-bold ghl-number-swap",children:[r.jsx(fn,{className:"w-5 h-5 text-trident-gold"}),"Call: ",r.jsx("span",{className:"ghl-number-swap",children:"(385) 503-2939"})]}),r.jsxs("a",{href:"sms:3855032939",className:"inline-flex items-center gap-4 bg-white/10 backdrop-blur rounded-full px-6 py-3 text-white hover:bg-white/20 transition-all font-bold ghl-number-swap",children:[r.jsx(Bl,{className:"w-5 h-5 text-trident-gold"}),"Text: ",r.jsx("span",{className:"ghl-number-swap",children:"(385) 503-2939"})]}),r.jsxs("a",{href:"mailto:info@tridentpi.net",className:"inline-flex items-center gap-4 bg-white/10 backdrop-blur rounded-full px-6 py-3 text-white hover:bg-white/20 transition-all font-bold",children:[r.jsx(xr,{className:"w-5 h-5 text-trident-gold"}),"Email: info@tridentpi.net"]})]})]})})]}),ioe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"You're Not Required to Support Your Ex's New Relationship"}),r.jsxs("div",{className:"bg-gradient-to-r from-green-100 to-blue-100 border border-green-300 rounded-lg p-6 mb-8",children:[r.jsx("h3",{className:"text-2xl font-bold text-green-800 mb-2",children:"We've Saved Clients Millions of Dollars"}),r.jsx("p",{className:"text-green-700 text-lg",children:"Including over $2 million saved just in the last year alone"})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"text-center p-6 bg-green-50 rounded-lg border border-green-200",children:[r.jsx(ma,{className:"w-12 h-12 text-green-600 mx-auto mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Clients Save $1,200 to $10,000+ Monthly"}),r.jsx("p",{className:"text-foreground",children:"From moderate to high-value alimony cases - we handle them all"})]}),r.jsxs("div",{className:"text-center p-6 bg-blue-50 rounded-lg border border-blue-200",children:[r.jsx(Zn,{className:"w-12 h-12 text-blue-600 mx-auto mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Utah Law is On Your Side - If You Have Proof"}),r.jsx("p",{className:"text-foreground",children:"Court-admissible evidence that stands up to legal scrutiny"})]}),r.jsxs("div",{className:"text-center p-6 bg-purple-50 rounded-lg border border-purple-200",children:[r.jsx(Be,{className:"w-12 h-12 text-purple-600 mx-auto mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"100% Discreet Investigation"}),r.jsx("p",{className:"text-foreground",children:"Your ex will never know we're investigating"})]})]})]})})}),soe=()=>r.jsx("section",{className:"py-16 bg-red-50 border-y border-red-200",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-red-800",children:"Every Month You Wait Costs You Thousands"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(ri,{className:"w-8 h-8 text-red-600 mx-auto mb-4"}),r.jsxs("p",{className:"text-lg text-foreground mb-2",children:[r.jsx("strong",{children:"Utah statute of limitations applies"})," to alimony modifications"]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(ma,{className:"w-8 h-8 text-red-600 mx-auto mb-4"}),r.jsxs("p",{className:"text-lg text-foreground mb-2",children:["The average client has already ",r.jsx("strong",{children:"overpaid $47,000"})," before calling us"]})]})]}),r.jsx("div",{className:"mt-8 bg-white rounded-lg p-6 shadow-md",children:r.jsx("p",{className:"text-lg text-red-700 font-semibold",children:"Free consultation slots are limited - we only take 15 new cases per month"})})]})})}),aoe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Real Utah Men Who Stopped Overpaying"}),r.jsxs("div",{className:"bg-gradient-to-r from-green-50 to-green-100 border border-green-200 rounded-lg p-6 mb-8",children:[r.jsxs("div",{className:"flex items-center justify-center gap-3 mb-2",children:[r.jsx($s,{className:"w-8 h-8 text-green-600"}),r.jsx("h3",{className:"text-2xl font-bold text-green-800",children:"$2+ Million Saved Last Year Alone"})]}),r.jsx("p",{className:"text-green-700 text-lg",children:"We've saved our clients millions of dollars in unnecessary alimony payments"})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[r.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-6",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(we,{className:"w-6 h-6 text-green-600"}),r.jsx("h3",{className:"text-xl font-bold",children:"Court Order Violation Case"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Assets at risk:"}),r.jsx("span",{className:"font-bold text-red-600",children:"$500,000+"})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Assets protected:"}),r.jsx("span",{className:"font-bold text-green-600",children:"$500,000+"})]}),r.jsx("p",{className:"text-sm text-foreground",children:"Documented violations of court orders protecting substantial assets"}),r.jsx("div",{className:"text-center bg-green-100 rounded-lg p-3",children:r.jsx("span",{className:"text-green-800 font-bold text-lg",children:"Over $500K in assets protected"})})]})]}),r.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(we,{className:"w-6 h-6 text-blue-600"}),r.jsx("h3",{className:"text-xl font-bold",children:"Utah County"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Was paying:"}),r.jsx("span",{className:"font-bold text-red-600",children:"$1,257/month"})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Now pays:"}),r.jsx("span",{className:"font-bold text-green-600",children:"$0/month"})]}),r.jsx("p",{className:"text-sm text-foreground",children:"Complete cohabitation case - eliminated all alimony payments"}),r.jsx("div",{className:"text-center bg-blue-100 rounded-lg p-3",children:r.jsx("span",{className:"text-blue-800 font-bold text-lg",children:"Case won - $0 monthly payments"})})]})]}),r.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-6",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(we,{className:"w-6 h-6 text-purple-600"}),r.jsx("h3",{className:"text-xl font-bold",children:"Salt Lake County"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Would have paid:"}),r.jsx("span",{className:"font-bold text-red-600",children:"$10,000/month"})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{children:"Investigation prevented:"}),r.jsx("span",{className:"font-bold text-green-600",children:"All payments"})]}),r.jsx("p",{className:"text-sm text-foreground",children:"High-stakes cohabitation investigation preventing massive payments"}),r.jsx("div",{className:"text-center bg-purple-100 rounded-lg p-3",children:r.jsx("span",{className:"text-purple-800 font-bold text-lg",children:"$10K/month prevented"})})]})]})]}),r.jsxs("div",{className:"bg-muted/50 rounded-lg p-8",children:[r.jsx("h3",{className:"text-2xl font-bold text-center mb-6",children:"Attorney Testimonials"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx("div",{className:"flex items-center gap-2 mb-3",children:[...Array(5)].map((e,t)=>r.jsx(fa,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},t))}),r.jsx("p",{className:"text-foreground italic mb-3",children:'"I refer all my cohabitation cases to Trident. Their evidence is bulletproof in court."'}),r.jsx("p",{className:"font-semibold",children:"- S., Family Law Attorney"})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx("div",{className:"flex items-center gap-2 mb-3",children:[...Array(5)].map((e,t)=>r.jsx(fa,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},t))}),r.jsx("p",{className:"text-foreground italic mb-3",children:'"In 15 years of practice, Trident has the highest success rate for cohabitation investigations."'}),r.jsx("p",{className:"font-semibold",children:"- K., Divorce Attorney"})]})]})]})]})})}),ooe=()=>r.jsx("section",{className:"py-16 bg-blue-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-center mb-12",children:"Simple 3-Step Process to Financial Freedom"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-blue-600 text-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6",children:r.jsx("span",{className:"text-2xl font-bold",children:"1"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 min-h-[3rem] flex items-center justify-center",children:"Free Consultation (15 minutes)"}),r.jsxs("div",{className:"text-foreground space-y-3 min-h-[8rem] flex flex-col justify-start",children:[r.jsx("p",{children:"We assess your case and explain Utah cohabitation laws"}),r.jsx("p",{children:"No obligation, completely confidential"})]})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-blue-600 text-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6",children:r.jsx("span",{className:"text-2xl font-bold",children:"2"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 min-h-[3rem] flex items-center justify-center",children:"Discreet Investigation (8-16 weeks)"}),r.jsxs("div",{className:"text-foreground space-y-3 min-h-[8rem] flex flex-col justify-start",children:[r.jsx("p",{children:"Professional surveillance and evidence gathering"}),r.jsx("p",{children:"Your ex will never know we're investigating"}),r.jsx("p",{children:"Court-admissible documentation"})]})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-blue-600 text-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6",children:r.jsx("span",{className:"text-2xl font-bold",children:"3"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 min-h-[3rem] flex items-center justify-center",children:"Evidence Delivery & Court Support"}),r.jsxs("div",{className:"text-foreground space-y-3 min-h-[8rem] flex flex-col justify-start",children:[r.jsx("p",{children:"Comprehensive report with video/photo evidence"}),r.jsx("p",{children:"Expert testimony support if needed"}),r.jsx("p",{children:"Work directly with your attorney"})]})]})]})]})})}),loe=()=>r.jsx("section",{className:"py-16 bg-green-50 border-y border-green-200",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-green-800",children:"Our Professional Guarantees"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(Ct,{className:"w-8 h-8 text-green-600 mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-foreground text-sm",children:"Our evidence meets all Utah legal standards for court proceedings"})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx(ai,{className:"w-8 h-8 text-green-600 mx-auto mb-4"}),r.jsx("h3",{className:"font-bold mb-2",children:"Discretion Guaranteed"}),r.jsx("p",{className:"text-foreground text-sm",children:"Your investigation remains completely confidential"})]})]})]})})}),coe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{className:"border-b pb-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How much does an investigation cost?"}),r.jsx("p",{className:"text-foreground",children:"Cohabitation investigations typically cost approximately $12,000-$15,000. Most clients save that in their first month of reduced payments."})]}),r.jsxs("div",{className:"border-b pb-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How long does an investigation take?"}),r.jsx("p",{className:"text-foreground",children:"Most investigations are completed within 8-16 weeks, depending on the complexity."})]}),r.jsxs("div",{className:"border-b pb-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Will my ex-spouse know you're investigating?"}),r.jsx("p",{className:"text-foreground",children:"No. We use professional surveillance techniques to ensure complete discretion."})]}),r.jsxs("div",{className:"border-b pb-6",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"What constitutes legal cohabitation in Utah?"}),r.jsx("p",{className:"text-foreground",children:"Utah law defines cohabitation as living together in a marriage-like relationship. We document shared finances, overnight stays, and relationship evidence."})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"What if you don't find evidence of cohabitation?"}),r.jsx("p",{className:"text-foreground",children:"We work diligently to gather evidence using proven investigation techniques and have extensive experience in cohabitation cases."})]})]})]})})}),doe=()=>r.jsx("section",{className:"py-16 bg-blue-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Common Concerns Answered"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"font-bold mb-3 text-red-600",children:'"It seems expensive..."'}),r.jsx("p",{className:"text-foreground",children:"The average client saves 50x their investigation cost in the first year alone"})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"font-bold mb-3 text-red-600",children:'"What if this backfires legally?"'}),r.jsx("p",{className:"text-foreground",children:"We work closely with family law attorneys and our evidence meets all court standards"})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[r.jsx("h3",{className:"font-bold mb-3 text-red-600",children:`"I don't want to seem vindictive..."`}),r.jsx("p",{className:"text-foreground",children:"This isn't about revenge - it's about fair enforcement of Utah law"})]})]})]})})}),uoe=({scrollToQuiz:e})=>r.jsx("section",{className:"py-16 bg-gradient-to-br from-trident-dark to-gray-900 text-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Stop Overpaying Today - Get Your Free Assessment"}),r.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-center mb-8",children:[r.jsx("button",{onClick:e,className:"bg-trident-orange text-red-600 px-8 py-4 rounded-lg font-bold text-lg hover:bg-trident-orange/90 transition-all shadow-lg",children:"Schedule My Free Consultation"}),r.jsx("a",{href:"tel:+13855032939",className:`bg-white text-red-600 px-8 py-4 rounded-lg font-bold text-lg hover:bg-muted/10 transition-all shadow-lg ${Qi}`,children:"Call Now: (385) 503-2939"})]}),r.jsxs("div",{className:"flex flex-col md:flex-row gap-4 justify-center items-center text-center",children:[r.jsxs("a",{href:"sms:3855032939",className:`inline-flex items-center gap-4 bg-trident-orange/20 backdrop-blur rounded-full px-6 py-3 text-white hover:bg-trident-orange/30 transition-all font-bold border border-trident-orange/30 ${Qi}`,children:[r.jsx(Bl,{className:"w-5 h-5 text-trident-orange"}),"Text Us: (385) 503-2939"]}),r.jsxs("a",{href:"mailto:info@tridentpi.net",className:"inline-flex items-center gap-4 bg-trident-purple/20 backdrop-blur rounded-full px-6 py-3 text-white hover:bg-trident-purple/30 transition-all font-bold border border-trident-purple/30",children:[r.jsx(xr,{className:"w-5 h-5 text-trident-purple"}),"Email: info@tridentpi.net"]})]}),r.jsxs("div",{className:"bg-trident-orange/10 backdrop-blur rounded-lg p-8 mt-8 border border-trident-orange/20",children:[r.jsxs("div",{className:"flex items-center justify-center gap-4 mb-6",children:[r.jsx(ri,{className:"w-8 h-8 text-trident-orange"}),r.jsx("span",{className:"font-bold text-trident-orange text-xl",children:"Limited Time"})]}),r.jsx("p",{className:"mb-4 text-lg font-semibold",children:"Only 3 consultation slots available this week"}),r.jsx("p",{className:"text-base opacity-90",children:"Every day you wait costs you hundreds in unnecessary payments"})]})]})})}),hoe=()=>{wn({title:"Stop Paying Alimony You Don't Owe - Utah Cohabitation Investigation | Trident PI",description:"Utah men save $150K+ when ex-spouse cohabitates. 99% success rate. Court-admissible evidence. No evidence, no fee guarantee. Free consultation.",keywords:"Utah cohabitation investigation, stop alimony payments, cohabitation evidence, Utah divorce law, private investigator Utah, alimony modification"});const e=()=>{var n;(n=document.getElementById("savings-calculator"))==null||n.scrollIntoView({behavior:"smooth"})},t=()=>{var n;(n=document.getElementById("assessment-quiz"))==null||n.scrollIntoView({behavior:"smooth"})};return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsx(roe,{scrollToCalculator:e,scrollToQuiz:t}),r.jsx(ioe,{}),r.jsx(soe,{}),r.jsx("section",{id:"savings-calculator",className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-trident-black",children:"See YOUR Potential Savings"}),r.jsx("p",{className:"text-lg text-trident-black",children:"Calculate exactly how much you could save when cohabitation is proven"})]}),r.jsx(noe,{}),r.jsx("div",{className:"text-center mt-8",children:r.jsx("button",{onClick:t,className:"bg-gradient-to-r from-green-600 to-green-700 text-white px-8 py-4 rounded-lg font-bold text-lg hover:from-green-700 hover:to-green-800 transition-all shadow-lg",children:"Get My Free Assessment to Start Saving"})})]})}),r.jsx(aoe,{}),r.jsx(ooe,{}),r.jsx(loe,{}),r.jsx("section",{id:"assessment-quiz",className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-trident-black",children:"Get Your FREE Alimony Assessment"}),r.jsx("p",{className:"text-lg text-trident-black",children:"Take our comprehensive quiz to evaluate your case and potential savings"})]}),r.jsx(Oae,{})]})}),r.jsx(coe,{}),r.jsx(doe,{}),r.jsx(uoe,{scrollToQuiz:t}),r.jsx(Qe,{})]})},moe=({services:e,title:t="Related Services",subtitle:n="Explore our comprehensive range of investigative services designed to meet your specific needs."})=>{const i=(s,a)=>{window.gtag&&window.gtag("event","related_service_click",{event_category:"Related Services",event_label:s,service_type:s,service_path:a,click_location:"related_services_section"})};return r.jsx("section",{className:"py-16 bg-muted/50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"heading-primary text-3xl md:text-4xl mb-4",children:t}),r.jsx("p",{className:"body-primary text-lg max-w-2xl mx-auto",children:n})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:e.map((s,a)=>r.jsx(te,{to:s.link,onClick:()=>i(s.title,s.link),className:"block group","aria-label":`Learn more about ${s.title}`,children:r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md transition-all duration-300 hover:shadow-xl hover:translate-y-[-5px] h-full flex flex-col",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[r.jsx("div",{className:"bg-trident-orange/10 rounded-lg p-3 group-hover:bg-trident-orange/20 transition-colors duration-300",children:r.jsx(s.icon,{className:"w-8 h-8 text-trident-orange"})}),r.jsx("h3",{className:"heading-secondary text-xl flex-1",children:s.title})]}),r.jsx("p",{className:"body-primary flex-1 mb-4 leading-relaxed",children:s.description}),r.jsxs("div",{className:"flex items-center text-trident-orange font-semibold group-hover:text-trident-orange/80 transition-colors duration-300",children:[r.jsx("span",{children:"Learn More"}),r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 ml-2 group-hover:translate-x-1 transition-transform duration-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})},a))})]})})},foe={Shield:Be,Search:Pi,Eye:ai,Building:Qn,FileText:Ct,Users:pn,Home:j_,AlertTriangle:ri,CheckCircle:we,Briefcase:cd},poe=({service:e,children:t,onLinkClick:n})=>{const i=foe[e.icon]||Be;return r.jsx(TL,{children:r.jsxs(PL,{delayDuration:300,children:[r.jsx(EL,{asChild:!0,children:r.jsx(te,{to:e.path,onClick:n,className:"smart-service-link border-b-2 border-trident-orange/60 hover:border-trident-orange transition-all duration-300 no-underline text-inherit hover:text-trident-orange",children:t})}),r.jsx(Q_,{side:"top",className:"w-48 p-4 bg-white border border-border shadow-xl rounded-lg",sideOffset:8,children:r.jsxs("div",{className:"flex items-start space-x-3",children:[r.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-trident-orange/10 rounded-lg flex items-center justify-center",children:r.jsx(i,{className:"w-4 h-4 text-trident-orange"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"text-sm font-semibold text-trident-dark mb-1 leading-tight",children:e.service}),r.jsx("p",{className:"text-xs text-gray-600 leading-relaxed",children:e.description}),r.jsx("div",{className:"mt-2",children:r.jsx("span",{className:"text-xs text-trident-orange font-medium",children:"Learn more β"})})]})]})})]})})},vE=[{keyword:"insurance fraud",service:"Insurance Fraud Investigations",path:"/services/insurance",description:"Comprehensive insurance fraud detection and evidence gathering.",icon:"Shield"},{keyword:"asset discovery",service:"Asset Search Services",path:"/services/asset-searches",description:"Professional asset location and financial investigation services.",icon:"Search"},{keyword:"surveillance evidence",service:"Surveillance Services",path:"/services/domestic",description:"Professional surveillance for legal and personal matters.",icon:"Eye"},{keyword:"corporate investigations",service:"Corporate Investigation Services",path:"/services/corporate",description:"Business intelligence and corporate investigation solutions.",icon:"Building"},{keyword:"divorce investigation",service:"Divorce Investigation Services",path:"/services/divorce-investigation",description:"Confidential investigation services for divorce cases.",icon:"FileText"},{keyword:"child custody",service:"Child Custody Investigations",path:"/services/child-custody-investigation",description:"Professional investigations to support child custody cases.",icon:"Users"},{keyword:"cohabitation investigation",service:"Cohabitation Investigations",path:"/services/cohabitation-investigations",description:"Prove or disprove cohabitation for legal and financial matters.",icon:"Home"},{keyword:"employee misconduct",service:"Corporate Investigations",path:"/services/corporate",description:"Investigate workplace misconduct and policy violations.",icon:"AlertTriangle"},{keyword:"due diligence",service:"Corporate Investigations",path:"/services/corporate",description:"Business due diligence and background verification services.",icon:"CheckCircle"},{keyword:"workers compensation fraud",service:"Insurance Investigations",path:"/services/insurance",description:"Workers compensation fraud investigation and claims verification.",icon:"Briefcase"},{keyword:"alimony modification",service:"Divorce Investigation Services",path:"/services/divorce-investigation",description:"Evidence gathering for alimony and spousal support cases.",icon:"Scale"},{keyword:"spousal support",service:"Divorce Investigation Services",path:"/services/divorce-investigation",description:"Investigation services for spousal support determinations.",icon:"Heart"},{keyword:"custody evaluation",service:"Child Custody Investigations",path:"/services/child-custody-investigation",description:"Professional custody evaluations and parental fitness assessments.",icon:"UserCheck"},{keyword:"parental fitness",service:"Child Custody Investigations",path:"/services/child-custody-investigation",description:"Comprehensive parental fitness investigations for court proceedings.",icon:"Baby"},{keyword:"domestic relations",service:"Domestic Investigations",path:"/services/domestic-investigations",description:"Complete domestic relations investigation services.",icon:"Users"},{keyword:"employee theft",service:"Corporate Investigations",path:"/services/corporate",description:"Professional investigation of employee theft and fraud.",icon:"AlertOctagon"},{keyword:"embezzlement",service:"Corporate Investigations",path:"/services/corporate",description:"Comprehensive embezzlement investigations and evidence collection.",icon:"DollarSign"},{keyword:"trade secrets",service:"Corporate Investigations",path:"/services/corporate",description:"Protection and investigation of trade secret violations.",icon:"Lock"},{keyword:"background checks",service:"Corporate Investigations",path:"/services/corporate",description:"Professional background verification and screening services.",icon:"UserSearch"},{keyword:"disability fraud",service:"Insurance Investigations",path:"/services/insurance",description:"Comprehensive disability fraud investigation services.",icon:"Shield"},{keyword:"slip and fall",service:"Insurance Investigations",path:"/services/insurance",description:"Professional slip and fall claim investigations.",icon:"AlertTriangle"},{keyword:"personal injury claims",service:"Insurance Investigations",path:"/services/insurance",description:"Expert personal injury claim investigation and verification.",icon:"Activity"},{keyword:"witness location",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Professional witness location and service of process.",icon:"MapPin"},{keyword:"process serving",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Reliable process serving and legal document delivery.",icon:"FileText"},{keyword:"evidence collection",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Professional evidence collection for legal proceedings.",icon:"Folder"},{keyword:"expert testimony",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Expert witness testimony and court preparation services.",icon:"MessageSquare"},{keyword:"Salt Lake County investigation",service:"Salt Lake County Services",path:"/locations/utah/salt-lake-county",description:"Professional investigation services throughout Salt Lake County.",icon:"MapPin"},{keyword:"Utah County investigation",service:"Utah County Services",path:"/locations/utah/utah-county",description:"Comprehensive investigation services in Utah County.",icon:"MapPin"},{keyword:"Davis County investigation",service:"Davis County Services",path:"/locations/utah/davis-county",description:"Expert investigation services throughout Davis County.",icon:"MapPin"},{keyword:"Weber County investigation",service:"Weber County Services",path:"/locations/utah/weber-county",description:"Professional investigation services in Weber County.",icon:"MapPin"},{keyword:"criminal investigation",service:"Criminal Investigations",path:"/services/criminal-investigations",description:"Professional criminal investigation and evidence gathering.",icon:"Shield"},{keyword:"legal compliance",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Ensuring all investigations meet legal compliance standards.",icon:"CheckCircle"},{keyword:"court admissible evidence",service:"Legal Investigation Services",path:"/services/legal-investigation-utah",description:"Collection of court-admissible evidence and documentation.",icon:"Scale"},{keyword:"licensed private investigator",service:"Professional Investigation Services",path:"/about",description:"Fully licensed and certified private investigation services.",icon:"Award"},{keyword:"confidential investigation",service:"Professional Investigation Services",path:"/services",description:"Discreet and confidential investigation services.",icon:"Eye"},{keyword:"surveillance services",service:"Surveillance Services",path:"/services/domestic",description:"Professional surveillance and monitoring services.",icon:"Video"},{keyword:"digital forensics",service:"Corporate Investigations",path:"/services/corporate",description:"Advanced digital forensics and electronic evidence analysis.",icon:"Smartphone"},{keyword:"background verification",service:"Corporate Investigations",path:"/services/corporate",description:"Comprehensive background verification services.",icon:"UserCheck"},{keyword:"asset search",service:"Asset Search Services",path:"/services/asset-searches",description:"Professional asset location and financial investigation.",icon:"Search"},{keyword:"infidelity investigation",service:"Domestic Investigations",path:"/services/domestic-investigations",description:"Discreet infidelity and adultery investigation services.",icon:"Heart"},{keyword:"missing person",service:"Professional Investigation Services",path:"/services",description:"Expert missing person location and investigation services.",icon:"Users"},{keyword:"fraud investigation",service:"Corporate Investigations",path:"/services/corporate",description:"Comprehensive fraud investigation and prevention services.",icon:"AlertCircle"}],aF=()=>{const e=j.useCallback(i=>{const s=[],a=i.toLowerCase();return vE.forEach(o=>{const l=o.keyword.toLowerCase();let c=a.indexOf(l);for(;c!==-1;){const d=c>0?i[c-1]:" ",u=c+l.length<i.length?i[c+l.length]:" ";/\s/.test(d)&&/\s|[.,!?;:]/.test(u)&&s.push({keyword:i.substring(c,c+l.length),service:o,startIndex:c,endIndex:c+l.length}),c=a.indexOf(l,c+1)}}),s.sort((o,l)=>o.startIndex-l.startIndex)},[]),t=j.useCallback((i,s)=>{wl("form",`Content Link: ${i.service}`),window.gtag&&window.gtag("event","content_link_click",{event_category:"Content Engagement",event_label:i.service,service_name:i.service,service_path:i.path,link_context:s,value:1})},[]),n=j.useCallback(i=>{const s=e(i);if(s.length===0)return i;let a="",o=0;return s.forEach(l=>{a+=i.substring(o,l.startIndex),a+=`<span data-smart-link='${JSON.stringify(l.service)}' class="smart-service-link">${l.keyword}</span>`,o=l.endIndex}),a+=i.substring(o),a},[e]);return{findLinksInContent:e,processContent:n,trackContentLinkClick:t,serviceKeywords:vE}},goe=({service:e,keyword:t,context:n=""})=>{const{trackContentLinkClick:i}=aF(),s=()=>{i(e,n)};return r.jsx(poe,{service:e,onLinkClick:s,children:t})},g1=({children:e,context:t="",className:n=""})=>{const{findLinksInContent:i}=aF(),s=j.useMemo(()=>{const a=i(e);if(a.length===0)return[{type:"text",content:e}];const o=[];let l=0;return a.forEach(c=>{c.startIndex>l&&o.push({type:"text",content:e.substring(l,c.startIndex)}),o.push({type:"link",content:c.keyword,linkData:c}),l=c.endIndex}),l<e.length&&o.push({type:"text",content:e.substring(l)}),o},[e,i]);return r.jsx("span",{className:n,children:s.map((a,o)=>a.type==="text"?r.jsx("span",{children:a.content},o):a.type==="link"&&a.linkData?r.jsx(goe,{service:a.linkData.service,keyword:a.content,context:t},o):null)})},voe=[{icon:pn,title:"Domestic Investigations",description:"Comprehensive domestic investigation services including surveillance, infidelity investigations, and family matter support.",link:"/services/domestic"},{icon:Pi,title:"Asset Searches",description:"Professional asset discovery and financial investigation services for legal proceedings and judgment collection.",link:"/services/asset-searches"},{icon:Be,title:"Criminal Investigations",description:"Criminal defense investigation support including alibi verification, evidence review, and witness interviews.",link:"/services/criminal"}],xoe=()=>(wn({title:ft.services.legalInvestigation.title,description:ft.services.legalInvestigation.description,keywords:ft.services.legalInvestigation.keywords,canonicalUrl:"https://tridentpi.net/services/legal-investigation-utah"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-trident-white overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-black/20"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Licensed Investigators"}),r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Court-Admissible Evidence"}),r.jsx("span",{className:"bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-semibold",children:"Confidential Service"})]}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Professional Legal Investigation Services in Utah"}),r.jsx("p",{className:"text-xl text-trident-white/80 mb-8",children:"Need evidence for your legal case? Our licensed Utah investigators provide professional legal investigation services that help strengthen your position in court. Whether you're facing divorce proceedings, child custody disputes, personal injury claims, or civil litigation, we gather the court-admissible evidence you need to protect your rights and achieve the best possible outcome."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(V,{size:"lg",className:"text-white font-semibold",style:{backgroundColor:"#ff9200",backgroundImage:"none"},children:"Free Consultation"}),r.jsx(V,{size:"lg",className:"text-white font-semibold",style:{backgroundColor:"#ff9200",backgroundImage:"none"},children:"Call Now: (385) 275-8220"})]})]})})]}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Legal Investigation Services We Provide"}),r.jsx("p",{className:"text-lg text-trident-black max-w-3xl mx-auto",children:"Our legal investigation services support individuals navigating complex legal matters throughout Utah. We specialize in evidence collection that meets legal standards and can withstand court scrutiny."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(Zn,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Divorce Investigation & Evidence Collection"}),r.jsxs("ul",{className:"text-supporting-readable mb-4 space-y-1",children:[r.jsx("li",{children:"β’ Asset discovery and financial investigation"}),r.jsx("li",{children:"β’ Lifestyle documentation for alimony determinations"}),r.jsxs("li",{children:["β’ ",r.jsx("a",{href:"/services/cohabitation-investigations",className:"text-trident-purple hover:underline",children:"Cohabitation evidence gathering"})]}),r.jsx("li",{children:"β’ Hidden income and asset searches"}),r.jsx("li",{children:"β’ Documentation of marital misconduct affecting financial settlements"})]}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(pn,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Child Custody Investigation Support"}),r.jsxs("ul",{className:"text-supporting-readable mb-4 space-y-1",children:[r.jsx("li",{children:"β’ Parental fitness evaluation and documentation"}),r.jsx("li",{children:"β’ Living environment safety assessments"}),r.jsx("li",{children:"β’ School and activity participation documentation"}),r.jsx("li",{children:"β’ Character witness identification and interviews"}),r.jsx("li",{children:"β’ Best interests of the child evidence collection"})]}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(Ct,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Personal Injury Case Investigation"}),r.jsxs("ul",{className:"text-supporting-readable mb-4 space-y-1",children:[r.jsx("li",{children:"β’ Accident scene reconstruction and documentation"}),r.jsx("li",{children:"β’ Witness location and statement collection"}),r.jsx("li",{children:"β’ Video surveillance evidence gathering"}),r.jsx("li",{children:"β’ Medical treatment verification"}),r.jsx("li",{children:"β’ Pre-existing condition investigation"})]}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(Qn,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Civil Litigation Support"}),r.jsxs("ul",{className:"text-supporting-readable mb-4 space-y-1",children:[r.jsx("li",{children:"β’ Background investigations on opposing parties"}),r.jsx("li",{children:"β’ Asset searches for judgment collection"}),r.jsx("li",{children:"β’ Business relationship documentation"}),r.jsx("li",{children:"β’ Contract dispute evidence gathering"}),r.jsx("li",{children:"β’ Fraud investigation and documentation"})]}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(Be,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Criminal Defense Investigation"}),r.jsxs("ul",{className:"text-supporting-readable mb-4 space-y-1",children:[r.jsx("li",{children:"β’ Alibi verification and documentation"}),r.jsx("li",{children:"β’ Alternative suspect identification"}),r.jsx("li",{children:"β’ Evidence chain of custody review"}),r.jsx("li",{children:"β’ Witness credibility assessment"}),r.jsx("li",{children:"β’ Expert witness identification"})]}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-lg border border-gray-100 hover:shadow-xl transition-shadow",children:[r.jsx(Pi,{className:"w-12 h-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Asset Searches & Financial Investigation"}),r.jsx("p",{className:"text-supporting-readable mb-4",children:"Hidden asset discovery, financial background investigations, and business relationship documentation."}),r.jsx(V,{className:"bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",size:"sm",children:"Learn More"})]})]})]})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Choose Trident Investigations for Legal Matters"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(we,{className:"w-8 h-8 text-green-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Licensed & Experienced"}),r.jsx("p",{className:"text-supporting-readable",children:"Our Utah private investigators are fully licensed and experienced in legal investigation procedures that meet court standards."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(Zn,{className:"w-8 h-8 text-blue-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-supporting-readable",children:"We understand the evidentiary requirements for Utah courts and ensure all documentation meets legal admissibility standards."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(Ct,{className:"w-8 h-8 text-purple-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Professional Testimony"}),r.jsx("p",{className:"text-supporting-readable",children:"Our investigators can provide professional testimony in court proceedings when required for your case."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(Be,{className:"w-8 h-8 text-red-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Confidential Service"}),r.jsx("p",{className:"text-supporting-readable",children:"We maintain strict confidentiality throughout the investigation process to protect your legal strategy."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(pn,{className:"w-8 h-8 text-orange-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Attorney Collaboration"}),r.jsx("p",{className:"text-supporting-readable",children:"We work closely with your legal counsel to ensure our investigation supports your case strategy effectively."})]}),r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"bg-white rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4 shadow-md",children:r.jsx(Sn,{className:"w-8 h-8 text-teal-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Quick Response"}),r.jsx("p",{className:"text-supporting-readable",children:"We understand legal timelines and can mobilize quickly to gather time-sensitive evidence for your case."})]})]})]})}),r.jsx("section",{className:"py-16 bg-trident-black text-trident-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Utah Legal Investigation Experience"}),r.jsx("p",{className:"text-lg text-trident-grey mb-8",children:r.jsx(g1,{context:"Utah Legal Experience Overview",children:"Our team has extensive experience supporting legal cases throughout Utah's court system. We understand local legal procedures, evidentiary requirements, and the documentation standards required for successful case outcomes. Many corporate investigations and divorce proceedings require specialized knowledge of Utah's unique laws, and our investigators are experts in gathering court-admissible evidence that can significantly impact legal outcomes."})}),r.jsxs("div",{className:"bg-trident-blue/20 border border-trident-blue/30 rounded-lg p-6 mb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-gold",children:"Cohabitation Investigation Specialists"}),r.jsxs("p",{className:"text-trident-grey",children:["Utah's unique cohabitation laws require specialized knowledge for divorce and alimony cases. Our investigators are experts in gathering court-admissible evidence of cohabitation that can significantly impact financial settlements.",r.jsx("a",{href:"/services/cohabitation-investigations",className:"text-trident-gold hover:underline ml-1",children:"Learn more about our cohabitation investigation services"}),"."]})]})]})})}),r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Types of Legal Cases We Support"}),r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md",children:[r.jsx("h3",{className:"text-lg font-bold mb-3 text-trident-purple",children:"Family Law Matters"}),r.jsxs("ul",{className:"text-supporting-readable space-y-1",children:[r.jsx("li",{children:"β’ Divorce proceedings"}),r.jsx("li",{children:"β’ Child custody disputes"}),r.jsx("li",{children:"β’ Support modification cases"}),r.jsx("li",{children:"β’ Cohabitation investigations"})]})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md",children:[r.jsx("h3",{className:"text-lg font-bold mb-3 text-trident-purple",children:"Personal Injury & Accidents"}),r.jsxs("ul",{className:"text-supporting-readable space-y-1",children:[r.jsx("li",{children:"β’ Motor vehicle accidents"}),r.jsx("li",{children:"β’ Slip and fall cases"}),r.jsx("li",{children:"β’ Workplace injuries"}),r.jsx("li",{children:"β’ Medical malpractice"})]})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md",children:[r.jsx("h3",{className:"text-lg font-bold mb-3 text-trident-purple",children:"Business & Civil Disputes"}),r.jsxs("ul",{className:"text-supporting-readable space-y-1",children:[r.jsx("li",{children:"β’ Contract disputes"}),r.jsx("li",{children:"β’ Partnership conflicts"}),r.jsx("li",{children:"β’ Employment law matters"}),r.jsx("li",{children:"β’ Real estate disputes"})]})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md",children:[r.jsx("h3",{className:"text-lg font-bold mb-3 text-trident-purple",children:"Criminal Defense & Insurance"}),r.jsxs("ul",{className:"text-supporting-readable space-y-1",children:[r.jsx("li",{children:"β’ Criminal defense investigations"}),r.jsx("li",{children:"β’ Insurance claim investigations"}),r.jsx("li",{children:"β’ Fraud cases"}),r.jsx("li",{children:"β’ Asset recovery"})]})]})]})})]})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Our Legal Investigation Process"}),r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsxs("div",{className:"space-y-8",children:[r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-trident-purple text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-lg flex-shrink-0",children:"1"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Confidential Case Consultation"}),r.jsx("p",{className:"text-supporting-readable",children:r.jsx(g1,{context:"Legal Consultation Process",children:"We discuss your legal situation, evidence needs, and timeline requirements in a completely confidential consultation."})})]})]}),r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-trident-purple text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-lg flex-shrink-0",children:"2"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Investigation Strategy Development"}),r.jsx("p",{className:"text-supporting-readable",children:"Our team develops a customized investigation plan that aligns with your legal strategy and court requirements."})]})]}),r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-trident-purple text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-lg flex-shrink-0",children:"3"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Professional Evidence Collection"}),r.jsx("p",{className:"text-supporting-readable",children:r.jsx(g1,{context:"Evidence Collection Process",children:"We execute the investigation using proven methods that ensure surveillance evidence admissibility and maintain legal standards."})})]})]}),r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-trident-purple text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-lg flex-shrink-0",children:"4"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Comprehensive Documentation"}),r.jsx("p",{className:"text-supporting-readable",children:"All findings are professionally documented with detailed reports, photographs, and supporting evidence materials."})]})]}),r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-trident-purple text-white rounded-full w-12 h-12 flex items-center justify-center font-bold text-lg flex-shrink-0",children:"5"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-2",children:"Court Preparation & Testimony"}),r.jsx("p",{className:"text-supporting-readable",children:"We prepare all materials for court presentation and provide professional testimony when required for your case."})]})]})]})})]})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Get Professional Legal Investigation Support"}),r.jsx("p",{className:"text-lg text-secondary-readable mb-4",children:"Don't let inadequate evidence weaken your legal case. Our professional legal investigation services provide the court-admissible evidence you need to strengthen your position and achieve the best possible outcome."}),r.jsx("p",{className:"text-lg text-secondary-readable",children:"Contact us today for a free confidential consultation about your legal investigation needs. We'll discuss your case, explain how our services can support your legal strategy, and provide a clear plan for gathering the evidence you need."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-white rounded-lg p-8 shadow-lg",children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Free Consultation"}),r.jsxs("form",{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsx(he,{placeholder:"First Name"}),r.jsx(he,{placeholder:"Last Name"})]}),r.jsx(he,{placeholder:"Phone Number"}),r.jsx(he,{placeholder:"Email Address",type:"email"}),r.jsxs(un,{children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Case Type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"divorce",children:"Divorce Investigation"}),r.jsx(be,{value:"custody",children:"Child Custody"}),r.jsx(be,{value:"personal-injury",children:"Personal Injury"}),r.jsx(be,{value:"civil",children:"Civil Litigation"}),r.jsx(be,{value:"criminal",children:"Criminal Defense"}),r.jsx(be,{value:"cohabitation",children:"Cohabitation Investigation"}),r.jsx(be,{value:"asset",children:"Asset Search"}),r.jsx(be,{value:"other",children:"Other"})]})]}),r.jsx(di,{placeholder:"Tell us about your case...",rows:4}),r.jsx(V,{className:"w-full bg-[#ff9200] hover:bg-[#ff9200]/90 text-white font-semibold",children:"Request Free Consultation"})]})]}),r.jsxs("div",{className:"bg-trident-black text-white rounded-lg p-8",children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Contact Information"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(fn,{className:"w-6 h-6 mt-1 text-yellow-500"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"Phone"}),r.jsx("p",{className:"text-readable-light",children:"(385) 275-8220"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Available 24/7 for urgent cases"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(xr,{className:"w-6 h-6 mt-1 text-yellow-500"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"Email"}),r.jsx("p",{className:"text-readable-light",children:"info@tridentpi.net"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Response within 2 hours"})]})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Et,{className:"w-6 h-6 mt-1 text-yellow-500"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold",children:"Service Areas"}),r.jsx("p",{className:"text-readable-light",children:"All of Utah"}),r.jsx("p",{className:"text-sm text-supporting-readable",children:"Salt Lake City, Provo, Ogden & surrounding areas"})]})]}),r.jsxs("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-lg p-4 mt-6",children:[r.jsx("p",{className:"text-yellow-400 font-semibold",children:"Free Consultation Available"}),r.jsx("p",{className:"text-readable-light text-sm",children:"Call (385) 275-8220 or complete our online contact form to schedule your free consultation with our experienced legal investigation team."})]})]})]})]})]})})}),r.jsx(moe,{services:voe,title:"Related Investigation Services",subtitle:"Discover our comprehensive range of specialized investigation services that complement our legal investigation offerings."}),r.jsx(tr,{title:"Strengthen Your Legal Case with Professional Investigation",description:"Contact our licensed investigators for court-admissible evidence collection that protects your rights and achieves the best possible outcome.",buttonText:"Get Free Consultation",buttonLink:"/contact"}),r.jsx(Qe,{})]})),yoe=()=>(wn({title:"Divorce Investigation Utah | Asset Discovery | Evidence Collection | Trident PI",description:"Professional divorce investigation services in Utah. Asset discovery, lifestyle documentation, hidden income searches. Court-admissible evidence for divorce proceedings. Licensed investigators.",keywords:"divorce investigation Utah, asset discovery, lifestyle documentation, hidden income searches, court-admissible evidence, divorce proceedings, licensed investigators"}),r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative bg-gradient-to-r from-trident-black via-trident-blue to-trident-black text-trident-white pt-32 pb-16",children:[r.jsx("div",{className:"absolute inset-0 bg-trident-black/20"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsxs("div",{className:"flex justify-center items-center gap-4 mb-16",children:[r.jsx("div",{className:"bg-trident-white/10 backdrop-blur-sm px-4 py-2 rounded-full",children:r.jsxs("span",{className:"text-sm font-semibold flex items-center gap-2",children:[r.jsx(Be,{className:"w-4 h-4"}),"Licensed"]})}),r.jsx("div",{className:"bg-trident-white/10 backdrop-blur-sm px-4 py-2 rounded-full",children:r.jsxs("span",{className:"text-sm font-semibold flex items-center gap-2",children:[r.jsx(yl,{className:"w-4 h-4"}),"Confidential"]})}),r.jsx("div",{className:"bg-trident-white/10 backdrop-blur-sm px-4 py-2 rounded-full",children:r.jsxs("span",{className:"text-sm font-semibold flex items-center gap-2",children:[r.jsx(Zn,{className:"w-4 h-4"}),"Court-Admissible"]})})]}),r.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-8",children:"Professional Divorce Investigation Services in Utah"}),r.jsx("p",{className:"text-xl md:text-2xl mb-8 text-trident-white opacity-80",children:"Protect Your Financial Interests | Asset Discovery | Court-Admissible Evidence"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(V,{size:"lg",className:"bg-trident-gold hover:bg-trident-gold/80 text-trident-black font-semibold",children:"Confidential Consultation"}),r.jsx(V,{size:"lg",variant:"outline",className:"border-trident-white text-trident-white hover:bg-trident-white hover:text-trident-black",children:"Call Now: (385) 275-8220"})]})]})})]}),r.jsx("section",{className:"py-8 bg-trident-smoke",children:r.jsx("div",{className:"container-custom",children:r.jsx(Wb,{})})}),r.jsx("section",{className:"py-16 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-black mb-4",children:"Our Divorce Investigation Services"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Comprehensive financial investigation services to protect your interests and ensure fair settlement outcomes in Utah divorce proceedings."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsx(W,{className:"h-full",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-purple/10 w-16 h-16 rounded-lg flex items-center justify-center mb-6",children:r.jsx(Pi,{className:"w-8 h-8 text-trident-purple"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-black mb-4",children:"Asset Discovery & Financial Investigation"}),r.jsxs("ul",{className:"space-y-3 text-trident-black",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Hidden bank account identification"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Undisclosed investment and retirement account discovery"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Real estate holding investigation (including out-of-state properties)"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Business interest and ownership investigation"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-gold mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Cryptocurrency and digital asset searches"})]})]})]})}),r.jsx(W,{className:"h-full",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-orange/10 w-16 h-16 rounded-lg flex items-center justify-center mb-6",children:r.jsx(ma,{className:"w-8 h-8 text-trident-orange"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:"Income & Lifestyle Documentation"}),r.jsxs("ul",{className:"space-y-3 text-trident-gray",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Actual income verification vs. reported income"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Standard of living documentation for alimony determinations"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Expense pattern analysis and documentation"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Luxury purchase and spending pattern evidence"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Social media lifestyle evidence collection"})]})]})]})}),r.jsx(W,{className:"h-full",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-purple/10 w-16 h-16 rounded-lg flex items-center justify-center mb-6",children:r.jsx(pn,{className:"w-8 h-8 text-trident-purple"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:"Cohabitation Investigation"}),r.jsxs("ul",{className:"space-y-3 text-trident-gray",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"New relationship documentation for alimony modification"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Shared living arrangement evidence collection"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Financial support from new partner documentation"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Joint expense and lifestyle evidence gathering"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-orange mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Property sharing and domestic partnership evidence"})]})]})]})}),r.jsx(W,{className:"h-full",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-orange/10 w-16 h-16 rounded-lg flex items-center justify-center mb-6",children:r.jsx(ai,{className:"w-8 h-8 text-trident-orange"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:"Hidden Income Investigation"}),r.jsxs("ul",{className:"space-y-3 text-trident-gray",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Unreported cash income discovery"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Side business and consulting income investigation"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Under-the-table payment documentation"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Income diversion and concealment evidence"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"w-5 h-5 text-trident-purple mt-0.5 flex-shrink-0"}),r.jsx("span",{children:"Tax return discrepancy investigation"})]})]})]})})]})]})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Understanding Utah Divorce Law"}),r.jsx("p",{className:"text-xl text-trident-gray",children:"Our investigations align with Utah divorce law requirements, focusing on factors that legally impact property division and support determinations."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-purple/10 w-12 h-12 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Zn,{className:"w-6 h-6 text-trident-purple"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:"Property Division Factors"}),r.jsxs("ul",{className:"space-y-2 text-trident-gray",children:[r.jsx("li",{children:"β’ Length of marriage and contribution documentation"}),r.jsx("li",{children:"β’ Economic circumstances of each party"}),r.jsx("li",{children:"β’ Standard of living during marriage evidence"}),r.jsx("li",{children:"β’ Age and health considerations"}),r.jsx("li",{children:"β’ Occupational skills and earning capacity assessment"})]})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-trident-orange/10 w-12 h-12 rounded-lg flex items-center justify-center mb-4",children:r.jsx(xl,{className:"w-6 h-6 text-trident-orange"})}),r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:"Alimony Consideration Factors"}),r.jsxs("ul",{className:"space-y-2 text-trident-gray",children:[r.jsx("li",{children:"β’ Financial condition and needs of both parties"}),r.jsx("li",{children:"β’ Earning capacity and education level verification"}),r.jsx("li",{children:"β’ Standard of living during marriage documentation"}),r.jsx("li",{children:"β’ Duration of marriage and contribution evidence"})]})]})})]})]})})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Common Signs We Investigate"}),r.jsx("p",{className:"text-xl text-trident-gray",children:"These red flags often indicate hidden assets or income that could impact your divorce settlement."})]}),r.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-8",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"Sudden decrease in reported income before divorce filing"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"New business formations or partnership changes"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"Large cash withdrawals or unexplained transactions"})]})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"Property transfers to family members or friends"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"Lifestyle that doesn't match reported income"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"w-6 h-6 rounded-full bg-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx("span",{className:"text-white text-xs font-bold",children:"!"})}),r.jsx("span",{className:"text-trident-gray",children:"Resistance to financial disclosure or document production"})]})]})]})})]})})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Why Choose Trident Investigations"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Trusted divorce investigation expertise protecting your financial future in Utah."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsx(W,{className:"text-center",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Os,{className:"w-8 h-8 text-blue-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Utah Divorce Experience"}),r.jsx("p",{className:"text-gray-600",children:"Extensive experience with Utah divorce proceedings and court requirements for financial evidence."})]})}),r.jsx(W,{className:"text-center",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx($s,{className:"w-8 h-8 text-green-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Financial Investigation Expertise"}),r.jsx("p",{className:"text-gray-600",children:"Specialized training in asset discovery and financial investigation techniques."})]})}),r.jsx(W,{className:"text-center",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Jm,{className:"w-8 h-8 text-purple-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-gray-600",children:"All documentation meets Utah court standards for admissibility in divorce proceedings."})]})}),r.jsx(W,{className:"text-center",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-amber-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Be,{className:"w-8 h-8 text-amber-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Complete Discretion & Confidentiality"}),r.jsx("p",{className:"text-gray-600",children:"We understand the sensitive nature of divorce proceedings and maintain complete confidentiality."})]})}),r.jsx(W,{className:"text-center",children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",children:r.jsx(Qn,{className:"w-8 h-8 text-red-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Attorney Collaboration"}),r.jsx("p",{className:"text-gray-600",children:"We work seamlessly with your legal counsel to support your divorce strategy."})]})})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Our Professional Process"}),r.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"A systematic approach to gathering the financial evidence you need for fair settlement negotiations."})]}),r.jsx("div",{className:"max-w-4xl mx-auto",children:r.jsx("div",{className:"space-y-8",children:[{step:"1",title:"Confidential Consultation",description:"We discuss your specific concerns, financial questions, and evidence needs in a completely private setting.",icon:yl},{step:"2",title:"Investigation Planning",description:"Our team develops a targeted investigation strategy that focuses on your specific financial and legal concerns.",icon:Ct},{step:"3",title:"Discreet Evidence Collection",description:"We conduct thorough investigations while maintaining complete discretion to protect your privacy during sensitive proceedings.",icon:ai},{step:"4",title:"Comprehensive Documentation",description:"All findings are professionally documented with detailed reports, financial analysis, and supporting evidence materials.",icon:we},{step:"5",title:"Legal Collaboration",description:"We work with your divorce attorney to ensure our investigation supports your case strategy and meets court requirements.",icon:Zn}].map((e,t)=>r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"bg-blue-600 text-white w-12 h-12 rounded-full flex items-center justify-center font-bold text-lg flex-shrink-0",children:e.step}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[r.jsx(e.icon,{className:"w-6 h-6 text-blue-600"}),r.jsx("h3",{className:"text-2xl font-bold",children:e.title})]}),r.jsx("p",{className:"text-gray-600 text-lg",children:e.description})]})]},t))})})]})}),r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Client Testimonials"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Trusted by clients throughout Utah for professional divorce investigation services."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(5)].map((e,t)=>r.jsx(fa,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},t))}),r.jsx("p",{className:"text-gray-600 mb-4 italic",children:`"Trident's professional discretion during my divorce was exceptional. They uncovered hidden assets that made a significant difference in my settlement. Their evidence was thorough and court-ready."`}),r.jsx("p",{className:"font-semibold",children:"- Sarah M., Salt Lake City"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(5)].map((e,t)=>r.jsx(fa,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},t))}),r.jsx("p",{className:"text-gray-600 mb-4 italic",children:'"The financial investigation services were exactly what I needed. They found unreported income and business interests that completely changed my divorce outcome. Highly professional team."'}),r.jsx("p",{className:"font-semibold",children:"- Michael T., Provo"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-8",children:[r.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(5)].map((e,t)=>r.jsx(fa,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},t))}),r.jsx("p",{className:"text-gray-600 mb-4 italic",children:'"Their collaboration with my attorney was seamless. The evidence they gathered was instrumental in proving cohabitation and modifying my alimony. Professional and confidential throughout."'}),r.jsx("p",{className:"font-semibold",children:"- Jennifer L., Sandy"})]})})]})]})}),r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Request Confidential Consultation"}),r.jsx("p",{className:"text-xl text-gray-600",children:"Protect your financial future with professional divorce investigation services."}),r.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mt-6 inline-block",children:r.jsxs("p",{className:"text-blue-800 font-semibold flex items-center gap-2",children:[r.jsx(yl,{className:"w-5 h-5"}),"100% Confidential - All communications are privileged and protected"]})})]}),r.jsx(W,{children:r.jsx(H,{className:"p-8",children:r.jsxs("form",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"name",children:"Full Name"}),r.jsx(he,{id:"name",placeholder:"Your full name"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"phone",children:"Phone Number"}),r.jsx(he,{id:"phone",type:"tel",placeholder:"(xxx) xxx-xxxx"})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"email",children:"Email Address"}),r.jsx(he,{id:"email",type:"email",placeholder:"your.email@example.com"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"consultation",children:"Consultation Preference"}),r.jsxs(un,{children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select consultation type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"phone",children:"Phone Consultation"}),r.jsx(be,{value:"office",children:"In-Office Meeting"}),r.jsx(be,{value:"video",children:"Video Conference"})]})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"description",children:"Brief Description of Your Situation"}),r.jsx(di,{id:"description",placeholder:"Please briefly describe your concerns about hidden assets, income, or other financial matters...",className:"h-32"})]}),r.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:r.jsxs("p",{className:"text-yellow-800 text-sm",children:[r.jsx("strong",{children:"Privacy Assurance:"})," All information shared is strictly confidential and protected under attorney-client privilege when working with your legal counsel. We maintain the highest standards of discretion in all divorce proceedings."]})}),r.jsx(V,{size:"lg",className:"w-full bg-blue-600 hover:bg-blue-700 text-white",children:"Request Confidential Consultation"})]})})})]})})}),r.jsx("section",{className:"py-8 bg-gray-100",children:r.jsx("div",{className:"container-custom",children:r.jsx("div",{className:"max-w-4xl mx-auto text-center",children:r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm",children:[r.jsx("h3",{className:"font-bold mb-2",children:"Legal Compliance & Professional Standards"}),r.jsx("p",{className:"text-sm text-gray-600",children:"Trident Investigations operates under full Utah licensing and maintains strict confidentiality protocols. Our divorce investigation services comply with all applicable laws and court requirements. We work exclusively within legal boundaries and collaborate with qualified divorce attorneys to ensure all evidence meets Utah court admissibility standards."})]})})})}),r.jsx(tr,{title:"Protect Your Financial Future in Divorce",subtitle:"Don't settle for incomplete financial disclosure. Our professional divorce investigation services ensure you have the complete picture of marital assets and income."}),r.jsx(Qe,{})]})),boe=()=>{var e,t,n;return wn({title:(e=ft.services.corporateUtah)==null?void 0:e.title,description:(t=ft.services.corporateUtah)==null?void 0:t.description,keywords:(n=ft.services.corporateUtah)==null?void 0:n.keywords,canonicalUrl:"https://tridentpi.net/services/corporate-investigation-utah"}),r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsxs("section",{className:"relative flex items-center pt-32 pb-20 hero-gradient text-trident-white",children:[r.jsx("div",{className:"absolute inset-0 hero-overlay-fade"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsx("div",{className:"mb-6",children:r.jsx("span",{className:"inline-block bg-trident-gold text-trident-black px-3 py-1 rounded-full text-sm font-medium mb-4",children:"Utah Business Protection Specialists"})}),r.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:"Corporate Investigation Services Utah"}),r.jsx("p",{className:"text-xl md:text-2xl mb-4 text-readable-light font-medium",children:"Protect Your Utah Business | Employee Investigations | Workplace Security"}),r.jsx("p",{className:"text-lg mb-8 text-readable-light max-w-3xl",children:"Protecting your Utah business from internal threats and external risks? Our professional corporate investigation services help Utah companies safeguard their assets, employees, and reputation. From employee screening to fraud detection, we provide the investigative solutions Utah businesses need to operate securely and successfully."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-8",children:[r.jsx(te,{to:"/contact",className:"btn-primary flex items-center justify-center",children:"Free Business Consultation"}),r.jsxs("a",{href:"tel:+13852758220",className:"btn-secondary flex items-center justify-center",children:[r.jsx(fn,{className:"h-5 w-5 mr-2"}),"Call (385) 275-8220"]})]}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[r.jsxs("div",{className:"text-center",children:[r.jsx(we,{className:"h-8 w-8 text-trident-gold mx-auto mb-2"}),r.jsx("div",{className:"text-sm font-medium",children:"Licensed Utah Investigators"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Zn,{className:"h-8 w-8 text-trident-gold mx-auto mb-2"}),r.jsx("div",{className:"text-sm font-medium",children:"Court-Admissible Evidence"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Be,{className:"h-8 w-8 text-trident-gold mx-auto mb-2"}),r.jsx("div",{className:"text-sm font-medium",children:"Confidential Business Protection"})]}),r.jsxs("div",{className:"text-center",children:[r.jsx(Sn,{className:"h-8 w-8 text-trident-gold mx-auto mb-2"}),r.jsx("div",{className:"text-sm font-medium",children:"Rapid Response Available"})]})]})]})})]}),r.jsx("section",{className:"py-20 bg-trident-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold mb-6 text-trident-black",children:"Utah Corporate Investigation Services"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Comprehensive investigation services designed to protect Utah businesses from internal and external threats"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-trident-purple/10 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Gi,{className:"h-8 w-8 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Employee Background Screening & Verification"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Protect your Utah business with thorough employee screening including criminal background verification, employment history verification, education and credential verification, professional reference interviews, financial background screening, and social media reputation review."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})}),r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-trident-orange/10 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Qn,{className:"h-8 w-8 text-trident-orange"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Workplace Investigation Services"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Professional investigation of workplace incidents including employee misconduct investigation, harassment and discrimination cases, workers' compensation fraud, employee theft and embezzlement, substance abuse investigations, and conflict of interest cases."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})}),r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-red-100 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Pn,{className:"h-8 w-8 text-red-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Utah Business Fraud Detection"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Comprehensive fraud investigation protecting your company from financial fraud detection, vendor and contractor fraud, insurance fraud investigation, identity theft and cybercrime, partnership fraud prevention, and procurement fraud investigation."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})}),r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-green-100 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Fl,{className:"h-8 w-8 text-green-600"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Due Diligence and Business Intelligence"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Protect business interests with professional due diligence including business partner investigation, merger and acquisition support, vendor and supplier verification, investment opportunity assessment, commercial real estate due diligence, and franchise opportunity investigation."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})}),r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-trident-purple/10 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Be,{className:"h-8 w-8 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Internal Theft & Asset Protection"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Safeguard your Utah business assets through comprehensive internal theft investigations, inventory shrinkage analysis, employee surveillance when appropriate, and asset recovery services to protect your company's valuable resources."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})}),r.jsx("div",{className:"bg-white border border-gray-200 rounded-xl p-8 hover:shadow-lg transition-shadow",children:r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"bg-trident-black/10 w-16 h-16 rounded-lg flex items-center justify-center mb-4",children:r.jsx(Zn,{className:"h-8 w-8 text-trident-black"})}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Compliance & Risk Assessment"}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Ensure your Utah business meets regulatory requirements through compliance investigations, risk assessment analysis, policy violation investigations, and regulatory compliance audits to protect your company from legal exposure."}),r.jsx(te,{to:"/contact",className:"text-trident-purple font-semibold hover:text-trident-orange transition-colors",children:"Learn More β"})]})})]})]})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold mb-6 text-trident-black",children:"Why Utah Companies Choose Trident Investigations"}),r.jsx("p",{className:"text-xl text-trident-black max-w-3xl mx-auto",children:"Local expertise, professional service, and proven results for Utah businesses"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Zn,{className:"h-12 w-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Utah Business Law Expertise"}),r.jsx("p",{className:"text-text-secondary",children:"Our investigators understand Utah employment law, business regulations, and legal requirements for workplace investigations. We ensure all investigations comply with Utah state law and federal regulations."})]})}),r.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Qn,{className:"h-12 w-12 text-trident-orange mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Local Utah Market Knowledge"}),r.jsx("p",{className:"text-text-secondary",children:"With extensive experience serving Utah businesses, we understand the local business environment, industry challenges, and regulatory landscape that affects Utah companies."})]})}),r.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Sn,{className:"h-12 w-12 text-green-600 mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Rapid Response for Utah Businesses"}),r.jsx("p",{className:"text-text-secondary",children:"Located in Utah with statewide coverage, we can respond quickly to urgent investigation needs and business emergencies throughout the state."})]})}),r.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Os,{className:"h-12 w-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Utah Court System Experience"}),r.jsx("p",{className:"text-text-secondary",children:"Our investigators have extensive experience testifying in Utah courts and providing evidence that meets Utah legal standards for business litigation and employment disputes."})]})}),r.jsx("div",{className:"bg-white p-8 rounded-xl shadow-md col-span-1 md:col-span-2 lg:col-span-1",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Be,{className:"h-12 w-12 text-trident-orange mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Professional Discretion & Confidentiality"}),r.jsx("p",{className:"text-text-secondary",children:"We understand the importance of protecting your company's reputation in Utah's interconnected business community. All investigations are conducted with complete confidentiality."})]})})]})]})}),r.jsx("section",{className:"py-20 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold mb-6 text-trident-dark",children:"Utah Industries We Serve"}),r.jsx("p",{className:"text-xl text-text-secondary max-w-3xl mx-auto",children:"Specialized investigation services tailored to Utah's diverse business sectors"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[r.jsx("div",{className:"bg-gradient-to-br from-trident-purple/10 to-trident-purple/20 p-8 rounded-xl border border-trident-purple/30",children:r.jsxs("div",{className:"mb-6",children:[r.jsx($s,{className:"h-12 w-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Technology and Software Companies"}),r.jsx("p",{className:"text-text-secondary",children:"Utah's growing tech sector faces unique security challenges. We provide specialized investigation services for employee intellectual property theft, corporate espionage and trade secret protection, background screening for high-security positions, and partnership due diligence for tech acquisitions."})]})}),r.jsx("div",{className:"bg-gradient-to-br from-green-50 to-green-100 p-8 rounded-xl border border-green-200",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(xl,{className:"h-12 w-12 text-green-600 mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Healthcare and Medical Organizations"}),r.jsx("p",{className:"text-text-secondary",children:"Utah healthcare organizations require specialized investigation services for HIPAA compliance and privacy violation investigation, medical billing fraud and insurance fraud, employee background screening for patient safety, and workplace harassment in healthcare settings."})]})}),r.jsx("div",{className:"bg-gradient-to-br from-trident-orange/10 to-trident-orange/20 p-8 rounded-xl border border-trident-orange/30",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(wK,{className:"h-12 w-12 text-trident-orange mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Financial Services and Banking"}),r.jsx("p",{className:"text-text-secondary",children:"Utah financial institutions need comprehensive security investigations including employee financial background screening, internal fraud and embezzlement investigation, regulatory compliance investigation, and customer fraud and identity theft cases."})]})}),r.jsx("div",{className:"bg-gradient-to-br from-trident-black/10 to-trident-black/20 p-8 rounded-xl border border-trident-black/30",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Qn,{className:"h-12 w-12 text-trident-black mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-black",children:"Manufacturing and Industrial"}),r.jsx("p",{className:"text-text-secondary",children:"Utah manufacturers face operational security challenges including employee safety violation investigation, industrial theft and sabotage prevention, workers' compensation fraud investigation, and vendor and supplier due diligence."})]})}),r.jsx("div",{className:"bg-gradient-to-br from-yellow-50 to-yellow-100 p-8 rounded-xl border border-yellow-200",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(YK,{className:"h-12 w-12 text-yellow-600 mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Construction and Real Estate"}),r.jsx("p",{className:"text-text-secondary",children:"Utah's growing construction industry requires contractor and subcontractor verification, workers' compensation fraud investigation, bid fraud and procurement investigation, and property development due diligence."})]})}),r.jsx("div",{className:"bg-gradient-to-br from-gray-50 to-gray-100 p-8 rounded-xl border border-gray-200",children:r.jsxs("div",{className:"mb-6",children:[r.jsx(Be,{className:"h-12 w-12 text-trident-purple mb-4"}),r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-dark",children:"Government Contractors"}),r.jsx("p",{className:"text-text-secondary",children:"Government contractors need security clearance support, compliance investigation, employee background verification for sensitive positions, and regulatory compliance assistance."})]})})]})]})}),r.jsx("section",{className:"py-20 bg-red-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold mb-6 text-trident-dark",children:"Common Utah Business Risks We Investigate"}),r.jsx("p",{className:"text-xl text-text-secondary max-w-3xl mx-auto",children:"Warning signs that may require professional investigation to protect your business"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border-l-4 border-red-500",children:[r.jsxs("h3",{className:"text-xl font-bold mb-4 text-trident-dark flex items-center",children:[r.jsx(Pn,{className:"h-6 w-6 text-red-500 mr-2"}),"Employee Behavior Concerns"]}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Unexplained changes in employee lifestyle or spending, reluctance to take vacation or allow others to handle responsibilities, unusual computer activity or access to unauthorized files, and complaints from customers or other employees about specific individuals."})]}),r.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border-l-4 border-trident-orange",children:[r.jsxs("h3",{className:"text-xl font-bold mb-4 text-trident-dark flex items-center",children:[r.jsx($s,{className:"h-6 w-6 text-trident-orange mr-2"}),"Financial Irregularities"]}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Discrepancies in financial records or accounting, unusual vendor payments or new supplier relationships, missing inventory or unexplained asset losses, and customer complaints about billing or service issues."})]}),r.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border-l-4 border-yellow-500",children:[r.jsxs("h3",{className:"text-xl font-bold mb-4 text-trident-dark flex items-center",children:[r.jsx(Qn,{className:"h-6 w-6 text-yellow-500 mr-2"}),"Workplace Environment Issues"]}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Increased employee turnover in specific departments, reports of harassment, discrimination, or hostile work environment, safety violations or accidents with suspicious circumstances, and conflicts of interest or ethics policy violations."})]}),r.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-md border-l-4 border-trident-purple",children:[r.jsxs("h3",{className:"text-xl font-bold mb-4 text-trident-dark flex items-center",children:[r.jsx(cd,{className:"h-6 w-6 text-trident-purple mr-2"}),"Business Relationship Concerns"]}),r.jsx("p",{className:"text-text-secondary mb-4",children:"Potential partners with unclear financial backgrounds, vendors requesting unusual payment terms or methods, investment opportunities that seem too good to be true, and competitors with suspicious knowledge of your business operations."})]})]})]})}),r.jsx("section",{className:"py-20 bg-gray-900 text-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-12",children:[r.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Get Professional Utah Corporate Investigation Services"}),r.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"Don't let employee misconduct, fraud, or business risks threaten your company's success. Our professional corporate investigation services provide the evidence and protection Utah businesses need to operate securely and profitably."})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Confidential Business Consultation"}),r.jsxs("form",{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Company Name *",className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0}),r.jsx("input",{type:"text",placeholder:"Contact Name *",className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"tel",placeholder:"Phone Number *",className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0}),r.jsx("input",{type:"email",placeholder:"Email Address *",className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]}),r.jsxs("select",{className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[r.jsx("option",{value:"",children:"Industry/Business Type"}),r.jsx("option",{value:"technology",children:"Technology"}),r.jsx("option",{value:"healthcare",children:"Healthcare"}),r.jsx("option",{value:"financial",children:"Financial Services"}),r.jsx("option",{value:"manufacturing",children:"Manufacturing"}),r.jsx("option",{value:"construction",children:"Construction"}),r.jsx("option",{value:"government",children:"Government Contractor"}),r.jsx("option",{value:"other",children:"Other"})]}),r.jsxs("select",{className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[r.jsx("option",{value:"",children:"Investigation Need"}),r.jsx("option",{value:"employee",children:"Employee Investigation"}),r.jsx("option",{value:"fraud",children:"Fraud Detection"}),r.jsx("option",{value:"due-diligence",children:"Due Diligence"}),r.jsx("option",{value:"workplace",children:"Workplace Investigation"}),r.jsx("option",{value:"background",children:"Background Screening"}),r.jsx("option",{value:"other",children:"Other"})]}),r.jsxs("select",{className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[r.jsx("option",{value:"",children:"Timeline/Urgency"}),r.jsx("option",{value:"immediate",children:"Immediate"}),r.jsx("option",{value:"week",children:"Within 1 Week"}),r.jsx("option",{value:"month",children:"Within 1 Month"}),r.jsx("option",{value:"planning",children:"Planning Phase"})]}),r.jsx("textarea",{placeholder:"Confidential Details",rows:4,className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.jsxs("select",{className:"w-full px-4 py-3 bg-white text-gray-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[r.jsx("option",{value:"",children:"Preferred Contact Method"}),r.jsx("option",{value:"phone",children:"Phone"}),r.jsx("option",{value:"email",children:"Email"}),r.jsx("option",{value:"meeting",children:"In-Person Meeting"})]})}),r.jsx("button",{type:"submit",className:"w-full bg-trident-orange hover:bg-trident-orange/90 text-white px-8 py-4 rounded-lg font-semibold transition-colors",children:"Request Confidential Business Consultation"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Contact Information"}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-start",children:[r.jsx(fn,{className:"h-6 w-6 text-trident-orange mr-4 mt-1"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1",children:"Phone"}),r.jsx("p",{className:"text-gray-300",children:"(385) 275-8220"})]})]}),r.jsxs("div",{className:"flex items-start",children:[r.jsx(Qn,{className:"h-6 w-6 text-trident-orange mr-4 mt-1"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1",children:"Utah Office"}),r.jsx("p",{className:"text-gray-300",children:"Available for in-person consultations"})]})]}),r.jsxs("div",{className:"flex items-start",children:[r.jsx(Sn,{className:"h-6 w-6 text-trident-orange mr-4 mt-1"}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold mb-1",children:"Response Time"}),r.jsx("p",{className:"text-gray-300",children:"Emergency business investigations within 2 hours"})]})]})]}),r.jsxs("div",{className:"mt-8",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Business Hours"}),r.jsxs("div",{className:"space-y-2 text-gray-300",children:[r.jsx("p",{children:"Monday - Friday: 8:00 AM - 6:00 PM"}),r.jsx("p",{children:"Saturday: 9:00 AM - 2:00 PM"}),r.jsx("p",{children:"Emergency Response: 24/7 for urgent business security matters"})]})]}),r.jsxs("div",{className:"mt-8",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"What to Expect"}),r.jsxs("ul",{className:"space-y-2 text-gray-300",children:[r.jsx("li",{children:"β’ Immediate Response: We respond to urgent business investigation needs within hours"}),r.jsx("li",{children:"β’ Confidential Service: Complete discretion to protect your company's reputation"}),r.jsx("li",{children:"β’ Professional Results: Court-admissible evidence and comprehensive documentation"}),r.jsx("li",{children:"β’ Legal Support: Expert testimony and litigation support when needed"}),r.jsx("li",{children:"β’ Cost-Effective Solutions: Efficient investigation methods that fit your business budget"})]})]})]})]})]})})}),r.jsx(tr,{title:"Protect Your Utah Business Today",subtitle:"Don't wait for threats to impact your business. Get professional corporate investigation services from Utah's trusted business protection specialists.",buttonText:"Schedule Confidential Business Consultation"}),r.jsx(Qe,{})]})};var i5="Checkbox",[woe,wUe]=Ca(i5),[joe,Noe]=woe(i5),oF=j.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:i,checked:s,defaultChecked:a,required:o,disabled:l,value:c="on",onCheckedChange:d,form:u,...h}=e,[m,f]=j.useState(null),g=ut(t,w=>f(w)),p=j.useRef(!1),v=m?u||!!m.closest("form"):!0,[y=!1,x]=Rs({prop:s,defaultProp:a,onChange:d}),b=j.useRef(y);return j.useEffect(()=>{const w=m==null?void 0:m.form;if(w){const N=()=>x(b.current);return w.addEventListener("reset",N),()=>w.removeEventListener("reset",N)}},[m,x]),r.jsxs(joe,{scope:n,state:y,disabled:l,children:[r.jsx(ze.button,{type:"button",role:"checkbox","aria-checked":Nl(y)?"mixed":y,"aria-required":o,"data-state":dF(y),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:g,onKeyDown:Ee(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Ee(e.onClick,w=>{x(N=>Nl(N)?!0:!N),v&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})}),v&&r.jsx(Soe,{control:m,bubbles:!p.current,name:i,value:c,checked:y,required:o,disabled:l,form:u,style:{transform:"translateX(-100%)"},defaultChecked:Nl(a)?!1:a})]})});oF.displayName=i5;var lF="CheckboxIndicator",cF=j.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:i,...s}=e,a=Noe(lF,n);return r.jsx(zs,{present:i||Nl(a.state)||a.state===!0,children:r.jsx(ze.span,{"data-state":dF(a.state),"data-disabled":a.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});cF.displayName=lF;var Soe=e=>{const{control:t,checked:n,bubbles:i=!0,defaultChecked:s,...a}=e,o=j.useRef(null),l=Z_(n),c=q_(t);j.useEffect(()=>{const u=o.current,h=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==n&&f){const g=new Event("click",{bubbles:i});u.indeterminate=Nl(n),f.call(u,Nl(n)?!1:n),u.dispatchEvent(g)}},[l,n,i]);const d=j.useRef(Nl(n)?!1:n);return r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s??d.current,...a,tabIndex:-1,ref:o,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Nl(e){return e==="indeterminate"}function dF(e){return Nl(e)?"indeterminate":e?"checked":"unchecked"}var uF=oF,koe=cF;const Qu=j.forwardRef(({className:e,...t},n)=>r.jsx(uF,{ref:n,className:je("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:r.jsx(koe,{className:je("flex items-center justify-center text-current"),children:r.jsx(ef,{className:"h-4 w-4"})})}));Qu.displayName=uF.displayName;const Coe=()=>{const[e,t]=j.useState({name:"",phone:"",email:"",location:"",investigationType:"",timeline:"",description:"",contactMethods:[]}),[n,i]=j.useState(null),s=(f,g)=>{t(p=>({...p,[f]:g}))},a=(f,g)=>{t(p=>({...p,contactMethods:g?[...p.contactMethods,f]:p.contactMethods.filter(v=>v!==f)}))},o=f=>{f.preventDefault(),console.log("Form submitted:",e)},l=[{icon:r.jsx(xl,{className:"h-8 w-8 text-trident-blue"}),title:"Domestic & Family Investigations",description:"Our Orem private investigators understand the sensitive nature of family matters and provide discrete, professional investigation services for Orem families and throughout Utah County.",details:["Marital and relationship investigations in Orem area","Child custody documentation for Utah County courts","Cohabitation investigation for Orem residents","Missing person location throughout Utah County","Family law support for Orem area attorneys","Domestic violence documentation and evidence collection","UVU area dating and relationship safety investigations","Student family concern investigations in Orem"]},{icon:r.jsx(Zn,{className:"h-8 w-8 text-trident-blue"}),title:"Legal Support Services",description:"Supporting Orem attorneys and Utah County legal professionals with comprehensive investigation services that meet Utah County court standards.",details:["Evidence collection for Utah County District Court","Asset searches and financial investigation for Orem cases","Background investigations for Orem legal matters","Witness location and statements throughout Utah County","Process serving in Orem and Utah County","Expert testimony in Utah County courts","Orem Municipal Court case support","Utah County legal proceeding support"]},{icon:r.jsx(Qn,{className:"h-8 w-8 text-trident-blue"}),title:"Business Investigation Services",description:"Protecting Orem area businesses with professional investigation services designed to address workplace concerns and business security issues.",details:["Employee background screening for Orem businesses","Workplace investigations for Utah County companies","Orem Chamber of Commerce member business support","Local business due diligence and verification","Insurance claim investigation for Orem area","Vendor and contractor verification","Corporate fraud detection and prevention","UVU area business and employment investigations"]},{icon:r.jsx(Pi,{className:"h-8 w-8 text-trident-blue"}),title:"Personal Investigation Services",description:"Comprehensive personal investigation services for Orem residents dealing with individual concerns and safety matters.",details:["Personal injury case support and documentation","Background verification for personal and dating safety","Social media investigation and online reputation management","Personal protection consultation and safety assessment","Stalking and harassment documentation","UVU area student safety investigations","Utah County personal investigation services","Community background verification"]}],c=[{category:"Primary Service Focus - Orem Areas",areas:["Downtown Orem business district and municipal offices","Orem residential neighborhoods (east and west Orem)","Orem foothills communities and newer developments","UVU campus area and surrounding student housing","Orem shopping centers and commercial districts","East Orem and Orem Canyon areas","West Orem and I-15 corridor communities"]},{category:"Secondary Coverage - Utah County",areas:["Provo and BYU area","American Fork and Pleasant Grove","Lehi and Eagle Mountain","Spanish Fork and Springville","Payson and other Utah County communities"]}],d=[{icon:r.jsx(Et,{className:"h-12 w-12 text-trident-blue"}),title:"Utah Valley Knowledge",description:"Our investigators have extensive knowledge of the Utah Valley metropolitan area, including Orem and Provo communities, local court systems, and regional law enforcement relationships.",benefits:["Comprehensive knowledge of Orem and Provo neighborhoods","Utah County Sheriff's Office and municipal police relationships","Understanding of BYU and UVU campus policies and procedures","Established relationships with Utah Valley legal professionals","Knowledge of local business communities and industries","Familiarity with Utah Valley cultural and community dynamics"]},{icon:r.jsx(Sn,{className:"h-12 w-12 text-trident-blue"}),title:"Rapid Metropolitan Response",description:"Located in the heart of Utah Valley, we provide rapid response throughout the Orem-Provo metropolitan area with same-day availability and emergency response capabilities.",benefits:["Same-day consultation available throughout Utah Valley","Quick response to time-sensitive legal matters","Local surveillance capabilities across Orem and Provo","Immediate evidence collection throughout the metropolitan area","Coordinated investigations across multiple Utah Valley locations"]},{icon:r.jsx(y2,{className:"h-12 w-12 text-trident-blue"}),title:"University Area Expertise",description:"Specialized knowledge of university communities including UVU in Orem and BYU in Provo provides unique investigation capabilities for student, family, and academic matters.",benefits:["UVU campus area investigation services","BYU community investigation with cultural sensitivity","Student housing and rental investigations (both universities)","Academic integrity and Honor Code support","Parent concern investigations for university students","Dating safety and relationship investigations","Campus area personal protection and safety assessments"]},{icon:r.jsx(cd,{className:"h-12 w-12 text-trident-blue"}),title:"Utah Valley Business Community",description:"Deep integration with the Utah Valley business community from Orem's diverse economy to Provo's technology sector provides comprehensive corporate investigation capabilities.",benefits:["Orem Chamber of Commerce and business associations","Provo business and technology community relationships","Silicon Slopes technology sector expertise","Healthcare industry knowledge (Utah Valley Regional, IHC)","Educational institution partnerships (UVU, BYU)","Regional manufacturing and service industry connections"]}],u=[{title:"UVU Area Services (Orem)",description:"Utah Valley University area presents unique investigation challenges requiring understanding of the diverse student community and university policies.",services:["Student safety and welfare investigations","Campus area housing and rental investigations","Academic integrity support services","Student employment and internship verification","Parent concern investigations for UVU students","Dating safety verification and background checks"]},{title:"BYU Area Services (Provo)",description:"Brigham Young University community requires specialized investigation services with cultural sensitivity and understanding of Honor Code standards.",services:["Honor Code investigation support and documentation","Student conduct and academic integrity matters","Campus area housing and roommate investigations","Dating and relationship verification with cultural sensitivity","Family concern investigations for BYU students","Graduate student and faculty background verification"]},{title:"Student Housing Market",description:"The extensive student housing market throughout Utah Valley requires specialized investigation services for property management, tenant verification, and safety assessments.",services:["Comprehensive tenant screening and background verification","Property management investigations for landlords","Rental fraud detection and prevention","Roommate compatibility and safety verification","Student housing safety and security assessments","Landlord-tenant dispute investigation and documentation"]}],h=[{step:1,title:"Utah Valley Consultation",description:"We meet with clients throughout the Utah Valley area at convenient locations in Orem, Provo, or your preferred location to discuss investigation needs and develop comprehensive strategies.",benefits:["Face-to-face meetings with local Utah Valley investigators","Understanding of specific Orem and Provo area concerns","Development of metropolitan area investigation strategy","Clear explanation of Utah County legal requirements","Transparent pricing and timeline discussion","Flexible meeting locations throughout Utah Valley"]},{step:2,title:"Metropolitan Area Investigation Planning",description:"Our team develops detailed investigation plans that leverage Utah Valley knowledge and resources while ensuring compliance with local legal requirements.",benefits:["Utah Valley resource identification and utilization","Orem and Provo area legal compliance verification","Timeline development based on local court schedules","Multi-location investigation coordination","University area consideration and planning","Risk assessment and mitigation for Utah Valley operations"]},{step:3,title:"Utah Valley Evidence Collection",description:"Investigation activities are conducted throughout the Utah Valley metropolitan area using local knowledge, relationships, and understanding of community dynamics.",benefits:["Comprehensive surveillance throughout Orem and Provo","Utah County public record research and analysis","Community interviews and statement collection","Local business and reference verification","University area investigation with appropriate sensitivity","Technology-assisted investigation with local expertise"]},{step:4,title:"Professional Documentation",description:"All findings are documented according to Utah County court standards with comprehensive reporting and evidence organization.",benefits:["Utah County court admissibility requirements","Professional report writing and presentation","Evidence cataloging and chain of custody","Photographic and video documentation","Legal compliance verification","Multi-location case coordination documentation"]},{step:5,title:"Utah Valley Court Support",description:"When cases proceed to legal action, our investigators provide expert testimony and court support throughout Utah County's legal system.",benefits:["Expert witness testimony in Utah County courts","Municipal court support (Orem, Provo, others)","Evidence presentation and explanation","Deposition participation and support","Legal team collaboration and consultation","Case preparation and strategy support"]}],m=[{quote:"When we needed help with our child custody case, Trident's knowledge of both Orem and Utah County courts was invaluable. Their investigator understood exactly what documentation we needed and helped us present a strong case. The fact that they serve the entire Utah Valley area was perfect for our situation.",attribution:"Sarah M., Orem Mother"},{quote:"Our Provo-based technology company suspected intellectual property theft, and Trident's investigation provided the evidence we needed for prosecution. Their understanding of Utah Valley's tech community and business operations was exactly what we needed.",attribution:"David L., Provo Tech Executive"},{quote:"As parents of a BYU student, we had concerns about our daughter's living situation. Trident handled our investigation with complete sensitivity to the university community while providing thorough, professional results that put our minds at ease.",attribution:"Robert and Linda K., BYU Parents"},{quote:"As an attorney serving Utah Valley, I work with Trident regularly for investigations spanning Orem, Provo, and throughout Utah County. Their consistent quality and understanding of our local legal system makes them my go-to investigation partner.",attribution:"Jennifer L., Utah Valley Attorney"}];return r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Orem Private Investigator | Provo Utah Valley PI Services | Utah County"}),r.jsx("meta",{name:"description",content:"Professional Orem and Provo private investigator services. Licensed Utah Valley investigators serving Orem, Provo, and Utah County. Local expertise. Free consultation. Call (385) 275-8220."}),r.jsx("meta",{name:"keywords",content:"Orem private investigator, Utah County PI, Provo investigator, Utah Valley investigation services, licensed private investigator"}),r.jsx("link",{rel:"canonical",href:"https://tridentpi.net/services/orem-private-investigator"})]}),r.jsx(Xe,{}),r.jsxs("section",{className:"relative min-h-screen flex items-center bg-gradient-to-b from-trident-dark to-trident-blue",children:[r.jsx("div",{className:"absolute inset-0 bg-[url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3')] bg-cover bg-center opacity-20"}),r.jsx("div",{className:"relative container mx-auto px-4 py-20",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center text-white",children:[r.jsx(Je,{className:"mb-6 bg-trident-gold text-trident-dark hover:bg-trident-gold/90 font-semibold",children:"Utah Valley's Trusted Private Investigation Professionals"}),r.jsx("h1",{className:"text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-white to-trident-grey bg-clip-text text-transparent",children:"Orem Private Investigator Services"}),r.jsx("h2",{className:"text-xl md:text-2xl mb-8 text-gray-300 max-w-3xl mx-auto",children:"Local Orem Expertise | Utah County Licensed | Serving Utah Valley"}),r.jsx("p",{className:"text-lg mb-12 text-gray-200 max-w-4xl mx-auto leading-relaxed",children:"Need professional investigation services in Orem, Utah? Our licensed private investigators specialize in serving Orem and Utah County communities with comprehensive investigation solutions. With deep local knowledge of Orem neighborhoods, businesses, and Utah County court systems, we help Orem residents, attorneys, and businesses get the evidence and information they need."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center mb-12",children:[r.jsxs(V,{size:"lg",className:"bg-trident-gold hover:bg-trident-gold/90 text-trident-dark font-semibold px-8 py-4",children:["Orem Consultation",r.jsx(qR,{className:"ml-2 h-5 w-5"})]}),r.jsxs(V,{size:"lg",className:"bg-trident-gold hover:bg-trident-gold/90 text-trident-dark font-semibold px-8 py-4",children:[r.jsx(fn,{className:"mr-2 h-5 w-5"}),"Call (385) 275-8220"]})]}),r.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-sm",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-trident-dark/30 px-4 py-2 rounded-full",children:[r.jsx(Be,{className:"h-4 w-4 text-trident-gold"}),r.jsx("span",{children:"Licensed Orem Investigators"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-trident-dark/30 px-4 py-2 rounded-full",children:[r.jsx(Et,{className:"h-4 w-4 text-trident-gold"}),r.jsx("span",{children:"Local Utah County Expertise"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-trident-dark/30 px-4 py-2 rounded-full",children:[r.jsx(Os,{className:"h-4 w-4 text-trident-gold"}),r.jsx("span",{children:"Professional & Confidential"})]}),r.jsxs("div",{className:"flex items-center gap-2 bg-trident-dark/30 px-4 py-2 rounded-full",children:[r.jsx(Zn,{className:"h-4 w-4 text-trident-gold"}),r.jsx("span",{children:"Utah County Court Experience"})]})]})]})})]}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Orem Private Investigation Coverage"}),r.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Professional coverage map with Orem prominently featured and Utah County as extended service area"})]}),r.jsx("div",{className:"grid lg:grid-cols-2 gap-12",children:c.map((f,g)=>r.jsxs(W,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300",children:[r.jsx(Z,{children:r.jsxs(re,{className:"text-2xl text-trident-dark flex items-center gap-3",children:[r.jsx(Et,{className:"h-6 w-6 text-trident-blue"}),f.category]})}),r.jsx(H,{children:r.jsx("ul",{className:"space-y-3",children:f.areas.map((p,v)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-gray-600",children:p})]},v))})})]},g))})]})}),r.jsx("section",{className:"py-20 bg-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Orem Private Investigation Services"}),r.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Professional Investigation Services for Orem and Utah County"})]}),r.jsx("div",{className:"grid lg:grid-cols-2 gap-8",children:l.map((f,g)=>r.jsx(W,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300",children:r.jsxs(H,{className:"p-8",children:[r.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[r.jsx("div",{className:"p-3 bg-trident-blue/10 rounded-lg flex-shrink-0",children:f.icon}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-3",children:f.title}),r.jsx("p",{className:"text-gray-600 mb-4 leading-relaxed",children:f.description})]})]}),r.jsxs(V,{variant:"ghost",onClick:()=>i(n===g?null:g),className:"w-full justify-between mb-4 text-trident-blue hover:text-trident-dark",children:[r.jsx("span",{children:"View Service Details"}),n===g?r.jsx(YR,{className:"h-4 w-4"}):r.jsx(wa,{className:"h-4 w-4"})]}),n===g&&r.jsx("div",{className:"space-y-2 animate-fade-in",children:f.details.map((p,v)=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-4 w-4 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-gray-600",children:p})]},v))})]})},g))})]})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Why Choose Utah Valley's Local Private Investigators"}),r.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Our Utah Valley expertise provides unique advantages for all investigation needs"})]}),r.jsx("div",{className:"grid lg:grid-cols-2 gap-8",children:d.map((f,g)=>r.jsx(W,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300",children:r.jsx(H,{className:"p-8",children:r.jsxs("div",{className:"flex items-start gap-6 mb-6",children:[r.jsx("div",{className:"p-4 bg-trident-blue/10 rounded-lg flex-shrink-0",children:f.icon}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:f.title}),r.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:f.description}),r.jsx("ul",{className:"space-y-3",children:f.benefits.map((p,v)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-4 w-4 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-gray-600",children:p})]},v))})]})]})})},g))})]})}),r.jsx("section",{className:"py-20 bg-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"University Area Investigation Expertise"}),r.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Specialized Services for UVU and BYU Communities"})]}),r.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:u.map((f,g)=>r.jsxs(W,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300",children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"text-xl text-trident-dark flex items-center gap-3",children:[r.jsx(y2,{className:"h-6 w-6 text-trident-blue"}),f.title]}),r.jsx(wt,{className:"text-gray-600",children:f.description})]}),r.jsx(H,{children:r.jsx("ul",{className:"space-y-3",children:f.services.map((p,v)=>r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-4 w-4 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-gray-600",children:p})]},v))})})]},g))})]})}),r.jsx("section",{className:"py-20 bg-trident-smoke",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Utah Valley Investigation Process"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"Our Professional Process Serving Orem, Provo & Utah County"})]}),r.jsx("div",{className:"space-y-8",children:h.map((f,g)=>r.jsx(W,{className:"border-0 shadow-lg",children:r.jsx(H,{className:"p-8",children:r.jsxs("div",{className:"flex items-start gap-6",children:[r.jsx("div",{className:"flex-shrink-0",children:r.jsx("div",{className:"w-12 h-12 bg-trident-blue text-white rounded-full flex items-center justify-center text-xl font-bold",children:f.step})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"text-2xl font-bold text-trident-dark mb-4",children:f.title}),r.jsx("p",{className:"text-trident-grey mb-6",children:f.description}),r.jsx("div",{className:"grid md:grid-cols-2 gap-3",children:f.benefits.map((p,v)=>r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-4 w-4 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-trident-grey",children:p})]},v))})]})]})})},g))})]})}),r.jsx("section",{className:"py-20 bg-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold text-trident-dark mb-4",children:"Utah Valley Client Success Stories"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"Satisfied Clients Throughout Orem, Provo & Utah County"})]}),r.jsx("div",{className:"grid lg:grid-cols-2 gap-8",children:m.map((f,g)=>r.jsx(W,{className:"border-0 shadow-lg hover:shadow-xl transition-all duration-300",children:r.jsxs(H,{className:"p-8",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"flex text-trident-gold mb-4",children:[...Array(5)].map((p,v)=>r.jsx(fa,{className:"h-5 w-5 fill-current"},v))}),r.jsxs("blockquote",{className:"text-trident-dark italic text-lg leading-relaxed",children:['"',f.quote,'"']})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-trident-blue/10 rounded-full flex items-center justify-center",children:r.jsx(k_,{className:"h-6 w-6 text-trident-blue"})}),r.jsx("div",{children:r.jsx("p",{className:"font-semibold text-trident-dark",children:f.attribution})})]})]})},g))})]})}),r.jsx("section",{className:"py-20 bg-trident-dark text-white",children:r.jsxs("div",{className:"container mx-auto px-4",children:[r.jsxs("div",{className:"text-center mb-16",children:[r.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Contact Your Utah Valley Private Investigator"}),r.jsx("p",{className:"text-xl text-trident-grey max-w-3xl mx-auto",children:"Professional Investigation Services for Orem, Provo & Utah County"}),r.jsx("p",{className:"text-lg text-trident-smoke max-w-4xl mx-auto mt-6",children:"Contact us today for a confidential consultation about your investigation needs. We'll meet with you at convenient locations throughout Utah Valley to discuss your case and develop an effective investigation strategy."})]}),r.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[r.jsxs("div",{className:"space-y-8",children:[r.jsxs(W,{className:"border-0 shadow-lg",children:[r.jsx(Z,{children:r.jsx(re,{className:"text-xl text-trident-dark",children:"Contact Information"})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(fn,{className:"h-5 w-5 text-trident-blue"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-trident-dark",children:"Phone"}),r.jsx("a",{href:"tel:3852758220",className:`text-trident-blue hover:text-trident-dark transition-colors ${Qi}`,children:"(385) 275-8220"})]})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(Bl,{className:"h-5 w-5 text-trident-blue"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-trident-dark",children:"Text"}),r.jsx("a",{href:"sms:3855032939",className:`text-trident-blue hover:text-trident-dark transition-colors ${Qi}`,children:"(385) 503-2939"})]})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-blue"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-trident-dark",children:"Utah Valley Office"}),r.jsx("p",{className:"text-trident-grey",children:"Convenient locations for Orem and Provo area meetings"})]})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(Sn,{className:"h-5 w-5 text-trident-blue"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-trident-dark",children:"Response Time"}),r.jsx("p",{className:"text-trident-grey",children:"Quick response to all inquiries"})]})]})]})]}),r.jsxs(W,{className:"border-0 shadow-lg",children:[r.jsx(Z,{children:r.jsx(re,{className:"text-xl text-trident-dark",children:"What to Expect"})}),r.jsxs(H,{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-grey",children:"Immediate Response: Utah Valley calls and inquiries within hours"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-grey",children:"Convenient Meeting: Flexible consultation locations throughout the metropolitan area"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-grey",children:"Professional Assessment: Thorough evaluation covering all Utah Valley considerations"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-grey",children:"Clear Planning: Detailed explanation of investigation process and timeline"})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(we,{className:"h-5 w-5 text-trident-blue mt-1 flex-shrink-0"}),r.jsx("span",{className:"text-trident-grey",children:"Transparent Pricing: Honest pricing with no hidden fees, competitive Utah Valley rates"})]})]})]})]}),r.jsxs(W,{className:"border-0 shadow-lg",children:[r.jsxs(Z,{children:[r.jsx(re,{className:"text-xl text-trident-dark",children:"Request Utah Valley Consultation"}),r.jsx(wt,{children:"Fill out the form below for a confidential consultation about your investigation needs."})]}),r.jsx(H,{className:"space-y-4",children:r.jsxs("form",{onSubmit:o,className:"space-y-4",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Name *"}),r.jsx(he,{value:e.name,onChange:f=>s("name",f.target.value),required:!0,className:"border-trident-grey focus:border-trident-blue"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Phone Number *"}),r.jsx(he,{type:"tel",value:e.phone,onChange:f=>s("phone",f.target.value),required:!0,className:"border-trident-grey focus:border-trident-blue"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Email Address *"}),r.jsx(he,{type:"email",value:e.email,onChange:f=>s("email",f.target.value),required:!0,className:"border-trident-grey focus:border-trident-blue"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Location in Utah Valley"}),r.jsxs(un,{value:e.location,onValueChange:f=>s("location",f),children:[r.jsx(nn,{className:"border-trident-grey focus:border-trident-blue",children:r.jsx(hn,{placeholder:"Select your location"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"orem",children:"Orem"}),r.jsx(be,{value:"provo",children:"Provo"}),r.jsx(be,{value:"american-fork",children:"American Fork"}),r.jsx(be,{value:"lehi",children:"Lehi"}),r.jsx(be,{value:"spanish-fork",children:"Spanish Fork"}),r.jsx(be,{value:"other",children:"Other Utah County"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Investigation Type"}),r.jsxs(un,{value:e.investigationType,onValueChange:f=>s("investigationType",f),children:[r.jsx(nn,{className:"border-trident-grey focus:border-trident-blue",children:r.jsx(hn,{placeholder:"Select investigation type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"family-domestic",children:"Family/Domestic"}),r.jsx(be,{value:"legal-support",children:"Legal Support"}),r.jsx(be,{value:"business",children:"Business Investigation"}),r.jsx(be,{value:"personal",children:"Personal Investigation"}),r.jsx(be,{value:"university",children:"University Area"}),r.jsx(be,{value:"background",children:"Background Check"}),r.jsx(be,{value:"other",children:"Other"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Timeline"}),r.jsxs(un,{value:e.timeline,onValueChange:f=>s("timeline",f),children:[r.jsx(nn,{className:"border-trident-grey focus:border-trident-blue",children:r.jsx(hn,{placeholder:"Select timeline"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"immediate",children:"Immediate"}),r.jsx(be,{value:"week",children:"Within 1 Week"}),r.jsx(be,{value:"month",children:"Within 1 Month"}),r.jsx(be,{value:"planning",children:"Planning Phase"})]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-2",children:"Brief Description"}),r.jsx(di,{value:e.description,onChange:f=>s("description",f.target.value),rows:4,className:"border-trident-grey focus:border-trident-blue",placeholder:"Please provide a brief description of your investigation needs..."})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-trident-dark mb-3",children:"Preferred Contact Method"}),r.jsx("div",{className:"space-y-2",children:["Phone","Text","Email","In-Person Meeting"].map(f=>r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(Qu,{id:f,checked:e.contactMethods.includes(f),onCheckedChange:g=>a(f,g)}),r.jsx("label",{htmlFor:f,className:"text-sm text-trident-dark",children:f})]},f))})]}),r.jsx(V,{type:"submit",className:"w-full bg-trident-blue hover:bg-trident-blue/90 text-white",children:"Request Utah Valley Consultation"})]})})]})]}),r.jsxs("div",{className:"text-center mt-16",children:[r.jsx("p",{className:"text-lg text-trident-smoke mb-4",children:"Contact us today for your free confidential consultation about Utah Valley private investigation services. Let our local expertise and professional investigation services help you achieve the results you need throughout Orem, Provo, and Utah County."}),r.jsxs("p",{className:"text-xl font-semibold text-trident-gold",children:["Call ",r.jsx("a",{href:"tel:3852758220",className:"hover:text-trident-white transition-colors",children:"(385) 275-8220"})," or text ",r.jsx("a",{href:"sms:3855032939",className:"hover:text-trident-white transition-colors",children:"(385) 503-2939"})," to speak with an experienced Utah Valley private investigator about your case."]})]})]})}),r.jsx(Qe,{})]})},_oe=()=>r.jsxs("section",{className:"relative flex items-center pt-36 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:[r.jsx("span",{className:"text-transparent bg-gradient-to-r from-trident-gold to-orange-700 bg-clip-text font-extrabold",children:"Utah"})," Private Investigators"]}),r.jsx("p",{className:"text-xl mb-8 text-readable-light",children:"Professional, licensed private investigation services across Utah β from Salt Lake City to St. George."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(V,{asChild:!0,variant:"gold",size:"lg",children:r.jsx(te,{to:"/contact",children:"Schedule a Consultation"})}),r.jsx(V,{asChild:!0,variant:"goldOutline",size:"lg",className:Qi,children:r.jsx("a",{href:"tel:+13855032939",children:"Call 385-503-2939"})})]})]})})]}),Toe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Private Investigation Services Throughout Utah"}),r.jsx("p",{className:"mb-4 text-text-secondary",children:"Trident Investigations is a leading private investigation agency serving all of Utah. With our headquarters in Salt Lake City and investigators available throughout the state, we provide prompt, professional investigative services wherever you need us."}),r.jsx("p",{className:"mb-4 text-text-secondary",children:"Our team has intimate knowledge of Utah's geography, legal system, and local resources, allowing us to conduct effective investigations in urban centers like Salt Lake City and Provo as well as rural communities throughout the state."}),r.jsx("p",{className:"text-text-secondary",children:"As a Utah-licensed private investigation agency (License #G105645), we adhere to all state regulations while providing comprehensive investigative services for personal, corporate, legal, and insurance matters."})]}),r.jsxs("div",{className:"bg-gray-100 p-8 rounded-lg shadow-md",children:[r.jsx("h3",{className:"text-xl font-bold mb-4",children:"Our Utah Service Areas Include:"}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsx("div",{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/salt-lake-county",className:"hover:text-trident-purple transition-colors",children:"Salt Lake County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/utah-county",className:"hover:text-trident-purple transition-colors",children:"Utah County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/davis-county",className:"hover:text-trident-purple transition-colors",children:"Davis County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/weber-county",className:"hover:text-trident-purple transition-colors",children:"Weber County"})]})]})}),r.jsx("div",{children:r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/washington-county",className:"hover:text-trident-purple transition-colors",children:"Washington County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/cache-county",className:"hover:text-trident-purple transition-colors",children:"Cache County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx(te,{to:"/locations/utah/tooele-county",className:"hover:text-trident-purple transition-colors",children:"Tooele County"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx(Et,{className:"h-5 w-5 text-trident-purple mr-2 flex-shrink-0"}),r.jsx("span",{children:"All Utah Counties"})]})]})})]})]})]})})}),Poe=({icon:e,title:t,description:n,linkTo:i,linkText:s})=>r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsxs("div",{className:"flex items-center mb-6",children:[r.jsx(e,{className:"h-10 w-10 text-trident-purple mr-4"}),r.jsx("h3",{className:"text-2xl font-bold",children:t})]}),n.map((a,o)=>r.jsx("p",{className:`${o<n.length-1?"mb-4":"mb-6"} text-text-secondary`,children:a},o)),r.jsxs(te,{to:i,className:"text-trident-purple font-semibold hover:underline inline-flex items-center",children:[s,r.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),Eoe=()=>{const e=[{icon:Be,title:"Domestic Investigations",description:["Our Utah private investigators specialize in sensitive domestic matters including infidelity investigations, child custody support, and cohabitation verification.","With discreet surveillance and detailed documentation, we provide the evidence needed for peace of mind or legal proceedings throughout Utah."],linkTo:"/services/domestic",linkText:"Learn More About Domestic Investigations"},{icon:Qn,title:"Corporate Investigations",description:["Utah businesses rely on our corporate investigation services to address internal theft, employee misconduct, fraud, and due diligence concerns.","Our investigators have worked with companies of all sizes across Utah to protect assets and provide evidence for business decisions."],linkTo:"/services/corporate",linkText:"Learn More About Corporate Investigations"},{icon:Fl,title:"Insurance Investigations",description:["We partner with insurance companies across Utah to verify claims and investigate potential fraud through surveillance, background checks, and thorough documentation.","Our investigators are familiar with Utah's insurance regulations and provide court-admissible evidence for cases throughout the state."],linkTo:"/services/insurance",linkText:"Learn More About Insurance Investigations"},{icon:Gi,title:"Legal Support Investigations",description:["Utah attorneys and law firms utilize our investigative expertise for witness location, evidence gathering, and case preparation for both civil and criminal matters.","Our team's knowledge of Utah's court system and legal requirements ensures that evidence is collected properly for successful litigation support."],linkTo:"/services/law-firms",linkText:"Learn More About Legal Support Investigations"}];return r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Utah Investigation Services"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((t,n)=>r.jsx(Poe,{icon:t.icon,title:t.title,description:t.description,linkTo:t.linkTo,linkText:t.linkText},n))}),r.jsx("div",{className:"mt-12 text-center",children:r.jsx(te,{to:"/services/domestic",className:"btn-primary",children:"View All Services"})})]})})},Em=({countyName:e,countyPath:t,cities:n})=>r.jsxs("div",{children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:r.jsx(te,{to:t,className:"hover:underline",children:e})}),r.jsx("ul",{className:"space-y-2 text-text-secondary",children:n.map((i,s)=>r.jsx("li",{children:r.jsx(te,{to:i.path,className:"hover:text-trident-purple",children:i.name})},s))}),r.jsxs(te,{to:t,className:"text-trident-purple font-semibold mt-3 inline-block hover:underline",children:["View ",e," Services"]})]}),Aoe=({countyItems:e})=>r.jsxs("div",{className:"mt-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-6 text-center",children:"Explore All Utah County Services"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:e.map(t=>r.jsx(te,{to:t.path,className:"bg-gray-50 hover:bg-gray-100 p-4 rounded-lg text-center transition-colors",children:t.name},t.path))})]}),Ooe=()=>r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-lg text-text-secondary mb-6",children:"Trident Investigations conducts professional investigations throughout all of Utah. Even if your location isn't listed, we can assist with your case."}),r.jsx("div",{className:"mt-10",children:r.jsx(te,{to:"/contact",className:"btn-secondary",children:"Contact Our Utah Investigators"})})]}),Ioe=()=>{const e=[{name:"Salt Lake City",path:"/locations/utah/salt-lake-county/salt-lake-city"},{name:"West Valley City",path:"/locations/utah/salt-lake-county/west-valley-city"},{name:"Sandy",path:"/locations/utah/salt-lake-county/sandy"},{name:"West Jordan",path:"/locations/utah/salt-lake-county/west-jordan"},{name:"South Jordan",path:"/locations/utah/salt-lake-county/south-jordan"},{name:"Draper",path:"/locations/utah/salt-lake-county/draper"},{name:"Taylorsville",path:"/locations/utah/salt-lake-county/taylorsville"},{name:"Murray",path:"/locations/utah/salt-lake-county/murray"}],t=[{name:"Provo",path:"/locations/utah/utah-county/provo"},{name:"Orem",path:"/locations/utah/utah-county/orem"},{name:"Lehi",path:"/locations/utah/utah-county/lehi"},{name:"Pleasant Grove",path:"/locations/utah/utah-county/pleasant-grove"},{name:"Spanish Fork",path:"/locations/utah/utah-county/spanish-fork"},{name:"American Fork",path:"/locations/utah/utah-county/american-fork"},{name:"Springville",path:"/locations/utah/utah-county/springville"},{name:"Eagle Mountain",path:"/locations/utah/utah-county/eagle-mountain"}],n=[{name:"Ogden (Weber County)",path:"/locations/utah/weber-county/north-ogden"},{name:"Logan (Cache County)",path:"/locations/utah/cache-county"},{name:"Layton (Davis County)",path:"/locations/utah/davis-county/layton"},{name:"Clearfield (Davis County)",path:"/locations/utah/davis-county/clearfield"},{name:"Bountiful (Davis County)",path:"/locations/utah/davis-county/bountiful"},{name:"Farmington (Davis County)",path:"/locations/utah/davis-county/farmington"},{name:"Roy (Weber County)",path:"/locations/utah/weber-county/roy"},{name:"Brigham City (Box Elder County)",path:"/locations/utah/box-elder-county"}],i=[{name:"St. George (Washington County)",path:"/locations/utah/washington-county"},{name:"Cedar City (Iron County)",path:"/locations/utah/iron-county"},{name:"Hurricane (Washington County)",path:"/locations/utah/washington-county/hurricane"},{name:"Kanab (Kane County)",path:"/locations/utah/kane-county"},{name:"Moab (Grand County)",path:"/locations/utah/grand-county"},{name:"Price (Carbon County)",path:"/locations/utah/carbon-county"},{name:"Richfield (Sevier County)",path:"/locations/utah/sevier-county"},{name:"Blanding (San Juan County)",path:"/locations/utah/san-juan-county"}],s=[{name:"Tooele (Tooele County)",path:"/locations/utah/tooele-county/tooele"},{name:"Park City (Summit County)",path:"/locations/utah/summit-county"},{name:"Heber City (Wasatch County)",path:"/locations/utah/wasatch-county"},{name:"Vernal (Uintah County)",path:"/locations/utah/uintah-county"},{name:"Roosevelt (Duchesne County)",path:"/locations/utah/duchesne-county"},{name:"Delta (Millard County)",path:"/locations/utah/millard-county"},{name:"Grantsville (Tooele County)",path:"/locations/utah/tooele-county/grantsville"},{name:"Wendover (Tooele County)",path:"/locations/utah/tooele-county/wendover"}];return r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Utah Coverage Areas"}),r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-8",children:[r.jsx(Em,{countyName:"Salt Lake County",countyPath:"/locations/utah/salt-lake-county",cities:e}),r.jsx(Em,{countyName:"Utah County",countyPath:"/locations/utah/utah-county",cities:t}),r.jsx(Em,{countyName:"Northern Utah",countyPath:"/locations/utah",cities:n}),r.jsx(Em,{countyName:"Southern Utah",countyPath:"/locations/utah",cities:i}),r.jsx(Em,{countyName:"Eastern & Western Utah",countyPath:"/locations/utah",cities:s})]}),r.jsxs("div",{className:"mt-12",children:[r.jsx(Ooe,{}),r.jsx(Aoe,{countyItems:M2})]})]})]})})},Doe=({quote:e,author:t,title:n})=>r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-purple opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-dark italic mb-4",children:e}),r.jsx("div",{className:"font-bold text-trident-dark",children:t}),r.jsx("div",{className:"text-sm text-supporting-readable",children:n})]}),Moe=()=>{const e=[{quote:"As a Salt Lake City attorney, I've worked with several investigation firms. Trident consistently delivers the most professional and detailed reports. Their knowledge of Utah's legal requirements is invaluable.",author:"Michael T.",title:"Family Law Attorney, Salt Lake City"},{quote:"Trident helped me gather the evidence I needed for my case, even though I'm in a rural part of Utah. Their investigator was professional, discreet, and thorough. I couldn't have asked for better service.",author:"Sarah K.",title:"Private Client, St. George"}];return r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"What Utah Clients Say"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((t,n)=>r.jsx(Doe,{quote:t.quote,author:t.author,title:t.title},n))})]})})},Og=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:je("w-full caption-bottom text-sm",e),...t})}));Og.displayName="Table";const Ig=j.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:je("[&_tr]:border-b",e),...t}));Ig.displayName="TableHeader";const Dg=j.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:je("[&_tr:last-child]:border-0",e),...t}));Dg.displayName="TableBody";const Roe=j.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:je("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Roe.displayName="TableFooter";const Zt=j.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:je("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Zt.displayName="TableRow";const na=j.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:je("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));na.displayName="TableHead";const Ze=j.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:je("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ze.displayName="TableCell";const $oe=j.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:je("mt-4 text-sm text-muted-foreground",e),...t}));$oe.displayName="TableCaption";const Loe=({statistics:e})=>r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container px-4 md:px-6 mx-auto max-w-6xl",children:[r.jsx("h2",{className:"heading-primary text-3xl mb-8 text-center",children:"Utah Investigation Statistics"}),r.jsx(W,{className:"border-none shadow-md overflow-hidden",children:r.jsxs(H,{className:"p-6",children:[r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"col-span-2",children:[r.jsx("h3",{className:"heading-secondary text-xl mb-4",children:"Why These Numbers Matter"}),r.jsx("p",{className:"body-primary mb-4",children:"Understanding Utah's statistics helps us tailor our investigation services to the specific needs of Utah residents and businesses. These figures highlight areas where our expertise can help protect families, businesses, and individuals throughout the state."}),r.jsxs("div",{className:"mt-6 space-y-4",children:[r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Child Safety Concerns"}),r.jsxs("p",{className:"body-secondary text-sm mt-1",children:["With a child maltreatment rate of ",e.childMaltreatmentRate,", child custody and welfare investigations require particular sensitivity and expertise in Utah."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Property and Asset Protection"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The median home price of ",e.medianHomePrice," reflects significant assets that may need protection through proper investigation services during divorce proceedings, business disputes, or insurance claims."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Business Fraud Risk"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["With ",e.fraudCases," and over ",e.businessCount,", Utah companies face real risks that our corporate investigation services can help mitigate."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Hidden Assets Concerns"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The state's bankruptcy rate of ",e.bankruptcyRate," indicates potential financial distress cases where asset searches and financial investigations may be necessary."]})]})]})]}),r.jsxs("div",{children:[r.jsxs(Og,{children:[r.jsx(Ig,{children:r.jsx(Zt,{children:r.jsx(na,{colSpan:2,className:"text-center bg-trident-black text-white",children:"Utah Data"})})}),r.jsxs(Dg,{children:[r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Median Home Price"}),r.jsx(Ze,{children:e.medianHomePrice})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Violent Crime Index"}),r.jsx(Ze,{children:e.violentCrimeIndex})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Child Maltreatment Rate"}),r.jsx(Ze,{children:e.childMaltreatmentRate})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Registered Businesses"}),r.jsx(Ze,{children:e.businessCount})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Fraud Prosecutions"}),r.jsx(Ze,{children:e.fraudCases})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Bankruptcy Rate"}),r.jsx(Ze,{children:e.bankruptcyRate})]})]})]}),r.jsxs("div",{className:"mt-4 text-xs text-supporting",children:[r.jsx("p",{className:"font-semibold",children:"Sources:"}),r.jsx("ul",{className:"list-disc list-inside",children:e.sources.map((t,n)=>r.jsx("li",{children:t},n))})]})]})]}),r.jsxs("div",{className:"mt-8 p-4 bg-trident-black/5 rounded-lg border border-trident-black/10",children:[r.jsx("h3",{className:"text-lg font-medium mb-2",children:"How We Can Help"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our Utah investigators understand the unique challenges reflected in these statistics. Whether you need assistance with a child custody case, corporate fraud investigation, asset search, or insurance claim, our local expertise and professional approach can help you navigate these issues with confidence."}),r.jsx("div",{className:"mt-4",children:r.jsxs(te,{to:"/contact",className:"text-trident-blue hover:text-trident-black font-medium flex items-center",children:["Schedule a Confidential Consultation ",r.jsx("span",{className:"ml-2",children:"β"})]})})]})]})})]})}),Uoe=()=>{const e={medianHomePrice:"$475,000 (May 2023)",violentCrimeIndex:9.8,childMaltreatmentRate:"12.4 per 1,000 children",businessCount:"320,000+ registered businesses",fraudCases:"750+ fraud cases prosecuted (2022)",bankruptcyRate:"2.7 per 1,000 residents",sources:["Utah Association of Realtors","FBI Crime Data Explorer","Utah Division of Child and Family Services","Utah Division of Corporations","Utah State Courts","U.S. Bankruptcy Court District of Utah"]};return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(_oe,{}),r.jsx(Toe,{}),r.jsx(Loe,{statistics:e}),r.jsx(Eoe,{}),r.jsx(Ioe,{}),r.jsx(Moe,{}),r.jsx(tr,{title:"Need a Professional Utah Private Investigator?",subtitle:"Contact Trident Investigations today for a confidential consultation about your case."}),r.jsx(Qe,{})]})},Foe=()=>r.jsxs("section",{className:"relative pt-40 pb-20 bg-gradient-to-r from-trident-black to-trident-blue text-white",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-trident-black/90 to-trident-black/70 z-0"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:[r.jsx("span",{className:"text-transparent bg-gradient-to-r from-trident-gold to-orange-700 bg-clip-text font-extrabold",children:"Idaho"})," Private Investigators"]}),r.jsx("p",{className:"text-xl text-readable-light mb-8",children:"Professional, licensed private investigation services throughout Idaho"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(te,{to:"/contact",className:"btn-primary",children:"Schedule a Consultation"}),r.jsx("a",{href:"tel:+13855032939",className:`btn-secondary ${Qi}`,children:"Call 385-503-2939"})]})]})})]}),Boe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Trusted Idaho Private Investigators"}),r.jsx("p",{className:"text-lg mb-8 text-center text-trident-black opacity-70",children:"Trident Investigations provides comprehensive private investigation services throughout Idaho. With local knowledge and state-wide resources, our team delivers professional results for individuals, businesses, and attorneys."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mt-12",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Et,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Local Expertise"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our investigators have extensive knowledge of Idaho's cities, counties, and rural areas, allowing us to operate effectively throughout the state."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Be,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Licensed Professionals"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"All of our Idaho investigators are properly licensed and insured in accordance with state requirements."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(pn,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Comprehensive Services"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"From domestic investigations to corporate cases, we offer a full range of investigative services throughout Idaho."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Fl,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Court-Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We collect and document evidence that meets Idaho's legal standards for use in court proceedings."})]})]})]})})}),Woe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Idaho Investigation Services"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Domestic Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Our Idaho investigators specialize in sensitive domestic cases, including infidelity investigations, child custody support, and more."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Surveillance by local investigators familiar with Idaho communities"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Background checks that comply with Idaho law"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Evidence gathering for Idaho family court cases"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Local Knowledge Matters"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Our Idaho-based investigators understand the local terrain, communities, and legal requirements. This local expertise allows us to operate effectively in both urban centers like Boise and rural Idaho communities."})]})]}),r.jsxs("div",{className:"flex flex-col md:flex-row-reverse gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Corporate & Insurance Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"We provide comprehensive corporate investigation services for Idaho businesses, including employee misconduct, fraud investigations, and insurance claims verification."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Workplace misconduct investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Insurance fraud investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Due diligence for Idaho businesses"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Supporting Idaho Businesses"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"From Boise startups to established companies across the state, our corporate investigation services help Idaho businesses protect their interests, verify claims, and make informed decisions."})]})]})]})]})}),zoe=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Idaho Service Areas"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Treasure Valley Area"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Meridian"}),r.jsx("li",{children:"Nampa"}),r.jsx("li",{children:"Caldwell"}),r.jsx("li",{children:"Eagle"}),r.jsx("li",{children:"Star"}),r.jsx("li",{children:"Kuna"}),r.jsx("li",{children:"Garden City"})]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Northern Idaho"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Coeur d'Alene"}),r.jsx("li",{children:"Post Falls"}),r.jsx("li",{children:"Lewiston"}),r.jsx("li",{children:"Moscow"}),r.jsx("li",{children:"Sandpoint"}),r.jsx("li",{children:"Bonners Ferry"}),r.jsx("li",{children:"Kellogg"})]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Eastern Idaho"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Idaho Falls"}),r.jsx("li",{children:"Pocatello"}),r.jsx("li",{children:"Rexburg"}),r.jsx("li",{children:"Blackfoot"}),r.jsx("li",{children:"Chubbuck"}),r.jsx("li",{children:"Ammon"}),r.jsx("li",{children:"Twin Falls"})]})]})]}),r.jsxs("div",{className:"mt-12 text-center",children:[r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Don't see your location listed? We serve most of Idaho β contact us for availability in your area."}),r.jsx(te,{to:"/contact",className:"btn-secondary",children:"Contact Our Idaho Investigators"})]})]})}),qoe=({quote:e,author:t,title:n})=>r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-purple opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-dark italic mb-4",children:e}),r.jsx("div",{className:"font-bold text-trident-dark",children:t}),r.jsx("div",{className:"text-sm text-supporting-readable",children:n})]}),Hoe=()=>{const e=[{quote:"As a Boise attorney handling complex divorce cases, I rely on Trident for thorough and discreet investigations. Their evidence has been instrumental in numerous cases.",author:"Jennifer L.",title:"Family Law Attorney, Boise"},{quote:"When I needed surveillance in a remote part of Idaho, Trident's team was able to get the job done where other agencies couldn't. Their knowledge of the area was invaluable.",author:"Mark R.",title:"Insurance Claims Manager"}];return r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"What Idaho Clients Say"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((t,n)=>r.jsx(qoe,{quote:t.quote,author:t.author,title:t.title},n))})]})})},Voe=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Are your investigators licensed in Idaho?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Yes, all of our investigators operating in Idaho are properly licensed in accordance with state requirements. We maintain all necessary insurance and credentials to operate legally throughout Idaho."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How quickly can you begin an investigation in Idaho?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"In most cases, we can begin work within 24-48 hours. For urgent matters in major Idaho cities like Boise, Coeur d'Alene, or Idaho Falls, we can often start even sooner. Rural cases may require slightly more scheduling time."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Will evidence you collect be admissible in Idaho courts?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Yes, we collect and document evidence in accordance with Idaho laws and regulations to ensure admissibility in court. Our investigators are familiar with Idaho's legal requirements for evidence collection, chain of custody, and documentation."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Do you cover rural areas of Idaho?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Yes, we provide investigation services throughout Idaho, including rural and remote areas. Our team is equipped with the vehicles, technology, and local knowledge needed to operate effectively anywhere in the state."})]})]})]})}),Goe=({statistics:e})=>r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container px-4 md:px-6 mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Idaho Investigation Statistics"}),r.jsx(W,{className:"border-none shadow-md overflow-hidden",children:r.jsxs(H,{className:"p-6",children:[r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"col-span-2",children:[r.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Why These Numbers Matter"}),r.jsx("p",{className:"mb-4 text-trident-black opacity-70",children:"Understanding Idaho's statistics helps us tailor our investigation services to the specific needs of Idaho residents and businesses. These figures highlight areas where our expertise can help protect families, businesses, and individuals throughout the state."}),r.jsxs("div",{className:"mt-6 space-y-4",children:[r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Child Safety Concerns"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["With a child maltreatment rate of ",e.childMaltreatmentRate,", child custody and welfare investigations require particular sensitivity and expertise in Idaho."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Property and Asset Protection"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The median home price of ",e.medianHomePrice," reflects significant assets that may need protection through proper investigation services during divorce proceedings, business disputes, or insurance claims."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Business Fraud Risk"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["With ",e.fraudCases," and over ",e.businessCount,", Idaho companies face real risks that our corporate investigation services can help mitigate."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Hidden Assets Concerns"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The state's bankruptcy rate of ",e.bankruptcyRate," indicates potential financial distress cases where asset searches and financial investigations may be necessary."]})]})]})]}),r.jsxs("div",{children:[r.jsxs(Og,{children:[r.jsx(Ig,{children:r.jsx(Zt,{children:r.jsx(na,{colSpan:2,className:"text-center bg-trident-black text-white",children:"Idaho Data"})})}),r.jsxs(Dg,{children:[r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Median Home Price"}),r.jsx(Ze,{children:e.medianHomePrice})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Violent Crime Index"}),r.jsx(Ze,{children:e.violentCrimeIndex})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Child Maltreatment Rate"}),r.jsx(Ze,{children:e.childMaltreatmentRate})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Registered Businesses"}),r.jsx(Ze,{children:e.businessCount})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Fraud Prosecutions"}),r.jsx(Ze,{children:e.fraudCases})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Bankruptcy Rate"}),r.jsx(Ze,{children:e.bankruptcyRate})]})]})]}),r.jsxs("div",{className:"mt-4 text-xs text-supporting",children:[r.jsx("p",{className:"font-semibold",children:"Sources:"}),r.jsx("ul",{className:"list-disc list-inside",children:e.sources.map((t,n)=>r.jsx("li",{children:t},n))})]})]})]}),r.jsxs("div",{className:"mt-8 p-4 bg-trident-black/5 rounded-lg border border-trident-black/10",children:[r.jsx("h3",{className:"text-lg font-medium mb-2",children:"How We Can Help"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our Idaho investigators understand the unique challenges reflected in these statistics. Whether you need assistance with a child custody case, corporate fraud investigation, asset search, or insurance claim, our local expertise and professional approach can help you navigate these issues with confidence."}),r.jsx("div",{className:"mt-4",children:r.jsxs(te,{to:"/contact",className:"text-trident-blue hover:text-trident-black font-medium flex items-center",children:["Schedule a Confidential Consultation ",r.jsx("span",{className:"ml-2",children:"β"})]})})]})]})})]})}),Yoe=({cities:e})=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container px-4 md:px-6 mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Cities We Serve in Idaho"}),r.jsx(W,{className:"border-none shadow-md",children:r.jsxs(H,{className:"p-6",children:[r.jsx("p",{className:"mb-6 text-gray-600",children:"Our investigators are familiar with major cities and regions throughout Idaho, allowing us to conduct effective surveillance and investigations across the state."}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:e.map((t,n)=>r.jsx(V,{variant:"outline",className:"justify-start border border-gray-200 bg-white hover:bg-gray-50 hover:text-trident-purple text-left h-auto py-3",asChild:!0,children:r.jsxs(te,{to:t.path,children:[r.jsx(Et,{className:"mr-2 h-5 w-5 text-trident-purple"}),t.name]})},n))})]})})]})}),Koe=()=>{const e={medianHomePrice:"$475,000 (April 2023)",violentCrimeIndex:12.8,childMaltreatmentRate:"12.3 per 1,000 children",businessCount:"65,820 registered businesses",fraudCases:"485 fraud cases prosecuted (2022)",bankruptcyRate:"2.6 per 1,000 residents",sources:["Realtor.com","FBI Crime Data Explorer","Idaho Dept. of Health & Welfare","Idaho Secretary of State","Idaho Courts","U.S. Bankruptcy Court"]},t=[{name:"Boise",path:"/locations/idaho/boise"},{name:"Meridian",path:"/locations/idaho/meridian"},{name:"Nampa",path:"/locations/idaho/nampa"},{name:"Idaho Falls",path:"/locations/idaho/idaho-falls"},{name:"Pocatello",path:"/locations/idaho/pocatello"},{name:"Caldwell",path:"/locations/idaho/caldwell"},{name:"Coeur d'Alene",path:"/locations/idaho/coeur-dalene"},{name:"Twin Falls",path:"/locations/idaho/twin-falls"},{name:"Lewiston",path:"/locations/idaho/lewiston"},{name:"Post Falls",path:"/locations/idaho/post-falls"},{name:"Rexburg",path:"/locations/idaho/rexburg"},{name:"Moscow",path:"/locations/idaho/moscow"}];return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(Foe,{}),r.jsx(Boe,{}),r.jsx(Woe,{}),r.jsx(Goe,{statistics:e}),r.jsx(zoe,{}),r.jsx(Yoe,{cities:t}),r.jsx(Hoe,{}),r.jsx(Voe,{}),r.jsx(tr,{title:"Need a Professional Idaho Investigator?",description:"Contact our team for a confidential consultation about your investigation needs.",buttonText:"Contact Us Today",buttonLink:"/contact"}),r.jsx(Qe,{})]})},Xoe=()=>r.jsxs("section",{className:"relative pt-40 pb-20 hero-gradient text-white",children:[r.jsx("div",{className:"absolute inset-0 hero-overlay-fade z-0"}),r.jsx("div",{className:"container-custom relative z-10",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Wyoming Private Investigators"}),r.jsx("p",{className:"text-xl text-readable-light mb-8",children:"Professional, reliable investigation services across Wyoming"}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[r.jsx(te,{to:"/contact",className:"btn-primary",children:"Schedule a Consultation"}),r.jsx("a",{href:"tel:+13855032939",className:"btn-secondary ghl-number-swap",children:"Call 385-503-2939"})]})]})})]}),Qoe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Wyoming's Trusted Investigation Agency"}),r.jsx("p",{className:"text-lg mb-8 text-center text-trident-black opacity-70",children:"Trident Investigations provides comprehensive private investigation services throughout Wyoming. Our team of experienced investigators understands the unique challenges of conducting investigations in Wyoming's cities and rural areas."}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mt-12",children:[r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Et,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Statewide Coverage"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our investigators provide services throughout Wyoming, from Cheyenne and Casper to the most remote rural areas."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Be,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Licensed Professionals"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"All of our Wyoming investigators are properly licensed and insured in accordance with state requirements."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(pn,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Comprehensive Services"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We offer a full range of investigation services tailored to Wyoming's legal and regulatory environment."})]}),r.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md border border-gray-100",children:[r.jsx("div",{className:"flex items-center justify-center mb-4",children:r.jsx(Fl,{className:"w-12 h-12 text-trident-purple"})}),r.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:"Admissible Evidence"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"We collect and document evidence according to Wyoming's legal standards to ensure admissibility in court."})]})]})]})})}),Joe=()=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Wyoming Investigation Services"}),r.jsxs("div",{className:"space-y-16",children:[r.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Oil & Gas Industry Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Specialized investigation services for Wyoming's vital energy sector, including employee misconduct, accident investigations, and due diligence."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Workplace safety violation investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Employee background investigations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Theft and equipment loss investigations"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Industry Expertise"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"With Wyoming's economy heavily tied to energy production, our investigators have developed specialized knowledge of the oil, gas, and mining industries. We understand the unique challenges and requirements of conducting investigations in these environments."})]})]}),r.jsxs("div",{className:"flex flex-col md:flex-row-reverse gap-8 items-center",children:[r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Rural & Remote Investigations"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Our team is equipped to handle investigations across Wyoming's vast rural areas, with experience navigating remote locations and challenging terrain."}),r.jsxs("ul",{className:"space-y-2",children:[r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Advanced equipment for remote surveillance"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"4x4 vehicles for accessing remote locations"})]}),r.jsxs("li",{className:"flex items-start",children:[r.jsx("span",{className:"text-trident-purple mr-2",children:"β"}),r.jsx("span",{children:"Satellite communication capabilities"})]})]})]}),r.jsxs("div",{className:"md:w-1/2 bg-white p-8 rounded-lg shadow-md",children:[r.jsx("h4",{className:"text-xl font-bold mb-4",children:"Wyoming's Unique Geography"}),r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"Wyoming's vast open spaces and remote communities present unique investigative challenges. Our team has the specialized equipment, training, and local knowledge to conduct effective investigations even in the most remote parts of the state."})]})]})]})]})}),Zoe=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Our Wyoming Service Areas"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:[r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Eastern Wyoming"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Cheyenne"}),r.jsx("li",{children:"Laramie"}),r.jsx("li",{children:"Casper"}),r.jsx("li",{children:"Gillette"}),r.jsx("li",{children:"Sheridan"}),r.jsx("li",{children:"Douglas"}),r.jsx("li",{children:"Torrington"})]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Western Wyoming"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Rock Springs"}),r.jsx("li",{children:"Green River"}),r.jsx("li",{children:"Evanston"}),r.jsx("li",{children:"Jackson"}),r.jsx("li",{children:"Cody"}),r.jsx("li",{children:"Powell"}),r.jsx("li",{children:"Lander"})]})]}),r.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100",children:[r.jsx("h3",{className:"text-xl font-bold mb-4 text-trident-purple",children:"Central Wyoming"}),r.jsxs("ul",{className:"space-y-2 text-trident-black opacity-70",children:[r.jsx("li",{children:"Riverton"}),r.jsx("li",{children:"Worland"}),r.jsx("li",{children:"Thermopolis"}),r.jsx("li",{children:"Rawlins"}),r.jsx("li",{children:"Buffalo"}),r.jsx("li",{children:"Newcastle"}),r.jsx("li",{children:"Wheatland"})]})]})]}),r.jsxs("div",{className:"mt-12 text-center",children:[r.jsx("p",{className:"text-trident-black opacity-70 mb-4",children:"We serve all counties and communities in Wyoming. Contact us for availability in your specific location."}),r.jsx(te,{to:"/contact",className:"btn-secondary",children:"Contact Our Wyoming Investigators"})]})]})}),ele=({quote:e,author:t,title:n})=>r.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md",children:[r.jsx("svg",{className:"h-8 w-8 text-trident-purple opacity-50 mb-4",fill:"currentColor",viewBox:"0 0 32 32","aria-hidden":"true",children:r.jsx("path",{d:"M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"})}),r.jsx("blockquote",{className:"text-trident-dark italic mb-4",children:e}),r.jsx("div",{className:"font-bold text-trident-dark",children:t}),r.jsx("div",{className:"text-sm text-supporting-readable",children:n})]}),tle=()=>{const e=[{quote:"Trident's investigators understood the unique challenges of our oil field case. They were able to gather crucial evidence in remote areas where other firms couldn't operate effectively.",author:"James W.",title:"Energy Company Security Director, Casper"},{quote:"As a Cheyenne attorney, I've worked with several investigation firms. Trident consistently delivers thorough reports that stand up in Wyoming courts. Their knowledge of local laws and geography is exceptional.",author:"Patricia M.",title:"Attorney, Cheyenne"}];return r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"What Wyoming Clients Say"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:e.map((t,n)=>r.jsx(ele,{quote:t.quote,author:t.author,title:t.title},n))})]})})},nle=()=>r.jsx("section",{className:"py-16 bg-gray-50",children:r.jsxs("div",{className:"container-custom",children:[r.jsx("h2",{className:"text-3xl font-bold mb-12 text-center",children:"Frequently Asked Questions"}),r.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"How do you handle investigations in Wyoming's remote areas?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our investigators are equipped with specialized vehicles, communication equipment, and technology that allows us to operate effectively in Wyoming's most remote regions. We also maintain a network of local contacts throughout the state to assist when needed."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Do you understand Wyoming's specific privacy laws?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Yes, our investigators are thoroughly trained in Wyoming's privacy and surveillance laws. We ensure that all evidence is collected legally and ethically, with full compliance with state regulations."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"Can you handle cases that cross state lines?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Absolutely. Wyoming's proximity to multiple states often means cases cross jurisdictions. We have the licensing, resources, and partnerships necessary to handle multi-state investigations, particularly those involving Montana, Colorado, Utah, Idaho, and South Dakota."})]}),r.jsxs("div",{className:"border-b border-gray-200 pb-8",children:[r.jsx("h3",{className:"text-xl font-bold mb-3",children:"What types of cases do you handle most frequently in Wyoming?"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"While we handle all types of investigations, we frequently work on cases involving the energy industry, including workplace misconduct and accident investigations. We also regularly handle domestic cases, insurance fraud investigations, and asset searches throughout Wyoming."})]})]})]})}),rle=({statistics:e})=>r.jsx("section",{className:"py-16 bg-trident-smoke",children:r.jsxs("div",{className:"container px-4 md:px-6 mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Wyoming Investigation Statistics"}),r.jsx(W,{className:"border-none shadow-md overflow-hidden",children:r.jsxs(H,{className:"p-6",children:[r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"col-span-2",children:[r.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Why These Numbers Matter"}),r.jsx("p",{className:"mb-4 text-trident-black opacity-70",children:"Understanding Wyoming's statistics helps us tailor our investigation services to the specific needs of Wyoming residents and businesses. These figures highlight areas where our expertise can help protect families, businesses, and individuals throughout the state."}),r.jsxs("div",{className:"mt-6 space-y-4",children:[r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Child Safety Concerns"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["With a child maltreatment rate of ",e.childMaltreatmentRate,", child custody and welfare investigations require particular sensitivity and expertise in Wyoming."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Property and Asset Protection"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The median home price of ",e.medianHomePrice," reflects significant assets that may need protection through proper investigation services during divorce proceedings, business disputes, or insurance claims."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Business Fraud Risk"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["With ",e.fraudCases," and over ",e.businessCount,", Wyoming companies face real risks that our corporate investigation services can help mitigate."]})]}),r.jsxs("div",{className:"rounded-lg bg-white p-4 border border-trident-grey shadow-sm",children:[r.jsx("h4",{className:"font-medium text-trident-blue",children:"Hidden Assets Concerns"}),r.jsxs("p",{className:"text-sm text-trident-black opacity-70 mt-1",children:["The state's bankruptcy rate of ",e.bankruptcyRate," indicates potential financial distress cases where asset searches and financial investigations may be necessary."]})]})]})]}),r.jsxs("div",{children:[r.jsxs(Og,{children:[r.jsx(Ig,{children:r.jsx(Zt,{children:r.jsx(na,{colSpan:2,className:"text-center bg-trident-black text-white",children:"Wyoming Data"})})}),r.jsxs(Dg,{children:[r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Median Home Price"}),r.jsx(Ze,{children:e.medianHomePrice})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Violent Crime Index"}),r.jsx(Ze,{children:e.violentCrimeIndex})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Child Maltreatment Rate"}),r.jsx(Ze,{children:e.childMaltreatmentRate})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Registered Businesses"}),r.jsx(Ze,{children:e.businessCount})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Fraud Prosecutions"}),r.jsx(Ze,{children:e.fraudCases})]}),r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-medium",children:"Bankruptcy Rate"}),r.jsx(Ze,{children:e.bankruptcyRate})]})]})]}),r.jsxs("div",{className:"mt-4 text-xs text-supporting",children:[r.jsx("p",{className:"font-semibold",children:"Sources:"}),r.jsx("ul",{className:"list-disc list-inside",children:e.sources.map((t,n)=>r.jsx("li",{children:t},n))})]})]})]}),r.jsxs("div",{className:"mt-8 p-4 bg-trident-black/5 rounded-lg border border-trident-black/10",children:[r.jsx("h3",{className:"text-lg font-medium mb-2",children:"How We Can Help"}),r.jsx("p",{className:"text-trident-black opacity-70",children:"Our Wyoming investigators understand the unique challenges reflected in these statistics. Whether you need assistance with a child custody case, corporate fraud investigation, asset search, or insurance claim, our local expertise and professional approach can help you navigate these issues with confidence."}),r.jsx("div",{className:"mt-4",children:r.jsxs(te,{to:"/contact",className:"text-trident-blue hover:text-trident-black font-medium flex items-center",children:["Schedule a Confidential Consultation ",r.jsx("span",{className:"ml-2",children:"β"})]})})]})]})})]})}),ile=({cities:e})=>r.jsx("section",{className:"py-16 bg-white",children:r.jsxs("div",{className:"container px-4 md:px-6 mx-auto max-w-6xl",children:[r.jsx("h2",{className:"text-3xl font-bold mb-8 text-center",children:"Cities We Serve in Wyoming"}),r.jsx(W,{className:"border-none shadow-md",children:r.jsxs(H,{className:"p-6",children:[r.jsx("p",{className:"mb-6 text-gray-600",children:"Our investigators are familiar with major cities and regions throughout Wyoming, allowing us to conduct effective surveillance and investigations across the state."}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:e.map((t,n)=>r.jsx(V,{variant:"outline",className:"justify-start border border-gray-200 bg-white hover:bg-gray-50 hover:text-trident-purple text-left h-auto py-3",asChild:!0,children:r.jsxs(te,{to:t.path,children:[r.jsx(Et,{className:"mr-2 h-5 w-5 text-trident-purple"}),t.name]})},n))})]})})]})}),sle=()=>{const e={medianHomePrice:"$395,000 (April 2023)",violentCrimeIndex:11.5,childMaltreatmentRate:"13.6 per 1,000 children",businessCount:"32,450 registered businesses",fraudCases:"265 fraud cases prosecuted (2022)",bankruptcyRate:"2.9 per 1,000 residents",sources:["Realtor.com","FBI Crime Data Explorer","Wyoming Dept. of Family Services","Wyoming Secretary of State","Wyoming Judicial Branch","U.S. Bankruptcy Court"]},t=[{name:"Cheyenne",path:"/locations/wyoming/cheyenne"},{name:"Casper",path:"/locations/wyoming/casper"},{name:"Laramie",path:"/locations/wyoming/laramie"},{name:"Gillette",path:"/locations/wyoming/gillette"},{name:"Rock Springs",path:"/locations/wyoming/rock-springs"},{name:"Sheridan",path:"/locations/wyoming/sheridan"},{name:"Green River",path:"/locations/wyoming/green-river"},{name:"Evanston",path:"/locations/wyoming/evanston"},{name:"Riverton",path:"/locations/wyoming/riverton"},{name:"Jackson",path:"/locations/wyoming/jackson"},{name:"Cody",path:"/locations/wyoming/cody"},{name:"Rawlins",path:"/locations/wyoming/rawlins"}];return r.jsxs("div",{className:"flex flex-col min-h-screen",children:[r.jsx(Xe,{}),r.jsx(Xoe,{}),r.jsx(Qoe,{}),r.jsx(Joe,{}),r.jsx(rle,{statistics:e}),r.jsx(Zoe,{}),r.jsx(ile,{cities:t}),r.jsx(tle,{}),r.jsx(nle,{}),r.jsx(tr,{title:"Need a Wyoming Private Investigator?",description:"Contact our team to discuss your case with a Wyoming investigation specialist.",buttonText:"Get Started Today",buttonLink:"/contact"}),r.jsx(Qe,{})]})},fd=({items:e,className:t=""})=>r.jsx("nav",{"aria-label":"breadcrumbs",className:`mb-6 ${t}`,itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:r.jsx("ol",{className:"flex items-center space-x-2 text-sm text-trident-black opacity-70",children:e.map((n,i)=>r.jsxs("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",className:"flex items-center",children:[n.path?r.jsx(te,{to:n.path,itemProp:"item",className:"hover:text-trident-orange transition-colors font-inter",children:r.jsx("span",{itemProp:"name",children:n.label})}):r.jsx("span",{itemProp:"name",className:"font-medium text-trident-dark font-merriweather",children:n.label}),r.jsx("meta",{itemProp:"position",content:String(i+1)}),i<e.length-1&&r.jsx("span",{className:"ml-2 text-gray-400",children:"/"})]},i))})}),pd=[{name:"Salt Lake County",slug:"salt-lake-county",path:"/locations/utah/salt-lake-county",description:"Utah's most populous county and economic center, home to the state capital and major business districts.",population:1185238,medianIncome:"$78,930",majorIndustries:["Technology","Healthcare","Financial Services","Mining","Government"],metroArea:"Salt Lake City Metro",nearbyCounties:["Davis County","Utah County","Tooele County","Summit County"],cities:[{name:"Salt Lake City",path:"/locations/utah/salt-lake-county/salt-lake-city",population:199723,landmarks:["State Capitol","Temple Square","University of Utah"],hasUniqueContent:!0},{name:"Sandy",path:"/locations/utah/salt-lake-county/sandy",population:96904,landmarks:["Rio Tinto Stadium","South Towne Center"]},{name:"West Valley City",path:"/locations/utah/salt-lake-county/west-valley-city",population:140230,landmarks:["Maverik Center","West Valley City Hall"]},{name:"Draper",path:"/locations/utah/salt-lake-county/draper",population:48594,landmarks:["Draper Historic Theatre","Corner Canyon"]},{name:"South Jordan",path:"/locations/utah/salt-lake-county/south-jordan",population:77487,landmarks:["The District Shopping Center","Oquirrh Lake"]},{name:"Taylorsville",path:"/locations/utah/salt-lake-county/taylorsville",population:60448,landmarks:["Taylorsville City Hall","Valley Fair Mall"]},{name:"Murray",path:"/locations/utah/salt-lake-county/murray",population:49889,landmarks:["Fashion Place Mall","Murray City Park"]},{name:"Riverton",path:"/locations/utah/salt-lake-county/riverton",population:45285,landmarks:["Riverton City Park","Old Riverton School"]},{name:"Cottonwood Heights",path:"/locations/utah/salt-lake-county/cottonwood-heights",population:32865,landmarks:["Big Cottonwood Canyon","Little Cottonwood Canyon"],hasUniqueContent:!0},{name:"Bluffdale",path:"/locations/utah/salt-lake-county/bluffdale",population:20240,landmarks:["Point of the Mountain","Bluffdale City Park"],hasUniqueContent:!0}]},{name:"Utah County",slug:"utah-county",path:"/locations/utah/utah-county",description:"Home to major universities and growing tech industry, known as part of Silicon Slopes.",population:665665,medianIncome:"$82,893",majorIndustries:["Technology","Education","Manufacturing","Healthcare"],metroArea:"Provo-Orem Metro",nearbyCounties:["Salt Lake County","Wasatch County","Carbon County"],cities:[{name:"Provo",path:"/locations/utah/utah-county/provo",population:114804,landmarks:["Brigham Young University","Provo Canyon","LaVell Edwards Stadium"]},{name:"Orem",path:"/locations/utah/utah-county/orem",population:94420,landmarks:["Utah Valley University","UCCU Center"]},{name:"Lehi",path:"/locations/utah/utah-county/lehi",population:75907,landmarks:["Thanksgiving Point","Adobe Creek Golf Course"]},{name:"American Fork",path:"/locations/utah/utah-county/american-fork",population:33337,landmarks:["American Fork Canyon","Timpanogos Cave"]},{name:"Spanish Fork",path:"/locations/utah/utah-county/spanish-fork",population:42602,landmarks:["Spanish Fork River","Fiesta Days"]},{name:"Springville",path:"/locations/utah/utah-county/springville",population:35268,landmarks:["Springville Museum of Art","Hobble Creek Golf Course"]},{name:"Payson",path:"/locations/utah/utah-county/payson",population:20651,landmarks:["Payson Lakes","Peteetneet Museum"]}]},{name:"Davis County",slug:"davis-county",path:"/locations/utah/davis-county",description:"Strategically located between Salt Lake City and Ogden, known for aerospace and defense industries.",population:362679,medianIncome:"$87,210",majorIndustries:["Aerospace","Defense","Manufacturing","Agriculture"],metroArea:"Salt Lake City Metro",nearbyCounties:["Salt Lake County","Weber County","Morgan County"],cities:[{name:"Layton",path:"/locations/utah/davis-county/layton",population:81773,landmarks:["Hill Air Force Base","Layton Hills Mall"]},{name:"Bountiful",path:"/locations/utah/davis-county/bountiful",population:45538,landmarks:["Bountiful Temple","Mueller Park"]},{name:"Clearfield",path:"/locations/utah/davis-county/clearfield",population:31909,landmarks:["Clearfield Aquatic Center","Steed Park"]},{name:"Kaysville",path:"/locations/utah/davis-county/kaysville",population:32390,landmarks:["Kaysville City Park","Cherry Hill"]},{name:"Farmington",path:"/locations/utah/davis-county/farmington",population:24531,landmarks:["Lagoon Amusement Park","Farmington Bay"]},{name:"Centerville",path:"/locations/utah/davis-county/centerville",population:17570,landmarks:["Centerville City Park","Deuel Creek Canyon"]}]},{name:"Weber County",slug:"weber-county",path:"/locations/utah/weber-county",description:"Historic county centered around Ogden, with strong transportation and logistics industries.",population:262617,medianIncome:"$71,234",majorIndustries:["Transportation","Logistics","Manufacturing","Healthcare"],metroArea:"Ogden-Clearfield Metro",nearbyCounties:["Davis County","Cache County","Box Elder County"],cities:[{name:"Ogden",path:"/locations/utah/weber-county/ogden",population:87321,landmarks:["Union Station","Historic 25th Street","Weber State University"]},{name:"Roy",path:"/locations/utah/weber-county/roy",population:38965,landmarks:["Roy City Park","Roy High School"]},{name:"North Ogden",path:"/locations/utah/weber-county/north-ogden",population:20562,landmarks:["North Ogden Divide","Coldwater Canyon"]},{name:"South Ogden",path:"/locations/utah/weber-county/south-ogden",population:17620,landmarks:["Mount Ogden Golf Course","South Ogden Nature Park"]},{name:"Washington Terrace",path:"/locations/utah/weber-county/washington-terrace",population:9067,landmarks:["Washington Terrace City Hall","Bicentennial Park"]}]}],xE=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toString(),gd=({county:e,className:t=""})=>{const n=e.cities.filter(l=>l.hasUniqueContent),i=e.cities.filter(l=>!l.hasUniqueContent),s=Math.max(8,n.length),a=[...n,...i].slice(0,s),o=e.cities.filter(l=>!a.includes(l));return r.jsxs("div",{className:`space-y-16 ${t}`,children:[r.jsx("section",{className:"py-16 bg-white",children:r.jsx("div",{className:"container-custom",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12 items-start",children:[r.jsxs("div",{className:"lg:col-span-2",children:[r.jsxs("h1",{className:"heading-primary text-4xl mb-6",children:[e.name," Private Investigation Services"]}),r.jsx("p",{className:"body-primary text-lg mb-6",children:e.description}),r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8",children:[r.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[r.jsx(pn,{className:"w-8 h-8 text-trident-orange mx-auto mb-2"}),r.jsx("div",{className:"heading-secondary text-lg",children:xE(e.population)}),r.jsx("div",{className:"body-secondary text-sm",children:"Population"})]}),r.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[r.jsx(ma,{className:"w-8 h-8 text-trident-orange mx-auto mb-2"}),r.jsx("div",{className:"heading-secondary text-lg",children:e.medianIncome}),r.jsx("div",{className:"body-secondary text-sm",children:"Median Income"})]}),r.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[r.jsx(Et,{className:"w-8 h-8 text-trident-orange mx-auto mb-2"}),r.jsx("div",{className:"heading-secondary text-lg",children:e.cities.length}),r.jsx("div",{className:"body-secondary text-sm",children:"Cities Served"})]}),r.jsxs("div",{className:"text-center p-4 bg-muted/50 rounded-lg",children:[r.jsx(Qn,{className:"w-8 h-8 text-trident-orange mx-auto mb-2"}),r.jsx("div",{className:"heading-secondary text-lg",children:e.majorIndustries.length}),r.jsx("div",{className:"body-secondary text-sm",children:"Key Industries"})]})]}),r.jsxs("div",{className:"mb-8",children:[r.jsx("h3",{className:"heading-secondary text-xl mb-4",children:"Major Industries"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:e.majorIndustries.map(l=>r.jsx("span",{className:"px-3 py-1 bg-trident-blue text-white rounded-full text-sm",children:l},l))})]})]}),r.jsx("div",{className:"lg:col-span-1",children:r.jsxs("div",{className:"bg-muted/50 p-6 rounded-lg",children:[r.jsxs("h3",{className:"heading-secondary text-xl mb-4 text-center",children:[e.name," Coverage"]}),r.jsxs("div",{className:"text-center p-8",children:[r.jsx(Et,{className:"w-16 h-16 text-trident-orange mx-auto mb-4"}),r.jsxs("p",{className:"text-gray-600 mb-4",children:["Professional investigation services throughout ",e.name]}),r.jsxs("div",{className:"space-y-2 text-sm text-gray-500",children:[r.jsx("p",{children:"π All cities and communities"}),r.jsx("p",{children:"π Mobile investigation services"}),r.jsx("p",{children:"π 24/7 consultation available"})]})]})]})})]})})}),r.jsx("section",{className:"py-16 bg-muted/50",children:r.jsxs("div",{className:"container-custom",children:[r.jsxs("h2",{className:"heading-primary text-3xl text-center mb-4",children:["Cities We Serve in ",e.name]}),r.jsxs("p",{className:"body-secondary text-center mb-12",children:["Professional private investigation services throughout ",e.metroArea||e.name]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:a.map(l=>r.jsxs(te,{to:l.path,className:"bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition-all duration-300 hover:-translate-y-2",children:[r.jsxs("div",{className:"flex items-start justify-between mb-4",children:[r.jsx("h3",{className:"heading-secondary text-lg font-merriweather",children:l.name}),r.jsx(Et,{className:"w-5 h-5 text-trident-orange flex-shrink-0"})]}),r.jsxs("div",{className:"space-y-2 mb-4",children:[r.jsxs("div",{className:"flex items-center text-sm text-gray-600",children:[r.jsx(pn,{className:"w-4 h-4 mr-2"}),r.jsxs("span",{children:[xE(l.population)," residents"]})]}),l.landmarks&&l.landmarks.length>0&&r.jsxs("div",{className:"text-sm text-gray-500",children:[r.jsx("span",{className:"font-medium",children:"Known for:"})," ",l.landmarks[0]]})]}),r.jsx("div",{className:"text-trident-orange text-sm font-medium",children:"View Services β"})]},l.name))}),o.length>0&&r.jsxs("div",{className:"text-center",children:[r.jsx("h3",{className:"heading-secondary text-xl mb-4",children:"Additional Coverage Areas"}),r.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:o.map(l=>r.jsx(te,{to:l.path,className:"px-4 py-2 bg-white rounded-lg border border-border hover:border-trident-orange hover:text-trident-orange transition-colors",children:l.name},l.name))})]})]})}),r.jsx("section",{className:"py-16 bg-trident-black text-white",children:r.jsxs("div",{className:"container-custom text-center",children:[r.jsxs("h2",{className:"text-3xl font-bold mb-4",children:["Professional Investigation Services Throughout ",e.name]}),r.jsxs("p",{className:"text-lg text-gray-300 mb-8 max-w-2xl mx-auto",children:["Our licensed investigators provide discreet, professional services across all ",e.name," communities. Contact us today for a confidential consultation."]}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[r.jsx(V,{asChild:!0,variant:"gold",size:"lg",children:r.jsx(te,{to:"/contact",children:"Schedule a Call"})}),r.jsx(V,{asChild:!0,variant:"goldOutline",size:"lg",children:r.jsxs("a",{href:"tel:+13855032939",className:"inline-flex items-center gap-2 ghl-number-swap",children:[r.jsx(fn,{}),"Call Now"]})})]})]})})]})},ale=()=>{wn({title:ft.counties.saltLake.title,description:ft.counties.saltLake.description,keywords:ft.counties.saltLake.keywords,canonicalUrl:"https://tridentpi.net/locations/utah/salt-lake-county"});const e=pd.find(n=>n.slug==="salt-lake-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Salt Lake County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},ole=()=>{wn({title:ft.counties.utah.title,description:ft.counties.utah.description,keywords:ft.counties.utah.keywords,canonicalUrl:"https://tridentpi.net/locations/utah/utah-county"});const e=pd.find(n=>n.slug==="utah-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Utah County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},lle=()=>{wn({title:"Davis County Private Investigator | Trident Investigations",description:"Professional private investigation services throughout Davis County, Utah.",keywords:"Davis County private investigator, Utah investigation services",canonicalUrl:"https://tridentpi.net/locations/utah/davis-county"});const e=pd.find(n=>n.slug==="davis-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Davis County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},cle=()=>{wn({title:"Weber County Private Investigator | Trident Investigations",description:"Licensed private investigator services throughout Weber County. Surveillance, domestic, corporate, insurance & legal support. Free consultation.",keywords:"Weber County private investigator, Utah investigation services",canonicalUrl:"https://tridentpi.net/locations/utah/weber-county"});const e=pd.find(n=>n.slug==="weber-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Weber County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},dle=()=>{wn({title:"Cache County Private Investigator | Trident Investigations",description:"Licensed private investigator services throughout Cache County. Surveillance, domestic, corporate, insurance & legal support. Free consultation.",keywords:"Cache County private investigator, Utah investigation services",canonicalUrl:"https://tridentpi.net/locations/utah/cache-county"});const e=pd.find(n=>n.slug==="cache-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Cache County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},ule=()=>{wn({title:"Tooele County Private Investigator | Trident Investigations",description:"Licensed private investigator services throughout Tooele County. Surveillance, domestic, corporate, insurance & legal support. Free consultation.",keywords:"Tooele County private investigator, Utah investigation services",canonicalUrl:"https://tridentpi.net/locations/utah/tooele-county"});const e=pd.find(n=>n.slug==="tooele-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Tooele County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})},hle=()=>{wn({title:"Washington County Private Investigator | Trident Investigations",description:"Licensed private investigator services throughout Washington County. Surveillance, domestic, corporate, insurance & legal support. Free consultation.",keywords:"Washington County private investigator, Utah investigation services",canonicalUrl:"https://tridentpi.net/locations/utah/washington-county"});const e=pd.find(n=>n.slug==="washington-county"),t=[{label:"Home",path:"/"},{label:"Utah",path:"/locations/utah"},{label:"Washington County"}];return r.jsxs(r.Fragment,{children:[r.jsx(Xe,{}),r.jsxs("main",{className:"min-h-screen",children:[r.jsx("div",{className:"bg-white pt-28 pb-4",children:r.jsx("div",{className:"container-custom",children:r.jsx(fd,{items:t})})}),r.jsx(gd,{county:e})]}),r.jsx(Qe,{})]})};function lt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function $r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Kn(e,t){const n=lt(e);return isNaN(t)?$r(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Fs(e,t){const n=lt(e);if(isNaN(t))return $r(e,NaN);if(!t)return n;const i=n.getDate(),s=$r(e,n.getTime());s.setMonth(n.getMonth()+t+1,0);const a=s.getDate();return i>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function mle(e,t){const n=+lt(e);return $r(e,n+t)}const s5=6048e5,fle=864e5,hF=6e4,a5=36e5;function yE(e,t){return mle(e,t*a5)}let ple={};function Mg(){return ple}function Zi(e,t){var l,c,d,u;const n=Mg(),i=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=lt(e),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Yc(e){return Zi(e,{weekStartsOn:1})}function mF(e){const t=lt(e),n=t.getFullYear(),i=$r(e,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const s=Yc(i),a=$r(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=Yc(a);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Ju(e){const t=lt(e);return t.setHours(0,0,0,0),t}function Ay(e){const t=lt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ca(e,t){const n=Ju(e),i=Ju(t),s=+n-Ay(n),a=+i-Ay(i);return Math.round((s-a)/fle)}function gle(e){const t=mF(e),n=$r(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Yc(n)}function iS(e,t){const n=t*7;return Kn(e,n)}function vle(e,t){return Fs(e,t*12)}function xle(e){let t;return e.forEach(function(n){const i=lt(n);(t===void 0||t<i||isNaN(Number(i)))&&(t=i)}),t||new Date(NaN)}function yle(e){let t;return e.forEach(n=>{const i=lt(n);(!t||t>i||isNaN(+i))&&(t=i)}),t||new Date(NaN)}function ble(e){return $r(e,Date.now())}function En(e,t){const n=Ju(e),i=Ju(t);return+n==+i}function o5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function wle(e){if(!o5(e)&&typeof e!="number")return!1;const t=lt(e);return!isNaN(Number(t))}function pp(e,t){const n=lt(e),i=lt(t),s=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return s*12+a}function jle(e,t,n){const i=Zi(e,n),s=Zi(t,n),a=+i-Ay(i),o=+s-Ay(s);return Math.round((a-o)/s5)}function l5(e){const t=lt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ii(e){const t=lt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function fF(e){const t=lt(e),n=$r(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function gp(e,t){var l,c,d,u;const n=Mg(),i=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=lt(e),a=s.getDay(),o=(a<i?-7:0)+6-(a-i);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function pF(e){return gp(e,{weekStartsOn:1})}const Nle={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sle=(e,t,n)=>{let i;const s=Nle[e];return typeof s=="string"?i=s:t===1?i=s.one:i=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function v1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_le={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tle={date:v1({formats:kle,defaultWidth:"full"}),time:v1({formats:Cle,defaultWidth:"full"}),dateTime:v1({formats:_le,defaultWidth:"full"})},Ple={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ele=(e,t,n,i)=>Ple[e];function Am(e){return(t,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;s=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const Ale={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ole={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ile={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dle={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Mle={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rle={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$le=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Lle={ordinalNumber:$le,era:Am({values:Ale,defaultWidth:"wide"}),quarter:Am({values:Ole,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Am({values:Ile,defaultWidth:"wide"}),day:Am({values:Dle,defaultWidth:"wide"}),dayPeriod:Am({values:Mle,defaultWidth:"wide",formattingValues:Rle,defaultFormattingWidth:"wide"})};function Om(e){return(t,n={})=>{const i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Fle(l,h=>h.test(o)):Ule(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(o.length);return{value:d,rest:u}}}function Ule(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fle(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ble(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const s=i[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(s.length);return{value:o,rest:l}}}const Wle=/^(\d+)(th|st|nd|rd)?/i,zle=/\d+/i,qle={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hle={any:[/^b/i,/^(a|c)/i]},Vle={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gle={any:[/1/i,/2/i,/3/i,/4/i]},Yle={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kle={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Xle={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qle={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jle={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zle={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ece={ordinalNumber:Ble({matchPattern:Wle,parsePattern:zle,valueCallback:e=>parseInt(e,10)}),era:Om({matchPatterns:qle,defaultMatchWidth:"wide",parsePatterns:Hle,defaultParseWidth:"any"}),quarter:Om({matchPatterns:Vle,defaultMatchWidth:"wide",parsePatterns:Gle,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Om({matchPatterns:Yle,defaultMatchWidth:"wide",parsePatterns:Kle,defaultParseWidth:"any"}),day:Om({matchPatterns:Xle,defaultMatchWidth:"wide",parsePatterns:Qle,defaultParseWidth:"any"}),dayPeriod:Om({matchPatterns:Jle,defaultMatchWidth:"any",parsePatterns:Zle,defaultParseWidth:"any"})},gF={code:"en-US",formatDistance:Sle,formatLong:Tle,formatRelative:Ele,localize:Lle,match:ece,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tce(e){const t=lt(e);return ca(t,fF(t))+1}function vF(e){const t=lt(e),n=+Yc(t)-+gle(t);return Math.round(n/s5)+1}function xF(e,t){var u,h,m,f;const n=lt(e),i=n.getFullYear(),s=Mg(),a=(t==null?void 0:t.firstWeekContainsDate)??((h=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(m=s.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,o=$r(e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const l=Zi(o,t),c=$r(e,0);c.setFullYear(i,0,a),c.setHours(0,0,0,0);const d=Zi(c,t);return n.getTime()>=l.getTime()?i+1:n.getTime()>=d.getTime()?i:i-1}function nce(e,t){var l,c,d,u;const n=Mg(),i=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,s=xF(e,t),a=$r(e,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),Zi(a,t)}function yF(e,t){const n=lt(e),i=+Zi(n,t)-+nce(n,t);return Math.round(i/s5)+1}function Pt(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const Mo={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return Pt(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return Pt(s,t.length)}},Md={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bE={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return Mo.y(e,t)},Y:function(e,t,n,i){const s=xF(e,i),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return Pt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pt(a,t.length)},R:function(e,t){const n=mF(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Pt(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Pt(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return Mo.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return Pt(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const s=yF(e,i);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Pt(s,t.length)},I:function(e,t,n){const i=vF(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Mo.d(e,t)},D:function(e,t,n){const i=tce(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Pt(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),s=i===0?7:i;switch(t){case"i":return String(s);case"ii":return Pt(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let s;switch(i===12?s=Md.noon:i===0?s=Md.midnight:s=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let s;switch(i>=17?s=Md.evening:i>=12?s=Md.afternoon:i>=4?s=Md.morning:s=Md.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Mo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Mo.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Pt(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):Pt(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Mo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Mo.s(e,t)},S:function(e,t){return Mo.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return jE(i);case"XXXX":case"XX":return oc(i);case"XXXXX":case"XXX":default:return oc(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return jE(i);case"xxxx":case"xx":return oc(i);case"xxxxx":case"xxx":default:return oc(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wE(i,":");case"OOOO":default:return"GMT"+oc(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wE(i,":");case"zzzz":default:return"GMT"+oc(i,":")}},t:function(e,t,n){const i=Math.trunc(e.getTime()/1e3);return Pt(i,t.length)},T:function(e,t,n){const i=e.getTime();return Pt(i,t.length)}};function wE(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+Pt(a,2)}function jE(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):oc(e,t)}function oc(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Pt(Math.trunc(i/60),2),a=Pt(i%60,2);return n+s+t+a}const NE=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},bF=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},rce=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return NE(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",NE(i,t)).replace("{{time}}",bF(s,t))},ice={p:bF,P:rce},sce=/^D+$/,ace=/^Y+$/,oce=["D","DD","YY","YYYY"];function lce(e){return sce.test(e)}function cce(e){return ace.test(e)}function dce(e,t,n){const i=uce(e,t,n);if(console.warn(i),oce.includes(e))throw new RangeError(i)}function uce(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const hce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fce=/^'([^]*?)'?$/,pce=/''/g,gce=/[a-zA-Z]/;function He(e,t,n){var u,h,m,f,g,p,v,y;const i=Mg(),s=(n==null?void 0:n.locale)??i.locale??gF,a=(n==null?void 0:n.firstWeekContainsDate)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??i.firstWeekContainsDate??((f=(m=i.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??i.weekStartsOn??((y=(v=i.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,l=lt(e);if(!wle(l))throw new RangeError("Invalid time value");let c=t.match(mce).map(x=>{const b=x[0];if(b==="p"||b==="P"){const w=ice[b];return w(x,s.formatLong)}return x}).join("").match(hce).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:vce(x)};if(bE[b])return{isToken:!0,value:x};if(b.match(gce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&cce(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&lce(b))&&dce(b,t,String(e));const w=bE[b[0]];return w(l,b,s.localize,d)}).join("")}function vce(e){const t=e.match(fce);return t?t[1].replace(pce,"'"):e}function xce(e){const t=lt(e),n=t.getFullYear(),i=t.getMonth(),s=$r(e,0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function yce(e){return Math.trunc(+lt(e)/1e3)}function bce(e){const t=lt(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function wce(e,t){return jle(bce(e),ii(e),t)+1}function Rc(e,t){const n=lt(e),i=lt(t);return n.getTime()>i.getTime()}function wF(e,t){const n=lt(e),i=lt(t);return+n<+i}function jce(e){return+lt(e)>Date.now()}function Nce(e){return+lt(e)<Date.now()}function c5(e,t){const n=lt(e),i=lt(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Sce(e,t){const n=lt(e),i=lt(t);return n.getFullYear()===i.getFullYear()}function kce(e){return En(e,ble(e))}function SE(e,t){const n=+lt(e),[i,s]=[+lt(t.start),+lt(t.end)].sort((a,o)=>a-o);return n>=i&&n<=s}function js(e,t){return Kn(e,-t)}function Rn(e,t){const i=Pce(e);let s;if(i.date){const c=Ece(i.date,2);s=Ace(c.restDateString,c.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);const a=s.getTime();let o=0,l;if(i.time&&(o=Oce(i.time),isNaN(o)))return new Date(NaN);if(i.timezone){if(l=Ice(i.timezone),isNaN(l))return new Date(NaN)}else{const c=new Date(a+o),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(a+o+l)}const qv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Cce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_ce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tce=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Pce(e){const t={},n=e.split(qv.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],qv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qv.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const s=qv.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function Ece(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?s:a*100,restDateString:e.slice((i[1]||i[2]).length)}}function Ace(e,t){if(t===null)return new Date(NaN);const n=e.match(Cce);if(!n)return new Date(NaN);const i=!!n[4],s=Im(n[1]),a=Im(n[2])-1,o=Im(n[3]),l=Im(n[4]),c=Im(n[5])-1;if(i)return Lce(t,l,c)?Dce(t,l,c):new Date(NaN);{const d=new Date(0);return!Rce(t,a,o)||!$ce(t,s)?new Date(NaN):(d.setUTCFullYear(t,a,Math.max(s,o)),d)}}function Im(e){return e?parseInt(e):1}function Oce(e){const t=e.match(_ce);if(!t)return NaN;const n=x1(t[1]),i=x1(t[2]),s=x1(t[3]);return Uce(n,i,s)?n*a5+i*hF+s*1e3:NaN}function x1(e){return e&&parseFloat(e.replace(",","."))||0}function Ice(e){if(e==="Z")return 0;const t=e.match(Tce);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return Fce(i,s)?n*(i*a5+s*hF):NaN}function Dce(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,a=(t-1)*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}const Mce=[31,null,31,30,31,30,31,31,30,31,30,31];function jF(e){return e%400===0||e%4===0&&e%100!==0}function Rce(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mce[t]||(jF(e)?29:28))}function $ce(e,t){return t>=1&&t<=(jF(e)?366:365)}function Lce(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Uce(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Fce(e,t){return t>=0&&t<=59}function y1(e,t){const n=lt(e),i=n.getFullYear(),s=n.getDate(),a=$r(e,0);a.setFullYear(i,t,15),a.setHours(0,0,0,0);const o=xce(a);return n.setMonth(t,Math.min(s,o)),n}function kE(e,t){const n=lt(e);return isNaN(+n)?$r(e,NaN):(n.setFullYear(t),n)}function Bce(e,t=[]){let n=[];function i(a,o){const l=j.createContext(o),c=n.length;n=[...n,o];function d(h){const{scope:m,children:f,...g}=h,p=(m==null?void 0:m[e][c])||l,v=j.useMemo(()=>g,Object.values(g));return r.jsx(p.Provider,{value:v,children:f})}function u(h,m){const f=(m==null?void 0:m[e][c])||l,g=j.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,u]}const s=()=>{const a=n.map(o=>j.createContext(o));return function(l){const c=(l==null?void 0:l[e])||a;return j.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[i,Wce(s,...t)]}function Wce(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:c,scopeName:d})=>{const h=c(a)[`__scope${d}`];return{...l,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var b1="rovingFocusGroup.onEntryFocus",zce={bubbles:!1,cancelable:!0},sw="RovingFocusGroup",[sS,NF,qce]=_b(sw),[Hce,SF]=Bce(sw,[qce]),[Vce,Gce]=Hce(sw),kF=j.forwardRef((e,t)=>r.jsx(sS.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(sS.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Yce,{...e,ref:t})})}));kF.displayName=sw;var Yce=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...h}=e,m=j.useRef(null),f=ut(t,m),g=Qb(a),[p=null,v]=Rs({prop:o,defaultProp:l,onChange:c}),[y,x]=j.useState(!1),b=si(d),w=NF(n),N=j.useRef(!1),[S,k]=j.useState(0);return j.useEffect(()=>{const _=m.current;if(_)return _.addEventListener(b1,b),()=>_.removeEventListener(b1,b)},[b]),r.jsx(Vce,{scope:n,orientation:i,dir:g,loop:s,currentTabStopId:p,onItemFocus:j.useCallback(_=>v(_),[v]),onItemShiftTab:j.useCallback(()=>x(!0),[]),onFocusableItemAdd:j.useCallback(()=>k(_=>_+1),[]),onFocusableItemRemove:j.useCallback(()=>k(_=>_-1),[]),children:r.jsx(ze.div,{tabIndex:y||S===0?-1:0,"data-orientation":i,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{N.current=!0}),onFocus:Ee(e.onFocus,_=>{const D=!N.current;if(_.target===_.currentTarget&&D&&!y){const A=new CustomEvent(b1,zce);if(_.currentTarget.dispatchEvent(A),!A.defaultPrevented){const E=w().filter(I=>I.focusable),T=E.find(I=>I.active),M=E.find(I=>I.id===p),P=[T,M,...E].filter(Boolean).map(I=>I.ref.current);TF(P,u)}}N.current=!1}),onBlur:Ee(e.onBlur,()=>x(!1))})})}),CF="RovingFocusGroupItem",_F=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:a,...o}=e,l=Is(),c=a||l,d=Gce(CF,n),u=d.currentTabStopId===c,h=NF(n),{onFocusableItemAdd:m,onFocusableItemRemove:f}=d;return j.useEffect(()=>{if(i)return m(),()=>f()},[i,m,f]),r.jsx(sS.ItemSlot,{scope:n,id:c,focusable:i,active:s,children:r.jsx(ze.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...o,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{i?d.onItemFocus(c):g.preventDefault()}),onFocus:Ee(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:Ee(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const p=Qce(g,d.orientation,d.dir);if(p!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=h().filter(x=>x.focusable).map(x=>x.ref.current);if(p==="last")y.reverse();else if(p==="prev"||p==="next"){p==="prev"&&y.reverse();const x=y.indexOf(g.currentTarget);y=d.loop?Jce(y,x+1):y.slice(x+1)}setTimeout(()=>TF(y))}})})})});_F.displayName=CF;var Kce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xce(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qce(e,t,n){const i=Xce(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return Kce[i]}function TF(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function Jce(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Zce=kF,ede=_F,d5="Tabs",[tde,jUe]=Ca(d5,[SF]),PF=SF(),[nde,u5]=tde(d5),EF=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,onValueChange:s,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=Qb(l),[h,m]=Rs({prop:i,onChange:s,defaultProp:a});return r.jsx(nde,{scope:n,baseId:Is(),value:h,onValueChange:m,orientation:o,dir:u,activationMode:c,children:r.jsx(ze.div,{dir:u,"data-orientation":o,...d,ref:t})})});EF.displayName=d5;var AF="TabsList",OF=j.forwardRef((e,t)=>{const{__scopeTabs:n,loop:i=!0,...s}=e,a=u5(AF,n),o=PF(n);return r.jsx(Zce,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:i,children:r.jsx(ze.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:t})})});OF.displayName=AF;var IF="TabsTrigger",DF=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,disabled:s=!1,...a}=e,o=u5(IF,n),l=PF(n),c=$F(o.baseId,i),d=LF(o.baseId,i),u=i===o.value;return r.jsx(ede,{asChild:!0,...l,focusable:!s,active:u,children:r.jsx(ze.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...a,ref:t,onMouseDown:Ee(e.onMouseDown,h=>{!s&&h.button===0&&h.ctrlKey===!1?o.onValueChange(i):h.preventDefault()}),onKeyDown:Ee(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(i)}),onFocus:Ee(e.onFocus,()=>{const h=o.activationMode!=="manual";!u&&!s&&h&&o.onValueChange(i)})})})});DF.displayName=IF;var MF="TabsContent",RF=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:i,forceMount:s,children:a,...o}=e,l=u5(MF,n),c=$F(l.baseId,i),d=LF(l.baseId,i),u=i===l.value,h=j.useRef(u);return j.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),r.jsx(zs,{present:s||u,children:({present:m})=>r.jsx(ze.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:m&&a})})});RF.displayName=MF;function $F(e,t){return`${e}-trigger-${t}`}function LF(e,t){return`${e}-content-${t}`}var rde=EF,UF=OF,FF=DF,BF=RF;const Ml=rde,xo=j.forwardRef(({className:e,...t},n)=>r.jsx(UF,{ref:n,className:je("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));xo.displayName=UF.displayName;const gt=j.forwardRef(({className:e,...t},n)=>r.jsx(FF,{ref:n,className:je("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));gt.displayName=FF.displayName;const vt=j.forwardRef(({className:e,...t},n)=>r.jsx(BF,{ref:n,className:je("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));vt.displayName=BF.displayName;const ide=()=>{const[e,t]=j.useState(Qr),n=()=>{const i={...e,useStaticData:!e.useStaticData};t(i),Object.assign(Qr,i),console.log("Blog API mode changed:",i.useStaticData?"Static":"Dynamic")};return r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Ct,{size:20}),"Blog Content Management"]})}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between p-4 bg-muted/50 rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[e.useStaticData?r.jsx(Ct,{size:20,className:"text-text-secondary"}):r.jsx(w_,{size:20,className:"text-green-600"}),r.jsxs("div",{children:[r.jsx("div",{className:"font-medium",children:"Content Source"}),r.jsx("div",{className:"text-sm text-text-secondary",children:e.useStaticData?"Static files in codebase":"Dynamic API/Database"})]})]}),r.jsx(Je,{variant:e.useStaticData?"secondary":"default",children:e.useStaticData?"Static Mode":"Dynamic Mode"})]}),r.jsx(V,{onClick:n,className:"w-full",variant:e.useStaticData?"default":"outline",children:e.useStaticData?"Switch to Dynamic Mode":"Switch to Static Mode"}),!e.useStaticData&&r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx(C_,{size:16,className:"text-blue-600"}),r.jsx("span",{className:"font-medium text-blue-800",children:"n8n Integration Endpoint"})]}),r.jsx("div",{className:"bg-white p-3 rounded border font-mono text-sm break-all",children:e.supabaseUrl?`${e.supabaseUrl}/rest/v1/blog_posts`:"Configure Supabase first"}),r.jsx("p",{className:"text-sm text-blue-700 mt-2",children:"Use this URL as your n8n webhook destination to automatically publish blog posts."})]}),r.jsxs("div",{className:"p-4 bg-yellow-50 border border-yellow-200 rounded-lg",children:[r.jsx("div",{className:"font-medium text-yellow-800 mb-2",children:"Required Headers"}),r.jsxs("div",{className:"space-y-2 text-sm",children:[r.jsx("div",{className:"bg-white p-2 rounded border font-mono",children:"Content-Type: application/json"}),r.jsx("div",{className:"bg-white p-2 rounded border font-mono",children:"apikey: [your-supabase-anon-key]"}),r.jsx("div",{className:"bg-white p-2 rounded border font-mono",children:"Authorization: Bearer [your-supabase-anon-key]"})]})]})]}),r.jsxs("div",{className:"text-sm text-text-secondary space-y-2",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"Static Mode:"})," Blog posts are loaded from static files. Changes require code updates."]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Dynamic Mode:"})," Blog posts are loaded from Supabase database. New content can be published via API without code changes."]})]})]})]})},sde=async()=>{_t.info("Attempting to fetch leads from Supabase");try{const{data:e,error:t}=await Q.from("leads").select("*").order("created_at",{ascending:!1});if(t)return _t.error("Failed to fetch leads from Supabase",{errorCode:t.code,errorMessage:t.message}),aS();const n=e.map(i=>({id:i.id,name:i.full_name,email:i.email,phone:i.phone||void 0,message:i.message||"",service:i.service_type||void 0,source:i.source,status:"new",createdAt:i.created_at,updatedAt:i.updated_at}));return _t.info("Successfully loaded leads from Supabase",{leadCount:n.length}),n}catch(e){return _t.error("Error fetching leads from Supabase",{errorMessage:e instanceof Error?e.message:"Unknown error"}),aS()}},aS=()=>(_t.info("Using mock lead data as fallback"),[{id:"1",name:"John Smith",email:"john.smith@email.com",phone:"(385) 275-8220",message:"Need help with surveillance investigation",service:"Domestic Investigations",source:"Contact Form",status:"new",createdAt:new Date(Date.now()-864e5).toISOString(),updatedAt:new Date(Date.now()-864e5).toISOString()},{id:"2",name:"Sarah Johnson",email:"sarah.j@company.com",phone:"(385) 503-2939",message:"Corporate fraud investigation needed",service:"Corporate Investigations",source:"GoHighLevel",status:"contacted",createdAt:new Date(Date.now()-1728e5).toISOString(),updatedAt:new Date(Date.now()-864e5).toISOString()}]),ade=async(e,t)=>{if(!e||e==="undefined"||e.trim()==="")throw _t.error("Invalid lead ID provided for status update",{providedId:e,newStatus:t}),new Error("Lead ID cannot be undefined or empty");_t.info("Updating lead status",{leadId:e,newStatus:t});const n=aS(),i=n.findIndex(s=>s.id===e);return i!==-1?(n[i]={...n[i],status:t,updatedAt:new Date().toISOString()},_t.info("Lead status updated successfully",{leadId:e,newStatus:t}),n[i]):(_t.warn("Lead not found for status update",{leadId:e}),null)},ode=()=>{const{data:e,isLoading:t,error:n}=ba({queryKey:["latest-lead"],queryFn:async()=>{const{data:i,error:s}=await Q.from("leads").select("*").order("created_at",{ascending:!1}).limit(1).single();if(s)throw console.error("Error fetching latest lead:",s),s;return i}});return t?r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Latest Lead"})}),r.jsx(H,{children:r.jsx("div",{className:"flex justify-center py-4",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-trident-purple"})})})]}):n?r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Latest Lead"})}),r.jsx(H,{children:r.jsxs("div",{className:"text-red-500 text-center py-4",children:["Error loading lead data: ",n.message]})})]}):e?r.jsxs(W,{className:"w-full max-w-4xl",children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:["Latest Lead Details",r.jsx(Je,{variant:"outline",className:"text-green-600",children:e.lead_status||"new"})]})}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-3",children:[r.jsx("h3",{className:"font-semibold text-lg",children:"Contact Information"}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"font-medium",children:"Name:"}),r.jsx("span",{children:e.full_name||`${e.first_name||""} ${e.last_name||""}`.trim()})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(xr,{size:16,className:"text-muted-foreground"}),r.jsx("a",{href:`mailto:${e.email}`,className:"text-trident-orange hover:underline",children:e.email})]}),e.phone&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(fn,{size:16,className:"text-muted-foreground"}),r.jsx("a",{href:`tel:${e.phone}`,className:"text-trident-orange hover:underline",children:e.phone})]})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h3",{className:"font-semibold text-lg",children:"Submission Details"}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Ln,{size:16,className:"text-muted-foreground"}),r.jsx("span",{children:new Date(e.created_at).toLocaleString()})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(xy,{size:16,className:"text-muted-foreground"}),r.jsx(Je,{variant:"secondary",children:e.service_type||"Not specified"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Pl,{size:16,className:"text-muted-foreground"}),r.jsx("span",{children:e.source||"Unknown source"})]})]})]})]}),e.message&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("h3",{className:"font-semibold text-lg flex items-center gap-2",children:[r.jsx(Bl,{size:20}),"Message"]}),r.jsx("div",{className:"bg-muted/50 rounded-lg p-4",children:r.jsx("p",{className:"text-sm",children:e.message})})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h3",{className:"font-semibold text-lg",children:"Tracking & Attribution"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 text-sm",children:[e.utm_source&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Source:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.utm_source)})]}),e.utm_medium&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Medium:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.utm_medium)})]}),e.utm_campaign&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"UTM Campaign:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.utm_campaign)})]}),e.referrer_url&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Referrer:"}),r.jsx("div",{className:"text-muted-foreground break-all",children:String(e.referrer_url)})]}),e.landing_page_url&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Landing Page:"}),r.jsx("div",{className:"text-muted-foreground break-all",children:String(e.landing_page_url)})]}),e.device_type&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Device Type:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.device_type)})]})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h3",{className:"font-semibold text-lg",children:"Technical Information"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Lead ID:"}),r.jsx("div",{className:"text-muted-foreground font-mono",children:String(e.id)})]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"IP Address:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.ip_address||"Not captured")})]}),e.browser&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Browser:"}),r.jsx("div",{className:"text-muted-foreground",children:String(e.browser)})]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Lead Score:"}),r.jsx("div",{className:"text-muted-foreground",children:String(Number(e.lead_score||0))})]})]})]}),(e.ghl_contact_id||e.ghl_opportunity_id||e.salesforce_id)&&r.jsxs("div",{className:"space-y-3",children:[r.jsx("h3",{className:"font-semibold text-lg",children:"External System IDs"}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.ghl_contact_id&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"GHL Contact ID:"}),r.jsx("div",{className:"text-muted-foreground font-mono",children:String(e.ghl_contact_id)})]}),e.ghl_opportunity_id&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"GHL Opportunity ID:"}),r.jsx("div",{className:"text-muted-foreground font-mono",children:String(e.ghl_opportunity_id)})]}),e.salesforce_id&&r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Salesforce ID:"}),r.jsx("div",{className:"text-muted-foreground font-mono",children:String(e.salesforce_id)})]})]})]})]})]}):r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Latest Lead"})}),r.jsx(H,{children:r.jsx("div",{className:"text-muted-foreground text-center py-4",children:"No leads found in the database"})})]})},lde=()=>{const e=m_(),{data:t=[],isLoading:n,error:i}=ba({queryKey:["leads"],queryFn:sde}),s=jY({mutationFn:({id:c,status:d})=>ade(c,d),onSuccess:()=>{e.invalidateQueries({queryKey:["leads"]})}}),a=c=>{switch(c){case"new":return"bg-blue-100 text-blue-700";case"contacted":return"bg-yellow-100 text-yellow-700";case"qualified":return"bg-purple-100 text-purple-700";case"converted":return"bg-green-100 text-green-700";case"closed":return"bg-muted text-foreground";default:return"bg-muted text-foreground"}},o=c=>{switch(c.toLowerCase()){case"contact form":return r.jsx(xr,{size:16});case"gohighlevel":return r.jsx(Ln,{size:16});case"referral":return r.jsx(Gi,{size:16});case"corporate":return r.jsx(Qn,{size:16});default:return r.jsx(xr,{size:16})}},l=(c,d)=>{s.mutate({id:c,status:d})};return n?r.jsxs("div",{className:"space-y-4",children:[r.jsx("h3",{className:"text-lg font-bold",children:"Leads Dashboard"}),r.jsx("div",{className:"flex justify-center py-8",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-trident-purple"})})]}):i?r.jsxs("div",{className:"space-y-4",children:[r.jsx("h3",{className:"text-lg font-bold",children:"Leads Dashboard"}),r.jsx("div",{className:"text-center py-8 text-red-500",children:"Error loading leads. Please try again later."})]}):(t.length,t.filter(c=>c.status==="new").length,t.filter(c=>c.status==="contacted").length,t.filter(c=>c.status==="converted").length,r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h3",{className:"text-lg font-bold",children:"Leads Dashboard"}),r.jsxs(Je,{variant:"outline",className:"text-trident-purple",children:[t.length," Total Leads"]})]}),r.jsxs(Ml,{defaultValue:"latest",className:"w-full",children:[r.jsxs(xo,{children:[r.jsx(gt,{value:"latest",children:"Latest Lead"}),r.jsx(gt,{value:"overview",children:"Overview"}),r.jsx(gt,{value:"all-leads",children:"All Leads"})]}),r.jsx(vt,{value:"latest",className:"mt-6",children:r.jsx(ode,{})}),r.jsx(vt,{value:"overview",className:"mt-6",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-4",children:[r.jsx("div",{className:"text-2xl font-bold text-blue-600",children:t.filter(c=>c.status==="new").length}),r.jsx("div",{className:"text-sm text-text-secondary",children:"New Leads"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4",children:[r.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:t.filter(c=>c.status==="contacted").length}),r.jsx("div",{className:"text-sm text-text-secondary",children:"Contacted"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4",children:[r.jsx("div",{className:"text-2xl font-bold text-green-600",children:t.filter(c=>c.status==="converted").length}),r.jsx("div",{className:"text-sm text-text-secondary",children:"Converted"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4",children:[r.jsxs("div",{className:"text-2xl font-bold text-purple-600",children:[t.length>0?Math.round(t.filter(c=>c.status==="converted").length/t.length*100):0,"%"]}),r.jsx("div",{className:"text-sm text-text-secondary",children:"Conversion Rate"})]})})]})}),r.jsx(vt,{value:"all-leads",className:"mt-6",children:r.jsx("div",{className:"space-y-4",children:t.length===0?r.jsx(W,{children:r.jsx(H,{className:"p-8 text-center",children:r.jsx("div",{className:"text-muted-foreground",children:"No leads found"})})}):t.map(c=>r.jsxs(W,{className:"hover:shadow-md transition-shadow",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(re,{className:"text-lg text-trident-dark",children:c.name}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center gap-1 text-sm text-text-secondary",children:[o(c.source),c.source]}),r.jsx(Je,{className:a(c.status),children:c.status.charAt(0).toUpperCase()+c.status.slice(1)})]})]})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx(xr,{size:16,className:"text-muted-foreground"}),r.jsx("a",{href:`mailto:${c.email}`,className:"text-trident-orange hover:underline",children:c.email})]}),c.phone&&r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx(fn,{size:16,className:"text-muted-foreground"}),r.jsx("a",{href:`tel:${c.phone}`,className:"text-trident-orange hover:underline",children:c.phone})]}),c.service&&r.jsxs("div",{className:"text-sm",children:[r.jsx("span",{className:"font-medium",children:"Service: "}),r.jsx("span",{className:"text-trident-purple",children:c.service})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"text-sm",children:[r.jsx("span",{className:"font-medium",children:"Created: "}),new Date(c.createdAt).toLocaleDateString()]}),r.jsxs("div",{className:"text-sm",children:[r.jsx("span",{className:"font-medium",children:"Updated: "}),new Date(c.updatedAt).toLocaleDateString()]})]})]}),r.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[r.jsx("div",{className:"text-sm font-medium mb-1",children:"Message:"}),r.jsx("div",{className:"text-sm text-foreground",children:c.message})]}),r.jsxs("div",{className:"flex items-center justify-between pt-2",children:[r.jsxs(un,{value:c.status,onValueChange:d=>l(c.id,d),children:[r.jsx(nn,{className:"w-40",children:r.jsx(hn,{})}),r.jsxs(rn,{children:[r.jsx(be,{value:"new",children:"New"}),r.jsx(be,{value:"contacted",children:"Contacted"}),r.jsx(be,{value:"qualified",children:"Qualified"}),r.jsx(be,{value:"converted",children:"Converted"}),r.jsx(be,{value:"closed",children:"Closed"})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(V,{variant:"outline",size:"sm",onClick:()=>window.open(`mailto:${c.email}`,"_blank"),children:"Email"}),c.phone&&r.jsx(V,{variant:"outline",size:"sm",onClick:()=>window.open(`tel:${c.phone}`,"_blank"),children:"Call"})]})]})]})]},c.id))})})]})]}))},cde=kg("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),vp=j.forwardRef(({className:e,variant:t,...n},i)=>r.jsx("div",{ref:i,role:"alert",className:je(cde({variant:t}),e),...n}));vp.displayName="Alert";const dde=j.forwardRef(({className:e,...t},n)=>r.jsx("h5",{ref:n,className:je("mb-1 font-medium leading-none tracking-tight",e),...t}));dde.displayName="AlertTitle";const xp=j.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:je("text-sm [&_p]:leading-relaxed",e),...t}));xp.displayName="AlertDescription";const ude=()=>{const[e,t]=j.useState(!1),[n,i]=j.useState(!1),[s,a]=j.useState([]),[o,l]=j.useState(()=>d()),{toast:c}=Lt();function d(){const v=Date.now(),y=["John","Jane","Alex","Sam","Jordan","Casey","Taylor","Morgan"],x=["Smith","Johnson","Brown","Davis","Wilson","Moore","Taylor","Anderson"],b=y[Math.floor(Math.random()*y.length)],w=x[Math.floor(Math.random()*x.length)];return{firstName:b,lastName:w,fullName:`${b} ${w}`,email:`test.${b.toLowerCase()}.${v}@example.com`,phone:`+1${Math.floor(Math.random()*9e9)+1e9}`}}const u=()=>{const v=d();l(v),c({title:"Test Identity Refreshed",description:`New identity: ${v.fullName}`,variant:"default"})},h=async()=>{t(!0);const v=Date.now();try{console.log("π§ Testing direct n8n webhook connection...");const y={lead:{full_name:o.fullName,email:o.email,phone:o.phone,service_type:"Test Service",message:"Direct n8n webhook test from admin panel"},contact:{firstName:o.firstName,lastName:o.lastName,email:o.email,phone:o.phone,serviceType:"Test Service"},tracking:{source:"Admin Test",utm_campaign:"direct-test",test_mode:!0},timestamp:new Date().toISOString()},{supabase:x}=await Si(async()=>{const{supabase:k}=await Promise.resolve().then(()=>Xj);return{supabase:k}},void 0),{data:b,error:w}=await x.functions.invoke("test-n8n-direct",{body:y}),N=Date.now()-v,S={success:!w,status:w?500:200,responseTime:N,timestamp:new Date().toISOString(),details:b||w,error:w==null?void 0:w.message};a(k=>[S,...k.slice(0,4)]),c({title:S.success?"β
N8N Test Successful":"β N8N Test Failed",description:S.success?`Direct webhook test completed in ${N}ms`:`Test failed: ${S.error}`,variant:S.success?"default":"destructive"})}catch(y){const x=Date.now()-v,b={success:!1,error:y instanceof Error?y.message:"Unknown error",responseTime:x,timestamp:new Date().toISOString()};a(w=>[b,...w.slice(0,4)]),c({title:"β N8N Test Error",description:`Connection failed: ${b.error}`,variant:"destructive"})}finally{t(!1)}},m=async()=>{t(!0);const v=Date.now();try{console.log("π§ Testing n8n webhook without authentication...");const y={lead:{full_name:o.fullName,email:o.email,phone:o.phone,service_type:"No Auth Test",message:"Testing without authentication headers"},skipAuth:!0},{supabase:x}=await Si(async()=>{const{supabase:k}=await Promise.resolve().then(()=>Xj);return{supabase:k}},void 0),{data:b,error:w}=await x.functions.invoke("test-n8n-direct",{body:y}),N=Date.now()-v,S={success:!w,status:w?500:200,responseTime:N,timestamp:new Date().toISOString(),details:b||w,error:w==null?void 0:w.message};a(k=>[S,...k.slice(0,4)]),c({title:S.success?"β
No-Auth Test Successful":"β No-Auth Test Failed",description:S.success?`No-auth test completed in ${N}ms`:`Test failed: ${S.error}`,variant:S.success?"default":"destructive"})}catch(y){const x=Date.now()-v,b={success:!1,error:y instanceof Error?y.message:"Unknown error",responseTime:x,timestamp:new Date().toISOString()};a(w=>[b,...w.slice(0,4)]),c({title:"β No-Auth Test Error",description:`Connection failed: ${b.error}`,variant:"destructive"})}finally{t(!1)}},f=async()=>{if(n){console.log("π« Flow test already running, preventing duplicate execution");return}i(!0);try{console.log("π Testing full lead flow through secure webhook...");const v=`admin-test-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,y={firstName:o.firstName,lastName:o.lastName,fullName:o.fullName,email:o.email,phone:o.phone,serviceType:"Full Flow Test",message:"End-to-end flow test from admin panel",optInStatus:"opted-in",source:"Admin Test Panel",timestamp:new Date().toISOString(),requestId:v,trackingData:{utm_campaign:"admin-flow-test",utm_source:"admin-panel",test_mode:!0,admin_initiated:!0,request_id:v}},{supabase:x}=await Si(async()=>{const{supabase:N}=await Promise.resolve().then(()=>Xj);return{supabase:N}},void 0),{data:b,error:w}=await x.functions.invoke("secure-webhook-handler",{body:y});if(w)throw new Error(w.message);b&&b.success?c({title:"Full Flow Test Successful",description:"Lead was processed and forwarded to n8n successfully",variant:"default"}):c({title:"Full Flow Test Failed",description:(b==null?void 0:b.error)||"Flow test failed",variant:"destructive"})}catch(v){c({title:"Flow Test Error",description:v instanceof Error?v.message:"Unknown error",variant:"destructive"})}finally{i(!1)}},g=v=>v.success?r.jsx(we,{className:"w-4 h-4 text-green-600"}):r.jsx(KR,{className:"w-4 h-4 text-red-600"}),p=v=>v.success?r.jsx(Je,{variant:"default",className:"bg-green-100 text-green-800",children:"Success"}):r.jsx(Je,{variant:"destructive",children:"Failed"});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(C_,{className:"w-5 h-5 text-blue-600"}),"N8N Integration Testing"]})}),r.jsxs(H,{className:"space-y-6",children:[r.jsxs(vp,{children:[r.jsx(Pn,{className:"h-4 w-4"}),r.jsx(xp,{children:"Test your n8n webhook integration and diagnose any connection issues. Make sure your n8n workflow is active before testing."})]}),r.jsxs(W,{className:"bg-slate-50 border-slate-200",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs(re,{className:"text-lg flex items-center gap-2",children:[r.jsx(Gi,{className:"w-4 h-4 text-purple-600"}),"Current Test Identity"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium text-slate-600",children:"Name:"}),r.jsx("p",{className:"text-slate-900",children:o.fullName})]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium text-slate-600",children:"Email:"}),r.jsx("p",{className:"text-slate-900 break-all",children:o.email})]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium text-slate-600",children:"Phone:"}),r.jsx("p",{className:"text-slate-900",children:o.phone})]})]}),r.jsxs(V,{onClick:u,variant:"outline",size:"sm",className:"w-full",children:[r.jsx(op,{className:"w-4 h-4 mr-2"}),"Refresh Test Identity"]}),r.jsx("p",{className:"text-xs text-slate-500",children:"Refresh to generate new contact details for testing unique leads"})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsxs(W,{className:"border-2",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs(re,{className:"text-lg flex items-center gap-2",children:[r.jsx(vy,{className:"w-4 h-4 text-blue-600"}),"Direct Webhook Test"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Test the n8n webhook URL directly to verify connectivity and authentication."}),r.jsx(V,{onClick:h,disabled:e,className:"w-full",variant:"outline",children:e?r.jsxs(r.Fragment,{children:[r.jsx(fu,{className:"w-4 h-4 mr-2 animate-spin"}),"Testing..."]}):r.jsxs(r.Fragment,{children:[r.jsx(vy,{className:"w-4 h-4 mr-2"}),"Test N8N Webhook"]})})]})]}),r.jsxs(W,{className:"border-2 border-orange-200",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs(re,{className:"text-lg flex items-center gap-2",children:[r.jsx(Pn,{className:"w-4 h-4 text-orange-600"}),"No-Auth Test"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Test webhook without authentication headers to isolate auth issues."}),r.jsx(V,{onClick:m,disabled:e,className:"w-full",variant:"outline",children:e?r.jsxs(r.Fragment,{children:[r.jsx(fu,{className:"w-4 h-4 mr-2 animate-spin"}),"Testing..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Pn,{className:"w-4 h-4 mr-2"}),"Test No Auth"]})})]})]}),r.jsxs(W,{className:"border-2",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs(re,{className:"text-lg flex items-center gap-2",children:[r.jsx(Ic,{className:"w-4 h-4 text-green-600"}),"Full Lead Flow Test"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Test the complete lead processing flow from form submission to n8n."}),r.jsx(V,{onClick:f,disabled:n,className:"w-full",children:n?r.jsxs(r.Fragment,{children:[r.jsx(fu,{className:"w-4 h-4 mr-2 animate-spin"}),"Testing Flow..."]}):r.jsxs(r.Fragment,{children:[r.jsx(Ic,{className:"w-4 h-4 mr-2"}),"Test Complete Flow"]})})]})]}),r.jsxs(W,{className:"border-2 border-purple-200",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs(re,{className:"text-lg flex items-center gap-2",children:[r.jsx(Ct,{className:"w-4 h-4 text-purple-600"}),"Intake Form Test"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Test intake form notification to n8n (requires N8N_INTAKE_WEBHOOK_URL)"}),r.jsxs(V,{onClick:()=>c({title:"Test intake notification",description:"This will be available once the intake form edge function is deployed"}),className:"w-full",variant:"outline",children:[r.jsx(Ct,{className:"w-4 h-4 mr-2"}),"Test Intake Notification"]})]})]})]})]})]}),s.length>0&&r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Ic,{className:"w-5 h-5 text-gray-600"}),"Recent Test Results"]})}),r.jsx(H,{children:r.jsx("div",{className:"space-y-3",children:s.map((v,y)=>r.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[g(v),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2",children:[p(v),v.status&&r.jsxs(Je,{variant:"outline",children:["HTTP ",v.status]}),v.responseTime&&r.jsxs(Je,{variant:"outline",children:[v.responseTime,"ms"]})]}),v.error&&r.jsx("p",{className:"text-sm text-red-600 mt-1",children:v.error}),v.details&&v.success&&r.jsxs("p",{className:"text-xs text-green-600 mt-1",children:["Response: ",JSON.stringify(v.details).substring(0,100),"..."]})]})]}),r.jsx("div",{className:"text-sm text-muted-foreground",children:new Date(v.timestamp).toLocaleTimeString()})]},y))})})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Tl,{className:"w-5 h-5 text-gray-600"}),"N8N Workflow Monitoring"]})}),r.jsxs(H,{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"To monitor your n8n workflow and verify test results:"}),r.jsxs("ul",{className:"text-sm space-y-2",children:[r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full mt-2"}),r.jsx("span",{children:"Check your n8n workflow execution history"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full mt-2"}),r.jsx("span",{children:"Verify webhook node is receiving data"})]}),r.jsxs("li",{className:"flex items-start gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full mt-2"}),r.jsx("span",{children:"Monitor any error outputs or failed executions"})]})]}),r.jsxs(vp,{children:[r.jsx(Pn,{className:"h-4 w-4"}),r.jsxs(xp,{children:[r.jsx("strong",{children:"Current webhook URL:"})," https://im24601.app.n8n.cloud/webhook/trident-leads-insert"]})]})]})]})]})},hde=()=>{const[e,t]=j.useState(!1),{toast:n}=Lt(),i=j.useCallback(async l=>{t(!0);try{const{data:{session:c}}=await Q.auth.getSession();if(!c)throw new Error("User not authenticated");const{data:d,error:u}=await Q.functions.invoke("secure-oauth-handler",{body:{action:"encrypt_store",...l},headers:{Authorization:`Bearer ${c.access_token}`}});if(u)throw u;const h=d;if(!h.success)throw new Error(h.error||"Failed to store token");return n({title:"Success",description:"OAuth token stored securely"}),h.token_id||null}catch(c){return console.error("Error storing encrypted token:",c),n({title:"Error",description:"Failed to store OAuth token securely",variant:"destructive"}),null}finally{t(!1)}},[n]),s=j.useCallback(async l=>{t(!0);try{const{data:{session:c}}=await Q.auth.getSession();if(!c)throw new Error("User not authenticated");const{data:d,error:u}=await Q.functions.invoke("secure-oauth-handler",{body:{action:"decrypt_retrieve",token_id:l},headers:{Authorization:`Bearer ${c.access_token}`}});if(u)throw u;const h=d;if(!h.success)throw new Error(h.error||"Failed to retrieve token");return{access_token:h.access_token,refresh_token:h.refresh_token,expires_at:h.expires_at,scope:h.scope}}catch(c){return console.error("Error retrieving decrypted token:",c),n({title:"Error",description:"Failed to retrieve OAuth token",variant:"destructive"}),null}finally{t(!1)}},[n]),a=j.useCallback(async(l,c)=>{t(!0);try{const{data:{session:d}}=await Q.auth.getSession();if(!d)throw new Error("User not authenticated");const{data:u,error:h}=await Q.functions.invoke("secure-oauth-handler",{body:{action:"revoke",token_id:l,revoke_reason:c},headers:{Authorization:`Bearer ${d.access_token}`}});if(h)throw h;const m=u;if(!m.success)throw new Error(m.error||"Failed to revoke token");return n({title:"Success",description:"OAuth token revoked successfully"}),!0}catch(d){return console.error("Error revoking token:",d),n({title:"Error",description:"Failed to revoke OAuth token",variant:"destructive"}),!1}finally{t(!1)}},[n]),o=j.useCallback(async()=>{t(!0);try{const{data:{session:l}}=await Q.auth.getSession();if(!l)throw new Error("User not authenticated");const{data:c,error:d}=await Q.functions.invoke("secure-oauth-handler",{body:{action:"cleanup"},headers:{Authorization:`Bearer ${l.access_token}`}});if(d)throw d;const u=c;if(!u.success)throw new Error(u.error||"Failed to cleanup tokens");return n({title:"Success",description:`Cleaned up ${u.cleaned_count||0} expired tokens`}),u.cleaned_count||0}catch(l){return console.error("Error cleaning up tokens:",l),n({title:"Error",description:"Failed to cleanup expired tokens",variant:"destructive"}),null}finally{t(!1)}},[n]);return{loading:e,storeEncryptedToken:i,retrieveDecryptedToken:s,revokeToken:a,cleanupExpiredTokens:o}},mde=()=>{const[e,t]=j.useState([]),[n,i]=j.useState([]),[s,a]=j.useState(!0),[o,l]=j.useState(!1),[c,d]=j.useState({total_tokens:0,active_tokens:0,revoked_tokens:0,expired_tokens:0,recent_access_count:0}),{toast:u}=Lt(),{cleanupExpiredTokens:h,loading:m}=hde(),f=async()=>{try{a(!0);const{data:b,error:w}=await Q.from("google_oauth_tokens").select(`
id,
user_id,
provider,
created_at,
expires_at,
last_accessed_at,
access_count,
is_revoked,
revoked_reason,
encryption_key_id
`).order("created_at",{ascending:!1});if(w)throw w;t(b||[]);const N=new Date,S=(b==null?void 0:b.filter(T=>!T.is_revoked&&(!T.expires_at||new Date(T.expires_at)>N)))||[],k=(b==null?void 0:b.filter(T=>T.expires_at&&new Date(T.expires_at)<=N))||[],_=(b==null?void 0:b.filter(T=>T.is_revoked))||[],D=(b==null?void 0:b.filter(T=>T.last_accessed_at&&new Date(T.last_accessed_at)>new Date(N.getTime()-24*60*60*1e3)))||[];d({total_tokens:(b==null?void 0:b.length)||0,active_tokens:S.length,revoked_tokens:_.length,expired_tokens:k.length,recent_access_count:D.length});const{data:A,error:E}=await Q.from("oauth_token_audit").select("*").order("created_at",{ascending:!1}).limit(100);E?console.error("Error fetching audit logs:",E):i(A||[])}catch(b){console.error("Error fetching token data:",b),u({title:"Error",description:"Failed to fetch OAuth token data",variant:"destructive"})}finally{a(!1)}},g=async()=>{await h()!==null&&await f()},p=async(b,w="admin_revocation")=>{try{const{error:N}=await Q.rpc("revoke_oauth_token",{token_id:b,reason:w});if(N)throw N;u({title:"Success",description:"Token revoked successfully"}),await f()}catch(N){console.error("Error revoking token:",N),u({title:"Error",description:"Failed to revoke token",variant:"destructive"})}},v=async()=>{try{l(!0);const{data:{session:b}}=await Q.auth.getSession();if(!b)throw new Error("User not authenticated");const{data:w,error:N}=await Q.functions.invoke("migrate-oauth-tokens",{headers:{Authorization:`Bearer ${b.access_token}`}});if(N)throw N;const S=w;if(!S.success)throw new Error(S.error||"Migration failed");u({title:"Migration Complete",description:`${S.migrated_count} tokens encrypted. ${S.error_count} errors.`}),await f()}catch(b){console.error("Error migrating tokens:",b),u({title:"Migration Error",description:"Failed to migrate legacy tokens",variant:"destructive"})}finally{l(!1)}};j.useEffect(()=>{f()},[]);const y=b=>new Date(b).toLocaleString(),x=b=>b.is_revoked?{status:"revoked",color:"destructive"}:b.expires_at&&new Date(b.expires_at)<=new Date?{status:"expired",color:"destructive"}:{status:"active",color:"default"};return s?r.jsx(W,{children:r.jsxs(H,{className:"p-8 text-center",children:[r.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-primary border-t-transparent rounded-full mx-auto mb-4"}),r.jsx("p",{children:"Loading OAuth security data..."})]})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs("h2",{className:"text-2xl font-bold flex items-center gap-2",children:[r.jsx(Be,{className:"h-6 w-6"}),"OAuth Token Security Monitor"]}),r.jsx("p",{className:"text-muted-foreground",children:"Monitor and manage OAuth token security across the system"})]}),r.jsx(V,{onClick:g,disabled:m,variant:"outline",className:"mr-2",children:m?"Cleaning...":"Cleanup Expired Tokens"}),r.jsx(V,{onClick:v,disabled:o,variant:"secondary",children:o?"Migrating...":"Encrypt Legacy Tokens"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx(MK,{className:"h-8 w-8 mx-auto mb-2 text-blue-500"}),r.jsx("div",{className:"text-2xl font-bold",children:c.total_tokens}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Tokens"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx(Be,{className:"h-8 w-8 mx-auto mb-2 text-green-500"}),r.jsx("div",{className:"text-2xl font-bold",children:c.active_tokens}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Active Tokens"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx(ri,{className:"h-8 w-8 mx-auto mb-2 text-red-500"}),r.jsx("div",{className:"text-2xl font-bold",children:c.revoked_tokens}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Revoked Tokens"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx(Sn,{className:"h-8 w-8 mx-auto mb-2 text-orange-500"}),r.jsx("div",{className:"text-2xl font-bold",children:c.expired_tokens}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Expired Tokens"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx(Ic,{className:"h-8 w-8 mx-auto mb-2 text-purple-500"}),r.jsx("div",{className:"text-2xl font-bold",children:c.recent_access_count}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"24h Access"})]})})]}),c.expired_tokens>0&&r.jsxs(vp,{children:[r.jsx(ri,{className:"h-4 w-4"}),r.jsxs(xp,{children:[c.expired_tokens," expired tokens detected. Consider running cleanup to revoke them automatically."]})]}),r.jsxs(Ml,{defaultValue:"tokens",className:"w-full",children:[r.jsxs(xo,{children:[r.jsx(gt,{value:"tokens",children:"Token Management"}),r.jsx(gt,{value:"audit",children:"Audit Logs"})]}),r.jsx(vt,{value:"tokens",className:"space-y-4",children:r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"OAuth Token Overview"}),r.jsx(wt,{children:"Manage OAuth tokens with encrypted storage and access tracking"})]}),r.jsx(H,{children:r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b",children:[r.jsx("th",{className:"text-left p-2",children:"User ID"}),r.jsx("th",{className:"text-left p-2",children:"Provider"}),r.jsx("th",{className:"text-left p-2",children:"Status"}),r.jsx("th",{className:"text-left p-2",children:"Created"}),r.jsx("th",{className:"text-left p-2",children:"Expires"}),r.jsx("th",{className:"text-left p-2",children:"Access Count"}),r.jsx("th",{className:"text-left p-2",children:"Last Access"}),r.jsx("th",{className:"text-left p-2",children:"Actions"})]})}),r.jsx("tbody",{children:e.map(b=>{const{status:w,color:N}=x(b);return r.jsxs("tr",{className:"border-b hover:bg-muted/50",children:[r.jsxs("td",{className:"p-2 font-mono text-xs",children:[b.user_id.slice(0,8),"..."]}),r.jsx("td",{className:"p-2",children:b.provider}),r.jsx("td",{className:"p-2",children:r.jsx(Je,{variant:N,children:w})}),r.jsx("td",{className:"p-2",children:y(b.created_at)}),r.jsx("td",{className:"p-2",children:b.expires_at?y(b.expires_at):"Never"}),r.jsx("td",{className:"p-2",children:b.access_count||0}),r.jsx("td",{className:"p-2",children:b.last_accessed_at?y(b.last_accessed_at):"Never"}),r.jsx("td",{className:"p-2",children:!b.is_revoked&&r.jsx(V,{size:"sm",variant:"destructive",onClick:()=>p(b.id),children:"Revoke"})})]},b.id)})})]})})})]})}),r.jsx(vt,{value:"audit",className:"space-y-4",children:r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Audit Trail"}),r.jsx(wt,{children:"Security audit log for OAuth token operations"})]}),r.jsx(H,{children:r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b",children:[r.jsx("th",{className:"text-left p-2",children:"Timestamp"}),r.jsx("th",{className:"text-left p-2",children:"User ID"}),r.jsx("th",{className:"text-left p-2",children:"Action"}),r.jsx("th",{className:"text-left p-2",children:"Provider"}),r.jsx("th",{className:"text-left p-2",children:"IP Address"}),r.jsx("th",{className:"text-left p-2",children:"Status"})]})}),r.jsx("tbody",{children:n.map(b=>r.jsxs("tr",{className:"border-b hover:bg-muted/50",children:[r.jsx("td",{className:"p-2",children:y(b.created_at)}),r.jsxs("td",{className:"p-2 font-mono text-xs",children:[b.user_id.slice(0,8),"..."]}),r.jsx("td",{className:"p-2",children:b.action}),r.jsx("td",{className:"p-2",children:b.token_provider}),r.jsx("td",{className:"p-2",children:b.ip_address||"N/A"}),r.jsx("td",{className:"p-2",children:r.jsx(Je,{variant:b.success?"default":"destructive",children:b.success?"Success":"Failed"})})]},b.id))})]})})})]})})]})]})};var fde=Array.isArray,ui=fde,pde=typeof vr=="object"&&vr&&vr.Object===Object&&vr,WF=pde,gde=WF,vde=typeof self=="object"&&self&&self.Object===Object&&self,xde=gde||vde||Function("return this")(),Ta=xde,yde=Ta,bde=yde.Symbol,Rg=bde,CE=Rg,zF=Object.prototype,wde=zF.hasOwnProperty,jde=zF.toString,Dm=CE?CE.toStringTag:void 0;function Nde(e){var t=wde.call(e,Dm),n=e[Dm];try{e[Dm]=void 0;var i=!0}catch{}var s=jde.call(e);return i&&(t?e[Dm]=n:delete e[Dm]),s}var Sde=Nde,kde=Object.prototype,Cde=kde.toString;function _de(e){return Cde.call(e)}var Tde=_de,_E=Rg,Pde=Sde,Ede=Tde,Ade="[object Null]",Ode="[object Undefined]",TE=_E?_E.toStringTag:void 0;function Ide(e){return e==null?e===void 0?Ode:Ade:TE&&TE in Object(e)?Pde(e):Ede(e)}var Co=Ide;function Dde(e){return e!=null&&typeof e=="object"}var _o=Dde,Mde=Co,Rde=_o,$de="[object Symbol]";function Lde(e){return typeof e=="symbol"||Rde(e)&&Mde(e)==$de}var Kh=Lde,Ude=ui,Fde=Kh,Bde=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wde=/^\w*$/;function zde(e,t){if(Ude(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Fde(e)?!0:Wde.test(e)||!Bde.test(e)||t!=null&&e in Object(t)}var h5=zde;function qde(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gl=qde;const Xh=jt(Gl);var Hde=Co,Vde=Gl,Gde="[object AsyncFunction]",Yde="[object Function]",Kde="[object GeneratorFunction]",Xde="[object Proxy]";function Qde(e){if(!Vde(e))return!1;var t=Hde(e);return t==Yde||t==Kde||t==Gde||t==Xde}var m5=Qde;const Ke=jt(m5);var Jde=Ta,Zde=Jde["__core-js_shared__"],eue=Zde,w1=eue,PE=function(){var e=/[^.]+$/.exec(w1&&w1.keys&&w1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tue(e){return!!PE&&PE in e}var nue=tue,rue=Function.prototype,iue=rue.toString;function sue(e){if(e!=null){try{return iue.call(e)}catch{}try{return e+""}catch{}}return""}var qF=sue,aue=m5,oue=nue,lue=Gl,cue=qF,due=/[\\^$.*+?()[\]{}|]/g,uue=/^\[object .+?Constructor\]$/,hue=Function.prototype,mue=Object.prototype,fue=hue.toString,pue=mue.hasOwnProperty,gue=RegExp("^"+fue.call(pue).replace(due,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vue(e){if(!lue(e)||oue(e))return!1;var t=aue(e)?gue:uue;return t.test(cue(e))}var xue=vue;function yue(e,t){return e==null?void 0:e[t]}var bue=yue,wue=xue,jue=bue;function Nue(e,t){var n=jue(e,t);return wue(n)?n:void 0}var vd=Nue,Sue=vd,kue=Sue(Object,"create"),aw=kue,EE=aw;function Cue(){this.__data__=EE?EE(null):{},this.size=0}var _ue=Cue;function Tue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pue=Tue,Eue=aw,Aue="__lodash_hash_undefined__",Oue=Object.prototype,Iue=Oue.hasOwnProperty;function Due(e){var t=this.__data__;if(Eue){var n=t[e];return n===Aue?void 0:n}return Iue.call(t,e)?t[e]:void 0}var Mue=Due,Rue=aw,$ue=Object.prototype,Lue=$ue.hasOwnProperty;function Uue(e){var t=this.__data__;return Rue?t[e]!==void 0:Lue.call(t,e)}var Fue=Uue,Bue=aw,Wue="__lodash_hash_undefined__";function zue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bue&&t===void 0?Wue:t,this}var que=zue,Hue=_ue,Vue=Pue,Gue=Mue,Yue=Fue,Kue=que;function Qh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Qh.prototype.clear=Hue;Qh.prototype.delete=Vue;Qh.prototype.get=Gue;Qh.prototype.has=Yue;Qh.prototype.set=Kue;var Xue=Qh;function Que(){this.__data__=[],this.size=0}var Jue=Que;function Zue(e,t){return e===t||e!==e&&t!==t}var f5=Zue,ehe=f5;function the(e,t){for(var n=e.length;n--;)if(ehe(e[n][0],t))return n;return-1}var ow=the,nhe=ow,rhe=Array.prototype,ihe=rhe.splice;function she(e){var t=this.__data__,n=nhe(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():ihe.call(t,n,1),--this.size,!0}var ahe=she,ohe=ow;function lhe(e){var t=this.__data__,n=ohe(t,e);return n<0?void 0:t[n][1]}var che=lhe,dhe=ow;function uhe(e){return dhe(this.__data__,e)>-1}var hhe=uhe,mhe=ow;function fhe(e,t){var n=this.__data__,i=mhe(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var phe=fhe,ghe=Jue,vhe=ahe,xhe=che,yhe=hhe,bhe=phe;function Jh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Jh.prototype.clear=ghe;Jh.prototype.delete=vhe;Jh.prototype.get=xhe;Jh.prototype.has=yhe;Jh.prototype.set=bhe;var lw=Jh,whe=vd,jhe=Ta,Nhe=whe(jhe,"Map"),p5=Nhe,AE=Xue,She=lw,khe=p5;function Che(){this.size=0,this.__data__={hash:new AE,map:new(khe||She),string:new AE}}var _he=Che;function The(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Phe=The,Ehe=Phe;function Ahe(e,t){var n=e.__data__;return Ehe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var cw=Ahe,Ohe=cw;function Ihe(e){var t=Ohe(this,e).delete(e);return this.size-=t?1:0,t}var Dhe=Ihe,Mhe=cw;function Rhe(e){return Mhe(this,e).get(e)}var $he=Rhe,Lhe=cw;function Uhe(e){return Lhe(this,e).has(e)}var Fhe=Uhe,Bhe=cw;function Whe(e,t){var n=Bhe(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var zhe=Whe,qhe=_he,Hhe=Dhe,Vhe=$he,Ghe=Fhe,Yhe=zhe;function Zh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Zh.prototype.clear=qhe;Zh.prototype.delete=Hhe;Zh.prototype.get=Vhe;Zh.prototype.has=Ghe;Zh.prototype.set=Yhe;var g5=Zh,HF=g5,Khe="Expected a function";function v5(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Khe);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var o=e.apply(this,i);return n.cache=a.set(s,o)||a,o};return n.cache=new(v5.Cache||HF),n}v5.Cache=HF;var VF=v5;const Xhe=jt(VF);var Qhe=VF,Jhe=500;function Zhe(e){var t=Qhe(e,function(i){return n.size===Jhe&&n.clear(),i}),n=t.cache;return t}var eme=Zhe,tme=eme,nme=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rme=/\\(\\)?/g,ime=tme(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(nme,function(n,i,s,a){t.push(s?a.replace(rme,"$1"):i||n)}),t}),sme=ime;function ame(e,t){for(var n=-1,i=e==null?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}var x5=ame,OE=Rg,ome=x5,lme=ui,cme=Kh,dme=1/0,IE=OE?OE.prototype:void 0,DE=IE?IE.toString:void 0;function GF(e){if(typeof e=="string")return e;if(lme(e))return ome(e,GF)+"";if(cme(e))return DE?DE.call(e):"";var t=e+"";return t=="0"&&1/e==-dme?"-0":t}var ume=GF,hme=ume;function mme(e){return e==null?"":hme(e)}var YF=mme,fme=ui,pme=h5,gme=sme,vme=YF;function xme(e,t){return fme(e)?e:pme(e,t)?[e]:gme(vme(e))}var KF=xme,yme=Kh,bme=1/0;function wme(e){if(typeof e=="string"||yme(e))return e;var t=e+"";return t=="0"&&1/e==-bme?"-0":t}var dw=wme,jme=KF,Nme=dw;function Sme(e,t){t=jme(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Nme(t[n++])];return n&&n==i?e:void 0}var y5=Sme,kme=y5;function Cme(e,t,n){var i=e==null?void 0:kme(e,t);return i===void 0?n:i}var XF=Cme;const Ci=jt(XF);function _me(e){return e==null}var Tme=_me;const tt=jt(Tme);var Pme=Co,Eme=ui,Ame=_o,Ome="[object String]";function Ime(e){return typeof e=="string"||!Eme(e)&&Ame(e)&&Pme(e)==Ome}var Dme=Ime;const $g=jt(Dme);var QF={exports:{}},Ot={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var b5=Symbol.for("react.element"),w5=Symbol.for("react.portal"),uw=Symbol.for("react.fragment"),hw=Symbol.for("react.strict_mode"),mw=Symbol.for("react.profiler"),fw=Symbol.for("react.provider"),pw=Symbol.for("react.context"),Mme=Symbol.for("react.server_context"),gw=Symbol.for("react.forward_ref"),vw=Symbol.for("react.suspense"),xw=Symbol.for("react.suspense_list"),yw=Symbol.for("react.memo"),bw=Symbol.for("react.lazy"),Rme=Symbol.for("react.offscreen"),JF;JF=Symbol.for("react.module.reference");function rs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case b5:switch(e=e.type,e){case uw:case mw:case hw:case vw:case xw:return e;default:switch(e=e&&e.$$typeof,e){case Mme:case pw:case gw:case bw:case yw:case fw:return e;default:return t}}case w5:return t}}}Ot.ContextConsumer=pw;Ot.ContextProvider=fw;Ot.Element=b5;Ot.ForwardRef=gw;Ot.Fragment=uw;Ot.Lazy=bw;Ot.Memo=yw;Ot.Portal=w5;Ot.Profiler=mw;Ot.StrictMode=hw;Ot.Suspense=vw;Ot.SuspenseList=xw;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return rs(e)===pw};Ot.isContextProvider=function(e){return rs(e)===fw};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===b5};Ot.isForwardRef=function(e){return rs(e)===gw};Ot.isFragment=function(e){return rs(e)===uw};Ot.isLazy=function(e){return rs(e)===bw};Ot.isMemo=function(e){return rs(e)===yw};Ot.isPortal=function(e){return rs(e)===w5};Ot.isProfiler=function(e){return rs(e)===mw};Ot.isStrictMode=function(e){return rs(e)===hw};Ot.isSuspense=function(e){return rs(e)===vw};Ot.isSuspenseList=function(e){return rs(e)===xw};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===uw||e===mw||e===hw||e===vw||e===xw||e===Rme||typeof e=="object"&&e!==null&&(e.$$typeof===bw||e.$$typeof===yw||e.$$typeof===fw||e.$$typeof===pw||e.$$typeof===gw||e.$$typeof===JF||e.getModuleId!==void 0)};Ot.typeOf=rs;QF.exports=Ot;var ZF=QF.exports,$me=Co,Lme=_o,Ume="[object Number]";function Fme(e){return typeof e=="number"||Lme(e)&&$me(e)==Ume}var e7=Fme;const Bme=jt(e7);var Wme=e7;function zme(e){return Wme(e)&&e!=+e}var qme=zme;const Lg=jt(qme);var Ar=function(t){return t===0?0:t>0?1:-1},xc=function(t){return $g(t)&&t.indexOf("%")===t.length-1},ge=function(t){return Bme(t)&&!Lg(t)},Bn=function(t){return ge(t)||$g(t)},Hme=0,em=function(t){var n=++Hme;return"".concat(t||"").concat(n)},Or=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&!$g(t))return i;var a;if(xc(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Lg(a)&&(a=i),s&&a>n&&(a=n),a},Yo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Vme=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,i={},s=0;s<n;s++)if(!i[t[s]])i[t[s]]=!0;else return!0;return!1},xi=function(t,n){return ge(t)&&ge(n)?function(i){return t+i*(n-t)}:function(){return n}};function Oy(e,t,n){return!e||!e.length?null:e.find(function(i){return i&&(typeof t=="function"?t(i):Ci(i,t))===n})}function bu(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var i in t)if({}.hasOwnProperty.call(t,i)&&!{}.hasOwnProperty.call(e,i))return!1;return!0}function oS(e){"@babel/helpers - typeof";return oS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oS(e)}var Gme=["viewBox","children"],Yme=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ME=["points","pathLength"],j1={svg:Gme,polygon:ME,polyline:ME},j5=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Iy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!Xh(i))return null;var s={};return Object.keys(i).forEach(function(a){j5.includes(a)&&(s[a]=n||function(o){return i[a](i,o)})}),s},Kme=function(t,n,i){return function(s){return t(n,i,s),null}},Kc=function(t,n,i){if(!Xh(t)||oS(t)!=="object")return null;var s=null;return Object.keys(t).forEach(function(a){var o=t[a];j5.includes(a)&&typeof o=="function"&&(s||(s={}),s[a]=Kme(o,n,i))}),s},Xme=["children"],Qme=["children"];function RE(e,t){if(e==null)return{};var n=Jme(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Jme(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function lS(e){"@babel/helpers - typeof";return lS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lS(e)}var $E={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ao=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},LE=null,N1=null,N5=function e(t){if(t===LE&&Array.isArray(N1))return N1;var n=[];return j.Children.forEach(t,function(i){tt(i)||(ZF.isFragment(i)?n=n.concat(e(i.props.children)):n.push(i))}),N1=n,LE=t,n};function _i(e,t){var n=[],i=[];return Array.isArray(t)?i=t.map(function(s){return ao(s)}):i=[ao(t)],N5(e).forEach(function(s){var a=Ci(s,"type.displayName")||Ci(s,"type.name");i.indexOf(a)!==-1&&n.push(s)}),n}function pi(e,t){var n=_i(e,t);return n&&n[0]}var UE=function(t){if(!t||!t.props)return!1;var n=t.props,i=n.width,s=n.height;return!(!ge(i)||i<=0||!ge(s)||s<=0)},Zme=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],efe=function(t){return t&&t.type&&$g(t.type)&&Zme.indexOf(t.type)>=0},tfe=function(t){return t&&lS(t)==="object"&&"clipDot"in t},nfe=function(t,n,i,s){var a,o=(a=j1==null?void 0:j1[s])!==null&&a!==void 0?a:[];return!Ke(t)&&(s&&o.includes(n)||Yme.includes(n))||i&&j5.includes(n)},We=function(t,n,i){if(!t||typeof t=="function"||typeof t=="boolean")return null;var s=t;if(j.isValidElement(t)&&(s=t.props),!Xh(s))return null;var a={};return Object.keys(s).forEach(function(o){var l;nfe((l=s)===null||l===void 0?void 0:l[o],o,n,i)&&(a[o]=s[o])}),a},cS=function e(t,n){if(t===n)return!0;var i=j.Children.count(t);if(i!==j.Children.count(n))return!1;if(i===0)return!0;if(i===1)return FE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var s=0;s<i;s++){var a=t[s],o=n[s];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!FE(a,o))return!1}return!0},FE=function(t,n){if(tt(t)&&tt(n))return!0;if(!tt(t)&&!tt(n)){var i=t.props||{},s=i.children,a=RE(i,Xme),o=n.props||{},l=o.children,c=RE(o,Qme);return s&&l?bu(a,c)&&cS(s,l):!s&&!l?bu(a,c):!1}return!1},BE=function(t,n){var i=[],s={};return N5(t).forEach(function(a,o){if(efe(a))i.push(a);else if(a){var l=ao(a.type),c=n[l]||{},d=c.handler,u=c.once;if(d&&(!u||!s[l])){var h=d(a,l,o);i.push(h),s[l]=!0}}}),i},rfe=function(t){var n=t&&t.type;return n&&$E[n]?$E[n]:null},ife=function(t,n){return N5(n).indexOf(t)},sfe=["children","width","height","viewBox","className","style","title","desc"];function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dS.apply(this,arguments)}function afe(e,t){if(e==null)return{};var n=ofe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function ofe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function uS(e){var t=e.children,n=e.width,i=e.height,s=e.viewBox,a=e.className,o=e.style,l=e.title,c=e.desc,d=afe(e,sfe),u=s||{width:n,height:i,x:0,y:0},h=rt("recharts-surface",a);return L.createElement("svg",dS({},We(d,!0,"svg"),{className:h,width:n,height:i,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),L.createElement("title",null,l),L.createElement("desc",null,c),t)}var lfe=["children","className"];function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hS.apply(this,arguments)}function cfe(e,t){if(e==null)return{};var n=dfe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function dfe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var Nt=L.forwardRef(function(e,t){var n=e.children,i=e.className,s=cfe(e,lfe),a=rt("recharts-layer",i);return L.createElement("g",hS({className:a},We(s,!0),{ref:t}),n)}),Ds=function(t,n){for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a]};function ufe(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++i<s;)a[i]=e[i+t];return a}var hfe=ufe,mfe=hfe;function ffe(e,t,n){var i=e.length;return n=n===void 0?i:n,!t&&n>=i?e:mfe(e,t,n)}var pfe=ffe,gfe="\\ud800-\\udfff",vfe="\\u0300-\\u036f",xfe="\\ufe20-\\ufe2f",yfe="\\u20d0-\\u20ff",bfe=vfe+xfe+yfe,wfe="\\ufe0e\\ufe0f",jfe="\\u200d",Nfe=RegExp("["+jfe+gfe+bfe+wfe+"]");function Sfe(e){return Nfe.test(e)}var t7=Sfe;function kfe(e){return e.split("")}var Cfe=kfe,n7="\\ud800-\\udfff",_fe="\\u0300-\\u036f",Tfe="\\ufe20-\\ufe2f",Pfe="\\u20d0-\\u20ff",Efe=_fe+Tfe+Pfe,Afe="\\ufe0e\\ufe0f",Ofe="["+n7+"]",mS="["+Efe+"]",fS="\\ud83c[\\udffb-\\udfff]",Ife="(?:"+mS+"|"+fS+")",r7="[^"+n7+"]",i7="(?:\\ud83c[\\udde6-\\uddff]){2}",s7="[\\ud800-\\udbff][\\udc00-\\udfff]",Dfe="\\u200d",a7=Ife+"?",o7="["+Afe+"]?",Mfe="(?:"+Dfe+"(?:"+[r7,i7,s7].join("|")+")"+o7+a7+")*",Rfe=o7+a7+Mfe,$fe="(?:"+[r7+mS+"?",mS,i7,s7,Ofe].join("|")+")",Lfe=RegExp(fS+"(?="+fS+")|"+$fe+Rfe,"g");function Ufe(e){return e.match(Lfe)||[]}var Ffe=Ufe,Bfe=Cfe,Wfe=t7,zfe=Ffe;function qfe(e){return Wfe(e)?zfe(e):Bfe(e)}var Hfe=qfe,Vfe=pfe,Gfe=t7,Yfe=Hfe,Kfe=YF;function Xfe(e){return function(t){t=Kfe(t);var n=Gfe(t)?Yfe(t):void 0,i=n?n[0]:t.charAt(0),s=n?Vfe(n,1).join(""):t.slice(1);return i[e]()+s}}var Qfe=Xfe,Jfe=Qfe,Zfe=Jfe("toUpperCase"),epe=Zfe;const ww=jt(epe);function Bt(e){return function(){return e}}const l7=Math.cos,Dy=Math.sin,qs=Math.sqrt,My=Math.PI,jw=2*My,pS=Math.PI,gS=2*pS,lc=1e-6,tpe=gS-lc;function c7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function npe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return c7;const n=10**t;return function(i){this._+=i[0];for(let s=1,a=i.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+i[s]}}class rpe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?c7:npe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,s){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,n,i,s,a,o){this._append`C${+t},${+n},${+i},${+s},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,i,s,a){if(t=+t,n=+n,i=+i,s=+s,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,c=i-t,d=s-n,u=o-t,h=l-n,m=u*u+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>lc)if(!(Math.abs(h*c-d*u)>lc)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let f=i-o,g=s-l,p=c*c+d*d,v=f*f+g*g,y=Math.sqrt(p),x=Math.sqrt(m),b=a*Math.tan((pS-Math.acos((p+m-v)/(2*y*x)))/2),w=b/x,N=b/y;Math.abs(w-1)>lc&&this._append`L${t+w*u},${n+w*h}`,this._append`A${a},${a},0,0,${+(h*f>u*g)},${this._x1=t+N*c},${this._y1=n+N*d}`}}arc(t,n,i,s,a,o){if(t=+t,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(s),c=i*Math.sin(s),d=t+l,u=n+c,h=1^o,m=o?s-a:a-s;this._x1===null?this._append`M${d},${u}`:(Math.abs(this._x1-d)>lc||Math.abs(this._y1-u)>lc)&&this._append`L${d},${u}`,i&&(m<0&&(m=m%gS+gS),m>tpe?this._append`A${i},${i},0,1,${h},${t-l},${n-c}A${i},${i},0,1,${h},${this._x1=d},${this._y1=u}`:m>lc&&this._append`A${i},${i},0,${+(m>=pS)},${h},${this._x1=t+i*Math.cos(a)},${this._y1=n+i*Math.sin(a)}`)}rect(t,n,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function S5(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new rpe(t)}function k5(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function d7(e){this._context=e}d7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nw(e){return new d7(e)}function u7(e){return e[0]}function h7(e){return e[1]}function m7(e,t){var n=Bt(!0),i=null,s=Nw,a=null,o=S5(l);e=typeof e=="function"?e:e===void 0?u7:Bt(e),t=typeof t=="function"?t:t===void 0?h7:Bt(t);function l(c){var d,u=(c=k5(c)).length,h,m=!1,f;for(i==null&&(a=s(f=o())),d=0;d<=u;++d)!(d<u&&n(h=c[d],d,c))===m&&((m=!m)?a.lineStart():a.lineEnd()),m&&a.point(+e(h,d,c),+t(h,d,c));if(f)return a=null,f+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Bt(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Bt(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Bt(!!c),l):n},l.curve=function(c){return arguments.length?(s=c,i!=null&&(a=s(i)),l):s},l.context=function(c){return arguments.length?(c==null?i=a=null:a=s(i=c),l):i},l}function Hv(e,t,n){var i=null,s=Bt(!0),a=null,o=Nw,l=null,c=S5(d);e=typeof e=="function"?e:e===void 0?u7:Bt(+e),t=typeof t=="function"?t:Bt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?h7:Bt(+n);function d(h){var m,f,g,p=(h=k5(h)).length,v,y=!1,x,b=new Array(p),w=new Array(p);for(a==null&&(l=o(x=c())),m=0;m<=p;++m){if(!(m<p&&s(v=h[m],m,h))===y)if(y=!y)f=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=m-1;g>=f;--g)l.point(b[g],w[g]);l.lineEnd(),l.areaEnd()}y&&(b[m]=+e(v,m,h),w[m]=+t(v,m,h),l.point(i?+i(v,m,h):b[m],n?+n(v,m,h):w[m]))}if(x)return l=null,x+""||null}function u(){return m7().defined(s).curve(o).context(a)}return d.x=function(h){return arguments.length?(e=typeof h=="function"?h:Bt(+h),i=null,d):e},d.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Bt(+h),d):e},d.x1=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:Bt(+h),d):i},d.y=function(h){return arguments.length?(t=typeof h=="function"?h:Bt(+h),n=null,d):t},d.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Bt(+h),d):t},d.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Bt(+h),d):n},d.lineX0=d.lineY0=function(){return u().x(e).y(t)},d.lineY1=function(){return u().x(e).y(n)},d.lineX1=function(){return u().x(i).y(t)},d.defined=function(h){return arguments.length?(s=typeof h=="function"?h:Bt(!!h),d):s},d.curve=function(h){return arguments.length?(o=h,a!=null&&(l=o(a)),d):o},d.context=function(h){return arguments.length?(h==null?a=l=null:l=o(a=h),d):a},d}class f7{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function ipe(e){return new f7(e,!0)}function spe(e){return new f7(e,!1)}const C5={draw(e,t){const n=qs(t/My);e.moveTo(n,0),e.arc(0,0,n,0,jw)}},ape={draw(e,t){const n=qs(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},p7=qs(1/3),ope=p7*2,lpe={draw(e,t){const n=qs(t/ope),i=n*p7;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},cpe={draw(e,t){const n=qs(t),i=-n/2;e.rect(i,i,n,n)}},dpe=.8908130915292852,g7=Dy(My/10)/Dy(7*My/10),upe=Dy(jw/10)*g7,hpe=-l7(jw/10)*g7,mpe={draw(e,t){const n=qs(t*dpe),i=upe*n,s=hpe*n;e.moveTo(0,-n),e.lineTo(i,s);for(let a=1;a<5;++a){const o=jw*a/5,l=l7(o),c=Dy(o);e.lineTo(c*n,-l*n),e.lineTo(l*i-c*s,c*i+l*s)}e.closePath()}},S1=qs(3),fpe={draw(e,t){const n=-qs(t/(S1*3));e.moveTo(0,n*2),e.lineTo(-S1*n,-n),e.lineTo(S1*n,-n),e.closePath()}},Di=-.5,Mi=qs(3)/2,vS=1/qs(12),ppe=(vS/2+1)*3,gpe={draw(e,t){const n=qs(t/ppe),i=n/2,s=n*vS,a=i,o=n*vS+n,l=-a,c=o;e.moveTo(i,s),e.lineTo(a,o),e.lineTo(l,c),e.lineTo(Di*i-Mi*s,Mi*i+Di*s),e.lineTo(Di*a-Mi*o,Mi*a+Di*o),e.lineTo(Di*l-Mi*c,Mi*l+Di*c),e.lineTo(Di*i+Mi*s,Di*s-Mi*i),e.lineTo(Di*a+Mi*o,Di*o-Mi*a),e.lineTo(Di*l+Mi*c,Di*c-Mi*l),e.closePath()}};function vpe(e,t){let n=null,i=S5(s);e=typeof e=="function"?e:Bt(e||C5),t=typeof t=="function"?t:Bt(t===void 0?64:+t);function s(){let a;if(n||(n=a=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return s.type=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(a),s):e},s.size=function(a){return arguments.length?(t=typeof a=="function"?a:Bt(+a),s):t},s.context=function(a){return arguments.length?(n=a??null,s):n},s}function Ry(){}function $y(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function v7(e){this._context=e}v7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$y(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$y(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xpe(e){return new v7(e)}function x7(e){this._context=e}x7.prototype={areaStart:Ry,areaEnd:Ry,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$y(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ype(e){return new x7(e)}function y7(e){this._context=e}y7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:$y(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bpe(e){return new y7(e)}function b7(e){this._context=e}b7.prototype={areaStart:Ry,areaEnd:Ry,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wpe(e){return new b7(e)}function WE(e){return e<0?-1:1}function zE(e,t,n){var i=e._x1-e._x0,s=t-e._x1,a=(e._y1-e._y0)/(i||s<0&&-0),o=(n-e._y1)/(s||i<0&&-0),l=(a*s+o*i)/(i+s);return(WE(a)+WE(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function qE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function k1(e,t,n){var i=e._x0,s=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,s+l*t,a-l,o-l*n,a,o)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:k1(this,this._t0,qE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,k1(this,qE(this,n=zE(this,e,t)),n);break;default:k1(this,this._t0,n=zE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function w7(e){this._context=new j7(e)}(w7.prototype=Object.create(Ly.prototype)).point=function(e,t){Ly.prototype.point.call(this,t,e)};function j7(e){this._context=e}j7.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,s,a){this._context.bezierCurveTo(t,e,i,n,a,s)}};function jpe(e){return new Ly(e)}function Npe(e){return new w7(e)}function N7(e){this._context=e}N7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=HE(e),s=HE(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(i[0][a],s[0][a],i[1][a],s[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function HE(e){var t,n=e.length-1,i,s=new Array(n),a=new Array(n),o=new Array(n);for(s[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)s[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(s[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=s[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(s[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)s[t]=(o[t]-s[t+1])/a[t];for(a[n-1]=(e[n]+s[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-s[t+1];return[s,a]}function Spe(e){return new N7(e)}function Sw(e,t){this._context=e,this._t=t}Sw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function kpe(e){return new Sw(e,.5)}function Cpe(e){return new Sw(e,0)}function _pe(e){return new Sw(e,1)}function Zu(e,t){if((o=e.length)>1)for(var n=1,i,s,a=e[t[0]],o,l=a.length;n<o;++n)for(s=a,a=e[t[n]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(s[i][1])?s[i][0]:s[i][1]}function xS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Tpe(e,t){return e[t]}function Ppe(e){const t=[];return t.key=e,t}function Epe(){var e=Bt([]),t=xS,n=Zu,i=Tpe;function s(a){var o=Array.from(e.apply(this,arguments),Ppe),l,c=o.length,d=-1,u;for(const h of a)for(l=0,++d;l<c;++l)(o[l][d]=[0,+i(h,o[l].key,d,a)]).data=h;for(l=0,u=k5(t(o));l<c;++l)o[u[l]].index=l;return n(o,u),o}return s.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(Array.from(a)),s):e},s.value=function(a){return arguments.length?(i=typeof a=="function"?a:Bt(+a),s):i},s.order=function(a){return arguments.length?(t=a==null?xS:typeof a=="function"?a:Bt(Array.from(a)),s):t},s.offset=function(a){return arguments.length?(n=a??Zu,s):n},s}function Ape(e,t){if((i=e.length)>0){for(var n,i,s=0,a=e[0].length,o;s<a;++s){for(o=n=0;n<i;++n)o+=e[n][s][1]||0;if(o)for(n=0;n<i;++n)e[n][s][1]/=o}Zu(e,t)}}function Ope(e,t){if((s=e.length)>0){for(var n=0,i=e[t[0]],s,a=i.length;n<a;++n){for(var o=0,l=0;o<s;++o)l+=e[o][n][1]||0;i[n][1]+=i[n][0]=-l/2}Zu(e,t)}}function Ipe(e,t){if(!(!((o=e.length)>0)||!((a=(s=e[t[0]]).length)>0))){for(var n=0,i=1,s,a,o;i<a;++i){for(var l=0,c=0,d=0;l<o;++l){for(var u=e[t[l]],h=u[i][1]||0,m=u[i-1][1]||0,f=(h-m)/2,g=0;g<l;++g){var p=e[t[g]],v=p[i][1]||0,y=p[i-1][1]||0;f+=v-y}c+=h,d+=f*h}s[i-1][1]+=s[i-1][0]=n,c&&(n-=d/c)}s[i-1][1]+=s[i-1][0]=n,Zu(e,t)}}function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}var Dpe=["type","size","sizeType"];function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yS.apply(this,arguments)}function VE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function GE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VE(Object(n),!0).forEach(function(i){Mpe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VE(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Mpe(e,t,n){return t=Rpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rpe(e){var t=$pe(e,"string");return yp(t)=="symbol"?t:t+""}function $pe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(yp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lpe(e,t){if(e==null)return{};var n=Upe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Upe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var S7={symbolCircle:C5,symbolCross:ape,symbolDiamond:lpe,symbolSquare:cpe,symbolStar:mpe,symbolTriangle:fpe,symbolWye:gpe},Fpe=Math.PI/180,Bpe=function(t){var n="symbol".concat(ww(t));return S7[n]||C5},Wpe=function(t,n,i){if(n==="area")return t;switch(i){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var s=18*Fpe;return 1.25*t*t*(Math.tan(s)-Math.tan(s*2)*Math.pow(Math.tan(s),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},zpe=function(t,n){S7["symbol".concat(ww(t))]=n},_5=function(t){var n=t.type,i=n===void 0?"circle":n,s=t.size,a=s===void 0?64:s,o=t.sizeType,l=o===void 0?"area":o,c=Lpe(t,Dpe),d=GE(GE({},c),{},{type:i,size:a,sizeType:l}),u=function(){var v=Bpe(i),y=vpe().type(v).size(Wpe(a,l,i));return y()},h=d.className,m=d.cx,f=d.cy,g=We(d,!0);return m===+m&&f===+f&&a===+a?L.createElement("path",yS({},g,{className:rt("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(f,")"),d:u()})):null};_5.registerSymbol=zpe;function eh(e){"@babel/helpers - typeof";return eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(e)}function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bS.apply(this,arguments)}function YE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function qpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(n),!0).forEach(function(i){bp(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YE(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vpe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C7(i.key),i)}}function Gpe(e,t,n){return t&&Vpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ype(e,t,n){return t=Uy(t),Kpe(e,k7()?Reflect.construct(t,n||[],Uy(e).constructor):t.apply(e,n))}function Kpe(e,t){if(t&&(eh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xpe(e)}function Xpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k7=function(){return!!e})()}function Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uy(e)}function Qpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},wS(e,t)}function bp(e,t,n){return t=C7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C7(e){var t=Jpe(e,"string");return eh(t)=="symbol"?t:t+""}function Jpe(e,t){if(eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(eh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ri=32,T5=function(e){function t(){return Hpe(this,t),Ype(this,t,arguments)}return Qpe(t,e),Gpe(t,[{key:"renderIcon",value:function(i){var s=this.props.inactiveColor,a=Ri/2,o=Ri/6,l=Ri/3,c=i.inactive?s:i.color;if(i.type==="plainline")return L.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:a,x2:Ri,y2:a,className:"recharts-legend-icon"});if(i.type==="line")return L.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(l,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
H`).concat(Ri,"M").concat(2*l,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(i.type==="rect")return L.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ri/8,"h").concat(Ri,"v").concat(Ri*3/4,"h").concat(-Ri,"z"),className:"recharts-legend-icon"});if(L.isValidElement(i.legendIcon)){var d=qpe({},i);return delete d.legendIcon,L.cloneElement(i.legendIcon,d)}return L.createElement(_5,{fill:c,cx:a,cy:a,size:Ri,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,s=this.props,a=s.payload,o=s.iconSize,l=s.layout,c=s.formatter,d=s.inactiveColor,u={x:0,y:0,width:Ri,height:Ri},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(f,g){var p=f.formatter||c,v=rt(bp(bp({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",f.inactive));if(f.type==="none")return null;var y=Ke(f.value)?null:f.value;Ds(!Ke(f.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=f.inactive?d:f.color;return L.createElement("li",bS({className:v,style:h,key:"legend-item-".concat(g)},Kc(i.props,f,g)),L.createElement(uS,{width:o,height:o,viewBox:u,style:m},i.renderIcon(f)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},p?p(y,f,g):y))})}},{key:"render",value:function(){var i=this.props,s=i.payload,a=i.layout,o=i.align;if(!s||!s.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return L.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);bp(T5,"displayName","Legend");bp(T5,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Zpe=lw;function ege(){this.__data__=new Zpe,this.size=0}var tge=ege;function nge(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rge=nge;function ige(e){return this.__data__.get(e)}var sge=ige;function age(e){return this.__data__.has(e)}var oge=age,lge=lw,cge=p5,dge=g5,uge=200;function hge(e,t){var n=this.__data__;if(n instanceof lge){var i=n.__data__;if(!cge||i.length<uge-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new dge(i)}return n.set(e,t),this.size=n.size,this}var mge=hge,fge=lw,pge=tge,gge=rge,vge=sge,xge=oge,yge=mge;function tm(e){var t=this.__data__=new fge(e);this.size=t.size}tm.prototype.clear=pge;tm.prototype.delete=gge;tm.prototype.get=vge;tm.prototype.has=xge;tm.prototype.set=yge;var _7=tm,bge="__lodash_hash_undefined__";function wge(e){return this.__data__.set(e,bge),this}var jge=wge;function Nge(e){return this.__data__.has(e)}var Sge=Nge,kge=g5,Cge=jge,_ge=Sge;function Fy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new kge;++t<n;)this.add(e[t])}Fy.prototype.add=Fy.prototype.push=Cge;Fy.prototype.has=_ge;var T7=Fy;function Tge(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var P7=Tge;function Pge(e,t){return e.has(t)}var E7=Pge,Ege=T7,Age=P7,Oge=E7,Ige=1,Dge=2;function Mge(e,t,n,i,s,a){var o=n&Ige,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var h=-1,m=!0,f=n&Dge?new Ege:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var g=e[h],p=t[h];if(i)var v=o?i(p,g,h,t,e,a):i(g,p,h,e,t,a);if(v!==void 0){if(v)continue;m=!1;break}if(f){if(!Age(t,function(y,x){if(!Oge(f,x)&&(g===y||s(g,y,n,i,a)))return f.push(x)})){m=!1;break}}else if(!(g===p||s(g,p,n,i,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var A7=Mge,Rge=Ta,$ge=Rge.Uint8Array,Lge=$ge;function Uge(e){var t=-1,n=Array(e.size);return e.forEach(function(i,s){n[++t]=[s,i]}),n}var Fge=Uge;function Bge(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}var P5=Bge,KE=Rg,XE=Lge,Wge=f5,zge=A7,qge=Fge,Hge=P5,Vge=1,Gge=2,Yge="[object Boolean]",Kge="[object Date]",Xge="[object Error]",Qge="[object Map]",Jge="[object Number]",Zge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object Symbol]",rve="[object ArrayBuffer]",ive="[object DataView]",QE=KE?KE.prototype:void 0,C1=QE?QE.valueOf:void 0;function sve(e,t,n,i,s,a,o){switch(n){case ive:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rve:return!(e.byteLength!=t.byteLength||!a(new XE(e),new XE(t)));case Yge:case Kge:case Jge:return Wge(+e,+t);case Xge:return e.name==t.name&&e.message==t.message;case Zge:case tve:return e==t+"";case Qge:var l=qge;case eve:var c=i&Vge;if(l||(l=Hge),e.size!=t.size&&!c)return!1;var d=o.get(e);if(d)return d==t;i|=Gge,o.set(e,t);var u=zge(l(e),l(t),i,s,a,o);return o.delete(e),u;case nve:if(C1)return C1.call(e)==C1.call(t)}return!1}var ave=sve;function ove(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}var O7=ove,lve=O7,cve=ui;function dve(e,t,n){var i=t(e);return cve(e)?i:lve(i,n(e))}var uve=dve;function hve(e,t){for(var n=-1,i=e==null?0:e.length,s=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[s++]=o)}return a}var mve=hve;function fve(){return[]}var pve=fve,gve=mve,vve=pve,xve=Object.prototype,yve=xve.propertyIsEnumerable,JE=Object.getOwnPropertySymbols,bve=JE?function(e){return e==null?[]:(e=Object(e),gve(JE(e),function(t){return yve.call(e,t)}))}:vve,wve=bve;function jve(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var Nve=jve,Sve=Co,kve=_o,Cve="[object Arguments]";function _ve(e){return kve(e)&&Sve(e)==Cve}var Tve=_ve,ZE=Tve,Pve=_o,I7=Object.prototype,Eve=I7.hasOwnProperty,Ave=I7.propertyIsEnumerable,Ove=ZE(function(){return arguments}())?ZE:function(e){return Pve(e)&&Eve.call(e,"callee")&&!Ave.call(e,"callee")},E5=Ove,By={exports:{}};function Ive(){return!1}var Dve=Ive;By.exports;(function(e,t){var n=Ta,i=Dve,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===s,l=o?n.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||i;e.exports=d})(By,By.exports);var D7=By.exports,Mve=9007199254740991,Rve=/^(?:0|[1-9]\d*)$/;function $ve(e,t){var n=typeof e;return t=t??Mve,!!t&&(n=="number"||n!="symbol"&&Rve.test(e))&&e>-1&&e%1==0&&e<t}var A5=$ve,Lve=9007199254740991;function Uve(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Lve}var O5=Uve,Fve=Co,Bve=O5,Wve=_o,zve="[object Arguments]",qve="[object Array]",Hve="[object Boolean]",Vve="[object Date]",Gve="[object Error]",Yve="[object Function]",Kve="[object Map]",Xve="[object Number]",Qve="[object Object]",Jve="[object RegExp]",Zve="[object Set]",exe="[object String]",txe="[object WeakMap]",nxe="[object ArrayBuffer]",rxe="[object DataView]",ixe="[object Float32Array]",sxe="[object Float64Array]",axe="[object Int8Array]",oxe="[object Int16Array]",lxe="[object Int32Array]",cxe="[object Uint8Array]",dxe="[object Uint8ClampedArray]",uxe="[object Uint16Array]",hxe="[object Uint32Array]",Gt={};Gt[ixe]=Gt[sxe]=Gt[axe]=Gt[oxe]=Gt[lxe]=Gt[cxe]=Gt[dxe]=Gt[uxe]=Gt[hxe]=!0;Gt[zve]=Gt[qve]=Gt[nxe]=Gt[Hve]=Gt[rxe]=Gt[Vve]=Gt[Gve]=Gt[Yve]=Gt[Kve]=Gt[Xve]=Gt[Qve]=Gt[Jve]=Gt[Zve]=Gt[exe]=Gt[txe]=!1;function mxe(e){return Wve(e)&&Bve(e.length)&&!!Gt[Fve(e)]}var fxe=mxe;function pxe(e){return function(t){return e(t)}}var M7=pxe,Wy={exports:{}};Wy.exports;(function(e,t){var n=WF,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a&&n.process,l=function(){try{var c=s&&s.require&&s.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Wy,Wy.exports);var gxe=Wy.exports,vxe=fxe,xxe=M7,eA=gxe,tA=eA&&eA.isTypedArray,yxe=tA?xxe(tA):vxe,R7=yxe,bxe=Nve,wxe=E5,jxe=ui,Nxe=D7,Sxe=A5,kxe=R7,Cxe=Object.prototype,_xe=Cxe.hasOwnProperty;function Txe(e,t){var n=jxe(e),i=!n&&wxe(e),s=!n&&!i&&Nxe(e),a=!n&&!i&&!s&&kxe(e),o=n||i||s||a,l=o?bxe(e.length,String):[],c=l.length;for(var d in e)(t||_xe.call(e,d))&&!(o&&(d=="length"||s&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Sxe(d,c)))&&l.push(d);return l}var Pxe=Txe,Exe=Object.prototype;function Axe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Exe;return e===n}var Oxe=Axe;function Ixe(e,t){return function(n){return e(t(n))}}var $7=Ixe,Dxe=$7,Mxe=Dxe(Object.keys,Object),Rxe=Mxe,$xe=Oxe,Lxe=Rxe,Uxe=Object.prototype,Fxe=Uxe.hasOwnProperty;function Bxe(e){if(!$xe(e))return Lxe(e);var t=[];for(var n in Object(e))Fxe.call(e,n)&&n!="constructor"&&t.push(n);return t}var Wxe=Bxe,zxe=m5,qxe=O5;function Hxe(e){return e!=null&&qxe(e.length)&&!zxe(e)}var Ug=Hxe,Vxe=Pxe,Gxe=Wxe,Yxe=Ug;function Kxe(e){return Yxe(e)?Vxe(e):Gxe(e)}var kw=Kxe,Xxe=uve,Qxe=wve,Jxe=kw;function Zxe(e){return Xxe(e,Jxe,Qxe)}var eye=Zxe,nA=eye,tye=1,nye=Object.prototype,rye=nye.hasOwnProperty;function iye(e,t,n,i,s,a){var o=n&tye,l=nA(e),c=l.length,d=nA(t),u=d.length;if(c!=u&&!o)return!1;for(var h=c;h--;){var m=l[h];if(!(o?m in t:rye.call(t,m)))return!1}var f=a.get(e),g=a.get(t);if(f&&g)return f==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=o;++h<c;){m=l[h];var y=e[m],x=t[m];if(i)var b=o?i(x,y,m,t,e,a):i(y,x,m,e,t,a);if(!(b===void 0?y===x||s(y,x,n,i,a):b)){p=!1;break}v||(v=m=="constructor")}if(p&&!v){var w=e.constructor,N=t.constructor;w!=N&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof N=="function"&&N instanceof N)&&(p=!1)}return a.delete(e),a.delete(t),p}var sye=iye,aye=vd,oye=Ta,lye=aye(oye,"DataView"),cye=lye,dye=vd,uye=Ta,hye=dye(uye,"Promise"),mye=hye,fye=vd,pye=Ta,gye=fye(pye,"Set"),L7=gye,vye=vd,xye=Ta,yye=vye(xye,"WeakMap"),bye=yye,jS=cye,NS=p5,SS=mye,kS=L7,CS=bye,U7=Co,nm=qF,rA="[object Map]",wye="[object Object]",iA="[object Promise]",sA="[object Set]",aA="[object WeakMap]",oA="[object DataView]",jye=nm(jS),Nye=nm(NS),Sye=nm(SS),kye=nm(kS),Cye=nm(CS),cc=U7;(jS&&cc(new jS(new ArrayBuffer(1)))!=oA||NS&&cc(new NS)!=rA||SS&&cc(SS.resolve())!=iA||kS&&cc(new kS)!=sA||CS&&cc(new CS)!=aA)&&(cc=function(e){var t=U7(e),n=t==wye?e.constructor:void 0,i=n?nm(n):"";if(i)switch(i){case jye:return oA;case Nye:return rA;case Sye:return iA;case kye:return sA;case Cye:return aA}return t});var _ye=cc,_1=_7,Tye=A7,Pye=ave,Eye=sye,lA=_ye,cA=ui,dA=D7,Aye=R7,Oye=1,uA="[object Arguments]",hA="[object Array]",Vv="[object Object]",Iye=Object.prototype,mA=Iye.hasOwnProperty;function Dye(e,t,n,i,s,a){var o=cA(e),l=cA(t),c=o?hA:lA(e),d=l?hA:lA(t);c=c==uA?Vv:c,d=d==uA?Vv:d;var u=c==Vv,h=d==Vv,m=c==d;if(m&&dA(e)){if(!dA(t))return!1;o=!0,u=!1}if(m&&!u)return a||(a=new _1),o||Aye(e)?Tye(e,t,n,i,s,a):Pye(e,t,c,n,i,s,a);if(!(n&Oye)){var f=u&&mA.call(e,"__wrapped__"),g=h&&mA.call(t,"__wrapped__");if(f||g){var p=f?e.value():e,v=g?t.value():t;return a||(a=new _1),s(p,v,n,i,a)}}return m?(a||(a=new _1),Eye(e,t,n,i,s,a)):!1}var Mye=Dye,Rye=Mye,fA=_o;function F7(e,t,n,i,s){return e===t?!0:e==null||t==null||!fA(e)&&!fA(t)?e!==e&&t!==t:Rye(e,t,n,i,F7,s)}var I5=F7,$ye=_7,Lye=I5,Uye=1,Fye=2;function Bye(e,t,n,i){var s=n.length,a=s,o=!i;if(e==null)return!a;for(e=Object(e);s--;){var l=n[s];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<a;){l=n[s];var c=l[0],d=e[c],u=l[1];if(o&&l[2]){if(d===void 0&&!(c in e))return!1}else{var h=new $ye;if(i)var m=i(d,u,c,e,t,h);if(!(m===void 0?Lye(u,d,Uye|Fye,i,h):m))return!1}}return!0}var Wye=Bye,zye=Gl;function qye(e){return e===e&&!zye(e)}var B7=qye,Hye=B7,Vye=kw;function Gye(e){for(var t=Vye(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,Hye(s)]}return t}var Yye=Gye;function Kye(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var W7=Kye,Xye=Wye,Qye=Yye,Jye=W7;function Zye(e){var t=Qye(e);return t.length==1&&t[0][2]?Jye(t[0][0],t[0][1]):function(n){return n===e||Xye(n,e,t)}}var e0e=Zye;function t0e(e,t){return e!=null&&t in Object(e)}var n0e=t0e,r0e=KF,i0e=E5,s0e=ui,a0e=A5,o0e=O5,l0e=dw;function c0e(e,t,n){t=r0e(t,e);for(var i=-1,s=t.length,a=!1;++i<s;){var o=l0e(t[i]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++i!=s?a:(s=e==null?0:e.length,!!s&&o0e(s)&&a0e(o,s)&&(s0e(e)||i0e(e)))}var d0e=c0e,u0e=n0e,h0e=d0e;function m0e(e,t){return e!=null&&h0e(e,t,u0e)}var f0e=m0e,p0e=I5,g0e=XF,v0e=f0e,x0e=h5,y0e=B7,b0e=W7,w0e=dw,j0e=1,N0e=2;function S0e(e,t){return x0e(e)&&y0e(t)?b0e(w0e(e),t):function(n){var i=g0e(n,e);return i===void 0&&i===t?v0e(n,e):p0e(t,i,j0e|N0e)}}var k0e=S0e;function C0e(e){return e}var rm=C0e;function _0e(e){return function(t){return t==null?void 0:t[e]}}var T0e=_0e,P0e=y5;function E0e(e){return function(t){return P0e(t,e)}}var A0e=E0e,O0e=T0e,I0e=A0e,D0e=h5,M0e=dw;function R0e(e){return D0e(e)?O0e(M0e(e)):I0e(e)}var $0e=R0e,L0e=e0e,U0e=k0e,F0e=rm,B0e=ui,W0e=$0e;function z0e(e){return typeof e=="function"?e:e==null?F0e:typeof e=="object"?B0e(e)?U0e(e[0],e[1]):L0e(e):W0e(e)}var Pa=z0e;function q0e(e,t,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var z7=q0e;function H0e(e){return e!==e}var V0e=H0e;function G0e(e,t,n){for(var i=n-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}var Y0e=G0e,K0e=z7,X0e=V0e,Q0e=Y0e;function J0e(e,t,n){return t===t?Q0e(e,t,n):K0e(e,X0e,n)}var Z0e=J0e,ebe=Z0e;function tbe(e,t){var n=e==null?0:e.length;return!!n&&ebe(e,t,0)>-1}var nbe=tbe;function rbe(e,t,n){for(var i=-1,s=e==null?0:e.length;++i<s;)if(n(t,e[i]))return!0;return!1}var ibe=rbe;function sbe(){}var abe=sbe,T1=L7,obe=abe,lbe=P5,cbe=1/0,dbe=T1&&1/lbe(new T1([,-0]))[1]==cbe?function(e){return new T1(e)}:obe,ube=dbe,hbe=T7,mbe=nbe,fbe=ibe,pbe=E7,gbe=ube,vbe=P5,xbe=200;function ybe(e,t,n){var i=-1,s=mbe,a=e.length,o=!0,l=[],c=l;if(n)o=!1,s=fbe;else if(a>=xbe){var d=t?null:gbe(e);if(d)return vbe(d);o=!1,s=pbe,c=new hbe}else c=t?[]:l;e:for(;++i<a;){var u=e[i],h=t?t(u):u;if(u=n||u!==0?u:0,o&&h===h){for(var m=c.length;m--;)if(c[m]===h)continue e;t&&c.push(h),l.push(u)}else s(c,h,n)||(c!==l&&c.push(h),l.push(u))}return l}var bbe=ybe,wbe=Pa,jbe=bbe;function Nbe(e,t){return e&&e.length?jbe(e,wbe(t)):[]}var Sbe=Nbe;const pA=jt(Sbe);function q7(e,t,n){return t===!0?pA(e,n):Ke(t)?pA(e,t):e}function th(e){"@babel/helpers - typeof";return th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},th(e)}var kbe=["ref"];function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gA(Object(n),!0).forEach(function(i){Cw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Cbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,V7(i.key),i)}}function _be(e,t,n){return t&&vA(e.prototype,t),n&&vA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tbe(e,t,n){return t=zy(t),Pbe(e,H7()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}function Pbe(e,t){if(t&&(th(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ebe(e)}function Ebe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H7=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zy(e)}function Abe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},_S(e,t)}function Cw(e,t,n){return t=V7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V7(e){var t=Obe(e,"string");return th(t)=="symbol"?t:t+""}function Obe(e,t){if(th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(th(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ibe(e,t){if(e==null)return{};var n=Dbe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Dbe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Mbe(e){return e.value}function Rbe(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=Ibe(t,kbe);return L.createElement(T5,n)}var xA=1,wu=function(e){function t(){var n;Cbe(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=Tbe(this,t,[].concat(s)),Cw(n,"lastBoundingBox",{width:-1,height:-1}),n}return Abe(t,e),_be(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();return i.height=this.wrapperNode.offsetHeight,i.width=this.wrapperNode.offsetWidth,i}return null}},{key:"updateBBox",value:function(){var i=this.props.onBBoxUpdate,s=this.getBBox();s?(Math.abs(s.width-this.lastBoundingBox.width)>xA||Math.abs(s.height-this.lastBoundingBox.height)>xA)&&(this.lastBoundingBox.width=s.width,this.lastBoundingBox.height=s.height,i&&i(s)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?$a({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var s=this.props,a=s.layout,o=s.align,l=s.verticalAlign,c=s.margin,d=s.chartWidth,u=s.chartHeight,h,m;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var f=this.getBBoxSnapshot();h={left:((d||0)-f.width)/2}}else h=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var g=this.getBBoxSnapshot();m={top:((u||0)-g.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return $a($a({},h),m)}},{key:"render",value:function(){var i=this,s=this.props,a=s.content,o=s.width,l=s.height,c=s.wrapperStyle,d=s.payloadUniqBy,u=s.payload,h=$a($a({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return L.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(f){i.wrapperNode=f}},Rbe(a,$a($a({},this.props),{},{payload:q7(u,d,Mbe)})))}}],[{key:"getWithHeight",value:function(i,s){var a=$a($a({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&ge(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||s}:null}}])}(j.PureComponent);Cw(wu,"displayName","Legend");Cw(wu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var yA=Rg,$be=E5,Lbe=ui,bA=yA?yA.isConcatSpreadable:void 0;function Ube(e){return Lbe(e)||$be(e)||!!(bA&&e&&e[bA])}var Fbe=Ube,Bbe=O7,Wbe=Fbe;function G7(e,t,n,i,s){var a=-1,o=e.length;for(n||(n=Wbe),s||(s=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?G7(l,t-1,n,i,s):Bbe(s,l):i||(s[s.length]=l)}return s}var Y7=G7;function zbe(e){return function(t,n,i){for(var s=-1,a=Object(t),o=i(t),l=o.length;l--;){var c=o[e?l:++s];if(n(a[c],c,a)===!1)break}return t}}var qbe=zbe,Hbe=qbe,Vbe=Hbe(),Gbe=Vbe,Ybe=Gbe,Kbe=kw;function Xbe(e,t){return e&&Ybe(e,t,Kbe)}var K7=Xbe,Qbe=Ug;function Jbe(e,t){return function(n,i){if(n==null)return n;if(!Qbe(n))return e(n,i);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&i(o[a],a,o)!==!1;);return n}}var Zbe=Jbe,ewe=K7,twe=Zbe,nwe=twe(ewe),D5=nwe,rwe=D5,iwe=Ug;function swe(e,t){var n=-1,i=iwe(e)?Array(e.length):[];return rwe(e,function(s,a,o){i[++n]=t(s,a,o)}),i}var X7=swe;function awe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var owe=awe,wA=Kh;function lwe(e,t){if(e!==t){var n=e!==void 0,i=e===null,s=e===e,a=wA(e),o=t!==void 0,l=t===null,c=t===t,d=wA(t);if(!l&&!d&&!a&&e>t||a&&o&&c&&!l&&!d||i&&o&&c||!n&&c||!s)return 1;if(!i&&!a&&!d&&e<t||d&&n&&s&&!i&&!a||l&&n&&s||!o&&s||!c)return-1}return 0}var cwe=lwe,dwe=cwe;function uwe(e,t,n){for(var i=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++i<o;){var c=dwe(s[i],a[i]);if(c){if(i>=l)return c;var d=n[i];return c*(d=="desc"?-1:1)}}return e.index-t.index}var hwe=uwe,P1=x5,mwe=y5,fwe=Pa,pwe=X7,gwe=owe,vwe=M7,xwe=hwe,ywe=rm,bwe=ui;function wwe(e,t,n){t.length?t=P1(t,function(a){return bwe(a)?function(o){return mwe(o,a.length===1?a[0]:a)}:a}):t=[ywe];var i=-1;t=P1(t,vwe(fwe));var s=pwe(e,function(a,o,l){var c=P1(t,function(d){return d(a)});return{criteria:c,index:++i,value:a}});return gwe(s,function(a,o){return xwe(a,o,n)})}var jwe=wwe;function Nwe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Swe=Nwe,kwe=Swe,jA=Math.max;function Cwe(e,t,n){return t=jA(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=jA(i.length-t,0),o=Array(a);++s<a;)o[s]=i[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=i[s];return l[t]=n(o),kwe(e,this,l)}}var _we=Cwe;function Twe(e){return function(){return e}}var Pwe=Twe,Ewe=vd,Awe=function(){try{var e=Ewe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Q7=Awe,Owe=Pwe,NA=Q7,Iwe=rm,Dwe=NA?function(e,t){return NA(e,"toString",{configurable:!0,enumerable:!1,value:Owe(t),writable:!0})}:Iwe,Mwe=Dwe,Rwe=800,$we=16,Lwe=Date.now;function Uwe(e){var t=0,n=0;return function(){var i=Lwe(),s=$we-(i-n);if(n=i,s>0){if(++t>=Rwe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Fwe=Uwe,Bwe=Mwe,Wwe=Fwe,zwe=Wwe(Bwe),qwe=zwe,Hwe=rm,Vwe=_we,Gwe=qwe;function Ywe(e,t){return Gwe(Vwe(e,t,Hwe),e+"")}var Kwe=Ywe,Xwe=f5,Qwe=Ug,Jwe=A5,Zwe=Gl;function eje(e,t,n){if(!Zwe(n))return!1;var i=typeof t;return(i=="number"?Qwe(n)&&Jwe(t,n.length):i=="string"&&t in n)?Xwe(n[t],e):!1}var _w=eje,tje=Y7,nje=jwe,rje=Kwe,SA=_w,ije=rje(function(e,t){if(e==null)return[];var n=t.length;return n>1&&SA(e,t[0],t[1])?t=[]:n>2&&SA(t[0],t[1],t[2])&&(t=[t[0]]),nje(e,tje(t,1),[])}),sje=ije;const M5=jt(sje);function wp(e){"@babel/helpers - typeof";return wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wp(e)}function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},TS.apply(this,arguments)}function aje(e,t){return dje(e)||cje(e,t)||lje(e,t)||oje()}function oje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lje(e,t){if(e){if(typeof e=="string")return kA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kA(e,t)}}function kA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function cje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function dje(e){if(Array.isArray(e))return e}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function E1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(i){uje(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function uje(e,t,n){return t=hje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hje(e){var t=mje(e,"string");return wp(t)=="symbol"?t:t+""}function mje(e,t){if(wp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(wp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fje(e){return Array.isArray(e)&&Bn(e[0])&&Bn(e[1])?e.join(" ~ "):e}var pje=function(t){var n=t.separator,i=n===void 0?" : ":n,s=t.contentStyle,a=s===void 0?{}:s,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,d=c===void 0?{}:c,u=t.payload,h=t.formatter,m=t.itemSorter,f=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,b=function(){if(u&&u.length){var T={padding:0,margin:0},M=(m?M5(u,m):u).map(function(C,P){if(C.type==="none")return null;var I=E1({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},l),R=C.formatter||h||fje,O=C.value,$=C.name,q=O,z=$;if(R&&q!=null&&z!=null){var J=R(O,$,C,P,u);if(Array.isArray(J)){var ne=aje(J,2);q=ne[0],z=ne[1]}else q=J}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:I},Bn(z)?L.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Bn(z)?L.createElement("span",{className:"recharts-tooltip-item-separator"},i):null,L.createElement("span",{className:"recharts-tooltip-item-value"},q),L.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},w=E1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),N=E1({margin:0},d),S=!tt(p),k=S?p:"",_=rt("recharts-default-tooltip",f),D=rt("recharts-tooltip-label",g);S&&v&&u!==void 0&&u!==null&&(k=v(p,u));var A=x?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",TS({className:_,style:w},A),L.createElement("p",{className:D,style:N},L.isValidElement(k)?k:"".concat(k)),b())};function jp(e){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(e)}function Gv(e,t,n){return t=gje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gje(e){var t=vje(e,"string");return jp(t)=="symbol"?t:t+""}function vje(e,t){if(jp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(jp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mm="recharts-tooltip-wrapper",xje={visibility:"hidden"};function yje(e){var t=e.coordinate,n=e.translateX,i=e.translateY;return rt(Mm,Gv(Gv(Gv(Gv({},"".concat(Mm,"-right"),ge(n)&&t&&ge(t.x)&&n>=t.x),"".concat(Mm,"-left"),ge(n)&&t&&ge(t.x)&&n<t.x),"".concat(Mm,"-bottom"),ge(i)&&t&&ge(t.y)&&i>=t.y),"".concat(Mm,"-top"),ge(i)&&t&&ge(t.y)&&i<t.y))}function _A(e){var t=e.allowEscapeViewBox,n=e.coordinate,i=e.key,s=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,d=e.viewBoxDimension;if(a&&ge(a[i]))return a[i];var u=n[i]-l-s,h=n[i]+s;if(t[i])return o[i]?u:h;if(o[i]){var m=u,f=c[i];return m<f?Math.max(h,c[i]):Math.max(u,c[i])}var g=h+l,p=c[i]+d;return g>p?Math.max(u,c[i]):Math.max(h,c[i])}function bje(e){var t=e.translateX,n=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function wje(e){var t=e.allowEscapeViewBox,n=e.coordinate,i=e.offsetTopLeft,s=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,d,u,h;return o.height>0&&o.width>0&&n?(u=_A({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:i,position:s,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),h=_A({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:i,position:s,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),d=bje({translateX:u,translateY:h,useTranslate3d:l})):d=xje,{cssProperties:d,cssClasses:yje({translateX:u,translateY:h,coordinate:n})}}function nh(e){"@babel/helpers - typeof";return nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(e)}function TA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function PA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(n),!0).forEach(function(i){ES(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function jje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nje(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Z7(i.key),i)}}function Sje(e,t,n){return t&&Nje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kje(e,t,n){return t=qy(t),Cje(e,J7()?Reflect.construct(t,n||[],qy(e).constructor):t.apply(e,n))}function Cje(e,t){if(t&&(nh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _je(e)}function _je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J7=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qy(e)}function Tje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},PS(e,t)}function ES(e,t,n){return t=Z7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z7(e){var t=Pje(e,"string");return nh(t)=="symbol"?t:t+""}function Pje(e,t){if(nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(nh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EA=1,Eje=function(e){function t(){var n;jje(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=kje(this,t,[].concat(s)),ES(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ES(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,d,u;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(d=(u=n.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&d!==void 0?d:0}})}}),n}return Tje(t,e),Sje(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-this.state.lastBoundingBox.width)>EA||Math.abs(i.height-this.state.lastBoundingBox.height)>EA)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,s;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((s=this.props.coordinate)===null||s===void 0?void 0:s.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,s=this.props,a=s.active,o=s.allowEscapeViewBox,l=s.animationDuration,c=s.animationEasing,d=s.children,u=s.coordinate,h=s.hasPayload,m=s.isAnimationActive,f=s.offset,g=s.position,p=s.reverseDirection,v=s.useTranslate3d,y=s.viewBox,x=s.wrapperStyle,b=wje({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),w=b.cssClasses,N=b.cssProperties,S=PA(PA({transition:m&&a?"transform ".concat(l,"ms ").concat(c):void 0},N),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&h?"visible":"hidden",position:"absolute",top:0,left:0},x);return L.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(_){i.wrapperNode=_}},d)}}])}(j.PureComponent),Aje=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ga={isSsr:Aje(),get:function(t){return ga[t]},set:function(t,n){if(typeof t=="string")ga[t]=n;else{var i=Object.keys(t);i&&i.length&&i.forEach(function(s){ga[s]=t[s]})}}};function rh(e){"@babel/helpers - typeof";return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function OA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(n),!0).forEach(function(i){R5(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Oje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ije(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,t9(i.key),i)}}function Dje(e,t,n){return t&&Ije(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mje(e,t,n){return t=Hy(t),Rje(e,e9()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function Rje(e,t){if(t&&(rh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $je(e)}function $je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e9=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}function Lje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AS(e,t)}function AS(e,t){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},AS(e,t)}function R5(e,t,n){return t=t9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t9(e){var t=Uje(e,"string");return rh(t)=="symbol"?t:t+""}function Uje(e,t){if(rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(rh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fje(e){return e.dataKey}function Bje(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(pje,t)}var jn=function(e){function t(){return Oje(this,t),Mje(this,t,arguments)}return Lje(t,e),Dje(t,[{key:"render",value:function(){var i=this,s=this.props,a=s.active,o=s.allowEscapeViewBox,l=s.animationDuration,c=s.animationEasing,d=s.content,u=s.coordinate,h=s.filterNull,m=s.isAnimationActive,f=s.offset,g=s.payload,p=s.payloadUniqBy,v=s.position,y=s.reverseDirection,x=s.useTranslate3d,b=s.viewBox,w=s.wrapperStyle,N=g??[];h&&N.length&&(N=q7(g.filter(function(k){return k.value!=null&&(k.hide!==!0||i.props.includeHidden)}),p,Fje));var S=N.length>0;return L.createElement(Eje,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:m,active:a,coordinate:u,hasPayload:S,offset:f,position:v,reverseDirection:y,useTranslate3d:x,viewBox:b,wrapperStyle:w},Bje(d,OA(OA({},this.props),{},{payload:N})))}}])}(j.PureComponent);R5(jn,"displayName","Tooltip");R5(jn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ga.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Wje=Ta,zje=function(){return Wje.Date.now()},qje=zje,Hje=/\s/;function Vje(e){for(var t=e.length;t--&&Hje.test(e.charAt(t)););return t}var Gje=Vje,Yje=Gje,Kje=/^\s+/;function Xje(e){return e&&e.slice(0,Yje(e)+1).replace(Kje,"")}var Qje=Xje,Jje=Qje,IA=Gl,Zje=Kh,DA=NaN,e1e=/^[-+]0x[0-9a-f]+$/i,t1e=/^0b[01]+$/i,n1e=/^0o[0-7]+$/i,r1e=parseInt;function i1e(e){if(typeof e=="number")return e;if(Zje(e))return DA;if(IA(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=IA(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Jje(e);var n=t1e.test(e);return n||n1e.test(e)?r1e(e.slice(2),n?2:8):e1e.test(e)?DA:+e}var n9=i1e,s1e=Gl,A1=qje,MA=n9,a1e="Expected a function",o1e=Math.max,l1e=Math.min;function c1e(e,t,n){var i,s,a,o,l,c,d=0,u=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(a1e);t=MA(t)||0,s1e(n)&&(u=!!n.leading,h="maxWait"in n,a=h?o1e(MA(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function f(S){var k=i,_=s;return i=s=void 0,d=S,o=e.apply(_,k),o}function g(S){return d=S,l=setTimeout(y,t),u?f(S):o}function p(S){var k=S-c,_=S-d,D=t-k;return h?l1e(D,a-_):D}function v(S){var k=S-c,_=S-d;return c===void 0||k>=t||k<0||h&&_>=a}function y(){var S=A1();if(v(S))return x(S);l=setTimeout(y,p(S))}function x(S){return l=void 0,m&&i?f(S):(i=s=void 0,o)}function b(){l!==void 0&&clearTimeout(l),d=0,i=c=s=l=void 0}function w(){return l===void 0?o:x(A1())}function N(){var S=A1(),k=v(S);if(i=arguments,s=this,c=S,k){if(l===void 0)return g(c);if(h)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),o}return N.cancel=b,N.flush=w,N}var d1e=c1e,u1e=d1e,h1e=Gl,m1e="Expected a function";function f1e(e,t,n){var i=!0,s=!0;if(typeof e!="function")throw new TypeError(m1e);return h1e(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),u1e(e,t,{leading:i,maxWait:t,trailing:s})}var p1e=f1e;const r9=jt(p1e);function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(n),!0).forEach(function(i){g1e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function g1e(e,t,n){return t=v1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v1e(e){var t=x1e(e,"string");return Np(t)=="symbol"?t:t+""}function x1e(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Np(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y1e(e,t){return N1e(e)||j1e(e,t)||w1e(e,t)||b1e()}function b1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w1e(e,t){if(e){if(typeof e=="string")return $A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $A(e,t)}}function $A(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function j1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function N1e(e){if(Array.isArray(e))return e}var Yi=j.forwardRef(function(e,t){var n=e.aspect,i=e.initialDimension,s=i===void 0?{width:-1,height:-1}:i,a=e.width,o=a===void 0?"100%":a,l=e.height,c=l===void 0?"100%":l,d=e.minWidth,u=d===void 0?0:d,h=e.minHeight,m=e.maxHeight,f=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,y=e.className,x=e.onResize,b=e.style,w=b===void 0?{}:b,N=j.useRef(null),S=j.useRef();S.current=x,j.useImperativeHandle(t,function(){return Object.defineProperty(N.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),N.current},configurable:!0})});var k=j.useState({containerWidth:s.width,containerHeight:s.height}),_=y1e(k,2),D=_[0],A=_[1],E=j.useCallback(function(M,C){A(function(P){var I=Math.round(M),R=Math.round(C);return P.containerWidth===I&&P.containerHeight===R?P:{containerWidth:I,containerHeight:R}})},[]);j.useEffect(function(){var M=function($){var q,z=$[0].contentRect,J=z.width,ne=z.height;E(J,ne),(q=S.current)===null||q===void 0||q.call(S,J,ne)};p>0&&(M=r9(M,p,{trailing:!0,leading:!1}));var C=new ResizeObserver(M),P=N.current.getBoundingClientRect(),I=P.width,R=P.height;return E(I,R),C.observe(N.current),function(){C.disconnect()}},[E,p]);var T=j.useMemo(function(){var M=D.containerWidth,C=D.containerHeight;if(M<0||C<0)return null;Ds(xc(o)||xc(c),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,c),Ds(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=xc(o)?M:o,I=xc(c)?C:c;n&&n>0&&(P?I=P/n:I&&(P=I*n),m&&I>m&&(I=m)),Ds(P>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,P,I,o,c,u,h,n);var R=!Array.isArray(f)&&ao(f.type).endsWith("Chart");return L.Children.map(f,function(O){return ZF.isElement(O)?j.cloneElement(O,Yv({width:P,height:I},R?{style:Yv({height:"100%",width:"100%",maxHeight:I,maxWidth:P},O.props.style)}:{})):O})},[n,f,c,m,h,u,D,o]);return L.createElement("div",{id:v?"".concat(v):void 0,className:rt("recharts-responsive-container",y),style:Yv(Yv({},w),{},{width:o,height:c,minWidth:u,minHeight:h,maxHeight:m}),ref:N},T)}),xd=function(t){return null};xd.displayName="Cell";function Sp(e){"@babel/helpers - typeof";return Sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sp(e)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function OS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(i){S1e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function S1e(e,t,n){return t=k1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k1e(e){var t=C1e(e,"string");return Sp(t)=="symbol"?t:t+""}function C1e(e,t){if(Sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Sp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rd={widthCache:{},cacheCount:0},_1e=2e3,T1e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},UA="recharts_measurement_span";function P1e(e){var t=OS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Tf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ga.isSsr)return{width:0,height:0};var i=P1e(n),s=JSON.stringify({text:t,copyStyle:i});if(Rd.widthCache[s])return Rd.widthCache[s];try{var a=document.getElementById(UA);a||(a=document.createElement("span"),a.setAttribute("id",UA),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=OS(OS({},T1e),i);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),c={width:l.width,height:l.height};return Rd.widthCache[s]=c,++Rd.cacheCount>_1e&&(Rd.cacheCount=0,Rd.widthCache={}),c}catch{return{width:0,height:0}}},E1e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function kp(e){"@babel/helpers - typeof";return kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(e)}function Vy(e,t){return D1e(e)||I1e(e,t)||O1e(e,t)||A1e()}function A1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1e(e,t){if(e){if(typeof e=="string")return FA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FA(e,t)}}function FA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function I1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function D1e(e){if(Array.isArray(e))return e}function M1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BA(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$1e(i.key),i)}}function R1e(e,t,n){return t&&BA(e.prototype,t),n&&BA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $1e(e){var t=L1e(e,"string");return kp(t)=="symbol"?t:t+""}function L1e(e,t){if(kp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(kp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,U1e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,F1e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,i9={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},B1e=Object.keys(i9),tu="NaN";function W1e(e,t){return e*i9[t]}var Kv=function(){function e(t,n){M1e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!U1e.test(n)&&(this.num=NaN,this.unit=""),B1e.includes(n)&&(this.num=W1e(t,n),this.unit="px")}return R1e(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var i,s=(i=F1e.exec(n))!==null&&i!==void 0?i:[],a=Vy(s,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function s9(e){if(e.includes(tu))return tu;for(var t=e;t.includes("*")||t.includes("/");){var n,i=(n=WA.exec(t))!==null&&n!==void 0?n:[],s=Vy(i,4),a=s[1],o=s[2],l=s[3],c=Kv.parse(a??""),d=Kv.parse(l??""),u=o==="*"?c.multiply(d):c.divide(d);if(u.isNaN())return tu;t=t.replace(WA,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,m=(h=zA.exec(t))!==null&&h!==void 0?h:[],f=Vy(m,4),g=f[1],p=f[2],v=f[3],y=Kv.parse(g??""),x=Kv.parse(v??""),b=p==="+"?y.add(x):y.subtract(x);if(b.isNaN())return tu;t=t.replace(zA,b.toString())}return t}var qA=/\(([^()]*)\)/;function z1e(e){for(var t=e;t.includes("(");){var n=qA.exec(t),i=Vy(n,2),s=i[1];t=t.replace(qA,s9(s))}return t}function q1e(e){var t=e.replace(/\s+/g,"");return t=z1e(t),t=s9(t),t}function H1e(e){try{return q1e(e)}catch{return tu}}function O1(e){var t=H1e(e.slice(5,-1));return t===tu?"":t}var V1e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],G1e=["dx","dy","angle","className","breakAll"];function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},IS.apply(this,arguments)}function HA(e,t){if(e==null)return{};var n=Y1e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Y1e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function VA(e,t){return J1e(e)||Q1e(e,t)||X1e(e,t)||K1e()}function K1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X1e(e,t){if(e){if(typeof e=="string")return GA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GA(e,t)}}function GA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Q1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function J1e(e){if(Array.isArray(e))return e}var a9=/[ \f\n\r\t\v\u2028\u2029]+/,o9=function(t){var n=t.children,i=t.breakAll,s=t.style;try{var a=[];tt(n)||(i?a=n.toString().split(""):a=n.toString().split(a9));var o=a.map(function(c){return{word:c,width:Tf(c,s).width}}),l=i?0:Tf(" ",s).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},Z1e=function(t,n,i,s,a){var o=t.maxLines,l=t.children,c=t.style,d=t.breakAll,u=ge(o),h=l,m=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function(I,R){var O=R.word,$=R.width,q=I[I.length-1];if(q&&(s==null||a||q.width+$+i<Number(s)))q.words.push(O),q.width+=$+i;else{var z={words:[O],width:$};I.push(z)}return I},[])},f=m(n),g=function(P){return P.reduce(function(I,R){return I.width>R.width?I:R})};if(!u)return f;for(var p="β¦",v=function(P){var I=h.slice(0,P),R=o9({breakAll:d,style:c,children:I+p}).wordsWithComputedWidth,O=m(R),$=O.length>o||g(O).width>Number(s);return[$,O]},y=0,x=h.length-1,b=0,w;y<=x&&b<=h.length-1;){var N=Math.floor((y+x)/2),S=N-1,k=v(S),_=VA(k,2),D=_[0],A=_[1],E=v(N),T=VA(E,1),M=T[0];if(!D&&!M&&(y=N+1),D&&M&&(x=N-1),!D&&M){w=A;break}b++}return w||f},YA=function(t){var n=tt(t)?[]:t.toString().split(a9);return[{words:n}]},eNe=function(t){var n=t.width,i=t.scaleToFit,s=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||i)&&!ga.isSsr){var c,d,u=o9({breakAll:o,children:s,style:a});if(u){var h=u.wordsWithComputedWidth,m=u.spaceWidth;c=h,d=m}else return YA(s);return Z1e({breakAll:o,children:s,maxLines:l,style:a},c,d,n,i)}return YA(s)},KA="#808080",Xc=function(t){var n=t.x,i=n===void 0?0:n,s=t.y,a=s===void 0?0:s,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,d=c===void 0?"0.71em":c,u=t.scaleToFit,h=u===void 0?!1:u,m=t.textAnchor,f=m===void 0?"start":m,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,y=v===void 0?KA:v,x=HA(t,V1e),b=j.useMemo(function(){return eNe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:h,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,h,x.style,x.width]),w=x.dx,N=x.dy,S=x.angle,k=x.className,_=x.breakAll,D=HA(x,G1e);if(!Bn(i)||!Bn(a))return null;var A=i+(ge(w)?w:0),E=a+(ge(N)?N:0),T;switch(p){case"start":T=O1("calc(".concat(d,")"));break;case"middle":T=O1("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:T=O1("calc(".concat(b.length-1," * -").concat(l,")"));break}var M=[];if(h){var C=b[0].width,P=x.width;M.push("scale(".concat((ge(P)?P/C:1)/C,")"))}return S&&M.push("rotate(".concat(S,", ").concat(A,", ").concat(E,")")),M.length&&(D.transform=M.join(" ")),L.createElement("text",IS({},We(D,!0),{x:A,y:E,className:rt("recharts-text",k),textAnchor:f,fill:y.includes("url")?KA:y}),b.map(function(I,R){var O=I.words.join(_?"":" ");return L.createElement("tspan",{x:A,dy:R===0?T:l,key:"".concat(O,"-").concat(R)},O)}))};function Sl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tNe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $5(e){let t,n,i;e.length!==2?(t=Sl,n=(l,c)=>Sl(e(l),c),i=(l,c)=>e(l)-c):(t=e===Sl||e===tNe?e:nNe,n=e,i=e);function s(l,c,d=0,u=l.length){if(d<u){if(t(c,c)!==0)return u;do{const h=d+u>>>1;n(l[h],c)<0?d=h+1:u=h}while(d<u)}return d}function a(l,c,d=0,u=l.length){if(d<u){if(t(c,c)!==0)return u;do{const h=d+u>>>1;n(l[h],c)<=0?d=h+1:u=h}while(d<u)}return d}function o(l,c,d=0,u=l.length){const h=s(l,c,d,u-1);return h>d&&i(l[h-1],c)>-i(l[h],c)?h-1:h}return{left:s,center:o,right:a}}function nNe(){return 0}function l9(e){return e===null?NaN:+e}function*rNe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const iNe=$5(Sl),Fg=iNe.right;$5(l9).center;class XA extends Map{constructor(t,n=oNe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,s]of t)this.set(i,s)}get(t){return super.get(QA(this,t))}has(t){return super.has(QA(this,t))}set(t,n){return super.set(sNe(this,t),n)}delete(t){return super.delete(aNe(this,t))}}function QA({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function sNe({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function aNe({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function oNe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lNe(e=Sl){if(e===Sl)return c9;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const i=e(t,n);return i||i===0?i:(e(n,n)===0)-(e(t,t)===0)}}function c9(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cNe=Math.sqrt(50),dNe=Math.sqrt(10),uNe=Math.sqrt(2);function Gy(e,t,n){const i=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(i)),a=i/Math.pow(10,s),o=a>=cNe?10:a>=dNe?5:a>=uNe?2:1;let l,c,d;return s<0?(d=Math.pow(10,-s)/o,l=Math.round(e*d),c=Math.round(t*d),l/d<e&&++l,c/d>t&&--c,d=-d):(d=Math.pow(10,s)*o,l=Math.round(e/d),c=Math.round(t/d),l*d<e&&++l,c*d>t&&--c),c<l&&.5<=n&&n<2?Gy(e,t,n*2):[l,c,d]}function DS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[s,a,o]=i?Gy(t,e,n):Gy(e,t,n);if(!(a>=s))return[];const l=a-s+1,c=new Array(l);if(i)if(o<0)for(let d=0;d<l;++d)c[d]=(a-d)/-o;else for(let d=0;d<l;++d)c[d]=(a-d)*o;else if(o<0)for(let d=0;d<l;++d)c[d]=(s+d)/-o;else for(let d=0;d<l;++d)c[d]=(s+d)*o;return c}function MS(e,t,n){return t=+t,e=+e,n=+n,Gy(e,t,n)[2]}function RS(e,t,n){t=+t,e=+e,n=+n;const i=t<e,s=i?MS(t,e,n):MS(e,t,n);return(i?-1:1)*(s<0?1/-s:s)}function JA(e,t){let n;for(const i of e)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);return n}function ZA(e,t){let n;for(const i of e)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);return n}function d9(e,t,n=0,i=1/0,s){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=t&&t<=i))return e;for(s=s===void 0?c9:lNe(s);i>n;){if(i-n>600){const c=i-n+1,d=t-n+1,u=Math.log(c),h=.5*Math.exp(2*u/3),m=.5*Math.sqrt(u*h*(c-h)/c)*(d-c/2<0?-1:1),f=Math.max(n,Math.floor(t-d*h/c+m)),g=Math.min(i,Math.floor(t+(c-d)*h/c+m));d9(e,t,f,g,s)}const a=e[t];let o=n,l=i;for(Rm(e,n,t),s(e[i],a)>0&&Rm(e,n,i);o<l;){for(Rm(e,o,l),++o,--l;s(e[o],a)<0;)++o;for(;s(e[l],a)>0;)--l}s(e[n],a)===0?Rm(e,n,l):(++l,Rm(e,l,i)),l<=t&&(n=l+1),t<=l&&(i=l-1)}return e}function Rm(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function hNe(e,t,n){if(e=Float64Array.from(rNe(e)),!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return ZA(e);if(t>=1)return JA(e);var i,s=(i-1)*t,a=Math.floor(s),o=JA(d9(e,a).subarray(0,a+1)),l=ZA(e.subarray(a+1));return o+(l-o)*(s-a)}}function mNe(e,t,n=l9){if(!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,s=(i-1)*t,a=Math.floor(s),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(s-a)}}function fNe(e,t,n){e=+e,t=+t,n=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+n;for(var i=-1,s=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(s);++i<s;)a[i]=e+i*n;return a}function is(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function To(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const $S=Symbol("implicit");function L5(){var e=new XA,t=[],n=[],i=$S;function s(a){let o=e.get(a);if(o===void 0){if(i!==$S)return i;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return s.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new XA;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return s},s.range=function(a){return arguments.length?(n=Array.from(a),s):n.slice()},s.unknown=function(a){return arguments.length?(i=a,s):i},s.copy=function(){return L5(t,n).unknown(i)},is.apply(s,arguments),s}function Cp(){var e=L5().unknown(void 0),t=e.domain,n=e.range,i=0,s=1,a,o,l=!1,c=0,d=0,u=.5;delete e.unknown;function h(){var m=t().length,f=s<i,g=f?s:i,p=f?i:s;a=(p-g)/Math.max(1,m-c+d*2),l&&(a=Math.floor(a)),g+=(p-g-a*(m-c))*u,o=a*(1-c),l&&(g=Math.round(g),o=Math.round(o));var v=fNe(m).map(function(y){return g+a*y});return n(f?v.reverse():v)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([i,s]=m,i=+i,s=+s,h()):[i,s]},e.rangeRound=function(m){return[i,s]=m,i=+i,s=+s,l=!0,h()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(m){return arguments.length?(l=!!m,h()):l},e.padding=function(m){return arguments.length?(c=Math.min(1,d=+m),h()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),h()):c},e.paddingOuter=function(m){return arguments.length?(d=+m,h()):d},e.align=function(m){return arguments.length?(u=Math.max(0,Math.min(1,m)),h()):u},e.copy=function(){return Cp(t(),[i,s]).round(l).paddingInner(c).paddingOuter(d).align(u)},is.apply(h(),arguments)}function u9(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return u9(t())},e}function Pf(){return u9(Cp.apply(null,arguments).paddingInner(1))}function U5(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function h9(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Bg(){}var _p=.7,Yy=1/_p,ju="\\s*([+-]?\\d+)\\s*",Tp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pNe=/^#([0-9a-f]{3,8})$/,gNe=new RegExp(`^rgb\\(${ju},${ju},${ju}\\)$`),vNe=new RegExp(`^rgb\\(${va},${va},${va}\\)$`),xNe=new RegExp(`^rgba\\(${ju},${ju},${ju},${Tp}\\)$`),yNe=new RegExp(`^rgba\\(${va},${va},${va},${Tp}\\)$`),bNe=new RegExp(`^hsl\\(${Tp},${va},${va}\\)$`),wNe=new RegExp(`^hsla\\(${Tp},${va},${va},${Tp}\\)$`),eO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};U5(Bg,Pp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tO,formatHex:tO,formatHex8:jNe,formatHsl:NNe,formatRgb:nO,toString:nO});function tO(){return this.rgb().formatHex()}function jNe(){return this.rgb().formatHex8()}function NNe(){return m9(this).formatHsl()}function nO(){return this.rgb().formatRgb()}function Pp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pNe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rO(t):n===3?new Zr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Xv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Xv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gNe.exec(e))?new Zr(t[1],t[2],t[3],1):(t=vNe.exec(e))?new Zr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xNe.exec(e))?Xv(t[1],t[2],t[3],t[4]):(t=yNe.exec(e))?Xv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bNe.exec(e))?aO(t[1],t[2]/100,t[3]/100,1):(t=wNe.exec(e))?aO(t[1],t[2]/100,t[3]/100,t[4]):eO.hasOwnProperty(e)?rO(eO[e]):e==="transparent"?new Zr(NaN,NaN,NaN,0):null}function rO(e){return new Zr(e>>16&255,e>>8&255,e&255,1)}function Xv(e,t,n,i){return i<=0&&(e=t=n=NaN),new Zr(e,t,n,i)}function SNe(e){return e instanceof Bg||(e=Pp(e)),e?(e=e.rgb(),new Zr(e.r,e.g,e.b,e.opacity)):new Zr}function LS(e,t,n,i){return arguments.length===1?SNe(e):new Zr(e,t,n,i??1)}function Zr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}U5(Zr,LS,h9(Bg,{brighter(e){return e=e==null?Yy:Math.pow(Yy,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_p:Math.pow(_p,e),new Zr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zr($c(this.r),$c(this.g),$c(this.b),Ky(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:iO,formatHex:iO,formatHex8:kNe,formatRgb:sO,toString:sO}));function iO(){return`#${yc(this.r)}${yc(this.g)}${yc(this.b)}`}function kNe(){return`#${yc(this.r)}${yc(this.g)}${yc(this.b)}${yc((isNaN(this.opacity)?1:this.opacity)*255)}`}function sO(){const e=Ky(this.opacity);return`${e===1?"rgb(":"rgba("}${$c(this.r)}, ${$c(this.g)}, ${$c(this.b)}${e===1?")":`, ${e})`}`}function Ky(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $c(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yc(e){return e=$c(e),(e<16?"0":"")+e.toString(16)}function aO(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cs(e,t,n,i)}function m9(e){if(e instanceof Cs)return new Cs(e.h,e.s,e.l,e.opacity);if(e instanceof Bg||(e=Pp(e)),!e)return new Cs;if(e instanceof Cs)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,l=a-s,c=(a+s)/2;return l?(t===a?o=(n-i)/l+(n<i)*6:n===a?o=(i-t)/l+2:o=(t-n)/l+4,l/=c<.5?a+s:2-a-s,o*=60):l=c>0&&c<1?0:o,new Cs(o,l,c,e.opacity)}function CNe(e,t,n,i){return arguments.length===1?m9(e):new Cs(e,t,n,i??1)}function Cs(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}U5(Cs,CNe,h9(Bg,{brighter(e){return e=e==null?Yy:Math.pow(Yy,e),new Cs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_p:Math.pow(_p,e),new Cs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new Zr(I1(e>=240?e-240:e+120,s,i),I1(e,s,i),I1(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Cs(oO(this.h),Qv(this.s),Qv(this.l),Ky(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ky(this.opacity);return`${e===1?"hsl(":"hsla("}${oO(this.h)}, ${Qv(this.s)*100}%, ${Qv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oO(e){return e=(e||0)%360,e<0?e+360:e}function Qv(e){return Math.max(0,Math.min(1,e||0))}function I1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const F5=e=>()=>e;function _Ne(e,t){return function(n){return e+n*t}}function TNe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function PNe(e){return(e=+e)==1?f9:function(t,n){return n-t?TNe(t,n,e):F5(isNaN(t)?n:t)}}function f9(e,t){var n=t-e;return n?_Ne(e,n):F5(isNaN(e)?t:e)}const lO=function e(t){var n=PNe(t);function i(s,a){var o=n((s=LS(s)).r,(a=LS(a)).r),l=n(s.g,a.g),c=n(s.b,a.b),d=f9(s.opacity,a.opacity);return function(u){return s.r=o(u),s.g=l(u),s.b=c(u),s.opacity=d(u),s+""}}return i.gamma=e,i}(1);function ENe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),s;return function(a){for(s=0;s<n;++s)i[s]=e[s]*(1-a)+t[s]*a;return i}}function ANe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ONe(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,s=new Array(i),a=new Array(n),o;for(o=0;o<i;++o)s[o]=im(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<i;++o)a[o]=s[o](l);return a}}function INe(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Xy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DNe(e,t){var n={},i={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?n[s]=im(e[s],t[s]):i[s]=t[s];return function(a){for(s in n)i[s]=n[s](a);return i}}var US=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D1=new RegExp(US.source,"g");function MNe(e){return function(){return e}}function RNe(e){return function(t){return e(t)+""}}function $Ne(e,t){var n=US.lastIndex=D1.lastIndex=0,i,s,a,o=-1,l=[],c=[];for(e=e+"",t=t+"";(i=US.exec(e))&&(s=D1.exec(t));)(a=s.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(s=s[0])?l[o]?l[o]+=s:l[++o]=s:(l[++o]=null,c.push({i:o,x:Xy(i,s)})),n=D1.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?c[0]?RNe(c[0].x):MNe(t):(t=c.length,function(d){for(var u=0,h;u<t;++u)l[(h=c[u]).i]=h.x(d);return l.join("")})}function im(e,t){var n=typeof t,i;return t==null||n==="boolean"?F5(t):(n==="number"?Xy:n==="string"?(i=Pp(t))?(t=i,lO):$Ne:t instanceof Pp?lO:t instanceof Date?INe:ANe(t)?ENe:Array.isArray(t)?ONe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DNe:Xy)(e,t)}function B5(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function LNe(e,t){t===void 0&&(t=e,e=im);for(var n=0,i=t.length-1,s=t[0],a=new Array(i<0?0:i);n<i;)a[n]=e(s,s=t[++n]);return function(o){var l=Math.max(0,Math.min(i-1,Math.floor(o*=i)));return a[l](o-l)}}function UNe(e){return function(){return e}}function Qy(e){return+e}var cO=[0,1];function Ir(e){return e}function FS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:UNe(isNaN(t)?NaN:.5)}function FNe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function BNe(e,t,n){var i=e[0],s=e[1],a=t[0],o=t[1];return s<i?(i=FS(s,i),a=n(o,a)):(i=FS(i,s),a=n(a,o)),function(l){return a(i(l))}}function WNe(e,t,n){var i=Math.min(e.length,t.length)-1,s=new Array(i),a=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)s[o]=FS(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var c=Fg(e,l,1,i)-1;return a[c](s[c](l))}}function Wg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tw(){var e=cO,t=cO,n=im,i,s,a,o=Ir,l,c,d;function u(){var m=Math.min(e.length,t.length);return o!==Ir&&(o=FNe(e[0],e[m-1])),l=m>2?WNe:BNe,c=d=null,h}function h(m){return m==null||isNaN(m=+m)?a:(c||(c=l(e.map(i),t,n)))(i(o(m)))}return h.invert=function(m){return o(s((d||(d=l(t,e.map(i),Xy)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,Qy),u()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),u()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=B5,u()},h.clamp=function(m){return arguments.length?(o=m?!0:Ir,u()):o!==Ir},h.interpolate=function(m){return arguments.length?(n=m,u()):n},h.unknown=function(m){return arguments.length?(a=m,h):a},function(m,f){return i=m,s=f,u()}}function W5(){return Tw()(Ir,Ir)}function zNe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function ih(e){return e=Jy(Math.abs(e)),e?e[1]:NaN}function qNe(e,t){return function(n,i){for(var s=n.length,a=[],o=0,l=e[0],c=0;s>0&&l>0&&(c+l+1>i&&(l=Math.max(1,i-c)),a.push(n.substring(s-=l,s+l)),!((c+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function HNe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VNe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ep(e){if(!(t=VNe.exec(e)))throw new Error("invalid format: "+e);var t;return new z5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ep.prototype=z5.prototype;function z5(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}z5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function GNe(e){e:for(var t=e.length,n=1,i=-1,s;n<t;++n)switch(e[n]){case".":i=s=n;break;case"0":i===0&&(i=n),s=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(s+1):e}var p9;function YNe(e,t){var n=Jy(e,t);if(!n)return e+"";var i=n[0],s=n[1],a=s-(p9=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Jy(e,Math.max(0,t+a-1))[0]}function dO(e,t){var n=Jy(e,t);if(!n)return e+"";var i=n[0],s=n[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}const uO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zNe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dO(e*100,t),r:dO,s:YNe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function hO(e){return e}var mO=Array.prototype.map,fO=["y","z","a","f","p","n","Β΅","m","","k","M","G","T","P","E","Z","Y"];function KNe(e){var t=e.grouping===void 0||e.thousands===void 0?hO:qNe(mO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?hO:HNe(mO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"β":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(h){h=Ep(h);var m=h.fill,f=h.align,g=h.sign,p=h.symbol,v=h.zero,y=h.width,x=h.comma,b=h.precision,w=h.trim,N=h.type;N==="n"?(x=!0,N="g"):uO[N]||(b===void 0&&(b=12),w=!0,N="g"),(v||m==="0"&&f==="=")&&(v=!0,m="0",f="=");var S=p==="$"?n:p==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",k=p==="$"?i:/[%p]/.test(N)?o:"",_=uO[N],D=/[defgprs%]/.test(N);b=b===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function A(E){var T=S,M=k,C,P,I;if(N==="c")M=_(E)+M,E="";else{E=+E;var R=E<0||1/E<0;if(E=isNaN(E)?c:_(Math.abs(E),b),w&&(E=GNe(E)),R&&+E==0&&g!=="+"&&(R=!1),T=(R?g==="("?g:l:g==="-"||g==="("?"":g)+T,M=(N==="s"?fO[8+p9/3]:"")+M+(R&&g==="("?")":""),D){for(C=-1,P=E.length;++C<P;)if(I=E.charCodeAt(C),48>I||I>57){M=(I===46?s+E.slice(C+1):E.slice(C))+M,E=E.slice(0,C);break}}}x&&!v&&(E=t(E,1/0));var O=T.length+E.length+M.length,$=O<y?new Array(y-O+1).join(m):"";switch(x&&v&&(E=t($+E,$.length?y-M.length:1/0),$=""),f){case"<":E=T+E+M+$;break;case"=":E=T+$+E+M;break;case"^":E=$.slice(0,O=$.length>>1)+T+E+M+$.slice(O);break;default:E=$+T+E+M;break}return a(E)}return A.toString=function(){return h+""},A}function u(h,m){var f=d((h=Ep(h),h.type="f",h)),g=Math.max(-8,Math.min(8,Math.floor(ih(m)/3)))*3,p=Math.pow(10,-g),v=fO[8+g/3];return function(y){return f(p*y)+v}}return{format:d,formatPrefix:u}}var Jv,q5,g9;XNe({thousands:",",grouping:[3],currency:["$",""]});function XNe(e){return Jv=KNe(e),q5=Jv.format,g9=Jv.formatPrefix,Jv}function QNe(e){return Math.max(0,-ih(Math.abs(e)))}function JNe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ih(t)/3)))*3-ih(Math.abs(e)))}function ZNe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ih(t)-ih(e))+1}function v9(e,t,n,i){var s=RS(e,t,n),a;switch(i=Ep(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(a=JNe(s,o))&&(i.precision=a),g9(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=ZNe(s,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=QNe(s))&&(i.precision=a-(i.type==="%")*2);break}}return q5(i)}function Yl(e){var t=e.domain;return e.ticks=function(n){var i=t();return DS(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var s=t();return v9(s[0],s[s.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),s=0,a=i.length-1,o=i[s],l=i[a],c,d,u=10;for(l<o&&(d=o,o=l,l=d,d=s,s=a,a=d);u-- >0;){if(d=MS(o,l,n),d===c)return i[s]=o,i[a]=l,t(i);if(d>0)o=Math.floor(o/d)*d,l=Math.ceil(l/d)*d;else if(d<0)o=Math.ceil(o*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function sh(){var e=W5();return e.copy=function(){return Wg(e,sh())},is.apply(e,arguments),Yl(e)}function x9(e){var t;function n(i){return i==null||isNaN(i=+i)?t:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(e=Array.from(i,Qy),n):e.slice()},n.unknown=function(i){return arguments.length?(t=i,n):t},n.copy=function(){return x9(e).unknown(t)},e=arguments.length?Array.from(e,Qy):[0,1],Yl(n)}function y9(e,t){e=e.slice();var n=0,i=e.length-1,s=e[n],a=e[i],o;return a<s&&(o=n,n=i,i=o,o=s,s=a,a=o),e[n]=t.floor(s),e[i]=t.ceil(a),e}function pO(e){return Math.log(e)}function gO(e){return Math.exp(e)}function e2e(e){return-Math.log(-e)}function t2e(e){return-Math.exp(-e)}function n2e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function r2e(e){return e===10?n2e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function i2e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vO(e){return(t,n)=>-e(-t,n)}function H5(e){const t=e(pO,gO),n=t.domain;let i=10,s,a;function o(){return s=i2e(i),a=r2e(i),n()[0]<0?(s=vO(s),a=vO(a),e(e2e,t2e)):e(pO,gO),t}return t.base=function(l){return arguments.length?(i=+l,o()):i},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const c=n();let d=c[0],u=c[c.length-1];const h=u<d;h&&([d,u]=[u,d]);let m=s(d),f=s(u),g,p;const v=l==null?10:+l;let y=[];if(!(i%1)&&f-m<v){if(m=Math.floor(m),f=Math.ceil(f),d>0){for(;m<=f;++m)for(g=1;g<i;++g)if(p=m<0?g/a(-m):g*a(m),!(p<d)){if(p>u)break;y.push(p)}}else for(;m<=f;++m)for(g=i-1;g>=1;--g)if(p=m>0?g/a(-m):g*a(m),!(p<d)){if(p>u)break;y.push(p)}y.length*2<v&&(y=DS(d,u,v))}else y=DS(m,f,Math.min(f-m,v)).map(a);return h?y.reverse():y},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=i===10?"s":","),typeof c!="function"&&(!(i%1)&&(c=Ep(c)).precision==null&&(c.trim=!0),c=q5(c)),l===1/0)return c;const d=Math.max(1,i*l/t.ticks().length);return u=>{let h=u/a(Math.round(s(u)));return h*i<i-.5&&(h*=i),h<=d?c(u):""}},t.nice=()=>n(y9(n(),{floor:l=>a(Math.floor(s(l))),ceil:l=>a(Math.ceil(s(l)))})),t}function b9(){const e=H5(Tw()).domain([1,10]);return e.copy=()=>Wg(e,b9()).base(e.base()),is.apply(e,arguments),e}function xO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function yO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function V5(e){var t=1,n=e(xO(t),yO(t));return n.constant=function(i){return arguments.length?e(xO(t=+i),yO(t)):t},Yl(n)}function w9(){var e=V5(Tw());return e.copy=function(){return Wg(e,w9()).constant(e.constant())},is.apply(e,arguments)}function bO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function s2e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function a2e(e){return e<0?-e*e:e*e}function G5(e){var t=e(Ir,Ir),n=1;function i(){return n===1?e(Ir,Ir):n===.5?e(s2e,a2e):e(bO(n),bO(1/n))}return t.exponent=function(s){return arguments.length?(n=+s,i()):n},Yl(t)}function Y5(){var e=G5(Tw());return e.copy=function(){return Wg(e,Y5()).exponent(e.exponent())},is.apply(e,arguments),e}function o2e(){return Y5.apply(null,arguments).exponent(.5)}function wO(e){return Math.sign(e)*e*e}function l2e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function j9(){var e=W5(),t=[0,1],n=!1,i;function s(a){var o=l2e(e(a));return isNaN(o)?i:n?Math.round(o):o}return s.invert=function(a){return e.invert(wO(a))},s.domain=function(a){return arguments.length?(e.domain(a),s):e.domain()},s.range=function(a){return arguments.length?(e.range((t=Array.from(a,Qy)).map(wO)),s):t.slice()},s.rangeRound=function(a){return s.range(a).round(!0)},s.round=function(a){return arguments.length?(n=!!a,s):n},s.clamp=function(a){return arguments.length?(e.clamp(a),s):e.clamp()},s.unknown=function(a){return arguments.length?(i=a,s):i},s.copy=function(){return j9(e.domain(),t).round(n).clamp(e.clamp()).unknown(i)},is.apply(s,arguments),Yl(s)}function N9(){var e=[],t=[],n=[],i;function s(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=mNe(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?i:t[Fg(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Sl),s()},a.range=function(o){return arguments.length?(t=Array.from(o),s()):t.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.quantiles=function(){return n.slice()},a.copy=function(){return N9().domain(e).range(t).unknown(i)},is.apply(a,arguments)}function S9(){var e=0,t=1,n=1,i=[.5],s=[0,1],a;function o(c){return c!=null&&c<=c?s[Fg(i,c,0,n)]:a}function l(){var c=-1;for(i=new Array(n);++c<n;)i[c]=((c+1)*t-(c-n)*e)/(n+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(n=(s=Array.from(c)).length-1,l()):s.slice()},o.invertExtent=function(c){var d=s.indexOf(c);return d<0?[NaN,NaN]:d<1?[e,i[0]]:d>=n?[i[n-1],t]:[i[d-1],i[d]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return i.slice()},o.copy=function(){return S9().domain([e,t]).range(s).unknown(a)},is.apply(Yl(o),arguments)}function k9(){var e=[.5],t=[0,1],n,i=1;function s(a){return a!=null&&a<=a?t[Fg(e,a,0,i)]:n}return s.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,t.length-1),s):e.slice()},s.range=function(a){return arguments.length?(t=Array.from(a),i=Math.min(e.length,t.length-1),s):t.slice()},s.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},s.unknown=function(a){return arguments.length?(n=a,s):n},s.copy=function(){return k9().domain(e).range(t).unknown(n)},is.apply(s,arguments)}const M1=new Date,R1=new Date;function Wn(e,t,n,i){function s(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(e(a=new Date(+a)),a),s.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),s.round=a=>{const o=s(a),l=s.ceil(a);return a-o<l-a?o:l},s.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),s.range=(a,o,l)=>{const c=[];if(a=s.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return c;let d;do c.push(d=new Date(+a)),t(a,l),e(a);while(d<a&&a<o);return c},s.filter=a=>Wn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(s.count=(a,o)=>(M1.setTime(+a),R1.setTime(+o),e(M1),e(R1),Math.floor(n(M1,R1))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(i?o=>i(o)%a===0:o=>s.count(0,o)%a===0):s)),s}const Zy=Wn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zy);Zy.range;const to=1e3,qi=to*60,no=qi*60,yo=no*24,K5=yo*7,jO=yo*30,$1=yo*365,bc=Wn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*to)},(e,t)=>(t-e)/to,e=>e.getUTCSeconds());bc.range;const X5=Wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*to)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getMinutes());X5.range;const Q5=Wn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getUTCMinutes());Q5.range;const J5=Wn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*to-e.getMinutes()*qi)},(e,t)=>{e.setTime(+e+t*no)},(e,t)=>(t-e)/no,e=>e.getHours());J5.range;const Z5=Wn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*no)},(e,t)=>(t-e)/no,e=>e.getUTCHours());Z5.range;const zg=Wn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qi)/yo,e=>e.getDate()-1);zg.range;const Pw=Wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yo,e=>e.getUTCDate()-1);Pw.range;const C9=Wn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yo,e=>Math.floor(e/yo));C9.range;function yd(e){return Wn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qi)/K5)}const Ew=yd(0),e0=yd(1),c2e=yd(2),d2e=yd(3),ah=yd(4),u2e=yd(5),h2e=yd(6);Ew.range;e0.range;c2e.range;d2e.range;ah.range;u2e.range;h2e.range;function bd(e){return Wn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/K5)}const Aw=bd(0),t0=bd(1),m2e=bd(2),f2e=bd(3),oh=bd(4),p2e=bd(5),g2e=bd(6);Aw.range;t0.range;m2e.range;f2e.range;oh.range;p2e.range;g2e.range;const e3=Wn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());e3.range;const t3=Wn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());t3.range;const bo=Wn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});bo.range;const wo=Wn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});wo.range;function _9(e,t,n,i,s,a){const o=[[bc,1,to],[bc,5,5*to],[bc,15,15*to],[bc,30,30*to],[a,1,qi],[a,5,5*qi],[a,15,15*qi],[a,30,30*qi],[s,1,no],[s,3,3*no],[s,6,6*no],[s,12,12*no],[i,1,yo],[i,2,2*yo],[n,1,K5],[t,1,jO],[t,3,3*jO],[e,1,$1]];function l(d,u,h){const m=u<d;m&&([d,u]=[u,d]);const f=h&&typeof h.range=="function"?h:c(d,u,h),g=f?f.range(d,+u+1):[];return m?g.reverse():g}function c(d,u,h){const m=Math.abs(u-d)/h,f=$5(([,,v])=>v).right(o,m);if(f===o.length)return e.every(RS(d/$1,u/$1,h));if(f===0)return Zy.every(Math.max(RS(d,u,h),1));const[g,p]=o[m/o[f-1][2]<o[f][2]/m?f-1:f];return g.every(p)}return[l,c]}const[v2e,x2e]=_9(wo,t3,Aw,C9,Z5,Q5),[y2e,b2e]=_9(bo,e3,Ew,zg,J5,X5);function L1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function U1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $m(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function w2e(e){var t=e.dateTime,n=e.date,i=e.time,s=e.periods,a=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,d=Lm(s),u=Um(s),h=Lm(a),m=Um(a),f=Lm(o),g=Um(o),p=Lm(l),v=Um(l),y=Lm(c),x=Um(c),b={a:R,A:O,b:$,B:q,c:null,d:TO,e:TO,f:q2e,g:eSe,G:nSe,H:B2e,I:W2e,j:z2e,L:T9,m:H2e,M:V2e,p:z,q:J,Q:AO,s:OO,S:G2e,u:Y2e,U:K2e,V:X2e,w:Q2e,W:J2e,x:null,X:null,y:Z2e,Y:tSe,Z:rSe,"%":EO},w={a:ne,A:pe,b:xe,B:De,c:null,d:PO,e:PO,f:oSe,g:vSe,G:ySe,H:iSe,I:sSe,j:aSe,L:E9,m:lSe,M:cSe,p:de,q:Pe,Q:AO,s:OO,S:dSe,u:uSe,U:hSe,V:mSe,w:fSe,W:pSe,x:null,X:null,y:gSe,Y:xSe,Z:bSe,"%":EO},N={a:A,A:E,b:T,B:M,c:C,d:CO,e:CO,f:$2e,g:kO,G:SO,H:_O,I:_O,j:I2e,L:R2e,m:O2e,M:D2e,p:D,q:A2e,Q:U2e,s:F2e,S:M2e,u:C2e,U:_2e,V:T2e,w:k2e,W:P2e,x:P,X:I,y:kO,Y:SO,Z:E2e,"%":L2e};b.x=S(n,b),b.X=S(i,b),b.c=S(t,b),w.x=S(n,w),w.X=S(i,w),w.c=S(t,w);function S(ie,me){return function(ve){var K=[],Ve=-1,Le=0,st=ie.length,yt,Dt,sn;for(ve instanceof Date||(ve=new Date(+ve));++Ve<st;)ie.charCodeAt(Ve)===37&&(K.push(ie.slice(Le,Ve)),(Dt=NO[yt=ie.charAt(++Ve)])!=null?yt=ie.charAt(++Ve):Dt=yt==="e"?" ":"0",(sn=me[yt])&&(yt=sn(ve,Dt)),K.push(yt),Le=Ve+1);return K.push(ie.slice(Le,Ve)),K.join("")}}function k(ie,me){return function(ve){var K=$m(1900,void 0,1),Ve=_(K,ie,ve+="",0),Le,st;if(Ve!=ve.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(me&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(Le=U1($m(K.y,0,1)),st=Le.getUTCDay(),Le=st>4||st===0?t0.ceil(Le):t0(Le),Le=Pw.offset(Le,(K.V-1)*7),K.y=Le.getUTCFullYear(),K.m=Le.getUTCMonth(),K.d=Le.getUTCDate()+(K.w+6)%7):(Le=L1($m(K.y,0,1)),st=Le.getDay(),Le=st>4||st===0?e0.ceil(Le):e0(Le),Le=zg.offset(Le,(K.V-1)*7),K.y=Le.getFullYear(),K.m=Le.getMonth(),K.d=Le.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),st="Z"in K?U1($m(K.y,0,1)).getUTCDay():L1($m(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(st+5)%7:K.w+K.U*7-(st+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,U1(K)):L1(K)}}function _(ie,me,ve,K){for(var Ve=0,Le=me.length,st=ve.length,yt,Dt;Ve<Le;){if(K>=st)return-1;if(yt=me.charCodeAt(Ve++),yt===37){if(yt=me.charAt(Ve++),Dt=N[yt in NO?me.charAt(Ve++):yt],!Dt||(K=Dt(ie,ve,K))<0)return-1}else if(yt!=ve.charCodeAt(K++))return-1}return K}function D(ie,me,ve){var K=d.exec(me.slice(ve));return K?(ie.p=u.get(K[0].toLowerCase()),ve+K[0].length):-1}function A(ie,me,ve){var K=f.exec(me.slice(ve));return K?(ie.w=g.get(K[0].toLowerCase()),ve+K[0].length):-1}function E(ie,me,ve){var K=h.exec(me.slice(ve));return K?(ie.w=m.get(K[0].toLowerCase()),ve+K[0].length):-1}function T(ie,me,ve){var K=y.exec(me.slice(ve));return K?(ie.m=x.get(K[0].toLowerCase()),ve+K[0].length):-1}function M(ie,me,ve){var K=p.exec(me.slice(ve));return K?(ie.m=v.get(K[0].toLowerCase()),ve+K[0].length):-1}function C(ie,me,ve){return _(ie,t,me,ve)}function P(ie,me,ve){return _(ie,n,me,ve)}function I(ie,me,ve){return _(ie,i,me,ve)}function R(ie){return o[ie.getDay()]}function O(ie){return a[ie.getDay()]}function $(ie){return c[ie.getMonth()]}function q(ie){return l[ie.getMonth()]}function z(ie){return s[+(ie.getHours()>=12)]}function J(ie){return 1+~~(ie.getMonth()/3)}function ne(ie){return o[ie.getUTCDay()]}function pe(ie){return a[ie.getUTCDay()]}function xe(ie){return c[ie.getUTCMonth()]}function De(ie){return l[ie.getUTCMonth()]}function de(ie){return s[+(ie.getUTCHours()>=12)]}function Pe(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var me=S(ie+="",b);return me.toString=function(){return ie},me},parse:function(ie){var me=k(ie+="",!1);return me.toString=function(){return ie},me},utcFormat:function(ie){var me=S(ie+="",w);return me.toString=function(){return ie},me},utcParse:function(ie){var me=k(ie+="",!0);return me.toString=function(){return ie},me}}}var NO={"-":"",_:" ",0:"0"},nr=/^\s*\d+/,j2e=/^%/,N2e=/[\\^$*+?|[\]().{}]/g;function St(e,t,n){var i=e<0?"-":"",s=(i?-e:e)+"",a=s.length;return i+(a<n?new Array(n-a+1).join(t)+s:s)}function S2e(e){return e.replace(N2e,"\\$&")}function Lm(e){return new RegExp("^(?:"+e.map(S2e).join("|")+")","i")}function Um(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function k2e(e,t,n){var i=nr.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function C2e(e,t,n){var i=nr.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function _2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function T2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function P2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function SO(e,t,n){var i=nr.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function kO(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function E2e(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function A2e(e,t,n){var i=nr.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function O2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function CO(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function I2e(e,t,n){var i=nr.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function _O(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function D2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function M2e(e,t,n){var i=nr.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function R2e(e,t,n){var i=nr.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function $2e(e,t,n){var i=nr.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function L2e(e,t,n){var i=j2e.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function U2e(e,t,n){var i=nr.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function F2e(e,t,n){var i=nr.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function TO(e,t){return St(e.getDate(),t,2)}function B2e(e,t){return St(e.getHours(),t,2)}function W2e(e,t){return St(e.getHours()%12||12,t,2)}function z2e(e,t){return St(1+zg.count(bo(e),e),t,3)}function T9(e,t){return St(e.getMilliseconds(),t,3)}function q2e(e,t){return T9(e,t)+"000"}function H2e(e,t){return St(e.getMonth()+1,t,2)}function V2e(e,t){return St(e.getMinutes(),t,2)}function G2e(e,t){return St(e.getSeconds(),t,2)}function Y2e(e){var t=e.getDay();return t===0?7:t}function K2e(e,t){return St(Ew.count(bo(e)-1,e),t,2)}function P9(e){var t=e.getDay();return t>=4||t===0?ah(e):ah.ceil(e)}function X2e(e,t){return e=P9(e),St(ah.count(bo(e),e)+(bo(e).getDay()===4),t,2)}function Q2e(e){return e.getDay()}function J2e(e,t){return St(e0.count(bo(e)-1,e),t,2)}function Z2e(e,t){return St(e.getFullYear()%100,t,2)}function eSe(e,t){return e=P9(e),St(e.getFullYear()%100,t,2)}function tSe(e,t){return St(e.getFullYear()%1e4,t,4)}function nSe(e,t){var n=e.getDay();return e=n>=4||n===0?ah(e):ah.ceil(e),St(e.getFullYear()%1e4,t,4)}function rSe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function PO(e,t){return St(e.getUTCDate(),t,2)}function iSe(e,t){return St(e.getUTCHours(),t,2)}function sSe(e,t){return St(e.getUTCHours()%12||12,t,2)}function aSe(e,t){return St(1+Pw.count(wo(e),e),t,3)}function E9(e,t){return St(e.getUTCMilliseconds(),t,3)}function oSe(e,t){return E9(e,t)+"000"}function lSe(e,t){return St(e.getUTCMonth()+1,t,2)}function cSe(e,t){return St(e.getUTCMinutes(),t,2)}function dSe(e,t){return St(e.getUTCSeconds(),t,2)}function uSe(e){var t=e.getUTCDay();return t===0?7:t}function hSe(e,t){return St(Aw.count(wo(e)-1,e),t,2)}function A9(e){var t=e.getUTCDay();return t>=4||t===0?oh(e):oh.ceil(e)}function mSe(e,t){return e=A9(e),St(oh.count(wo(e),e)+(wo(e).getUTCDay()===4),t,2)}function fSe(e){return e.getUTCDay()}function pSe(e,t){return St(t0.count(wo(e)-1,e),t,2)}function gSe(e,t){return St(e.getUTCFullYear()%100,t,2)}function vSe(e,t){return e=A9(e),St(e.getUTCFullYear()%100,t,2)}function xSe(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function ySe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oh(e):oh.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function bSe(){return"+0000"}function EO(){return"%"}function AO(e){return+e}function OO(e){return Math.floor(+e/1e3)}var $d,O9,I9;wSe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wSe(e){return $d=w2e(e),O9=$d.format,$d.parse,I9=$d.utcFormat,$d.utcParse,$d}function jSe(e){return new Date(e)}function NSe(e){return e instanceof Date?+e:+new Date(+e)}function n3(e,t,n,i,s,a,o,l,c,d){var u=W5(),h=u.invert,m=u.domain,f=d(".%L"),g=d(":%S"),p=d("%I:%M"),v=d("%I %p"),y=d("%a %d"),x=d("%b %d"),b=d("%B"),w=d("%Y");function N(S){return(c(S)<S?f:l(S)<S?g:o(S)<S?p:a(S)<S?v:i(S)<S?s(S)<S?y:x:n(S)<S?b:w)(S)}return u.invert=function(S){return new Date(h(S))},u.domain=function(S){return arguments.length?m(Array.from(S,NSe)):m().map(jSe)},u.ticks=function(S){var k=m();return e(k[0],k[k.length-1],S??10)},u.tickFormat=function(S,k){return k==null?N:d(k)},u.nice=function(S){var k=m();return(!S||typeof S.range!="function")&&(S=t(k[0],k[k.length-1],S??10)),S?m(y9(k,S)):u},u.copy=function(){return Wg(u,n3(e,t,n,i,s,a,o,l,c,d))},u}function SSe(){return is.apply(n3(y2e,b2e,bo,e3,Ew,zg,J5,X5,bc,O9).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kSe(){return is.apply(n3(v2e,x2e,wo,t3,Aw,Pw,Z5,Q5,bc,I9).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ow(){var e=0,t=1,n,i,s,a,o=Ir,l=!1,c;function d(h){return h==null||isNaN(h=+h)?c:o(s===0?.5:(h=(a(h)-n)*s,l?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([e,t]=h,n=a(e=+e),i=a(t=+t),s=n===i?0:1/(i-n),d):[e,t]},d.clamp=function(h){return arguments.length?(l=!!h,d):l},d.interpolator=function(h){return arguments.length?(o=h,d):o};function u(h){return function(m){var f,g;return arguments.length?([f,g]=m,o=h(f,g),d):[o(0),o(1)]}}return d.range=u(im),d.rangeRound=u(B5),d.unknown=function(h){return arguments.length?(c=h,d):c},function(h){return a=h,n=h(e),i=h(t),s=n===i?0:1/(i-n),d}}function Kl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function D9(){var e=Yl(Ow()(Ir));return e.copy=function(){return Kl(e,D9())},To.apply(e,arguments)}function M9(){var e=H5(Ow()).domain([1,10]);return e.copy=function(){return Kl(e,M9()).base(e.base())},To.apply(e,arguments)}function R9(){var e=V5(Ow());return e.copy=function(){return Kl(e,R9()).constant(e.constant())},To.apply(e,arguments)}function r3(){var e=G5(Ow());return e.copy=function(){return Kl(e,r3()).exponent(e.exponent())},To.apply(e,arguments)}function CSe(){return r3.apply(null,arguments).exponent(.5)}function $9(){var e=[],t=Ir;function n(i){if(i!=null&&!isNaN(i=+i))return t((Fg(e,i,1)-1)/(e.length-1))}return n.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Sl),n},n.interpolator=function(i){return arguments.length?(t=i,n):t},n.range=function(){return e.map((i,s)=>t(s/(e.length-1)))},n.quantiles=function(i){return Array.from({length:i+1},(s,a)=>hNe(e,a/i))},n.copy=function(){return $9(t).domain(e)},To.apply(n,arguments)}function Iw(){var e=0,t=.5,n=1,i=1,s,a,o,l,c,d=Ir,u,h=!1,m;function f(p){return isNaN(p=+p)?m:(p=.5+((p=+u(p))-a)*(i*p<i*a?l:c),d(h?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t,n]=p,s=u(e=+e),a=u(t=+t),o=u(n=+n),l=s===a?0:.5/(a-s),c=a===o?0:.5/(o-a),i=a<s?-1:1,f):[e,t,n]},f.clamp=function(p){return arguments.length?(h=!!p,f):h},f.interpolator=function(p){return arguments.length?(d=p,f):d};function g(p){return function(v){var y,x,b;return arguments.length?([y,x,b]=v,d=LNe(p,[y,x,b]),f):[d(0),d(.5),d(1)]}}return f.range=g(im),f.rangeRound=g(B5),f.unknown=function(p){return arguments.length?(m=p,f):m},function(p){return u=p,s=p(e),a=p(t),o=p(n),l=s===a?0:.5/(a-s),c=a===o?0:.5/(o-a),i=a<s?-1:1,f}}function L9(){var e=Yl(Iw()(Ir));return e.copy=function(){return Kl(e,L9())},To.apply(e,arguments)}function U9(){var e=H5(Iw()).domain([.1,1,10]);return e.copy=function(){return Kl(e,U9()).base(e.base())},To.apply(e,arguments)}function F9(){var e=V5(Iw());return e.copy=function(){return Kl(e,F9()).constant(e.constant())},To.apply(e,arguments)}function i3(){var e=G5(Iw());return e.copy=function(){return Kl(e,i3()).exponent(e.exponent())},To.apply(e,arguments)}function _Se(){return i3.apply(null,arguments).exponent(.5)}const IO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Cp,scaleDiverging:L9,scaleDivergingLog:U9,scaleDivergingPow:i3,scaleDivergingSqrt:_Se,scaleDivergingSymlog:F9,scaleIdentity:x9,scaleImplicit:$S,scaleLinear:sh,scaleLog:b9,scaleOrdinal:L5,scalePoint:Pf,scalePow:Y5,scaleQuantile:N9,scaleQuantize:S9,scaleRadial:j9,scaleSequential:D9,scaleSequentialLog:M9,scaleSequentialPow:r3,scaleSequentialQuantile:$9,scaleSequentialSqrt:CSe,scaleSequentialSymlog:R9,scaleSqrt:o2e,scaleSymlog:w9,scaleThreshold:k9,scaleTime:SSe,scaleUtc:kSe,tickFormat:v9},Symbol.toStringTag,{value:"Module"}));var TSe=Kh;function PSe(e,t,n){for(var i=-1,s=e.length;++i<s;){var a=e[i],o=t(a);if(o!=null&&(l===void 0?o===o&&!TSe(o):n(o,l)))var l=o,c=a}return c}var Dw=PSe;function ESe(e,t){return e>t}var B9=ESe,ASe=Dw,OSe=B9,ISe=rm;function DSe(e){return e&&e.length?ASe(e,ISe,OSe):void 0}var MSe=DSe;const Mw=jt(MSe);function RSe(e,t){return e<t}var W9=RSe,$Se=Dw,LSe=W9,USe=rm;function FSe(e){return e&&e.length?$Se(e,USe,LSe):void 0}var BSe=FSe;const Rw=jt(BSe);var WSe=x5,zSe=Pa,qSe=X7,HSe=ui;function VSe(e,t){var n=HSe(e)?WSe:qSe;return n(e,zSe(t))}var GSe=VSe,YSe=Y7,KSe=GSe;function XSe(e,t){return YSe(KSe(e,t),1)}var QSe=XSe;const JSe=jt(QSe);var ZSe=I5;function eke(e,t){return ZSe(e,t)}var tke=eke;const qg=jt(tke);var sm=1e9,nke={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a3,tn=!0,es="[DecimalError] ",Lc=es+"Invalid argument: ",s3=es+"Exponent out of range: ",am=Math.floor,dc=Math.pow,rke=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,bi,Gn=1e7,Yt=7,z9=9007199254740991,n0=am(z9/Yt),Te={};Te.absoluteValue=Te.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Te.comparedTo=Te.cmp=function(e){var t,n,i,s,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(i=a.d.length,s=e.d.length,t=0,n=i<s?i:s;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return i===s?0:i>s^a.s<0?1:-1};Te.decimalPlaces=Te.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Yt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Te.dividedBy=Te.div=function(e){return oo(this,new this.constructor(e))};Te.dividedToIntegerBy=Te.idiv=function(e){var t=this,n=t.constructor;return $t(oo(t,new n(e),0,1),n.precision)};Te.equals=Te.eq=function(e){return!this.cmp(e)};Te.exponent=function(){return On(this)};Te.greaterThan=Te.gt=function(e){return this.cmp(e)>0};Te.greaterThanOrEqualTo=Te.gte=function(e){return this.cmp(e)>=0};Te.isInteger=Te.isint=function(){return this.e>this.d.length-2};Te.isNegative=Te.isneg=function(){return this.s<0};Te.isPositive=Te.ispos=function(){return this.s>0};Te.isZero=function(){return this.s===0};Te.lessThan=Te.lt=function(e){return this.cmp(e)<0};Te.lessThanOrEqualTo=Te.lte=function(e){return this.cmp(e)<1};Te.logarithm=Te.log=function(e){var t,n=this,i=n.constructor,s=i.precision,a=s+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(bi))throw Error(es+"NaN");if(n.s<1)throw Error(es+(n.s?"NaN":"-Infinity"));return n.eq(bi)?new i(0):(tn=!1,t=oo(Ap(n,a),Ap(e,a),a),tn=!0,$t(t,s))};Te.minus=Te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?V9(t,e):q9(t,(e.s=-e.s,e))};Te.modulo=Te.mod=function(e){var t,n=this,i=n.constructor,s=i.precision;if(e=new i(e),!e.s)throw Error(es+"NaN");return n.s?(tn=!1,t=oo(n,e,0,1).times(e),tn=!0,n.minus(t)):$t(new i(n),s)};Te.naturalExponential=Te.exp=function(){return H9(this)};Te.naturalLogarithm=Te.ln=function(){return Ap(this)};Te.negated=Te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Te.plus=Te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?q9(t,e):V9(t,(e.s=-e.s,e))};Te.precision=Te.sd=function(e){var t,n,i,s=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Lc+e);if(t=On(s)+1,i=s.d.length-1,n=i*Yt+1,i=s.d[i],i){for(;i%10==0;i/=10)n--;for(i=s.d[0];i>=10;i/=10)n++}return e&&t>n?t:n};Te.squareRoot=Te.sqrt=function(){var e,t,n,i,s,a,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(es+"NaN")}for(e=On(l),tn=!1,s=Math.sqrt(+l),s==0||s==1/0?(t=da(l.d),(t.length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=am((e+1)/2)-(e<0||e%2),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),i=new c(t)):i=new c(s.toString()),n=c.precision,s=o=n+3;;)if(a=i,i=a.plus(oo(l,a,o+2)).times(.5),da(a.d).slice(0,o)===(t=da(i.d)).slice(0,o)){if(t=t.slice(o-3,o+1),s==o&&t=="4999"){if($t(a,n+1,0),a.times(a).eq(l)){i=a;break}}else if(t!="9999")break;o+=4}return tn=!0,$t(i,n)};Te.times=Te.mul=function(e){var t,n,i,s,a,o,l,c,d,u=this,h=u.constructor,m=u.d,f=(e=new h(e)).d;if(!u.s||!e.s)return new h(0);for(e.s*=u.s,n=u.e+e.e,c=m.length,d=f.length,c<d&&(a=m,m=f,f=a,o=c,c=d,d=o),a=[],o=c+d,i=o;i--;)a.push(0);for(i=d;--i>=0;){for(t=0,s=c+i;s>i;)l=a[s]+f[i]*m[s-i-1]+t,a[s--]=l%Gn|0,t=l/Gn|0;a[s]=(a[s]+t)%Gn|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,tn?$t(e,h.precision):e};Te.toDecimalPlaces=Te.todp=function(e,t){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(Na(e,0,sm),t===void 0?t=i.rounding:Na(t,0,8),$t(n,e+On(n)+1,t))};Te.toExponential=function(e,t){var n,i=this,s=i.constructor;return e===void 0?n=Qc(i,!0):(Na(e,0,sm),t===void 0?t=s.rounding:Na(t,0,8),i=$t(new s(i),e+1,t),n=Qc(i,!0,e+1)),n};Te.toFixed=function(e,t){var n,i,s=this,a=s.constructor;return e===void 0?Qc(s):(Na(e,0,sm),t===void 0?t=a.rounding:Na(t,0,8),i=$t(new a(s),e+On(s)+1,t),n=Qc(i.abs(),!1,e+On(i)+1),s.isneg()&&!s.isZero()?"-"+n:n)};Te.toInteger=Te.toint=function(){var e=this,t=e.constructor;return $t(new t(e),On(e)+1,t.rounding)};Te.toNumber=function(){return+this};Te.toPower=Te.pow=function(e){var t,n,i,s,a,o,l=this,c=l.constructor,d=12,u=+(e=new c(e));if(!e.s)return new c(bi);if(l=new c(l),!l.s){if(e.s<1)throw Error(es+"Infinity");return l}if(l.eq(bi))return l;if(i=c.precision,e.eq(bi))return $t(l,i);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=u<0?-u:u)<=z9){for(s=new c(bi),t=Math.ceil(i/Yt+4),tn=!1;n%2&&(s=s.times(l),MO(s.d,t)),n=am(n/2),n!==0;)l=l.times(l),MO(l.d,t);return tn=!0,e.s<0?new c(bi).div(s):$t(s,i)}}else if(a<0)throw Error(es+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,tn=!1,s=e.times(Ap(l,i+d)),tn=!0,s=H9(s),s.s=a,s};Te.toPrecision=function(e,t){var n,i,s=this,a=s.constructor;return e===void 0?(n=On(s),i=Qc(s,n<=a.toExpNeg||n>=a.toExpPos)):(Na(e,1,sm),t===void 0?t=a.rounding:Na(t,0,8),s=$t(new a(s),e,t),n=On(s),i=Qc(s,e<=n||n<=a.toExpNeg,e)),i};Te.toSignificantDigits=Te.tosd=function(e,t){var n=this,i=n.constructor;return e===void 0?(e=i.precision,t=i.rounding):(Na(e,1,sm),t===void 0?t=i.rounding:Na(t,0,8)),$t(new i(n),e,t)};Te.toString=Te.valueOf=Te.val=Te.toJSON=Te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=On(e),n=e.constructor;return Qc(e,t<=n.toExpNeg||t>=n.toExpPos)};function q9(e,t){var n,i,s,a,o,l,c,d,u=e.constructor,h=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),tn?$t(t,h):t;if(c=e.d,d=t.d,o=e.e,s=t.e,c=c.slice(),a=o-s,a){for(a<0?(i=c,a=-a,l=d.length):(i=d,s=o,l=c.length),o=Math.ceil(h/Yt),l=o>l?o+1:l+1,a>l&&(a=l,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(l=c.length,a=d.length,l-a<0&&(a=l,i=d,d=c,c=i),n=0;a;)n=(c[--a]=c[a]+d[a]+n)/Gn|0,c[a]%=Gn;for(n&&(c.unshift(n),++s),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=s,tn?$t(t,h):t}function Na(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Lc+e)}function da(e){var t,n,i,s=e.length-1,a="",o=e[0];if(s>0){for(a+=o,t=1;t<s;t++)i=e[t]+"",n=Yt-i.length,n&&(a+=Wo(n)),a+=i;o=e[t],i=o+"",n=Yt-i.length,n&&(a+=Wo(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var oo=function(){function e(i,s){var a,o=0,l=i.length;for(i=i.slice();l--;)a=i[l]*s+o,i[l]=a%Gn|0,o=a/Gn|0;return o&&i.unshift(o),i}function t(i,s,a,o){var l,c;if(a!=o)c=a>o?1:-1;else for(l=c=0;l<a;l++)if(i[l]!=s[l]){c=i[l]>s[l]?1:-1;break}return c}function n(i,s,a){for(var o=0;a--;)i[a]-=o,o=i[a]<s[a]?1:0,i[a]=o*Gn+i[a]-s[a];for(;!i[0]&&i.length>1;)i.shift()}return function(i,s,a,o){var l,c,d,u,h,m,f,g,p,v,y,x,b,w,N,S,k,_,D=i.constructor,A=i.s==s.s?1:-1,E=i.d,T=s.d;if(!i.s)return new D(i);if(!s.s)throw Error(es+"Division by zero");for(c=i.e-s.e,k=T.length,N=E.length,f=new D(A),g=f.d=[],d=0;T[d]==(E[d]||0);)++d;if(T[d]>(E[d]||0)&&--c,a==null?x=a=D.precision:o?x=a+(On(i)-On(s))+1:x=a,x<0)return new D(0);if(x=x/Yt+2|0,d=0,k==1)for(u=0,T=T[0],x++;(d<N||u)&&x--;d++)b=u*Gn+(E[d]||0),g[d]=b/T|0,u=b%T|0;else{for(u=Gn/(T[0]+1)|0,u>1&&(T=e(T,u),E=e(E,u),k=T.length,N=E.length),w=k,p=E.slice(0,k),v=p.length;v<k;)p[v++]=0;_=T.slice(),_.unshift(0),S=T[0],T[1]>=Gn/2&&++S;do u=0,l=t(T,p,k,v),l<0?(y=p[0],k!=v&&(y=y*Gn+(p[1]||0)),u=y/S|0,u>1?(u>=Gn&&(u=Gn-1),h=e(T,u),m=h.length,v=p.length,l=t(h,p,m,v),l==1&&(u--,n(h,k<m?_:T,m))):(u==0&&(l=u=1),h=T.slice()),m=h.length,m<v&&h.unshift(0),n(p,h,v),l==-1&&(v=p.length,l=t(T,p,k,v),l<1&&(u++,n(p,k<v?_:T,v))),v=p.length):l===0&&(u++,p=[0]),g[d++]=u,l&&p[0]?p[v++]=E[w]||0:(p=[E[w]],v=1);while((w++<N||p[0]!==void 0)&&x--)}return g[0]||g.shift(),f.e=c,$t(f,o?a+On(f)+1:a)}}();function H9(e,t){var n,i,s,a,o,l,c=0,d=0,u=e.constructor,h=u.precision;if(On(e)>16)throw Error(s3+On(e));if(!e.s)return new u(bi);for(t==null?(tn=!1,l=h):l=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),d+=5;for(i=Math.log(dc(2,d))/Math.LN10*2+5|0,l+=i,n=s=a=new u(bi),u.precision=l;;){if(s=$t(s.times(e),l),n=n.times(++c),o=a.plus(oo(s,n,l)),da(o.d).slice(0,l)===da(a.d).slice(0,l)){for(;d--;)a=$t(a.times(a),l);return u.precision=h,t==null?(tn=!0,$t(a,h)):a}a=o}}function On(e){for(var t=e.e*Yt,n=e.d[0];n>=10;n/=10)t++;return t}function F1(e,t,n){if(t>e.LN10.sd())throw tn=!0,n&&(e.precision=n),Error(es+"LN10 precision limit exceeded");return $t(new e(e.LN10),t)}function Wo(e){for(var t="";e--;)t+="0";return t}function Ap(e,t){var n,i,s,a,o,l,c,d,u,h=1,m=10,f=e,g=f.d,p=f.constructor,v=p.precision;if(f.s<1)throw Error(es+(f.s?"NaN":"-Infinity"));if(f.eq(bi))return new p(0);if(t==null?(tn=!1,d=v):d=t,f.eq(10))return t==null&&(tn=!0),F1(p,d);if(d+=m,p.precision=d,n=da(g),i=n.charAt(0),a=On(f),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)f=f.times(e),n=da(f.d),i=n.charAt(0),h++;a=On(f),i>1?(f=new p("0."+n),a++):f=new p(i+"."+n.slice(1))}else return c=F1(p,d+2,v).times(a+""),f=Ap(new p(i+"."+n.slice(1)),d-m).plus(c),p.precision=v,t==null?(tn=!0,$t(f,v)):f;for(l=o=f=oo(f.minus(bi),f.plus(bi),d),u=$t(f.times(f),d),s=3;;){if(o=$t(o.times(u),d),c=l.plus(oo(o,new p(s),d)),da(c.d).slice(0,d)===da(l.d).slice(0,d))return l=l.times(2),a!==0&&(l=l.plus(F1(p,d+2,v).times(a+""))),l=oo(l,new p(h),d),p.precision=v,t==null?(tn=!0,$t(l,v)):l;l=c,s+=2}}function DO(e,t){var n,i,s;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charCodeAt(i)===48;)++i;for(s=t.length;t.charCodeAt(s-1)===48;)--s;if(t=t.slice(i,s),t){if(s-=i,n=n-i-1,e.e=am(n/Yt),e.d=[],i=(n+1)%Yt,n<0&&(i+=Yt),i<s){for(i&&e.d.push(+t.slice(0,i)),s-=Yt;i<s;)e.d.push(+t.slice(i,i+=Yt));t=t.slice(i),i=Yt-t.length}else i-=s;for(;i--;)t+="0";if(e.d.push(+t),tn&&(e.e>n0||e.e<-n0))throw Error(s3+n)}else e.s=0,e.e=0,e.d=[0];return e}function $t(e,t,n){var i,s,a,o,l,c,d,u,h=e.d;for(o=1,a=h[0];a>=10;a/=10)o++;if(i=t-o,i<0)i+=Yt,s=t,d=h[u=0];else{if(u=Math.ceil((i+1)/Yt),a=h.length,u>=a)return e;for(d=a=h[u],o=1;a>=10;a/=10)o++;i%=Yt,s=i-Yt+o}if(n!==void 0&&(a=dc(10,o-s-1),l=d/a%10|0,c=t<0||h[u+1]!==void 0||d%a,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(i>0?s>0?d/dc(10,o-s):0:h[u-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(a=On(e),h.length=1,t=t-a-1,h[0]=dc(10,(Yt-t%Yt)%Yt),e.e=am(-t/Yt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(i==0?(h.length=u,a=1,u--):(h.length=u+1,a=dc(10,Yt-i),h[u]=s>0?(d/dc(10,o-s)%dc(10,s)|0)*a:0),c)for(;;)if(u==0){(h[0]+=a)==Gn&&(h[0]=1,++e.e);break}else{if(h[u]+=a,h[u]!=Gn)break;h[u--]=0,a=1}for(i=h.length;h[--i]===0;)h.pop();if(tn&&(e.e>n0||e.e<-n0))throw Error(s3+On(e));return e}function V9(e,t){var n,i,s,a,o,l,c,d,u,h,m=e.constructor,f=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),tn?$t(t,f):t;if(c=e.d,h=t.d,i=t.e,d=e.e,c=c.slice(),o=d-i,o){for(u=o<0,u?(n=c,o=-o,l=h.length):(n=h,i=d,l=c.length),s=Math.max(Math.ceil(f/Yt),l)+2,o>s&&(o=s,n.length=1),n.reverse(),s=o;s--;)n.push(0);n.reverse()}else{for(s=c.length,l=h.length,u=s<l,u&&(l=s),s=0;s<l;s++)if(c[s]!=h[s]){u=c[s]<h[s];break}o=0}for(u&&(n=c,c=h,h=n,t.s=-t.s),l=c.length,s=h.length-l;s>0;--s)c[l++]=0;for(s=h.length;s>o;){if(c[--s]<h[s]){for(a=s;a&&c[--a]===0;)c[a]=Gn-1;--c[a],c[s]+=Gn}c[s]-=h[s]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--i;return c[0]?(t.d=c,t.e=i,tn?$t(t,f):t):new m(0)}function Qc(e,t,n){var i,s=On(e),a=da(e.d),o=a.length;return t?(n&&(i=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+Wo(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(s<0?"e":"e+")+s):s<0?(a="0."+Wo(-s-1)+a,n&&(i=n-o)>0&&(a+=Wo(i))):s>=o?(a+=Wo(s+1-o),n&&(i=n-s-1)>0&&(a=a+"."+Wo(i))):((i=s+1)<o&&(a=a.slice(0,i)+"."+a.slice(i)),n&&(i=n-o)>0&&(s+1===o&&(a+="."),a+=Wo(i))),e.s<0?"-"+a:a}function MO(e,t){if(e.length>t)return e.length=t,!0}function G9(e){var t,n,i;function s(a){var o=this;if(!(o instanceof s))return new s(a);if(o.constructor=s,a instanceof s){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Lc+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DO(o,a.toString())}else if(typeof a!="string")throw Error(Lc+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,rke.test(a))DO(o,a);else throw Error(Lc+a)}if(s.prototype=Te,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=G9,s.config=s.set=ike,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)e.hasOwnProperty(n=i[t++])||(e[n]=this[n]);return s.config(e),s}function ike(e){if(!e||typeof e!="object")throw Error(es+"Object expected");var t,n,i,s=["precision",1,sm,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<s.length;t+=3)if((i=e[n=s[t]])!==void 0)if(am(i)===i&&i>=s[t+1]&&i<=s[t+2])this[n]=i;else throw Error(Lc+n+": "+i);if((i=e[n="LN10"])!==void 0)if(i==Math.LN10)this[n]=new this(i);else throw Error(Lc+n+": "+i);return this}var a3=G9(nke);bi=new a3(1);const It=a3;function ske(e){return cke(e)||lke(e)||oke(e)||ake()}function ake(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oke(e,t){if(e){if(typeof e=="string")return BS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BS(e,t)}}function lke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cke(e){if(Array.isArray(e))return BS(e)}function BS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var dke=function(t){return t},Y9={"@@functional/placeholder":!0},K9=function(t){return t===Y9},RO=function(t){return function n(){return arguments.length===0||arguments.length===1&&K9(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},uke=function e(t,n){return t===1?n:RO(function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var o=s.filter(function(l){return l!==Y9}).length;return o>=t?n.apply(void 0,s):e(t-o,RO(function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=s.map(function(h){return K9(h)?c.shift():h});return n.apply(void 0,ske(u).concat(c))}))})},$w=function(t){return uke(t.length,t)},WS=function(t,n){for(var i=[],s=t;s<n;++s)i[s-t]=s;return i},hke=$w(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),mke=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length)return dke;var s=n.reverse(),a=s[0],o=s.slice(1);return function(){return o.reduce(function(l,c){return c(l)},a.apply(void 0,arguments))}},zS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},X9=function(t){var n=null,i=null;return function(){for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];return n&&a.every(function(l,c){return l===n[c]})||(n=a,i=t.apply(void 0,a)),i}};function fke(e){var t;return e===0?t=1:t=Math.floor(new It(e).abs().log(10).toNumber())+1,t}function pke(e,t,n){for(var i=new It(e),s=0,a=[];i.lt(t)&&s<1e5;)a.push(i.toNumber()),i=i.add(n),s++;return a}var gke=$w(function(e,t,n){var i=+e,s=+t;return i+n*(s-i)}),vke=$w(function(e,t,n){var i=t-+e;return i=i||1/0,(n-e)/i}),xke=$w(function(e,t,n){var i=t-+e;return i=i||1/0,Math.max(0,Math.min(1,(n-e)/i))});const Lw={rangeStep:pke,getDigitCount:fke,interpolateNumber:gke,uninterpolateNumber:vke,uninterpolateTruncation:xke};function qS(e){return wke(e)||bke(e)||Q9(e)||yke()}function yke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wke(e){if(Array.isArray(e))return HS(e)}function Op(e,t){return Ske(e)||Nke(e,t)||Q9(e,t)||jke()}function jke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q9(e,t){if(e){if(typeof e=="string")return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HS(e,t)}}function HS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Nke(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,s=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(c){s=!0,a=c}finally{try{!i&&o.return!=null&&o.return()}finally{if(s)throw a}}return n}}function Ske(e){if(Array.isArray(e))return e}function J9(e){var t=Op(e,2),n=t[0],i=t[1],s=n,a=i;return n>i&&(s=i,a=n),[s,a]}function Z9(e,t,n){if(e.lte(0))return new It(0);var i=Lw.getDigitCount(e.toNumber()),s=new It(10).pow(i),a=e.div(s),o=i!==1?.05:.1,l=new It(Math.ceil(a.div(o).toNumber())).add(n).mul(o),c=l.mul(s);return t?c:new It(Math.ceil(c))}function kke(e,t,n){var i=1,s=new It(e);if(!s.isint()&&n){var a=Math.abs(e);a<1?(i=new It(10).pow(Lw.getDigitCount(e)-1),s=new It(Math.floor(s.div(i).toNumber())).mul(i)):a>1&&(s=new It(Math.floor(e)))}else e===0?s=new It(Math.floor((t-1)/2)):n||(s=new It(Math.floor(e)));var o=Math.floor((t-1)/2),l=mke(hke(function(c){return s.add(new It(c-o).mul(i)).toNumber()}),WS);return l(0,t)}function eB(e,t,n,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new It(0),tickMin:new It(0),tickMax:new It(0)};var a=Z9(new It(t).sub(e).div(n-1),i,s),o;e<=0&&t>=0?o=new It(0):(o=new It(e).add(t).div(2),o=o.sub(new It(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new It(t).sub(o).div(a).toNumber()),d=l+c+1;return d>n?eB(e,t,n,i,s+1):(d<n&&(c=t>0?c+(n-d):c,l=t>0?l:l+(n-d)),{step:a,tickMin:o.sub(new It(l).mul(a)),tickMax:o.add(new It(c).mul(a))})}function Cke(e){var t=Op(e,2),n=t[0],i=t[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(s,2),l=J9([n,i]),c=Op(l,2),d=c[0],u=c[1];if(d===-1/0||u===1/0){var h=u===1/0?[d].concat(qS(WS(0,s-1).map(function(){return 1/0}))):[].concat(qS(WS(0,s-1).map(function(){return-1/0})),[u]);return n>i?zS(h):h}if(d===u)return kke(d,s,a);var m=eB(d,u,o,a),f=m.step,g=m.tickMin,p=m.tickMax,v=Lw.rangeStep(g,p.add(new It(.1).mul(f)),f);return n>i?zS(v):v}function _ke(e,t){var n=Op(e,2),i=n[0],s=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=J9([i,s]),l=Op(o,2),c=l[0],d=l[1];if(c===-1/0||d===1/0)return[i,s];if(c===d)return[c];var u=Math.max(t,2),h=Z9(new It(d).sub(c).div(u-1),a,0),m=[].concat(qS(Lw.rangeStep(new It(c),new It(d).sub(new It(.99).mul(h)),h)),[d]);return i>s?zS(m):m}var Tke=X9(Cke),Pke=X9(_ke),Eke="Invariant failed";function Jc(e,t){throw new Error(Eke)}var Ake=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r0.apply(this,arguments)}function Oke(e,t){return Rke(e)||Mke(e,t)||Dke(e,t)||Ike()}function Ike(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dke(e,t){if(e){if(typeof e=="string")return $O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $O(e,t)}}function $O(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Mke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function Rke(e){if(Array.isArray(e))return e}function $ke(e,t){if(e==null)return{};var n=Lke(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function Lke(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Uke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fke(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rB(i.key),i)}}function Bke(e,t,n){return t&&Fke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wke(e,t,n){return t=i0(t),zke(e,tB()?Reflect.construct(t,n||[],i0(e).constructor):t.apply(e,n))}function zke(e,t){if(t&&(lh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qke(e)}function qke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tB=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},i0(e)}function Hke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},VS(e,t)}function nB(e,t,n){return t=rB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e){var t=Vke(e,"string");return lh(t)=="symbol"?t:t+""}function Vke(e,t){if(lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(lh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hg=function(e){function t(){return Uke(this,t),Wke(this,t,arguments)}return Hke(t,e),Bke(t,[{key:"render",value:function(){var i=this.props,s=i.offset,a=i.layout,o=i.width,l=i.dataKey,c=i.data,d=i.dataPointFormatter,u=i.xAxis,h=i.yAxis,m=$ke(i,Ake),f=We(m,!1);this.props.direction==="x"&&u.type!=="number"&&Jc();var g=c.map(function(p){var v=d(p,l),y=v.x,x=v.y,b=v.value,w=v.errorVal;if(!w)return null;var N=[],S,k;if(Array.isArray(w)){var _=Oke(w,2);S=_[0],k=_[1]}else S=k=w;if(a==="vertical"){var D=u.scale,A=x+s,E=A+o,T=A-o,M=D(b-S),C=D(b+k);N.push({x1:C,y1:E,x2:C,y2:T}),N.push({x1:M,y1:A,x2:C,y2:A}),N.push({x1:M,y1:E,x2:M,y2:T})}else if(a==="horizontal"){var P=h.scale,I=y+s,R=I-o,O=I+o,$=P(b-S),q=P(b+k);N.push({x1:R,y1:q,x2:O,y2:q}),N.push({x1:I,y1:$,x2:I,y2:q}),N.push({x1:R,y1:$,x2:O,y2:$})}return L.createElement(Nt,r0({className:"recharts-errorBar",key:"bar-".concat(N.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},f),N.map(function(z){return L.createElement("line",r0({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return L.createElement(Nt,{className:"recharts-errorBars"},g)}}])}(L.Component);nB(Hg,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});nB(Hg,"displayName","ErrorBar");function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}function LO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(n),!0).forEach(function(i){Gke(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Gke(e,t,n){return t=Yke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yke(e){var t=Kke(e,"string");return Ip(t)=="symbol"?t:t+""}function Kke(e,t){if(Ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Ip(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iB=function(t){var n=t.children,i=t.formattedGraphicalItems,s=t.legendWidth,a=t.legendContent,o=pi(n,wu);if(!o)return null;var l=wu.defaultProps,c=l!==void 0?Zl(Zl({},l),o.props):{},d;return o.props&&o.props.payload?d=o.props&&o.props.payload:a==="children"?d=(i||[]).reduce(function(u,h){var m=h.item,f=h.props,g=f.sectors||f.data||[];return u.concat(g.map(function(p){return{type:o.props.iconType||m.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):d=(i||[]).map(function(u){var h=u.item,m=h.type.defaultProps,f=m!==void 0?Zl(Zl({},m),h.props):{},g=f.dataKey,p=f.name,v=f.legendType,y=f.hide;return{inactive:y,dataKey:g,type:c.iconType||v||"square",color:o3(h),value:p||g,payload:f}}),Zl(Zl(Zl({},c),wu.getWithHeight(o,s)),{},{payload:d,item:o})};function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function UO(e){return Zke(e)||Jke(e)||Qke(e)||Xke()}function Xke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qke(e,t){if(e){if(typeof e=="string")return GS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GS(e,t)}}function Jke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zke(e){if(Array.isArray(e))return GS(e)}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(i){Nu(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Nu(e,t,n){return t=eCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eCe(e){var t=tCe(e,"string");return Dp(t)=="symbol"?t:t+""}function tCe(e,t){if(Dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Dp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Un(e,t,n){return tt(e)||tt(t)?n:Bn(t)?Ci(e,t,n):Ke(t)?t(e):n}function Ef(e,t,n,i){var s=JSe(e,function(l){return Un(l,t)});if(n==="number"){var a=s.filter(function(l){return ge(l)||parseFloat(l)});return a.length?[Rw(a),Mw(a)]:[1/0,-1/0]}var o=i?s.filter(function(l){return!tt(l)}):s;return o.map(function(l){return Bn(l)||l instanceof Date?l:""})}var nCe=function(t){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,d=0;d<l;d++){var u=d>0?s[d-1].coordinate:s[l-1].coordinate,h=s[d].coordinate,m=d>=l-1?s[0].coordinate:s[d+1].coordinate,f=void 0;if(Ar(h-u)!==Ar(m-h)){var g=[];if(Ar(m-h)===Ar(c[1]-c[0])){f=m;var p=h+c[1]-c[0];g[0]=Math.min(p,(p+u)/2),g[1]=Math.max(p,(p+u)/2)}else{f=u;var v=m+c[1]-c[0];g[0]=Math.min(h,(v+h)/2),g[1]=Math.max(h,(v+h)/2)}var y=[Math.min(h,(f+h)/2),Math.max(h,(f+h)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=s[d].index;break}}else{var x=Math.min(u,m),b=Math.max(u,m);if(t>(x+h)/2&&t<=(b+h)/2){o=s[d].index;break}}}else for(var w=0;w<l;w++)if(w===0&&t<=(i[w].coordinate+i[w+1].coordinate)/2||w>0&&w<l-1&&t>(i[w].coordinate+i[w-1].coordinate)/2&&t<=(i[w].coordinate+i[w+1].coordinate)/2||w===l-1&&t>(i[w].coordinate+i[w-1].coordinate)/2){o=i[w].index;break}return o},o3=function(t){var n,i=t,s=i.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?yn(yn({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,c;switch(s){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},rCe=function(t){var n=t.barSize,i=t.totalSize,s=t.stackGroups,a=s===void 0?{}:s;if(!a)return{};for(var o={},l=Object.keys(a),c=0,d=l.length;c<d;c++)for(var u=a[l[c]].stackGroups,h=Object.keys(u),m=0,f=h.length;m<f;m++){var g=u[h[m]],p=g.items,v=g.cateAxisId,y=p.filter(function(k){return ao(k.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,b=x!==void 0?yn(yn({},x),y[0].props):y[0].props,w=b.barSize,N=b[v];o[N]||(o[N]=[]);var S=tt(w)?n:w;o[N].push({item:y[0],stackList:y.slice(1),barSize:tt(S)?void 0:Or(S,i,0)})}}return o},iCe=function(t){var n=t.barGap,i=t.barCategoryGap,s=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,c=o.length;if(c<1)return null;var d=Or(n,s,0,!0),u,h=[];if(o[0].barSize===+o[0].barSize){var m=!1,f=s/c,g=o.reduce(function(w,N){return w+N.barSize||0},0);g+=(c-1)*d,g>=s&&(g-=(c-1)*d,d=0),g>=s&&f>0&&(m=!0,f*=.9,g=c*f);var p=(s-g)/2>>0,v={offset:p-d,size:0};u=o.reduce(function(w,N){var S={item:N.item,position:{offset:v.offset+v.size+d,size:m?f:N.barSize}},k=[].concat(UO(w),[S]);return v=k[k.length-1].position,N.stackList&&N.stackList.length&&N.stackList.forEach(function(_){k.push({item:_,position:v})}),k},h)}else{var y=Or(i,s,0,!0);s-2*y-(c-1)*d<=0&&(d=0);var x=(s-2*y-(c-1)*d)/c;x>1&&(x>>=0);var b=l===+l?Math.min(x,l):x;u=o.reduce(function(w,N,S){var k=[].concat(UO(w),[{item:N.item,position:{offset:y+(x+d)*S+(x-b)/2,size:b}}]);return N.stackList&&N.stackList.length&&N.stackList.forEach(function(_){k.push({item:_,position:k[k.length-1].position})}),k},h)}return u},sCe=function(t,n,i,s){var a=i.children,o=i.width,l=i.margin,c=o-(l.left||0)-(l.right||0),d=iB({children:a,legendWidth:c});if(d){var u=s||{},h=u.width,m=u.height,f=d.align,g=d.verticalAlign,p=d.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&f!=="center"&&ge(t[f]))return yn(yn({},t),{},Nu({},f,t[f]+(h||0)));if((p==="horizontal"||p==="vertical"&&f==="center")&&g!=="middle"&&ge(t[g]))return yn(yn({},t),{},Nu({},g,t[g]+(m||0)))}return t},aCe=function(t,n,i){return tt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||i==="x"?n==="xAxis":i==="y"?n==="yAxis":!0},sB=function(t,n,i,s,a){var o=n.props.children,l=_i(o,Hg).filter(function(d){return aCe(s,a,d.props.direction)});if(l&&l.length){var c=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,u){var h=Un(u,i);if(tt(h))return d;var m=Array.isArray(h)?[Rw(h),Mw(h)]:[h,h],f=c.reduce(function(g,p){var v=Un(u,p,0),y=m[0]-Math.abs(Array.isArray(v)?v[0]:v),x=m[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0])}return null},oCe=function(t,n,i,s,a){var o=n.map(function(l){return sB(t,l,i,a,s)}).filter(function(l){return!tt(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},aB=function(t,n,i,s,a){var o=n.map(function(c){var d=c.props.dataKey;return i==="number"&&d&&sB(t,c,d,s)||Ef(t,d,i,a)});if(i==="number")return o.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,d){for(var u=0,h=d.length;u<h;u++)l[d[u]]||(l[d[u]]=!0,c.push(d[u]));return c},[])},oB=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},lB=function(t,n,i,s){if(s)return t.map(function(c){return c.coordinate});var a,o,l=t.map(function(c){return c.coordinate===n&&(a=!0),c.coordinate===i&&(o=!0),c.coordinate});return a||l.push(n),o||l.push(i),l},ro=function(t,n,i){if(!t)return null;var s=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?s.bandwidth()/2:2,d=(n||i)&&o==="category"&&s.bandwidth?s.bandwidth()/c:0;if(d=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Ar(l[0]-l[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(h){var m=a?a.indexOf(h):h;return{coordinate:s(m)+d,value:h,offset:d}});return u.filter(function(h){return!Lg(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,m){return{coordinate:s(h)+d,value:h,index:m,offset:d}}):s.ticks&&!i?s.ticks(t.tickCount).map(function(h){return{coordinate:s(h)+d,value:h,offset:d}}):s.domain().map(function(h,m){return{coordinate:s(h)+d,value:a?a[h]:h,index:m,offset:d}})},B1=new WeakMap,Zv=function(t,n){if(typeof n!="function")return t;B1.has(t)||B1.set(t,new WeakMap);var i=B1.get(t);if(i.has(n))return i.get(n);var s=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return i.set(n,s),s},cB=function(t,n,i){var s=t.scale,a=t.type,o=t.layout,l=t.axisType;if(s==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Cp(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:sh(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!i)?{scale:Pf(),realScaleType:"point"}:a==="category"?{scale:Cp(),realScaleType:"band"}:{scale:sh(),realScaleType:"linear"};if($g(s)){var c="scale".concat(ww(s));return{scale:(IO[c]||Pf)(),realScaleType:IO[c]?c:"point"}}return Ke(s)?{scale:s}:{scale:Pf(),realScaleType:"point"}},BO=1e-4,dB=function(t){var n=t.domain();if(!(!n||n.length<=2)){var i=n.length,s=t.range(),a=Math.min(s[0],s[1])-BO,o=Math.max(s[0],s[1])+BO,l=t(n[0]),c=t(n[i-1]);(l<a||l>o||c<a||c>o)&&t.domain([n[0],n[i-1]])}},lCe=function(t,n){if(!t)return null;for(var i=0,s=t.length;i<s;i++)if(t[i].item===n)return t[i].position;return null},cCe=function(t,n){if(!n||n.length!==2||!ge(n[0])||!ge(n[1]))return t;var i=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!ge(t[0])||t[0]<i)&&(a[0]=i),(!ge(t[1])||t[1]>s)&&(a[1]=s),a[0]>s&&(a[0]=s),a[1]<i&&(a[1]=i),a},dCe=function(t){var n=t.length;if(!(n<=0))for(var i=0,s=t[0].length;i<s;++i)for(var a=0,o=0,l=0;l<n;++l){var c=Lg(t[l][i][1])?t[l][i][0]:t[l][i][1];c>=0?(t[l][i][0]=a,t[l][i][1]=a+c,a=t[l][i][1]):(t[l][i][0]=o,t[l][i][1]=o+c,o=t[l][i][1])}},uCe=function(t){var n=t.length;if(!(n<=0))for(var i=0,s=t[0].length;i<s;++i)for(var a=0,o=0;o<n;++o){var l=Lg(t[o][i][1])?t[o][i][0]:t[o][i][1];l>=0?(t[o][i][0]=a,t[o][i][1]=a+l,a=t[o][i][1]):(t[o][i][0]=0,t[o][i][1]=0)}},hCe={sign:dCe,expand:Ape,none:Zu,silhouette:Ope,wiggle:Ipe,positive:uCe},mCe=function(t,n,i){var s=n.map(function(l){return l.props.dataKey}),a=hCe[i],o=Epe().keys(s).value(function(l,c){return+Un(l,c,0)}).order(xS).offset(a);return o(t)},fCe=function(t,n,i,s,a,o){if(!t)return null;var l=o?n.reverse():n,c={},d=l.reduce(function(h,m){var f,g=(f=m.type)!==null&&f!==void 0&&f.defaultProps?yn(yn({},m.type.defaultProps),m.props):m.props,p=g.stackId,v=g.hide;if(v)return h;var y=g[i],x=h[y]||{hasStack:!1,stackGroups:{}};if(Bn(p)){var b=x.stackGroups[p]||{numericAxisId:i,cateAxisId:s,items:[]};b.items.push(m),x.hasStack=!0,x.stackGroups[p]=b}else x.stackGroups[em("_stackId_")]={numericAxisId:i,cateAxisId:s,items:[m]};return yn(yn({},h),{},Nu({},y,x))},c),u={};return Object.keys(d).reduce(function(h,m){var f=d[m];if(f.hasStack){var g={};f.stackGroups=Object.keys(f.stackGroups).reduce(function(p,v){var y=f.stackGroups[v];return yn(yn({},p),{},Nu({},v,{numericAxisId:i,cateAxisId:s,items:y.items,stackedData:mCe(t,y.items,a)}))},g)}return yn(yn({},h),{},Nu({},m,f))},u)},uB=function(t,n){var i=n.realScaleType,s=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,c=i||n.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&s==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var d=t.domain();if(!d.length)return null;var u=Tke(d,a,l);return t.domain([Rw(u),Mw(u)]),{niceTicks:u}}if(a&&s==="number"){var h=t.domain(),m=Pke(h,a,l);return{niceTicks:m}}return null};function WO(e){var t=e.axis,n=e.ticks,i=e.bandSize,s=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!tt(s[t.dataKey])){var l=Oy(n,"value",s[t.dataKey]);if(l)return l.coordinate+i/2}return n[a]?n[a].coordinate+i/2:null}var c=Un(s,tt(o)?t.dataKey:o);return tt(c)?null:t.scale(c)}var zO=function(t){var n=t.axis,i=t.ticks,s=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return i[l]?i[l].coordinate+s:null;var c=Un(o,n.dataKey,n.domain[l]);return tt(c)?null:n.scale(c)-a/2+s},pCe=function(t){var n=t.numericAxis,i=n.scale.domain();if(n.type==="number"){var s=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return s<=0&&a>=0?0:a<0?a:s}return i[0]},gCe=function(t,n){var i,s=(i=t.type)!==null&&i!==void 0&&i.defaultProps?yn(yn({},t.type.defaultProps),t.props):t.props,a=s.stackId;if(Bn(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},vCe=function(t){return t.reduce(function(n,i){return[Rw(i.concat([n[0]]).filter(ge)),Mw(i.concat([n[1]]).filter(ge))]},[1/0,-1/0])},hB=function(t,n,i){return Object.keys(t).reduce(function(s,a){var o=t[a],l=o.stackedData,c=l.reduce(function(d,u){var h=vCe(u.slice(n,i+1));return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]).map(function(s){return s===1/0||s===-1/0?0:s})},qO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YS=function(t,n,i){if(Ke(t))return t(n,i);if(!Array.isArray(t))return n;var s=[];if(ge(t[0]))s[0]=i?t[0]:Math.min(t[0],n[0]);else if(qO.test(t[0])){var a=+qO.exec(t[0])[1];s[0]=n[0]-a}else Ke(t[0])?s[0]=t[0](n[0]):s[0]=n[0];if(ge(t[1]))s[1]=i?t[1]:Math.max(t[1],n[1]);else if(HO.test(t[1])){var o=+HO.exec(t[1])[1];s[1]=n[1]+o}else Ke(t[1])?s[1]=t[1](n[1]):s[1]=n[1];return s},s0=function(t,n,i){if(t&&t.scale&&t.scale.bandwidth){var s=t.scale.bandwidth();if(!i||s>0)return s}if(t&&n&&n.length>=2){for(var a=M5(n,function(h){return h.coordinate}),o=1/0,l=1,c=a.length;l<c;l++){var d=a[l],u=a[l-1];o=Math.min((d.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return i?void 0:0},VO=function(t,n,i){return!t||!t.length||qg(t,Ci(i,"type.defaultProps.domain"))?n:t},mB=function(t,n){var i=t.type.defaultProps?yn(yn({},t.type.defaultProps),t.props):t.props,s=i.dataKey,a=i.name,o=i.unit,l=i.formatter,c=i.tooltipType,d=i.chartType,u=i.hide;return yn(yn({},We(t,!1)),{},{dataKey:s,unit:o,formatter:l,name:a||s,color:o3(t),value:Un(n,s),type:c,payload:n,chartType:d,hide:u})};function Mp(e){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(e)}function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(n),!0).forEach(function(i){fB(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function fB(e,t,n){return t=xCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xCe(e){var t=yCe(e,"string");return Mp(t)=="symbol"?t:t+""}function yCe(e,t){if(Mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Mp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bCe(e,t){return SCe(e)||NCe(e,t)||jCe(e,t)||wCe()}function wCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jCe(e,t){if(e){if(typeof e=="string")return YO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YO(e,t)}}function YO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function NCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function SCe(e){if(Array.isArray(e))return e}var a0=Math.PI/180,kCe=function(t){return t*180/Math.PI},zt=function(t,n,i,s){return{x:t+Math.cos(-a0*s)*i,y:n+Math.sin(-a0*s)*i}},pB=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(i.left||0)-(i.right||0)),Math.abs(n-(i.top||0)-(i.bottom||0)))/2},CCe=function(t,n,i,s,a){var o=t.width,l=t.height,c=t.startAngle,d=t.endAngle,u=Or(t.cx,o,o/2),h=Or(t.cy,l,l/2),m=pB(o,l,i),f=Or(t.innerRadius,m,0),g=Or(t.outerRadius,m,m*.8),p=Object.keys(n);return p.reduce(function(v,y){var x=n[y],b=x.domain,w=x.reversed,N;if(tt(x.range))s==="angleAxis"?N=[c,d]:s==="radiusAxis"&&(N=[f,g]),w&&(N=[N[1],N[0]]);else{N=x.range;var S=N,k=bCe(S,2);c=k[0],d=k[1]}var _=cB(x,a),D=_.realScaleType,A=_.scale;A.domain(b).range(N),dB(A);var E=uB(A,qa(qa({},x),{},{realScaleType:D})),T=qa(qa(qa({},x),E),{},{range:N,radius:g,realScaleType:D,scale:A,cx:u,cy:h,innerRadius:f,outerRadius:g,startAngle:c,endAngle:d});return qa(qa({},v),{},fB({},y,T))},{})},_Ce=function(t,n){var i=t.x,s=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(i-a,2)+Math.pow(s-o,2))},TCe=function(t,n){var i=t.x,s=t.y,a=n.cx,o=n.cy,l=_Ce({x:i,y:s},{x:a,y:o});if(l<=0)return{radius:l};var c=(i-a)/l,d=Math.acos(c);return s>o&&(d=2*Math.PI-d),{radius:l,angle:kCe(d),angleInRadian:d}},PCe=function(t){var n=t.startAngle,i=t.endAngle,s=Math.floor(n/360),a=Math.floor(i/360),o=Math.min(s,a);return{startAngle:n-o*360,endAngle:i-o*360}},ECe=function(t,n){var i=n.startAngle,s=n.endAngle,a=Math.floor(i/360),o=Math.floor(s/360),l=Math.min(a,o);return t+l*360},KO=function(t,n){var i=t.x,s=t.y,a=TCe({x:i,y:s},n),o=a.radius,l=a.angle,c=n.innerRadius,d=n.outerRadius;if(o<c||o>d)return!1;if(o===0)return!0;var u=PCe(n),h=u.startAngle,m=u.endAngle,f=l,g;if(h<=m){for(;f>m;)f-=360;for(;f<h;)f+=360;g=f>=h&&f<=m}else{for(;f>h;)f-=360;for(;f<m;)f+=360;g=f>=m&&f<=h}return g?qa(qa({},n),{},{radius:o,angle:ECe(f,n)}):null},gB=function(t){return!j.isValidElement(t)&&!Ke(t)&&typeof t!="boolean"?t.className:""};function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}var ACe=["offset"];function OCe(e){return RCe(e)||MCe(e)||DCe(e)||ICe()}function ICe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DCe(e,t){if(e){if(typeof e=="string")return KS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KS(e,t)}}function MCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RCe(e){if(Array.isArray(e))return KS(e)}function KS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function $Ce(e,t){if(e==null)return{};var n=LCe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function LCe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(n),!0).forEach(function(i){UCe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function UCe(e,t,n){return t=FCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FCe(e){var t=BCe(e,"string");return Rp(t)=="symbol"?t:t+""}function BCe(e,t){if(Rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Rp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$p.apply(this,arguments)}var WCe=function(t){var n=t.value,i=t.formatter,s=tt(t.children)?n:t.children;return Ke(i)?i(s):s},zCe=function(t,n){var i=Ar(n-t),s=Math.min(Math.abs(n-t),360);return i*s},qCe=function(t,n,i){var s=t.position,a=t.viewBox,o=t.offset,l=t.className,c=a,d=c.cx,u=c.cy,h=c.innerRadius,m=c.outerRadius,f=c.startAngle,g=c.endAngle,p=c.clockWise,v=(h+m)/2,y=zCe(f,g),x=y>=0?1:-1,b,w;s==="insideStart"?(b=f+x*o,w=p):s==="insideEnd"?(b=g-x*o,w=!p):s==="end"&&(b=g+x*o,w=p),w=y<=0?w:!w;var N=zt(d,u,v,b),S=zt(d,u,v,b+(w?1:-1)*359),k="M".concat(N.x,",").concat(N.y,`
A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`,
`).concat(S.x,",").concat(S.y),_=tt(t.id)?em("recharts-radial-line-"):t.id;return L.createElement("text",$p({},i,{dominantBaseline:"central",className:rt("recharts-radial-bar-label",l)}),L.createElement("defs",null,L.createElement("path",{id:_,d:k})),L.createElement("textPath",{xlinkHref:"#".concat(_)},n))},HCe=function(t){var n=t.viewBox,i=t.offset,s=t.position,a=n,o=a.cx,l=a.cy,c=a.innerRadius,d=a.outerRadius,u=a.startAngle,h=a.endAngle,m=(u+h)/2;if(s==="outside"){var f=zt(o,l,d+i,m),g=f.x,p=f.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(s==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(s==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(s==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+d)/2,y=zt(o,l,v,m),x=y.x,b=y.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},VCe=function(t){var n=t.viewBox,i=t.parentViewBox,s=t.offset,a=t.position,o=n,l=o.x,c=o.y,d=o.width,u=o.height,h=u>=0?1:-1,m=h*s,f=h>0?"end":"start",g=h>0?"start":"end",p=d>=0?1:-1,v=p*s,y=p>0?"end":"start",x=p>0?"start":"end";if(a==="top"){var b={x:l+d/2,y:c-h*s,textAnchor:"middle",verticalAnchor:f};return Dn(Dn({},b),i?{height:Math.max(c-i.y,0),width:d}:{})}if(a==="bottom"){var w={x:l+d/2,y:c+u+m,textAnchor:"middle",verticalAnchor:g};return Dn(Dn({},w),i?{height:Math.max(i.y+i.height-(c+u),0),width:d}:{})}if(a==="left"){var N={x:l-v,y:c+u/2,textAnchor:y,verticalAnchor:"middle"};return Dn(Dn({},N),i?{width:Math.max(N.x-i.x,0),height:u}:{})}if(a==="right"){var S={x:l+d+v,y:c+u/2,textAnchor:x,verticalAnchor:"middle"};return Dn(Dn({},S),i?{width:Math.max(i.x+i.width-S.x,0),height:u}:{})}var k=i?{width:d,height:u}:{};return a==="insideLeft"?Dn({x:l+v,y:c+u/2,textAnchor:x,verticalAnchor:"middle"},k):a==="insideRight"?Dn({x:l+d-v,y:c+u/2,textAnchor:y,verticalAnchor:"middle"},k):a==="insideTop"?Dn({x:l+d/2,y:c+m,textAnchor:"middle",verticalAnchor:g},k):a==="insideBottom"?Dn({x:l+d/2,y:c+u-m,textAnchor:"middle",verticalAnchor:f},k):a==="insideTopLeft"?Dn({x:l+v,y:c+m,textAnchor:x,verticalAnchor:g},k):a==="insideTopRight"?Dn({x:l+d-v,y:c+m,textAnchor:y,verticalAnchor:g},k):a==="insideBottomLeft"?Dn({x:l+v,y:c+u-m,textAnchor:x,verticalAnchor:f},k):a==="insideBottomRight"?Dn({x:l+d-v,y:c+u-m,textAnchor:y,verticalAnchor:f},k):Xh(a)&&(ge(a.x)||xc(a.x))&&(ge(a.y)||xc(a.y))?Dn({x:l+Or(a.x,d),y:c+Or(a.y,u),textAnchor:"end",verticalAnchor:"end"},k):Dn({x:l+d/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},k)},GCe=function(t){return"cx"in t&&ge(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,i=$Ce(e,ACe),s=Dn({offset:n},i),a=s.viewBox,o=s.position,l=s.value,c=s.children,d=s.content,u=s.className,h=u===void 0?"":u,m=s.textBreakAll;if(!a||tt(l)&&tt(c)&&!j.isValidElement(d)&&!Ke(d))return null;if(j.isValidElement(d))return j.cloneElement(d,s);var f;if(Ke(d)){if(f=j.createElement(d,s),j.isValidElement(f))return f}else f=WCe(s);var g=GCe(a),p=We(s,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return qCe(s,f,p);var v=g?HCe(s):VCe(s);return L.createElement(Xc,$p({className:rt("recharts-label",h)},p,v,{breakAll:m}),f)}Xn.displayName="Label";var vB=function(t){var n=t.cx,i=t.cy,s=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,d=t.innerRadius,u=t.outerRadius,h=t.x,m=t.y,f=t.top,g=t.left,p=t.width,v=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(ge(p)&&ge(v)){if(ge(h)&&ge(m))return{x:h,y:m,width:p,height:v};if(ge(f)&&ge(g))return{x:f,y:g,width:p,height:v}}return ge(h)&&ge(m)?{x:h,y:m,width:0,height:0}:ge(n)&&ge(i)?{cx:n,cy:i,startAngle:a||s||0,endAngle:o||s||0,innerRadius:d||0,outerRadius:u||c||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},YCe=function(t,n){return t?t===!0?L.createElement(Xn,{key:"label-implicit",viewBox:n}):Bn(t)?L.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Xn?j.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Ke(t)?L.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Xh(t)?L.createElement(Xn,$p({viewBox:n},t,{key:"label-implicit"})):null:null},KCe=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&i&&!t.label)return null;var s=t.children,a=vB(t),o=_i(s,Xn).map(function(c,d){return j.cloneElement(c,{viewBox:n||a,key:"label-".concat(d)})});if(!i)return o;var l=YCe(t.label,n||a);return[l].concat(OCe(o))};Xn.parseViewBox=vB;Xn.renderCallByParent=KCe;function XCe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var QCe=XCe;const JCe=jt(QCe);function Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(e)}var ZCe=["valueAccessor"],e_e=["data","dataKey","clockWise","id","textBreakAll"];function t_e(e){return s_e(e)||i_e(e)||r_e(e)||n_e()}function n_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r_e(e,t){if(e){if(typeof e=="string")return XS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XS(e,t)}}function i_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s_e(e){if(Array.isArray(e))return XS(e)}function XS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o0.apply(this,arguments)}function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function JO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(i){a_e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function a_e(e,t,n){return t=o_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o_e(e){var t=l_e(e,"string");return Lp(t)=="symbol"?t:t+""}function l_e(e,t){if(Lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Lp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZO(e,t){if(e==null)return{};var n=c_e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function c_e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var d_e=function(t){return Array.isArray(t.value)?JCe(t.value):t.value};function lo(e){var t=e.valueAccessor,n=t===void 0?d_e:t,i=ZO(e,ZCe),s=i.data,a=i.dataKey,o=i.clockWise,l=i.id,c=i.textBreakAll,d=ZO(i,e_e);return!s||!s.length?null:L.createElement(Nt,{className:"recharts-label-list"},s.map(function(u,h){var m=tt(a)?n(u,h):Un(u&&u.payload,a),f=tt(l)?{}:{id:"".concat(l,"-").concat(h)};return L.createElement(Xn,o0({},We(u,!0),d,f,{parentViewBox:u.parentViewBox,value:m,textBreakAll:c,viewBox:Xn.parseViewBox(tt(o)?u:JO(JO({},u),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}lo.displayName="LabelList";function u_e(e,t){return e?e===!0?L.createElement(lo,{key:"labelList-implicit",data:t}):L.isValidElement(e)||Ke(e)?L.createElement(lo,{key:"labelList-implicit",data:t,content:e}):Xh(e)?L.createElement(lo,o0({data:t},e,{key:"labelList-implicit"})):null:null}function h_e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,s=_i(i,lo).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return s;var a=u_e(e.label,t);return[a].concat(t_e(s))}lo.renderCallByParent=h_e;function Up(e){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Up(e)}function QS(){return QS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},QS.apply(this,arguments)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(i){m_e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function m_e(e,t,n){return t=f_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f_e(e){var t=p_e(e,"string");return Up(t)=="symbol"?t:t+""}function p_e(e,t){if(Up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Up(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g_e=function(t,n){var i=Ar(n-t),s=Math.min(Math.abs(n-t),359.999);return i*s},ex=function(t){var n=t.cx,i=t.cy,s=t.radius,a=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,d=t.cornerIsExternal,u=c*(l?1:-1)+s,h=Math.asin(c/u)/a0,m=d?a:a+o*h,f=zt(n,i,u,m),g=zt(n,i,s,m),p=d?a-o*h:a,v=zt(n,i,u*Math.cos(h*a0),p);return{center:f,circleTangency:g,lineTangency:v,theta:h}},xB=function(t){var n=t.cx,i=t.cy,s=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,c=g_e(o,l),d=o+c,u=zt(n,i,a,o),h=zt(n,i,a,d),m="M ".concat(u.x,",").concat(u.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(o>d),`,
`).concat(h.x,",").concat(h.y,`
`);if(s>0){var f=zt(n,i,s,o),g=zt(n,i,s,d);m+="L ".concat(g.x,",").concat(g.y,`
A `).concat(s,",").concat(s,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(o<=d),`,
`).concat(f.x,",").concat(f.y," Z")}else m+="L ".concat(n,",").concat(i," Z");return m},v_e=function(t){var n=t.cx,i=t.cy,s=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,u=t.endAngle,h=Ar(u-d),m=ex({cx:n,cy:i,radius:a,angle:d,sign:h,cornerRadius:o,cornerIsExternal:c}),f=m.circleTangency,g=m.lineTangency,p=m.theta,v=ex({cx:n,cy:i,radius:a,angle:u,sign:-h,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,x=v.lineTangency,b=v.theta,w=c?Math.abs(d-u):Math.abs(d-u)-p-b;if(w<0)return l?"M ".concat(g.x,",").concat(g.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):xB({cx:n,cy:i,innerRadius:s,outerRadius:a,startAngle:d,endAngle:u});var N="M ".concat(g.x,",").concat(g.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(f.x,",").concat(f.y,`
A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(h<0),",").concat(y.x,",").concat(y.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
`);if(s>0){var S=ex({cx:n,cy:i,radius:s,angle:d,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),k=S.circleTangency,_=S.lineTangency,D=S.theta,A=ex({cx:n,cy:i,radius:s,angle:u,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=A.circleTangency,T=A.lineTangency,M=A.theta,C=c?Math.abs(d-u):Math.abs(d-u)-D-M;if(C<0&&o===0)return"".concat(N,"L").concat(n,",").concat(i,"Z");N+="L".concat(T.x,",").concat(T.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,`
A`).concat(s,",").concat(s,",0,").concat(+(C>180),",").concat(+(h>0),",").concat(k.x,",").concat(k.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,"Z")}else N+="L".concat(n,",").concat(i,"Z");return N},x_e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yB=function(t){var n=tI(tI({},x_e),t),i=n.cx,s=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,d=n.cornerIsExternal,u=n.startAngle,h=n.endAngle,m=n.className;if(o<a||u===h)return null;var f=rt("recharts-sector",m),g=o-a,p=Or(l,g,0,!0),v;return p>0&&Math.abs(u-h)<360?v=v_e({cx:i,cy:s,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:c,cornerIsExternal:d,startAngle:u,endAngle:h}):v=xB({cx:i,cy:s,innerRadius:a,outerRadius:o,startAngle:u,endAngle:h}),L.createElement("path",QS({},We(n,!0),{className:f,d:v,role:"img"}))};function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(e)}function JS(){return JS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},JS.apply(this,arguments)}function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function rI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(i){y_e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function y_e(e,t,n){return t=b_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_e(e){var t=w_e(e,"string");return Fp(t)=="symbol"?t:t+""}function w_e(e,t){if(Fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Fp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iI={curveBasisClosed:ype,curveBasisOpen:bpe,curveBasis:xpe,curveBumpX:ipe,curveBumpY:spe,curveLinearClosed:wpe,curveLinear:Nw,curveMonotoneX:jpe,curveMonotoneY:Npe,curveNatural:Spe,curveStep:kpe,curveStepAfter:_pe,curveStepBefore:Cpe},tx=function(t){return t.x===+t.x&&t.y===+t.y},Fm=function(t){return t.x},Bm=function(t){return t.y},j_e=function(t,n){if(Ke(t))return t;var i="curve".concat(ww(t));return(i==="curveMonotone"||i==="curveBump")&&n?iI["".concat(i).concat(n==="vertical"?"Y":"X")]:iI[i]||Nw},N_e=function(t){var n=t.type,i=n===void 0?"linear":n,s=t.points,a=s===void 0?[]:s,o=t.baseLine,l=t.layout,c=t.connectNulls,d=c===void 0?!1:c,u=j_e(i,l),h=d?a.filter(function(p){return tx(p)}):a,m;if(Array.isArray(o)){var f=d?o.filter(function(p){return tx(p)}):o,g=h.map(function(p,v){return rI(rI({},p),{},{base:f[v]})});return l==="vertical"?m=Hv().y(Bm).x1(Fm).x0(function(p){return p.base.x}):m=Hv().x(Fm).y1(Bm).y0(function(p){return p.base.y}),m.defined(tx).curve(u),m(g)}return l==="vertical"&&ge(o)?m=Hv().y(Bm).x1(Fm).x0(o):ge(o)?m=Hv().x(Fm).y1(Bm).y0(o):m=m7().x(Fm).y(Bm),m.defined(tx).curve(u),m(h)},l0=function(t){var n=t.className,i=t.points,s=t.path,a=t.pathRef;if((!i||!i.length)&&!s)return null;var o=i&&i.length?N_e(t):s;return L.createElement("path",JS({},We(t,!1),Iy(t),{className:rt("recharts-curve",n),d:o,ref:a}))},S_e=Object.getOwnPropertyNames,k_e=Object.getOwnPropertySymbols,C_e=Object.prototype.hasOwnProperty;function sI(e,t){return function(i,s,a){return e(i,s,a)&&t(i,s,a)}}function nx(e){return function(n,i,s){if(!n||!i||typeof n!="object"||typeof i!="object")return e(n,i,s);var a=s.cache,o=a.get(n),l=a.get(i);if(o&&l)return o===i&&l===n;a.set(n,i),a.set(i,n);var c=e(n,i,s);return a.delete(n),a.delete(i),c}}function aI(e){return S_e(e).concat(k_e(e))}var bB=Object.hasOwn||function(e,t){return C_e.call(e,t)};function om(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var wB="_owner",oI=Object.getOwnPropertyDescriptor,lI=Object.keys;function __e(e,t,n){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function T_e(e,t){return om(e.getTime(),t.getTime())}function cI(e,t,n){if(e.size!==t.size)return!1;for(var i={},s=e.entries(),a=0,o,l;(o=s.next())&&!o.done;){for(var c=t.entries(),d=!1,u=0;(l=c.next())&&!l.done;){var h=o.value,m=h[0],f=h[1],g=l.value,p=g[0],v=g[1];!d&&!i[u]&&(d=n.equals(m,p,a,u,e,t,n)&&n.equals(f,v,m,p,e,t,n))&&(i[u]=!0),u++}if(!d)return!1;a++}return!0}function P_e(e,t,n){var i=lI(e),s=i.length;if(lI(t).length!==s)return!1;for(var a;s-- >0;)if(a=i[s],a===wB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bB(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Wm(e,t,n){var i=aI(e),s=i.length;if(aI(t).length!==s)return!1;for(var a,o,l;s-- >0;)if(a=i[s],a===wB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bB(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=oI(e,a),l=oI(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function E_e(e,t){return om(e.valueOf(),t.valueOf())}function A_e(e,t){return e.source===t.source&&e.flags===t.flags}function dI(e,t,n){if(e.size!==t.size)return!1;for(var i={},s=e.values(),a,o;(a=s.next())&&!a.done;){for(var l=t.values(),c=!1,d=0;(o=l.next())&&!o.done;)!c&&!i[d]&&(c=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(i[d]=!0),d++;if(!c)return!1}return!0}function O_e(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var I_e="[object Arguments]",D_e="[object Boolean]",M_e="[object Date]",R_e="[object Map]",$_e="[object Number]",L_e="[object Object]",U_e="[object RegExp]",F_e="[object Set]",B_e="[object String]",W_e=Array.isArray,uI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,hI=Object.assign,z_e=Object.prototype.toString.call.bind(Object.prototype.toString);function q_e(e){var t=e.areArraysEqual,n=e.areDatesEqual,i=e.areMapsEqual,s=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,l=e.areSetsEqual,c=e.areTypedArraysEqual;return function(u,h,m){if(u===h)return!0;if(u==null||h==null||typeof u!="object"||typeof h!="object")return u!==u&&h!==h;var f=u.constructor;if(f!==h.constructor)return!1;if(f===Object)return s(u,h,m);if(W_e(u))return t(u,h,m);if(uI!=null&&uI(u))return c(u,h,m);if(f===Date)return n(u,h,m);if(f===RegExp)return o(u,h,m);if(f===Map)return i(u,h,m);if(f===Set)return l(u,h,m);var g=z_e(u);return g===M_e?n(u,h,m):g===U_e?o(u,h,m):g===R_e?i(u,h,m):g===F_e?l(u,h,m):g===L_e?typeof u.then!="function"&&typeof h.then!="function"&&s(u,h,m):g===I_e?s(u,h,m):g===D_e||g===$_e||g===B_e?a(u,h,m):!1}}function H_e(e){var t=e.circular,n=e.createCustomConfig,i=e.strict,s={areArraysEqual:i?Wm:__e,areDatesEqual:T_e,areMapsEqual:i?sI(cI,Wm):cI,areObjectsEqual:i?Wm:P_e,arePrimitiveWrappersEqual:E_e,areRegExpsEqual:A_e,areSetsEqual:i?sI(dI,Wm):dI,areTypedArraysEqual:i?Wm:O_e};if(n&&(s=hI({},s,n(s))),t){var a=nx(s.areArraysEqual),o=nx(s.areMapsEqual),l=nx(s.areObjectsEqual),c=nx(s.areSetsEqual);s=hI({},s,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return s}function V_e(e){return function(t,n,i,s,a,o,l){return e(t,n,l)}}function G_e(e){var t=e.circular,n=e.comparator,i=e.createState,s=e.equals,a=e.strict;if(i)return function(c,d){var u=i(),h=u.cache,m=h===void 0?t?new WeakMap:void 0:h,f=u.meta;return n(c,d,{cache:m,equals:s,meta:f,strict:a})};if(t)return function(c,d){return n(c,d,{cache:new WeakMap,equals:s,meta:void 0,strict:a})};var o={cache:void 0,equals:s,meta:void 0,strict:a};return function(c,d){return n(c,d,o)}}var Y_e=Xl();Xl({strict:!0});Xl({circular:!0});Xl({circular:!0,strict:!0});Xl({createInternalComparator:function(){return om}});Xl({strict:!0,createInternalComparator:function(){return om}});Xl({circular:!0,createInternalComparator:function(){return om}});Xl({circular:!0,createInternalComparator:function(){return om},strict:!0});function Xl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,i=e.createInternalComparator,s=e.createState,a=e.strict,o=a===void 0?!1:a,l=H_e(e),c=q_e(l),d=i?i(c):V_e(c);return G_e({circular:n,comparator:c,createState:s,equals:d,strict:o})}function K_e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function mI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,i=function s(a){n<0&&(n=a),a-n>t?(e(a),n=-1):K_e(s)};requestAnimationFrame(i)}function ZS(e){"@babel/helpers - typeof";return ZS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZS(e)}function X_e(e){return e5e(e)||Z_e(e)||J_e(e)||Q_e()}function Q_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J_e(e,t){if(e){if(typeof e=="string")return fI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fI(e,t)}}function fI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Z_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e5e(e){if(Array.isArray(e))return e}function t5e(){var e={},t=function(){return null},n=!1,i=function s(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=X_e(o),c=l[0],d=l.slice(1);if(typeof c=="number"){mI(s.bind(null,d),c);return}s(c),mI(s.bind(null,d));return}ZS(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,i(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Bp(e){"@babel/helpers - typeof";return Bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(e)}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function gI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(i){jB(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function jB(e,t,n){return t=n5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n5e(e){var t=r5e(e,"string");return Bp(t)==="symbol"?t:String(t)}function r5e(e,t){if(Bp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Bp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i5e=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(i,s){return i.filter(function(a){return s.includes(a)})})},s5e=function(t){return t},a5e=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Af=function(t,n){return Object.keys(n).reduce(function(i,s){return gI(gI({},i),{},jB({},s,t(s,n[s])))},{})},vI=function(t,n,i){return t.map(function(s){return"".concat(a5e(s)," ").concat(n,"ms ").concat(i)}).join(",")};function o5e(e,t){return d5e(e)||c5e(e,t)||NB(e,t)||l5e()}function l5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function d5e(e){if(Array.isArray(e))return e}function u5e(e){return f5e(e)||m5e(e)||NB(e)||h5e()}function h5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NB(e,t){if(e){if(typeof e=="string")return ek(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ek(e,t)}}function m5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f5e(e){if(Array.isArray(e))return ek(e)}function ek(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var c0=1e-4,SB=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},kB=function(t,n){return t.map(function(i,s){return i*Math.pow(n,s)}).reduce(function(i,s){return i+s})},xI=function(t,n){return function(i){var s=SB(t,n);return kB(s,i)}},p5e=function(t,n){return function(i){var s=SB(t,n),a=[].concat(u5e(s.map(function(o,l){return o*l}).slice(1)),[0]);return kB(a,i)}},yI=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":s=0,a=0,o=1,l=1;break;case"ease":s=.25,a=.1,o=.25,l=1;break;case"ease-in":s=.42,a=0,o=1,l=1;break;case"ease-out":s=.42,a=0,o=.58,l=1;break;case"ease-in-out":s=0,a=0,o=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var d=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),u=o5e(d,4);s=u[0],a=u[1],o=u[2],l=u[3]}}}var h=xI(s,o),m=xI(a,l),f=p5e(s,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var x=y>1?1:y,b=x,w=0;w<8;++w){var N=h(b)-x,S=f(b);if(Math.abs(N-x)<c0||S<c0)return m(b);b=g(b-N/S)}return m(b)};return p.isStepper=!1,p},g5e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,i=n===void 0?100:n,s=t.damping,a=s===void 0?8:s,o=t.dt,l=o===void 0?17:o,c=function(u,h,m){var f=-(u-h)*i,g=m*a,p=m+(f-g)*l/1e3,v=m*l/1e3+u;return Math.abs(v-h)<c0&&Math.abs(p)<c0?[h,0]:[v,p]};return c.isStepper=!0,c.dt=l,c},v5e=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=n[0];if(typeof s=="string")switch(s){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yI(s);case"spring":return g5e();default:if(s.split("(")[0]==="cubic-bezier")return yI(s)}return typeof s=="function"?s:null};function Wp(e){"@babel/helpers - typeof";return Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(e)}function bI(e){return b5e(e)||y5e(e)||CB(e)||x5e()}function x5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b5e(e){if(Array.isArray(e))return nk(e)}function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(i){tk(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function tk(e,t,n){return t=w5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w5e(e){var t=j5e(e,"string");return Wp(t)==="symbol"?t:String(t)}function j5e(e,t){if(Wp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Wp(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N5e(e,t){return C5e(e)||k5e(e,t)||CB(e,t)||S5e()}function S5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CB(e,t){if(e){if(typeof e=="string")return nk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nk(e,t)}}function nk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function k5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function C5e(e){if(Array.isArray(e))return e}var d0=function(t,n,i){return t+(n-t)*i},rk=function(t){var n=t.from,i=t.to;return n!==i},_5e=function e(t,n,i){var s=Af(function(a,o){if(rk(o)){var l=t(o.from,o.to,o.velocity),c=N5e(l,2),d=c[0],u=c[1];return ir(ir({},o),{},{from:d,velocity:u})}return o},n);return i<1?Af(function(a,o){return rk(o)?ir(ir({},o),{},{velocity:d0(o.velocity,s[a].velocity,i),from:d0(o.from,s[a].from,i)}):o},n):e(t,s,i-1)};const T5e=function(e,t,n,i,s){var a=i5e(e,t),o=a.reduce(function(v,y){return ir(ir({},v),{},tk({},y,[e[y],t[y]]))},{}),l=a.reduce(function(v,y){return ir(ir({},v),{},tk({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,d,u,h=function(){return null},m=function(){return Af(function(y,x){return x.from},l)},f=function(){return!Object.values(l).filter(rk).length},g=function(y){d||(d=y);var x=y-d,b=x/n.dt;l=_5e(n,l,b),s(ir(ir(ir({},e),t),m())),d=y,f()||(c=requestAnimationFrame(h))},p=function(y){u||(u=y);var x=(y-u)/i,b=Af(function(N,S){return d0.apply(void 0,bI(S).concat([n(x)]))},o);if(s(ir(ir(ir({},e),t),b)),x<1)c=requestAnimationFrame(h);else{var w=Af(function(N,S){return d0.apply(void 0,bI(S).concat([n(1)]))},o);s(ir(ir(ir({},e),t),w))}};return h=n.isStepper?g:p,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(c)}}};function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}var P5e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function E5e(e,t){if(e==null)return{};var n=A5e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function A5e(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function W1(e){return M5e(e)||D5e(e)||I5e(e)||O5e()}function O5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I5e(e,t){if(e){if(typeof e=="string")return ik(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ik(e,t)}}function D5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M5e(e){if(Array.isArray(e))return ik(e)}function ik(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function jI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jI(Object(n),!0).forEach(function(i){rf(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function rf(e,t,n){return t=_B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $5e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_B(i.key),i)}}function L5e(e,t,n){return t&&$5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _B(e){var t=U5e(e,"string");return ch(t)==="symbol"?t:String(t)}function U5e(e,t){if(ch(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(ch(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F5e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sk(e,t)}function sk(e,t){return sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},sk(e,t)}function B5e(e){var t=W5e();return function(){var i=u0(e),s;if(t){var a=u0(this).constructor;s=Reflect.construct(i,arguments,a)}else s=i.apply(this,arguments);return ak(this,s)}}function ak(e,t){if(t&&(ch(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ok(e)}function ok(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W5e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u0(e)}var Sa=function(e){F5e(n,e);var t=B5e(n);function n(i,s){var a;R5e(this,n),a=t.call(this,i,s);var o=a.props,l=o.isActive,c=o.attributeName,d=o.from,u=o.to,h=o.steps,m=o.children,f=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ok(a)),a.changeStyle=a.changeStyle.bind(ok(a)),!l||f<=0)return a.state={style:{}},typeof m=="function"&&(a.state={style:u}),ak(a);if(h&&h.length)a.state={style:h[0].style};else if(d){if(typeof m=="function")return a.state={style:d},ak(a);a.state={style:c?rf({},c,d):d}}else a.state={style:{}};return a}return L5e(n,[{key:"componentDidMount",value:function(){var s=this.props,a=s.isActive,o=s.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(s){var a=this.props,o=a.isActive,l=a.canBegin,c=a.attributeName,d=a.shouldReAnimate,u=a.to,h=a.from,m=this.state.style;if(l){if(!o){var f={style:c?rf({},c,u):u};this.state&&m&&(c&&m[c]!==u||!c&&m!==u)&&this.setState(f);return}if(!(Y_e(s.to,u)&&s.canBegin&&s.isActive)){var g=!s.canBegin||!s.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||d?h:s.to;if(this.state&&m){var v={style:c?rf({},c,p):p};(c&&m[c]!==p||!c&&m!==p)&&this.setState(v)}this.runAnimation(ms(ms({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var s=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),s&&s()}},{key:"handleStyleChange",value:function(s){this.changeStyle(s)}},{key:"changeStyle",value:function(s){this.mounted&&this.setState({style:s})}},{key:"runJSAnimation",value:function(s){var a=this,o=s.from,l=s.to,c=s.duration,d=s.easing,u=s.begin,h=s.onAnimationEnd,m=s.onAnimationStart,f=T5e(o,l,v5e(d),c,this.changeStyle),g=function(){a.stopJSAnimation=f()};this.manager.start([m,u,g,c,h])}},{key:"runStepAnimation",value:function(s){var a=this,o=s.steps,l=s.begin,c=s.onAnimationStart,d=o[0],u=d.style,h=d.duration,m=h===void 0?0:h,f=function(p,v,y){if(y===0)return p;var x=v.duration,b=v.easing,w=b===void 0?"ease":b,N=v.style,S=v.properties,k=v.onAnimationEnd,_=y>0?o[y-1]:v,D=S||Object.keys(N);if(typeof w=="function"||w==="spring")return[].concat(W1(p),[a.runJSAnimation.bind(a,{from:_.style,to:N,duration:x,easing:w}),x]);var A=vI(D,x,w),E=ms(ms(ms({},_.style),N),{},{transition:A});return[].concat(W1(p),[E,x,k]).filter(s5e)};return this.manager.start([c].concat(W1(o.reduce(f,[u,Math.max(m,l)])),[s.onAnimationEnd]))}},{key:"runAnimation",value:function(s){this.manager||(this.manager=t5e());var a=s.begin,o=s.duration,l=s.attributeName,c=s.to,d=s.easing,u=s.onAnimationStart,h=s.onAnimationEnd,m=s.steps,f=s.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof d=="function"||typeof f=="function"||d==="spring"){this.runJSAnimation(s);return}if(m.length>1){this.runStepAnimation(s);return}var p=l?rf({},l,c):c,v=vI(Object.keys(p),o,d);g.start([u,a,ms(ms({},p),{},{transition:v}),o,h])}},{key:"render",value:function(){var s=this.props,a=s.children;s.begin;var o=s.duration;s.attributeName,s.easing;var l=s.isActive;s.steps,s.from,s.to,s.canBegin,s.onAnimationEnd,s.shouldReAnimate,s.onAnimationReStart;var c=E5e(s,P5e),d=j.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!l||d===0||o<=0)return a;var h=function(f){var g=f.props,p=g.style,v=p===void 0?{}:p,y=g.className,x=j.cloneElement(f,ms(ms({},c),{},{style:ms(ms({},v),u),className:y}));return x};return d===1?h(j.Children.only(a)):L.createElement("div",null,j.Children.map(a,function(m){return h(m)}))}}]),n}(j.PureComponent);Sa.displayName="Animate";Sa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Sa.propTypes={from:G.oneOfType([G.object,G.string]),to:G.oneOfType([G.object,G.string]),attributeName:G.string,duration:G.number,begin:G.number,easing:G.oneOfType([G.string,G.func]),steps:G.arrayOf(G.shape({duration:G.number.isRequired,style:G.object.isRequired,easing:G.oneOfType([G.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),G.func]),properties:G.arrayOf("string"),onAnimationEnd:G.func})),children:G.oneOfType([G.node,G.func]),isActive:G.bool,canBegin:G.bool,onAnimationEnd:G.func,shouldReAnimate:G.bool,onAnimationStart:G.func,onAnimationReStart:G.func};G.object,G.object,G.object,G.element;G.object,G.object,G.object,G.oneOfType([G.array,G.element]),G.any;function zp(e){"@babel/helpers - typeof";return zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zp(e)}function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h0.apply(this,arguments)}function z5e(e,t){return G5e(e)||V5e(e,t)||H5e(e,t)||q5e()}function q5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H5e(e,t){if(e){if(typeof e=="string")return NI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NI(e,t)}}function NI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function V5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function G5e(e){if(Array.isArray(e))return e}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function kI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SI(Object(n),!0).forEach(function(i){Y5e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Y5e(e,t,n){return t=K5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K5e(e){var t=X5e(e,"string");return zp(t)=="symbol"?t:t+""}function X5e(e,t){if(zp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(zp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CI=function(t,n,i,s,a){var o=Math.min(Math.abs(i)/2,Math.abs(s)/2),l=s>=0?1:-1,c=i>=0?1:-1,d=s>=0&&i>=0||s<0&&i<0?1:0,u;if(o>0&&a instanceof Array){for(var h=[0,0,0,0],m=0,f=4;m<f;m++)h[m]=a[m]>o?o:a[m];u="M".concat(t,",").concat(n+l*h[0]),h[0]>0&&(u+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(d,",").concat(t+c*h[0],",").concat(n)),u+="L ".concat(t+i-c*h[1],",").concat(n),h[1]>0&&(u+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(d,`,
`).concat(t+i,",").concat(n+l*h[1])),u+="L ".concat(t+i,",").concat(n+s-l*h[2]),h[2]>0&&(u+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(d,`,
`).concat(t+i-c*h[2],",").concat(n+s)),u+="L ".concat(t+c*h[3],",").concat(n+s),h[3]>0&&(u+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(d,`,
`).concat(t,",").concat(n+s-l*h[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);u="M ".concat(t,",").concat(n+l*g,`
A `).concat(g,",").concat(g,",0,0,").concat(d,",").concat(t+c*g,",").concat(n,`
L `).concat(t+i-c*g,",").concat(n,`
A `).concat(g,",").concat(g,",0,0,").concat(d,",").concat(t+i,",").concat(n+l*g,`
L `).concat(t+i,",").concat(n+s-l*g,`
A `).concat(g,",").concat(g,",0,0,").concat(d,",").concat(t+i-c*g,",").concat(n+s,`
L `).concat(t+c*g,",").concat(n+s,`
A `).concat(g,",").concat(g,",0,0,").concat(d,",").concat(t,",").concat(n+s-l*g," Z")}else u="M ".concat(t,",").concat(n," h ").concat(i," v ").concat(s," h ").concat(-i," Z");return u},Q5e=function(t,n){if(!t||!n)return!1;var i=t.x,s=t.y,a=n.x,o=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var d=Math.min(a,a+l),u=Math.max(a,a+l),h=Math.min(o,o+c),m=Math.max(o,o+c);return i>=d&&i<=u&&s>=h&&s<=m}return!1},J5e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},l3=function(t){var n=kI(kI({},J5e),t),i=j.useRef(),s=j.useState(-1),a=z5e(s,2),o=a[0],l=a[1];j.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var w=i.current.getTotalLength();w&&l(w)}catch{}},[]);var c=n.x,d=n.y,u=n.width,h=n.height,m=n.radius,f=n.className,g=n.animationEasing,p=n.animationDuration,v=n.animationBegin,y=n.isAnimationActive,x=n.isUpdateAnimationActive;if(c!==+c||d!==+d||u!==+u||h!==+h||u===0||h===0)return null;var b=rt("recharts-rectangle",f);return x?L.createElement(Sa,{canBegin:o>0,from:{width:u,height:h,x:c,y:d},to:{width:u,height:h,x:c,y:d},duration:p,animationEasing:g,isActive:x},function(w){var N=w.width,S=w.height,k=w.x,_=w.y;return L.createElement(Sa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:g},L.createElement("path",h0({},We(n,!0),{className:b,d:CI(k,_,N,S,m),ref:i})))}):L.createElement("path",h0({},We(n,!0),{className:b,d:CI(c,d,u,h,m)}))},Z5e=["points","className","baseLinePoints","connectNulls"];function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},nu.apply(this,arguments)}function e3e(e,t){if(e==null)return{};var n=t3e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function t3e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _I(e){return s3e(e)||i3e(e)||r3e(e)||n3e()}function n3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r3e(e,t){if(e){if(typeof e=="string")return lk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lk(e,t)}}function i3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s3e(e){if(Array.isArray(e))return lk(e)}function lk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var TI=function(t){return t&&t.x===+t.x&&t.y===+t.y},a3e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(i){TI(i)?n[n.length-1].push(i):n[n.length-1].length>0&&n.push([])}),TI(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Of=function(t,n){var i=a3e(t);n&&(i=[i.reduce(function(a,o){return[].concat(_I(a),_I(o))},[])]);var s=i.map(function(a){return a.reduce(function(o,l,c){return"".concat(o).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return i.length===1?"".concat(s,"Z"):s},o3e=function(t,n,i){var s=Of(t,i);return"".concat(s.slice(-1)==="Z"?s.slice(0,-1):s,"L").concat(Of(n.reverse(),i).slice(1))},l3e=function(t){var n=t.points,i=t.className,s=t.baseLinePoints,a=t.connectNulls,o=e3e(t,Z5e);if(!n||!n.length)return null;var l=rt("recharts-polygon",i);if(s&&s.length){var c=o.stroke&&o.stroke!=="none",d=o3e(n,s,a);return L.createElement("g",{className:l},L.createElement("path",nu({},We(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",stroke:"none",d})),c?L.createElement("path",nu({},We(o,!0),{fill:"none",d:Of(n,a)})):null,c?L.createElement("path",nu({},We(o,!0),{fill:"none",d:Of(s,a)})):null)}var u=Of(n,a);return L.createElement("path",nu({},We(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:l,d:u}))};function ck(){return ck=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ck.apply(this,arguments)}var Uw=function(t){var n=t.cx,i=t.cy,s=t.r,a=t.className,o=rt("recharts-dot",a);return n===+n&&i===+i&&s===+s?L.createElement("circle",ck({},We(t,!1),Iy(t),{className:o,cx:n,cy:i,r:s})):null};function qp(e){"@babel/helpers - typeof";return qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qp(e)}var c3e=["x","y","top","left","width","height","className"];function dk(){return dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dk.apply(this,arguments)}function PI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function d3e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(i){u3e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function u3e(e,t,n){return t=h3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h3e(e){var t=m3e(e,"string");return qp(t)=="symbol"?t:t+""}function m3e(e,t){if(qp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(qp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f3e(e,t){if(e==null)return{};var n=p3e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function p3e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var g3e=function(t,n,i,s,a,o){return"M".concat(t,",").concat(a,"v").concat(s,"M").concat(o,",").concat(n,"h").concat(i)},v3e=function(t){var n=t.x,i=n===void 0?0:n,s=t.y,a=s===void 0?0:s,o=t.top,l=o===void 0?0:o,c=t.left,d=c===void 0?0:c,u=t.width,h=u===void 0?0:u,m=t.height,f=m===void 0?0:m,g=t.className,p=f3e(t,c3e),v=d3e({x:i,y:a,top:l,left:d,width:h,height:f},p);return!ge(i)||!ge(a)||!ge(h)||!ge(f)||!ge(l)||!ge(d)?null:L.createElement("path",dk({},We(v,!0),{className:rt("recharts-cross",g),d:g3e(i,a,h,f,l,d)}))},x3e=Dw,y3e=B9,b3e=Pa;function w3e(e,t){return e&&e.length?x3e(e,b3e(t),y3e):void 0}var j3e=w3e;const N3e=jt(j3e);var S3e=Dw,k3e=Pa,C3e=W9;function _3e(e,t){return e&&e.length?S3e(e,k3e(t),C3e):void 0}var T3e=_3e;const P3e=jt(T3e);var E3e=["cx","cy","angle","ticks","axisLine"],A3e=["ticks","tick","angle","tickFormatter","stroke"];function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},If.apply(this,arguments)}function EI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EI(Object(n),!0).forEach(function(i){Fw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function AI(e,t){if(e==null)return{};var n=O3e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function O3e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function I3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,PB(i.key),i)}}function D3e(e,t,n){return t&&OI(e.prototype,t),n&&OI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M3e(e,t,n){return t=m0(t),R3e(e,TB()?Reflect.construct(t,n||[],m0(e).constructor):t.apply(e,n))}function R3e(e,t){if(t&&(dh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $3e(e)}function $3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TB=function(){return!!e})()}function m0(e){return m0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m0(e)}function L3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uk(e,t)}function uk(e,t){return uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},uk(e,t)}function Fw(e,t,n){return t=PB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=U3e(e,"string");return dh(t)=="symbol"?t:t+""}function U3e(e,t){if(dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(dh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bw=function(e){function t(){return I3e(this,t),M3e(this,t,arguments)}return L3e(t,e),D3e(t,[{key:"getTickValueCoord",value:function(i){var s=i.coordinate,a=this.props,o=a.angle,l=a.cx,c=a.cy;return zt(l,c,s,o)}},{key:"getTickTextAnchor",value:function(){var i=this.props.orientation,s;switch(i){case"left":s="end";break;case"right":s="start";break;default:s="middle";break}return s}},{key:"getViewBox",value:function(){var i=this.props,s=i.cx,a=i.cy,o=i.angle,l=i.ticks,c=N3e(l,function(u){return u.coordinate||0}),d=P3e(l,function(u){return u.coordinate||0});return{cx:s,cy:a,startAngle:o,endAngle:o,innerRadius:d.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var i=this.props,s=i.cx,a=i.cy,o=i.angle,l=i.ticks,c=i.axisLine,d=AI(i,E3e),u=l.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),h=zt(s,a,u[0],o),m=zt(s,a,u[1],o),f=ec(ec(ec({},We(d,!1)),{},{fill:"none"},We(c,!1)),{},{x1:h.x,y1:h.y,x2:m.x,y2:m.y});return L.createElement("line",If({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var i=this,s=this.props,a=s.ticks,o=s.tick,l=s.angle,c=s.tickFormatter,d=s.stroke,u=AI(s,A3e),h=this.getTickTextAnchor(),m=We(u,!1),f=We(o,!1),g=a.map(function(p,v){var y=i.getTickValueCoord(p),x=ec(ec(ec(ec({textAnchor:h,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},m),{},{stroke:"none",fill:d},f),{},{index:v},y),{},{payload:p});return L.createElement(Nt,If({className:rt("recharts-polar-radius-axis-tick",gB(o)),key:"tick-".concat(p.coordinate)},Kc(i.props,p,v)),t.renderTickItem(o,x,c?c(p.value,v):p.value))});return L.createElement(Nt,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var i=this.props,s=i.ticks,a=i.axisLine,o=i.tick;return!s||!s.length?null:L.createElement(Nt,{className:rt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Xn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(i,s,a){var o;return L.isValidElement(i)?o=L.cloneElement(i,s):Ke(i)?o=i(s):o=L.createElement(Xc,If({},s,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(j.PureComponent);Fw(Bw,"displayName","PolarRadiusAxis");Fw(Bw,"axisType","radiusAxis");Fw(Bw,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mc.apply(this,arguments)}function II(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?II(Object(n),!0).forEach(function(i){Ww(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):II(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function F3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,AB(i.key),i)}}function B3e(e,t,n){return t&&DI(e.prototype,t),n&&DI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function W3e(e,t,n){return t=f0(t),z3e(e,EB()?Reflect.construct(t,n||[],f0(e).constructor):t.apply(e,n))}function z3e(e,t){if(t&&(uh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q3e(e)}function q3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EB=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f0(e)}function H3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hk(e,t)}function hk(e,t){return hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},hk(e,t)}function Ww(e,t,n){return t=AB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=V3e(e,"string");return uh(t)=="symbol"?t:t+""}function V3e(e,t){if(uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(uh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G3e=Math.PI/180,MI=1e-5,zw=function(e){function t(){return F3e(this,t),W3e(this,t,arguments)}return H3e(t,e),B3e(t,[{key:"getTickLineCoord",value:function(i){var s=this.props,a=s.cx,o=s.cy,l=s.radius,c=s.orientation,d=s.tickSize,u=d||8,h=zt(a,o,l,i.coordinate),m=zt(a,o,l+(c==="inner"?-1:1)*u,i.coordinate);return{x1:h.x,y1:h.y,x2:m.x,y2:m.y}}},{key:"getTickTextAnchor",value:function(i){var s=this.props.orientation,a=Math.cos(-i.coordinate*G3e),o;return a>MI?o=s==="outer"?"start":"end":a<-MI?o=s==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var i=this.props,s=i.cx,a=i.cy,o=i.radius,l=i.axisLine,c=i.axisLineType,d=tc(tc({},We(this.props,!1)),{},{fill:"none"},We(l,!1));if(c==="circle")return L.createElement(Uw,mc({className:"recharts-polar-angle-axis-line"},d,{cx:s,cy:a,r:o}));var u=this.props.ticks,h=u.map(function(m){return zt(s,a,o,m.coordinate)});return L.createElement(l3e,mc({className:"recharts-polar-angle-axis-line"},d,{points:h}))}},{key:"renderTicks",value:function(){var i=this,s=this.props,a=s.ticks,o=s.tick,l=s.tickLine,c=s.tickFormatter,d=s.stroke,u=We(this.props,!1),h=We(o,!1),m=tc(tc({},u),{},{fill:"none"},We(l,!1)),f=a.map(function(g,p){var v=i.getTickLineCoord(g),y=i.getTickTextAnchor(g),x=tc(tc(tc({textAnchor:y},u),{},{stroke:"none",fill:d},h),{},{index:p,payload:g,x:v.x2,y:v.y2});return L.createElement(Nt,mc({className:rt("recharts-polar-angle-axis-tick",gB(o)),key:"tick-".concat(g.coordinate)},Kc(i.props,g,p)),l&&L.createElement("line",mc({className:"recharts-polar-angle-axis-tick-line"},m,v)),o&&t.renderTickItem(o,x,c?c(g.value,p):g.value))});return L.createElement(Nt,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var i=this.props,s=i.ticks,a=i.radius,o=i.axisLine;return a<=0||!s||!s.length?null:L.createElement(Nt,{className:rt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(i,s,a){var o;return L.isValidElement(i)?o=L.cloneElement(i,s):Ke(i)?o=i(s):o=L.createElement(Xc,mc({},s,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(j.PureComponent);Ww(zw,"displayName","PolarAngleAxis");Ww(zw,"axisType","angleAxis");Ww(zw,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Y3e=$7,K3e=Y3e(Object.getPrototypeOf,Object),X3e=K3e,Q3e=Co,J3e=X3e,Z3e=_o,eTe="[object Object]",tTe=Function.prototype,nTe=Object.prototype,OB=tTe.toString,rTe=nTe.hasOwnProperty,iTe=OB.call(Object);function sTe(e){if(!Z3e(e)||Q3e(e)!=eTe)return!1;var t=J3e(e);if(t===null)return!0;var n=rTe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&OB.call(n)==iTe}var aTe=sTe;const oTe=jt(aTe);var lTe=Co,cTe=_o,dTe="[object Boolean]";function uTe(e){return e===!0||e===!1||cTe(e)&&lTe(e)==dTe}var hTe=uTe;const mTe=jt(hTe);function Hp(e){"@babel/helpers - typeof";return Hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hp(e)}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},p0.apply(this,arguments)}function fTe(e,t){return xTe(e)||vTe(e,t)||gTe(e,t)||pTe()}function pTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gTe(e,t){if(e){if(typeof e=="string")return RI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RI(e,t)}}function RI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function vTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function xTe(e){if(Array.isArray(e))return e}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function LI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$I(Object(n),!0).forEach(function(i){yTe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function yTe(e,t,n){return t=bTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bTe(e){var t=wTe(e,"string");return Hp(t)=="symbol"?t:t+""}function wTe(e,t){if(Hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Hp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UI=function(t,n,i,s,a){var o=i-s,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+i,",").concat(n),l+="L ".concat(t+i-o/2,",").concat(n+a),l+="L ".concat(t+i-o/2-s,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},jTe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NTe=function(t){var n=LI(LI({},jTe),t),i=j.useRef(),s=j.useState(-1),a=fTe(s,2),o=a[0],l=a[1];j.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var b=i.current.getTotalLength();b&&l(b)}catch{}},[]);var c=n.x,d=n.y,u=n.upperWidth,h=n.lowerWidth,m=n.height,f=n.className,g=n.animationEasing,p=n.animationDuration,v=n.animationBegin,y=n.isUpdateAnimationActive;if(c!==+c||d!==+d||u!==+u||h!==+h||m!==+m||u===0&&h===0||m===0)return null;var x=rt("recharts-trapezoid",f);return y?L.createElement(Sa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:d},to:{upperWidth:u,lowerWidth:h,height:m,x:c,y:d},duration:p,animationEasing:g,isActive:y},function(b){var w=b.upperWidth,N=b.lowerWidth,S=b.height,k=b.x,_=b.y;return L.createElement(Sa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},L.createElement("path",p0({},We(n,!0),{className:x,d:UI(k,_,w,N,S),ref:i})))}):L.createElement("g",null,L.createElement("path",p0({},We(n,!0),{className:x,d:UI(c,d,u,h,m)})))},STe=["option","shapeType","propTransformer","activeClassName","isActive"];function Vp(e){"@babel/helpers - typeof";return Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vp(e)}function kTe(e,t){if(e==null)return{};var n=CTe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function CTe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function g0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(i){_Te(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _Te(e,t,n){return t=TTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TTe(e){var t=PTe(e,"string");return Vp(t)=="symbol"?t:t+""}function PTe(e,t){if(Vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Vp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ETe(e,t){return g0(g0({},t),e)}function ATe(e,t){return e==="symbols"}function BI(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement(l3,n);case"trapezoid":return L.createElement(NTe,n);case"sector":return L.createElement(yB,n);case"symbols":if(ATe(t))return L.createElement(_5,n);break;default:return null}}function OTe(e){return j.isValidElement(e)?e.props:e}function IB(e){var t=e.option,n=e.shapeType,i=e.propTransformer,s=i===void 0?ETe:i,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,c=kTe(e,STe),d;if(j.isValidElement(t))d=j.cloneElement(t,g0(g0({},c),OTe(t)));else if(Ke(t))d=t(c);else if(oTe(t)&&!mTe(t)){var u=s(t,c);d=L.createElement(BI,{shapeType:n,elementProps:u})}else{var h=c;d=L.createElement(BI,{shapeType:n,elementProps:h})}return l?L.createElement(Nt,{className:o},d):d}function qw(e,t){return t!=null&&"trapezoids"in e.props}function Hw(e,t){return t!=null&&"sectors"in e.props}function Gp(e,t){return t!=null&&"points"in e.props}function ITe(e,t){var n,i,s=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(i=t.labelViewBox)===null||i===void 0?void 0:i.y)||e.y===t.y;return s&&a}function DTe(e,t){var n=e.endAngle===t.endAngle,i=e.startAngle===t.startAngle;return n&&i}function MTe(e,t){var n=e.x===t.x,i=e.y===t.y,s=e.z===t.z;return n&&i&&s}function RTe(e,t){var n;return qw(e,t)?n=ITe:Hw(e,t)?n=DTe:Gp(e,t)&&(n=MTe),n}function $Te(e,t){var n;return qw(e,t)?n="trapezoids":Hw(e,t)?n="sectors":Gp(e,t)&&(n="points"),n}function LTe(e,t){if(qw(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Hw(e,t)){var i;return(i=t.tooltipPayload)===null||i===void 0||(i=i[0])===null||i===void 0||(i=i.payload)===null||i===void 0?void 0:i.payload}return Gp(e,t)?t.payload:{}}function UTe(e){var t=e.activeTooltipItem,n=e.graphicalItem,i=e.itemData,s=$Te(n,t),a=LTe(n,t),o=i.filter(function(c,d){var u=qg(a,c),h=n.props[s].filter(function(g){var p=RTe(n,t);return p(g,t)}),m=n.props[s].indexOf(h[h.length-1]),f=d===m;return u&&f}),l=i.indexOf(o[o.length-1]);return l}var Rx;function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ru.apply(this,arguments)}function WI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WI(Object(n),!0).forEach(function(i){Bi(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function FTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,MB(i.key),i)}}function BTe(e,t,n){return t&&zI(e.prototype,t),n&&zI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WTe(e,t,n){return t=v0(t),zTe(e,DB()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function zTe(e,t){if(t&&(hh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qTe(e)}function qTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DB=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}function HTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mk(e,t)}function mk(e,t){return mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},mk(e,t)}function Bi(e,t,n){return t=MB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MB(e){var t=VTe(e,"string");return hh(t)=="symbol"?t:t+""}function VTe(e,t){if(hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(hh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ss=function(e){function t(n){var i;return FTe(this,t),i=WTe(this,t,[n]),Bi(i,"pieRef",null),Bi(i,"sectorRefs",[]),Bi(i,"id",em("recharts-pie-")),Bi(i,"handleAnimationEnd",function(){var s=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),Ke(s)&&s()}),Bi(i,"handleAnimationStart",function(){var s=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),Ke(s)&&s()}),i.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},i}return HTe(t,e),BTe(t,[{key:"isActiveIndex",value:function(i){var s=this.props.activeIndex;return Array.isArray(s)?s.indexOf(i)!==-1:i===s}},{key:"hasActiveIndex",value:function(){var i=this.props.activeIndex;return Array.isArray(i)?i.length!==0:i||i===0}},{key:"renderLabels",value:function(i){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,c=a.dataKey,d=a.valueKey,u=We(this.props,!1),h=We(o,!1),m=We(l,!1),f=o&&o.offsetRadius||20,g=i.map(function(p,v){var y=(p.startAngle+p.endAngle)/2,x=zt(p.cx,p.cy,p.outerRadius+f,y),b=Ft(Ft(Ft(Ft({},u),p),{},{stroke:"none"},h),{},{index:v,textAnchor:t.getTextAnchor(x.x,p.cx)},x),w=Ft(Ft(Ft(Ft({},u),p),{},{fill:"none",stroke:p.fill},m),{},{index:v,points:[zt(p.cx,p.cy,p.outerRadius,y),x]}),N=c;return tt(c)&&tt(d)?N="value":tt(c)&&(N=d),L.createElement(Nt,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},l&&t.renderLabelLineItem(l,w,"line"),t.renderLabelItem(o,b,Un(p,N)))});return L.createElement(Nt,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(i){var s=this,a=this.props,o=a.activeShape,l=a.blendStroke,c=a.inactiveShape;return i.map(function(d,u){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&i.length!==1)return null;var h=s.isActiveIndex(u),m=c&&s.hasActiveIndex()?c:null,f=h?o:m,g=Ft(Ft({},d),{},{stroke:l?d.fill:d.stroke,tabIndex:-1});return L.createElement(Nt,ru({ref:function(v){v&&!s.sectorRefs.includes(v)&&s.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Kc(s.props,d,u),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(u)}),L.createElement(IB,ru({option:f,isActive:h,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var i=this,s=this.props,a=s.sectors,o=s.isAnimationActive,l=s.animationBegin,c=s.animationDuration,d=s.animationEasing,u=s.animationId,h=this.state,m=h.prevSectors,f=h.prevIsAnimationActive;return L.createElement(Sa,{begin:l,duration:c,isActive:o,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var p=g.t,v=[],y=a&&a[0],x=y.startAngle;return a.forEach(function(b,w){var N=m&&m[w],S=w>0?Ci(b,"paddingAngle",0):0;if(N){var k=xi(N.endAngle-N.startAngle,b.endAngle-b.startAngle),_=Ft(Ft({},b),{},{startAngle:x+S,endAngle:x+k(p)+S});v.push(_),x=_.endAngle}else{var D=b.endAngle,A=b.startAngle,E=xi(0,D-A),T=E(p),M=Ft(Ft({},b),{},{startAngle:x+S,endAngle:x+T+S});v.push(M),x=M.endAngle}}),L.createElement(Nt,null,i.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(i){var s=this;i.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++s.state.sectorToFocus%s.sectorRefs.length;s.sectorRefs[o].focus(),s.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--s.state.sectorToFocus<0?s.sectorRefs.length-1:s.state.sectorToFocus%s.sectorRefs.length;s.sectorRefs[l].focus(),s.setState({sectorToFocus:l});break}case"Escape":{s.sectorRefs[s.state.sectorToFocus].blur(),s.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var i=this.props,s=i.sectors,a=i.isAnimationActive,o=this.state.prevSectors;return a&&s&&s.length&&(!o||!qg(o,s))?this.renderSectorsWithAnimation():this.renderSectorsStatically(s)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var i=this,s=this.props,a=s.hide,o=s.sectors,l=s.className,c=s.label,d=s.cx,u=s.cy,h=s.innerRadius,m=s.outerRadius,f=s.isAnimationActive,g=this.state.isAnimationFinished;if(a||!o||!o.length||!ge(d)||!ge(u)||!ge(h)||!ge(m))return null;var p=rt("recharts-pie",l);return L.createElement(Nt,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){i.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),Xn.renderCallByParent(this.props,null,!1),(!f||g)&&lo.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(i,s){return s.prevIsAnimationActive!==i.isAnimationActive?{prevIsAnimationActive:i.isAnimationActive,prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:[],isAnimationFinished:!0}:i.isAnimationActive&&i.animationId!==s.prevAnimationId?{prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:s.curSectors,isAnimationFinished:!0}:i.sectors!==s.curSectors?{curSectors:i.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(i,s){return i>s?"start":i<s?"end":"middle"}},{key:"renderLabelLineItem",value:function(i,s,a){if(L.isValidElement(i))return L.cloneElement(i,s);if(Ke(i))return i(s);var o=rt("recharts-pie-label-line",typeof i!="boolean"?i.className:"");return L.createElement(l0,ru({},s,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(i,s,a){if(L.isValidElement(i))return L.cloneElement(i,s);var o=a;if(Ke(i)&&(o=i(s),L.isValidElement(o)))return o;var l=rt("recharts-pie-label-text",typeof i!="boolean"&&!Ke(i)?i.className:"");return L.createElement(Xc,ru({},s,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);Rx=ss;Bi(ss,"displayName","Pie");Bi(ss,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ga.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Bi(ss,"parseDeltaAngle",function(e,t){var n=Ar(t-e),i=Math.min(Math.abs(t-e),360);return n*i});Bi(ss,"getRealPieData",function(e){var t=e.data,n=e.children,i=We(e,!1),s=_i(n,xd);return t&&t.length?t.map(function(a,o){return Ft(Ft(Ft({payload:a},i),a),s&&s[o]&&s[o].props)}):s&&s.length?s.map(function(a){return Ft(Ft({},i),a.props)}):[]});Bi(ss,"parseCoordinateOfPie",function(e,t){var n=t.top,i=t.left,s=t.width,a=t.height,o=pB(s,a),l=i+Or(e.cx,s,s/2),c=n+Or(e.cy,a,a/2),d=Or(e.innerRadius,o,0),u=Or(e.outerRadius,o,o*.8),h=e.maxRadius||Math.sqrt(s*s+a*a)/2;return{cx:l,cy:c,innerRadius:d,outerRadius:u,maxRadius:h}});Bi(ss,"getComposedData",function(e){var t=e.item,n=e.offset,i=t.type.defaultProps!==void 0?Ft(Ft({},t.type.defaultProps),t.props):t.props,s=Rx.getRealPieData(i);if(!s||!s.length)return null;var a=i.cornerRadius,o=i.startAngle,l=i.endAngle,c=i.paddingAngle,d=i.dataKey,u=i.nameKey,h=i.valueKey,m=i.tooltipType,f=Math.abs(i.minAngle),g=Rx.parseCoordinateOfPie(i,n),p=Rx.parseDeltaAngle(o,l),v=Math.abs(p),y=d;tt(d)&&tt(h)?(Ds(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),y="value"):tt(d)&&(Ds(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),y=h);var x=s.filter(function(_){return Un(_,y,0)!==0}).length,b=(v>=360?x:x-1)*c,w=v-x*f-b,N=s.reduce(function(_,D){var A=Un(D,y,0);return _+(ge(A)?A:0)},0),S;if(N>0){var k;S=s.map(function(_,D){var A=Un(_,y,0),E=Un(_,u,D),T=(ge(A)?A:0)/N,M;D?M=k.endAngle+Ar(p)*c*(A!==0?1:0):M=o;var C=M+Ar(p)*((A!==0?f:0)+T*w),P=(M+C)/2,I=(g.innerRadius+g.outerRadius)/2,R=[{name:E,value:A,payload:_,dataKey:y,type:m}],O=zt(g.cx,g.cy,I,P);return k=Ft(Ft(Ft({percent:T,cornerRadius:a,name:E,tooltipPayload:R,midAngle:P,middleRadius:I,tooltipPosition:O},_),g),{},{value:Un(_,y),startAngle:M,endAngle:C,payload:_,paddingAngle:Ar(p)*c}),k})}return Ft(Ft({},g),{},{sectors:S,data:s})});var GTe=Math.ceil,YTe=Math.max;function KTe(e,t,n,i){for(var s=-1,a=YTe(GTe((t-e)/(n||1)),0),o=Array(a);a--;)o[i?a:++s]=e,e+=n;return o}var XTe=KTe,QTe=n9,qI=1/0,JTe=17976931348623157e292;function ZTe(e){if(!e)return e===0?e:0;if(e=QTe(e),e===qI||e===-qI){var t=e<0?-1:1;return t*JTe}return e===e?e:0}var RB=ZTe,e4e=XTe,t4e=_w,z1=RB;function n4e(e){return function(t,n,i){return i&&typeof i!="number"&&t4e(t,n,i)&&(n=i=void 0),t=z1(t),n===void 0?(n=t,t=0):n=z1(n),i=i===void 0?t<n?1:-1:z1(i),e4e(t,n,i,e)}}var r4e=n4e,i4e=r4e,s4e=i4e(),a4e=s4e;const x0=jt(a4e);function Yp(e){"@babel/helpers - typeof";return Yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yp(e)}function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function VI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(i){$B(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $B(e,t,n){return t=o4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o4e(e){var t=l4e(e,"string");return Yp(t)=="symbol"?t:t+""}function l4e(e,t){if(Yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Yp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c4e=["Webkit","Moz","O","ms"],d4e=function(t,n){var i=t.replace(/(\w)/,function(a){return a.toUpperCase()}),s=c4e.reduce(function(a,o){return VI(VI({},a),{},$B({},o+i,n))},{});return s[t]=n,s};function mh(e){"@babel/helpers - typeof";return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mh(e)}function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},y0.apply(this,arguments)}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(i){mi(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function u4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,UB(i.key),i)}}function h4e(e,t,n){return t&&YI(e.prototype,t),n&&YI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m4e(e,t,n){return t=b0(t),f4e(e,LB()?Reflect.construct(t,n||[],b0(e).constructor):t.apply(e,n))}function f4e(e,t){if(t&&(mh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p4e(e)}function p4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LB=function(){return!!e})()}function b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}function g4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fk(e,t)}function fk(e,t){return fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},fk(e,t)}function mi(e,t,n){return t=UB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UB(e){var t=v4e(e,"string");return mh(t)=="symbol"?t:t+""}function v4e(e,t){if(mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(mh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x4e=function(t){var n=t.data,i=t.startIndex,s=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,d=Pf().domain(x0(0,c)).range([a,a+o-l]),u=d.domain().map(function(h){return d(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(i),endX:d(s),scale:d,scaleValues:u}},KI=function(t){return t.changedTouches&&!!t.changedTouches.length},fh=function(e){function t(n){var i;return u4e(this,t),i=m4e(this,t,[n]),mi(i,"handleDrag",function(s){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(s):i.state.isSlideMoving&&i.handleSlideDrag(s)}),mi(i,"handleTouchMove",function(s){s.changedTouches!=null&&s.changedTouches.length>0&&i.handleDrag(s.changedTouches[0])}),mi(i,"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var s=i.props,a=s.endIndex,o=s.onDragEnd,l=s.startIndex;o==null||o({endIndex:a,startIndex:l})}),i.detachDragEndListener()}),mi(i,"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),mi(i,"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),mi(i,"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),mi(i,"handleSlideDragStart",function(s){var a=KI(s)?s.changedTouches[0]:s;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(i,"startX"),endX:i.handleTravellerDragStart.bind(i,"endX")},i.state={},i}return g4e(t,e),h4e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var s=i.startX,a=i.endX,o=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,u=d.length-1,h=Math.min(s,a),m=Math.max(s,a),f=t.getIndexInRange(o,h),g=t.getIndexInRange(o,m);return{startIndex:f-f%c,endIndex:g===u?u:g-g%c}}},{key:"getTextOfTick",value:function(i){var s=this.props,a=s.data,o=s.tickFormatter,l=s.dataKey,c=Un(a[i],l,i);return Ke(o)?o(c,i):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var s=this.state,a=s.slideMoveStartX,o=s.startX,l=s.endX,c=this.props,d=c.x,u=c.width,h=c.travellerWidth,m=c.startIndex,f=c.endIndex,g=c.onChange,p=i.pageX-a;p>0?p=Math.min(p,d+u-h-l,d+u-h-o):p<0&&(p=Math.max(p,d-o,d-l));var v=this.getIndex({startX:o+p,endX:l+p});(v.startIndex!==m||v.endIndex!==f)&&g&&g(v),this.setState({startX:o+p,endX:l+p,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,s){var a=KI(s)?s.changedTouches[0]:s;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var s=this.state,a=s.brushMoveStartX,o=s.movingTravellerId,l=s.endX,c=s.startX,d=this.state[o],u=this.props,h=u.x,m=u.width,f=u.travellerWidth,g=u.onChange,p=u.gap,v=u.data,y={startX:this.state.startX,endX:this.state.endX},x=i.pageX-a;x>0?x=Math.min(x,h+m-f-d):x<0&&(x=Math.max(x,h-d)),y[o]=d+x;var b=this.getIndex(y),w=b.startIndex,N=b.endIndex,S=function(){var _=v.length-1;return o==="startX"&&(l>c?w%p===0:N%p===0)||l<c&&N===_||o==="endX"&&(l>c?N%p===0:w%p===0)||l>c&&N===_};this.setState(mi(mi({},o,d+x),"brushMoveStartX",i.pageX),function(){g&&S()&&g(b)})}},{key:"handleTravellerMoveKeyboard",value:function(i,s){var a=this,o=this.state,l=o.scaleValues,c=o.startX,d=o.endX,u=this.state[s],h=l.indexOf(u);if(h!==-1){var m=h+i;if(!(m===-1||m>=l.length)){var f=l[m];s==="startX"&&f>=d||s==="endX"&&f<=c||this.setState(mi({},s,f),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,s=i.x,a=i.y,o=i.width,l=i.height,c=i.fill,d=i.stroke;return L.createElement("rect",{stroke:d,fill:c,x:s,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,s=i.x,a=i.y,o=i.width,l=i.height,c=i.data,d=i.children,u=i.padding,h=j.Children.only(d);return h?L.cloneElement(h,{x:s,y:a,width:o,height:l,margin:u,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(i,s){var a,o,l=this,c=this.props,d=c.y,u=c.travellerWidth,h=c.height,m=c.traveller,f=c.ariaLabel,g=c.data,p=c.startIndex,v=c.endIndex,y=Math.max(i,this.props.x),x=q1(q1({},We(this.props,!1)),{},{x:y,y:d,width:u,height:h}),b=f||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return L.createElement(Nt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[s],onTouchStart:this.travellerDragStartHandlers[s],onKeyDown:function(N){["ArrowLeft","ArrowRight"].includes(N.key)&&(N.preventDefault(),N.stopPropagation(),l.handleTravellerMoveKeyboard(N.key==="ArrowRight"?1:-1,s))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,x))}},{key:"renderSlide",value:function(i,s){var a=this.props,o=a.y,l=a.height,c=a.stroke,d=a.travellerWidth,u=Math.min(i,s)+d,h=Math.max(Math.abs(s-i)-d,0);return L.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:u,y:o,width:h,height:l})}},{key:"renderText",value:function(){var i=this.props,s=i.startIndex,a=i.endIndex,o=i.y,l=i.height,c=i.travellerWidth,d=i.stroke,u=this.state,h=u.startX,m=u.endX,f=5,g={pointerEvents:"none",fill:d};return L.createElement(Nt,{className:"recharts-brush-texts"},L.createElement(Xc,y0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-f,y:o+l/2},g),this.getTextOfTick(s)),L.createElement(Xc,y0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+c+f,y:o+l/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var i=this.props,s=i.data,a=i.className,o=i.children,l=i.x,c=i.y,d=i.width,u=i.height,h=i.alwaysShowText,m=this.state,f=m.startX,g=m.endX,p=m.isTextActive,v=m.isSlideMoving,y=m.isTravellerMoving,x=m.isTravellerFocused;if(!s||!s.length||!ge(l)||!ge(c)||!ge(d)||!ge(u)||d<=0||u<=0)return null;var b=rt("recharts-brush",a),w=L.Children.count(o)===1,N=d4e("userSelect","none");return L.createElement(Nt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:N},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(f,g),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||y||x||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var s=i.x,a=i.y,o=i.width,l=i.height,c=i.stroke,d=Math.floor(a+l/2)-1;return L.createElement(L.Fragment,null,L.createElement("rect",{x:s,y:a,width:o,height:l,fill:c,stroke:"none"}),L.createElement("line",{x1:s+1,y1:d,x2:s+o-1,y2:d,fill:"none",stroke:"#fff"}),L.createElement("line",{x1:s+1,y1:d+2,x2:s+o-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,s){var a;return L.isValidElement(i)?a=L.cloneElement(i,s):Ke(i)?a=i(s):a=t.renderDefaultTraveller(s),a}},{key:"getDerivedStateFromProps",value:function(i,s){var a=i.data,o=i.width,l=i.x,c=i.travellerWidth,d=i.updateId,u=i.startIndex,h=i.endIndex;if(a!==s.prevData||d!==s.prevUpdateId)return q1({prevData:a,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:o},a&&a.length?x4e({data:a,width:o,x:l,travellerWidth:c,startIndex:u,endIndex:h}):{scale:null,scaleValues:null});if(s.scale&&(o!==s.prevWidth||l!==s.prevX||c!==s.prevTravellerWidth)){s.scale.range([l,l+o-c]);var m=s.scale.domain().map(function(f){return s.scale(f)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:o,startX:s.scale(i.startIndex),endX:s.scale(i.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(i,s){for(var a=i.length,o=0,l=a-1;l-o>1;){var c=Math.floor((o+l)/2);i[c]>s?l=c:o=c}return s>=i[l]?l:o}}])}(j.PureComponent);mi(fh,"displayName","Brush");mi(fh,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var y4e=D5;function b4e(e,t){var n;return y4e(e,function(i,s,a){return n=t(i,s,a),!n}),!!n}var w4e=b4e,j4e=P7,N4e=Pa,S4e=w4e,k4e=ui,C4e=_w;function _4e(e,t,n){var i=k4e(e)?j4e:S4e;return n&&C4e(e,t,n)&&(t=void 0),i(e,N4e(t))}var T4e=_4e;const P4e=jt(T4e);var xa=function(t,n){var i=t.alwaysShow,s=t.ifOverflow;return i&&(s="extendDomain"),s===n},XI=Q7;function E4e(e,t,n){t=="__proto__"&&XI?XI(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var A4e=E4e,O4e=A4e,I4e=K7,D4e=Pa;function M4e(e,t){var n={};return t=D4e(t),I4e(e,function(i,s,a){O4e(n,s,t(i,s,a))}),n}var R4e=M4e;const $4e=jt(R4e);function L4e(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}var U4e=L4e,F4e=D5;function B4e(e,t){var n=!0;return F4e(e,function(i,s,a){return n=!!t(i,s,a),n}),n}var W4e=B4e,z4e=U4e,q4e=W4e,H4e=Pa,V4e=ui,G4e=_w;function Y4e(e,t,n){var i=V4e(e)?z4e:q4e;return n&&G4e(e,t,n)&&(t=void 0),i(e,H4e(t))}var K4e=Y4e;const FB=jt(K4e);var X4e=["x","y"];function Kp(e){"@babel/helpers - typeof";return Kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kp(e)}function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pk.apply(this,arguments)}function QI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function zm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(n),!0).forEach(function(i){Q4e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Q4e(e,t,n){return t=J4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J4e(e){var t=Z4e(e,"string");return Kp(t)=="symbol"?t:t+""}function Z4e(e,t){if(Kp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Kp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ePe(e,t){if(e==null)return{};var n=tPe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function tPe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function nPe(e,t){var n=e.x,i=e.y,s=ePe(e,X4e),a="".concat(n),o=parseInt(a,10),l="".concat(i),c=parseInt(l,10),d="".concat(t.height||s.height),u=parseInt(d,10),h="".concat(t.width||s.width),m=parseInt(h,10);return zm(zm(zm(zm(zm({},t),s),o?{x:o}:{}),c?{y:c}:{}),{},{height:u,width:m,name:t.name,radius:t.radius})}function JI(e){return L.createElement(IB,pk({shapeType:"rectangle",propTransformer:nPe,activeClassName:"recharts-active-bar"},e))}var rPe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(i,s){if(typeof t=="number")return t;var a=typeof i=="number";return a?t(i,s):(a||Jc(),n)}},iPe=["value","background"],BB;function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function sPe(e,t){if(e==null)return{};var n=aPe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function aPe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},w0.apply(this,arguments)}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(i){ll(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function oPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e6(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,zB(i.key),i)}}function lPe(e,t,n){return t&&e6(e.prototype,t),n&&e6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cPe(e,t,n){return t=j0(t),dPe(e,WB()?Reflect.construct(t,n||[],j0(e).constructor):t.apply(e,n))}function dPe(e,t){if(t&&(ph(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uPe(e)}function uPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WB=function(){return!!e})()}function j0(e){return j0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},j0(e)}function hPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gk(e,t)}function gk(e,t){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},gk(e,t)}function ll(e,t,n){return t=zB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zB(e){var t=mPe(e,"string");return ph(t)=="symbol"?t:t+""}function mPe(e,t){if(ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(ph(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bs=function(e){function t(){var n;oPe(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=cPe(this,t,[].concat(s)),ll(n,"state",{isAnimationFinished:!1}),ll(n,"id",em("recharts-bar-")),ll(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),ll(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return hPe(t,e),lPe(t,[{key:"renderRectanglesStatically",value:function(i){var s=this,a=this.props,o=a.shape,l=a.dataKey,c=a.activeIndex,d=a.activeBar,u=We(this.props,!1);return i&&i.map(function(h,m){var f=m===c,g=f?d:o,p=_n(_n(_n({},u),h),{},{isActive:f,option:g,index:m,dataKey:l,onAnimationStart:s.handleAnimationStart,onAnimationEnd:s.handleAnimationEnd});return L.createElement(Nt,w0({className:"recharts-bar-rectangle"},Kc(s.props,h,m),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value)}),L.createElement(JI,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var i=this,s=this.props,a=s.data,o=s.layout,l=s.isAnimationActive,c=s.animationBegin,d=s.animationDuration,u=s.animationEasing,h=s.animationId,m=this.state.prevData;return L.createElement(Sa,{begin:c,duration:d,isActive:l,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var g=f.t,p=a.map(function(v,y){var x=m&&m[y];if(x){var b=xi(x.x,v.x),w=xi(x.y,v.y),N=xi(x.width,v.width),S=xi(x.height,v.height);return _n(_n({},v),{},{x:b(g),y:w(g),width:N(g),height:S(g)})}if(o==="horizontal"){var k=xi(0,v.height),_=k(g);return _n(_n({},v),{},{y:v.y+v.height-_,height:_})}var D=xi(0,v.width),A=D(g);return _n(_n({},v),{},{width:A})});return L.createElement(Nt,null,i.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var i=this.props,s=i.data,a=i.isAnimationActive,o=this.state.prevData;return a&&s&&s.length&&(!o||!qg(o,s))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(s)}},{key:"renderBackground",value:function(){var i=this,s=this.props,a=s.data,o=s.dataKey,l=s.activeIndex,c=We(this.props.background,!1);return a.map(function(d,u){d.value;var h=d.background,m=sPe(d,iPe);if(!h)return null;var f=_n(_n(_n(_n(_n({},m),{},{fill:"#eee"},h),c),Kc(i.props,d,u)),{},{onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return L.createElement(JI,w0({key:"background-bar-".concat(u),option:i.props.background,isActive:u===l},f))})}},{key:"renderErrorBar",value:function(i,s){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,c=a.yAxis,d=a.layout,u=a.children,h=_i(u,Hg);if(!h)return null;var m=d==="vertical"?o[0].height/2:o[0].width/2,f=function(v,y){var x=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:x,errorVal:Un(v,y)}},g={clipPath:i?"url(#clipPath-".concat(s,")"):null};return L.createElement(Nt,g,h.map(function(p){return L.cloneElement(p,{key:"error-bar-".concat(s,"-").concat(p.props.dataKey),data:o,xAxis:l,yAxis:c,layout:d,offset:m,dataPointFormatter:f})}))}},{key:"render",value:function(){var i=this.props,s=i.hide,a=i.data,o=i.className,l=i.xAxis,c=i.yAxis,d=i.left,u=i.top,h=i.width,m=i.height,f=i.isAnimationActive,g=i.background,p=i.id;if(s||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=rt("recharts-bar",o),x=l&&l.allowDataOverflow,b=c&&c.allowDataOverflow,w=x||b,N=tt(p)?this.id:p;return L.createElement(Nt,{className:y},x||b?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(N)},L.createElement("rect",{x:x?d:d-h/2,y:b?u:u-m/2,width:x?h:h*2,height:b?m:m*2}))):null,L.createElement(Nt,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(N,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,N),(!f||v)&&lo.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(i,s){return i.animationId!==s.prevAnimationId?{prevAnimationId:i.animationId,curData:i.data,prevData:s.curData}:i.data!==s.curData?{curData:i.data}:null}}])}(j.PureComponent);BB=Bs;ll(Bs,"displayName","Bar");ll(Bs,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ga.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ll(Bs,"getComposedData",function(e){var t=e.props,n=e.item,i=e.barPosition,s=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,d=e.stackedData,u=e.dataStartIndex,h=e.displayedData,m=e.offset,f=lCe(i,n);if(!f)return null;var g=t.layout,p=n.type.defaultProps,v=p!==void 0?_n(_n({},p),n.props):n.props,y=v.dataKey,x=v.children,b=v.minPointSize,w=g==="horizontal"?o:a,N=d?w.scale.domain():null,S=pCe({numericAxis:w}),k=_i(x,xd),_=h.map(function(D,A){var E,T,M,C,P,I;d?E=cCe(d[u+A],N):(E=Un(D,y),Array.isArray(E)||(E=[S,E]));var R=rPe(b,BB.defaultProps.minPointSize)(E[1],A);if(g==="horizontal"){var O,$=[o.scale(E[0]),o.scale(E[1])],q=$[0],z=$[1];T=zO({axis:a,ticks:l,bandSize:s,offset:f.offset,entry:D,index:A}),M=(O=z??q)!==null&&O!==void 0?O:void 0,C=f.size;var J=q-z;if(P=Number.isNaN(J)?0:J,I={x:T,y:o.y,width:C,height:o.height},Math.abs(R)>0&&Math.abs(P)<Math.abs(R)){var ne=Ar(P||R)*(Math.abs(R)-Math.abs(P));M-=ne,P+=ne}}else{var pe=[a.scale(E[0]),a.scale(E[1])],xe=pe[0],De=pe[1];if(T=xe,M=zO({axis:o,ticks:c,bandSize:s,offset:f.offset,entry:D,index:A}),C=De-xe,P=f.size,I={x:a.x,y:M,width:a.width,height:P},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var de=Ar(C||R)*(Math.abs(R)-Math.abs(C));C+=de}}return _n(_n(_n({},D),{},{x:T,y:M,width:C,height:P,value:d?E:E[1],payload:D,background:I},k&&k[A]&&k[A].props),{},{tooltipPayload:[mB(n,D)],tooltipPosition:{x:T+C/2,y:M+P/2}})});return _n({data:_,layout:g},m)});function Xp(e){"@babel/helpers - typeof";return Xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(e)}function fPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t6(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qB(i.key),i)}}function pPe(e,t,n){return t&&t6(e.prototype,t),n&&t6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n6(Object(n),!0).forEach(function(i){Vw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Vw(e,t,n){return t=qB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qB(e){var t=gPe(e,"string");return Xp(t)=="symbol"?t:t+""}function gPe(e,t){if(Xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Xp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HB=function(t,n,i,s,a){var o=t.width,l=t.height,c=t.layout,d=t.children,u=Object.keys(n),h={left:i.left,leftMirror:i.left,right:o-i.right,rightMirror:o-i.right,top:i.top,topMirror:i.top,bottom:l-i.bottom,bottomMirror:l-i.bottom},m=!!pi(d,Bs);return u.reduce(function(f,g){var p=n[g],v=p.orientation,y=p.domain,x=p.padding,b=x===void 0?{}:x,w=p.mirror,N=p.reversed,S="".concat(v).concat(w?"Mirror":""),k,_,D,A,E;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var T=y[1]-y[0],M=1/0,C=p.categoricalDomain.sort();if(C.forEach(function(pe,xe){xe>0&&(M=Math.min((pe||0)-(C[xe-1]||0),M))}),Number.isFinite(M)){var P=M/T,I=p.layout==="vertical"?i.height:i.width;if(p.padding==="gap"&&(k=P*I/2),p.padding==="no-gap"){var R=Or(t.barCategoryGap,P*I),O=P*I/2;k=O-R-(O-R)/I*R}}}s==="xAxis"?_=[i.left+(b.left||0)+(k||0),i.left+i.width-(b.right||0)-(k||0)]:s==="yAxis"?_=c==="horizontal"?[i.top+i.height-(b.bottom||0),i.top+(b.top||0)]:[i.top+(b.top||0)+(k||0),i.top+i.height-(b.bottom||0)-(k||0)]:_=p.range,N&&(_=[_[1],_[0]]);var $=cB(p,a,m),q=$.scale,z=$.realScaleType;q.domain(y).range(_),dB(q);var J=uB(q,Ns(Ns({},p),{},{realScaleType:z}));s==="xAxis"?(E=v==="top"&&!w||v==="bottom"&&w,D=i.left,A=h[S]-E*p.height):s==="yAxis"&&(E=v==="left"&&!w||v==="right"&&w,D=h[S]-E*p.width,A=i.top);var ne=Ns(Ns(Ns({},p),J),{},{realScaleType:z,x:D,y:A,scale:q,width:s==="xAxis"?i.width:p.width,height:s==="yAxis"?i.height:p.height});return ne.bandSize=s0(ne,J),!p.hide&&s==="xAxis"?h[S]+=(E?-1:1)*ne.height:p.hide||(h[S]+=(E?-1:1)*ne.width),Ns(Ns({},f),{},Vw({},g,ne))},{})},VB=function(t,n){var i=t.x,s=t.y,a=n.x,o=n.y;return{x:Math.min(i,a),y:Math.min(s,o),width:Math.abs(a-i),height:Math.abs(o-s)}},vPe=function(t){var n=t.x1,i=t.y1,s=t.x2,a=t.y2;return VB({x:n,y:i},{x:s,y:a})},GB=function(){function e(t){fPe(this,e),this.scale=t}return pPe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,a=i.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(s){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var i=this.range(),s=i[0],a=i[i.length-1];return s<=a?n>=s&&n<=a:n>=a&&n<=s}}],[{key:"create",value:function(n){return new e(n)}}])}();Vw(GB,"EPS",1e-4);var c3=function(t){var n=Object.keys(t).reduce(function(i,s){return Ns(Ns({},i),{},Vw({},s,GB.create(t[s])))},{});return Ns(Ns({},n),{},{apply:function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return $4e(s,function(c,d){return n[d].apply(c,{bandAware:o,position:l})})},isInRange:function(s){return FB(s,function(a,o){return n[o].isInRange(a)})}})};function xPe(e){return(e%180+180)%180}var yPe=function(t){var n=t.width,i=t.height,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=xPe(s),o=a*Math.PI/180,l=Math.atan(i/n),c=o>l&&o<Math.PI-l?i/Math.sin(o):n/Math.cos(o);return Math.abs(c)},bPe=Pa,wPe=Ug,jPe=kw;function NPe(e){return function(t,n,i){var s=Object(t);if(!wPe(t)){var a=bPe(n);t=jPe(t),n=function(l){return a(s[l],l,s)}}var o=e(t,n,i);return o>-1?s[a?t[o]:o]:void 0}}var SPe=NPe,kPe=RB;function CPe(e){var t=kPe(e),n=t%1;return t===t?n?t-n:t:0}var _Pe=CPe,TPe=z7,PPe=Pa,EPe=_Pe,APe=Math.max;function OPe(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var s=n==null?0:EPe(n);return s<0&&(s=APe(i+s,0)),TPe(e,PPe(t),s)}var IPe=OPe,DPe=SPe,MPe=IPe,RPe=DPe(MPe),$Pe=RPe;const LPe=jt($Pe);var UPe=Xhe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),d3=j.createContext(void 0),u3=j.createContext(void 0),YB=j.createContext(void 0),KB=j.createContext({}),XB=j.createContext(void 0),QB=j.createContext(0),JB=j.createContext(0),r6=function(t){var n=t.state,i=n.xAxisMap,s=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,c=t.width,d=t.height,u=UPe(a);return L.createElement(d3.Provider,{value:i},L.createElement(u3.Provider,{value:s},L.createElement(KB.Provider,{value:a},L.createElement(YB.Provider,{value:u},L.createElement(XB.Provider,{value:o},L.createElement(QB.Provider,{value:d},L.createElement(JB.Provider,{value:c},l)))))))},FPe=function(){return j.useContext(XB)},ZB=function(t){var n=j.useContext(d3);n==null&&Jc();var i=n[t];return i==null&&Jc(),i},BPe=function(){var t=j.useContext(d3);return Yo(t)},WPe=function(){var t=j.useContext(u3),n=LPe(t,function(i){return FB(i.domain,Number.isFinite)});return n||Yo(t)},eW=function(t){var n=j.useContext(u3);n==null&&Jc();var i=n[t];return i==null&&Jc(),i},zPe=function(){var t=j.useContext(YB);return t},qPe=function(){return j.useContext(KB)},h3=function(){return j.useContext(JB)},m3=function(){return j.useContext(QB)};function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function HPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VPe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nW(i.key),i)}}function GPe(e,t,n){return t&&VPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YPe(e,t,n){return t=N0(t),KPe(e,tW()?Reflect.construct(t,n||[],N0(e).constructor):t.apply(e,n))}function KPe(e,t){if(t&&(gh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XPe(e)}function XPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tW=function(){return!!e})()}function N0(e){return N0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},N0(e)}function QPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vk(e,t)}function vk(e,t){return vk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},vk(e,t)}function i6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function s6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i6(Object(n),!0).forEach(function(i){f3(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function f3(e,t,n){return t=nW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nW(e){var t=JPe(e,"string");return gh(t)=="symbol"?t:t+""}function JPe(e,t){if(gh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(gh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZPe(e,t){return rEe(e)||nEe(e,t)||tEe(e,t)||eEe()}function eEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tEe(e,t){if(e){if(typeof e=="string")return a6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a6(e,t)}}function a6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function nEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function rEe(e){if(Array.isArray(e))return e}function xk(){return xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xk.apply(this,arguments)}var iEe=function(t,n){var i;return L.isValidElement(t)?i=L.cloneElement(t,n):Ke(t)?i=t(n):i=L.createElement("line",xk({},n,{className:"recharts-reference-line-line"})),i},sEe=function(t,n,i,s,a,o,l,c,d){var u=a.x,h=a.y,m=a.width,f=a.height;if(i){var g=d.y,p=t.y.apply(g,{position:o});if(xa(d,"discard")&&!t.y.isInRange(p))return null;var v=[{x:u+m,y:p},{x:u,y:p}];return c==="left"?v.reverse():v}if(n){var y=d.x,x=t.x.apply(y,{position:o});if(xa(d,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:h+f},{x,y:h}];return l==="top"?b.reverse():b}if(s){var w=d.segment,N=w.map(function(S){return t.apply(S,{position:o})});return xa(d,"discard")&&P4e(N,function(S){return!t.isInRange(S)})?null:N}return null};function aEe(e){var t=e.x,n=e.y,i=e.segment,s=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,d=FPe(),u=ZB(s),h=eW(a),m=zPe();if(!d||!m)return null;Ds(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=c3({x:u.scale,y:h.scale}),g=Bn(t),p=Bn(n),v=i&&i.length===2,y=sEe(f,g,p,v,m,e.position,u.orientation,h.orientation,e);if(!y)return null;var x=ZPe(y,2),b=x[0],w=b.x,N=b.y,S=x[1],k=S.x,_=S.y,D=xa(e,"hidden")?"url(#".concat(d,")"):void 0,A=s6(s6({clipPath:D},We(e,!0)),{},{x1:w,y1:N,x2:k,y2:_});return L.createElement(Nt,{className:rt("recharts-reference-line",l)},iEe(o,A),Xn.renderCallByParent(e,vPe({x1:w,y1:N,x2:k,y2:_})))}var p3=function(e){function t(){return HPe(this,t),YPe(this,t,arguments)}return QPe(t,e),GPe(t,[{key:"render",value:function(){return L.createElement(aEe,this.props)}}])}(L.Component);f3(p3,"displayName","ReferenceLine");f3(p3,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function yk(){return yk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yk.apply(this,arguments)}function vh(e){"@babel/helpers - typeof";return vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(e)}function o6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function l6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o6(Object(n),!0).forEach(function(i){Gw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function oEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lEe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,iW(i.key),i)}}function cEe(e,t,n){return t&&lEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dEe(e,t,n){return t=S0(t),uEe(e,rW()?Reflect.construct(t,n||[],S0(e).constructor):t.apply(e,n))}function uEe(e,t){if(t&&(vh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hEe(e)}function hEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rW=function(){return!!e})()}function S0(e){return S0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S0(e)}function mEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bk(e,t)}function bk(e,t){return bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},bk(e,t)}function Gw(e,t,n){return t=iW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e){var t=fEe(e,"string");return vh(t)=="symbol"?t:t+""}function fEe(e,t){if(vh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(vh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pEe=function(t){var n=t.x,i=t.y,s=t.xAxis,a=t.yAxis,o=c3({x:s.scale,y:a.scale}),l=o.apply({x:n,y:i},{bandAware:!0});return xa(t,"discard")&&!o.isInRange(l)?null:l},Yw=function(e){function t(){return oEe(this,t),dEe(this,t,arguments)}return mEe(t,e),cEe(t,[{key:"render",value:function(){var i=this.props,s=i.x,a=i.y,o=i.r,l=i.alwaysShow,c=i.clipPathId,d=Bn(s),u=Bn(a);if(Ds(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!u)return null;var h=pEe(this.props);if(!h)return null;var m=h.x,f=h.y,g=this.props,p=g.shape,v=g.className,y=xa(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=l6(l6({clipPath:y},We(this.props,!0)),{},{cx:m,cy:f});return L.createElement(Nt,{className:rt("recharts-reference-dot",v)},t.renderDot(p,x),Xn.renderCallByParent(this.props,{x:m-o,y:f-o,width:2*o,height:2*o}))}}])}(L.Component);Gw(Yw,"displayName","ReferenceDot");Gw(Yw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Gw(Yw,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):Ke(e)?n=e(t):n=L.createElement(Uw,yk({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function wk(){return wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wk.apply(this,arguments)}function xh(e){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(e)}function c6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function d6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c6(Object(n),!0).forEach(function(i){Kw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function gEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vEe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,aW(i.key),i)}}function xEe(e,t,n){return t&&vEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yEe(e,t,n){return t=k0(t),bEe(e,sW()?Reflect.construct(t,n||[],k0(e).constructor):t.apply(e,n))}function bEe(e,t){if(t&&(xh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wEe(e)}function wEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sW=function(){return!!e})()}function k0(e){return k0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k0(e)}function jEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jk(e,t)}function jk(e,t){return jk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},jk(e,t)}function Kw(e,t,n){return t=aW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aW(e){var t=NEe(e,"string");return xh(t)=="symbol"?t:t+""}function NEe(e,t){if(xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(xh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SEe=function(t,n,i,s,a){var o=a.x1,l=a.x2,c=a.y1,d=a.y2,u=a.xAxis,h=a.yAxis;if(!u||!h)return null;var m=c3({x:u.scale,y:h.scale}),f={x:t?m.x.apply(o,{position:"start"}):m.x.rangeMin,y:i?m.y.apply(c,{position:"start"}):m.y.rangeMin},g={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:s?m.y.apply(d,{position:"end"}):m.y.rangeMax};return xa(a,"discard")&&(!m.isInRange(f)||!m.isInRange(g))?null:VB(f,g)},Xw=function(e){function t(){return gEe(this,t),yEe(this,t,arguments)}return jEe(t,e),xEe(t,[{key:"render",value:function(){var i=this.props,s=i.x1,a=i.x2,o=i.y1,l=i.y2,c=i.className,d=i.alwaysShow,u=i.clipPathId;Ds(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Bn(s),m=Bn(a),f=Bn(o),g=Bn(l),p=this.props.shape;if(!h&&!m&&!f&&!g&&!p)return null;var v=SEe(h,m,f,g,this.props);if(!v&&!p)return null;var y=xa(this.props,"hidden")?"url(#".concat(u,")"):void 0;return L.createElement(Nt,{className:rt("recharts-reference-area",c)},t.renderRect(p,d6(d6({clipPath:y},We(this.props,!0)),v)),Xn.renderCallByParent(this.props,v))}}])}(L.Component);Kw(Xw,"displayName","ReferenceArea");Kw(Xw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Kw(Xw,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):Ke(e)?n=e(t):n=L.createElement(l3,wk({},t,{className:"recharts-reference-area-rect"})),n});function oW(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var i=[],s=0;s<e.length;s+=t)i.push(e[s]);return i}function kEe(e,t,n){var i={width:e.width+t.width,height:e.height+t.height};return yPe(i,n)}function CEe(e,t,n){var i=n==="width",s=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:i?s:a,end:i?s+o:a+l}:{start:i?s+o:a+l,end:i?s:a}}function C0(e,t,n,i,s){if(e*t<e*i||e*t>e*s)return!1;var a=n();return e*(t-e*a/2-i)>=0&&e*(t+e*a/2-s)<=0}function _Ee(e,t){return oW(e,t+1)}function TEe(e,t,n,i,s){for(var a=(i||[]).slice(),o=t.start,l=t.end,c=0,d=1,u=o,h=function(){var g=i==null?void 0:i[c];if(g===void 0)return{v:oW(i,d)};var p=c,v,y=function(){return v===void 0&&(v=n(g,p)),v},x=g.coordinate,b=c===0||C0(e,x,y,u,l);b||(c=0,u=o,d+=1),b&&(u=x+e*(y()/2+s),c+=d)},m;d<=a.length;)if(m=h(),m)return m.v;return[]}function Qp(e){"@babel/helpers - typeof";return Qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qp(e)}function u6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u6(Object(n),!0).forEach(function(i){PEe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function PEe(e,t,n){return t=EEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EEe(e){var t=AEe(e,"string");return Qp(t)=="symbol"?t:t+""}function AEe(e,t){if(Qp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Qp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OEe(e,t,n,i,s){for(var a=(i||[]).slice(),o=a.length,l=t.start,c=t.end,d=function(m){var f=a[m],g,p=function(){return g===void 0&&(g=n(f,m)),g};if(m===o-1){var v=e*(f.coordinate+e*p()/2-c);a[m]=f=fr(fr({},f),{},{tickCoord:v>0?f.coordinate-v*e:f.coordinate})}else a[m]=f=fr(fr({},f),{},{tickCoord:f.coordinate});var y=C0(e,f.tickCoord,p,l,c);y&&(c=f.tickCoord-e*(p()/2+s),a[m]=fr(fr({},f),{},{isShow:!0}))},u=o-1;u>=0;u--)d(u);return a}function IEe(e,t,n,i,s,a){var o=(i||[]).slice(),l=o.length,c=t.start,d=t.end;if(a){var u=i[l-1],h=n(u,l-1),m=e*(u.coordinate+e*h/2-d);o[l-1]=u=fr(fr({},u),{},{tickCoord:m>0?u.coordinate-m*e:u.coordinate});var f=C0(e,u.tickCoord,function(){return h},c,d);f&&(d=u.tickCoord-e*(h/2+s),o[l-1]=fr(fr({},u),{},{isShow:!0}))}for(var g=a?l-1:l,p=function(x){var b=o[x],w,N=function(){return w===void 0&&(w=n(b,x)),w};if(x===0){var S=e*(b.coordinate-e*N()/2-c);o[x]=b=fr(fr({},b),{},{tickCoord:S<0?b.coordinate-S*e:b.coordinate})}else o[x]=b=fr(fr({},b),{},{tickCoord:b.coordinate});var k=C0(e,b.tickCoord,N,c,d);k&&(c=b.tickCoord+e*(N()/2+s),o[x]=fr(fr({},b),{},{isShow:!0}))},v=0;v<g;v++)p(v);return o}function g3(e,t,n){var i=e.tick,s=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,u=e.unit,h=e.angle;if(!s||!s.length||!i)return[];if(ge(c)||ga.isSsr)return _Ee(s,typeof c=="number"&&ge(c)?c:0);var m=[],f=l==="top"||l==="bottom"?"width":"height",g=u&&f==="width"?Tf(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},p=function(b,w){var N=Ke(d)?d(b.value,w):b.value;return f==="width"?kEe(Tf(N,{fontSize:t,letterSpacing:n}),g,h):Tf(N,{fontSize:t,letterSpacing:n})[f]},v=s.length>=2?Ar(s[1].coordinate-s[0].coordinate):1,y=CEe(a,v,f);return c==="equidistantPreserveStart"?TEe(v,y,p,s,o):(c==="preserveStart"||c==="preserveStartEnd"?m=IEe(v,y,p,s,o,c==="preserveStartEnd"):m=OEe(v,y,p,s,o),m.filter(function(x){return x.isShow}))}var DEe=["viewBox"],MEe=["viewBox"],REe=["ticks"];function yh(e){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(e)}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},iu.apply(this,arguments)}function h6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h6(Object(n),!0).forEach(function(i){v3(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function H1(e,t){if(e==null)return{};var n=$Ee(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function $Ee(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function LEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m6(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,cW(i.key),i)}}function UEe(e,t,n){return t&&m6(e.prototype,t),n&&m6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FEe(e,t,n){return t=_0(t),BEe(e,lW()?Reflect.construct(t,n||[],_0(e).constructor):t.apply(e,n))}function BEe(e,t){if(t&&(yh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WEe(e)}function WEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lW=function(){return!!e})()}function _0(e){return _0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_0(e)}function zEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nk(e,t)}function Nk(e,t){return Nk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Nk(e,t)}function v3(e,t,n){return t=cW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cW(e){var t=qEe(e,"string");return yh(t)=="symbol"?t:t+""}function qEe(e,t){if(yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(yh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lm=function(e){function t(n){var i;return LEe(this,t),i=FEe(this,t,[n]),i.state={fontSize:"",letterSpacing:""},i}return zEe(t,e),UEe(t,[{key:"shouldComponentUpdate",value:function(i,s){var a=i.viewBox,o=H1(i,DEe),l=this.props,c=l.viewBox,d=H1(l,MEe);return!bu(a,c)||!bu(o,d)||!bu(s,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var s=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];s&&this.setState({fontSize:window.getComputedStyle(s).fontSize,letterSpacing:window.getComputedStyle(s).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var s=this.props,a=s.x,o=s.y,l=s.width,c=s.height,d=s.orientation,u=s.tickSize,h=s.mirror,m=s.tickMargin,f,g,p,v,y,x,b=h?-1:1,w=i.tickSize||u,N=ge(i.tickCoord)?i.tickCoord:i.coordinate;switch(d){case"top":f=g=i.coordinate,v=o+ +!h*c,p=v-b*w,x=p-b*m,y=N;break;case"left":p=v=i.coordinate,g=a+ +!h*l,f=g-b*w,y=f-b*m,x=N;break;case"right":p=v=i.coordinate,g=a+ +h*l,f=g+b*w,y=f+b*m,x=N;break;default:f=g=i.coordinate,v=o+ +h*c,p=v+b*w,x=p+b*m,y=N;break}return{line:{x1:f,y1:p,x2:g,y2:v},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,s=i.orientation,a=i.mirror,o;switch(s){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,s=i.orientation,a=i.mirror,o="end";switch(s){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var i=this.props,s=i.x,a=i.y,o=i.width,l=i.height,c=i.orientation,d=i.mirror,u=i.axisLine,h=jr(jr(jr({},We(this.props,!1)),We(u,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);h=jr(jr({},h),{},{x1:s,y1:a+m*l,x2:s+o,y2:a+m*l})}else{var f=+(c==="left"&&!d||c==="right"&&d);h=jr(jr({},h),{},{x1:s+f*o,y1:a,x2:s+f*o,y2:a+l})}return L.createElement("line",iu({},h,{className:rt("recharts-cartesian-axis-line",Ci(u,"className"))}))}},{key:"renderTicks",value:function(i,s,a){var o=this,l=this.props,c=l.tickLine,d=l.stroke,u=l.tick,h=l.tickFormatter,m=l.unit,f=g3(jr(jr({},this.props),{},{ticks:i}),s,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=We(this.props,!1),y=We(u,!1),x=jr(jr({},v),{},{fill:"none"},We(c,!1)),b=f.map(function(w,N){var S=o.getTickLineCoord(w),k=S.line,_=S.tick,D=jr(jr(jr(jr({textAnchor:g,verticalAnchor:p},v),{},{stroke:"none",fill:d},y),_),{},{index:N,payload:w,visibleTicksCount:f.length,tickFormatter:h});return L.createElement(Nt,iu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},Kc(o.props,w,N)),c&&L.createElement("line",iu({},x,k,{className:rt("recharts-cartesian-axis-tick-line",Ci(c,"className"))})),u&&t.renderTickItem(u,D,"".concat(Ke(h)?h(w.value,N):w.value).concat(m||"")))});return L.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var i=this,s=this.props,a=s.axisLine,o=s.width,l=s.height,c=s.ticksGenerator,d=s.className,u=s.hide;if(u)return null;var h=this.props,m=h.ticks,f=H1(h,REe),g=m;return Ke(c)&&(g=m&&m.length>0?c(this.props):c(f)),o<=0||l<=0||!g||!g.length?null:L.createElement(Nt,{className:rt("recharts-cartesian-axis",d),ref:function(v){i.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Xn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,s,a){var o;return L.isValidElement(i)?o=L.cloneElement(i,s):Ke(i)?o=i(s):o=L.createElement(Xc,iu({},s,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(j.Component);v3(lm,"displayName","CartesianAxis");v3(lm,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var HEe=["x1","y1","x2","y2","key"],VEe=["offset"];function Zc(e){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zc(e)}function f6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f6(Object(n),!0).forEach(function(i){GEe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function GEe(e,t,n){return t=YEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YEe(e){var t=KEe(e,"string");return Zc(t)=="symbol"?t:t+""}function KEe(e,t){if(Zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Zc(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wc.apply(this,arguments)}function p6(e,t){if(e==null)return{};var n=XEe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function XEe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var QEe=function(t){var n=t.fill;if(!n||n==="none")return null;var i=t.fillOpacity,s=t.x,a=t.y,o=t.width,l=t.height,c=t.ry;return L.createElement("rect",{x:s,y:a,ry:c,width:o,height:l,stroke:"none",fill:n,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function dW(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if(Ke(e))n=e(t);else{var i=t.x1,s=t.y1,a=t.x2,o=t.y2,l=t.key,c=p6(t,HEe),d=We(c,!1);d.offset;var u=p6(d,VEe);n=L.createElement("line",wc({},u,{x1:i,y1:s,x2:a,y2:o,fill:"none",key:l}))}return n}function JEe(e){var t=e.x,n=e.width,i=e.horizontal,s=i===void 0?!0:i,a=e.horizontalPoints;if(!s||!a||!a.length)return null;var o=a.map(function(l,c){var d=gr(gr({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return dW(s,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function ZEe(e){var t=e.y,n=e.height,i=e.vertical,s=i===void 0?!0:i,a=e.verticalPoints;if(!s||!a||!a.length)return null;var o=a.map(function(l,c){var d=gr(gr({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return dW(s,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function eAe(e){var t=e.horizontalFill,n=e.fillOpacity,i=e.x,s=e.y,a=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,d=c===void 0?!0:c;if(!d||!t||!t.length)return null;var u=l.map(function(m){return Math.round(m+s-s)}).sort(function(m,f){return m-f});s!==u[0]&&u.unshift(0);var h=u.map(function(m,f){var g=!u[f+1],p=g?s+o-m:u[f+1]-m;if(p<=0)return null;var v=f%t.length;return L.createElement("rect",{key:"react-".concat(f),y:m,x:i,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function tAe(e){var t=e.vertical,n=t===void 0?!0:t,i=e.verticalFill,s=e.fillOpacity,a=e.x,o=e.y,l=e.width,c=e.height,d=e.verticalPoints;if(!n||!i||!i.length)return null;var u=d.map(function(m){return Math.round(m+a-a)}).sort(function(m,f){return m-f});a!==u[0]&&u.unshift(0);var h=u.map(function(m,f){var g=!u[f+1],p=g?a+l-m:u[f+1]-m;if(p<=0)return null;var v=f%i.length;return L.createElement("rect",{key:"react-".concat(f),x:m,y:o,width:p,height:c,stroke:"none",fill:i[v],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var nAe=function(t,n){var i=t.xAxis,s=t.width,a=t.height,o=t.offset;return lB(g3(gr(gr(gr({},lm.defaultProps),i),{},{ticks:ro(i,!0),viewBox:{x:0,y:0,width:s,height:a}})),o.left,o.left+o.width,n)},rAe=function(t,n){var i=t.yAxis,s=t.width,a=t.height,o=t.offset;return lB(g3(gr(gr(gr({},lm.defaultProps),i),{},{ticks:ro(i,!0),viewBox:{x:0,y:0,width:s,height:a}})),o.top,o.top+o.height,n)},Ld={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function jo(e){var t,n,i,s,a,o,l=h3(),c=m3(),d=qPe(),u=gr(gr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ld.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ld.fill,horizontal:(i=e.horizontal)!==null&&i!==void 0?i:Ld.horizontal,horizontalFill:(s=e.horizontalFill)!==null&&s!==void 0?s:Ld.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ld.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ld.verticalFill,x:ge(e.x)?e.x:d.left,y:ge(e.y)?e.y:d.top,width:ge(e.width)?e.width:d.width,height:ge(e.height)?e.height:d.height}),h=u.x,m=u.y,f=u.width,g=u.height,p=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues,x=BPe(),b=WPe();if(!ge(f)||f<=0||!ge(g)||g<=0||!ge(h)||h!==+h||!ge(m)||m!==+m)return null;var w=u.verticalCoordinatesGenerator||nAe,N=u.horizontalCoordinatesGenerator||rAe,S=u.horizontalPoints,k=u.verticalPoints;if((!S||!S.length)&&Ke(N)){var _=v&&v.length,D=N({yAxis:b?gr(gr({},b),{},{ticks:_?v:b.ticks}):void 0,width:l,height:c,offset:d},_?!0:p);Ds(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Zc(D),"]")),Array.isArray(D)&&(S=D)}if((!k||!k.length)&&Ke(w)){var A=y&&y.length,E=w({xAxis:x?gr(gr({},x),{},{ticks:A?y:x.ticks}):void 0,width:l,height:c,offset:d},A?!0:p);Ds(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Zc(E),"]")),Array.isArray(E)&&(k=E)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(QEe,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),L.createElement(JEe,wc({},u,{offset:d,horizontalPoints:S,xAxis:x,yAxis:b})),L.createElement(ZEe,wc({},u,{offset:d,verticalPoints:k,xAxis:x,yAxis:b})),L.createElement(eAe,wc({},u,{horizontalPoints:S})),L.createElement(tAe,wc({},u,{verticalPoints:k})))}jo.displayName="CartesianGrid";var iAe=["type","layout","connectNulls","ref"],sAe=["key"];function bh(e){"@babel/helpers - typeof";return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(e)}function g6(e,t){if(e==null)return{};var n=aAe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function aAe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Df.apply(this,arguments)}function v6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v6(Object(n),!0).forEach(function(i){Ss(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ud(e){return dAe(e)||cAe(e)||lAe(e)||oAe()}function oAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lAe(e,t){if(e){if(typeof e=="string")return Sk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sk(e,t)}}function cAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dAe(e){if(Array.isArray(e))return Sk(e)}function Sk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function uAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x6(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,hW(i.key),i)}}function hAe(e,t,n){return t&&x6(e.prototype,t),n&&x6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mAe(e,t,n){return t=T0(t),fAe(e,uW()?Reflect.construct(t,n||[],T0(e).constructor):t.apply(e,n))}function fAe(e,t){if(t&&(bh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pAe(e)}function pAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uW=function(){return!!e})()}function T0(e){return T0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T0(e)}function gAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kk(e,t)}function kk(e,t){return kk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},kk(e,t)}function Ss(e,t,n){return t=hW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hW(e){var t=vAe(e,"string");return bh(t)=="symbol"?t:t+""}function vAe(e,t){if(bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(bh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wd=function(e){function t(){var n;uAe(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=mAe(this,t,[].concat(s)),Ss(n,"state",{isAnimationFinished:!0,totalLength:0}),Ss(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),Ss(n,"getStrokeDasharray",function(o,l,c){var d=c.reduce(function(y,x){return y+x});if(!d)return n.generateSimpleStrokeDasharray(l,o);for(var u=Math.floor(o/d),h=o%d,m=l-o,f=[],g=0,p=0;g<c.length;p+=c[g],++g)if(p+c[g]>h){f=[].concat(Ud(c.slice(0,g)),[h-p]);break}var v=f.length%2===0?[0,m]:[m];return[].concat(Ud(t.repeat(c,u)),Ud(f),v).map(function(y){return"".concat(y,"px")}).join(", ")}),Ss(n,"id",em("recharts-line-")),Ss(n,"pathRef",function(o){n.mainCurve=o}),Ss(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ss(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return gAe(t,e),hAe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,s){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,c=a.yAxis,d=a.layout,u=a.children,h=_i(u,Hg);if(!h)return null;var m=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Un(p.payload,v)}},f={clipPath:i?"url(#clipPath-".concat(s,")"):null};return L.createElement(Nt,f,h.map(function(g){return L.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:l,yAxis:c,layout:d,dataPointFormatter:m})}))}},{key:"renderDots",value:function(i,s,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,d=l.points,u=l.dataKey,h=We(this.props,!1),m=We(c,!0),f=d.map(function(p,v){var y=hi(hi(hi({key:"dot-".concat(v),r:3},h),m),{},{value:p.value,dataKey:u,cx:p.x,cy:p.y,index:v,payload:p.payload});return t.renderDotItem(c,y)}),g={clipPath:i?"url(#clipPath-".concat(s?"":"dots-").concat(a,")"):null};return L.createElement(Nt,Df({className:"recharts-line-dots",key:"dots"},g),f)}},{key:"renderCurveStatically",value:function(i,s,a,o){var l=this.props,c=l.type,d=l.layout,u=l.connectNulls;l.ref;var h=g6(l,iAe),m=hi(hi(hi({},We(h,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(a,")"):null,points:i},o),{},{type:c,layout:d,connectNulls:u});return L.createElement(l0,Df({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,s){var a=this,o=this.props,l=o.points,c=o.strokeDasharray,d=o.isAnimationActive,u=o.animationBegin,h=o.animationDuration,m=o.animationEasing,f=o.animationId,g=o.animateNewValues,p=o.width,v=o.height,y=this.state,x=y.prevPoints,b=y.totalLength;return L.createElement(Sa,{begin:u,duration:h,isActive:d,easing:m,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var N=w.t;if(x){var S=x.length/l.length,k=l.map(function(T,M){var C=Math.floor(M*S);if(x[C]){var P=x[C],I=xi(P.x,T.x),R=xi(P.y,T.y);return hi(hi({},T),{},{x:I(N),y:R(N)})}if(g){var O=xi(p*2,T.x),$=xi(v/2,T.y);return hi(hi({},T),{},{x:O(N),y:$(N)})}return hi(hi({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(k,i,s)}var _=xi(0,b),D=_(N),A;if(c){var E="".concat(c).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});A=a.getStrokeDasharray(D,b,E)}else A=a.generateSimpleStrokeDasharray(b,D);return a.renderCurveStatically(l,i,s,{strokeDasharray:A})})}},{key:"renderCurve",value:function(i,s){var a=this.props,o=a.points,l=a.isAnimationActive,c=this.state,d=c.prevPoints,u=c.totalLength;return l&&o&&o.length&&(!d&&u>0||!qg(d,o))?this.renderCurveWithAnimation(i,s):this.renderCurveStatically(o,i,s)}},{key:"render",value:function(){var i,s=this.props,a=s.hide,o=s.dot,l=s.points,c=s.className,d=s.xAxis,u=s.yAxis,h=s.top,m=s.left,f=s.width,g=s.height,p=s.isAnimationActive,v=s.id;if(a||!l||!l.length)return null;var y=this.state.isAnimationFinished,x=l.length===1,b=rt("recharts-line",c),w=d&&d.allowDataOverflow,N=u&&u.allowDataOverflow,S=w||N,k=tt(v)?this.id:v,_=(i=We(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},D=_.r,A=D===void 0?3:D,E=_.strokeWidth,T=E===void 0?2:E,M=tfe(o)?o:{},C=M.clipDot,P=C===void 0?!0:C,I=A*2+T;return L.createElement(Nt,{className:b},w||N?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(k)},L.createElement("rect",{x:w?m:m-f/2,y:N?h:h-g/2,width:w?f:f*2,height:N?g:g*2})),!P&&L.createElement("clipPath",{id:"clipPath-dots-".concat(k)},L.createElement("rect",{x:m-I/2,y:h-I/2,width:f+I,height:g+I}))):null,!x&&this.renderCurve(S,k),this.renderErrorBar(S,k),(x||o)&&this.renderDots(S,P,k),(!p||y)&&lo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,s){return i.animationId!==s.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:s.curPoints}:i.points!==s.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,s){for(var a=i.length%2!==0?[].concat(Ud(i),[0]):i,o=[],l=0;l<s;++l)o=[].concat(Ud(o),Ud(a));return o}},{key:"renderDotItem",value:function(i,s){var a;if(L.isValidElement(i))a=L.cloneElement(i,s);else if(Ke(i))a=i(s);else{var o=s.key,l=g6(s,sAe),c=rt("recharts-line-dot",typeof i!="boolean"?i.className:"");a=L.createElement(Uw,Df({key:o},l,{className:c}))}return a}}])}(j.PureComponent);Ss(wd,"displayName","Line");Ss(wd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ga.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ss(wd,"getComposedData",function(e){var t=e.props,n=e.xAxis,i=e.yAxis,s=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,c=e.displayedData,d=e.offset,u=t.layout,h=c.map(function(m,f){var g=Un(m,o);return u==="horizontal"?{x:WO({axis:n,ticks:s,bandSize:l,entry:m,index:f}),y:tt(g)?null:i.scale(g),value:g,payload:m}:{x:tt(g)?null:n.scale(g),y:WO({axis:i,ticks:a,bandSize:l,entry:m,index:f}),value:g,payload:m}});return hi({points:h,layout:u},d)});function wh(e){"@babel/helpers - typeof";return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(e)}function xAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yAe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pW(i.key),i)}}function bAe(e,t,n){return t&&yAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wAe(e,t,n){return t=P0(t),jAe(e,mW()?Reflect.construct(t,n||[],P0(e).constructor):t.apply(e,n))}function jAe(e,t){if(t&&(wh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NAe(e)}function NAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mW=function(){return!!e})()}function P0(e){return P0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},P0(e)}function SAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ck(e,t)}function Ck(e,t){return Ck=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Ck(e,t)}function fW(e,t,n){return t=pW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pW(e){var t=kAe(e,"string");return wh(t)=="symbol"?t:t+""}function kAe(e,t){if(wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(wh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_k.apply(this,arguments)}function CAe(e){var t=e.xAxisId,n=h3(),i=m3(),s=ZB(t);return s==null?null:L.createElement(lm,_k({},s,{className:rt("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(o){return ro(o,!0)}}))}var ts=function(e){function t(){return xAe(this,t),wAe(this,t,arguments)}return SAe(t,e),bAe(t,[{key:"render",value:function(){return L.createElement(CAe,this.props)}}])}(L.Component);fW(ts,"displayName","XAxis");fW(ts,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function jh(e){"@babel/helpers - typeof";return jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(e)}function _Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TAe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xW(i.key),i)}}function PAe(e,t,n){return t&&TAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EAe(e,t,n){return t=E0(t),AAe(e,gW()?Reflect.construct(t,n||[],E0(e).constructor):t.apply(e,n))}function AAe(e,t){if(t&&(jh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OAe(e)}function OAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gW=function(){return!!e})()}function E0(e){return E0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E0(e)}function IAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tk(e,t)}function Tk(e,t){return Tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Tk(e,t)}function vW(e,t,n){return t=xW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xW(e){var t=DAe(e,"string");return jh(t)=="symbol"?t:t+""}function DAe(e,t){if(jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(jh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pk(){return Pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pk.apply(this,arguments)}var MAe=function(t){var n=t.yAxisId,i=h3(),s=m3(),a=eW(n);return a==null?null:L.createElement(lm,Pk({},a,{className:rt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:i,height:s},ticksGenerator:function(l){return ro(l,!0)}}))},ns=function(e){function t(){return _Ae(this,t),EAe(this,t,arguments)}return IAe(t,e),PAe(t,[{key:"render",value:function(){return L.createElement(MAe,this.props)}}])}(L.Component);vW(ns,"displayName","YAxis");vW(ns,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function y6(e){return UAe(e)||LAe(e)||$Ae(e)||RAe()}function RAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ae(e,t){if(e){if(typeof e=="string")return Ek(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ek(e,t)}}function LAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UAe(e){if(Array.isArray(e))return Ek(e)}function Ek(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ak=function(t,n,i,s,a){var o=_i(t,p3),l=_i(t,Yw),c=[].concat(y6(o),y6(l)),d=_i(t,Xw),u="".concat(s,"Id"),h=s[0],m=n;if(c.length&&(m=c.reduce(function(p,v){if(v.props[u]===i&&xa(v.props,"extendDomain")&&ge(v.props[h])){var y=v.props[h];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},m)),d.length){var f="".concat(h,"1"),g="".concat(h,"2");m=d.reduce(function(p,v){if(v.props[u]===i&&xa(v.props,"extendDomain")&&ge(v.props[f])&&ge(v.props[g])){var y=v.props[f],x=v.props[g];return[Math.min(p[0],y,x),Math.max(p[1],y,x)]}return p},m)}return a&&a.length&&(m=a.reduce(function(p,v){return ge(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},m)),m},yW={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function s(c,d,u){this.fn=c,this.context=d,this.once=u||!1}function a(c,d,u,h,m){if(typeof u!="function")throw new TypeError("The listener must be a function");var f=new s(u,h||c,m),g=n?n+d:d;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],f]:c._events[g].push(f):(c._events[g]=f,c._eventsCount++),c}function o(c,d){--c._eventsCount===0?c._events=new i:delete c._events[d]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],u,h;if(this._eventsCount===0)return d;for(h in u=this._events)t.call(u,h)&&d.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},l.prototype.listeners=function(d){var u=n?n+d:d,h=this._events[u];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,f=h.length,g=new Array(f);m<f;m++)g[m]=h[m].fn;return g},l.prototype.listenerCount=function(d){var u=n?n+d:d,h=this._events[u];return h?h.fn?1:h.length:0},l.prototype.emit=function(d,u,h,m,f,g){var p=n?n+d:d;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,x,b;if(v.fn){switch(v.once&&this.removeListener(d,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,h),!0;case 4:return v.fn.call(v.context,u,h,m),!0;case 5:return v.fn.call(v.context,u,h,m,f),!0;case 6:return v.fn.call(v.context,u,h,m,f,g),!0}for(b=1,x=new Array(y-1);b<y;b++)x[b-1]=arguments[b];v.fn.apply(v.context,x)}else{var w=v.length,N;for(b=0;b<w;b++)switch(v[b].once&&this.removeListener(d,v[b].fn,void 0,!0),y){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,u);break;case 3:v[b].fn.call(v[b].context,u,h);break;case 4:v[b].fn.call(v[b].context,u,h,m);break;default:if(!x)for(N=1,x=new Array(y-1);N<y;N++)x[N-1]=arguments[N];v[b].fn.apply(v[b].context,x)}}return!0},l.prototype.on=function(d,u,h){return a(this,d,u,h,!1)},l.prototype.once=function(d,u,h){return a(this,d,u,h,!0)},l.prototype.removeListener=function(d,u,h,m){var f=n?n+d:d;if(!this._events[f])return this;if(!u)return o(this,f),this;var g=this._events[f];if(g.fn)g.fn===u&&(!m||g.once)&&(!h||g.context===h)&&o(this,f);else{for(var p=0,v=[],y=g.length;p<y;p++)(g[p].fn!==u||m&&!g[p].once||h&&g[p].context!==h)&&v.push(g[p]);v.length?this._events[f]=v.length===1?v[0]:v:o(this,f)}return this},l.prototype.removeAllListeners=function(d){var u;return d?(u=n?n+d:d,this._events[u]&&o(this,u)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(yW);var FAe=yW.exports;const BAe=jt(FAe);var V1=new BAe,G1="recharts.syncMouseEvents";function Jp(e){"@babel/helpers - typeof";return Jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jp(e)}function WAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zAe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,bW(i.key),i)}}function qAe(e,t,n){return t&&zAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y1(e,t,n){return t=bW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bW(e){var t=HAe(e,"string");return Jp(t)=="symbol"?t:t+""}function HAe(e,t){if(Jp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Jp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VAe=function(){function e(){WAe(this,e),Y1(this,"activeIndex",0),Y1(this,"coordinateList",[]),Y1(this,"layout","horizontal")}return qAe(e,[{key:"setDetails",value:function(n){var i,s=n.coordinateList,a=s===void 0?null:s,o=n.container,l=o===void 0?null:o,c=n.layout,d=c===void 0?null:c,u=n.offset,h=u===void 0?null:u,m=n.mouseHandlerCallback,f=m===void 0?null:m;this.coordinateList=(i=a??this.coordinateList)!==null&&i!==void 0?i:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=f??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,i;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var s=this.container.getBoundingClientRect(),a=s.x,o=s.y,l=s.height,c=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,u=((i=window)===null||i===void 0?void 0:i.scrollY)||0,h=a+c+d,m=o+this.offset.top+l/2+u;this.mouseHandlerCallback({pageX:h,pageY:m})}}}])}();function GAe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var i=e==null?void 0:e[0],s=e==null?void 0:e[1];if(i&&s&&ge(i)&&ge(s))return!0}return!1}function YAe(e,t,n,i){var s=i/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-s:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-s,width:e==="horizontal"?i:n.width-1,height:e==="horizontal"?n.height-1:i}}function wW(e){var t=e.cx,n=e.cy,i=e.radius,s=e.startAngle,a=e.endAngle,o=zt(t,n,i,s),l=zt(t,n,i,a);return{points:[o,l],cx:t,cy:n,radius:i,startAngle:s,endAngle:a}}function KAe(e,t,n){var i,s,a,o;if(e==="horizontal")i=t.x,a=i,s=n.top,o=n.top+n.height;else if(e==="vertical")s=t.y,o=s,i=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,d=t.innerRadius,u=t.outerRadius,h=t.angle,m=zt(l,c,d,h),f=zt(l,c,u,h);i=m.x,s=m.y,a=f.x,o=f.y}else return wW(t);return[{x:i,y:s},{x:a,y:o}]}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}function b6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function rx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(n),!0).forEach(function(i){XAe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function XAe(e,t,n){return t=QAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QAe(e){var t=JAe(e,"string");return Zp(t)=="symbol"?t:t+""}function JAe(e,t){if(Zp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Zp(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZAe(e){var t,n,i=e.element,s=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,d=e.activeTooltipIndex,u=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,f=(t=i.props.cursor)!==null&&t!==void 0?t:(n=i.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!i||!f||!a||!o||m!=="ScatterChart"&&s!=="axis")return null;var g,p=l0;if(m==="ScatterChart")g=o,p=v3e;else if(m==="BarChart")g=YAe(h,o,c,u),p=l3;else if(h==="radial"){var v=wW(o),y=v.cx,x=v.cy,b=v.radius,w=v.startAngle,N=v.endAngle;g={cx:y,cy:x,startAngle:w,endAngle:N,innerRadius:b,outerRadius:b},p=yB}else g={points:KAe(h,o,c)},p=l0;var S=rx(rx(rx(rx({stroke:"#ccc",pointerEvents:"none"},c),g),We(f,!1)),{},{payload:l,payloadIndex:d,className:rt("recharts-tooltip-cursor",f.className)});return j.isValidElement(f)?j.cloneElement(f,S):j.createElement(p,S)}var eOe=["item"],tOe=["children","className","width","height","style","compact","title","desc"];function Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mf.apply(this,arguments)}function w6(e,t){return iOe(e)||rOe(e,t)||NW(e,t)||nOe()}function nOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,s,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function iOe(e){if(Array.isArray(e))return e}function j6(e,t){if(e==null)return{};var n=sOe(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function sOe(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function aOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oOe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,SW(i.key),i)}}function lOe(e,t,n){return t&&oOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cOe(e,t,n){return t=A0(t),dOe(e,jW()?Reflect.construct(t,n||[],A0(e).constructor):t.apply(e,n))}function dOe(e,t){if(t&&(Nh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uOe(e)}function uOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jW=function(){return!!e})()}function A0(e){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A0(e)}function hOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ok(e,t)}function Ok(e,t){return Ok=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Ok(e,t)}function Sh(e){return pOe(e)||fOe(e)||NW(e)||mOe()}function mOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NW(e,t){if(e){if(typeof e=="string")return Ik(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ik(e,t)}}function fOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pOe(e){if(Array.isArray(e))return Ik(e)}function Ik(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function N6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(n),!0).forEach(function(i){Ge(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ge(e,t,n){return t=SW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SW(e){var t=gOe(e,"string");return Nh(t)=="symbol"?t:t+""}function gOe(e,t){if(Nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Nh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vOe={xAxis:["bottom","top"],yAxis:["left","right"]},xOe={width:"100%",height:"100%"},kW={x:0,y:0};function ix(e){return e}var yOe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},bOe=function(t,n,i,s){var a=n.find(function(u){return u&&u.index===i});if(a){if(t==="horizontal")return{x:a.coordinate,y:s.y};if(t==="vertical")return{x:s.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=s.radius;return ee(ee(ee({},s),zt(s.cx,s.cy,l,o)),{},{angle:o,radius:l})}var c=a.coordinate,d=s.angle;return ee(ee(ee({},s),zt(s.cx,s.cy,c,d)),{},{angle:d,radius:c})}return kW},Qw=function(t,n){var i=n.graphicalItems,s=n.dataStartIndex,a=n.dataEndIndex,o=(i??[]).reduce(function(l,c){var d=c.props.data;return d&&d.length?[].concat(Sh(l),Sh(d)):l},[]);return o.length>0?o:t&&t.length&&ge(s)&&ge(a)?t.slice(s,a+1):[]};function CW(e){return e==="number"?[0,"auto"]:void 0}var Dk=function(t,n,i,s){var a=t.graphicalItems,o=t.tooltipAxis,l=Qw(n,t);return i<0||!a||!a.length||i>=l.length?null:a.reduce(function(c,d){var u,h=(u=d.props.data)!==null&&u!==void 0?u:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=i&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var f=h===void 0?l:h;m=Oy(f,o.dataKey,s)}else m=h&&h[i]||l[i];return m?[].concat(Sh(c),[mB(d,m)]):c},[])},S6=function(t,n,i,s){var a=s||{x:t.chartX,y:t.chartY},o=yOe(a,i),l=t.orderedTooltipTicks,c=t.tooltipAxis,d=t.tooltipTicks,u=nCe(o,l,d,c);if(u>=0&&d){var h=d[u]&&d[u].value,m=Dk(t,n,u,h),f=bOe(i,l,u,a);return{activeTooltipIndex:u,activeLabel:h,activePayload:m,activeCoordinate:f}}return null},wOe=function(t,n){var i=n.axes,s=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,u=t.layout,h=t.children,m=t.stackOffset,f=oB(u,a);return i.reduce(function(g,p){var v,y=p.type.defaultProps!==void 0?ee(ee({},p.type.defaultProps),p.props):p.props,x=y.type,b=y.dataKey,w=y.allowDataOverflow,N=y.allowDuplicatedCategory,S=y.scale,k=y.ticks,_=y.includeHidden,D=y[o];if(g[D])return g;var A=Qw(t.data,{graphicalItems:s.filter(function(J){var ne,pe=o in J.props?J.props[o]:(ne=J.type.defaultProps)===null||ne===void 0?void 0:ne[o];return pe===D}),dataStartIndex:c,dataEndIndex:d}),E=A.length,T,M,C;GAe(y.domain,w,x)&&(T=YS(y.domain,null,w),f&&(x==="number"||S!=="auto")&&(C=Ef(A,b,"category")));var P=CW(x);if(!T||T.length===0){var I,R=(I=y.domain)!==null&&I!==void 0?I:P;if(b){if(T=Ef(A,b,x),x==="category"&&f){var O=Vme(T);N&&O?(M=T,T=x0(0,E)):N||(T=VO(R,T,p).reduce(function(J,ne){return J.indexOf(ne)>=0?J:[].concat(Sh(J),[ne])},[]))}else if(x==="category")N?T=T.filter(function(J){return J!==""&&!tt(J)}):T=VO(R,T,p).reduce(function(J,ne){return J.indexOf(ne)>=0||ne===""||tt(ne)?J:[].concat(Sh(J),[ne])},[]);else if(x==="number"){var $=oCe(A,s.filter(function(J){var ne,pe,xe=o in J.props?J.props[o]:(ne=J.type.defaultProps)===null||ne===void 0?void 0:ne[o],De="hide"in J.props?J.props.hide:(pe=J.type.defaultProps)===null||pe===void 0?void 0:pe.hide;return xe===D&&(_||!De)}),b,a,u);$&&(T=$)}f&&(x==="number"||S!=="auto")&&(C=Ef(A,b,"category"))}else f?T=x0(0,E):l&&l[D]&&l[D].hasStack&&x==="number"?T=m==="expand"?[0,1]:hB(l[D].stackGroups,c,d):T=aB(A,s.filter(function(J){var ne=o in J.props?J.props[o]:J.type.defaultProps[o],pe="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return ne===D&&(_||!pe)}),x,u,!0);if(x==="number")T=Ak(h,T,D,a,k),R&&(T=YS(R,T,w));else if(x==="category"&&R){var q=R,z=T.every(function(J){return q.indexOf(J)>=0});z&&(T=q)}}return ee(ee({},g),{},Ge({},D,ee(ee({},y),{},{axisType:a,domain:T,categoricalDomain:C,duplicateDomain:M,originalDomain:(v=y.domain)!==null&&v!==void 0?v:P,isCategorical:f,layout:u})))},{})},jOe=function(t,n){var i=n.graphicalItems,s=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,u=t.layout,h=t.children,m=Qw(t.data,{graphicalItems:i,dataStartIndex:c,dataEndIndex:d}),f=m.length,g=oB(u,a),p=-1;return i.reduce(function(v,y){var x=y.type.defaultProps!==void 0?ee(ee({},y.type.defaultProps),y.props):y.props,b=x[o],w=CW("number");if(!v[b]){p++;var N;return g?N=x0(0,f):l&&l[b]&&l[b].hasStack?(N=hB(l[b].stackGroups,c,d),N=Ak(h,N,b,a)):(N=YS(w,aB(m,i.filter(function(S){var k,_,D=o in S.props?S.props[o]:(k=S.type.defaultProps)===null||k===void 0?void 0:k[o],A="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return D===b&&!A}),"number",u),s.defaultProps.allowDataOverflow),N=Ak(h,N,b,a)),ee(ee({},v),{},Ge({},b,ee(ee({axisType:a},s.defaultProps),{},{hide:!0,orientation:Ci(vOe,"".concat(a,".").concat(p%2),null),domain:N,originalDomain:w,isCategorical:g,layout:u})))}return v},{})},NOe=function(t,n){var i=n.axisType,s=i===void 0?"xAxis":i,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,u=t.children,h="".concat(s,"Id"),m=_i(u,a),f={};return m&&m.length?f=wOe(t,{axes:m,graphicalItems:o,axisType:s,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:d}):o&&o.length&&(f=jOe(t,{Axis:a,graphicalItems:o,axisType:s,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:d})),f},SOe=function(t){var n=Yo(t),i=ro(n,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:M5(i,function(s){return s.coordinate}),tooltipAxis:n,tooltipAxisBandSize:s0(n,i)}},k6=function(t){var n=t.children,i=t.defaultShowTooltip,s=pi(n,fh),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),s&&s.props&&(s.props.startIndex>=0&&(a=s.props.startIndex),s.props.endIndex>=0&&(o=s.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!i}},kOe=function(t){return!t||!t.length?!1:t.some(function(n){var i=ao(n&&n.type);return i&&i.indexOf("Bar")>=0})},C6=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},COe=function(t,n){var i=t.props,s=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,c=l===void 0?{}:l,d=i.width,u=i.height,h=i.children,m=i.margin||{},f=pi(h,fh),g=pi(h,wu),p=Object.keys(c).reduce(function(N,S){var k=c[S],_=k.orientation;return!k.mirror&&!k.hide?ee(ee({},N),{},Ge({},_,N[_]+k.width)):N},{left:m.left||0,right:m.right||0}),v=Object.keys(o).reduce(function(N,S){var k=o[S],_=k.orientation;return!k.mirror&&!k.hide?ee(ee({},N),{},Ge({},_,Ci(N,"".concat(_))+k.height)):N},{top:m.top||0,bottom:m.bottom||0}),y=ee(ee({},v),p),x=y.bottom;f&&(y.bottom+=f.props.height||fh.defaultProps.height),g&&n&&(y=sCe(y,s,i,n));var b=d-y.left-y.right,w=u-y.top-y.bottom;return ee(ee({brushBottom:x},y),{},{width:Math.max(b,0),height:Math.max(w,0)})},_Oe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},x3=function(t){var n=t.chartName,i=t.GraphicalChild,s=t.defaultTooltipEventType,a=s===void 0?"axis":s,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,d=t.legendContent,u=t.formatAxisMap,h=t.defaultProps,m=function(v,y){var x=y.graphicalItems,b=y.stackGroups,w=y.offset,N=y.updateId,S=y.dataStartIndex,k=y.dataEndIndex,_=v.barSize,D=v.layout,A=v.barGap,E=v.barCategoryGap,T=v.maxBarSize,M=C6(D),C=M.numericAxisName,P=M.cateAxisName,I=kOe(x),R=[];return x.forEach(function(O,$){var q=Qw(v.data,{graphicalItems:[O],dataStartIndex:S,dataEndIndex:k}),z=O.type.defaultProps!==void 0?ee(ee({},O.type.defaultProps),O.props):O.props,J=z.dataKey,ne=z.maxBarSize,pe=z["".concat(C,"Id")],xe=z["".concat(P,"Id")],De={},de=c.reduce(function(ke,Ne){var Ue=y["".concat(Ne.axisType,"Map")],kt=z["".concat(Ne.axisType,"Id")];Ue&&Ue[kt]||Ne.axisType==="zAxis"||Jc();var In=Ue[kt];return ee(ee({},ke),{},Ge(Ge({},Ne.axisType,In),"".concat(Ne.axisType,"Ticks"),ro(In)))},De),Pe=de[P],ie=de["".concat(P,"Ticks")],me=b&&b[pe]&&b[pe].hasStack&&gCe(O,b[pe].stackGroups),ve=ao(O.type).indexOf("Bar")>=0,K=s0(Pe,ie),Ve=[],Le=I&&rCe({barSize:_,stackGroups:b,totalSize:_Oe(de,P)});if(ve){var st,yt,Dt=tt(ne)?T:ne,sn=(st=(yt=s0(Pe,ie,!0))!==null&&yt!==void 0?yt:Dt)!==null&&st!==void 0?st:0;Ve=iCe({barGap:A,barCategoryGap:E,bandSize:sn!==K?sn:K,sizeList:Le[xe],maxBarSize:Dt}),sn!==K&&(Ve=Ve.map(function(ke){return ee(ee({},ke),{},{position:ee(ee({},ke.position),{},{offset:ke.position.offset-sn/2})})}))}var ae=O&&O.type&&O.type.getComposedData;ae&&R.push({props:ee(ee({},ae(ee(ee({},de),{},{displayedData:q,props:v,dataKey:J,item:O,bandSize:K,barPosition:Ve,offset:w,stackedData:me,layout:D,dataStartIndex:S,dataEndIndex:k}))),{},Ge(Ge(Ge({key:O.key||"item-".concat($)},C,de[C]),P,de[P]),"animationId",N)),childIndex:ife(O,v.children),item:O})}),R},f=function(v,y){var x=v.props,b=v.dataStartIndex,w=v.dataEndIndex,N=v.updateId;if(!UE({props:x}))return null;var S=x.children,k=x.layout,_=x.stackOffset,D=x.data,A=x.reverseStackOrder,E=C6(k),T=E.numericAxisName,M=E.cateAxisName,C=_i(S,i),P=fCe(D,C,"".concat(T,"Id"),"".concat(M,"Id"),_,A),I=c.reduce(function(z,J){var ne="".concat(J.axisType,"Map");return ee(ee({},z),{},Ge({},ne,NOe(x,ee(ee({},J),{},{graphicalItems:C,stackGroups:J.axisType===T&&P,dataStartIndex:b,dataEndIndex:w}))))},{}),R=COe(ee(ee({},I),{},{props:x,graphicalItems:C}),y==null?void 0:y.legendBBox);Object.keys(I).forEach(function(z){I[z]=u(x,I[z],R,z.replace("Map",""),n)});var O=I["".concat(M,"Map")],$=SOe(O),q=m(x,ee(ee({},I),{},{dataStartIndex:b,dataEndIndex:w,updateId:N,graphicalItems:C,stackGroups:P,offset:R}));return ee(ee({formattedGraphicalItems:q,graphicalItems:C,offset:R,stackGroups:P},$),I)},g=function(p){function v(y){var x,b,w;return aOe(this,v),w=cOe(this,v,[y]),Ge(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ge(w,"accessibilityManager",new VAe),Ge(w,"handleLegendBBoxUpdate",function(N){if(N){var S=w.state,k=S.dataStartIndex,_=S.dataEndIndex,D=S.updateId;w.setState(ee({legendBBox:N},f({props:w.props,dataStartIndex:k,dataEndIndex:_,updateId:D},ee(ee({},w.state),{},{legendBBox:N}))))}}),Ge(w,"handleReceiveSyncEvent",function(N,S,k){if(w.props.syncId===N){if(k===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(S)}}),Ge(w,"handleBrushChange",function(N){var S=N.startIndex,k=N.endIndex;if(S!==w.state.dataStartIndex||k!==w.state.dataEndIndex){var _=w.state.updateId;w.setState(function(){return ee({dataStartIndex:S,dataEndIndex:k},f({props:w.props,dataStartIndex:S,dataEndIndex:k,updateId:_},w.state))}),w.triggerSyncEvent({dataStartIndex:S,dataEndIndex:k})}}),Ge(w,"handleMouseEnter",function(N){var S=w.getMouseInfo(N);if(S){var k=ee(ee({},S),{},{isTooltipActive:!0});w.setState(k),w.triggerSyncEvent(k);var _=w.props.onMouseEnter;Ke(_)&&_(k,N)}}),Ge(w,"triggeredAfterMouseMove",function(N){var S=w.getMouseInfo(N),k=S?ee(ee({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(k),w.triggerSyncEvent(k);var _=w.props.onMouseMove;Ke(_)&&_(k,N)}),Ge(w,"handleItemMouseEnter",function(N){w.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ge(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Ge(w,"handleMouseMove",function(N){N.persist(),w.throttleTriggeredAfterMouseMove(N)}),Ge(w,"handleMouseLeave",function(N){w.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};w.setState(S),w.triggerSyncEvent(S);var k=w.props.onMouseLeave;Ke(k)&&k(S,N)}),Ge(w,"handleOuterEvent",function(N){var S=rfe(N),k=Ci(w.props,"".concat(S));if(S&&Ke(k)){var _,D;/.*touch.*/i.test(S)?D=w.getMouseInfo(N.changedTouches[0]):D=w.getMouseInfo(N),k((_=D)!==null&&_!==void 0?_:{},N)}}),Ge(w,"handleClick",function(N){var S=w.getMouseInfo(N);if(S){var k=ee(ee({},S),{},{isTooltipActive:!0});w.setState(k),w.triggerSyncEvent(k);var _=w.props.onClick;Ke(_)&&_(k,N)}}),Ge(w,"handleMouseDown",function(N){var S=w.props.onMouseDown;if(Ke(S)){var k=w.getMouseInfo(N);S(k,N)}}),Ge(w,"handleMouseUp",function(N){var S=w.props.onMouseUp;if(Ke(S)){var k=w.getMouseInfo(N);S(k,N)}}),Ge(w,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ge(w,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.handleMouseDown(N.changedTouches[0])}),Ge(w,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&w.handleMouseUp(N.changedTouches[0])}),Ge(w,"triggerSyncEvent",function(N){w.props.syncId!==void 0&&V1.emit(G1,w.props.syncId,N,w.eventEmitterSymbol)}),Ge(w,"applySyncEvent",function(N){var S=w.props,k=S.layout,_=S.syncMethod,D=w.state.updateId,A=N.dataStartIndex,E=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)w.setState(ee({dataStartIndex:A,dataEndIndex:E},f({props:w.props,dataStartIndex:A,dataEndIndex:E,updateId:D},w.state)));else if(N.activeTooltipIndex!==void 0){var T=N.chartX,M=N.chartY,C=N.activeTooltipIndex,P=w.state,I=P.offset,R=P.tooltipTicks;if(!I)return;if(typeof _=="function")C=_(R,N);else if(_==="value"){C=-1;for(var O=0;O<R.length;O++)if(R[O].value===N.activeLabel){C=O;break}}var $=ee(ee({},I),{},{x:I.left,y:I.top}),q=Math.min(T,$.x+$.width),z=Math.min(M,$.y+$.height),J=R[C]&&R[C].value,ne=Dk(w.state,w.props.data,C),pe=R[C]?{x:k==="horizontal"?R[C].coordinate:q,y:k==="horizontal"?z:R[C].coordinate}:kW;w.setState(ee(ee({},N),{},{activeLabel:J,activeCoordinate:pe,activePayload:ne,activeTooltipIndex:C}))}else w.setState(N)}),Ge(w,"renderCursor",function(N){var S,k=w.state,_=k.isTooltipActive,D=k.activeCoordinate,A=k.activePayload,E=k.offset,T=k.activeTooltipIndex,M=k.tooltipAxisBandSize,C=w.getTooltipEventType(),P=(S=N.props.active)!==null&&S!==void 0?S:_,I=w.props.layout,R=N.key||"_recharts-cursor";return L.createElement(ZAe,{key:R,activeCoordinate:D,activePayload:A,activeTooltipIndex:T,chartName:n,element:N,isActive:P,layout:I,offset:E,tooltipAxisBandSize:M,tooltipEventType:C})}),Ge(w,"renderPolarAxis",function(N,S,k){var _=Ci(N,"type.axisType"),D=Ci(w.state,"".concat(_,"Map")),A=N.type.defaultProps,E=A!==void 0?ee(ee({},A),N.props):N.props,T=D&&D[E["".concat(_,"Id")]];return j.cloneElement(N,ee(ee({},T),{},{className:rt(_,T.className),key:N.key||"".concat(S,"-").concat(k),ticks:ro(T,!0)}))}),Ge(w,"renderPolarGrid",function(N){var S=N.props,k=S.radialLines,_=S.polarAngles,D=S.polarRadius,A=w.state,E=A.radiusAxisMap,T=A.angleAxisMap,M=Yo(E),C=Yo(T),P=C.cx,I=C.cy,R=C.innerRadius,O=C.outerRadius;return j.cloneElement(N,{polarAngles:Array.isArray(_)?_:ro(C,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(D)?D:ro(M,!0).map(function($){return $.coordinate}),cx:P,cy:I,innerRadius:R,outerRadius:O,key:N.key||"polar-grid",radialLines:k})}),Ge(w,"renderLegend",function(){var N=w.state.formattedGraphicalItems,S=w.props,k=S.children,_=S.width,D=S.height,A=w.props.margin||{},E=_-(A.left||0)-(A.right||0),T=iB({children:k,formattedGraphicalItems:N,legendWidth:E,legendContent:d});if(!T)return null;var M=T.item,C=j6(T,eOe);return j.cloneElement(M,ee(ee({},C),{},{chartWidth:_,chartHeight:D,margin:A,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),Ge(w,"renderTooltip",function(){var N,S=w.props,k=S.children,_=S.accessibilityLayer,D=pi(k,jn);if(!D)return null;var A=w.state,E=A.isTooltipActive,T=A.activeCoordinate,M=A.activePayload,C=A.activeLabel,P=A.offset,I=(N=D.props.active)!==null&&N!==void 0?N:E;return j.cloneElement(D,{viewBox:ee(ee({},P),{},{x:P.left,y:P.top}),active:I,label:C,payload:I?M:[],coordinate:T,accessibilityLayer:_})}),Ge(w,"renderBrush",function(N){var S=w.props,k=S.margin,_=S.data,D=w.state,A=D.offset,E=D.dataStartIndex,T=D.dataEndIndex,M=D.updateId;return j.cloneElement(N,{key:N.key||"_recharts-brush",onChange:Zv(w.handleBrushChange,N.props.onChange),data:_,x:ge(N.props.x)?N.props.x:A.left,y:ge(N.props.y)?N.props.y:A.top+A.height+A.brushBottom-(k.bottom||0),width:ge(N.props.width)?N.props.width:A.width,startIndex:E,endIndex:T,updateId:"brush-".concat(M)})}),Ge(w,"renderReferenceElement",function(N,S,k){if(!N)return null;var _=w,D=_.clipPathId,A=w.state,E=A.xAxisMap,T=A.yAxisMap,M=A.offset,C=N.type.defaultProps||{},P=N.props,I=P.xAxisId,R=I===void 0?C.xAxisId:I,O=P.yAxisId,$=O===void 0?C.yAxisId:O;return j.cloneElement(N,{key:N.key||"".concat(S,"-").concat(k),xAxis:E[R],yAxis:T[$],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:D})}),Ge(w,"renderActivePoints",function(N){var S=N.item,k=N.activePoint,_=N.basePoint,D=N.childIndex,A=N.isRange,E=[],T=S.props.key,M=S.item.type.defaultProps!==void 0?ee(ee({},S.item.type.defaultProps),S.item.props):S.item.props,C=M.activeDot,P=M.dataKey,I=ee(ee({index:D,dataKey:P,cx:k.x,cy:k.y,r:4,fill:o3(S.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},We(C,!1)),Iy(C));return E.push(v.renderActiveDot(C,I,"".concat(T,"-activePoint-").concat(D))),_?E.push(v.renderActiveDot(C,ee(ee({},I),{},{cx:_.x,cy:_.y}),"".concat(T,"-basePoint-").concat(D))):A&&E.push(null),E}),Ge(w,"renderGraphicChild",function(N,S,k){var _=w.filterFormatItem(N,S,k);if(!_)return null;var D=w.getTooltipEventType(),A=w.state,E=A.isTooltipActive,T=A.tooltipAxis,M=A.activeTooltipIndex,C=A.activeLabel,P=w.props.children,I=pi(P,jn),R=_.props,O=R.points,$=R.isRange,q=R.baseLine,z=_.item.type.defaultProps!==void 0?ee(ee({},_.item.type.defaultProps),_.item.props):_.item.props,J=z.activeDot,ne=z.hide,pe=z.activeBar,xe=z.activeShape,De=!!(!ne&&E&&I&&(J||pe||xe)),de={};D!=="axis"&&I&&I.props.trigger==="click"?de={onClick:Zv(w.handleItemMouseEnter,N.props.onClick)}:D!=="axis"&&(de={onMouseLeave:Zv(w.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Zv(w.handleItemMouseEnter,N.props.onMouseEnter)});var Pe=j.cloneElement(N,ee(ee({},_.props),de));function ie(Ne){return typeof T.dataKey=="function"?T.dataKey(Ne.payload):null}if(De)if(M>=0){var me,ve;if(T.dataKey&&!T.allowDuplicatedCategory){var K=typeof T.dataKey=="function"?ie:"payload.".concat(T.dataKey.toString());me=Oy(O,K,C),ve=$&&q&&Oy(q,K,C)}else me=O==null?void 0:O[M],ve=$&&q&&q[M];if(xe||pe){var Ve=N.props.activeIndex!==void 0?N.props.activeIndex:M;return[j.cloneElement(N,ee(ee(ee({},_.props),de),{},{activeIndex:Ve})),null,null]}if(!tt(me))return[Pe].concat(Sh(w.renderActivePoints({item:_,activePoint:me,basePoint:ve,childIndex:M,isRange:$})))}else{var Le,st=(Le=w.getItemByXY(w.state.activeCoordinate))!==null&&Le!==void 0?Le:{graphicalItem:Pe},yt=st.graphicalItem,Dt=yt.item,sn=Dt===void 0?N:Dt,ae=yt.childIndex,ke=ee(ee(ee({},_.props),de),{},{activeIndex:ae});return[j.cloneElement(sn,ke),null,null]}return $?[Pe,null,null]:[Pe,null]}),Ge(w,"renderCustomized",function(N,S,k){return j.cloneElement(N,ee(ee({key:"recharts-customized-".concat(k)},w.props),w.state))}),Ge(w,"renderMap",{CartesianGrid:{handler:ix,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:ix},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:ix},YAxis:{handler:ix},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:em("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=r9(w.triggeredAfterMouseMove,(b=y.throttleDelay)!==null&&b!==void 0?b:1e3/60),w.state={},w}return hOe(v,p),lOe(v,[{key:"componentDidMount",value:function(){var x,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,b=x.children,w=x.data,N=x.height,S=x.layout,k=pi(b,jn);if(k){var _=k.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,A=Dk(this.state,w,_,D),E=this.state.tooltipTicks[_].coordinate,T=(this.state.offset.top+N)/2,M=S==="horizontal",C=M?{x:E,y:T}:{y:E,x:T},P=this.state.formattedGraphicalItems.find(function(R){var O=R.item;return O.type.name==="Scatter"});P&&(C=ee(ee({},C),P.props.points[_].tooltipPosition),A=P.props.points[_].tooltipPayload);var I={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:D,activePayload:A,activeCoordinate:C};this.setState(I),this.renderCursor(k),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,N;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(x){cS([pi(x.children,jn)],[pi(this.props.children,jn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=pi(this.props.children,jn);if(x&&typeof x.props.shared=="boolean"){var b=x.props.shared?"axis":"item";return l.indexOf(b)>=0?b:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var b=this.container,w=b.getBoundingClientRect(),N=E1e(w),S={chartX:Math.round(x.pageX-N.left),chartY:Math.round(x.pageY-N.top)},k=w.width/b.offsetWidth||1,_=this.inRange(S.chartX,S.chartY,k);if(!_)return null;var D=this.state,A=D.xAxisMap,E=D.yAxisMap,T=this.getTooltipEventType();if(T!=="axis"&&A&&E){var M=Yo(A).scale,C=Yo(E).scale,P=M&&M.invert?M.invert(S.chartX):null,I=C&&C.invert?C.invert(S.chartY):null;return ee(ee({},S),{},{xValue:P,yValue:I})}var R=S6(this.state,this.props.data,this.props.layout,_);return R?ee(ee({},S),R):null}},{key:"inRange",value:function(x,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,S=x/w,k=b/w;if(N==="horizontal"||N==="vertical"){var _=this.state.offset,D=S>=_.left&&S<=_.left+_.width&&k>=_.top&&k<=_.top+_.height;return D?{x:S,y:k}:null}var A=this.state,E=A.angleAxisMap,T=A.radiusAxisMap;if(E&&T){var M=Yo(E);return KO({x:S,y:k},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,b=this.getTooltipEventType(),w=pi(x,jn),N={};w&&b==="axis"&&(w.props.trigger==="click"?N={onClick:this.handleClick}:N={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=Iy(this.props,this.handleOuterEvent);return ee(ee({},S),N)}},{key:"addListener",value:function(){V1.on(G1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){V1.removeListener(G1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,b,w){for(var N=this.state.formattedGraphicalItems,S=0,k=N.length;S<k;S++){var _=N[S];if(_.item===x||_.props.key===x.key||b===ao(_.item.type)&&w===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,b=this.state.offset,w=b.left,N=b.top,S=b.height,k=b.width;return L.createElement("defs",null,L.createElement("clipPath",{id:x},L.createElement("rect",{x:w,y:N,height:S,width:k})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(b,w){var N=w6(w,2),S=N[0],k=N[1];return ee(ee({},b),{},Ge({},S,k.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(b,w){var N=w6(w,2),S=N[0],k=N[1];return ee(ee({},b),{},Ge({},S,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[x])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(x){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[x])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(x){var b=this.state,w=b.formattedGraphicalItems,N=b.activeItem;if(w&&w.length)for(var S=0,k=w.length;S<k;S++){var _=w[S],D=_.props,A=_.item,E=A.type.defaultProps!==void 0?ee(ee({},A.type.defaultProps),A.props):A.props,T=ao(A.type);if(T==="Bar"){var M=(D.data||[]).find(function(R){return Q5e(x,R)});if(M)return{graphicalItem:_,payload:M}}else if(T==="RadialBar"){var C=(D.data||[]).find(function(R){return KO(x,R)});if(C)return{graphicalItem:_,payload:C}}else if(qw(_,N)||Hw(_,N)||Gp(_,N)){var P=UTe({graphicalItem:_,activeTooltipItem:N,itemData:E.data}),I=E.activeIndex===void 0?P:E.activeIndex;return{graphicalItem:ee(ee({},_),{},{childIndex:I}),payload:Gp(_,N)?E.data[P]:_.props.data[P]}}}return null}},{key:"render",value:function(){var x=this;if(!UE(this))return null;var b=this.props,w=b.children,N=b.className,S=b.width,k=b.height,_=b.style,D=b.compact,A=b.title,E=b.desc,T=j6(b,tOe),M=We(T,!1);if(D)return L.createElement(r6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(uS,Mf({},M,{width:S,height:k,title:A,desc:E}),this.renderClipPath(),BE(w,this.renderMap)));if(this.props.accessibilityLayer){var C,P;M.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,M.role=(P=this.props.role)!==null&&P!==void 0?P:"application",M.onKeyDown=function(R){x.accessibilityManager.keyboardEvent(R)},M.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return L.createElement(r6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",Mf({className:rt("recharts-wrapper",N),style:ee({position:"relative",cursor:"default",width:S,height:k},_)},I,{ref:function(O){x.container=O}}),L.createElement(uS,Mf({},M,{width:S,height:k,title:A,desc:E,style:xOe}),this.renderClipPath(),BE(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);return Ge(g,"displayName",n),Ge(g,"defaultProps",ee({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Ge(g,"getDerivedStateFromProps",function(p,v){var y=p.dataKey,x=p.data,b=p.children,w=p.width,N=p.height,S=p.layout,k=p.stackOffset,_=p.margin,D=v.dataStartIndex,A=v.dataEndIndex;if(v.updateId===void 0){var E=k6(p);return ee(ee(ee({},E),{},{updateId:0},f(ee(ee({props:p},E),{},{updateId:0}),v)),{},{prevDataKey:y,prevData:x,prevWidth:w,prevHeight:N,prevLayout:S,prevStackOffset:k,prevMargin:_,prevChildren:b})}if(y!==v.prevDataKey||x!==v.prevData||w!==v.prevWidth||N!==v.prevHeight||S!==v.prevLayout||k!==v.prevStackOffset||!bu(_,v.prevMargin)){var T=k6(p),M={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},C=ee(ee({},S6(v,x,S)),{},{updateId:v.updateId+1}),P=ee(ee(ee({},T),M),C);return ee(ee(ee({},P),f(ee({props:p},P),v)),{},{prevDataKey:y,prevData:x,prevWidth:w,prevHeight:N,prevLayout:S,prevStackOffset:k,prevMargin:_,prevChildren:b})}if(!cS(b,v.prevChildren)){var I,R,O,$,q=pi(b,fh),z=q&&(I=(R=q.props)===null||R===void 0?void 0:R.startIndex)!==null&&I!==void 0?I:D,J=q&&(O=($=q.props)===null||$===void 0?void 0:$.endIndex)!==null&&O!==void 0?O:A,ne=z!==D||J!==A,pe=!tt(x),xe=pe&&!ne?v.updateId:v.updateId+1;return ee(ee({updateId:xe},f(ee(ee({props:p},v),{},{updateId:xe,dataStartIndex:z,dataEndIndex:J}),v)),{},{prevChildren:b,dataStartIndex:z,dataEndIndex:J})}return null}),Ge(g,"renderActiveDot",function(p,v,y){var x;return j.isValidElement(p)?x=j.cloneElement(p,v):Ke(p)?x=p(v):x=L.createElement(Uw,v),L.createElement(Nt,{className:"recharts-active-dot",key:y},x)}),function(v){return L.createElement(g,v)}},y3=x3({chartName:"LineChart",GraphicalChild:wd,axisComponents:[{axisType:"xAxis",AxisComp:ts},{axisType:"yAxis",AxisComp:ns}],formatAxisMap:HB}),eg=x3({chartName:"BarChart",GraphicalChild:Bs,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ts},{axisType:"yAxis",AxisComp:ns}],formatAxisMap:HB}),Jw=x3({chartName:"PieChart",GraphicalChild:ss,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zw},{axisType:"radiusAxis",AxisComp:Bw}],formatAxisMap:CCe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const _6=["hsl(var(--primary))","hsl(var(--secondary))","hsl(var(--accent))","hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))"],TOe=({startDate:e,endDate:t})=>{var p,v,y,x;const[n,i]=j.useState(0),[s,a]=j.useState([]),[o,l]=j.useState([]),[c,d]=j.useState([]),[u,h]=j.useState(0),[m,f]=j.useState(!0);j.useEffect(()=>{g()},[e,t]);const g=async()=>{f(!0);try{const{count:b}=await Q.from("leads").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString());i(b||0);const{data:w}=await Q.from("leads").select("source").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),N=w==null?void 0:w.reduce((T,M)=>{const C=M.source||"Unknown";return T[C]=(T[C]||0)+1,T},{});a(Object.entries(N||{}).map(([T,M])=>({source:T,count:M})));const{data:S}=await Q.from("leads").select("service_type").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),k=S==null?void 0:S.reduce((T,M)=>{const C=M.service_type||"Not Specified";return T[C]=(T[C]||0)+1,T},{});l(Object.entries(k||{}).map(([T,M])=>({service_type:T,count:M})));const{data:_}=await Q.from("leads").select("created_at").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()).order("created_at"),D=_==null?void 0:_.reduce((T,M)=>{const C=He(new Date(M.created_at),"yyyy-MM-dd");return T[C]=(T[C]||0)+1,T},{});d(Object.entries(D||{}).map(([T,M])=>({date:T,count:M})));const{count:A}=await Q.from("client_intake_forms").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),E=b&&b>0?(A||0)/b*100:0;h(E)}catch(b){console.error("Error fetching lead analytics:",b)}finally{f(!1)}};return m?r.jsx("div",{className:"flex items-center justify-center p-8",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Leads"}),r.jsx(pn,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold",children:n})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Conversion Rate"}),r.jsx(S_,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsxs("div",{className:"text-2xl font-bold",children:[u.toFixed(1),"%"]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Leads β Intake Forms"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Source"}),r.jsx(FK,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((p=s[0])==null?void 0:p.source)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((v=s[0])==null?void 0:v.count)||0," leads"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Service"}),r.jsx($s,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((y=o[0])==null?void 0:y.service_type)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((x=o[0])==null?void 0:x.count)||0," leads"]})]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Leads Over Time"}),r.jsx(wt,{children:"Daily lead submissions"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(y3,{data:c,children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"date",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(wd,{type:"monotone",dataKey:"count",stroke:"hsl(var(--primary))",strokeWidth:2,name:"Leads"})]})})})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Leads by Source"}),r.jsx(wt,{children:"Where leads are coming from"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(Jw,{children:[r.jsx(ss,{data:s,cx:"50%",cy:"50%",labelLine:!1,label:({source:b,percent:w})=>`${b}: ${(w*100).toFixed(0)}%`,outerRadius:80,fill:"hsl(var(--primary))",dataKey:"count",children:s.map((b,w)=>r.jsx(xd,{fill:_6[w%_6.length]},`cell-${w}`))}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}})]})})})]}),r.jsxs(W,{className:"lg:col-span-2",children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Leads by Service Type"}),r.jsx(wt,{children:"What services are clients requesting"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(eg,{data:o,children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"service_type",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(Bs,{dataKey:"count",fill:"hsl(var(--primary))",name:"Leads"})]})})})]})]})]})},T6=["hsl(var(--primary))","hsl(var(--secondary))","hsl(var(--accent))","hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))"],POe=({startDate:e,endDate:t})=>{var y,x;const[n,i]=j.useState(0),[s,a]=j.useState(0),[o,l]=j.useState(0),[c,d]=j.useState([]),[u,h]=j.useState([]),[m,f]=j.useState([]),[g,p]=j.useState(!0);j.useEffect(()=>{v()},[e,t]);const v=async()=>{p(!0);try{const{count:b}=await Q.from("client_intake_forms").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString());i(b||0);const{count:w}=await Q.from("client_intake_forms").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString()).not("assigned_investigator","is",null);a(w||0),l((b||0)-(w||0));const{data:N}=await Q.from("client_intake_forms").select("case_type").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),S=N==null?void 0:N.reduce((E,T)=>{const M=T.case_type||"Unknown";return E[M]=(E[M]||0)+1,E},{});d(Object.entries(S||{}).map(([E,T])=>({case_type:E,count:T})));const{data:k}=await Q.from("client_intake_forms").select("form_status").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),_=k==null?void 0:k.reduce((E,T)=>{const M=T.form_status||"submitted";return E[M]=(E[M]||0)+1,E},{});h(Object.entries(_||{}).map(([E,T])=>({form_status:E,count:T})));const{data:D}=await Q.from("client_intake_forms").select("created_at").gte("created_at",e.toISOString()).lte("created_at",t.toISOString()).order("created_at"),A=D==null?void 0:D.reduce((E,T)=>{const M=He(new Date(T.created_at),"yyyy-MM-dd");return E[M]=(E[M]||0)+1,E},{});f(Object.entries(A||{}).map(([E,T])=>({date:E,count:T})))}catch(b){console.error("Error fetching intake analytics:",b)}finally{p(!1)}};return g?r.jsx("div",{className:"flex items-center justify-center p-8",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Intakes"}),r.jsx(Ct,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold",children:n})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Assigned"}),r.jsx(we,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:s}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[n>0?(s/n*100).toFixed(0):0,"% of total"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Unassigned"}),r.jsx(Pn,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:o}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Need assignment"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Case Type"}),r.jsx(Sn,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((y=c[0])==null?void 0:y.case_type)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((x=c[0])==null?void 0:x.count)||0," cases"]})]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Intake Forms Over Time"}),r.jsx(wt,{children:"Daily submissions"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(y3,{data:m,children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"date",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(wd,{type:"monotone",dataKey:"count",stroke:"hsl(var(--primary))",strokeWidth:2,name:"Intakes"})]})})})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Forms by Status"}),r.jsx(wt,{children:"Current status distribution"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(Jw,{children:[r.jsx(ss,{data:u,cx:"50%",cy:"50%",labelLine:!1,label:({form_status:b,percent:w})=>`${b}: ${(w*100).toFixed(0)}%`,outerRadius:80,fill:"hsl(var(--primary))",dataKey:"count",children:u.map((b,w)=>r.jsx(xd,{fill:T6[w%T6.length]},`cell-${w}`))}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}})]})})})]}),r.jsxs(W,{className:"lg:col-span-2",children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Intake Forms by Case Type"}),r.jsx(wt,{children:"Distribution of investigation types"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(eg,{data:c,children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"case_type",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(Bs,{dataKey:"count",fill:"hsl(var(--primary))",name:"Forms"})]})})})]})]})]})},P6=["hsl(var(--primary))","hsl(var(--secondary))","hsl(var(--accent))","hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))"],EOe=({startDate:e,endDate:t})=>{var p,v,y,x,b,w,N,S;const[n,i]=j.useState([]),[s,a]=j.useState([]),[o,l]=j.useState([]),[c,d]=j.useState([]),[u,h]=j.useState([]),[m,f]=j.useState(!0);j.useEffect(()=>{g()},[e,t]);const g=async()=>{f(!0);try{const{data:k}=await Q.from("leads").select("utm_source, utm_medium, utm_campaign, device_type, referrer_url").gte("created_at",e.toISOString()).lte("created_at",t.toISOString());if(!k)return;const _=k.reduce((M,C)=>{const P=C.utm_source||"Direct";return M[P]=(M[P]||0)+1,M},{});i(Object.entries(_).map(([M,C])=>({source:M,count:C})).sort((M,C)=>C.count-M.count));const D=k.reduce((M,C)=>{const P=C.utm_medium||"None";return M[P]=(M[P]||0)+1,M},{});a(Object.entries(D).map(([M,C])=>({source:M,count:C})).sort((M,C)=>C.count-M.count));const A=k.reduce((M,C)=>{const P=C.utm_campaign||"None";return M[P]=(M[P]||0)+1,M},{});l(Object.entries(A).map(([M,C])=>({source:M,count:C})).sort((M,C)=>C.count-M.count).slice(0,10));const E=k.reduce((M,C)=>{const P=C.device_type||"Unknown";return M[P]=(M[P]||0)+1,M},{});d(Object.entries(E).map(([M,C])=>({device:M,count:C})));const T=k.reduce((M,C)=>{if(!C.referrer_url)return M;try{const I=new URL(C.referrer_url).hostname;M[I]=(M[I]||0)+1}catch{}return M},{});h(Object.entries(T).map(([M,C])=>({source:M,count:C})).sort((M,C)=>C.count-M.count).slice(0,10))}catch(k){console.error("Error fetching traffic analytics:",k)}finally{f(!1)}};return m?r.jsx("div",{className:"flex items-center justify-center p-8",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top UTM Source"}),r.jsx(xy,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((p=n[0])==null?void 0:p.source)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((v=n[0])==null?void 0:v.count)||0," leads"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Medium"}),r.jsx(Pl,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((y=s[0])==null?void 0:y.source)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((x=s[0])==null?void 0:x.count)||0," leads"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Device"}),r.jsx(GK,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((b=c[0])==null?void 0:b.device)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((w=c[0])==null?void 0:w.count)||0," leads"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Top Referrer"}),r.jsx(Tl,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold truncate",children:((N=u[0])==null?void 0:N.source)||"Direct"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[((S=u[0])==null?void 0:S.count)||0," leads"]})]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Traffic by UTM Source"}),r.jsx(wt,{children:"Where your traffic originates"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(eg,{data:n.slice(0,8),children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"source",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(Bs,{dataKey:"count",fill:"hsl(var(--primary))",name:"Leads"})]})})})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Device Breakdown"}),r.jsx(wt,{children:"Mobile vs Desktop traffic"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(Jw,{children:[r.jsx(ss,{data:c,cx:"50%",cy:"50%",labelLine:!1,label:({device:k,percent:_})=>`${k}: ${(_*100).toFixed(0)}%`,outerRadius:80,fill:"hsl(var(--primary))",dataKey:"count",children:c.map((k,_)=>r.jsx(xd,{fill:P6[_%P6.length]},`cell-${_}`))}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}})]})})})]}),r.jsxs(W,{className:"lg:col-span-2",children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Top Campaigns"}),r.jsx(wt,{children:"Most effective marketing campaigns"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(eg,{data:o,children:[r.jsx(jo,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),r.jsx(ts,{dataKey:"source",stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(ns,{stroke:"hsl(var(--foreground))",tick:{fill:"hsl(var(--foreground))"}}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(Bs,{dataKey:"count",fill:"hsl(var(--secondary))",name:"Leads"})]})})})]})]})]})},AOe=({startDate:e,endDate:t})=>{var l,c,d,u,h;const[n,i]=j.useState([]),[s,a]=j.useState(!0);j.useEffect(()=>{o()},[e,t]);const o=async()=>{a(!0);try{const{count:m}=await Q.from("leads").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),{count:f}=await Q.from("client_intake_forms").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString()),{count:g}=await Q.from("client_intake_forms").select("*",{count:"exact",head:!0}).gte("created_at",e.toISOString()).lte("created_at",t.toISOString()).not("assigned_investigator","is",null),p=m||0,v=[{stage:"Contact Form Submissions",count:p,percentage:100},{stage:"Intake Forms Completed",count:f||0,percentage:p>0?(f||0)/p*100:0,dropoff:p>0?100-(f||0)/p*100:0},{stage:"Cases Assigned",count:g||0,percentage:p>0?(g||0)/p*100:0,dropoff:(f||0)>0?100-(g||0)/(f||1)*100:0}];i(v)}catch(m){console.error("Error fetching funnel data:",m)}finally{a(!1)}};return s?r.jsx("div",{className:"flex items-center justify-center p-8",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Conversion Funnel"}),r.jsx(wt,{children:"Journey from lead to assigned case"})]}),r.jsxs(H,{className:"space-y-4",children:[n.map((m,f)=>{const g=`${m.percentage}%`,p=f===0;return r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsx("span",{className:"font-medium",children:m.stage}),r.jsxs("span",{className:"text-muted-foreground",children:[m.count," (",m.percentage.toFixed(1),"%)"]})]}),r.jsx("div",{className:"relative h-12 bg-muted rounded-lg overflow-hidden",children:r.jsx("div",{className:`h-full flex items-center justify-center text-sm font-medium transition-all duration-500 ${p?"bg-primary text-primary-foreground":f===1?"bg-secondary text-secondary-foreground":"bg-accent text-accent-foreground"}`,style:{width:g},children:m.count>0&&r.jsxs("span",{className:"px-4",children:[m.count," leads"]})})}),m.dropoff!==void 0&&m.dropoff>0&&r.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[r.jsx(t$,{className:"h-3 w-3"}),r.jsxs("span",{children:[m.dropoff.toFixed(1),"% drop-off from previous stage"]})]})]},m.stage)}),r.jsx("div",{className:"pt-4 border-t",children:r.jsxs("div",{className:"text-sm space-y-1",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted-foreground",children:"Overall Conversion Rate:"}),r.jsxs("span",{className:"font-medium",children:[(l=n[n.length-1])==null?void 0:l.percentage.toFixed(1),"%"]})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted-foreground",children:"Lead β Intake:"}),r.jsxs("span",{className:"font-medium",children:[(c=n[1])==null?void 0:c.percentage.toFixed(1),"%"]})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-muted-foreground",children:"Intake β Assignment:"}),r.jsxs("span",{className:"font-medium",children:[((d=n[1])==null?void 0:d.count)>0?(((u=n[2])==null?void 0:u.count)/((h=n[1])==null?void 0:h.count)*100).toFixed(1):"0.0","%"]})]})]})})]})]})};var Ye=function(){return Ye=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ye.apply(this,arguments)};function OOe(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function _W(e,t,n){for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}function Vg(e){return e.mode==="multiple"}function Gg(e){return e.mode==="range"}function Zw(e){return e.mode==="single"}var IOe={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function DOe(e,t){return He(e,"LLLL y",t)}function MOe(e,t){return He(e,"d",t)}function ROe(e,t){return He(e,"LLLL",t)}function $Oe(e){return"".concat(e)}function LOe(e,t){return He(e,"cccccc",t)}function UOe(e,t){return He(e,"yyyy",t)}var FOe=Object.freeze({__proto__:null,formatCaption:DOe,formatDay:MOe,formatMonthCaption:ROe,formatWeekNumber:$Oe,formatWeekdayName:LOe,formatYearCaption:UOe}),BOe=function(e,t,n){return He(e,"do MMMM (EEEE)",n)},WOe=function(){return"Month: "},zOe=function(){return"Go to next month"},qOe=function(){return"Go to previous month"},HOe=function(e,t){return He(e,"cccc",t)},VOe=function(e){return"Week n. ".concat(e)},GOe=function(){return"Year: "},YOe=Object.freeze({__proto__:null,labelDay:BOe,labelMonthDropdown:WOe,labelNext:zOe,labelPrevious:qOe,labelWeekNumber:VOe,labelWeekday:HOe,labelYearDropdown:GOe});function KOe(){var e="buttons",t=IOe,n=gF,i={},s={},a=1,o={},l=new Date;return{captionLayout:e,classNames:t,formatters:FOe,labels:YOe,locale:n,modifiersClassNames:i,modifiers:s,numberOfMonths:a,styles:o,today:l,mode:"default"}}function XOe(e){var t=e.fromYear,n=e.toYear,i=e.fromMonth,s=e.toMonth,a=e.fromDate,o=e.toDate;return i?a=ii(i):t&&(a=new Date(t,0,1)),s?o=l5(s):n&&(o=new Date(n,11,31)),{fromDate:a?Ju(a):void 0,toDate:o?Ju(o):void 0}}var TW=j.createContext(void 0);function QOe(e){var t,n=e.initialProps,i=KOe(),s=XOe(n),a=s.fromDate,o=s.toDate,l=(t=n.captionLayout)!==null&&t!==void 0?t:i.captionLayout;l!=="buttons"&&(!a||!o)&&(l="buttons");var c;(Zw(n)||Vg(n)||Gg(n))&&(c=n.onSelect);var d=Ye(Ye(Ye({},i),n),{captionLayout:l,classNames:Ye(Ye({},i.classNames),n.classNames),components:Ye({},n.components),formatters:Ye(Ye({},i.formatters),n.formatters),fromDate:a,labels:Ye(Ye({},i.labels),n.labels),mode:n.mode||i.mode,modifiers:Ye(Ye({},i.modifiers),n.modifiers),modifiersClassNames:Ye(Ye({},i.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:Ye(Ye({},i.styles),n.styles),toDate:o});return r.jsx(TW.Provider,{value:d,children:e.children})}function qt(){var e=j.useContext(TW);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function PW(e){var t=qt(),n=t.locale,i=t.classNames,s=t.styles,a=t.formatters.formatCaption;return r.jsx("div",{className:i.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function JOe(e){return r.jsx("svg",Ye({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:r.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function EW(e){var t,n,i=e.onChange,s=e.value,a=e.children,o=e.caption,l=e.className,c=e.style,d=qt(),u=(n=(t=d.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:JOe;return r.jsxs("div",{className:l,style:c,children:[r.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),r.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:s,onChange:i,children:a}),r.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[o,r.jsx(u,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function ZOe(e){var t,n=qt(),i=n.fromDate,s=n.toDate,a=n.styles,o=n.locale,l=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,u=n.labels.labelMonthDropdown;if(!i)return r.jsx(r.Fragment,{});if(!s)return r.jsx(r.Fragment,{});var h=[];if(Sce(i,s))for(var m=ii(i),f=i.getMonth();f<=s.getMonth();f++)h.push(y1(m,f));else for(var m=ii(new Date),f=0;f<=11;f++)h.push(y1(m,f));var g=function(v){var y=Number(v.target.value),x=y1(ii(e.displayMonth),y);e.onChange(x)},p=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:EW;return r.jsx(p,{name:"months","aria-label":u(),className:c.dropdown_month,style:a.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:o}),children:h.map(function(v){return r.jsx("option",{value:v.getMonth(),children:l(v,{locale:o})},v.getMonth())})})}function eIe(e){var t,n=e.displayMonth,i=qt(),s=i.fromDate,a=i.toDate,o=i.locale,l=i.styles,c=i.classNames,d=i.components,u=i.formatters.formatYearCaption,h=i.labels.labelYearDropdown,m=[];if(!s)return r.jsx(r.Fragment,{});if(!a)return r.jsx(r.Fragment,{});for(var f=s.getFullYear(),g=a.getFullYear(),p=f;p<=g;p++)m.push(kE(fF(new Date),p));var v=function(x){var b=kE(ii(n),Number(x.target.value));e.onChange(b)},y=(t=d==null?void 0:d.Dropdown)!==null&&t!==void 0?t:EW;return r.jsx(y,{name:"years","aria-label":h(),className:c.dropdown_year,style:l.dropdown_year,onChange:v,value:n.getFullYear(),caption:u(n,{locale:o}),children:m.map(function(x){return r.jsx("option",{value:x.getFullYear(),children:u(x,{locale:o})},x.getFullYear())})})}function tIe(e,t){var n=j.useState(e),i=n[0],s=n[1],a=t===void 0?i:t;return[a,s]}function nIe(e){var t=e.month,n=e.defaultMonth,i=e.today,s=t||n||i||new Date,a=e.toDate,o=e.fromDate,l=e.numberOfMonths,c=l===void 0?1:l;if(a&&pp(a,s)<0){var d=-1*(c-1);s=Fs(a,d)}return o&&pp(s,o)<0&&(s=o),ii(s)}function rIe(){var e=qt(),t=nIe(e),n=tIe(t,e.month),i=n[0],s=n[1],a=function(o){var l;if(!e.disableNavigation){var c=ii(o);s(c),(l=e.onMonthChange)===null||l===void 0||l.call(e,c)}};return[i,a]}function iIe(e,t){for(var n=t.reverseMonths,i=t.numberOfMonths,s=ii(e),a=ii(Fs(s,i)),o=pp(a,s),l=[],c=0;c<o;c++){var d=Fs(s,c);l.push(d)}return n&&(l=l.reverse()),l}function sIe(e,t){if(!t.disableNavigation){var n=t.toDate,i=t.pagedNavigation,s=t.numberOfMonths,a=s===void 0?1:s,o=i?a:1,l=ii(e);if(!n)return Fs(l,o);var c=pp(n,e);if(!(c<a))return Fs(l,o)}}function aIe(e,t){if(!t.disableNavigation){var n=t.fromDate,i=t.pagedNavigation,s=t.numberOfMonths,a=s===void 0?1:s,o=i?a:1,l=ii(e);if(!n)return Fs(l,-o);var c=pp(l,n);if(!(c<=0))return Fs(l,-o)}}var AW=j.createContext(void 0);function oIe(e){var t=qt(),n=rIe(),i=n[0],s=n[1],a=iIe(i,t),o=sIe(i,t),l=aIe(i,t),c=function(h){return a.some(function(m){return c5(h,m)})},d=function(h,m){c(h)||(m&&wF(h,m)?s(Fs(h,1+t.numberOfMonths*-1)):s(h))},u={currentMonth:i,displayMonths:a,goToMonth:s,goToDate:d,previousMonth:l,nextMonth:o,isDateDisplayed:c};return r.jsx(AW.Provider,{value:u,children:e.children})}function Yg(){var e=j.useContext(AW);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function E6(e){var t,n=qt(),i=n.classNames,s=n.styles,a=n.components,o=Yg().goToMonth,l=function(u){o(Fs(u,e.displayIndex?-e.displayIndex:0))},c=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:PW,d=r.jsx(c,{id:e.id,displayMonth:e.displayMonth});return r.jsxs("div",{className:i.caption_dropdowns,style:s.caption_dropdowns,children:[r.jsx("div",{className:i.vhidden,children:d}),r.jsx(ZOe,{onChange:l,displayMonth:e.displayMonth}),r.jsx(eIe,{onChange:l,displayMonth:e.displayMonth})]})}function lIe(e){return r.jsx("svg",Ye({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function cIe(e){return r.jsx("svg",Ye({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:r.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var O0=j.forwardRef(function(e,t){var n=qt(),i=n.classNames,s=n.styles,a=[i.button_reset,i.button];e.className&&a.push(e.className);var o=a.join(" "),l=Ye(Ye({},s.button_reset),s.button);return e.style&&Object.assign(l,e.style),r.jsx("button",Ye({},e,{ref:t,type:"button",className:o,style:l}))});function dIe(e){var t,n,i=qt(),s=i.dir,a=i.locale,o=i.classNames,l=i.styles,c=i.labels,d=c.labelPrevious,u=c.labelNext,h=i.components;if(!e.nextMonth&&!e.previousMonth)return r.jsx(r.Fragment,{});var m=d(e.previousMonth,{locale:a}),f=[o.nav_button,o.nav_button_previous].join(" "),g=u(e.nextMonth,{locale:a}),p=[o.nav_button,o.nav_button_next].join(" "),v=(t=h==null?void 0:h.IconRight)!==null&&t!==void 0?t:cIe,y=(n=h==null?void 0:h.IconLeft)!==null&&n!==void 0?n:lIe;return r.jsxs("div",{className:o.nav,style:l.nav,children:[!e.hidePrevious&&r.jsx(O0,{name:"previous-month","aria-label":m,className:f,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:s==="rtl"?r.jsx(v,{className:o.nav_icon,style:l.nav_icon}):r.jsx(y,{className:o.nav_icon,style:l.nav_icon})}),!e.hideNext&&r.jsx(O0,{name:"next-month","aria-label":g,className:p,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:s==="rtl"?r.jsx(y,{className:o.nav_icon,style:l.nav_icon}):r.jsx(v,{className:o.nav_icon,style:l.nav_icon})})]})}function A6(e){var t=qt().numberOfMonths,n=Yg(),i=n.previousMonth,s=n.nextMonth,a=n.goToMonth,o=n.displayMonths,l=o.findIndex(function(g){return c5(e.displayMonth,g)}),c=l===0,d=l===o.length-1,u=t>1&&(c||!d),h=t>1&&(d||!c),m=function(){i&&a(i)},f=function(){s&&a(s)};return r.jsx(dIe,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:h,nextMonth:s,previousMonth:i,onPreviousClick:m,onNextClick:f})}function uIe(e){var t,n=qt(),i=n.classNames,s=n.disableNavigation,a=n.styles,o=n.captionLayout,l=n.components,c=(t=l==null?void 0:l.CaptionLabel)!==null&&t!==void 0?t:PW,d;return s?d=r.jsx(c,{id:e.id,displayMonth:e.displayMonth}):o==="dropdown"?d=r.jsx(E6,{displayMonth:e.displayMonth,id:e.id}):o==="dropdown-buttons"?d=r.jsxs(r.Fragment,{children:[r.jsx(E6,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),r.jsx(A6,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=r.jsxs(r.Fragment,{children:[r.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(A6,{displayMonth:e.displayMonth,id:e.id})]}),r.jsx("div",{className:i.caption,style:a.caption,children:d})}function hIe(e){var t=qt(),n=t.footer,i=t.styles,s=t.classNames.tfoot;return n?r.jsx("tfoot",{className:s,style:i.tfoot,children:r.jsx("tr",{children:r.jsx("td",{colSpan:8,children:n})})}):r.jsx(r.Fragment,{})}function mIe(e,t,n){for(var i=n?Yc(new Date):Zi(new Date,{locale:e,weekStartsOn:t}),s=[],a=0;a<7;a++){var o=Kn(i,a);s.push(o)}return s}function fIe(){var e=qt(),t=e.classNames,n=e.styles,i=e.showWeekNumber,s=e.locale,a=e.weekStartsOn,o=e.ISOWeek,l=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,d=mIe(s,a,o);return r.jsxs("tr",{style:n.head_row,className:t.head_row,children:[i&&r.jsx("td",{style:n.head_cell,className:t.head_cell}),d.map(function(u,h){return r.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":c(u,{locale:s}),children:l(u,{locale:s})},h)})]})}function pIe(){var e,t=qt(),n=t.classNames,i=t.styles,s=t.components,a=(e=s==null?void 0:s.HeadRow)!==null&&e!==void 0?e:fIe;return r.jsx("thead",{style:i.head,className:n.head,children:r.jsx(a,{})})}function gIe(e){var t=qt(),n=t.locale,i=t.formatters.formatDay;return r.jsx(r.Fragment,{children:i(e.date,{locale:n})})}var b3=j.createContext(void 0);function vIe(e){if(!Vg(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return r.jsx(b3.Provider,{value:t,children:e.children})}return r.jsx(xIe,{initialProps:e.initialProps,children:e.children})}function xIe(e){var t=e.initialProps,n=e.children,i=t.selected,s=t.min,a=t.max,o=function(d,u,h){var m,f;(m=t.onDayClick)===null||m===void 0||m.call(t,d,u,h);var g=!!(u.selected&&s&&(i==null?void 0:i.length)===s);if(!g){var p=!!(!u.selected&&a&&(i==null?void 0:i.length)===a);if(!p){var v=i?_W([],i):[];if(u.selected){var y=v.findIndex(function(x){return En(d,x)});v.splice(y,1)}else v.push(d);(f=t.onSelect)===null||f===void 0||f.call(t,v,d,u,h)}}},l={disabled:[]};i&&l.disabled.push(function(d){var u=a&&i.length>a-1,h=i.some(function(m){return En(m,d)});return!!(u&&!h)});var c={selected:i,onDayClick:o,modifiers:l};return r.jsx(b3.Provider,{value:c,children:n})}function w3(){var e=j.useContext(b3);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function yIe(e,t){var n=t||{},i=n.from,s=n.to;return i&&s?En(s,e)&&En(i,e)?void 0:En(s,e)?{from:s,to:void 0}:En(i,e)?void 0:Rc(i,e)?{from:e,to:s}:{from:i,to:e}:s?Rc(e,s)?{from:s,to:e}:{from:e,to:s}:i?wF(e,i)?{from:e,to:i}:{from:i,to:e}:{from:e,to:void 0}}var j3=j.createContext(void 0);function bIe(e){if(!Gg(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return r.jsx(j3.Provider,{value:t,children:e.children})}return r.jsx(wIe,{initialProps:e.initialProps,children:e.children})}function wIe(e){var t=e.initialProps,n=e.children,i=t.selected,s=i||{},a=s.from,o=s.to,l=t.min,c=t.max,d=function(f,g,p){var v,y;(v=t.onDayClick)===null||v===void 0||v.call(t,f,g,p);var x=yIe(f,i);(y=t.onSelect)===null||y===void 0||y.call(t,x,f,g,p)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],o?(u.range_end=[o],En(a,o)||(u.range_middle=[{after:a,before:o}])):u.range_end=[a]):o&&(u.range_start=[o],u.range_end=[o]),l&&(a&&!o&&u.disabled.push({after:js(a,l-1),before:Kn(a,l-1)}),a&&o&&u.disabled.push({after:a,before:Kn(a,l-1)}),!a&&o&&u.disabled.push({after:js(o,l-1),before:Kn(o,l-1)})),c){if(a&&!o&&(u.disabled.push({before:Kn(a,-c+1)}),u.disabled.push({after:Kn(a,c-1)})),a&&o){var h=ca(o,a)+1,m=c-h;u.disabled.push({before:js(a,m)}),u.disabled.push({after:Kn(o,m)})}!a&&o&&(u.disabled.push({before:Kn(o,-c+1)}),u.disabled.push({after:Kn(o,c-1)}))}return r.jsx(j3.Provider,{value:{selected:i,onDayClick:d,modifiers:u},children:n})}function N3(){var e=j.useContext(j3);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function $x(e){return Array.isArray(e)?_W([],e):e!==void 0?[e]:[]}function jIe(e){var t={};return Object.entries(e).forEach(function(n){var i=n[0],s=n[1];t[i]=$x(s)}),t}var Ws;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Ws||(Ws={}));var NIe=Ws.Selected,La=Ws.Disabled,SIe=Ws.Hidden,kIe=Ws.Today,K1=Ws.RangeEnd,X1=Ws.RangeMiddle,Q1=Ws.RangeStart,CIe=Ws.Outside;function _Ie(e,t,n){var i,s=(i={},i[NIe]=$x(e.selected),i[La]=$x(e.disabled),i[SIe]=$x(e.hidden),i[kIe]=[e.today],i[K1]=[],i[X1]=[],i[Q1]=[],i[CIe]=[],i);return e.fromDate&&s[La].push({before:e.fromDate}),e.toDate&&s[La].push({after:e.toDate}),Vg(e)?s[La]=s[La].concat(t.modifiers[La]):Gg(e)&&(s[La]=s[La].concat(n.modifiers[La]),s[Q1]=n.modifiers[Q1],s[X1]=n.modifiers[X1],s[K1]=n.modifiers[K1]),s}var OW=j.createContext(void 0);function TIe(e){var t=qt(),n=w3(),i=N3(),s=_Ie(t,n,i),a=jIe(t.modifiers),o=Ye(Ye({},s),a);return r.jsx(OW.Provider,{value:o,children:e.children})}function IW(){var e=j.useContext(OW);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function PIe(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function EIe(e){return!!(e&&typeof e=="object"&&"from"in e)}function AIe(e){return!!(e&&typeof e=="object"&&"after"in e)}function OIe(e){return!!(e&&typeof e=="object"&&"before"in e)}function IIe(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function DIe(e,t){var n,i=t.from,s=t.to;if(i&&s){var a=ca(s,i)<0;a&&(n=[s,i],i=n[0],s=n[1]);var o=ca(e,i)>=0&&ca(s,e)>=0;return o}return s?En(s,e):i?En(i,e):!1}function MIe(e){return o5(e)}function RIe(e){return Array.isArray(e)&&e.every(o5)}function $Ie(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(MIe(n))return En(e,n);if(RIe(n))return n.includes(e);if(EIe(n))return DIe(e,n);if(IIe(n))return n.dayOfWeek.includes(e.getDay());if(PIe(n)){var i=ca(n.before,e),s=ca(n.after,e),a=i>0,o=s<0,l=Rc(n.before,n.after);return l?o&&a:a||o}return AIe(n)?ca(e,n.after)>0:OIe(n)?ca(n.before,e)>0:typeof n=="function"?n(e):!1})}function S3(e,t,n){var i=Object.keys(t).reduce(function(a,o){var l=t[o];return $Ie(e,l)&&a.push(o),a},[]),s={};return i.forEach(function(a){return s[a]=!0}),n&&!c5(e,n)&&(s.outside=!0),s}function LIe(e,t){for(var n=ii(e[0]),i=l5(e[e.length-1]),s,a,o=n;o<=i;){var l=S3(o,t),c=!l.disabled&&!l.hidden;if(!c){o=Kn(o,1);continue}if(l.selected)return o;l.today&&!a&&(a=o),s||(s=o),o=Kn(o,1)}return a||s}var UIe=365;function DW(e,t){var n=t.moveBy,i=t.direction,s=t.context,a=t.modifiers,o=t.retry,l=o===void 0?{count:0,lastFocused:e}:o,c=s.weekStartsOn,d=s.fromDate,u=s.toDate,h=s.locale,m={day:Kn,week:iS,month:Fs,year:vle,startOfWeek:function(v){return s.ISOWeek?Yc(v):Zi(v,{locale:h,weekStartsOn:c})},endOfWeek:function(v){return s.ISOWeek?pF(v):gp(v,{locale:h,weekStartsOn:c})}},f=m[n](e,i==="after"?1:-1);i==="before"&&d?f=xle([d,f]):i==="after"&&u&&(f=yle([u,f]));var g=!0;if(a){var p=S3(f,a);g=!p.disabled&&!p.hidden}return g?f:l.count>UIe?l.lastFocused:DW(f,{moveBy:n,direction:i,context:s,modifiers:a,retry:Ye(Ye({},l),{count:l.count+1})})}var MW=j.createContext(void 0);function FIe(e){var t=Yg(),n=IW(),i=j.useState(),s=i[0],a=i[1],o=j.useState(),l=o[0],c=o[1],d=LIe(t.displayMonths,n),u=s??(l&&t.isDateDisplayed(l))?l:d,h=function(){c(s),a(void 0)},m=function(v){a(v)},f=qt(),g=function(v,y){if(s){var x=DW(s,{moveBy:v,direction:y,context:f,modifiers:n});En(s,x)||(t.goToDate(x,s),m(x))}},p={focusedDay:s,focusTarget:u,blur:h,focus:m,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return r.jsx(MW.Provider,{value:p,children:e.children})}function k3(){var e=j.useContext(MW);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function BIe(e,t){var n=IW(),i=S3(e,n,t);return i}var C3=j.createContext(void 0);function WIe(e){if(!Zw(e.initialProps)){var t={selected:void 0};return r.jsx(C3.Provider,{value:t,children:e.children})}return r.jsx(zIe,{initialProps:e.initialProps,children:e.children})}function zIe(e){var t=e.initialProps,n=e.children,i=function(a,o,l){var c,d,u;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,o,l),o.selected&&!t.required){(d=t.onSelect)===null||d===void 0||d.call(t,void 0,a,o,l);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,o,l)},s={selected:t.selected,onDayClick:i};return r.jsx(C3.Provider,{value:s,children:n})}function RW(){var e=j.useContext(C3);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function qIe(e,t){var n=qt(),i=RW(),s=w3(),a=N3(),o=k3(),l=o.focusDayAfter,c=o.focusDayBefore,d=o.focusWeekAfter,u=o.focusWeekBefore,h=o.blur,m=o.focus,f=o.focusMonthBefore,g=o.focusMonthAfter,p=o.focusYearBefore,v=o.focusYearAfter,y=o.focusStartOfWeek,x=o.focusEndOfWeek,b=function(R){var O,$,q,z;Zw(n)?(O=i.onDayClick)===null||O===void 0||O.call(i,e,t,R):Vg(n)?($=s.onDayClick)===null||$===void 0||$.call(s,e,t,R):Gg(n)?(q=a.onDayClick)===null||q===void 0||q.call(a,e,t,R):(z=n.onDayClick)===null||z===void 0||z.call(n,e,t,R)},w=function(R){var O;m(e),(O=n.onDayFocus)===null||O===void 0||O.call(n,e,t,R)},N=function(R){var O;h(),(O=n.onDayBlur)===null||O===void 0||O.call(n,e,t,R)},S=function(R){var O;(O=n.onDayMouseEnter)===null||O===void 0||O.call(n,e,t,R)},k=function(R){var O;(O=n.onDayMouseLeave)===null||O===void 0||O.call(n,e,t,R)},_=function(R){var O;(O=n.onDayPointerEnter)===null||O===void 0||O.call(n,e,t,R)},D=function(R){var O;(O=n.onDayPointerLeave)===null||O===void 0||O.call(n,e,t,R)},A=function(R){var O;(O=n.onDayTouchCancel)===null||O===void 0||O.call(n,e,t,R)},E=function(R){var O;(O=n.onDayTouchEnd)===null||O===void 0||O.call(n,e,t,R)},T=function(R){var O;(O=n.onDayTouchMove)===null||O===void 0||O.call(n,e,t,R)},M=function(R){var O;(O=n.onDayTouchStart)===null||O===void 0||O.call(n,e,t,R)},C=function(R){var O;(O=n.onDayKeyUp)===null||O===void 0||O.call(n,e,t,R)},P=function(R){var O;switch(R.key){case"ArrowLeft":R.preventDefault(),R.stopPropagation(),n.dir==="rtl"?l():c();break;case"ArrowRight":R.preventDefault(),R.stopPropagation(),n.dir==="rtl"?c():l();break;case"ArrowDown":R.preventDefault(),R.stopPropagation(),d();break;case"ArrowUp":R.preventDefault(),R.stopPropagation(),u();break;case"PageUp":R.preventDefault(),R.stopPropagation(),R.shiftKey?p():f();break;case"PageDown":R.preventDefault(),R.stopPropagation(),R.shiftKey?v():g();break;case"Home":R.preventDefault(),R.stopPropagation(),y();break;case"End":R.preventDefault(),R.stopPropagation(),x();break}(O=n.onDayKeyDown)===null||O===void 0||O.call(n,e,t,R)},I={onClick:b,onFocus:w,onBlur:N,onKeyDown:P,onKeyUp:C,onMouseEnter:S,onMouseLeave:k,onPointerEnter:_,onPointerLeave:D,onTouchCancel:A,onTouchEnd:E,onTouchMove:T,onTouchStart:M};return I}function HIe(){var e=qt(),t=RW(),n=w3(),i=N3(),s=Zw(e)?t.selected:Vg(e)?n.selected:Gg(e)?i.selected:void 0;return s}function VIe(e){return Object.values(Ws).includes(e)}function GIe(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(i){var s=e.modifiersClassNames[i];if(s)n.push(s);else if(VIe(i)){var a=e.classNames["day_".concat(i)];a&&n.push(a)}}),n}function YIe(e,t){var n=Ye({},e.styles.day);return Object.keys(t).forEach(function(i){var s;n=Ye(Ye({},n),(s=e.modifiersStyles)===null||s===void 0?void 0:s[i])}),n}function KIe(e,t,n){var i,s,a,o=qt(),l=k3(),c=BIe(e,t),d=qIe(e,c),u=HIe(),h=!!(o.onDayClick||o.mode!=="default");j.useEffect(function(){var S;c.outside||l.focusedDay&&h&&En(l.focusedDay,e)&&((S=n.current)===null||S===void 0||S.focus())},[l.focusedDay,e,n,h,c.outside]);var m=GIe(o,c).join(" "),f=YIe(o,c),g=!!(c.outside&&!o.showOutsideDays||c.hidden),p=(a=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&a!==void 0?a:gIe,v=r.jsx(p,{date:e,displayMonth:t,activeModifiers:c}),y={style:f,className:m,children:v,role:"gridcell"},x=l.focusTarget&&En(l.focusTarget,e)&&!c.outside,b=l.focusedDay&&En(l.focusedDay,e),w=Ye(Ye(Ye({},y),(i={disabled:c.disabled,role:"gridcell"},i["aria-selected"]=c.selected,i.tabIndex=b||x?0:-1,i)),d),N={isButton:h,isHidden:g,activeModifiers:c,selectedDays:u,buttonProps:w,divProps:y};return N}function XIe(e){var t=j.useRef(null),n=KIe(e.date,e.displayMonth,t);return n.isHidden?r.jsx("div",{role:"gridcell"}):n.isButton?r.jsx(O0,Ye({name:"day",ref:t},n.buttonProps)):r.jsx("div",Ye({},n.divProps))}function QIe(e){var t=e.number,n=e.dates,i=qt(),s=i.onWeekNumberClick,a=i.styles,o=i.classNames,l=i.locale,c=i.labels.labelWeekNumber,d=i.formatters.formatWeekNumber,u=d(Number(t),{locale:l});if(!s)return r.jsx("span",{className:o.weeknumber,style:a.weeknumber,children:u});var h=c(Number(t),{locale:l}),m=function(f){s(t,n,f)};return r.jsx(O0,{name:"week-number","aria-label":h,className:o.weeknumber,style:a.weeknumber,onClick:m,children:u})}function JIe(e){var t,n,i=qt(),s=i.styles,a=i.classNames,o=i.showWeekNumber,l=i.components,c=(t=l==null?void 0:l.Day)!==null&&t!==void 0?t:XIe,d=(n=l==null?void 0:l.WeekNumber)!==null&&n!==void 0?n:QIe,u;return o&&(u=r.jsx("td",{className:a.cell,style:s.cell,children:r.jsx(d,{number:e.weekNumber,dates:e.dates})})),r.jsxs("tr",{className:a.row,style:s.row,children:[u,e.dates.map(function(h){return r.jsx("td",{className:a.cell,style:s.cell,role:"presentation",children:r.jsx(c,{displayMonth:e.displayMonth,date:h})},yce(h))})]})}function O6(e,t,n){for(var i=n!=null&&n.ISOWeek?pF(t):gp(t,n),s=n!=null&&n.ISOWeek?Yc(e):Zi(e,n),a=ca(i,s),o=[],l=0;l<=a;l++)o.push(Kn(s,l));var c=o.reduce(function(d,u){var h=n!=null&&n.ISOWeek?vF(u):yF(u,n),m=d.find(function(f){return f.weekNumber===h});return m?(m.dates.push(u),d):(d.push({weekNumber:h,dates:[u]}),d)},[]);return c}function ZIe(e,t){var n=O6(ii(e),l5(e),t);if(t!=null&&t.useFixedWeeks){var i=wce(e,t);if(i<6){var s=n[n.length-1],a=s.dates[s.dates.length-1],o=iS(a,6-i),l=O6(iS(a,1),o,t);n.push.apply(n,l)}}return n}function e6e(e){var t,n,i,s=qt(),a=s.locale,o=s.classNames,l=s.styles,c=s.hideHead,d=s.fixedWeeks,u=s.components,h=s.weekStartsOn,m=s.firstWeekContainsDate,f=s.ISOWeek,g=ZIe(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:f,locale:a,weekStartsOn:h,firstWeekContainsDate:m}),p=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:pIe,v=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:JIe,y=(i=u==null?void 0:u.Footer)!==null&&i!==void 0?i:hIe;return r.jsxs("table",{id:e.id,className:o.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&r.jsx(p,{}),r.jsx("tbody",{className:o.tbody,style:l.tbody,children:g.map(function(x){return r.jsx(v,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),r.jsx(y,{displayMonth:e.displayMonth})]})}function t6e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var n6e=t6e()?j.useLayoutEffect:j.useEffect,J1=!1,r6e=0;function I6(){return"react-day-picker-".concat(++r6e)}function i6e(e){var t,n=e??(J1?I6():null),i=j.useState(n),s=i[0],a=i[1];return n6e(function(){s===null&&a(I6())},[]),j.useEffect(function(){J1===!1&&(J1=!0)},[]),(t=e??s)!==null&&t!==void 0?t:void 0}function s6e(e){var t,n,i=qt(),s=i.dir,a=i.classNames,o=i.styles,l=i.components,c=Yg().displayMonths,d=i6e(i.id?"".concat(i.id,"-").concat(e.displayIndex):void 0),u=i.id?"".concat(i.id,"-grid-").concat(e.displayIndex):void 0,h=[a.month],m=o.month,f=e.displayIndex===0,g=e.displayIndex===c.length-1,p=!f&&!g;s==="rtl"&&(t=[f,g],g=t[0],f=t[1]),f&&(h.push(a.caption_start),m=Ye(Ye({},m),o.caption_start)),g&&(h.push(a.caption_end),m=Ye(Ye({},m),o.caption_end)),p&&(h.push(a.caption_between),m=Ye(Ye({},m),o.caption_between));var v=(n=l==null?void 0:l.Caption)!==null&&n!==void 0?n:uIe;return r.jsxs("div",{className:h.join(" "),style:m,children:[r.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.jsx(e6e,{id:u,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function a6e(e){var t=qt(),n=t.classNames,i=t.styles;return r.jsx("div",{className:n.months,style:i.months,children:e.children})}function o6e(e){var t,n,i=e.initialProps,s=qt(),a=k3(),o=Yg(),l=j.useState(!1),c=l[0],d=l[1];j.useEffect(function(){s.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),d(!0)))},[s.initialFocus,c,a.focus,a.focusTarget,a]);var u=[s.classNames.root,s.className];s.numberOfMonths>1&&u.push(s.classNames.multiple_months),s.showWeekNumber&&u.push(s.classNames.with_weeknumber);var h=Ye(Ye({},s.styles.root),s.style),m=Object.keys(i).filter(function(g){return g.startsWith("data-")}).reduce(function(g,p){var v;return Ye(Ye({},g),(v={},v[p]=i[p],v))},{}),f=(n=(t=i.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:a6e;return r.jsx("div",Ye({className:u.join(" "),style:h,dir:s.dir,id:s.id,nonce:i.nonce,title:i.title,lang:i.lang},m,{children:r.jsx(f,{children:o.displayMonths.map(function(g,p){return r.jsx(s6e,{displayIndex:p,displayMonth:g},p)})})}))}function l6e(e){var t=e.children,n=OOe(e,["children"]);return r.jsx(QOe,{initialProps:n,children:r.jsx(oIe,{children:r.jsx(WIe,{initialProps:n,children:r.jsx(vIe,{initialProps:n,children:r.jsx(bIe,{initialProps:n,children:r.jsx(TIe,{children:r.jsx(FIe,{children:t})})})})})})})}function c6e(e){return r.jsx(l6e,Ye({},e,{children:r.jsx(o6e,{initialProps:e})}))}function co({className:e,classNames:t,showOutsideDays:n=!0,...i}){return r.jsx(c6e,{showOutsideDays:n,className:je("p-3 pointer-events-auto",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:je(up({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:je(up({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...s})=>r.jsx(SK,{className:"h-4 w-4"}),IconRight:({...s})=>r.jsx(b_,{className:"h-4 w-4"})},...i})}co.displayName="Calendar";var _3="Popover",[$W,NUe]=Ca(_3,[Vh]),Kg=Vh(),[d6e,Ql]=$W(_3),LW=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:o=!1}=e,l=Kg(t),c=j.useRef(null),[d,u]=j.useState(!1),[h=!1,m]=Rs({prop:i,defaultProp:s,onChange:a});return r.jsx(G_,{...l,children:r.jsx(d6e,{scope:t,contentId:Is(),triggerRef:c,open:h,onOpenChange:m,onOpenToggle:j.useCallback(()=>m(f=>!f),[m]),hasCustomAnchor:d,onCustomAnchorAdd:j.useCallback(()=>u(!0),[]),onCustomAnchorRemove:j.useCallback(()=>u(!1),[]),modal:o,children:n})})};LW.displayName=_3;var UW="PopoverAnchor",u6e=j.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ql(UW,n),a=Kg(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return j.useEffect(()=>(o(),()=>l()),[o,l]),r.jsx(Vb,{...a,...i,ref:t})});u6e.displayName=UW;var FW="PopoverTrigger",BW=j.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ql(FW,n),a=Kg(n),o=ut(t,s.triggerRef),l=r.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":VW(s.open),...i,ref:o,onClick:Ee(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:r.jsx(Vb,{asChild:!0,...a,children:l})});BW.displayName=FW;var T3="PopoverPortal",[h6e,m6e]=$W(T3,{forceMount:void 0}),WW=e=>{const{__scopePopover:t,forceMount:n,children:i,container:s}=e,a=Ql(T3,t);return r.jsx(h6e,{scope:t,forceMount:n,children:r.jsx(zs,{present:n||a.open,children:r.jsx(Ng,{asChild:!0,container:s,children:i})})})};WW.displayName=T3;var kh="PopoverContent",zW=j.forwardRef((e,t)=>{const n=m6e(kh,e.__scopePopover),{forceMount:i=n.forceMount,...s}=e,a=Ql(kh,e.__scopePopover);return r.jsx(zs,{present:i||a.open,children:a.modal?r.jsx(f6e,{...s,ref:t}):r.jsx(p6e,{...s,ref:t})})});zW.displayName=kh;var f6e=j.forwardRef((e,t)=>{const n=Ql(kh,e.__scopePopover),i=j.useRef(null),s=ut(t,i),a=j.useRef(!1);return j.useEffect(()=>{const o=i.current;if(o)return e5(o)},[]),r.jsx(ew,{as:_l,allowPinchZoom:!0,children:r.jsx(qW,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),a.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),p6e=j.forwardRef((e,t)=>{const n=Ql(kh,e.__scopePopover),i=j.useRef(!1),s=j.useRef(!1);return r.jsx(qW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),qW=j.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,...h}=e,m=Ql(kh,n),f=Kg(n);return J_(),r.jsx(Jb,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:r.jsx(Mh,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:r.jsx(Y_,{"data-state":VW(m.open),role:"dialog",id:m.contentId,...f,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),HW="PopoverClose",g6e=j.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ql(HW,n);return r.jsx(ze.button,{type:"button",...i,ref:t,onClick:Ee(e.onClick,()=>s.onOpenChange(!1))})});g6e.displayName=HW;var v6e="PopoverArrow",x6e=j.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Kg(n);return r.jsx(K_,{...s,...i,ref:t})});x6e.displayName=v6e;function VW(e){return e?"open":"closed"}var y6e=LW,b6e=BW,w6e=WW,GW=zW;const ed=y6e,td=b6e,Rl=j.forwardRef(({className:e,align:t="center",sideOffset:n=4,...i},s)=>r.jsx(w6e,{children:r.jsx(GW,{ref:s,align:t,sideOffset:n,className:je("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=closed]:hidden data-[state=closed]:pointer-events-none data-[state=closed]:opacity-0 data-[state=open]:block data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i})}));Rl.displayName=GW.displayName;const D6=({dateRange:e,onDateRangeChange:t})=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(ed,{children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",className:je("justify-start text-left font-normal",!e&&"text-muted-foreground"),children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),e!=null&&e.from?e.to?r.jsxs(r.Fragment,{children:[He(e.from,"LLL dd, y")," -"," ",He(e.to,"LLL dd, y")]}):He(e.from,"LLL dd, y"):r.jsx("span",{children:"Pick a date range"})]})}),r.jsx(Rl,{className:"w-auto p-0",align:"start",children:r.jsx(co,{initialFocus:!0,mode:"range",defaultMonth:e==null?void 0:e.from,selected:e,onSelect:t,numberOfMonths:2})})]}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>{const n=new Date,i=new Date;i.setDate(n.getDate()-30),t({from:i,to:n})},children:"Last 30 Days"}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>{const n=new Date,i=new Date;i.setDate(n.getDate()-90),t({from:i,to:n})},children:"Last 90 Days"})]}),M6=["#ef4444","#f97316","#f59e0b","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6"],j6e=({dateRange:e})=>{var c,d;const{data:t,isLoading:n}=ba({queryKey:["geo-blocked-attempts",e],queryFn:async()=>{const{data:u,error:h}=await Q.from("geo_blocked_attempts").select("*").gte("created_at",e.from.toISOString()).lte("created_at",e.to.toISOString()).order("created_at",{ascending:!1});if(h)throw h;return u||[]}}),i=(t==null?void 0:t.length)||0,s=L.useMemo(()=>{if(!t)return[];const u=new Map;return t.forEach(h=>{const m=u.get(h.country_code)||0;u.set(h.country_code,m+1)}),Array.from(u.entries()).map(([h,m])=>({country:h,count:m})).sort((h,m)=>m.count-h.count).slice(0,8)},[t]),a=L.useMemo(()=>{if(!t)return[];const u=new Map;return t.forEach(h=>{const m=u.get(h.blocked_path)||0;u.set(h.blocked_path,m+1)}),Array.from(u.entries()).map(([h,m])=>({path:h,count:m})).sort((h,m)=>m.count-h.count).slice(0,5)},[t]),o=L.useMemo(()=>{if(!t)return[];const u=Math.ceil((e.to.getTime()-e.from.getTime())/(1e3*60*60*24)),h=new Map;for(let m=0;m<=u;m++){const f=He(js(e.to,u-m),"MMM dd");h.set(f,0)}return t.forEach(m=>{const f=He(new Date(m.created_at),"MMM dd"),g=h.get(f)||0;h.set(f,g+1)}),Array.from(h.entries()).map(([m,f])=>({date:m,count:f}))},[t,e]),l=L.useMemo(()=>t?t.filter(u=>{var h;return((h=u.user_agent)==null?void 0:h.toLowerCase().includes("bot"))&&u.country_code!=="US"&&u.country_code!=="CA"}).length:0,[t]);return n?r.jsx("div",{className:"space-y-6",children:r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[...Array(4)].map((u,h)=>r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsx("div",{className:"h-4 bg-muted rounded animate-pulse w-24"})}),r.jsx(H,{children:r.jsx("div",{className:"h-8 bg-muted rounded animate-pulse w-16"})})]},h))})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:[r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsxs(re,{className:"text-sm font-medium flex items-center gap-2",children:[r.jsx(Be,{className:"w-4 h-4 text-primary"}),"Total Blocked"]})}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:i.toLocaleString()}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Requests blocked"})]})]}),r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsxs(re,{className:"text-sm font-medium flex items-center gap-2",children:[r.jsx(Pl,{className:"w-4 h-4 text-orange-500"}),"Countries"]})}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:s.length}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Unique countries"})]})]}),r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsxs(re,{className:"text-sm font-medium flex items-center gap-2",children:[r.jsx(ri,{className:"w-4 h-4 text-red-500"}),"Top Offender"]})}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:((c=s[0])==null?void 0:c.country)||"N/A"}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[((d=s[0])==null?void 0:d.count)||0," attempts"]})]})]}),r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsxs(re,{className:"text-sm font-medium flex items-center gap-2",children:[r.jsx(t$,{className:"w-4 h-4 text-green-500"}),"Avg per Day"]})}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:o.length>0?Math.round(i/o.length):0}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Blocked requests"})]})]}),r.jsxs(W,{children:[r.jsx(Z,{className:"pb-2",children:r.jsxs(re,{className:"text-sm font-medium flex items-center gap-2",children:[r.jsx(ri,{className:"w-4 h-4 text-orange-500"}),"Suspicious Bot Traffic"]})}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:l}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Possible user-agent spoofing"})]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Blocked by Country"}),r.jsx(wt,{children:"Top countries attempting access"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(eg,{data:s,children:[r.jsx(jo,{strokeDasharray:"3 3",className:"stroke-muted"}),r.jsx(ts,{dataKey:"country",className:"text-xs"}),r.jsx(ns,{className:"text-xs"}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(Bs,{dataKey:"count",fill:"hsl(var(--primary))",radius:[4,4,0,0]})]})})})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Blocked Paths"}),r.jsx(wt,{children:"Most targeted endpoints"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(Jw,{children:[r.jsx(ss,{data:a,dataKey:"count",nameKey:"path",cx:"50%",cy:"50%",outerRadius:100,label:u=>`${u.path}: ${u.count}`,labelLine:{stroke:"hsl(var(--border))"},children:a.map((u,h)=>r.jsx(xd,{fill:M6[h%M6.length]},`cell-${h}`))}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}})]})})})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Blocked Requests Over Time"}),r.jsx(wt,{children:"Daily blocked request trend"})]}),r.jsx(H,{children:r.jsx(Yi,{width:"100%",height:300,children:r.jsxs(y3,{data:o,children:[r.jsx(jo,{strokeDasharray:"3 3",className:"stroke-muted"}),r.jsx(ts,{dataKey:"date",className:"text-xs"}),r.jsx(ns,{className:"text-xs"}),r.jsx(jn,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),r.jsx(wd,{type:"monotone",dataKey:"count",stroke:"hsl(var(--primary))",strokeWidth:2,dot:{fill:"hsl(var(--primary))"}})]})})})]})]})};class yr{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let i=0;for(let s=0;s<this._n&&s<32;s++){const a=n[s],o=t+a,l=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);l&&(n[i++]=l),t=o}return n[i]=t,this._n=i+1,this}valueOf(){const t=this._partials;let n=this._n,i,s,a,o=0;if(n>0){for(o=t[--n];n>0&&(i=o,s=t[--n],o=i+s,a=s-(o-i),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(s=a*2,i=o+s,s==i-o&&(o=i))}return o}}function*N6e(e){for(const t of e)yield*t}function YW(e){return Array.from(N6e(e))}function su(e,t,n){e=+e,t=+t,n=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+n;for(var i=-1,s=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(s);++i<s;)a[i]=e+i*n;return a}var $e=1e-6,tg=1e-12,ot=Math.PI,bn=ot/2,I0=ot/4,Lr=ot*2,Rt=180/ot,Fe=ot/180,xt=Math.abs,cm=Math.atan,Ur=Math.atan2,Ie=Math.cos,sx=Math.ceil,KW=Math.exp,Mk=Math.hypot,D0=Math.log,Z1=Math.pow,Ce=Math.sin,Hi=Math.sign||function(e){return e>0?1:e<0?-1:0},er=Math.sqrt,P3=Math.tan;function XW(e){return e>1?0:e<-1?ot:Math.acos(e)}function Fr(e){return e>1?bn:e<-1?-bn:Math.asin(e)}function R6(e){return(e=Ce(e/2))*e}function cn(){}function M0(e,t){e&&L6.hasOwnProperty(e.type)&&L6[e.type](e,t)}var $6={Feature:function(e,t){M0(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,s=n.length;++i<s;)M0(n[i].geometry,t)}},L6={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)e=n[i],t.point(e[0],e[1],e[2])},LineString:function(e,t){Rk(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)Rk(n[i],t,0)},Polygon:function(e,t){U6(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)U6(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,s=n.length;++i<s;)M0(n[i],t)}};function Rk(e,t,n){var i=-1,s=e.length-n,a;for(t.lineStart();++i<s;)a=e[i],t.point(a[0],a[1],a[2]);t.lineEnd()}function U6(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)Rk(e[n],t,1);t.polygonEnd()}function _s(e,t){e&&$6.hasOwnProperty(e.type)?$6[e.type](e,t):M0(e,t)}var R0=new yr,$0=new yr,QW,JW,$k,Lk,Uk,ka={point:cn,lineStart:cn,lineEnd:cn,polygonStart:function(){R0=new yr,ka.lineStart=S6e,ka.lineEnd=k6e},polygonEnd:function(){var e=+R0;$0.add(e<0?Lr+e:e),this.lineStart=this.lineEnd=this.point=cn},sphere:function(){$0.add(Lr)}};function S6e(){ka.point=C6e}function k6e(){ZW(QW,JW)}function C6e(e,t){ka.point=ZW,QW=e,JW=t,e*=Fe,t*=Fe,$k=e,Lk=Ie(t=t/2+I0),Uk=Ce(t)}function ZW(e,t){e*=Fe,t*=Fe,t=t/2+I0;var n=e-$k,i=n>=0?1:-1,s=i*n,a=Ie(t),o=Ce(t),l=Uk*o,c=Lk*a+l*Ie(s),d=l*i*Ce(s);R0.add(Ur(d,c)),$k=e,Lk=a,Uk=o}function _6e(e){return $0=new yr,_s(e,ka),$0*2}function L0(e){return[Ur(e[1],e[0]),Fr(e[2])]}function nd(e){var t=e[0],n=e[1],i=Ie(n);return[i*Ie(t),i*Ce(t),Ce(n)]}function ax(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ch(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function eN(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ox(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function U0(e){var t=er(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var on,Xr,vn,yi,uc,ez,tz,Su,Rf,zo,No,Va={point:Fk,lineStart:F6,lineEnd:B6,polygonStart:function(){Va.point=rz,Va.lineStart=T6e,Va.lineEnd=P6e,Rf=new yr,ka.polygonStart()},polygonEnd:function(){ka.polygonEnd(),Va.point=Fk,Va.lineStart=F6,Va.lineEnd=B6,R0<0?(on=-(vn=180),Xr=-(yi=90)):Rf>$e?yi=90:Rf<-$e&&(Xr=-90),No[0]=on,No[1]=vn},sphere:function(){on=-(vn=180),Xr=-(yi=90)}};function Fk(e,t){zo.push(No=[on=e,vn=e]),t<Xr&&(Xr=t),t>yi&&(yi=t)}function nz(e,t){var n=nd([e*Fe,t*Fe]);if(Su){var i=Ch(Su,n),s=[i[1],-i[0],0],a=Ch(s,i);U0(a),a=L0(a);var o=e-uc,l=o>0?1:-1,c=a[0]*Rt*l,d,u=xt(o)>180;u^(l*uc<c&&c<l*e)?(d=a[1]*Rt,d>yi&&(yi=d)):(c=(c+360)%360-180,u^(l*uc<c&&c<l*e)?(d=-a[1]*Rt,d<Xr&&(Xr=d)):(t<Xr&&(Xr=t),t>yi&&(yi=t))),u?e<uc?gi(on,e)>gi(on,vn)&&(vn=e):gi(e,vn)>gi(on,vn)&&(on=e):vn>=on?(e<on&&(on=e),e>vn&&(vn=e)):e>uc?gi(on,e)>gi(on,vn)&&(vn=e):gi(e,vn)>gi(on,vn)&&(on=e)}else zo.push(No=[on=e,vn=e]);t<Xr&&(Xr=t),t>yi&&(yi=t),Su=n,uc=e}function F6(){Va.point=nz}function B6(){No[0]=on,No[1]=vn,Va.point=Fk,Su=null}function rz(e,t){if(Su){var n=e-uc;Rf.add(xt(n)>180?n+(n>0?360:-360):n)}else ez=e,tz=t;ka.point(e,t),nz(e,t)}function T6e(){ka.lineStart()}function P6e(){rz(ez,tz),ka.lineEnd(),xt(Rf)>$e&&(on=-(vn=180)),No[0]=on,No[1]=vn,Su=null}function gi(e,t){return(t-=e)<0?t+360:t}function E6e(e,t){return e[0]-t[0]}function W6(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function A6e(e){var t,n,i,s,a,o,l;if(yi=vn=-(on=Xr=1/0),zo=[],_s(e,Va),n=zo.length){for(zo.sort(E6e),t=1,i=zo[0],a=[i];t<n;++t)s=zo[t],W6(i,s[0])||W6(i,s[1])?(gi(i[0],s[1])>gi(i[0],i[1])&&(i[1]=s[1]),gi(s[0],i[1])>gi(i[0],i[1])&&(i[0]=s[0])):a.push(i=s);for(o=-1/0,n=a.length-1,t=0,i=a[n];t<=n;i=s,++t)s=a[t],(l=gi(i[1],s[0]))>o&&(o=l,on=s[0],vn=i[1])}return zo=No=null,on===1/0||Xr===1/0?[[NaN,NaN],[NaN,NaN]]:[[on,Xr],[vn,yi]]}var sf,F0,B0,W0,z0,q0,H0,V0,Bk,Wk,zk,iz,sz,Tr,Pr,Er,Ps={sphere:cn,point:E3,lineStart:z6,lineEnd:q6,polygonStart:function(){Ps.lineStart=D6e,Ps.lineEnd=M6e},polygonEnd:function(){Ps.lineStart=z6,Ps.lineEnd=q6}};function E3(e,t){e*=Fe,t*=Fe;var n=Ie(t);Xg(n*Ie(e),n*Ce(e),Ce(t))}function Xg(e,t,n){++sf,B0+=(e-B0)/sf,W0+=(t-W0)/sf,z0+=(n-z0)/sf}function z6(){Ps.point=O6e}function O6e(e,t){e*=Fe,t*=Fe;var n=Ie(t);Tr=n*Ie(e),Pr=n*Ce(e),Er=Ce(t),Ps.point=I6e,Xg(Tr,Pr,Er)}function I6e(e,t){e*=Fe,t*=Fe;var n=Ie(t),i=n*Ie(e),s=n*Ce(e),a=Ce(t),o=Ur(er((o=Pr*a-Er*s)*o+(o=Er*i-Tr*a)*o+(o=Tr*s-Pr*i)*o),Tr*i+Pr*s+Er*a);F0+=o,q0+=o*(Tr+(Tr=i)),H0+=o*(Pr+(Pr=s)),V0+=o*(Er+(Er=a)),Xg(Tr,Pr,Er)}function q6(){Ps.point=E3}function D6e(){Ps.point=R6e}function M6e(){az(iz,sz),Ps.point=E3}function R6e(e,t){iz=e,sz=t,e*=Fe,t*=Fe,Ps.point=az;var n=Ie(t);Tr=n*Ie(e),Pr=n*Ce(e),Er=Ce(t),Xg(Tr,Pr,Er)}function az(e,t){e*=Fe,t*=Fe;var n=Ie(t),i=n*Ie(e),s=n*Ce(e),a=Ce(t),o=Pr*a-Er*s,l=Er*i-Tr*a,c=Tr*s-Pr*i,d=Mk(o,l,c),u=Fr(d),h=d&&-u/d;Bk.add(h*o),Wk.add(h*l),zk.add(h*c),F0+=u,q0+=u*(Tr+(Tr=i)),H0+=u*(Pr+(Pr=s)),V0+=u*(Er+(Er=a)),Xg(Tr,Pr,Er)}function $6e(e){sf=F0=B0=W0=z0=q0=H0=V0=0,Bk=new yr,Wk=new yr,zk=new yr,_s(e,Ps);var t=+Bk,n=+Wk,i=+zk,s=Mk(t,n,i);return s<tg&&(t=q0,n=H0,i=V0,F0<$e&&(t=B0,n=W0,i=z0),s=Mk(t,n,i),s<tg)?[NaN,NaN]:[Ur(n,t)*Rt,Fr(i/s)*Rt]}function Fd(e){return function(){return e}}function qk(e,t){function n(i,s){return i=e(i,s),t(i[0],i[1])}return e.invert&&t.invert&&(n.invert=function(i,s){return i=t.invert(i,s),i&&e.invert(i[0],i[1])}),n}function Hk(e,t){return[xt(e)>ot?e+Math.round(-e/Lr)*Lr:e,t]}Hk.invert=Hk;function A3(e,t,n){return(e%=Lr)?t||n?qk(V6(e),G6(t,n)):V6(e):t||n?G6(t,n):Hk}function H6(e){return function(t,n){return t+=e,[t>ot?t-Lr:t<-ot?t+Lr:t,n]}}function V6(e){var t=H6(e);return t.invert=H6(-e),t}function G6(e,t){var n=Ie(e),i=Ce(e),s=Ie(t),a=Ce(t);function o(l,c){var d=Ie(c),u=Ie(l)*d,h=Ce(l)*d,m=Ce(c),f=m*n+u*i;return[Ur(h*s-f*a,u*n-m*i),Fr(f*s+h*a)]}return o.invert=function(l,c){var d=Ie(c),u=Ie(l)*d,h=Ce(l)*d,m=Ce(c),f=m*s-h*a;return[Ur(h*s+m*a,u*n+f*i),Fr(f*n-u*i)]},o}function oz(e){e=A3(e[0]*Fe,e[1]*Fe,e.length>2?e[2]*Fe:0);function t(n){return n=e(n[0]*Fe,n[1]*Fe),n[0]*=Rt,n[1]*=Rt,n}return t.invert=function(n){return n=e.invert(n[0]*Fe,n[1]*Fe),n[0]*=Rt,n[1]*=Rt,n},t}function lz(e,t,n,i,s,a){if(n){var o=Ie(t),l=Ce(t),c=i*n;s==null?(s=t+i*Lr,a=t-c/2):(s=Y6(o,s),a=Y6(o,a),(i>0?s<a:s>a)&&(s+=i*Lr));for(var d,u=s;i>0?u>a:u<a;u-=c)d=L0([o,-l*Ie(u),-l*Ce(u)]),e.point(d[0],d[1])}}function Y6(e,t){t=nd(t),t[0]-=e,U0(t);var n=XW(-t[1]);return((-t[2]<0?-n:n)+Lr-$e)%Lr}function L6e(){var e=Fd([0,0]),t=Fd(90),n=Fd(6),i,s,a={point:o};function o(c,d){i.push(c=s(c,d)),c[0]*=Rt,c[1]*=Rt}function l(){var c=e.apply(this,arguments),d=t.apply(this,arguments)*Fe,u=n.apply(this,arguments)*Fe;return i=[],s=A3(-c[0]*Fe,-c[1]*Fe,0).invert,lz(a,d,u,1),c={type:"Polygon",coordinates:[i]},i=s=null,c}return l.center=function(c){return arguments.length?(e=typeof c=="function"?c:Fd([+c[0],+c[1]]),l):e},l.radius=function(c){return arguments.length?(t=typeof c=="function"?c:Fd(+c),l):t},l.precision=function(c){return arguments.length?(n=typeof c=="function"?c:Fd(+c),l):n},l}function cz(){var e=[],t;return{point:function(n,i,s){t.push([n,i,s])},lineStart:function(){e.push(t=[])},lineEnd:cn,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Lx(e,t){return xt(e[0]-t[0])<$e&&xt(e[1]-t[1])<$e}function lx(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function dz(e,t,n,i,s){var a=[],o=[],l,c;if(e.forEach(function(g){if(!((p=g.length-1)<=0)){var p,v=g[0],y=g[p],x;if(Lx(v,y)){if(!v[2]&&!y[2]){for(s.lineStart(),l=0;l<p;++l)s.point((v=g[l])[0],v[1]);s.lineEnd();return}y[0]+=2*$e}a.push(x=new lx(v,g,null,!0)),o.push(x.o=new lx(v,null,x,!1)),a.push(x=new lx(y,g,null,!1)),o.push(x.o=new lx(y,null,x,!0))}}),!!a.length){for(o.sort(t),K6(a),K6(o),l=0,c=o.length;l<c;++l)o[l].e=n=!n;for(var d=a[0],u,h;;){for(var m=d,f=!0;m.v;)if((m=m.n)===d)return;u=m.z,s.lineStart();do{if(m.v=m.o.v=!0,m.e){if(f)for(l=0,c=u.length;l<c;++l)s.point((h=u[l])[0],h[1]);else i(m.x,m.n.x,1,s);m=m.n}else{if(f)for(u=m.p.z,l=u.length-1;l>=0;--l)s.point((h=u[l])[0],h[1]);else i(m.x,m.p.x,-1,s);m=m.p}m=m.o,u=m.z,f=!f}while(!m.v);s.lineEnd()}}}function K6(e){if(t=e.length){for(var t,n=0,i=e[0],s;++n<t;)i.n=s=e[n],s.p=i,i=s;i.n=s=e[0],s.p=i}}function tN(e){return xt(e[0])<=ot?e[0]:Hi(e[0])*((xt(e[0])+ot)%Lr-ot)}function uz(e,t){var n=tN(t),i=t[1],s=Ce(i),a=[Ce(n),-Ie(n),0],o=0,l=0,c=new yr;s===1?i=bn+$e:s===-1&&(i=-bn-$e);for(var d=0,u=e.length;d<u;++d)if(m=(h=e[d]).length)for(var h,m,f=h[m-1],g=tN(f),p=f[1]/2+I0,v=Ce(p),y=Ie(p),x=0;x<m;++x,g=w,v=S,y=k,f=b){var b=h[x],w=tN(b),N=b[1]/2+I0,S=Ce(N),k=Ie(N),_=w-g,D=_>=0?1:-1,A=D*_,E=A>ot,T=v*S;if(c.add(Ur(T*D*Ce(A),y*k+T*Ie(A))),o+=E?_+D*Lr:_,E^g>=n^w>=n){var M=Ch(nd(f),nd(b));U0(M);var C=Ch(a,M);U0(C);var P=(E^_>=0?-1:1)*Fr(C[2]);(i>P||i===P&&(M[0]||M[1]))&&(l+=E^_>=0?1:-1)}}return(o<-$e||o<$e&&c<-tg)^l&1}function hz(e,t,n,i){return function(s){var a=t(s),o=cz(),l=t(o),c=!1,d,u,h,m={point:f,lineStart:p,lineEnd:v,polygonStart:function(){m.point=y,m.lineStart=x,m.lineEnd=b,u=[],d=[]},polygonEnd:function(){m.point=f,m.lineStart=p,m.lineEnd=v,u=YW(u);var w=uz(d,i);u.length?(c||(s.polygonStart(),c=!0),dz(u,F6e,w,n,s)):w&&(c||(s.polygonStart(),c=!0),s.lineStart(),n(null,null,1,s),s.lineEnd()),c&&(s.polygonEnd(),c=!1),u=d=null},sphere:function(){s.polygonStart(),s.lineStart(),n(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function f(w,N){e(w,N)&&s.point(w,N)}function g(w,N){a.point(w,N)}function p(){m.point=g,a.lineStart()}function v(){m.point=f,a.lineEnd()}function y(w,N){h.push([w,N]),l.point(w,N)}function x(){l.lineStart(),h=[]}function b(){y(h[0][0],h[0][1]),l.lineEnd();var w=l.clean(),N=o.result(),S,k=N.length,_,D,A;if(h.pop(),d.push(h),h=null,!!k){if(w&1){if(D=N[0],(_=D.length-1)>0){for(c||(s.polygonStart(),c=!0),s.lineStart(),S=0;S<_;++S)s.point((A=D[S])[0],A[1]);s.lineEnd()}return}k>1&&w&2&&N.push(N.pop().concat(N.shift())),u.push(N.filter(U6e))}}return m}}function U6e(e){return e.length>1}function F6e(e,t){return((e=e.x)[0]<0?e[1]-bn-$e:bn-e[1])-((t=t.x)[0]<0?t[1]-bn-$e:bn-t[1])}const Vk=hz(function(){return!0},B6e,z6e,[-ot,-bn]);function B6e(e){var t=NaN,n=NaN,i=NaN,s;return{lineStart:function(){e.lineStart(),s=1},point:function(a,o){var l=a>0?ot:-ot,c=xt(a-t);xt(c-ot)<$e?(e.point(t,n=(n+o)/2>0?bn:-bn),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(a,n),s=0):i!==l&&c>=ot&&(xt(t-i)<$e&&(t-=i*$e),xt(a-l)<$e&&(a-=l*$e),n=W6e(t,n,a,o),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(l,n),s=0),e.point(t=a,n=o),i=l},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-s}}}function W6e(e,t,n,i){var s,a,o=Ce(e-n);return xt(o)>$e?cm((Ce(t)*(a=Ie(i))*Ce(n)-Ce(i)*(s=Ie(t))*Ce(e))/(s*a*o)):(t+i)/2}function z6e(e,t,n,i){var s;if(e==null)s=n*bn,i.point(-ot,s),i.point(0,s),i.point(ot,s),i.point(ot,0),i.point(ot,-s),i.point(0,-s),i.point(-ot,-s),i.point(-ot,0),i.point(-ot,s);else if(xt(e[0]-t[0])>$e){var a=e[0]<t[0]?ot:-ot;s=n*a/2,i.point(-a,s),i.point(0,s),i.point(a,s)}else i.point(t[0],t[1])}function mz(e){var t=Ie(e),n=6*Fe,i=t>0,s=xt(t)>$e;function a(u,h,m,f){lz(f,e,n,m,u,h)}function o(u,h){return Ie(u)*Ie(h)>t}function l(u){var h,m,f,g,p;return{lineStart:function(){g=f=!1,p=1},point:function(v,y){var x=[v,y],b,w=o(v,y),N=i?w?0:d(v,y):w?d(v+(v<0?ot:-ot),y):0;if(!h&&(g=f=w)&&u.lineStart(),w!==f&&(b=c(h,x),(!b||Lx(h,b)||Lx(x,b))&&(x[2]=1)),w!==f)p=0,w?(u.lineStart(),b=c(x,h),u.point(b[0],b[1])):(b=c(h,x),u.point(b[0],b[1],2),u.lineEnd()),h=b;else if(s&&h&&i^w){var S;!(N&m)&&(S=c(x,h,!0))&&(p=0,i?(u.lineStart(),u.point(S[0][0],S[0][1]),u.point(S[1][0],S[1][1]),u.lineEnd()):(u.point(S[1][0],S[1][1]),u.lineEnd(),u.lineStart(),u.point(S[0][0],S[0][1],3)))}w&&(!h||!Lx(h,x))&&u.point(x[0],x[1]),h=x,f=w,m=N},lineEnd:function(){f&&u.lineEnd(),h=null},clean:function(){return p|(g&&f)<<1}}}function c(u,h,m){var f=nd(u),g=nd(h),p=[1,0,0],v=Ch(f,g),y=ax(v,v),x=v[0],b=y-x*x;if(!b)return!m&&u;var w=t*y/b,N=-t*x/b,S=Ch(p,v),k=ox(p,w),_=ox(v,N);eN(k,_);var D=S,A=ax(k,D),E=ax(D,D),T=A*A-E*(ax(k,k)-1);if(!(T<0)){var M=er(T),C=ox(D,(-A-M)/E);if(eN(C,k),C=L0(C),!m)return C;var P=u[0],I=h[0],R=u[1],O=h[1],$;I<P&&($=P,P=I,I=$);var q=I-P,z=xt(q-ot)<$e,J=z||q<$e;if(!z&&O<R&&($=R,R=O,O=$),J?z?R+O>0^C[1]<(xt(C[0]-P)<$e?R:O):R<=C[1]&&C[1]<=O:q>ot^(P<=C[0]&&C[0]<=I)){var ne=ox(D,(-A+M)/E);return eN(ne,k),[C,L0(ne)]}}}function d(u,h){var m=i?e:ot-e,f=0;return u<-m?f|=1:u>m&&(f|=2),h<-m?f|=4:h>m&&(f|=8),f}return hz(o,l,a,i?[0,-e]:[-ot,e-ot])}function q6e(e,t,n,i,s,a){var o=e[0],l=e[1],c=t[0],d=t[1],u=0,h=1,m=c-o,f=d-l,g;if(g=n-o,!(!m&&g>0)){if(g/=m,m<0){if(g<u)return;g<h&&(h=g)}else if(m>0){if(g>h)return;g>u&&(u=g)}if(g=s-o,!(!m&&g<0)){if(g/=m,m<0){if(g>h)return;g>u&&(u=g)}else if(m>0){if(g<u)return;g<h&&(h=g)}if(g=i-l,!(!f&&g>0)){if(g/=f,f<0){if(g<u)return;g<h&&(h=g)}else if(f>0){if(g>h)return;g>u&&(u=g)}if(g=a-l,!(!f&&g<0)){if(g/=f,f<0){if(g>h)return;g>u&&(u=g)}else if(f>0){if(g<u)return;g<h&&(h=g)}return u>0&&(e[0]=o+u*m,e[1]=l+u*f),h<1&&(t[0]=o+h*m,t[1]=l+h*f),!0}}}}}var af=1e9,cx=-af;function ej(e,t,n,i){function s(d,u){return e<=d&&d<=n&&t<=u&&u<=i}function a(d,u,h,m){var f=0,g=0;if(d==null||(f=o(d,h))!==(g=o(u,h))||c(d,u)<0^h>0)do m.point(f===0||f===3?e:n,f>1?i:t);while((f=(f+h+4)%4)!==g);else m.point(u[0],u[1])}function o(d,u){return xt(d[0]-e)<$e?u>0?0:3:xt(d[0]-n)<$e?u>0?2:1:xt(d[1]-t)<$e?u>0?1:0:u>0?3:2}function l(d,u){return c(d.x,u.x)}function c(d,u){var h=o(d,1),m=o(u,1);return h!==m?h-m:h===0?u[1]-d[1]:h===1?d[0]-u[0]:h===2?d[1]-u[1]:u[0]-d[0]}return function(d){var u=d,h=cz(),m,f,g,p,v,y,x,b,w,N,S,k={point:_,lineStart:T,lineEnd:M,polygonStart:A,polygonEnd:E};function _(P,I){s(P,I)&&u.point(P,I)}function D(){for(var P=0,I=0,R=f.length;I<R;++I)for(var O=f[I],$=1,q=O.length,z=O[0],J,ne,pe=z[0],xe=z[1];$<q;++$)J=pe,ne=xe,z=O[$],pe=z[0],xe=z[1],ne<=i?xe>i&&(pe-J)*(i-ne)>(xe-ne)*(e-J)&&++P:xe<=i&&(pe-J)*(i-ne)<(xe-ne)*(e-J)&&--P;return P}function A(){u=h,m=[],f=[],S=!0}function E(){var P=D(),I=S&&P,R=(m=YW(m)).length;(I||R)&&(d.polygonStart(),I&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),R&&dz(m,l,P,a,d),d.polygonEnd()),u=d,m=f=g=null}function T(){k.point=C,f&&f.push(g=[]),N=!0,w=!1,x=b=NaN}function M(){m&&(C(p,v),y&&w&&h.rejoin(),m.push(h.result())),k.point=_,w&&u.lineEnd()}function C(P,I){var R=s(P,I);if(f&&g.push([P,I]),N)p=P,v=I,y=R,N=!1,R&&(u.lineStart(),u.point(P,I));else if(R&&w)u.point(P,I);else{var O=[x=Math.max(cx,Math.min(af,x)),b=Math.max(cx,Math.min(af,b))],$=[P=Math.max(cx,Math.min(af,P)),I=Math.max(cx,Math.min(af,I))];q6e(O,$,e,t,n,i)?(w||(u.lineStart(),u.point(O[0],O[1])),u.point($[0],$[1]),R||u.lineEnd(),S=!1):R&&(u.lineStart(),u.point(P,I),S=!1)}x=P,b=I,w=R}return k}}function H6e(){var e=0,t=0,n=960,i=500,s,a,o;return o={stream:function(l){return s&&a===l?s:s=ej(e,t,n,i)(a=l)},extent:function(l){return arguments.length?(e=+l[0][0],t=+l[0][1],n=+l[1][0],i=+l[1][1],s=a=null,o):[[e,t],[n,i]]}}}var Gk,Yk,Ux,Fx,_h={sphere:cn,point:cn,lineStart:V6e,lineEnd:cn,polygonStart:cn,polygonEnd:cn};function V6e(){_h.point=Y6e,_h.lineEnd=G6e}function G6e(){_h.point=_h.lineEnd=cn}function Y6e(e,t){e*=Fe,t*=Fe,Yk=e,Ux=Ce(t),Fx=Ie(t),_h.point=K6e}function K6e(e,t){e*=Fe,t*=Fe;var n=Ce(t),i=Ie(t),s=xt(e-Yk),a=Ie(s),o=Ce(s),l=i*o,c=Fx*n-Ux*i*a,d=Ux*n+Fx*i*a;Gk.add(Ur(er(l*l+c*c),d)),Yk=e,Ux=n,Fx=i}function fz(e){return Gk=new yr,_s(e,_h),+Gk}var Kk=[null,null],X6e={type:"LineString",coordinates:Kk};function G0(e,t){return Kk[0]=e,Kk[1]=t,fz(X6e)}var X6={Feature:function(e,t){return Y0(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,s=n.length;++i<s;)if(Y0(n[i].geometry,t))return!0;return!1}},Q6={Sphere:function(){return!0},Point:function(e,t){return J6(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)if(J6(n[i],t))return!0;return!1},LineString:function(e,t){return Z6(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)if(Z6(n[i],t))return!0;return!1},Polygon:function(e,t){return eD(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,s=n.length;++i<s;)if(eD(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,s=n.length;++i<s;)if(Y0(n[i],t))return!0;return!1}};function Y0(e,t){return e&&Q6.hasOwnProperty(e.type)?Q6[e.type](e,t):!1}function J6(e,t){return G0(e,t)===0}function Z6(e,t){for(var n,i,s,a=0,o=e.length;a<o;a++){if(i=G0(e[a],t),i===0||a>0&&(s=G0(e[a],e[a-1]),s>0&&n<=s&&i<=s&&(n+i-s)*(1-Math.pow((n-i)/s,2))<tg*s))return!0;n=i}return!1}function eD(e,t){return!!uz(e.map(Q6e),pz(t))}function Q6e(e){return e=e.map(pz),e.pop(),e}function pz(e){return[e[0]*Fe,e[1]*Fe]}function J6e(e,t){return(e&&X6.hasOwnProperty(e.type)?X6[e.type]:Y0)(e,t)}function tD(e,t,n){var i=su(e,t-$e,n).concat(t);return function(s){return i.map(function(a){return[s,a]})}}function nD(e,t,n){var i=su(e,t-$e,n).concat(t);return function(s){return i.map(function(a){return[a,s]})}}function O3(){var e,t,n,i,s,a,o,l,c=10,d=c,u=90,h=360,m,f,g,p,v=2.5;function y(){return{type:"MultiLineString",coordinates:x()}}function x(){return su(sx(i/u)*u,n,u).map(g).concat(su(sx(l/h)*h,o,h).map(p)).concat(su(sx(t/c)*c,e,c).filter(function(b){return xt(b%u)>$e}).map(m)).concat(su(sx(a/d)*d,s,d).filter(function(b){return xt(b%h)>$e}).map(f))}return y.lines=function(){return x().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[g(i).concat(p(o).slice(1),g(n).reverse().slice(1),p(l).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(i=+b[0][0],n=+b[1][0],l=+b[0][1],o=+b[1][1],i>n&&(b=i,i=n,n=b),l>o&&(b=l,l=o,o=b),y.precision(v)):[[i,l],[n,o]]},y.extentMinor=function(b){return arguments.length?(t=+b[0][0],e=+b[1][0],a=+b[0][1],s=+b[1][1],t>e&&(b=t,t=e,e=b),a>s&&(b=a,a=s,s=b),y.precision(v)):[[t,a],[e,s]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(u=+b[0],h=+b[1],y):[u,h]},y.stepMinor=function(b){return arguments.length?(c=+b[0],d=+b[1],y):[c,d]},y.precision=function(b){return arguments.length?(v=+b,m=tD(a,s,90),f=nD(t,e,v),g=tD(l,o,90),p=nD(i,n,v),y):v},y.extentMajor([[-180,-90+$e],[180,90-$e]]).extentMinor([[-180,-80-$e],[180,80+$e]])}function Z6e(){return O3()()}function eDe(e,t){var n=e[0]*Fe,i=e[1]*Fe,s=t[0]*Fe,a=t[1]*Fe,o=Ie(i),l=Ce(i),c=Ie(a),d=Ce(a),u=o*Ie(n),h=o*Ce(n),m=c*Ie(s),f=c*Ce(s),g=2*Fr(er(R6(a-i)+o*c*R6(s-n))),p=Ce(g),v=g?function(y){var x=Ce(y*=g)/p,b=Ce(g-y)/p,w=b*u+x*m,N=b*h+x*f,S=b*l+x*d;return[Ur(N,w)*Rt,Ur(S,er(w*w+N*N))*Rt]}:function(){return[n*Rt,i*Rt]};return v.distance=g,v}const ng=e=>e;var nN=new yr,Xk=new yr,gz,vz,Qk,Jk,Qa={point:cn,lineStart:cn,lineEnd:cn,polygonStart:function(){Qa.lineStart=tDe,Qa.lineEnd=rDe},polygonEnd:function(){Qa.lineStart=Qa.lineEnd=Qa.point=cn,nN.add(xt(Xk)),Xk=new yr},result:function(){var e=nN/2;return nN=new yr,e}};function tDe(){Qa.point=nDe}function nDe(e,t){Qa.point=xz,gz=Qk=e,vz=Jk=t}function xz(e,t){Xk.add(Jk*e-Qk*t),Qk=e,Jk=t}function rDe(){xz(gz,vz)}var Th=1/0,K0=Th,rg=-Th,X0=rg,Q0={point:iDe,lineStart:cn,lineEnd:cn,polygonStart:cn,polygonEnd:cn,result:function(){var e=[[Th,K0],[rg,X0]];return rg=X0=-(K0=Th=1/0),e}};function iDe(e,t){e<Th&&(Th=e),e>rg&&(rg=e),t<K0&&(K0=t),t>X0&&(X0=t)}var Zk=0,eC=0,of=0,J0=0,Z0=0,au=0,tC=0,nC=0,lf=0,yz,bz,sa,aa,Wi={point:rd,lineStart:rD,lineEnd:iD,polygonStart:function(){Wi.lineStart=oDe,Wi.lineEnd=lDe},polygonEnd:function(){Wi.point=rd,Wi.lineStart=rD,Wi.lineEnd=iD},result:function(){var e=lf?[tC/lf,nC/lf]:au?[J0/au,Z0/au]:of?[Zk/of,eC/of]:[NaN,NaN];return Zk=eC=of=J0=Z0=au=tC=nC=lf=0,e}};function rd(e,t){Zk+=e,eC+=t,++of}function rD(){Wi.point=sDe}function sDe(e,t){Wi.point=aDe,rd(sa=e,aa=t)}function aDe(e,t){var n=e-sa,i=t-aa,s=er(n*n+i*i);J0+=s*(sa+e)/2,Z0+=s*(aa+t)/2,au+=s,rd(sa=e,aa=t)}function iD(){Wi.point=rd}function oDe(){Wi.point=cDe}function lDe(){wz(yz,bz)}function cDe(e,t){Wi.point=wz,rd(yz=sa=e,bz=aa=t)}function wz(e,t){var n=e-sa,i=t-aa,s=er(n*n+i*i);J0+=s*(sa+e)/2,Z0+=s*(aa+t)/2,au+=s,s=aa*e-sa*t,tC+=s*(sa+e),nC+=s*(aa+t),lf+=s*3,rd(sa=e,aa=t)}function jz(e){this._context=e}jz.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Lr);break}}},result:cn};var rC=new yr,rN,Nz,Sz,cf,df,ig={point:cn,lineStart:function(){ig.point=dDe},lineEnd:function(){rN&&kz(Nz,Sz),ig.point=cn},polygonStart:function(){rN=!0},polygonEnd:function(){rN=null},result:function(){var e=+rC;return rC=new yr,e}};function dDe(e,t){ig.point=kz,Nz=cf=e,Sz=df=t}function kz(e,t){cf-=e,df-=t,rC.add(er(cf*cf+df*df)),cf=e,df=t}function Cz(){this._string=[]}Cz.prototype={_radius:4.5,_circle:sD(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._string.push("M",e,",",t),this._point=1;break}case 1:{this._string.push("L",e,",",t);break}default:{this._circle==null&&(this._circle=sD(this._radius)),this._string.push("M",e,",",t,this._circle);break}}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}else return null}};function sD(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function _z(e,t){var n=4.5,i,s;function a(o){return o&&(typeof n=="function"&&s.pointRadius(+n.apply(this,arguments)),_s(o,i(s))),s.result()}return a.area=function(o){return _s(o,i(Qa)),Qa.result()},a.measure=function(o){return _s(o,i(ig)),ig.result()},a.bounds=function(o){return _s(o,i(Q0)),Q0.result()},a.centroid=function(o){return _s(o,i(Wi)),Wi.result()},a.projection=function(o){return arguments.length?(i=o==null?(e=null,ng):(e=o).stream,a):e},a.context=function(o){return arguments.length?(s=o==null?(t=null,new Cz):new jz(t=o),typeof n!="function"&&s.pointRadius(n),a):t},a.pointRadius=function(o){return arguments.length?(n=typeof o=="function"?o:(s.pointRadius(+o),+o),a):n},a.projection(e).context(t)}function uDe(e){return{stream:Qg(e)}}function Qg(e){return function(t){var n=new iC;for(var i in e)n[i]=e[i];return n.stream=t,n}}function iC(){}iC.prototype={constructor:iC,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function I3(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),i!=null&&e.clipExtent(null),_s(n,e.stream(Q0)),t(Q0.result()),i!=null&&e.clipExtent(i),e}function tj(e,t,n){return I3(e,function(i){var s=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(s/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),l=+t[0][0]+(s-o*(i[1][0]+i[0][0]))/2,c=+t[0][1]+(a-o*(i[1][1]+i[0][1]))/2;e.scale(150*o).translate([l,c])},n)}function D3(e,t,n){return tj(e,[[0,0],t],n)}function M3(e,t,n){return I3(e,function(i){var s=+t,a=s/(i[1][0]-i[0][0]),o=(s-a*(i[1][0]+i[0][0]))/2,l=-a*i[0][1];e.scale(150*a).translate([o,l])},n)}function R3(e,t,n){return I3(e,function(i){var s=+t,a=s/(i[1][1]-i[0][1]),o=-a*i[0][0],l=(s-a*(i[1][1]+i[0][1]))/2;e.scale(150*a).translate([o,l])},n)}var aD=16,hDe=Ie(30*Fe);function oD(e,t){return+t?fDe(e,t):mDe(e)}function mDe(e){return Qg({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function fDe(e,t){function n(i,s,a,o,l,c,d,u,h,m,f,g,p,v){var y=d-i,x=u-s,b=y*y+x*x;if(b>4*t&&p--){var w=o+m,N=l+f,S=c+g,k=er(w*w+N*N+S*S),_=Fr(S/=k),D=xt(xt(S)-1)<$e||xt(a-h)<$e?(a+h)/2:Ur(N,w),A=e(D,_),E=A[0],T=A[1],M=E-i,C=T-s,P=x*M-y*C;(P*P/b>t||xt((y*M+x*C)/b-.5)>.3||o*m+l*f+c*g<hDe)&&(n(i,s,a,o,l,c,E,T,D,w/=k,N/=k,S,p,v),v.point(E,T),n(E,T,D,w,N,S,d,u,h,m,f,g,p,v))}}return function(i){var s,a,o,l,c,d,u,h,m,f,g,p,v={point:y,lineStart:x,lineEnd:w,polygonStart:function(){i.polygonStart(),v.lineStart=N},polygonEnd:function(){i.polygonEnd(),v.lineStart=x}};function y(_,D){_=e(_,D),i.point(_[0],_[1])}function x(){h=NaN,v.point=b,i.lineStart()}function b(_,D){var A=nd([_,D]),E=e(_,D);n(h,m,u,f,g,p,h=E[0],m=E[1],u=_,f=A[0],g=A[1],p=A[2],aD,i),i.point(h,m)}function w(){v.point=y,i.lineEnd()}function N(){x(),v.point=S,v.lineEnd=k}function S(_,D){b(s=_,D),a=h,o=m,l=f,c=g,d=p,v.point=b}function k(){n(h,m,u,f,g,p,a,o,s,l,c,d,aD,i),v.lineEnd=w,w()}return v}}var pDe=Qg({point:function(e,t){this.stream.point(e*Fe,t*Fe)}});function gDe(e){return Qg({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}function vDe(e,t,n,i,s){function a(o,l){return o*=i,l*=s,[t+e*o,n-e*l]}return a.invert=function(o,l){return[(o-t)/e*i,(n-l)/e*s]},a}function lD(e,t,n,i,s,a){if(!a)return vDe(e,t,n,i,s);var o=Ie(a),l=Ce(a),c=o*e,d=l*e,u=o/e,h=l/e,m=(l*n-o*t)/e,f=(l*t+o*n)/e;function g(p,v){return p*=i,v*=s,[c*p-d*v+t,n-d*p-c*v]}return g.invert=function(p,v){return[i*(u*p-h*v+m),s*(f-h*p-u*v)]},g}function Ea(e){return $3(function(){return e})()}function $3(e){var t,n=150,i=480,s=250,a=0,o=0,l=0,c=0,d=0,u,h=0,m=1,f=1,g=null,p=Vk,v=null,y,x,b,w=ng,N=.5,S,k,_,D,A;function E(P){return _(P[0]*Fe,P[1]*Fe)}function T(P){return P=_.invert(P[0],P[1]),P&&[P[0]*Rt,P[1]*Rt]}E.stream=function(P){return D&&A===P?D:D=pDe(gDe(u)(p(S(w(A=P)))))},E.preclip=function(P){return arguments.length?(p=P,g=void 0,C()):p},E.postclip=function(P){return arguments.length?(w=P,v=y=x=b=null,C()):w},E.clipAngle=function(P){return arguments.length?(p=+P?mz(g=P*Fe):(g=null,Vk),C()):g*Rt},E.clipExtent=function(P){return arguments.length?(w=P==null?(v=y=x=b=null,ng):ej(v=+P[0][0],y=+P[0][1],x=+P[1][0],b=+P[1][1]),C()):v==null?null:[[v,y],[x,b]]},E.scale=function(P){return arguments.length?(n=+P,M()):n},E.translate=function(P){return arguments.length?(i=+P[0],s=+P[1],M()):[i,s]},E.center=function(P){return arguments.length?(a=P[0]%360*Fe,o=P[1]%360*Fe,M()):[a*Rt,o*Rt]},E.rotate=function(P){return arguments.length?(l=P[0]%360*Fe,c=P[1]%360*Fe,d=P.length>2?P[2]%360*Fe:0,M()):[l*Rt,c*Rt,d*Rt]},E.angle=function(P){return arguments.length?(h=P%360*Fe,M()):h*Rt},E.reflectX=function(P){return arguments.length?(m=P?-1:1,M()):m<0},E.reflectY=function(P){return arguments.length?(f=P?-1:1,M()):f<0},E.precision=function(P){return arguments.length?(S=oD(k,N=P*P),C()):er(N)},E.fitExtent=function(P,I){return tj(E,P,I)},E.fitSize=function(P,I){return D3(E,P,I)},E.fitWidth=function(P,I){return M3(E,P,I)},E.fitHeight=function(P,I){return R3(E,P,I)};function M(){var P=lD(n,0,0,m,f,h).apply(null,t(a,o)),I=lD(n,i-P[0],s-P[1],m,f,h);return u=A3(l,c,d),k=qk(t,I),_=qk(u,k),S=oD(k,N),C()}function C(){return D=A=null,E}return function(){return t=e.apply(this,arguments),E.invert=t.invert&&T,M()}}function L3(e){var t=0,n=ot/3,i=$3(e),s=i(t,n);return s.parallels=function(a){return arguments.length?i(t=a[0]*Fe,n=a[1]*Fe):[t*Rt,n*Rt]},s}function xDe(e){var t=Ie(e);function n(i,s){return[i*t,Ce(s)/t]}return n.invert=function(i,s){return[i/t,Fr(s*t)]},n}function Tz(e,t){var n=Ce(e),i=(n+Ce(t))/2;if(xt(i)<$e)return xDe(e);var s=1+n*(2*i-n),a=er(s)/i;function o(l,c){var d=er(s-2*i*Ce(c))/i;return[d*Ce(l*=i),a-d*Ie(l)]}return o.invert=function(l,c){var d=a-c,u=Ur(l,xt(d))*Hi(d);return d*i<0&&(u-=ot*Hi(l)*Hi(d)),[u/i,Fr((s-(l*l+d*d)*i*i)/(2*i))]},o}function eb(){return L3(Tz).scale(155.424).center([0,33.6442])}function Pz(){return eb().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function yDe(e){var t=e.length;return{point:function(n,i){for(var s=-1;++s<t;)e[s].point(n,i)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function bDe(){var e,t,n=Pz(),i,s=eb().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=eb().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,c,d={point:function(m,f){c=[m,f]}};function u(m){var f=m[0],g=m[1];return c=null,i.point(f,g),c||(a.point(f,g),c)||(l.point(f,g),c)}u.invert=function(m){var f=n.scale(),g=n.translate(),p=(m[0]-g[0])/f,v=(m[1]-g[1])/f;return(v>=.12&&v<.234&&p>=-.425&&p<-.214?s:v>=.166&&v<.234&&p>=-.214&&p<-.115?o:n).invert(m)},u.stream=function(m){return e&&t===m?e:e=yDe([n.stream(t=m),s.stream(m),o.stream(m)])},u.precision=function(m){return arguments.length?(n.precision(m),s.precision(m),o.precision(m),h()):n.precision()},u.scale=function(m){return arguments.length?(n.scale(m),s.scale(m*.35),o.scale(m),u.translate(n.translate())):n.scale()},u.translate=function(m){if(!arguments.length)return n.translate();var f=n.scale(),g=+m[0],p=+m[1];return i=n.translate(m).clipExtent([[g-.455*f,p-.238*f],[g+.455*f,p+.238*f]]).stream(d),a=s.translate([g-.307*f,p+.201*f]).clipExtent([[g-.425*f+$e,p+.12*f+$e],[g-.214*f-$e,p+.234*f-$e]]).stream(d),l=o.translate([g-.205*f,p+.212*f]).clipExtent([[g-.214*f+$e,p+.166*f+$e],[g-.115*f-$e,p+.234*f-$e]]).stream(d),h()},u.fitExtent=function(m,f){return tj(u,m,f)},u.fitSize=function(m,f){return D3(u,m,f)},u.fitWidth=function(m,f){return M3(u,m,f)},u.fitHeight=function(m,f){return R3(u,m,f)};function h(){return e=t=null,u}return u.scale(1070)}function Ez(e){return function(t,n){var i=Ie(t),s=Ie(n),a=e(i*s);return a===1/0?[2,0]:[a*s*Ce(t),a*Ce(n)]}}function Jg(e){return function(t,n){var i=er(t*t+n*n),s=e(i),a=Ce(s),o=Ie(s);return[Ur(t*a,i*o),Fr(i&&n*a/i)]}}var U3=Ez(function(e){return er(2/(1+e))});U3.invert=Jg(function(e){return 2*Fr(e/2)});function wDe(){return Ea(U3).scale(124.75).clipAngle(180-.001)}var F3=Ez(function(e){return(e=XW(e))&&e/Ce(e)});F3.invert=Jg(function(e){return e});function jDe(){return Ea(F3).scale(79.4188).clipAngle(180-.001)}function Zg(e,t){return[e,D0(P3((bn+t)/2))]}Zg.invert=function(e,t){return[e,2*cm(KW(t))-bn]};function NDe(){return Az(Zg).scale(961/Lr)}function Az(e){var t=Ea(e),n=t.center,i=t.scale,s=t.translate,a=t.clipExtent,o=null,l,c,d;t.scale=function(h){return arguments.length?(i(h),u()):i()},t.translate=function(h){return arguments.length?(s(h),u()):s()},t.center=function(h){return arguments.length?(n(h),u()):n()},t.clipExtent=function(h){return arguments.length?(h==null?o=l=c=d=null:(o=+h[0][0],l=+h[0][1],c=+h[1][0],d=+h[1][1]),u()):o==null?null:[[o,l],[c,d]]};function u(){var h=ot*i(),m=t(oz(t.rotate()).invert([0,0]));return a(o==null?[[m[0]-h,m[1]-h],[m[0]+h,m[1]+h]]:e===Zg?[[Math.max(m[0]-h,o),l],[Math.min(m[0]+h,c),d]]:[[o,Math.max(m[1]-h,l)],[c,Math.min(m[1]+h,d)]])}return u()}function dx(e){return P3((bn+e)/2)}function Oz(e,t){var n=Ie(e),i=e===t?Ce(e):D0(n/Ie(t))/D0(dx(t)/dx(e)),s=n*Z1(dx(e),i)/i;if(!i)return Zg;function a(o,l){s>0?l<-bn+$e&&(l=-bn+$e):l>bn-$e&&(l=bn-$e);var c=s/Z1(dx(l),i);return[c*Ce(i*o),s-c*Ie(i*o)]}return a.invert=function(o,l){var c=s-l,d=Hi(i)*er(o*o+c*c),u=Ur(o,xt(c))*Hi(c);return c*i<0&&(u-=ot*Hi(o)*Hi(c)),[u/i,2*cm(Z1(s/d,1/i))-bn]},a}function SDe(){return L3(Oz).scale(109.5).parallels([30,30])}function sg(e,t){return[e,t]}sg.invert=sg;function kDe(){return Ea(sg).scale(152.63)}function Iz(e,t){var n=Ie(e),i=e===t?Ce(e):(n-Ie(t))/(t-e),s=n/i+e;if(xt(i)<$e)return sg;function a(o,l){var c=s-l,d=i*o;return[c*Ce(d),s-c*Ie(d)]}return a.invert=function(o,l){var c=s-l,d=Ur(o,xt(c))*Hi(c);return c*i<0&&(d-=ot*Hi(o)*Hi(c)),[d/i,s-Hi(i)*er(o*o+c*c)]},a}function CDe(){return L3(Iz).scale(131.154).center([0,13.9389])}var $f=1.340264,Lf=-.081106,Uf=893e-6,Ff=.003796,tb=er(3)/2,_De=12;function B3(e,t){var n=Fr(tb*Ce(t)),i=n*n,s=i*i*i;return[e*Ie(n)/(tb*($f+3*Lf*i+s*(7*Uf+9*Ff*i))),n*($f+Lf*i+s*(Uf+Ff*i))]}B3.invert=function(e,t){for(var n=t,i=n*n,s=i*i*i,a=0,o,l,c;a<_De&&(l=n*($f+Lf*i+s*(Uf+Ff*i))-t,c=$f+3*Lf*i+s*(7*Uf+9*Ff*i),n-=o=l/c,i=n*n,s=i*i*i,!(xt(o)<tg));++a);return[tb*e*($f+3*Lf*i+s*(7*Uf+9*Ff*i))/Ie(n),Fr(Ce(n)/tb)]};function TDe(){return Ea(B3).scale(177.158)}function W3(e,t){var n=Ie(t),i=Ie(e)*n;return[n*Ce(e)/i,Ce(t)/i]}W3.invert=Jg(cm);function PDe(){return Ea(W3).scale(144.049).clipAngle(60)}function EDe(){var e=1,t=0,n=0,i=1,s=1,a=0,o,l,c=null,d,u,h,m=1,f=1,g=Qg({point:function(w,N){var S=b([w,N]);this.stream.point(S[0],S[1])}}),p=ng,v,y;function x(){return m=e*i,f=e*s,v=y=null,b}function b(w){var N=w[0]*m,S=w[1]*f;if(a){var k=S*o-N*l;N=N*o+S*l,S=k}return[N+t,S+n]}return b.invert=function(w){var N=w[0]-t,S=w[1]-n;if(a){var k=S*o+N*l;N=N*o-S*l,S=k}return[N/m,S/f]},b.stream=function(w){return v&&y===w?v:v=g(p(y=w))},b.postclip=function(w){return arguments.length?(p=w,c=d=u=h=null,x()):p},b.clipExtent=function(w){return arguments.length?(p=w==null?(c=d=u=h=null,ng):ej(c=+w[0][0],d=+w[0][1],u=+w[1][0],h=+w[1][1]),x()):c==null?null:[[c,d],[u,h]]},b.scale=function(w){return arguments.length?(e=+w,x()):e},b.translate=function(w){return arguments.length?(t=+w[0],n=+w[1],x()):[t,n]},b.angle=function(w){return arguments.length?(a=w%360*Fe,l=Ce(a),o=Ie(a),x()):a*Rt},b.reflectX=function(w){return arguments.length?(i=w?-1:1,x()):i<0},b.reflectY=function(w){return arguments.length?(s=w?-1:1,x()):s<0},b.fitExtent=function(w,N){return tj(b,w,N)},b.fitSize=function(w,N){return D3(b,w,N)},b.fitWidth=function(w,N){return M3(b,w,N)},b.fitHeight=function(w,N){return R3(b,w,N)},b}function z3(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(-.013791+i*(.003971*n-.001529*i))),t*(1.007226+n*(.015085+i*(-.044475+.028874*n-.005916*i)))]}z3.invert=function(e,t){var n=t,i=25,s;do{var a=n*n,o=a*a;n-=s=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(xt(s)>$e&&--i>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function ADe(){return Ea(z3).scale(175.295)}function q3(e,t){return[Ie(t)*Ce(e),Ce(t)]}q3.invert=Jg(Fr);function ODe(){return Ea(q3).scale(249.5).clipAngle(90+$e)}function H3(e,t){var n=Ie(t),i=1+Ie(e)*n;return[n*Ce(e)/i,Ce(t)/i]}H3.invert=Jg(function(e){return 2*cm(e)});function IDe(){return Ea(H3).scale(250).clipAngle(142)}function V3(e,t){return[D0(P3((bn+t)/2)),-e]}V3.invert=function(e,t){return[-t,2*cm(KW(e))-bn]};function DDe(){var e=Az(V3),t=e.center,n=e.rotate;return e.center=function(i){return arguments.length?t([-i[1],i[0]]):(i=t(),[i[1],-i[0]])},e.rotate=function(i){return arguments.length?n([i[0],i[1],i.length>2?i[2]+90:90]):(i=n(),[i[0],i[1],i[2]-90])},n([0,0,90]).scale(159.155)}const MDe=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:Pz,geoAlbersUsa:bDe,geoArea:_6e,geoAzimuthalEqualArea:wDe,geoAzimuthalEqualAreaRaw:U3,geoAzimuthalEquidistant:jDe,geoAzimuthalEquidistantRaw:F3,geoBounds:A6e,geoCentroid:$6e,geoCircle:L6e,geoClipAntimeridian:Vk,geoClipCircle:mz,geoClipExtent:H6e,geoClipRectangle:ej,geoConicConformal:SDe,geoConicConformalRaw:Oz,geoConicEqualArea:eb,geoConicEqualAreaRaw:Tz,geoConicEquidistant:CDe,geoConicEquidistantRaw:Iz,geoContains:J6e,geoDistance:G0,geoEqualEarth:TDe,geoEqualEarthRaw:B3,geoEquirectangular:kDe,geoEquirectangularRaw:sg,geoGnomonic:PDe,geoGnomonicRaw:W3,geoGraticule:O3,geoGraticule10:Z6e,geoIdentity:EDe,geoInterpolate:eDe,geoLength:fz,geoMercator:NDe,geoMercatorRaw:Zg,geoNaturalEarth1:ADe,geoNaturalEarth1Raw:z3,geoOrthographic:ODe,geoOrthographicRaw:q3,geoPath:_z,geoProjection:Ea,geoProjectionMutator:$3,geoRotation:oz,geoStereographic:IDe,geoStereographicRaw:H3,geoStream:_s,geoTransform:uDe,geoTransverseMercator:DDe,geoTransverseMercatorRaw:V3},Symbol.toStringTag,{value:"Module"}));function RDe(e){return e}function $De(e){if(e==null)return RDe;var t,n,i=e.scale[0],s=e.scale[1],a=e.translate[0],o=e.translate[1];return function(l,c){c||(t=n=0);var d=2,u=l.length,h=new Array(u);for(h[0]=(t+=l[0])*i+a,h[1]=(n+=l[1])*s+o;d<u;)h[d]=l[d],++d;return h}}function LDe(e,t){for(var n,i=e.length,s=i-t;s<--i;)n=e[s],e[s++]=e[i],e[i]=n}function UDe(e,t){return typeof t=="string"&&(t=e.objects[t]),t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(n){return cD(e,n)})}:cD(e,t)}function cD(e,t){var n=t.id,i=t.bbox,s=t.properties==null?{}:t.properties,a=Dz(e,t);return n==null&&i==null?{type:"Feature",properties:s,geometry:a}:i==null?{type:"Feature",id:n,properties:s,geometry:a}:{type:"Feature",id:n,bbox:i,properties:s,geometry:a}}function Dz(e,t){var n=$De(e.transform),i=e.arcs;function s(u,h){h.length&&h.pop();for(var m=i[u<0?~u:u],f=0,g=m.length;f<g;++f)h.push(n(m[f],f));u<0&&LDe(h,g)}function a(u){return n(u)}function o(u){for(var h=[],m=0,f=u.length;m<f;++m)s(u[m],h);return h.length<2&&h.push(h[0]),h}function l(u){for(var h=o(u);h.length<4;)h.push(h[0]);return h}function c(u){return u.map(l)}function d(u){var h=u.type,m;switch(h){case"GeometryCollection":return{type:h,geometries:u.geometries.map(d)};case"Point":m=a(u.coordinates);break;case"MultiPoint":m=u.coordinates.map(a);break;case"LineString":m=o(u.arcs);break;case"MultiLineString":m=u.arcs.map(o);break;case"Polygon":m=c(u.arcs);break;case"MultiPolygon":m=u.arcs.map(c);break;default:return null}return{type:h,coordinates:m}}return d(t)}function FDe(e,t){var n={},i={},s={},a=[],o=-1;t.forEach(function(d,u){var h=e.arcs[d<0?~d:d],m;h.length<3&&!h[1][0]&&!h[1][1]&&(m=t[++o],t[o]=d,t[u]=m)}),t.forEach(function(d){var u=l(d),h=u[0],m=u[1],f,g;if(f=s[h])if(delete s[f.end],f.push(d),f.end=m,g=i[m]){delete i[g.start];var p=g===f?f:f.concat(g);i[p.start=f.start]=s[p.end=g.end]=p}else i[f.start]=s[f.end]=f;else if(f=i[m])if(delete i[f.start],f.unshift(d),f.start=h,g=s[h]){delete s[g.end];var v=g===f?f:g.concat(f);i[v.start=g.start]=s[v.end=f.end]=v}else i[f.start]=s[f.end]=f;else f=[d],i[f.start=h]=s[f.end=m]=f});function l(d){var u=e.arcs[d<0?~d:d],h=u[0],m;return e.transform?(m=[0,0],u.forEach(function(f){m[0]+=f[0],m[1]+=f[1]})):m=u[u.length-1],d<0?[m,h]:[h,m]}function c(d,u){for(var h in d){var m=d[h];delete u[m.start],delete m.start,delete m.end,m.forEach(function(f){n[f<0?~f:f]=1}),a.push(m)}}return c(s,i),c(i,s),t.forEach(function(d){n[d<0?~d:d]||a.push([d])}),a}function dD(e){return Dz(e,BDe.apply(this,arguments))}function BDe(e,t,n){var i,s,a;if(arguments.length>1)i=WDe(e,t,n);else for(s=0,i=new Array(a=e.arcs.length);s<a;++s)i[s]=s;return{type:"MultiLineString",arcs:FDe(e,i)}}function WDe(e,t,n){var i=[],s=[],a;function o(h){var m=h<0?~h:h;(s[m]||(s[m]=[])).push({i:h,g:a})}function l(h){h.forEach(o)}function c(h){h.forEach(l)}function d(h){h.forEach(c)}function u(h){switch(a=h,h.type){case"GeometryCollection":h.geometries.forEach(u);break;case"LineString":l(h.arcs);break;case"MultiLineString":case"Polygon":c(h.arcs);break;case"MultiPolygon":d(h.arcs);break}}return u(t),s.forEach(n==null?function(h){i.push(h[0].i)}:function(h){n(h[0].g,h[h.length-1].g)&&i.push(h[0].i)}),i}var zDe={value:()=>{}};function G3(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Bx(n)}function Bx(e){this._=e}function qDe(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Bx.prototype=G3.prototype={constructor:Bx,on:function(e,t){var n=this._,i=qDe(e+"",n),s,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((s=(e=i[a]).type)&&(s=HDe(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(s=(e=i[a]).type)n[s]=uD(n[s],e.name,t);else if(t==null)for(s in n)n[s]=uD(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Bx(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),i=0,s,a;i<s;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,s=a.length;i<s;++i)a[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,a=i.length;s<a;++s)i[s].value.apply(t,n)}};function HDe(e,t){for(var n=0,i=e.length,s;n<i;++n)if((s=e[n]).name===t)return s.value}function uD(e,t,n){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=zDe,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var sC="http://www.w3.org/1999/xhtml";const hD={svg:"http://www.w3.org/2000/svg",xhtml:sC,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nj(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),hD.hasOwnProperty(t)?{space:hD[t],local:e}:e}function VDe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===sC&&t.documentElement.namespaceURI===sC?t.createElement(e):t.createElementNS(n,e)}}function GDe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Mz(e){var t=nj(e);return(t.local?GDe:VDe)(t)}function YDe(){}function Y3(e){return e==null?YDe:function(){return this.querySelector(e)}}function KDe(e){typeof e!="function"&&(e=Y3(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],o=a.length,l=i[s]=new Array(o),c,d,u=0;u<o;++u)(c=a[u])&&(d=e.call(c,c.__data__,u,a))&&("__data__"in c&&(d.__data__=c.__data__),l[u]=d);return new li(i,this._parents)}function Rz(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XDe(){return[]}function $z(e){return e==null?XDe:function(){return this.querySelectorAll(e)}}function QDe(e){return function(){var t=e.apply(this,arguments);return t==null?[]:Rz(t)}}function JDe(e){typeof e=="function"?e=QDe(e):e=$z(e);for(var t=this._groups,n=t.length,i=[],s=[],a=0;a<n;++a)for(var o=t[a],l=o.length,c,d=0;d<l;++d)(c=o[d])&&(i.push(e.call(c,c.__data__,d,o)),s.push(c));return new li(i,s)}function Lz(e){return function(){return this.matches(e)}}function Uz(e){return function(t){return t.matches(e)}}var ZDe=Array.prototype.find;function eMe(e){return function(){return ZDe.call(this.children,e)}}function tMe(){return this.firstElementChild}function nMe(e){return this.select(e==null?tMe:eMe(typeof e=="function"?e:Uz(e)))}var rMe=Array.prototype.filter;function iMe(){return this.children}function sMe(e){return function(){return rMe.call(this.children,e)}}function aMe(e){return this.selectAll(e==null?iMe:sMe(typeof e=="function"?e:Uz(e)))}function oMe(e){typeof e!="function"&&(e=Lz(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],o=a.length,l=i[s]=[],c,d=0;d<o;++d)(c=a[d])&&e.call(c,c.__data__,d,a)&&l.push(c);return new li(i,this._parents)}function Fz(e){return new Array(e.length)}function lMe(){return new li(this._enter||this._groups.map(Fz),this._parents)}function nb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}nb.prototype={constructor:nb,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function cMe(e){return function(){return e}}function dMe(e,t,n,i,s,a){for(var o=0,l,c=t.length,d=a.length;o<d;++o)(l=t[o])?(l.__data__=a[o],i[o]=l):n[o]=new nb(e,a[o]);for(;o<c;++o)(l=t[o])&&(s[o]=l)}function uMe(e,t,n,i,s,a,o){var l,c,d=new Map,u=t.length,h=a.length,m=new Array(u),f;for(l=0;l<u;++l)(c=t[l])&&(m[l]=f=o.call(c,c.__data__,l,t)+"",d.has(f)?s[l]=c:d.set(f,c));for(l=0;l<h;++l)f=o.call(e,a[l],l,a)+"",(c=d.get(f))?(i[l]=c,c.__data__=a[l],d.delete(f)):n[l]=new nb(e,a[l]);for(l=0;l<u;++l)(c=t[l])&&d.get(m[l])===c&&(s[l]=c)}function hMe(e){return e.__data__}function mMe(e,t){if(!arguments.length)return Array.from(this,hMe);var n=t?uMe:dMe,i=this._parents,s=this._groups;typeof e!="function"&&(e=cMe(e));for(var a=s.length,o=new Array(a),l=new Array(a),c=new Array(a),d=0;d<a;++d){var u=i[d],h=s[d],m=h.length,f=Rz(e.call(u,u&&u.__data__,d,i)),g=f.length,p=l[d]=new Array(g),v=o[d]=new Array(g),y=c[d]=new Array(m);n(u,h,p,v,y,f,t);for(var x=0,b=0,w,N;x<g;++x)if(w=p[x]){for(x>=b&&(b=x+1);!(N=v[b])&&++b<g;);w._next=N||null}}return o=new li(o,i),o._enter=l,o._exit=c,o}function fMe(){return new li(this._exit||this._groups.map(Fz),this._parents)}function pMe(e,t,n){var i=this.enter(),s=this,a=this.exit();return i=typeof e=="function"?e(i):i.append(e+""),t!=null&&(s=t(s)),n==null?a.remove():n(a),i&&s?i.merge(s).order():s}function gMe(e){if(!(e instanceof li))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,i=t.length,s=n.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=t[l],d=n[l],u=c.length,h=o[l]=new Array(u),m,f=0;f<u;++f)(m=c[f]||d[f])&&(h[f]=m);for(;l<i;++l)o[l]=t[l];return new li(o,this._parents)}function vMe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],s=i.length-1,a=i[s],o;--s>=0;)(o=i[s])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function xMe(e){e||(e=yMe);function t(h,m){return h&&m?e(h.__data__,m.__data__):!h-!m}for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a){for(var o=n[a],l=o.length,c=s[a]=new Array(l),d,u=0;u<l;++u)(d=o[u])&&(c[u]=d);c.sort(t)}return new li(s,this._parents).order()}function yMe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bMe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function wMe(){return Array.from(this)}function jMe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,a=i.length;s<a;++s){var o=i[s];if(o)return o}return null}function NMe(){let e=0;for(const t of this)++e;return e}function SMe(){return!this.node()}function kMe(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var s=t[n],a=0,o=s.length,l;a<o;++a)(l=s[a])&&e.call(l,l.__data__,a,s);return this}function CMe(e){return function(){this.removeAttribute(e)}}function _Me(e){return function(){this.removeAttributeNS(e.space,e.local)}}function TMe(e,t){return function(){this.setAttribute(e,t)}}function PMe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function EMe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function AMe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function OMe(e,t){var n=nj(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?_Me:CMe:typeof t=="function"?n.local?AMe:EMe:n.local?PMe:TMe)(n,t))}function Bz(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function IMe(e){return function(){this.style.removeProperty(e)}}function DMe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function MMe(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function RMe(e,t,n){return arguments.length>1?this.each((t==null?IMe:typeof t=="function"?MMe:DMe)(e,t,n??"")):Ph(this.node(),e)}function Ph(e,t){return e.style.getPropertyValue(t)||Bz(e).getComputedStyle(e,null).getPropertyValue(t)}function $Me(e){return function(){delete this[e]}}function LMe(e,t){return function(){this[e]=t}}function UMe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function FMe(e,t){return arguments.length>1?this.each((t==null?$Me:typeof t=="function"?UMe:LMe)(e,t)):this.node()[e]}function Wz(e){return e.trim().split(/^|\s+/)}function K3(e){return e.classList||new zz(e)}function zz(e){this._node=e,this._names=Wz(e.getAttribute("class")||"")}zz.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qz(e,t){for(var n=K3(e),i=-1,s=t.length;++i<s;)n.add(t[i])}function Hz(e,t){for(var n=K3(e),i=-1,s=t.length;++i<s;)n.remove(t[i])}function BMe(e){return function(){qz(this,e)}}function WMe(e){return function(){Hz(this,e)}}function zMe(e,t){return function(){(t.apply(this,arguments)?qz:Hz)(this,e)}}function qMe(e,t){var n=Wz(e+"");if(arguments.length<2){for(var i=K3(this.node()),s=-1,a=n.length;++s<a;)if(!i.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?zMe:t?BMe:WMe)(n,t))}function HMe(){this.textContent=""}function VMe(e){return function(){this.textContent=e}}function GMe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function YMe(e){return arguments.length?this.each(e==null?HMe:(typeof e=="function"?GMe:VMe)(e)):this.node().textContent}function KMe(){this.innerHTML=""}function XMe(e){return function(){this.innerHTML=e}}function QMe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function JMe(e){return arguments.length?this.each(e==null?KMe:(typeof e=="function"?QMe:XMe)(e)):this.node().innerHTML}function ZMe(){this.nextSibling&&this.parentNode.appendChild(this)}function e8e(){return this.each(ZMe)}function t8e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function n8e(){return this.each(t8e)}function r8e(e){var t=typeof e=="function"?e:Mz(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function i8e(){return null}function s8e(e,t){var n=typeof e=="function"?e:Mz(e),i=t==null?i8e:typeof t=="function"?t:Y3(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function a8e(){var e=this.parentNode;e&&e.removeChild(this)}function o8e(){return this.each(a8e)}function l8e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function c8e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function d8e(e){return this.select(e?c8e:l8e)}function u8e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function h8e(e){return function(t){e.call(this,t,this.__data__)}}function m8e(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function f8e(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,s=t.length,a;n<s;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function p8e(e,t,n){return function(){var i=this.__on,s,a=h8e(t);if(i){for(var o=0,l=i.length;o<l;++o)if((s=i[o]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=a,s.options=n),s.value=t;return}}this.addEventListener(e.type,a,n),s={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(s):this.__on=[s]}}function g8e(e,t,n){var i=m8e(e+""),s,a=i.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,d=l.length,u;c<d;++c)for(s=0,u=l[c];s<a;++s)if((o=i[s]).type===u.type&&o.name===u.name)return u.value}return}for(l=t?p8e:f8e,s=0;s<a;++s)this.each(l(i[s],t,n));return this}function Vz(e,t,n){var i=Bz(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,n):(s=i.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function v8e(e,t){return function(){return Vz(this,e,t)}}function x8e(e,t){return function(){return Vz(this,e,t.apply(this,arguments))}}function y8e(e,t){return this.each((typeof t=="function"?x8e:v8e)(e,t))}function*b8e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],s=0,a=i.length,o;s<a;++s)(o=i[s])&&(yield o)}var Gz=[null];function li(e,t){this._groups=e,this._parents=t}function ev(){return new li([[document.documentElement]],Gz)}function w8e(){return this}li.prototype=ev.prototype={constructor:li,select:KDe,selectAll:JDe,selectChild:nMe,selectChildren:aMe,filter:oMe,data:mMe,enter:lMe,exit:fMe,join:pMe,merge:gMe,selection:w8e,order:vMe,sort:xMe,call:bMe,nodes:wMe,node:jMe,size:NMe,empty:SMe,each:kMe,attr:OMe,style:RMe,property:FMe,classed:qMe,text:YMe,html:JMe,raise:e8e,lower:n8e,append:r8e,insert:s8e,remove:o8e,clone:d8e,datum:u8e,on:g8e,dispatch:y8e,[Symbol.iterator]:b8e};function Ja(e){return typeof e=="string"?new li([[document.querySelector(e)]],[document.documentElement]):new li([[e]],Gz)}function j8e(e){let t;for(;t=e.sourceEvent;)e=t;return e}function nc(e,t){if(e=j8e(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}function aC(e){e.preventDefault(),e.stopImmediatePropagation()}function N8e(e){var t=e.document.documentElement,n=Ja(e).on("dragstart.drag",aC,!0);"onselectstart"in t?n.on("selectstart.drag",aC,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function S8e(e,t){var n=e.document.documentElement,i=Ja(e).on("dragstart.drag",null);t&&(i.on("click.drag",aC,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var k8e=1e-12;function mD(e){return((e=Math.exp(e))+1/e)/2}function C8e(e){return((e=Math.exp(e))-1/e)/2}function _8e(e){return((e=Math.exp(2*e))-1)/(e+1)}const T8e=function e(t,n,i){function s(a,o){var l=a[0],c=a[1],d=a[2],u=o[0],h=o[1],m=o[2],f=u-l,g=h-c,p=f*f+g*g,v,y;if(p<k8e)y=Math.log(m/d)/t,v=function(k){return[l+k*f,c+k*g,d*Math.exp(t*k*y)]};else{var x=Math.sqrt(p),b=(m*m-d*d+i*p)/(2*d*n*x),w=(m*m-d*d-i*p)/(2*m*n*x),N=Math.log(Math.sqrt(b*b+1)-b),S=Math.log(Math.sqrt(w*w+1)-w);y=(S-N)/t,v=function(k){var _=k*y,D=mD(N),A=d/(n*x)*(D*_8e(t*_+N)-C8e(N));return[l+A*f,c+A*g,d*D/mD(t*_+N)]}}return v.duration=y*1e3*t/Math.SQRT2,v}return s.rho=function(a){var o=Math.max(.001,+a),l=o*o,c=l*l;return e(o,l,c)},s}(Math.SQRT2,2,4);var Eh=0,uf=0,qm=0,Yz=1e3,rb,hf,ib=0,id=0,rj=0,ag=typeof performance=="object"&&performance.now?performance:Date,Kz=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function X3(){return id||(Kz(P8e),id=ag.now()+rj)}function P8e(){id=0}function sb(){this._call=this._time=this._next=null}sb.prototype=Xz.prototype={constructor:sb,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?X3():+n)+(t==null?0:+t),!this._next&&hf!==this&&(hf?hf._next=this:rb=this,hf=this),this._call=e,this._time=n,oC()},stop:function(){this._call&&(this._call=null,this._time=1/0,oC())}};function Xz(e,t,n){var i=new sb;return i.restart(e,t,n),i}function E8e(){X3(),++Eh;for(var e=rb,t;e;)(t=id-e._time)>=0&&e._call.call(null,t),e=e._next;--Eh}function fD(){id=(ib=ag.now())+rj,Eh=uf=0;try{E8e()}finally{Eh=0,O8e(),id=0}}function A8e(){var e=ag.now(),t=e-ib;t>Yz&&(rj-=t,ib=e)}function O8e(){for(var e,t=rb,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rb=n);hf=e,oC(i)}function oC(e){if(!Eh){uf&&(uf=clearTimeout(uf));var t=e-id;t>24?(e<1/0&&(uf=setTimeout(fD,e-ag.now()-rj)),qm&&(qm=clearInterval(qm))):(qm||(ib=ag.now(),qm=setInterval(A8e,Yz)),Eh=1,Kz(fD))}}function pD(e,t,n){var i=new sb;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,n),i}var I8e=G3("start","end","cancel","interrupt"),D8e=[],Qz=0,gD=1,lC=2,Wx=3,vD=4,cC=5,zx=6;function ij(e,t,n,i,s,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;M8e(e,n,{name:t,index:i,group:s,on:I8e,tween:D8e,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Qz})}function Q3(e,t){var n=Hs(e,t);if(n.state>Qz)throw new Error("too late; already scheduled");return n}function Aa(e,t){var n=Hs(e,t);if(n.state>Wx)throw new Error("too late; already running");return n}function Hs(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function M8e(e,t,n){var i=e.__transition,s;i[t]=n,n.timer=Xz(a,0,n.time);function a(d){n.state=gD,n.timer.restart(o,n.delay,n.time),n.delay<=d&&o(d-n.delay)}function o(d){var u,h,m,f;if(n.state!==gD)return c();for(u in i)if(f=i[u],f.name===n.name){if(f.state===Wx)return pD(o);f.state===vD?(f.state=zx,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=zx,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(pD(function(){n.state===Wx&&(n.state=vD,n.timer.restart(l,n.delay,n.time),l(d))}),n.state=lC,n.on.call("start",e,e.__data__,n.index,n.group),n.state===lC){for(n.state=Wx,s=new Array(m=n.tween.length),u=0,h=-1;u<m;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(s[++h]=f);s.length=h+1}}function l(d){for(var u=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(c),n.state=cC,1),h=-1,m=s.length;++h<m;)s[h].call(e,u);n.state===cC&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=zx,n.timer.stop(),delete i[t];for(var d in i)return;delete e.__transition}}function qx(e,t){var n=e.__transition,i,s,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((i=n[o]).name!==t){a=!1;continue}s=i.state>lC&&i.state<cC,i.state=zx,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[o]}a&&delete e.__transition}}function R8e(e){return this.each(function(){qx(this,e)})}function J3(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jz(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function tv(){}var og=.7,ab=1/og,ku="\\s*([+-]?\\d+)\\s*",lg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ya="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$8e=/^#([0-9a-f]{3,8})$/,L8e=new RegExp("^rgb\\("+[ku,ku,ku]+"\\)$"),U8e=new RegExp("^rgb\\("+[ya,ya,ya]+"\\)$"),F8e=new RegExp("^rgba\\("+[ku,ku,ku,lg]+"\\)$"),B8e=new RegExp("^rgba\\("+[ya,ya,ya,lg]+"\\)$"),W8e=new RegExp("^hsl\\("+[lg,ya,ya]+"\\)$"),z8e=new RegExp("^hsla\\("+[lg,ya,ya,lg]+"\\)$"),xD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};J3(tv,cg,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yD,formatHex:yD,formatHsl:q8e,formatRgb:bD,toString:bD});function yD(){return this.rgb().formatHex()}function q8e(){return Zz(this).formatHsl()}function bD(){return this.rgb().formatRgb()}function cg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$8e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?wD(t):n===3?new ji(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ux(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ux(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=L8e.exec(e))?new ji(t[1],t[2],t[3],1):(t=U8e.exec(e))?new ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=F8e.exec(e))?ux(t[1],t[2],t[3],t[4]):(t=B8e.exec(e))?ux(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=W8e.exec(e))?SD(t[1],t[2]/100,t[3]/100,1):(t=z8e.exec(e))?SD(t[1],t[2]/100,t[3]/100,t[4]):xD.hasOwnProperty(e)?wD(xD[e]):e==="transparent"?new ji(NaN,NaN,NaN,0):null}function wD(e){return new ji(e>>16&255,e>>8&255,e&255,1)}function ux(e,t,n,i){return i<=0&&(e=t=n=NaN),new ji(e,t,n,i)}function H8e(e){return e instanceof tv||(e=cg(e)),e?(e=e.rgb(),new ji(e.r,e.g,e.b,e.opacity)):new ji}function dC(e,t,n,i){return arguments.length===1?H8e(e):new ji(e,t,n,i??1)}function ji(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}J3(ji,dC,Jz(tv,{brighter:function(e){return e=e==null?ab:Math.pow(ab,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?og:Math.pow(og,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jD,formatHex:jD,formatRgb:ND,toString:ND}));function jD(){return"#"+iN(this.r)+iN(this.g)+iN(this.b)}function ND(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function iN(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function SD(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new oa(e,t,n,i)}function Zz(e){if(e instanceof oa)return new oa(e.h,e.s,e.l,e.opacity);if(e instanceof tv||(e=cg(e)),!e)return new oa;if(e instanceof oa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,l=a-s,c=(a+s)/2;return l?(t===a?o=(n-i)/l+(n<i)*6:n===a?o=(i-t)/l+2:o=(t-n)/l+4,l/=c<.5?a+s:2-a-s,o*=60):l=c>0&&c<1?0:o,new oa(o,l,c,e.opacity)}function V8e(e,t,n,i){return arguments.length===1?Zz(e):new oa(e,t,n,i??1)}function oa(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}J3(oa,V8e,Jz(tv,{brighter:function(e){return e=e==null?ab:Math.pow(ab,e),new oa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?og:Math.pow(og,e),new oa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new ji(sN(e>=240?e-240:e+120,s,i),sN(e,s,i),sN(e<120?e+240:e-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function sN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const eq=e=>()=>e;function G8e(e,t){return function(n){return e+n*t}}function Y8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function K8e(e){return(e=+e)==1?tq:function(t,n){return n-t?Y8e(t,n,e):eq(isNaN(t)?n:t)}}function tq(e,t){var n=t-e;return n?G8e(e,n):eq(isNaN(e)?t:e)}const kD=function e(t){var n=K8e(t);function i(s,a){var o=n((s=dC(s)).r,(a=dC(a)).r),l=n(s.g,a.g),c=n(s.b,a.b),d=tq(s.opacity,a.opacity);return function(u){return s.r=o(u),s.g=l(u),s.b=c(u),s.opacity=d(u),s+""}}return i.gamma=e,i}(1);function qo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var uC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aN=new RegExp(uC.source,"g");function X8e(e){return function(){return e}}function Q8e(e){return function(t){return e(t)+""}}function J8e(e,t){var n=uC.lastIndex=aN.lastIndex=0,i,s,a,o=-1,l=[],c=[];for(e=e+"",t=t+"";(i=uC.exec(e))&&(s=aN.exec(t));)(a=s.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(s=s[0])?l[o]?l[o]+=s:l[++o]=s:(l[++o]=null,c.push({i:o,x:qo(i,s)})),n=aN.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?c[0]?Q8e(c[0].x):X8e(t):(t=c.length,function(d){for(var u=0,h;u<t;++u)l[(h=c[u]).i]=h.x(d);return l.join("")})}var CD=180/Math.PI,hC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nq(e,t,n,i,s,a){var o,l,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*i)&&(n-=e*c,i-=t*c),(l=Math.sqrt(n*n+i*i))&&(n/=l,i/=l,c/=l),e*i<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:s,translateY:a,rotate:Math.atan2(t,e)*CD,skewX:Math.atan(c)*CD,scaleX:o,scaleY:l}}var hx;function Z8e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?hC:nq(t.a,t.b,t.c,t.d,t.e,t.f)}function eRe(e){return e==null||(hx||(hx=document.createElementNS("http://www.w3.org/2000/svg","g")),hx.setAttribute("transform",e),!(e=hx.transform.baseVal.consolidate()))?hC:(e=e.matrix,nq(e.a,e.b,e.c,e.d,e.e,e.f))}function rq(e,t,n,i){function s(d){return d.length?d.pop()+" ":""}function a(d,u,h,m,f,g){if(d!==h||u!==m){var p=f.push("translate(",null,t,null,n);g.push({i:p-4,x:qo(d,h)},{i:p-2,x:qo(u,m)})}else(h||m)&&f.push("translate("+h+t+m+n)}function o(d,u,h,m){d!==u?(d-u>180?u+=360:u-d>180&&(d+=360),m.push({i:h.push(s(h)+"rotate(",null,i)-2,x:qo(d,u)})):u&&h.push(s(h)+"rotate("+u+i)}function l(d,u,h,m){d!==u?m.push({i:h.push(s(h)+"skewX(",null,i)-2,x:qo(d,u)}):u&&h.push(s(h)+"skewX("+u+i)}function c(d,u,h,m,f,g){if(d!==h||u!==m){var p=f.push(s(f)+"scale(",null,",",null,")");g.push({i:p-4,x:qo(d,h)},{i:p-2,x:qo(u,m)})}else(h!==1||m!==1)&&f.push(s(f)+"scale("+h+","+m+")")}return function(d,u){var h=[],m=[];return d=e(d),u=e(u),a(d.translateX,d.translateY,u.translateX,u.translateY,h,m),o(d.rotate,u.rotate,h,m),l(d.skewX,u.skewX,h,m),c(d.scaleX,d.scaleY,u.scaleX,u.scaleY,h,m),d=u=null,function(f){for(var g=-1,p=m.length,v;++g<p;)h[(v=m[g]).i]=v.x(f);return h.join("")}}}var tRe=rq(Z8e,"px, ","px)","deg)"),nRe=rq(eRe,", ",")",")");function rRe(e,t){var n,i;return function(){var s=Aa(this,e),a=s.tween;if(a!==n){i=n=a;for(var o=0,l=i.length;o<l;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}s.tween=i}}function iRe(e,t,n){var i,s;if(typeof n!="function")throw new Error;return function(){var a=Aa(this,e),o=a.tween;if(o!==i){s=(i=o).slice();for(var l={name:t,value:n},c=0,d=s.length;c<d;++c)if(s[c].name===t){s[c]=l;break}c===d&&s.push(l)}a.tween=s}}function sRe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Hs(this.node(),n).tween,s=0,a=i.length,o;s<a;++s)if((o=i[s]).name===e)return o.value;return null}return this.each((t==null?rRe:iRe)(n,e,t))}function Z3(e,t,n){var i=e._id;return e.each(function(){var s=Aa(this,i);(s.value||(s.value={}))[t]=n.apply(this,arguments)}),function(s){return Hs(s,i).value[t]}}function iq(e,t){var n;return(typeof t=="number"?qo:t instanceof cg?kD:(n=cg(t))?(t=n,kD):J8e)(e,t)}function aRe(e){return function(){this.removeAttribute(e)}}function oRe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lRe(e,t,n){var i,s=n+"",a;return function(){var o=this.getAttribute(e);return o===s?null:o===i?a:a=t(i=o,n)}}function cRe(e,t,n){var i,s=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===s?null:o===i?a:a=t(i=o,n)}}function dRe(e,t,n){var i,s,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=l+"",o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,l)))}}function uRe(e,t,n){var i,s,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=l+"",o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,l)))}}function hRe(e,t){var n=nj(e),i=n==="transform"?nRe:iq;return this.attrTween(e,typeof t=="function"?(n.local?uRe:dRe)(n,i,Z3(this,"attr."+e,t)):t==null?(n.local?oRe:aRe)(n):(n.local?cRe:lRe)(n,i,t))}function mRe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fRe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pRe(e,t){var n,i;function s(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&fRe(e,a)),n}return s._value=t,s}function gRe(e,t){var n,i;function s(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&mRe(e,a)),n}return s._value=t,s}function vRe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=nj(e);return this.tween(n,(i.local?pRe:gRe)(i,t))}function xRe(e,t){return function(){Q3(this,e).delay=+t.apply(this,arguments)}}function yRe(e,t){return t=+t,function(){Q3(this,e).delay=t}}function bRe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xRe:yRe)(t,e)):Hs(this.node(),t).delay}function wRe(e,t){return function(){Aa(this,e).duration=+t.apply(this,arguments)}}function jRe(e,t){return t=+t,function(){Aa(this,e).duration=t}}function NRe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?wRe:jRe)(t,e)):Hs(this.node(),t).duration}function SRe(e,t){if(typeof t!="function")throw new Error;return function(){Aa(this,e).ease=t}}function kRe(e){var t=this._id;return arguments.length?this.each(SRe(t,e)):Hs(this.node(),t).ease}function CRe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Aa(this,e).ease=n}}function _Re(e){if(typeof e!="function")throw new Error;return this.each(CRe(this._id,e))}function TRe(e){typeof e!="function"&&(e=Lz(e));for(var t=this._groups,n=t.length,i=new Array(n),s=0;s<n;++s)for(var a=t[s],o=a.length,l=i[s]=[],c,d=0;d<o;++d)(c=a[d])&&e.call(c,c.__data__,d,a)&&l.push(c);return new So(i,this._parents,this._name,this._id)}function PRe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,s=n.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=t[l],d=n[l],u=c.length,h=o[l]=new Array(u),m,f=0;f<u;++f)(m=c[f]||d[f])&&(h[f]=m);for(;l<i;++l)o[l]=t[l];return new So(o,this._parents,this._name,this._id)}function ERe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ARe(e,t,n){var i,s,a=ERe(t)?Q3:Aa;return function(){var o=a(this,e),l=o.on;l!==i&&(s=(i=l).copy()).on(t,n),o.on=s}}function ORe(e,t){var n=this._id;return arguments.length<2?Hs(this.node(),n).on.on(e):this.each(ARe(n,e,t))}function IRe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function DRe(){return this.on("end.remove",IRe(this._id))}function MRe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Y3(e));for(var i=this._groups,s=i.length,a=new Array(s),o=0;o<s;++o)for(var l=i[o],c=l.length,d=a[o]=new Array(c),u,h,m=0;m<c;++m)(u=l[m])&&(h=e.call(u,u.__data__,m,l))&&("__data__"in u&&(h.__data__=u.__data__),d[m]=h,ij(d[m],t,n,m,d,Hs(u,n)));return new So(a,this._parents,t,n)}function RRe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=$z(e));for(var i=this._groups,s=i.length,a=[],o=[],l=0;l<s;++l)for(var c=i[l],d=c.length,u,h=0;h<d;++h)if(u=c[h]){for(var m=e.call(u,u.__data__,h,c),f,g=Hs(u,n),p=0,v=m.length;p<v;++p)(f=m[p])&&ij(f,t,n,p,m,g);a.push(m),o.push(u)}return new So(a,o,t,n)}var $Re=ev.prototype.constructor;function LRe(){return new $Re(this._groups,this._parents)}function URe(e,t){var n,i,s;return function(){var a=Ph(this,e),o=(this.style.removeProperty(e),Ph(this,e));return a===o?null:a===n&&o===i?s:s=t(n=a,i=o)}}function sq(e){return function(){this.style.removeProperty(e)}}function FRe(e,t,n){var i,s=n+"",a;return function(){var o=Ph(this,e);return o===s?null:o===i?a:a=t(i=o,n)}}function BRe(e,t,n){var i,s,a;return function(){var o=Ph(this,e),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),Ph(this,e))),o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,l))}}function WRe(e,t){var n,i,s,a="style."+t,o="end."+a,l;return function(){var c=Aa(this,e),d=c.on,u=c.value[a]==null?l||(l=sq(t)):void 0;(d!==n||s!==u)&&(i=(n=d).copy()).on(o,s=u),c.on=i}}function zRe(e,t,n){var i=(e+="")=="transform"?tRe:iq;return t==null?this.styleTween(e,URe(e,i)).on("end.style."+e,sq(e)):typeof t=="function"?this.styleTween(e,BRe(e,i,Z3(this,"style."+e,t))).each(WRe(this._id,e)):this.styleTween(e,FRe(e,i,t),n).on("end.style."+e,null)}function qRe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function HRe(e,t,n){var i,s;function a(){var o=t.apply(this,arguments);return o!==s&&(i=(s=o)&&qRe(e,o,n)),i}return a._value=t,a}function VRe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,HRe(e,t,n??""))}function GRe(e){return function(){this.textContent=e}}function YRe(e){return function(){var t=e(this);this.textContent=t??""}}function KRe(e){return this.tween("text",typeof e=="function"?YRe(Z3(this,"text",e)):GRe(e==null?"":e+""))}function XRe(e){return function(t){this.textContent=e.call(this,t)}}function QRe(e){var t,n;function i(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&XRe(s)),t}return i._value=e,i}function JRe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,QRe(e))}function ZRe(){for(var e=this._name,t=this._id,n=aq(),i=this._groups,s=i.length,a=0;a<s;++a)for(var o=i[a],l=o.length,c,d=0;d<l;++d)if(c=o[d]){var u=Hs(c,t);ij(c,e,n,d,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new So(i,this._parents,e,n)}function e$e(){var e,t,n=this,i=n._id,s=n.size();return new Promise(function(a,o){var l={value:o},c={value:function(){--s===0&&a()}};n.each(function(){var d=Aa(this,i),u=d.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(c)),d.on=t}),s===0&&a()})}var t$e=0;function So(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function aq(){return++t$e}var rc=ev.prototype;So.prototype={constructor:So,select:MRe,selectAll:RRe,filter:TRe,merge:PRe,selection:LRe,transition:ZRe,call:rc.call,nodes:rc.nodes,node:rc.node,size:rc.size,empty:rc.empty,each:rc.each,on:ORe,attr:hRe,attrTween:vRe,style:zRe,styleTween:VRe,text:KRe,textTween:JRe,remove:DRe,tween:sRe,delay:bRe,duration:NRe,ease:kRe,easeVarying:_Re,end:e$e,[Symbol.iterator]:rc[Symbol.iterator]};function n$e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var r$e={time:null,delay:0,duration:250,ease:n$e};function i$e(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function s$e(e){var t,n;e instanceof So?(t=e._id,e=e._name):(t=aq(),(n=r$e).time=X3(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,a=0;a<s;++a)for(var o=i[a],l=o.length,c,d=0;d<l;++d)(c=o[d])&&ij(c,e,t,d,o,n||i$e(c,t));return new So(i,this._parents,e,t)}ev.prototype.interrupt=R8e;ev.prototype.transition=s$e;const mx=e=>()=>e;function a$e(e,{sourceEvent:t,target:n,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function io(e,t,n){this.k=e,this.x=t,this.y=n}io.prototype={constructor:io,scale:function(e){return e===1?this:new io(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new io(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eT=new io(1,0,0);io.prototype;function oN(e){e.stopImmediatePropagation()}function Hm(e){e.preventDefault(),e.stopImmediatePropagation()}function o$e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function l$e(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _D(){return this.__zoom||eT}function c$e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function d$e(){return navigator.maxTouchPoints||"ontouchstart"in this}function u$e(e,t,n){var i=e.invertX(t[0][0])-n[0][0],s=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function h$e(){var e=o$e,t=l$e,n=u$e,i=c$e,s=d$e,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=T8e,d=G3("start","zoom","end"),u,h,m,f=500,g=150,p=0,v=10;function y(C){C.property("__zoom",_D).on("wheel.zoom",_).on("mousedown.zoom",D).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",E).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(C,P,I,R){var O=C.selection?C.selection():C;O.property("__zoom",_D),C!==O?N(C,P,I,R):O.interrupt().each(function(){S(this,arguments).event(R).start().zoom(null,typeof P=="function"?P.apply(this,arguments):P).end()})},y.scaleBy=function(C,P,I,R){y.scaleTo(C,function(){var O=this.__zoom.k,$=typeof P=="function"?P.apply(this,arguments):P;return O*$},I,R)},y.scaleTo=function(C,P,I,R){y.transform(C,function(){var O=t.apply(this,arguments),$=this.__zoom,q=I==null?w(O):typeof I=="function"?I.apply(this,arguments):I,z=$.invert(q),J=typeof P=="function"?P.apply(this,arguments):P;return n(b(x($,J),q,z),O,o)},I,R)},y.translateBy=function(C,P,I,R){y.transform(C,function(){return n(this.__zoom.translate(typeof P=="function"?P.apply(this,arguments):P,typeof I=="function"?I.apply(this,arguments):I),t.apply(this,arguments),o)},null,R)},y.translateTo=function(C,P,I,R,O){y.transform(C,function(){var $=t.apply(this,arguments),q=this.__zoom,z=R==null?w($):typeof R=="function"?R.apply(this,arguments):R;return n(eT.translate(z[0],z[1]).scale(q.k).translate(typeof P=="function"?-P.apply(this,arguments):-P,typeof I=="function"?-I.apply(this,arguments):-I),$,o)},R,O)};function x(C,P){return P=Math.max(a[0],Math.min(a[1],P)),P===C.k?C:new io(P,C.x,C.y)}function b(C,P,I){var R=P[0]-I[0]*C.k,O=P[1]-I[1]*C.k;return R===C.x&&O===C.y?C:new io(C.k,R,O)}function w(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function N(C,P,I,R){C.on("start.zoom",function(){S(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(R).end()}).tween("zoom",function(){var O=this,$=arguments,q=S(O,$).event(R),z=t.apply(O,$),J=I==null?w(z):typeof I=="function"?I.apply(O,$):I,ne=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),pe=O.__zoom,xe=typeof P=="function"?P.apply(O,$):P,De=c(pe.invert(J).concat(ne/pe.k),xe.invert(J).concat(ne/xe.k));return function(de){if(de===1)de=xe;else{var Pe=De(de),ie=ne/Pe[2];de=new io(ie,J[0]-Pe[0]*ie,J[1]-Pe[1]*ie)}q.zoom(null,de)}})}function S(C,P,I){return!I&&C.__zooming||new k(C,P)}function k(C,P){this.that=C,this.args=P,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,P),this.taps=0}k.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,P){return this.mouse&&C!=="mouse"&&(this.mouse[1]=P.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=P.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=P.invert(this.touch1[0])),this.that.__zoom=P,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var P=Ja(this.that).datum();d.call(C,this.that,new a$e(C,{sourceEvent:this.sourceEvent,target:y,type:C,transform:this.that.__zoom,dispatch:d}),P)}};function _(C,...P){if(!e.apply(this,arguments))return;var I=S(this,P).event(C),R=this.__zoom,O=Math.max(a[0],Math.min(a[1],R.k*Math.pow(2,i.apply(this,arguments)))),$=nc(C);if(I.wheel)(I.mouse[0][0]!==$[0]||I.mouse[0][1]!==$[1])&&(I.mouse[1]=R.invert(I.mouse[0]=$)),clearTimeout(I.wheel);else{if(R.k===O)return;I.mouse=[$,R.invert($)],qx(this),I.start()}Hm(C),I.wheel=setTimeout(q,g),I.zoom("mouse",n(b(x(R,O),I.mouse[0],I.mouse[1]),I.extent,o));function q(){I.wheel=null,I.end()}}function D(C,...P){if(m||!e.apply(this,arguments))return;var I=S(this,P,!0).event(C),R=Ja(C.view).on("mousemove.zoom",J,!0).on("mouseup.zoom",ne,!0),O=nc(C,$),$=C.currentTarget,q=C.clientX,z=C.clientY;N8e(C.view),oN(C),I.mouse=[O,this.__zoom.invert(O)],qx(this),I.start();function J(pe){if(Hm(pe),!I.moved){var xe=pe.clientX-q,De=pe.clientY-z;I.moved=xe*xe+De*De>p}I.event(pe).zoom("mouse",n(b(I.that.__zoom,I.mouse[0]=nc(pe,$),I.mouse[1]),I.extent,o))}function ne(pe){R.on("mousemove.zoom mouseup.zoom",null),S8e(pe.view,I.moved),Hm(pe),I.event(pe).end()}}function A(C,...P){if(e.apply(this,arguments)){var I=this.__zoom,R=nc(C.changedTouches?C.changedTouches[0]:C,this),O=I.invert(R),$=I.k*(C.shiftKey?.5:2),q=n(b(x(I,$),R,O),t.apply(this,P),o);Hm(C),l>0?Ja(this).transition().duration(l).call(N,q,R,C):Ja(this).call(y.transform,q,R,C)}}function E(C,...P){if(e.apply(this,arguments)){var I=C.touches,R=I.length,O=S(this,P,C.changedTouches.length===R).event(C),$,q,z,J;for(oN(C),q=0;q<R;++q)z=I[q],J=nc(z,this),J=[J,this.__zoom.invert(J),z.identifier],O.touch0?!O.touch1&&O.touch0[2]!==J[2]&&(O.touch1=J,O.taps=0):(O.touch0=J,$=!0,O.taps=1+!!u);u&&(u=clearTimeout(u)),$&&(O.taps<2&&(h=J[0],u=setTimeout(function(){u=null},f)),qx(this),O.start())}}function T(C,...P){if(this.__zooming){var I=S(this,P).event(C),R=C.changedTouches,O=R.length,$,q,z,J;for(Hm(C),$=0;$<O;++$)q=R[$],z=nc(q,this),I.touch0&&I.touch0[2]===q.identifier?I.touch0[0]=z:I.touch1&&I.touch1[2]===q.identifier&&(I.touch1[0]=z);if(q=I.that.__zoom,I.touch1){var ne=I.touch0[0],pe=I.touch0[1],xe=I.touch1[0],De=I.touch1[1],de=(de=xe[0]-ne[0])*de+(de=xe[1]-ne[1])*de,Pe=(Pe=De[0]-pe[0])*Pe+(Pe=De[1]-pe[1])*Pe;q=x(q,Math.sqrt(de/Pe)),z=[(ne[0]+xe[0])/2,(ne[1]+xe[1])/2],J=[(pe[0]+De[0])/2,(pe[1]+De[1])/2]}else if(I.touch0)z=I.touch0[0],J=I.touch0[1];else return;I.zoom("touch",n(b(q,z,J),I.extent,o))}}function M(C,...P){if(this.__zooming){var I=S(this,P).event(C),R=C.changedTouches,O=R.length,$,q;for(oN(C),m&&clearTimeout(m),m=setTimeout(function(){m=null},f),$=0;$<O;++$)q=R[$],I.touch0&&I.touch0[2]===q.identifier?delete I.touch0:I.touch1&&I.touch1[2]===q.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(q=nc(q,this),Math.hypot(h[0]-q[0],h[1]-q[1])<v)){var z=Ja(this).on("dblclick.zoom");z&&z.apply(this,arguments)}}}return y.wheelDelta=function(C){return arguments.length?(i=typeof C=="function"?C:mx(+C),y):i},y.filter=function(C){return arguments.length?(e=typeof C=="function"?C:mx(!!C),y):e},y.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:mx(!!C),y):s},y.extent=function(C){return arguments.length?(t=typeof C=="function"?C:mx([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),y):t},y.scaleExtent=function(C){return arguments.length?(a[0]=+C[0],a[1]=+C[1],y):[a[0],a[1]]},y.translateExtent=function(C){return arguments.length?(o[0][0]=+C[0][0],o[1][0]=+C[1][0],o[0][1]=+C[0][1],o[1][1]=+C[1][1],y):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},y.constrain=function(C){return arguments.length?(n=C,y):n},y.duration=function(C){return arguments.length?(l=+C,y):l},y.interpolate=function(C){return arguments.length?(c=C,y):c},y.on=function(){var C=d.on.apply(d,arguments);return C===d?y:C},y.clickDistance=function(C){return arguments.length?(p=(C=+C)*C,y):Math.sqrt(p)},y.tapDistance=function(C){return arguments.length?(v=+C,y):v},y}function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(n),!0).forEach(function(i){m$e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function mC(e){"@babel/helpers - typeof";return mC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mC(e)}function m$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ci.apply(this,arguments)}function f$e(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function as(e,t){if(e==null)return{};var n=f$e(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function ar(e,t){return p$e(e)||g$e(e,t)||v$e(e,t)||x$e()}function p$e(e){if(Array.isArray(e))return e}function g$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],s=!0,a=!1,o,l;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(i.push(o.value),!(t&&i.length===t));s=!0);}catch(c){a=!0,l=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(a)throw l}}return i}}function v$e(e,t){if(e){if(typeof e=="string")return PD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PD(e,t)}}function PD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function x$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y$e=["width","height","projection","projectionConfig"],b$e=_z,w$e=as(MDe,["geoPath"]),Oa=j.createContext(),j$e=function(t){var n=t.projectionConfig,i=n===void 0?{}:n,s=t.projection,a=s===void 0?"geoEqualEarth":s,o=t.width,l=o===void 0?800:o,c=t.height,d=c===void 0?600:c,u=typeof a=="function";if(u)return a;var h=w$e[a]().translate([l/2,d/2]),m=[h.center?"center":null,h.rotate?"rotate":null,h.scale?"scale":null,h.parallels?"parallels":null];return m.forEach(function(f){f&&(h=h[f](i[f]||h[f]()))}),h},oq=function(t){var n=t.width,i=t.height,s=t.projection,a=t.projectionConfig,o=as(t,y$e),l=a.center||[],c=ar(l,2),d=c[0],u=c[1],h=a.rotate||[],m=ar(h,3),f=m[0],g=m[1],p=m[2],v=a.parallels||[],y=ar(v,2),x=y[0],b=y[1],w=a.scale||null,N=j.useMemo(function(){return j$e({projectionConfig:{center:d||d===0||u||u===0?[d,u]:null,rotate:f||f===0||g||g===0?[f,g,p]:null,parallels:x||x===0||b||b===0?[x,b]:null,scale:w},projection:s,width:n,height:i})},[n,i,s,d,u,f,g,p,x,b,w]),S=j.useCallback(N,[N]),k=j.useMemo(function(){return{width:n,height:i,projection:S,path:b$e().projection(S)}},[n,i,S]);return L.createElement(Oa.Provider,ci({value:k},o))};oq.propTypes={width:G.number,height:G.number,projection:G.oneOfType([G.string,G.func]),projectionConfig:G.object};var N$e=["width","height","projection","projectionConfig","className"],ob=j.forwardRef(function(e,t){var n=e.width,i=n===void 0?800:n,s=e.height,a=s===void 0?600:s,o=e.projection,l=o===void 0?"geoEqualEarth":o,c=e.projectionConfig,d=c===void 0?{}:c,u=e.className,h=u===void 0?"":u,m=as(e,N$e);return L.createElement(oq,{width:i,height:a,projection:l,projectionConfig:d},L.createElement("svg",ci({ref:t,viewBox:"0 0 ".concat(i," ").concat(a),className:"rsm-svg ".concat(h)},m)))});ob.displayName="ComposableMap";ob.propTypes={width:G.number,height:G.number,projection:G.oneOfType([G.string,G.func]),projectionConfig:G.object,className:G.string};function ED(e,t,n){var i=(e*n.k-e)/2,s=(t*n.k-t)/2;return[e/2-(i+n.x)/n.k,t/2-(s+n.y)/n.k]}function S$e(e){return fetch(e).then(function(t){if(!t.ok)throw Error(t.statusText);return t.json()}).catch(function(t){console.log("There was a problem when fetching the data: ",t)})}function AD(e,t){var n=e.type==="Topology";if(!n)return t?t(e.features||e):e.features||e;var i=UDe(e,e.objects[Object.keys(e.objects)[0]]).features;return t?t(i):i}function OD(e){var t=e.type==="Topology";if(!t)return null;var n=dD(e,e.objects[Object.keys(e.objects)[0]],function(s,a){return s===a}),i=dD(e,e.objects[Object.keys(e.objects)[0]],function(s,a){return s!==a});return{outline:n,borders:i}}function k$e(e,t,n){return e&&t?{outline:ou(ou({},e),{},{rsmKey:"outline",svgPath:n(e)}),borders:ou(ou({},t),{},{rsmKey:"borders",svgPath:n(t)})}:{}}function C$e(e,t){return e?e.map(function(n,i){return ou(ou({},n),{},{rsmKey:"geo-".concat(i),svgPath:t(n)})}):[]}function _$e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,i=Array.isArray(n)?n:[n,n],s=e/2*i[0],a=t/2*i[1];return"M".concat(0,",",0," Q",-e/2-s,",").concat(-t/2+a," ").concat(-e,",").concat(-t)}function T$e(e){return typeof e=="string"}function P$e(e){var t=e.geography,n=e.parseGeographies,i=j.useContext(Oa),s=i.path,a=j.useState({}),o=ar(a,2),l=o[0],c=o[1];j.useEffect(function(){(typeof window>"u"?"undefined":mC(window))!=="undefined"&&t&&(T$e(t)?S$e(t).then(function(f){f&&c({geographies:AD(f,n),mesh:OD(f)})}):c({geographies:AD(t,n),mesh:OD(t)}))},[t,n]);var d=j.useMemo(function(){var f=l.mesh||{},g=k$e(f.outline,f.borders,s);return{geographies:C$e(l.geographies,s),outline:g.outline,borders:g.borders}},[l,s]),u=d.geographies,h=d.outline,m=d.borders;return{geographies:u,outline:h,borders:m}}var E$e=["geography","children","parseGeographies","className"],lb=j.forwardRef(function(e,t){var n=e.geography,i=e.children,s=e.parseGeographies,a=e.className,o=a===void 0?"":a,l=as(e,E$e),c=j.useContext(Oa),d=c.path,u=c.projection,h=P$e({geography:n,parseGeographies:s}),m=h.geographies,f=h.outline,g=h.borders;return L.createElement("g",ci({ref:t,className:"rsm-geographies ".concat(o)},l),m&&m.length>0&&i({geographies:m,outline:f,borders:g,path:d,projection:u}))});lb.displayName="Geographies";lb.propTypes={geography:G.oneOfType([G.string,G.object,G.array]),children:G.func,parseGeographies:G.func,className:G.string};var A$e=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],tT=j.forwardRef(function(e,t){var n=e.geography,i=e.onMouseEnter,s=e.onMouseLeave,a=e.onMouseDown,o=e.onMouseUp,l=e.onFocus,c=e.onBlur,d=e.style,u=d===void 0?{}:d,h=e.className,m=h===void 0?"":h,f=as(e,A$e),g=j.useState(!1),p=ar(g,2),v=p[0],y=p[1],x=j.useState(!1),b=ar(x,2),w=b[0],N=b[1];function S(T){N(!0),i&&i(T)}function k(T){N(!1),v&&y(!1),s&&s(T)}function _(T){N(!0),l&&l(T)}function D(T){N(!1),v&&y(!1),c&&c(T)}function A(T){y(!0),a&&a(T)}function E(T){y(!1),o&&o(T)}return L.createElement("path",ci({ref:t,tabIndex:"0",className:"rsm-geography ".concat(m),d:n.svgPath,onMouseEnter:S,onMouseLeave:k,onFocus:_,onBlur:D,onMouseDown:A,onMouseUp:E,style:u[v||w?v?"pressed":"hover":"default"]},f))});tT.displayName="Geography";tT.propTypes={geography:G.object,onMouseEnter:G.func,onMouseLeave:G.func,onMouseDown:G.func,onMouseUp:G.func,onFocus:G.func,onBlur:G.func,style:G.object,className:G.string};var ID=j.memo(tT),O$e=["fill","stroke","step","className"],nT=j.forwardRef(function(e,t){var n=e.fill,i=n===void 0?"transparent":n,s=e.stroke,a=s===void 0?"currentcolor":s,o=e.step,l=o===void 0?[10,10]:o,c=e.className,d=c===void 0?"":c,u=as(e,O$e),h=j.useContext(Oa),m=h.path;return L.createElement("path",ci({ref:t,d:m(O3().step(l)()),fill:i,stroke:a,className:"rsm-graticule ".concat(d)},u))});nT.displayName="Graticule";nT.propTypes={fill:G.string,stroke:G.string,step:G.array,className:G.string};j.memo(nT);var I$e=["value"],D$e=j.createContext(),M$e={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},lq=function(t){var n=t.value,i=n===void 0?M$e:n,s=as(t,I$e);return L.createElement(D$e.Provider,ci({value:i},s))};lq.propTypes={x:G.number,y:G.number,k:G.number,transformString:G.string};function R$e(e){var t=e.center,n=e.filterZoomEvent,i=e.onMoveStart,s=e.onMoveEnd,a=e.onMove,o=e.translateExtent,l=o===void 0?[[-1/0,-1/0],[1/0,1/0]]:o,c=e.scaleExtent,d=c===void 0?[1,8]:c,u=e.zoom,h=u===void 0?1:u,m=j.useContext(Oa),f=m.width,g=m.height,p=m.projection,v=ar(t,2),y=v[0],x=v[1],b=j.useState({x:0,y:0,k:1}),w=ar(b,2),N=w[0],S=w[1],k=j.useRef({x:0,y:0,k:1}),_=j.useRef(),D=j.useRef(),A=j.useRef(!1),E=ar(l,2),T=E[0],M=E[1],C=ar(T,2),P=C[0],I=C[1],R=ar(M,2),O=R[0],$=R[1],q=ar(d,2),z=q[0],J=q[1];return j.useEffect(function(){var ne=Ja(_.current);function pe(ie){!i||A.current||i({coordinates:p.invert(ED(f,g,ie.transform)),zoom:ie.transform.k},ie)}function xe(ie){if(!A.current){var me=ie.transform,ve=ie.sourceEvent;S({x:me.x,y:me.y,k:me.k,dragging:ve}),a&&a({x:me.x,y:me.y,zoom:me.k,dragging:ve},ie)}}function De(ie){if(A.current){A.current=!1;return}var me=p.invert(ED(f,g,ie.transform)),ve=ar(me,2),K=ve[0],Ve=ve[1];k.current={x:K,y:Ve,k:ie.transform.k},s&&s({coordinates:[K,Ve],zoom:ie.transform.k},ie)}function de(ie){return n?n(ie):ie?!ie.ctrlKey&&!ie.button:!1}var Pe=h$e().filter(de).scaleExtent([z,J]).translateExtent([[P,I],[O,$]]).on("start",pe).on("zoom",xe).on("end",De);D.current=Pe,ne.call(Pe)},[f,g,P,I,O,$,z,J,p,i,a,s,n]),j.useEffect(function(){if(!(y===k.current.x&&x===k.current.y&&h===k.current.k)){var ne=p([y,x]),pe=ne[0]*h,xe=ne[1]*h,De=Ja(_.current);A.current=!0,De.call(D.current.transform,eT.translate(f/2-pe,g/2-xe).scale(h)),S({x:f/2-pe,y:g/2-xe,k:h}),k.current={x:y,y:x,k:h}}},[y,x,h,f,g,p]),{mapRef:_,position:N,transformString:"translate(".concat(N.x," ").concat(N.y,") scale(").concat(N.k,")")}}var $$e=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],cb=j.forwardRef(function(e,t){var n=e.center,i=n===void 0?[0,0]:n,s=e.zoom,a=s===void 0?1:s,o=e.minZoom,l=o===void 0?1:o,c=e.maxZoom,d=c===void 0?8:c,u=e.translateExtent,h=e.filterZoomEvent,m=e.onMoveStart,f=e.onMove,g=e.onMoveEnd,p=e.className,v=as(e,$$e),y=j.useContext(Oa),x=y.width,b=y.height,w=R$e({center:i,filterZoomEvent:h,onMoveStart:m,onMove:f,onMoveEnd:g,scaleExtent:[l,d],translateExtent:u,zoom:a}),N=w.mapRef,S=w.transformString,k=w.position;return L.createElement(lq,{value:{x:k.x,y:k.y,k:k.k,transformString:S}},L.createElement("g",{ref:N},L.createElement("rect",{width:x,height:b,fill:"transparent"}),L.createElement("g",ci({ref:t,transform:S,className:"rsm-zoomable-group ".concat(p)},v))))});cb.displayName="ZoomableGroup";cb.propTypes={center:G.array,zoom:G.number,minZoom:G.number,maxZoom:G.number,translateExtent:G.arrayOf(G.array),onMoveStart:G.func,onMove:G.func,onMoveEnd:G.func,className:G.string};var L$e=["id","fill","stroke","strokeWidth","className"],rT=j.forwardRef(function(e,t){var n=e.id,i=n===void 0?"rsm-sphere":n,s=e.fill,a=s===void 0?"transparent":s,o=e.stroke,l=o===void 0?"currentcolor":o,c=e.strokeWidth,d=c===void 0?.5:c,u=e.className,h=u===void 0?"":u,m=as(e,L$e),f=j.useContext(Oa),g=f.path,p=j.useMemo(function(){return g({type:"Sphere"})},[g]);return L.createElement(j.Fragment,null,L.createElement("defs",null,L.createElement("clipPath",{id:i},L.createElement("path",{d:p}))),L.createElement("path",ci({ref:t,d:p,fill:a,stroke:l,strokeWidth:d,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(h)},m)))});rT.displayName="Sphere";rT.propTypes={id:G.string,fill:G.string,stroke:G.string,strokeWidth:G.number,className:G.string};j.memo(rT);var U$e=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],cq=j.forwardRef(function(e,t){var n=e.coordinates,i=e.children,s=e.onMouseEnter,a=e.onMouseLeave,o=e.onMouseDown,l=e.onMouseUp,c=e.onFocus,d=e.onBlur,u=e.style,h=u===void 0?{}:u,m=e.className,f=m===void 0?"":m,g=as(e,U$e),p=j.useContext(Oa),v=p.projection,y=j.useState(!1),x=ar(y,2),b=x[0],w=x[1],N=j.useState(!1),S=ar(N,2),k=S[0],_=S[1],D=v(n),A=ar(D,2),E=A[0],T=A[1];function M($){_(!0),s&&s($)}function C($){_(!1),b&&w(!1),a&&a($)}function P($){_(!0),c&&c($)}function I($){_(!1),b&&w(!1),d&&d($)}function R($){w(!0),o&&o($)}function O($){w(!1),l&&l($)}return L.createElement("g",ci({ref:t,transform:"translate(".concat(E,", ").concat(T,")"),className:"rsm-marker ".concat(f),onMouseEnter:M,onMouseLeave:C,onFocus:P,onBlur:I,onMouseDown:R,onMouseUp:O,style:h[b||k?b?"pressed":"hover":"default"]},g),i)});cq.displayName="Marker";cq.propTypes={coordinates:G.array,children:G.oneOfType([G.node,G.arrayOf(G.node)]),onMouseEnter:G.func,onMouseLeave:G.func,onMouseDown:G.func,onMouseUp:G.func,onFocus:G.func,onBlur:G.func,style:G.object,className:G.string};var F$e=["from","to","coordinates","stroke","strokeWidth","fill","className"],dq=j.forwardRef(function(e,t){var n=e.from,i=n===void 0?[0,0]:n,s=e.to,a=s===void 0?[0,0]:s,o=e.coordinates,l=e.stroke,c=l===void 0?"currentcolor":l,d=e.strokeWidth,u=d===void 0?3:d,h=e.fill,m=h===void 0?"transparent":h,f=e.className,g=f===void 0?"":f,p=as(e,F$e),v=j.useContext(Oa),y=v.path,x={type:"LineString",coordinates:o||[i,a]};return L.createElement("path",ci({ref:t,d:y(x),className:"rsm-line ".concat(g),stroke:c,strokeWidth:u,fill:m},p))});dq.displayName="Line";dq.propTypes={from:G.array,to:G.array,coordinates:G.array,stroke:G.string,strokeWidth:G.number,fill:G.string,className:G.string};var B$e=["subject","children","connectorProps","dx","dy","curve","className"],uq=j.forwardRef(function(e,t){var n=e.subject,i=e.children,s=e.connectorProps,a=e.dx,o=a===void 0?30:a,l=e.dy,c=l===void 0?30:l,d=e.curve,u=d===void 0?0:d,h=e.className,m=h===void 0?"":h,f=as(e,B$e),g=j.useContext(Oa),p=g.projection,v=p(n),y=ar(v,2),x=y[0],b=y[1],w=_$e(o,c,u);return L.createElement("g",ci({ref:t,transform:"translate(".concat(x+o,", ").concat(b+c,")"),className:"rsm-annotation ".concat(m)},f),L.createElement("path",ci({d:w,fill:"transparent",stroke:"#000"},s)),i)});uq.displayName="Annotation";uq.propTypes={subject:G.array,children:G.oneOfType([G.node,G.arrayOf(G.node)]),dx:G.number,dy:G.number,curve:G.number,connectorProps:G.object,className:G.string};const DD="https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",W$e=({dateRange:e})=>{var h,m,f,g;const{data:t,isLoading:n}=ba({queryKey:["visitor-sessions",e],queryFn:async()=>{const{data:p,error:v}=await Q.from("visitor_sessions").select("*").gte("created_at",e.from.toISOString()).lte("created_at",e.to.toISOString());if(v)throw v;return p||[]}}),{data:i,isLoading:s}=ba({queryKey:["blocked-attempts",e],queryFn:async()=>{const{data:p,error:v}=await Q.from("geo_blocked_attempts").select("*").gte("created_at",e.from.toISOString()).lte("created_at",e.to.toISOString());if(v)throw v;return p||[]}}),a=L.useMemo(()=>{if(!t)return null;const p=t.reduce((S,k)=>{const _=k.country_code||"UNKNOWN";return S[_]=(S[_]||0)+1,S},{}),v=t.length,y=Object.keys(p).length,x=Object.entries(p).sort((S,k)=>k[1]-S[1])[0],b=new Date(Date.now()-5*60*1e3),w=t.filter(S=>S.last_seen_at&&new Date(S.last_seen_at)>b).length,N=t.reduce((S,k)=>S+(Number(k.page_views)||0),0);return{totalVisitors:v,uniqueCountries:y,topCountry:x?{code:x[0],count:x[1]}:null,activeNow:w,totalPageViews:N,byCountry:p}},[t]),o=L.useMemo(()=>{if(!i)return null;const p=i.reduce((N,S)=>{const k=S.country_code||"UNKNOWN";return N[k]=(N[k]||0)+1,N},{}),v=i.length,y=Object.keys(p).length,x=Object.entries(p).sort((N,S)=>S[1]-N[1])[0],b=new Date(Date.now()-24*60*60*1e3),w=i.filter(N=>N.created_at&&new Date(N.created_at)>b).length;return{totalBlocked:v,uniqueCountries:y,topThreat:x?{code:x[0],count:x[1]}:null,last24h:w,byCountry:p}},[i]),l=a?Math.max(...Object.values(a.byCountry).map(Number)):1,c=o?Math.max(...Object.values(o.byCountry).map(Number)):1,d=sh().domain([0,l]).range(["hsl(var(--muted))","hsl(142, 76%, 36%)"]),u=sh().domain([0,c]).range(["hsl(var(--muted))","hsl(0, 84%, 60%)"]);return n||s?r.jsx("div",{className:"space-y-6",children:r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[...Array(8)].map((p,v)=>r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(_r,{className:"h-4 w-24"}),r.jsx(_r,{className:"h-4 w-4 rounded-full"})]}),r.jsxs(H,{children:[r.jsx(_r,{className:"h-8 w-20"}),r.jsx(_r,{className:"h-3 w-32 mt-2"})]})]},v))})}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Visitors"}),r.jsx(pn,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:(a==null?void 0:a.totalVisitors)||0}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[(a==null?void 0:a.totalPageViews)||0," page views"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Countries Visited"}),r.jsx(Pl,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:(a==null?void 0:a.uniqueCountries)||0}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Top: ",((h=a==null?void 0:a.topCountry)==null?void 0:h.code)||"N/A"," (",String(((m=a==null?void 0:a.topCountry)==null?void 0:m.count)||0),")"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Active Now"}),r.jsx(Ic,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:(a==null?void 0:a.activeNow)||0}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Last 5 minutes"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Avg Views/Visitor"}),r.jsx($s,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold",children:a!=null&&a.totalVisitors?(a.totalPageViews/a.totalVisitors).toFixed(1):"0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Pages per session"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Blocked"}),r.jsx(Be,{className:"h-4 w-4 text-destructive"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold text-destructive",children:(o==null?void 0:o.totalBlocked)||0}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Malicious attempts"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Threat Countries"}),r.jsx(Et,{className:"h-4 w-4 text-destructive"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold text-destructive",children:(o==null?void 0:o.uniqueCountries)||0}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Top: ",((f=o==null?void 0:o.topThreat)==null?void 0:f.code)||"N/A"," (",String(((g=o==null?void 0:o.topThreat)==null?void 0:g.count)||0),")"]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Last 24 Hours"}),r.jsx(Ic,{className:"h-4 w-4 text-destructive"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"text-2xl font-bold text-destructive",children:(o==null?void 0:o.last24h)||0}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Recent blocks"})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Threat Level"}),r.jsx(Be,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsxs(H,{children:[r.jsxs("div",{className:"text-2xl font-bold",children:[o&&o.last24h<10&&r.jsx("span",{className:"text-green-600",children:"Low"}),o&&o.last24h>=10&&o.last24h<50&&r.jsx("span",{className:"text-yellow-600",children:"Medium"}),o&&o.last24h>=50&&r.jsx("span",{className:"text-destructive",children:"High"})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Security status"})]})]})]}),r.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Pl,{className:"h-5 w-5 text-green-600"}),"Legitimate Traffic"]}),r.jsx(wt,{children:"Geographic distribution of allowed visitors"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"w-full h-[400px]",children:r.jsx(ob,{projectionConfig:{scale:140},children:r.jsx(cb,{children:r.jsx(lb,{geography:DD,children:({geographies:p})=>p.map(v=>{const y=v.id,x=(a==null?void 0:a.byCountry[y])||0;return r.jsx(ID,{geography:v,fill:x>0?d(x):"hsl(var(--muted))",stroke:"hsl(var(--border))",strokeWidth:.5,style:{default:{outline:"none"},hover:{fill:"hsl(142, 76%, 26%)",outline:"none",cursor:"pointer"},pressed:{outline:"none"}}},v.rsmKey)})})})})}),r.jsxs("div",{className:"flex items-center justify-between mt-4 text-xs text-muted-foreground",children:[r.jsx("span",{children:"Light = Few visitors"}),r.jsx("span",{children:"Dark = Many visitors"})]})]})]}),r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Be,{className:"h-5 w-5 text-destructive"}),"Blocked Traffic"]}),r.jsx(wt,{children:"Geographic sources of blocked attempts"})]}),r.jsxs(H,{children:[r.jsx("div",{className:"w-full h-[400px]",children:r.jsx(ob,{projectionConfig:{scale:140},children:r.jsx(cb,{children:r.jsx(lb,{geography:DD,children:({geographies:p})=>p.map(v=>{const y=v.id,x=(o==null?void 0:o.byCountry[y])||0;return r.jsx(ID,{geography:v,fill:x>0?u(x):"hsl(var(--muted))",stroke:"hsl(var(--border))",strokeWidth:.5,style:{default:{outline:"none"},hover:{fill:"hsl(0, 84%, 50%)",outline:"none",cursor:"pointer"},pressed:{outline:"none"}}},v.rsmKey)})})})})}),r.jsxs("div",{className:"flex items-center justify-between mt-4 text-xs text-muted-foreground",children:[r.jsx("span",{children:"Light = Few attempts"}),r.jsx("span",{children:"Dark = Many attempts"})]})]})]})]})]})},z$e=["infidelity","child_custody","asset_search","background_check","surveillance","corporate","insurance","other"],q$e=["new","submitted","in_progress","completed"],H$e=({filters:e,onFilterChange:t})=>{var l,c,d,u,h,m;const n=f=>{t({...e,search:f.target.value})},i=f=>{const g=e.caseTypes||[],p=g.includes(f)?g.filter(v=>v!==f):[...g,f];t({...e,caseTypes:p})},s=f=>{const g=e.statuses||[],p=g.includes(f)?g.filter(v=>v!==f):[...g,f];t({...e,statuses:p})},a=()=>{t({})},o=(e.search?1:0)+(((l=e.caseTypes)==null?void 0:l.length)||0)+(((c=e.statuses)==null?void 0:c.length)||0);return r.jsxs("div",{className:"space-y-4 p-4 border rounded-lg bg-card",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Pi,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-muted-foreground"}),r.jsx(he,{placeholder:"Search by name, email, or case reference...",value:e.search||"",onChange:n,className:"pl-10"})]}),o>0&&r.jsxs(V,{onClick:a,variant:"outline",size:"sm",children:[r.jsx(pa,{className:"w-4 h-4 mr-1"}),"Clear (",o,")"]})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(un,{onValueChange:i,children:[r.jsx(nn,{className:"w-[180px]",children:r.jsx(hn,{placeholder:"Case Type"})}),r.jsx(rn,{children:z$e.map(f=>r.jsx(be,{value:f,children:f.replace("_"," ").toUpperCase()},f))})]}),r.jsxs(un,{onValueChange:s,children:[r.jsx(nn,{className:"w-[180px]",children:r.jsx(hn,{placeholder:"Status"})}),r.jsx(rn,{children:q$e.map(f=>r.jsx(be,{value:f,children:f.replace("_"," ").toUpperCase()},f))})]})]}),(d=e.caseTypes)!=null&&d.length||(u=e.statuses)!=null&&u.length?r.jsxs("div",{className:"flex flex-wrap gap-2",children:[(h=e.caseTypes)==null?void 0:h.map(f=>r.jsxs(Je,{variant:"secondary",children:[f.replace("_"," "),r.jsx(pa,{className:"w-3 h-3 ml-1 cursor-pointer",onClick:()=>i(f)})]},f)),(m=e.statuses)==null?void 0:m.map(f=>r.jsxs(Je,{variant:"secondary",children:[f.replace("_"," "),r.jsx(pa,{className:"w-3 h-3 ml-1 cursor-pointer",onClick:()=>s(f)})]},f))]}):null]})};var iT="Dialog",[hq,mq]=Ca(iT),[V$e,Vs]=hq(iT),fq=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:o=!0}=e,l=j.useRef(null),c=j.useRef(null),[d=!1,u]=Rs({prop:i,defaultProp:s,onChange:a});return r.jsx(V$e,{scope:t,triggerRef:l,contentRef:c,contentId:Is(),titleId:Is(),descriptionId:Is(),open:d,onOpenChange:u,onOpenToggle:j.useCallback(()=>u(h=>!h),[u]),modal:o,children:n})};fq.displayName=iT;var pq="DialogTrigger",gq=j.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vs(pq,n),a=ut(t,s.triggerRef);return r.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":oT(s.open),...i,ref:a,onClick:Ee(e.onClick,s.onOpenToggle)})});gq.displayName=pq;var sT="DialogPortal",[G$e,vq]=hq(sT,{forceMount:void 0}),xq=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,a=Vs(sT,t);return r.jsx(G$e,{scope:t,forceMount:n,children:j.Children.map(i,o=>r.jsx(zs,{present:n||a.open,children:r.jsx(Ng,{asChild:!0,container:s,children:o})}))})};xq.displayName=sT;var db="DialogOverlay",yq=j.forwardRef((e,t)=>{const n=vq(db,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Vs(db,e.__scopeDialog);return a.modal?r.jsx(zs,{present:i||a.open,children:r.jsx(Y$e,{...s,ref:t})}):null});yq.displayName=db;var Y$e=j.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vs(db,n);return r.jsx(ew,{as:_l,allowPinchZoom:!0,shards:[s.contentRef],children:r.jsx(ze.div,{"data-state":oT(s.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),sd="DialogContent",bq=j.forwardRef((e,t)=>{const n=vq(sd,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Vs(sd,e.__scopeDialog);return r.jsx(zs,{present:i||a.open,children:a.modal?r.jsx(K$e,{...s,ref:t}):r.jsx(X$e,{...s,ref:t})})});bq.displayName=sd;var K$e=j.forwardRef((e,t)=>{const n=Vs(sd,e.__scopeDialog),i=j.useRef(null),s=ut(t,n.contentRef,i);return j.useEffect(()=>{const a=i.current;if(a)return e5(a)},[]),r.jsx(wq,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault())})}),X$e=j.forwardRef((e,t)=>{const n=Vs(sd,e.__scopeDialog),i=j.useRef(!1),s=j.useRef(!1);return r.jsx(wq,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),wq=j.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...o}=e,l=Vs(sd,n),c=j.useRef(null),d=ut(t,c);return J_(),r.jsxs(r.Fragment,{children:[r.jsx(Jb,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:r.jsx(Mh,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":oT(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(J$e,{titleId:l.titleId}),r.jsx(eLe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),aT="DialogTitle",jq=j.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vs(aT,n);return r.jsx(ze.h2,{id:s.titleId,...i,ref:t})});jq.displayName=aT;var Nq="DialogDescription",Sq=j.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vs(Nq,n);return r.jsx(ze.p,{id:s.descriptionId,...i,ref:t})});Sq.displayName=Nq;var kq="DialogClose",Cq=j.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Vs(kq,n);return r.jsx(ze.button,{type:"button",...i,ref:t,onClick:Ee(e.onClick,()=>s.onOpenChange(!1))})});Cq.displayName=kq;function oT(e){return e?"open":"closed"}var _q="DialogTitleWarning",[Q$e,Tq]=DY(_q,{contentName:sd,titleName:aT,docsSlug:"dialog"}),J$e=({titleId:e})=>{const t=Tq(_q),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return j.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Z$e="DialogDescriptionWarning",eLe=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Tq(Z$e).contentName}}.`;return j.useEffect(()=>{var a;const s=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Pq=fq,Eq=gq,Aq=xq,lT=yq,cT=bq,dT=jq,uT=Sq,hT=Cq;const mT=Pq,tLe=Eq,nLe=Aq,Oq=j.forwardRef(({className:e,...t},n)=>r.jsx(lT,{ref:n,className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Oq.displayName=lT.displayName;const sj=j.forwardRef(({className:e,children:t,...n},i)=>r.jsxs(nLe,{children:[r.jsx(Oq,{}),r.jsxs(cT,{ref:i,className:je("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(hT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[r.jsx(pa,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));sj.displayName=cT.displayName;const aj=({className:e,...t})=>r.jsx("div",{className:je("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});aj.displayName="DialogHeader";const Iq=({className:e,...t})=>r.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Iq.displayName="DialogFooter";const oj=j.forwardRef(({className:e,...t},n)=>r.jsx(dT,{ref:n,className:je("text-lg font-semibold leading-none tracking-tight",e),...t}));oj.displayName=dT.displayName;const rLe=j.forwardRef(({className:e,...t},n)=>r.jsx(uT,{ref:n,className:je("text-sm text-muted-foreground",e),...t}));rLe.displayName=uT.displayName;const Bf={async fetchIntakeForms(e){let t=Q.from("client_intake_forms").select("*").order("submitted_at",{ascending:!1});e!=null&&e.search&&(t=t.or(`client_name.ilike.%${e.search}%,client_email.ilike.%${e.search}%,case_reference.ilike.%${e.search}%`)),e!=null&&e.caseTypes&&e.caseTypes.length>0&&(t=t.in("case_type",e.caseTypes)),e!=null&&e.statuses&&e.statuses.length>0&&(t=t.in("form_status",e.statuses)),e!=null&&e.dateFrom&&(t=t.gte("submitted_at",e.dateFrom.toISOString())),e!=null&&e.dateTo&&(t=t.lte("submitted_at",e.dateTo.toISOString())),e!=null&&e.assignedInvestigator&&(t=t.eq("assigned_investigator",e.assignedInvestigator));const{data:n,error:i}=await t;if(i)throw i;return n},async fetchIntakeFormById(e){const{data:t,error:n}=await Q.from("client_intake_forms").select("*").eq("id",e).single();if(n)throw n;return t},async updateIntakeFormStatus(e,t){const{error:n}=await Q.from("client_intake_forms").update({form_status:t,updated_at:new Date().toISOString()}).eq("id",e);if(n)throw n},async assignInvestigator(e,t){const{error:n}=await Q.from("client_intake_forms").update({assigned_investigator:t,updated_at:new Date().toISOString()}).eq("id",e);if(n)throw n},async addInternalNote(e,t){const{error:n}=await Q.from("client_intake_forms").update({investigator_notes:t,updated_at:new Date().toISOString()}).eq("id",e);if(n)throw n},async decryptSSN(e,t){const{data:n,error:i}=await Q.rpc("decrypt_ssn",{encrypted_data:e,form_id:t||null});if(i)throw i;return n},async fetchIntakeFormAudit(e){const{data:t,error:n}=await Q.from("intake_form_audit").select("*").eq("form_id",e).order("created_at",{ascending:!1});if(n)throw n;return t},async getEvidenceFiles(e){const{data:t,error:n}=await Q.storage.from("intake-evidence").list(e);if(n)throw n;return t},async getEvidenceFileUrl(e){const{data:t,error:n}=await Q.storage.from("intake-evidence").createSignedUrl(e,3600);if(n)throw n;return t.signedUrl},async fetchStats(){const{data:e,error:t}=await Q.from("client_intake_forms").select("form_status");if(t)throw t;return{total:e.length,new:e.filter(i=>i.form_status==="new").length,assigned:e.filter(i=>i.form_status==="in_progress").length,completed:e.filter(i=>i.form_status==="completed").length}}},iLe=({form:e,open:t,onClose:n,onUpdate:i})=>{const[s,a]=j.useState("client"),[o,l]=j.useState(e.form_status),[c,d]=j.useState(e.investigator_notes||""),[u,h]=j.useState(!1),[m,f]=j.useState(null),{toast:g}=Lt(),p=async()=>{h(!0);try{await Bf.updateIntakeFormStatus(e.id,o),g({title:"Status updated",description:"Case status has been updated successfully"}),i()}catch(x){g({title:"Error updating status",description:x instanceof Error?x.message:"Unknown error",variant:"destructive"})}finally{h(!1)}},v=async()=>{h(!0);try{await Bf.addInternalNote(e.id,c),g({title:"Notes saved",description:"Internal notes have been saved successfully"}),i()}catch(x){g({title:"Error saving notes",description:x instanceof Error?x.message:"Unknown error",variant:"destructive"})}finally{h(!1)}},y=async()=>{if(e.subject_ssn_encrypted)try{const x=await Bf.decryptSSN(e.subject_ssn_encrypted);f(x),setTimeout(()=>f(null),3e4),g({title:"SSN Decrypted",description:"SSN will be hidden after 30 seconds"})}catch(x){g({title:"Error decrypting SSN",description:x instanceof Error?x.message:"Unauthorized",variant:"destructive"})}};return r.jsx(mT,{open:t,onOpenChange:n,children:r.jsxs(sj,{className:"max-w-4xl max-h-[90vh] overflow-y-auto",children:[r.jsx(aj,{children:r.jsxs(oj,{className:"flex items-center gap-2",children:[r.jsx(Ct,{className:"w-5 h-5"}),"Case ",e.case_reference]})}),r.jsxs(Ml,{value:s,onValueChange:a,children:[r.jsxs(xo,{className:"grid w-full grid-cols-4",children:[r.jsx(gt,{value:"client",children:"Client & Subject"}),r.jsx(gt,{value:"case",children:"Case Details"}),r.jsx(gt,{value:"evidence",children:"Evidence"}),r.jsx(gt,{value:"admin",children:"Admin"})]}),r.jsxs(vt,{value:"client",className:"space-y-4",children:[r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Gi,{className:"w-4 h-4"}),"Client Information"]})}),r.jsxs(H,{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Name:"}),r.jsx("p",{children:e.client_name})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Email:"}),r.jsx("p",{children:e.client_email})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Phone:"}),r.jsx("p",{children:e.client_phone})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Address:"}),r.jsx("p",{children:e.client_address||"-"})]})]})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Subject Information"})}),r.jsxs(H,{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Name:"}),r.jsx("p",{children:e.subject_name||"-"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"DOB:"}),r.jsx("p",{children:e.subject_dob?He(new Date(e.subject_dob),"MMM d, yyyy"):"-"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Gender:"}),r.jsx("p",{children:e.subject_gender||"-"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Email:"}),r.jsx("p",{children:e.subject_email||"-"})]}),e.subject_ssn_encrypted&&r.jsxs("div",{className:"col-span-2",children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"SSN:"}),m?r.jsx("p",{className:"font-mono text-red-600",children:m}):r.jsxs(V,{onClick:y,variant:"outline",size:"sm",children:[r.jsx(Be,{className:"w-4 h-4 mr-1"}),"Decrypt SSN (Admin Only)"]})]}),e.subject_phones&&e.subject_phones.length>0&&r.jsxs("div",{className:"col-span-2",children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Phone Numbers:"}),r.jsx("p",{children:e.subject_phones.join(", ")})]})]})]})]}),r.jsx(vt,{value:"case",className:"space-y-4",children:r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Case Details"})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Case Type:"}),r.jsx("p",{children:r.jsx(Je,{children:e.case_type})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Status:"}),r.jsx("p",{children:r.jsx(Je,{children:e.form_status})})]}),e.budget&&r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Budget:"}),r.jsx("p",{children:e.budget})]}),e.deadline&&r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Deadline:"}),r.jsx("p",{children:He(new Date(e.deadline),"MMM d, yyyy")})]})]}),e.case_description&&r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Description:"}),r.jsx("p",{className:"mt-1",children:e.case_description})]}),e.indicator_flags&&e.indicator_flags.length>0&&r.jsxs("div",{children:[r.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Indicators:"}),r.jsx("div",{className:"flex flex-wrap gap-2 mt-1",children:e.indicator_flags.map(x=>r.jsx(Je,{variant:"outline",children:x},x))})]})]})]})}),r.jsx(vt,{value:"evidence",className:"space-y-4",children:r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Evidence Files"})}),r.jsx(H,{children:e.evidence_files?r.jsxs("div",{className:"space-y-2",children:[r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Evidence files are stored in case folder: ",e.case_reference]}),r.jsxs(V,{variant:"outline",children:[r.jsx(Vu,{className:"w-4 h-4 mr-2"}),"Download All Evidence"]})]}):r.jsx("p",{className:"text-muted-foreground",children:"No evidence files attached"})})]})}),r.jsx(vt,{value:"admin",className:"space-y-4",children:r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Admin Actions"})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Update Status"}),r.jsxs("div",{className:"flex gap-2 mt-2",children:[r.jsxs(un,{value:o,onValueChange:l,children:[r.jsx(nn,{children:r.jsx(hn,{})}),r.jsxs(rn,{children:[r.jsx(be,{value:"new",children:"New"}),r.jsx(be,{value:"in_progress",children:"In Progress"}),r.jsx(be,{value:"completed",children:"Completed"})]})]}),r.jsxs(V,{onClick:p,disabled:u,children:[r.jsx(eu,{className:"w-4 h-4 mr-2"}),"Update"]})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Internal Notes"}),r.jsx(di,{value:c,onChange:x=>d(x.target.value),placeholder:"Add internal notes about this case...",className:"mt-2",rows:5}),r.jsxs(V,{onClick:v,disabled:u,className:"mt-2",children:[r.jsx(eu,{className:"w-4 h-4 mr-2"}),"Save Notes"]})]})]})]})})]})]})})},sLe=()=>{const[e,t]=j.useState([]),[n,i]=j.useState({total:0,new:0,assigned:0,completed:0}),[s,a]=j.useState({}),[o,l]=j.useState(null),[c,d]=j.useState(!0),{toast:u}=Lt();j.useEffect(()=>{h()},[s]);const h=async()=>{d(!0);try{const[f,g]=await Promise.all([Bf.fetchIntakeForms(s),Bf.fetchStats()]);t(f),i(g)}catch(f){u({title:"Error loading intake forms",description:f instanceof Error?f.message:"Unknown error",variant:"destructive"})}finally{d(!1)}},m=f=>{const p={new:{variant:"default",className:"bg-blue-100 text-blue-800"},in_progress:{variant:"default",className:"bg-yellow-100 text-yellow-800"},completed:{variant:"default",className:"bg-green-100 text-green-800"},submitted:{variant:"default",className:"bg-purple-100 text-purple-800"}}[f]||{variant:"outline",className:""};return r.jsx(Je,{variant:p.variant,className:p.className,children:f.replace("_"," ").toUpperCase()})};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Submissions"}),r.jsx(Ct,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold",children:n.total})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"New Cases"}),r.jsx(Sn,{className:"h-4 w-4 text-blue-600"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold text-blue-600",children:n.new})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Assigned"}),r.jsx(pn,{className:"h-4 w-4 text-yellow-600"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:n.assigned})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Completed"}),r.jsx(we,{className:"h-4 w-4 text-green-600"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold text-green-600",children:n.completed})})]})]}),r.jsx(H$e,{filters:s,onFilterChange:a}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Intake Forms"})}),r.jsx(H,{children:c?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(fu,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):e.length===0?r.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No intake forms found"}):r.jsxs(Og,{children:[r.jsx(Ig,{children:r.jsxs(Zt,{children:[r.jsx(na,{children:"Case Ref"}),r.jsx(na,{children:"Client Name"}),r.jsx(na,{children:"Case Type"}),r.jsx(na,{children:"Status"}),r.jsx(na,{children:"Submitted"}),r.jsx(na,{children:"Actions"})]})}),r.jsx(Dg,{children:e.map(f=>r.jsxs(Zt,{children:[r.jsx(Ze,{className:"font-mono text-sm",children:f.case_reference}),r.jsx(Ze,{children:f.client_name}),r.jsx(Ze,{children:r.jsx(Je,{variant:"outline",children:f.case_type.replace("_"," ")})}),r.jsx(Ze,{children:m(f.form_status)}),r.jsx(Ze,{children:f.submitted_at?He(new Date(f.submitted_at),"MMM d, yyyy"):"-"}),r.jsx(Ze,{children:r.jsxs(V,{onClick:()=>l(f),variant:"ghost",size:"sm",children:[r.jsx(ai,{className:"w-4 h-4 mr-1"}),"View"]})})]},f.id))})]})})]}),o&&r.jsx(iLe,{form:o,open:!!o,onClose:()=>l(null),onUpdate:h})]})},aLe=({user:e,onLogout:t})=>{const[n,i]=j.useState("overview"),[s,a]=j.useState({from:js(new Date,30),to:new Date});return r.jsx(RU,{user:e,children:r.jsx("div",{className:"min-h-screen bg-background p-6",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs("div",{className:"mb-8 flex justify-between items-center",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Admin Dashboard"}),r.jsx(Be,{className:"w-6 h-6 text-green-600"})]}),r.jsxs("p",{className:"text-text-secondary",children:["Welcome back, ",e.email]})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[r.jsx(Gi,{size:16}),r.jsx("span",{children:e.email})]}),t&&r.jsxs(V,{variant:"outline",onClick:t,className:"flex items-center gap-2",children:[r.jsx(Eb,{size:16}),"Logout"]})]})]}),r.jsxs(Ml,{value:n,onValueChange:i,className:"space-y-6",children:[r.jsxs(xo,{className:"grid w-full grid-cols-3 md:grid-cols-5 lg:grid-cols-11 gap-1",children:[r.jsxs(gt,{value:"overview",className:"flex items-center gap-2",children:[r.jsx(NK,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),r.jsxs(gt,{value:"analytics",className:"flex items-center gap-2",children:[r.jsx($s,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Analytics"})]}),r.jsxs(gt,{value:"intake-forms",className:"flex items-center gap-2",children:[r.jsx(OK,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Intakes"})]}),r.jsxs(gt,{value:"leads",className:"flex items-center gap-2",children:[r.jsx(pn,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Leads"})]}),r.jsxs(gt,{value:"geo-security",className:"flex items-center gap-2",children:[r.jsx(Pl,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Geo"})]}),r.jsxs(gt,{value:"geographic",className:"flex items-center gap-2",children:[r.jsx(Px,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Maps"})]}),r.jsxs(gt,{value:"test",className:"flex items-center gap-2",children:[r.jsx(b2,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Test"})]}),r.jsxs(gt,{value:"n8n",className:"flex items-center gap-2",children:[r.jsx(C_,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"N8N"})]}),r.jsxs(gt,{value:"blog",className:"flex items-center gap-2",children:[r.jsx(Ct,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Blog"})]}),r.jsxs(gt,{value:"settings",className:"flex items-center gap-2",children:[r.jsx(e$,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Settings"})]}),r.jsxs(gt,{value:"oauth-security",className:"flex items-center gap-2",children:[r.jsx(yl,{size:16}),r.jsx("span",{className:"hidden sm:inline",children:"Security"})]})]}),r.jsxs(vt,{value:"overview",className:"space-y-6",children:[r.jsx("div",{className:"mb-4",children:r.jsx(D6,{dateRange:s,onDateRangeChange:a})}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[r.jsx(AOe,{startDate:(s==null?void 0:s.from)||js(new Date,30),endDate:(s==null?void 0:s.to)||new Date}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Quick Actions"})}),r.jsxs(H,{className:"space-y-2",children:[r.jsx(V,{className:"w-full justify-start",variant:"outline",onClick:()=>i("analytics"),children:"View Analytics Dashboard"}),r.jsx(V,{className:"w-full justify-start",variant:"outline",onClick:()=>i("intake-forms"),children:"View Intake Forms"}),r.jsx(V,{className:"w-full justify-start",variant:"outline",onClick:()=>i("leads"),children:"View Leads Dashboard"})]})]})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Be,{className:"w-5 h-5 text-green-600"}),"Security Status"]})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"bg-green-50 border-l-4 border-green-400 p-4",children:[r.jsx("h4",{className:"font-semibold text-green-800 mb-2",children:"β
Security Enhanced"}),r.jsx("p",{className:"text-green-700 text-sm",children:"All critical security fixes implemented including secure API key management, proper RLS policies, and role-based access control."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"N8N Webhook"}),r.jsx("span",{className:"text-green-600 font-medium",children:"β Connected"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"OAuth Encryption"}),r.jsx("span",{className:"text-green-600 font-medium",children:"β Active"})]}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{children:"RLS Policies"}),r.jsx("span",{className:"text-green-600 font-medium",children:"β Enabled"})]})]})]})]})]}),r.jsxs(vt,{value:"analytics",className:"space-y-6",children:[r.jsx("div",{className:"mb-4",children:r.jsx(D6,{dateRange:s,onDateRangeChange:a})}),r.jsxs(Ml,{defaultValue:"leads",className:"w-full",children:[r.jsxs(xo,{className:"grid grid-cols-3 w-full max-w-md",children:[r.jsx(gt,{value:"leads",children:"Leads"}),r.jsx(gt,{value:"intakes",children:"Intakes"}),r.jsx(gt,{value:"traffic",children:"Traffic"})]}),r.jsx(vt,{value:"leads",className:"mt-6",children:r.jsx(TOe,{startDate:(s==null?void 0:s.from)||js(new Date,30),endDate:(s==null?void 0:s.to)||new Date})}),r.jsx(vt,{value:"intakes",className:"mt-6",children:r.jsx(POe,{startDate:(s==null?void 0:s.from)||js(new Date,30),endDate:(s==null?void 0:s.to)||new Date})}),r.jsx(vt,{value:"traffic",className:"mt-6",children:r.jsx(EOe,{startDate:(s==null?void 0:s.from)||js(new Date,30),endDate:(s==null?void 0:s.to)||new Date})})]})]}),r.jsx(vt,{value:"intake-forms",children:r.jsx(sLe,{})}),r.jsx(vt,{value:"test",children:r.jsx(MU,{})}),r.jsx(vt,{value:"n8n",children:r.jsx(ude,{})}),r.jsx(vt,{value:"leads",children:r.jsx(lde,{})}),r.jsx(vt,{value:"blog",children:r.jsxs("div",{className:"space-y-6",children:[r.jsx(ide,{}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Blog Management Instructions"})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"bg-blue-50 border-l-4 border-blue-400 p-4",children:[r.jsx("h4",{className:"font-semibold text-blue-800 mb-2",children:"Static Mode (Current)"}),r.jsx("p",{className:"text-blue-700 text-sm",children:"Blog posts are loaded from static files. Content is managed directly in the codebase."})]}),r.jsxs("div",{className:"bg-green-50 border-l-4 border-green-400 p-4",children:[r.jsx("h4",{className:"font-semibold text-green-800 mb-2",children:"Dynamic Mode (Requires Supabase)"}),r.jsx("p",{className:"text-green-700 text-sm mb-2",children:"Blog posts are loaded from a database. New content can be published via API."}),r.jsxs("ul",{className:"text-green-700 text-sm list-disc list-inside space-y-1",children:[r.jsx("li",{children:"Connect to Supabase to enable dynamic mode"}),r.jsx("li",{children:"Use the provided REST API endpoint for n8n integration"}),r.jsx("li",{children:"Real-time content updates without code changes"})]})]})]})]})]})}),r.jsx(vt,{value:"settings",children:r.jsx("div",{className:"space-y-6",children:r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Be,{className:"w-5 h-5 text-green-600"}),"Security Configuration"]})}),r.jsx(H,{className:"space-y-4",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsxs("h4",{className:"font-semibold mb-2 flex items-center gap-2",children:[r.jsx(Be,{className:"w-4 h-4 text-green-600"}),"Authentication"]}),r.jsx("p",{className:"text-sm text-text-secondary mb-2",children:"Enhanced admin authentication with:"}),r.jsxs("ul",{className:"text-sm space-y-1",children:[r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Role-based Access Control"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Supabase Authentication"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Secure Session Management"]})]})]}),r.jsxs("div",{children:[r.jsxs("h4",{className:"font-semibold mb-2 flex items-center gap-2",children:[r.jsx(Be,{className:"w-4 h-4 text-green-600"}),"Data Security"]}),r.jsx("p",{className:"text-sm text-text-secondary mb-2",children:"Lead processing is secured with:"}),r.jsxs("ul",{className:"text-sm space-y-1",children:[r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Secure Edge Functions"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Encrypted API Keys"]}),r.jsxs("li",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Row Level Security"]})]})]})]})})]})})}),r.jsx(vt,{value:"oauth-security",children:r.jsx(mde,{})}),r.jsx(vt,{value:"geo-security",children:r.jsx(j6e,{dateRange:{from:(s==null?void 0:s.from)||js(new Date,30),to:(s==null?void 0:s.to)||new Date}})}),r.jsx(vt,{value:"geographic",children:r.jsx(W$e,{dateRange:{from:(s==null?void 0:s.from)||js(new Date,30),to:(s==null?void 0:s.to)||new Date}})})]})]})})})},oLe=()=>{const[e,t]=j.useState(null),[n,i]=j.useState(null),[s,a]=j.useState(!0);j.useEffect(()=>{const{data:{subscription:c}}=Q.auth.onAuthStateChange((d,u)=>{i(u),t((u==null?void 0:u.user)??null),d==="SIGNED_IN"?_t.info("Admin session established"):d==="SIGNED_OUT"&&_t.info("Admin session ended")});return Q.auth.getSession().then(({data:{session:d}})=>{i(d),t((d==null?void 0:d.user)??null),a(!1)}),()=>c.unsubscribe()},[]);const o=()=>{_t.info("Admin authentication completed")},l=async()=>{try{const{error:c}=await Q.auth.signOut();c?(console.error("Logout error:",c),_t.error("Admin logout failed",{error:c.message})):_t.info("Admin logged out successfully")}catch(c){console.error("Logout error:",c),_t.error("Admin logout error",{error:c instanceof Error?c.message:"Unknown error"})}};return s?r.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-trident-purple"})}):!e||!n?r.jsx(n5,{onAuthSuccess:o}):r.jsx(aLe,{user:e,onLogout:l})},lLe=()=>r.jsx(oLe,{}),cLe=["Surveillance Operations","Asset Investigation","Background Checks","Court Document Research","Witness Interviews","Report Writing","Client Consultation","Travel Time","Administrative Work","Other"],dLe=()=>{const[e,t]=j.useState(null),[n,i]=j.useState(null),[s,a]=j.useState(!0),[o,l]=j.useState([]),[c,d]=j.useState(""),[u,h]=j.useState(""),[m,f]=j.useState(!1),{toast:g}=Lt();j.useEffect(()=>{const k=localStorage.getItem("timesheet-entries"),_=localStorage.getItem("timesheet-recipient-email"),D=localStorage.getItem("timesheet-sender-name");if(k)try{l(JSON.parse(k))}catch(A){console.error("Error parsing saved entries:",A)}_&&d(_),D&&h(D)},[]),j.useEffect(()=>{localStorage.setItem("timesheet-entries",JSON.stringify(o))},[o]),j.useEffect(()=>{localStorage.setItem("timesheet-recipient-email",c)},[c]),j.useEffect(()=>{localStorage.setItem("timesheet-sender-name",u)},[u]),j.useEffect(()=>{const{data:{subscription:k}}=Q.auth.onAuthStateChange((_,D)=>{i(D),t((D==null?void 0:D.user)??null)});return Q.auth.getSession().then(({data:{session:_}})=>{i(_),t((_==null?void 0:_.user)??null),a(!1)}),()=>k.unsubscribe()},[]);const p=()=>{},v=()=>{const k={id:Date.now().toString(),date:new Date().toISOString().split("T")[0],service:"",hours:0,description:"",hourlyRate:150};l([...o,k])},y=(k,_,D)=>{l(o.map(A=>A.id===k?{...A,[_]:D}:A))},x=k=>{l(o.filter(_=>_.id!==k))},b=()=>o.reduce((k,_)=>k+_.hours*_.hourlyRate,0),w=()=>{const D=[["Date","Service","Hours","Description","Hourly Rate","Amount"],...o.map(M=>[M.date,M.service,M.hours.toString(),M.description,M.hourlyRate.toString(),(M.hours*M.hourlyRate).toFixed(2)])].map(M=>M.map(C=>`"${C.toString().replace(/"/g,'""')}"`).join(",")).join(`
`),A=new Blob([D],{type:"text/csv"}),E=window.URL.createObjectURL(A),T=document.createElement("a");T.href=E,T.download=`timesheet-${new Date().toISOString().split("T")[0]}.csv`,document.body.appendChild(T),T.click(),window.URL.revokeObjectURL(E),document.body.removeChild(T),g({title:"Export Successful",description:"Timesheet has been exported to CSV."})},N=async()=>{if(!c.trim()){g({title:"Email Required",description:"Please enter a recipient email address.",variant:"destructive"});return}if(o.length===0){g({title:"No Entries",description:"Please add timesheet entries before sending.",variant:"destructive"});return}f(!0);try{const{data:k,error:_}=await Q.functions.invoke("send-timesheet-report",{body:{entries:o,totalAmount:b(),recipientEmail:c.trim(),senderName:u.trim()||void 0}});if(_)throw _;g({title:"Report Sent",description:`Timesheet report has been emailed to ${c}`})}catch(k){console.error("Error sending report:",k),g({title:"Send Failed",description:k.message||"Failed to send timesheet report. Please try again.",variant:"destructive"})}finally{f(!1)}},S=()=>{l([]),d(""),h(""),localStorage.removeItem("timesheet-entries"),localStorage.removeItem("timesheet-recipient-email"),localStorage.removeItem("timesheet-sender-name"),g({title:"Reset Complete",description:"All timesheet data has been cleared."})};return s?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):!e||!n?r.jsx(n5,{onAuthSuccess:p}):r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Admin Timesheets - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-background p-6",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Timesheet Management"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(V,{variant:"outline",onClick:S,children:[r.jsx(ZR,{className:"mr-2 h-4 w-4"}),"Reset"]}),r.jsxs(V,{variant:"outline",onClick:w,disabled:o.length===0,children:[r.jsx(Vu,{className:"mr-2 h-4 w-4"}),"Export CSV"]})]})]}),r.jsxs(W,{className:"mb-6",children:[r.jsx(Z,{children:r.jsx(re,{children:"Report Settings"})}),r.jsx(H,{className:"space-y-4",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"recipientEmail",children:"Recipient Email *"}),r.jsx(he,{id:"recipientEmail",type:"email",value:c,onChange:k=>d(k.target.value),placeholder:"client@example.com"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"senderName",children:"Your Name (optional)"}),r.jsx(he,{id:"senderName",value:u,onChange:k=>h(k.target.value),placeholder:"Your name"})]})]})})]}),r.jsxs(W,{className:"mb-6",children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between",children:[r.jsx(re,{children:"Timesheet Entries"}),r.jsxs(V,{onClick:v,children:[r.jsx(ap,{className:"mr-2 h-4 w-4"}),"Add Entry"]})]}),r.jsx(H,{children:o.length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:'No entries yet. Click "Add Entry" to get started.'}):r.jsx("div",{className:"space-y-4",children:o.map(k=>r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-4 p-4 border rounded-lg",children:[r.jsxs("div",{children:[r.jsx(fe,{children:"Date"}),r.jsx(he,{type:"date",value:k.date,onChange:_=>y(k.id,"date",_.target.value)})]}),r.jsxs("div",{children:[r.jsx(fe,{children:"Service"}),r.jsxs(un,{value:k.service,onValueChange:_=>y(k.id,"service",_),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select service"})}),r.jsx(rn,{children:cLe.map(_=>r.jsx(be,{value:_,children:_},_))})]})]}),r.jsxs("div",{children:[r.jsx(fe,{children:"Hours"}),r.jsx(he,{type:"number",step:"0.25",min:"0",value:k.hours,onChange:_=>y(k.id,"hours",parseFloat(_.target.value)||0)})]}),r.jsxs("div",{children:[r.jsx(fe,{children:"Rate ($)"}),r.jsx(he,{type:"number",min:"0",value:k.hourlyRate,onChange:_=>y(k.id,"hourlyRate",parseFloat(_.target.value)||0)})]}),r.jsxs("div",{children:[r.jsx(fe,{children:"Amount"}),r.jsxs("div",{className:"mt-2 text-lg font-semibold",children:["$",(k.hours*k.hourlyRate).toFixed(2)]})]}),r.jsx("div",{className:"flex items-end",children:r.jsx(V,{variant:"outline",size:"sm",onClick:()=>x(k.id),children:r.jsx(Rh,{className:"h-4 w-4"})})}),r.jsxs("div",{className:"md:col-span-6",children:[r.jsx(fe,{children:"Description"}),r.jsx(di,{value:k.description,onChange:_=>y(k.id,"description",_.target.value),placeholder:"Describe the work performed...",rows:2})]})]},k.id))})})]}),o.length>0&&r.jsx(W,{children:r.jsx(H,{className:"pt-6",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"text-xl font-semibold",children:["Total Amount: $",b().toFixed(2)]}),r.jsxs("p",{className:"text-muted-foreground",children:[o.length," entries β’ ",o.reduce((k,_)=>k+_.hours,0)," total hours"]})]}),r.jsxs(V,{onClick:N,disabled:m||!c.trim(),children:[r.jsx(vy,{className:"mr-2 h-4 w-4"}),m?"Sending...":"Send Report"]})]})})})]})})]})},lj=({onAuthSuccess:e})=>{const[t,n]=j.useState(""),[i,s]=j.useState(""),[a,o]=j.useState(""),[l,c]=j.useState(!1),{toast:d}=Lt(),u=async m=>{m.preventDefault(),c(!0);try{const{error:f}=await Q.auth.signInWithPassword({email:t,password:i});if(f)throw f;d({title:"Welcome back!",description:"You have been signed in successfully."}),e()}catch(f){console.error("Sign in error:",f),d({title:"Sign In Failed",description:f.message||"An error occurred during sign in.",variant:"destructive"})}finally{c(!1)}},h=async m=>{m.preventDefault(),c(!0);try{const f=`${window.location.origin}/agent`,{error:g}=await Q.auth.signUp({email:t,password:i,options:{emailRedirectTo:f,data:{full_name:a}}});if(g)throw g;d({title:"Registration Successful",description:"Please check your email to verify your account. You'll need admin approval to access the agent portal."})}catch(f){console.error("Sign up error:",f),d({title:"Registration Failed",description:f.message||"An error occurred during registration.",variant:"destructive"})}finally{c(!1)}};return r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Agent Portal - Sign In - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:r.jsxs(W,{className:"w-full max-w-md",children:[r.jsxs(Z,{className:"text-center",children:[r.jsx("img",{src:"/logo/trident-logo.png",alt:"Trident Investigations",className:"h-16 mx-auto mb-4"}),r.jsx(re,{className:"text-2xl font-bold text-foreground",children:"Agent Portal"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Secure access for Trident Investigation agents"})]}),r.jsx(H,{children:r.jsxs(Ml,{defaultValue:"signin",className:"space-y-4",children:[r.jsxs(xo,{className:"grid w-full grid-cols-2",children:[r.jsx(gt,{value:"signin",children:"Sign In"}),r.jsx(gt,{value:"signup",children:"Register"})]}),r.jsx(vt,{value:"signin",children:r.jsxs("div",{className:"space-y-4",children:[r.jsx(Q2,{redirectTo:"/agent"}),r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 flex items-center",children:r.jsx(Dl,{className:"w-full"})}),r.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:r.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with email"})})]}),r.jsxs("form",{onSubmit:u,className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"signin-email",children:"Email"}),r.jsxs("div",{className:"relative",children:[r.jsx(xr,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),r.jsx(he,{id:"signin-email",type:"email",value:t,onChange:m=>n(m.target.value),placeholder:"agent@tridentpi.net",className:"pl-10",required:!0})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"signin-password",children:"Password"}),r.jsxs("div",{className:"relative",children:[r.jsx(yl,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),r.jsx(he,{id:"signin-password",type:"password",value:i,onChange:m=>s(m.target.value),placeholder:"Enter your password",className:"pl-10",required:!0})]})]}),r.jsx(V,{type:"submit",className:"w-full",disabled:l,children:l?"Signing in...":"Sign In"})]})]})}),r.jsx(vt,{value:"signup",children:r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:r.jsxs("div",{className:"flex items-start",children:[r.jsx(Pn,{className:"h-5 w-5 text-orange-600 mt-0.5 mr-2"}),r.jsxs("div",{className:"text-sm",children:[r.jsx("p",{className:"font-medium text-orange-800",children:"Admin Approval Required"}),r.jsx("p",{className:"text-orange-700 mt-1",children:"After registration, you'll need admin approval to access the agent portal. Contact your administrator after signing up."})]})]})}),r.jsx(Q2,{redirectTo:"/agent"}),r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 flex items-center",children:r.jsx(Dl,{className:"w-full"})}),r.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:r.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or register with email"})})]}),r.jsxs("form",{onSubmit:h,className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"signup-name",children:"Full Name"}),r.jsx(he,{id:"signup-name",type:"text",value:a,onChange:m=>o(m.target.value),placeholder:"Your full name",required:!0})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"signup-email",children:"Email"}),r.jsxs("div",{className:"relative",children:[r.jsx(xr,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),r.jsx(he,{id:"signup-email",type:"email",value:t,onChange:m=>n(m.target.value),placeholder:"agent@tridentpi.net",className:"pl-10",required:!0})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"signup-password",children:"Password"}),r.jsxs("div",{className:"relative",children:[r.jsx(yl,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),r.jsx(he,{id:"signup-password",type:"password",value:i,onChange:m=>s(m.target.value),placeholder:"Create a password",className:"pl-10",minLength:6,required:!0})]})]}),r.jsx(V,{type:"submit",className:"w-full",disabled:l,children:l?"Creating account...":"Register"})]})]})})]})})]})})]})},uLe=["Surveillance","Asset Investigation","Background Checks","Court Document Research","Witness Interviews","Report Writing","Client Consultation","Travel Time","Administrative Work","Process Serving","Court Testimony","Database Search","Other"],hLe=({onSubmit:e,editingEntry:t,onCancelEdit:n,defaultHourlyRate:i,defaultMileageRate:s})=>{var u;const[a,o]=j.useState({work_date:new Date().toISOString().split("T")[0],client_name:"",work_type:"",hours:0,mileage:0,notes:"",hourly_rate:i,mileage_rate:s,process_service_attempt:void 0});j.useEffect(()=>{o(t?{work_date:t.work_date,client_name:t.client_name,work_type:t.work_type,hours:t.hours,mileage:t.mileage,notes:t.notes||"",hourly_rate:t.hourly_rate||i,mileage_rate:t.mileage_rate||s,process_service_attempt:t.process_service_attempt}:{work_date:new Date().toISOString().split("T")[0],client_name:"",work_type:"",hours:0,mileage:0,notes:"",hourly_rate:i,mileage_rate:s,process_service_attempt:void 0})},[t,i,s]);const l=h=>{h.preventDefault(),e(a),t||o({work_date:new Date().toISOString().split("T")[0],client_name:"",work_type:"",hours:0,mileage:0,notes:"",hourly_rate:i,mileage_rate:s,process_service_attempt:void 0})},c=(h,m)=>{let f=m;h==="mileage_rate"&&typeof m=="number"&&m>5&&(f=m/100),h==="client_name"&&typeof m=="string"&&(f=m.replace(/\b\w/g,g=>g.toUpperCase())),o(g=>{const p={...g,[h]:f};return h==="work_type"&&m!=="Process Serving"&&(p.process_service_attempt=void 0),p})},d=a.hours*a.hourly_rate+a.mileage*a.mileage_rate;return r.jsxs(W,{className:"mb-6",children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"flex items-center",children:t?r.jsxs(r.Fragment,{children:[r.jsx(N_,{className:"mr-2 h-5 w-5"}),"Edit Time Entry"]}):r.jsxs(r.Fragment,{children:[r.jsx(ap,{className:"mr-2 h-5 w-5"}),"Add Time Entry"]})}),t&&r.jsxs(V,{variant:"outline",size:"sm",onClick:n,children:[r.jsx(pa,{className:"mr-1 h-4 w-4"}),"Cancel"]})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t?"Update the entry details below.":"Fill out the fields below to create a new time entry. Rates come from Agent Settings."})]}),r.jsx(H,{children:r.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"work_date",children:"Date"}),r.jsx(he,{id:"work_date",type:"date",value:a.work_date,onChange:h=>c("work_date",h.target.value),required:!0})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"client_name",children:"Client Name"}),r.jsx(he,{id:"client_name",value:a.client_name,onChange:h=>c("client_name",h.target.value),placeholder:"e.g., James Johnson",required:!0})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"work_type",children:"Work Type"}),r.jsxs(un,{value:a.work_type,onValueChange:h=>c("work_type",h),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select work type"})}),r.jsx(rn,{children:uLe.map(h=>r.jsx(be,{value:h,children:h},h))})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"hours",children:"Hours"}),r.jsx(he,{id:"hours",type:"number",step:"0.25",min:"0",value:a.hours,onChange:h=>c("hours",parseFloat(h.target.value)||0),placeholder:"e.g., 4.5",required:!0})]}),a.work_type==="Process Serving"&&r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"process_service_attempt",children:"Attempt Number"}),r.jsxs(un,{value:((u=a.process_service_attempt)==null?void 0:u.toString())||"",onValueChange:h=>c("process_service_attempt",parseInt(h)),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select attempt #"})}),r.jsx(rn,{children:[1,2,3,4,5].map(h=>r.jsxs(be,{value:h.toString(),children:["Attempt ",h]},h))})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"mileage",children:"Mileage"}),r.jsx(he,{id:"mileage",type:"number",step:"0.1",min:"0",value:a.mileage,onChange:h=>c("mileage",parseFloat(h.target.value)||0),placeholder:"e.g., 25.5"})]}),r.jsxs("div",{children:[r.jsx(fe,{children:"Estimated Total"}),r.jsxs("div",{className:"text-lg font-semibold text-primary mt-2",children:["$",d.toFixed(2)]})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"notes",children:"Notes"}),r.jsx(di,{id:"notes",value:a.notes,onChange:h=>c("notes",h.target.value),placeholder:"e.g., Witness interview at client's office.",rows:3})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(V,{type:"submit",children:t?"Update Entry":"Save Entry"}),!t&&r.jsx(V,{type:"button",variant:"outline",onClick:()=>o({work_date:new Date().toISOString().split("T")[0],client_name:"",work_type:"",hours:0,mileage:0,notes:"",hourly_rate:i,mileage_rate:s,process_service_attempt:void 0}),children:"Clear Form"})]})]})})]})},mLe=({entries:e,onEdit:t,onDelete:n})=>{const{toast:i}=Lt(),s=()=>{const u=[["Date","Client","Work Type","Hours","Mileage","Total","Notes"],...e.map(g=>[g.work_date,g.client_name,g.work_type,g.hours.toString(),g.mileage.toString(),(g.total_amount||0).toFixed(2),g.notes||""])].map(g=>g.map(p=>`"${p.toString().replace(/"/g,'""')}"`).join(",")).join(`
`),h=new Blob([u],{type:"text/csv"}),m=window.URL.createObjectURL(h),f=document.createElement("a");f.href=m,f.download=`timesheet-${new Date().toISOString().split("T")[0]}.csv`,document.body.appendChild(f),f.click(),window.URL.revokeObjectURL(m),document.body.removeChild(f),i({title:"Export Successful",description:"Timesheet has been exported to CSV."})},a=async()=>{const c=prompt("Enter the recipient email address:");if(!c)return;const d=prompt("Enter your name (optional):")||"Agent";try{const u=e.reduce((f,g)=>f+(g.total_amount||0),0),{data:h,error:m}=await Q.functions.invoke("send-timesheet-report",{body:{entries:e.map(f=>({date:f.work_date,service:f.work_type,hours:f.hours,description:f.notes||"",hourlyRate:(f.total_amount||0)/f.hours||0})),totalAmount:u,recipientEmail:c,senderName:d}});if(m)throw m;i({title:"Report Sent",description:`Timesheet report has been emailed to ${c}`})}catch(u){console.error("Error sending report:",u),i({title:"Send Failed",description:u.message||"Failed to send timesheet report.",variant:"destructive"})}},o=()=>{const c=`
<!DOCTYPE html>
<html>
<head>
<title>Time and Expense Report</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f5f5f5; }
.header { margin-bottom: 20px; }
.total { margin-top: 20px; font-weight: bold; }
</style>
</head>
<body>
<div class="header">
<h1>Time and Expense Report</h1>
<p>Generated on: ${new Date().toLocaleDateString()}</p>
<p>Total Entries: ${e.length}</p>
</div>
<table>
<thead>
<tr>
<th>Date</th>
<th>Client</th>
<th>Type</th>
<th>Details</th>
<th>Hours</th>
<th>Mileage</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
${e.map(u=>`
<tr>
<td>${new Date(u.work_date).toLocaleDateString()}</td>
<td>${u.client_name}</td>
<td>${u.entry_type==="expense"?"Expense":"Time Entry"}</td>
<td>${u.entry_type==="expense"?u.expense_detail||"":u.work_type||""}</td>
<td>${u.hours||0}</td>
<td>${u.mileage||0}</td>
<td>$${(u.total_amount||0).toFixed(2)}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="total">
Total Amount: $${e.reduce((u,h)=>u+(h.total_amount||0),0).toFixed(2)}
</div>
</body>
</html>
`,d=window.open("","_blank");d&&(d.document.write(c),d.document.close(),d.focus(),d.print())},l=c=>{window.confirm("Are you sure you want to delete this entry?")&&n(c)};return e.length===0?r.jsxs(W,{className:"mb-6",children:[r.jsx(Z,{children:r.jsx(re,{children:"Time and Expense Entries"})}),r.jsx(H,{children:r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No entries yet. Add your first time entry or expense above to get started."})})]}):r.jsxs(W,{className:"mb-6",children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between",children:[r.jsxs(re,{children:["Time and Expense Entries (",e.length,")"]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(V,{variant:"outline",size:"sm",onClick:s,children:[r.jsx(Vu,{className:"mr-2 h-4 w-4"}),"Export CSV"]}),r.jsxs(V,{variant:"outline",size:"sm",onClick:a,children:[r.jsx(vy,{className:"mr-2 h-4 w-4"}),"Email Report"]}),r.jsxs(V,{variant:"outline",size:"sm",onClick:o,children:[r.jsx(Vu,{className:"mr-2 h-4 w-4"}),"Download PDF"]})]})]}),r.jsxs(H,{children:[r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"min-w-full divide-y divide-border",children:[r.jsx("thead",{className:"bg-muted/50",children:r.jsxs("tr",{children:[r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Date"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Client"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Type/Detail"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Hours"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Mileage"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Total"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Actions"})]})}),r.jsx("tbody",{className:"divide-y divide-border",children:e.map(c=>r.jsxs("tr",{className:`hover:bg-muted/30 ${c.entry_type==="expense"?"bg-orange-50/50 border-l-4 border-l-orange-400":""}`,children:[r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:new Date(c.work_date).toLocaleDateString()}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm font-medium",children:c.client_name.replace(/\b\w/g,d=>d.toUpperCase())}),r.jsxs("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[c.entry_type==="expense"&&r.jsx("div",{className:"w-4 h-4 bg-orange-400 rounded-full flex items-center justify-center",children:r.jsx("span",{className:"text-xs text-white font-bold",children:"$"})}),r.jsx(Je,{variant:c.entry_type==="expense"?"destructive":"secondary",className:c.entry_type==="expense"?"bg-orange-500 hover:bg-orange-600":"",children:c.entry_type==="expense"?"Expense":c.work_type})]}),c.entry_type==="expense"&&c.expense_detail&&r.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[c.expense_detail.split(" ").slice(0,3).join(" "),"..."]})]}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:c.hours>0?c.hours:"-"}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:c.mileage>0?c.mileage:"-"}),r.jsxs("td",{className:"px-3 py-4 whitespace-nowrap text-sm font-bold",children:["$",(c.total_amount||0).toFixed(2)]}),r.jsxs("td",{className:"px-3 py-4 whitespace-nowrap text-sm space-x-2",children:[r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>t(c),children:r.jsx(N_,{className:"h-4 w-4"})}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>l(c.id),children:r.jsx(Rh,{className:"h-4 w-4 text-destructive"})})]})]},c.id))})]})}),e.some(c=>c.notes)&&r.jsxs("div",{className:"mt-4 space-y-2",children:[r.jsx("h4",{className:"text-sm font-medium",children:"Notes:"}),e.filter(c=>c.notes).map(c=>r.jsxs("div",{className:"text-sm text-muted-foreground",children:[r.jsxs("span",{className:"font-medium",children:[c.work_date," - ",c.client_name,":"]})," ",c.notes]},c.id))]})]})]})},fLe=({entries:e})=>{const t=e.reduce((s,a)=>s+(a.total_amount||0),0),n=e.reduce((s,a)=>s+a.hours,0),i=e.reduce((s,a)=>s+a.mileage,0);return r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8",children:[r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Billed"}),r.jsx(ma,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsxs("div",{className:"text-2xl font-bold text-primary",children:["$",t.toFixed(2)]})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Hours"}),r.jsx(Sn,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsx("div",{className:"text-2xl font-bold text-primary",children:n.toFixed(1)})})]}),r.jsxs(W,{children:[r.jsxs(Z,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[r.jsx(re,{className:"text-sm font-medium",children:"Total Mileage"}),r.jsx(VR,{className:"h-4 w-4 text-muted-foreground"})]}),r.jsx(H,{children:r.jsxs("div",{className:"text-2xl font-bold text-primary",children:[i.toFixed(1)," mi"]})})]})]})};var Dq="AlertDialog",[pLe,SUe]=Ca(Dq,[mq]),Po=mq(),Mq=e=>{const{__scopeAlertDialog:t,...n}=e,i=Po(t);return r.jsx(Pq,{...i,...n,modal:!0})};Mq.displayName=Dq;var gLe="AlertDialogTrigger",Rq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Po(n);return r.jsx(Eq,{...s,...i,ref:t})});Rq.displayName=gLe;var vLe="AlertDialogPortal",$q=e=>{const{__scopeAlertDialog:t,...n}=e,i=Po(t);return r.jsx(Aq,{...i,...n})};$q.displayName=vLe;var xLe="AlertDialogOverlay",Lq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Po(n);return r.jsx(lT,{...s,...i,ref:t})});Lq.displayName=xLe;var Cu="AlertDialogContent",[yLe,bLe]=pLe(Cu),Uq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:i,...s}=e,a=Po(n),o=j.useRef(null),l=ut(t,o),c=j.useRef(null);return r.jsx(Q$e,{contentName:Cu,titleName:Fq,docsSlug:"alert-dialog",children:r.jsx(yLe,{scope:n,cancelRef:c,children:r.jsxs(cT,{role:"alertdialog",...a,...s,ref:l,onOpenAutoFocus:Ee(s.onOpenAutoFocus,d=>{var u;d.preventDefault(),(u=c.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[r.jsx(f_,{children:i}),r.jsx(jLe,{contentRef:o})]})})})});Uq.displayName=Cu;var Fq="AlertDialogTitle",Bq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Po(n);return r.jsx(dT,{...s,...i,ref:t})});Bq.displayName=Fq;var Wq="AlertDialogDescription",zq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Po(n);return r.jsx(uT,{...s,...i,ref:t})});zq.displayName=Wq;var wLe="AlertDialogAction",qq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Po(n);return r.jsx(hT,{...s,...i,ref:t})});qq.displayName=wLe;var Hq="AlertDialogCancel",Vq=j.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,{cancelRef:s}=bLe(Hq,n),a=Po(n),o=ut(t,s);return r.jsx(hT,{...a,...i,ref:o})});Vq.displayName=Hq;var jLe=({contentRef:e})=>{const t=`\`${Cu}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Cu}\` by passing a \`${Wq}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Cu}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return j.useEffect(()=>{var i;document.getElementById((i=e.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},NLe=Mq,SLe=Rq,kLe=$q,Gq=Lq,Yq=Uq,Kq=qq,Xq=Vq,Qq=Bq,Jq=zq;const Zq=NLe,eH=SLe,CLe=kLe,tH=j.forwardRef(({className:e,...t},n)=>r.jsx(Gq,{className:je("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));tH.displayName=Gq.displayName;const fT=j.forwardRef(({className:e,...t},n)=>r.jsxs(CLe,{children:[r.jsx(tH,{}),r.jsx(Yq,{ref:n,className:je("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));fT.displayName=Yq.displayName;const pT=({className:e,...t})=>r.jsx("div",{className:je("flex flex-col space-y-2 text-center sm:text-left",e),...t});pT.displayName="AlertDialogHeader";const gT=({className:e,...t})=>r.jsx("div",{className:je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gT.displayName="AlertDialogFooter";const vT=j.forwardRef(({className:e,...t},n)=>r.jsx(Qq,{ref:n,className:je("text-lg font-semibold",e),...t}));vT.displayName=Qq.displayName;const xT=j.forwardRef(({className:e,...t},n)=>r.jsx(Jq,{ref:n,className:je("text-sm text-muted-foreground",e),...t}));xT.displayName=Jq.displayName;const yT=j.forwardRef(({className:e,...t},n)=>r.jsx(Kq,{ref:n,className:je(up(),e),...t}));yT.displayName=Kq.displayName;const bT=j.forwardRef(({className:e,...t},n)=>r.jsx(Xq,{ref:n,className:je(up({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));bT.displayName=Xq.displayName;var wT="Collapsible",[_Le,kUe]=Ca(wT),[TLe,jT]=_Le(wT),nH=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:i,defaultOpen:s,disabled:a,onOpenChange:o,...l}=e,[c=!1,d]=Rs({prop:i,defaultProp:s,onChange:o});return r.jsx(TLe,{scope:n,disabled:a,contentId:Is(),open:c,onOpenToggle:j.useCallback(()=>d(u=>!u),[d]),children:r.jsx(ze.div,{"data-state":ST(c),"data-disabled":a?"":void 0,...l,ref:t})})});nH.displayName=wT;var rH="CollapsibleTrigger",iH=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,...i}=e,s=jT(rH,n);return r.jsx(ze.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":ST(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:t,onClick:Ee(e.onClick,s.onOpenToggle)})});iH.displayName=rH;var NT="CollapsibleContent",sH=j.forwardRef((e,t)=>{const{forceMount:n,...i}=e,s=jT(NT,e.__scopeCollapsible);return r.jsx(zs,{present:n||s.open,children:({present:a})=>r.jsx(PLe,{...i,ref:t,present:a})})});sH.displayName=NT;var PLe=j.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:i,children:s,...a}=e,o=jT(NT,n),[l,c]=j.useState(i),d=j.useRef(null),u=ut(t,d),h=j.useRef(0),m=h.current,f=j.useRef(0),g=f.current,p=o.open||l,v=j.useRef(p),y=j.useRef();return j.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),cr(()=>{const x=d.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();h.current=b.height,f.current=b.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(i)}},[o.open,i]),r.jsx(ze.div,{"data-state":ST(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:p&&s})});function ST(e){return e?"open":"closed"}var ELe=nH;const dg=ELe,ug=iH,hg=sH,ALe=({entries:e,payments:t,onMarkPaid:n,onMarkAllPaid:i})=>{const[s,a]=j.useState({}),[o,l]=j.useState(!1),[c,d]=j.useState(new Date),[u,h]=j.useState(!1),[m,f]=j.useState(!1),{toast:g}=Lt(),v=e.filter(D=>!D.payment_id).reduce((D,A)=>{const E=A.client_name;return D[E]||(D[E]={totalHours:0,totalMileage:0,totalBilled:0,entryCount:0}),D[E].totalHours+=A.hours,D[E].totalMileage+=A.mileage,D[E].totalBilled+=A.total_amount||0,D[E].entryCount+=1,D},{}),y=Object.entries(v).sort(([,D],[,A])=>A.totalBilled-D.totalBilled),b=[...t].sort((D,A)=>new Date(A.paid_date).getTime()-new Date(D.paid_date).getTime()).reduce((D,A)=>{const E=new Date(A.paid_date).toLocaleDateString("en-US",{timeZone:"America/Denver",year:"numeric",month:"2-digit",day:"2-digit"});return D[E]||(D[E]=[]),D[E].push(A),D},{}),w=(D,A)=>{const E=A.map(I=>I.id),T=e.filter(I=>I.payment_id&&E.includes(I.payment_id)),M=A.reduce((I,R)=>I+R.amount_paid,0),C=`
<!DOCTYPE html>
<html>
<head>
<title>Invoice Summary - ${D}</title>
<style>
body { font-family: Arial, sans-serif; margin: 40px; }
.header { text-align: center; margin-bottom: 40px; }
.invoice-details { margin-bottom: 30px; }
.entry-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.entry-table th, .entry-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.entry-table th { background-color: #f5f5f5; }
.expense-row { background-color: #fef2e6; }
.total { font-size: 18px; font-weight: bold; text-align: right; margin-top: 20px; }
</style>
</head>
<body>
<div class="header">
<h1>Trident Investigations</h1>
<h2>Invoice Summary</h2>
<p>Date: ${D}</p>
</div>
<div class="invoice-details">
<h3>Time and Expense Entries</h3>
<table class="entry-table">
<thead>
<tr>
<th>Date</th>
<th>Client</th>
<th>Type</th>
<th>Details</th>
<th>Hours</th>
<th>Mileage</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
${T.map(I=>`
<tr class="${I.entry_type==="expense"?"expense-row":""}">
<td>${new Date(I.work_date||D).toLocaleDateString()}</td>
<td>${I.client_name}</td>
<td>${I.entry_type==="expense"?"Expense":"Time Entry"}</td>
<td>${I.entry_type==="expense"?I.expense_detail||"":I.work_type||""}</td>
<td>${I.hours||0}</td>
<td>${I.mileage||0}</td>
<td>$${(I.total_amount||0).toFixed(2)}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="total">
Total Amount: $${M.toFixed(2)}
</div>
</div>
</body>
</html>
`,P=window.open("","_blank");P&&(P.document.write(C),P.document.close(),P.focus(),P.print())},N=async D=>{var T;const A=s[D];if(!(A!=null&&A.checked)||!A.date){g({title:"Error",description:"Please check the paid checkbox and select a date.",variant:"destructive"});return}const E=((T=v[D])==null?void 0:T.totalBilled)||0;if(E<=0){g({title:"Error",description:"No amount due for this client.",variant:"destructive"});return}a(M=>({...M,[D]:{...M[D],loading:!0}}));try{await n(D,A.date,E),a(M=>{const C={...M};return delete C[D],C}),g({title:"Success",description:`Marked $${E.toFixed(2)} as paid for ${D}.`})}catch(M){console.error("Error marking paid:",M),g({title:"Error",description:"Failed to mark payment. Please try again.",variant:"destructive"})}finally{a(M=>({...M,[D]:{...M[D],loading:!1}}))}},S=(D,A,E)=>{a(T=>({...T,[D]:{checked:!1,date:new Date().toISOString().split("T")[0],loading:!1,...T[D],[A]:E}}))},k=async()=>{if(!(!o||y.length===0)){h(!0);try{const D=He(c,"yyyy-MM-dd");await i(D),l(!1),g({title:"Success",description:`All clients marked as paid for ${He(c,"PPP")}.`})}catch(D){console.error("Error marking all paid:",D),g({title:"Error",description:"Failed to mark all payments. Please try again.",variant:"destructive"})}finally{h(!1)}}},_=y.reduce((D,[,A])=>D+A.totalBilled,0);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsx(re,{children:"Current Client Summary"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Unpaid work breakdown by client"})]}),r.jsxs(H,{children:[y.length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No unpaid client work. All invoices are up to date!"}):r.jsx(r.Fragment,{children:r.jsx("div",{className:"mb-6 p-4 bg-muted/30 rounded-lg border",children:r.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(Qu,{id:"mark-all-paid",checked:o,onCheckedChange:D=>l(D),disabled:u||_<=0}),r.jsx(fe,{htmlFor:"mark-all-paid",className:"text-sm font-medium",children:"Mark all as paid"})]}),r.jsxs(ed,{children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",className:je("w-60 justify-start text-left font-normal",!c&&"text-muted-foreground"),disabled:u,children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),c?He(c,"PPP"):r.jsx("span",{children:"Pick a date"})]})}),r.jsx(Rl,{className:"w-auto p-0",align:"start",children:r.jsx(co,{mode:"single",selected:c,onSelect:D=>D&&d(D),initialFocus:!0,className:"p-3 pointer-events-auto"})})]}),r.jsxs(Zq,{children:[r.jsx(eH,{asChild:!0,children:r.jsx(V,{disabled:!o||u||_<=0,className:"min-w-32",children:u?"Processing...":`Mark All Paid ($${_.toFixed(2)})`})}),r.jsxs(fT,{children:[r.jsxs(pT,{children:[r.jsx(vT,{children:"Confirm Batch Payment"}),r.jsxs(xT,{children:["Are you sure you want to mark all ",y.length," clients as paid for a total of $",_.toFixed(2)," on ",He(c,"PPP"),"? This will move all current work to closed invoices."]})]}),r.jsxs(gT,{children:[r.jsx(bT,{children:"Cancel"}),r.jsx(yT,{onClick:k,children:"Confirm Payment"})]})]})]})]})})}),y.length>0&&r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"min-w-full divide-y divide-border",children:[r.jsx("thead",{className:"bg-muted/50",children:r.jsxs("tr",{children:[r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Client"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Entries"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Hours"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Mileage"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Amount Due"}),r.jsx("th",{className:"px-3 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Payment"})]})}),r.jsx("tbody",{className:"divide-y divide-border",children:y.map(([D,A])=>{const E=s[D]||{checked:!1,date:new Date().toISOString().split("T")[0],loading:!1};return r.jsxs("tr",{className:"hover:bg-muted/30",children:[r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm font-medium",children:D}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:A.entryCount}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:A.totalHours.toFixed(1)}),r.jsxs("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:[A.totalMileage.toFixed(1)," mi"]}),r.jsxs("td",{className:"px-3 py-4 whitespace-nowrap text-sm font-bold text-primary",children:["$",A.totalBilled.toFixed(2)]}),r.jsx("td",{className:"px-3 py-4 whitespace-nowrap text-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(Qu,{id:`paid-${D}`,checked:E.checked,onCheckedChange:T=>S(D,"checked",T),disabled:E.loading}),r.jsx(fe,{htmlFor:`paid-${D}`,className:"text-xs",children:"Paid"})]}),r.jsx(he,{type:"date",value:E.date,onChange:T=>S(D,"date",T.target.value),className:"w-32 h-8 text-xs",disabled:E.loading}),r.jsx(V,{size:"sm",onClick:()=>N(D),disabled:!E.checked||E.loading||A.totalBilled<=0,className:"h-8",children:E.loading?"Processing...":"Mark Paid"})]})})]},D)})})]})})]})]}),r.jsx(W,{children:r.jsxs(dg,{open:m,onOpenChange:f,children:[r.jsx(ug,{asChild:!0,children:r.jsxs(Z,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:[r.jsxs(re,{className:"flex items-center justify-between",children:["Closed Invoices",r.jsx(wa,{className:`h-4 w-4 transition-transform ${m?"rotate-180":""}`})]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:[Object.keys(b).length," paid dates β’ Click dates to view PDF"]})]})}),r.jsx(hg,{children:r.jsx(H,{children:Object.keys(b).length===0?r.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No closed invoices yet."}):r.jsx("div",{className:"space-y-3",children:Object.entries(b).map(([D,A])=>{const E=A.reduce((T,M)=>T+M.amount_paid,0);return r.jsxs("div",{className:"border rounded-lg p-4 hover:bg-muted/30 cursor-pointer transition-colors",onClick:()=>w(D,A),children:[r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-lg font-semibold",children:new Date(D).toLocaleDateString()}),r.jsxs("span",{className:"text-lg font-bold text-primary",children:["$",E.toFixed(2)]})]}),r.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Click to view PDF with ",A.length," payment",A.length!==1?"s":""]})]},D)})})})})]})})]})},OLe=({userId:e})=>{const[t,n]=j.useState({connected:!1,status:"disconnected"}),[i,s]=j.useState([]),[a,o]=j.useState("primary"),[l,c]=j.useState(!1),[d,u]=j.useState(!1),[h,m]=j.useState(null),{toast:f}=Lt();j.useEffect(()=>{g();const N=()=>{setTimeout(()=>g(),1e3)};return window.addEventListener("focus",N),()=>window.removeEventListener("focus",N)},[]);const g=async()=>{try{m(null);const{data:N,error:S}=await Q.functions.invoke("google-calendar",{body:{action:"status"}});if(S)throw S;n(N),N.connected?p():N.error&&m(N.error)}catch(N){console.error("Failed to check connection status:",N),m(N instanceof Error?N.message:"Failed to check connection status")}},p=async()=>{var N;try{const{data:S,error:k}=await Q.functions.invoke("google-calendar",{body:{action:"list-calendars"}});if(k)throw k;s(S.calendars||[]);const _=(N=S.calendars)==null?void 0:N.find(D=>D.primary);_&&o(_.id)}catch(S){console.error("Failed to load calendars:",S),f({title:"Error",description:"Failed to load calendars",variant:"destructive"})}},v=async()=>{c(!0);try{const{data:N,error:S}=await Q.functions.invoke("google-calendar-oauth",{body:{action:"start",user_id:e}});if(S)throw S;const k=window.open(N.authUrl,"google-auth","width=500,height=600,scrollbars=yes,resizable=yes"),_=A=>{A.data.type==="GOOGLE_AUTH_SUCCESS"?(k==null||k.close(),window.removeEventListener("message",_),f({title:"Success!",description:"Google Calendar connected successfully"}),setTimeout(()=>g(),2e3)):A.data.type==="GOOGLE_AUTH_ERROR"&&(k==null||k.close(),window.removeEventListener("message",_),f({title:"Connection Failed",description:A.data.error||"Failed to connect to Google Calendar",variant:"destructive"}))};if(window.addEventListener("message",_),!k)throw new Error("Popup blocked. Please allow popups for this site.");const D=setInterval(()=>{k.closed&&(clearInterval(D),window.removeEventListener("message",_))},1e3)}catch(N){console.error("Connection failed:",N),f({title:"Connection Failed",description:N instanceof Error?N.message:"Failed to connect to Google Calendar",variant:"destructive"})}finally{c(!1)}},y=async()=>{try{const{error:N}=await Q.functions.invoke("google-calendar",{body:{action:"disconnect"}});if(N)throw N;n({connected:!1,status:"disconnected"}),s([]),o("primary"),f({title:"Disconnected",description:"Google Calendar has been disconnected"})}catch(N){console.error("Disconnect failed:",N),f({title:"Error",description:"Failed to disconnect Google Calendar",variant:"destructive"})}},x=async()=>{var N;if(t.connected){c(!0);try{const S=new Date(Date.now()-7776e6).toISOString(),k=new Date().toISOString(),{data:_,error:D}=await Q.functions.invoke("google-calendar",{body:{action:"list-events",calendarId:a,timeMin:S,timeMax:k,maxResults:100}});if(D)throw D;f({title:"Sync Complete",description:`Synced ${((N=_.events)==null?void 0:N.length)||0} events from the past 90 days`})}catch(S){console.error("Sync failed:",S),f({title:"Sync Failed",description:"Failed to sync past events",variant:"destructive"})}finally{c(!1)}}},b=async()=>{if(!t.connected||!t.hasTasksScope){f({title:"Tasks Access Required",description:"Please grant Google Tasks access first",variant:"destructive"});return}c(!0);try{const{data:N,error:S}=await Q.functions.invoke("google-calendar",{body:{action:"sync-tasks-to-calendar",calendarId:a}});if(S)throw S;f({title:"Tasks Synced",description:`${N.created||0} task events created in your calendar`})}catch(N){console.error("Task sync failed:",N),f({title:"Sync Failed",description:"Failed to sync tasks to calendar",variant:"destructive"})}finally{c(!1)}},w=async()=>{u(!0);try{const{data:N,error:S}=await Q.functions.invoke("google-calendar-oauth",{body:{action:"start",user_id:e}});if(S)throw S;const k=window.open(N.authUrl,"google-auth","width=500,height=600,scrollbars=yes,resizable=yes"),_=A=>{A.data.type==="GOOGLE_AUTH_SUCCESS"?(k==null||k.close(),window.removeEventListener("message",_),f({title:"Success!",description:"Google Tasks access granted successfully"}),setTimeout(()=>{g()},2e3)):A.data.type==="GOOGLE_AUTH_ERROR"&&(k==null||k.close(),window.removeEventListener("message",_),f({title:"Access Grant Failed",description:A.data.error||"Failed to grant Google Tasks access",variant:"destructive"}))};if(window.addEventListener("message",_),!k)throw new Error("Popup blocked. Please allow popups for this site.");const D=setInterval(()=>{k.closed&&(clearInterval(D),window.removeEventListener("message",_),u(!1))},1e3)}catch(N){console.error("Grant tasks access failed:",N),f({title:"Access Grant Failed",description:N instanceof Error?N.message:"Failed to grant Google Tasks access",variant:"destructive"})}finally{u(!1)}};return r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(Ln,{className:"h-5 w-5"}),"Google Calendar Integration",r.jsx(Je,{variant:t.connected?"default":"secondary",children:t.connected?"Connected":"Disconnected"}),t.connected&&t.hasTasksScope===!1&&r.jsx(Je,{variant:"outline",className:"text-orange-600 border-orange-300",children:"Tasks Missing"})]})}),r.jsx(H,{className:"space-y-4",children:t.connected?r.jsxs("div",{className:"space-y-4",children:[t.hasTasksScope===!1&&r.jsx("div",{className:"p-3 bg-orange-50 border border-orange-200 rounded-md",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-medium text-orange-800",children:"Tasks Permission Missing"}),r.jsx("p",{className:"text-xs text-orange-600",children:"Grant access to use Google Tasks"})]}),r.jsx(V,{size:"sm",onClick:w,disabled:d,variant:"outline",className:"border-orange-300 text-orange-700 hover:bg-orange-100",children:d?"Granting...":"Grant Access"})]})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("label",{className:"text-sm font-medium",children:"Default Calendar"}),r.jsxs(un,{value:a,onValueChange:o,children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select a calendar"})}),r.jsx(rn,{children:i.map(N=>r.jsxs(be,{value:N.id,children:[N.summary," ",N.primary&&"(Primary)"]},N.id))})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(V,{onClick:x,disabled:l,variant:"outline",size:"sm",children:[r.jsx(Sn,{className:"mr-2 h-4 w-4"}),l?"Syncing...":"Sync Past 90 Days"]}),r.jsxs(V,{onClick:b,disabled:l,variant:"outline",size:"sm",children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),l?"Syncing...":"Sync Tasks to Calendar"]}),r.jsxs(V,{onClick:y,variant:"outline",size:"sm",children:[r.jsx(KK,{className:"mr-2 h-4 w-4"}),"Disconnect"]})]}),r.jsx(te,{to:"/agent/calendar",children:r.jsxs(V,{variant:"outline",size:"sm",className:"w-full",children:[r.jsx(Tl,{className:"mr-2 h-4 w-4"}),"Open Agent Calendar"]})}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Access the full calendar interface with event management and scheduling tools."})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:"Connect your Google Calendar to view historic activities and create scheduled events. Use the dedicated Agent Calendar page for full calendar management."}),h&&r.jsx("div",{className:"p-3 bg-destructive/10 border border-destructive/20 rounded-md",children:r.jsx("p",{className:"text-sm text-destructive",children:h})}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(V,{onClick:v,disabled:l,className:"flex-1",children:[r.jsx($K,{className:"mr-2 h-4 w-4"}),l?"Connecting...":"Connect Google Calendar"]}),r.jsx(V,{onClick:g,disabled:l,variant:"outline",size:"icon",children:r.jsx(op,{className:`h-4 w-4 ${l?"animate-spin":""}`})})]}),r.jsx(te,{to:"/agent/calendar",children:r.jsxs(V,{variant:"outline",size:"sm",className:"w-full",children:[r.jsx(Tl,{className:"mr-2 h-4 w-4"}),"Open Agent Calendar (Connect First)"]})})]})})]})},ILe=({userId:e,currentFilePath:t,onFileUploaded:n})=>{const[i,s]=j.useState(!1),[a,o]=j.useState(!1),{toast:l}=Lt(),c=async p=>{if(!p)return;if(!["image/jpeg","image/png","image/webp","application/pdf"].includes(p.type)){l({title:"Invalid File Type",description:"Please upload an image (JPEG, PNG, WebP) or PDF file.",variant:"destructive"});return}if(p.size>10*1024*1024){l({title:"File Too Large",description:"File size must be less than 10MB.",variant:"destructive"});return}s(!0);try{const y=p.name.split(".").pop(),x=`${e}/agent-id-${Date.now()}.${y}`,{data:b,error:w}=await Q.storage.from("agent-documents").upload(x,p,{cacheControl:"3600",upsert:!1});if(w)throw w;const{error:N}=await Q.from("profiles").update({agent_id_file_path:b.path}).eq("id",e);if(N)throw N;n(b.path),l({title:"Upload Successful",description:"Agent ID document uploaded successfully."})}catch(y){console.error("Upload failed:",y),l({title:"Upload Failed",description:y instanceof Error?y.message:"Failed to upload file.",variant:"destructive"})}finally{s(!1)}},d=p=>{p.preventDefault(),o(!1);const v=Array.from(p.dataTransfer.files);v.length>0&&c(v[0])},u=p=>{p.preventDefault(),o(!0)},h=p=>{p.preventDefault(),o(!1)},m=p=>{const v=Array.from(p.target.files||[]);v.length>0&&c(v[0])},f=async()=>{if(t)try{const{error:p}=await Q.storage.from("agent-documents").remove([t]);p&&console.error("Storage removal error:",p);const{error:v}=await Q.from("profiles").update({agent_id_file_path:null}).eq("id",e);if(v)throw v;n(""),l({title:"File Removed",description:"Agent ID document removed successfully."})}catch(p){console.error("Remove failed:",p),l({title:"Remove Failed",description:"Failed to remove file.",variant:"destructive"})}},g=async()=>{if(t)try{const{data:p,error:v}=await Q.storage.from("agent-documents").createSignedUrl(t,3600);if(v)throw v;window.open(p.signedUrl,"_blank")}catch(p){console.error("View failed:",p),l({title:"View Failed",description:"Failed to open file.",variant:"destructive"})}};return r.jsxs("div",{className:"space-y-3",children:[r.jsx(fe,{htmlFor:"agent-id-upload",children:"Agent ID Document"}),t?r.jsxs("div",{className:"flex items-center gap-2 p-3 border rounded-lg bg-muted/50",children:[r.jsx(Ct,{className:"h-4 w-4 text-muted-foreground"}),r.jsx("span",{className:"text-sm flex-1",children:"Agent ID document uploaded"}),r.jsxs(V,{type:"button",variant:"outline",size:"sm",onClick:g,children:[r.jsx(ai,{className:"h-4 w-4 mr-1"}),"View"]}),r.jsxs(V,{type:"button",variant:"outline",size:"sm",onClick:f,children:[r.jsx(pa,{className:"h-4 w-4 mr-1"}),"Remove"]})]}):r.jsxs("div",{className:`border-2 border-dashed rounded-lg p-6 text-center transition-colors ${a?"border-primary bg-primary/5":"border-muted-foreground/25 hover:border-muted-foreground/50"}`,onDrop:d,onDragOver:u,onDragLeave:h,children:[r.jsx(XK,{className:"h-8 w-8 mx-auto text-muted-foreground mb-2"}),r.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Drag and drop your Agent ID document here, or click to browse"}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Supports: JPEG, PNG, WebP, PDF (max 10MB)"}),r.jsx("input",{id:"agent-id-upload",type:"file",accept:".jpg,.jpeg,.png,.webp,.pdf",onChange:m,className:"hidden",disabled:i}),r.jsx(V,{type:"button",variant:"outline",onClick:()=>{var p;return(p=document.getElementById("agent-id-upload"))==null?void 0:p.click()},disabled:i,children:i?"Uploading...":"Choose File"})]})]})},DLe=({profile:e,onProfileUpdate:t,userId:n})=>{const[i,s]=j.useState(e),[a,o]=j.useState(!1),[l,c]=j.useState(!1),d=(m,f)=>{const g={...i,[m]:f};s(g),o(!0)},u=()=>{t(i),o(!1)},h=()=>{s(e),o(!1)};return r.jsx("div",{className:"space-y-6",children:r.jsx(W,{children:r.jsxs(dg,{open:l,onOpenChange:c,children:[r.jsx(ug,{asChild:!0,children:r.jsxs(Z,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:[r.jsxs(re,{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center",children:[r.jsx(e$,{className:"mr-2 h-5 w-5"}),"Agent Settings"]}),r.jsx(wa,{className:`h-4 w-4 transition-transform ${l?"rotate-180":""}`})]}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Configure your personal details and default rates for all calculations."})]})}),r.jsx(hg,{children:r.jsxs(H,{children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Personal Information"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"full-name",children:"Full Name"}),r.jsx(he,{id:"full-name",value:i.full_name||"",onChange:m=>d("full_name",m.target.value),placeholder:"Your full name"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"email",children:"Email"}),r.jsx(he,{id:"email",type:"email",value:i.email||"",onChange:m=>d("email",m.target.value),placeholder:"agent@tridentpi.net"})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Default Rates"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"hourly-rate",children:"Default Hourly Rate ($)"}),r.jsx(he,{id:"hourly-rate",type:"number",step:"0.01",min:"0",value:i.default_hourly_rate,onChange:m=>d("default_hourly_rate",parseFloat(m.target.value)||0),placeholder:"30.00"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"mileage-rate",children:"Default Mileage Rate ($/mi)"}),r.jsx(he,{id:"mileage-rate",type:"number",step:"0.01",min:"0",value:i.default_mileage_rate,onChange:m=>d("default_mileage_rate",parseFloat(m.target.value)||0),placeholder:"0.65"})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"License Information"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"pi-dps-number",children:"Agent PI DPS Number"}),r.jsx(he,{id:"pi-dps-number",value:i.agent_pi_dps_number||"",onChange:m=>d("agent_pi_dps_number",m.target.value),placeholder:"DPS License Number"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"license-type",children:"Agent License Type"}),r.jsxs(un,{value:i.agent_license_type||"",onValueChange:m=>d("agent_license_type",m),children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Select license type"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"Apprentice",children:"Apprentice"}),r.jsx(be,{value:"Registrant",children:"Registrant"}),r.jsx(be,{value:"Agency",children:"Agency"})]})]})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"license-renewal",children:"License Renewal Date"}),r.jsx(he,{id:"license-renewal",type:"date",value:i.agent_license_renewal_date||"",onChange:m=>d("agent_license_renewal_date",m.target.value)})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Insurance Information"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"insurance-carrier",children:"Insurance Carrier"}),r.jsx(he,{id:"insurance-carrier",value:i.insurance_carrier||"",onChange:m=>d("insurance_carrier",m.target.value),placeholder:"Insurance company name"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"insurance-expiration",children:"Insurance Expiration Date"}),r.jsx(he,{id:"insurance-expiration",type:"date",value:i.insurance_expiration_date||"",onChange:m=>d("insurance_expiration_date",m.target.value)})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Emergency Contact"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"emergency-name",children:"Emergency Contact Name"}),r.jsx(he,{id:"emergency-name",value:i.emergency_contact_name||"",onChange:m=>d("emergency_contact_name",m.target.value),placeholder:"Contact person name"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"emergency-phone",children:"Emergency Contact Phone"}),r.jsx(he,{id:"emergency-phone",type:"tel",value:i.emergency_contact_phone||"",onChange:m=>d("emergency_contact_phone",m.target.value),placeholder:"(555) 123-4567"})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Payment Information"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-payable-to",children:"Make Payments Payable To *"}),r.jsx(he,{id:"payment-payable-to",value:i.payment_payable_to||"",onChange:m=>d("payment_payable_to",m.target.value),placeholder:"Name or entity for payments"})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-address-line1",children:"Address Line 1 *"}),r.jsx(he,{id:"payment-address-line1",value:i.payment_address_line1||"",onChange:m=>d("payment_address_line1",m.target.value),placeholder:"Street address"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-address-line2",children:"Address Line 2"}),r.jsx(he,{id:"payment-address-line2",value:i.payment_address_line2||"",onChange:m=>d("payment_address_line2",m.target.value),placeholder:"Apartment, suite, etc."})]})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-city",children:"City *"}),r.jsx(he,{id:"payment-city",value:i.payment_city||"",onChange:m=>d("payment_city",m.target.value),placeholder:"City"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-state",children:"State *"}),r.jsx(he,{id:"payment-state",value:i.payment_state||"",onChange:m=>d("payment_state",m.target.value),placeholder:"State"})]}),r.jsxs("div",{children:[r.jsx(fe,{htmlFor:"payment-zip",children:"ZIP Code *"}),r.jsx(he,{id:"payment-zip",value:i.payment_zip||"",onChange:m=>d("payment_zip",m.target.value),placeholder:"ZIP Code"})]})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Agent Identification"}),r.jsx(ILe,{userId:n,currentFilePath:i.agent_id_file_path,onFileUploaded:m=>d("agent_id_file_path",m)})]})]}),a&&r.jsxs("div",{className:"flex gap-2 mt-6",children:[r.jsx(V,{onClick:u,children:"Save Changes"}),r.jsx(V,{variant:"outline",onClick:h,children:"Reset"})]}),r.jsx(Dl,{className:"my-6"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium mb-4",children:"Calendar Integration"}),r.jsx(OLe,{userId:n})]})]})})]})})})},MLe=({userId:e,expenseId:t,expenseDetail:n})=>{const[i,s]=j.useState([]),[a,o]=j.useState(!1),[l,c]=j.useState(!1),{toast:d}=Lt();j.useEffect(()=>{l&&u()},[l,e,t]);const u=async()=>{o(!0);try{const{data:p,error:v}=await Q.storage.from("agent-expenses").list(e,{search:`${t}_`});if(v)throw v;s((p||[]).map(x=>{var b;return{name:x.name,size:(b=x.metadata)==null?void 0:b.size,lastModified:x.updated_at}}))}catch(p){console.error("Error loading attachments:",p),d({title:"Error",description:"Failed to load attachments",variant:"destructive"})}finally{o(!1)}},h=async(p,v="view")=>{try{const y=`${e}/${p}`,{data:x,error:b}=await Q.storage.from("agent-expenses").createSignedUrl(y,600);if(b)throw b;if(v==="view")window.open(x.signedUrl,"_blank");else{const w=document.createElement("a");w.href=x.signedUrl,w.download=p.split("_").slice(1).join("_"),document.body.appendChild(w),w.click(),document.body.removeChild(w)}}catch(y){console.error("Error generating signed URL:",y),d({title:"Error",description:"Failed to access file",variant:"destructive"})}},m=p=>{var y;const v=(y=p.split(".").pop())==null?void 0:y.toLowerCase();return["jpg","jpeg","png","gif","webp","svg"].includes(v||"")?r.jsx(JR,{className:"h-4 w-4 text-blue-500"}):r.jsx(Ct,{className:"h-4 w-4 text-gray-500"})},f=p=>{if(!p)return"";const v=["B","KB","MB","GB"],y=Math.floor(Math.log(p)/Math.log(1024));return`${(p/Math.pow(1024,y)).toFixed(1)} ${v[y]}`},g=p=>p.split("_").slice(1).join("_");return i.length===0&&!a?null:r.jsxs(dg,{open:l,onOpenChange:c,children:[r.jsx(ug,{asChild:!0,children:r.jsxs(V,{variant:"ghost",size:"sm",className:"h-auto p-2 text-xs",disabled:a,children:[r.jsx(WK,{className:"h-3 w-3 mr-1"}),a?"Loading...":`${i.length} attachment${i.length!==1?"s":""}`,r.jsx(wa,{className:`h-3 w-3 ml-1 transition-transform ${l?"rotate-180":""}`})]})}),r.jsx(hg,{children:r.jsx("div",{className:"mt-2 space-y-2 border-t pt-2",children:i.map((p,v)=>r.jsxs("div",{className:"flex items-center justify-between gap-2 p-2 bg-muted/50 rounded text-xs",children:[r.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[m(p.name),r.jsx("span",{className:"truncate font-medium",title:g(p.name),children:g(p.name)}),p.size&&r.jsx("span",{className:"text-muted-foreground whitespace-nowrap",children:f(p.size)})]}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>h(p.name,"view"),className:"h-6 w-6 p-0",title:"View file",children:r.jsx(ai,{className:"h-3 w-3"})}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>h(p.name,"download"),className:"h-6 w-6 p-0",title:"Download file",children:r.jsx(Vu,{className:"h-3 w-3"})})]})]},v))})})]})},RLe=({userId:e})=>{const[t,n]=j.useState([]),[i,s]=j.useState(!1),[a,o]=j.useState({expense_date:new Date,expense_detail:"",billed_to_client:"",hours:0,mileage:0,notes:"",total_amount:0}),[l,c]=j.useState([]),[d,u]=j.useState(!1),[h,m]=j.useState(!1),{toast:f}=Lt();j.useEffect(()=>{g()},[e]);const g=async()=>{try{const{data:x,error:b}=await Q.from("agent_expenses").select("*").eq("user_id",e).order("expense_date",{ascending:!1}).limit(10);if(b)throw b;n(x||[])}catch(x){console.error("Error loading expenses:",x),f({title:"Error",description:"Failed to load expenses",variant:"destructive"})}},p=async x=>{if(x.preventDefault(),!a.expense_detail.trim()){f({title:"Error",description:"Please fill in expense detail",variant:"destructive"});return}s(!0);try{const{data:b,error:w}=await Q.from("agent_expenses").insert({user_id:e,expense_date:He(a.expense_date,"yyyy-MM-dd"),expense_detail:a.expense_detail,billed_to_client:a.billed_to_client,hours:a.hours,mileage:a.mileage,notes:a.notes,total_amount:a.total_amount}).select().single();if(w)throw w;if(l.length>0){const N=l.map(async S=>{const k=S.name.split(".").pop(),_=`${e}/${b.id}_${Date.now()}.${k}`,{error:D}=await Q.storage.from("agent-expenses").upload(_,S);if(D)throw D});await Promise.all(N)}try{const N=`Work (Expense): ${a.billed_to_client||"Unbilled"} β ${a.expense_detail}`,S=`Expense Details:
- Amount: $${a.total_amount}
- Hours: ${a.hours}
- Mileage: ${a.mileage}
${a.notes?`- Notes: ${a.notes}`:""}`,k={summary:N,description:S,start:{date:He(a.expense_date,"yyyy-MM-dd")},end:{date:He(a.expense_date,"yyyy-MM-dd")},transparency:"opaque"};await Q.functions.invoke("google-calendar",{body:{action:"create-event",calendarId:"primary",event:k}}),f({title:"Success",description:"Expense added and calendar event created"})}catch(N){console.error("Calendar event creation failed:",N),f({title:"Expense Added",description:"Expense saved, but calendar event creation failed (check Google Calendar connection)",variant:"default"})}o({expense_date:new Date,expense_detail:"",billed_to_client:"",hours:0,mileage:0,notes:"",total_amount:0}),c([]),await g()}catch(b){console.error("Error adding expense:",b),f({title:"Error",description:"Failed to add expense entry",variant:"destructive"})}finally{s(!1)}},v=x=>{x.target.files&&c(Array.from(x.target.files))},y=x=>{c(l.filter((b,w)=>w!==x))};return r.jsxs("div",{className:"space-y-6",children:[r.jsx(W,{children:r.jsxs(dg,{open:d,onOpenChange:u,children:[r.jsx(ug,{asChild:!0,children:r.jsx(Z,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(re,{className:"flex items-center justify-between",children:["Additional Expenses",r.jsx(wa,{className:`h-4 w-4 transition-transform ${d?"rotate-180":""}`})]})})}),r.jsx(hg,{children:r.jsx(H,{children:r.jsxs("form",{onSubmit:p,className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"expense_date",children:"Date *"}),r.jsxs(ed,{children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",className:je("w-full justify-start text-left font-normal",!a.expense_date&&"text-muted-foreground"),children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),a.expense_date?He(a.expense_date,"PPP"):"Pick a date"]})}),r.jsx(Rl,{className:"w-auto p-0",align:"start",children:r.jsx(co,{mode:"single",selected:a.expense_date,onSelect:x=>x&&o(b=>({...b,expense_date:x})),initialFocus:!0,className:"p-3 pointer-events-auto"})})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"billed_to_client",children:"Billed to Client"}),r.jsx(he,{id:"billed_to_client",value:a.billed_to_client,onChange:x=>o(b=>({...b,billed_to_client:x.target.value.replace(/\b\w/g,w=>w.toUpperCase())})),placeholder:"Client name (optional)"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"expense_detail",children:"Expense Detail *"}),r.jsx(he,{id:"expense_detail",value:a.expense_detail,onChange:x=>o(b=>({...b,expense_detail:x.target.value})),placeholder:"Description of expense",required:!0})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"hours",children:"Hours"}),r.jsx(he,{id:"hours",type:"number",step:"0.1",min:"0",value:a.hours,onChange:x=>o(b=>({...b,hours:parseFloat(x.target.value)||0})),placeholder:"0.0"})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"mileage",children:"Mileage"}),r.jsx(he,{id:"mileage",type:"number",step:"0.1",min:"0",value:a.mileage,onChange:x=>o(b=>({...b,mileage:parseFloat(x.target.value)||0})),placeholder:"0.0"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"total_amount",children:"Expense Amount ($) *"}),r.jsx(he,{id:"total_amount",type:"number",step:"0.01",min:"0",value:a.total_amount,onChange:x=>o(b=>({...b,total_amount:parseFloat(x.target.value)||0})),placeholder:"0.00",required:!0})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"notes",children:"Notes"}),r.jsx(di,{id:"notes",value:a.notes,onChange:x=>o(b=>({...b,notes:x.target.value})),placeholder:"Additional notes...",rows:3})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{htmlFor:"documents",children:"Documents/Images"}),r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx(he,{id:"documents",type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx,.txt",onChange:v,className:"cursor-pointer"}),l.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2",children:l.map((x,b)=>r.jsxs("div",{className:"flex items-center gap-2 bg-muted p-2 rounded text-sm",children:[x.type.startsWith("image/")?r.jsx(JR,{className:"h-4 w-4"}):r.jsx(Ct,{className:"h-4 w-4"}),r.jsx("span",{className:"truncate max-w-32",children:x.name}),r.jsx(V,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(b),className:"h-auto p-1",children:r.jsx(Rh,{className:"h-3 w-3"})})]},b))})]})]}),r.jsx(V,{type:"submit",disabled:i,children:i?"Adding...":"Add Expense"})]})})})]})}),t.length>0&&r.jsx(W,{children:r.jsxs(dg,{open:h,onOpenChange:m,children:[r.jsx(ug,{asChild:!0,children:r.jsx(Z,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(re,{className:"flex items-center justify-between",children:["Recent Expenses",r.jsx(wa,{className:`h-4 w-4 transition-transform ${h?"rotate-180":""}`})]})})}),r.jsx(hg,{children:r.jsx(H,{children:r.jsx("div",{className:"space-y-3",children:t.map(x=>r.jsxs("div",{className:"border rounded-lg p-3",children:[r.jsxs("div",{className:"flex justify-between items-start",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-medium",children:x.expense_detail}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Client: ",x.billed_to_client]}),r.jsxs("p",{className:"text-sm text-muted-foreground",children:["Date: ",He(new Date(x.expense_date),"MMM dd, yyyy")]}),(x.hours>0||x.mileage>0)&&r.jsxs("p",{className:"text-sm text-muted-foreground",children:[x.hours>0&&`${x.hours}h`,x.hours>0&&x.mileage>0&&" β’ ",x.mileage>0&&`${x.mileage} mi`]}),x.notes&&r.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:x.notes})]}),r.jsx("div",{className:"text-right",children:r.jsxs("span",{className:"text-lg font-semibold",children:["$",x.total_amount]})})]}),r.jsx(MLe,{userId:e,expenseId:x.id,expenseDetail:x.expense_detail})]},x.id))})})})]})})]})},cj=({onLogout:e,profile:t})=>{const n=zl(),i=[{label:"Invoices",path:"/agent",icon:VK},{label:"Calendar",path:"/agent/calendar",icon:Ln},{label:"Tasks",path:"/agent/tasks",icon:Hn},{label:"MileIQ",path:"/agent/mileiq",icon:$s}];return r.jsx("div",{className:"border-b border-border bg-card",children:r.jsx("div",{className:"container mx-auto px-4",children:r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsx("nav",{className:"flex items-center space-x-8",children:i.map(s=>{const a=s.icon,o=n.pathname===s.path;return r.jsxs(te,{to:s.path,className:je("flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium transition-colors",o?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[r.jsx(a,{className:"w-4 h-4"}),s.label]},s.path)})}),t&&r.jsx("div",{className:"hidden md:flex items-center gap-4 text-sm text-muted-foreground",children:r.jsx("span",{className:"font-medium text-foreground",children:t.full_name||"Agent"})}),r.jsxs(V,{variant:"outline",onClick:e,children:[r.jsx(Eb,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})})})},$Le=({user:e,onLogout:t})=>{const[n,i]=j.useState([]),[s,a]=j.useState([]),[o,l]=j.useState([]),[c,d]=j.useState({default_hourly_rate:30,default_mileage_rate:.65}),[u,h]=j.useState(!0),[m,f]=j.useState(null),[g,p]=j.useState(null),{toast:v}=Lt();j.useEffect(()=>{y(),x(),b(),w(),N()},[e]);const y=async()=>{try{const{data:C,error:P}=await Q.rpc("has_role",{_user_id:e.id,_role:"agent"});P?(console.error("Error checking agent role:",P),f(!1)):f(C||!1)}catch(C){console.error("Error in agent role check:",C),f(!1)}finally{h(!1)}},x=async()=>{try{const{data:C,error:P}=await Q.from("profiles").select("*").eq("id",e.id).maybeSingle();if(P&&P.code!=="PGRST116"){console.error("Profile load error:",P);return}C&&d({full_name:C.full_name||"",email:C.email||"",default_hourly_rate:C.default_hourly_rate||30,default_mileage_rate:C.default_mileage_rate||.65,agent_pi_dps_number:C.agent_pi_dps_number||"",agent_license_type:C.agent_license_type||void 0,agent_license_renewal_date:C.agent_license_renewal_date||"",insurance_carrier:C.insurance_carrier||"",insurance_expiration_date:C.insurance_expiration_date||"",emergency_contact_name:C.emergency_contact_name||"",emergency_contact_phone:C.emergency_contact_phone||"",agent_id_file_path:C.agent_id_file_path||""})}catch(C){console.error("Error loading profile:",C)}},b=async()=>{try{const{data:C,error:P}=await Q.from("timesheet_entries").select("*").eq("user_id",e.id).order("work_date",{ascending:!1});if(P){console.error("Entries load error:",P),v({title:"Error",description:"Failed to load timesheet entries.",variant:"destructive"});return}i(C||[])}catch(C){console.error("Error loading timesheet entries:",C),v({title:"Error",description:"Failed to load timesheet entries.",variant:"destructive"})}},w=async()=>{try{const{data:C,error:P}=await Q.from("agent_expenses").select("*").eq("user_id",e.id).order("expense_date",{ascending:!1});if(P){console.error("Expenses load error:",P);return}a(C||[])}catch(C){console.error("Error loading expenses:",C)}},N=async()=>{try{const{data:C,error:P}=await Q.from("client_payments").select("*").eq("user_id",e.id).order("paid_date",{ascending:!1});if(P){console.error("Payments load error:",P);return}l(C||[])}catch(C){console.error("Error loading expenses:",C)}},S=async C=>{try{const{error:P}=await Q.from("profiles").upsert({id:e.id,full_name:C.full_name,email:C.email,default_hourly_rate:C.default_hourly_rate,default_mileage_rate:C.default_mileage_rate,agent_pi_dps_number:C.agent_pi_dps_number,agent_license_type:C.agent_license_type,agent_license_renewal_date:C.agent_license_renewal_date||null,insurance_carrier:C.insurance_carrier,insurance_expiration_date:C.insurance_expiration_date||null,emergency_contact_name:C.emergency_contact_name,emergency_contact_phone:C.emergency_contact_phone,agent_id_file_path:C.agent_id_file_path,payment_payable_to:C.payment_payable_to,payment_address_line1:C.payment_address_line1,payment_address_line2:C.payment_address_line2,payment_city:C.payment_city,payment_state:C.payment_state,payment_zip:C.payment_zip});if(P)throw P;d(C),v({title:"Success",description:"Profile updated successfully."})}catch(P){console.error("Error updating profile:",P),v({title:"Error",description:"Failed to update profile.",variant:"destructive"})}},k=async C=>{try{if(g){const{error:P}=await Q.from("timesheet_entries").update({work_date:C.work_date,client_name:C.client_name,work_type:C.work_type,hours:C.hours,mileage:C.mileage,notes:C.notes,hourly_rate:C.hourly_rate,mileage_rate:C.mileage_rate}).eq("id",g.id);if(P)throw P;v({title:"Success",description:"Entry updated successfully."})}else{const{error:P}=await Q.from("timesheet_entries").insert({user_id:e.id,work_date:C.work_date,client_name:C.client_name,work_type:C.work_type,hours:C.hours,mileage:C.mileage,notes:C.notes,hourly_rate:C.hourly_rate||c.default_hourly_rate,mileage_rate:C.mileage_rate||c.default_mileage_rate});if(P)throw P;v({title:"Success",description:"Entry added successfully."})}p(null),b()}catch(P){console.error("Error saving entry:",P),v({title:"Error",description:"Failed to save entry.",variant:"destructive"})}},_=C=>{p(C)},D=async C=>{try{const{error:P}=await Q.from("timesheet_entries").delete().eq("id",C);if(P)throw P;v({title:"Success",description:"Entry deleted successfully."}),b()}catch(P){console.error("Error deleting entry:",P),v({title:"Error",description:"Failed to delete entry.",variant:"destructive"})}},A=async(C,P,I)=>{try{const{data:R,error:O}=await Q.from("client_payments").insert({user_id:e.id,client_name:C,amount_paid:I,paid_date:P}).select().single();if(O)throw O;const{error:$}=await Q.from("timesheet_entries").update({payment_id:R.id}).eq("user_id",e.id).eq("client_name",C).is("payment_id",null);if($)throw $;const{error:q}=await Q.from("agent_expenses").update({payment_id:R.id}).eq("user_id",e.id).eq("billed_to_client",C).is("payment_id",null);if(q)throw q;await Promise.all([b(),w(),N()])}catch(R){throw console.error("Error marking paid:",R),R}},E=async C=>{try{const P=n.filter($=>!$.payment_id),I=s.filter($=>!$.payment_id),R={};P.forEach($=>{const q=$.client_name;R[q]=(R[q]||0)+($.total_amount||0)}),I.forEach($=>{const q=$.billed_to_client||"Unbilled";R[q]=(R[q]||0)+($.total_amount||0)});const O=[];for(const[$,q]of Object.entries(R))if(q>0)try{const{data:z,error:J}=await Q.from("client_payments").insert({user_id:e.id,client_name:$,amount_paid:q,paid_date:C}).select().single();if(J)throw J;const{error:ne}=await Q.from("timesheet_entries").update({payment_id:z.id}).eq("user_id",e.id).eq("client_name",$).is("payment_id",null);if(ne)throw ne;const{error:pe}=await Q.from("agent_expenses").update({payment_id:z.id}).eq("user_id",e.id).eq("billed_to_client",$).is("payment_id",null);if(pe)throw pe}catch(z){console.error(`Error processing payment for ${$}:`,z),O.push($)}if(await Promise.all([b(),w(),N()]),O.length>0)throw new Error(`Failed to process payments for: ${O.join(", ")}`)}catch(P){throw console.error("Error in batch mark paid:",P),P}},T=[...n.map(C=>({...C,entry_type:"timesheet"})),...s.map(C=>({id:C.id,work_date:C.expense_date,client_name:C.billed_to_client,work_type:C.expense_detail.split(" ").slice(0,3).join(" "),hours:C.hours||0,mileage:C.mileage||0,notes:C.notes,total_amount:C.total_amount,payment_id:C.payment_id,expense_detail:C.expense_detail,entry_type:"expense"}))],M=T.filter(C=>!C.payment_id);return u?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):m===!1?r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Access Denied - Agent Portal - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:r.jsx(W,{className:"max-w-md w-full",children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-orange-500 mx-auto mb-4"}),r.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Access Pending"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Your account is awaiting admin approval to access the Agent Portal. Please contact your administrator for access."}),r.jsxs(V,{variant:"outline",onClick:t,children:[r.jsx(Eb,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})})})]}):r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Agent Portal - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(cj,{onLogout:t,profile:c}),r.jsxs("div",{className:"container mx-auto px-4 py-8 space-y-6",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:r.jsx("span",{className:"text-white font-bold text-sm",children:"T"})}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Agent Portal"}),r.jsxs("p",{className:"text-muted-foreground",children:["Welcome back, ",c.full_name||e.email]})]})]}),r.jsx(fLe,{entries:M}),r.jsx(DLe,{profile:c,onProfileUpdate:S,userId:e.id}),r.jsx(hLe,{onSubmit:k,editingEntry:g,onCancelEdit:()=>p(null),defaultHourlyRate:c.default_hourly_rate,defaultMileageRate:c.default_mileage_rate}),r.jsx(RLe,{userId:e.id}),r.jsx(mLe,{entries:M,onEdit:_,onDelete:D}),r.jsx(ALe,{entries:T,payments:o,onMarkPaid:A,onMarkAllPaid:E})]})]})]})},aH=()=>{const[e,t]=j.useState(null),[n,i]=j.useState(null),[s,a]=j.useState(!0);j.useEffect(()=>{const{data:{subscription:d}}=Q.auth.onAuthStateChange((u,h)=>{i(h),t((h==null?void 0:h.user)??null),u==="SIGNED_IN"?_t.info("Agent session established"):u==="SIGNED_OUT"&&_t.info("Agent session ended")});return Q.auth.getSession().then(({data:{session:u}})=>{i(u),t((u==null?void 0:u.user)??null),a(!1)}),()=>d.unsubscribe()},[]);const o=()=>{_t.info("Agent authentication completed")},l=async()=>{try{const{error:d}=await Q.auth.signOut();d?(console.error("Logout error:",d),_t.error("Agent logout failed",{error:d.message})):_t.info("Agent logged out successfully")}catch(d){console.error("Logout error:",d),_t.error("Agent logout error",{error:d instanceof Error?d.message:"Unknown error"})}};if(s)return r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})});if(!e||!n)return r.jsx(lj,{onAuthSuccess:o});if(window.location.pathname==="/agent/prototype"){const d=L.lazy(()=>Si(()=>import("./AgentDashboardPrototype-79IwwJNc.js"),[]));return r.jsx(L.Suspense,{fallback:r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}),children:r.jsx(d,{user:e,onLogout:l})})}return r.jsx($Le,{user:e,onLogout:l})},LLe=()=>r.jsx(aH,{}),ULe=()=>r.jsx(aH,{}),FLe=({userId:e})=>{const[t,n]=j.useState([]),[i,s]=j.useState(!1),[a,o]=j.useState(!1),[l,c]=j.useState({start:He(new Date(Date.now()-30*24*60*60*1e3),"yyyy-MM-dd"),end:He(new Date(Date.now()+30*24*60*60*1e3),"yyyy-MM-dd")}),{toast:d}=Lt();j.useEffect(()=>{u()},[l]);const u=async()=>{s(!0);try{const w=new Date(l.start).toISOString(),N=new Date(l.end+"T23:59:59").toISOString(),{data:S,error:k}=await Q.functions.invoke("google-calendar",{body:{action:"list-events",calendarId:"primary",timeMin:w,timeMax:N,maxResults:100}});if(k)throw k;n(S.events||[])}catch(w){console.error("Failed to load events:",w),d({title:"Error",description:"Failed to load calendar events",variant:"destructive"})}finally{s(!1)}},h=w=>{const N=w.start.dateTime||w.start.date,S=w.end.dateTime||w.end.date;if(!N)return"No date";const k=Rn(N);if(w.start.date)return`${He(k,"MMM d, yyyy")} (All day)`;{const _=S?Rn(S):k;return`${He(k,"MMM d, yyyy h:mm a")} - ${He(_,"h:mm a")}`}},m=w=>{const N=w.start.dateTime||w.start.date;if(!N)return"unknown";const S=Rn(N);return kce(S)?"today":jce(S)?"upcoming":Nce(S)?"past":"unknown"},f=w=>{switch(w){case"today":return"default";case"upcoming":return"secondary";case"past":return"outline";default:return"outline"}},g=w=>{switch(w){case"today":return"Today";case"upcoming":return"Upcoming";case"past":return"Past";default:return"Unknown"}},p=[...t].sort((w,N)=>{const S=w.start.dateTime||w.start.date,k=N.start.dateTime||N.start.date;if(!S||!k)return 0;const _=Rn(S),D=Rn(k),A=m(w),E=m(N);return A==="past"&&E!=="past"?1:E==="past"&&A!=="past"?-1:_.getTime()-D.getTime()}),v=p.find(w=>{const N=m(w);return N==="today"||N==="upcoming"}),y=p.filter(w=>m(w)==="past"),x=p.filter(w=>{const N=m(w);return N==="today"||N==="upcoming"}),b=w=>{const N=m(w);return r.jsxs("div",{className:"border rounded-lg p-4 space-y-2 hover:bg-muted/50 transition-colors",children:[r.jsx("div",{className:"flex items-start justify-between",children:r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h4",{className:"font-medium",children:w.summary||"Untitled Event"}),r.jsx(Je,{variant:f(N),children:g(N)})]}),r.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[r.jsx(Sn,{className:"h-3 w-3"}),h(w)]}),w.location&&r.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[r.jsx(Et,{className:"h-3 w-3"}),w.location]}),w.attendees&&w.attendees.length>0&&r.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[r.jsx(pn,{className:"h-3 w-3"}),w.attendees.length," attendee",w.attendees.length!==1?"s":""]})]})}),w.description&&r.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:w.description})]},w.id)};return r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Ln,{className:"h-5 w-5"}),"Calendar Activity"]}),r.jsxs(V,{onClick:u,disabled:i,variant:"outline",size:"sm",children:[r.jsx(op,{className:`h-4 w-4 mr-2 ${i?"animate-spin":""}`}),"Refresh"]})]})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"start-date",children:"Start Date"}),r.jsx(he,{id:"start-date",type:"date",value:l.start,onChange:w=>c(N=>({...N,start:w.target.value}))})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"end-date",children:"End Date"}),r.jsx(he,{id:"end-date",type:"date",value:l.end,onChange:w=>c(N=>({...N,end:w.target.value}))})]})]}),r.jsx("div",{className:"space-y-4",children:i?r.jsxs("div",{className:"text-center py-8",children:[r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary mx-auto"}),r.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Loading events..."})]}):t.length===0?r.jsxs("div",{className:"text-center py-8",children:[r.jsx(Ln,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"No events found in this date range"})]}):r.jsxs(r.Fragment,{children:[v&&r.jsxs("div",{className:"space-y-2",children:[r.jsx("h3",{className:"text-lg font-semibold text-primary",children:"Next Activity"}),b(v)]}),x.filter(w=>w.id!==(v==null?void 0:v.id)).length>0&&r.jsxs("div",{className:"space-y-2",children:[r.jsx("h3",{className:"text-md font-medium",children:"Upcoming Events"}),r.jsx("div",{className:"space-y-3",children:x.filter(w=>w.id!==(v==null?void 0:v.id)).map(b)})]}),y.length>0&&r.jsxs("div",{className:"space-y-2",children:[r.jsxs(V,{variant:"outline",onClick:()=>o(!a),className:"w-full justify-between",children:["Past Events (",y.length,")",r.jsx(op,{className:`h-4 w-4 transition-transform ${a?"rotate-180":""}`})]}),a&&r.jsx("div",{className:"space-y-3 pl-4 border-l-2 border-muted",children:y.map(b)})]})]})})]})]})},BLe=({userId:e,onEventCreated:t})=>{const[n,i]=j.useState(!1),[s,a]=j.useState({summary:"",description:"",location:"",startDate:He(new Date,"yyyy-MM-dd"),startTime:He(new Date,"HH:mm"),endDate:He(new Date,"yyyy-MM-dd"),endTime:He(yE(new Date,1),"HH:mm"),attendees:"",calendarId:"primary"}),{toast:o}=Lt(),l=(d,u)=>{a(h=>({...h,[d]:u})),d==="startDate"&&u>s.endDate&&a(h=>({...h,endDate:u}))},c=async()=>{if(!s.summary.trim()){o({title:"Validation Error",description:"Event title is required",variant:"destructive"});return}i(!0);try{const d=new Date(`${s.startDate}T${s.startTime}`),u=new Date(`${s.endDate}T${s.endTime}`);if(u<=d)throw new Error("End time must be after start time");const h=s.attendees.split(",").map(p=>p.trim()).filter(p=>p).map(p=>({email:p})),m={summary:s.summary,description:s.description||void 0,location:s.location||void 0,start:{dateTime:d.toISOString(),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},end:{dateTime:u.toISOString(),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},attendees:h.length>0?h:void 0},{data:f,error:g}=await Q.functions.invoke("google-calendar",{body:{action:"create-event",calendarId:s.calendarId,event:m}});if(g)throw g;o({title:"Event Created",description:`"${s.summary}" has been added to your calendar`}),a({summary:"",description:"",location:"",startDate:He(new Date,"yyyy-MM-dd"),startTime:He(new Date,"HH:mm"),endDate:He(new Date,"yyyy-MM-dd"),endTime:He(yE(new Date,1),"HH:mm"),attendees:"",calendarId:"primary"}),t==null||t()}catch(d){console.error("Failed to create event:",d),o({title:"Error",description:d instanceof Error?d.message:"Failed to create event",variant:"destructive"})}finally{i(!1)}};return r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(rP,{className:"h-5 w-5"}),"Schedule Activity"]})}),r.jsxs(H,{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"summary",children:"Event Title *"}),r.jsx(he,{id:"summary",value:s.summary,onChange:d=>l("summary",d.target.value),placeholder:"Client meeting, surveillance, etc."})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"start-date",children:"Start Date"}),r.jsx(he,{id:"start-date",type:"date",value:s.startDate,onChange:d=>l("startDate",d.target.value)})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"start-time",children:"Start Time"}),r.jsx(he,{id:"start-time",type:"time",value:s.startTime,onChange:d=>l("startTime",d.target.value)})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"end-date",children:"End Date"}),r.jsx(he,{id:"end-date",type:"date",value:s.endDate,onChange:d=>l("endDate",d.target.value)})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"end-time",children:"End Time"}),r.jsx(he,{id:"end-time",type:"time",value:s.endTime,onChange:d=>l("endTime",d.target.value)})]})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsxs(fe,{htmlFor:"location",className:"flex items-center gap-1",children:[r.jsx(Et,{className:"h-3 w-3"}),"Location"]}),r.jsx(he,{id:"location",value:s.location,onChange:d=>l("location",d.target.value),placeholder:"Address or meeting location"})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsxs(fe,{htmlFor:"attendees",className:"flex items-center gap-1",children:[r.jsx(pn,{className:"h-3 w-3"}),"Attendees"]}),r.jsx(he,{id:"attendees",value:s.attendees,onChange:d=>l("attendees",d.target.value),placeholder:"email1@example.com, email2@example.com"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Separate multiple email addresses with commas"})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(fe,{htmlFor:"description",children:"Description"}),r.jsx(di,{id:"description",value:s.description,onChange:d=>l("description",d.target.value),placeholder:"Additional details about the activity...",rows:3})]}),r.jsxs(V,{onClick:c,disabled:n||!s.summary.trim(),className:"w-full",children:[r.jsx(rP,{className:"mr-2 h-4 w-4"}),n?"Creating Event...":"Create Event"]})]})]})},WLe=()=>{const[e,t]=j.useState(null),[n,i]=j.useState(!0),[s,a]=j.useState(null),{toast:o}=Lt();j.useEffect(()=>{Q.auth.getSession().then(({data:{session:h}})=>{t((h==null?void 0:h.user)??null),h!=null&&h.user?l(h.user.id):i(!1)});const{data:{subscription:u}}=Q.auth.onAuthStateChange((h,m)=>{t((m==null?void 0:m.user)??null),m!=null&&m.user?l(m.user.id):(i(!1),a(null))});return()=>u.unsubscribe()},[]);const l=async u=>{try{const{data:h,error:m}=await Q.rpc("has_role",{_user_id:u,_role:"agent"});m?(console.error("Error checking agent role:",m),a(!1)):a(h||!1)}catch(h){console.error("Error in agent role check:",h),a(!1)}finally{i(!1)}},c=async()=>{try{const{error:u}=await Q.auth.signOut();if(u)throw u}catch(u){console.error("Error logging out:",u),o({title:"Error",description:"Failed to log out",variant:"destructive"})}},d=()=>{};return n?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):e?s===!1?r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Access Denied - Agent Calendar - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:r.jsx(W,{className:"max-w-md w-full",children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-orange-500 mx-auto mb-4"}),r.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Access Pending"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Your account is awaiting admin approval to access the Agent Calendar. Please contact your administrator for access."}),r.jsxs(V,{variant:"outline",onClick:c,children:[r.jsx(Eb,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})})})]}):r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Agent Calendar - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(cj,{onLogout:c}),r.jsxs("div",{className:"container mx-auto px-4 py-8 space-y-6",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ln,{className:"h-8 w-8 text-primary"}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Agent Calendar"}),r.jsx("p",{className:"text-muted-foreground",children:"Manage your calendar activities and schedule"})]})]}),r.jsxs(Ml,{defaultValue:"activity",className:"w-full",children:[r.jsxs(xo,{className:"grid w-full grid-cols-2 mb-6",children:[r.jsx(gt,{value:"activity",children:"Calendar Activity"}),r.jsx(gt,{value:"schedule",children:"Schedule Activity"})]}),r.jsx(vt,{value:"activity",className:"space-y-4",children:r.jsx(FLe,{userId:e.id})}),r.jsx(vt,{value:"schedule",className:"space-y-4",children:r.jsx(BLe,{userId:e.id,onEventCreated:d})})]})]})]})]}):r.jsx(lj,{onAuthSuccess:()=>{}})},zLe=({searchTerm:e,onSearchChange:t,statusFilter:n,onStatusFilterChange:i,dueDateFilter:s,onDueDateFilterChange:a,startDateFilter:o,onStartDateFilterChange:l,endDateFilter:c,onEndDateFilterChange:d,onReset:u,activeFiltersCount:h})=>r.jsxs("div",{className:"space-y-4 p-4 border border-border rounded-lg bg-card",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx(AK,{className:"h-4 w-4 text-primary"}),r.jsx("span",{className:"font-medium text-foreground",children:"Filters"}),h>0&&r.jsxs(Je,{variant:"secondary",className:"text-xs",children:[h," active"]}),h>0&&r.jsxs(V,{variant:"ghost",size:"sm",onClick:u,className:"ml-auto text-xs",children:[r.jsx(ZR,{className:"h-3 w-3 mr-1"}),"Reset"]})]}),r.jsxs("div",{className:"relative",children:[r.jsx(Pi,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),r.jsx(he,{placeholder:"Search tasks...",value:e,onChange:m=>t(m.target.value),className:"pl-10"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-3",children:[r.jsxs(un,{value:n,onValueChange:i,children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Status"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"all",children:"All Tasks"}),r.jsx(be,{value:"needsAction",children:"Active"}),r.jsx(be,{value:"completed",children:"Completed"})]})]}),r.jsxs(un,{value:s,onValueChange:a,children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Due Date"})}),r.jsxs(rn,{children:[r.jsx(be,{value:"all",children:"All Due Dates"}),r.jsx(be,{value:"overdue",children:"Overdue"}),r.jsx(be,{value:"today",children:"Due Today"}),r.jsx(be,{value:"tomorrow",children:"Due Tomorrow"}),r.jsx(be,{value:"this-week",children:"This Week"}),r.jsx(be,{value:"next-week",children:"Next Week"}),r.jsx(be,{value:"no-due-date",children:"No Due Date"})]})]}),r.jsx(he,{type:"date",value:o,onChange:m=>l(m.target.value),placeholder:"Start Date",className:"text-sm"}),r.jsx(he,{type:"date",value:c,onChange:m=>d(m.target.value),placeholder:"End Date",className:"text-sm"})]})]}),oH=({task:e,onComplete:t,onDelete:n,onCalendarSync:i,onUpdateTask:s,isCalendarSynced:a,reminderEnabled:o=!1,reminderMinutes:l=15,onUpdateReminder:c})=>{const[d,u]=j.useState(!1),[h,m]=j.useState(),[f,g]=j.useState(""),[p,v]=j.useState(!1),[y,x]=j.useState(!1),[b,w]=j.useState(!1);j.useEffect(()=>{if(e.due){const E=Rn(e.due);m(E),g(He(E,"HH:mm"))}},[e.due]);const S=(()=>{if(!e.due)return null;const E=Rn(e.due),T=new Date;return Rc(T,E)&&!En(T,E)?"overdue":En(T,E)?"today":"upcoming"})(),k=E=>{const T=/(https?:\/\/[^\s]+)/g;return E.split(T).map((C,P)=>T.test(C)?r.jsxs("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/80 underline inline-flex items-center gap-1 min-w-0",children:[r.jsx("span",{className:"break-all min-w-0",children:C}),r.jsx(Tl,{className:"h-3 w-3 flex-shrink-0"})]},P):C)},_=()=>{if(h){const[E,T]=f.split(":").map(Number),M=new Date(h);M.setHours(E,T,0,0),s(e.id,{due:M.toISOString()})}else s(e.id,{due:null});u(!1),x(!1),w(!1)},D=()=>{if(!e.due)return null;const E=Rn(e.due),T=He(E,"MMM d, yyyy");switch(S){case"overdue":return r.jsxs(Je,{variant:"destructive",className:"text-xs",children:[r.jsx(ri,{className:"h-3 w-3 mr-1"}),"Overdue: ",T]});case"today":return r.jsxs(Je,{variant:"secondary",className:"text-xs bg-orange-100 text-orange-800",children:[r.jsx(Sn,{className:"h-3 w-3 mr-1"}),"Due Today"]});case"upcoming":return r.jsxs(Je,{variant:"outline",className:"text-xs",children:[r.jsx(co,{className:"h-3 w-3 mr-1"}),"Due: ",T]});default:return null}},A=async()=>{v(!0);try{await t(e)}finally{v(!1)}};return r.jsx(W,{id:`task-${e.id}`,className:`transition-all duration-200 hover:shadow-md ${e.status==="completed"?"opacity-75":""} ${a?"bg-green-50 border-green-200 dark:bg-green-950 dark:border-green-800":""}`,children:r.jsxs(H,{className:"p-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[e.due&&D(),e.updated&&r.jsxs("span",{className:"text-xs font-bold text-blue-600",children:["Created: ",He(Rn(e.updated),"MMM d, yyyy h:mm a")]})]}),r.jsx(V,{onClick:A,disabled:p,variant:e.status==="completed"?"secondary":"default",size:"sm",className:e.status==="completed"?"bg-green-100 hover:bg-green-200":"",children:p?r.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-t-2 border-b-2 border-current"}):e.status==="completed"?r.jsx(GR,{className:"h-4 w-4"}):r.jsx(XR,{className:"h-4 w-4"})})]}),e.due?r.jsx("div",{className:"mb-3",children:d?r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(ed,{open:y,onOpenChange:E=>d&&x(E),children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",size:"sm",className:"h-8 px-2 text-xs",children:[r.jsx(Ln,{className:"h-3 w-3 mr-1"}),h?He(h,"MMM d"):"Pick date"]})}),r.jsx(Rl,{className:"w-auto p-0 z-50",align:"start",side:"bottom",onPointerDownOutside:()=>x(!1),children:r.jsx(co,{mode:"single",selected:h,onSelect:E=>{m(E),x(!1)},initialFocus:!0,className:"p-3 pointer-events-auto"})})]}),r.jsx(he,{type:"time",value:f,onChange:E=>g(E.target.value),className:"h-8 w-24 text-xs"}),r.jsx(V,{onClick:_,size:"sm",className:"h-8 px-2",children:"Save"}),r.jsx(V,{onClick:()=>{m(void 0),g(""),s(e.id,{due:null}),u(!1),x(!1),w(!1)},variant:"outline",size:"sm",className:"h-8 px-2",children:"Clear"}),r.jsx(V,{onClick:()=>{u(!1),x(!1),w(!1)},variant:"outline",size:"sm",className:"h-8 px-2",children:"Cancel"})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"font-bold text-orange-600",children:["Due: ",He(Rn(e.due),"MMM d, yyyy h:mm a")]}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>u(!0),className:"h-6 w-6 p-0",children:r.jsx(N_,{className:"h-3 w-3"})})]})}):d?r.jsx("div",{className:"mb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(ed,{open:b,onOpenChange:E=>d&&w(E),children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",size:"sm",className:"h-8 px-2 text-xs",children:[r.jsx(Ln,{className:"h-3 w-3 mr-1"}),h?He(h,"MMM d"):"Pick date"]})}),r.jsx(Rl,{className:"w-auto p-0 z-50",align:"start",side:"bottom",onPointerDownOutside:()=>w(!1),children:r.jsx(co,{mode:"single",selected:h,onSelect:E=>{m(E),w(!1)},initialFocus:!0,className:"p-3 pointer-events-auto"})})]}),r.jsx(he,{type:"time",value:f,onChange:E=>g(E.target.value),className:"h-8 w-24 text-xs"}),r.jsx(V,{onClick:_,size:"sm",className:"h-8 px-2",children:"Save"}),r.jsx(V,{onClick:()=>{u(!1),w(!1)},variant:"outline",size:"sm",className:"h-8 px-2",children:"Cancel"})]})}):r.jsx("div",{className:"mb-3",children:r.jsxs(V,{variant:"outline",size:"sm",onClick:()=>{u(!0),m(new Date),g("09:00")},className:"h-8 px-2 text-xs",children:[r.jsx(Ln,{className:"h-3 w-3 mr-1"}),"Add due date"]})}),e.due&&e.status==="needsAction"&&c&&r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx(Qu,{checked:o,onCheckedChange:E=>c(e.id,!!E,l)}),r.jsx(bK,{className:"h-3 w-3"}),r.jsx("span",{className:"text-xs",children:"Remind"}),o&&r.jsx(he,{type:"number",value:l,onChange:E=>c(e.id,!0,parseInt(E.target.value)||15),className:"h-6 w-16 text-xs",min:"1",max:"1440"})]}),r.jsx("div",{className:"flex items-start gap-3",children:r.jsx("div",{className:"flex-1 min-w-0 ml-3",children:r.jsxs("div",{className:"flex items-start justify-between gap-2",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h3",{className:`font-medium text-foreground break-words whitespace-pre-wrap ${e.status==="completed"?"line-through text-muted-foreground":""}`,children:k(e.title)}),e.notes&&r.jsx("div",{className:"text-sm text-muted-foreground mt-1 whitespace-pre-wrap break-words",children:k(e.notes)}),r.jsx("div",{className:"flex items-center gap-2 mt-2",children:a&&r.jsxs(Je,{variant:"outline",className:"text-xs bg-green-100 text-green-800 border-green-300 dark:bg-green-900 dark:text-green-200 dark:border-green-700",children:[r.jsx(Ln,{className:"h-3 w-3 mr-1"}),"Synced to Calendar"]})}),e.completed&&r.jsxs("p",{className:"text-xs text-muted-foreground mt-1 font-medium",children:["β Completed: ",He(Rn(e.completed),"MMM d, yyyy h:mm a")]})]}),r.jsxs("div",{className:"flex items-center gap-1",children:[e.due&&e.status==="needsAction"&&r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>i(e),className:"text-xs px-2 py-1 h-auto",title:"Sync to Calendar",children:r.jsx(Ln,{className:"h-4 w-4"})}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>n(e.id),className:"text-destructive hover:text-destructive/80 px-2 py-1 h-auto",title:"Delete Task",children:r.jsx(Rh,{className:"h-4 w-4"})})]})]})})})]})})},qLe=({completedTasks:e,onComplete:t,onDelete:n,onCalendarSync:i,onUpdateTask:s,syncedTaskIds:a,taskReminders:o,onUpdateReminder:l})=>{const[c,d]=j.useState(!1);return e.length===0?null:r.jsxs(W,{className:"border-green-200 bg-green-50/30",children:[r.jsx(Z,{className:"pb-3",children:r.jsx(V,{variant:"ghost",onClick:()=>d(!c),className:"flex items-center justify-between w-full p-0 h-auto font-medium text-left hover:bg-transparent",children:r.jsxs("div",{className:"flex items-center gap-2",children:[c?r.jsx(wa,{className:"h-4 w-4 text-green-600"}):r.jsx(b_,{className:"h-4 w-4 text-green-600"}),r.jsx(Hn,{className:"h-5 w-5 text-green-600"}),r.jsx("span",{className:"text-green-800",children:"Completed Tasks"}),r.jsx(Je,{variant:"secondary",className:"bg-green-100 text-green-800",children:e.length})]})})}),c&&r.jsx(H,{className:"pt-0",children:r.jsx("div",{className:"space-y-3",children:e.map(u=>{var h,m;return r.jsx(oH,{task:u,onComplete:t,onDelete:n,onCalendarSync:i,onUpdateTask:s,isCalendarSynced:a.has(u.id),reminderEnabled:((h=o.get(u.id))==null?void 0:h.enabled)||!1,reminderMinutes:((m=o.get(u.id))==null?void 0:m.minutes)||15,onUpdateReminder:l},u.id)})})})]})},HLe=e=>{const[t,n]=j.useState(""),[i,s]=j.useState("all"),[a,o]=j.useState("all"),[l,c]=j.useState(""),[d,u]=j.useState(""),h=j.useMemo(()=>e.filter(g=>{var p;if(t){const v=t.toLowerCase(),y=g.title.toLowerCase().includes(v),x=(p=g.notes)==null?void 0:p.toLowerCase().includes(v),b=g.due&&g.due.toLowerCase().includes(v);if(!y&&!x&&!b)return!1}if(i!=="all"&&g.status!==i)return!1;if(a!=="all"){const v=new Date;switch(a){case"overdue":if(!g.due)return!1;const y=Rn(g.due);if(!Rc(v,y)||En(v,y))return!1;break;case"today":if(!g.due||!En(Rn(g.due),v))return!1;break;case"tomorrow":if(!g.due)return!1;const x=Kn(v,1);if(!En(Rn(g.due),x))return!1;break;case"this-week":if(!g.due)return!1;const b=Zi(v),w=gp(v);if(!SE(Rn(g.due),{start:b,end:w}))return!1;break;case"next-week":if(!g.due)return!1;const N=Zi(Kn(v,7)),S=gp(Kn(v,7));if(!SE(Rn(g.due),{start:N,end:S}))return!1;break;case"no-due-date":if(g.due)return!1;break}}if(l||d){if(!g.due)return!1;const v=Rn(g.due);if(l){const y=Rn(l);if(Rc(y,v))return!1}if(d){const y=Rn(d);if(Rc(v,y))return!1}}return!0}),[e,t,i,a,l,d]),m=j.useMemo(()=>{let g=0;return t&&g++,i!=="all"&&g++,a!=="all"&&g++,l&&g++,d&&g++,g},[t,i,a,l,d]);return{searchTerm:t,setSearchTerm:n,statusFilter:i,setStatusFilter:s,dueDateFilter:a,setDueDateFilter:o,startDateFilter:l,setStartDateFilter:c,endDateFilter:d,setEndDateFilter:u,filteredTasks:h,activeFiltersCount:m,resetFilters:()=>{n(""),s("all"),o("all"),c(""),u("")}}},VLe=()=>{const[e,t]=j.useState(null),[n,i]=j.useState(!0),[s,a]=j.useState(null),[o,l]=j.useState([]),[c,d]=j.useState(""),[u,h]=j.useState([]),[m,f]=j.useState(!1),[g,p]=j.useState(!1),[v,y]=j.useState(!1),[x,b]=j.useState(!1);j.useState(null);const[w,N]=j.useState({title:"",notes:"",dueDate:"",dueTime:"",assignedTo:""}),[S,k]=j.useState(new Set),[_,D]=j.useState(new Map),[A,E]=j.useState(!1),{toast:T}=Lt(),{searchTerm:M,setSearchTerm:C,statusFilter:P,setStatusFilter:I,dueDateFilter:R,setDueDateFilter:O,startDateFilter:$,setStartDateFilter:q,endDateFilter:z,setEndDateFilter:J,filteredTasks:ne,activeFiltersCount:pe,resetFilters:xe}=HLe(u);j.useEffect(()=>{Q.auth.getSession().then(({data:{session:ke}})=>{t((ke==null?void 0:ke.user)??null),ke!=null&&ke.user?De(ke.user.id):i(!1)});const{data:{subscription:ae}}=Q.auth.onAuthStateChange((ke,Ne)=>{t((Ne==null?void 0:Ne.user)??null),Ne!=null&&Ne.user?De(Ne.user.id):(i(!1),a(null))});return()=>ae.unsubscribe()},[]),j.useEffect(()=>{e&&s&&Pe()},[e,s]),j.useEffect(()=>{c&&ie()},[c]),j.useEffect(()=>{const ke=new URLSearchParams(window.location.search).get("task");if(ke&&u.length>0){const Ne=document.getElementById(`task-${ke}`);Ne&&(Ne.scrollIntoView({behavior:"smooth",block:"center"}),Ne.classList.add("ring-2","ring-primary","ring-offset-2"),setTimeout(()=>{Ne.classList.remove("ring-2","ring-primary","ring-offset-2")},3e3))}},[u]);const De=async ae=>{try{const{data:ke,error:Ne}=await Q.rpc("has_role",{_user_id:ae,_role:"agent"});Ne?(console.error("Error checking agent role:",Ne),a(!1)):a(ke||!1)}catch(ke){console.error("Error in agent role check:",ke),a(!1)}finally{i(!1)}},de=async()=>{try{const{error:ae}=await Q.auth.signOut();if(ae)throw ae}catch(ae){console.error("Error logging out:",ae),T({title:"Error",description:"Failed to log out",variant:"destructive"})}},Pe=async()=>{try{const{data:ae,error:ke}=await Q.functions.invoke("google-calendar",{body:{action:"status"}});if(ke)throw ke;if(!ae.connected){f(!1),p(!1);return}if(f(!0),p(ae.hasTasksScope===!0),ae.hasTasksScope===!1)return;const{data:Ne,error:Ue}=await Q.functions.invoke("google-tasks",{body:{action:"list-task-lists"}});if(Ue){const kt=(Ue==null?void 0:Ue.message)||String(Ue);if(kt.includes("403")||kt.toLowerCase().includes("insufficient")){p(!1);return}throw Ue}if(Ne.error){const kt=String(Ne.error);if(kt.includes("not connected")){f(!1);return}if(kt.includes("403")||kt.toLowerCase().includes("insufficient")){p(!1);return}throw new Error(kt)}l(Ne.items||[]),Ne.items&&Ne.items.length>0&&!c&&d(Ne.items[0].id)}catch(ae){console.error("Error loading task lists:",ae),f(!1),p(!1),T({title:"Error",description:"Failed to load task lists. Please connect your Google account.",variant:"destructive"})}},ie=async()=>{if(c)try{const{data:ae,error:ke}=await Q.functions.invoke("google-tasks",{body:{action:"list-tasks",tasklistId:c,showCompleted:!0,maxResults:100}});if(ke)throw ke;if(ae.error)throw new Error(ae.error);h(ae.items||[])}catch(ae){console.error("Error loading tasks:",ae),T({title:"Error",description:"Failed to load tasks",variant:"destructive"})}},me=async()=>{if(!(!w.title.trim()||!c))try{const ae={title:w.title,notes:w.notes||void 0};if(w.dueDate){const Ue=new Date(w.dueDate);if(w.dueTime){const[kt,In]=w.dueTime.split(":").map(Number);Ue.setHours(kt,In,0,0)}ae.due=Ue.toISOString()}if(w.assignedTo){const Ue=`Assigned to: ${w.assignedTo}`;ae.notes=ae.notes?`${ae.notes}
${Ue}`:Ue}const{data:ke,error:Ne}=await Q.functions.invoke("google-tasks",{body:{action:"create-task",tasklistId:c,task:ae}});if(Ne)throw Ne;if(ke.error)throw new Error(ke.error);N({title:"",notes:"",dueDate:"",dueTime:"",assignedTo:""}),b(!1),ie(),T({title:"Success",description:"Task created successfully"})}catch(ae){console.error("Error creating task:",ae),T({title:"Error",description:"Failed to create task",variant:"destructive"})}},ve=async ae=>{try{const{data:ke,error:Ne}=await Q.functions.invoke("google-tasks",{body:{action:"complete-task",tasklistId:c,taskId:ae.id}});if(Ne)throw Ne;if(ke.error)throw new Error(ke.error);ie(),T({title:"Success",description:"Task marked as completed"})}catch(ke){console.error("Error completing task:",ke),T({title:"Error",description:"Failed to complete task",variant:"destructive"})}},K=async(ae,ke)=>{if(c)try{const Ne={...ke};Ne.due===void 0&&(Ne.due=null),console.log("Updating task with:",Ne);const{data:Ue,error:kt}=await Q.functions.invoke("google-tasks",{body:{action:"update-task",tasklistId:c,taskId:ae,task:Ne}});if(kt)throw console.error("Supabase function error:",kt),kt;if(Ue.error)throw console.error("API error response:",Ue.error),new Error(Ue.error);ie(),T({title:"Success",description:"Task updated successfully"})}catch(Ne){console.error("Error updating task:",Ne);const Ue=Ne instanceof Error?Ne.message:"Failed to update task";T({title:"Error",description:Ue,variant:"destructive"})}},Ve=async(ae,ke,Ne)=>{D(Ue=>new Map(Ue.set(ae,{enabled:ke,minutes:Ne})));try{const{error:Ue}=await Q.from("google_task_events").upsert({user_id:e.id,task_id:ae,task_list_id:c||"",calendar_event_id:"",reminder_enabled:ke,reminder_minutes:Ne});if(Ue)throw Ue}catch(Ue){console.error("Error updating reminder:",Ue)}},Le=async ae=>{try{const{data:ke,error:Ne}=await Q.functions.invoke("google-tasks",{body:{action:"delete-task",tasklistId:c,taskId:ae}});if(Ne)throw Ne;if(ke.error)throw new Error(ke.error);ie(),T({title:"Success",description:"Task deleted successfully"})}catch(ke){console.error("Error deleting task:",ke),T({title:"Error",description:"Failed to delete task",variant:"destructive"})}},st=async()=>{y(!0);try{const{data:ae,error:ke}=await Q.functions.invoke("google-calendar-oauth",{body:{action:"start",user_id:e==null?void 0:e.id}});if(ke)throw ke;const Ne=window.open(ae.authUrl,"google-auth","width=500,height=600,scrollbars=yes,resizable=yes"),Ue=In=>{In.data.type==="GOOGLE_AUTH_SUCCESS"?(Ne==null||Ne.close(),window.removeEventListener("message",Ue),T({title:"Success!",description:"Google Tasks access granted successfully"}),setTimeout(()=>{Pe()},2e3)):In.data.type==="GOOGLE_AUTH_ERROR"&&(Ne==null||Ne.close(),window.removeEventListener("message",Ue),T({title:"Access Grant Failed",description:In.data.error||"Failed to grant Google Tasks access",variant:"destructive"}))};if(window.addEventListener("message",Ue),!Ne)throw new Error("Popup blocked. Please allow popups for this site.");const kt=setInterval(()=>{Ne.closed&&(clearInterval(kt),window.removeEventListener("message",Ue),y(!1))},1e3)}catch(ae){console.error("Grant access failed:",ae),T({title:"Access Grant Failed",description:ae instanceof Error?ae.message:"Failed to grant Google Tasks access",variant:"destructive"})}finally{y(!1)}},yt=async()=>{try{const{error:ae}=await Q.functions.invoke("google-calendar",{body:{action:"disconnect"}});if(ae)throw ae;f(!1),p(!1),l([]),d(""),setTimeout(()=>{st()},500)}catch(ae){console.error("Disconnect and reconnect failed:",ae),T({title:"Error",description:"Failed to disconnect and reconnect",variant:"destructive"})}},Dt=async()=>{E(!0);try{await Pe(),c&&await ie(),T({title:"Success",description:"Connection refreshed successfully"})}catch(ae){console.error("Error refreshing connection:",ae),T({title:"Error",description:"Failed to refresh connection",variant:"destructive"})}finally{E(!1)}},sn=async ae=>{if(!ae.due){T({title:"Error",description:"Task must have a due date to sync to calendar",variant:"destructive"});return}try{const ke=new Date(ae.due),Ne={summary:`Task: ${ae.title}`,description:`${ae.notes||""}
View task: ${window.location.origin}/agent/tasks?task=${ae.id}`,start:{date:ke.toISOString().split("T")[0]},end:{date:ke.toISOString().split("T")[0]}},{data:Ue,error:kt}=await Q.functions.invoke("google-calendar",{body:{action:"create-event",event:Ne}});if(kt)throw kt;const{error:In}=await Q.from("google_task_events").upsert({user_id:e.id,task_id:ae.id,task_list_id:c,calendar_event_id:Ue.event.id,reminder_enabled:!1,reminder_minutes:15});if(In)throw In;k(os=>new Set(os).add(ae.id)),T({title:"Success",description:"Task synced to calendar successfully"})}catch(ke){console.error("Error syncing to calendar:",ke),T({title:"Error",description:"Failed to sync task to calendar",variant:"destructive"})}};return j.useEffect(()=>{(async()=>{if(e)try{const{data:ke,error:Ne}=await Q.from("google_task_events").select("task_id").eq("user_id",e.id);if(Ne)throw Ne;k(new Set(ke.map(Ue=>Ue.task_id)))}catch(ke){console.error("Error loading synced tasks:",ke)}})()},[e,u]),n?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-primary"})}):e?s===!1?r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Access Denied - Agent Tasks - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-6",children:r.jsx(W,{className:"max-w-md w-full",children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-orange-500 mx-auto mb-4"}),r.jsx("h2",{className:"text-xl font-bold text-foreground mb-2",children:"Access Pending"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Your account is awaiting admin approval to access the Agent Tasks. Please contact your administrator for access."}),r.jsx(V,{variant:"outline",onClick:de,children:"Sign Out"})]})})})]}):r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"Agent Tasks - Trident Investigations"}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(cj,{onLogout:de}),r.jsxs("div",{className:"container mx-auto px-4 py-8 space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Hn,{className:"h-8 w-8 text-primary"}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Agent Tasks"}),r.jsx("p",{className:"text-muted-foreground",children:"Manage your Google Tasks"})]})]}),m&&r.jsxs(mT,{open:x,onOpenChange:b,children:[r.jsx(tLe,{asChild:!0,children:r.jsxs(V,{children:[r.jsx(ap,{className:"mr-2 h-4 w-4"}),"New Task"]})}),r.jsxs(sj,{children:[r.jsx(aj,{children:r.jsx(oj,{children:"Create New Task"})}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Title *"}),r.jsx(he,{value:w.title,onChange:ae=>N({...w,title:ae.target.value}),placeholder:"Task title"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Notes"}),r.jsx(di,{value:w.notes,onChange:ae=>N({...w,notes:ae.target.value}),placeholder:"Task description",rows:3})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Assigned To"}),r.jsx(he,{value:w.assignedTo,onChange:ae=>N({...w,assignedTo:ae.target.value}),placeholder:"Agent name or email"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-sm font-medium",children:"Due Date & Time (Optional)"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(he,{type:"date",value:w.dueDate,onChange:ae=>N({...w,dueDate:ae.target.value}),placeholder:"Select date"}),r.jsx(he,{type:"time",value:w.dueTime,onChange:ae=>N({...w,dueTime:ae.target.value}),placeholder:"Select time",disabled:!w.dueDate})]})]}),r.jsxs("div",{className:"flex gap-2 pt-4",children:[r.jsx(V,{onClick:me,disabled:!w.title.trim(),children:"Create Task"}),r.jsx(V,{variant:"outline",onClick:()=>b(!1),children:"Cancel"})]})]})]})]})]}),m?g?r.jsxs(r.Fragment,{children:[o.length>0&&r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(re,{children:"Task List"}),r.jsxs(V,{variant:"outline",size:"sm",onClick:Dt,disabled:A,children:[r.jsx(op,{className:`h-4 w-4 mr-2 ${A?"animate-spin":""}`}),"Refresh"]})]})}),r.jsx(H,{children:r.jsxs(un,{value:c,onValueChange:d,children:[r.jsx(nn,{className:"w-full",children:r.jsx(hn,{placeholder:"Select a task list"})}),r.jsx(rn,{children:o.map(ae=>r.jsx(be,{value:ae.id,children:ae.title},ae.id))})]})})]}),u.length>0&&r.jsx(zLe,{searchTerm:M,onSearchChange:C,statusFilter:P,onStatusFilterChange:I,dueDateFilter:R,onDueDateFilterChange:O,startDateFilter:$,onStartDateFilterChange:q,endDateFilter:z,onEndDateFilterChange:J,onReset:xe,activeFiltersCount:pe}),u.length===0?r.jsx(W,{children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Hn,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"No tasks found. Create your first task!"})]})}):r.jsxs("div",{className:"space-y-6",children:[ne.filter(ae=>ae.status==="needsAction").length>0&&r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(XR,{className:"h-5 w-5 text-blue-600"}),r.jsx(re,{children:"Active Tasks"}),r.jsx(Je,{variant:"secondary",children:ne.filter(ae=>ae.status==="needsAction").length})]})}),r.jsx(H,{children:r.jsx("div",{className:"space-y-3",children:ne.filter(ae=>ae.status==="needsAction").map(ae=>{var ke,Ne;return r.jsx(oH,{task:ae,onComplete:ve,onDelete:Le,onCalendarSync:sn,onUpdateTask:K,isCalendarSynced:S.has(ae.id),reminderEnabled:((ke=_.get(ae.id))==null?void 0:ke.enabled)||!1,reminderMinutes:((Ne=_.get(ae.id))==null?void 0:Ne.minutes)||15,onUpdateReminder:Ve},ae.id)})})})]}),r.jsx(qLe,{completedTasks:ne.filter(ae=>ae.status==="completed"),onComplete:ve,onDelete:Le,onCalendarSync:sn,onUpdateTask:K,syncedTaskIds:S,taskReminders:_,onUpdateReminder:Ve}),ne.length===0&&r.jsx(W,{children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Hn,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"No tasks match your current filters."}),r.jsx(V,{variant:"outline",onClick:xe,children:"Clear Filters"})]})})]})]}):r.jsx(W,{children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-orange-500 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Tasks Permission Missing"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Your Google account is connected, but Tasks permission is missing. Please grant access to continue."}),r.jsxs("div",{className:"flex gap-2 justify-center",children:[r.jsx(V,{onClick:st,disabled:v,children:v?"Granting Access...":"Grant Tasks Access"}),r.jsx(V,{variant:"outline",onClick:yt,disabled:v,children:"Disconnect & Reconnect"})]})]})}):r.jsx(W,{children:r.jsxs(H,{className:"pt-6 text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-orange-500 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Google Account Not Connected"}),r.jsx("p",{className:"text-muted-foreground mb-4",children:"Connect your Google account and grant Google Tasks permission to manage your tasks."}),r.jsx(V,{onClick:st,disabled:v,children:v?"Connecting...":"Connect Google & Grant Tasks Access"})]})})]})]})]}):r.jsx(lj,{onAuthSuccess:()=>{}})},GLe=({isOpen:e,onClose:t,rawData:n,processedData:i,filtersApplied:s})=>{const[a,o]=j.useState(""),[l,c]=j.useState(!1),{toast:d}=Lt(),u=async()=>{if(!a.trim()){d({title:"Error",description:"Please enter a batch name",variant:"destructive"});return}c(!0);try{const{data:{user:h}}=await Q.auth.getUser();if(!h)throw new Error("User not authenticated");const{error:m}=await Q.from("mileiq_batches").insert({user_id:h.id,batch_name:a.trim(),raw_data:n,processed_data:i,filters_applied:s});if(m)throw m;d({title:"Success",description:"Batch saved successfully"}),o(""),t()}catch(h){console.error("Error saving batch:",h),d({title:"Error",description:"Failed to save batch",variant:"destructive"})}finally{c(!1)}};return r.jsx(mT,{open:e,onOpenChange:t,children:r.jsxs(sj,{className:"sm:max-w-[425px]",children:[r.jsx(aj,{children:r.jsx(oj,{children:"Save MileIQ Batch"})}),r.jsxs("div",{className:"grid gap-4 py-4",children:[r.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[r.jsx(fe,{htmlFor:"batchName",className:"text-right",children:"Batch Name"}),r.jsx(he,{id:"batchName",value:a,onChange:h=>o(h.target.value),className:"col-span-3",placeholder:"Enter batch name..."})]}),r.jsxs("div",{className:"grid grid-cols-4 items-start gap-4",children:[r.jsx(fe,{className:"text-right mt-2",children:"Summary"}),r.jsxs("div",{className:"col-span-3 text-sm text-muted-foreground",children:[r.jsxs("p",{children:["Raw records: ",n.length]}),r.jsxs("p",{children:["Processed records: ",i.length]}),r.jsx("p",{children:"Current filters will be saved with this batch"})]})]})]}),r.jsxs(Iq,{children:[r.jsx(V,{variant:"outline",onClick:t,disabled:l,children:"Cancel"}),r.jsx(V,{onClick:u,disabled:l,children:l?"Saving...":"Save Batch"})]})]})})},YLe=({onLoadBatch:e})=>{const[t,n]=j.useState([]),[i,s]=j.useState(!0),{toast:a}=Lt(),o=async()=>{try{const{data:{user:c}}=await Q.auth.getUser();if(!c)return;const{data:d,error:u}=await Q.from("mileiq_batches").select("*").eq("user_id",c.id).order("created_at",{ascending:!1});if(u)throw u;n(d||[])}catch(c){console.error("Error fetching batches:",c),a({title:"Error",description:"Failed to load saved batches",variant:"destructive"})}finally{s(!1)}},l=async c=>{try{const{error:d}=await Q.from("mileiq_batches").delete().eq("id",c);if(d)throw d;n(t.filter(u=>u.id!==c)),a({title:"Success",description:"Batch deleted successfully"})}catch(d){console.error("Error deleting batch:",d),a({title:"Error",description:"Failed to delete batch",variant:"destructive"})}};return j.useEffect(()=>{o()},[]),i?r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx("div",{className:"text-muted-foreground",children:"Loading saved batches..."})}):t.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[r.jsx(Ct,{className:"h-12 w-12 text-muted-foreground mb-4"}),r.jsx("h3",{className:"text-lg font-medium mb-2",children:"No saved batches"}),r.jsx("p",{className:"text-muted-foreground",children:"Process some MileIQ data and save it as a batch to see it here."})]}):r.jsx("div",{className:"space-y-4",children:r.jsx("div",{className:"grid gap-4",children:t.map(c=>{var d,u,h;return r.jsxs(W,{className:"transition-shadow hover:shadow-md",children:[r.jsx(Z,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(re,{className:"text-lg",children:c.batch_name}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs(Je,{variant:"secondary",children:[((d=c.processed_data)==null?void 0:d.length)||0," records"]}),r.jsxs(Zq,{children:[r.jsx(eH,{asChild:!0,children:r.jsx(V,{variant:"outline",size:"sm",children:r.jsx(Rh,{className:"h-4 w-4"})})}),r.jsxs(fT,{children:[r.jsxs(pT,{children:[r.jsx(vT,{children:"Delete Batch"}),r.jsxs(xT,{children:['Are you sure you want to delete "',c.batch_name,'"? This action cannot be undone.']})]}),r.jsxs(gT,{children:[r.jsx(bT,{children:"Cancel"}),r.jsx(yT,{onClick:()=>l(c.id),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})]})]})]})}),r.jsx(H,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Ln,{className:"h-4 w-4"}),He(new Date(c.created_at),"MMM d, yyyy")]}),r.jsxs("div",{children:["Raw: ",((u=c.raw_data)==null?void 0:u.length)||0," | Processed: ",((h=c.processed_data)==null?void 0:h.length)||0]})]}),r.jsxs(V,{onClick:()=>e(c),size:"sm",children:[r.jsx(Vu,{className:"h-4 w-4 mr-2"}),"Load Batch"]})]})})]},c.id)})})})},Vm=({data:e,title:t,filters:n,tabType:i})=>{const s=()=>{const m=window.open("","_blank");if(!m)return;let f="";switch(i){case"raw":f=a(e,n);break;case"processed":f=o(e,n);break;case"daily":f=l(e,n);break;case"monthly":f=c(e,n);break;case"client":f=d(e,n);break;default:f=u(e,t,n)}const g=`
<!DOCTYPE html>
<html>
<head>
<title>${t} - MileIQ Report</title>
<style>
@media print {
body { margin: 0; }
.no-print { display: none; }
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 12px;
line-height: 1.4;
color: #333;
max-width: 100%;
margin: 0;
padding: 20px;
}
.header {
border-bottom: 2px solid #333;
padding-bottom: 10px;
margin-bottom: 20px;
}
.header h1 {
margin: 0 0 5px 0;
font-size: 24px;
color: #000;
}
.header .meta {
color: #666;
font-size: 10px;
}
.filters {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 10px;
margin-bottom: 20px;
}
.filters h3 {
margin: 0 0 8px 0;
font-size: 14px;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
font-size: 10px;
}
th, td {
border: 1px solid #ddd;
padding: 6px;
text-align: left;
}
th {
background-color: #f8f9fa;
font-weight: bold;
font-size: 10px;
}
.summary {
background: #e7f3ff;
border: 1px solid #b3d9ff;
border-radius: 4px;
padding: 15px;
margin-top: 20px;
}
.summary h3 {
margin: 0 0 10px 0;
color: #1a73e8;
}
.page-break {
page-break-after: always;
}
</style>
</head>
<body>
${f}
<div class="no-print" style="margin-top: 20px; text-align: center;">
<button onclick="window.print()">Print PDF</button>
<button onclick="window.close()" style="margin-left: 10px;">Close</button>
</div>
</body>
</html>
`;m.document.write(g),m.document.close(),setTimeout(()=>{m.print()},250)},a=(m,f)=>{const g=m.length>0?Object.keys(m[0]):[];return`
<div class="header">
<h1>Raw MileIQ Data Report</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(f)}
<table>
<thead>
<tr>
${g.map(p=>`<th>${p}</th>`).join("")}
</tr>
</thead>
<tbody>
${m.map(p=>`
<tr>
${g.map(v=>`<td>${p[v]||""}</td>`).join("")}
</tr>
`).join("")}
</tbody>
</table>
<div class="summary">
<h3>Summary</h3>
<p>Total Records: ${m.length}</p>
</div>
`},o=(m,f)=>{const g=x=>x?typeof x=="string"?x:x.toLocaleDateString("en-US"):"",p=m.reduce((x,b)=>x+(parseFloat(b.miles)||0),0),v=.67,y=m.reduce((x,b)=>{const w=parseFloat(b.miles)||0;return x+w*v},0);return`
<div class="header">
<h1>Processed MileIQ Data Report</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(f)}
<table>
<thead>
<tr>
<th>Date</th>
<th>Client</th>
<th>Miles</th>
<th>Hours</th>
<th>Purpose</th>
<th>Billable</th>
<th>Estimated Value</th>
<th>Type</th>
</tr>
</thead>
<tbody>
${m.map(x=>`
<tr>
<td>${g(x.date)}</td>
<td>${x.client||""}</td>
<td>${x.miles||0}</td>
<td>${x.hours||0}</td>
<td>${x.purpose||""}</td>
<td>${x.billable?"Yes":"No"}</td>
<td>$${((parseFloat(x.miles)||0)*v).toFixed(2)}</td>
<td>${x.isConsolidated?"Consolidated":"Individual"}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="summary">
<h3>Summary</h3>
<p>Total Entries: ${m.length}</p>
<p>Total Miles: ${p.toFixed(2)}</p>
<p>Estimated Total Value: $${y.toFixed(2)} (at $${v}/mile)</p>
<p>Billable Entries: ${m.filter(x=>x.billable).length}</p>
</div>
`},l=(m,f)=>{const p=m.reduce((y,x)=>y+(parseFloat(x.milesTotal)||0),0),v=p*.67;return`
<div class="header">
<h1>Daily Summary Report</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(f)}
<table>
<thead>
<tr>
<th>Date</th>
<th>Client</th>
<th>Total Hours</th>
<th>Total Miles</th>
<th>Hours (Rounded)</th>
<th>Miles (Rounded)</th>
<th>Estimated Value</th>
</tr>
</thead>
<tbody>
${m.map(y=>`
<tr>
<td>${y.date||""}</td>
<td>${y.client||""}</td>
<td>${(y.hoursTotal||0).toFixed(2)}</td>
<td>${(y.milesTotal||0).toFixed(2)}</td>
<td>${(y.hoursRounded||0).toFixed(2)}</td>
<td>${(y.milesRounded||0).toFixed(2)}</td>
<td>$${((y.milesTotal||0)*.67).toFixed(2)}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="summary">
<h3>Summary</h3>
<p>Total Entries: ${m.length}</p>
<p>Total Miles: ${p.toFixed(2)}</p>
<p>Estimated Total Value: $${v.toFixed(2)}</p>
</div>
`},c=(m,f)=>{const p=m.reduce((y,x)=>y+(parseFloat(x.milesRaw)||0),0),v=p*.67;return`
<div class="header">
<h1>Monthly Report</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(f)}
<table>
<thead>
<tr>
<th>Client</th>
<th>Raw Hours</th>
<th>Raw Miles</th>
<th>Rounded Hours</th>
<th>Rounded Miles</th>
<th>Estimated Value</th>
</tr>
</thead>
<tbody>
${m.map(y=>`
<tr>
<td>${y.client||""}</td>
<td>${(y.hoursRaw||0).toFixed(2)}</td>
<td>${(y.milesRaw||0).toFixed(2)}</td>
<td>${(y.hoursRoundedSum||0).toFixed(2)}</td>
<td>${(y.milesRoundedSum||0).toFixed(2)}</td>
<td>$${((y.milesRaw||0)*.67).toFixed(2)}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="summary">
<h3>Summary</h3>
<p>Total Clients: ${m.length}</p>
<p>Total Miles: ${p.toFixed(2)}</p>
<p>Estimated Total Value: $${v.toFixed(2)}</p>
</div>
`},d=(m,f)=>{const p=m.reduce((y,x)=>y+(parseFloat(x.milesRaw)||0),0),v=p*.67;return`
<div class="header">
<h1>Client Summary Report</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(f)}
<table>
<thead>
<tr>
<th>Client</th>
<th>Date Range</th>
<th>Total Trips</th>
<th>Raw Hours</th>
<th>Raw Miles</th>
<th>Rounded Hours</th>
<th>Rounded Miles</th>
<th>Estimated Value</th>
</tr>
</thead>
<tbody>
${m.map(y=>`
<tr>
<td>${y.client||""}</td>
<td>${y.startDate||""} - ${y.endDate||""}</td>
<td>${y.totalTrips||0}</td>
<td>${(y.hoursRaw||0).toFixed(2)}</td>
<td>${(y.milesRaw||0).toFixed(2)}</td>
<td>${(y.hoursRoundedSum||0).toFixed(2)}</td>
<td>${(y.milesRoundedSum||0).toFixed(2)}</td>
<td>$${((y.milesRaw||0)*.67).toFixed(2)}</td>
</tr>
`).join("")}
</tbody>
</table>
<div class="summary">
<h3>Summary</h3>
<p>Total Clients: ${m.length}</p>
<p>Total Miles: ${p.toFixed(2)}</p>
<p>Estimated Total Value: $${v.toFixed(2)}</p>
</div>
`},u=(m,f,g)=>{const p=m.length>0?Object.keys(m[0]):[];return`
<div class="header">
<h1>${f}</h1>
<div class="meta">Generated on ${new Date().toLocaleString()}</div>
</div>
${h(g)}
<table>
<thead>
<tr>
${p.map(v=>`<th>${v}</th>`).join("")}
</tr>
</thead>
<tbody>
${m.map(v=>`
<tr>
${p.map(y=>`<td>${v[y]||""}</td>`).join("")}
</tr>
`).join("")}
</tbody>
</table>
`},h=m=>{var g,p,v,y;if(!m)return"";const f=[];return((g=m.dateRange)!=null&&g.from||(p=m.dateRange)!=null&&p.to)&&f.push(`Date Range: ${m.dateRange.from||"Start"} to ${m.dateRange.to||"End"}`),((v=m.selectedClients)==null?void 0:v.length)>0&&f.push(`Clients: ${m.selectedClients.join(", ")}`),((y=m.selectedCategories)==null?void 0:y.length)>0&&f.push(`Categories: ${m.selectedCategories.join(", ")}`),f.length===0?"":`
<div class="filters">
<h3>Applied Filters</h3>
${f.map(x=>`<p>β’ ${x}</p>`).join("")}
</div>
`};return r.jsxs(V,{onClick:s,variant:"outline",size:"sm",children:[r.jsx(Ct,{className:"h-4 w-4 mr-2"}),"Export PDF"]})},KLe=({filteredData:e,filters:t,profile:n})=>{const[i,s]=j.useState((n==null?void 0:n.default_hourly_rate)||75),[a,o]=j.useState((n==null?void 0:n.default_mileage_rate)||.3),[l,c]=j.useState([]),[d,u]=j.useState(!1),{toast:h}=Lt(),[m,f]=j.useState(()=>{const T=e.filter(M=>M.billable===!0).reduce((M,C)=>{const P=C.date.toLocaleDateString(),I=`${C.client}-${P}`;return M[I]||(M[I]={date:P,client:C.client,hours:0,miles:0,descriptions:new Set}),C.isConsolidated?(M[I].hours+=C.consolidatedTotalHoursRounded||0,M[I].miles+=C.consolidatedTotalMilesRounded||0):(M[I].hours+=C.hoursRounded,M[I].miles+=C.milesRounded),M[I].descriptions.add(C.purpose),M},{});return Object.values(T).map((M,C)=>({id:`item-${C}`,date:M.date,description:Array.from(M.descriptions).join(", "),hours:M.hours,miles:M.miles,hourlyRate:(n==null?void 0:n.default_hourly_rate)||75,mileageRate:(n==null?void 0:n.default_mileage_rate)||.3,clientName:M.client}))}),[g,p]=j.useState([{id:"expense-1",description:"",amount:0}]);j.useEffect(()=>{v()},[]),j.useEffect(()=>{console.log("Profile changed in InvoiceGenerator:",n),(n==null?void 0:n.default_hourly_rate)!==void 0&&(console.log("Setting hourly rate to:",n.default_hourly_rate),s(n.default_hourly_rate)),(n==null?void 0:n.default_mileage_rate)!==void 0&&(console.log("Setting mileage rate to:",n.default_mileage_rate),o(n.default_mileage_rate))},[n]);const v=async()=>{try{const{data:T,error:M}=await Q.from("finalized_invoices").select("*").order("finalized_at",{ascending:!1});if(M)throw M;c(T||[])}catch(T){console.error("Error loading finalized invoices:",T),h({title:"Error",description:"Failed to load finalized invoices",variant:"destructive"})}},y=j.useMemo(()=>{const T=m.reduce((O,$)=>O+$.hours,0),M=m.reduce((O,$)=>O+$.miles,0),C=m.reduce((O,$)=>O+$.hours*$.hourlyRate,0),P=m.reduce((O,$)=>O+$.miles*$.mileageRate,0),I=g.reduce((O,$)=>O+$.amount,0),R=C+P+I;return{totalHours:T,totalMiles:M,hourlyAmount:C,mileageAmount:P,expensesAmount:I,grandTotal:R}},[m,g]),x=(T,M,C)=>{f(P=>P.map(I=>I.id===T?{...I,[M]:C}:I))},b=()=>{const T={id:`item-${Date.now()}`,date:new Date().toLocaleDateString(),description:"New Service",hours:0,miles:0,hourlyRate:(n==null?void 0:n.default_hourly_rate)||i,mileageRate:(n==null?void 0:n.default_mileage_rate)||a,clientName:""};f([...m,T])},w=T=>{f(M=>M.filter(C=>C.id!==T))},N=(T,M,C)=>{p(P=>P.map(I=>I.id===T?{...I,[M]:C}:I))},S=()=>{const T={id:`expense-${Date.now()}`,description:"",amount:0};p([...g,T])},k=T=>{g.length>1&&p(M=>M.filter(C=>C.id!==T))},_=()=>{const T=O=>O?(typeof O=="string"?new Date(O):O).toLocaleDateString():"N/A",M=[...new Set(e.map(O=>O.client))],C=M.length===1?M[0]:"Multiple Clients",P=m.map(O=>new Date(O.date)),I=new Date(Math.min(...P.map(O=>O.getTime()))),R=new Date(Math.max(...P.map(O=>O.getTime())));return`
<!DOCTYPE html>
<html>
<head>
<title>Invoice - ${C}</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 40px;
color: #333;
line-height: 1.6;
}
.header {
text-align: center;
margin-bottom: 15px;
border-bottom: 2px solid #2563eb;
padding-bottom: 10px;
}
.invoice-info {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
}
.company-info, .client-info {
flex: 1;
}
.invoice-title {
font-size: 28px;
font-weight: bold;
color: #2563eb;
margin-bottom: 10px;
}
.subtitle {
color: #666;
font-size: 16px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
th {
background-color: #f8f9fa;
font-weight: bold;
color: #2563eb;
}
.total-row {
background-color: #f0f7ff;
font-weight: bold;
}
.grand-total {
background-color: #2563eb;
color: white;
font-size: 18px;
}
.amount {
text-align: right;
}
.service-details {
margin: 10px 0;
}
.footer {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #ddd;
font-size: 14px;
color: #666;
}
</style>
</head>
<body>
<div class="header">
<div class="invoice-title">${(n==null?void 0:n.payment_payable_to)||`${(n==null?void 0:n.full_name)||"Agent Name"}`}</div>
<div class="subtitle">Professional Investigation Services</div>
</div>
<div class="invoice-info">
<div class="company-info">
<h3>From:</h3>
<strong>${n!=null&&n.payment_payable_to?n.payment_payable_to+(n!=null&&n.full_name?` (${n.full_name})`:""):`(${(n==null?void 0:n.full_name)||"Agent Name"})`}</strong><br>
${(n==null?void 0:n.payment_address_line1)||"Address Line 1"}<br>
${n!=null&&n.payment_address_line2?`${n.payment_address_line2}<br>`:""}
${(n==null?void 0:n.payment_city)||"City"}, ${(n==null?void 0:n.payment_state)||"State"} ${(n==null?void 0:n.payment_zip)||"ZIP"}<br>
Invoice Date: ${new Date().toLocaleDateString()}<br>
Service Period: ${T(I)} - ${T(R)}<br>
Total Line Items: ${m.length}
</div>
<div class="client-info">
<h3>Bill To:</h3>
<strong>Trident Investigations LLC</strong><br>
770 E Main St, Suite 126<br>
Lehi, UT 84043
</div>
</div>
<div class="service-details">
<h3>Service Details</h3>
<table>
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>Hours</th>
<th>Rate/Hr</th>
<th>Miles</th>
<th>Rate/Mi</th>
<th class="amount">Amount</th>
</tr>
</thead>
<tbody>
${m.map(O=>{const $=O.hours*O.hourlyRate,q=O.miles*O.mileageRate,z=$+q;return`
<tr>
<td>${O.date}</td>
<td>${O.description}</td>
<td>${O.hours.toFixed(2)}</td>
<td>$${O.hourlyRate.toFixed(2)}</td>
<td>${O.miles}</td>
<td>$${O.mileageRate.toFixed(2)}</td>
<td class="amount">$${z.toFixed(2)}</td>
</tr>
`}).join("")}
${g.filter(O=>O.amount>0).map(O=>`
<tr>
<td colspan="6">${O.description}</td>
<td class="amount">$${O.amount.toFixed(2)}</td>
</tr>
`).join("")}
<tr class="total-row">
<td colspan="6"><strong>Subtotal</strong></td>
<td class="amount"><strong>$${(y.hourlyAmount+y.mileageAmount+y.expensesAmount).toFixed(2)}</strong></td>
</tr>
<tr class="grand-total">
<td colspan="6"><strong>TOTAL AMOUNT DUE</strong></td>
<td class="amount"><strong>$${y.grandTotal.toFixed(2)}</strong></td>
</tr>
</tbody>
</table>
</div>
<div class="footer">
<p><strong>Payment Terms:</strong> Net 30 days</p>
<p><strong>Generated:</strong> ${new Date().toLocaleString()}</p>
</div>
</body>
</html>
`},D=()=>{const T=window.open("","_blank");if(!T)return;const M=_();T.document.write(M),T.document.close(),T.onload=()=>{T.print()}},A=async()=>{var T;if(m.length===0){h({title:"Error",description:"Cannot finalize invoice with no line items",variant:"destructive"});return}u(!0);try{const M=`INV-${Date.now()}`,C=[...new Set(e.map($=>$.client))],P=C.length===1?C[0]:"Multiple Clients",I=_(),{data:R,error:O}=await Q.from("finalized_invoices").insert([{user_id:(T=(await Q.auth.getUser()).data.user)==null?void 0:T.id,invoice_number:M,client_name:P,invoice_date:new Date().toISOString().split("T")[0],total_amount:y.grandTotal,total_hours:y.totalHours,total_miles:y.totalMiles,line_items:m,additional_expenses:g.filter($=>$.amount>0),filters_applied:t,pdf_content:I}]).select().single();if(O)throw O;h({title:"Success",description:`Invoice ${M} has been finalized successfully!`}),await v()}catch(M){console.error("Error finalizing invoice:",M),h({title:"Error",description:"Failed to finalize invoice",variant:"destructive"})}finally{u(!1)}},E=T=>{const M=window.open("","_blank");M&&(M.document.write(T.pdf_content),M.document.close())};return r.jsxs("div",{className:"space-y-6",children:[r.jsx(W,{className:"mb-6 bg-green-50 border-l-4 border-l-green-500",children:r.jsxs(Z,{children:[r.jsx(re,{className:"text-green-700",children:"π° Invoice Generator"}),r.jsx(wt,{children:"Generate professional invoices with editable line items and multiple additional expenses."})]})}),l.length>0&&r.jsxs(W,{children:[r.jsxs(Z,{children:[r.jsxs(re,{className:"flex items-center gap-2",children:[r.jsx(we,{className:"h-5 w-5 text-green-600"}),"Finalized Invoices"]}),r.jsx(wt,{children:"View and manage your finalized invoices"})]}),r.jsx(H,{children:r.jsx("div",{className:"space-y-3",children:l.map(T=>r.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-green-50",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Je,{variant:"outline",className:"text-green-700 border-green-300",children:T.invoice_number}),r.jsx("span",{className:"font-medium",children:T.client_name}),r.jsxs("span",{className:"text-lg font-bold text-green-600",children:["$",T.total_amount.toFixed(2)]})]}),r.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:["Finalized on ",new Date(T.finalized_at).toLocaleDateString()," β’",T.total_hours.toFixed(2)," hrs β’ ",T.total_miles," mi"]})]}),r.jsxs(V,{onClick:()=>E(T),variant:"outline",size:"sm",className:"ml-4",children:[r.jsx(ai,{className:"h-4 w-4 mr-2"}),"View PDF"]})]},T.id))})})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsxs("div",{children:[r.jsx(re,{children:"Invoice Line Items"}),r.jsx(wt,{children:"Edit individual line items for customized invoicing"})]}),r.jsxs(V,{onClick:b,variant:"outline",size:"sm",children:[r.jsx(ap,{className:"h-4 w-4 mr-2"}),"Add Item"]})]})}),r.jsx(H,{children:r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Date"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Client"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Description"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Hours"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Rate/Hr"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Miles"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Rate/Mi"}),r.jsx("th",{className:"p-3 text-right border-b",children:"Amount"}),r.jsx("th",{className:"p-3 text-center border-b",children:"Actions"})]})}),r.jsx("tbody",{children:m.map(T=>{const M=T.hours*T.hourlyRate+T.miles*T.mileageRate;return r.jsxs("tr",{className:"hover:bg-muted/50",children:[r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{type:"date",value:new Date(T.date).toISOString().split("T")[0],onChange:C=>x(T.id,"date",new Date(C.target.value).toLocaleDateString()),className:"w-full"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{value:T.clientName,onChange:C=>x(T.id,"clientName",C.target.value),className:"w-full",placeholder:"Client name"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(di,{value:T.description,onChange:C=>x(T.id,"description",C.target.value),className:"w-full min-h-[60px]",placeholder:"Service description"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{type:"number",step:"0.25",value:T.hours,onChange:C=>x(T.id,"hours",parseFloat(C.target.value)||0),className:"w-full font-mono"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{type:"number",step:"0.01",value:T.hourlyRate,onChange:C=>x(T.id,"hourlyRate",parseFloat(C.target.value)||0),className:"w-full font-mono"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{type:"number",step:"1",value:T.miles,onChange:C=>x(T.id,"miles",parseFloat(C.target.value)||0),className:"w-full font-mono"})}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(he,{type:"number",step:"0.01",value:T.mileageRate,onChange:C=>x(T.id,"mileageRate",parseFloat(C.target.value)||0),className:"w-full font-mono"})}),r.jsxs("td",{className:"p-3 border-b text-right font-mono font-bold",children:["$",M.toFixed(2)]}),r.jsx("td",{className:"p-3 border-b text-center",children:r.jsx(V,{onClick:()=>w(T.id),variant:"ghost",size:"sm",className:"text-red-500 hover:text-red-700",children:r.jsx(Rh,{className:"h-4 w-4"})})})]},T.id)})})]})})})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsxs("div",{children:[r.jsx(re,{children:"Additional Expenses"}),r.jsx(wt,{children:"Add itemized additional expenses and charges"})]}),r.jsxs(V,{onClick:S,variant:"outline",size:"sm",children:[r.jsx(ap,{className:"h-4 w-4 mr-2"}),"Add Expense"]})]})}),r.jsx(H,{children:r.jsx("div",{className:"space-y-3",children:g.map(T=>r.jsxs("div",{className:"flex gap-3 items-center",children:[r.jsx("div",{className:"flex-1",children:r.jsx(he,{placeholder:"Expense description (e.g., Travel costs, Research fees, etc.)",value:T.description,onChange:M=>N(T.id,"description",M.target.value)})}),r.jsx("div",{className:"w-32",children:r.jsx(he,{type:"number",step:"0.01",placeholder:"Amount",value:T.amount,onChange:M=>N(T.id,"amount",parseFloat(M.target.value)||0),className:"font-mono"})}),r.jsx(V,{onClick:()=>k(T.id),variant:"ghost",size:"sm",className:"text-red-500 hover:text-red-700",disabled:g.length===1,children:r.jsx(pa,{className:"h-4 w-4"})})]},T.id))})})]}),r.jsxs(W,{children:[r.jsx(Z,{children:r.jsx(re,{children:"Invoice Summary"})}),r.jsxs(H,{children:[r.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:y.totalHours.toFixed(2)}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Hours"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:y.totalMiles}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Miles"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:m.length}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Line Items"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsxs("div",{className:"text-2xl font-bold text-green-600 mb-1",children:["$",y.grandTotal.toFixed(2)]}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Amount"})]})})]}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Service Type"}),r.jsx("th",{className:"p-3 text-right border-b",children:"Amount"})]})}),r.jsxs("tbody",{children:[r.jsxs("tr",{children:[r.jsxs("td",{className:"p-3 border-b",children:["Professional Services (",y.totalHours.toFixed(2)," hrs)"]}),r.jsxs("td",{className:"p-3 border-b text-right font-mono",children:["$",y.hourlyAmount.toFixed(2)]})]}),r.jsxs("tr",{children:[r.jsxs("td",{className:"p-3 border-b",children:["Travel/Mileage (",y.totalMiles," mi)"]}),r.jsxs("td",{className:"p-3 border-b text-right font-mono",children:["$",y.mileageAmount.toFixed(2)]})]}),y.expensesAmount>0&&r.jsxs("tr",{children:[r.jsx("td",{className:"p-3 border-b",children:"Additional Expenses"}),r.jsxs("td",{className:"p-3 border-b text-right font-mono",children:["$",y.expensesAmount.toFixed(2)]})]}),r.jsxs("tr",{className:"bg-primary/10",children:[r.jsx("td",{className:"p-3 border-b font-bold",children:"Total Amount Due"}),r.jsxs("td",{className:"p-3 border-b text-right font-bold font-mono text-lg",children:["$",y.grandTotal.toFixed(2)]})]})]})]})}),r.jsxs("div",{className:"mt-6 flex justify-between items-center",children:[r.jsxs("div",{className:"text-sm text-muted-foreground",children:["Invoice will include ",m.length," line items and ",g.filter(T=>T.amount>0).length," additional expenses"]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(V,{onClick:D,variant:"outline",children:[r.jsx(Ct,{className:"h-4 w-4 mr-2"}),"Preview PDF"]}),r.jsxs(V,{onClick:A,className:"bg-green-600 hover:bg-green-700",disabled:d||m.length===0,children:[r.jsx(we,{className:"h-4 w-4 mr-2"}),d?"Finalizing...":"Finalize Invoice"]})]})]})]})]})]})},XLe=()=>{const{toast:e}=Lt(),[t,n]=j.useState(null),[i,s]=j.useState(!0),[a,o]=j.useState(null),[l,c]=j.useState(null),[d,u]=j.useState(""),[h,m]=j.useState([]),[f,g]=j.useState([]),[p,v]=j.useState([]),[y,x]=j.useState([]),[b,w]=j.useState([]),[N,S]=j.useState(null),[k,_]=j.useState(new Set),[D,A]=j.useState(!1);j.useEffect(()=>{Q.auth.getSession().then(({data:{session:X}})=>{n((X==null?void 0:X.user)??null),X!=null&&X.user?E(X.user.id):s(!1)});const{data:{subscription:U}}=Q.auth.onAuthStateChange((X,Y)=>{n((Y==null?void 0:Y.user)??null),Y!=null&&Y.user?E(Y.user.id):(s(!1),o(null),c(null))});return()=>U.unsubscribe()},[]);const E=async U=>{try{const{data:X,error:Y}=await Q.rpc("has_role",{_user_id:U,_role:"agent"});if(Y){console.error("Error checking agent role:",Y),o(!1),s(!1);return}o(X),X&&await T(U),s(!1)}catch(X){console.error("Error checking agent role:",X),o(!1),s(!1)}},T=async U=>{try{const{data:X,error:Y}=await Q.from("profiles").select("*").eq("id",U).single();if(Y){console.error("Error loading agent profile:",Y);return}c(X)}catch(X){console.error("Error loading agent profile:",X)}},M=async()=>{try{await Q.auth.signOut(),e({title:"Signed out successfully",description:"You have been signed out of your account."})}catch(U){console.error("Error signing out:",U),e({title:"Error signing out",description:"There was a problem signing out. Please try again.",variant:"destructive"})}},C=U=>{const X=U.toLowerCase();return X.includes("surveillance")?"bg-blue-100 dark:bg-blue-900/20":X.includes("process")||X.includes("service")?"bg-green-100 dark:bg-green-900/20":X.includes("investigation")?"bg-purple-100 dark:bg-purple-900/20":X.includes("court")?"bg-yellow-100 dark:bg-yellow-900/20":X.includes("travel")?"bg-gray-100 dark:bg-gray-900/20":"bg-pink-100 dark:bg-pink-900/20"},[P,I]=j.useState(null),[R,O]=j.useState(null),[$,q]=j.useState([]),[z,J]=j.useState("all"),ne=j.useCallback((U,X="success")=>{S({message:U,type:X}),setTimeout(()=>S(null),5e3)},[]),pe=U=>{if(!U)return null;try{const X=U.split(" ")[0],Y=X.split("/");if(Y.length===3){let[se,ye,Ae]=Y;Ae.length===2&&(Ae="20"+Ae);const an=new Date(parseInt(Ae),parseInt(se)-1,parseInt(ye));return isNaN(an.getTime())?null:an}const oe=new Date(X);return isNaN(oe.getTime())?null:oe}catch(X){return console.error("Error parsing date:",U,X),null}},xe=U=>{if(!U)return null;try{const X=U.trim().split(" ");if(X.length>=2){const oe=X[0],se=X[1],ye=oe.split("/");if(ye.length===3){let[Ae,an,Mt]=ye;Mt.length===2&&(Mt="20"+Mt);const Xt=se.split(":");if(Xt.length>=2){const zn=parseInt(Xt[0]),mt=parseInt(Xt[1]),kn=new Date(parseInt(Mt),parseInt(Ae)-1,parseInt(an),zn,mt);return isNaN(kn.getTime())?null:kn}}}const Y=new Date(U);return isNaN(Y.getTime())?null:Y}catch(X){return console.error("Error parsing datetime:",U,X),null}},De=U=>U.toLocaleDateString("en-US"),de=U=>U.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}),Pe=U=>{if(U<=0)return 0;const X=Math.ceil(U/.25)*.25,Y=Math.ceil(U/.5)*.5,oe=Math.ceil(U),se=Math.abs(U-X),ye=Math.abs(U-Y),Ae=Math.abs(U-oe);return se<=ye&&se<=Ae?X:ye<=Ae?Y:oe},ie=(U,X=" ")=>{const Y=[];let oe="",se=!1;for(let ye=0;ye<U.length;ye++){const Ae=U[ye];Ae==='"'&&(ye===0||U[ye-1]===X)?se=!0:Ae==='"'&&se&&(ye===U.length-1||U[ye+1]===X)?se=!1:Ae===X&&!se?(Y.push(oe.trim()),oe=""):oe+=Ae}return Y.push(oe.trim()),Y},me=U=>U.replace(/[*\s]/g,"").toUpperCase(),ve=U=>{const X={};return console.log("π Available headers:",U),U.forEach((Y,oe)=>{const se=Y.trim(),ye=me(se);ye.includes("STARTDATE")||ye.includes("START_DATE")?X.START_DATE=se:ye.includes("ENDDATE")||ye.includes("END_DATE")?X.END_DATE=se:ye.includes("CATEGORY")?X.CATEGORY=se:ye==="START"||ye.includes("START")&&!ye.includes("DATE")?X.START=se:ye.includes("STOP")?X.STOP=se:ye.includes("RATE")?X.RATE=se:ye==="MILES"&&!ye.includes("VALUE")?X.MILES_DISTANCE=se:ye==="MILESVALUE"||ye.includes("MILES_VALUE")?X.MILES_VALUE=se:ye.includes("PARKING")?X.PARKING=se:ye.includes("TOLLS")?X.TOLLS=se:ye.includes("TOTAL")?X.TOTAL=se:ye.includes("VEHICLE")?X.VEHICLE=se:ye.includes("PURPOSE")?X.PURPOSE=se:ye.includes("NOTES")&&(X.NOTES=se)}),console.log("πΊοΈ Field mapping created:",X),X},K=j.useCallback(()=>{if(!d.trim()){ne("Please paste your MileIQ data first.","warning");return}try{const U=d.split(`
`).filter(Mt=>Mt.trim());if(U.length===0){ne("No data found. Please paste your MileIQ data.","warning");return}const Y=U[0].split(" ");let oe,se;Y[0].toLowerCase().includes("start_date")||Y[0].toLowerCase().includes("date")?(oe=ie(U[0]," "),se=1):(oe=["START_DATE","END_DATE","CATEGORY","START","STOP","RATE","MILES","MILES_VALUE","PARKING","TOLLS","TOTAL","VEHICLE","PURPOSE","NOTES"],se=0,ne("No header row detected. Using standard MileIQ column headers.","warning")),console.log("π Detected headers:",oe);const ye=ve(oe);if(console.log("πΊοΈ Field mapping:",ye),U.length<=se){ne("No data rows found. Please include your MileIQ trip data.","warning");return}let Ae=" ";U[se].split(" ").length<5&&U[se].split(",").length>=5&&(Ae=",");const an=[];for(let Mt=se;Mt<U.length;Mt++){const Xt=ie(U[Mt],Ae);if(Xt.length<5||Xt.join("").toLowerCase().includes("total"))continue;const zn={};oe.forEach((mt,kn)=>{zn[mt]=Xt[kn]||""}),zn._fieldMapping=ye,zn.billable=!0,an.push(zn)}if(an.length===0){ne("No valid data rows found. Please check your format and try again.","error");return}m(an),st(an),ne(`Successfully processed ${an.length} records!`,"success")}catch(U){console.error("Processing error:",U),ne("Error processing data. Please check the format and try again.","error")}},[d,ne]),Ve=U=>{const X=[];return U.forEach((Y,oe)=>{const se=Y._fieldMapping||{},ye=se.START_DATE||"START_DATE",Ae=se.END_DATE||"END_DATE",an=xe(Y[ye]||""),Mt=xe(Y[Ae]||"");if(!an||!Mt){console.log(`β Skipping trip leg ${oe} - invalid dates`);return}const Xt=pe(Y[ye]||"");if(!Xt)return;const zn=(Mt.getTime()-an.getTime())/(1e3*60*60),mt=se.MILES||se.MILES_DISTANCE||"MILES",kn=parseFloat(Y[mt]||"0"),ls=se.START||"START",Gs=se.STOP||"STOP",Ys=se.CATEGORY||"CATEGORY",av=(Y[ls]||"").trim(),ov=(Y[Gs]||"").trim(),dj=(Y[Ys]||"").trim(),Ii=se.NOTES||"NOTES",Ks=(Y[Ii]||"").trim(),lv=se.PURPOSE||"PURPOSE",Nd=(Y[lv]||"").trim();let Ia=Ks;(!Ia||Ia==="")&&(Ia=Nd||"Unassigned");const cv=Nd||"Unknown";console.log("π Processing trip leg:",{startDate:Y[ye],endDate:Y[Ae],notes:Ks,purpose:Nd,client:Ia,category:Y[Ys],miles:Y[mt]});const cs=Y.billable!==!1;X.push({id:`leg-${oe}`,date:Xt,startTime:an,endTime:Mt,startLocation:av,stopLocation:ov,category:dj,client:Ia,hours:zn,miles:kn,purpose:cv,billable:cs})}),X},Le=U=>{console.log("π Consolidating trip legs:",U);const X={};U.forEach(oe=>{const se=De(oe.date),ye=`${oe.billable?"billable":"non-billable"}-${oe.client}-${se}`;X[ye]||(X[ye]=[]),X[ye].push(oe)});const Y=[];return Object.entries(X).forEach(([oe,se])=>{if(se.length===0)return;if(se.length>1){const Ae=se.sort((Xt,zn)=>Xt.startTime.getTime()-zn.startTime.getTime());let an=[],Mt=[Ae[0]];for(let Xt=1;Xt<Ae.length;Xt++){const zn=Ae[Xt-1],mt=Ae[Xt],kn=mt.startTime.getTime()-zn.endTime.getTime(),ls=mt.date.getDate()!==zn.date.getDate(),Gs=ls&&kn<8*60*60*1e3;mt.client===zn.client&&(!ls||Gs)?Mt.push(mt):(an.push(Mt),Mt=[mt])}an.push(Mt),an.forEach((Xt,zn)=>{const mt=Xt.reduce((Gs,Ys)=>Gs+Ys.hours,0),kn=Xt.reduce((Gs,Ys)=>Gs+Ys.miles,0),ls=Xt[0];Y.push({id:`consolidated-${oe}-${zn}`,date:ls.date,client:ls.client,hours:mt,miles:kn,hoursRounded:Pe(mt),milesRounded:Math.ceil(kn),purpose:ls.purpose,billable:ls.billable,isConsolidated:!0,tripLegs:Xt,consolidatedTotalHours:mt,consolidatedTotalMiles:kn,consolidatedTotalHoursRounded:Pe(mt),consolidatedTotalMilesRounded:Math.ceil(kn)})})}else{const Ae=se[0];Y.push({id:`single-${Ae.id}`,date:Ae.date,client:Ae.client,hours:Ae.hours,miles:Ae.miles,hoursRounded:Pe(Ae.hours),milesRounded:Math.ceil(Ae.miles),purpose:Ae.purpose,billable:Ae.billable,isConsolidated:!1})}}),console.log("β
Consolidated processed data:",Y),Y},st=U=>{console.log("π Processing normalized data:",U);const X=Ve(U);console.log("𦡠Created trip legs:",X);const Y=Le(X);g(Y),yt(Y)},yt=U=>{console.log("ποΈ Generating consolidated data from:",U);const X={};U.forEach((oe,se)=>{if(!oe.billable){console.log(`π« Skipping non-billable row ${se}`);return}const ye=De(oe.date),Ae=`${oe.client}|${ye}|${oe.purpose}`;console.log(`π¦ Grouping row ${se}:`,{client:oe.client,dateKey:ye,purpose:oe.purpose,key:Ae,billable:oe.billable}),X[Ae]||(X[Ae]={client:oe.client,date:ye,purpose:oe.purpose,hoursTotal:0,milesTotal:0}),X[Ae].hoursTotal+=oe.hours,X[Ae].milesTotal+=oe.miles}),console.log("π Grouped data:",X);const Y=Object.values(X).map(oe=>({client:oe.client,date:oe.date,purpose:oe.purpose,hoursTotal:oe.hoursTotal,milesTotal:oe.milesTotal,hoursRounded:Pe(oe.hoursTotal),milesRounded:Math.ceil(oe.milesTotal)}));console.log("π Consolidated data before sorting:",Y),Y.sort((oe,se)=>oe.client!==se.client?oe.client.localeCompare(se.client):new Date(oe.date).getTime()-new Date(se.date).getTime()),console.log("β
Final consolidated data:",Y),v(Y),Dt(U,Y)},Dt=(U,X)=>{const Y={};X.forEach(se=>{Y[se.client]||(Y[se.client]={client:se.client,purposes:new Set,hoursRoundedSum:0,milesRoundedSum:0}),Y[se.client].purposes.add(se.purpose),Y[se.client].hoursRoundedSum+=se.hoursRounded,Y[se.client].milesRoundedSum+=se.milesRounded});const oe=Object.values(Y).map(se=>({client:se.client,purpose:Array.from(se.purposes).join(", "),hoursRoundedSum:se.hoursRoundedSum,milesRoundedSum:se.milesRoundedSum}));oe.sort((se,ye)=>se.client.localeCompare(ye.client)),x(oe),sn(U,X)},sn=(U,X)=>{console.log("π Generating client summary from:",{processed:U,consolidated:X});const Y={};X.forEach(se=>{Y[se.client]||(Y[se.client]={dates:[],totalTrips:0,purposes:new Set,hoursRoundedSum:0,milesRoundedSum:0}),Y[se.client].dates.push(new Date(se.date)),Y[se.client].totalTrips+=1,Y[se.client].purposes.add(se.purpose),Y[se.client].hoursRoundedSum+=se.hoursRounded,Y[se.client].milesRoundedSum+=se.milesRounded});const oe=Object.entries(Y).map(([se,ye])=>{const Ae=ye.dates.sort((an,Mt)=>an.getTime()-Mt.getTime());return{client:se,startDate:De(Ae[0]),endDate:De(Ae[Ae.length-1]),totalTrips:ye.totalTrips,purpose:Array.from(ye.purposes).join(", "),hoursRoundedSum:ye.hoursRoundedSum,milesRoundedSum:ye.milesRoundedSum}});oe.sort((se,ye)=>se.client.localeCompare(ye.client)),console.log("β
Client summary generated:",oe),w(oe)},ae=()=>{confirm("Are you sure you want to clear all data?")&&(u(""),m([]),g([]),v([]),x([]),ne("All data cleared.","success"))},ke=U=>{const X=[...h];X[U].billable=!X[U].billable,m(X),st(X)},Ne=j.useMemo(()=>{const U={};return h.forEach(X=>{X.PURPOSE&&(U[X.PURPOSE]=(U[X.PURPOSE]||0)+1)}),Object.entries(U).sort((X,Y)=>Y[1]-X[1]).map(([X])=>X)},[h]),Ue=j.useMemo(()=>f.filter(U=>!(P&&U.date<P||R&&U.date>R||$.length>0&&!$.includes(U.purpose)||z==="billable"&&!U.billable||z==="non-billable"&&U.billable)),[f,P,R,$,z]),kt=j.useMemo(()=>{const U={};(z==="all"?Ue.filter(oe=>oe.billable):Ue).forEach(oe=>{const se=De(oe.date),ye=`${oe.client}|${se}|${oe.purpose}`;U[ye]||(U[ye]={client:oe.client,date:se,purpose:oe.purpose,hoursTotal:0,milesTotal:0}),U[ye].hoursTotal+=oe.hours,U[ye].milesTotal+=oe.miles});const Y=Object.values(U).map(oe=>({client:oe.client,date:oe.date,purpose:oe.purpose,hoursTotal:oe.hoursTotal,milesTotal:oe.milesTotal,hoursRounded:Pe(oe.hoursTotal),milesRounded:Math.ceil(oe.milesTotal)}));return Y.sort((oe,se)=>{const ye=new Date(oe.date).getTime(),Ae=new Date(se.date).getTime();return ye!==Ae?ye-Ae:oe.client.localeCompare(se.client)}),Y},[Ue]),In=j.useMemo(()=>{const U={};kt.forEach(Y=>{U[Y.client]||(U[Y.client]={client:Y.client,purposes:new Set,hoursRoundedSum:0,milesRoundedSum:0}),U[Y.client].purposes.add(Y.purpose),U[Y.client].hoursRoundedSum+=Y.hoursRounded,U[Y.client].milesRoundedSum+=Y.milesRounded});const X=Object.values(U).map(Y=>({client:Y.client,purpose:Array.from(Y.purposes).join(", "),hoursRoundedSum:Y.hoursRoundedSum,milesRoundedSum:Y.milesRoundedSum}));return X.sort((Y,oe)=>Y.client.localeCompare(oe.client)),X},[kt]),os=j.useMemo(()=>{const U={};kt.forEach(Y=>{U[Y.client]||(U[Y.client]={dates:[],totalTrips:0,purposes:new Set,hoursRoundedSum:0,milesRoundedSum:0}),U[Y.client].dates.push(new Date(Y.date)),U[Y.client].totalTrips+=1,U[Y.client].purposes.add(Y.purpose),U[Y.client].hoursRoundedSum+=Y.hoursRounded,U[Y.client].milesRoundedSum+=Y.milesRounded});const X=Object.entries(U).map(([Y,oe])=>{const se=oe.dates.sort((ye,Ae)=>ye.getTime()-Ae.getTime());return{client:Y,startDate:De(se[0]),endDate:De(se[se.length-1]),totalTrips:oe.totalTrips,purpose:Array.from(oe.purposes).join(", "),hoursRoundedSum:oe.hoursRoundedSum,milesRoundedSum:oe.milesRoundedSum}});return X.sort((Y,oe)=>Y.client.localeCompare(oe.client)),X},[kt]),Eo=Ue.length,Ao=Ue.reduce((U,X)=>U+X.hours,0),nv=Ue.reduce((U,X)=>U+X.miles,0),rv=new Set(Ue.map(U=>U.client)).size,iv=()=>{I(null),O(null),q([]),J("all")},dm=U=>{q(X=>X.filter(Y=>Y!==U))},sv=U=>{_(X=>{const Y=new Set(X);return Y.has(U)?Y.delete(U):Y.add(U),Y})},Oi={dateRange:{from:P,to:R},selectedPurposes:$,billableFilter:z},jd=j.useCallback(U=>{var X,Y;m(U.raw_data||[]),g(U.processed_data||[]),U.filters_applied&&(I(((X=U.filters_applied.dateRange)==null?void 0:X.from)||null),O(((Y=U.filters_applied.dateRange)==null?void 0:Y.to)||null),q(U.filters_applied.selectedPurposes||[]),J(U.filters_applied.billableFilter||"all")),e({title:"Success",description:`Loaded batch: ${U.batch_name}`})},[e]);return i?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-primary mx-auto"}),r.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading..."})]})}):!t||a===!1?r.jsx(lj,{onAuthSuccess:()=>window.location.reload()}):a===null?r.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx(Pn,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),r.jsx("p",{className:"text-muted-foreground",children:"Checking permissions..."})]})}):r.jsxs(r.Fragment,{children:[r.jsxs(oi,{children:[r.jsx("title",{children:"MileIQ Data Processor - Agent Portal"}),r.jsx("meta",{name:"description",content:"Process and analyze MileIQ data for invoicing"})]}),r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(cj,{onLogout:M,profile:l}),r.jsxs("div",{className:"container mx-auto p-6 max-w-7xl",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-4xl font-bold text-primary mb-2",children:"π MileIQ Processing Workbook"}),r.jsx("p",{className:"text-muted-foreground text-lg",children:"Automated processing of MileIQ detailed logs with daily consolidation and monthly summaries"})]}),(f.length>0||h.length>0)&&r.jsxs(W,{className:"mb-6",children:[r.jsx(Z,{children:r.jsxs(re,{className:"flex items-center gap-2",children:["π
Data Filters",(P||R||$.length>0)&&r.jsx(V,{variant:"outline",size:"sm",onClick:iv,children:"Clear All Filters"})]})}),r.jsxs(H,{children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{children:"Start Date"}),r.jsxs(ed,{children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",className:je("w-full justify-start text-left font-normal",!P&&"text-muted-foreground"),children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),P?He(P,"PPP"):"Select start date"]})}),r.jsx(Rl,{className:"w-auto p-0",align:"start",children:r.jsx(co,{mode:"single",selected:P,onSelect:I,initialFocus:!0,className:"p-3 pointer-events-auto"})})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{children:"End Date"}),r.jsxs(ed,{children:[r.jsx(td,{asChild:!0,children:r.jsxs(V,{variant:"outline",className:je("w-full justify-start text-left font-normal",!R&&"text-muted-foreground"),children:[r.jsx(Ln,{className:"mr-2 h-4 w-4"}),R?He(R,"PPP"):"Select end date"]})}),r.jsx(Rl,{className:"w-auto p-0",align:"start",children:r.jsx(co,{mode:"single",selected:R,onSelect:O,initialFocus:!0,className:"p-3 pointer-events-auto"})})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{children:"Purpose Types"}),r.jsxs(un,{value:"",onValueChange:U=>{U&&!$.includes(U)&&q(X=>[...X,U])},children:[r.jsx(nn,{children:r.jsx(hn,{placeholder:"Add purpose types..."})}),r.jsx(rn,{children:Ne.filter(U=>!$.includes(U)).map(U=>r.jsx(be,{value:U,children:U},U))})]})]})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-4 mt-4",children:r.jsxs("div",{className:"space-y-2",children:[r.jsx(fe,{children:"Billable Status"}),r.jsxs(un,{value:z,onValueChange:U=>J(U),children:[r.jsx(nn,{children:r.jsx(hn,{})}),r.jsxs(rn,{children:[r.jsx(be,{value:"all",children:"All Entries"}),r.jsx(be,{value:"billable",children:"Billable Only"}),r.jsx(be,{value:"non-billable",children:"Non-Billable Only"})]})]})]})}),$.length>0&&r.jsxs("div",{className:"mt-4",children:[r.jsx(fe,{className:"text-sm",children:"Selected Purposes:"}),r.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:$.map(U=>r.jsxs(Je,{variant:"secondary",className:"flex items-center gap-1",children:[U,r.jsx(pa,{className:"h-3 w-3 cursor-pointer",onClick:()=>dm(U)})]},U))})]}),(P||R||$.length>0)&&r.jsxs("div",{className:"mt-4 p-3 bg-muted rounded-lg text-sm",children:[r.jsx("strong",{children:"Active Filters:"}),P&&r.jsxs("span",{className:"ml-2",children:["Start: ",He(P,"PPP")]}),R&&r.jsxs("span",{className:"ml-2",children:["End: ",He(R,"PPP")]}),$.length>0&&r.jsxs("span",{className:"ml-2",children:["Purposes: ",$.length," selected"]})]})]})]}),N&&r.jsx(vp,{className:`mb-6 ${N.type==="error"?"border-destructive":N.type==="warning"?"border-yellow-500":"border-green-500"}`,children:r.jsx(xp,{children:N.message})}),r.jsx(W,{className:"shadow-lg",children:r.jsxs(Ml,{defaultValue:"raw",className:"w-full",children:[r.jsxs(xo,{className:"grid w-full grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-7 gap-1",children:[r.jsx(gt,{value:"raw",className:"text-xs sm:text-sm px-2 py-1",children:"π Raw Data"}),r.jsx(gt,{value:"data",className:"text-xs sm:text-sm px-2 py-1",children:"π Processed"}),r.jsx(gt,{value:"consolidated",className:"text-xs sm:text-sm px-2 py-1",children:"π Daily"}),r.jsx(gt,{value:"monthly",className:"text-xs sm:text-sm px-2 py-1",children:"π Monthly"}),r.jsx(gt,{value:"summary",className:"text-xs sm:text-sm px-2 py-1",children:"π Summary"}),r.jsx(gt,{value:"invoice",className:"text-xs sm:text-sm px-2 py-1",children:"π° Invoice"}),r.jsx(gt,{value:"saved",className:"text-xs sm:text-sm px-2 py-1",children:"πΎ Saved"})]}),r.jsxs(vt,{value:"raw",className:"p-6",children:[r.jsx(W,{className:"mb-6 bg-blue-50 border-l-4 border-l-primary",children:r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(re,{className:"text-primary",children:"π Raw Data Input"}),r.jsxs(wt,{children:[r.jsx("strong",{children:"Instructions:"}),' Paste your MileIQ "DETAILED LOG" export data in the text area below. Include the header row. The system will automatically process and calculate totals.']})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[f.length>0&&r.jsxs(V,{onClick:()=>A(!0),variant:"outline",size:"sm",children:[r.jsx(eu,{className:"h-4 w-4 mr-2"}),"Save Batch"]}),r.jsx(Vm,{data:h,title:"Raw MileIQ Data",filters:Oi,tabType:"raw"})]})]})})}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{htmlFor:"rawData",className:"block text-sm font-medium mb-2",children:r.jsx("strong",{children:"Paste MileIQ Data:"})}),r.jsx(di,{id:"rawData",value:d,onChange:U=>u(U.target.value),placeholder:`Paste your MileIQ DETAILED LOG data here (tab-separated or comma-separated)
You can paste data with or without headers. If no headers are provided, standard MileIQ column headers will be used automatically.
Example with headers:
START_DATE END_DATE CATEGORY START STOP RATE MILES MILES_VALUE PARKING TOLLS TOTAL VEHICLE PURPOSE NOTES
1/15/2024 9:00 1/15/2024 10:30 Business Office A Client Site $0.67 25.5 $17.09 $0.00 $0.00 $17.09 My Car Meeting ClientABC
Example without headers (your current format):
9/4/25 11:19 9/4/25 11:40 Business Home 5664 S Green St... 0.3 12.5 3.75 0 0 3.75 Ford F-150 2012 Meeting`,className:"min-h-48 font-mono text-xs"})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(V,{onClick:K,children:"π Process Data"}),r.jsx(V,{variant:"secondary",onClick:ae,children:"ποΈ Clear All"})]})]}),r.jsx("div",{className:"mt-6 border rounded-lg overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto max-h-96",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{className:"bg-muted sticky top-0",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-2 text-left border-b font-bold",children:"BILLABLE"}),r.jsx("th",{className:"p-2 text-left border-b font-bold",children:"CLIENT (NOTES)"}),r.jsx("th",{className:"p-2 text-left border-b font-bold",children:"PURPOSE"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"START_DATE*"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"END_DATE*"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"CATEGORY*"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"START*"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"STOP*"}),r.jsx("th",{className:"p-2 text-left border-b",children:"RATE"}),r.jsx("th",{className:"p-2 text-left border-b text-destructive font-bold",children:"MILES*"}),r.jsx("th",{className:"p-2 text-left border-b",children:"MILES_VALUE"}),r.jsx("th",{className:"p-2 text-left border-b",children:"PARKING"}),r.jsx("th",{className:"p-2 text-left border-b",children:"TOLLS"}),r.jsx("th",{className:"p-2 text-left border-b",children:"TOTAL"}),r.jsx("th",{className:"p-2 text-left border-b",children:"VEHICLE"})]})}),r.jsx("tbody",{children:h.length===0?r.jsx("tr",{children:r.jsxs("td",{colSpan:15,className:"p-8 text-center text-muted-foreground",children:[r.jsx("h3",{className:"font-medium mb-2",children:"No data loaded"}),r.jsx("p",{children:'Paste your MileIQ data above and click "Process Data"'})]})}):h.map((U,X)=>{const Y=pe(U.START_DATE||""),oe=pe(U.END_DATE||"");return r.jsxs("tr",{className:je("hover:bg-muted/50",!U.billable&&"bg-muted/30"),children:[r.jsx("td",{className:"p-2 border-b",children:r.jsx(Qu,{checked:U.billable!==!1,onCheckedChange:()=>ke(X),className:"mx-auto"})}),r.jsx("td",{className:"p-2 border-b font-medium",children:r.jsx(Je,{variant:"outline",children:U.NOTES||"Unassigned"})}),r.jsx("td",{className:"p-2 border-b font-medium",children:U.PURPOSE||""}),r.jsx("td",{className:"p-2 border-b",children:Y?de(Y):U.START_DATE||""}),r.jsx("td",{className:"p-2 border-b",children:oe?de(oe):U.END_DATE||""}),r.jsx("td",{className:"p-2 border-b",children:U.CATEGORY||""}),r.jsx("td",{className:"p-2 border-b",children:U.START||""}),r.jsx("td",{className:"p-2 border-b",children:U.STOP||""}),r.jsx("td",{className:"p-2 border-b",children:U.RATE||""}),r.jsx("td",{className:"p-2 border-b",children:parseFloat(U.MILES||"0").toFixed(1)}),r.jsx("td",{className:"p-2 border-b",children:U.MILES_VALUE||""}),r.jsx("td",{className:"p-2 border-b",children:U.PARKING||""}),r.jsx("td",{className:"p-2 border-b",children:U.TOLLS||""}),r.jsx("td",{className:"p-2 border-b",children:U.TOTAL||""}),r.jsx("td",{className:"p-2 border-b",children:U.VEHICLE||""})]},X)})})]})})})]}),r.jsxs(vt,{value:"data",className:"p-6",children:[r.jsx(W,{className:"mb-6 bg-blue-50 border-l-4 border-l-primary",children:r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(re,{className:"text-primary",children:"π Processed Data"}),r.jsx(wt,{children:"Normalized data with calculated hours, filtered to remove empty rows and totals. Client names are extracted from the NOTES field."})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[f.length>0&&r.jsxs(V,{onClick:()=>A(!0),variant:"outline",size:"sm",children:[r.jsx(eu,{className:"h-4 w-4 mr-2"}),"Save Batch"]}),r.jsx(Vm,{data:Ue,title:"Processed Trip Data",filters:Oi,tabType:"processed"})]})]})})}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:Eo}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Trips"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:Ao.toFixed(2)}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Hours"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:nv.toFixed(1)}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Miles"})]})}),r.jsx(W,{children:r.jsxs(H,{className:"p-4 text-center",children:[r.jsx("div",{className:"text-2xl font-bold text-primary mb-1",children:rv}),r.jsx("div",{className:"text-sm text-muted-foreground",children:"Unique Clients"})]})})]}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto max-h-96",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted sticky top-0",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Client"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Date"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Purpose"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Billable"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Hours"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Miles"})]})}),r.jsx("tbody",{children:Ue.length===0?r.jsx("tr",{children:r.jsxs("td",{colSpan:6,className:"p-8 text-center text-muted-foreground",children:[r.jsx("h3",{className:"font-medium mb-2",children:"No processed data"}),r.jsx("p",{children:"Process raw data first"})]})}):Ue.map((U,X)=>{var Y,oe,se,ye;return r.jsxs(L.Fragment,{children:[r.jsxs("tr",{className:je("hover:bg-muted/50",!U.billable&&"bg-muted/30"),children:[r.jsx("td",{className:"p-3 border-b",children:r.jsxs("div",{className:"flex items-center gap-2",children:[U.isConsolidated&&r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>sv(U.id),className:"p-1 h-6 w-6",children:k.has(U.id)?r.jsx(wa,{className:"h-4 w-4"}):r.jsx(b_,{className:"h-4 w-4"})}),r.jsxs(Je,{variant:"outline",className:U.isConsolidated?"bg-blue-50":"",children:[U.client,U.isConsolidated&&r.jsxs("span",{className:"ml-1 text-xs text-blue-600",children:["(",(Y=U.tripLegs)==null?void 0:Y.length," legs)"]})]})]})}),r.jsx("td",{className:"p-3 border-b",children:De(U.date)}),r.jsx("td",{className:"p-3 border-b",children:U.purpose}),r.jsx("td",{className:"p-3 border-b",children:r.jsx(Je,{variant:U.billable?"default":"secondary",children:U.billable?"Yes":"No"})}),r.jsx("td",{className:"p-3 border-b font-mono",children:U.isConsolidated?r.jsxs("span",{className:"font-bold text-blue-600",children:[(oe=U.consolidatedTotalHoursRounded)==null?void 0:oe.toFixed(2)," hrs"]}):`${U.hoursRounded.toFixed(2)} hrs`}),r.jsx("td",{className:"p-3 border-b font-mono",children:U.isConsolidated?r.jsxs("span",{className:"font-bold text-blue-600",children:[U.consolidatedTotalMilesRounded," mi"]}):`${U.milesRounded} mi`})]}),U.isConsolidated&&k.has(U.id)&&U.tripLegs&&r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"p-0 border-b",children:r.jsxs("div",{className:"bg-blue-25 p-4 border-l-4 border-blue-300",children:[r.jsx("h4",{className:"font-semibold text-blue-800 mb-3",children:"Trip Legs Details:"}),r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-blue-100",children:[r.jsx("th",{className:"p-2 text-left",children:"Start Time"}),r.jsx("th",{className:"p-2 text-left",children:"End Time"}),r.jsx("th",{className:"p-2 text-left",children:"From"}),r.jsx("th",{className:"p-2 text-left",children:"To"}),r.jsx("th",{className:"p-2 text-left",children:"Category"}),r.jsx("th",{className:"p-2 text-left",children:"Hours"}),r.jsx("th",{className:"p-2 text-left",children:"Miles"})]})}),r.jsx("tbody",{children:U.tripLegs.map((Ae,an)=>r.jsxs("tr",{className:"hover:bg-blue-50",children:[r.jsx("td",{className:"p-2",children:de(Ae.startTime)}),r.jsx("td",{className:"p-2",children:de(Ae.endTime)}),r.jsx("td",{className:"p-2",children:Ae.startLocation}),r.jsx("td",{className:"p-2",children:Ae.stopLocation}),r.jsx("td",{className:"p-2",children:Ae.category}),r.jsx("td",{className:"p-2 font-mono",children:Ae.hours.toFixed(2)}),r.jsx("td",{className:"p-2 font-mono",children:Ae.miles.toFixed(1)})]},Ae.id))}),r.jsx("tfoot",{children:r.jsxs("tr",{className:"bg-blue-100 font-semibold",children:[r.jsx("td",{colSpan:5,className:"p-2 text-right",children:"Totals:"}),r.jsx("td",{className:"p-2 font-mono",children:(se=U.consolidatedTotalHours)==null?void 0:se.toFixed(2)}),r.jsx("td",{className:"p-2 font-mono",children:(ye=U.consolidatedTotalMiles)==null?void 0:ye.toFixed(1)})]})})]})})]})})})]},U.id)})})]})})})]}),r.jsxs(vt,{value:"consolidated",className:"p-6",children:[r.jsx(W,{className:"mb-6 bg-blue-50 border-l-4 border-l-primary",children:r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(re,{className:"text-primary",children:"π Daily Consolidated Summary"}),r.jsx(wt,{children:"Daily totals by client with rounding rules applied: Hours rounded UP to nearest 0.25 hour, Miles rounded UP to next whole mile."})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[f.length>0&&r.jsxs(V,{onClick:()=>A(!0),variant:"outline",size:"sm",children:[r.jsx(eu,{className:"h-4 w-4 mr-2"}),"Save Batch"]}),r.jsx(Vm,{data:kt,title:"Daily Summary",filters:Oi,tabType:"daily"})]})]})})}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto max-h-96",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted sticky top-0",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Client"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Date"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Purpose"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Hours Rounded"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Miles Rounded"})]})}),r.jsx("tbody",{children:kt.length===0?r.jsx("tr",{children:r.jsxs("td",{colSpan:5,className:"p-8 text-center text-muted-foreground",children:[r.jsx("h3",{className:"font-medium mb-2",children:"No consolidated data"}),r.jsx("p",{children:"Process raw data first"})]})}):kt.map((U,X)=>{const Y=C(U.purpose);return r.jsxs("tr",{className:"hover:bg-muted/50",children:[r.jsx("td",{className:"p-3 border-b",children:r.jsx(Je,{variant:"outline",children:U.client})}),r.jsx("td",{className:"p-3 border-b",children:U.date}),r.jsx("td",{className:`p-3 border-b ${Y}`,children:r.jsx(Je,{variant:"secondary",children:U.purpose})}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:U.hoursRounded.toFixed(2)}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:Math.round(U.milesRounded)})]},X)})})]})})})]}),r.jsxs(vt,{value:"monthly",className:"p-6",children:[r.jsx(W,{className:"mb-6 bg-blue-50 border-l-4 border-l-primary",children:r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(re,{className:"text-primary",children:"π Monthly Summary Report"}),r.jsx(wt,{children:"Monthly totals by client showing both raw sums and rounded daily totals. The rounded totals represent billable amounts."})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[f.length>0&&r.jsxs(V,{onClick:()=>A(!0),variant:"outline",size:"sm",children:[r.jsx(eu,{className:"h-4 w-4 mr-2"}),"Save Batch"]}),r.jsx(Vm,{data:In,title:"Monthly Report",filters:Oi,tabType:"monthly"})]})]})})}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto max-h-96",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted sticky top-0",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Client"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Purpose"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Hours Rounded"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Miles Rounded"})]})}),r.jsx("tbody",{children:In.length===0?r.jsx("tr",{children:r.jsxs("td",{colSpan:4,className:"p-8 text-center text-muted-foreground",children:[r.jsx("h3",{className:"font-medium mb-2",children:"No monthly data"}),r.jsx("p",{children:"Process raw data first"})]})}):In.map((U,X)=>{const Y=C(U.purpose);return r.jsxs("tr",{className:"hover:bg-muted/50",children:[r.jsx("td",{className:"p-3 border-b",children:r.jsx(Je,{variant:"outline",children:U.client})}),r.jsx("td",{className:`p-3 border-b ${Y}`,children:r.jsx(Je,{variant:"secondary",children:U.purpose})}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:U.hoursRoundedSum.toFixed(2)}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:Math.round(U.milesRoundedSum)})]},X)})})]})})})]}),r.jsxs(vt,{value:"summary",className:"p-6",children:[r.jsx(W,{className:"mb-6 bg-blue-50 border-l-4 border-l-primary",children:r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(re,{className:"text-primary",children:"π Client Summary Report"}),r.jsx(wt,{children:"Summary by client showing date ranges, trip counts, and total hours/miles. Perfect for billing and project reporting."})]}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(Vm,{data:os,title:"Client Summary Report",filters:Oi,tabType:"clientSummary"})})]})})}),r.jsx("div",{className:"border rounded-lg overflow-hidden",children:r.jsx("div",{className:"overflow-x-auto max-h-96",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-muted sticky top-0",children:r.jsxs("tr",{children:[r.jsx("th",{className:"p-3 text-left border-b",children:"Client"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Start Date"}),r.jsx("th",{className:"p-3 text-left border-b",children:"End Date"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Total Trips"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Purpose"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Hours Billable"}),r.jsx("th",{className:"p-3 text-left border-b",children:"Miles Billable"})]})}),r.jsx("tbody",{children:os.length===0?r.jsx("tr",{children:r.jsxs("td",{colSpan:7,className:"p-8 text-center text-muted-foreground",children:[r.jsx("h3",{className:"font-medium mb-2",children:"No client summary data"}),r.jsx("p",{children:"Process raw data first"})]})}):os.map((U,X)=>{const Y=C(U.purpose);return r.jsxs("tr",{className:"hover:bg-muted/50",children:[r.jsx("td",{className:"p-3 border-b",children:r.jsx(Je,{variant:"outline",children:U.client})}),r.jsx("td",{className:"p-3 border-b",children:U.startDate}),r.jsx("td",{className:"p-3 border-b",children:U.endDate}),r.jsx("td",{className:"p-3 border-b text-center",children:U.totalTrips}),r.jsx("td",{className:`p-3 border-b ${Y}`,children:r.jsx(Je,{variant:"secondary",children:U.purpose})}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:U.hoursRoundedSum.toFixed(2)}),r.jsx("td",{className:"p-3 border-b font-medium text-primary",children:Math.round(U.milesRoundedSum)})]},X)})})]})})})]}),r.jsx(vt,{value:"invoice",className:"p-6",children:r.jsx(KLe,{filteredData:Ue,filters:Oi,profile:l})}),r.jsx(vt,{value:"saved",children:r.jsx(YLe,{onLoadBatch:jd})})]})}),r.jsx(GLe,{isOpen:D,onClose:()=>A(!1),rawData:h,processedData:f,filtersApplied:Oi})]})]})]})},QLe=()=>{const{pathname:e}=zl();return L.useEffect(()=>{window.scrollTo(0,0)},[e]),null};function JLe(){return j.useEffect(()=>{gee()},[]),r.jsxs(r.Fragment,{children:[r.jsx(IX,{}),r.jsxs(TQ,{children:[r.jsx(QLe,{}),r.jsx(XZ,{}),r.jsx("div",{className:"min-h-screen bg-background",children:r.jsxs(wQ,{children:[r.jsx(qe,{path:"/",element:r.jsx(ute,{})}),r.jsx(qe,{path:"/about",element:r.jsx(Xne,{})}),r.jsx(qe,{path:"/about/brand",element:r.jsx(Qne,{})}),r.jsx(qe,{path:"/services",element:r.jsx(Jne,{})}),r.jsx(qe,{path:"/contact",element:r.jsx(cre,{})}),r.jsx(qe,{path:"/locations",element:r.jsx(dre,{})}),r.jsx(qe,{path:"/blog",element:r.jsx(ure,{})}),r.jsx(qe,{path:"/blog/:slug",element:r.jsx(fre,{})}),r.jsx(qe,{path:"/blog/tag/:tag",element:r.jsx(pre,{})}),r.jsx(qe,{path:"/privacy-policy",element:r.jsx(gre,{})}),r.jsx(qe,{path:"/privacy-choices",element:r.jsx(Nre,{})}),r.jsx(qe,{path:"/privacy-requests",element:r.jsx(Yie,{})}),r.jsx(qe,{path:"/terms",element:r.jsx(vre,{})}),r.jsx(qe,{path:"/licensing-information",element:r.jsx(xre,{})}),r.jsx(qe,{path:"/sitemap",element:r.jsx(yre,{})}),r.jsx(qe,{path:"/reviews",element:r.jsx(bre,{})}),r.jsx(qe,{path:"/thank-you",element:r.jsx(wre,{})}),r.jsx(qe,{path:"/test-workflow",element:r.jsx(vae,{})}),r.jsx(qe,{path:"/geo-blocked",element:r.jsx(yae,{})}),r.jsx(qe,{path:"/services/domestic/child-custody-investigation",element:r.jsx(jre,{})}),r.jsx(qe,{path:"/services/domestic",element:r.jsx(Cae,{})}),r.jsx(qe,{path:"/services/domestic/cohabitation",element:r.jsx(hoe,{})}),r.jsx(qe,{path:"/services/corporate",element:r.jsx(_ae,{})}),r.jsx(qe,{path:"/services/criminal",element:r.jsx(Tae,{})}),r.jsx(qe,{path:"/services/asset-searches",element:r.jsx(Pae,{})}),r.jsx(qe,{path:"/services/law-firms",element:r.jsx(Eae,{})}),r.jsx(qe,{path:"/services/insurance",element:r.jsx(Aae,{})}),r.jsx(qe,{path:"/services/legal-investigation-utah",element:r.jsx(xoe,{})}),r.jsx(qe,{path:"/services/utah-private-investigator",element:r.jsx(bae,{})}),r.jsx(qe,{path:"/services/domestic/divorce-investigation",element:r.jsx(yoe,{})}),r.jsx(qe,{path:"/services/corporate/utah",element:r.jsx(boe,{})}),r.jsx(qe,{path:"/services/orem-private-investigator",element:r.jsx(Coe,{})}),r.jsx(qe,{path:"/locations/utah",element:r.jsx(Uoe,{})}),r.jsx(qe,{path:"/locations/idaho",element:r.jsx(Koe,{})}),r.jsx(qe,{path:"/locations/wyoming",element:r.jsx(sle,{})}),r.jsx(qe,{path:"/locations/utah/salt-lake-county",element:r.jsx(ale,{})}),r.jsx(qe,{path:"/locations/utah/utah-county",element:r.jsx(ole,{})}),r.jsx(qe,{path:"/locations/utah/davis-county",element:r.jsx(lle,{})}),r.jsx(qe,{path:"/locations/utah/weber-county",element:r.jsx(cle,{})}),r.jsx(qe,{path:"/locations/utah/cache-county",element:r.jsx(dle,{})}),r.jsx(qe,{path:"/locations/utah/tooele-county",element:r.jsx(ule,{})}),r.jsx(qe,{path:"/locations/utah/washington-county",element:r.jsx(hle,{})}),r.jsx(qe,{path:"/admin",element:r.jsx(lLe,{})}),r.jsx(qe,{path:"/admin/timesheets",element:r.jsx(dLe,{})}),r.jsx(qe,{path:"/agent",element:r.jsx(LLe,{})}),r.jsx(qe,{path:"/agent/prototype",element:r.jsx(ULe,{})}),r.jsx(qe,{path:"/agent/calendar",element:r.jsx(WLe,{})}),r.jsx(qe,{path:"/agent/tasks",element:r.jsx(VLe,{})}),r.jsx(qe,{path:"/agent/mileiq",element:r.jsx(XLe,{})}),r.jsx(qe,{path:"*",element:r.jsx(xae,{})})]})})]})]})}const lH=j.createContext(void 0),CUe=()=>{const e=j.useContext(lH);if(e===void 0)throw new Error("useScriptManager must be used within a ScriptManagerProvider");return e},ZLe=({children:e})=>{const t=j.useRef(new Set),n=j.useRef(new Set),i=j.useRef([]),s=j.useRef(!1),a=async()=>{if(!(s.current||i.current.length===0)){for(s.current=!0;i.current.length>0;){const l=i.current.shift();if(l)try{await l(),await new Promise(c=>setTimeout(c,300))}catch(c){console.warn("Script loading failed:",c)}}s.current=!1}},o=(l,c,d)=>new Promise((u,h)=>{if(n.current.has(l)){c==null||c(),u();return}if(t.current.has(l)){const f=()=>{n.current.has(l)?(c==null||c(),u()):setTimeout(f,100)};f();return}const m=()=>new Promise((f,g)=>{if(t.current.add(l),document.querySelector(`script[src="${l}"]`)){n.current.add(l),t.current.delete(l),c==null||c(),f();return}const v=document.createElement("script");v.src=l,v.async=!0,v.onload=()=>{n.current.add(l),t.current.delete(l),c==null||c(),f()},v.onerror=()=>{t.current.delete(l),d==null||d(),g(new Error(`Failed to load script: ${l}`))},requestAnimationFrame(()=>{if(document.head&&document.readyState!=="loading")document.head.appendChild(v);else{const y=()=>{document.head&&document.head.appendChild(v),document.removeEventListener("DOMContentLoaded",y)};document.addEventListener("DOMContentLoaded",y)}})});i.current.push(()=>m().then(u).catch(h)),a()});return r.jsx(lH.Provider,{value:{loadScript:o},children:e})},eUe=new cY({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:1e3*60*5}}}),cH=document.getElementById("root");if(!cH)throw new Error("Root element not found");sR(cH).render(r.jsx(dY,{client:eUe,children:r.jsx(ZLe,{children:r.jsx(JLe,{})})}));export{Ic as A,V as B,W as C,jK as D,ai as E,Ct as F,Je as G,VR as H,he as I,NK as J,e$ as K,fe as L,Et as M,ap as P,Be as S,di as T,n$ as Z,Q as a,fu as b,OU as c,pUe as d,CUe as e,Cee as f,M_ as g,te as h,eL as i,r as j,Pi as k,S_ as l,Z as m,re as n,H as o,IU as p,Hn as q,j as r,_t as s,wl as t,Lt as u,yUe as v,Pn as w,Ln as x,$s as y,Sn as z};