function yf(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Du={exports:{}},Sl={},Uu={exports:{}},M={};/** * @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 ar=Symbol.for("react.element"),wf=Symbol.for("react.portal"),Sf=Symbol.for("react.fragment"),kf=Symbol.for("react.strict_mode"),jf=Symbol.for("react.profiler"),Ef=Symbol.for("react.provider"),Nf=Symbol.for("react.context"),Cf=Symbol.for("react.forward_ref"),_f=Symbol.for("react.suspense"),Pf=Symbol.for("react.memo"),Lf=Symbol.for("react.lazy"),gs=Symbol.iterator;function Tf(e){return e===null||typeof e!="object"?null:(e=gs&&e[gs]||e["@@iterator"],typeof e=="function"?e:null)}var Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bu=Object.assign,Vu={};function vn(e,t,n){this.props=e,this.context=t,this.refs=Vu,this.updater=n||Au}vn.prototype.isReactComponent={};vn.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")};vn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wu(){}Wu.prototype=vn.prototype;function xo(e,t,n){this.props=e,this.context=t,this.refs=Vu,this.updater=n||Au}var wo=xo.prototype=new Wu;wo.constructor=xo;Bu(wo,vn.prototype);wo.isPureReactComponent=!0;var ys=Array.isArray,Hu=Object.prototype.hasOwnProperty,So={current:null},Qu={key:!0,ref:!0,__self:!0,__source:!0};function Ku(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Hu.call(t,r)&&!Qu.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,J=L[K];if(0>>1;Kl(Vl,z))Etl(gr,Vl)?(L[K]=gr,L[Et]=z,K=Et):(L[K]=Vl,L[jt]=z,K=jt);else if(Etl(gr,z))L[K]=gr,L[Et]=z,K=Et;else break e}}return T}function l(L,T){var z=L.sortIndex-T.sortIndex;return z!==0?z:L.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],c=[],d=1,m=null,v=3,S=!1,y=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(L){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=L)r(c),T.sortIndex=T.expirationTime,t(a,T);else break;T=n(c)}}function x(L){if(w=!1,p(L),!y)if(n(a)!==null)y=!0,Al(N);else{var T=n(c);T!==null&&Bl(x,T.startTime-L)}}function N(L,T){y=!1,w&&(w=!1,h(C),C=-1),S=!0;var z=v;try{for(p(T),m=n(a);m!==null&&(!(m.expirationTime>T)||L&&!ve());){var K=m.callback;if(typeof K=="function"){m.callback=null,v=m.priorityLevel;var J=K(m.expirationTime<=T);T=e.unstable_now(),typeof J=="function"?m.callback=J:m===n(a)&&r(a),p(T)}else r(a);m=n(a)}if(m!==null)var vr=!0;else{var jt=n(c);jt!==null&&Bl(x,jt.startTime-T),vr=!1}return vr}finally{m=null,v=z,S=!1}}var _=!1,g=null,C=-1,O=5,R=-1;function ve(){return!(e.unstable_now()-RL||125K?(L.sortIndex=z,t(c,L),n(a)===null&&L===n(c)&&(w?(h(C),C=-1):w=!0,Bl(x,z-K))):(L.sortIndex=J,t(a,L),y||S||(y=!0,Al(N))),L},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(L){var T=v;return function(){var z=v;v=T;try{return L.apply(this,arguments)}finally{v=z}}}})(qu);Ju.exports=qu;var Vf=Ju.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 Wf=k,we=Vf;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,Hf=/^[: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]*$/,ws={},Ss={};function Qf(e){return wi.call(Ss,e)?!0:wi.call(ws,e)?!1:Hf.test(e)?Ss[e]=!0:(ws[e]=!0,!1)}function Kf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yf(e,t,n,r){if(t===null||typeof t>"u"||Kf(e,t,n,r))return!0;if(r)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 ce(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ne[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(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){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var jo=/[\-:]([a-z])/g;function Eo(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(jo,Eo);ne[t]=new ce(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(jo,Eo);ne[t]=new ce(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(jo,Eo);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function No(e,t,n,r){var l=ne.hasOwnProperty(t)?ne[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` `+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function Xf(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Kl(e.type,!1),e;case 11:return e=Kl(e.type.render,!1),e;case 1:return e=Kl(e.type,!0),e;default:return""}}function Ei(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 Wt:return"Fragment";case Vt:return"Portal";case Si:return"Profiler";case Co:return"StrictMode";case ki:return"Suspense";case ji:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ta:return(e.displayName||"Context")+".Consumer";case ea:return(e._context.displayName||"Context")+".Provider";case _o:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Po:return t=e.displayName||null,t!==null?t:Ei(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return Ei(e(t))}catch{}}return null}function Gf(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 Ei(t);case 8:return t===Co?"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 vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ra(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zf(e){var t=ra(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){e._valueTracker||(e._valueTracker=Zf(e))}function la(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ra(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gr(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 Ni(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function js(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ia(e,t){t=t.checked,t!=null&&No(e,"checked",t,!1)}function Ci(e,t){ia(e,t);var n=vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_i(e,t.type,n):t.hasOwnProperty("defaultValue")&&_i(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Es(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 _i(e,t,n){(t!=="number"||Gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zn=Array.isArray;function en(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var In={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},Jf=["Webkit","ms","Moz","O"];Object.keys(In).forEach(function(e){Jf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),In[t]=In[e]})});function aa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||In.hasOwnProperty(e)&&In[e]?(""+t).trim():t+"px"}function ca(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=aa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var qf=W({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 Ti(e,t){if(t){if(qf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ri(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 zi=null;function Lo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mi=null,tn=null,nn=null;function _s(e){if(e=dr(e)){if(typeof Mi!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Cl(t),Mi(e.stateNode,e.type,t))}}function fa(e){tn?nn?nn.push(e):nn=[e]:tn=e}function da(){if(tn){var e=tn,t=nn;if(nn=tn=null,_s(e),t)for(e=0;e>>=0,e===0?32:31-(ad(e)/cd|0)|0}var kr=64,jr=4194304;function Mn(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 br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Mn(s):(i&=o,i!==0&&(r=Mn(i)))}else o=n&~l,o!==0?r=Mn(o):i!==0&&(r=Mn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function hd(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 r=e.eventTimes;for(e=e.expirationTimes;0=$n),Fs=" ",$s=!1;function za(e,t){switch(e){case"keyup":return Vd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ma(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ht=!1;function Hd(e,t){switch(e){case"compositionend":return Ma(t);case"keypress":return t.which!==32?null:($s=!0,Fs);case"textInput":return e=t.data,e===Fs&&$s?null:e;default:return null}}function Qd(e,t){if(Ht)return e==="compositionend"||!$o&&za(e,t)?(e=Ta(),Ur=Oo=lt=null,Ht=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bs(n)}}function $a(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$a(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Da(){for(var e=window,t=Gr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gr(e.document)}return t}function Do(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 ep(e){var t=Da(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$a(n.ownerDocument.documentElement,n)){if(r!==null&&Do(n)){if(t=r.start,e=r.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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Vs(n,i);var o=Vs(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(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=document.documentMode,Qt=null,Ui=null,Un=null,Ai=!1;function Ws(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ai||Qt==null||Qt!==Gr(r)||(r=Qt,"selectionStart"in r&&Do(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Un&&Jn(Un,r)||(Un=r,r=nl(Ui,"onSelect"),0Xt||(e.current=Ki[Xt],Ki[Xt]=null,Xt--)}function $(e,t){Xt++,Ki[Xt]=e.current,e.current=t}var gt={},oe=xt(gt),pe=xt(!1),zt=gt;function un(e,t){var n=e.type.contextTypes;if(!n)return gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function ll(){U(pe),U(oe)}function Zs(e,t,n){if(oe.current!==gt)throw Error(E(168));$(oe,t),$(pe,n)}function Ya(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,Gf(e)||"Unknown",l));return W({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gt,zt=oe.current,$(oe,e),$(pe,pe.current),!0}function Js(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ya(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,U(pe),U(oe),$(oe,e)):U(pe),$(pe,n)}var We=null,_l=!1,oi=!1;function Xa(e){We===null?We=[e]:We.push(e)}function dp(e){_l=!0,Xa(e)}function wt(){if(!oi&&We!==null){oi=!0;var e=0,t=F;try{var n=We;for(F=1;e>=o,l-=o,He=1<<32-Oe(t)+l|n<C?(O=g,g=null):O=g.sibling;var R=v(h,g,p[C],x);if(R===null){g===null&&(g=O);break}e&&g&&R.alternate===null&&t(h,g),f=i(R,f,C),_===null?N=R:_.sibling=R,_=R,g=O}if(C===p.length)return n(h,g),A&&Nt(h,C),N;if(g===null){for(;CC?(O=g,g=null):O=g.sibling;var ve=v(h,g,R.value,x);if(ve===null){g===null&&(g=O);break}e&&g&&ve.alternate===null&&t(h,g),f=i(ve,f,C),_===null?N=ve:_.sibling=ve,_=ve,g=O}if(R.done)return n(h,g),A&&Nt(h,C),N;if(g===null){for(;!R.done;C++,R=p.next())R=m(h,R.value,x),R!==null&&(f=i(R,f,C),_===null?N=R:_.sibling=R,_=R);return A&&Nt(h,C),N}for(g=r(h,g);!R.done;C++,R=p.next())R=S(g,h,C,R.value,x),R!==null&&(e&&R.alternate!==null&&g.delete(R.key===null?C:R.key),f=i(R,f,C),_===null?N=R:_.sibling=R,_=R);return e&&g.forEach(function(Sn){return t(h,Sn)}),A&&Nt(h,C),N}function j(h,f,p,x){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case xr:e:{for(var N=p.key,_=f;_!==null;){if(_.key===N){if(N=p.type,N===Wt){if(_.tag===7){n(h,_.sibling),f=l(_,p.props.children),f.return=h,h=f;break e}}else if(_.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===et&&eu(N)===_.type){n(h,_.sibling),f=l(_,p.props),f.ref=Pn(h,_,p),f.return=h,h=f;break e}n(h,_);break}else t(h,_);_=_.sibling}p.type===Wt?(f=Rt(p.props.children,h.mode,x,p.key),f.return=h,h=f):(x=Yr(p.type,p.key,p.props,null,h.mode,x),x.ref=Pn(h,f,p),x.return=h,h=x)}return o(h);case Vt:e:{for(_=p.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(h,f.sibling),f=l(f,p.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=hi(p,h.mode,x),f.return=h,h=f}return o(h);case et:return _=p._init,j(h,f,_(p._payload),x)}if(zn(p))return y(h,f,p,x);if(jn(p))return w(h,f,p,x);Tr(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(h,f.sibling),f=l(f,p),f.return=h,h=f):(n(h,f),f=pi(p,h.mode,x),f.return=h,h=f),o(h)):n(h,f)}return j}var cn=qa(!0),ba=qa(!1),ul=xt(null),al=null,Jt=null,Vo=null;function Wo(){Vo=Jt=al=null}function Ho(e){var t=ul.current;U(ul),e._currentValue=t}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ln(e,t){al=e,Vo=Jt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Vo!==e)if(e={context:e,memoizedValue:t,next:null},Jt===null){if(al===null)throw Error(E(308));Jt=e,al.dependencies={lanes:0,firstContext:e}}else Jt=Jt.next=e;return t}var Pt=null;function Qo(e){Pt===null?Pt=[e]:Pt.push(e)}function ec(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Qo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ge(e,r)}function Ge(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 tt=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tc(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 Ke(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ge(e,n)}return l=r.interleaved,l===null?(t.next=t,Qo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ge(e,n)}function Br(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ro(e,n)}}function tu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=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};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var l=e.updateQueue;tt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=a))}if(i!==null){var m=l.baseState;o=0,d=c=a=null,s=i;do{var v=s.lane,S=s.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(v=t,S=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){m=y.call(S,m,v);break e}m=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,v=typeof y=="function"?y.call(S,m,v):y,v==null)break e;m=W({},m,v);break e;case 2:tt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[s]:v.push(s))}else S={eventTime:S,lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=S,a=m):d=d.next=S,o|=v;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;v=s,s=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);if(d===null&&(a=m),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);It|=o,e.lanes=o,e.memoizedState=m}}function nu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{F=n,ui.transition=r}}function yc(){return Pe().memoizedState}function vp(e,t,n){var r=pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))wc(t,n);else if(n=ec(e,t,n,r),n!==null){var l=ue();Ie(n,e,r,l),Sc(n,t,r)}}function gp(e,t,n){var r=pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))wc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Fe(s,o)){var a=t.interleaved;a===null?(l.next=l,Qo(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=ec(e,t,l,r),n!==null&&(l=ue(),Ie(n,e,r,l),Sc(n,t,r))}}function xc(e){var t=e.alternate;return e===V||t!==null&&t===V}function wc(e,t){An=dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ro(e,n)}}var pl={readContext:_e,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},yp={readContext:_e,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:lu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wr(4194308,4,pc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wr(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vp.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:ru,useDebugValue:es,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=ru(!1),t=e[0];return e=mp.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=De();if(A){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),b===null)throw Error(E(349));Ot&30||ic(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,lu(sc.bind(null,r,i,e),[e]),r.flags|=2048,ir(9,oc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=De(),t=b.identifierPrefix;if(A){var n=Qe,r=He;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ue]=t,e[er]=r,Rc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ri(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lpn&&(t.flags|=128,r=!0,Ln(i,!1),t.lanes=4194304)}else{if(!r)if(e=fl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!A)return le(t),null}else 2*Y()-i.renderingStartTime>pn&&n!==1073741824&&(t.flags|=128,r=!0,Ln(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=B.current,$(B,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return os(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Cp(e,t){switch(Ao(t),t.tag){case 1:return he(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(),U(pe),U(oe),Go(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xo(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return fn(),null;case 10:return Ho(t.type._context),null;case 22:case 23:return os(),null;case 24:return null;default:return null}}var zr=!1,ie=!1,_p=typeof WeakSet=="function"?WeakSet:Set,P=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function lo(e,t,n){try{n()}catch(r){H(e,t,r)}}var mu=!1;function Pp(e,t){if(Bi=el,e=Da(),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,d=0,m=e,v=null;t:for(;;){for(var S;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(a=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(S=m.firstChild)!==null;)v=m,m=S;for(;;){if(m===e)break t;if(v===n&&++c===l&&(s=o),v===i&&++d===r&&(a=o),(S=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=S}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vi={focusedElem:e,selectionRange:n},el=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,j=y.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:Te(t.type,w),j);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(x){H(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return y=mu,mu=!1,y}function Bn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&lo(t,n,i)}l=l.next}while(l!==r)}}function Tl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function io(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 Oc(e){var t=e.alternate;t!==null&&(e.alternate=null,Oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[er],delete t[Qi],delete t[cp],delete t[fp])),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 Ic(e){return e.tag===5||e.tag===3||e.tag===4}function vu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ic(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 oo(e,t,n){var r=e.tag;if(r===5||r===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=rl));else if(r!==4&&(e=e.child,e!==null))for(oo(e,t,n),e=e.sibling;e!==null;)oo(e,t,n),e=e.sibling}function so(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(so(e,t,n),e=e.sibling;e!==null;)so(e,t,n),e=e.sibling}var ee=null,Re=!1;function qe(e,t,n){for(n=n.child;n!==null;)Fc(e,t,n),n=n.sibling}function Fc(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 5:ie||qt(n,t);case 6:var r=ee,l=Re;ee=null,qe(e,t,n),ee=r,Re=l,ee!==null&&(Re?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Re?(e=ee,n=n.stateNode,e.nodeType===8?ii(e.parentNode,n):e.nodeType===1&&ii(e,n),Gn(e)):ii(ee,n.stateNode));break;case 4:r=ee,l=Re,ee=n.stateNode.containerInfo,Re=!0,qe(e,t,n),ee=r,Re=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&lo(n,t,o),l=l.next}while(l!==r)}qe(e,t,n);break;case 1:if(!ie&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){H(n,t,s)}qe(e,t,n);break;case 21:qe(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,qe(e,t,n),ie=r):qe(e,t,n);break;default:qe(e,t,n)}}function gu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _p),t.forEach(function(r){var l=$p.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tp(r/1960))-r,10e?16:e,it===null)var r=!1;else{if(e=it,it=null,vl=0,I&6)throw Error(E(331));var l=I;for(I|=4,P=e.current;P!==null;){var i=P,o=i.child;if(P.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aY()-ls?Tt(e,0):rs|=n),me(e,t)}function Hc(e,t){t===0&&(e.mode&1?(t=jr,jr<<=1,!(jr&130023424)&&(jr=4194304)):t=1);var n=ue();e=Ge(e,t),e!==null&&(cr(e,t,n),me(e,n))}function Fp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hc(e,n)}function $p(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Hc(e,n)}var Qc;Qc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,Ep(e,t,n);de=!!(e.flags&131072)}else de=!1,A&&t.flags&1048576&&Ga(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hr(e,t),e=t.pendingProps;var l=un(t,oe.current);ln(t,n),l=Jo(null,t,r,e,l,n);var i=qo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(i=!0,il(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ko(t),l.updater=Ll,t.stateNode=l,l._reactInternals=t,Ji(t,r,e,n),t=eo(null,t,r,!0,i,n)):(t.tag=0,A&&i&&Uo(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Up(r),e=Te(r,e),l){case 0:t=bi(null,t,r,e,n);break e;case 1:t=du(null,t,r,e,n);break e;case 11:t=cu(null,t,r,e,n);break e;case 14:t=fu(null,t,r,Te(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),bi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),du(e,t,r,l,n);case 3:e:{if(Pc(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,l=i.element,tc(e,t),cl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=dn(Error(E(423)),t),t=pu(e,t,r,n,l);break e}else if(r!==l){l=dn(Error(E(424)),t),t=pu(e,t,r,n,l);break e}else for(ye=ct(t.stateNode.containerInfo.firstChild),xe=t,A=!0,Me=null,n=ba(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(an(),r===l){t=Ze(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return nc(t),e===null&&Xi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Wi(r,l)?o=null:i!==null&&Wi(r,i)&&(t.flags|=32),_c(e,t),se(e,t,o,n),t.child;case 6:return e===null&&Xi(t),null;case 13:return Lc(e,t,n);case 4:return Yo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),cu(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,$(ul,r._currentValue),r._currentValue=o,i!==null)if(Fe(i.value,o)){if(i.children===l.children&&!pe.current){t=Ze(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ke(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Gi(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(E(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Gi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,ln(t,n),l=_e(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Te(r,t.pendingProps),l=Te(r.type,l),fu(e,t,r,l,n);case 15:return Nc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Hr(e,t),t.tag=1,he(r)?(e=!0,il(t)):e=!1,ln(t,n),kc(t,r,l),Ji(t,r,l,n),eo(null,t,r,!0,e,n);case 19:return Tc(e,t,n);case 22:return Cc(e,t,n)}throw Error(E(156,t.tag))};function Kc(e,t){return xa(e,t)}function Dp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(e,t,n,r){return new Dp(e,t,n,r)}function us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Up(e){if(typeof e=="function")return us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_o)return 11;if(e===Po)return 14}return 2}function ht(e,t){var n=e.alternate;return n===null?(n=Ne(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 Yr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")us(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wt:return Rt(n.children,l,i,t);case Co:o=8,l|=8;break;case Si:return e=Ne(12,n,t,l|2),e.elementType=Si,e.lanes=i,e;case ki:return e=Ne(13,n,t,l),e.elementType=ki,e.lanes=i,e;case ji:return e=Ne(19,n,t,l),e.elementType=ji,e.lanes=i,e;case na:return zl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ea:o=10;break e;case ta:o=9;break e;case _o:o=11;break e;case Po:o=14;break e;case et:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ne(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Rt(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function zl(e,t,n,r){return e=Ne(22,e,r,t),e.elementType=na,e.lanes=n,e.stateNode={isHidden:!1},e}function pi(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function hi(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ap(e,t,n,r,l){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=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function as(e,t,n,r,l,i,o,s,a){return e=new Ap(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ne(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ko(i),e}function Bp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zc)}catch(e){console.error(e)}}Zc(),Zu.exports=Se;var Kp=Zu.exports,Nu=Kp;xi.createRoot=Nu.createRoot,xi.hydrateRoot=Nu.hydrateRoot;/** * @remix-run/router v1.23.3 * * 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 sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ps(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xp(){return Math.random().toString(36).substr(2,8)}function _u(e,t){return{usr:e.state,key:e.key,idx:t}}function po(e,t,n,r){return n===void 0&&(n=null),sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xn(t):t,{state:n,key:t&&t.key||r||Xp()})}function xl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Gp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=ot.Pop,a=null,c=d();c==null&&(c=0,o.replaceState(sr({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function m(){s=ot.Pop;let j=d(),h=j==null?null:j-c;c=j,a&&a({action:s,location:w.location,delta:h})}function v(j,h){s=ot.Push;let f=po(w.location,j,h);c=d()+1;let p=_u(f,c),x=w.createHref(f);try{o.pushState(p,"",x)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;l.location.assign(x)}i&&a&&a({action:s,location:w.location,delta:1})}function S(j,h){s=ot.Replace;let f=po(w.location,j,h);c=d();let p=_u(f,c),x=w.createHref(f);o.replaceState(p,"",x),i&&a&&a({action:s,location:w.location,delta:0})}function y(j){let h=l.location.origin!=="null"?l.location.origin:l.location.href,f=typeof j=="string"?j:xl(j);return f=f.replace(/ $/,"%20"),Q(h,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,h)}let w={get action(){return s},get location(){return e(l,o)},listen(j){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Cu,m),a=j,()=>{l.removeEventListener(Cu,m),a=null}},createHref(j){return t(l,j)},createURL:y,encodeLocation(j){let h=y(j);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:S,go(j){return o.go(j)}};return w}var Pu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pu||(Pu={}));function Zp(e,t,n){return n===void 0&&(n="/"),Jp(e,t,n)}function Jp(e,t,n,r){let l=typeof t=="string"?xn(t):t,i=hn(l.pathname||"/",n);if(i==null)return null;let o=Jc(e);qp(o);let s=null,a=ah(i);for(let c=0;s==null&&c{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(Q(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=mt([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(Q(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jc(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:ih(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of qc(i.path))l(i,o,a)}),t}function qc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=qc(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function qp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bp=/^:[\w-]+$/,eh=3,th=2,nh=1,rh=10,lh=-2,Lu=e=>e==="*";function ih(e,t){let n=e.split("/"),r=n.length;return n.some(Lu)&&(r+=lh),t&&(r+=th),n.filter(l=>!Lu(l)).reduce((l,i)=>l+(bp.test(i)?eh:i===""?nh:rh),r)}function oh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function sh(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let s=0;s{let{paramName:v,isOptional:S}=d;if(v==="*"){let w=s[m]||"";o=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const y=s[m];return S&&!y?c[v]=void 0:c[v]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function uh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ps(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function ah(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ps(!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 hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fh=e=>ch.test(e);function dh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?xn(e):e,i;if(n)if(fh(n))i=n;else{if(n.includes("//")){let o=n;n=tf(n),ps(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Tu(n.substring(1),"/"):i=Tu(n,t)}else i=t;return{pathname:i,search:mh(r),hash:vh(l)}}function Tu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function mi(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ph(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bc(e,t){let n=ph(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ef(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=xn(e):(l=sr({},e),Q(!l.pathname||!l.pathname.includes("?"),mi("?","pathname","search",l)),Q(!l.pathname||!l.pathname.includes("#"),mi("#","pathname","hash",l)),Q(!l.search||!l.search.includes("#"),mi("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(o==null)s=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),m-=1;l.pathname=v.join("/")}s=m>=0?t[m]:"/"}let a=dh(l,s),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||d)&&(a.pathname+="/"),a}const tf=e=>e.replace(/\/\/+/g,"/"),mt=e=>tf(e.join("/")),hh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nf=["post","put","patch","delete"];new Set(nf);const yh=["get",...nf];new Set(yh);/** * React Router v6.30.4 * * 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 ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let m=ef(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:mt([t,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[t,r,o,i,e])}function Sh(){let{matches:e}=k.useContext(kt),t=e[e.length-1];return t?t.params:{}}function Ul(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(St),{matches:l}=k.useContext(kt),{pathname:i}=wn(),o=JSON.stringify(bc(l,r.v7_relativeSplatPath));return k.useMemo(()=>ef(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function kh(e,t){return jh(e,t)}function jh(e,t,n,r){hr()||Q(!1);let{navigator:l}=k.useContext(St),{matches:i}=k.useContext(kt),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=wn(),d;if(t){var m;let j=typeof t=="string"?xn(t):t;a==="/"||(m=j.pathname)!=null&&m.startsWith(a)||Q(!1),d=j}else d=c;let v=d.pathname||"/",S=v;if(a!=="/"){let j=a.replace(/^\//,"").split("/");S="/"+v.replace(/^\//,"").split("/").slice(j.length).join("/")}let y=Zp(e,{pathname:S}),w=Ph(y&&y.map(j=>Object.assign({},j,{params:Object.assign({},s,j.params),pathname:mt([a,l.encodeLocation?l.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?a:mt([a,l.encodeLocation?l.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),i,n,r);return t&&w?k.createElement(Dl.Provider,{value:{location:ur({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ot.Pop}},w):w}function Eh(){let e=zh(),t=gh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const Nh=k.createElement(Eh,null);class Ch extends k.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?k.createElement(kt.Provider,{value:this.props.routeContext},k.createElement(lf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _h(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext($l);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(kt.Provider,{value:t},r)}function Ph(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let d=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);d>=0||Q(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,m,v)=>{let S,y=!1,w=null,j=null;n&&(S=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||Nh,a&&(c<0&&v===0?(Oh("route-fallback"),y=!0,j=null):c===v&&(y=!0,j=m.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,v+1)),f=()=>{let p;return S?p=w:y?p=j:m.route.Component?p=k.createElement(m.route.Component,null):m.route.element?p=m.route.element:p=d,k.createElement(_h,{match:m,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?k.createElement(Ch,{location:n.location,revalidation:n.revalidation,component:w,error:S,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}var uf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(uf||{}),af=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}(af||{});function Lh(e){let t=k.useContext($l);return t||Q(!1),t}function Th(e){let t=k.useContext(rf);return t||Q(!1),t}function Rh(e){let t=k.useContext(kt);return t||Q(!1),t}function cf(e){let t=Rh(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function zh(){var e;let t=k.useContext(lf),n=Th(),r=cf();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Mh(){let{router:e}=Lh(uf.UseNavigateStable),t=cf(af.UseNavigateStable),n=k.useRef(!1);return of(()=>{n.current=!0}),k.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ur({fromRouteId:t},i)))},[e,t])}const Ru={};function Oh(e,t,n){Ru[e]||(Ru[e]=!0)}function Ih(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function be(e){Q(!1)}function Fh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ot.Pop,navigator:i,static:o=!1,future:s}=e;hr()&&Q(!1);let a=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:a,navigator:i,static:o,future:ur({v7_relativeSplatPath:!1},s)}),[a,s,i,o]);typeof r=="string"&&(r=xn(r));let{pathname:d="/",search:m="",hash:v="",state:S=null,key:y="default"}=r,w=k.useMemo(()=>{let j=hn(d,a);return j==null?null:{location:{pathname:j,search:m,hash:v,state:S,key:y},navigationType:l}},[a,d,m,v,S,y,l]);return w==null?null:k.createElement(St.Provider,{value:c},k.createElement(Dl.Provider,{children:n,value:w}))}function $h(e){let{children:t,location:n}=e;return kh(mo(t),n)}new Promise(()=>{});function mo(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let i=[...t,l];if(r.type===k.Fragment){n.push.apply(n,mo(r.props.children,i));return}r.type!==be&&Q(!1),!r.props.index||!r.props.children||Q(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=mo(r.props.children,i)),n.push(o)}),n}/** * React Router DOM v6.30.4 * * 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 wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Ah(e,t){let n=vo(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(i=>{n.append(l,i)})}),n}const Bh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Vh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Wh="6";try{window.__reactRouterVersion=Wh}catch{}const Hh=k.createContext({isTransitioning:!1}),Qh="startTransition",zu=If[Qh];function Kh(e){let{basename:t,children:n,future:r,window:l}=e,i=k.useRef();i.current==null&&(i.current=Yp({window:l,v5Compat:!0}));let o=i.current,[s,a]=k.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=k.useCallback(m=>{c&&zu?zu(()=>a(m)):a(m)},[a,c]);return k.useLayoutEffect(()=>o.listen(d),[o,d]),k.useEffect(()=>Ih(r),[r]),k.createElement(Fh,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const Yh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mn=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:c,preventScrollReset:d,viewTransition:m}=t,v=ff(t,Bh),{basename:S}=k.useContext(St),y,w=!1;if(typeof c=="string"&&Xh.test(c)&&(y=c,Yh))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),N=hn(x.pathname,S);x.origin===p.origin&&N!=null?c=N+x.search+x.hash:w=!0}catch{}let j=xh(c,{relative:l}),h=Zh(c,{replace:o,state:s,target:a,preventScrollReset:d,relative:l,viewTransition:m});function f(p){r&&r(p),p.defaultPrevented||h(p)}return k.createElement("a",wl({},v,{href:y||j,onClick:w||i?r:f,ref:n,target:a}))}),Bt=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,viewTransition:c,children:d}=t,m=ff(t,Vh),v=Ul(a,{relative:m.relative}),S=wn(),y=k.useContext(rf),{navigator:w,basename:j}=k.useContext(St),h=y!=null&&qh(v)&&c===!0,f=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,p=S.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(p=p.toLowerCase(),x=x?x.toLowerCase():null,f=f.toLowerCase()),x&&j&&(x=hn(x,j)||x);const N=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let _=p===f||!o&&p.startsWith(f)&&p.charAt(N)==="/",g=x!=null&&(x===f||!o&&x.startsWith(f)&&x.charAt(f.length)==="/"),C={isActive:_,isPending:g,isTransitioning:h},O=_?r:void 0,R;typeof i=="function"?R=i(C):R=[i,_?"active":null,g?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let ve=typeof s=="function"?s(C):s;return k.createElement(mn,wl({},m,{"aria-current":O,className:R,ref:n,style:ve,to:a,viewTransition:c}),typeof d=="function"?d(C):d)});var go;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(go||(go={}));var Mu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Mu||(Mu={}));function Gh(e){let t=k.useContext($l);return t||Q(!1),t}function Zh(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:s}=t===void 0?{}:t,a=sf(),c=wn(),d=Ul(e,{relative:o});return k.useCallback(m=>{if(Uh(m,n)){m.preventDefault();let v=r!==void 0?r:xl(c)===xl(d);a(e,{replace:v,state:l,preventScrollReset:i,relative:o,viewTransition:s})}},[c,a,d,r,l,n,e,i,o,s])}function Jh(e){let t=k.useRef(vo(e)),n=k.useRef(!1),r=wn(),l=k.useMemo(()=>Ah(r.search,n.current?null:t.current),[r.search]),i=sf(),o=k.useCallback((s,a)=>{const c=vo(typeof s=="function"?s(l):s);n.current=!0,i("?"+c,a)},[i,l]);return[l,o]}function qh(e,t){t===void 0&&(t={});let n=k.useContext(Hh);n==null&&Q(!1);let{basename:r}=Gh(go.useViewTransitionState),l=Ul(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ho(l.pathname,o)!=null||ho(l.pathname,i)!=null}const yo="/auto/".replace(/\/$/,"");async function mr(e){const t=await fetch(yo+e);if(!t.ok)throw new Error(`API ${t.status}`);return t.json()}function bh(e){const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!=null&&r!==""&&t.set(n,String(r));return mr(`/api/vehicles?${t.toString()}`)}function em(e){return mr(`/api/vehicles/${encodeURIComponent(e)}`)}function df(e,t){const n=new URLSearchParams;e&&n.set("make",e),t&&n.set("kind",t);const r=n.toString();return mr(`/api/facets${r?`?${r}`:""}`)}function pf(){return mr("/api/sources")}function hf(){return mr("/api/stats")}const tm={};function nm(e){for(const t of e)tm[t.id]=t.name}const ze=e=>e==null?"Prix sur demande":`${Math.round(e).toLocaleString("fr-CA")} $`,mf=e=>e==null?"— km":`${Math.round(e).toLocaleString("fr-CA")} km`,Xr=e=>e==null?"—":new Date(e*1e3).toLocaleDateString("fr-CA",{day:"numeric",month:"short",year:"numeric"});function vf({v:e}){var n;const t=[e.mileage_km!=null?mf(e.mileage_km):null,e.transmission||null,e.fuel||null,e.body_type||null,e.drivetrain||null].filter(Boolean);return u.jsxs(mn,{to:`/vehicule/${encodeURIComponent(e.uid)}`,className:"vcard",children:[u.jsxs("div",{className:"photo",children:[e.images.length>0?u.jsx("img",{src:e.images[0],alt:e.title,loading:"lazy"}):u.jsx("div",{className:"nopic","aria-hidden":"true",children:"🚗"}),e.year!=null&&u.jsx("span",{className:"year-chip",children:e.year})]}),u.jsxs("div",{className:"body",children:[u.jsx("h3",{children:e.title}),u.jsxs("div",{className:"price",children:[ze(e.price),(n=e.details)!=null&&n.price_from?u.jsx("small",{children:" à partir de"}):null]}),u.jsx("div",{className:"specs",children:t.slice(0,4).map(r=>u.jsx("span",{className:"spec-chip",children:r},r))}),u.jsxs("div",{className:"foot",children:[u.jsx("span",{children:e.dealer_name||e.source}),u.jsx("span",{children:e.city})]})]})]})}const vi=24,rm=[{v:"price_asc",label:"Prix croissant"},{v:"price_desc",label:"Prix décroissant"},{v:"km_asc",label:"Kilométrage croissant"},{v:"year_desc",label:"Année récente"},{v:"recent",label:"Arrivages récents"}],lm=[5e3,1e4,15e3,2e4,25e3,3e4,4e4,5e4,75e3,1e5],im=[2e4,4e4,6e4,8e4,1e5,13e4,16e4,2e5],Ou={auto:{label:"voitures usagées",hero:"voitures usagées",sub:"Auto-Ka visite les sites des concessionnaires et marchands d'occasion de toutes les régions, normalise chaque annonce et détecte les nouveautés, les ventes et les baisses de prix — automatiquement."},moto:{label:"motos usagées",hero:"motos usagées",sub:"Les inventaires des concessionnaires moto du Québec — Harley-Davidson, Honda, Yamaha, Kawasaki, BMW et plus — agrégés à la source et tenus à jour automatiquement."},scooter:{label:"scooters usagés",hero:"scooters usagés",sub:"Les scooters usagés des concessionnaires du Québec — Vespa, Honda, Yamaha, Kymco et plus — agrégés à la source et tenus à jour automatiquement."}};function gi({kind:e="auto"}){var x,N,_;const[t,n]=Jh(),[r,l]=k.useState(null),[i,o]=k.useState([]),[s,a]=k.useState(0),[c,d]=k.useState(!0),[m,v]=k.useState(null),S=k.useMemo(()=>{const g=O=>t.get(O)||void 0,C=O=>t.get(O)?Number(t.get(O)):void 0;return{kind:e,make:g("make"),model:g("model"),body_type:g("body"),fuel:g("fuel"),transmission:g("trans"),region:g("region"),source:g("source"),year_min:C("ymin"),year_max:C("ymax"),price_max:C("pmax"),km_max:C("kmax"),q:g("q"),sort:g("sort")||"price_asc",limit:vi,offset:(Math.max(1,C("page")||1)-1)*vi}},[t,e]),y=Math.max(1,Number(t.get("page")||1)),w=Math.max(1,Math.ceil(s/vi));k.useEffect(()=>{df(t.get("make")||void 0,e).then(l).catch(()=>{})},[t.get("make"),e]),k.useEffect(()=>{hf().then(g=>v({total:g.total,sources:g.sources,regions:g.regions})).catch(()=>{})},[]),k.useEffect(()=>{d(!0),bh(S).then(g=>{o(g.vehicles),a(g.total)}).catch(()=>{o([]),a(0)}).finally(()=>d(!1))},[S]);const j=(g,C)=>{const O=new URLSearchParams(t);C?O.set(g,C):O.delete(g),g!=="page"&&O.delete("page"),g==="make"&&O.delete("model"),n(O,{replace:!1})},h=()=>n(new URLSearchParams,{replace:!1}),f=[],p=(x=r==null?void 0:r.years)==null?void 0:x[0];if(p!=null&&p.y_min&&(p!=null&&p.y_max))for(let g=p.y_max;g>=p.y_min;g--)f.push(g);return u.jsxs("div",{className:"container",children:[u.jsxs("section",{className:"hero",children:[u.jsx("span",{className:"kicker",children:"Agrégateur indépendant — direct des concessionnaires"}),u.jsxs("h1",{children:[e==="scooter"?"Tous les ":"Toutes les ",u.jsx("em",{children:((N=Ou[e])==null?void 0:N.hero)??"véhicules"})," à vendre au Québec. Un seul endroit."]}),u.jsx("p",{className:"sub",children:(_=Ou[e])==null?void 0:_.sub}),e==="auto"&&m&&u.jsxs("div",{className:"hero-stats",children:[u.jsxs("div",{className:"hstat",children:[u.jsx("b",{children:m.total.toLocaleString("fr-CA")})," véhicules en vente"]}),u.jsxs("div",{className:"hstat",children:[u.jsx("b",{children:m.sources})," concessionnaires"]}),u.jsxs("div",{className:"hstat",children:[u.jsx("b",{children:m.regions})," régions couvertes"]})]})]}),u.jsxs("section",{className:"filters","aria-label":"Filtres de recherche",children:[u.jsxs("div",{className:"f-field full",children:[u.jsx("label",{htmlFor:"f-q",children:"Recherche"}),u.jsx("input",{id:"f-q",type:"search",placeholder:"Marque, modèle, concessionnaire, ville…",defaultValue:t.get("q")||"",onKeyDown:g=>{g.key==="Enter"&&j("q",g.target.value)}})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-make",children:"Marque"}),u.jsxs("select",{id:"f-make",value:t.get("make")||"",onChange:g=>j("make",g.target.value),children:[u.jsx("option",{value:"",children:"Toutes"}),r==null?void 0:r.makes.map(g=>u.jsxs("option",{value:g.make,children:[g.make," (",g.n,")"]},g.make))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-model",children:"Modèle"}),u.jsxs("select",{id:"f-model",value:t.get("model")||"",onChange:g=>j("model",g.target.value),children:[u.jsx("option",{value:"",children:"Tous"}),r==null?void 0:r.models.map(g=>u.jsxs("option",{value:g.model,children:[g.model," (",g.n,")"]},g.model))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-region",children:"Région"}),u.jsxs("select",{id:"f-region",value:t.get("region")||"",onChange:g=>j("region",g.target.value),children:[u.jsx("option",{value:"",children:"Toutes"}),r==null?void 0:r.regions.map(g=>u.jsxs("option",{value:g.region,children:[g.region," (",g.n,")"]},g.region))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-body",children:"Carrosserie"}),u.jsxs("select",{id:"f-body",value:t.get("body")||"",onChange:g=>j("body",g.target.value),children:[u.jsx("option",{value:"",children:"Toutes"}),r==null?void 0:r.body_types.map(g=>u.jsx("option",{value:g,children:g},g))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-fuel",children:"Carburant"}),u.jsxs("select",{id:"f-fuel",value:t.get("fuel")||"",onChange:g=>j("fuel",g.target.value),children:[u.jsx("option",{value:"",children:"Tous"}),r==null?void 0:r.fuels.map(g=>u.jsx("option",{value:g,children:g},g))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-trans",children:"Transmission"}),u.jsxs("select",{id:"f-trans",value:t.get("trans")||"",onChange:g=>j("trans",g.target.value),children:[u.jsx("option",{value:"",children:"Toutes"}),u.jsx("option",{value:"Automatique",children:"Automatique"}),u.jsx("option",{value:"Manuelle",children:"Manuelle"})]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-ymin",children:"Année min"}),u.jsxs("select",{id:"f-ymin",value:t.get("ymin")||"",onChange:g=>j("ymin",g.target.value),children:[u.jsx("option",{value:"",children:"—"}),f.map(g=>u.jsx("option",{value:g,children:g},g))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-pmax",children:"Prix max"}),u.jsxs("select",{id:"f-pmax",value:t.get("pmax")||"",onChange:g=>j("pmax",g.target.value),children:[u.jsx("option",{value:"",children:"—"}),lm.map(g=>u.jsxs("option",{value:g,children:[g.toLocaleString("fr-CA")," $"]},g))]})]}),u.jsxs("div",{className:"f-field",children:[u.jsx("label",{htmlFor:"f-kmax",children:"KM max"}),u.jsxs("select",{id:"f-kmax",value:t.get("kmax")||"",onChange:g=>j("kmax",g.target.value),children:[u.jsx("option",{value:"",children:"—"}),im.map(g=>u.jsxs("option",{value:g,children:[g.toLocaleString("fr-CA")," km"]},g))]})]}),u.jsx("div",{className:"f-actions",children:u.jsx("button",{className:"btn ghost",onClick:h,children:"Réinitialiser"})})]}),u.jsxs("div",{className:"result-bar",children:[u.jsxs("h2",{children:[u.jsx("span",{className:"count",children:s.toLocaleString("fr-CA")})," ","véhicule",s!==1?"s":""," trouvé",s!==1?"s":""]}),u.jsxs("div",{className:"sort-box",children:[u.jsx("label",{htmlFor:"f-sort",children:"Trier"}),u.jsx("select",{id:"f-sort",value:t.get("sort")||"price_asc",onChange:g=>j("sort",g.target.value),children:rm.map(g=>u.jsx("option",{value:g.v,children:g.label},g.v))})]})]}),c?u.jsx("div",{className:"vgrid",children:Array.from({length:8}).map((g,C)=>u.jsx("div",{className:"skeleton",style:{height:360}},C))}):i.length===0?u.jsxs("div",{className:"notice",children:[u.jsx("div",{className:"big",children:"🔍"}),u.jsx("h2",{children:"Aucun véhicule ne correspond"}),u.jsx("p",{children:"Essayez d'élargir vos filtres — l'inventaire évolue chaque jour."})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"vgrid",children:i.map(g=>u.jsx(vf,{v:g},g.uid))}),w>1&&u.jsxs("div",{className:"pager",children:[u.jsx("button",{className:"btn ghost",disabled:y<=1,onClick:()=>{j("page",String(y-1)),window.scrollTo(0,0)},children:"← Précédent"}),u.jsxs("span",{className:"mono",children:["page ",y," / ",w]}),u.jsx("button",{className:"btn ghost",disabled:y>=w,onClick:()=>{j("page",String(y+1)),window.scrollTo(0,0)},children:"Suivant →"})]})]})]})}function om(){var c;const{uid:e}=Sh(),[t,n]=k.useState(null),[r,l]=k.useState(!1),[i,o]=k.useState(0);if(k.useEffect(()=>{n(null),l(!1),o(0),e&&em(e).then(n).catch(()=>l(!0)),window.scrollTo(0,0)},[e]),r)return u.jsxs("div",{className:"notice container",children:[u.jsx("div",{className:"big",children:"🚗"}),u.jsx("h2",{children:"Véhicule introuvable"}),u.jsx("p",{children:"Il a peut-être été vendu — l'inventaire évolue chaque jour."}),u.jsx("p",{children:u.jsx(mn,{to:"/",className:"btn ghost",children:"← Retour à la recherche"})})]});if(!t)return u.jsxs("div",{className:"container vdetail",children:[u.jsx("div",{className:"skeleton",style:{height:60,marginBottom:20}}),u.jsxs("div",{className:"vd-cols",children:[u.jsx("div",{className:"skeleton",style:{height:460}}),u.jsx("div",{className:"skeleton",style:{height:460}})]})]});const s=(c=t.price_history.find(d=>d.price!=null&&t.price!=null&&d.price!==t.price))==null?void 0:c.price,a=[["Année",t.year?String(t.year):"—"],["Kilométrage",mf(t.mileage_km)],["Transmission",t.transmission||"—"],["Carburant",t.fuel||"—"],["Motricité",t.drivetrain||"—"],["Carrosserie",t.body_type||"—"],["Moteur",t.engine||"—"],["Couleur ext.",t.exterior_color||"—"],["Couleur int.",t.interior_color||"—"],["Portes",t.doors?String(t.doors):"—"],["Places",t.seats?String(t.seats):"—"],["NIV (VIN)",t.vin||"—"],["No de stock",t.stock_number||"—"]].filter(([,d])=>d!=="—");return u.jsxs("div",{className:"container vdetail",children:[u.jsx("p",{style:{marginTop:0},children:u.jsx(mn,{to:"/",className:"mono",style:{fontSize:12},children:"← Retour à la recherche"})}),u.jsxs("div",{className:"vd-head",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"kicker",children:[t.dealer_name||t.source," — ",t.city,t.region?` · ${t.region}`:""]}),u.jsx("h1",{children:t.title})]}),u.jsxs("div",{className:"vd-price",children:[u.jsx("div",{className:"p",children:ze(t.price)}),s!=null&&t.price!=null&&s>t.price&&u.jsx("div",{className:"was",children:ze(s)})]})]}),u.jsxs("div",{className:"vd-cols",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"gallery",children:[u.jsx("div",{className:"main",children:t.images.length>0?u.jsx("a",{href:t.images[i],target:"_blank",rel:"noreferrer",children:u.jsx("img",{src:t.images[i],alt:t.title})}):u.jsx("div",{className:"nopic",style:{display:"grid",placeItems:"center",height:"100%",fontSize:60},children:"🚗"})}),t.images.length>1&&u.jsx("div",{className:"thumbs",children:t.images.map((d,m)=>u.jsx("img",{src:d,alt:`photo ${m+1}`,loading:"lazy",className:m===i?"sel":"",onClick:()=>o(m)},d))})]}),t.description&&u.jsxs("div",{className:"panel",style:{marginTop:18},children:[u.jsx("h3",{children:"📝 Description du concessionnaire"}),u.jsx("div",{className:"desc",children:t.description})]})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🔧 Caractéristiques"}),u.jsx("table",{className:"spec-table",children:u.jsx("tbody",{children:a.map(([d,m])=>u.jsxs("tr",{children:[u.jsx("td",{children:d}),u.jsx("td",{children:m})]},d))})}),u.jsxs("a",{className:"cta-source",href:t.url,target:"_blank",rel:"noreferrer",children:["Voir chez ",t.dealer_name||"le concessionnaire"," →"]}),t.carfax_url&&u.jsx("a",{className:"cta-source",style:{background:"var(--surface)",color:"var(--ink)",marginTop:10},href:t.carfax_url,target:"_blank",rel:"noreferrer",children:"📋 Rapport Carfax"}),u.jsx("div",{className:"cta-note",children:"annonce originale — prix et disponibilité confirmés à la source"})]}),t.features.length>0&&u.jsxs("div",{className:"panel",children:[u.jsxs("h3",{children:["✨ Équipements (",t.features.length,")"]}),u.jsx("div",{className:"feat-list",children:t.features.map(d=>u.jsx("span",{className:"spec-chip",children:d},d))})]}),t.price_history.length>1&&u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"📉 Historique de prix"}),u.jsx("div",{className:"price-history",children:t.price_history.map((d,m)=>{const v=t.price_history[m+1],S=(v==null?void 0:v.price)!=null&&d.price!=null?d.pricev.price?"up":"":"";return u.jsxs("div",{className:"row",children:[u.jsx("span",{children:Xr(d.ts)}),u.jsx("span",{className:S,children:ze(d.price)})]},d.ts)})})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"ℹ️ Suivi Auto-Ka"}),u.jsx("table",{className:"spec-table",children:u.jsxs("tbody",{children:[u.jsxs("tr",{children:[u.jsx("td",{children:"Repéré le"}),u.jsx("td",{children:Xr(t.first_seen)})]}),u.jsxs("tr",{children:[u.jsx("td",{children:"Vérifié le"}),u.jsx("td",{children:Xr(t.updated_at)})]}),u.jsxs("tr",{children:[u.jsx("td",{children:"Statut"}),u.jsx("td",{children:t.active?"En vente":"Retiré / vendu"})]})]})})]})]})]}),t.similar.length>0&&u.jsxs("section",{style:{marginTop:40},children:[u.jsx("span",{className:"kicker",children:"Comparer"}),u.jsxs("h2",{style:{margin:"8px 0 18px"},children:[t.make," ",t.model," similaires au Québec"]}),u.jsx("div",{className:"vgrid",children:t.similar.map(d=>u.jsx(vf,{v:d},d.uid))})]})]})}function sm(){const[e,t]=k.useState([]);k.useEffect(()=>{pf().then(l=>t(l.sources)).catch(()=>{})},[]);const n=e.filter(l=>l.active_listings>0),r=e.filter(l=>l.active_listings===0);return u.jsxs("div",{className:"container page",children:[u.jsx("span",{className:"kicker",children:"Registre"}),u.jsx("h1",{children:"Les concessionnaires connectés"}),u.jsx("p",{className:"lead",children:"Un connecteur dédié par commerce — Auto-Ka lit chaque site à la source (aucune plateforme d'annonces), normalise l'inventaire et le tient à jour."}),u.jsx("div",{className:"src-grid",children:n.sort((l,i)=>i.active_listings-l.active_listings).map(l=>u.jsxs("div",{className:"src-card",children:[u.jsx("h3",{children:l.name}),u.jsxs("div",{className:"meta",children:[l.city,l.region?` · ${l.region}`:"",l.platform?` · ${l.platform}`:""]}),u.jsxs("div",{className:"n",children:[l.active_listings.toLocaleString("fr-CA")," véhicules"]}),u.jsxs("div",{className:"meta",children:["dernière sync : ",Xr(l.last_sync)]}),u.jsxs("div",{style:{display:"flex",gap:10,marginTop:6},children:[u.jsx(mn,{className:"mono",style:{fontSize:12,textDecoration:"underline"},to:`/?source=${l.id}`,children:"voir l'inventaire"}),u.jsx("a",{className:"mono",style:{fontSize:12,textDecoration:"underline"},href:l.url,target:"_blank",rel:"noreferrer",children:"site officiel ↗"})]})]},l.id))}),r.length>0&&u.jsxs(u.Fragment,{children:[u.jsx("h2",{style:{margin:"36px 0 14px"},children:"En attente de première synchronisation"}),u.jsx("div",{className:"src-grid",children:r.map(l=>u.jsxs("div",{className:"src-card",style:{opacity:.65},children:[u.jsx("h3",{children:l.name}),u.jsxs("div",{className:"meta",children:[l.city,l.region?` · ${l.region}`:""]}),u.jsx("div",{className:"meta",children:l.status||"connecteur prêt"})]},l.id))})]})]})}const Iu=["#d94f1e","#1f6fb5","#1c7a4d","#b58500","#7d4fc9","#a05a2c"],$t=e=>Math.round(e).toLocaleString("fr-CA");function hs({rows:e,valueLabel:t}){return u.jsxs("details",{className:"chart-data",children:[u.jsx("summary",{children:"Voir les données"}),u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Catégorie"}),u.jsx("th",{children:t})]})}),u.jsx("tbody",{children:e.map(n=>u.jsxs("tr",{children:[u.jsx("td",{children:n.label}),u.jsxs("td",{children:[$t(n.n),n.extra?` · ${n.extra}`:""]})]},n.label))})]})]})}function ms({x:e,y:t,children:n}){return u.jsx("div",{className:"chart-tip",style:{left:e,top:t},children:n})}function yi({data:e,color:t="#d94f1e",valueLabel:n="véhicules",height:r=190}){const[l,i]=k.useState(null);if(!e.length)return null;const o=Math.max(...e.map(v=>v.n),1),s=720,a=6,c=28,d=(s-a*(e.length-1))/e.length,m=r-c-18;return u.jsxs("div",{className:"chart-wrap",onMouseLeave:()=>i(null),children:[u.jsx("svg",{viewBox:`0 0 ${s} ${r}`,className:"chart vbars",role:"img","aria-label":`Histogramme : ${n} par classe`,children:e.map((v,S)=>{const y=Math.max(3,v.n/o*m),w=S*(d+a),j=18+(m-y),h=v.n===o||S===0||S===e.length-1;return u.jsxs("g",{children:[u.jsx("rect",{x:w,y:j,width:d,height:y,rx:4,fill:t,className:"mark",onMouseEnter:f=>{const p=f.currentTarget.closest(".chart-wrap").getBoundingClientRect();i({x:f.clientX-p.left,y:f.clientY-p.top-10,d:v})}}),h&&u.jsx("text",{x:w+d/2,y:j-5,textAnchor:"middle",className:"c-val",children:$t(v.n)}),u.jsx("text",{x:w+d/2,y:r-4,textAnchor:"middle",className:"c-lbl",children:v.label})]},v.label)})}),l&&u.jsxs(ms,{x:l.x,y:l.y,children:[u.jsx("b",{children:l.d.label})," — ",$t(l.d.n)," ",n,l.d.extra?` · ${l.d.extra}`:""]}),u.jsx(hs,{rows:e,valueLabel:n})]})}function Ir({data:e,color:t="#d94f1e",valueLabel:n="véhicules"}){const[r,l]=k.useState(null);if(!e.length)return null;const i=Math.max(...e.map(d=>d.n),1),o=720,s=26,a=150,c=e.length*s;return u.jsxs("div",{className:"chart-wrap",onMouseLeave:()=>l(null),children:[u.jsx("svg",{viewBox:`0 0 ${o} ${c}`,className:"chart hbars",role:"img","aria-label":`Barres : ${n} par catégorie`,children:e.map((d,m)=>{const v=Math.max(4,d.n/i*(o-a-120)),S=m*s+4;return u.jsxs("g",{children:[u.jsx("text",{x:a-8,y:S+13,textAnchor:"end",className:"c-cat",children:d.label.length>22?d.label.slice(0,21)+"…":d.label}),u.jsx("rect",{x:a,y:S,width:v,height:s-10,rx:4,fill:t,className:"mark",onMouseEnter:y=>{const w=y.currentTarget.closest(".chart-wrap").getBoundingClientRect();l({x:y.clientX-w.left,y:y.clientY-w.top-10,d})}}),u.jsxs("text",{x:a+v+7,y:S+12,className:"c-val",children:[$t(d.n),d.extra?` · ${d.extra}`:""]})]},d.label)})}),r&&u.jsxs(ms,{x:r.x,y:r.y,children:[u.jsx("b",{children:r.d.label})," — ",$t(r.d.n)," ",n,r.d.extra?` · ${r.d.extra}`:""]}),u.jsx(hs,{rows:e,valueLabel:n})]})}function Fu({data:e,valueLabel:t="véhicules"}){const[n,r]=k.useState(null);if(!e.length)return null;const l=e.slice(0,5),i=e.slice(5).reduce((y,w)=>y+w.n,0),o=i>0?[...l,{label:"Autres",n:i}]:l,s=o.reduce((y,w)=>y+w.n,0)||1,a=80,c=46,d=110,m=100;let v=-Math.PI/2;const S=o.map((y,w)=>{const j=y.n/s*Math.PI*2,h=v,f=v+j;v=f;const p=j>Math.PI?1:0,x=(N,_)=>`${d+_*Math.cos(N)},${m+_*Math.sin(N)}`;return{d:y,pct:y.n/s*100,color:Iu[w%Iu.length],path:`M ${x(h,a)} A ${a} ${a} 0 ${p} 1 ${x(f,a)} L ${x(f,c)} A ${c} ${c} 0 ${p} 0 ${x(h,c)} Z`}});return u.jsxs("div",{className:"chart-wrap donut-wrap",onMouseLeave:()=>r(null),children:[u.jsxs("svg",{viewBox:"0 0 220 200",className:"chart donut",role:"img","aria-label":`Répartition : ${t} par catégorie`,children:[S.map(y=>u.jsx("path",{d:y.path,fill:y.color,stroke:"var(--surface)",strokeWidth:2,className:"mark",onMouseEnter:w=>{const j=w.currentTarget.closest(".chart-wrap").getBoundingClientRect();r({x:w.clientX-j.left,y:w.clientY-j.top-10,d:y.d,pct:y.pct})}},y.d.label)),u.jsx("text",{x:d,y:m-2,textAnchor:"middle",className:"donut-total",children:$t(s)}),u.jsx("text",{x:d,y:m+14,textAnchor:"middle",className:"c-lbl",children:t})]}),u.jsx("div",{className:"donut-legend",children:S.map(y=>u.jsxs("div",{className:"dl-row",children:[u.jsx("span",{className:"dl-swatch",style:{background:y.color}}),u.jsx("span",{className:"dl-name",children:y.d.label}),u.jsxs("span",{className:"dl-val",children:[y.pct.toFixed(1)," %"]})]},y.d.label))}),n&&u.jsxs(ms,{x:n.x,y:n.y,children:[u.jsx("b",{children:n.d.label})," — ",$t(n.d.n)," ",t," (",n.pct.toFixed(1)," %)"]}),u.jsx(hs,{rows:o,valueLabel:t})]})}const $u=e=>e==null?"—":`${Math.round(e/1e3)}k km`;function um(){const[e,t]=k.useState(null);if(k.useEffect(()=>{fetch(`${yo}/api/stats/detailed`).then(r=>r.json()).then(t).catch(()=>{})},[]),!e)return u.jsxs("div",{className:"container page",children:[u.jsx("div",{className:"skeleton",style:{height:120,marginBottom:20}}),u.jsx("div",{className:"skeleton",style:{height:340}})]});const n=r=>r.map(l=>({label:l.label,n:l.n,extra:l.avg_price?`moy. ${ze(l.avg_price)}`:void 0}));return u.jsxs("div",{className:"container page",children:[u.jsxs("div",{className:"stats-head",children:[u.jsxs("div",{children:[u.jsx("span",{className:"kicker",children:"Marché"}),u.jsx("h1",{children:"Le marché de l'occasion, en direct"}),u.jsxs("p",{className:"lead",style:{marginBottom:0},children:["Calculé en temps réel sur l'inventaire actif de ",e.sources," concessionnaires dans ",e.regions," régions du Québec."]})]}),u.jsx("a",{className:"btn pdf-btn",href:`${yo}/api/stats/rapport.pdf`,children:"⬇ Télécharger le rapport PDF"})]}),u.jsxs("div",{className:"stat-grid",style:{marginTop:26},children:[u.jsxs("div",{className:"stat-tile hero-tile",children:[u.jsx("b",{children:e.total.toLocaleString("fr-CA")}),u.jsx("span",{children:"véhicules en vente"})]}),u.jsxs("div",{className:"stat-tile",children:[u.jsx("b",{children:ze(e.avg_price)}),u.jsx("span",{children:"prix moyen"})]}),u.jsxs("div",{className:"stat-tile",children:[u.jsx("b",{children:ze(e.median_price)}),u.jsx("span",{children:"prix médian"})]}),u.jsxs("div",{className:"stat-tile",children:[u.jsx("b",{children:$u(e.avg_km)}),u.jsx("span",{children:"km moyen"})]}),u.jsxs("div",{className:"stat-tile",children:[u.jsx("b",{children:e.new_7d.toLocaleString("fr-CA")}),u.jsx("span",{children:"arrivages · 7 jours"})]}),u.jsxs("div",{className:"stat-tile",children:[u.jsxs("b",{children:[e.electrified_pct," %"]}),u.jsx("span",{children:"électrifiés (VÉ + hybrides)"})]})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"💰 Distribution des prix"}),u.jsx(yi,{data:e.price_hist,color:"#d94f1e"})]}),u.jsxs("div",{className:"vd-cols",children:[u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🛣 Kilométrage (milliers de km)"}),u.jsx(yi,{data:e.km_hist,color:"#1f6fb5",height:170})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"📅 Années-modèles"}),u.jsx(yi,{data:e.year_hist,color:"#b58500",height:170})]})]}),u.jsxs("div",{className:"vd-cols",children:[u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🏷 Top marques"}),u.jsx(Ir,{data:n(e.by_make),color:"#d94f1e"})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"📍 Par région"}),u.jsx(Ir,{data:n(e.by_region),color:"#1f6fb5"})]})]}),u.jsxs("div",{className:"vd-cols",children:[u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🚙 Carrosseries"}),u.jsx(Fu,{data:e.by_body})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"⛽ Carburants"}),u.jsx(Fu,{data:e.by_fuel})]})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🚗 Modèles les plus offerts"}),u.jsx(Ir,{data:e.top_models.map(r=>({label:r.label,n:r.n,extra:`moy. ${ze(r.avg_price)} · ${$u(r.avg_km)}`})),color:"#1c7a4d"})]}),e.price_drops.length>0&&u.jsxs("section",{style:{margin:"30px 0"},children:[u.jsx("h2",{style:{marginBottom:14},children:"📉 Baisses de prix récentes"}),u.jsx("div",{className:"src-grid",children:e.price_drops.map(r=>u.jsxs(mn,{to:`/vehicule/${encodeURIComponent(r.uid)}`,className:"src-card",children:[u.jsx("h3",{children:r.title}),u.jsxs("div",{className:"meta",children:[r.dealer_name," · ",r.city]}),u.jsxs("div",{className:"n",children:[ze(r.price)," ",u.jsx("span",{style:{fontSize:13,color:"var(--ink-3)",textDecoration:"line-through"},children:ze(r.prev_price)})]}),u.jsxs("div",{className:"meta",style:{color:"var(--good)",fontWeight:700},children:["−",ze(r.prev_price-r.price)]})]},r.uid))})]}),u.jsxs("div",{className:"panel",children:[u.jsx("h3",{children:"🏢 Plus grands inventaires"}),u.jsx(Ir,{data:n(e.top_dealers),color:"#7d4fc9"})]})]})}function am(){const[e,t]=k.useState([]);return k.useEffect(()=>{Promise.all([hf(),df(),pf()]).then(([n,r,l])=>{nm(l.sources);const i=[`${n.total.toLocaleString("fr-CA")} véhicules à vendre`,`${n.sources} concessionnaires connectés`];n.avg_price!=null&&i.push(`Prix moyen ${Math.round(n.avg_price).toLocaleString("fr-CA")} $`);for(const o of n.by_region.slice(0,8))i.push(`${o.region} · ${o.n}`);for(const o of r.makes.slice(0,8))i.push(`${o.make} · ${o.n}`);i.push("Directement des sites des concessionnaires"),t(i)}).catch(()=>t(["Auto-Ka — voitures usagées à vendre au Québec"]))},[]),e.length===0?null:u.jsx("div",{className:"ticker","aria-hidden":"true",children:u.jsx("div",{className:"ticker-track",children:[...e,...e].map((n,r)=>u.jsx("span",{children:n},r))})})}function cm(){return u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"header",children:u.jsxs("div",{className:"container header-inner",children:[u.jsxs(Bt,{to:"/",className:"brand","aria-label":"Auto-Ka — accueil",children:["Auto",u.jsx("span",{className:"ka",children:"Ka"}),u.jsx("span",{className:"brand-tag",children:"Voitures usagées · tout le Québec · toujours à jour"})]}),u.jsxs("nav",{className:"nav","aria-label":"Navigation principale",children:[u.jsx(Bt,{to:"/",end:!0,className:({isActive:e})=>e?"active":"",children:"Autos"}),u.jsx(Bt,{to:"/motos",className:({isActive:e})=>e?"active":"",children:"Motos"}),u.jsx(Bt,{to:"/scooters",className:({isActive:e})=>e?"active":"",children:"Scooters"}),u.jsx(Bt,{to:"/stats",className:({isActive:e})=>e?"active":"",children:"Stats"}),u.jsx(Bt,{to:"/sources",className:({isActive:e})=>e?"active":"",children:"Sources"})]})]})}),u.jsx(am,{})]})}function fm(){return u.jsx("footer",{className:"footer",children:u.jsxs("div",{className:"container",children:[u.jsxs("div",{className:"fbrand",children:["Auto",u.jsx("span",{className:"ka",children:"Ka"})]}),u.jsxs("div",{className:"frow",children:[u.jsx("b",{children:"Agrégateur indépendant"})," de voitures usagées à vendre dans la province de Québec. Les annonces proviennent directement des sites publics des concessionnaires — pas des plateformes d'annonces — et sont rafraîchies automatiquement. Chaque fiche renvoie vers l'annonce originale du commerçant."]}),u.jsxs("div",{className:"fmono",children:["© ",new Date().getFullYear()," Simon-Pierre Boucher — contact@spboucher.ai"]})]})})}function dm(){return u.jsxs(u.Fragment,{children:[u.jsx(cm,{}),u.jsx("main",{children:u.jsxs($h,{children:[u.jsx(be,{path:"/",element:u.jsx(gi,{kind:"auto"})}),u.jsx(be,{path:"/motos",element:u.jsx(gi,{kind:"moto"})}),u.jsx(be,{path:"/scooters",element:u.jsx(gi,{kind:"scooter"})}),u.jsx(be,{path:"/vehicule/:uid",element:u.jsx(om,{})}),u.jsx(be,{path:"/stats",element:u.jsx(um,{})}),u.jsx(be,{path:"/sources",element:u.jsx(sm,{})}),u.jsx(be,{path:"*",element:u.jsxs("div",{className:"notice container",children:[u.jsx("div",{className:"big",children:"🧭"}),u.jsx("h2",{children:"Page introuvable"}),u.jsx("p",{children:"Le lien demandé n'existe pas."})]})})]})}),u.jsx(fm,{})]})}xi.createRoot(document.getElementById("root")).render(u.jsx(Xu.StrictMode,{children:u.jsx(Kh,{basename:"/auto/".replace(/\/$/,""),children:u.jsx(dm,{})})}));