From 50fcbaab80fe27b82c7aac3752a6976ae6513d27 Mon Sep 17 00:00:00 2001 From: chrisnajman Date: Tue, 11 Jun 2024 16:32:48 +0000 Subject: [PATCH] deploy: 9042519a46ef9e52913439582ec47b4d39ccd443 --- .../{index-CN6xKWPr.js => index-Ptez0wUY.js} | 18 +++++++++--------- .../{index-DFjO5RoG.css => index-X0M4AVnA.css} | 2 +- index.html | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) rename assets/{index-CN6xKWPr.js => index-Ptez0wUY.js} (83%) rename assets/{index-DFjO5RoG.css => index-X0M4AVnA.css} (79%) diff --git a/assets/index-CN6xKWPr.js b/assets/index-Ptez0wUY.js similarity index 83% rename from assets/index-CN6xKWPr.js rename to assets/index-Ptez0wUY.js index 87379ac..bc552d2 100644 --- a/assets/index-CN6xKWPr.js +++ b/assets/index-Ptez0wUY.js @@ -14,7 +14,7 @@ function ty(e,t){for(var n=0;n>>1,ce=$[ee];if(0>>1;eei(Da,N))fni(Ii,Da)?($[ee]=Ii,$[fn]=N,ee=fn):($[ee]=Da,$[cn]=N,ee=cn);else if(fni(Ii,N))$[ee]=Ii,$[fn]=N,ee=fn;else break e}}return O}function i($,O){var N=$.sortIndex-O.sortIndex;return N!==0?N:$.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,y=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m($){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=$)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function w($){if(g=!1,m($),!y)if(n(l)!==null)y=!0,za(x);else{var O=n(u);O!==null&&La(w,O.startTime-$)}}function x($,O){y=!1,g&&(g=!1,v(R),R=-1),p=!0;var N=d;try{for(m(O),c=n(l);c!==null&&(!(c.expirationTime>O)||$&&!Fe());){var ee=c.callback;if(typeof ee=="function"){c.callback=null,d=c.priorityLevel;var ce=ee(c.expirationTime<=O);O=e.unstable_now(),typeof ce=="function"?c.callback=ce:c===n(l)&&r(l),m(O)}else r(l);c=n(l)}if(c!==null)var Oi=!0;else{var cn=n(u);cn!==null&&La(w,cn.startTime-O),Oi=!1}return Oi}finally{c=null,d=N,p=!1}}var P=!1,T=null,R=-1,G=5,I=-1;function Fe(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var O=3;break;default:O=d}var N=d;d=O;try{return $()}finally{d=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,O){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=d;d=$;try{return O()}finally{d=N}},e.unstable_scheduleCallback=function($,O,N){var ee=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0ee?($.sortIndex=N,t(u,$),n(l)===null&&$===n(u)&&(g?(v(R),R=-1):g=!0,La(w,N-ee))):($.sortIndex=ce,t(l,$),y||p||(y=!0,za(x))),$},e.unstable_shouldYield=Fe,e.unstable_wrapCallback=function($){var O=d;return function(){var N=d;d=O;try{return $.apply(this,arguments)}finally{d=N}}}})(ah);oh.exports=ah;var Cy=oh.exports;/** + */(function(e){function t($,O){var N=$.length;$.push(O);e:for(;0>>1,ce=$[ee];if(0>>1;eei(Da,N))fni(Ii,Da)?($[ee]=Ii,$[fn]=N,ee=fn):($[ee]=Da,$[cn]=N,ee=cn);else if(fni(Ii,N))$[ee]=Ii,$[fn]=N,ee=fn;else break e}}return O}function i($,O){var N=$.sortIndex-O.sortIndex;return N!==0?N:$.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,y=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m($){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=$)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function S($){if(g=!1,m($),!y)if(n(l)!==null)y=!0,za(x);else{var O=n(u);O!==null&&La(S,O.startTime-$)}}function x($,O){y=!1,g&&(g=!1,v(R),R=-1),p=!0;var N=d;try{for(m(O),c=n(l);c!==null&&(!(c.expirationTime>O)||$&&!Fe());){var ee=c.callback;if(typeof ee=="function"){c.callback=null,d=c.priorityLevel;var ce=ee(c.expirationTime<=O);O=e.unstable_now(),typeof ce=="function"?c.callback=ce:c===n(l)&&r(l),m(O)}else r(l);c=n(l)}if(c!==null)var Oi=!0;else{var cn=n(u);cn!==null&&La(S,cn.startTime-O),Oi=!1}return Oi}finally{c=null,d=N,p=!1}}var P=!1,T=null,R=-1,G=5,I=-1;function Fe(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var O=3;break;default:O=d}var N=d;d=O;try{return $()}finally{d=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,O){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=d;d=$;try{return O()}finally{d=N}},e.unstable_scheduleCallback=function($,O,N){var ee=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0ee?($.sortIndex=N,t(u,$),n(l)===null&&$===n(u)&&(g?(v(R),R=-1):g=!0,La(S,N-ee))):($.sortIndex=ce,t(l,$),y||p||(y=!0,za(x))),$},e.unstable_shouldYield=Fe,e.unstable_wrapCallback=function($){var O=d;return function(){var N=d;d=O;try{return $.apply(this,arguments)}finally{d=N}}}})(ah);oh.exports=ah;var Cy=oh.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ function ty(e,t){for(var n=0;ns||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ha=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Ay(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Ka(e.type,!1),e;case 11:return e=Ka(e.type.render,!1),e;case 1:return e=Ka(e.type,!0),e;default:return""}}function zs(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 Mn:return"Fragment";case bn:return"Portal";case bs:return"Profiler";case Zl:return"StrictMode";case Ms:return"Suspense";case js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uh:return(e.displayName||"Context")+".Consumer";case lh:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function Fy(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 zs(t);case 8:return t===Zl?"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 en(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oy(e){var t=fh(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=Oy(e))}function dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fo(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 Ls(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _c(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=en(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 hh(e,t){t=t.checked,t!=null&&Xl(e,"checked",t,!1)}function Ds(e,t){hh(e,t);var n=en(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")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,en(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wc(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 Us(e,t,n){(t!=="number"||fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var br=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},Iy=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){Iy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function yh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ny=J({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 Ks(e,t){if(t){if(Ny[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 qs(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 Ws=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vs=null,Yn=null,Qn=null;function xc(e){if(e=yi(e)){if(typeof Vs!="function")throw Error(E(280));var t=e.stateNode;t&&(t=ia(t),Vs(e.stateNode,e.type,t))}}function _h(e){Yn?Qn?Qn.push(e):Qn=[e]:Yn=e}function wh(){if(Yn){var e=Yn,t=Qn;if(Qn=Yn=null,xc(e),t)for(e=0;e>>=0,e===0?32:31-(qy(e)/Wy|0)|0}var zi=64,Li=4194304;function Mr(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 mo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Mr(s):(o&=a,o!==0&&(r=Mr(o)))}else a=n&~i,a!==0?r=Mr(a):o!==0&&(r=Mr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 vi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nt(t),e[t]=n}function Qy(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=Ur),Oc=" ",Ic=!1;function Dh(e,t){switch(e){case"keyup":return Cg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function $g(e,t){switch(e){case"compositionend":return Uh(t);case"keypress":return t.which!==32?null:(Ic=!0,Oc);case"textInput":return e=t.data,e===Oc&&Ic?null:e;default:return null}}function Pg(e,t){if(jn)return e==="compositionend"||!cu&&Dh(e,t)?(e=zh(),to=su=Dt=null,jn=!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=jc(n)}}function qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wh(){for(var e=window,t=fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fo(e.document)}return t}function fu(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 Mg(e){var t=Wh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qh(n.ownerDocument.documentElement,n)){if(r!==null&&fu(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=zc(n,o);var a=zc(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,zn=null,Zs=null,Hr=null,el=!1;function Lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;el||zn==null||zn!==fo(r)||(r=zn,"selectionStart"in r&&fu(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}),Hr&&ni(Hr,r)||(Hr=r,r=_o(Zs,"onSelect"),0Un||(e.current=al[Un],al[Un]=null,Un--)}function B(e,t){Un++,al[Un]=e.current,e.current=t}var tn={},we=on(tn),Te=on(!1),Sn=tn;function nr(e,t){var n=e.type.contextTypes;if(!n)return tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function So(){W(Te),W(we)}function Wc(e,t,n){if(we.current!==tn)throw Error(E(168));B(we,t),B(Te,n)}function tp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,Fy(e)||"Unknown",i));return J({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,Sn=we.current,B(we,e),B(Te,Te.current),!0}function Vc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=tp(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,W(Te),W(we),B(we,e)):W(Te),B(Te,n)}var gt=null,oa=!1,is=!1;function np(e){gt===null?gt=[e]:gt.push(e)}function Gg(e){oa=!0,np(e)}function an(){if(!is&>!==null){is=!0;var e=0,t=z;try{var n=gt;for(z=1;e>=a,i-=a,_t=1<<32-nt(t)+i|n<R?(G=T,T=null):G=T.sibling;var I=d(v,T,m[R],w);if(I===null){T===null&&(T=G);break}e&&T&&I.alternate===null&&t(v,T),h=o(I,h,R),P===null?x=I:P.sibling=I,P=I,T=G}if(R===m.length)return n(v,T),V&&hn(v,R),x;if(T===null){for(;RR?(G=T,T=null):G=T.sibling;var Fe=d(v,T,I.value,w);if(Fe===null){T===null&&(T=G);break}e&&T&&Fe.alternate===null&&t(v,T),h=o(Fe,h,R),P===null?x=Fe:P.sibling=Fe,P=Fe,T=G}if(I.done)return n(v,T),V&&hn(v,R),x;if(T===null){for(;!I.done;R++,I=m.next())I=c(v,I.value,w),I!==null&&(h=o(I,h,R),P===null?x=I:P.sibling=I,P=I);return V&&hn(v,R),x}for(T=r(v,T);!I.done;R++,I=m.next())I=p(T,v,R,I.value,w),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),h=o(I,h,R),P===null?x=I:P.sibling=I,P=I);return e&&T.forEach(function(xr){return t(v,xr)}),V&&hn(v,R),x}function _(v,h,m,w){if(typeof m=="object"&&m!==null&&m.type===Mn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case bi:e:{for(var x=m.key,P=h;P!==null;){if(P.key===x){if(x=m.type,x===Mn){if(P.tag===7){n(v,P.sibling),h=i(P,m.props.children),h.return=v,v=h;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&Qc(x)===P.type){n(v,P.sibling),h=i(P,m.props),h.ref=Ar(v,P,m),h.return=v,v=h;break e}n(v,P);break}else t(v,P);P=P.sibling}m.type===Mn?(h=wn(m.props.children,v.mode,w,m.key),h.return=v,v=h):(w=uo(m.type,m.key,m.props,null,v.mode,w),w.ref=Ar(v,h,m),w.return=v,v=w)}return a(v);case bn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(v,h.sibling),h=i(h,m.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=ds(m,v.mode,w),h.return=v,v=h}return a(v);case Nt:return P=m._init,_(v,h,P(m._payload),w)}if(br(m))return y(v,h,m,w);if(kr(m))return g(v,h,m,w);Wi(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(v,h.sibling),h=i(h,m),h.return=v,v=h):(n(v,h),h=fs(m,v.mode,w),h.return=v,v=h),a(v)):n(v,h)}return _}var ir=ap(!0),sp=ap(!1),ko=on(null),$o=null,Kn=null,vu=null;function mu(){vu=Kn=$o=null}function yu(e){var t=ko.current;W(ko),e._currentValue=t}function ul(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 Xn(e,t){$o=e,vu=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(vu!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if($o===null)throw Error(E(308));Kn=e,$o.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var yn=null;function gu(e){yn===null?yn=[e]:yn.push(e)}function lp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gu(t)):(n.next=i.next,i.next=n),t.interleaved=n,$t(e,r)}function $t(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 bt=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function up(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 Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,$t(e,n)}return i=r.interleaved,i===null?(t.next=t,gu(r)):(t.next=i.next,i.next=t),r.interleaved=t,$t(e,n)}function ro(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,iu(e,n)}}function Jc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Po(e,t,n,r){var i=e.updateQueue;bt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,p=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,g=s;switch(d=t,p=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){c=y.call(p,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,d=typeof y=="function"?y.call(p,c,d):y,d==null)break e;c=J({},c,d);break e;case 2:bt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Cn|=a,e.lanes=a,e.memoizedState=c}}function Xc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{z=n,as.transition=r}}function $p(){return Ge().memoizedState}function Xg(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Tp(t,n);else if(n=lp(e,t,n,r),n!==null){var i=Ee();rt(n,e,r,i),Rp(n,t,r)}}function Zg(e,t,n){var r=Jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Tp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,it(s,a)){var l=t.interleaved;l===null?(i.next=i,gu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=lp(e,t,i,r),n!==null&&(i=Ee(),rt(n,e,r,i),Rp(n,t,r))}}function Pp(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Tp(e,t){Kr=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}var Ao={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},e1={readContext:Ve,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:ef,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oo(4194308,4,Sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();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=Xg.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Zc,useDebugValue:Pu,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Zc(!1),t=e[0];return e=Jg.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=ut();if(V){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),de===null)throw Error(E(349));xn&30||hp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ef(vp.bind(null,r,o,e),[e]),r.flags|=2048,ci(9,pp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ut(),t=de.identifierPrefix;if(V){var n=wt,r=_t;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ha=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Ay(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Ka(e.type,!1),e;case 11:return e=Ka(e.type.render,!1),e;case 1:return e=Ka(e.type,!0),e;default:return""}}function zs(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 Mn:return"Fragment";case bn:return"Portal";case bs:return"Profiler";case Zl:return"StrictMode";case Ms:return"Suspense";case js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uh:return(e.displayName||"Context")+".Consumer";case lh:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function Fy(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 zs(t);case 8:return t===Zl?"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 en(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oy(e){var t=fh(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=Oy(e))}function dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fo(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 Ls(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _c(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=en(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 hh(e,t){t=t.checked,t!=null&&Xl(e,"checked",t,!1)}function Ds(e,t){hh(e,t);var n=en(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")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,en(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wc(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 Us(e,t,n){(t!=="number"||fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var br=Array.isArray;function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},Iy=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){Iy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function yh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ny=J({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 Ks(e,t){if(t){if(Ny[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 qs(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 Ws=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vs=null,Yn=null,Qn=null;function xc(e){if(e=yi(e)){if(typeof Vs!="function")throw Error(E(280));var t=e.stateNode;t&&(t=ia(t),Vs(e.stateNode,e.type,t))}}function _h(e){Yn?Qn?Qn.push(e):Qn=[e]:Yn=e}function wh(){if(Yn){var e=Yn,t=Qn;if(Qn=Yn=null,xc(e),t)for(e=0;e>>=0,e===0?32:31-(qy(e)/Wy|0)|0}var zi=64,Li=4194304;function Mr(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 mo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Mr(s):(o&=a,o!==0&&(r=Mr(o)))}else a=n&~i,a!==0?r=Mr(a):o!==0&&(r=Mr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 vi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nt(t),e[t]=n}function Qy(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=Ur),Oc=" ",Ic=!1;function Dh(e,t){switch(e){case"keyup":return Cg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function $g(e,t){switch(e){case"compositionend":return Uh(t);case"keypress":return t.which!==32?null:(Ic=!0,Oc);case"textInput":return e=t.data,e===Oc&&Ic?null:e;default:return null}}function Pg(e,t){if(jn)return e==="compositionend"||!cu&&Dh(e,t)?(e=zh(),to=su=Dt=null,jn=!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=jc(n)}}function qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wh(){for(var e=window,t=fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fo(e.document)}return t}function fu(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 Mg(e){var t=Wh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qh(n.ownerDocument.documentElement,n)){if(r!==null&&fu(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=zc(n,o);var a=zc(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,zn=null,Zs=null,Hr=null,el=!1;function Lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;el||zn==null||zn!==fo(r)||(r=zn,"selectionStart"in r&&fu(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}),Hr&&ni(Hr,r)||(Hr=r,r=_o(Zs,"onSelect"),0Un||(e.current=al[Un],al[Un]=null,Un--)}function B(e,t){Un++,al[Un]=e.current,e.current=t}var tn={},we=on(tn),Te=on(!1),Sn=tn;function nr(e,t){var n=e.type.contextTypes;if(!n)return tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function So(){W(Te),W(we)}function Wc(e,t,n){if(we.current!==tn)throw Error(E(168));B(we,t),B(Te,n)}function tp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,Fy(e)||"Unknown",i));return J({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,Sn=we.current,B(we,e),B(Te,Te.current),!0}function Vc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=tp(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,W(Te),W(we),B(we,e)):W(Te),B(Te,n)}var gt=null,oa=!1,is=!1;function np(e){gt===null?gt=[e]:gt.push(e)}function Gg(e){oa=!0,np(e)}function an(){if(!is&>!==null){is=!0;var e=0,t=z;try{var n=gt;for(z=1;e>=a,i-=a,_t=1<<32-nt(t)+i|n<R?(G=T,T=null):G=T.sibling;var I=d(v,T,m[R],S);if(I===null){T===null&&(T=G);break}e&&T&&I.alternate===null&&t(v,T),h=o(I,h,R),P===null?x=I:P.sibling=I,P=I,T=G}if(R===m.length)return n(v,T),V&&hn(v,R),x;if(T===null){for(;RR?(G=T,T=null):G=T.sibling;var Fe=d(v,T,I.value,S);if(Fe===null){T===null&&(T=G);break}e&&T&&Fe.alternate===null&&t(v,T),h=o(Fe,h,R),P===null?x=Fe:P.sibling=Fe,P=Fe,T=G}if(I.done)return n(v,T),V&&hn(v,R),x;if(T===null){for(;!I.done;R++,I=m.next())I=c(v,I.value,S),I!==null&&(h=o(I,h,R),P===null?x=I:P.sibling=I,P=I);return V&&hn(v,R),x}for(T=r(v,T);!I.done;R++,I=m.next())I=p(T,v,R,I.value,S),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),h=o(I,h,R),P===null?x=I:P.sibling=I,P=I);return e&&T.forEach(function(xr){return t(v,xr)}),V&&hn(v,R),x}function _(v,h,m,S){if(typeof m=="object"&&m!==null&&m.type===Mn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case bi:e:{for(var x=m.key,P=h;P!==null;){if(P.key===x){if(x=m.type,x===Mn){if(P.tag===7){n(v,P.sibling),h=i(P,m.props.children),h.return=v,v=h;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&Qc(x)===P.type){n(v,P.sibling),h=i(P,m.props),h.ref=Ar(v,P,m),h.return=v,v=h;break e}n(v,P);break}else t(v,P);P=P.sibling}m.type===Mn?(h=wn(m.props.children,v.mode,S,m.key),h.return=v,v=h):(S=uo(m.type,m.key,m.props,null,v.mode,S),S.ref=Ar(v,h,m),S.return=v,v=S)}return a(v);case bn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(v,h.sibling),h=i(h,m.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=ds(m,v.mode,S),h.return=v,v=h}return a(v);case Nt:return P=m._init,_(v,h,P(m._payload),S)}if(br(m))return y(v,h,m,S);if(kr(m))return g(v,h,m,S);Wi(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(v,h.sibling),h=i(h,m),h.return=v,v=h):(n(v,h),h=fs(m,v.mode,S),h.return=v,v=h),a(v)):n(v,h)}return _}var ir=ap(!0),sp=ap(!1),ko=on(null),$o=null,Kn=null,vu=null;function mu(){vu=Kn=$o=null}function yu(e){var t=ko.current;W(ko),e._currentValue=t}function ul(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 Xn(e,t){$o=e,vu=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(vu!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if($o===null)throw Error(E(308));Kn=e,$o.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var yn=null;function gu(e){yn===null?yn=[e]:yn.push(e)}function lp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gu(t)):(n.next=i.next,i.next=n),t.interleaved=n,$t(e,r)}function $t(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 bt=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function up(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 Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,$t(e,n)}return i=r.interleaved,i===null?(t.next=t,gu(r)):(t.next=i.next,i.next=t),r.interleaved=t,$t(e,n)}function ro(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,iu(e,n)}}function Jc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Po(e,t,n,r){var i=e.updateQueue;bt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,p=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,g=s;switch(d=t,p=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){c=y.call(p,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,d=typeof y=="function"?y.call(p,c,d):y,d==null)break e;c=J({},c,d);break e;case 2:bt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Cn|=a,e.lanes=a,e.memoizedState=c}}function Xc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{z=n,as.transition=r}}function $p(){return Ge().memoizedState}function Xg(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pp(e))Tp(t,n);else if(n=lp(e,t,n,r),n!==null){var i=Ee();rt(n,e,r,i),Rp(n,t,r)}}function Zg(e,t,n){var r=Jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))Tp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,it(s,a)){var l=t.interleaved;l===null?(i.next=i,gu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=lp(e,t,i,r),n!==null&&(i=Ee(),rt(n,e,r,i),Rp(n,t,r))}}function Pp(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Tp(e,t){Kr=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iu(e,n)}}var Ao={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},e1={readContext:Ve,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:ef,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oo(4194308,4,Sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();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=Xg.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Zc,useDebugValue:Pu,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Zc(!1),t=e[0];return e=Jg.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=ut();if(V){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),de===null)throw Error(E(349));xn&30||hp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ef(vp.bind(null,r,o,e),[e]),r.flags|=2048,ci(9,pp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ut(),t=de.identifierPrefix;if(V){var n=wt,r=_t;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=li++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ft]=t,e[oi]=r,Lp(e,t,!1,!1),t.stateNode=e;e:{switch(a=qs(n,r),n){case"dialog":K("cancel",e),K("close",e),i=r;break;case"iframe":case"object":case"embed":K("load",e),i=r;break;case"video":case"audio":for(i=0;isr&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304)}else{if(!r)if(e=To(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!V)return ye(t),null}else 2*ne()-o.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ne(),t.sibling=null,n=Y.current,B(Y,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function l1(e,t){switch(hu(t),t.tag){case 1:return Re(t.type)&&So(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),W(Te),W(we),Eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(W(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(Y),null;case 4:return or(),null;case 10:return yu(t.type._context),null;case 22:case 23:return Iu(),null;case 24:return null;default:return null}}var Gi=!1,ge=!1,u1=typeof WeakSet=="function"?WeakSet:Set,k=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function gl(e,t,n){try{n()}catch(r){X(e,t,r)}}var df=!1;function c1(e,t){if(tl=yo,e=Wh(),fu(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(s=a+i),c!==o||r!==0&&c.nodeType!==3||(l=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++f===r&&(l=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nl={focusedElem:e,selectionRange:n},yo=!1,k=t;k!==null;)if(t=k,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,k=e;else for(;k!==null;){t=k;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 g=y.memoizedProps,_=y.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Xe(t.type,g),_);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){X(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,k=e;break}k=t.return}return y=df,df=!1,y}function qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&gl(t,n,o)}i=i.next}while(i!==r)}}function la(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 _l(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 Bp(e){var t=e.alternate;t!==null&&(e.alternate=null,Bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[oi],delete t[ol],delete t[Wg],delete t[Vg])),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 Hp(e){return e.tag===5||e.tag===3||e.tag===4}function hf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(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 wl(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=wo));else if(r!==4&&(e=e.child,e!==null))for(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}function Sl(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(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}var he=null,Ze=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Kp(e,t,n),n=n.sibling}function Kp(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ea,n)}catch{}switch(n.tag){case 5:ge||qn(n,t);case 6:var r=he,i=Ze;he=null,Ot(e,t,n),he=r,Ze=i,he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),ei(e)):rs(he,n.stateNode));break;case 4:r=he,i=Ze,he=n.stateNode.containerInfo,Ze=!0,Ot(e,t,n),he=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&gl(n,t,a),i=i.next}while(i!==r)}Ot(e,t,n);break;case 1:if(!ge&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Ot(e,t,n),ge=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function pf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new u1),t.forEach(function(r){var i=_1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*d1(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,Io=0,M&6)throw Error(E(331));var i=M;for(M|=4,k=e.current;k!==null;){var o=k,a=o.child;if(k.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lne()-Fu?_n(e,0):Au|=n),Ae(e,t)}function Xp(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=Ee();e=$t(e,t),e!==null&&(vi(e,t,n),Ae(e,n))}function g1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xp(e,n)}function _1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Xp(e,n)}var Zp;Zp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,a1(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,V&&t.flags&1048576&&rp(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ao(e,t),e=t.pendingProps;var i=nr(t,we.current);Xn(t,n),i=Cu(null,t,r,e,i,n);var o=ku();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(o=!0,Eo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_u(t),i.updater=sa,t.stateNode=i,i._reactInternals=t,fl(t,r,e,n),t=pl(null,t,r,!0,o,n)):(t.tag=0,V&&o&&du(t),Se(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ao(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=S1(r),e=Xe(r,e),i){case 0:t=hl(null,t,r,e,n);break e;case 1:t=uf(null,t,r,e,n);break e;case 11:t=sf(null,t,r,e,n);break e;case 14:t=lf(null,t,r,Xe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),hl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),uf(e,t,r,i,n);case 3:e:{if(Mp(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,up(e,t),Po(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ar(Error(E(423)),t),t=cf(e,t,r,n,i);break e}else if(r!==i){i=ar(Error(E(424)),t),t=cf(e,t,r,n,i);break e}else for(Me=Gt(t.stateNode.containerInfo.firstChild),je=t,V=!0,tt=null,n=sp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=Pt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return cp(t),e===null&&ll(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,rl(r,i)?a=null:o!==null&&rl(r,o)&&(t.flags|=32),bp(e,t),Se(e,t,a,n),t.child;case 6:return e===null&&ll(t),null;case 13:return jp(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),sf(e,t,r,i,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,i=t.pendingProps,o=t.memoizedProps,a=i.value,B(ko,r._currentValue),r._currentValue=a,o!==null)if(it(o.value,a)){if(o.children===i.children&&!Te.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Et(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ul(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(E(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ul(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Se(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xn(t,n),i=Ve(i),r=r(i),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,i=Xe(r,t.pendingProps),i=Xe(r.type,i),lf(e,t,r,i,n);case 15:return Ip(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),ao(e,t),t.tag=1,Re(r)?(e=!0,Eo(t)):e=!1,Xn(t,n),Ap(t,r,i),fl(t,r,i,n),pl(null,t,r,!0,e,n);case 19:return zp(e,t,n);case 22:return Np(e,t,n)}throw Error(E(156,t.tag))};function ev(e,t){return Ph(e,t)}function w1(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 qe(e,t,n,r){return new w1(e,t,n,r)}function bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function S1(e){if(typeof e=="function")return bu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=qe(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 uo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")bu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mn:return wn(n.children,i,o,t);case Zl:a=8,i|=8;break;case bs:return e=qe(12,n,t,i|2),e.elementType=bs,e.lanes=o,e;case Ms:return e=qe(13,n,t,i),e.elementType=Ms,e.lanes=o,e;case js:return e=qe(19,n,t,i),e.elementType=js,e.lanes=o,e;case ch:return ca(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:a=10;break e;case uh:a=9;break e;case eu:a=11;break e;case tu:a=14;break e;case Nt:a=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=qe(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function ca(e,t,n,r){return e=qe(22,e,r,t),e.elementType=ch,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function ds(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E1(e,t,n,r,i){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=Wa(0),this.expirationTimes=Wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,i,o,a,s,l){return e=new E1(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_u(o),e}function x1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iv)}catch(e){console.error(e)}}iv(),ih.exports=Le;var T1=ih.exports,Ef=T1;Is.createRoot=Ef.createRoot,Is.hydrateRoot=Ef.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var r1=typeof WeakMap=="function"?WeakMap:Map;function Fp(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oo||(Oo=!0,El=r),dl(e,t)},n}function Op(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){dl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){dl(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function rf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new r1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=y1.bind(null,e,t,n),t.then(e,e))}function of(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function af(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e)}var i1=Tt.ReactCurrentOwner,Pe=!1;function Se(e,t,n,r){t.child=e===null?sp(t,null,n,r):ir(t,e.child,n,r)}function sf(e,t,n,r,i){n=n.render;var o=t.ref;return Xn(t,i),r=Cu(e,t,n,r,o,i),n=ku(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(V&&n&&du(t),t.flags|=1,Se(e,t,r,i),t.child)}function lf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!bu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ip(e,t,o,r,i)):(e=uo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:ni,n(a,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Xt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ip(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ni(o,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return hl(e,t,n,r,i)}function Np(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(Wn,Ie),Ie|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(Wn,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(Wn,Ie),Ie|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(Wn,Ie),Ie|=r;return Se(e,t,i,n),t.child}function bp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hl(e,t,n,r,i){var o=Re(n)?Sn:we.current;return o=nr(t,o),Xn(t,i),n=Cu(e,t,n,r,o,i),r=ku(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(V&&r&&du(t),t.flags|=1,Se(e,t,n,i),t.child)}function uf(e,t,n,r,i){if(Re(n)){var o=!0;Eo(t)}else o=!1;if(Xn(t,i),t.stateNode===null)ao(e,t),Ap(t,n,r),fl(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ve(u):(u=Re(n)?Sn:we.current,u=nr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&nf(t,a,r,u),bt=!1;var d=t.memoizedState;a.state=d,Po(t,r,a,i),l=t.memoizedState,s!==r||d!==l||Te.current||bt?(typeof f=="function"&&(cl(t,n,f,r),l=t.memoizedState),(s=bt||tf(t,n,s,r,d,l,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,up(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Xe(t.type,s),a.props=u,c=t.pendingProps,d=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ve(l):(l=Re(n)?Sn:we.current,l=nr(t,l));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==c||d!==l)&&nf(t,a,r,l),bt=!1,d=t.memoizedState,a.state=d,Po(t,r,a,i);var y=t.memoizedState;s!==c||d!==y||Te.current||bt?(typeof p=="function"&&(cl(t,n,p,r),y=t.memoizedState),(u=bt||tf(t,n,u,r,d,y,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return pl(e,t,n,r,o,i)}function pl(e,t,n,r,i,o){bp(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Vc(t,n,!1),Pt(e,t,o);r=t.stateNode,i1.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ir(t,e.child,null,o),t.child=ir(t,null,s,o)):Se(e,t,s,o),t.memoizedState=r.state,i&&Vc(t,n,!0),t.child}function Mp(e){var t=e.stateNode;t.pendingContext?Wc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wc(e,t.context,!1),wu(e,t.containerInfo)}function cf(e,t,n,r,i){return rr(),pu(i),t.flags|=256,Se(e,t,n,r),t.child}var vl={dehydrated:null,treeContext:null,retryLane:0};function ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function jp(e,t,n){var r=t.pendingProps,i=Y.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),B(Y,i&1),e===null)return ll(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ca(a,r,0,null),e=wn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ml(n),t.memoizedState=vl,e):Tu(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return o1(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Xt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Xt(s,o):(o=wn(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?ml(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=vl,r}return o=e.child,e=o.sibling,r=Xt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Tu(e,t){return t=ca({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,r){return r!==null&&pu(r),ir(t,e.child,null,n),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function o1(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=us(Error(E(422))),Vi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ca({mode:"visible",children:r.children},i,0,null),o=wn(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ir(t,e.child,null,a),t.child.memoizedState=ml(a),t.memoizedState=vl,o);if(!(t.mode&1))return Vi(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(E(419)),r=us(o,r,void 0),Vi(e,t,a,r)}if(s=(a&e.childLanes)!==0,Pe||s){if(r=de,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,$t(e,i),rt(r,e,i,-1))}return Nu(),r=us(Error(E(421))),Vi(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=g1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Me=Gt(i.nextSibling),je=t,V=!0,tt=null,e!==null&&(Ue[Be++]=_t,Ue[Be++]=wt,Ue[Be++]=En,_t=e.id,wt=e.overflow,En=t),t=Tu(t,r.children),t.flags|=4096,t)}function ff(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ul(e.return,t,n)}function cs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zp(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ff(e,n,t);else if(e.tag===19)ff(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&To(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&To(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cs(t,!0,n,null,o);break;case"together":cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ao(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function a1(e,t,n){switch(t.tag){case 3:Mp(t),rr();break;case 5:cp(t);break;case 1:Re(t.type)&&Eo(t);break;case 4:wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;B(ko,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?jp(e,t,n):(B(Y,Y.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);B(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Np(e,t,n)}return Pt(e,t,n)}var Lp,yl,Dp,Up;Lp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};yl=function(){};Dp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gn(pt.current);var o=null;switch(n){case"input":i=Ls(e,i),r=Ls(e,r),o=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),o=[];break;case"textarea":i=Bs(e,i),r=Bs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wo)}Ks(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&K("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Up=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fr(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function s1(e,t,n){var r=t.pendingProps;switch(hu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(t),null;case 1:return Re(t.type)&&So(),ye(t),null;case 3:return r=t.stateNode,or(),W(Te),W(we),Eu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tt!==null&&(kl(tt),tt=null))),yl(e,t),ye(t),null;case 5:Su(t);var i=gn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)Dp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ye(t),null}if(e=gn(pt.current),qi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ft]=t,r[oi]=o,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ft]=t,e[oi]=r,Lp(e,t,!1,!1),t.stateNode=e;e:{switch(a=qs(n,r),n){case"dialog":K("cancel",e),K("close",e),i=r;break;case"iframe":case"object":case"embed":K("load",e),i=r;break;case"video":case"audio":for(i=0;isr&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304)}else{if(!r)if(e=To(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!V)return ye(t),null}else 2*ne()-o.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ne(),t.sibling=null,n=Y.current,B(Y,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Iu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function l1(e,t){switch(hu(t),t.tag){case 1:return Re(t.type)&&So(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),W(Te),W(we),Eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(W(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(Y),null;case 4:return or(),null;case 10:return yu(t.type._context),null;case 22:case 23:return Iu(),null;case 24:return null;default:return null}}var Gi=!1,ge=!1,u1=typeof WeakSet=="function"?WeakSet:Set,k=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function gl(e,t,n){try{n()}catch(r){X(e,t,r)}}var df=!1;function c1(e,t){if(tl=yo,e=Wh(),fu(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(s=a+i),c!==o||r!==0&&c.nodeType!==3||(l=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++f===r&&(l=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nl={focusedElem:e,selectionRange:n},yo=!1,k=t;k!==null;)if(t=k,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,k=e;else for(;k!==null;){t=k;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 g=y.memoizedProps,_=y.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Xe(t.type,g),_);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){X(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,k=e;break}k=t.return}return y=df,df=!1,y}function qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&gl(t,n,o)}i=i.next}while(i!==r)}}function la(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 _l(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 Bp(e){var t=e.alternate;t!==null&&(e.alternate=null,Bp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[oi],delete t[ol],delete t[Wg],delete t[Vg])),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 Hp(e){return e.tag===5||e.tag===3||e.tag===4}function hf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(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 wl(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=wo));else if(r!==4&&(e=e.child,e!==null))for(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}function Sl(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(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}var he=null,Ze=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Kp(e,t,n),n=n.sibling}function Kp(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ea,n)}catch{}switch(n.tag){case 5:ge||qn(n,t);case 6:var r=he,i=Ze;he=null,Ot(e,t,n),he=r,Ze=i,he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),ei(e)):rs(he,n.stateNode));break;case 4:r=he,i=Ze,he=n.stateNode.containerInfo,Ze=!0,Ot(e,t,n),he=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&gl(n,t,a),i=i.next}while(i!==r)}Ot(e,t,n);break;case 1:if(!ge&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Ot(e,t,n),ge=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function pf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new u1),t.forEach(function(r){var i=_1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*d1(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,Io=0,M&6)throw Error(E(331));var i=M;for(M|=4,k=e.current;k!==null;){var o=k,a=o.child;if(k.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lne()-Fu?_n(e,0):Au|=n),Ae(e,t)}function Xp(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=Ee();e=$t(e,t),e!==null&&(vi(e,t,n),Ae(e,n))}function g1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xp(e,n)}function _1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Xp(e,n)}var Zp;Zp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,a1(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,V&&t.flags&1048576&&rp(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ao(e,t),e=t.pendingProps;var i=nr(t,we.current);Xn(t,n),i=Cu(null,t,r,e,i,n);var o=ku();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(o=!0,Eo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_u(t),i.updater=sa,t.stateNode=i,i._reactInternals=t,fl(t,r,e,n),t=pl(null,t,r,!0,o,n)):(t.tag=0,V&&o&&du(t),Se(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ao(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=S1(r),e=Xe(r,e),i){case 0:t=hl(null,t,r,e,n);break e;case 1:t=uf(null,t,r,e,n);break e;case 11:t=sf(null,t,r,e,n);break e;case 14:t=lf(null,t,r,Xe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),hl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),uf(e,t,r,i,n);case 3:e:{if(Mp(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,up(e,t),Po(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ar(Error(E(423)),t),t=cf(e,t,r,n,i);break e}else if(r!==i){i=ar(Error(E(424)),t),t=cf(e,t,r,n,i);break e}else for(Me=Gt(t.stateNode.containerInfo.firstChild),je=t,V=!0,tt=null,n=sp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=Pt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return cp(t),e===null&&ll(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,rl(r,i)?a=null:o!==null&&rl(r,o)&&(t.flags|=32),bp(e,t),Se(e,t,a,n),t.child;case 6:return e===null&&ll(t),null;case 13:return jp(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),sf(e,t,r,i,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,i=t.pendingProps,o=t.memoizedProps,a=i.value,B(ko,r._currentValue),r._currentValue=a,o!==null)if(it(o.value,a)){if(o.children===i.children&&!Te.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Et(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ul(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(E(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ul(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Se(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xn(t,n),i=Ve(i),r=r(i),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,i=Xe(r,t.pendingProps),i=Xe(r.type,i),lf(e,t,r,i,n);case 15:return Ip(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),ao(e,t),t.tag=1,Re(r)?(e=!0,Eo(t)):e=!1,Xn(t,n),Ap(t,r,i),fl(t,r,i,n),pl(null,t,r,!0,e,n);case 19:return zp(e,t,n);case 22:return Np(e,t,n)}throw Error(E(156,t.tag))};function ev(e,t){return Ph(e,t)}function w1(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 qe(e,t,n,r){return new w1(e,t,n,r)}function bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function S1(e){if(typeof e=="function")return bu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=qe(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 uo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")bu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mn:return wn(n.children,i,o,t);case Zl:a=8,i|=8;break;case bs:return e=qe(12,n,t,i|2),e.elementType=bs,e.lanes=o,e;case Ms:return e=qe(13,n,t,i),e.elementType=Ms,e.lanes=o,e;case js:return e=qe(19,n,t,i),e.elementType=js,e.lanes=o,e;case ch:return ca(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:a=10;break e;case uh:a=9;break e;case eu:a=11;break e;case tu:a=14;break e;case Nt:a=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=qe(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function ca(e,t,n,r){return e=qe(22,e,r,t),e.elementType=ch,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function ds(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E1(e,t,n,r,i){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=Wa(0),this.expirationTimes=Wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,i,o,a,s,l){return e=new E1(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_u(o),e}function x1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iv)}catch(e){console.error(e)}}iv(),ih.exports=Le;var T1=ih.exports,Ef=T1;Is.createRoot=Ef.createRoot,Is.hydrateRoot=Ef.hydrateRoot;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ov(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substr(2,8)}function Cf(e,t){return{usr:e.state,key:e.key,idx:t}}function $l(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pr(t):t,{state:n,key:t&&t.key||r||A1()})}function Mo(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 pr(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 F1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Bt.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(di({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){s=Bt.Pop;let _=f(),v=_==null?null:_-u;u=_,l&&l({action:s,location:g.location,delta:v})}function d(_,v){s=Bt.Push;let h=$l(g.location,_,v);u=f()+1;let m=Cf(h,u),w=g.createHref(h);try{a.pushState(m,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}o&&l&&l({action:s,location:g.location,delta:1})}function p(_,v){s=Bt.Replace;let h=$l(g.location,_,v);u=f();let m=Cf(h,u),w=g.createHref(h);a.replaceState(m,"",w),o&&l&&l({action:s,location:g.location,delta:0})}function y(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof _=="string"?_:Mo(_);return h=h.replace(/ $/,"%20"),Z(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let g={get action(){return s},get location(){return e(i,a)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(xf,c),l=_,()=>{i.removeEventListener(xf,c),l=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let v=y(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(_){return a.go(_)}};return g}var kf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kf||(kf={}));function O1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?pr(t):t,i=lr(r.pathname||"/",n);if(i==null)return null;let o=av(e);I1(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Z(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zt([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Z(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),av(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:D1(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of sv(o.path))i(o,a,l)}),t}function sv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=sv(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function I1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N1=/^:[\w-]+$/,b1=3,M1=2,j1=1,z1=10,L1=-2,$f=e=>e==="*";function D1(e,t){let n=e.split("/"),r=n.length;return n.some($f)&&(r+=L1),t&&(r+=M1),n.filter(i=>!$f(i)).reduce((i,o)=>i+(N1.test(o)?b1:o===""?j1:z1),r)}function U1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function B1(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=s[c]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=s[c];return p&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function H1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ov(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function K1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ov(!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 lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pr(e):e;return{pathname:n?n.startsWith("/")?n:W1(n,t):t,search:Y1(r),hash:Q1(i)}}function W1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function hs(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 V1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lv(e,t){let n=V1(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function uv(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pr(e):(i=di({},e),Z(!i.pathname||!i.pathname.includes("?"),hs("?","pathname","search",i)),Z(!i.pathname||!i.pathname.includes("#"),hs("#","pathname","hash",i)),Z(!i.search||!i.search.includes("#"),hs("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=q1(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Zt=e=>e.join("/").replace(/\/\/+/g,"/"),G1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function J1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cv=["post","put","patch","delete"];new Set(cv);const X1=["get",...cv];new Set(X1);/** + */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ov(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substr(2,8)}function Cf(e,t){return{usr:e.state,key:e.key,idx:t}}function $l(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pr(t):t,{state:n,key:t&&t.key||r||A1()})}function Mo(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 pr(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 F1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Bt.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(di({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){s=Bt.Pop;let _=f(),v=_==null?null:_-u;u=_,l&&l({action:s,location:g.location,delta:v})}function d(_,v){s=Bt.Push;let h=$l(g.location,_,v);u=f()+1;let m=Cf(h,u),S=g.createHref(h);try{a.pushState(m,"",S)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(S)}o&&l&&l({action:s,location:g.location,delta:1})}function p(_,v){s=Bt.Replace;let h=$l(g.location,_,v);u=f();let m=Cf(h,u),S=g.createHref(h);a.replaceState(m,"",S),o&&l&&l({action:s,location:g.location,delta:0})}function y(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof _=="string"?_:Mo(_);return h=h.replace(/ $/,"%20"),Z(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let g={get action(){return s},get location(){return e(i,a)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(xf,c),l=_,()=>{i.removeEventListener(xf,c),l=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let v=y(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(_){return a.go(_)}};return g}var kf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kf||(kf={}));function O1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?pr(t):t,i=lr(r.pathname||"/",n);if(i==null)return null;let o=av(e);I1(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Z(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zt([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Z(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),av(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:D1(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of sv(o.path))i(o,a,l)}),t}function sv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=sv(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function I1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N1=/^:[\w-]+$/,b1=3,M1=2,j1=1,z1=10,L1=-2,$f=e=>e==="*";function D1(e,t){let n=e.split("/"),r=n.length;return n.some($f)&&(r+=L1),t&&(r+=M1),n.filter(i=>!$f(i)).reduce((i,o)=>i+(N1.test(o)?b1:o===""?j1:z1),r)}function U1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function B1(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=s[c]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=s[c];return p&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function H1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ov(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function K1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ov(!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 lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pr(e):e;return{pathname:n?n.startsWith("/")?n:W1(n,t):t,search:Y1(r),hash:Q1(i)}}function W1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function hs(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 V1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lv(e,t){let n=V1(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function uv(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pr(e):(i=di({},e),Z(!i.pathname||!i.pathname.includes("?"),hs("?","pathname","search",i)),Z(!i.pathname||!i.pathname.includes("#"),hs("#","pathname","hash",i)),Z(!i.search||!i.search.includes("#"),hs("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=q1(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Zt=e=>e.join("/").replace(/\/\/+/g,"/"),G1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function J1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cv=["post","put","patch","delete"];new Set(cv);const X1=["get",...cv];new Set(X1);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -64,8 +64,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function _0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w0(e,t){return e.button===0&&(!t||t==="_self")&&!_0(e)}const S0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],x0="6";try{window.__reactRouterVersion=x0}catch{}const C0=C.createContext({isTransitioning:!1}),k0="startTransition",Pf=yy[k0];function $0(e){let{basename:t,children:n,future:r,window:i}=e,o=C.useRef();o.current==null&&(o.current=R1({window:i,v5Compat:!0}));let a=o.current,[s,l]=C.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=C.useCallback(c=>{u&&Pf?Pf(()=>l(c)):l(c)},[l,u]);return C.useLayoutEffect(()=>a.listen(f),[a,f]),C.createElement(y0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const P0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",T0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ur=C.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=yv(t,S0),{basename:p}=C.useContext(sn),y,g=!1;if(typeof u=="string"&&T0.test(u)&&(y=u,P0))try{let m=new URL(window.location.href),w=u.startsWith("//")?new URL(m.protocol+u):new URL(u),x=lr(w.pathname,p);w.origin===m.origin&&x!=null?u=x+w.search+w.hash:g=!0}catch{}let _=Z1(u,{relative:i}),v=A0(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function h(m){r&&r(m),m.defaultPrevented||v(m)}return C.createElement("a",zo({},d,{href:y||_,onClick:g||o?r:h,ref:n,target:l}))}),Ht=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,c=yv(t,E0),d=ya(l,{relative:c.relative}),p=wi(),y=C.useContext(fv),{navigator:g,basename:_}=C.useContext(sn),v=y!=null&&F0(d)&&u===!0,h=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,m=p.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(m=m.toLowerCase(),w=w?w.toLowerCase():null,h=h.toLowerCase()),w&&_&&(w=lr(w,_)||w);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let P=m===h||!a&&m.startsWith(h)&&m.charAt(x)==="/",T=w!=null&&(w===h||!a&&w.startsWith(h)&&w.charAt(h.length)==="/"),R={isActive:P,isPending:T,isTransitioning:v},G=P?r:void 0,I;typeof o=="function"?I=o(R):I=[o,P?"active":null,T?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let Fe=typeof s=="function"?s(R):s;return C.createElement(ur,zo({},c,{"aria-current":G,className:I,ref:n,style:Fe,to:l,unstable_viewTransition:u}),typeof f=="function"?f(R):f)});var Rl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rl||(Rl={}));var Tf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tf||(Tf={}));function R0(e){let t=C.useContext(va);return t||Z(!1),t}function A0(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=e0(),u=wi(),f=ya(e,{relative:a});return C.useCallback(c=>{if(w0(c,n)){c.preventDefault();let d=r!==void 0?r:Mo(u)===Mo(f);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function F0(e,t){t===void 0&&(t={});let n=C.useContext(C0);n==null&&Z(!1);let{basename:r}=R0(Rl.useViewTransitionState),i=ya(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pl(i.pathname,a)!=null||Pl(i.pathname,o)!=null}function O0(){return S.jsx("a",{href:"#main-content",className:"element-invisible element-focusable skip-link",children:"Skip to main content"})}function I0(){function e(){try{const i=localStorage.getItem("theme-vanlife");return i?JSON.parse(i):!1}catch(i){return console.error("Error parsing theme from localStorage:",i),!1}}const[t,n]=C.useState(e);C.useEffect(()=>{document.documentElement.classList.toggle("lightmode",t),localStorage.setItem("theme-vanlife",t)},[t]);function r(){n(i=>!i)}return S.jsxs("div",{className:"theme-toggler",children:[S.jsxs("p",{className:"light",children:["Light",S.jsx("span",{className:"visually-hidden",children:t?" theme active":" theme inactive"})]}),S.jsx("button",{type:"button",onClick:r,"aria-pressed":t?"false":"true","aria-label":"Toggle theme",children:S.jsx("span",{})}),S.jsxs("p",{className:"dark",children:["Dark",S.jsx("span",{className:"visually-hidden",children:t?" theme inactive":" theme active"})]})]})}var gv={exports:{}},N0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",b0=N0,M0=b0;function _v(){}function wv(){}wv.resetWarningCache=_v;var j0=function(){function e(r,i,o,a,s,l){if(l!==M0){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wv,resetWarningCache:_v};return n.PropTypes=n,n};gv.exports=j0();var z0=gv.exports;const Sv=re(z0);var Ev={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rf=St.createContext&&St.createContext(Ev),L0=["attr","size","title"];function D0(e,t){if(e==null)return{};var n=U0(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U0(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;tSt.createElement(t.tag,Do({key:n},t.attr),xv(t.child)))}function Cv(e){return t=>St.createElement(q0,Lo({attr:Do({},e.attr)},t),xv(e.child))}function q0(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=D0(e,L0),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),St.createElement("svg",Lo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Do(Do({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&St.createElement("title",null,o),e.children)};return Rf!==void 0?St.createElement(Rf.Consumer,null,n=>t(n)):t(Ev)}function W0(e){return Cv({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM281 385c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l71-71L136 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l182.1 0-71-71c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L393 239c9.4 9.4 9.4 24.6 0 33.9L281 385z"},child:[]}]})(e)}function V0(e){return Cv({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M64 104v88h96V96H72c-4.4 0-8 3.6-8 8zm482 88L465.1 96H384v96H546zm-226 0V96H224v96h96zM592 384H576c0 53-43 96-96 96s-96-43-96-96H256c0 53-43 96-96 96s-96-43-96-96H48c-26.5 0-48-21.5-48-48V104C0 64.2 32.2 32 72 32H192 352 465.1c18.9 0 36.8 8.3 49 22.8L625 186.5c9.7 11.5 15 26.1 15 41.2V336c0 26.5-21.5 48-48 48zm-64 0a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM160 432a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function G0(){return S.jsx("nav",{className:"site-navigation",children:S.jsxs("ul",{children:[S.jsx("li",{children:S.jsx(Ht,{to:"/","aria-current":"page",end:!0,children:"Home"})}),S.jsx("li",{children:S.jsx(Ht,{to:"about","aria-current":"page",children:"About"})}),S.jsx("li",{children:S.jsx(Ht,{to:"vans","aria-current":"page",children:"Vans"})}),S.jsx("li",{children:S.jsx(Ht,{to:"host","aria-current":"page",children:"Host"})})]})})}function kv({title:e}){return S.jsxs("header",{className:"site-header",children:[S.jsxs("p",{className:"site-header--h1",children:[S.jsx(V0,{})," ",S.jsxs("span",{children:["#",e]})]}),S.jsx(G0,{})]})}kv.propTypes={title:Sv.string};function $v({gitRepo:e}){return S.jsx("footer",{className:"site-footer",children:S.jsx("a",{href:`https://github.com/chrisnajman/${e}`,target:"_blank",rel:"noopener noreferrer",children:"Git Repository"})})}$v.propTypes={gitRepo:Sv.string};function Y0(){return S.jsxs(S.Fragment,{children:[S.jsx(O0,{}),S.jsx(I0,{}),S.jsxs("div",{className:"site-container",children:[S.jsx(kv,{title:"Vanlife"}),S.jsx("main",{id:"main-content",className:"main-content",children:S.jsx(mv,{})}),S.jsx($v,{gitRepo:"vanlife"})]})]})}function Q0(){return S.jsxs("div",{className:"home-container content-container",children:[S.jsxs("h1",{children:["You","'","ve got the travel plans, we","'","ve got the travel vans."]}),S.jsx("p",{children:"Add adventure to your life by joining the #vanlife movement. Rent the perfect van to make your perfect road trip."}),S.jsx(ur,{to:"vans",className:"link-button",children:"Find your van"})]})}function J0(){return S.jsx("div",{className:"about-page-container content-container",children:S.jsxs("div",{className:"about-page-content",children:[S.jsxs("h1",{children:["Don","'","t squeeze in a sedan when you could relax in a van."]}),S.jsx("p",{children:"Our mission is to enliven your road trip with the perfect travel van rental. Our vans are recertified before each trip to ensure your travel plans can go off without a hitch."}),S.jsx("p",{children:"Our team is full of vanlife enthusiasts who know firsthand the magic of touring the world on 4 wheels."}),S.jsxs("h2",{children:[S.jsx("span",{children:"Your destination is waiting."}),S.jsx("span",{children:"Your van is ready."})]}),S.jsx(ur,{className:"link-button",to:"/vans",children:"Explore our vans"})]})})}function X0(){const[e,t]=C.useState([]);C.useEffect(()=>{async function r(){try{const o=await(await fetch("/api/vans")).json();t(o.vans)}catch(i){console.log(i)}}r()},[]);const n=e.map(r=>S.jsx("li",{children:S.jsxs(ur,{className:"link-button",to:r.id,"aria-label":`View details for ${r.name}, - priced at £${r.price} per day`,children:[S.jsx("p",{children:r.name}),S.jsxs("picture",{children:[S.jsx("source",{srcSet:r.imageUrlWebp,type:"image/webp"}),S.jsx("img",{className:"van-image",src:r.imageUrlPng,alt:`The ${r.name} van`,loading:"lazy",width:"881",height:"881"})]}),S.jsxs("ul",{className:"van-footer",children:[S.jsxs("li",{children:["Price: £",r.price,"/day"]}),S.jsxs("li",{children:["Type: ",S.jsx("span",{className:"van-type",children:r.type})]})]}),S.jsx(W0,{"aria-hidden":"true"})]})},r.id));return S.jsxs("div",{className:"vans-container content-container",children:[S.jsx("h1",{children:"Explore our van options"}),e?S.jsx("ul",{className:"van-list",children:n}):"Loading ..."]})}function Z0(){return S.jsx("h1",{children:"Page Not Found"})}function e_(){const e=i0(),[t,n]=C.useState(null);return C.useEffect(()=>{async function r(){try{const o=await(await fetch(`/api/vans/${e.id}`)).json();n(o.vans)}catch(i){console.log(i)}}r()},[e.id]),S.jsxs("div",{className:"van-detail-container content-container",children:[S.jsxs(ur,{className:"back-link link-button",to:"/vans",children:[" ","Back to Vans list"]}),t?S.jsxs(S.Fragment,{children:[S.jsxs("h1",{children:[t.name,": Details"]}),S.jsxs("picture",{children:[S.jsx("source",{srcSet:t.imageUrlWebp,type:"image/webp"}),S.jsx("img",{className:"van-image",src:t.imageUrlPng,alt:`The ${t.name} van`,loading:"lazy",width:"881",height:"881"})]}),S.jsx("p",{children:t.description}),S.jsxs("ul",{className:"van-footer",children:[S.jsxs("li",{children:["Price: £",t.price,"/day"]}),S.jsxs("li",{children:["Type: ",S.jsx("span",{className:"van-type",children:t.type})]})]}),S.jsx(ur,{className:"link-button cta",to:"",children:"Rent this van"})]}):S.jsx("p",{children:"Loading ..."})]})}function t_(){return S.jsxs(S.Fragment,{children:[S.jsx("nav",{className:"site-navigation",children:S.jsxs("ul",{children:[S.jsx("li",{children:S.jsx(Ht,{to:"/host","aria-current":"page",end:!0,children:"Dashboard"})}),S.jsx("li",{children:S.jsx(Ht,{to:"income","aria-current":"page",end:!0,children:"Income"})}),S.jsx("li",{children:S.jsx(Ht,{to:"host-vans","aria-current":"page",children:"Vans"})}),S.jsx("li",{children:S.jsx(Ht,{to:"reviews","aria-current":"page",end:!0,children:"Reviews"})})]})}),S.jsx(mv,{})]})}function n_(){return S.jsx("h1",{children:"Dashboard Updated"})}function r_(){return S.jsx("h1",{children:"Income"})}function i_(){return S.jsx("h1",{children:"Reviews"})}function o_(){return S.jsx("h1",{children:"Your Listed Vans"})}function a_(){return S.jsx("h1",{children:"Your Listed Van Details"})}function s_(){return S.jsx($0,{basename:"/vanlife",children:S.jsx(g0,{children:S.jsxs(Oe,{element:S.jsx(Y0,{}),children:[S.jsx(Oe,{path:"/",element:S.jsx(Q0,{})}),S.jsx(Oe,{path:"about",element:S.jsx(J0,{})}),S.jsx(Oe,{path:"vans",element:S.jsx(X0,{})}),S.jsx(Oe,{path:"vans/:id",element:S.jsx(e_,{})}),S.jsxs(Oe,{path:"host",element:S.jsx(t_,{}),children:[S.jsx(Oe,{index:!0,element:S.jsx(n_,{})}),S.jsx(Oe,{path:"income",element:S.jsx(r_,{})}),S.jsx(Oe,{path:"host-vans",element:S.jsx(o_,{})}),S.jsx(Oe,{path:"host-vans/:id",element:S.jsx(a_,{})}),S.jsx(Oe,{path:"reviews",element:S.jsx(i_,{})})]}),S.jsx(Oe,{path:"*",element:S.jsx(Z0,{})})]})})})}var l_=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Pv=l_,u_=Pv,c_=typeof self=="object"&&self&&self.Object===Object&&self,f_=u_||c_||Function("return this")(),mt=f_,d_=mt,h_=d_.Symbol,vr=h_,Ff=vr,Tv=Object.prototype,p_=Tv.hasOwnProperty,v_=Tv.toString,Ir=Ff?Ff.toStringTag:void 0;function m_(e){var t=p_.call(e,Ir),n=e[Ir];try{e[Ir]=void 0;var r=!0}catch{}var i=v_.call(e);return r&&(t?e[Ir]=n:delete e[Ir]),i}var y_=m_,g_=Object.prototype,__=g_.toString;function w_(e){return __.call(e)}var S_=w_,Of=vr,E_=y_,x_=S_,C_="[object Null]",k_="[object Undefined]",If=Of?Of.toStringTag:void 0;function $_(e){return e==null?e===void 0?k_:C_:If&&If in Object(e)?E_(e):x_(e)}var mr=$_;function P_(e,t){return function(n){return e(t(n))}}var Rv=P_,T_=Rv,R_=T_(Object.getPrototypeOf,Object),Du=R_;function A_(e){return e!=null&&typeof e=="object"}var ln=A_,F_=mr,O_=Du,I_=ln,N_="[object Object]",b_=Function.prototype,M_=Object.prototype,Av=b_.toString,j_=M_.hasOwnProperty,z_=Av.call(Object);function L_(e){if(!I_(e)||F_(e)!=N_)return!1;var t=O_(e);if(t===null)return!0;var n=j_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Av.call(n)==z_}var D_=L_;const Al=re(D_);function U_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var At=U_,B_=mr,H_=At,K_="[object AsyncFunction]",q_="[object Function]",W_="[object GeneratorFunction]",V_="[object Proxy]";function G_(e){if(!H_(e))return!1;var t=B_(e);return t==q_||t==W_||t==K_||t==V_}var Uu=G_;const Nf=re(Uu);var Y_=mt,Q_=Y_["__core-js_shared__"],J_=Q_,ps=J_,bf=function(){var e=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X_(e){return!!bf&&bf in e}var Z_=X_,ew=Function.prototype,tw=ew.toString;function nw(e){if(e!=null){try{return tw.call(e)}catch{}try{return e+""}catch{}}return""}var Fv=nw,rw=Uu,iw=Z_,ow=At,aw=Fv,sw=/[\\^$.*+?()[\]{}|]/g,lw=/^\[object .+?Constructor\]$/,uw=Function.prototype,cw=Object.prototype,fw=uw.toString,dw=cw.hasOwnProperty,hw=RegExp("^"+fw.call(dw).replace(sw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pw(e){if(!ow(e)||iw(e))return!1;var t=rw(e)?hw:lw;return t.test(aw(e))}var vw=pw;function mw(e,t){return e==null?void 0:e[t]}var yw=mw,gw=vw,_w=yw;function ww(e,t){var n=_w(e,t);return gw(n)?n:void 0}var Rn=ww,Sw=Rn,Ew=function(){try{var e=Sw(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ov=Ew,Mf=Ov;function xw(e,t,n){t=="__proto__"&&Mf?Mf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Iv=xw;function Cw(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var kw=Cw,$w=kw,Pw=$w(),Nv=Pw;function Tw(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=qw}var Bu=Ww,Vw=mr,Gw=Bu,Yw=ln,Qw="[object Arguments]",Jw="[object Array]",Xw="[object Boolean]",Zw="[object Date]",eS="[object Error]",tS="[object Function]",nS="[object Map]",rS="[object Number]",iS="[object Object]",oS="[object RegExp]",aS="[object Set]",sS="[object String]",lS="[object WeakMap]",uS="[object ArrayBuffer]",cS="[object DataView]",fS="[object Float32Array]",dS="[object Float64Array]",hS="[object Int8Array]",pS="[object Int16Array]",vS="[object Int32Array]",mS="[object Uint8Array]",yS="[object Uint8ClampedArray]",gS="[object Uint16Array]",_S="[object Uint32Array]",q={};q[fS]=q[dS]=q[hS]=q[pS]=q[vS]=q[mS]=q[yS]=q[gS]=q[_S]=!0;q[Qw]=q[Jw]=q[uS]=q[Xw]=q[cS]=q[Zw]=q[eS]=q[tS]=q[nS]=q[rS]=q[iS]=q[oS]=q[aS]=q[sS]=q[lS]=!1;function wS(e){return Yw(e)&&Gw(e.length)&&!!q[Vw(e)]}var SS=wS;function ES(e){return function(t){return e(t)}}var Hu=ES,Bo={exports:{}};Bo.exports;(function(e,t){var n=Pv,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Bo,Bo.exports);var Ku=Bo.exports,xS=SS,CS=Hu,zf=Ku,Lf=zf&&zf.isTypedArray,kS=Lf?CS(Lf):xS,qu=kS,$S=Rw,PS=ga,TS=Qe,RS=_a,AS=wa,FS=qu,OS=Object.prototype,IS=OS.hasOwnProperty;function NS(e,t){var n=TS(e),r=!n&&PS(e),i=!n&&!r&&RS(e),o=!n&&!r&&!i&&FS(e),a=n||r||i||o,s=a?$S(e.length,String):[],l=s.length;for(var u in e)(t||IS.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||AS(u,l)))&&s.push(u);return s}var Mv=NS,bS=Object.prototype;function MS(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bS;return e===n}var Si=MS,jS=Rv,zS=jS(Object.keys,Object),LS=zS,DS=Si,US=LS,BS=Object.prototype,HS=BS.hasOwnProperty;function KS(e){if(!DS(e))return US(e);var t=[];for(var n in Object(e))HS.call(e,n)&&n!="constructor"&&t.push(n);return t}var jv=KS,qS=Uu,WS=Bu;function VS(e){return e!=null&&WS(e.length)&&!qS(e)}var Ft=VS,GS=Mv,YS=jv,QS=Ft;function JS(e){return QS(e)?GS(e):YS(e)}var un=JS,XS=Nv,ZS=un;function eE(e,t){return e&&XS(e,t,ZS)}var tE=eE;function nE(){this.__data__=[],this.size=0}var rE=nE;function iE(e,t){return e===t||e!==e&&t!==t}var Sa=iE,oE=Sa;function aE(e,t){for(var n=e.length;n--;)if(oE(e[n][0],t))return n;return-1}var Ea=aE,sE=Ea,lE=Array.prototype,uE=lE.splice;function cE(e){var t=this.__data__,n=sE(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uE.call(t,n,1),--this.size,!0}var fE=cE,dE=Ea;function hE(e){var t=this.__data__,n=dE(t,e);return n<0?void 0:t[n][1]}var pE=hE,vE=Ea;function mE(e){return vE(this.__data__,e)>-1}var yE=mE,gE=Ea;function _E(e,t){var n=this.__data__,r=gE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var wE=_E,SE=rE,EE=fE,xE=pE,CE=yE,kE=wE;function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=n&uC?new oC:void 0;for(o.set(e,t),o.set(t,e);++c-1}var MP=bP;function jP(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=XP){var u=t?null:QP(e);if(u)return JP(u);a=!1,i=YP,l=new WP}else l=t?[]:s;e:for(;++r0&&n(s)?t>1?im(s,t-1,n,r,i):oT(i,s):r||(i[i.length]=s)}return i}var sT=im,lT=sT;function uT(e){var t=e==null?0:e.length;return t?lT(e,1):[]}var om=uT;const am=re(om);var cT=Object.prototype.toString;function fT(e){return cT.call(e)==="[object Function]"}var sm=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ko=function(){function e(t,n){for(var r=0;r=0;n--)e[n]===t&&Array.prototype.splice.call(e,n,1)}function dT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var gs={},fd=function(){Ko(e,null,[{key:"getInstance",value:function(n){return gs[n]=gs[n]||new e,gs[n]}}]);function e(){sm(this,e),this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[],this.acronyms={},this.acronymRegex=/(?=a)b/}return Ko(e,[{key:"acronym",value:function(n){this.acronyms[n.toLowerCase()]=n;var r=[];for(var i in this.acronyms)dT(this.acronyms,i)&&r.push(this.acronyms[i]);this.acronymRegex=new RegExp(r.join("|"))}},{key:"plural",value:function(n,r){typeof n=="string"&&On(this.uncountables,n),On(this.uncountables,r),this.plurals.unshift([n,r])}},{key:"singular",value:function(n,r){typeof n=="string"&&On(this.uncountables,n),On(this.uncountables,r),this.singulars.unshift([n,r])}},{key:"irregular",value:function(n,r){On(this.uncountables,n),On(this.uncountables,r);var i=n[0],o=n.substr(1),a=r[0],s=r.substr(1);if(i.toUpperCase()===a.toUpperCase())this.plural(new RegExp("("+i+")"+o+"$","i"),"$1"+s),this.plural(new RegExp("("+a+")"+s+"$","i"),"$1"+s),this.singular(new RegExp("("+i+")"+o+"$","i"),"$1"+o),this.singular(new RegExp("("+a+")"+s+"$","i"),"$1"+o);else{var l=cd(o),u=cd(s);this.plural(new RegExp(i.toUpperCase()+l+"$"),a.toUpperCase()+s),this.plural(new RegExp(i.toLowerCase()+l+"$"),a.toLowerCase()+s),this.plural(new RegExp(a.toUpperCase()+u+"$"),a.toUpperCase()+s),this.plural(new RegExp(a.toLowerCase()+u+"$"),a.toLowerCase()+s),this.singular(new RegExp(i.toUpperCase()+l+"$"),i.toUpperCase()+o),this.singular(new RegExp(i.toLowerCase()+l+"$"),i.toLowerCase()+o),this.singular(new RegExp(a.toUpperCase()+u+"$"),i.toUpperCase()+o),this.singular(new RegExp(a.toLowerCase()+u+"$"),i.toLowerCase()+o)}}},{key:"uncountable",value:function(){for(var n=arguments.length,r=Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:"all";n==="all"?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[n]=[]}}]),e}();function hT(e){e.plural(/$/,"s"),e.plural(/s$/i,"s"),e.plural(/^(ax|test)is$/i,"$1es"),e.plural(/(octop|vir)us$/i,"$1i"),e.plural(/(octop|vir)i$/i,"$1i"),e.plural(/(alias|status)$/i,"$1es"),e.plural(/(bu)s$/i,"$1ses"),e.plural(/(buffal|tomat)o$/i,"$1oes"),e.plural(/([ti])um$/i,"$1a"),e.plural(/([ti])a$/i,"$1a"),e.plural(/sis$/i,"ses"),e.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),e.plural(/(hive)$/i,"$1s"),e.plural(/([^aeiouy]|qu)y$/i,"$1ies"),e.plural(/(x|ch|ss|sh)$/i,"$1es"),e.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),e.plural(/^(m|l)ouse$/i,"$1ice"),e.plural(/^(m|l)ice$/i,"$1ice"),e.plural(/^(ox)$/i,"$1en"),e.plural(/^(oxen)$/i,"$1"),e.plural(/(quiz)$/i,"$1zes"),e.singular(/s$/i,""),e.singular(/(ss)$/i,"$1"),e.singular(/(n)ews$/i,"$1ews"),e.singular(/([ti])a$/i,"$1um"),e.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"),e.singular(/(^analy)(sis|ses)$/i,"$1sis"),e.singular(/([^f])ves$/i,"$1fe"),e.singular(/(hive)s$/i,"$1"),e.singular(/(tive)s$/i,"$1"),e.singular(/([lr])ves$/i,"$1f"),e.singular(/([^aeiouy]|qu)ies$/i,"$1y"),e.singular(/(s)eries$/i,"$1eries"),e.singular(/(m)ovies$/i,"$1ovie"),e.singular(/(x|ch|ss|sh)es$/i,"$1"),e.singular(/^(m|l)ice$/i,"$1ouse"),e.singular(/(bus)(es)?$/i,"$1"),e.singular(/(o)es$/i,"$1"),e.singular(/(shoe)s$/i,"$1"),e.singular(/(cris|test)(is|es)$/i,"$1is"),e.singular(/^(a)x[ie]s$/i,"$1xis"),e.singular(/(octop|vir)(us|i)$/i,"$1us"),e.singular(/(alias|status)(es)?$/i,"$1"),e.singular(/^(ox)en/i,"$1"),e.singular(/(vert|ind)ices$/i,"$1ex"),e.singular(/(matr)ices$/i,"$1ix"),e.singular(/(quiz)zes$/i,"$1"),e.singular(/(database)s$/i,"$1"),e.irregular("person","people"),e.irregular("man","men"),e.irregular("child","children"),e.irregular("sex","sexes"),e.irregular("move","moves"),e.irregular("zombie","zombies"),e.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}var dd={en:hT};function $n(e,t){if(fT(e)&&(t=e,e=null),e=e||"en",t)t(fd.getInstance(e));else return fd.getInstance(e)}for(var hd in dd)$n(hd,dd[hd]);function lm(e,t){var n=""+e,r,i,o;if(n.length===0)return n;var a=n.toLowerCase().match(/\b\w+$/);if(a&&$n().uncountables.indexOf(a[0])>-1)return n;for(var s=0,l=t.length;s1&&arguments[1]!==void 0?arguments[1]:"en";return lm(e,$n(t).plurals)}function cm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en";return lm(e,$n(t).singulars)}function fm(e){var t=e==null?"":String(e);return t.charAt(0).toUpperCase()+t.slice(1)}function pT(e,t){var n=""+e;return n=n.replace(new RegExp("^(?:"+$n().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(r){return r.toLowerCase()}),n=n.replace(/(?:_|(\/))([a-z\d]*)/gi,function(r,i,o,a,s){return i||(i=""),""+i+($n().acronyms[o]||fm(o))}),n}function vT(e){var t=""+e;return t=t.replace(new RegExp("(?:([A-Za-z\\d])|^)("+$n().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(n,r,i){return""+(r||"")+(r?"_":"")+i.toLowerCase()}),t=t.replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2"),t=t.replace(/([a-z\d])([A-Z])/g,"$1_$2"),t=t.replace(/-/g,"_"),t.toLowerCase()}function mT(e){return e.replace(/_/g,"-")}var pd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O","×":"x",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",Þ:"Th",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",þ:"th",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",ĝ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"L",ł:"l",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"'n",Ŋ:"NG",ŋ:"ng",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"E",Ж:"ZH",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"KH",Ц:"C",Ч:"CH",Ш:"SH",Щ:"SHCH",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"YU",Я:"YA",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"shch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},yT="?",_s={};(function(){Ko(e,null,[{key:"getInstance",value:function(n){return _s[n]=_s[n]||new e,_s[n]}}]);function e(){sm(this,e),this.approximations={};for(var t in pd)this.approximate(t,pd[t])}return Ko(e,[{key:"approximate",value:function(n,r){this.approximations[n]=r}},{key:"transliterate",value:function(n,r){var i=this;return n.replace(/[^\u0000-\u007f]/g,function(o){return i.approximations[o]||r||yT})}}]),e})();function gT(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:_T(e,t,n)}var ST=wT,ET="\\ud800-\\udfff",xT="\\u0300-\\u036f",CT="\\ufe20-\\ufe2f",kT="\\u20d0-\\u20ff",$T=xT+CT+kT,PT="\\ufe0e\\ufe0f",TT="\\u200d",RT=RegExp("["+TT+ET+$T+PT+"]");function AT(e){return RT.test(e)}var hm=AT;function FT(e){return e.split("")}var OT=FT,pm="\\ud800-\\udfff",IT="\\u0300-\\u036f",NT="\\ufe20-\\ufe2f",bT="\\u20d0-\\u20ff",MT=IT+NT+bT,jT="\\ufe0e\\ufe0f",zT="["+pm+"]",Ml="["+MT+"]",jl="\\ud83c[\\udffb-\\udfff]",LT="(?:"+Ml+"|"+jl+")",vm="[^"+pm+"]",mm="(?:\\ud83c[\\udde6-\\uddff]){2}",ym="[\\ud800-\\udbff][\\udc00-\\udfff]",DT="\\u200d",gm=LT+"?",_m="["+jT+"]?",UT="(?:"+DT+"(?:"+[vm,mm,ym].join("|")+")"+_m+gm+")*",BT=_m+gm+UT,HT="(?:"+[vm+Ml+"?",Ml,mm,ym,zT].join("|")+")",KT=RegExp(jl+"(?="+jl+")|"+HT+BT,"g");function qT(e){return e.match(KT)||[]}var WT=qT,VT=OT,GT=hm,YT=WT;function QT(e){return GT(e)?YT(e):VT(e)}var JT=QT,XT=ST,ZT=hm,eR=JT,tR=Xv;function nR(e){return function(t){t=tR(t);var n=ZT(t)?eR(t):void 0,r=n?n[0]:t.charAt(0),i=n?XT(n,1).join(""):t.slice(1);return r[e]()+i}}var rR=nR,iR=rR,oR=iR("toLowerCase"),aR=oR;const sR=re(aR);var lR=Xu;function uR(e,t){return lR(e,t)}var cR=uR;const zl=re(cR);var fR=Ft;function dR(e,t){return function(n,r){if(n==null)return n;if(!fR(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o0){if(++t>=cO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pO=hO,vO=uO,mO=pO,yO=mO(vO),$m=yO,gO=Ta,_O=km,wO=$m;function SO(e,t){return wO(_O(e,t,gO),e+"")}var Pm=SO,EO=rc,xO=wm,CO=tO,kO=Pm,$O=Ft,PO=kO(function(e,t,n){var r=-1,i=typeof t=="function",o=$O(e)?Array(e.length):[];return xO(e,function(a){o[++r]=i?EO(t,a,n):CO(a,t,n)}),o}),TO=PO;const Kt=re(TO);function RO(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&XI(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r-1?i[o?t[a]:a]:void 0}}var vN=pN,mN=/\s/;function yN(e){for(var t=e.length;t--&&mN.test(e.charAt(t)););return t}var gN=yN,_N=gN,wN=/^\s+/;function SN(e){return e&&e.slice(0,_N(e)+1).replace(wN,"")}var EN=SN,xN=EN,Pd=At,CN=$a,Td=NaN,kN=/^[-+]0x[0-9a-f]+$/i,$N=/^0b[01]+$/i,PN=/^0o[0-7]+$/i,TN=parseInt;function RN(e){if(typeof e=="number")return e;if(CN(e))return Td;if(Pd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xN(e);var n=$N.test(e);return n||PN.test(e)?TN(e.slice(2),n?2:8):kN.test(e)?Td:+e}var AN=RN,FN=AN,Rd=1/0,ON=17976931348623157e292;function IN(e){if(!e)return e===0?e:0;if(e=FN(e),e===Rd||e===-Rd){var t=e<0?-1:1;return t*ON}return e===e?e:0}var NN=IN,bN=NN;function MN(e){var t=bN(e),n=t%1;return t===t?n?t-n:t:0}var Rm=MN,jN=rm,zN=Ra,LN=Rm,DN=Math.max;function UN(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:LN(n);return i<0&&(i=DN(r+i,0)),jN(e,zN(t),i)}var BN=UN,HN=vN,KN=BN,qN=HN(KN),WN=qN;const Ss=re(WN);var VN=Rm;function GN(e){return typeof e=="number"&&e==VN(e)}var YN=GN;const Ad=re(YN);typeof Ke<"u"&&typeof Ke.self>"u"&&(Ke.self={},Ke.__pretenderNodePolyfill=!0);var QN=Object.create;function Ul(){var e=QN(null);return e.__=void 0,delete e.__,e}var Am=function(t,n,r){this.path=t,this.matcher=n,this.delegate=r};Am.prototype.to=function(t,n){var r=this.delegate;if(r&&r.willAddRoute&&(t=r.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),n){if(n.length===0)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,n,this.delegate)}};var Wo=function(t){this.routes=Ul(),this.children=Ul(),this.target=t};Wo.prototype.add=function(t,n){this.routes[t]=n};Wo.prototype.addChild=function(t,n,r,i){var o=new Wo(n);this.children[t]=o;var a=ic(t,o,i);i&&i.contextEntered&&i.contextEntered(n,a),r(a)};function ic(e,t,n){function r(i,o){var a=e+i;if(o)o(ic(a,t,n));else return new Am(a,t,n)}return r}function JN(e,t,n){for(var r=0,i=0;i0&&t.charCodeAt(0)===47&&(t=t.substr(1));for(var r=t.split("/"),i=void 0,o=void 0,a=0;a2&&a.slice(s-2)==="[]"&&(l=!0,a=a.slice(0,s-2),r[a]||(r[a]=[])),u=o[1]?Nd(o[1]):""),l?r[a].push(u):r[a]=u}return r};te.prototype.recognize=function(t){var n,r=[this.rootState],i={},o=!1,a=t.indexOf("#");a!==-1&&(t=t.substr(0,a));var s=t.indexOf("?");if(s!==-1){var l=t.substr(s+1,t.length);t=t.substr(0,s),i=this.parseQueryString(l)}t.charAt(0)!=="/"&&(t="/"+t);var u=t;te.ENCODE_AND_DECODE_PATH_SEGMENTS?t=Om(t):(t=decodeURI(t),u=decodeURI(u));var f=t.length;f>1&&t.charAt(f-1)==="/"&&(t=t.substr(0,f-1),u=u.substr(0,u.length-1),o=!0);for(var c=0;c=0)&&(n[i]=e[i]);return n}function _0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w0(e,t){return e.button===0&&(!t||t==="_self")&&!_0(e)}const S0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],x0="6";try{window.__reactRouterVersion=x0}catch{}const C0=C.createContext({isTransitioning:!1}),k0="startTransition",Pf=yy[k0];function $0(e){let{basename:t,children:n,future:r,window:i}=e,o=C.useRef();o.current==null&&(o.current=R1({window:i,v5Compat:!0}));let a=o.current,[s,l]=C.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=C.useCallback(c=>{u&&Pf?Pf(()=>l(c)):l(c)},[l,u]);return C.useLayoutEffect(()=>a.listen(f),[a,f]),C.createElement(y0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const P0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",T0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ur=C.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,d=yv(t,S0),{basename:p}=C.useContext(sn),y,g=!1;if(typeof u=="string"&&T0.test(u)&&(y=u,P0))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),x=lr(S.pathname,p);S.origin===m.origin&&x!=null?u=x+S.search+S.hash:g=!0}catch{}let _=Z1(u,{relative:i}),v=A0(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function h(m){r&&r(m),m.defaultPrevented||v(m)}return C.createElement("a",zo({},d,{href:y||_,onClick:g||o?r:h,ref:n,target:l}))}),Ht=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,c=yv(t,E0),d=ya(l,{relative:c.relative}),p=wi(),y=C.useContext(fv),{navigator:g,basename:_}=C.useContext(sn),v=y!=null&&F0(d)&&u===!0,h=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,m=p.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(m=m.toLowerCase(),S=S?S.toLowerCase():null,h=h.toLowerCase()),S&&_&&(S=lr(S,_)||S);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let P=m===h||!a&&m.startsWith(h)&&m.charAt(x)==="/",T=S!=null&&(S===h||!a&&S.startsWith(h)&&S.charAt(h.length)==="/"),R={isActive:P,isPending:T,isTransitioning:v},G=P?r:void 0,I;typeof o=="function"?I=o(R):I=[o,P?"active":null,T?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let Fe=typeof s=="function"?s(R):s;return C.createElement(ur,zo({},c,{"aria-current":G,className:I,ref:n,style:Fe,to:l,unstable_viewTransition:u}),typeof f=="function"?f(R):f)});var Rl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rl||(Rl={}));var Tf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tf||(Tf={}));function R0(e){let t=C.useContext(va);return t||Z(!1),t}function A0(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=e0(),u=wi(),f=ya(e,{relative:a});return C.useCallback(c=>{if(w0(c,n)){c.preventDefault();let d=r!==void 0?r:Mo(u)===Mo(f);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function F0(e,t){t===void 0&&(t={});let n=C.useContext(C0);n==null&&Z(!1);let{basename:r}=R0(Rl.useViewTransitionState),i=ya(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pl(i.pathname,a)!=null||Pl(i.pathname,o)!=null}function O0(){return w.jsx("a",{href:"#main-content",className:"element-invisible element-focusable skip-link",children:"Skip to main content"})}function I0(){function e(){try{const i=localStorage.getItem("theme-vanlife");return i?JSON.parse(i):!1}catch(i){return console.error("Error parsing theme from localStorage:",i),!1}}const[t,n]=C.useState(e);C.useEffect(()=>{document.documentElement.classList.toggle("lightmode",t),localStorage.setItem("theme-vanlife",t)},[t]);function r(){n(i=>!i)}return w.jsxs("div",{className:"theme-toggler",children:[w.jsxs("p",{className:"light",children:["Light",w.jsx("span",{className:"visually-hidden",children:t?" theme active":" theme inactive"})]}),w.jsx("button",{type:"button",onClick:r,"aria-pressed":t?"false":"true","aria-label":"Toggle theme",children:w.jsx("span",{})}),w.jsxs("p",{className:"dark",children:["Dark",w.jsx("span",{className:"visually-hidden",children:t?" theme inactive":" theme active"})]})]})}var gv={exports:{}},N0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",b0=N0,M0=b0;function _v(){}function wv(){}wv.resetWarningCache=_v;var j0=function(){function e(r,i,o,a,s,l){if(l!==M0){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wv,resetWarningCache:_v};return n.PropTypes=n,n};gv.exports=j0();var z0=gv.exports;const Sv=re(z0);var Ev={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rf=St.createContext&&St.createContext(Ev),L0=["attr","size","title"];function D0(e,t){if(e==null)return{};var n=U0(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U0(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;tSt.createElement(t.tag,Do({key:n},t.attr),xv(t.child)))}function Cv(e){return t=>St.createElement(q0,Lo({attr:Do({},e.attr)},t),xv(e.child))}function q0(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=D0(e,L0),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),St.createElement("svg",Lo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Do(Do({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&St.createElement("title",null,o),e.children)};return Rf!==void 0?St.createElement(Rf.Consumer,null,n=>t(n)):t(Ev)}function W0(e){return Cv({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM281 385c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l71-71L136 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l182.1 0-71-71c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L393 239c9.4 9.4 9.4 24.6 0 33.9L281 385z"},child:[]}]})(e)}function V0(e){return Cv({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M64 104v88h96V96H72c-4.4 0-8 3.6-8 8zm482 88L465.1 96H384v96H546zm-226 0V96H224v96h96zM592 384H576c0 53-43 96-96 96s-96-43-96-96H256c0 53-43 96-96 96s-96-43-96-96H48c-26.5 0-48-21.5-48-48V104C0 64.2 32.2 32 72 32H192 352 465.1c18.9 0 36.8 8.3 49 22.8L625 186.5c9.7 11.5 15 26.1 15 41.2V336c0 26.5-21.5 48-48 48zm-64 0a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM160 432a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function G0(){return w.jsx("nav",{className:"site-navigation",children:w.jsxs("ul",{children:[w.jsx("li",{children:w.jsx(Ht,{to:"/","aria-current":"page",end:!0,children:"Home"})}),w.jsx("li",{children:w.jsx(Ht,{to:"about","aria-current":"page",children:"About"})}),w.jsx("li",{children:w.jsx(Ht,{to:"vans","aria-current":"page",children:"Vans"})}),w.jsx("li",{children:w.jsx(Ht,{to:"host","aria-current":"page",children:"Host"})})]})})}function kv({title:e}){return w.jsxs("header",{className:"site-header",children:[w.jsxs("p",{className:"site-header--h1",children:[w.jsx(V0,{})," ",w.jsxs("span",{children:["#",e]})]}),w.jsx(G0,{})]})}kv.propTypes={title:Sv.string};function $v({gitRepo:e}){return w.jsx("footer",{className:"site-footer",children:w.jsx("a",{href:`https://github.com/chrisnajman/${e}`,target:"_blank",rel:"noopener noreferrer",children:"Git Repository"})})}$v.propTypes={gitRepo:Sv.string};function Y0(){return w.jsxs(w.Fragment,{children:[w.jsx(O0,{}),w.jsx(I0,{}),w.jsxs("div",{className:"site-container",children:[w.jsx(kv,{title:"Vanlife"}),w.jsx("main",{id:"main-content",className:"main-content",children:w.jsx(mv,{})}),w.jsx($v,{gitRepo:"vanlife"})]})]})}function Q0(){return w.jsxs("div",{className:"home-container content-container",children:[w.jsxs("h1",{children:["You","'","ve got the travel plans, we","'","ve got the travel vans."]}),w.jsx("p",{children:"Add adventure to your life by joining the #vanlife movement. Rent the perfect van to make your perfect road trip."}),w.jsx(ur,{to:"vans",className:"link-button",children:"Find your van"})]})}function J0(){return w.jsx("div",{className:"about-page-container content-container",children:w.jsxs("div",{className:"about-page-content",children:[w.jsxs("h1",{children:["Don","'","t squeeze in a sedan when you could relax in a van."]}),w.jsx("p",{children:"Our mission is to enliven your road trip with the perfect travel van rental. Our vans are recertified before each trip to ensure your travel plans can go off without a hitch."}),w.jsx("p",{children:"Our team is full of vanlife enthusiasts who know firsthand the magic of touring the world on 4 wheels."}),w.jsxs("h2",{children:[w.jsx("span",{children:"Your destination is waiting."}),w.jsx("span",{children:"Your van is ready."})]}),w.jsx(ur,{className:"link-button",to:"/vans",children:"Explore our vans"})]})})}function X0(){const[e,t]=C.useState([]);C.useEffect(()=>{async function r(){try{const o=await(await fetch("/api/vans")).json();t(o.vans)}catch(i){console.log(i)}}r()},[]);const n=e.map(r=>w.jsx("li",{children:w.jsxs(ur,{className:"link-button",to:r.id,"aria-label":`View details for ${r.name}, + priced at £${r.price} per day`,children:[w.jsx("p",{children:r.name}),w.jsxs("picture",{children:[w.jsx("source",{srcSet:r.imageUrlWebp,type:"image/webp"}),w.jsx("img",{className:"van-image",src:r.imageUrlPng,alt:`The ${r.name} van`,loading:"lazy",width:"881",height:"881"})]}),w.jsxs("ul",{className:"van-footer",children:[w.jsxs("li",{children:["Price: £",r.price,"/day"]}),w.jsxs("li",{children:["Type: ",w.jsx("span",{className:"van-type",children:r.type})]})]}),w.jsx(W0,{"aria-hidden":"true"})]})},r.id));return w.jsxs("div",{className:"vans-container content-container",children:[w.jsx("h1",{children:"Explore our van options"}),e?w.jsx("ul",{className:"van-list",children:n}):"Loading ..."]})}function Z0(){return w.jsx("h1",{children:"Page Not Found"})}function e_(){const e=i0(),[t,n]=C.useState(null);return C.useEffect(()=>{async function r(){try{const o=await(await fetch(`/api/vans/${e.id}`)).json();n(o.vans)}catch(i){console.log(i)}}r()},[e.id]),w.jsxs("div",{className:"van-detail-container content-container",children:[w.jsxs(ur,{className:"back-link link-button",to:"/vans",children:[" ","Back to Vans list"]}),t?w.jsxs(w.Fragment,{children:[w.jsxs("h1",{children:[t.name,": Details"]}),w.jsxs("picture",{children:[w.jsx("source",{srcSet:t.imageUrlWebp,type:"image/webp"}),w.jsx("img",{className:"van-image",src:t.imageUrlPng,alt:`The ${t.name} van`,loading:"lazy",width:"881",height:"881"})]}),w.jsx("p",{children:t.description}),w.jsxs("ul",{className:"van-footer",children:[w.jsxs("li",{children:["Price: £",t.price,"/day"]}),w.jsxs("li",{children:["Type: ",w.jsx("span",{className:"van-type",children:t.type})]})]}),w.jsx(ur,{className:"link-button cta",to:"",children:"Rent this van"})]}):w.jsx("p",{children:"Loading ..."})]})}function t_(){return w.jsxs(w.Fragment,{children:[w.jsx("nav",{className:"site-navigation hosts-nav",children:w.jsxs("ul",{children:[w.jsx("li",{children:w.jsx(Ht,{to:"/host","aria-current":"page",end:!0,children:"Dashboard"})}),w.jsx("li",{children:w.jsx(Ht,{to:"income","aria-current":"page",end:!0,children:"Income"})}),w.jsx("li",{children:w.jsx(Ht,{to:"host-vans","aria-current":"page",children:"Vans"})}),w.jsx("li",{children:w.jsx(Ht,{to:"reviews","aria-current":"page",end:!0,children:"Reviews"})})]})}),w.jsx(mv,{})]})}function n_(){return w.jsx("div",{className:"hosts-container content-container hosts-dashboard",children:w.jsx("h1",{children:"Dashboard Updated"})})}function r_(){return w.jsx("div",{className:"hosts-container content-container hosts-income",children:w.jsx("h1",{children:"Income"})})}function i_(){return w.jsx("div",{className:"hosts-container content-container hosts-reviews",children:w.jsx("h1",{children:"Reviews"})})}function o_(){return w.jsx("div",{className:"hosts-container content-container host-vans",children:w.jsx("h1",{children:"Your Listed Vans"})})}function a_(){return w.jsx("div",{className:"hosts-container content-container host-van-detail",children:w.jsx("h1",{children:"Your Listed Van Details"})})}function s_(){return w.jsx($0,{basename:"/vanlife",children:w.jsx(g0,{children:w.jsxs(Oe,{element:w.jsx(Y0,{}),children:[w.jsx(Oe,{path:"/",element:w.jsx(Q0,{})}),w.jsx(Oe,{path:"about",element:w.jsx(J0,{})}),w.jsx(Oe,{path:"vans",element:w.jsx(X0,{})}),w.jsx(Oe,{path:"vans/:id",element:w.jsx(e_,{})}),w.jsxs(Oe,{path:"host",element:w.jsx(t_,{}),children:[w.jsx(Oe,{index:!0,element:w.jsx(n_,{})}),w.jsx(Oe,{path:"income",element:w.jsx(r_,{})}),w.jsx(Oe,{path:"host-vans",element:w.jsx(o_,{})}),w.jsx(Oe,{path:"host-vans/:id",element:w.jsx(a_,{})}),w.jsx(Oe,{path:"reviews",element:w.jsx(i_,{})})]}),w.jsx(Oe,{path:"*",element:w.jsx(Z0,{})})]})})})}var l_=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Pv=l_,u_=Pv,c_=typeof self=="object"&&self&&self.Object===Object&&self,f_=u_||c_||Function("return this")(),mt=f_,d_=mt,h_=d_.Symbol,vr=h_,Ff=vr,Tv=Object.prototype,p_=Tv.hasOwnProperty,v_=Tv.toString,Ir=Ff?Ff.toStringTag:void 0;function m_(e){var t=p_.call(e,Ir),n=e[Ir];try{e[Ir]=void 0;var r=!0}catch{}var i=v_.call(e);return r&&(t?e[Ir]=n:delete e[Ir]),i}var y_=m_,g_=Object.prototype,__=g_.toString;function w_(e){return __.call(e)}var S_=w_,Of=vr,E_=y_,x_=S_,C_="[object Null]",k_="[object Undefined]",If=Of?Of.toStringTag:void 0;function $_(e){return e==null?e===void 0?k_:C_:If&&If in Object(e)?E_(e):x_(e)}var mr=$_;function P_(e,t){return function(n){return e(t(n))}}var Rv=P_,T_=Rv,R_=T_(Object.getPrototypeOf,Object),Du=R_;function A_(e){return e!=null&&typeof e=="object"}var ln=A_,F_=mr,O_=Du,I_=ln,N_="[object Object]",b_=Function.prototype,M_=Object.prototype,Av=b_.toString,j_=M_.hasOwnProperty,z_=Av.call(Object);function L_(e){if(!I_(e)||F_(e)!=N_)return!1;var t=O_(e);if(t===null)return!0;var n=j_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Av.call(n)==z_}var D_=L_;const Al=re(D_);function U_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var At=U_,B_=mr,H_=At,K_="[object AsyncFunction]",q_="[object Function]",W_="[object GeneratorFunction]",V_="[object Proxy]";function G_(e){if(!H_(e))return!1;var t=B_(e);return t==q_||t==W_||t==K_||t==V_}var Uu=G_;const Nf=re(Uu);var Y_=mt,Q_=Y_["__core-js_shared__"],J_=Q_,ps=J_,bf=function(){var e=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X_(e){return!!bf&&bf in e}var Z_=X_,ew=Function.prototype,tw=ew.toString;function nw(e){if(e!=null){try{return tw.call(e)}catch{}try{return e+""}catch{}}return""}var Fv=nw,rw=Uu,iw=Z_,ow=At,aw=Fv,sw=/[\\^$.*+?()[\]{}|]/g,lw=/^\[object .+?Constructor\]$/,uw=Function.prototype,cw=Object.prototype,fw=uw.toString,dw=cw.hasOwnProperty,hw=RegExp("^"+fw.call(dw).replace(sw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pw(e){if(!ow(e)||iw(e))return!1;var t=rw(e)?hw:lw;return t.test(aw(e))}var vw=pw;function mw(e,t){return e==null?void 0:e[t]}var yw=mw,gw=vw,_w=yw;function ww(e,t){var n=_w(e,t);return gw(n)?n:void 0}var Rn=ww,Sw=Rn,Ew=function(){try{var e=Sw(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ov=Ew,Mf=Ov;function xw(e,t,n){t=="__proto__"&&Mf?Mf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Iv=xw;function Cw(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var kw=Cw,$w=kw,Pw=$w(),Nv=Pw;function Tw(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=qw}var Bu=Ww,Vw=mr,Gw=Bu,Yw=ln,Qw="[object Arguments]",Jw="[object Array]",Xw="[object Boolean]",Zw="[object Date]",eS="[object Error]",tS="[object Function]",nS="[object Map]",rS="[object Number]",iS="[object Object]",oS="[object RegExp]",aS="[object Set]",sS="[object String]",lS="[object WeakMap]",uS="[object ArrayBuffer]",cS="[object DataView]",fS="[object Float32Array]",dS="[object Float64Array]",hS="[object Int8Array]",pS="[object Int16Array]",vS="[object Int32Array]",mS="[object Uint8Array]",yS="[object Uint8ClampedArray]",gS="[object Uint16Array]",_S="[object Uint32Array]",q={};q[fS]=q[dS]=q[hS]=q[pS]=q[vS]=q[mS]=q[yS]=q[gS]=q[_S]=!0;q[Qw]=q[Jw]=q[uS]=q[Xw]=q[cS]=q[Zw]=q[eS]=q[tS]=q[nS]=q[rS]=q[iS]=q[oS]=q[aS]=q[sS]=q[lS]=!1;function wS(e){return Yw(e)&&Gw(e.length)&&!!q[Vw(e)]}var SS=wS;function ES(e){return function(t){return e(t)}}var Hu=ES,Bo={exports:{}};Bo.exports;(function(e,t){var n=Pv,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Bo,Bo.exports);var Ku=Bo.exports,xS=SS,CS=Hu,zf=Ku,Lf=zf&&zf.isTypedArray,kS=Lf?CS(Lf):xS,qu=kS,$S=Rw,PS=ga,TS=Qe,RS=_a,AS=wa,FS=qu,OS=Object.prototype,IS=OS.hasOwnProperty;function NS(e,t){var n=TS(e),r=!n&&PS(e),i=!n&&!r&&RS(e),o=!n&&!r&&!i&&FS(e),a=n||r||i||o,s=a?$S(e.length,String):[],l=s.length;for(var u in e)(t||IS.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||AS(u,l)))&&s.push(u);return s}var Mv=NS,bS=Object.prototype;function MS(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bS;return e===n}var Si=MS,jS=Rv,zS=jS(Object.keys,Object),LS=zS,DS=Si,US=LS,BS=Object.prototype,HS=BS.hasOwnProperty;function KS(e){if(!DS(e))return US(e);var t=[];for(var n in Object(e))HS.call(e,n)&&n!="constructor"&&t.push(n);return t}var jv=KS,qS=Uu,WS=Bu;function VS(e){return e!=null&&WS(e.length)&&!qS(e)}var Ft=VS,GS=Mv,YS=jv,QS=Ft;function JS(e){return QS(e)?GS(e):YS(e)}var un=JS,XS=Nv,ZS=un;function eE(e,t){return e&&XS(e,t,ZS)}var tE=eE;function nE(){this.__data__=[],this.size=0}var rE=nE;function iE(e,t){return e===t||e!==e&&t!==t}var Sa=iE,oE=Sa;function aE(e,t){for(var n=e.length;n--;)if(oE(e[n][0],t))return n;return-1}var Ea=aE,sE=Ea,lE=Array.prototype,uE=lE.splice;function cE(e){var t=this.__data__,n=sE(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uE.call(t,n,1),--this.size,!0}var fE=cE,dE=Ea;function hE(e){var t=this.__data__,n=dE(t,e);return n<0?void 0:t[n][1]}var pE=hE,vE=Ea;function mE(e){return vE(this.__data__,e)>-1}var yE=mE,gE=Ea;function _E(e,t){var n=this.__data__,r=gE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var wE=_E,SE=rE,EE=fE,xE=pE,CE=yE,kE=wE;function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=n&uC?new oC:void 0;for(o.set(e,t),o.set(t,e);++c-1}var MP=bP;function jP(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=XP){var u=t?null:QP(e);if(u)return JP(u);a=!1,i=YP,l=new WP}else l=t?[]:s;e:for(;++r0&&n(s)?t>1?im(s,t-1,n,r,i):oT(i,s):r||(i[i.length]=s)}return i}var sT=im,lT=sT;function uT(e){var t=e==null?0:e.length;return t?lT(e,1):[]}var om=uT;const am=re(om);var cT=Object.prototype.toString;function fT(e){return cT.call(e)==="[object Function]"}var sm=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ko=function(){function e(t,n){for(var r=0;r=0;n--)e[n]===t&&Array.prototype.splice.call(e,n,1)}function dT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var gs={},fd=function(){Ko(e,null,[{key:"getInstance",value:function(n){return gs[n]=gs[n]||new e,gs[n]}}]);function e(){sm(this,e),this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[],this.acronyms={},this.acronymRegex=/(?=a)b/}return Ko(e,[{key:"acronym",value:function(n){this.acronyms[n.toLowerCase()]=n;var r=[];for(var i in this.acronyms)dT(this.acronyms,i)&&r.push(this.acronyms[i]);this.acronymRegex=new RegExp(r.join("|"))}},{key:"plural",value:function(n,r){typeof n=="string"&&On(this.uncountables,n),On(this.uncountables,r),this.plurals.unshift([n,r])}},{key:"singular",value:function(n,r){typeof n=="string"&&On(this.uncountables,n),On(this.uncountables,r),this.singulars.unshift([n,r])}},{key:"irregular",value:function(n,r){On(this.uncountables,n),On(this.uncountables,r);var i=n[0],o=n.substr(1),a=r[0],s=r.substr(1);if(i.toUpperCase()===a.toUpperCase())this.plural(new RegExp("("+i+")"+o+"$","i"),"$1"+s),this.plural(new RegExp("("+a+")"+s+"$","i"),"$1"+s),this.singular(new RegExp("("+i+")"+o+"$","i"),"$1"+o),this.singular(new RegExp("("+a+")"+s+"$","i"),"$1"+o);else{var l=cd(o),u=cd(s);this.plural(new RegExp(i.toUpperCase()+l+"$"),a.toUpperCase()+s),this.plural(new RegExp(i.toLowerCase()+l+"$"),a.toLowerCase()+s),this.plural(new RegExp(a.toUpperCase()+u+"$"),a.toUpperCase()+s),this.plural(new RegExp(a.toLowerCase()+u+"$"),a.toLowerCase()+s),this.singular(new RegExp(i.toUpperCase()+l+"$"),i.toUpperCase()+o),this.singular(new RegExp(i.toLowerCase()+l+"$"),i.toLowerCase()+o),this.singular(new RegExp(a.toUpperCase()+u+"$"),i.toUpperCase()+o),this.singular(new RegExp(a.toLowerCase()+u+"$"),i.toLowerCase()+o)}}},{key:"uncountable",value:function(){for(var n=arguments.length,r=Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:"all";n==="all"?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[n]=[]}}]),e}();function hT(e){e.plural(/$/,"s"),e.plural(/s$/i,"s"),e.plural(/^(ax|test)is$/i,"$1es"),e.plural(/(octop|vir)us$/i,"$1i"),e.plural(/(octop|vir)i$/i,"$1i"),e.plural(/(alias|status)$/i,"$1es"),e.plural(/(bu)s$/i,"$1ses"),e.plural(/(buffal|tomat)o$/i,"$1oes"),e.plural(/([ti])um$/i,"$1a"),e.plural(/([ti])a$/i,"$1a"),e.plural(/sis$/i,"ses"),e.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),e.plural(/(hive)$/i,"$1s"),e.plural(/([^aeiouy]|qu)y$/i,"$1ies"),e.plural(/(x|ch|ss|sh)$/i,"$1es"),e.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),e.plural(/^(m|l)ouse$/i,"$1ice"),e.plural(/^(m|l)ice$/i,"$1ice"),e.plural(/^(ox)$/i,"$1en"),e.plural(/^(oxen)$/i,"$1"),e.plural(/(quiz)$/i,"$1zes"),e.singular(/s$/i,""),e.singular(/(ss)$/i,"$1"),e.singular(/(n)ews$/i,"$1ews"),e.singular(/([ti])a$/i,"$1um"),e.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"),e.singular(/(^analy)(sis|ses)$/i,"$1sis"),e.singular(/([^f])ves$/i,"$1fe"),e.singular(/(hive)s$/i,"$1"),e.singular(/(tive)s$/i,"$1"),e.singular(/([lr])ves$/i,"$1f"),e.singular(/([^aeiouy]|qu)ies$/i,"$1y"),e.singular(/(s)eries$/i,"$1eries"),e.singular(/(m)ovies$/i,"$1ovie"),e.singular(/(x|ch|ss|sh)es$/i,"$1"),e.singular(/^(m|l)ice$/i,"$1ouse"),e.singular(/(bus)(es)?$/i,"$1"),e.singular(/(o)es$/i,"$1"),e.singular(/(shoe)s$/i,"$1"),e.singular(/(cris|test)(is|es)$/i,"$1is"),e.singular(/^(a)x[ie]s$/i,"$1xis"),e.singular(/(octop|vir)(us|i)$/i,"$1us"),e.singular(/(alias|status)(es)?$/i,"$1"),e.singular(/^(ox)en/i,"$1"),e.singular(/(vert|ind)ices$/i,"$1ex"),e.singular(/(matr)ices$/i,"$1ix"),e.singular(/(quiz)zes$/i,"$1"),e.singular(/(database)s$/i,"$1"),e.irregular("person","people"),e.irregular("man","men"),e.irregular("child","children"),e.irregular("sex","sexes"),e.irregular("move","moves"),e.irregular("zombie","zombies"),e.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}var dd={en:hT};function $n(e,t){if(fT(e)&&(t=e,e=null),e=e||"en",t)t(fd.getInstance(e));else return fd.getInstance(e)}for(var hd in dd)$n(hd,dd[hd]);function lm(e,t){var n=""+e,r,i,o;if(n.length===0)return n;var a=n.toLowerCase().match(/\b\w+$/);if(a&&$n().uncountables.indexOf(a[0])>-1)return n;for(var s=0,l=t.length;s1&&arguments[1]!==void 0?arguments[1]:"en";return lm(e,$n(t).plurals)}function cm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en";return lm(e,$n(t).singulars)}function fm(e){var t=e==null?"":String(e);return t.charAt(0).toUpperCase()+t.slice(1)}function pT(e,t){var n=""+e;return n=n.replace(new RegExp("^(?:"+$n().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(r){return r.toLowerCase()}),n=n.replace(/(?:_|(\/))([a-z\d]*)/gi,function(r,i,o,a,s){return i||(i=""),""+i+($n().acronyms[o]||fm(o))}),n}function vT(e){var t=""+e;return t=t.replace(new RegExp("(?:([A-Za-z\\d])|^)("+$n().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(n,r,i){return""+(r||"")+(r?"_":"")+i.toLowerCase()}),t=t.replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2"),t=t.replace(/([a-z\d])([A-Z])/g,"$1_$2"),t=t.replace(/-/g,"_"),t.toLowerCase()}function mT(e){return e.replace(/_/g,"-")}var pd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O","×":"x",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",Þ:"Th",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",þ:"th",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",ĝ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"L",ł:"l",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"'n",Ŋ:"NG",ŋ:"ng",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"E",Ж:"ZH",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"KH",Ц:"C",Ч:"CH",Ш:"SH",Щ:"SHCH",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"YU",Я:"YA",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"shch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},yT="?",_s={};(function(){Ko(e,null,[{key:"getInstance",value:function(n){return _s[n]=_s[n]||new e,_s[n]}}]);function e(){sm(this,e),this.approximations={};for(var t in pd)this.approximate(t,pd[t])}return Ko(e,[{key:"approximate",value:function(n,r){this.approximations[n]=r}},{key:"transliterate",value:function(n,r){var i=this;return n.replace(/[^\u0000-\u007f]/g,function(o){return i.approximations[o]||r||yT})}}]),e})();function gT(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:_T(e,t,n)}var ST=wT,ET="\\ud800-\\udfff",xT="\\u0300-\\u036f",CT="\\ufe20-\\ufe2f",kT="\\u20d0-\\u20ff",$T=xT+CT+kT,PT="\\ufe0e\\ufe0f",TT="\\u200d",RT=RegExp("["+TT+ET+$T+PT+"]");function AT(e){return RT.test(e)}var hm=AT;function FT(e){return e.split("")}var OT=FT,pm="\\ud800-\\udfff",IT="\\u0300-\\u036f",NT="\\ufe20-\\ufe2f",bT="\\u20d0-\\u20ff",MT=IT+NT+bT,jT="\\ufe0e\\ufe0f",zT="["+pm+"]",Ml="["+MT+"]",jl="\\ud83c[\\udffb-\\udfff]",LT="(?:"+Ml+"|"+jl+")",vm="[^"+pm+"]",mm="(?:\\ud83c[\\udde6-\\uddff]){2}",ym="[\\ud800-\\udbff][\\udc00-\\udfff]",DT="\\u200d",gm=LT+"?",_m="["+jT+"]?",UT="(?:"+DT+"(?:"+[vm,mm,ym].join("|")+")"+_m+gm+")*",BT=_m+gm+UT,HT="(?:"+[vm+Ml+"?",Ml,mm,ym,zT].join("|")+")",KT=RegExp(jl+"(?="+jl+")|"+HT+BT,"g");function qT(e){return e.match(KT)||[]}var WT=qT,VT=OT,GT=hm,YT=WT;function QT(e){return GT(e)?YT(e):VT(e)}var JT=QT,XT=ST,ZT=hm,eR=JT,tR=Xv;function nR(e){return function(t){t=tR(t);var n=ZT(t)?eR(t):void 0,r=n?n[0]:t.charAt(0),i=n?XT(n,1).join(""):t.slice(1);return r[e]()+i}}var rR=nR,iR=rR,oR=iR("toLowerCase"),aR=oR;const sR=re(aR);var lR=Xu;function uR(e,t){return lR(e,t)}var cR=uR;const zl=re(cR);var fR=Ft;function dR(e,t){return function(n,r){if(n==null)return n;if(!fR(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o0){if(++t>=cO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pO=hO,vO=uO,mO=pO,yO=mO(vO),$m=yO,gO=Ta,_O=km,wO=$m;function SO(e,t){return wO(_O(e,t,gO),e+"")}var Pm=SO,EO=rc,xO=wm,CO=tO,kO=Pm,$O=Ft,PO=kO(function(e,t,n){var r=-1,i=typeof t=="function",o=$O(e)?Array(e.length):[];return xO(e,function(a){o[++r]=i?EO(t,a,n):CO(a,t,n)}),o}),TO=PO;const Kt=re(TO);function RO(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&XI(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r-1?i[o?t[a]:a]:void 0}}var vN=pN,mN=/\s/;function yN(e){for(var t=e.length;t--&&mN.test(e.charAt(t)););return t}var gN=yN,_N=gN,wN=/^\s+/;function SN(e){return e&&e.slice(0,_N(e)+1).replace(wN,"")}var EN=SN,xN=EN,Pd=At,CN=$a,Td=NaN,kN=/^[-+]0x[0-9a-f]+$/i,$N=/^0b[01]+$/i,PN=/^0o[0-7]+$/i,TN=parseInt;function RN(e){if(typeof e=="number")return e;if(CN(e))return Td;if(Pd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xN(e);var n=$N.test(e);return n||PN.test(e)?TN(e.slice(2),n?2:8):kN.test(e)?Td:+e}var AN=RN,FN=AN,Rd=1/0,ON=17976931348623157e292;function IN(e){if(!e)return e===0?e:0;if(e=FN(e),e===Rd||e===-Rd){var t=e<0?-1:1;return t*ON}return e===e?e:0}var NN=IN,bN=NN;function MN(e){var t=bN(e),n=t%1;return t===t?n?t-n:t:0}var Rm=MN,jN=rm,zN=Ra,LN=Rm,DN=Math.max;function UN(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:LN(n);return i<0&&(i=DN(r+i,0)),jN(e,zN(t),i)}var BN=UN,HN=vN,KN=BN,qN=HN(KN),WN=qN;const Ss=re(WN);var VN=Rm;function GN(e){return typeof e=="number"&&e==VN(e)}var YN=GN;const Ad=re(YN);typeof Ke<"u"&&typeof Ke.self>"u"&&(Ke.self={},Ke.__pretenderNodePolyfill=!0);var QN=Object.create;function Ul(){var e=QN(null);return e.__=void 0,delete e.__,e}var Am=function(t,n,r){this.path=t,this.matcher=n,this.delegate=r};Am.prototype.to=function(t,n){var r=this.delegate;if(r&&r.willAddRoute&&(t=r.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),n){if(n.length===0)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,n,this.delegate)}};var Wo=function(t){this.routes=Ul(),this.children=Ul(),this.target=t};Wo.prototype.add=function(t,n){this.routes[t]=n};Wo.prototype.addChild=function(t,n,r,i){var o=new Wo(n);this.children[t]=o;var a=ic(t,o,i);i&&i.contextEntered&&i.contextEntered(n,a),r(a)};function ic(e,t,n){function r(i,o){var a=e+i;if(o)o(ic(a,t,n));else return new Am(a,t,n)}return r}function JN(e,t,n){for(var r=0,i=0;i0&&t.charCodeAt(0)===47&&(t=t.substr(1));for(var r=t.split("/"),i=void 0,o=void 0,a=0;a2&&a.slice(s-2)==="[]"&&(l=!0,a=a.slice(0,s-2),r[a]||(r[a]=[])),u=o[1]?Nd(o[1]):""),l?r[a].push(u):r[a]=u}return r};te.prototype.recognize=function(t){var n,r=[this.rootState],i={},o=!1,a=t.indexOf("#");a!==-1&&(t=t.substr(0,a));var s=t.indexOf("?");if(s!==-1){var l=t.substr(s+1,t.length);t=t.substr(0,s),i=this.parseQueryString(l)}t.charAt(0)!=="/"&&(t="/"+t);var u=t;te.ENCODE_AND_DECODE_PATH_SEGMENTS?t=Om(t):(t=decodeURI(t),u=decodeURI(u));var f=t.length;f>1&&t.charAt(f-1)==="/"&&(t=t.substr(0,f-1),u=u.substr(0,u.length-1),o=!0);for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:[],o;try{this.handler instanceof Vm&&this.handler.setRequest(n),o=this.handleWithMiddleware(n,[].concat(er(i),[function(s,l){return r.handler.handle(l)}]))}catch(s){if(s instanceof Xo)o=new He(500,{},s);else{var a=s.message||s;o=new He(500,{},{message:a,stack:"Mirage: Your ".concat(n.method," handler for the url ").concat(n.url,` threw an error: -`).concat(s.stack||s)})}}return this._toMirageResponse(o)}},{key:"handleWithMiddleware",value:function(n,r){var i=this,o=Wb(r),a=o[0],s=o.slice(1);return a(this.schema,n,function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n;return i.handleWithMiddleware(l,s)})}},{key:"_toMirageResponse",value:function(n){var r=this,i;return new Promise(function(o,a){Promise.resolve(n).then(function(s){if(s instanceof He)i=n;else{var l=r._getCodeForResponse(s);i=new He(l,{},s)}o(i)}).catch(a)})}},{key:"_getCodeForResponse",value:function(n){var r;return this.customizedCode?r=this.customizedCode:(r=sM[this.verb],r===204&&n!==void 0&&n!==""&&(r=200)),r}},{key:"serialize",value:function(n,r){return n.data=this.serializerOrRegistry.serialize(n.data,r),n}}]),e}();function Ym(e,t){var n=function(r){at(o,r);var i=st(o);function o(){var a;L(this,o);for(var s=arguments.length,l=new Array(s),u=0;u-1&&this.attrs[i].splice(o,1)}else this.attrs[i]=null}},{key:"isSaving",get:function(){return this._schema.isSaving[this.toString()]}},{key:"_setupAttr",value:function(n,r){var i=this.associationKeys.has(n)||this.associationIdKeys.has(n);i||(this.attrs[n]=r,this._definePlainAttribute(n))}},{key:"_definePlainAttribute",value:function(n){var r=Object.getOwnPropertyDescriptor(this,n);r&&r.get||(Object.prototype.hasOwnProperty.call(this.attrs,n)||(this.attrs[n]=null),Object.defineProperty(this,n,{get:function(){return this.attrs[n]},set:function(o){this.attrs[n]=o}}))}},{key:"_setupRelationship",value:function(n,r){var i=this.associationIdKeys.has(n)||this.fks.includes(n),o=this.associationKeys.has(n);i&&(r!=null&&this._validateForeignKeyExistsInDatabase(n,r),this.attrs[n]=r),o&&(this[n]=r)}},{key:"_validateAttr",value:function(n,r){if(this.associationKeys.has(n)){var i=this.associationFor(n),o=r===null;if(i instanceof zr){var a=r instanceof dt||r instanceof be,s=Array.isArray(r)&&r.every(function(p){return p instanceof e});A(a||s||o,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a HasMany relationship. You must pass in a Collection, PolymorphicCollection, array of Models, or null."))}else i instanceof Gr&&A(r instanceof e||o,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a BelongsTo relationship. You must pass in a Model or null."))}if(this.associationIdKeys.has(n)&&n.endsWith("Ids")){var l=Array.isArray(r),u=r===null;A(l||u,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a foreign key for a HasMany relationship. You must pass in an array of ids or null."))}{var f=r instanceof e||r instanceof dt||r instanceof be,c=Array.isArray(r)&&r.length&&r.every(function(p){return p instanceof e});if(f||c){var d=r;A(this.associationKeys.has(n),"You're trying to create a ".concat(this.modelName," model and you passed in a ").concat(d.toString()," under the ").concat(n," key, but you haven't defined that key as an association on your model."))}}}},{key:"_validateForeignKeyExistsInDatabase",value:function(n,r){var i=this;if(Array.isArray(r)){var o=this.hasManyAssociationFks[n],a;o.isPolymorphic?(a=r.map(function(c){var d=c.type,p=c.id;return i._schema.db[i._schema.toInternalCollectionName(d)].find(p)}),a=Oa(a)):a=this._schema.db[this._schema.toInternalCollectionName(o.modelName)].find(r);var s=o.isPolymorphic?r.map(function(c){return"".concat(c.type,":").concat(c.id)}).join(","):r;A(a.length===r.length,"You're instantiating a ".concat(this.modelName," that has a ").concat(n," of ").concat(s,", but some of those records don't exist in the database."))}else{var l=this.belongsToAssociationFks[n],u;l.isPolymorphic?u=this._schema.db[this._schema.toInternalCollectionName(r.type)].find(r.id):u=this._schema.db[this._schema.toInternalCollectionName(l.modelName)].find(r);var f=l.isPolymorphic?"".concat(r.type,":").concat(r.id):r;A(u,"You're instantiating a ".concat(this.modelName," that has a ").concat(n," of ").concat(f,", but that record doesn't exist in the database."))}}},{key:"_saveAssociations",value:function(){this._saveBelongsToAssociations(),this._saveHasManyAssociations()}},{key:"_saveBelongsToAssociations",value:function(){var n=this;ws(this.belongsToAssociations).forEach(function(r){n._disassociateFromOldInverses(r),n._saveNewAssociates(r),n._associateWithNewInverses(r)})}},{key:"_saveHasManyAssociations",value:function(){var n=this;ws(this.hasManyAssociations).forEach(function(r){n._disassociateFromOldInverses(r),n._saveNewAssociates(r),n._associateWithNewInverses(r)})}},{key:"_disassociateFromOldInverses",value:function(n){n instanceof zr?this._disassociateFromHasManyInverses(n):n instanceof Gr&&this._disassociateFromBelongsToInverse(n)}},{key:"_disassociateFromHasManyInverses",value:function(n){var r=this,i=n.getForeignKey(),o=this._tempAssociations&&this._tempAssociations[n.name],a=this.attrs[i];if(o&&a){var s;n.isPolymorphic?s=a.map(function(l){var u=l.type,f=l.id;return r._schema[r._schema.toCollectionName(u)].find(f)}):s=this._schema[this._schema.toCollectionName(n.modelName)].find(a||[]).models,s.filter(function(l){return!l.isSaving&&!o.includes(l)&&l.hasInverseFor(n)}).forEach(function(l){var u=l.inverseFor(n);l.disassociate(r,u),l.save()})}}},{key:"_disassociateFromBelongsToInverse",value:function(n){var r=n.getForeignKey(),i=this._tempAssociations&&this._tempAssociations[n.name],o=this.attrs[r];if(i!==void 0&&o){var a;if(n.isPolymorphic?a=this._schema[this._schema.toCollectionName(o.type)].find(o.id):a=this._schema[this._schema.toCollectionName(n.modelName)].find(o),a.hasInverseFor(n)){var s=a.inverseFor(n);a.disassociate(this,s),a._updateInDb(a.attrs)}}}},{key:"_disassociateFromDependents",value:function(){var n=this;this._schema.dependentAssociationsFor(this.modelName).forEach(function(r){r.disassociateAllDependentsFromTarget(n)})}},{key:"_saveNewAssociates",value:function(n){var r=n.getForeignKey(),i=this._tempAssociations&&this._tempAssociations[n.name];if(i!==void 0){if(this.__isSavingNewChildren=!0,delete this._tempAssociations[n.name],i instanceof dt)i.models.filter(function(a){return!a.isSaving}).forEach(function(a){a.save()}),this._updateInDb(ie({},r,i.models.map(function(a){return a.id})));else if(i instanceof be)i.models.filter(function(a){return!a.isSaving}).forEach(function(a){a.save()}),this._updateInDb(ie({},r,i.models.map(function(a){return{type:a.modelName,id:a.id}})));else if(i===null)this._updateInDb(ie({},r,null));else if(this.equals(i))this._updateInDb(ie({},r,this.id));else if(!i.isSaving){i.save(),this._syncTempAssociations(i);var o;n.isPolymorphic?o={id:i.id,type:i.modelName}:o=i.id,this._updateInDb(ie({},r,o))}this.__isSavingNewChildren=!1}}},{key:"_associateWithNewInverses",value:function(n){var r=this;if(!this.__isSavingNewChildren){var i=this[n.name];i instanceof e?this._associateModelWithInverse(i,n):(i instanceof dt||i instanceof be)&&i.models.forEach(function(o){r._associateModelWithInverse(o,n)}),delete this._tempAssociations[n.name]}}},{key:"_associateModelWithInverse",value:function(n,r){var i=this;if(n.hasInverseFor(r)){var o=n.inverseFor(r),a=o.getForeignKey(),s=this.id;if(o instanceof Gr){var l;o.isPolymorphic?l={type:this.modelName,id:s}:l=s,this._schema.db[this._schema.toInternalCollectionName(n.modelName)].update(n.id,ie({},a,l))}else{var u=this._schema.db[this._schema.toInternalCollectionName(n.modelName)],f=u.find(n.id)[o.getForeignKey()]||[],c=Object.assign([],f),d,p;o.isPolymorphic?(d={type:this.modelName,id:s},p=c.some(function(y){return y.type==i.modelName&&y.id==s})):(d=s,p=c.includes(s)),p||c.push(d),u.update(n.id,ie({},a,c))}}}},{key:"_updateInDb",value:function(n){this.attrs=this._schema.db[this._schema.toInternalCollectionName(this.modelName)].update(this.attrs.id,n)}},{key:"_syncTempAssociations",value:function(n){var r=this;Object.keys(this._tempAssociations).forEach(function(i){r._tempAssociations[i]&&r._tempAssociations[i].toString()===n.toString()&&(r._tempAssociations[i]=n)})}},{key:"toString",value:function(){var n=this.id?"(".concat(this.id,")"):"";return"model:".concat(this.modelName).concat(n)}},{key:"equals",value:function(n){return this.toString()===n.toString()}}]),e}();Fi.extend=Ym;Fi.findBelongsToAssociation=function(e){return this.prototype.belongsToAssociations[e]};var Ye=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L(this,e),this.registry=t,this.type=n,this.request=i,this.attrs=this.attrs||void 0,this.include=this.include||[],this.root=this.root||void 0,this.embed=this.embed||void 0,this._embedFn=Nf(this.embed)?this.embed:function(){return!!r.embed},this.serializeIds=this.serializeIds||void 0,this.primaryKey=this.primaryKey||void 0}return H(e,[{key:"serialize",value:function(n){return this.primaryResource=n,this.buildPayload(n)}},{key:"normalize",value:function(n){return n}},{key:"buildPayload",value:function(n,r,i,o){if(!n&&Ll(r))return o;if(n){var a=this.getHashForPrimaryResource(n),s=Ne(a,2),l=s[0],u=s[1],f=this.isCollection(n)?n.models:[n];return this.buildPayload(void 0,u,f,l)}else{var c=r.shift(),d=this.getHashForIncludedResource(c),p=Ne(d,2),y=p[0],g=p[1],_=g.filter(function(m){return!i.map(function(w){return w.toString()}).includes(m.toString())}).concat(r),v=(this.isCollection(c)?c.models:[c]).concat(i),h=this.mergePayloads(o,y);return this.buildPayload(void 0,_,v,h)}}},{key:"getHashForPrimaryResource",value:function(n){var r=this.getHashForResource(n),i=Ne(r,2),o=i[0],a=i[1],s;if(this.root){A(!(n instanceof be),"The base Serializer class cannot serialize a top-level PolymorphicCollection when root is true, since PolymorphicCollections have no type.");var l=this.serializerFor(n.modelName),u=l.keyForResource(n);s=ie({},u,o)}else s=o;return[s,a]}},{key:"getHashForIncludedResource",value:function(n){var r,i;if(n instanceof be)r={},i=n.models;else{var o=this.serializerFor(n.modelName),a=o.getHashForResource(n),s=Ne(a,2),l=s[0],u=s[1],f=o.keyForRelationship(n.modelName);r=Array.isArray(l)?ie({},f,l):ie({},f,[l]),i=u}return[r,i]}},{key:"getHashForResource",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=this,l;a&&n.modelName&&(s=this.serializerFor(n.modelName)),this.isModel(n)?l=s._hashForModel(n,i,o):l=n.models.map(function(f){var c=s;return c||(c=r.serializerFor(f.modelName)),c._hashForModel(f,i,o)});var u=Tm(Oa(am(s.getKeysForIncluded().map(function(f){return r.isCollection(n)?n.models.map(function(c){return c[f]}):n[f]}))),function(f){return f.toString()});return[l,u]}},{key:"mergePayloads",value:function(n,r){var i,o=Object.keys(r),a=Ne(o,1),s=a[0];return n[s]?(i=n,i[s]=n[s].concat(r[s])):i=Object.assign(n,r),i}},{key:"keyForResource",value:function(n){var r=n.modelName;return this.isModel(n)?this.keyForModel(r):this.keyForCollection(r)}},{key:"keyForModel",value:function(n){return F(n)}},{key:"keyForCollection",value:function(n){return this._container.inflector.pluralize(this.keyForModel(n))}},{key:"_hashForModel",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this._attrsForModel(n);if(r&&n.fks.forEach(function(l){delete a[l]}),this.embed){var s=Object.assign({},o);s[n.modelName]=s[n.modelName]||{},s[n.modelName][n.id]=!0,this.getKeysForEmbedded().forEach(function(l){var u=n[l];if(u&&!em(s,"".concat(u.modelName,".").concat(u.id))){var f=i.getHashForResource(u,!0,s,!0),c=Ne(f,1),d=c[0],p=i.keyForEmbeddedRelationship(l);if(a[p]=d,i.isModel(u)){var y="".concat(F(l),"Id");delete a[y]}}})}return this._maybeAddAssociationIds(n,a)}},{key:"_attrsForModel",value:function(n){var r={};return this.attrs?r=this.attrs.reduce(function(i,o){return i[o]=n[o],i},{}):r=Object.assign(r,n.attrs),n.fks.forEach(function(i){return delete r[i]}),this._formatAttributeKeys(r)}},{key:"_maybeAddAssociationIds",value:function(n,r){var i=this,o=Object.assign({},r);return this.serializeIds==="always"?er(n.associationKeys).filter(function(a){return!i._embedFn(a)}).forEach(function(a){var s=n[a],l=n.associationFor(a);if(i.isCollection(s)){var u=i.keyForRelationshipIds(a);o[u]=n["".concat(i._container.inflector.singularize(a),"Ids")]}else if(i.isModel(s)&&l.isPolymorphic){var f=i.keyForPolymorphicForeignKeyType(a),c=i.keyForPolymorphicForeignKeyId(a);o[f]=n["".concat(a,"Id")].type,o[c]=n["".concat(a,"Id")].id}else if(s){var d=i.keyForForeignKey(a);o[d]=n["".concat(a,"Id")]}}):this.serializeIds==="included"&&this.getKeysForIncluded().forEach(function(a){var s=n[a],l=n.associationFor(a);if(i.isCollection(s)){var u=i.keyForRelationshipIds(a);o[u]=n["".concat(i._container.inflector.singularize(a),"Ids")]}else if(i.isModel(s)&&l.isPolymorphic){var f=i.keyForPolymorphicForeignKeyType(a),c=i.keyForPolymorphicForeignKeyId(a);o[f]=n["".concat(a,"Id")].type,o[c]=n["".concat(a,"Id")].id}else if(i.isModel(s)){var d=i.keyForForeignKey(a);o[d]=n["".concat(a,"Id")]}}),o}},{key:"keyForAttribute",value:function(n){return n==="id"?this.keyForId():n}},{key:"keyForRelationship",value:function(n){return F(this._container.inflector.pluralize(n))}},{key:"keyForEmbeddedRelationship",value:function(n){return F(n)}},{key:"keyForRelationshipIds",value:function(n){return"".concat(this._container.inflector.singularize(F(n)),"Ids")}},{key:"keyForForeignKey",value:function(n){return"".concat(F(n),"Id")}},{key:"keyForPolymorphicForeignKeyId",value:function(n){return"".concat(F(n),"Id")}},{key:"keyForPolymorphicForeignKeyType",value:function(n){return"".concat(F(n),"Type")}},{key:"isModel",value:function(n){return n instanceof Fi}},{key:"isCollection",value:function(n){return n instanceof dt||n instanceof be}},{key:"isModelOrCollection",value:function(n){return this.isModel(n)||this.isCollection(n)}},{key:"serializerFor",value:function(n){return this.registry.serializerFor(n)}},{key:"getAssociationKeys",value:function(){return Nf(this.include)?this.include(this.request,this.primaryResource):this.include}},{key:"getKeysForEmbedded",value:function(){var n=this;return this.getAssociationKeys().filter(function(r){return n._embedFn(r)})}},{key:"getKeysForIncluded",value:function(){var n=this;return this.getAssociationKeys().filter(function(r){return!n._embedFn(r)})}},{key:"schema",get:function(){return this.registry.schema}},{key:"keyForId",value:function(){return this.primaryKey}},{key:"valueForId",value:function(n){return n}},{key:"_formatAttributeKeys",value:function(n){var r={};for(var i in n){var o=n[i];i==="id"&&(o=this.valueForId(o));var a=this.keyForAttribute(i);r[a]=o}return r}},{key:"getCoalescedIds",value:function(){}}]),e}();Ye.prototype.include=[];Ye.prototype.root=!0;Ye.prototype.embed=!1;Ye.prototype.primaryKey="id";Ye.prototype.serializeIds="included";Ye.extend=Ym;var Qm=function(e){at(n,e);var t=st(n);function n(){var r;return L(this,n),r=t.apply(this,arguments),r.alwaysIncludeLinkageData=r.alwaysIncludeLinkageData||void 0,r}return H(n,[{key:"keyForModel",value:function(i){return U(i)}},{key:"keyForCollection",value:function(i){return U(i)}},{key:"keyForAttribute",value:function(i){return U(i)}},{key:"keyForRelationship",value:function(i){return U(i)}},{key:"links",value:function(){}},{key:"getHashForPrimaryResource",value:function(i){this._createRequestedIncludesGraph(i);var o=this.getHashForResource(i),a={data:o},s=this.getAddToIncludesForResource(i);return[a,s]}},{key:"getHashForIncludedResource",value:function(i){var o=this.serializerFor(i.modelName),a=o.getHashForResource(i),s={included:this.isModel(i)?[a]:a},l=[];return this.hasQueryParamIncludes()||(l=this.getAddToIncludesForResource(i)),[s,l]}},{key:"getHashForResource",value:function(i){var o=this,a;return this.isModel(i)?a=this.getResourceObjectForModel(i):a=i.models.map(function(s){return o.getResourceObjectForModel(s)}),a}},{key:"getAddToIncludesForResource",value:function(i){var o;if(this.hasQueryParamIncludes())o=this.getQueryParamIncludes();else{var a=this.serializerFor(i.modelName);o=a.getKeysForIncluded()}return this.getAddToIncludesForResourceAndPaths(i,o)}},{key:"getAddToIncludesForResourceAndPaths",value:function(i,o){var a=this,s=[];return o.forEach(function(l){var u=l.split("."),f=a.getIncludesForResourceAndPath.apply(a,[i].concat(er(u)));s.push(f)}),Tm(Oa(am(s)),function(l){return l.toString()})}},{key:"getIncludesForResourceAndPath",value:function(i){for(var o=this,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&arguments[1]!==void 0?arguments[1]:{};L(this,e),this.schema=t,this._serializerMap=n}return H(e,[{key:"normalize",value:function(n,r){return this.serializerFor(r).normalize(n)}},{key:"serialize",value:function(n,r){var i=this;if(this.request=r,this._isModelOrCollection(n)){var o=this.serializerFor(n.modelName);return o.serialize(n,r)}else return Array.isArray(n)&&n.some(this._isCollection)?n.reduce(function(a,s){var l=i.serializerFor(s.modelName);return l.embed?a[i._container.inflector.pluralize(s.modelName)]=l.serialize(s,r):a=Object.assign(a,l.serialize(s,r)),a},{}):n}},{key:"serializerFor",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.explicit,o=i===void 0?!1:i,a=n&&this._serializerMap&&this._serializerMap[F(n)];return o?A(!!a,"You passed in ".concat(n," as an explicit serializer type but that serializer doesn't exist.")):(a=a||this._serializerMap.application||Ye,A(!a||a.prototype.embed||a.prototype.root||new a instanceof Qm,"You cannot have a serializer that sideloads (embed: false) and disables the root (root: false).")),new a(this,n,this.request)}},{key:"_isModel",value:function(n){return n instanceof Fi}},{key:"_isCollection",value:function(n){return n instanceof dt||n instanceof be}},{key:"_isModelOrCollection",value:function(n){return this._isModel(n)||this._isCollection(n)}},{key:"registerSerializers",value:function(n){var r=this._serializerMap||{};this._serializerMap=Object.assign(r,n)}},{key:"getCoalescedIds",value:function(n,r){return this.serializerFor(r).getCoalescedIds(n)}}]),e}(),Rs={},As={},Fs={},Xm=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L(this,e),A(t,"A schema requires a db"),this.db=t,this._registry={},this._dependentAssociations={polymorphic:[]},this.registerModels(n),this.isSaving={}}return H(e,[{key:"registerModels",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_I(r,function(i,o){n.registerModel(o,r[o])})}},{key:"registerModel",value:function(n,r){var i=this,o=F(n),a=U(o);r=r.extend(),this._registry[o]=this._registry[o]||{class:null,foreignKeys:[]},this._registry[o].class=r,r.prototype._schema=this,r.prototype.modelName=a,r.prototype.hasManyAssociations={},r.prototype.hasManyAssociationFks={},r.prototype.belongsToAssociations={},r.prototype.belongsToAssociationFks={},r.prototype.associationKeys=new Set,r.prototype.associationIdKeys=new Set,r.prototype.dependentAssociations=[];var s={};for(var l in r.prototype)if(r.prototype[l]instanceof Ri){var u=r.prototype[l];u.name=l,u.modelName=u.modelName||this.toModelName(l),u.ownerModelName=a,u.setSchema(this);var f=u.getForeignKeyArray(),c=Ne(f,2),d=c[0],p=c[1];s[d]=s[d]||[],A(!s[d].includes(p),"Your '".concat(n,"' model definition has multiple possible inverse relationships of type '").concat(d,"'. Please use explicit inverses.")),s[d].push(p),this._addForeignKeyToRegistry(d,p),u.addMethodsToModelClass(r,l)}var y=this.toCollectionName(a);return this.db[y]||this.db.createCollection(y),this[y]={camelizedModelName:o,new:function(_){return i.new(o,_)},create:function(_){return i.create(o,_)},all:function(_){return i.all(o,_)},find:function(_){return i.find(o,_)},findBy:function(_){return i.findBy(o,_)},findOrCreateBy:function(_){return i.findOrCreateBy(o,_)},where:function(_){return i.where(o,_)},none:function(_){return i.none(o,_)},first:function(_){return i.first(o,_)}},this}},{key:"modelFor",value:function(n){return this._registry[n]}},{key:"new",value:function(n,r){return this._instantiateModel(U(n),r)}},{key:"create",value:function(n,r){return this.new(n,r).save()}},{key:"all",value:function(n){var r=this.collectionForType(n);return this._hydrate(r,U(n))}},{key:"none",value:function(n){return this._hydrate([],U(n))}},{key:"find",value:function(n,r){var i=this.collectionForType(n),o=i.find(r);return Array.isArray(r)&&A(o.length===r.length,"Couldn't find all ".concat(this._container.inflector.pluralize(n)," with ids: (").concat(r.join(","),") (found ").concat(o.length," results, but was looking for ").concat(r.length,")")),this._hydrate(o,U(n))}},{key:"findBy",value:function(n,r){var i=this.collectionForType(n),o=i.findBy(r);return this._hydrate(o,U(n))}},{key:"findOrCreateBy",value:function(n,r){var i=this.collectionForType(n),o=i.findBy(r),a;return o?a=this._hydrate(o,U(n)):a=this.create(n,r),a}},{key:"where",value:function(n,r){var i=this.collectionForType(n),o=i.where(r);return this._hydrate(o,U(n))}},{key:"first",value:function(n){var r=this.collectionForType(n),i=r[0];return this._hydrate(i,U(n))}},{key:"modelClassFor",value:function(n){var r=this._registry[F(n)];return A(r,"Model not registered: ".concat(n)),r.class.prototype}},{key:"addDependentAssociation",value:function(n,r){n.isPolymorphic?this._dependentAssociations.polymorphic.push(n):(this._dependentAssociations[r]=this._dependentAssociations[r]||[],this._dependentAssociations[r].push(n))}},{key:"dependentAssociationsFor",value:function(n){var r=this._dependentAssociations[n]||[],i=this._dependentAssociations.polymorphic||[];return r.concat(i)}},{key:"associationsFor",value:function(n){var r=this.modelClassFor(n);return Object.assign({},r.belongsToAssociations,r.hasManyAssociations)}},{key:"hasModelForModelName",value:function(n){return this.modelFor(F(n))}},{key:"collectionForType",value:function(n){var r=this.toCollectionName(n);return A(this.db[r],"You're trying to find model(s) of type ".concat(n," but this collection doesn't exist in the database.")),this.db[r]}},{key:"toCollectionName",value:function(n){if(typeof Rs[n]!="string"){var r=U(n),i=F(this._container.inflector.pluralize(r));Rs[n]=i}return Rs[n]}},{key:"toInternalCollectionName",value:function(n){if(typeof As[n]!="string"){var r="_".concat(this.toCollectionName(n));As[n]=r}return As[n]}},{key:"toModelName",value:function(n){if(typeof Fs[n]!="string"){var r=U(n),i=this._container.inflector.singularize(r);Fs[n]=i}return Fs[n]}},{key:"_addForeignKeyToRegistry",value:function(n,r){this._registry[n]=this._registry[n]||{class:null,foreignKeys:[]};var i=this._registry[n].foreignKeys;i.includes(r)||i.push(r)}},{key:"_instantiateModel",value:function(n,r){var i=this._modelFor(n),o=this._foreignKeysFor(n);return new i(this,n,r,o)}},{key:"_modelFor",value:function(n){return this._registry[F(n)].class}},{key:"_foreignKeysFor",value:function(n){return this._registry[F(n)].foreignKeys}},{key:"_hydrate",value:function(n,r){if(Array.isArray(n)){var i=n.map(function(o){return this._instantiateModel(r,o)},this);return new dt(r,i)}else return n?this._instantiateModel(r,n):null}}]),e}(),uM={Db:Wm,Association:Ri,RouteHandler:Gm,BaseRouteHandler:ja,Serializer:Ye,SerializerRegistry:Jm,Schema:Xm},cM={singularize:cm,pluralize:um},Zm=function(){function e(){L(this,e),this.inflector=cM}return H(e,[{key:"register",value:function(n,r){this[n]=r}},{key:"create",value:function(n){var r=uM[n];r.prototype._container=this;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a-1)return!0}return!1}function hM(e){var t=e.splice(-1),n=Ne(t,1),r=n[0];dM(r)?r=Dl({},ql,r):(e.push(r),r=ql);for(var i=2-e.length;i-- >0;)e.push(void 0);return e.push(r),e}var pM=function(){function e(){L(this,e),ie(this,"urlPrefix",void 0),ie(this,"namespace",void 0),ie(this,"timing",void 0),ie(this,"passthroughChecks",void 0),ie(this,"pretender",void 0),ie(this,"mirageServer",void 0),ie(this,"trackRequests",void 0)}return H(e,[{key:"create",value:function(n,r){var i=this;this.mirageServer=n,this.pretender=this._create(n,r),n.pretender=this.pretender,this.passthroughChecks=this.passthroughChecks||[],this.config(r),[["get"],["post"],["put"],["delete","del"],["patch"],["head"],["options"]].forEach(function(o){var a=Ne(o,2),s=a[0],l=a[1];i[s]=function(u){for(var f,c=arguments.length,d=new Array(c>1?c-1:0),p=1;p1&&Array.isArray(s)&&(a=i.pop()),i.forEach(function(l){typeof l=="function"?n.passthroughChecks.push(l):a.forEach(function(u){var f=n._getFullPath(l);n.pretender[u](f,n.pretender.passthrough)})})}}},{key:"_getFullPath",value:function(n){n=n[0]==="/"?n.slice(1):n;var r="",i=this.urlPrefix?this.urlPrefix.trim():"",o="";if(this.urlPrefix&&this.namespace&&(this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1).substring(1)),this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace.substring(1)),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1)),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace)),this.namespace&&!this.urlPrefix){if(this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1)),this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]==="/"){var a=this.namespace.substring(0,this.namespace.length-1);o="/".concat(a)}this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o="/".concat(this.namespace))}return this.namespace||(o=""),/^https?:\/\//.test(n)?r+=n:(i.length&&(r+=i[i.length-1]==="/"?i:"".concat(i,"/")),r+=o,r[r.length-1]!=="/"&&(r+="/"),r+=n,/^https?:\/\//.test(r)||(r="/".concat(r),r=r.replace(/\/+/g,"/"))),r}},{key:"start",value:function(){}},{key:"shutdown",value:function(){this.pretender.shutdown()}}]),e}(),Os={},vM={singularize:cm,pluralize:um};function mM(e){return new yM(e)}var yM=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,e),this._container=new Zm,this.config(t),this.db=this.db||void 0,this.schema=this.schema||void 0,this.middleware=[]}return H(e,[{key:"namespace",get:function(){return this.interceptor.namespace},set:function(n){this.interceptor.namespace=n}},{key:"urlPrefix",get:function(){return this.interceptor.urlPrefix},set:function(n){this.interceptor.urlPrefix=n}},{key:"timing",get:function(){return this.interceptor.timing},set:function(n){this.interceptor.timing=n}},{key:"passthroughChecks",get:function(){return this.interceptor.passthroughChecks},set:function(n){this.interceptor.passthroughChecks=n}},{key:"config",value:function(){var n,r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interceptor||(i.interceptor=new pM),this.interceptor?this.interceptor.config(i):(this.interceptor=i.interceptor,this.interceptor.create(this,i));var o=i.environment&&this.environment&&this.environment!==i.environment;A(!o,"You cannot modify Mirage's environment once the server is created"),this.environment=i.environment||this.environment||"development",i.routes&&(A(!i.baseConfig,"The routes option is an alias for the baseConfig option. You can't pass both options into your server definition."),i.baseConfig=i.routes),i.seeds&&(A(!i.scenarios,"The seeds option is an alias for the scenarios.default option. You can't pass both options into your server definition."),i.scenarios={default:i.seeds}),this._config=i,this.inflector=i.inflector||vM,this._container.register("inflector",this.inflector),this.logging=i.logging!==void 0?this.logging:void 0,this.testConfig=this.testConfig||void 0,this.trackRequests=i.trackRequests,this.db?this.db.registerIdentityManagers(i.identityManagers):this.db=this._container.create("Db",void 0,i.identityManagers),this.schema?(this.schema.registerModels(i.models),this.serializerOrRegistry.registerSerializers(i.serializers||{})):(this.schema=this._container.create("Schema",this.db,i.models),this.serializerOrRegistry=this._container.create("SerializerRegistry",this.schema,i.serializers));var a=this._hasModulesOfType(i,"factories"),s=i.scenarios&&Object.prototype.hasOwnProperty.call(i.scenarios,"default");i.baseConfig&&this.loadConfig(i.baseConfig),this.isTest()&&(this.loadConfig(i.testConfig),typeof window<"u"&&(window.server=this)),this.isTest()&&a?this.loadFactories(i.factories):!this.isTest()&&s?(this.loadFactories(i.factories),i.scenarios.default(this)):this.loadFixtures(),(n=(r=this.interceptor).start)===null||n===void 0||n.call(r)}},{key:"isTest",value:function(){return this.environment==="test"}},{key:"shouldLog",value:function(){return typeof this.logging<"u"?this.logging:!this.isTest()}},{key:"loadConfig",value:function(n){n==null||n.call(this),this.timing=this.isTest()?0:this.timing||0}},{key:"passthrough",value:function(){for(var n,r,i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=this._factoryMap||{};this._factoryMap=Dl(i,r),Object.keys(r).forEach(function(o){var a=n.schema.toCollectionName(o);n.db.createCollection(a)})}},{key:"factoryFor",value:function(n){var r=F(n);if(this._factoryMap&&this._factoryMap[r])return this._factoryMap[r]}},{key:"build",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o2?o-2:0),s=2;s1?i-1:0),a=1;a2?s-2:0),u=2;u1&&arguments[1]!==void 0?arguments[1]:{},o=i.only,a=i.except,s=i.path;if(n=this.inflector.pluralize(n),s=s||"/".concat(n),o=o||[],a=a||[],o.length>0&&a.length>0)throw"cannot use both :only and :except options";var l={index:{methods:["get"],path:"".concat(s)},show:{methods:["get"],path:"".concat(s,"/:id")},create:{methods:["post"],path:"".concat(s)},update:{methods:["put","patch"],path:"".concat(s,"/:id")},delete:{methods:["del"],path:"".concat(s,"/:id")}},u=Object.keys(l),f=o.length>0&&o||a.length>0&&u.filter(function(c){return a.indexOf(c)===-1})||u;f.forEach(function(c){var d=l[c];d.methods.forEach(function(p){return s===n?r[p](d.path):r[p](d.path,n)})})}},{key:"_serialize",value:function(n){return typeof n=="string"?n:JSON.stringify(n)}},{key:"registerRouteHandler",value:function(n,r,i,o,a){var s=this,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:this.middleware,u=this._container.create("RouteHandler",{schema:this.schema,verb:n,rawHandler:i,customizedCode:o,options:a,path:r,serializerOrRegistry:this.serializerOrRegistry,middleware:l});return function(f){return u.handle(f).then(function(c){var d=Ne(c,3),p=d[0],y=d[1],g=d[2];return[p,y,s._serialize(g)]})}}},{key:"_hasModulesOfType",value:function(n,r){var i=n[r];return i?Object.keys(i).length>0:!1}},{key:"_typeIsPluralForModel",value:function(n){if(typeof Os[n]!="boolean"){var r=this._modelOrFactoryExistsForTypeOrCollectionName(n),i=n===this.inflector.pluralize(n),o=this.inflector.singularize(n)===this.inflector.pluralize(n),a=i&&!o&&r;Os[n]=a}return Os[n]}},{key:"_modelOrFactoryExistsForType",value:function(n){var r=this.schema&&this.schema.modelFor(F(n)),i=this.db[this.schema.toInternalCollectionName(n)];return(r||i)&&!this._typeIsPluralForModel(n)}},{key:"_modelOrFactoryExistsForTypeOrCollectionName",value:function(n){var r=this.schema&&this.schema.modelFor(F(n)),i=this.db[this.schema.toInternalCollectionName(n)];return r||i}},{key:"_validateTraits",value:function(n,r,i){n.forEach(function(o){if(!r.isTrait(o))throw new Error("'".concat(o,"' trait is not registered in '").concat(i,"' factory"))})}},{key:"_mergeExtensions",value:function(n,r,i){var o=r.map(function(a){return n[a].extension});return o.push(i||{}),o.reduce(function(a,s){return Dl(a,s)},{})}},{key:"_mapAssociationsFromAttributes",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r||{}).filter(function(a){return Zb(r[a])}).forEach(function(a){var s=i.schema.modelClassFor(n),l=s.associationFor(a);A(l&&l instanceof Gr,"You're using the `association` factory helper on the '".concat(a,"' attribute of your ").concat(n," factory, but that attribute is not a `belongsTo` association."));var u=l&&l instanceof Gr&&l.modelName===n;A(!u,"You're using the association() helper on your ".concat(n," factory for ").concat(a,", which is a belongsTo self-referential relationship. You can't do this as it will lead to infinite recursion. You can move the helper inside of a trait and use it selectively."));var f=l&&l.opts&&l.opts.polymorphic;A(!f,"You're using the association() helper on your ".concat(n," factory for ").concat(a,", which is a polymorphic relationship. This is not currently supported."));var c=r[a],d="".concat(F(a),"Id");o[a]||(r[d]=i.create.apply(i,[l.modelName].concat(er(c.traitsAndOverrides))).id),delete r[a]})}}]),e}(),Wd=Ye.extend({serializeIds:"always",normalizeIds:!0,keyForModel:function(t){return ct(t)},keyForAttribute:function(t){return t=Ye.prototype.keyForAttribute.apply(this,arguments),ct(t)},keyForRelationship:function(t){return this._container.inflector.pluralize(ct(t))},keyForEmbeddedRelationship:function(t){return ct(t)},keyForRelationshipIds:function(t){return"".concat(ct(this._container.inflector.singularize(t)),"_ids")},keyForForeignKey:function(t){return"".concat(ct(t),"_id")},keyForPolymorphicForeignKeyId:function(t){return"".concat(ct(t),"_id")},keyForPolymorphicForeignKeyType:function(t){return"".concat(ct(t),"_type")},normalize:function(t){var n=this,r=Object.keys(t)[0],i=t[r],o=F(r),a=this.schema.modelClassFor(o),s=a.belongsToAssociations,l=a.hasManyAssociations,u=Object.keys(s),f=Object.keys(l);this.primaryKey!=="id"&&(i.id=i[this.primaryKey],delete i[this.primaryKey]);var c={data:{type:this._container.inflector.pluralize(r),attributes:{}}};i.id&&(c.data.id=i.id);var d={};return Object.keys(i).forEach(function(p){if(p!=="id")if(n.normalizeIds)if(u.includes(p)){var y=s[p],g=y.modelName;d[U(p)]={data:{type:g,id:i[p]}}}else if(f.includes(p)){var _=l[p],v=_.modelName,h=i[p].map(function(m){return{type:v,id:m}});d[U(p)]={data:h}}else c.data.attributes[U(p)]=i[p];else c.data.attributes[U(p)]=i[p]}),Object.keys(d).length&&(c.data.relationships=d),c},getCoalescedIds:function(t){return t.queryParams&&t.queryParams.ids}});Wd.extend({serializeIds:"always",keyForModel:function(t){return F(t)},keyForAttribute:function(t){return t=Wd.prototype.keyForAttribute.apply(this,arguments),F(t)},keyForRelationship:function(t){return F(this._container.inflector.pluralize(t))},keyForEmbeddedRelationship:function(t){return F(t)},keyForRelationshipIds:function(t){return F(this._container.inflector.pluralize(t))},keyForForeignKey:function(t){return F(this._container.inflector.singularize(t))},getCoalescedIds:function(t){return t.queryParams&&t.queryParams.ids}});mM({models:{vans:Fi},seeds(e){e.create("van",{id:"1",name:"Modest Explorer",price:60,description:"The Modest Explorer is a van designed to get you out of the house and into nature. This beauty is equipped with solar panels, a composting toilet, a water tank and kitchenette. The idea is that you can pack up your home and escape for a weekend or even longer!",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/modest-explorer.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/modest-explorer.webp",type:"simple"}),e.create("van",{id:"2",name:"Beach Bum",price:80,description:"Beach Bum is a van inspired by surfers and travelers. It was created to be a portable home away from home, but with some cool features in it you won't find in an ordinary camper.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/beach-bum.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/beach-bum.webp",type:"rugged"}),e.create("van",{id:"3",name:"Reliable Red",price:100,description:"Reliable Red is a van that was made for travelling. The inside is comfortable and cozy, with plenty of space to stretch out in. There's a small kitchen, so you can cook if you need to. You'll feel like home as soon as you step out of it.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/reliable-red.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/reliable-red.webp",type:"luxury"}),e.create("van",{id:"4",name:"Dreamfinder",price:65,description:"Dreamfinder is the perfect van to travel in and experience. With a ceiling height of 2.1m, you can stand up in this van and there is great head room. The floor is a beautiful glass-reinforced plastic (GRP) which is easy to clean and very hard wearing. A large rear window and large side windows make it really light inside and keep it well ventilated.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/dreamfinder.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/dreamfinder.webp",type:"simple"}),e.create("van",{id:"5",name:"The Cruiser",price:120,description:"The Cruiser is a van for those who love to travel in comfort and luxury. With its many windows, spacious interior and ample storage space, the Cruiser offers a beautiful view wherever you go.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/the-cruiser.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/the-cruiser.webp",type:"luxury"}),e.create("van",{id:"6",name:"Green Wonder",price:70,description:"With this van, you can take your travel life to the next level. The Green Wonder is a sustainable vehicle that's perfect for people who are looking for a stylish, eco-friendly mode of transport that can go anywhere.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/green-wonder.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/green-wonder.webp",type:"rugged"})},routes(){this.namespace="api",this.get("/vans",(e,t)=>e.vans.all()),this.get("/vans/:id",(e,t)=>{const n=t.params.id;return e.vans.find(n)})}});Is.createRoot(document.getElementById("root")).render(S.jsx(St.StrictMode,{children:S.jsx(s_,{})})); +`).concat(s.stack||s)})}}return this._toMirageResponse(o)}},{key:"handleWithMiddleware",value:function(n,r){var i=this,o=Wb(r),a=o[0],s=o.slice(1);return a(this.schema,n,function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n;return i.handleWithMiddleware(l,s)})}},{key:"_toMirageResponse",value:function(n){var r=this,i;return new Promise(function(o,a){Promise.resolve(n).then(function(s){if(s instanceof He)i=n;else{var l=r._getCodeForResponse(s);i=new He(l,{},s)}o(i)}).catch(a)})}},{key:"_getCodeForResponse",value:function(n){var r;return this.customizedCode?r=this.customizedCode:(r=sM[this.verb],r===204&&n!==void 0&&n!==""&&(r=200)),r}},{key:"serialize",value:function(n,r){return n.data=this.serializerOrRegistry.serialize(n.data,r),n}}]),e}();function Ym(e,t){var n=function(r){at(o,r);var i=st(o);function o(){var a;L(this,o);for(var s=arguments.length,l=new Array(s),u=0;u-1&&this.attrs[i].splice(o,1)}else this.attrs[i]=null}},{key:"isSaving",get:function(){return this._schema.isSaving[this.toString()]}},{key:"_setupAttr",value:function(n,r){var i=this.associationKeys.has(n)||this.associationIdKeys.has(n);i||(this.attrs[n]=r,this._definePlainAttribute(n))}},{key:"_definePlainAttribute",value:function(n){var r=Object.getOwnPropertyDescriptor(this,n);r&&r.get||(Object.prototype.hasOwnProperty.call(this.attrs,n)||(this.attrs[n]=null),Object.defineProperty(this,n,{get:function(){return this.attrs[n]},set:function(o){this.attrs[n]=o}}))}},{key:"_setupRelationship",value:function(n,r){var i=this.associationIdKeys.has(n)||this.fks.includes(n),o=this.associationKeys.has(n);i&&(r!=null&&this._validateForeignKeyExistsInDatabase(n,r),this.attrs[n]=r),o&&(this[n]=r)}},{key:"_validateAttr",value:function(n,r){if(this.associationKeys.has(n)){var i=this.associationFor(n),o=r===null;if(i instanceof zr){var a=r instanceof dt||r instanceof be,s=Array.isArray(r)&&r.every(function(p){return p instanceof e});A(a||s||o,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a HasMany relationship. You must pass in a Collection, PolymorphicCollection, array of Models, or null."))}else i instanceof Gr&&A(r instanceof e||o,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a BelongsTo relationship. You must pass in a Model or null."))}if(this.associationIdKeys.has(n)&&n.endsWith("Ids")){var l=Array.isArray(r),u=r===null;A(l||u,"You're trying to create a ".concat(this.modelName,' model and you passed in "').concat(r,'" under the ').concat(n," key, but that key is a foreign key for a HasMany relationship. You must pass in an array of ids or null."))}{var f=r instanceof e||r instanceof dt||r instanceof be,c=Array.isArray(r)&&r.length&&r.every(function(p){return p instanceof e});if(f||c){var d=r;A(this.associationKeys.has(n),"You're trying to create a ".concat(this.modelName," model and you passed in a ").concat(d.toString()," under the ").concat(n," key, but you haven't defined that key as an association on your model."))}}}},{key:"_validateForeignKeyExistsInDatabase",value:function(n,r){var i=this;if(Array.isArray(r)){var o=this.hasManyAssociationFks[n],a;o.isPolymorphic?(a=r.map(function(c){var d=c.type,p=c.id;return i._schema.db[i._schema.toInternalCollectionName(d)].find(p)}),a=Oa(a)):a=this._schema.db[this._schema.toInternalCollectionName(o.modelName)].find(r);var s=o.isPolymorphic?r.map(function(c){return"".concat(c.type,":").concat(c.id)}).join(","):r;A(a.length===r.length,"You're instantiating a ".concat(this.modelName," that has a ").concat(n," of ").concat(s,", but some of those records don't exist in the database."))}else{var l=this.belongsToAssociationFks[n],u;l.isPolymorphic?u=this._schema.db[this._schema.toInternalCollectionName(r.type)].find(r.id):u=this._schema.db[this._schema.toInternalCollectionName(l.modelName)].find(r);var f=l.isPolymorphic?"".concat(r.type,":").concat(r.id):r;A(u,"You're instantiating a ".concat(this.modelName," that has a ").concat(n," of ").concat(f,", but that record doesn't exist in the database."))}}},{key:"_saveAssociations",value:function(){this._saveBelongsToAssociations(),this._saveHasManyAssociations()}},{key:"_saveBelongsToAssociations",value:function(){var n=this;ws(this.belongsToAssociations).forEach(function(r){n._disassociateFromOldInverses(r),n._saveNewAssociates(r),n._associateWithNewInverses(r)})}},{key:"_saveHasManyAssociations",value:function(){var n=this;ws(this.hasManyAssociations).forEach(function(r){n._disassociateFromOldInverses(r),n._saveNewAssociates(r),n._associateWithNewInverses(r)})}},{key:"_disassociateFromOldInverses",value:function(n){n instanceof zr?this._disassociateFromHasManyInverses(n):n instanceof Gr&&this._disassociateFromBelongsToInverse(n)}},{key:"_disassociateFromHasManyInverses",value:function(n){var r=this,i=n.getForeignKey(),o=this._tempAssociations&&this._tempAssociations[n.name],a=this.attrs[i];if(o&&a){var s;n.isPolymorphic?s=a.map(function(l){var u=l.type,f=l.id;return r._schema[r._schema.toCollectionName(u)].find(f)}):s=this._schema[this._schema.toCollectionName(n.modelName)].find(a||[]).models,s.filter(function(l){return!l.isSaving&&!o.includes(l)&&l.hasInverseFor(n)}).forEach(function(l){var u=l.inverseFor(n);l.disassociate(r,u),l.save()})}}},{key:"_disassociateFromBelongsToInverse",value:function(n){var r=n.getForeignKey(),i=this._tempAssociations&&this._tempAssociations[n.name],o=this.attrs[r];if(i!==void 0&&o){var a;if(n.isPolymorphic?a=this._schema[this._schema.toCollectionName(o.type)].find(o.id):a=this._schema[this._schema.toCollectionName(n.modelName)].find(o),a.hasInverseFor(n)){var s=a.inverseFor(n);a.disassociate(this,s),a._updateInDb(a.attrs)}}}},{key:"_disassociateFromDependents",value:function(){var n=this;this._schema.dependentAssociationsFor(this.modelName).forEach(function(r){r.disassociateAllDependentsFromTarget(n)})}},{key:"_saveNewAssociates",value:function(n){var r=n.getForeignKey(),i=this._tempAssociations&&this._tempAssociations[n.name];if(i!==void 0){if(this.__isSavingNewChildren=!0,delete this._tempAssociations[n.name],i instanceof dt)i.models.filter(function(a){return!a.isSaving}).forEach(function(a){a.save()}),this._updateInDb(ie({},r,i.models.map(function(a){return a.id})));else if(i instanceof be)i.models.filter(function(a){return!a.isSaving}).forEach(function(a){a.save()}),this._updateInDb(ie({},r,i.models.map(function(a){return{type:a.modelName,id:a.id}})));else if(i===null)this._updateInDb(ie({},r,null));else if(this.equals(i))this._updateInDb(ie({},r,this.id));else if(!i.isSaving){i.save(),this._syncTempAssociations(i);var o;n.isPolymorphic?o={id:i.id,type:i.modelName}:o=i.id,this._updateInDb(ie({},r,o))}this.__isSavingNewChildren=!1}}},{key:"_associateWithNewInverses",value:function(n){var r=this;if(!this.__isSavingNewChildren){var i=this[n.name];i instanceof e?this._associateModelWithInverse(i,n):(i instanceof dt||i instanceof be)&&i.models.forEach(function(o){r._associateModelWithInverse(o,n)}),delete this._tempAssociations[n.name]}}},{key:"_associateModelWithInverse",value:function(n,r){var i=this;if(n.hasInverseFor(r)){var o=n.inverseFor(r),a=o.getForeignKey(),s=this.id;if(o instanceof Gr){var l;o.isPolymorphic?l={type:this.modelName,id:s}:l=s,this._schema.db[this._schema.toInternalCollectionName(n.modelName)].update(n.id,ie({},a,l))}else{var u=this._schema.db[this._schema.toInternalCollectionName(n.modelName)],f=u.find(n.id)[o.getForeignKey()]||[],c=Object.assign([],f),d,p;o.isPolymorphic?(d={type:this.modelName,id:s},p=c.some(function(y){return y.type==i.modelName&&y.id==s})):(d=s,p=c.includes(s)),p||c.push(d),u.update(n.id,ie({},a,c))}}}},{key:"_updateInDb",value:function(n){this.attrs=this._schema.db[this._schema.toInternalCollectionName(this.modelName)].update(this.attrs.id,n)}},{key:"_syncTempAssociations",value:function(n){var r=this;Object.keys(this._tempAssociations).forEach(function(i){r._tempAssociations[i]&&r._tempAssociations[i].toString()===n.toString()&&(r._tempAssociations[i]=n)})}},{key:"toString",value:function(){var n=this.id?"(".concat(this.id,")"):"";return"model:".concat(this.modelName).concat(n)}},{key:"equals",value:function(n){return this.toString()===n.toString()}}]),e}();Fi.extend=Ym;Fi.findBelongsToAssociation=function(e){return this.prototype.belongsToAssociations[e]};var Ye=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L(this,e),this.registry=t,this.type=n,this.request=i,this.attrs=this.attrs||void 0,this.include=this.include||[],this.root=this.root||void 0,this.embed=this.embed||void 0,this._embedFn=Nf(this.embed)?this.embed:function(){return!!r.embed},this.serializeIds=this.serializeIds||void 0,this.primaryKey=this.primaryKey||void 0}return H(e,[{key:"serialize",value:function(n){return this.primaryResource=n,this.buildPayload(n)}},{key:"normalize",value:function(n){return n}},{key:"buildPayload",value:function(n,r,i,o){if(!n&&Ll(r))return o;if(n){var a=this.getHashForPrimaryResource(n),s=Ne(a,2),l=s[0],u=s[1],f=this.isCollection(n)?n.models:[n];return this.buildPayload(void 0,u,f,l)}else{var c=r.shift(),d=this.getHashForIncludedResource(c),p=Ne(d,2),y=p[0],g=p[1],_=g.filter(function(m){return!i.map(function(S){return S.toString()}).includes(m.toString())}).concat(r),v=(this.isCollection(c)?c.models:[c]).concat(i),h=this.mergePayloads(o,y);return this.buildPayload(void 0,_,v,h)}}},{key:"getHashForPrimaryResource",value:function(n){var r=this.getHashForResource(n),i=Ne(r,2),o=i[0],a=i[1],s;if(this.root){A(!(n instanceof be),"The base Serializer class cannot serialize a top-level PolymorphicCollection when root is true, since PolymorphicCollections have no type.");var l=this.serializerFor(n.modelName),u=l.keyForResource(n);s=ie({},u,o)}else s=o;return[s,a]}},{key:"getHashForIncludedResource",value:function(n){var r,i;if(n instanceof be)r={},i=n.models;else{var o=this.serializerFor(n.modelName),a=o.getHashForResource(n),s=Ne(a,2),l=s[0],u=s[1],f=o.keyForRelationship(n.modelName);r=Array.isArray(l)?ie({},f,l):ie({},f,[l]),i=u}return[r,i]}},{key:"getHashForResource",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=this,l;a&&n.modelName&&(s=this.serializerFor(n.modelName)),this.isModel(n)?l=s._hashForModel(n,i,o):l=n.models.map(function(f){var c=s;return c||(c=r.serializerFor(f.modelName)),c._hashForModel(f,i,o)});var u=Tm(Oa(am(s.getKeysForIncluded().map(function(f){return r.isCollection(n)?n.models.map(function(c){return c[f]}):n[f]}))),function(f){return f.toString()});return[l,u]}},{key:"mergePayloads",value:function(n,r){var i,o=Object.keys(r),a=Ne(o,1),s=a[0];return n[s]?(i=n,i[s]=n[s].concat(r[s])):i=Object.assign(n,r),i}},{key:"keyForResource",value:function(n){var r=n.modelName;return this.isModel(n)?this.keyForModel(r):this.keyForCollection(r)}},{key:"keyForModel",value:function(n){return F(n)}},{key:"keyForCollection",value:function(n){return this._container.inflector.pluralize(this.keyForModel(n))}},{key:"_hashForModel",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this._attrsForModel(n);if(r&&n.fks.forEach(function(l){delete a[l]}),this.embed){var s=Object.assign({},o);s[n.modelName]=s[n.modelName]||{},s[n.modelName][n.id]=!0,this.getKeysForEmbedded().forEach(function(l){var u=n[l];if(u&&!em(s,"".concat(u.modelName,".").concat(u.id))){var f=i.getHashForResource(u,!0,s,!0),c=Ne(f,1),d=c[0],p=i.keyForEmbeddedRelationship(l);if(a[p]=d,i.isModel(u)){var y="".concat(F(l),"Id");delete a[y]}}})}return this._maybeAddAssociationIds(n,a)}},{key:"_attrsForModel",value:function(n){var r={};return this.attrs?r=this.attrs.reduce(function(i,o){return i[o]=n[o],i},{}):r=Object.assign(r,n.attrs),n.fks.forEach(function(i){return delete r[i]}),this._formatAttributeKeys(r)}},{key:"_maybeAddAssociationIds",value:function(n,r){var i=this,o=Object.assign({},r);return this.serializeIds==="always"?er(n.associationKeys).filter(function(a){return!i._embedFn(a)}).forEach(function(a){var s=n[a],l=n.associationFor(a);if(i.isCollection(s)){var u=i.keyForRelationshipIds(a);o[u]=n["".concat(i._container.inflector.singularize(a),"Ids")]}else if(i.isModel(s)&&l.isPolymorphic){var f=i.keyForPolymorphicForeignKeyType(a),c=i.keyForPolymorphicForeignKeyId(a);o[f]=n["".concat(a,"Id")].type,o[c]=n["".concat(a,"Id")].id}else if(s){var d=i.keyForForeignKey(a);o[d]=n["".concat(a,"Id")]}}):this.serializeIds==="included"&&this.getKeysForIncluded().forEach(function(a){var s=n[a],l=n.associationFor(a);if(i.isCollection(s)){var u=i.keyForRelationshipIds(a);o[u]=n["".concat(i._container.inflector.singularize(a),"Ids")]}else if(i.isModel(s)&&l.isPolymorphic){var f=i.keyForPolymorphicForeignKeyType(a),c=i.keyForPolymorphicForeignKeyId(a);o[f]=n["".concat(a,"Id")].type,o[c]=n["".concat(a,"Id")].id}else if(i.isModel(s)){var d=i.keyForForeignKey(a);o[d]=n["".concat(a,"Id")]}}),o}},{key:"keyForAttribute",value:function(n){return n==="id"?this.keyForId():n}},{key:"keyForRelationship",value:function(n){return F(this._container.inflector.pluralize(n))}},{key:"keyForEmbeddedRelationship",value:function(n){return F(n)}},{key:"keyForRelationshipIds",value:function(n){return"".concat(this._container.inflector.singularize(F(n)),"Ids")}},{key:"keyForForeignKey",value:function(n){return"".concat(F(n),"Id")}},{key:"keyForPolymorphicForeignKeyId",value:function(n){return"".concat(F(n),"Id")}},{key:"keyForPolymorphicForeignKeyType",value:function(n){return"".concat(F(n),"Type")}},{key:"isModel",value:function(n){return n instanceof Fi}},{key:"isCollection",value:function(n){return n instanceof dt||n instanceof be}},{key:"isModelOrCollection",value:function(n){return this.isModel(n)||this.isCollection(n)}},{key:"serializerFor",value:function(n){return this.registry.serializerFor(n)}},{key:"getAssociationKeys",value:function(){return Nf(this.include)?this.include(this.request,this.primaryResource):this.include}},{key:"getKeysForEmbedded",value:function(){var n=this;return this.getAssociationKeys().filter(function(r){return n._embedFn(r)})}},{key:"getKeysForIncluded",value:function(){var n=this;return this.getAssociationKeys().filter(function(r){return!n._embedFn(r)})}},{key:"schema",get:function(){return this.registry.schema}},{key:"keyForId",value:function(){return this.primaryKey}},{key:"valueForId",value:function(n){return n}},{key:"_formatAttributeKeys",value:function(n){var r={};for(var i in n){var o=n[i];i==="id"&&(o=this.valueForId(o));var a=this.keyForAttribute(i);r[a]=o}return r}},{key:"getCoalescedIds",value:function(){}}]),e}();Ye.prototype.include=[];Ye.prototype.root=!0;Ye.prototype.embed=!1;Ye.prototype.primaryKey="id";Ye.prototype.serializeIds="included";Ye.extend=Ym;var Qm=function(e){at(n,e);var t=st(n);function n(){var r;return L(this,n),r=t.apply(this,arguments),r.alwaysIncludeLinkageData=r.alwaysIncludeLinkageData||void 0,r}return H(n,[{key:"keyForModel",value:function(i){return U(i)}},{key:"keyForCollection",value:function(i){return U(i)}},{key:"keyForAttribute",value:function(i){return U(i)}},{key:"keyForRelationship",value:function(i){return U(i)}},{key:"links",value:function(){}},{key:"getHashForPrimaryResource",value:function(i){this._createRequestedIncludesGraph(i);var o=this.getHashForResource(i),a={data:o},s=this.getAddToIncludesForResource(i);return[a,s]}},{key:"getHashForIncludedResource",value:function(i){var o=this.serializerFor(i.modelName),a=o.getHashForResource(i),s={included:this.isModel(i)?[a]:a},l=[];return this.hasQueryParamIncludes()||(l=this.getAddToIncludesForResource(i)),[s,l]}},{key:"getHashForResource",value:function(i){var o=this,a;return this.isModel(i)?a=this.getResourceObjectForModel(i):a=i.models.map(function(s){return o.getResourceObjectForModel(s)}),a}},{key:"getAddToIncludesForResource",value:function(i){var o;if(this.hasQueryParamIncludes())o=this.getQueryParamIncludes();else{var a=this.serializerFor(i.modelName);o=a.getKeysForIncluded()}return this.getAddToIncludesForResourceAndPaths(i,o)}},{key:"getAddToIncludesForResourceAndPaths",value:function(i,o){var a=this,s=[];return o.forEach(function(l){var u=l.split("."),f=a.getIncludesForResourceAndPath.apply(a,[i].concat(er(u)));s.push(f)}),Tm(Oa(am(s)),function(l){return l.toString()})}},{key:"getIncludesForResourceAndPath",value:function(i){for(var o=this,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&arguments[1]!==void 0?arguments[1]:{};L(this,e),this.schema=t,this._serializerMap=n}return H(e,[{key:"normalize",value:function(n,r){return this.serializerFor(r).normalize(n)}},{key:"serialize",value:function(n,r){var i=this;if(this.request=r,this._isModelOrCollection(n)){var o=this.serializerFor(n.modelName);return o.serialize(n,r)}else return Array.isArray(n)&&n.some(this._isCollection)?n.reduce(function(a,s){var l=i.serializerFor(s.modelName);return l.embed?a[i._container.inflector.pluralize(s.modelName)]=l.serialize(s,r):a=Object.assign(a,l.serialize(s,r)),a},{}):n}},{key:"serializerFor",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.explicit,o=i===void 0?!1:i,a=n&&this._serializerMap&&this._serializerMap[F(n)];return o?A(!!a,"You passed in ".concat(n," as an explicit serializer type but that serializer doesn't exist.")):(a=a||this._serializerMap.application||Ye,A(!a||a.prototype.embed||a.prototype.root||new a instanceof Qm,"You cannot have a serializer that sideloads (embed: false) and disables the root (root: false).")),new a(this,n,this.request)}},{key:"_isModel",value:function(n){return n instanceof Fi}},{key:"_isCollection",value:function(n){return n instanceof dt||n instanceof be}},{key:"_isModelOrCollection",value:function(n){return this._isModel(n)||this._isCollection(n)}},{key:"registerSerializers",value:function(n){var r=this._serializerMap||{};this._serializerMap=Object.assign(r,n)}},{key:"getCoalescedIds",value:function(n,r){return this.serializerFor(r).getCoalescedIds(n)}}]),e}(),Rs={},As={},Fs={},Xm=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L(this,e),A(t,"A schema requires a db"),this.db=t,this._registry={},this._dependentAssociations={polymorphic:[]},this.registerModels(n),this.isSaving={}}return H(e,[{key:"registerModels",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_I(r,function(i,o){n.registerModel(o,r[o])})}},{key:"registerModel",value:function(n,r){var i=this,o=F(n),a=U(o);r=r.extend(),this._registry[o]=this._registry[o]||{class:null,foreignKeys:[]},this._registry[o].class=r,r.prototype._schema=this,r.prototype.modelName=a,r.prototype.hasManyAssociations={},r.prototype.hasManyAssociationFks={},r.prototype.belongsToAssociations={},r.prototype.belongsToAssociationFks={},r.prototype.associationKeys=new Set,r.prototype.associationIdKeys=new Set,r.prototype.dependentAssociations=[];var s={};for(var l in r.prototype)if(r.prototype[l]instanceof Ri){var u=r.prototype[l];u.name=l,u.modelName=u.modelName||this.toModelName(l),u.ownerModelName=a,u.setSchema(this);var f=u.getForeignKeyArray(),c=Ne(f,2),d=c[0],p=c[1];s[d]=s[d]||[],A(!s[d].includes(p),"Your '".concat(n,"' model definition has multiple possible inverse relationships of type '").concat(d,"'. Please use explicit inverses.")),s[d].push(p),this._addForeignKeyToRegistry(d,p),u.addMethodsToModelClass(r,l)}var y=this.toCollectionName(a);return this.db[y]||this.db.createCollection(y),this[y]={camelizedModelName:o,new:function(_){return i.new(o,_)},create:function(_){return i.create(o,_)},all:function(_){return i.all(o,_)},find:function(_){return i.find(o,_)},findBy:function(_){return i.findBy(o,_)},findOrCreateBy:function(_){return i.findOrCreateBy(o,_)},where:function(_){return i.where(o,_)},none:function(_){return i.none(o,_)},first:function(_){return i.first(o,_)}},this}},{key:"modelFor",value:function(n){return this._registry[n]}},{key:"new",value:function(n,r){return this._instantiateModel(U(n),r)}},{key:"create",value:function(n,r){return this.new(n,r).save()}},{key:"all",value:function(n){var r=this.collectionForType(n);return this._hydrate(r,U(n))}},{key:"none",value:function(n){return this._hydrate([],U(n))}},{key:"find",value:function(n,r){var i=this.collectionForType(n),o=i.find(r);return Array.isArray(r)&&A(o.length===r.length,"Couldn't find all ".concat(this._container.inflector.pluralize(n)," with ids: (").concat(r.join(","),") (found ").concat(o.length," results, but was looking for ").concat(r.length,")")),this._hydrate(o,U(n))}},{key:"findBy",value:function(n,r){var i=this.collectionForType(n),o=i.findBy(r);return this._hydrate(o,U(n))}},{key:"findOrCreateBy",value:function(n,r){var i=this.collectionForType(n),o=i.findBy(r),a;return o?a=this._hydrate(o,U(n)):a=this.create(n,r),a}},{key:"where",value:function(n,r){var i=this.collectionForType(n),o=i.where(r);return this._hydrate(o,U(n))}},{key:"first",value:function(n){var r=this.collectionForType(n),i=r[0];return this._hydrate(i,U(n))}},{key:"modelClassFor",value:function(n){var r=this._registry[F(n)];return A(r,"Model not registered: ".concat(n)),r.class.prototype}},{key:"addDependentAssociation",value:function(n,r){n.isPolymorphic?this._dependentAssociations.polymorphic.push(n):(this._dependentAssociations[r]=this._dependentAssociations[r]||[],this._dependentAssociations[r].push(n))}},{key:"dependentAssociationsFor",value:function(n){var r=this._dependentAssociations[n]||[],i=this._dependentAssociations.polymorphic||[];return r.concat(i)}},{key:"associationsFor",value:function(n){var r=this.modelClassFor(n);return Object.assign({},r.belongsToAssociations,r.hasManyAssociations)}},{key:"hasModelForModelName",value:function(n){return this.modelFor(F(n))}},{key:"collectionForType",value:function(n){var r=this.toCollectionName(n);return A(this.db[r],"You're trying to find model(s) of type ".concat(n," but this collection doesn't exist in the database.")),this.db[r]}},{key:"toCollectionName",value:function(n){if(typeof Rs[n]!="string"){var r=U(n),i=F(this._container.inflector.pluralize(r));Rs[n]=i}return Rs[n]}},{key:"toInternalCollectionName",value:function(n){if(typeof As[n]!="string"){var r="_".concat(this.toCollectionName(n));As[n]=r}return As[n]}},{key:"toModelName",value:function(n){if(typeof Fs[n]!="string"){var r=U(n),i=this._container.inflector.singularize(r);Fs[n]=i}return Fs[n]}},{key:"_addForeignKeyToRegistry",value:function(n,r){this._registry[n]=this._registry[n]||{class:null,foreignKeys:[]};var i=this._registry[n].foreignKeys;i.includes(r)||i.push(r)}},{key:"_instantiateModel",value:function(n,r){var i=this._modelFor(n),o=this._foreignKeysFor(n);return new i(this,n,r,o)}},{key:"_modelFor",value:function(n){return this._registry[F(n)].class}},{key:"_foreignKeysFor",value:function(n){return this._registry[F(n)].foreignKeys}},{key:"_hydrate",value:function(n,r){if(Array.isArray(n)){var i=n.map(function(o){return this._instantiateModel(r,o)},this);return new dt(r,i)}else return n?this._instantiateModel(r,n):null}}]),e}(),uM={Db:Wm,Association:Ri,RouteHandler:Gm,BaseRouteHandler:ja,Serializer:Ye,SerializerRegistry:Jm,Schema:Xm},cM={singularize:cm,pluralize:um},Zm=function(){function e(){L(this,e),this.inflector=cM}return H(e,[{key:"register",value:function(n,r){this[n]=r}},{key:"create",value:function(n){var r=uM[n];r.prototype._container=this;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a-1)return!0}return!1}function hM(e){var t=e.splice(-1),n=Ne(t,1),r=n[0];dM(r)?r=Dl({},ql,r):(e.push(r),r=ql);for(var i=2-e.length;i-- >0;)e.push(void 0);return e.push(r),e}var pM=function(){function e(){L(this,e),ie(this,"urlPrefix",void 0),ie(this,"namespace",void 0),ie(this,"timing",void 0),ie(this,"passthroughChecks",void 0),ie(this,"pretender",void 0),ie(this,"mirageServer",void 0),ie(this,"trackRequests",void 0)}return H(e,[{key:"create",value:function(n,r){var i=this;this.mirageServer=n,this.pretender=this._create(n,r),n.pretender=this.pretender,this.passthroughChecks=this.passthroughChecks||[],this.config(r),[["get"],["post"],["put"],["delete","del"],["patch"],["head"],["options"]].forEach(function(o){var a=Ne(o,2),s=a[0],l=a[1];i[s]=function(u){for(var f,c=arguments.length,d=new Array(c>1?c-1:0),p=1;p1&&Array.isArray(s)&&(a=i.pop()),i.forEach(function(l){typeof l=="function"?n.passthroughChecks.push(l):a.forEach(function(u){var f=n._getFullPath(l);n.pretender[u](f,n.pretender.passthrough)})})}}},{key:"_getFullPath",value:function(n){n=n[0]==="/"?n.slice(1):n;var r="",i=this.urlPrefix?this.urlPrefix.trim():"",o="";if(this.urlPrefix&&this.namespace&&(this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1).substring(1)),this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace.substring(1)),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1)),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace)),this.namespace&&!this.urlPrefix){if(this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]==="/"&&(o=this.namespace.substring(0,this.namespace.length-1)),this.namespace[0]==="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o=this.namespace),this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]==="/"){var a=this.namespace.substring(0,this.namespace.length-1);o="/".concat(a)}this.namespace[0]!=="/"&&this.namespace[this.namespace.length-1]!=="/"&&(o="/".concat(this.namespace))}return this.namespace||(o=""),/^https?:\/\//.test(n)?r+=n:(i.length&&(r+=i[i.length-1]==="/"?i:"".concat(i,"/")),r+=o,r[r.length-1]!=="/"&&(r+="/"),r+=n,/^https?:\/\//.test(r)||(r="/".concat(r),r=r.replace(/\/+/g,"/"))),r}},{key:"start",value:function(){}},{key:"shutdown",value:function(){this.pretender.shutdown()}}]),e}(),Os={},vM={singularize:cm,pluralize:um};function mM(e){return new yM(e)}var yM=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,e),this._container=new Zm,this.config(t),this.db=this.db||void 0,this.schema=this.schema||void 0,this.middleware=[]}return H(e,[{key:"namespace",get:function(){return this.interceptor.namespace},set:function(n){this.interceptor.namespace=n}},{key:"urlPrefix",get:function(){return this.interceptor.urlPrefix},set:function(n){this.interceptor.urlPrefix=n}},{key:"timing",get:function(){return this.interceptor.timing},set:function(n){this.interceptor.timing=n}},{key:"passthroughChecks",get:function(){return this.interceptor.passthroughChecks},set:function(n){this.interceptor.passthroughChecks=n}},{key:"config",value:function(){var n,r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interceptor||(i.interceptor=new pM),this.interceptor?this.interceptor.config(i):(this.interceptor=i.interceptor,this.interceptor.create(this,i));var o=i.environment&&this.environment&&this.environment!==i.environment;A(!o,"You cannot modify Mirage's environment once the server is created"),this.environment=i.environment||this.environment||"development",i.routes&&(A(!i.baseConfig,"The routes option is an alias for the baseConfig option. You can't pass both options into your server definition."),i.baseConfig=i.routes),i.seeds&&(A(!i.scenarios,"The seeds option is an alias for the scenarios.default option. You can't pass both options into your server definition."),i.scenarios={default:i.seeds}),this._config=i,this.inflector=i.inflector||vM,this._container.register("inflector",this.inflector),this.logging=i.logging!==void 0?this.logging:void 0,this.testConfig=this.testConfig||void 0,this.trackRequests=i.trackRequests,this.db?this.db.registerIdentityManagers(i.identityManagers):this.db=this._container.create("Db",void 0,i.identityManagers),this.schema?(this.schema.registerModels(i.models),this.serializerOrRegistry.registerSerializers(i.serializers||{})):(this.schema=this._container.create("Schema",this.db,i.models),this.serializerOrRegistry=this._container.create("SerializerRegistry",this.schema,i.serializers));var a=this._hasModulesOfType(i,"factories"),s=i.scenarios&&Object.prototype.hasOwnProperty.call(i.scenarios,"default");i.baseConfig&&this.loadConfig(i.baseConfig),this.isTest()&&(this.loadConfig(i.testConfig),typeof window<"u"&&(window.server=this)),this.isTest()&&a?this.loadFactories(i.factories):!this.isTest()&&s?(this.loadFactories(i.factories),i.scenarios.default(this)):this.loadFixtures(),(n=(r=this.interceptor).start)===null||n===void 0||n.call(r)}},{key:"isTest",value:function(){return this.environment==="test"}},{key:"shouldLog",value:function(){return typeof this.logging<"u"?this.logging:!this.isTest()}},{key:"loadConfig",value:function(n){n==null||n.call(this),this.timing=this.isTest()?0:this.timing||0}},{key:"passthrough",value:function(){for(var n,r,i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=this._factoryMap||{};this._factoryMap=Dl(i,r),Object.keys(r).forEach(function(o){var a=n.schema.toCollectionName(o);n.db.createCollection(a)})}},{key:"factoryFor",value:function(n){var r=F(n);if(this._factoryMap&&this._factoryMap[r])return this._factoryMap[r]}},{key:"build",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o2?o-2:0),s=2;s1?i-1:0),a=1;a2?s-2:0),u=2;u1&&arguments[1]!==void 0?arguments[1]:{},o=i.only,a=i.except,s=i.path;if(n=this.inflector.pluralize(n),s=s||"/".concat(n),o=o||[],a=a||[],o.length>0&&a.length>0)throw"cannot use both :only and :except options";var l={index:{methods:["get"],path:"".concat(s)},show:{methods:["get"],path:"".concat(s,"/:id")},create:{methods:["post"],path:"".concat(s)},update:{methods:["put","patch"],path:"".concat(s,"/:id")},delete:{methods:["del"],path:"".concat(s,"/:id")}},u=Object.keys(l),f=o.length>0&&o||a.length>0&&u.filter(function(c){return a.indexOf(c)===-1})||u;f.forEach(function(c){var d=l[c];d.methods.forEach(function(p){return s===n?r[p](d.path):r[p](d.path,n)})})}},{key:"_serialize",value:function(n){return typeof n=="string"?n:JSON.stringify(n)}},{key:"registerRouteHandler",value:function(n,r,i,o,a){var s=this,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:this.middleware,u=this._container.create("RouteHandler",{schema:this.schema,verb:n,rawHandler:i,customizedCode:o,options:a,path:r,serializerOrRegistry:this.serializerOrRegistry,middleware:l});return function(f){return u.handle(f).then(function(c){var d=Ne(c,3),p=d[0],y=d[1],g=d[2];return[p,y,s._serialize(g)]})}}},{key:"_hasModulesOfType",value:function(n,r){var i=n[r];return i?Object.keys(i).length>0:!1}},{key:"_typeIsPluralForModel",value:function(n){if(typeof Os[n]!="boolean"){var r=this._modelOrFactoryExistsForTypeOrCollectionName(n),i=n===this.inflector.pluralize(n),o=this.inflector.singularize(n)===this.inflector.pluralize(n),a=i&&!o&&r;Os[n]=a}return Os[n]}},{key:"_modelOrFactoryExistsForType",value:function(n){var r=this.schema&&this.schema.modelFor(F(n)),i=this.db[this.schema.toInternalCollectionName(n)];return(r||i)&&!this._typeIsPluralForModel(n)}},{key:"_modelOrFactoryExistsForTypeOrCollectionName",value:function(n){var r=this.schema&&this.schema.modelFor(F(n)),i=this.db[this.schema.toInternalCollectionName(n)];return r||i}},{key:"_validateTraits",value:function(n,r,i){n.forEach(function(o){if(!r.isTrait(o))throw new Error("'".concat(o,"' trait is not registered in '").concat(i,"' factory"))})}},{key:"_mergeExtensions",value:function(n,r,i){var o=r.map(function(a){return n[a].extension});return o.push(i||{}),o.reduce(function(a,s){return Dl(a,s)},{})}},{key:"_mapAssociationsFromAttributes",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r||{}).filter(function(a){return Zb(r[a])}).forEach(function(a){var s=i.schema.modelClassFor(n),l=s.associationFor(a);A(l&&l instanceof Gr,"You're using the `association` factory helper on the '".concat(a,"' attribute of your ").concat(n," factory, but that attribute is not a `belongsTo` association."));var u=l&&l instanceof Gr&&l.modelName===n;A(!u,"You're using the association() helper on your ".concat(n," factory for ").concat(a,", which is a belongsTo self-referential relationship. You can't do this as it will lead to infinite recursion. You can move the helper inside of a trait and use it selectively."));var f=l&&l.opts&&l.opts.polymorphic;A(!f,"You're using the association() helper on your ".concat(n," factory for ").concat(a,", which is a polymorphic relationship. This is not currently supported."));var c=r[a],d="".concat(F(a),"Id");o[a]||(r[d]=i.create.apply(i,[l.modelName].concat(er(c.traitsAndOverrides))).id),delete r[a]})}}]),e}(),Wd=Ye.extend({serializeIds:"always",normalizeIds:!0,keyForModel:function(t){return ct(t)},keyForAttribute:function(t){return t=Ye.prototype.keyForAttribute.apply(this,arguments),ct(t)},keyForRelationship:function(t){return this._container.inflector.pluralize(ct(t))},keyForEmbeddedRelationship:function(t){return ct(t)},keyForRelationshipIds:function(t){return"".concat(ct(this._container.inflector.singularize(t)),"_ids")},keyForForeignKey:function(t){return"".concat(ct(t),"_id")},keyForPolymorphicForeignKeyId:function(t){return"".concat(ct(t),"_id")},keyForPolymorphicForeignKeyType:function(t){return"".concat(ct(t),"_type")},normalize:function(t){var n=this,r=Object.keys(t)[0],i=t[r],o=F(r),a=this.schema.modelClassFor(o),s=a.belongsToAssociations,l=a.hasManyAssociations,u=Object.keys(s),f=Object.keys(l);this.primaryKey!=="id"&&(i.id=i[this.primaryKey],delete i[this.primaryKey]);var c={data:{type:this._container.inflector.pluralize(r),attributes:{}}};i.id&&(c.data.id=i.id);var d={};return Object.keys(i).forEach(function(p){if(p!=="id")if(n.normalizeIds)if(u.includes(p)){var y=s[p],g=y.modelName;d[U(p)]={data:{type:g,id:i[p]}}}else if(f.includes(p)){var _=l[p],v=_.modelName,h=i[p].map(function(m){return{type:v,id:m}});d[U(p)]={data:h}}else c.data.attributes[U(p)]=i[p];else c.data.attributes[U(p)]=i[p]}),Object.keys(d).length&&(c.data.relationships=d),c},getCoalescedIds:function(t){return t.queryParams&&t.queryParams.ids}});Wd.extend({serializeIds:"always",keyForModel:function(t){return F(t)},keyForAttribute:function(t){return t=Wd.prototype.keyForAttribute.apply(this,arguments),F(t)},keyForRelationship:function(t){return F(this._container.inflector.pluralize(t))},keyForEmbeddedRelationship:function(t){return F(t)},keyForRelationshipIds:function(t){return F(this._container.inflector.pluralize(t))},keyForForeignKey:function(t){return F(this._container.inflector.singularize(t))},getCoalescedIds:function(t){return t.queryParams&&t.queryParams.ids}});mM({models:{vans:Fi},seeds(e){e.create("van",{id:"1",name:"Modest Explorer",price:60,description:"The Modest Explorer is a van designed to get you out of the house and into nature. This beauty is equipped with solar panels, a composting toilet, a water tank and kitchenette. The idea is that you can pack up your home and escape for a weekend or even longer!",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/modest-explorer.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/modest-explorer.webp",type:"simple"}),e.create("van",{id:"2",name:"Beach Bum",price:80,description:"Beach Bum is a van inspired by surfers and travelers. It was created to be a portable home away from home, but with some cool features in it you won't find in an ordinary camper.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/beach-bum.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/beach-bum.webp",type:"rugged"}),e.create("van",{id:"3",name:"Reliable Red",price:100,description:"Reliable Red is a van that was made for travelling. The inside is comfortable and cozy, with plenty of space to stretch out in. There's a small kitchen, so you can cook if you need to. You'll feel like home as soon as you step out of it.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/reliable-red.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/reliable-red.webp",type:"luxury"}),e.create("van",{id:"4",name:"Dreamfinder",price:65,description:"Dreamfinder is the perfect van to travel in and experience. With a ceiling height of 2.1m, you can stand up in this van and there is great head room. The floor is a beautiful glass-reinforced plastic (GRP) which is easy to clean and very hard wearing. A large rear window and large side windows make it really light inside and keep it well ventilated.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/dreamfinder.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/dreamfinder.webp",type:"simple"}),e.create("van",{id:"5",name:"The Cruiser",price:120,description:"The Cruiser is a van for those who love to travel in comfort and luxury. With its many windows, spacious interior and ample storage space, the Cruiser offers a beautiful view wherever you go.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/the-cruiser.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/the-cruiser.webp",type:"luxury"}),e.create("van",{id:"6",name:"Green Wonder",price:70,description:"With this van, you can take your travel life to the next level. The Green Wonder is a sustainable vehicle that's perfect for people who are looking for a stylish, eco-friendly mode of transport that can go anywhere.",imageUrlPng:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/green-wonder.png",imageUrlWebp:"https://raw.githubusercontent.com/chrisnajman/vanlife-images/main/green-wonder.webp",type:"rugged"})},routes(){this.namespace="api",this.get("/vans",(e,t)=>e.vans.all()),this.get("/vans/:id",(e,t)=>{const n=t.params.id;return e.vans.find(n)})}});Is.createRoot(document.getElementById("root")).render(w.jsx(St.StrictMode,{children:w.jsx(s_,{})})); diff --git a/assets/index-DFjO5RoG.css b/assets/index-X0M4AVnA.css similarity index 79% rename from assets/index-DFjO5RoG.css rename to assets/index-X0M4AVnA.css index 2190360..9d53049 100644 --- a/assets/index-DFjO5RoG.css +++ b/assets/index-X0M4AVnA.css @@ -1 +1 @@ -*,*:before,*:after{margin:0;box-sizing:border-box}:root{font-size:10px;overflow-y:scroll;--bg: black;--fg: white;--content-bg: rgb(44, 58, 58);background-color:var(--bg);color:var(--fg);--shadow: 3px 3px 5px 0px rgba(0, 0, 0, .33);--btn-blue: #405cf5}.lightmode{--bg: white;--fg: black;--content-bg: #f5f5f5;background-color:var(--bg);color:var(--fg)}body{line-height:1.5;font-family:system-ui,sans-serif;font-size:1.6rem;position:relative}:focus-visible{outline:.2rem solid orange;outline-offset:.2rem}h1,h2,h3{font-weight:400}p,ul{font-size:clamp(1.6rem,1.4783rem + .6957vw,2rem)}h1,.site-header--h1{display:flex;flex-direction:column;gap:1.5rem;line-height:1;align-items:center;justify-content:center;font-weight:400;font-size:clamp(2rem,1.6348rem + 2.087vw,3.2rem)}@media screen and (width >= 360px){h1,.site-header--h1{flex-direction:row}}h1 svg,.site-header--h1 svg{width:inherit}button{all:unset;cursor:pointer}@media (hover: hover){button:hover{opacity:.8}}img{max-width:100%;height:auto;display:block}.theme-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;gap:1rem;padding:.5rem 1rem}.theme-toggler button{font-size:clamp(1.4rem,1.3391rem + .3478vw,1.6rem);font-family:inherit;background:var(--btn-blue);color:#fff;width:2.5rem;height:1.3rem;border-radius:2rem;display:flex;justify-content:flex-end;align-items:center;padding:2px}.theme-toggler button span{height:1.3rem;width:1.3rem;background-color:#fff;border-radius:50%}.theme-toggler p{font-size:1.4rem;font-weight:600;color:currentColor}.theme-toggler p.light{opacity:.75}.theme-toggler p.dark{opacity:1}.lightmode .theme-toggler button{justify-content:flex-start}.lightmode p.light{opacity:1}.lightmode p.dark{opacity:.5}.site-container{display:grid;grid-template-rows:auto 1fr auto;height:100dvh;height:100vh}.site-header,.main-content,.site-footer{padding:4rem 2rem}.site-header,.site-footer{text-align:center;border-style:solid;border-color:var(--fg)}.site-header{display:flex;flex-direction:column;gap:1.5rem;border-width:0 0 2px 0}.site-footer{border-width:2px 0 0 0}.site-footer a{color:var(--fg);text-decoration:none}.site-footer a:hover{text-decoration:underline}.site-footer a:after{content:" ⟶"}.site-navigation ul{list-style:none;display:flex;gap:2rem;align-items:baseline;justify-content:center;padding-left:0}.site-navigation a{text-decoration:none;color:var(--fg);border-width:0 0 .5rem 0;border-style:solid;border-color:transparent}.site-navigation a.active{border-color:var(--btn-blue)}.link-button{background-color:var(--btn-blue);color:#fff;font-weight:600;font-size:clamp(1.4rem,1.2174rem + 1.0435vw,2rem);padding:1rem 2rem;border-radius:.75rem;text-decoration:none;display:block;width:fit-content}@media (hover: hover){.link-button:hover{opacity:.8}}.link-button.cta{background-color:#ff4500;width:100%;text-align:center}.content-container{--_content-max-width: 72rem;--_content-space-outside: 2rem;width:min(var(--_content-max-width),100% - var(--_content-space-outside) * 2);display:flex;flex-direction:column;gap:3rem;margin-inline:auto;padding:2rem;background-color:var(--content-bg);border-radius:1rem;box-shadow:var(--shadow)}.home-container{background-color:transparent;box-shadow:none;display:grid;place-items:center;min-height:60rem;color:#fff}.home-container h1,.home-container p{text-align:center;text-wrap:balance}.home-container h1{line-height:1.3}.main-content:has(.home-container){background:linear-gradient(0deg,#00000075,#00000075),url(/vanlife/assets/home-hero-CTTc2mQF.png) no-repeat center center;background-size:cover}.about-page-content{background-color:transparent;box-shadow:none;color:#fff;display:grid;gap:3rem;padding-block:3rem}.about-page-content h1,.about-page-content h2,.about-page-content p{text-align:center;text-wrap:balance}.about-page-content h1{line-height:1.3}.about-page-content p{font-size:clamp(1.6rem,1.4783rem + .6957vw,2rem)}.about-page-content .link-button{width:fit-content;margin-inline:auto}.about-page-container{background-color:transparent;box-shadow:none;color:#fff}.main-content:has(.about-page-container){background:linear-gradient(0deg,#00000075,#00000075),url(/vanlife/assets/about-hero-C77xa_oF.png) no-repeat center center;background-size:cover}.van-footer{list-style:none;padding-inline-start:0}.van-type{text-transform:uppercase}.van-image{border-radius:1rem;border:.5rem solid white}.vans-container{background-color:transparent;padding-inline:0;box-shadow:none}.vans-container .van-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(32rem,1fr));grid-gap:2rem}.vans-container .van-list li a{display:flex;flex-direction:column;gap:2rem;padding:2rem 2.5rem;box-shadow:var(--shadow)}.vans-container .van-list li p{text-transform:uppercase}.vans-container .van-list li svg{margin-inline-start:auto;font-size:3rem}.van-detail-container{padding-block-end:5rem}.back-link:before{content:"⟵"}.skip-link{color:var(--body-txt);text-decoration:none;font-weight:600;padding:.5rem 1rem}.skip-link:after{content:" ↓"}.element-invisible{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute;top:0;left:0;z-index:200}.element-invisible.element-focusable:active,.element-invisible.element-focusable:focus{clip:auto;height:auto;overflow:visible}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(0);border:0}@media (prefers-reduced-motion: reduce){html,html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;transition-delay:0ms!important}}.warning{color:var(--clr-warning);font-weight:600}.hide{display:none} +*,*:before,*:after{margin:0;box-sizing:border-box}:root{font-size:10px;overflow-y:scroll;--bg: black;--fg: white;--content-bg: rgb(44, 58, 58);background-color:var(--bg);color:var(--fg);--shadow: 3px 3px 5px 0px rgba(0, 0, 0, .33);--btn-blue: #405cf5}.lightmode{--bg: white;--fg: black;--content-bg: #f5f5f5;background-color:var(--bg);color:var(--fg)}body{line-height:1.5;font-family:system-ui,sans-serif;font-size:1.6rem;position:relative}:focus-visible{outline:.2rem solid orange;outline-offset:.2rem}h1,h2,h3{font-weight:400}p,ul{font-size:clamp(1.6rem,1.4783rem + .6957vw,2rem)}h1,.site-header--h1{display:flex;flex-direction:column;gap:1.5rem;line-height:1;align-items:center;justify-content:center;font-weight:400;font-size:clamp(2rem,1.6348rem + 2.087vw,3.2rem)}@media screen and (width >= 360px){h1,.site-header--h1{flex-direction:row}}h1 svg,.site-header--h1 svg{width:inherit}button{all:unset;cursor:pointer}@media (hover: hover){button:hover{opacity:.8}}img{max-width:100%;height:auto;display:block}.theme-toggler{position:absolute;top:0;right:0;display:flex;align-items:center;gap:1rem;padding:.5rem 1rem}.theme-toggler button{font-size:clamp(1.4rem,1.3391rem + .3478vw,1.6rem);font-family:inherit;background:var(--btn-blue);color:#fff;width:2.5rem;height:1.3rem;border-radius:2rem;display:flex;justify-content:flex-end;align-items:center;padding:2px}.theme-toggler button span{height:1.3rem;width:1.3rem;background-color:#fff;border-radius:50%}.theme-toggler p{font-size:1.4rem;font-weight:600;color:currentColor}.theme-toggler p.light{opacity:.75}.theme-toggler p.dark{opacity:1}.lightmode .theme-toggler button{justify-content:flex-start}.lightmode p.light{opacity:1}.lightmode p.dark{opacity:.5}.site-container{display:grid;grid-template-rows:auto 1fr auto;height:100dvh;height:100vh}.site-header,.main-content,.site-footer{padding:4rem 2rem}.site-header,.site-footer{text-align:center;border-style:solid;border-color:var(--fg)}.site-header{display:flex;flex-direction:column;gap:1.5rem;border-width:0 0 2px 0}.site-footer{border-width:2px 0 0 0}.site-footer a{color:var(--fg);text-decoration:none}.site-footer a:hover{text-decoration:underline}.site-footer a:after{content:" ⟶"}.site-navigation ul{list-style:none;display:flex;gap:2rem;align-items:baseline;justify-content:center;padding-left:0}.site-navigation a{text-decoration:none;color:var(--fg);border-width:0 0 .5rem 0;border-style:solid;border-color:transparent}.site-navigation a.active{border-color:var(--btn-blue)}.link-button{background-color:var(--btn-blue);color:#fff;font-weight:600;font-size:clamp(1.4rem,1.2174rem + 1.0435vw,2rem);padding:1rem 2rem;border-radius:.75rem;text-decoration:none;display:block;width:fit-content}@media (hover: hover){.link-button:hover{opacity:.8}}.link-button.cta{background-color:#ff4500;width:100%;text-align:center}.content-container{--_content-max-width: 72rem;--_content-space-outside: 2rem;width:min(var(--_content-max-width),100% - var(--_content-space-outside) * 2);display:flex;flex-direction:column;gap:3rem;margin-inline:auto;padding:2rem;background-color:var(--content-bg);border-radius:1rem;box-shadow:var(--shadow)}.home-container{background-color:transparent;box-shadow:none;display:grid;place-items:center;min-height:60rem;color:#fff}.home-container h1,.home-container p{text-align:center;text-wrap:balance}.home-container h1{line-height:1.3}.main-content:has(.home-container){background:linear-gradient(0deg,#00000075,#00000075),url(/vanlife/assets/home-hero-CTTc2mQF.png) no-repeat center center;background-size:cover}.about-page-content{background-color:transparent;box-shadow:none;color:#fff;display:grid;gap:3rem;padding-block:3rem}.about-page-content h1,.about-page-content h2,.about-page-content p{text-align:center;text-wrap:balance}.about-page-content h1{line-height:1.3}.about-page-content p{font-size:clamp(1.6rem,1.4783rem + .6957vw,2rem)}.about-page-content .link-button{width:fit-content;margin-inline:auto}.about-page-container{background-color:transparent;box-shadow:none;color:#fff}.main-content:has(.about-page-container){background:linear-gradient(0deg,#00000075,#00000075),url(/vanlife/assets/about-hero-C77xa_oF.png) no-repeat center center;background-size:cover}.van-footer{list-style:none;padding-inline-start:0}.van-type{text-transform:uppercase}.van-image{border-radius:1rem;border:.5rem solid white}.vans-container{background-color:transparent;padding-inline:0;box-shadow:none}.vans-container .van-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(32rem,1fr));grid-gap:2rem}.vans-container .van-list li a{display:flex;flex-direction:column;gap:2rem;padding:2rem 2.5rem;box-shadow:var(--shadow);background-color:var(--content-bg);color:var(--fg)}.vans-container .van-list li p{text-transform:uppercase}.vans-container .van-list li svg{margin-inline-start:auto;font-size:3.5rem;fill:var(--btn-blue);background-color:#fff;border:.3rem solid white;border-radius:50%}.van-detail-container{padding-block-end:5rem}.back-link:before{content:"⟵"}.skip-link{color:var(--body-txt);text-decoration:none;font-weight:600;padding:.5rem 1rem}.skip-link:after{content:" ↓"}.element-invisible{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute;top:0;left:0;z-index:200}.element-invisible.element-focusable:active,.element-invisible.element-focusable:focus{clip:auto;height:auto;overflow:visible}.hosts-nav{margin-bottom:3rem}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(0);border:0}@media (prefers-reduced-motion: reduce){html,html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;transition-delay:0ms!important}}.warning{color:var(--clr-warning);font-weight:600}.hide{display:none} diff --git a/index.html b/index.html index bb4c5d2..0f6f230 100644 --- a/index.html +++ b/index.html @@ -23,8 +23,8 @@ } })(window.location); - - + +