@flarehr/salpac-cars-calculator 1.0.1321 → 1.0.1322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var e,t,r,n,o,i,a,s,l=Object.defineProperty,c=(e,t,r)=>(((e,t,r)=>{t in e?l(e,t,
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Ns=Is;var Hs="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bs=Ns.useSyncExternalStore,js=Ns.useRef,Us=Ns.useEffect,Ws=Ns.useMemo,zs=Ns.useDebugValue;Ds.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=js(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Ws((function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,Hs(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?(i=e,t):(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,n,o]);var s=Bs(e,i[0],i[1]);return Us((function(){a.hasValue=!0,a.value=s}),[s]),zs(s),s},Vs.exports=Ds;var $s=Vs.exports;function qs(e,t,r=Ss){return $s.useSyncExternalStoreWithSelector(zi((t=>e.subscribe(Zs,t))),zi((()=>e.state)),zi((()=>e.state)),zi(t),r)}function Zs(e){return e}function Gs(e,t){let r=be(),n=Rs.get(t),[o,i]=qs(n,ge((e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)]),[n,r]));return Ui((()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)}),[n,e,r]),!!e&&(!i||o)}let Ys=new Map,Ks=new Map;function Xs(e){var t;let r=null!=(t=Ks.get(e))?t:0;return Ks.set(e,r+1),0!==r||(Ys.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Js(e)}function Js(e){var t;let r=null!=(t=Ks.get(e))?t:1;if(1===r?Ks.delete(e):Ks.set(e,r-1),1!==r)return;let n=Ys.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Ys.delete(e))}let Qs=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),el=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var tl,rl,nl=((rl=nl||{})[rl.First=1]="First",rl[rl.Previous=2]="Previous",rl[rl.Next=4]="Next",rl[rl.Last=8]="Last",rl[rl.WrapAround=16]="WrapAround",rl[rl.NoScroll=32]="NoScroll",rl[rl.AutoFocus=64]="AutoFocus",rl),ol=((tl=ol||{})[tl.Error=0]="Error",tl[tl.Overflow=1]="Overflow",tl[tl.Success=2]="Success",tl[tl.Underflow=3]="Underflow",tl),il=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(il||{});var al=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(al||{});var sl=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(sl||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let ll=["textarea","input"].join(",");function cl(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),o=t(r);if(null===n||null===o)return 0;let i=n.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ul(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?cl(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(el)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Qs)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),n=null!=n?n:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ll))&&r}(s)&&s.select(),2}function dl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function pl(){return dl()||/Android/gi.test(window.navigator.userAgent)}function fl(e,t,r,n){let o=Wi(r);de((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){o.current(e)}}),[e,t,n])}function ml(e,t,r){let n=Wi(r),o=ge((function(e,r){if(e.defaultPrevented)return;let o=r(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var r;return e!==(null==(r=Ni(e))?void 0:r.body)&&Yi(t,{0:()=>e.matches(Qs),1(){let t=e;for(;null!==t;){if(t.matches(Qs))return!0;t=t.parentElement}return!1}})}(o,al.Loose)&&-1!==o.tabIndex&&e.preventDefault(),n.current(e,o)}),[n,t]),i=fe(null);fl(e,"pointerdown",(e=>{var t,r;pl()||(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),fl(e,"pointerup",(e=>{if(pl()||!i.current)return;let t=i.current;return i.current=null,o(e,(()=>t))}),!0);let a=fe({x:0,y:0});fl(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),fl(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(r-a.current.y)>=30))return o(e,(()=>Fa(e.target)?e.target:null))}),!0),function(e,t,r,n){let o=Wi(r);de((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){o.current(e)}}),[e,t,n])}(e,"blur",(e=>o(e,(()=>function(e){return Ea(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function hl(...e){return he((()=>Ni(...e)),[...e])}var gl=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(gl||{});const vl={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function yl(e){let t=fe({value:"",selectionStart:null,selectionEnd:null});return function(e,t,r,n){let o=Wi(r);de((()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}(e,"blur",(e=>{let r=e.target;Ta(r)&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})})),zi((()=>{if(document.activeElement!==e&&Ta(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:r,selectionEnd:n}=t.current;null!==r&&null!==n&&e.setSelectionRange(r,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}}))}function bl(e,t){return he((()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function wl(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=null!=(r=t.defaultView)?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-o);r.style(n,"paddingRight",`${i}px`)}}}function Cl(){return dl()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Bi();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let o=null!=(r=window.scrollY)?r:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(Fa(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:o}=new URL(r.href),a=e.querySelector(o);Fa(a)&&!n(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(Fa(e.target)&&function(e){return Sa(e)&&"style"in e}(e.target))if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(Fa(e.target)){if(Ta(e.target))return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function _l(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let xl=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...o){let i=t[e].call(r,...o);i&&(r=i,n.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Bi(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:_l(r)},o=[Cl(),wl(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(n))),o.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function kl(e,t,r=()=>({containers:[]})){let n=function(e){return Vt(e.subscribe,e.getSnapshot,e.getSnapshot)}(xl),o=t?n.get(t):void 0,i=!!o&&o.count>0;return Ui((()=>{if(t&&e)return xl.dispatch("PUSH",t,r),()=>xl.dispatch("POP",t,r)}),[e,t]),i}function Sl(e){return[e.screenX,e.screenY]}var El,Fl;xl.subscribe((()=>{let e=xl.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&xl.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&xl.dispatch("TEARDOWN",r)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(El=null==process?void 0:process.env)?void 0:El.NODE_ENV)&&void 0===(null==(Fl=null==Element?void 0:Element.prototype)?void 0:Fl.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Tl=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Tl||{});function Ol(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Ml(e,t,r,n){let[o,i]=ce(r),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,r]=ce(e),n=ge((e=>r(e)),[t]),o=ge((e=>r((t=>t|e))),[t]),i=ge((e=>(t&e)===e),[t]),a=ge((e=>r((t=>t&~e))),[r]),s=ge((e=>r((t=>t^e))),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),c=fe(!1),u=fe(!1),d=ji();return Ui((()=>{var o;if(e)return r&&i(!0),t?(null==(o=null==n?void 0:n.start)||o.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:o}){let i=Bi();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{r(),i.requestAnimationFrame((()=>{i.add(function(e,t){var r,n;let o=Bi();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter((e=>e instanceof CSSTransition)))?n:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,n))}))})),i.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),r||i(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})):void(r&&s(3))}),[e,r,t,d]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Ll(e,t){let r=fe([]),n=zi(e);de((()=>{let e=[...r.current];for(let[o,i]of t.entries())if(r.current[o]!==i){let o=n(t,e);return r.current=t,o}}),[n,...t])}function Al(e){return Vl(e)?(e.nodeName||"").toLowerCase():"#document"}function Pl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rl(e){var t;return null==(t=(Vl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vl(e){return e instanceof Node||e instanceof Pl(e).Node}function Dl(e){return e instanceof Element||e instanceof Pl(e).Element}function Il(e){return e instanceof HTMLElement||e instanceof Pl(e).HTMLElement}function Nl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Pl(e).ShadowRoot)}function Hl(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$l(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Bl(e){return["table","td","th"].includes(Al(e))}function jl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ki){return!1}}))}function Ul(e){const t=Wl(),r=Dl(e)?$l(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Wl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zl(e){return["html","body","#document"].includes(Al(e))}function $l(e){return Pl(e).getComputedStyle(e)}function ql(e){return Dl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zl(e){if("html"===Al(e))return e;const t=e.assignedSlot||e.parentNode||Nl(e)&&e.host||Rl(e);return Nl(t)?t.host:t}function Gl(e){const t=Zl(e);return zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Il(t)&&Hl(t)?t:Gl(t)}function Yl(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Gl(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Pl(o);return i?t.concat(a,a.visualViewport||[],Hl(o)?o:[],a.frameElement&&r?Yl(a.frameElement):[]):t.concat(o,Yl(o,[],r))}const Kl=Math.min,Xl=Math.max,Jl=Math.round,Ql=Math.floor,ec=e=>({x:e,y:e}),tc={left:"right",right:"left",bottom:"top",top:"bottom"},rc={start:"end",end:"start"};function nc(e,t,r){return Xl(e,Kl(t,r))}function oc(e,t){return"function"==typeof e?e(t):e}function ic(e){return e.split("-")[0]}function ac(e){return e.split("-")[1]}function sc(e){return"x"===e?"y":"x"}function lc(e){return"y"===e?"height":"width"}function cc(e){return["top","bottom"].includes(ic(e))?"y":"x"}function uc(e){return sc(cc(e))}function dc(e){return e.replace(/start|end/g,(e=>rc[e]))}function pc(e){return e.replace(/left|right|bottom|top/g,(e=>tc[e]))}function fc(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function mc(e,t,r){let{reference:n,floating:o}=e;const i=cc(t),a=uc(t),s=lc(a),l=ic(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-o.width,y:d};break;default:f={x:n.x,y:n.y}}switch(ac(t)){case"start":f[a]-=p*(r&&c?-1:1);break;case"end":f[a]+=p*(r&&c?-1:1)}return f}async function hc(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=oc(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),h=s[p?"floating"===d?"reference":"floating":d],g=fc(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=fc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}function gc(e){const t=$l(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Il(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Jl(r)!==i||Jl(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function vc(e){return Dl(e)?e:e.contextElement}function yc(e){const t=vc(e);if(!Il(t))return ec(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=gc(t);let a=(i?Jl(r.width):r.width)/n,s=(i?Jl(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const bc=ec(0);function wc(e){const t=Pl(e);return Wl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bc}function Cc(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=vc(e);let a=ec(1);t&&(n?Dl(n)&&(a=yc(n)):a=yc(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Pl(e))&&t}(i,r,n)?wc(i):ec(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Pl(i),t=n&&Dl(n)?Pl(n):n;let r=e,o=r.frameElement;for(;o&&n&&t!==r;){const e=yc(o),t=o.getBoundingClientRect(),n=$l(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Pl(o),o=r.frameElement}}return fc({width:u,height:d,x:l,y:c})}function _c(e){return Cc(Rl(e)).left+ql(e).scrollLeft}function xc(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Pl(e),n=Rl(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Wl();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Rl(e),r=ql(e),n=e.ownerDocument.body,o=Xl(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Xl(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+_c(e);const s=-r.scrollTop;return"rtl"===$l(n).direction&&(a+=Xl(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rl(e));else if(Dl(t))n=function(e,t){const r=Cc(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Il(e)?yc(e):ec(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=wc(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return fc(n)}function kc(e,t){const r=Zl(e);return!(r===t||!Dl(r)||zl(r))&&("fixed"===$l(r).position||kc(r,t))}function Sc(e,t,r){const n=Il(t),o=Rl(t),i="fixed"===r,a=Cc(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ec(0);if(n||!n&&!i)if(("body"!==Al(t)||Hl(o))&&(s=ql(t)),n){const e=Cc(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=_c(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ec(e){return"static"===$l(e).position}function Fc(e,t){return Il(e)&&"fixed"!==$l(e).position?t?t(e):e.offsetParent:null}function Tc(e,t){const r=Pl(e);if(jl(e))return r;if(!Il(e)){let t=Zl(e);for(;t&&!zl(t);){if(Dl(t)&&!Ec(t))return t;t=Zl(t)}return r}let n=Fc(e,t);for(;n&&Bl(n)&&Ec(n);)n=Fc(n,t);return n&&zl(n)&&Ec(n)&&!Ul(n)?r:n||function(e){let t=Zl(e);for(;Il(t)&&!zl(t);){if(Ul(t))return t;if(jl(t))return null;t=Zl(t)}return null}(e)||r}const Oc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Rl(n),s=!!t&&jl(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ec(1);const u=ec(0),d=Il(n);if((d||!d&&!i)&&(("body"!==Al(n)||Hl(a))&&(l=ql(n)),Il(n))){const e=Cc(n);c=yc(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Rl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?jl(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Yl(e,[],!1).filter((e=>Dl(e)&&"body"!==Al(e))),o=null;const i="fixed"===$l(e).position;let a=i?Zl(e):e;for(;Dl(a)&&!zl(a);){const t=$l(a),r=Ul(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Hl(a)&&!r&&kc(e,a))?n=n.filter((e=>e!==a)):o=t,a=Zl(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=xc(t,r,o);return e.top=Xl(n.top,e.top),e.right=Kl(n.right,e.right),e.bottom=Kl(n.bottom,e.bottom),e.left=Xl(n.left,e.left),e}),xc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Tc,getElementRects:async function(e){const t=this.getOffsetParent||Tc,r=this.getDimensions,n=await r(e.floating);return{reference:Sc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=gc(e);return{width:t,height:r}},getScale:yc,isElement:Dl,isRTL:function(e){return"rtl"===$l(e).direction}};function Mc(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=vc(e),u=o||i?[...c?Yl(c):[],...Yl(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const o=Rl(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Ql(u)+"px "+-Ql(o.clientWidth-(c+d))+"px "+-Ql(o.clientHeight-(u+p))+"px "+-Ql(c)+"px",threshold:Xl(0,Kl(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{n=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(Ki){n=new IntersectionObserver(h,f)}n.observe(e)}(!0),i}(c,r):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),r()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Cc(e):null;return l&&function t(){const n=Cc(e);!h||n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height||r();h=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const Lc=hc,Ac=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=ic(r),s=ac(r),l="y"===cc(r),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=oc(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=oc(e,t),c={x:r,y:n},u=await hc(t,l),d=cc(ic(o)),p=sc(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=nc(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=nc(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-r,y:h.y-n}}}}},Rc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=oc(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const v=ic(o),y=cc(s),b=ic(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!h?[pc(s)]:function(e){const t=pc(e);return[dc(e),t,dc(t)]}(s)),_="none"!==m;!p&&_&&C.push(...function(e,t,r,n){const o=ac(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(ic(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(dc)))),i}(s,h,m,w));const x=[s,...C],k=await hc(t,g),S=[];let E=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=ac(e),o=uc(e),i=lc(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=pc(a)),[a,pc(a)]}(o,a,w);S.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:S}],!S.every((e=>e<=0))){var F,T;const e=((null==(F=i.flip)?void 0:F.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(T=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!r)switch(f){case"bestFit":{var O;const e=null==(O=E.filter((e=>{if(_){const t=cc(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Vc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=oc(e,t),l=await hc(t,s),c=ic(r),u=ac(r),d="y"===cc(r),{width:p,height:f}=n.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=f-l.top-l.bottom,v=p-l.left-l.right,y=Kl(f-l[m],g),b=Kl(p-l[h],v),w=!t.middlewareData.shift;let C=y,_=b;if(d?_=u||w?Kl(b,v):v:C=u||w?Kl(y,g):g,w&&!u){const e=Xl(l.left,0),t=Xl(l.right,0),r=Xl(l.top,0),n=Xl(l.bottom,0);d?_=p-2*(0!==e||0!==t?e+t:Xl(l.left,l.right)):C=f-2*(0!==r||0!==n?r+n:Xl(l.top,l.bottom))}await a({...t,availableWidth:_,availableHeight:C});const x=await o.getDimensions(i.floating);return p!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}},Dc=(e,t,r)=>{const n=new Map,o={platform:Oc,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=mc(c,n,l),p=n,f={},m=0;for(let h=0;h<s.length;h++){const{name:r,fn:i}=s[h],{x:g,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[r]:{...f[r],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=mc(c,p,l))),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Ic="undefined"!=typeof document?pe:de;function Nc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!Nc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Nc(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Hc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bc(e,t){const r=Hc(e);return Math.round(t*r)/r}function jc(e){const t=fe(e);return Ic((()=>{t.current=e})),t}const Uc=(e,t)=>({...Ac(e),options:[e,t]}),Wc=(e,t)=>({...Rc(e),options:[e,t]}),zc=(e,t)=>({...Vc(e),options:[e,t]}),$c={...It},qc=$c.useInsertionEffect||(e=>e());function Zc(e){const t=fe((()=>{}));return qc((()=>{t.current=e})),ge((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}var Gc="undefined"!=typeof document?pe:de;let Yc=!1,Kc=0;const Xc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Kc++;const Jc=$c.useId||function(){const[e,t]=ce((()=>Yc?Xc():void 0));return Gc((()=>{null==e&&t(Xc())}),[]),de((()=>{Yc=!0}),[]),e};const Qc=U(null),eu=U(null);function tu(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Jc(),i=fe({}),[a]=ce((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),s=null!=((null==(l=ve(Qc))?void 0:l.id)||null);var l;const[c,u]=ce(n.reference),d=Zc(((e,t,n)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)})),p=he((()=>({setPositionReference:u})),[]),f=he((()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference})),[c,n.reference,n.floating]);return he((()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:a,floatingId:o,refs:p})),[t,d,f,a,o,p])}function ru(e){void 0===e&&(e={});const{nodeId:t}=e,r=tu({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[i,a]=ce(null),[s,l]=ce(null),c=(null==o?void 0:o.reference)||i,u=fe(null),d=ve(eu);Gc((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=ce({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=ce(n);Nc(p,n)||f(n);const[m,h]=ce(null),[g,v]=ce(null),y=ge((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=ge((e=>{e!==x.current&&(x.current=e,v(e))}),[]),w=i||m,C=a||g,_=fe(null),x=fe(null),k=fe(u),S=null!=l,E=jc(l),F=jc(o),T=ge((()=>{if(!_.current||!x.current)return;const e={placement:t,strategy:r,middleware:p};F.current&&(e.platform=F.current),Dc(_.current,x.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Nc(k.current,t)&&(k.current=t,Ot((()=>{d(t)})))}))}),[p,t,r,F]);Ic((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=fe(!1);Ic((()=>(O.current=!0,()=>{O.current=!1})),[]),Ic((()=>{if(w&&(_.current=w),C&&(x.current=C),w&&C){if(E.current)return E.current(w,C,T);T()}}),[w,C,T,E,S]);const M=he((()=>({reference:_,floating:x,setReference:y,setFloating:b})),[y,b]),L=he((()=>({reference:w,floating:C})),[w,C]),A=he((()=>{const e={position:r,left:0,top:0};if(!L.floating)return e;const t=Bc(L.floating,u.x),n=Bc(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Hc(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,L.floating,u.x,u.y]);return he((()=>({...u,update:T,refs:M,elements:L,floatingStyles:A})),[u,T,M,L,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=ge((e=>{const t=Dl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=ge((e=>{(Dl(e)||null===e)&&(u.current=e,a(e)),(Dl(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Dl(e))&&p.refs.setReference(e)}),[p.refs]),h=he((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=he((()=>({...p.elements,domReference:c})),[p.elements,c]),v=he((()=>({...p,...n,refs:h,elements:g,nodeId:t})),[p,h,g,t,n]);return Gc((()=>{n.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),he((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}const nu="active",ou="selected";function iu(e,t,r){const n=new Map,o="item"===r;let i=e;if(o&&e){const{[nu]:t,[ou]:r,...n}=e;i=n}return{..."floating"===r&&{tabIndex:-1},...i,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,i]=t;var a;o&&[nu,ou].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof i&&(null==(a=n.get(r))||a.push(i),e[r]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=n.get(r))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[r]=i)})),e):e),{})}}function au(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function su(e,t){const{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:s}=t,l=Zc(s),c=fe(!1),u=fe(null),d=fe(null);de((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const r=e.deltaY,n=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=r<0?-1:1,c=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!o&&r<0?(e.preventDefault(),Ot((()=>{l((e=>e+Math[c](r,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==a?void 0:a.current)||n.floating;return r&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=i.current&&(d.current={...i.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,r,n.floating,i,a,l]);const p=he((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||n.floating;if(i.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&Ot((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[n.floating,l,i,a]);return he((()=>o?{floating:p}:{}),[o,p])}let lu=U({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});lu.displayName="FloatingContext";let cu=U(null);cu.displayName="PlacementContext";function uu({children:e,enabled:t=!0}){let[r,n]=ce(null),[o,i]=ce(0),a=fe(null),[s,l]=ce(null);!function(e){Ui((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==r&&null!==s,{to:u="bottom",gap:d=0,offset:p=0,padding:f=0,inner:m}=function(e,t){var r,n,o;let i=du(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),a=du(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),s=du(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(r,s),[h,v="center"]=u.split(" ");Ui((()=>{c&&i(0)}),[c]);let{refs:y,floatingStyles:b,context:w}=ru({open:c,placement:"selection"===h?"center"===v?"bottom":`bottom-${v}`:"center"===v?`${h}`:`${h}-${v}`,strategy:"absolute",transform:!1,middleware:[Uc({mainAxis:"selection"===h?0:d,crossAxis:p}),(k={padding:f},{...Pc(k),options:[k,S]}),"selection"!==h&&Wc({padding:f}),"selection"===h&&m?(x={...m,padding:f,overflowRef:a,offset:o,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,r;if(!e)return;let n=w.elements.floating;if(!n)return;let o=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,a=Math.min(4,n.childElementCount),s=0,l=0;for(let i of null!=(r=null==(t=w.elements.floating)?void 0:t.childNodes)?r:[])if(Ea(i)){let e=i.offsetTop,t=e+i.clientHeight+o,r=n.scrollTop,c=r+n.clientHeight;if(!(e>=r&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,r)),s=i.clientHeight;break}a--}a>=1&&i((e=>{let t=s*a-l+o;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:r,onFallbackChange:n,offset:o=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=oc(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[i];if(!p)return{};const f={...e,...await Uc(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-o).fn(e)},m=(null==l?void 0:l.current)||d,h=await Lc(au(f,m.scrollHeight),c),g=await Lc(f,{...c,elementContext:"reference"}),v=Math.max(0,h.top),y=f.y+v,b=Math.max(0,m.scrollHeight-v-Math.max(0,h.bottom));return m.style.maxHeight=b+"px",m.scrollTop=v,n&&(m.offsetHeight<p.offsetHeight*Math.min(a,t.current.length-1)-1||g.top>=-s||g.bottom>=-s?Ot((()=>n(!0))):Ot((()=>n(!1)))),r&&(r.current=await Lc(au({...f,y:y},m.offsetHeight),c)),{y:y}}}):null,zc({padding:f,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Mc}),[C=h,_=v]=w.placement.split("-");var x,k,S;"selection"===h&&(C="selection");let E=he((()=>({anchor:[C,_].filter(Boolean).join(" ")})),[C,_]),F=su(w,{overflowRef:a,onChange:i}),{getReferenceProps:T,getFloatingProps:O}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),n=e.map((e=>null==e?void 0:e.item)),o=ge((t=>iu(t,e,"reference")),t),i=ge((t=>iu(t,e,"floating")),r),a=ge((t=>iu(t,e,"item")),n);return he((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([F]),M=zi((e=>{l(e),y.setFloating(e)}));return g(cu.Provider,{value:n},g(lu.Provider,{value:{setFloating:M,setReference:y.setReference,styles:b,getReferenceProps:T,getFloatingProps:O,slot:E}},e))}function du(e,t,r=void 0){let n=ji(),o=zi(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let o=fu(e,t);return[o,r=>{let i=pu(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));n.requestAnimationFrame((function s(){n.nextFrame(s);let l=!1;for(let[e,r]of i.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(a[e]!==n){a[e]=n,l=!0;break}}if(!l)return;let c=fu(e,t);o!==c&&(r(c),o=c)}))}return n.dispose}]}return[r,null]})),i=he((()=>o(e,t)[0]),[e,t]),[a=i,s]=ce();return Ui((()=>{let[r,n]=o(e,t);if(s(r),n)return n(s)}),[e,t]),a}function pu(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...pu(n)]:[r]}return[]}function fu(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function mu({children:e,freeze:t}){let r=hu(t,e);return Dt.createElement(Dt.Fragment,null,r)}function hu(e,t){let[r,n]=ce(t);return!e&&r!==t&&n(t),e?r:t}let gu=U(null);gu.displayName="OpenClosedContext";var vu=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vu||{});function yu({value:e,children:t}){return Dt.createElement(gu.Provider,{value:e},t)}let bu=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!Fa(e.target)||e.target===document.body||bu[0]===e.target)return;let t=e.target;t=t.closest(Qs),bu.unshift(null!=t?t:e.target),bu=bu.filter((e=>null!=e&&e.isConnected)),bu.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var wu,Cu=((wu=Cu||{})[wu.First=0]="First",wu[wu.Previous=1]="Previous",wu[wu.Next=2]="Next",wu[wu.Last=3]="Last",wu[wu.Specific=4]="Specific",wu[wu.Nothing=5]="Nothing",wu);function _u(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===o&&(o=r.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=o+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}var xu,ku=((xu=ku||{})[xu.Left=0]="Left",xu[xu.Right=2]="Right",xu);function Su(e){let t=zi(e),r=fe(!1);de((()=>(r.current=!1,()=>{r.current=!0,Hi((()=>{r.current&&t()}))})),[t])}function Eu(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in It&&It.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=ce(Ii.isHandoffComplete);return t&&!1===Ii.isHandoffComplete&&r(!1),de((()=>{!0!==t&&r(!0)}),[t]),de((()=>Ii.handoff()),[]),!e&&t}let Fu=U(!1);function Tu(e){let t=ve(Fu),r=ve(Au),[n,o]=ce((()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(Ii.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return de((()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))}),[n,e]),de((()=>{t||null!==r&&o(r.current)}),[r,o,t]),n}let Ou=b,Mu=ia((function(e,t){let{ownerDocument:r=null,...n}=e,o=fe(null),i=Ra(function(e,t=!0){return Object.assign(e,{[Pa]:t})}((e=>{o.current=e})),t),a=hl(o),s=null!=r?r:a,l=Tu(s),[c]=ce((()=>{var e;return Ii.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),u=ve(Pu),d=Eu();Ui((()=>{!l||!c||l.contains(c)||(c.setAttribute("data-headlessui-portal",""),l.appendChild(c))}),[l,c]),Ui((()=>{if(c&&u)return u.register(c)}),[u,c]),Su((()=>{var e;!l||!c||(ka(c)&&l.contains(c)&&l.removeChild(c),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))}));let p=ea();return d&&l&&c?ot(p({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Ou,name:"Portal"}),c):null}));let Lu=b,Au=U(null);let Pu=U(null),Ru=ia((function(e,t){let r=Ra(t),{enabled:n=!0,ownerDocument:o,...i}=e,a=ea();return n?Dt.createElement(Mu,{...i,ownerDocument:o,ref:r}):a({ourProps:{ref:r},theirProps:i,slot:{},defaultTag:Ou,name:"Portal"})})),Vu=ia((function(e,t){let{target:r,...n}=e,o={ref:Ra(t)},i=ea();return Dt.createElement(Au.Provider,{value:r},i({ourProps:o,theirProps:n,defaultTag:Lu,name:"Popover.Group"}))})),Du=Object.assign(Ru,{Group:Vu});var Iu,Nu=Object.defineProperty,Hu=(e,t,r)=>(((e,t,r)=>{t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Bu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bu||{}),ju=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ju||{}),Uu=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Uu||{}),Wu=((Iu=Wu||{})[Iu.OpenCombobox=0]="OpenCombobox",Iu[Iu.CloseCombobox=1]="CloseCombobox",Iu[Iu.GoToOption=2]="GoToOption",Iu[Iu.SetTyping=3]="SetTyping",Iu[Iu.RegisterOption=4]="RegisterOption",Iu[Iu.UnregisterOption=5]="UnregisterOption",Iu[Iu.DefaultToFirstOption=6]="DefaultToFirstOption",Iu[Iu.SetActivationTrigger=7]="SetActivationTrigger",Iu[Iu.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",Iu[Iu.SetInputElement=9]="SetInputElement",Iu[Iu.SetButtonElement=10]="SetButtonElement",Iu[Iu.SetOptionsElement=11]="SetOptionsElement",Iu);function zu(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),o=n.length>0&&null!==n[0].dataRef.current.order?n.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):cl(n,(e=>e.dataRef.current.domRef.current)),i=r?o.indexOf(r):null;return-1===i&&(i=null),{options:o,activeOptionIndex:i}}let $u={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var r,n,o,i;if(null!=(r=e.dataRef.current)&&r.disabled||e.optionsElement&&(null==(n=e.dataRef.current)||!n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:r,disabled:n}=e.virtual,i=t.focus===Cu.Specific?t.idx:_u(t,{resolveItems:()=>r,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:r.findIndex((e=>!n(e))))?o:null},resolveDisabled:n,resolveId(){throw new Error("Function not implemented.")}}),a=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===a?e:{...e,activeOptionIndex:i,activationTrigger:a,isTyping:!1,__demoMode:!1}}let a=zu(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let s=t.focus===Cu.Specific?t.idx:_u(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,...a,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var r,n,o,i;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,s=zu(e,(e=>(e.push(a),e)));null===e.activeOptionIndex&&null!=(o=(n=e.dataRef.current).isSelected)&&o.call(n,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(a));let l={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let n=zu(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...n,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var r,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==r?r:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}};class qu extends ks{constructor(e){super(e),Hu(this,"actions",{onChange:e=>{let{onChange:t,compare:r,mode:n,value:o}=this.state.dataRef.current;return Yi(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=o.slice(),i=n.findIndex((t=>r(t,e)));return-1===i?n.push(e):n.splice(i,1),null==t?void 0:t(n)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:Cu.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),Hu(this,"selectors",{activeDescendantId:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);if(null!==n)return e.virtual?null==(r=e.options.find((t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[n]))))?void 0:r.id:null==(t=e.options[n])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:r}=e.virtual,n=t.findIndex((e=>{var t;return!(null!=(t=null==r?void 0:r(e))&&t)}));if(-1!==n)return n}let t=e.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);return null===n?null:e.virtual?e.virtual.options[null!=n?n:0]:null!=(r=null==(t=e.options[n])?void 0:t.dataRef.current.value)?r:null},isActive:(e,t,r)=>{var n;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(n=e.options[o])?void 0:n.id)===r)},shouldScrollIntoView:(e,t,r)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,r))});{let e=this.state.id,t=Rs.get(null);this.disposables.add(t.on(Ls.Push,(r=>{!t.selectors.isTop(r,e)&&0===this.state.comboboxState&&this.actions.closeCombobox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,virtual:t=null,__demoMode:r=!1}){var n;return new qu({id:e,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r})}reduce(e,t){return Yi(t.type,$u,e,t)}}const Zu=U(null);function Gu(e){let t=ve(Zu);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Yu),t}return t}function Yu({id:e,virtual:t=null,__demoMode:r=!1}){let n=he((()=>qu.new({id:e,virtual:t,__demoMode:r})),[]);return Su((()=>n.dispose())),n}let Ku=U(null);function Xu(e){let t=ve(Ku);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Xu),t}return t}Ku.displayName="ComboboxDataContext";let Ju=U(null);function Qu(e){let t=Gu("VirtualProvider"),r=Xu("VirtualProvider"),{options:n}=r.virtual,o=qs(t,(e=>e.optionsElement)),[i,a]=he((()=>{let e=o;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[o]),s=us({enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:a,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[l,c]=ce(0);Ui((()=>{c((e=>e+1))}),[n]);let u=s.getVirtualItems(),d=qs(t,(e=>e.activationTrigger===Uu.Pointer)),p=qs(t,t.selectors.activeOptionIndex);return 0===u.length?null:Dt.createElement(Ju.Provider,{value:s},Dt.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&(d||null!==p&&n.length>p&&s.scrollToIndex(p))}},u.map((t=>{var r;return Dt.createElement(b,{key:t.key},Dt.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))}))))}let ed=b;let td=Ji.RenderStrategy|Ji.Static;let rd=ia((function(e,t){let r=be(),n=qi(),{value:o,defaultValue:i,onChange:a,form:s,name:l,by:c,invalid:u=!1,disabled:d=n||!1,onClose:p,__demoMode:f=!1,multiple:m=!1,immediate:h=!1,virtual:g=null,nullable:v,...y}=e,b=ua(i),[w=(m?[]:void 0),C]=ca(o,a,b),_=Yu({id:r,virtual:g,__demoMode:f}),x=fe({static:!1,hold:!1}),k=ps(c),S=zi((e=>g?null===c?g.options.indexOf(e):g.options.findIndex((t=>k(t,e))):_.state.options.findIndex((t=>k(t.dataRef.current.value,e))))),E=ge((e=>Yi(O.mode,{[ju.Multi]:()=>w.some((t=>k(t,e))),[ju.Single]:()=>k(w,e)})),[w]),F=qs(_,(e=>e.virtual)),T=zi((()=>null==p?void 0:p())),O=he((()=>({__demoMode:f,immediate:h,optionsPropsRef:x,value:w,defaultValue:b,disabled:d,invalid:u,mode:m?ju.Multi:ju.Single,virtual:g?F:null,onChange:C,isSelected:E,calculateIndex:S,compare:k,onClose:T})),[w,b,d,u,m,C,E,f,_,g,F,T]);Ui((()=>{var e;g&&_.send({type:Wu.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})}),[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),Ui((()=>{_.state.dataRef.current=O}),[O]);let[M,L,A,P]=qs(_,(e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement])),R=Rs.get(null);ml(qs(R,ge((e=>R.selectors.isTop(e,r)),[R,r])),[L,A,P],(()=>_.actions.closeCombobox()));let V=qs(_,_.selectors.activeOptionIndex),D=qs(_,_.selectors.activeOption),I=he((()=>({open:M===Bu.Open,disabled:d,invalid:u,activeIndex:V,activeOption:D,value:w})),[O,d,w,u,D,M]),[N,H]=qa(),B=null===t?{}:{ref:t},j=ge((()=>{if(void 0!==b)return null==C?void 0:C(b)}),[C,b]),U=ea();return Dt.createElement(H,{value:N,props:{htmlFor:null==A?void 0:A.id},slot:{open:M===Bu.Open,disabled:d}},Dt.createElement(uu,null,Dt.createElement(Ku.Provider,{value:O},Dt.createElement(Zu.Provider,{value:_},Dt.createElement(yu,{value:Yi(M,{[Bu.Open]:vu.Open,[Bu.Closed]:vu.Closed})},null!=l&&Dt.createElement(ba,{disabled:d,data:null!=w?{[l]:w}:{},form:s,onReset:j}),U({ourProps:B,theirProps:y,slot:I,defaultTag:ed,name:"Combobox"}))))))})),nd=ia((function(e,t){let r=Gu("Combobox.Button"),n=Xu("Combobox.Button"),[o,i]=ce(null),a=Ra(t,i,r.actions.setButtonElement),s=be(),{id:l=`headlessui-combobox-button-${s}`,disabled:c=n.disabled||!1,autoFocus:u=!1,...d}=e,[p,f,m]=qs(r,(e=>[e.comboboxState,e.inputElement,e.optionsElement])),h=yl(f);!function(e,{trigger:t,action:r,close:n,select:o}){let i=fe(null),a=fe(null),s=fe(null);fl(e&&null!==t,"pointerdown",(e=>{ka(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,s.current=e.y,i.current=new Date)})),fl(e&&null!==t,"pointerup",(e=>{var t,l;if(null===i.current||!Fa(e.target)||Math.abs(e.x-(null!=(t=a.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=s.current)?l:e.y))<5)return;let c=r(e),u=(new Date).getTime()-i.current.getTime();switch(i.current=null,c.kind){case 0:return;case 1:u>200&&(o(c.target),n());break;case 2:n()}}),{capture:!0})}(p===Bu.Open,{trigger:o,action:ge((e=>{if(null!=o&&o.contains(e.target))return vl.Ignore;if(null!=f&&f.contains(e.target))return vl.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Ea(t)?vl.Select(t):null!=m&&m.contains(e.target)?vl.Ignore:vl.Close}),[o,f,m]),close:r.actions.closeCombobox,select:r.actions.selectActiveOption});let g=zi((e=>{switch(e.key){case Ua.Space:case Ua.Enter:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&Ot((()=>r.actions.openCombobox())),void h();case Ua.ArrowDown:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&(Ot((()=>r.actions.openCombobox())),r.state.dataRef.current.value||r.actions.goToOption({focus:Cu.First})),void h();case Ua.ArrowUp:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&(Ot((()=>r.actions.openCombobox())),r.state.dataRef.current.value||r.actions.goToOption({focus:Cu.Last})),void h();case Ua.Escape:if(r.state.comboboxState!==Bu.Open)return;return e.preventDefault(),r.state.optionsElement&&!n.optionsPropsRef.current.static&&e.stopPropagation(),Ot((()=>r.actions.closeCombobox())),void h();default:return}})),v=zi((e=>{e.preventDefault(),!Aa(e.currentTarget)&&(e.button===ku.Left&&(r.state.comboboxState===Bu.Open?r.actions.closeCombobox():r.actions.openCombobox()),h())})),y=$a([l]),{isFocusVisible:b,focusProps:w}=Ri({autoFocus:u}),{isHovered:C,hoverProps:_}=Pi({isDisabled:c}),{pressed:x,pressProps:k}=function({disabled:e=!1}={}){let t=fe(null),[r,n]=ce(!1),o=ji(),i=zi((()=>{t.current=null,n(!1),o.dispose()})),a=zi((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=Ni(e.currentTarget);o.addEventListener(r,"pointerup",i,!1),o.addEventListener(r,"pointermove",(e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);n(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(r,"pointercancel",i,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}({disabled:c}),S=he((()=>({open:p===Bu.Open,active:x||p===Bu.Open,disabled:c,invalid:n.invalid,value:n.value,hover:C,focus:b})),[n,C,b,x,c,p]),E=oa({ref:a,id:l,type:bl(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==m?void 0:m.id,"aria-expanded":p===Bu.Open,"aria-labelledby":y,disabled:c||void 0,autoFocus:u,onPointerDown:v,onKeyDown:g},w,_,k);return ea()({ourProps:E,theirProps:d,slot:S,defaultTag:"button",name:"Combobox.Button"})})),od=ia((function(e,t){var r,n;let o=Gu("Combobox.Input"),i=Xu("Combobox.Input"),a=be(),s=_a(),{id:l=s||`headlessui-combobox-input-${a}`,onChange:c,displayValue:u,disabled:d=i.disabled||!1,autoFocus:p=!1,type:f="text",...m}=e,[h]=qs(o,(e=>[e.inputElement])),g=fe(null),v=Ra(g,t,ve(lu).setReference,o.actions.setInputElement),y=hl(h),[b,w]=qs(o,(e=>[e.comboboxState,e.isTyping])),C=ji(),_=zi((()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:Cu.Nothing})})),x=he((()=>{var e;return"function"==typeof u&&void 0!==i.value?null!=(e=u(i.value))?e:"":"string"==typeof i.value?i.value:""}),[i.value,u]);Ll((([e,t],[r,n])=>{if(o.state.isTyping)return;let i=g.current;i&&((n===Bu.Open&&t===Bu.Closed||e!==r)&&(i.value=e),requestAnimationFrame((()=>{if(o.state.isTyping||!i||(null==y?void 0:y.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)})))}),[x,b,y,w]),Ll((([e],[t])=>{if(e===Bu.Open&&t===Bu.Closed){if(o.state.isTyping)return;let e=g.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(r,n,i):e.setSelectionRange(r,n)}}),[b]);let k=fe(!1),S=zi((()=>{k.current=!0})),E=zi((()=>{C.nextFrame((()=>{k.current=!1}))})),F=zi((e=>{switch(o.actions.setIsTyping(!0),e.key){case Ua.Enter:if(o.state.comboboxState!==Bu.Open||k.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state))return void o.actions.closeCombobox();o.actions.selectActiveOption(),i.mode===ju.Single&&o.actions.closeCombobox();break;case Ua.ArrowDown:return e.preventDefault(),e.stopPropagation(),Yi(o.state.comboboxState,{[Bu.Open]:()=>o.actions.goToOption({focus:Cu.Next}),[Bu.Closed]:()=>o.actions.openCombobox()});case Ua.ArrowUp:return e.preventDefault(),e.stopPropagation(),Yi(o.state.comboboxState,{[Bu.Open]:()=>o.actions.goToOption({focus:Cu.Previous}),[Bu.Closed]:()=>{Ot((()=>o.actions.openCombobox())),i.value||o.actions.goToOption({focus:Cu.Last})}});case Ua.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.First});case Ua.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.First});case Ua.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.Last});case Ua.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.Last});case Ua.Escape:return o.state.comboboxState!==Bu.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===ju.Single&&null===i.value&&_(),o.actions.closeCombobox());case Ua.Tab:if(o.state.comboboxState!==Bu.Open)return;i.mode===ju.Single&&o.state.activationTrigger!==Uu.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}})),T=zi((e=>{null==c||c(e),i.mode===ju.Single&&""===e.target.value&&_(),o.actions.openCombobox()})),O=zi((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:bu.find((t=>t!==e.currentTarget));if(!(null!=(r=o.state.optionsElement)&&r.contains(a)||null!=(n=o.state.buttonElement)&&n.contains(a)||o.state.comboboxState!==Bu.Open))return e.preventDefault(),i.mode===ju.Single&&null===i.value&&_(),o.actions.closeCombobox()})),M=zi((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:bu.find((t=>t!==e.currentTarget));null!=(r=o.state.buttonElement)&&r.contains(a)||null!=(n=o.state.optionsElement)&&n.contains(a)||i.disabled||i.immediate&&o.state.comboboxState!==Bu.Open&&C.microTask((()=>{Ot((()=>o.actions.openCombobox())),o.actions.setActivationTrigger(Uu.Focus)}))})),L=$a(),A=Ia(),{isFocused:P,focusProps:R}=Ri({autoFocus:p}),{isHovered:V,hoverProps:D}=Pi({isDisabled:d}),I=qs(o,(e=>e.optionsElement)),N=he((()=>({open:b===Bu.Open,disabled:d,invalid:i.invalid,hover:V,focus:P,autofocus:p})),[i,V,P,p,d,i.invalid]),H=oa({ref:v,id:l,role:"combobox",type:f,"aria-controls":null==I?void 0:I.id,"aria-expanded":b===Bu.Open,"aria-activedescendant":qs(o,o.selectors.activeDescendantId),"aria-labelledby":L,"aria-describedby":A,"aria-autocomplete":"list",defaultValue:null!=(n=null!=(r=e.defaultValue)?r:void 0!==i.defaultValue?null==u?void 0:u(i.defaultValue):null)?n:i.defaultValue,disabled:d||void 0,autoFocus:p,onCompositionStart:S,onCompositionEnd:E,onKeyDown:F,onChange:T,onFocus:M,onBlur:O},R,D);return ea()({ourProps:H,theirProps:m,slot:N,defaultTag:"input",name:"Combobox.Input"})})),id=Ga,ad=ia((function(e,t){var r,n,o;let i=be(),{id:a=`headlessui-combobox-options-${i}`,hold:s=!1,anchor:l,portal:c=!1,modal:u=!0,transition:d=!1,...p}=e,f=Gu("Combobox.Options"),m=Xu("Combobox.Options"),h=function(e){return he((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(l);h&&(c=!0);let[g,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=ve(cu),r=he((()=>e),[JSON.stringify(e,((e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t}))]);Ui((()=>{null==t||t(null!=r?r:null)}),[t,r]);let n=ve(lu);return he((()=>[n.setFloating,e?n.styles:{}]),[n.setFloating,e,n.styles])}(h),[y,b]=ce(null),w=function(){let{getFloatingProps:e,slot:t}=ve(lu);return ge(((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor})),[e,t])}(),C=Ra(t,h?g:null,f.actions.setOptionsElement,b),[_,x,k,S,E]=qs(f,(e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger])),F=hl(x||k),T=hl(S),O=ve(gu),[M,L]=Ml(d,y,null!==O?(O&vu.Open)===vu.Open:_===Bu.Open);!function(e,t,r){let n=Wi((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));de((()=>{if(!e)return;let r=null===t?null:Ea(t)?t:t.current;if(!r)return;let o=Bi();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,n,e])}(M,x,f.actions.closeCombobox),function(e,t,r=()=>[document.body]){kl(Gs(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(!m.__demoMode&&(u&&_===Bu.Open),T),function(e,{allowed:t,disallowed:r}={}){let n=Gs(e,"inert-others");Ui((()=>{var e,o;if(!n)return;let i=Bi();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&i.add(Xs(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let t of a){if(!t)continue;let e=Ni(t);if(!e)continue;let r=t.parentElement;for(;r&&r!==e.body;){for(let e of r.children)a.some((t=>e.contains(t)))||i.add(Xs(e));r=r.parentElement}}return i.dispose}),[n,t,r])}(!m.__demoMode&&(u&&_===Bu.Open),{allowed:ge((()=>[x,k,S]),[x,k,S])}),Ui((()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[m.optionsPropsRef,e.static]),Ui((()=>{m.optionsPropsRef.current.hold=s}),[m.optionsPropsRef,s]),function(e,{container:t,accept:r,walk:n}){let o=fe(r),i=fe(n);de((()=>{o.current=r,i.current=n}),[r,n]),Ui((()=>{if(!t||!e)return;let r=Ni(t);if(!r)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,o,i])}(_===Bu.Open,{container:S,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let A=$a([null==k?void 0:k.id]),P=he((()=>({open:_===Bu.Open,option:void 0})),[_]),R=zi((()=>{f.actions.setActivationTrigger(Uu.Pointer)})),V=zi((e=>{e.preventDefault(),f.actions.setActivationTrigger(Uu.Pointer)})),D=oa(h?w():{},{"aria-labelledby":A,role:"listbox","aria-multiselectable":m.mode===ju.Multi||void 0,id:a,ref:C,style:{...p.style,...v,"--input-width":fs(x,!0).width,"--button-width":fs(k,!0).width},onWheel:E===Uu.Pointer?void 0:R,onMouseDown:V,...Ol(L)}),I=M&&_===Bu.Closed,N=hu(I,null==(r=m.virtual)?void 0:r.options),H=hu(I,m.value),B=zi((e=>m.compare(H,e))),j=he((()=>{if(!m.virtual)return m;if(void 0===N)throw new Error("Missing `options` in virtual mode");return N!==m.virtual.options?{...m,virtual:{...m.virtual,options:N}}:m}),[m,N,null==(n=m.virtual)?void 0:n.options]);m.virtual&&Object.assign(p,{children:Dt.createElement(Ku.Provider,{value:j},Dt.createElement(Qu,{slot:P},p.children))});let U=ea(),W=he((()=>m.mode===ju.Multi?m:{...m,isSelected:B}),[m,B]);return Dt.createElement(Du,{enabled:!!c&&(e.static||M),ownerDocument:F},Dt.createElement(Ku.Provider,{value:W},U({ourProps:D,theirProps:{...p,children:Dt.createElement(mu,{freeze:I},"function"==typeof p.children?null==(o=p.children)?void 0:o.call(p,P):p.children)},slot:P,defaultTag:"div",features:td,visible:M,name:"Combobox.Options"})))})),sd=ia((function(e,t){var r,n,o;let i=Xu("Combobox.Option"),a=Gu("Combobox.Option"),s=be(),{id:l=`headlessui-combobox-option-${s}`,value:c,disabled:u=null!=(o=null==(n=null==(r=i.virtual)?void 0:r.disabled)?void 0:n.call(r,c))&&o,order:d=null,...p}=e,[f]=qs(a,(e=>[e.inputElement])),m=yl(f),h=qs(a,ge((e=>a.selectors.isActive(e,c,l)),[c,l])),g=i.isSelected(c),v=fe(null),y=Wi({disabled:u,value:c,domRef:v,order:d}),b=ve(Ju),w=Ra(t,v,b?b.measureElement:null),C=zi((()=>{a.actions.setIsTyping(!1),a.actions.onChange(c)}));Ui((()=>a.actions.registerOption(l,y)),[y,l]);let _=qs(a,ge((e=>a.selectors.shouldScrollIntoView(e,c,l)),[c,l]));Ui((()=>{if(_)return Bi().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[_,v]);let x=zi((e=>{e.preventDefault(),e.button===ku.Left&&(u||(C(),pl()||requestAnimationFrame((()=>m())),i.mode===ju.Single&&a.actions.closeCombobox()))})),k=zi((()=>{if(u)return a.actions.goToOption({focus:Cu.Nothing});let e=i.calculateIndex(c);a.actions.goToOption({focus:Cu.Specific,idx:e})})),S=function(){let e=fe([-1,-1]);return{wasMoved(t){let r=Sl(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=Sl(t)}}}(),E=zi((e=>S.update(e))),F=zi((e=>{if(!S.wasMoved(e)||u||h)return;let t=i.calculateIndex(c);a.actions.goToOption({focus:Cu.Specific,idx:t},Uu.Pointer)})),T=zi((e=>{S.wasMoved(e)&&(u||h&&(i.optionsPropsRef.current.hold||a.actions.goToOption({focus:Cu.Nothing})))})),O=he((()=>({active:h,focus:h,selected:g,disabled:u})),[h,g,u]),M={id:l,ref:w,role:"option",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,"aria-selected":g,disabled:void 0,onMouseDown:x,onFocus:k,onPointerEnter:E,onMouseEnter:E,onPointerMove:F,onMouseMove:F,onPointerLeave:T,onMouseLeave:T};return ea()({ourProps:M,theirProps:p,slot:O,defaultTag:"div",name:"Combobox.Option"})})),ld=Object.assign(rd,{Input:od,Button:nd,Label:id,Options:ad,Option:sd});let cd=ia((function(e,t){let r=`headlessui-control-${be()}`,[n,o]=qa(),[i,a]=Na(),s=qi(),{disabled:l=s||!1,...c}=e,u=he((()=>({disabled:l})),[l]),d={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},p=ea();return Dt.createElement(Zi,{value:l},Dt.createElement(o,{value:n},Dt.createElement(a,{value:i},Dt.createElement(xa,{id:r},p({ourProps:d,theirProps:{...c,children:Dt.createElement(va,null,"function"==typeof c.children?c.children(u):c.children)},slot:u,defaultTag:"div",name:"Field"})))))}));var ud=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(ud||{});let dd={0(e,t){let r=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:cl(r,(e=>e.element.current))}},1(e,t){let r=e.options.slice(),n=e.options.findIndex((e=>e.id===t.id));return-1===n?e:(r.splice(n,1),{...e,options:r})}},pd=U(null);function fd(e){let t=ve(pd);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fd),t}return t}pd.displayName="RadioGroupDataContext";let md=U(null);function hd(e){let t=ve(md);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hd),t}return t}function gd(e,t){return Yi(t.type,dd,e,t)}md.displayName="RadioGroupActionsContext";let vd=ia((function(e,t){let r=be(),n=qi(),{id:o=`headlessui-radiogroup-${r}`,value:i,form:a,name:s,onChange:l,by:c,disabled:u=n||!1,defaultValue:d,tabIndex:p=0,...f}=e,m=ps(c),[h,g]=ue(gd,{options:[]}),v=h.options,[y,b]=qa(),[w,C]=Na(),_=fe(null),x=Ra(_,t),k=ua(d),[S,E]=ca(i,l,k),F=he((()=>v.find((e=>!e.propsRef.current.disabled))),[v]),T=he((()=>v.some((e=>m(e.propsRef.current.value,S)))),[v,S]),O=zi((e=>{var t;if(u||m(e,S))return!1;let r=null==(t=v.find((t=>m(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==r||!r.disabled)&&(null==E||E(e),!0)})),M=zi((e=>{let t=_.current;if(!t)return;let r=Ni(t),n=v.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case Ua.Enter:!function(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}(e.currentTarget);break;case Ua.ArrowLeft:case Ua.ArrowUp:if(e.preventDefault(),e.stopPropagation(),ul(n,nl.Previous|nl.WrapAround)===ol.Success){let e=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&O(e.propsRef.current.value)}break;case Ua.ArrowRight:case Ua.ArrowDown:if(e.preventDefault(),e.stopPropagation(),ul(n,nl.Next|nl.WrapAround)===ol.Success){let e=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&O(e.propsRef.current.value)}break;case Ua.Space:{e.preventDefault(),e.stopPropagation();let t=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));t&&O(t.propsRef.current.value)}}})),L=zi((e=>(g({type:0,...e}),()=>g({type:1,id:e.id})))),A=he((()=>({value:S,firstOption:F,containsCheckedOption:T,disabled:u,compare:m,tabIndex:p,...h})),[S,F,T,u,m,p,h]),P=he((()=>({registerOption:L,change:O})),[L,O]),R={ref:x,id:o,role:"radiogroup","aria-labelledby":y,"aria-describedby":w,onKeyDown:M},V=he((()=>({value:S})),[S]),D=ge((()=>{if(void 0!==k)return O(k)}),[O,k]),I=ea();return Dt.createElement(C,{name:"RadioGroup.Description"},Dt.createElement(b,{name:"RadioGroup.Label"},Dt.createElement(md.Provider,{value:P},Dt.createElement(pd.Provider,{value:A},null!=s&&Dt.createElement(ba,{disabled:u,data:{[s]:S||"on"},overrides:{type:"radio",checked:null!=S},form:a,onReset:D}),I({ourProps:R,theirProps:f,slot:V,defaultTag:"div",name:"RadioGroup"})))))})),yd=ia((function(e,t){var r;let n=fd("RadioGroup.Option"),o=hd("RadioGroup.Option"),i=be(),{id:a=`headlessui-radiogroup-option-${i}`,value:s,disabled:l=n.disabled||!1,autoFocus:c=!1,...u}=e,d=fe(null),p=Ra(d,t),[f,m]=qa(),[h,g]=Na(),v=Wi({value:s,disabled:l});Ui((()=>o.registerOption({id:a,element:d,propsRef:v})),[a,o,d,v]);let y=zi((e=>{var t;if(Aa(e.currentTarget))return e.preventDefault();o.change(s)&&(null==(t=d.current)||t.focus())})),b=(null==(r=n.firstOption)?void 0:r.id)===a,{isFocusVisible:w,focusProps:C}=Ri({autoFocus:c}),{isHovered:_,hoverProps:x}=Pi({isDisabled:l}),k=n.compare(n.value,s),S=oa({ref:p,id:a,role:"radio","aria-checked":k?"true":"false","aria-labelledby":f,"aria-describedby":h,"aria-disabled":!!l||void 0,tabIndex:l?-1:k||!n.containsCheckedOption&&b?n.tabIndex:-1,onClick:l?void 0:y,autoFocus:c},C,x),E=he((()=>({checked:k,disabled:l,active:w,hover:_,focus:w,autofocus:c})),[k,l,_,w,c]),F=ea();return Dt.createElement(g,{name:"RadioGroup.Description"},Dt.createElement(m,{name:"RadioGroup.Label"},F({ourProps:S,theirProps:u,slot:E,defaultTag:"div",name:"RadioGroup.Option"})))})),bd=ia((function(e,t){var r;let n=fd("Radio"),o=hd("Radio"),i=be(),a=_a(),s=qi(),{id:l=a||`headlessui-radio-${i}`,value:c,disabled:u=n.disabled||s||!1,autoFocus:d=!1,...p}=e,f=fe(null),m=Ra(f,t),h=$a(),g=Ia(),v=Wi({value:c,disabled:u});Ui((()=>o.registerOption({id:l,element:f,propsRef:v})),[l,o,f,v]);let y=zi((e=>{var t;if(Aa(e.currentTarget))return e.preventDefault();o.change(c)&&(null==(t=f.current)||t.focus())})),{isFocusVisible:b,focusProps:w}=Ri({autoFocus:d}),{isHovered:C,hoverProps:_}=Pi({isDisabled:u}),x=(null==(r=n.firstOption)?void 0:r.id)===l,k=n.compare(n.value,c),S=oa({ref:m,id:l,role:"radio","aria-checked":k?"true":"false","aria-labelledby":h,"aria-describedby":g,"aria-disabled":!!u||void 0,tabIndex:u?-1:k||!n.containsCheckedOption&&x?n.tabIndex:-1,autoFocus:d,onClick:u?void 0:y},w,_),E=he((()=>({checked:k,disabled:u,hover:C,focus:b,autofocus:d})),[k,u,C,b,d]);return ea()({ourProps:S,theirProps:p,slot:E,defaultTag:"span",name:"Radio"})})),wd=Ga,Cd=Ba,_d=Object.assign(vd,{Option:yd,Radio:bd,Label:wd,Description:Cd});const xd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,viewBox:"0 0 16 12",fill:"none",...e},g("path",{d:"M14.3 0.3L5 9.6L1.7 6.3C1.3 5.9 0.7 5.9 0.3 6.3C-0.1 6.7 -0.1 7.3 0.3 7.7L4.3 11.7C4.5 11.9 4.7 12 5 12C5.3 12 5.5 11.9 5.7 11.7L15.7 1.7C16.1 1.3 16.1 0.7 15.7 0.3C15.3 -0.1 14.7 -0.1 14.3 0.3Z"})),kd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...e},g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",fill:"#6B7280"})),Sd=$o(od,{target:"e1eotdzt1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),Ed=$o(Ga,{target:"e1eotdzt0"})((({variant:e})=>"sm"===e?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";");let Fd;const Td=()=>ve(Fd),Od=({children:e})=>!Td().features.hideHelperText&&e?Wn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:e}):Wn(Un,{}),Md=ze((({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:a,variant:s,isMultiSelect:l},c)=>zn("div",{className:n,children:[zn(ld,{value:r||(l?[]:""),onChange:e=>{if(l){const r=e,n=e.findIndex((e=>{var r;return null==(r=t.find((t=>t.key==e)))?void 0:r.isReset}));0===n&&r.length>1?o([...r.slice(1)]):o(n>-1?[r[n]]:e)}else o(e)},multiple:l,children:[Wn(Ed,{variant:s,children:e}),zn("div",{css:{position:"relative",marginTop:"0.5rem"},children:[Wn(Sd,{readonly:!0,ref:c,hasError:!!i,displayValue:()=>l?((e,t)=>e&&Array.isArray(e)&&0!==e.length?e.map((e=>{var r;return null==(r=t.find((t=>t.key==e)))?void 0:r.displayValue})).join(", "):"Select")(r,t):((e,t)=>{var r;return e?(null==(r=t.find((t=>t.key==e)))?void 0:r.displayValue)??"Select":"Select"})(r,t)}),Wn(nd,{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",width:"100%",alignItems:"center",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",":focus":{outline:"2px solid transparent",outlineOffset:"2px"}},children:Wn("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem"},children:Wn(kd,{"aria-hidden":"true"})})}),Wn(ad,{modal:!1,css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed][data-leave]":{opacity:"0"},"&[data-leave]":{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"100ms"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:Wn("div",{children:t.map((e=>zn(sd,{className:"group",css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"},'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:e.key,children:[Wn("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.displayValue}),Wn("span",{css:{visibility:"hidden",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingRight:"0.75rem",".group[data-headlessui-state~='selected'] &":{visibility:"visible"},".group[data-headlessui-state~='active'] &":{fill:"#fff"}},children:Wn(xd,{css:{fill:"inherit"},"aria-hidden":"true"})})]},e.key)))})})]})]}),(null==i?void 0:i.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i.message}),Wn(Od,{children:a})]}))),Ld=$o("button",{target:"e1opgb1f2"})((({variant:e})=>{switch(e){case"lg":return{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-500)","--tw-ring-offset-width":"2px"}};case"md":return{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-100)",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.375rem",paddingBottom:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600",color:"var(--fl-color-primary-600)","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"var(--fl-color-primary-200)"}};default:return{display:"flex",paddingTop:"0.75rem",paddingBottom:"0.75rem",fontWeight:"600",color:"var(--fl-color-primary-600)",":hover":{color:"var(--fl-color-primary-700)"}}}})," ",(({variant:e})=>"sm"===e?{paddingTop:"0px",paddingBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem"}:{fontSize:"1rem",lineHeight:"1.5rem"})," svg{",{fill:"var(--fl-color-primary-600)"},";}&:hover svg{",{fill:"var(--fl-color-primary-700)"},";}"),Ad=$o("span",{target:"e1opgb1f1"})((({arrowDirection:e})=>"left"===e?{paddingLeft:"0.5rem"}:"")," ",(({variant:e})=>"lg"===e||"md"===e?{marginRight:"0.25rem",color:"var(--fl-color-primary-300)"}:""),";"),Pd=$o("span",{target:"e1opgb1f0"})([{color:"var(--fl-color-primary-300)"}],""),Rd=e=>g("svg",{width:16,height:12,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M5.293 11.7193C5.4816 11.9014 5.7342 12.0022 5.9964 12C6.2586 11.9977 6.50941 11.8925 6.69482 11.7071C6.88023 11.5217 6.9854 11.2709 6.98767 11.0087C6.98995 10.7465 6.88916 10.4939 6.707 10.3053L3.414 7.01229L15 7.01229C15.2652 7.01229 15.5196 6.90693 15.7071 6.71939C15.8946 6.53186 16 6.2775 16 6.01229C16 5.74707 15.8946 5.49272 15.7071 5.30518C15.5196 5.11765 15.2652 5.01229 15 5.01229L3.414 5.01229L6.707 1.71929C6.80251 1.62704 6.87869 1.5167 6.9311 1.39469C6.98351 1.27269 7.0111 1.14147 7.01225 1.00869C7.01341 0.875909 6.9881 0.744229 6.93782 0.621333C6.88754 0.498437 6.81329 0.386786 6.7194 0.292893C6.6255 0.199 6.51385 0.124746 6.39096 0.0744659C6.26806 0.0241853 6.13638 -0.00111761 6.0036 3.63194e-05C5.87082 0.00119025 5.7396 0.0287762 5.6176 0.0811854C5.49559 0.133595 5.38525 0.209777 5.293 0.305287L0.293001 5.30529C0.105529 5.49281 0.00021417 5.74712 0.000214147 6.01229C0.000214123 6.27745 0.105529 6.53176 0.293001 6.71929L5.293 11.7193Z"}))),Vd=e=>g("svg",{width:16,height:12,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M10.707 0.280712C10.5184 0.0985537 10.2658 -0.00224062 10.0036 3.78026e-05C9.7414 0.00231622 9.49059 0.107485 9.30518 0.292893C9.11977 0.478301 9.0146 0.729114 9.01233 0.99131C9.01005 1.25351 9.11084 1.50611 9.293 1.69471L12.586 4.98771H1C0.734784 4.98771 0.48043 5.09307 0.292893 5.28061C0.105357 5.46814 0 5.7225 0 5.98771C0 6.25293 0.105357 6.50728 0.292893 6.69482C0.48043 6.88235 0.734784 6.98771 1 6.98771H12.586L9.293 10.2807C9.19749 10.373 9.12131 10.4833 9.0689 10.6053C9.01649 10.7273 8.9889 10.8585 8.98775 10.9913C8.9866 11.1241 9.0119 11.2558 9.06218 11.3787C9.11246 11.5016 9.18671 11.6132 9.28061 11.7071C9.3745 11.801 9.48615 11.8753 9.60905 11.9255C9.73194 11.9758 9.86362 12.0011 9.9964 12C10.1292 11.9988 10.2604 11.9712 10.3824 11.9188C10.5044 11.8664 10.6148 11.7902 10.707 11.6947L15.707 6.69471C15.8945 6.50718 15.9998 6.25288 15.9998 5.98771C15.9998 5.72255 15.8945 5.46824 15.707 5.28071L10.707 0.280712Z"}))),Dd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:15,viewBox:"0 0 14 15",fill:"currentColor",...e},g("path",{d:"M8.99979 0H1.99979C1.73457 0 1.48022 0.105357 1.29268 0.292893C1.10514 0.48043 0.999786 0.734784 0.999786 1C0.999786 1.26522 1.10514 1.51957 1.29268 1.70711C1.48022 1.89464 1.73457 2 1.99979 2H8.99979C9.79544 2 10.5585 2.31607 11.1211 2.87868C11.6837 3.44129 11.9998 4.20435 11.9998 5C11.9998 5.79565 11.6837 6.55871 11.1211 7.12132C10.5585 7.68393 9.79544 8 8.99979 8H3.41379L5.70679 5.707C5.88894 5.5184 5.98974 5.2658 5.98746 5.0036C5.98518 4.7414 5.88001 4.49059 5.6946 4.30518C5.5092 4.11977 5.25838 4.0146 4.99619 4.01233C4.73399 4.01005 4.48139 4.11084 4.29279 4.293L0.292786 8.293C0.105315 8.48053 0 8.73484 0 9C0 9.26516 0.105315 9.51947 0.292786 9.707L4.29279 13.707C4.38503 13.8025 4.49538 13.8787 4.61738 13.9311C4.73939 13.9835 4.87061 14.0111 5.00339 14.0123C5.13616 14.0134 5.26784 13.9881 5.39074 13.9378C5.51364 13.8875 5.62529 13.8133 5.71918 13.7194C5.81307 13.6255 5.88733 13.5139 5.93761 13.391C5.98789 13.2681 6.01319 13.1364 6.01204 13.0036C6.01088 12.8708 5.9833 12.7396 5.93089 12.6176C5.87848 12.4956 5.8023 12.3852 5.70679 12.293L3.41379 10H8.99979C10.3259 10 11.5976 9.47322 12.5353 8.53553C13.473 7.59785 13.9998 6.32608 13.9998 5C13.9998 3.67392 13.473 2.40215 12.5353 1.46447C11.5976 0.526784 10.3259 0 8.99979 0Z",fill:"currentColor"})),Id=e=>Wn("div",{className:e.className,children:zn(Ld,{as:e.onClick||"submit"===e.type?"button":"a",onClick:e.onClick,href:e.href,target:e.href&&"_blank",rel:e.href&&"noreferrer",variant:e.variant,type:e.type||"button",children:["left"===e.arrowDirection?Wn(Rd,{css:{margin:"auto"},"aria-hidden":"true"}):Wn(b,{}),Wn(Ad,{arrowDirection:e.arrowDirection,children:e.children}),"right"===e.arrowDirection?Wn(Vd,{css:{margin:"auto",marginLeft:"0.5rem"},"aria-hidden":"true"}):Wn(b,{}),"uTurn"===e.arrowDirection?Wn(Dd,{css:{margin:"auto",marginLeft:"0.5rem"},"aria-hidden":"true"}):Wn(b,{})]})}),Nd=$o(Id,{target:"e1rrh8040"})(""),Hd=e=>{const{state:t}=Zn(),r=Ve(t);return r?Wn("div",{className:e.className,children:zn(Nd,{variant:"lg",type:e.type||"button",onClick:e.onClick,children:["Form"===r.type&&Wn(Pd,{children:"Next: "}),r.progressButton]})}):Wn(b,{})},Bd=$o(Id,{target:"ebbwto10"})(""),jd=e=>{const{state:t,dispatch:r}=Zn(),n=Td();return!(e=>null!=De(e))(t)||n.features.isGated&&t.currentPage===Le?Wn(b,{}):Wn(Bd,{"aria-describedby":"Previous",className:e.className,onClick:()=>{r({type:"PreviousPageSelected"})},arrowDirection:"left",children:"Previous"})},Ud=$o("form",{target:"ethywdv6"})([{marginTop:"0px"}],""),Wd=$o("div",{target:"ethywdv5"})([{marginTop:"1rem",display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem"}],""),zd=$o("div",{target:"ethywdv4"})([{gridColumn:"1 / -1",marginTop:"1rem",display:"flex",width:"100%",flexWrap:"wrap-reverse",justifyContent:"space-around"}],""),$d=$o(Hd,{target:"ethywdv3"})([{flexGrow:"1","@media (min-width: 430px)":{maxWidth:"fit-content"}}],""),qd=$o(jd,{target:"ethywdv2"})([{flexGrow:"1",paddingRight:"1rem"}],""),Zd=$o("p",{target:"ethywdv1"})({gridColumn:"1 / -1",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}," a{",{color:"var(--fl-color-primary-600)",textDecorationLine:"underline",":visited":{color:"rgb(147 51 234 )"},":hover":{color:"var(--fl-color-primary-800)"}},";}"),Gd=e=>g("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M15 9H5C4.4 9 4 9.4 4 10C4 10.6 4.4 11 5 11H15C15.6 11 16 10.6 16 10C16 9.4 15.6 9 15 9Z"})),Yd=e=>g("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M15 9H11V5C11 4.4 10.6 4 10 4C9.4 4 9 4.4 9 5V9H5C4.4 9 4 9.4 4 10C4 10.6 4.4 11 5 11H9V15C9 15.6 9.4 16 10 16C10.6 16 11 15.6 11 15V11H15C15.6 11 16 10.6 16 10C16 9.4 15.6 9 15 9Z"})),Kd=$o("input",{target:"ev4e9jo1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({prefix:e})=>e?{paddingLeft:"1.375rem"}:{paddingLeft:"0.75rem"})," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),Xd=$o("label",{target:"ev4e9jo0"})((({variant:e})=>"sm"===e?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";"),Jd=e=>{const t=e.target,r=t.value;t.type="number",""!==r&&(t.value=Math.round(Number(r.replace(/,/g,""))).toString())},Qd=ze((({label:e,id:t,value:r,max:n,min:o,prefix:i,rangeAdjustment:a,className:s,onChange:l,onBlur:c,error:u,helperText:d,variant:p},f)=>zn("div",{css:{position:"relative"},className:s,children:[Wn(Xd,{htmlFor:t,variant:p,children:e}),zn("div",{css:{position:"relative",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},children:[i?Wn("div",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",left:"0px",display:"flex",alignItems:"center",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem","@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}},children:Wn("span",{css:{fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}},children:i})}):Wn(b,{}),Wn(Kd,{type:"text",name:t,id:t,value:r.toLocaleString("en"),onBlur:e=>{if((e=>{const t=e.target,r=t.value;t.type="text",""!==r&&(t.value=Math.round(Number(r)).toLocaleString("en"))})(e),e.target instanceof HTMLInputElement){const t=Math.round(Number(e.target.value.replace(/,/g,"")));l(Number.isNaN(t)?0:t),c&&c(Number.isNaN(t)?0:t)}},onFocus:Jd,prefix:i,ref:f,hasError:!!u}),zn("div",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",order:"9999",display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(0.75rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))"},paddingRight:"0.75rem"},children:[Wn("button",{type:"button","aria-label":"decrement",onClick:()=>{const e=r-a>o?r-a:o;l(e),c&&c(e)},tabIndex:-1,children:Wn(Gd,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{color:"var(--fl-color-primary-600)"},":focus":{color:"var(--fl-color-primary-600)"}}})}),Wn("button",{type:"button","aria-label":"increment",onClick:()=>{const e=r+a<=n?r+a:n;l(e),c&&c(e)},tabIndex:-1,children:Wn(Yd,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{color:"var(--fl-color-primary-600)"},":focus":{color:"var(--fl-color-primary-600)"}}})})]})]}),(null==u?void 0:u.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:u.message}),Wn(Od,{children:d})]}))),ep=({label:e,items:t,value:r,className:n,onChange:o,helperText:i})=>{const a=e=>{o(e)},s=t.findIndex((e=>e.key===r));return zn("div",{className:n,children:[Wn("div",{css:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:Wn("label",{as:"label",css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e})}),zn(_d,{value:r,tabIndex:0,onKeyDown:e=>{switch(e.key){case"ArrowLeft":case"ArrowDown":{e.preventDefault(),e.stopPropagation();const r=s-1<0?t.length-1:s-1,n=t[r];a(n.key)}break;case"ArrowRight":case"ArrowUp":e.preventDefault(),e.stopPropagation();{e.preventDefault(),e.stopPropagation();const r=s+1>t.length-1?0:s+1,n=t[r];a(n.key)}}},css:{marginTop:"0.5rem",":focus-visible":{borderRadius:"0.375rem",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-300)"}},children:[Wn(Ga,{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),Wn("div",{css:{marginBottom:"0.25rem",display:"grid",gridTemplateColumns:"repeat(5, minmax(0, 1fr))",gap:"0px"},children:t.map((e=>Wn("div",{role:"radio",value:e.key,onClick:()=>a(e.key),"data-headlessui-state":e.key==r?"active checked":"","aria-checked":e.key==r,css:{marginRight:"-1px",display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":last-child":{marginRight:"0px",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem"},":first-of-type":{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem"},":hover":{backgroundColor:"var(--fl-color-primary-50)"},":focus":{zIndex:"50",outline:"2px solid transparent",outlineOffset:"2px"},'&[data-headlessui-state~="checked"]':{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"},':where([data-headlessui-state~="checked"]) &':{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"},'&[data-headlessui-state~="active"]':{marginRight:"0px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-600)","--tw-ring-offset-width":"0px"},':where([data-headlessui-state~="active"]) &':{marginRight:"0px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-600)","--tw-ring-offset-width":"0px"},"@media (min-width: 640px)":{flex:"1 1 0%",fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}},children:Wn(Ga,{css:{cursor:"pointer"},children:e.displayValue})},e.key)))})]}),Wn(Od,{children:i})]})},tp=[{key:"monthly",displayValue:"Monthly"},{key:"weekly",displayValue:"Weekly"},{key:"fortnightly",displayValue:"Fortnightly"}],rp=[{key:"fulltime",displayValue:"Full time"},{key:"parttime",displayValue:"Part time"},{key:"casual",displayValue:"Casual"},{key:"contract",displayValue:"Contract"},{key:"other",displayValue:"Other"}],np=[{key:"NSW",displayValue:"New South Wales"},{key:"VIC",displayValue:"Victoria"},{key:"QLD",displayValue:"Queensland"},{key:"WA",displayValue:"Western Australia"},{key:"SA",displayValue:"South Australia"},{key:"TAS",displayValue:"Tasmania"},{key:"NT",displayValue:"Northern Territory"},{key:"ACT",displayValue:"Australian Capital Territory"}],op=[{key:"ev",displayValue:"Electric Vehicle"},{key:"ice",displayValue:"Petrol, Diesel, Hybrid (inc. Plug-In Hybrid)"},{key:"notsure",displayValue:"Not sure yet"}],ip=[{key:"small",displayValue:"Hatch"},{key:"medium",displayValue:"Sedan / wagon"},{key:"suv",displayValue:"SUV"},{key:"large",displayValue:"Ute"},{key:"luxury",displayValue:"Luxury"}],ap=[{key:1,displayValue:"1"},{key:2,displayValue:"2"},{key:3,displayValue:"3"},{key:4,displayValue:"4"},{key:5,displayValue:"5"}],sp=[{key:"Audi",displayValue:"Audi"},{key:"BMW",displayValue:"BMW"},{key:"BYD",displayValue:"BYD"},{key:"Ford",displayValue:"Ford"},{key:"Hyundai",displayValue:"Hyundai"},{key:"Kia",displayValue:"Kia"},{key:"Mazda",displayValue:"Mazda"},{key:"Mercedes",displayValue:"Mercedes"},{key:"MG",displayValue:"MG"},{key:"Mitsubishi",displayValue:"Mitsubishi"},{key:"Polestar",displayValue:"Polestar"},{key:"Tesla",displayValue:"Tesla"},{key:"Toyota",displayValue:"Toyota"},{key:"Other",displayValue:"Other"},{key:"NotSure",displayValue:"I'm not sure",isReset:!0}],lp=[{key:"now",displayValue:"As soon as possible"},{key:"short",displayValue:"1-4 months"},{key:"medium",displayValue:"5-12 months"},{key:"long",displayValue:"More than one year"},{key:"notSure",displayValue:"I'm not sure"}],cp={vehicleOptions:{vehicleCost:5e4,annualKms:15e3,leaseTerm:3},employmentDetails:{annualSalary:5e4},isDirty:!1,isFirstTouchCompleted:!1},up=U({state:cp,dispatch:()=>({})}),dp=({initialState:e,children:t})=>{const[r,n]=ue(fp,e);return Wn(up.Provider,{value:{state:r,dispatch:n},children:t})},pp=()=>ve(up),fp=(e,t)=>{var r,n,o,i,a,s;switch(t.type){case"VehicleOptionsSubmitted":return Xn(e.vehicleOptions,t.payload)?e:{...e,isDirty:!0,vehicleOptions:t.payload,results:void 0};case"EmploymentDetailsSubmitted":return Xn(e.employmentDetails,t.payload)?e:{...e,isDirty:!0,employmentDetails:t.payload,results:{...e.results,ev:{...null==(r=e.results)?void 0:r.ev,estimation:void 0},ice:{...null==(n=e.results)?void 0:n.ice,estimation:void 0}}};case"ContactDetailsSubmitted":return Xn(e.contactDetails,t.payload)?e:{...e,isDirty:!0,contactDetails:t.payload};case"EvEstimationResultUpdated":return{...e,results:{...e.results,ev:{...null==(o=e.results)?void 0:o.ev,estimation:t.payload}}};case"EvRecommendationResultUpdated":return{...e,results:{...e.results,ev:{...null==(i=e.results)?void 0:i.ev,recommendation:t.payload}}};case"IceEstimationResultUpdated":return{...e,results:{...e.results,ice:{...null==(a=e.results)?void 0:a.ice,estimation:t.payload}}};case"IceRecommendationResultUpdated":return{...e,results:{...e.results,ice:{...null==(s=e.results)?void 0:s.ice,recommendation:t.payload}}};case"EnquirySubmitted":return{...e,isDirty:!1};case"FirstTouchCompleted":return{...e,isFirstTouchCompleted:!0};default:return e}};var mp=e=>"checkbox"===e.type,hp=e=>e instanceof Date,gp=e=>null==e;const vp=e=>"object"==typeof e;var yp=e=>!gp(e)&&!Array.isArray(e)&&vp(e)&&!hp(e),bp=e=>yp(e)&&e.target?mp(e.target)?e.target.checked:e.target.value:e,wp=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Cp="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function _p(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Cp&&(e instanceof Blob||e instanceof FileList)||!r&&!yp(e))return e;if(t=r?[]:{},r||(e=>{const t=e.constructor&&e.constructor.prototype;return yp(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=_p(e[r]));else t=e}return t}var xp=e=>Array.isArray(e)?e.filter(Boolean):[],kp=e=>void 0===e,Sp=(e,t,r)=>{if(!t||!yp(e))return r;const n=xp(t.split(/[,[\].]+?/)).reduce(((e,t)=>gp(e)?e:e[t]),e);return kp(n)||n===e?kp(e[t])?r:e[t]:n},Ep=e=>"boolean"==typeof e,Fp=e=>/^\w*$/.test(e),Tp=e=>xp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Op=(e,t,r)=>{let n=-1;const o=Fp(t)?[t]:Tp(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=yp(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const Mp="blur",Lp="focusout",Ap="change",Pp="onBlur",Rp="onChange",Vp="onSubmit",Dp="onTouched",Ip="all",Np="max",Hp="min",Bp="maxLength",jp="minLength",Up="pattern",Wp="required",zp="validate",$p=Dt.createContext(null),qp=()=>Dt.useContext($p);var Zp=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Ip&&(t._proxyFormState[o]=!n||Ip),r&&(r[o]=!0),e[o]}});return o},Gp=e=>yp(e)&&!Object.keys(e).length,Yp=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Gp(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||Ip)))},Kp=e=>Array.isArray(e)?e:[e],Xp=(e,t,r)=>!e||!t||e===t||Kp(e).some((e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))));function Jp(e){const t=Dt.useRef(e);t.current=e,Dt.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var Qp=e=>"string"==typeof e,ef=(e,t,r,n,o)=>Qp(e)?(n&&t.watch.add(e),Sp(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),Sp(r,e)))):(n&&(t.watchAll=!0),r);function tf(e){const t=qp(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,a=wp(o._names.array,r),s=function(e){const t=qp(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:a}=e||{},s=Dt.useRef(n);s.current=n,Jp({disabled:i,subject:r._subjects.values,next:e=>{Xp(s.current,e.name,a)&&c(_p(ef(s.current,r._names,e.values||r._formValues,!1,o)))}});const[l,c]=Dt.useState(r._getWatch(n,o));return Dt.useEffect((()=>r._removeUnmounted())),l}({control:o,name:r,defaultValue:Sp(o._formValues,r,Sp(o._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){const t=qp(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[a,s]=Dt.useState(r._formState),l=Dt.useRef(!0),c=Dt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=Dt.useRef(o);return u.current=o,Jp({disabled:n,next:e=>l.current&&Xp(u.current,e.name,i)&&Yp(e,c.current,r._updateFormState)&&s({...r._formState,...e}),subject:r._subjects.state}),Dt.useEffect((()=>(l.current=!0,c.current.isValid&&r._updateValid(!0),()=>{l.current=!1})),[r]),Zp(a,r,c.current,!1)}({control:o,name:r,exact:!0}),c=Dt.useRef(o.register(r,{...e.rules,value:s,...Ep(e.disabled)?{disabled:e.disabled}:{}}));return Dt.useEffect((()=>{const e=o._options.shouldUnregister||i,t=(e,t)=>{const r=Sp(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=_p(Sp(o._options.defaultValues,r));Op(o._defaultValues,r,e),kp(Sp(o._formValues,r))&&Op(o._formValues,r,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}}),[r,o,a,i]),Dt.useEffect((()=>{Sp(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Sp(o._fields,r)._f.value})}),[n,r,o]),{field:{name:r,value:s,...Ep(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:Dt.useCallback((e=>c.current.onChange({target:{value:bp(e),name:r},type:Ap})),[r]),onBlur:Dt.useCallback((()=>c.current.onBlur({target:{value:Sp(o._formValues,r),name:r},type:Mp})),[r,o]),ref:Dt.useCallback((e=>{const t=Sp(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[o._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Sp(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!Sp(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Sp(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Sp(l.validatingFields,r)},error:{enumerable:!0,get:()=>Sp(l.errors,r)}})}}const rf=e=>e.render(tf(e));var nf=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},of=e=>({isOnSubmit:!e||e===Vp,isOnBlur:e===Pp,isOnChange:e===Rp,isOnAll:e===Ip,isOnTouch:e===Dp}),af=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const sf=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Sp(e,o);if(r){const{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(sf(i,t))break}else if(yp(i)&&sf(i,t))break}}};var lf=(e,t,r)=>{const n=Kp(Sp(e,r));return Op(n,"root",t[r]),Op(e,r,n),e},cf=e=>"file"===e.type,uf=e=>"function"==typeof e,df=e=>{if(!Cp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pf=e=>Qp(e),ff=e=>"radio"===e.type,mf=e=>e instanceof RegExp;const hf={value:!1,isValid:!1},gf={value:!0,isValid:!0};var vf=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kp(e[0].attributes.value)?kp(e[0].value)||""===e[0].value?gf:{value:e[0].value,isValid:!0}:gf:hf}return hf};const yf={isValid:!1,value:null};var bf=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),yf):yf;function wf(e,t,r="validate"){if(pf(e)||Array.isArray(e)&&e.every(pf)||Ep(e)&&!e)return{type:r,message:pf(e)?e:"",ref:t}}var Cf=e=>yp(e)&&!mf(e)?e:{value:e,message:""},_f=async(e,t,r,n,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:p,validate:f,name:m,valueAsNumber:h,mount:g,disabled:v}=e._f,y=Sp(t,m);if(!g||v)return{};const b=a?a[0]:i,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(Ep(e)?"":e||""),b.reportValidity())},C={},_=ff(i),x=mp(i),k=_||x,S=(h||cf(i))&&kp(i.value)&&kp(y)||df(i)&&""===i.value||""===y||Array.isArray(y)&&!y.length,E=nf.bind(null,m,r,C),F=(e,t,r,n=Bp,o=jp)=>{const a=e?t:r;C[m]={type:e?n:o,message:a,ref:i,...E(e?n:o,a)}};if(o?!Array.isArray(y)||!y.length:s&&(!k&&(S||gp(y))||Ep(y)&&!y||x&&!vf(a).isValid||_&&!bf(a).isValid)){const{value:e,message:t}=pf(s)?{value:!!s,message:s}:Cf(s);if(e&&(C[m]={type:Wp,message:t,ref:b,...E(Wp,t)},!r))return w(t),C}if(!(S||gp(u)&&gp(d))){let e,t;const n=Cf(d),o=Cf(u);if(gp(y)||isNaN(y)){const r=i.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;Qp(n.value)&&y&&(e=s?a(y)>a(n.value):l?y>n.value:r>new Date(n.value)),Qp(o.value)&&y&&(t=s?a(y)<a(o.value):l?y<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(y?+y:y);gp(n.value)||(e=r>n.value),gp(o.value)||(t=r<o.value)}if((e||t)&&(F(!!e,n.message,o.message,Np,Hp),!r))return w(C[m].message),C}if((l||c)&&!S&&(Qp(y)||o&&Array.isArray(y))){const e=Cf(l),t=Cf(c),n=!gp(e.value)&&y.length>+e.value,o=!gp(t.value)&&y.length<+t.value;if((n||o)&&(F(n,e.message,t.message),!r))return w(C[m].message),C}if(p&&!S&&Qp(y)){const{value:e,message:t}=Cf(p);if(mf(e)&&!y.match(e)&&(C[m]={type:Up,message:t,ref:i,...E(Up,t)},!r))return w(t),C}if(f)if(uf(f)){const e=wf(await f(y,t),b);if(e&&(C[m]={...e,...E(zp,e.message)},!r))return w(e.message),C}else if(yp(f)){let e={};for(const n in f){if(!Gp(e)&&!r)break;const o=wf(await f[n](y,t),b,n);o&&(e={...o,...E(n,o.message)},w(o.message),r&&(C[m]=e))}if(!Gp(e)&&(C[m]={ref:b,...e},!r))return C}return w(!0),C};function xf(e,t){const r=Array.isArray(t)?t:Fp(t)?[t]:Tp(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=kp(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(yp(n)&&Gp(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!kp(e[t]))return!1;return!0}(n))&&xf(e,r.slice(0,-1)),e}var kf=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Sf=e=>gp(e)||!vp(e);function Ef(e,t){if(Sf(e)||Sf(t))return e===t;if(hp(e)&&hp(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(hp(r)&&hp(e)||yp(r)&&yp(e)||Array.isArray(r)&&Array.isArray(e)?!Ef(r,e):r!==e)return!1}}return!0}var Ff=e=>"select-multiple"===e.type,Tf=e=>df(e)&&e.isConnected,Of=e=>{for(const t in e)if(uf(e[t]))return!0;return!1};function Mf(e,t={}){const r=Array.isArray(e);if(yp(e)||r)for(const n in e)Array.isArray(e[n])||yp(e[n])&&!Of(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Mf(e[n],t[n])):gp(e[n])||(t[n]=!0);return t}function Lf(e,t,r){const n=Array.isArray(e);if(yp(e)||n)for(const o in e)Array.isArray(e[o])||yp(e[o])&&!Of(e[o])?kp(t)||Sf(r[o])?r[o]=Array.isArray(e[o])?Mf(e[o],[]):{...Mf(e[o])}:Lf(e[o],gp(t)?{}:t[o],r[o]):r[o]=!Ef(e[o],t[o]);return r}var Af=(e,t)=>Lf(e,t,Mf(t)),Pf=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>kp(e)?e:t?""===e?NaN:e?+e:e:r&&Qp(e)?new Date(e):n?n(e):e;function Rf(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return cf(t)?t.files:ff(t)?bf(e.refs).value:Ff(t)?[...t.selectedOptions].map((({value:e})=>e)):mp(t)?vf(e.refs).value:Pf(kp(t.value)?e.ref.value:t.value,e)}var Vf=e=>kp(e)?e:mf(e)?e.source:yp(e)?mf(e.value)?e.value.source:e.value:e;const Df="AsyncFunction";function If(e,t,r){const n=Sp(e,r);if(n||Fp(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=Sp(t,n),a=Sp(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}const Nf={mode:Vp,reValidateMode:Rp,shouldFocusError:!0};function Hf(e={}){let t,r={...Nf,...e},n={submitCount:0,isDirty:!1,isLoading:uf(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},i=(yp(r.defaultValues)||yp(r.values))&&_p(r.defaultValues||r.values)||{},a=r.shouldUnregister?{}:_p(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:kf(),array:kf(),state:kf()},p=of(r.mode),f=of(r.reValidateMode),m=r.criteriaMode===Ip,h=async e=>{if(u.isValid||e){const e=r.resolver?Gp((await w()).errors):await C(o,!0);e!==n.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?Op(n.validatingFields,e,t):xf(n.validatingFields,e))})),d.state.next({validatingFields:n.validatingFields,isValidating:!Gp(n.validatingFields)}))},v=(e,t,r,n)=>{const l=Sp(o,e);if(l){const o=Sp(a,e,kp(r)?Sp(i,e):r);kp(o)||n&&n.defaultChecked||t?Op(a,e,t?o:Rf(l._f)):k(e,o),s.mount&&h()}},y=(e,t,r,a,s)=>{let l=!1,c=!1;const p={name:e},f=!!(Sp(o,e)&&Sp(o,e)._f&&Sp(o,e)._f.disabled);if(!r||a){u.isDirty&&(c=n.isDirty,n.isDirty=p.isDirty=_(),l=c!==p.isDirty);const r=f||Ef(Sp(i,e),t);c=!(f||!Sp(n.dirtyFields,e)),r||f?xf(n.dirtyFields,e):Op(n.dirtyFields,e,!0),p.dirtyFields=n.dirtyFields,l=l||u.dirtyFields&&c!==!r}if(r){const t=Sp(n.touchedFields,e);t||(Op(n.touchedFields,e,r),p.touchedFields=n.touchedFields,l=l||u.touchedFields&&t!==r)}return l&&s&&d.state.next(p),l?p:{}},b=(r,o,i,a)=>{const s=Sp(n.errors,r),l=u.isValid&&Ep(o)&&n.isValid!==o;var p;if(e.delayError&&i?(p=()=>((e,t)=>{Op(n.errors,e,t),d.state.next({errors:n.errors})})(r,i),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(e.delayError)):(clearTimeout(c),t=null,i?Op(n.errors,r,i):xf(n.errors,r)),(i?!Ef(s,i):s)||!Gp(a)||l){const e={...a,...l&&Ep(o)?{isValid:o}:{},errors:n.errors,name:r};n={...n,...e},d.state.next(e)}},w=async e=>{g(e,!0);const t=await r.resolver(a,r.context,((e,t,r,n)=>{const o={};for(const i of e){const e=Sp(t,i);e&&Op(o,i,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return g(e),t},C=async(e,t,o={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&!((i=c._f)&&i.validate||!(uf(i.validate)&&i.validate.constructor.name===Df||yp(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===Df))));p&&u.validatingFields&&g([s],!0);const f=await _f(c,a,m,r.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(o.valid=!1,t))break;!t&&(Sp(f,e.name)?d?lf(n.errors,f,e.name):Op(n.errors,e.name,f[e.name]):xf(n.errors,e.name))}!Gp(d)&&await C(d,t,o)}}var i;return o.valid},_=(e,t)=>(e&&t&&Op(a,e,t),!Ef(M(),i)),x=(e,t,r)=>ef(e,l,{...s.mount?a:kp(t)?i:Qp(e)?{[e]:t}:t},r,t),k=(e,t,r={})=>{const n=Sp(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&Op(a,e,Pf(t,r)),i=df(r.ref)&&gp(t)?"":t,Ff(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?mp(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):cf(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||d.values.next({name:e,values:{...a}})))}(r.shouldDirty||r.shouldTouch)&&y(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&O(e)},S=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=Sp(o,a);!l.array.has(e)&&Sf(i)&&(!s||s._f)||hp(i)?k(a,i,r):S(a,i,r)}},E=(e,t,r={})=>{const c=Sp(o,e),p=l.array.has(e),f=_p(t);Op(a,e,f),p?(d.array.next({name:e,values:{...a}}),(u.isDirty||u.dirtyFields)&&r.shouldDirty&&d.state.next({name:e,dirtyFields:Af(i,a),isDirty:_(e,f)})):!c||c._f||gp(f)?k(e,f,r):S(e,f,r),af(e,l)&&d.state.next({...n}),d.values.next({name:s.mount?e:void 0,values:{...a}})},F=async i=>{s.mount=!0;const c=i.target;let v=c.name,_=!0;const x=Sp(o,v),k=e=>{_=Number.isNaN(e)||Ef(e,Sp(a,v,e))};if(x){let s,E;const F=c.type?Rf(x._f):bp(i),T=i.type===Mp||i.type===Lp,M=!((S=x._f).mount&&(S.required||S.min||S.max||S.maxLength||S.minLength||S.pattern||S.validate)||r.resolver||Sp(n.errors,v)||x._f.deps)||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(T,Sp(n.touchedFields,v),n.isSubmitted,f,p),L=af(v,l,T);Op(a,v,F),T?(x._f.onBlur&&x._f.onBlur(i),t&&t(0)):x._f.onChange&&x._f.onChange(i);const A=y(v,F,T,!1),P=!Gp(A)||L;if(!T&&d.values.next({name:v,type:i.type,values:{...a}}),M)return u.isValid&&("onBlur"===e.mode?T&&h():h()),P&&d.state.next({name:v,...L?{}:A});if(!T&&L&&d.state.next({...n}),r.resolver){const{errors:e}=await w([v]);if(k(F),_){const t=If(n.errors,o,v),r=If(e,o,t.name||v);s=r.error,v=r.name,E=Gp(e)}}else g([v],!0),s=(await _f(x,a,m,r.shouldUseNativeValidation))[v],g([v]),k(F),_&&(s?E=!1:u.isValid&&(E=await C(o,!0)));_&&(x._f.deps&&O(x._f.deps),b(v,E,s,A))}var S},T=(e,t)=>{if(Sp(n.errors,t)&&e.focus)return e.focus(),1},O=async(e,t={})=>{let i,a;const s=Kp(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(e)for(const r of e){const e=Sp(t,r);e?Op(n.errors,r,e):xf(n.errors,r)}else n.errors=t;return t})(kp(e)?e:s);i=Gp(t),a=e?!s.some((e=>Sp(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=Sp(o,e);return await C(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||n.isValid)&&h()):a=i=await C(o);return d.state.next({...!Qp(e)||u.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!a&&sf(o,T,e?s:l.mount),a},M=e=>{const t={...s.mount?a:i};return kp(e)?t:Qp(e)?Sp(t,e):e.map((e=>Sp(t,e)))},L=(e,t)=>({invalid:!!Sp((t||n).errors,e),isDirty:!!Sp((t||n).dirtyFields,e),error:Sp((t||n).errors,e),isValidating:!!Sp(n.validatingFields,e),isTouched:!!Sp((t||n).touchedFields,e)}),A=(e,t,r)=>{const i=(Sp(o,e,{_f:{}})._f||{}).ref,a=Sp(n.errors,e)||{},{ref:s,message:l,type:c,...u}=a;Op(n.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},P=(e,t={})=>{for(const s of e?Kp(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(xf(o,s),xf(a,s)),!t.keepError&&xf(n.errors,s),!t.keepDirty&&xf(n.dirtyFields,s),!t.keepTouched&&xf(n.touchedFields,s),!t.keepIsValidating&&xf(n.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&xf(i,s);d.values.next({values:{...a}}),d.state.next({...n,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&h()},R=({disabled:e,name:t,field:r,fields:n,value:o})=>{if(Ep(e)&&s.mount||e){const i=e?void 0:kp(o)?Rf(r?r._f:Sp(n,t)._f):o;Op(a,t,i),y(t,i,!1,!1,!0)}},V=(t,n={})=>{let a=Sp(o,t);const c=Ep(n.disabled)||Ep(e.disabled);return Op(o,t,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:t}},name:t,mount:!0,...n}}),l.mount.add(t),a?R({field:a,disabled:Ep(n.disabled)?n.disabled:e.disabled,name:t,value:n.value}):v(t,!0,n.value),{...c?{disabled:n.disabled||e.disabled}:{},...r.progressive?{required:!!n.required,min:Vf(n.min),max:Vf(n.max),minLength:Vf(n.minLength),maxLength:Vf(n.maxLength),pattern:Vf(n.pattern)}:{},name:t,onChange:F,onBlur:F,ref:e=>{if(e){V(t,n),a=Sp(o,t);const r=kp(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=(e=>ff(e)||mp(e))(r),l=a._f.refs||[];if(s?l.find((e=>e===r)):r===a._f.ref)return;Op(o,t,{_f:{...a._f,...s?{refs:[...l.filter(Tf),r,...Array.isArray(Sp(i,t))?[{}]:[]],ref:{type:r.type,name:t}}:{ref:r}}}),v(t,!1,void 0,r)}else a=Sp(o,t,{}),a._f&&(a._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&(!wp(l.array,t)||!s.action)&&l.unMount.add(t)}}},D=()=>r.shouldFocusError&&sf(o,T,l.mount),I=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=_p(a);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await w();n.errors=e,l=t}else await C(o);if(xf(n.errors,"root"),Gp(n.errors)){d.state.next({errors:{}});try{await e(l,i)}catch(c){s=c}}else t&&await t({...n.errors},i),D(),setTimeout(D);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gp(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},N=(t,r={})=>{const c=t?_p(t):i,p=_p(c),f=Gp(t),m=f?i:p;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues)for(const e of l.mount)Sp(n.dirtyFields,e)?Op(m,e,Sp(a,e)):E(e,Sp(m,e));else{if(Cp&&kp(t))for(const e of l.mount){const t=Sp(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(df(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=e.shouldUnregister?r.keepDefaultValues?_p(i):{}:_p(m),d.array.next({values:{...m}}),d.values.next({values:{...m}})}l={mount:r.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!r.keepIsValid||!!r.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!f&&(r.keepDirty?n.isDirty:!(!r.keepDefaultValues||Ef(t,i))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:r.keepDirtyValues?r.keepDefaultValues&&a?Af(i,a):n.dirtyFields:r.keepDefaultValues&&t?Af(i,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},H=(e,t)=>N(uf(e)?e(a):e,t);return{control:{register:V,unregister:P,getFieldState:L,handleSubmit:I,setError:A,_executeSchema:w,_getWatch:x,_getDirty:_,_updateValid:h,_removeUnmounted:()=>{for(const e of l.unMount){const t=Sp(o,e);t&&(t._f.refs?t._f.refs.every((e=>!Tf(e))):!Tf(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,l,c=!0,p=!0)=>{if(l&&r){if(s.action=!0,p&&Array.isArray(Sp(o,e))){const t=r(Sp(o,e),l.argA,l.argB);c&&Op(o,e,t)}if(p&&Array.isArray(Sp(n.errors,e))){const t=r(Sp(n.errors,e),l.argA,l.argB);c&&Op(n.errors,e,t),((e,t)=>{!xp(Sp(e,t)).length&&xf(e,t)})(n.errors,e)}if(u.touchedFields&&p&&Array.isArray(Sp(n.touchedFields,e))){const t=r(Sp(n.touchedFields,e),l.argA,l.argB);c&&Op(n.touchedFields,e,t)}u.dirtyFields&&(n.dirtyFields=Af(i,a)),d.state.next({name:e,isDirty:_(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Op(a,e,t)},_updateDisabledField:R,_getFieldArray:t=>xp(Sp(s.mount?a:i,t,e.shouldUnregister?Sp(i,t,[]):[])),_reset:N,_resetDefaultValues:()=>uf(r.defaultValues)&&r.defaultValues().then((e=>{H(e,r.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{Ep(e)&&(d.state.next({disabled:e}),sf(o,((t,r)=>{const n=Sp(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{n.errors=e,d.state.next({errors:n.errors,isValid:!1})},get _fields(){return o},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:O,register:V,handleSubmit:I,watch:(e,t)=>uf(e)?d.values.subscribe({next:r=>e(x(void 0,t),r)}):x(e,t,!0),setValue:E,getValues:M,reset:H,resetField:(e,t={})=>{Sp(o,e)&&(kp(t.defaultValue)?E(e,_p(Sp(i,e))):(E(e,t.defaultValue),Op(i,e,_p(t.defaultValue))),t.keepTouched||xf(n.touchedFields,e),t.keepDirty||(xf(n.dirtyFields,e),n.isDirty=t.defaultValue?_(e,_p(Sp(i,e))):_()),t.keepError||(xf(n.errors,e),u.isValid&&h()),d.state.next({...n}))},clearErrors:e=>{e&&Kp(e).forEach((e=>xf(n.errors,e))),d.state.next({errors:e?n.errors:{}})},unregister:P,setError:A,setFocus:(e,t={})=>{const r=Sp(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:L}}function Bf(e={}){const t=Dt.useRef(),r=Dt.useRef(),[n,o]=Dt.useState({isDirty:!1,isValidating:!1,isLoading:uf(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:uf(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Hf(e),formState:n});const i=t.current.control;return i._options=e,Jp({subject:i._subjects.state,next:e=>{Yp(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),Dt.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),Dt.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==n.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,n.isDirty]),Dt.useEffect((()=>{e.values&&!Ef(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,o((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),Dt.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),Dt.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),Dt.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),t.current.formState=Zp(n,i),t.current}const jf=e=>t=>!!t&&e(t),Uf=e=>jf(e.test.bind(e)),Wf=e=>jf((t=>!!t&&e.includes(t))),zf=/^\+?(614|6104|04)([0-9]{8})$/,$f=e=>{const t=e.replace(/\s/g,""),r=e.replace(/\s/g,"").match(zf);return null==r?t:`+614${r[2]}`},qf=Wf(["small","medium","suv","large","luxury"]),Zf=Wf(["ev","ice","notsure"]),Gf=["Tesla","Toyota","BYD","Mitsubishi","Mazda","Hyundai","Kia","MG","Ford","BMW","Polestar","Mercedes","Audi","Other","NotSure"],Yf=Wf(["monthly","weekly","fortnightly"]),Kf=Wf(["fulltime","parttime","contract","casual","other"]),Xf=Wf(["NSW","VIC","QLD","WA","SA","TAS","NT","ACT"]),Jf=Uf(/^[A-Za-z0-9][A-Za-z0-9._%+'-]{0,63}@(?:[A-Za-z0-9-]{1,63}\.){1,125}[A-Za-z]{2,63}$/),Qf=Uf(/(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\- ']{0,59}$/),em=Uf(zf),tm=Uf(/^(?:(0[289][0-9]{2})|([1-9][0-9]{3}))$/),rm=Uf(/^[A-Za-z0-9\s!"#$%&'()*,\-./\\_{}|:;=?@]{1,100}$/),nm=Wf(["now","short","medium","long","notSure"]),om=e=>({...e}),im=e=>({...e});class am extends Error{constructor(e,t){super(e),c(this,"response"),this.response=t}}const sm=async(e,t,r,n)=>{const o=await fetch(e,{method:t,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1321"},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3),credentials:"include"});if(!o.ok)throw new am(`[API] Fetch error: ${o.statusText}. Url: ${t} ${e}`,o);return n?{}:await o.json()},lm=async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/vehicles/estimate`}?${r}`);var o;return await sm(n,"GET")},cm=async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/vehicles`}?${r}`);var o;return await sm(n,"GET")},um=async(e,t)=>{try{const n=new URL(`${e.url}${r=e.subRoute,`/salary-packaging/${r}/v1.0/vehicles/track`}`);await sm(n,"POST",t,!0),dm(t)}catch(n){console.log(n)}var r},dm=e=>{if("enquirySubmitted"===e.eventName)t="purchase",window.uetq=window.uetq||[],window.uetq.push("event",t,{});var t},pm=(e,t)=>({distinctId:null==e?void 0:e.distinctId,externalId:null==e?void 0:e.externalId,component:{host:location.origin,path:location.pathname,isGated:t},google:{gclid:null==e?void 0:e.gclid},microsoft:{mcid:null==e?void 0:e.mcid},apollo:{accountId:null==e?void 0:e.accountId,customerId:null==e?void 0:e.customerId,partnerId:null==e?void 0:e.partnerId,profileId:null==e?void 0:e.profileId,contactId:null==e?void 0:e.contactId},utm:{source:null==e?void 0:e.utmSource,medium:null==e?void 0:e.utmMedium,campaign:null==e?void 0:e.utmCampaign,term:null==e?void 0:e.utmTerm,content:null==e?void 0:e.utmContent},salesforce:{source:null==e?void 0:e.sfSource,subSource:null==e?void 0:e.sfSubSource,description:null==e?void 0:e.sfDescription,class:null==e?void 0:e.sfClass,medium:null==e?void 0:e.sfMedium,name:null==e?void 0:e.sfName,priority:null==e?void 0:e.sfPriority,team:null==e?void 0:e.sfTeam}}),fm=e=>({annualKms:e.annualKms,budget:e.vehicleCost,size:e.vehicleSize||"",brand:e.brand,preferredMakes:e.preferredMakes||[],termInMonths:12*e.leaseTerm,type:e.engineType||"",timeframe:e.timeframe||""}),mm=e=>({annualSalaryGross:e.annualSalary,employerName:e.employerName||"",employmentType:e.employmentType||"",payCycle:e.payFrequency||"",state:e.location??"not selected"}),hm=(e,t,r,n,o,i,a)=>({eventName:"enquirySubmitted",session:pm(e,t),properties:{vehicleOptions:fm(r),employmentDetails:mm(n),other:{postcode:o.postCode||""},contactDetails:{email:o.email||"",firstName:o.firstName||"",lastName:o.lastName||"",mobile:o.mobile&&$f(o.mobile)||""},evEstimation:i,iceEstimation:a}}),gm=(e,t,r,n,o,i,a)=>({eventName:"estimateLoaded",session:pm(e,t),properties:{vehicleOptions:fm(r),employmentDetails:mm(n),other:{postcode:(null==o?void 0:o.postCode)??void 0},evEstimation:i,iceEstimation:a}}),vm=()=>{const{state:e,dispatch:t}=pp(),{dispatch:r}=Zn(),n=Td(),{handleSubmit:o,control:i,watch:a}=Bf({mode:"onBlur",defaultValues:{...e.vehicleOptions}});de((()=>{const r=e.isFirstTouchCompleted?void 0:a((()=>{var r,o;e.isFirstTouchCompleted||(t({type:"FirstTouchCompleted"}),um(n.backend,(r=n.tracking,o=!!n.features.isGated,{eventName:"activityStarted",session:pm(r,o)})))}));return r&&e.isFirstTouchCompleted&&r.unsubscribe(),()=>r&&r.unsubscribe()}),[a,e.isFirstTouchCompleted,n.tracking,n.features.isGated,n.backend,t]);return zn(Ud,{onSubmit:o((e=>{if(t({type:"VehicleOptionsSubmitted",payload:e}),"ice"===e.engineType)r({type:"SummaryPageTabUpdated",payload:"ICE"});else r({type:"SummaryPageTabUpdated",payload:"EV"});var o,i,a;um(n.backend,(o=n.tracking,i=!!n.features.isGated,a=e,{eventName:"vehicleOptionsSubmitted",session:pm(o,i),properties:{vehicleOptions:fm(a)}})),r({type:"NextPageSelected"})})),children:[!n.features.hideVehicleSelection&&zn(b,{children:[zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn("div",{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},children:Wn(rf,{name:"engineType",control:i,rules:{validate:Zf,required:"Please select vehicle type"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Vehicle type",error:t.error,items:op,...e})})}),Wn("div",{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},children:Wn(rf,{name:"vehicleSize",control:i,rules:{validate:qf,required:"Please select vehicle body type"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Body type",error:t.error,items:ip,...e})})})]}),Wn(Wd,{children:Wn(rf,{name:"preferredMakes",control:i,rules:{required:!1},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Preferred car makes",error:t.error,items:sp,css:{gridColumn:"span 4 / span 4"},isMultiSelect:!0,...e})})})]}),Wn(Wd,{children:Wn(rf,{name:"vehicleCost",control:i,rules:{min:{message:"Vehicle cost must be more than $5,000",value:5e3},max:{message:"Vehicle cost must be less than $1,000,000",value:1e6},required:"Please provide the Vehicle cost"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"vehicleCost",label:"Vehicle cost",helperText:"Driveaway price, including GST and on-road costs.",max:1e6,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"annualKms",control:i,rules:{min:{message:"Annual kms must be more than 500",value:500},max:{message:"Annual kms must be less than 1,000,000",value:1e6},required:"Please estimate your Annual kms"},render:({field:e,fieldState:t})=>Wn(Qd,{label:"Annual kms",helperText:"Drivers in Australia travel an average of 15,000km per year.",max:1e6,min:5e3,rangeAdjustment:5e3,id:"annualKms",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"leaseTerm",control:i,rules:{required:!0},render:({field:e})=>Wn(ep,{label:"Lease term (years)",helperText:"A longer lease term attracts a lower cost per pay.",items:ap,id:"leaseTerm",css:{gridColumn:"span 4 / span 4"},...e})})}),Wn(Wd,{children:Wn(rf,{name:"timeframe",control:i,rules:{validate:nm,required:"Please select when you would like your lease to start"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"When would you like the lease to start?",error:t.error,items:lp,css:{gridColumn:"span 4 / span 4"},...e})})}),Wn(Wd,{children:Wn(zd,{children:Wn($d,{css:{marginLeft:"auto",maxWidth:"none","@media (min-width: 430px)":{maxWidth:"none"},"@media (min-width: 768px)":{maxWidth:"fit-content"}},type:"submit"})})})]})},ym=$o("input",{target:"e1kj3hkm0"})((()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}}))," ",(({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"})," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),bm=ze((({label:e,id:t,type:r,placeholder:n,setPlaceholderOnFocus:o,value:i,className:a,onChange:s,onBlur:l,error:c},u)=>zn("div",{className:a,children:[Wn("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),Wn("div",{css:{marginTop:"0.5rem"},children:Wn(ym,{type:r,value:i,name:t,id:t,placeholder:n,onChange:e=>{e.target instanceof HTMLInputElement&&s(e.target.value.trim())},onBlur:e=>{e.target instanceof HTMLInputElement&&l&&l(e.target.value.trim())},onFocus:()=>{n&&o&&!(null==i?void 0:i.trim())&&s(n)},hasError:!!c,ref:u})}),(null==c?void 0:c.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:c.message})]}))),wm=()=>{const{state:e,dispatch:t}=pp(),{state:r,dispatch:n}=Zn(),o=Td(),{handleSubmit:i,control:a}=Bf({mode:"onBlur",defaultValues:{...e.contactDetails}}),s=Ve(r);return zn(Ud,{onSubmit:i((e=>{var r,i,a;t({type:"ContactDetailsSubmitted",payload:{...e,isSubmitted:!0}}),n({type:"NextPageSelected"}),um(o.backend,(r=o.tracking,i=!!o.features.isGated,a=e,{eventName:"contactDetailsSubmitted",session:pm(r,i),properties:{other:{postcode:a.postCode||""}}}))})),children:[zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"firstName",control:a,rules:{validate:{validName:e=>Qf(e)||"First name is not valid"},required:"Please provide your first name"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},label:"First name",id:"firstName",type:"text",error:t.error,...e})}),Wn(rf,{name:"lastName",control:a,rules:{validate:{validName:e=>Qf(e)||"Last name is not valid"},required:"Please provide your last name"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},label:"Last name",id:"lastName",type:"text",error:t.error,...e})})]}),Wn(Wd,{children:Wn(rf,{name:"email",control:a,rules:{validate:{validEmail:e=>Jf(e)||"Email is not valid"},required:"Please provide your email"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"span 4 / span 4"},label:"Email",id:"email",type:"text",error:t.error,...e})})}),zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"mobile",control:a,rules:{validate:{validAuMobile:e=>e&&em(e.replace(/\s/g,""))||"That doesn’t look like a real Australian mobile number"},required:"Please provide your mobile"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 3 / span 3"}},label:"Mobile",placeholder:"+61",id:"mobile",type:"text",setPlaceholderOnFocus:!0,error:t.error,...e})}),Wn(rf,{name:"postCode",control:a,rules:{validate:{validPostcode:e=>tm(e)||"Postcode is not valid"},required:"Please provide your postcode"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 1 / span 1",marginTop:"0px"}},label:"Postcode",id:"postcode",type:"text",error:t.error,...e})})]}),Wn(Wd,{children:zn(Zd,{children:["By clicking “Next: ",null==s?void 0:s.progressButton,"” you acknowledge that your personal information will be used in accordance with our"," ",Wn("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/privacy-policy/",children:"Privacy Policy"}),"."]})}),Wn(Wd,{children:zn(zd,{children:[Wn(qd,{}),Wn($d,{type:"submit"})]})})]})},Cm=e=>{switch(e){case"ev":default:return"ev";case"ice":return"ice,hybrid"}},_m=(e,t)=>({annualKms:e.annualKms.toString(),annualSalaryGross:t.annualSalary.toString(),payCycle:t.payFrequency||"",size:e.vehicleSize||"",brand:e.brand,termInMonths:(12*e.leaseTerm).toString(),budget:e.vehicleCost.toString(),state:t.location||"",type:Cm(e.engineType||"")}),xm=e=>({budget:e.vehicleCost.toString(),size:e.vehicleSize||"",type:Cm(e.engineType||""),brand:e.brand}),km=$o("div",{target:"e1skra173"})([{overflow:"hidden",borderRadius:"0.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))"}],""),Sm=$o("div",{target:"e1skra172"})([{backgroundColor:"transparent",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.5rem",paddingBottom:"1.5rem","@media (min-width: 768px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}],""),Em=$o("div",{target:"e1skra171"})([{height:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.5rem","@media (min-width: 768px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}],""),Fm=$o("p",{target:"e1skra170"})({fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"2.25rem",lineHeight:"2.25rem",fontWeight:"700","@media (min-width: 768px)":{fontSize:"3rem",lineHeight:'"3rem"'}},";",(({isPrimary:e})=>e?{color:"var(--fl-color-primary-600)"}:{"--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";"),Tm=$o("li",{target:"e1jk9oz71"})([{backgroundColor:"transparent"}],""),Om=$o("span",{target:"e1jk9oz70"})({paddingLeft:"0.5rem",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"400"},";"),Mm=e=>g("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M13.7 0.3C13.3 -0.1 12.7 -0.1 12.3 0.3L7 5.6L1.7 0.3C1.3 -0.1 0.7 -0.1 0.3 0.3C-0.1 0.7 -0.1 1.3 0.3 1.7L5.6 7L0.3 12.3C-0.1 12.7 -0.1 13.3 0.3 13.7C0.5 13.9 0.7 14 1 14C1.3 14 1.5 13.9 1.7 13.7L7 8.4L12.3 13.7C12.5 13.9 12.8 14 13 14C13.2 14 13.5 13.9 13.7 13.7C14.1 13.3 14.1 12.7 13.7 12.3L8.4 7L13.7 1.7C14.1 1.3 14.1 0.7 13.7 0.3Z",fill:"#FF876F"}))),Lm=({items:e,className:t})=>Wn("ul",{className:t,children:e.map((e=>Wn(Tm,{css:{gridColumn:"span 1 / span 1"},children:e.isTicked?zn(b,{children:[Wn(xd,{css:{display:"inline",fill:"var(--fl-color-primary-600)"},"aria-hidden":"true"}),Wn(Om,{children:e.description})]}):zn(b,{children:[Wn(Mm,{css:{marginRight:"0.25rem",display:"inline"},"aria-hidden":"true"}),Wn(Om,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:e.description})]})},e)))}),Am=({className:e,heading:t,children:r})=>Wn(km,{className:e,children:t?zn(b,{children:[Wn(Sm,{css:{paddingBottom:"0px","@media (min-width: 768px)":{paddingBottom:"1.25rem"}},children:Wn(t,{})}),Wn(Em,{children:r})]}):Wn(Sm,{children:r})}),Pm=$o("div",{target:"ez4pykt0"})("width:",(({width:e})=>e?`${e}rem`:"100%"),";height:",(({height:e})=>e),"rem;"),Rm=({height:e,width:t,className:r})=>Wn("div",{className:r,children:Wn("div",{css:{display:"flex",height:"100%","@keyframes pulse":{"50%":{opacity:".5"}},animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",flexDirection:"row"},children:Wn(Pm,{width:t,height:e,css:{borderRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"}})})}),Vm=$o("button",{target:"eg9ip2a1"})((({variant:e})=>"sm"===e?{borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0px",paddingBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"}:{borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"})," ",(({isCurrent:e})=>e?{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"}:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}}),";"),Dm=$o("nav",{target:"eg9ip2a0"})((({variant:e})=>"sm"==e?{display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(0.25rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))"}}:{display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(1rem * var(--tw-space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--tw-space-x-reverse)))"}}),";"),Im=({tabs:e,currentTab:t,onChange:r,className:n,variant:o})=>{const i=r;return Wn("div",{className:n,children:Wn("div",{children:Wn(Dm,{variant:o,"aria-label":"Tabs",children:e.map((e=>Wn(Vm,{type:"button",onClick:()=>i(e.id),"aria-current":e.id===t?"page":void 0,isCurrent:e.id===t,variant:o,children:e.displayName},e.displayName)))})})})},Nm=$o(Id,{target:"e9j1jgy0"})({gridColumn:"span 1 / span 1",gridColumnStart:"3","@media (min-width: 768px)":{gridColumn:"auto"}},";"),Hm=({className:e})=>{var t,r,n,o;const{state:i,dispatch:a}=pp(),[s,l]=ce(!1),{state:c,dispatch:u}=Zn(),{handleSubmit:d,control:p}=Bf({mode:"onBlur",defaultValues:{...i.vehicleOptions}}),f=c.pageState.summaryPage.currentTab,m=Td();de((()=>{var e,t,r,n,o,a,c,u,d,p,h,g,v;s&&("ICE"===f&&(null==(t=null==(e=i.results)?void 0:e.ice)?void 0:t.estimation)||"EV"===f&&(null==(n=null==(r=i.results)?void 0:r.ev)?void 0:n.estimation))&&(um(m.backend,(c=m.tracking,u=!!m.features.isGated,d=i.vehicleOptions,p=i.employmentDetails,h=i.contactDetails,g=null==(o=i.results.ev)?void 0:o.estimation,v=null==(a=i.results.ice)?void 0:a.estimation,{eventName:"estimateUpdated",session:pm(c,u),properties:{vehicleOptions:fm(d),employmentDetails:mm(p),other:{postcode:(null==h?void 0:h.postCode)??void 0},evEstimation:g,iceEstimation:v}})),l(!1))}),[null==(r=null==(t=i.results)?void 0:t.ice)?void 0:r.estimation,null==(o=null==(n=i.results)?void 0:n.ev)?void 0:o.estimation,m.backend]);const h=()=>Wn(Id,{variant:"sm",onClick:()=>u({type:"PageSelected",payload:c.pageOrder.filter((e=>"Vehicle"===e.id))[0]}),arrowDirection:"uTurn",children:"Restart calculator"});return zn(Am,{css:{overflow:"visible"},className:e,children:[zn("div",{css:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[Wn("h4",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"500"},children:"Update estimate"}),Wn("span",{css:{display:"none",alignSelf:"center","@media (min-width: 768px)":{display:"flex"}},children:Wn(h,{})})]}),Wn(Ud,{onSubmit:d((e=>{l(!0),a({type:"VehicleOptionsSubmitted",payload:e})})),children:zn(Wd,{css:{marginTop:"1rem",display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",alignItems:"baseline",gap:"0.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(7, minmax(0, 1fr))",gap:"1rem"}},children:[Wn(rf,{name:"vehicleCost",control:p,rules:{min:{message:"Vehicle cost must be more than $5000",value:5e3},max:{message:"Vehicle cost must be less than $1 000 000",value:1e6},required:"Please provide the Vehicle cost"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"vehicleCost",label:"Vehicle cost",variant:"sm",max:1e6,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},error:t.error,...e})}),Wn(rf,{name:"annualKms",control:p,rules:{min:{message:"Annual kms must be more than 500",value:500},max:{message:"Annual kms must be less than 1 000 000",value:1e6},required:"Please estimate your Annual kms"},render:({field:e,fieldState:t})=>Wn(Qd,{label:"Annual kms",max:1e6,min:5e3,variant:"sm",rangeAdjustment:5e3,id:"annualKms",css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},error:t.error,...e})}),Wn(rf,{name:"leaseTerm",control:p,rules:{required:!0},render:({field:e})=>Wn(Md,{css:{gridColumn:"1 / -1",marginBottom:"auto","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"Lease term (years)",items:ap,variant:"sm",...e})}),Wn("span",{css:{marginTop:"1.5rem","@media (min-width: 768px)":{display:"none"}},children:Wn(h,{})}),Wn(Nm,{variant:"md",type:"submit",children:"Update"})]})})]})},Bm=$o(Am,{target:"e1n1rrhx3"})({marginBottom:"1.25rem"}," background-color:",(e=>e.backgroundColour),";"),jm=$o("h4",{target:"e1n1rrhx2"})({marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"500"},""),Um=$o("h4",{target:"e1n1rrhx1"})({paddingBottom:"0px",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},""),Wm=$o("h4",{target:"e1n1rrhx0"})({paddingTop:"0.5rem",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"0.75rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},""),zm=(e,t)=>"function"==typeof e?e(t||{}):e,$m=({icon:e,content:t,parameters:r,backgroundColour:n})=>{const o=e=>{const n=t[e],o=(null==r?void 0:r[e])||{};return zm(n,o)};return Wn(Bm,{backgroundColour:n,children:zn("div",{css:{display:"flex"},children:[Wn("div",{css:{alignSelf:"flex-start",paddingRight:"1rem","@media (min-width: 1024px)":{alignSelf:"center"}},children:Wn(e,{css:{height:"5rem",width:"5rem","@media (min-width: 768px)":{height:"6rem",width:"6rem"}}})}),zn("div",{children:[Wn(jm,{children:o("heading")}),Wn(Um,{children:o("paragraph")}),t.disclaimer&&Wn(Wm,{children:o("disclaimer")})]})]})})},qm=({savings:e})=>{const{content:{banners:{evSavings:t}}}=Td(),r={heading:{savings:Math.trunc(e).toLocaleString("en-US")}};return Wn($m,{icon:t.icon,content:t,parameters:r,backgroundColour:t.backgroundColour})},Zm=()=>{const{content:{banners:{maxEvSavings:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Gm=()=>{const{content:{banners:{error:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour,css:{marginTop:"1.25rem"}})},Ym=()=>{const{content:{banners:{getInTouch:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Km=()=>{const{content:{banners:{luxuryCarSavings:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Xm=[{id:"EV",displayName:"Electric vehicle"},{id:"ICE",displayName:"Fuel / Hybrid"}],Jm=()=>zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>zn(b,{children:[Wn(Rm,{css:{marginBottom:"0.5rem"},width:13,height:1.5}),Wn(Rm,{width:11,height:3})]}),children:[Wn(Rm,{css:{marginBottom:"0.75rem"},width:13,height:1}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5})]}),Qm=()=>{var e,t,r,n,o,i,a,s,l,c,u,d,p,f,m,h,g,v,y,w,C,_,x,k,S,E,F,T,O,M;const[L,A]=ce(),[P,R]=ce("LeaseTerm"),[V,D]=ce(!1),[I,N]=ce(!1),[H,B]=ce(!1),{state:j,dispatch:U}=pp(),W=Td(),{state:z,dispatch:$}=Zn(),q=z.pageState.summaryPage.currentTab,Z=e=>{R(e)};de((()=>{var e,t,r,n;switch(q){case"EV":A(null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation);break;case"ICE":A(null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation)}}),[j,q]),de((()=>{(async()=>{var e,t,r,n;if(!(null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation))try{const e=await lm(W.backend,_m({...j.vehicleOptions,engineType:"ev"},j.employmentDetails));"EV"!==q||I||(um(W.backend,gm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,e,null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation)),N(!0)),U({type:"EvEstimationResultUpdated",payload:om(e)}),D(!1)}catch{D(!0)}})()}),[null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation,null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation,j.contactDetails,j.isDirty,j.vehicleOptions,j.employmentDetails,W.tracking,W.features.isGated,W.backend,q,I,U]),de((()=>{(async()=>{var e,t,r,n;if(!(null==(t=null==(e=j.results)?void 0:e.ice)?void 0:t.estimation)&&"ICE"===q)try{const e=await lm(W.backend,_m({...j.vehicleOptions,engineType:"ice"},j.employmentDetails));H||(um(W.backend,gm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(n=null==(r=j.results)?void 0:r.ev)?void 0:n.estimation,e)),B(!0)),U({type:"IceEstimationResultUpdated",payload:om(e)})}catch{D(!0)}})()}),[null==(i=null==(o=j.results)?void 0:o.ev)?void 0:i.estimation,null==(s=null==(a=j.results)?void 0:a.ice)?void 0:s.estimation,j.vehicleOptions,j.employmentDetails,j.contactDetails,j.isDirty,W.tracking,W.features.isGated,W.backend,q,H,U]),de((()=>{var e,t,r,n,o,i,a;j.isDirty&&(null==(e=j.contactDetails)?void 0:e.isSubmitted)&&((null==(r=null==(t=j.results)?void 0:t.ice)?void 0:r.estimation)||(null==(o=null==(n=j.results)?void 0:n.ev)?void 0:o.estimation))&&(um(W.backend,hm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(i=j.results.ev)?void 0:i.estimation,null==(a=j.results.ice)?void 0:a.estimation)),U({type:"EnquirySubmitted"}))}),[j.isDirty,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(c=null==(l=j.results)?void 0:l.ice)?void 0:c.estimation,null==(d=null==(u=j.results)?void 0:u.ev)?void 0:d.estimation,W.backend,U,W]);const G=L&&Math.trunc(null==L?void 0:L.packagedPerPayCycle.afterTaxCost).toLocaleString("en-US"),Y="LeaseTerm"===P?L&&Math.trunc((L.packagedPerPayCycle.taxSavings||0)*(L.payCyclesPerYear||1)*j.vehicleOptions.leaseTerm)||0:Math.trunc((null==L?void 0:L.packagedPerPayCycle.taxSavings)||0),K=0===(null==(h=null==(m=null==(f=null==(p=j.results)?void 0:p.ev)?void 0:f.estimation)?void 0:m.packagedPerPayCycle)?void 0:h.postTaxDeduction),X=(null==(v=null==(g=j.results)?void 0:g.ev)?void 0:v.estimation)&&L&&K&&(j.results.ev.estimation.packagedPerPayCycle.taxSavings-L.packagedPerPayCycle.taxSavings)*L.payCyclesPerYear*j.vehicleOptions.leaseTerm,J=!("EV"!=q||!(null==(C=null==(w=null==(y=j.results)?void 0:y.ev)?void 0:w.estimation)?void 0:C.packagedPerPayCycle)||0!=(null==(k=null==(x=null==(_=j.results)?void 0:_.ev)?void 0:x.estimation)?void 0:k.packagedPerPayCycle.postTaxDeduction)),Q=!!("EV"==q&&(null==(F=null==(E=null==(S=j.results)?void 0:S.ev)?void 0:E.estimation)?void 0:F.packagedPerPayCycle)&&(null==(M=null==(O=null==(T=j.results)?void 0:T.ev)?void 0:O.estimation)?void 0:M.packagedPerPayCycle.postTaxDeduction)>0);return zn("div",{children:[V?Wn(Gm,{}):zn(b,{children:[!W.features.hideVehicleSelection&&Wn(Im,{css:{marginBottom:"1.5rem",marginTop:"1rem"},tabs:Xm,currentTab:q,onChange:async e=>{var t,r,n;$({type:"SummaryPageTabUpdated",payload:e}),await um(W.backend,(t=W.tracking,r=!!W.features.isGated,n={...j.vehicleOptions,engineType:"EV"==e?"ev":"ice"},{eventName:"engineTypeUpdated",session:pm(t,r),properties:{vehicleOptions:fm(n)}}))}}),X&&X>0?Wn(qm,{savings:X}):Wn(b,{}),Wn(J?Zm:b,{}),Wn(Q?Km:b,{}),zn("div",{css:{marginBottom:"1.25rem",display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}},children:[G?zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>zn(b,{children:[zn("h4",{css:{marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"500"},children:["Cost per ",j.employmentDetails.payFrequency," pay"]}),zn(Fm,{children:["$",G]})]}),children:[Wn("p",{css:{marginBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Cost includes:"}),Wn(Lm,{css:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"0.5rem"},items:[{description:"Registration",isTicked:!0},{description:"Tyres",isTicked:!0},{description:"Insurance",isTicked:!0},{description:"Servicing",isTicked:!0},{description:"Finance",isTicked:!0},{description:"Maintenance",isTicked:!0},{description:"EV"===q?"Charging / Fuel":"Fuel",isTicked:!0}]})]}):Wn(Jm,{}),Y?zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>{return zn(b,{children:[zn("div",{css:{display:"flex",justifyContent:"space-between"},children:[Wn("h4",{css:{marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"500"},children:"Total savings"}),Wn(Im,{css:{marginTop:"0.25rem"},tabs:(e=j.vehicleOptions.leaseTerm,[{id:"LeaseTerm",displayName:`${e} years`},{id:"PayCycle",displayName:"Per pay"}]),currentTab:P,onChange:Z,variant:"sm"})]}),zn(Fm,{isPrimary:!0,children:["$",Y>0?Y.toLocaleString("en-US"):0]})]});var e},children:[Wn("p",{css:{marginBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Enjoy the benefits of:"}),Wn(Lm,{css:{display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.5rem"},items:[{description:"Pre-tax deduction savings",isTicked:!0},{description:"GST savings on purchase price",isTicked:!0},{description:"GST savings on running costs",isTicked:!0},{description:"FBT exemption on deductions",isTicked:0===(null==L?void 0:L.packagedPerPayCycle.postTaxDeduction)}]})]}):Wn(Jm,{})]}),W.features.isGated&&Wn(Ym,{})]}),Wn(Hm,{css:{marginBottom:"1.25rem"}}),Wn("p",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Figures shown are estimates only and are based on an estimated driveaway price of the vehicle which includes dealer delivery, CTP, Rego and Stamp duty."}),Wn(Wd,{children:zn(zd,{css:{marginTop:"0.5rem"},children:[Wn(qd,{}),V?Wn(b,{}):Wn($d,{type:"button",onClick:()=>$({type:"NextPageSelected"})})]})})]})},eh=$o("h2",{target:"e1nbvt2e0"})({textAlign:"right",verticalAlign:"text-bottom",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},";"),th=e=>{const{state:t}=Zn(),r=Re(t)+1,n=t.pageOrder.filter((e=>"Form"===e.type)).length;return zn(eh,{css:{placeSelf:"center","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},className:e.className,children:["Step ",r,"/",n]})};var rh={exports:{}};rh.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(2),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=c;var i=r(3),a=o(r(4)),s=r(14),l=o(r(15));function c(e){var t=e.activeClassName,r=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,c=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&&d,f=e.className,m=e.findChunks,h=e.highlightClassName,g=void 0===h?"":h,v=e.highlightStyle,y=void 0===v?{}:v,b=e.highlightTag,w=void 0===b?"mark":b,C=e.sanitize,_=e.searchWords,x=e.textToHighlight,k=e.unhighlightTag,S=void 0===k?"span":k,E=e.unhighlightClassName,F=void 0===E?"":E,T=e.unhighlightStyle,O=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),M=(0,i.findAll)({autoEscape:u,caseSensitive:p,findChunks:m,sanitize:C,searchWords:_,textToHighlight:x}),L=w,A=-1,P="",R=void 0,V=(0,l.default)((function(e){var t={};for(var r in e)t[r.toLowerCase()]=e[r];return t}));return(0,s.createElement)("span",n({className:f},O,{children:M.map((function(e,t){var n=x.substr(e.start,e.end-e.start);if(e.highlight){A++;var o=void 0;o="object"==typeof g?p?g[n]:(g=V(g))[n.toLowerCase()]:g;var i=A===+a;P=o+" "+(i?r:""),R=!0===i&&null!=c?Object.assign({},y,c):y;var l={children:n,className:P,key:t,style:R};return"string"!=typeof L&&(l.highlightIndex=A),(0,s.createElement)(L,l)}return(0,s.createElement)(S,{children:n,className:F,key:t,style:T})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?n:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?i:n,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(n,r?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({start:l,end:c}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,r,!1)}return n};function i(e){return e}}])},function(e,t,r){(function(t){e.exports=r(13)()}).call(t,r(5))},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(Ki){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(Ki){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(Ki){n=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(Ki){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||u||s(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){(function(t){var n=r(7),o=r(8),i=r(9),a=r(10),s=r(11),l=r(12);e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",u={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(n.thatReturnsNull),arrayOf:function(e){return f((function(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,n,o,i+"["+l+"]",s);if(c instanceof Error)return c}return null}))},element:f((function(t,r,n,o,i){var a=t[r];return e(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement.")})),instanceOf:function(e){return f((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||c;return new p("Invalid "+o+" `"+i+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,r,n,o){return h(e[t])?null:new p("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=t[r],l=g(a);if("object"!==l)return new p("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,n,o,i+"."+c,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,r,n,o,i){for(var a=t[r],s=0;s<e.length;s++)if(d(a,e[s]))return null;return new p("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+n+"`, expected one of "+JSON.stringify(e)+".")})):n.thatReturnsNull},oneOfType:function(e){if(!Array.isArray(e))return n.thatReturnsNull;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),t),n.thatReturnsNull}return f((function(t,r,n,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,r,n,o,i,s))return null;return new p("Invalid "+o+" `"+i+"` supplied to `"+n+"`.")}))},shape:function(e){return f((function(t,r,n,o,i){var a=t[r],l=g(a);if("object"!==l)return new p("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(a,c,n,o,i+"."+c,s);if(d)return d}}return null}))},exact:function(e){return f((function(t,r,n,o,i){var l=t[r],c=g(l);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");var u=a({},t[r],e);for(var d in u){var f=e[d];if(!f)return new p("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(l,d,n,o,i+"."+d,s);if(m)return m}return null}))}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function f(e){function r(r,n,i,a,l,u,d){return a=a||c,u=u||i,d!==s&&t&&o(!1,"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"),null==n[i]?r?null===n[i]?new p("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `null`."):new p("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `undefined`."):null:e(n,i,a,l,u)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function m(e){return f((function(t,r,n,o,i,a){var s=t[r];return g(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+n+"`, expected `"+e+"`."):null}))}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var n=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=l,u.PropTypes=u,u}}).call(t,r(5))},function(e,t){function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){e.exports=function(e,t,r,n,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,r(5))},function(e,t,r){(function(t){var n=r(7);e.exports=n}).call(t,r(5))},function(e,t){var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(r){a=r(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(t){e.exports=function(e,t,r,n,o){}}).call(t,r(5))},function(e,t,r){var n=r(7),o=r(8),i=r(11);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t){e.exports=Is},function(e,t){var r=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,o=[],i=void 0,a=!1,s=function(e,r){return t(e,o[r])};return function(){for(var t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];return a&&n===this&&r.length===o.length&&r.every(s)?i:(a=!0,n=this,o=r,i=e.apply(this,r))}}}]);const nh=Ur(rh.exports);var oh=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ih="object"==typeof jr&&jr&&jr.Object===Object&&jr,ah="object"==typeof self&&self&&self.Object===Object&&self,sh=ih||ah||Function("return this")(),lh=sh,ch=function(){return lh.Date.now()},uh=/\s/;var dh=function(e){for(var t=e.length;t--&&uh.test(e.charAt(t)););return t},ph=/^\s+/;var fh=function(e){return e?e.slice(0,dh(e)+1).replace(ph,""):e},mh=sh.Symbol,hh=mh,gh=Object.prototype,vh=gh.hasOwnProperty,yh=gh.toString,bh=hh?hh.toStringTag:void 0;var wh=function(e){var t=vh.call(e,bh),r=e[bh];try{e[bh]=void 0;var n=!0}catch(Ki){}var o=yh.call(e);return n&&(t?e[bh]=r:delete e[bh]),o},Ch=Object.prototype.toString;var _h=wh,xh=function(e){return Ch.call(e)},kh=mh?mh.toStringTag:void 0;var Sh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kh&&kh in Object(e)?_h(e):xh(e)},Eh=function(e){return null!=e&&"object"==typeof e};var Fh=fh,Th=oh,Oh=function(e){return"symbol"==typeof e||Eh(e)&&"[object Symbol]"==Sh(e)},Mh=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,Ah=/^0o[0-7]+$/i,Ph=parseInt;var Rh=oh,Vh=ch,Dh=function(e){if("number"==typeof e)return e;if(Oh(e))return NaN;if(Th(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Th(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Fh(e);var r=Lh.test(e);return r||Ah.test(e)?Ph(e.slice(2),r?2:8):Mh.test(e)?NaN:+e},Ih=Math.max,Nh=Math.min;const Hh=Ur((function(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function m(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function h(){var e=Vh();if(m(e))return g(e);s=setTimeout(h,function(e){var r=t-(e-l);return d?Nh(r,i-(e-c)):r}(e))}function g(e){return s=void 0,p&&n?f(e):(n=o=void 0,a)}function v(){var e=Vh(),r=m(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=Dh(t)||0,Rh(r)&&(u=!!r.leading,i=(d="maxWait"in r)?Ih(Dh(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Vh())},v})),Bh=$o(od,{target:"eqjfw6j1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),jh=$o(sd,{target:"eqjfw6j0"})((()=>({position:"relative",cursor:"pointer",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","&[data-focus]":{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}})),";"),Uh=ze((({inputLabel:e,value:t,className:r,onChange:n,onBlur:o,getItems:i,error:a,helperText:s,placeholder:l,itemsTitle:c,emptyItemTitle:u,emptyItemPrefix:d,defaultItemTitle:p,defaultItemPrefix:f,complianceText:m},h)=>{const[g,v]=ce({key:-1,displayValue:t}),[y,b]=ce({items:[],isOpen:!1});de((()=>{v({key:-1,displayValue:t||""})}),[t]);const w=ge(Hh((async e=>{if(e.length>=3){const t=await i(e);b({items:t,isOpen:!0})}else b({items:[],isOpen:!1})}),500),[i]),C=y.items.length>0;return zn("div",{className:r,children:[zn(cd,{children:[Wn(Ga,{css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),Wn("div",{css:{position:"relative",marginTop:"0.5rem"},children:Wn(ld,{value:g,onChange:e=>{v(e||{key:-1,displayValue:""}),n((null==e?void 0:e.displayValue)||"")},children:zn("div",{css:{position:"relative",marginTop:"0.5rem"},children:[Wn(Bh,{ref:h,onChange:async e=>{const t=e.target.value.trim();v({key:-1,displayValue:t}),n(t),w(t)},onBlur:e=>{const t=e.target;o(t.value.trim()),b({items:[],isOpen:!1})},placeholder:l,hasError:!!a,displayValue:e=>(null==e?void 0:e.displayValue)||""}),y.isOpen&&g.displayValue.length>=3&&zn(ad,{modal:!1,css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:[C&&Wn("div",{css:{position:"relative",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:c}),y.items.map((e=>Wn(jh,{value:e,children:Wn(nh,{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"600"},highlightStyle:{fontWeight:400},highlightTag:"span",searchWords:g.displayValue.split(" ")||[],autoEscape:!0,textToHighlight:e.displayValue})},e.key))),C&&Wn("div",{css:{borderTopWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(243 244 246 / var(--tw-border-opacity))"}}),Wn("div",{css:{position:"relative",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:C?p:u}),zn(jh,{value:{key:"default",displayValue:g.displayValue.toUpperCase()},children:[C?f:d," ",Wn("span",{css:{fontWeight:"700"},children:g.displayValue.toUpperCase()})]})]})]})})})]}),(null==a?void 0:a.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:a.message}),Wn(Od,{children:s}),m&&Wn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:m})]})})),Wh=()=>{const{state:e,dispatch:t}=pp(),{dispatch:r}=Zn(),n=Td(),{handleSubmit:o,control:i}=Bf({mode:"onBlur",defaultValues:{...e.employmentDetails}}),a=async e=>{const t=await(async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/employer/name-suggestions`}?${r}`);var o;return await sm(n,"GET")})(n.backend,(r=e,{searchKey:r}));var r;return(null==t?void 0:t.data)?t.data.map(((e,t)=>({key:t,displayValue:e.employerName}))):[]};return zn(Ud,{onSubmit:o((e=>{var o,i,a;t({type:"EmploymentDetailsSubmitted",payload:e}),r({type:"NextPageSelected"}),um(n.backend,(o=n.tracking,i=!!n.features.isGated,a=e,{eventName:"employmentDetailsSubmitted",session:pm(o,i),properties:{employmentDetails:mm(a)}}))})),children:[Wn(Wd,{children:Wn(rf,{name:"annualSalary",control:i,rules:{min:{message:"Annual salary must be more than $5000",value:5e3},max:{message:"Annual salary must be less than $100 000 000",value:1e8},required:"Please provide the annual salary"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"annualSalary",label:"Annual salary",helperText:"Gross salary, before tax and excluding super.",max:1e8,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"payFrequency",control:i,rules:{validate:Yf,required:"Please select your pay frequency"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"Pay frequency",error:t.error,items:tp,...e})}),Wn(rf,{name:"employmentType",control:i,rules:{validate:Kf,required:"Please select your employment type"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},inputLabel:"Employment type",error:t.error,items:rp,...e})})]}),!n.features.hideEmployerName&&Wn(Wd,{children:Wn(rf,{name:"employerName",control:i,rules:{validate:{validName:e=>rm(e)||"Employer name is not valid"},required:"Please provide the name of your employer"},render:({field:e,fieldState:t})=>n.features.showEmployerSearch?Wn(Uh,{inputLabel:"Employer name",itemsTitle:"Are you looking for...",emptyItemTitle:"We couldn't find the employer you're searching for...",emptyItemPrefix:"Use this name:",defaultItemTitle:"Can't find your employer?",defaultItemPrefix:"Use this name:",placeholder:"Search for your company",complianceText:"This information is used only for your quote and won’t be shared with your employer.",getItems:a,error:t.error,css:{gridColumn:"span 4 / span 4"},...e}):Wn(bm,{css:{gridColumn:"span 4 / span 4"},label:"Employer name",id:"employerName",type:"text",error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"location",control:i,rules:{validate:Xf,required:"Please select your state"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"span 4 / span 4","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"State",items:np,error:t.error,...e})})}),Wn(Wd,{children:zn(zd,{children:[Wn(qd,{}),Wn($d,{type:"submit"})]})})]})},zh=$o("div",{target:"e14xkt9j7"})({position:"relative",height:"50vw",minHeight:"10rem",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","@media (min-width: 768px)":{height:"20vw"},"@media (min-width: 1024px)":{height:"10rem"}},";"),$h=$o("p",{target:"e14xkt9j6"})([{paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}],""),qh=$o("h4",{target:"e14xkt9j5"})({marginBottom:"1rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.5rem",lineHeight:"1.75rem",fontWeight:"700"},";"),Zh=$o("div",{target:"e14xkt9j4"})((()=>({position:"absolute",left:"auto",right:"0px",margin:"auto",height:"50vw",minHeight:"10rem",width:"100%",overflow:"hidden",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"600ms","@media (min-width: 768px)":{height:"20vw"},"@media (min-width: 1024px)":{left:"0px",top:"0px",height:"10rem"}}))," ",(({isShown:e})=>e?{opacity:"1"}:{opacity:"0"})," img{",{position:"absolute",bottom:"0px",top:"0px",marginTop:"auto",marginBottom:"auto",verticalAlign:"middle"},";}"),Gh=$o("div",{target:"e14xkt9j3"})([{marginTop:"1.5rem",display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))"}],""),Yh=$o("div",{target:"e14xkt9j2"})([{gridColumn:"span 3 / span 3",justifySelf:"end"}],""),Kh=$o("div",{target:"e14xkt9j1"})([{gridColumn:"span 1 / span 1",display:"grid",maxWidth:"fit-content",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"0.5rem",justifySelf:"start",borderRadius:"9999px",backgroundColor:"var(--fl-color-primary-100)",padding:"0.5rem"}],""),Xh=$o("button",{target:"e14xkt9j0"})({height:"0.5rem",width:"0.5rem",borderRadius:"9999px",backgroundColor:"var(--fl-color-primary-600)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"}," ",(({isActive:e})=>e?{opacity:"1"}:{opacity:"0.3"}),";"),Jh=({items:e,title:t})=>{const[r,n]=ce(e.length),[o,i]=ce();return de((()=>{if((null==o?void 0:o.index)!=r&&e.length>1){(null==o?void 0:o.timeoutId)&&clearTimeout(null==o?void 0:o.timeoutId);const t=setTimeout((()=>n((r+1)%e.length)),5e3);i({timeoutId:t,index:r})}return()=>clearTimeout(null==o?void 0:o.timeoutId)}),[o,r,e]),Wn(b,{children:0===e.length?zn("div",{children:[Wn($h,{as:"div",children:Wn(Rm,{height:1.25,width:12})}),Wn(qh,{as:"div",children:Wn(Rm,{height:1.75})}),Wn(zh,{children:Wn(Rm,{height:10})})]}):zn("div",{children:[Wn($h,{children:t}),zn("div",{css:{display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",overflow:"hidden"},children:[Wn(qh,{children:e[r].title}),Wn(zh,{children:e.map(((e,t)=>Wn(Zh,{src:e.src,isShown:r===t,children:Wn("img",{src:e.src})},e.title)))})]}),zn(Gh,{children:[Wn(Kh,{children:e.map(((e,t)=>Wn(Xh,{type:"button",isActive:r===t,onClick:()=>n(t)},t)))}),Wn(Yh,{children:Wn(Id,{href:"https://www.flarehr.com/cars/latest-deals",arrowDirection:"right",variant:"sm",children:"See more vehicles"})})]})]})})},Qh=()=>{const{content:{banners:{support:e}}}=Td();return zn("div",{css:{display:"flex","@media (min-width: 768px)":{display:"block"}},children:[Wn("div",{css:{alignSelf:"center",paddingRight:"1rem"},children:Wn(e.icon,{css:{height:"5rem",width:"5rem"}})}),zn("div",{css:{marginTop:"1rem"},children:[Wn("h4",{css:{marginBottom:"0.75rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},children:zm(e.heading)}),Wn("p",{css:{paddingBottom:"0px",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:zm(e.paragraph)})]})]})},eg=()=>{var e,t,r,n,o;const[i,a]=ce(),{state:s,dispatch:l}=pp(),{state:c}=Zn(),u=Td(),[d,p]=ce(!1),f=c.pageState.summaryPage.currentTab;return de((()=>{var e,t,r,n;switch(f){case"EV":a(null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.recommendation);break;case"ICE":a(null==(n=null==(r=s.results)?void 0:r.ice)?void 0:n.recommendation)}}),[s,f]),de((()=>{(async()=>{var e,t;try{if(!(null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.estimation)&&!u.features.hideVehicleRecommendations){const e=await cm(u.backend,xm({...s.vehicleOptions,engineType:"ev"}));l({type:"EvRecommendationResultUpdated",payload:im(e)})}p(!1)}catch(r){p(!0)}})()}),[null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.estimation,u.backend,u.features.hideVehicleRecommendations,s.vehicleOptions,l]),de((()=>{(async()=>{var e,t;try{if(!(null==(t=null==(e=s.results)?void 0:e.ice)?void 0:t.estimation)&&"ICE"===f&&!u.features.hideVehicleRecommendations){const e=await cm(u.backend,xm({...s.vehicleOptions,engineType:"ice"}));l({type:"IceRecommendationResultUpdated",payload:im(e)})}p(!1)}catch(r){p(!0)}})()}),[null==(n=null==(r=s.results)?void 0:r.ice)?void 0:n.estimation,u.backend,u.features.hideVehicleRecommendations,s.vehicleOptions,f,l]),zn("div",{css:{display:"block","@media (min-width: 768px)":{display:"inline-flex"},"@media (min-width: 1024px)":{display:"block",maxWidth:"20.5rem"}},children:[d||u.features.hideVehicleRecommendations?Wn(b,{}):Wn(Am,{css:{margin:"auto",marginBottom:"2.5rem",marginRight:"0px",display:"block",width:"100%",minWidth:"16.5rem",maxWidth:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","@media (min-width: 768px)":{marginBottom:"1.5rem",marginRight:"2.5rem"},"@media (min-width: 1024px)":{marginRight:"0px",maxWidth:"20.5rem"}},children:Wn(Jh,{title:"You may be interested in:",items:(null==(o=null==i?void 0:i.data)?void 0:o.map((e=>({src:e.photoUri,title:e.shortDescription}))))||[]})}),Wn(Qh,{})]})},tg=e=>g("svg",{viewBox:"0 0 84 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group 58"},g("path",{id:"Vector",d:"M42.0832 83.8353C65.2331 83.8353 83.9998 65.0686 83.9998 41.9186C83.9998 18.7687 65.2331 0.00195312 42.0832 0.00195312C18.9332 0.00195312 0.166504 18.7687 0.166504 41.9186C0.166504 65.0686 18.9332 83.8353 42.0832 83.8353Z",fill:"url(#paint0_linear_585_2736)"}),g("path",{id:"Vector_2",d:"M21.1043 52.7916L38.5552 78.7516L26.8728 86.6047C25.4813 87.5401 23.5906 87.1717 22.6535 85.7777L8.59315 64.8616C7.65775 63.4701 8.02613 61.5794 9.42019 60.6422L21.1025 52.7891L21.1043 52.7916Z",fill:"url(#paint1_linear_585_2736)"}),g("path",{id:"Vector_3",d:"M72.6195 22.7688C71.0792 20.1624 67.6948 19.2698 65.0698 20.776C62.9593 21.9909 59.8817 23.7358 56.3177 25.7595C49.016 29.9032 39.9291 35.0602 34.583 38.2431C34.4745 38.3082 34.3877 38.3547 34.3165 38.3919C34.2886 38.3299 34.2545 38.2555 34.2173 38.1625C33.8454 37.2452 33.4859 36.3216 33.1233 35.4011C32.5685 33.9817 31.9921 32.5158 31.3846 31.0809C30.2534 28.4094 28.555 25.0126 25.4527 22.4062C23.398 20.68 20.8194 20.1004 17.9961 20.7264C16.6045 21.0333 15.9661 21.7585 15.681 22.3101C15.402 22.8494 15.1789 23.7513 15.7027 25.0002C16.1149 25.9827 16.6913 26.8443 17.2523 27.6779L17.4134 27.9166C19.8618 31.5798 20.8969 34.9549 20.6676 38.5313C20.587 39.7741 20.525 41.0169 20.463 42.2597C20.367 44.1595 20.2709 46.1244 20.1097 48.0428C19.6665 53.3455 20.3856 58.5646 22.2451 63.5512C24.2441 68.9159 26.8226 72.6721 30.3526 75.3746C34.5272 78.5699 38.9591 79.5554 43.5273 78.3127C43.5521 78.3065 43.5769 78.3003 43.6017 78.291C45.1172 77.8664 46.487 77.1009 47.8135 76.3633C48.0459 76.2331 48.2752 76.106 48.5077 75.979C50.7608 74.7486 55.2794 72.1359 56.9964 71.1349L56.3394 70.0068L44.3052 44.1595L44.9839 45.2721C48.892 42.8888 56.0511 38.7762 62.3704 35.1501C65.5781 33.3092 68.6091 31.5705 70.636 30.3835C71.919 29.6335 72.8333 28.428 73.2083 26.9899C73.5833 25.5488 73.3726 24.0488 72.6164 22.7657L72.6195 22.7688Z",fill:"url(#paint2_linear_585_2736)"}),g("path",{id:"Vector_4",d:"M58.4685 37.2206C56.9623 36.6379 55.2918 36.8239 53.8879 37.7319C51.7928 39.0863 49.5986 40.391 47.4787 41.6524C46.2638 42.3745 41.894 44.8973 40.6884 45.6349C39.5262 46.3446 38.7235 47.4138 38.4291 48.6442C38.116 49.9397 38.3764 51.3529 39.1574 52.6236C40.4126 54.6659 42.5944 55.5306 44.6802 54.9449C45.0954 54.8271 45.5076 54.6536 45.9105 54.418C49.0872 52.5554 55.6482 48.7403 59.4788 46.4531C61.5801 45.1979 62.3642 43.202 61.6886 40.8342C61.2454 39.1762 60.0429 37.8249 58.4747 37.2175L58.4685 37.2206Z",fill:"#FF876F"}),g("path",{id:"Vector_5",d:"M62.0544 46.7352C60.5482 46.1526 58.8777 46.3385 57.4738 47.2466C55.3787 48.6009 53.1845 49.9057 51.0647 51.1671C49.8498 51.8892 45.4799 54.4119 44.2743 55.1495C43.1121 55.8593 42.3094 56.9285 42.015 58.1589C41.702 59.4543 41.9623 60.8676 42.7433 62.1382C43.9985 64.1806 46.1803 65.0453 48.2661 64.4595C48.6814 64.3418 49.0936 64.1682 49.4965 63.9327C52.6731 62.07 59.2341 58.2549 63.0648 55.9677C65.166 54.7125 65.9501 52.7167 65.2745 50.3489C64.8313 48.6908 63.6288 47.3396 62.0606 46.7321L62.0544 46.7352Z",fill:"#FF876F"}),g("path",{id:"Vector_6",d:"M64.9118 56.9129C63.4056 56.3303 61.7352 56.5162 60.3312 57.4243C58.2362 58.7787 56.0419 60.0834 53.9221 61.3448C52.7072 62.0669 48.3373 64.5897 47.1317 65.3273C45.9695 66.037 45.1668 67.1062 44.8724 68.3366C44.5594 69.6321 44.8197 71.0453 45.6007 72.316C46.8559 74.3583 49.0377 75.223 51.1235 74.6373C51.5388 74.5195 51.951 74.3459 52.3539 74.1104C55.5306 72.2478 62.0916 68.4327 65.9222 66.1455C68.0234 64.8903 68.8075 62.8944 68.1319 60.5266C67.6887 58.8685 66.4862 57.5173 64.918 56.9098L64.9118 56.9129Z",fill:"#FF876F"}),g("path",{id:"Vector_7",d:"M34.295 38.3019C34.2671 38.2399 34.233 38.1655 34.1958 38.0726C33.8239 37.1552 33.4644 36.2316 33.1018 35.3112C32.547 33.8917 31.9706 32.4258 31.3631 30.9909C30.2319 28.3194 28.5336 24.9227 25.4313 22.3162C23.3765 20.59 20.798 20.0104 17.9746 20.6365C16.5831 20.9433 15.9446 21.6685 15.6595 22.2202C15.3806 22.7594 15.1574 23.6613 15.6812 24.9103C16.0934 25.8927 16.6698 26.7543 17.2308 27.588L17.3919 27.8266C19.8403 31.4899 20.8754 34.8649 20.6461 38.4414C20.5655 39.6841 20.5035 40.9269 20.4416 42.1697C20.3455 44.0695 20.2494 46.0344 20.0882 47.9528C19.9302 49.8278 19.9209 51.6904 20.0511 53.5376L27.3807 51.3464C27.3807 51.3464 35.389 48.7989 34.2919 38.2988",fill:"url(#paint3_linear_585_2736)"}),g("path",{id:"Vector_8",d:"M27.1234 83.24C28.6211 83.24 29.8352 82.0259 29.8352 80.5282C29.8352 79.0305 28.6211 77.8164 27.1234 77.8164C25.6257 77.8164 24.4116 79.0305 24.4116 80.5282C24.4116 82.0259 25.6257 83.24 27.1234 83.24Z",fill:"#C6D6FD"}),g("path",{id:"Vector_9",d:"M56.4708 15.8014L49.1143 22.2803L50.5481 23.9083L57.9046 17.4295L56.4708 15.8014Z",fill:"#161E37"}),g("path",{id:"Vector_10",d:"M42.8432 10.3023L40.6743 10.3496L40.883 19.9115L43.0519 19.8641L42.8432 10.3023Z",fill:"#161E37"}),g("path",{id:"Vector_11",d:"M28.6045 14.7085L26.8994 16.0498L32.9334 23.7203L34.6385 22.379L28.6045 14.7085Z",fill:"#161E37"})),g("defs",null,g("linearGradient",{id:"paint0_linear_585_2736",x1:5.77605,y1:62.8816,x2:78.3903,y2:20.9587,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"white"}),g("stop",{offset:.05,stopColor:"#FCFCFE"}),g("stop",{offset:.67,stopColor:"#D8E2FD"}),g("stop",{offset:1,stopColor:"#CBD9FD"})),g("linearGradient",{id:"paint1_linear_585_2736",x1:14.2897,y1:57.3725,x2:31.7406,y2:83.3325,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.12,stopColor:"#16203D"}),g("stop",{offset:.27,stopColor:"#19274F"}),g("stop",{offset:.45,stopColor:"#1C326D"}),g("stop",{offset:.65,stopColor:"#214297"}),g("stop",{offset:.86,stopColor:"#2855CC"}),g("stop",{offset:1,stopColor:"#2D64F2"})),g("linearGradient",{id:"paint2_linear_585_2736",x1:18.3277,y1:62.082,x2:69.0399,y2:18.4958,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.13,stopColor:"#B85BE1"}),g("stop",{offset:.32,stopColor:"#D16AB8"}),g("stop",{offset:.5,stopColor:"#E57798"}),g("stop",{offset:.68,stopColor:"#F37F81"}),g("stop",{offset:.85,stopColor:"#FC8573"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint3_linear_585_2736",x1:32.8554,y1:33.208,x2:15.6862,y2:38.0275,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F",stopOpacity:.99}),g("stop",{offset:.08,stopColor:"#FF876F",stopOpacity:.79}),g("stop",{offset:.17,stopColor:"#FF876F",stopOpacity:.6}),g("stop",{offset:.26,stopColor:"#FF876F",stopOpacity:.44}),g("stop",{offset:.35,stopColor:"#FF876F",stopOpacity:.3}),g("stop",{offset:.45,stopColor:"#FF876F",stopOpacity:.19}),g("stop",{offset:.56,stopColor:"#FF876F",stopOpacity:.11}),g("stop",{offset:.67,stopColor:"#FF876F",stopOpacity:.05}),g("stop",{offset:.81,stopColor:"#FF876F",stopOpacity:.01}),g("stop",{offset:1,stopColor:"#FF876F",stopOpacity:0})))),rg=()=>{var e,t,r,n;const{state:o,dispatch:i}=Zn(),{state:a,dispatch:s}=pp(),l=Td();de((()=>{var e,t,r,n,o,i,c;a.isDirty&&(null==(e=a.contactDetails)?void 0:e.isSubmitted)&&((null==(r=null==(t=a.results)?void 0:t.ice)?void 0:r.estimation)||(null==(o=null==(n=a.results)?void 0:n.ev)?void 0:o.estimation))&&(um(l.backend,hm(l.tracking,!!l.features.isGated,a.vehicleOptions,a.employmentDetails,a.contactDetails,null==(i=a.results.ev)?void 0:i.estimation,null==(c=a.results.ice)?void 0:c.estimation)),s({type:"EnquirySubmitted"}))}),[null==(t=null==(e=a.results)?void 0:e.ev)?void 0:t.estimation,null==(n=null==(r=a.results)?void 0:r.ice)?void 0:n.estimation,a.vehicleOptions,a.employmentDetails,a.contactDetails,a.isDirty,l.tracking,l.features.isGated,l.backend,s]);return zn("div",{css:{width:"100%",paddingBottom:"4rem",paddingTop:"1.5rem",textAlign:"center"},children:[zn("div",{children:[Wn(tg,{css:{margin:"auto",marginBottom:"1rem",height:"6rem",width:"6rem"}}),Wn(Yo,{css:{marginBottom:"2rem",textAlign:"center"},children:"Thanks, we’ve received your enquiry"})]}),Wn("div",{css:{marginLeft:"auto",marginRight:"auto",maxWidth:"35rem"},children:zn("p",{css:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},children:["A Flare Cars expert ",Wn("span",{css:{fontWeight:"600"},children:"will be in touch soon"})," to discuss your estimate and your novated leasing options."]})}),Wn("div",{css:{marginTop:"2rem",display:"flex",justifyContent:"center"},children:Wn((()=>Wn(Id,{variant:"lg",onClick:()=>i({type:"PageSelected",payload:o.pageOrder.filter((e=>"Summary"===e.id))[0]}),arrowDirection:"uTurn",children:"View your estimate"})),{})})]})},ng=$o("div",{target:"el2nhj02"})({display:"inline-flex","@media (min-width: 1024px)":{display:"block"}},";"),og=$o("div",{target:"el2nhj01"})([{marginRight:"1.5rem","@media (min-width: 1024px)":{marginBottom:"1rem"}}],""),ig=$o("div",{target:"el2nhj00"})([{backgroundColor:"transparent"}],""),ag=({icon:e,heading:t,paragraph:r,className:n})=>zn(ng,{className:n,children:[Wn(og,{children:Wn(e,{css:{height:"5rem",width:"5rem","@media (min-width: 768px)":{height:"6rem",width:"6rem"}}})}),zn(ig,{children:[Wn("h3",{children:t}),Wn("p",{css:{marginBottom:"0px",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},children:r})]})]}),sg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:71,height:20,viewBox:"0 0 71 20",fill:"none",...e},g("g",{clipPath:"url(#clip0_1904_6059)"},g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6639 3.87647C4.179 3.45703 6.45272 2.14501 8.05832 0.186652C8.12533 0.109862 8.21421 0.0548043 8.31335 0.0286585C8.4125 0.00251269 8.51732 0.00649186 8.61414 0.0400772C8.71096 0.0736625 8.7953 0.135295 8.85615 0.21694C8.917 0.298584 8.95155 0.396452 8.95528 0.497781V8.19023C8.95363 8.27717 8.92928 8.36222 8.88457 8.43711C8.83987 8.51201 8.77633 8.57422 8.70013 8.61771C8.62392 8.6612 8.53763 8.68449 8.44964 8.68532C8.36164 8.68615 8.27492 8.66449 8.19789 8.62245L1.4937 4.79809C1.40731 4.74443 1.33917 4.66643 1.29808 4.57415C1.25698 4.48187 1.2448 4.37954 1.26312 4.28036C1.28143 4.18117 1.3294 4.08969 1.40084 4.0177C1.47227 3.94571 1.5639 3.89652 1.6639 3.87647ZM1.6639 16.1467C4.179 16.5662 6.45272 17.8782 8.05832 19.8365C8.12533 19.9133 8.21421 19.9684 8.31335 19.9945C8.4125 20.0207 8.51732 20.0167 8.61414 19.9831C8.71096 19.9495 8.7953 19.8879 8.85615 19.8063C8.917 19.7246 8.95155 19.6267 8.95528 19.5254V11.8397C8.9548 11.7522 8.93129 11.6663 8.88706 11.5905C8.84283 11.5147 8.7794 11.4515 8.70301 11.4072C8.62661 11.363 8.53987 11.3391 8.45131 11.3379C8.36276 11.3368 8.27542 11.3584 8.19789 11.4007L1.4937 15.2251C1.40731 15.2788 1.33917 15.3568 1.29808 15.449C1.25698 15.5413 1.2448 15.6437 1.26312 15.7428C1.28143 15.842 1.3294 15.9335 1.40084 16.0055C1.47227 16.0775 1.5639 16.1267 1.6639 16.1467ZM0.0282893 6.34364C0.940505 8.69672 0.953213 11.2977 0.0640314 13.6594C0.0322604 13.7549 0.030097 13.8576 0.0578186 13.9544C0.0855401 14.0511 0.141882 14.1374 0.219616 14.2023C0.29735 14.2672 0.39293 14.3077 0.494093 14.3185C0.595256 14.3293 0.697387 14.3101 0.787383 14.2631L7.48817 10.4404C7.5632 10.3955 7.62524 10.3322 7.66829 10.2566C7.71134 10.181 7.73396 10.0958 7.73396 10.0091C7.73396 9.92236 7.71134 9.83711 7.66829 9.76155C7.62524 9.68599 7.5632 9.62267 7.48817 9.5777L0.748237 5.73147C0.657578 5.68437 0.554677 5.6653 0.452904 5.67673C0.351132 5.68817 0.255193 5.72959 0.177554 5.7956C0.0999138 5.86162 0.0441625 5.94918 0.0175436 6.04692C-0.00907535 6.14465 -0.00533122 6.24804 0.0282893 6.34364ZM17.4381 16.1467C14.923 16.5662 12.6492 17.8782 11.0436 19.8365C10.9766 19.9133 10.8878 19.9684 10.7886 19.9945C10.6895 20.0207 10.5847 20.0167 10.4878 19.9831C10.391 19.9495 10.3067 19.8879 10.2458 19.8063C10.185 19.7246 10.1504 19.6267 10.1467 19.5254V11.8397C10.1473 11.7524 10.1709 11.6668 10.215 11.5912C10.2592 11.5156 10.3224 11.4526 10.3985 11.4084C10.4747 11.3642 10.5611 11.3402 10.6494 11.3389C10.7377 11.3375 10.8249 11.3589 10.9024 11.4007L17.6083 15.2251C17.6947 15.2788 17.7628 15.3568 17.8039 15.449C17.845 15.5413 17.8572 15.6437 17.8389 15.7428C17.8205 15.842 17.7726 15.9335 17.7011 16.0055C17.6297 16.0775 17.5381 16.1267 17.4381 16.1467ZM11.0436 0.186652C12.6492 2.14501 14.923 3.45703 17.4381 3.87647C17.5381 3.89652 17.6297 3.94571 17.7011 4.0177C17.7726 4.08969 17.8205 4.18117 17.8389 4.28036C17.8572 4.37954 17.845 4.48187 17.8039 4.57415C17.7628 4.66643 17.6947 4.74443 17.6083 4.79809L10.9024 8.62245C10.8254 8.66409 10.7389 8.68542 10.6511 8.68439C10.5634 8.68336 10.4773 8.65999 10.4014 8.61655C10.3254 8.57311 10.2621 8.51106 10.2175 8.43638C10.1729 8.36171 10.1485 8.27693 10.1467 8.19023V0.497781C10.1504 0.396452 10.185 0.298584 10.2458 0.21694C10.3067 0.135295 10.391 0.0736625 10.4878 0.0400772C10.5847 0.00649186 10.6895 0.00251269 10.7886 0.0286585C10.8878 0.0548043 10.9766 0.109862 11.0436 0.186652ZM19.0363 6.36382C18.1468 8.72556 18.1602 11.3268 19.0737 13.6796C19.1076 13.7754 19.1116 13.8791 19.0849 13.9771C19.0583 14.0751 19.0023 14.1629 18.9244 14.2291C18.8464 14.2952 18.7501 14.3365 18.648 14.3477C18.5459 14.3589 18.4428 14.3394 18.3521 14.2917L11.6104 10.4455C11.5354 10.4005 11.4734 10.3372 11.4303 10.2616C11.3872 10.1861 11.3646 10.1008 11.3646 10.0141C11.3646 9.9274 11.3872 9.84216 11.4303 9.76659C11.4734 9.69103 11.5354 9.62771 11.6104 9.58274L18.3129 5.76006C18.4029 5.71314 18.505 5.69386 18.6062 5.70469C18.7074 5.71553 18.8029 5.75598 18.8807 5.82086C18.9584 5.88574 19.0148 5.9721 19.0425 6.06884C19.0702 6.16558 19.068 6.2683 19.0363 6.36382Z",fill:"#2696EC"}),g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.9848 7.84645V17.0334H26.4547V7.84645H24.7129V5.66268H26.4547V4.65478C26.4547 3.51026 26.7254 2.68995 27.2668 2.19384C27.8083 1.69773 28.7061 1.44912 29.9604 1.448H31.377V3.44867H30.5172C29.9599 3.44867 29.5654 3.56066 29.3338 3.78464C29.1006 4.01477 28.9848 4.40281 28.9848 4.96051V5.6694H31.3362V7.85317L28.9848 7.84645ZM36.1751 1.45472H33.6211V17.0301H36.1751V1.45472ZM50.0447 17.0334V5.6694H47.5793V7.22828C47.1205 6.66484 46.5384 6.21115 45.8767 5.90121C45.2125 5.59401 44.487 5.43732 43.7535 5.44262C42.9931 5.42656 42.2378 5.56772 41.536 5.85703C40.8343 6.14635 40.2018 6.5774 39.6791 7.12245C38.5724 8.25689 38.019 9.65674 38.019 11.322C38.0201 13.0231 38.5582 14.4308 39.6331 15.5451C40.708 16.6594 42.0582 17.2165 43.6837 17.2165C44.4336 17.2215 45.1752 17.0614 45.8545 16.7478C46.5269 16.435 47.1185 15.9755 47.5844 15.404V17.0334H50.0447ZM40.7979 12.7007C40.6224 12.2622 40.5378 11.7934 40.5491 11.322C40.5378 10.8507 40.6224 10.3818 40.7979 9.94328C40.9733 9.50473 41.2361 9.10532 41.5707 8.76868C41.8924 8.43965 42.2779 8.17774 42.7042 7.99849C43.1305 7.81925 43.5889 7.72632 44.0523 7.72522C44.5157 7.72413 44.9746 7.81488 45.4018 7.99211C45.8289 8.16933 46.2157 8.42942 46.539 8.75692C46.8689 9.09815 47.127 9.50056 47.2983 9.94086C47.4696 10.3812 47.5506 10.8506 47.5367 11.322C47.5506 11.7934 47.4696 12.2629 47.2983 12.7032C47.127 13.1435 46.8689 13.5459 46.539 13.8871C46.2157 14.2146 45.8289 14.4747 45.4018 14.6519C44.9746 14.8291 44.5157 14.9199 44.0523 14.9188C43.5889 14.9177 43.1305 14.8248 42.7042 14.6455C42.2779 14.4663 41.8924 14.2044 41.5707 13.8753C41.2361 13.5387 40.9733 13.1393 40.7979 12.7007ZM55.0318 10.1814V17.0334H52.5016V5.6694H54.962V6.81504C55.2358 6.39225 55.6105 6.04214 56.0533 5.79539C56.5024 5.55656 57.0059 5.43512 57.5159 5.44262C57.8502 5.43935 58.1831 5.48578 58.5034 5.58037C58.7734 5.65471 59.023 5.78789 59.2339 5.97009L57.9569 8.16898C57.7966 8.06558 57.6208 7.98791 57.4359 7.93884C57.2653 7.89425 57.0897 7.87111 56.9132 7.86997C56.6485 7.85837 56.3848 7.90951 56.1443 8.01911C55.9037 8.12871 55.6933 8.29358 55.5306 8.49991C55.1981 8.91874 55.0318 9.47924 55.0318 10.1814ZM70.9957 11.7621C71.0076 11.6714 71.0076 11.5337 71.0076 11.3506C71.0019 9.64051 70.4423 8.22833 69.3288 7.11405C68.2153 5.99977 66.8072 5.44262 65.1046 5.44262C63.3815 5.43702 61.9524 5.99193 60.8173 7.10733C59.6822 8.22273 59.1147 9.63547 59.1147 11.3455C59.1147 13.0702 59.6641 14.4784 60.7628 15.5703C61.8616 16.6622 63.2856 17.2081 65.0348 17.2081C66.3257 17.2381 67.5945 16.8744 68.6682 16.1666C69.6826 15.4906 70.4318 14.4923 70.7914 13.3378H68.1216C67.8295 13.8597 67.3955 14.2908 66.8685 14.5826C66.3209 14.8782 65.7048 15.0281 65.0807 15.0176C64.2438 15.0437 63.4289 14.75 62.806 14.1979C62.201 13.6592 61.8451 12.9313 61.7384 12.0141H70.9616C70.9783 11.9309 70.9896 11.8467 70.9957 11.7621ZM65.0623 7.63976C65.0633 7.63979 65.0644 7.63981 65.0654 7.63984H65.0586C65.0598 7.63981 65.0611 7.63979 65.0623 7.63976ZM62.9167 8.37224C63.5195 7.88166 64.2812 7.62167 65.0623 7.63976C65.8474 7.6249 66.6117 7.88902 67.2158 8.384C67.8158 8.8755 68.1986 9.57785 68.2834 10.3427H61.7674C61.905 9.57342 62.3117 8.87614 62.9167 8.37224Z",fill:"#143057"})),g("defs",null,g("clipPath",{id:"clip0_1904_6059"},g("rect",{width:71,height:20,fill:"white"})))),lg=()=>Wn("div",{css:{marginTop:"2.75rem","@media (min-width: 768px)":{marginTop:"auto"}},children:zn("div",{css:{display:"grid",width:"100%",gridAutoColumns:"auto",gridAutoFlow:"column",placeContent:"end"},children:[Wn("p",{css:{marginRight:"0.5rem",placeSelf:"center",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Powered by"}),Wn(sg,{})]})}),cg=({backendUrl:e,subRoute:t,content:r,initialState:n,features:o})=>{const{state:i}=Zn(),a=co(so()),s=fe(null);var l;l={backend:{url:e,subRoute:t},tracking:a,content:r,features:o},Fd=U({...l,backend:{url:l.backend.url.replace(/\/?$/,""),subRoute:l.backend.subRoute},features:{...l.features}});const c=Td(),{pages:u}=r;de((()=>{(async()=>{c.backend.url&&await um(c.backend,((e,t)=>({eventName:"appLoaded",session:pm(e,t)}))(co(so()),!!o.isGated))})()}),[c.backend,o.isGated,t]),de((()=>{var e;i.hasNavigated&&s&&s.current&&(e=s.current).scrollIntoView&&(e.getBoundingClientRect().bottom>window.innerHeight||e.getBoundingClientRect().top<0)&&e.scrollIntoView({behavior:"smooth"})}),[i.currentPage,i.pageOrder,i.hasNavigated]);const{Main:d,Information:p}=(()=>{switch(i.currentPage.id){case"Vehicle":return{Main:Wn(vm,{}),Information:Wn(ag,{...u.vehicleOptions.infoPanel})};case"Employment":return{Main:Wn(Wh,{}),Information:Wn(ag,{...u.employmentDetails.infoPanel})};case"Contact":return{Main:Wn(wm,{}),Information:Wn(ag,{...u.contactDetails.infoPanel})};case"Summary":return{Main:Wn(Qm,{}),Information:Wn(eg,{})};case"ThankYou":return{Main:Wn(rg,{})};default:return{Main:Wn(b,{})}}})(),f=!o.hideInfoPanel||"Summary"===i.currentPage.id;return zn(dp,{initialState:n,children:[Wn("div",{ref:s}),zn(qo,{children:[zn(Go,{fullWidth:!p||!f,children:["Information"!==i.currentPage.type&&zn(Ko,{children:[Wn(th,{css:{justifySelf:"start","@media (min-width: 768px)":{order:"2",gridColumn:"span 1 / span 1",justifySelf:"auto"}}}),Wn(Yo,{css:{justifySelf:"start","@media (min-width: 768px)":{order:"1",gridColumn:"span 3 / span 3",justifySelf:"auto"}},children:i.currentPage.title})]}),d]}),p&&f?zn(Zo,{children:[p,o.isPartnerDistribution&&Wn(lg,{})]}):Wn(b,{})]})]})},ug=Kn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),dg=Kn`
10
+ */var Ns=Is;var Hs="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bs=Ns.useSyncExternalStore,js=Ns.useRef,Us=Ns.useEffect,Ws=Ns.useMemo,zs=Ns.useDebugValue;Ds.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=js(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Ws((function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,Hs(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?(i=e,t):(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,n,o]);var s=Bs(e,i[0],i[1]);return Us((function(){a.hasValue=!0,a.value=s}),[s]),zs(s),s},Vs.exports=Ds;var $s=Vs.exports;function qs(e,t,r=Ss){return $s.useSyncExternalStoreWithSelector(zi((t=>e.subscribe(Zs,t))),zi((()=>e.state)),zi((()=>e.state)),zi(t),r)}function Zs(e){return e}function Gs(e,t){let r=be(),n=Rs.get(t),[o,i]=qs(n,ge((e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)]),[n,r]));return Ui((()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)}),[n,e,r]),!!e&&(!i||o)}let Ys=new Map,Ks=new Map;function Xs(e){var t;let r=null!=(t=Ks.get(e))?t:0;return Ks.set(e,r+1),0!==r||(Ys.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Js(e)}function Js(e){var t;let r=null!=(t=Ks.get(e))?t:1;if(1===r?Ks.delete(e):Ks.set(e,r-1),1!==r)return;let n=Ys.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Ys.delete(e))}let Qs=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),el=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var tl,rl,nl=((rl=nl||{})[rl.First=1]="First",rl[rl.Previous=2]="Previous",rl[rl.Next=4]="Next",rl[rl.Last=8]="Last",rl[rl.WrapAround=16]="WrapAround",rl[rl.NoScroll=32]="NoScroll",rl[rl.AutoFocus=64]="AutoFocus",rl),ol=((tl=ol||{})[tl.Error=0]="Error",tl[tl.Overflow=1]="Overflow",tl[tl.Success=2]="Success",tl[tl.Underflow=3]="Underflow",tl),il=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(il||{});var al=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(al||{});var sl=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(sl||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let ll=["textarea","input"].join(",");function cl(e,t=e=>e){return e.slice().sort(((e,r)=>{let n=t(e),o=t(r);if(null===n||null===o)return 0;let i=n.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ul(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?cl(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(el)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Qs)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),n=null!=n?n:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ll))&&r}(s)&&s.select(),2}function dl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function pl(){return dl()||/Android/gi.test(window.navigator.userAgent)}function fl(e,t,r,n){let o=Wi(r);de((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){o.current(e)}}),[e,t,n])}function ml(e,t,r){let n=Wi(r),o=ge((function(e,r){if(e.defaultPrevented)return;let o=r(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var r;return e!==(null==(r=Ni(e))?void 0:r.body)&&Yi(t,{0:()=>e.matches(Qs),1(){let t=e;for(;null!==t;){if(t.matches(Qs))return!0;t=t.parentElement}return!1}})}(o,al.Loose)&&-1!==o.tabIndex&&e.preventDefault(),n.current(e,o)}),[n,t]),i=fe(null);fl(e,"pointerdown",(e=>{var t,r;pl()||(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),fl(e,"pointerup",(e=>{if(pl()||!i.current)return;let t=i.current;return i.current=null,o(e,(()=>t))}),!0);let a=fe({x:0,y:0});fl(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),fl(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(r-a.current.y)>=30))return o(e,(()=>Fa(e.target)?e.target:null))}),!0),function(e,t,r,n){let o=Wi(r);de((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){o.current(e)}}),[e,t,n])}(e,"blur",(e=>o(e,(()=>function(e){return Ea(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))),!0)}function hl(...e){return he((()=>Ni(...e)),[...e])}var gl=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(gl||{});const vl={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function yl(e){let t=fe({value:"",selectionStart:null,selectionEnd:null});return function(e,t,r,n){let o=Wi(r);de((()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}(e,"blur",(e=>{let r=e.target;Ta(r)&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})})),zi((()=>{if(document.activeElement!==e&&Ta(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:r,selectionEnd:n}=t.current;null!==r&&null!==n&&e.setSelectionRange(r,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}}))}function bl(e,t){return he((()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function wl(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=null!=(r=t.defaultView)?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-o);r.style(n,"paddingRight",`${i}px`)}}}function Cl(){return dl()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Bi();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let o=null!=(r=window.scrollY)?r:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(Fa(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:o}=new URL(r.href),a=e.querySelector(o);Fa(a)&&!n(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(Fa(e.target)&&function(e){return Sa(e)&&"style"in e}(e.target))if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(Fa(e.target)){if(Ta(e.target))return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function _l(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let xl=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...o){let i=t[e].call(r,...o);i&&(r=i,n.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Bi(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:_l(r)},o=[Cl(),wl(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(n))),o.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function kl(e,t,r=()=>({containers:[]})){let n=function(e){return Vt(e.subscribe,e.getSnapshot,e.getSnapshot)}(xl),o=t?n.get(t):void 0,i=!!o&&o.count>0;return Ui((()=>{if(t&&e)return xl.dispatch("PUSH",t,r),()=>xl.dispatch("POP",t,r)}),[e,t]),i}function Sl(e){return[e.screenX,e.screenY]}var El,Fl;xl.subscribe((()=>{let e=xl.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&xl.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&xl.dispatch("TEARDOWN",r)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(El=null==process?void 0:process.env)?void 0:El.NODE_ENV)&&void 0===(null==(Fl=null==Element?void 0:Element.prototype)?void 0:Fl.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Tl=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Tl||{});function Ol(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Ml(e,t,r,n){let[o,i]=ce(r),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,r]=ce(e),n=ge((e=>r(e)),[t]),o=ge((e=>r((t=>t|e))),[t]),i=ge((e=>(t&e)===e),[t]),a=ge((e=>r((t=>t&~e))),[r]),s=ge((e=>r((t=>t^e))),[r]);return{flags:t,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),c=fe(!1),u=fe(!1),d=ji();return Ui((()=>{var o;if(e)return r&&i(!0),t?(null==(o=null==n?void 0:n.start)||o.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:o}){let i=Bi();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{r(),i.requestAnimationFrame((()=>{i.add(function(e,t){var r,n;let o=Bi();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter((e=>e instanceof CSSTransition)))?n:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,n))}))})),i.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),r||i(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})):void(r&&s(3))}),[e,r,t,d]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Ll(e,t){let r=fe([]),n=zi(e);de((()=>{let e=[...r.current];for(let[o,i]of t.entries())if(r.current[o]!==i){let o=n(t,e);return r.current=t,o}}),[n,...t])}function Al(e){return Vl(e)?(e.nodeName||"").toLowerCase():"#document"}function Pl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rl(e){var t;return null==(t=(Vl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vl(e){return e instanceof Node||e instanceof Pl(e).Node}function Dl(e){return e instanceof Element||e instanceof Pl(e).Element}function Il(e){return e instanceof HTMLElement||e instanceof Pl(e).HTMLElement}function Nl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Pl(e).ShadowRoot)}function Hl(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$l(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Bl(e){return["table","td","th"].includes(Al(e))}function jl(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ki){return!1}}))}function Ul(e){const t=Wl(),r=Dl(e)?$l(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Wl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zl(e){return["html","body","#document"].includes(Al(e))}function $l(e){return Pl(e).getComputedStyle(e)}function ql(e){return Dl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zl(e){if("html"===Al(e))return e;const t=e.assignedSlot||e.parentNode||Nl(e)&&e.host||Rl(e);return Nl(t)?t.host:t}function Gl(e){const t=Zl(e);return zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Il(t)&&Hl(t)?t:Gl(t)}function Yl(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Gl(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Pl(o);return i?t.concat(a,a.visualViewport||[],Hl(o)?o:[],a.frameElement&&r?Yl(a.frameElement):[]):t.concat(o,Yl(o,[],r))}const Kl=Math.min,Xl=Math.max,Jl=Math.round,Ql=Math.floor,ec=e=>({x:e,y:e}),tc={left:"right",right:"left",bottom:"top",top:"bottom"},rc={start:"end",end:"start"};function nc(e,t,r){return Xl(e,Kl(t,r))}function oc(e,t){return"function"==typeof e?e(t):e}function ic(e){return e.split("-")[0]}function ac(e){return e.split("-")[1]}function sc(e){return"x"===e?"y":"x"}function lc(e){return"y"===e?"height":"width"}function cc(e){return["top","bottom"].includes(ic(e))?"y":"x"}function uc(e){return sc(cc(e))}function dc(e){return e.replace(/start|end/g,(e=>rc[e]))}function pc(e){return e.replace(/left|right|bottom|top/g,(e=>tc[e]))}function fc(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function mc(e,t,r){let{reference:n,floating:o}=e;const i=cc(t),a=uc(t),s=lc(a),l=ic(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-o.width,y:d};break;default:f={x:n.x,y:n.y}}switch(ac(t)){case"start":f[a]-=p*(r&&c?-1:1);break;case"end":f[a]+=p*(r&&c?-1:1)}return f}async function hc(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=oc(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),h=s[p?"floating"===d?"reference":"floating":d],g=fc(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=fc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}function gc(e){const t=$l(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Il(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Jl(r)!==i||Jl(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function vc(e){return Dl(e)?e:e.contextElement}function yc(e){const t=vc(e);if(!Il(t))return ec(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=gc(t);let a=(i?Jl(r.width):r.width)/n,s=(i?Jl(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const bc=ec(0);function wc(e){const t=Pl(e);return Wl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bc}function Cc(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=vc(e);let a=ec(1);t&&(n?Dl(n)&&(a=yc(n)):a=yc(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Pl(e))&&t}(i,r,n)?wc(i):ec(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Pl(i),t=n&&Dl(n)?Pl(n):n;let r=e,o=r.frameElement;for(;o&&n&&t!==r;){const e=yc(o),t=o.getBoundingClientRect(),n=$l(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Pl(o),o=r.frameElement}}return fc({width:u,height:d,x:l,y:c})}function _c(e){return Cc(Rl(e)).left+ql(e).scrollLeft}function xc(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Pl(e),n=Rl(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Wl();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Rl(e),r=ql(e),n=e.ownerDocument.body,o=Xl(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Xl(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+_c(e);const s=-r.scrollTop;return"rtl"===$l(n).direction&&(a+=Xl(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Rl(e));else if(Dl(t))n=function(e,t){const r=Cc(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Il(e)?yc(e):ec(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=wc(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return fc(n)}function kc(e,t){const r=Zl(e);return!(r===t||!Dl(r)||zl(r))&&("fixed"===$l(r).position||kc(r,t))}function Sc(e,t,r){const n=Il(t),o=Rl(t),i="fixed"===r,a=Cc(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ec(0);if(n||!n&&!i)if(("body"!==Al(t)||Hl(o))&&(s=ql(t)),n){const e=Cc(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=_c(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ec(e){return"static"===$l(e).position}function Fc(e,t){return Il(e)&&"fixed"!==$l(e).position?t?t(e):e.offsetParent:null}function Tc(e,t){const r=Pl(e);if(jl(e))return r;if(!Il(e)){let t=Zl(e);for(;t&&!zl(t);){if(Dl(t)&&!Ec(t))return t;t=Zl(t)}return r}let n=Fc(e,t);for(;n&&Bl(n)&&Ec(n);)n=Fc(n,t);return n&&zl(n)&&Ec(n)&&!Ul(n)?r:n||function(e){let t=Zl(e);for(;Il(t)&&!zl(t);){if(Ul(t))return t;if(jl(t))return null;t=Zl(t)}return null}(e)||r}const Oc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Rl(n),s=!!t&&jl(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ec(1);const u=ec(0),d=Il(n);if((d||!d&&!i)&&(("body"!==Al(n)||Hl(a))&&(l=ql(n)),Il(n))){const e=Cc(n);c=yc(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Rl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?jl(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Yl(e,[],!1).filter((e=>Dl(e)&&"body"!==Al(e))),o=null;const i="fixed"===$l(e).position;let a=i?Zl(e):e;for(;Dl(a)&&!zl(a);){const t=$l(a),r=Ul(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Hl(a)&&!r&&kc(e,a))?n=n.filter((e=>e!==a)):o=t,a=Zl(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=xc(t,r,o);return e.top=Xl(n.top,e.top),e.right=Kl(n.right,e.right),e.bottom=Kl(n.bottom,e.bottom),e.left=Xl(n.left,e.left),e}),xc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Tc,getElementRects:async function(e){const t=this.getOffsetParent||Tc,r=this.getDimensions,n=await r(e.floating);return{reference:Sc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=gc(e);return{width:t,height:r}},getScale:yc,isElement:Dl,isRTL:function(e){return"rtl"===$l(e).direction}};function Mc(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=vc(e),u=o||i?[...c?Yl(c):[],...Yl(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const o=Rl(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Ql(u)+"px "+-Ql(o.clientWidth-(c+d))+"px "+-Ql(o.clientHeight-(u+p))+"px "+-Ql(c)+"px",threshold:Xl(0,Kl(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{n=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(Ki){n=new IntersectionObserver(h,f)}n.observe(e)}(!0),i}(c,r):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),r()})),c&&!l&&m.observe(c),m.observe(t));let h=l?Cc(e):null;return l&&function t(){const n=Cc(e);!h||n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height||r();h=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const Lc=hc,Ac=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=ic(r),s=ac(r),l="y"===cc(r),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=oc(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pc=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=oc(e,t),c={x:r,y:n},u=await hc(t,l),d=cc(ic(o)),p=sc(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=nc(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=nc(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-r,y:h.y-n}}}}},Rc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=oc(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const v=ic(o),y=cc(s),b=ic(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),C=p||(b||!h?[pc(s)]:function(e){const t=pc(e);return[dc(e),t,dc(t)]}(s)),_="none"!==m;!p&&_&&C.push(...function(e,t,r,n){const o=ac(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(ic(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(dc)))),i}(s,h,m,w));const x=[s,...C],k=await hc(t,g),S=[];let E=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=ac(e),o=uc(e),i=lc(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=pc(a)),[a,pc(a)]}(o,a,w);S.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:S}],!S.every((e=>e<=0))){var F,T;const e=((null==(F=i.flip)?void 0:F.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let r=null==(T=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!r)switch(f){case"bestFit":{var O;const e=null==(O=E.filter((e=>{if(_){const t=cc(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Vc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=oc(e,t),l=await hc(t,s),c=ic(r),u=ac(r),d="y"===cc(r),{width:p,height:f}=n.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=f-l.top-l.bottom,v=p-l.left-l.right,y=Kl(f-l[m],g),b=Kl(p-l[h],v),w=!t.middlewareData.shift;let C=y,_=b;if(d?_=u||w?Kl(b,v):v:C=u||w?Kl(y,g):g,w&&!u){const e=Xl(l.left,0),t=Xl(l.right,0),r=Xl(l.top,0),n=Xl(l.bottom,0);d?_=p-2*(0!==e||0!==t?e+t:Xl(l.left,l.right)):C=f-2*(0!==r||0!==n?r+n:Xl(l.top,l.bottom))}await a({...t,availableWidth:_,availableHeight:C});const x=await o.getDimensions(i.floating);return p!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}},Dc=(e,t,r)=>{const n=new Map,o={platform:Oc,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=mc(c,n,l),p=n,f={},m=0;for(let h=0;h<s.length;h++){const{name:r,fn:i}=s[h],{x:g,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[r]:{...f[r],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=mc(c,p,l))),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Ic="undefined"!=typeof document?pe:de;function Nc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!Nc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Nc(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Hc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bc(e,t){const r=Hc(e);return Math.round(t*r)/r}function jc(e){const t=fe(e);return Ic((()=>{t.current=e})),t}const Uc=(e,t)=>({...Ac(e),options:[e,t]}),Wc=(e,t)=>({...Rc(e),options:[e,t]}),zc=(e,t)=>({...Vc(e),options:[e,t]}),$c={...It},qc=$c.useInsertionEffect||(e=>e());function Zc(e){const t=fe((()=>{}));return qc((()=>{t.current=e})),ge((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}var Gc="undefined"!=typeof document?pe:de;let Yc=!1,Kc=0;const Xc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Kc++;const Jc=$c.useId||function(){const[e,t]=ce((()=>Yc?Xc():void 0));return Gc((()=>{null==e&&t(Xc())}),[]),de((()=>{Yc=!0}),[]),e};const Qc=U(null),eu=U(null);function tu(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Jc(),i=fe({}),[a]=ce((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),s=null!=((null==(l=ve(Qc))?void 0:l.id)||null);var l;const[c,u]=ce(n.reference),d=Zc(((e,t,n)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)})),p=he((()=>({setPositionReference:u})),[]),f=he((()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference})),[c,n.reference,n.floating]);return he((()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:a,floatingId:o,refs:p})),[t,d,f,a,o,p])}function ru(e){void 0===e&&(e={});const{nodeId:t}=e,r=tu({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[i,a]=ce(null),[s,l]=ce(null),c=(null==o?void 0:o.reference)||i,u=fe(null),d=ve(eu);Gc((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=ce({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=ce(n);Nc(p,n)||f(n);const[m,h]=ce(null),[g,v]=ce(null),y=ge((e=>{e!==_.current&&(_.current=e,h(e))}),[]),b=ge((e=>{e!==x.current&&(x.current=e,v(e))}),[]),w=i||m,C=a||g,_=fe(null),x=fe(null),k=fe(u),S=null!=l,E=jc(l),F=jc(o),T=ge((()=>{if(!_.current||!x.current)return;const e={placement:t,strategy:r,middleware:p};F.current&&(e.platform=F.current),Dc(_.current,x.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Nc(k.current,t)&&(k.current=t,Ot((()=>{d(t)})))}))}),[p,t,r,F]);Ic((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=fe(!1);Ic((()=>(O.current=!0,()=>{O.current=!1})),[]),Ic((()=>{if(w&&(_.current=w),C&&(x.current=C),w&&C){if(E.current)return E.current(w,C,T);T()}}),[w,C,T,E,S]);const M=he((()=>({reference:_,floating:x,setReference:y,setFloating:b})),[y,b]),L=he((()=>({reference:w,floating:C})),[w,C]),A=he((()=>{const e={position:r,left:0,top:0};if(!L.floating)return e;const t=Bc(L.floating,u.x),n=Bc(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Hc(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,L.floating,u.x,u.y]);return he((()=>({...u,update:T,refs:M,elements:L,floatingStyles:A})),[u,T,M,L,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=ge((e=>{const t=Dl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=ge((e=>{(Dl(e)||null===e)&&(u.current=e,a(e)),(Dl(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Dl(e))&&p.refs.setReference(e)}),[p.refs]),h=he((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=he((()=>({...p.elements,domReference:c})),[p.elements,c]),v=he((()=>({...p,...n,refs:h,elements:g,nodeId:t})),[p,h,g,t,n]);return Gc((()=>{n.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),he((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}const nu="active",ou="selected";function iu(e,t,r){const n=new Map,o="item"===r;let i=e;if(o&&e){const{[nu]:t,[ou]:r,...n}=e;i=n}return{..."floating"===r&&{tabIndex:-1},...i,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,i]=t;var a;o&&[nu,ou].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof i&&(null==(a=n.get(r))||a.push(i),e[r]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=n.get(r))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[r]=i)})),e):e),{})}}function au(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function su(e,t){const{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:s}=t,l=Zc(s),c=fe(!1),u=fe(null),d=fe(null);de((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const r=e.deltaY,n=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=r<0?-1:1,c=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!o&&r<0?(e.preventDefault(),Ot((()=>{l((e=>e+Math[c](r,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==a?void 0:a.current)||n.floating;return r&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=i.current&&(d.current={...i.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,r,n.floating,i,a,l]);const p=he((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||n.floating;if(i.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&Ot((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[n.floating,l,i,a]);return he((()=>o?{floating:p}:{}),[o,p])}let lu=U({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});lu.displayName="FloatingContext";let cu=U(null);cu.displayName="PlacementContext";function uu({children:e,enabled:t=!0}){let[r,n]=ce(null),[o,i]=ce(0),a=fe(null),[s,l]=ce(null);!function(e){Ui((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==r&&null!==s,{to:u="bottom",gap:d=0,offset:p=0,padding:f=0,inner:m}=function(e,t){var r,n,o;let i=du(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),a=du(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),s=du(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(r,s),[h,v="center"]=u.split(" ");Ui((()=>{c&&i(0)}),[c]);let{refs:y,floatingStyles:b,context:w}=ru({open:c,placement:"selection"===h?"center"===v?"bottom":`bottom-${v}`:"center"===v?`${h}`:`${h}-${v}`,strategy:"absolute",transform:!1,middleware:[Uc({mainAxis:"selection"===h?0:d,crossAxis:p}),(k={padding:f},{...Pc(k),options:[k,S]}),"selection"!==h&&Wc({padding:f}),"selection"===h&&m?(x={...m,padding:f,overflowRef:a,offset:o,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,r;if(!e)return;let n=w.elements.floating;if(!n)return;let o=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,a=Math.min(4,n.childElementCount),s=0,l=0;for(let i of null!=(r=null==(t=w.elements.floating)?void 0:t.childNodes)?r:[])if(Ea(i)){let e=i.offsetTop,t=e+i.clientHeight+o,r=n.scrollTop,c=r+n.clientHeight;if(!(e>=r&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,r)),s=i.clientHeight;break}a--}a>=1&&i((e=>{let t=s*a-l+o;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:r,onFallbackChange:n,offset:o=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=oc(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[i];if(!p)return{};const f={...e,...await Uc(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-o).fn(e)},m=(null==l?void 0:l.current)||d,h=await Lc(au(f,m.scrollHeight),c),g=await Lc(f,{...c,elementContext:"reference"}),v=Math.max(0,h.top),y=f.y+v,b=Math.max(0,m.scrollHeight-v-Math.max(0,h.bottom));return m.style.maxHeight=b+"px",m.scrollTop=v,n&&(m.offsetHeight<p.offsetHeight*Math.min(a,t.current.length-1)-1||g.top>=-s||g.bottom>=-s?Ot((()=>n(!0))):Ot((()=>n(!1)))),r&&(r.current=await Lc(au({...f,y:y},m.offsetHeight),c)),{y:y}}}):null,zc({padding:f,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Mc}),[C=h,_=v]=w.placement.split("-");var x,k,S;"selection"===h&&(C="selection");let E=he((()=>({anchor:[C,_].filter(Boolean).join(" ")})),[C,_]),F=su(w,{overflowRef:a,onChange:i}),{getReferenceProps:T,getFloatingProps:O}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),n=e.map((e=>null==e?void 0:e.item)),o=ge((t=>iu(t,e,"reference")),t),i=ge((t=>iu(t,e,"floating")),r),a=ge((t=>iu(t,e,"item")),n);return he((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([F]),M=zi((e=>{l(e),y.setFloating(e)}));return g(cu.Provider,{value:n},g(lu.Provider,{value:{setFloating:M,setReference:y.setReference,styles:b,getReferenceProps:T,getFloatingProps:O,slot:E}},e))}function du(e,t,r=void 0){let n=ji(),o=zi(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let o=fu(e,t);return[o,r=>{let i=pu(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));n.requestAnimationFrame((function s(){n.nextFrame(s);let l=!1;for(let[e,r]of i.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(a[e]!==n){a[e]=n,l=!0;break}}if(!l)return;let c=fu(e,t);o!==c&&(r(c),o=c)}))}return n.dispose}]}return[r,null]})),i=he((()=>o(e,t)[0]),[e,t]),[a=i,s]=ce();return Ui((()=>{let[r,n]=o(e,t);if(s(r),n)return n(s)}),[e,t]),a}function pu(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...pu(n)]:[r]}return[]}function fu(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function mu({children:e,freeze:t}){let r=hu(t,e);return Dt.createElement(Dt.Fragment,null,r)}function hu(e,t){let[r,n]=ce(t);return!e&&r!==t&&n(t),e?r:t}let gu=U(null);gu.displayName="OpenClosedContext";var vu=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vu||{});function yu({value:e,children:t}){return Dt.createElement(gu.Provider,{value:e},t)}let bu=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!Fa(e.target)||e.target===document.body||bu[0]===e.target)return;let t=e.target;t=t.closest(Qs),bu.unshift(null!=t?t:e.target),bu=bu.filter((e=>null!=e&&e.isConnected)),bu.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var wu,Cu=((wu=Cu||{})[wu.First=0]="First",wu[wu.Previous=1]="Previous",wu[wu.Next=2]="Next",wu[wu.Last=3]="Last",wu[wu.Specific=4]="Specific",wu[wu.Nothing=5]="Nothing",wu);function _u(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===o&&(o=r.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=o+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}var xu,ku=((xu=ku||{})[xu.Left=0]="Left",xu[xu.Right=2]="Right",xu);function Su(e){let t=zi(e),r=fe(!1);de((()=>(r.current=!1,()=>{r.current=!0,Hi((()=>{r.current&&t()}))})),[t])}function Eu(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in It&&It.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=ce(Ii.isHandoffComplete);return t&&!1===Ii.isHandoffComplete&&r(!1),de((()=>{!0!==t&&r(!0)}),[t]),de((()=>Ii.handoff()),[]),!e&&t}let Fu=U(!1);function Tu(e){let t=ve(Fu),r=ve(Au),[n,o]=ce((()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(Ii.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return de((()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))}),[n,e]),de((()=>{t||null!==r&&o(r.current)}),[r,o,t]),n}let Ou=b,Mu=ia((function(e,t){let{ownerDocument:r=null,...n}=e,o=fe(null),i=Ra(function(e,t=!0){return Object.assign(e,{[Pa]:t})}((e=>{o.current=e})),t),a=hl(o),s=null!=r?r:a,l=Tu(s),[c]=ce((()=>{var e;return Ii.isServer?null:null!=(e=null==s?void 0:s.createElement("div"))?e:null})),u=ve(Pu),d=Eu();Ui((()=>{!l||!c||l.contains(c)||(c.setAttribute("data-headlessui-portal",""),l.appendChild(c))}),[l,c]),Ui((()=>{if(c&&u)return u.register(c)}),[u,c]),Su((()=>{var e;!l||!c||(ka(c)&&l.contains(c)&&l.removeChild(c),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))}));let p=ea();return d&&l&&c?ot(p({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Ou,name:"Portal"}),c):null}));let Lu=b,Au=U(null);let Pu=U(null),Ru=ia((function(e,t){let r=Ra(t),{enabled:n=!0,ownerDocument:o,...i}=e,a=ea();return n?Dt.createElement(Mu,{...i,ownerDocument:o,ref:r}):a({ourProps:{ref:r},theirProps:i,slot:{},defaultTag:Ou,name:"Portal"})})),Vu=ia((function(e,t){let{target:r,...n}=e,o={ref:Ra(t)},i=ea();return Dt.createElement(Au.Provider,{value:r},i({ourProps:o,theirProps:n,defaultTag:Lu,name:"Popover.Group"}))})),Du=Object.assign(Ru,{Group:Vu});var Iu,Nu=Object.defineProperty,Hu=(e,t,r)=>(((e,t,r)=>{t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Bu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bu||{}),ju=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ju||{}),Uu=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Uu||{}),Wu=((Iu=Wu||{})[Iu.OpenCombobox=0]="OpenCombobox",Iu[Iu.CloseCombobox=1]="CloseCombobox",Iu[Iu.GoToOption=2]="GoToOption",Iu[Iu.SetTyping=3]="SetTyping",Iu[Iu.RegisterOption=4]="RegisterOption",Iu[Iu.UnregisterOption=5]="UnregisterOption",Iu[Iu.DefaultToFirstOption=6]="DefaultToFirstOption",Iu[Iu.SetActivationTrigger=7]="SetActivationTrigger",Iu[Iu.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",Iu[Iu.SetInputElement=9]="SetInputElement",Iu[Iu.SetButtonElement=10]="SetButtonElement",Iu[Iu.SetOptionsElement=11]="SetOptionsElement",Iu);function zu(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),o=n.length>0&&null!==n[0].dataRef.current.order?n.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):cl(n,(e=>e.dataRef.current.domRef.current)),i=r?o.indexOf(r):null;return-1===i&&(i=null),{options:o,activeOptionIndex:i}}let $u={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var r,n,o,i;if(null!=(r=e.dataRef.current)&&r.disabled||e.optionsElement&&(null==(n=e.dataRef.current)||!n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:r,disabled:n}=e.virtual,i=t.focus===Cu.Specific?t.idx:_u(t,{resolveItems:()=>r,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:r.findIndex((e=>!n(e))))?o:null},resolveDisabled:n,resolveId(){throw new Error("Function not implemented.")}}),a=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===a?e:{...e,activeOptionIndex:i,activationTrigger:a,isTyping:!1,__demoMode:!1}}let a=zu(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let s=t.focus===Cu.Specific?t.idx:_u(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,...a,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var r,n,o,i;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,s=zu(e,(e=>(e.push(a),e)));null===e.activeOptionIndex&&null!=(o=(n=e.dataRef.current).isSelected)&&o.call(n,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(a));let l={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let n=zu(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...n,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var r,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==r?r:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}};class qu extends ks{constructor(e){super(e),Hu(this,"actions",{onChange:e=>{let{onChange:t,compare:r,mode:n,value:o}=this.state.dataRef.current;return Yi(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=o.slice(),i=n.findIndex((t=>r(t,e)));return-1===i?n.push(e):n.splice(i,1),null==t?void 0:t(n)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:Cu.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),Hu(this,"selectors",{activeDescendantId:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);if(null!==n)return e.virtual?null==(r=e.options.find((t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[n]))))?void 0:r.id:null==(t=e.options[n])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:r}=e.virtual,n=t.findIndex((e=>{var t;return!(null!=(t=null==r?void 0:r(e))&&t)}));if(-1!==n)return n}let t=e.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);return null===n?null:e.virtual?e.virtual.options[null!=n?n:0]:null!=(r=null==(t=e.options[n])?void 0:t.dataRef.current.value)?r:null},isActive:(e,t,r)=>{var n;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(n=e.options[o])?void 0:n.id)===r)},shouldScrollIntoView:(e,t,r)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,r))});{let e=this.state.id,t=Rs.get(null);this.disposables.add(t.on(Ls.Push,(r=>{!t.selectors.isTop(r,e)&&0===this.state.comboboxState&&this.actions.closeCombobox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,virtual:t=null,__demoMode:r=!1}){var n;return new qu({id:e,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r})}reduce(e,t){return Yi(t.type,$u,e,t)}}const Zu=U(null);function Gu(e){let t=ve(Zu);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Yu),t}return t}function Yu({id:e,virtual:t=null,__demoMode:r=!1}){let n=he((()=>qu.new({id:e,virtual:t,__demoMode:r})),[]);return Su((()=>n.dispose())),n}let Ku=U(null);function Xu(e){let t=ve(Ku);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Xu),t}return t}Ku.displayName="ComboboxDataContext";let Ju=U(null);function Qu(e){let t=Gu("VirtualProvider"),r=Xu("VirtualProvider"),{options:n}=r.virtual,o=qs(t,(e=>e.optionsElement)),[i,a]=he((()=>{let e=o;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[o]),s=us({enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:a,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[l,c]=ce(0);Ui((()=>{c((e=>e+1))}),[n]);let u=s.getVirtualItems(),d=qs(t,(e=>e.activationTrigger===Uu.Pointer)),p=qs(t,t.selectors.activeOptionIndex);return 0===u.length?null:Dt.createElement(Ju.Provider,{value:s},Dt.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:e=>{e&&(d||null!==p&&n.length>p&&s.scrollToIndex(p))}},u.map((t=>{var r;return Dt.createElement(b,{key:t.key},Dt.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))}))))}let ed=b;let td=Ji.RenderStrategy|Ji.Static;let rd=ia((function(e,t){let r=be(),n=qi(),{value:o,defaultValue:i,onChange:a,form:s,name:l,by:c,invalid:u=!1,disabled:d=n||!1,onClose:p,__demoMode:f=!1,multiple:m=!1,immediate:h=!1,virtual:g=null,nullable:v,...y}=e,b=ua(i),[w=(m?[]:void 0),C]=ca(o,a,b),_=Yu({id:r,virtual:g,__demoMode:f}),x=fe({static:!1,hold:!1}),k=ps(c),S=zi((e=>g?null===c?g.options.indexOf(e):g.options.findIndex((t=>k(t,e))):_.state.options.findIndex((t=>k(t.dataRef.current.value,e))))),E=ge((e=>Yi(O.mode,{[ju.Multi]:()=>w.some((t=>k(t,e))),[ju.Single]:()=>k(w,e)})),[w]),F=qs(_,(e=>e.virtual)),T=zi((()=>null==p?void 0:p())),O=he((()=>({__demoMode:f,immediate:h,optionsPropsRef:x,value:w,defaultValue:b,disabled:d,invalid:u,mode:m?ju.Multi:ju.Single,virtual:g?F:null,onChange:C,isSelected:E,calculateIndex:S,compare:k,onClose:T})),[w,b,d,u,m,C,E,f,_,g,F,T]);Ui((()=>{var e;g&&_.send({type:Wu.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})}),[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),Ui((()=>{_.state.dataRef.current=O}),[O]);let[M,L,A,P]=qs(_,(e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement])),R=Rs.get(null);ml(qs(R,ge((e=>R.selectors.isTop(e,r)),[R,r])),[L,A,P],(()=>_.actions.closeCombobox()));let V=qs(_,_.selectors.activeOptionIndex),D=qs(_,_.selectors.activeOption),I=he((()=>({open:M===Bu.Open,disabled:d,invalid:u,activeIndex:V,activeOption:D,value:w})),[O,d,w,u,D,M]),[N,H]=qa(),B=null===t?{}:{ref:t},j=ge((()=>{if(void 0!==b)return null==C?void 0:C(b)}),[C,b]),U=ea();return Dt.createElement(H,{value:N,props:{htmlFor:null==A?void 0:A.id},slot:{open:M===Bu.Open,disabled:d}},Dt.createElement(uu,null,Dt.createElement(Ku.Provider,{value:O},Dt.createElement(Zu.Provider,{value:_},Dt.createElement(yu,{value:Yi(M,{[Bu.Open]:vu.Open,[Bu.Closed]:vu.Closed})},null!=l&&Dt.createElement(ba,{disabled:d,data:null!=w?{[l]:w}:{},form:s,onReset:j}),U({ourProps:B,theirProps:y,slot:I,defaultTag:ed,name:"Combobox"}))))))})),nd=ia((function(e,t){let r=Gu("Combobox.Button"),n=Xu("Combobox.Button"),[o,i]=ce(null),a=Ra(t,i,r.actions.setButtonElement),s=be(),{id:l=`headlessui-combobox-button-${s}`,disabled:c=n.disabled||!1,autoFocus:u=!1,...d}=e,[p,f,m]=qs(r,(e=>[e.comboboxState,e.inputElement,e.optionsElement])),h=yl(f);!function(e,{trigger:t,action:r,close:n,select:o}){let i=fe(null),a=fe(null),s=fe(null);fl(e&&null!==t,"pointerdown",(e=>{ka(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,s.current=e.y,i.current=new Date)})),fl(e&&null!==t,"pointerup",(e=>{var t,l;if(null===i.current||!Fa(e.target)||Math.abs(e.x-(null!=(t=a.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=s.current)?l:e.y))<5)return;let c=r(e),u=(new Date).getTime()-i.current.getTime();switch(i.current=null,c.kind){case 0:return;case 1:u>200&&(o(c.target),n());break;case 2:n()}}),{capture:!0})}(p===Bu.Open,{trigger:o,action:ge((e=>{if(null!=o&&o.contains(e.target))return vl.Ignore;if(null!=f&&f.contains(e.target))return vl.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Ea(t)?vl.Select(t):null!=m&&m.contains(e.target)?vl.Ignore:vl.Close}),[o,f,m]),close:r.actions.closeCombobox,select:r.actions.selectActiveOption});let g=zi((e=>{switch(e.key){case Ua.Space:case Ua.Enter:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&Ot((()=>r.actions.openCombobox())),void h();case Ua.ArrowDown:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&(Ot((()=>r.actions.openCombobox())),r.state.dataRef.current.value||r.actions.goToOption({focus:Cu.First})),void h();case Ua.ArrowUp:return e.preventDefault(),e.stopPropagation(),r.state.comboboxState===Bu.Closed&&(Ot((()=>r.actions.openCombobox())),r.state.dataRef.current.value||r.actions.goToOption({focus:Cu.Last})),void h();case Ua.Escape:if(r.state.comboboxState!==Bu.Open)return;return e.preventDefault(),r.state.optionsElement&&!n.optionsPropsRef.current.static&&e.stopPropagation(),Ot((()=>r.actions.closeCombobox())),void h();default:return}})),v=zi((e=>{e.preventDefault(),!Aa(e.currentTarget)&&(e.button===ku.Left&&(r.state.comboboxState===Bu.Open?r.actions.closeCombobox():r.actions.openCombobox()),h())})),y=$a([l]),{isFocusVisible:b,focusProps:w}=Ri({autoFocus:u}),{isHovered:C,hoverProps:_}=Pi({isDisabled:c}),{pressed:x,pressProps:k}=function({disabled:e=!1}={}){let t=fe(null),[r,n]=ce(!1),o=ji(),i=zi((()=>{t.current=null,n(!1),o.dispose()})),a=zi((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=Ni(e.currentTarget);o.addEventListener(r,"pointerup",i,!1),o.addEventListener(r,"pointermove",(e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);n(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(r,"pointercancel",i,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}({disabled:c}),S=he((()=>({open:p===Bu.Open,active:x||p===Bu.Open,disabled:c,invalid:n.invalid,value:n.value,hover:C,focus:b})),[n,C,b,x,c,p]),E=oa({ref:a,id:l,type:bl(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==m?void 0:m.id,"aria-expanded":p===Bu.Open,"aria-labelledby":y,disabled:c||void 0,autoFocus:u,onPointerDown:v,onKeyDown:g},w,_,k);return ea()({ourProps:E,theirProps:d,slot:S,defaultTag:"button",name:"Combobox.Button"})})),od=ia((function(e,t){var r,n;let o=Gu("Combobox.Input"),i=Xu("Combobox.Input"),a=be(),s=_a(),{id:l=s||`headlessui-combobox-input-${a}`,onChange:c,displayValue:u,disabled:d=i.disabled||!1,autoFocus:p=!1,type:f="text",...m}=e,[h]=qs(o,(e=>[e.inputElement])),g=fe(null),v=Ra(g,t,ve(lu).setReference,o.actions.setInputElement),y=hl(h),[b,w]=qs(o,(e=>[e.comboboxState,e.isTyping])),C=ji(),_=zi((()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:Cu.Nothing})})),x=he((()=>{var e;return"function"==typeof u&&void 0!==i.value?null!=(e=u(i.value))?e:"":"string"==typeof i.value?i.value:""}),[i.value,u]);Ll((([e,t],[r,n])=>{if(o.state.isTyping)return;let i=g.current;i&&((n===Bu.Open&&t===Bu.Closed||e!==r)&&(i.value=e),requestAnimationFrame((()=>{if(o.state.isTyping||!i||(null==y?void 0:y.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)})))}),[x,b,y,w]),Ll((([e],[t])=>{if(e===Bu.Open&&t===Bu.Closed){if(o.state.isTyping)return;let e=g.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(r,n,i):e.setSelectionRange(r,n)}}),[b]);let k=fe(!1),S=zi((()=>{k.current=!0})),E=zi((()=>{C.nextFrame((()=>{k.current=!1}))})),F=zi((e=>{switch(o.actions.setIsTyping(!0),e.key){case Ua.Enter:if(o.state.comboboxState!==Bu.Open||k.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state))return void o.actions.closeCombobox();o.actions.selectActiveOption(),i.mode===ju.Single&&o.actions.closeCombobox();break;case Ua.ArrowDown:return e.preventDefault(),e.stopPropagation(),Yi(o.state.comboboxState,{[Bu.Open]:()=>o.actions.goToOption({focus:Cu.Next}),[Bu.Closed]:()=>o.actions.openCombobox()});case Ua.ArrowUp:return e.preventDefault(),e.stopPropagation(),Yi(o.state.comboboxState,{[Bu.Open]:()=>o.actions.goToOption({focus:Cu.Previous}),[Bu.Closed]:()=>{Ot((()=>o.actions.openCombobox())),i.value||o.actions.goToOption({focus:Cu.Last})}});case Ua.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.First});case Ua.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.First});case Ua.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.Last});case Ua.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:Cu.Last});case Ua.Escape:return o.state.comboboxState!==Bu.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===ju.Single&&null===i.value&&_(),o.actions.closeCombobox());case Ua.Tab:if(o.state.comboboxState!==Bu.Open)return;i.mode===ju.Single&&o.state.activationTrigger!==Uu.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}})),T=zi((e=>{null==c||c(e),i.mode===ju.Single&&""===e.target.value&&_(),o.actions.openCombobox()})),O=zi((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:bu.find((t=>t!==e.currentTarget));if(!(null!=(r=o.state.optionsElement)&&r.contains(a)||null!=(n=o.state.buttonElement)&&n.contains(a)||o.state.comboboxState!==Bu.Open))return e.preventDefault(),i.mode===ju.Single&&null===i.value&&_(),o.actions.closeCombobox()})),M=zi((e=>{var t,r,n;let a=null!=(t=e.relatedTarget)?t:bu.find((t=>t!==e.currentTarget));null!=(r=o.state.buttonElement)&&r.contains(a)||null!=(n=o.state.optionsElement)&&n.contains(a)||i.disabled||i.immediate&&o.state.comboboxState!==Bu.Open&&C.microTask((()=>{Ot((()=>o.actions.openCombobox())),o.actions.setActivationTrigger(Uu.Focus)}))})),L=$a(),A=Ia(),{isFocused:P,focusProps:R}=Ri({autoFocus:p}),{isHovered:V,hoverProps:D}=Pi({isDisabled:d}),I=qs(o,(e=>e.optionsElement)),N=he((()=>({open:b===Bu.Open,disabled:d,invalid:i.invalid,hover:V,focus:P,autofocus:p})),[i,V,P,p,d,i.invalid]),H=oa({ref:v,id:l,role:"combobox",type:f,"aria-controls":null==I?void 0:I.id,"aria-expanded":b===Bu.Open,"aria-activedescendant":qs(o,o.selectors.activeDescendantId),"aria-labelledby":L,"aria-describedby":A,"aria-autocomplete":"list",defaultValue:null!=(n=null!=(r=e.defaultValue)?r:void 0!==i.defaultValue?null==u?void 0:u(i.defaultValue):null)?n:i.defaultValue,disabled:d||void 0,autoFocus:p,onCompositionStart:S,onCompositionEnd:E,onKeyDown:F,onChange:T,onFocus:M,onBlur:O},R,D);return ea()({ourProps:H,theirProps:m,slot:N,defaultTag:"input",name:"Combobox.Input"})})),id=Ga,ad=ia((function(e,t){var r,n,o;let i=be(),{id:a=`headlessui-combobox-options-${i}`,hold:s=!1,anchor:l,portal:c=!1,modal:u=!0,transition:d=!1,...p}=e,f=Gu("Combobox.Options"),m=Xu("Combobox.Options"),h=function(e){return he((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(l);h&&(c=!0);let[g,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=ve(cu),r=he((()=>e),[JSON.stringify(e,((e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t}))]);Ui((()=>{null==t||t(null!=r?r:null)}),[t,r]);let n=ve(lu);return he((()=>[n.setFloating,e?n.styles:{}]),[n.setFloating,e,n.styles])}(h),[y,b]=ce(null),w=function(){let{getFloatingProps:e,slot:t}=ve(lu);return ge(((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor})),[e,t])}(),C=Ra(t,h?g:null,f.actions.setOptionsElement,b),[_,x,k,S,E]=qs(f,(e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger])),F=hl(x||k),T=hl(S),O=ve(gu),[M,L]=Ml(d,y,null!==O?(O&vu.Open)===vu.Open:_===Bu.Open);!function(e,t,r){let n=Wi((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));de((()=>{if(!e)return;let r=null===t?null:Ea(t)?t:t.current;if(!r)return;let o=Bi();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,n,e])}(M,x,f.actions.closeCombobox),function(e,t,r=()=>[document.body]){kl(Gs(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(!m.__demoMode&&(u&&_===Bu.Open),T),function(e,{allowed:t,disallowed:r}={}){let n=Gs(e,"inert-others");Ui((()=>{var e,o;if(!n)return;let i=Bi();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&i.add(Xs(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let t of a){if(!t)continue;let e=Ni(t);if(!e)continue;let r=t.parentElement;for(;r&&r!==e.body;){for(let e of r.children)a.some((t=>e.contains(t)))||i.add(Xs(e));r=r.parentElement}}return i.dispose}),[n,t,r])}(!m.__demoMode&&(u&&_===Bu.Open),{allowed:ge((()=>[x,k,S]),[x,k,S])}),Ui((()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[m.optionsPropsRef,e.static]),Ui((()=>{m.optionsPropsRef.current.hold=s}),[m.optionsPropsRef,s]),function(e,{container:t,accept:r,walk:n}){let o=fe(r),i=fe(n);de((()=>{o.current=r,i.current=n}),[r,n]),Ui((()=>{if(!t||!e)return;let r=Ni(t);if(!r)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,o,i])}(_===Bu.Open,{container:S,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let A=$a([null==k?void 0:k.id]),P=he((()=>({open:_===Bu.Open,option:void 0})),[_]),R=zi((()=>{f.actions.setActivationTrigger(Uu.Pointer)})),V=zi((e=>{e.preventDefault(),f.actions.setActivationTrigger(Uu.Pointer)})),D=oa(h?w():{},{"aria-labelledby":A,role:"listbox","aria-multiselectable":m.mode===ju.Multi||void 0,id:a,ref:C,style:{...p.style,...v,"--input-width":fs(x,!0).width,"--button-width":fs(k,!0).width},onWheel:E===Uu.Pointer?void 0:R,onMouseDown:V,...Ol(L)}),I=M&&_===Bu.Closed,N=hu(I,null==(r=m.virtual)?void 0:r.options),H=hu(I,m.value),B=zi((e=>m.compare(H,e))),j=he((()=>{if(!m.virtual)return m;if(void 0===N)throw new Error("Missing `options` in virtual mode");return N!==m.virtual.options?{...m,virtual:{...m.virtual,options:N}}:m}),[m,N,null==(n=m.virtual)?void 0:n.options]);m.virtual&&Object.assign(p,{children:Dt.createElement(Ku.Provider,{value:j},Dt.createElement(Qu,{slot:P},p.children))});let U=ea(),W=he((()=>m.mode===ju.Multi?m:{...m,isSelected:B}),[m,B]);return Dt.createElement(Du,{enabled:!!c&&(e.static||M),ownerDocument:F},Dt.createElement(Ku.Provider,{value:W},U({ourProps:D,theirProps:{...p,children:Dt.createElement(mu,{freeze:I},"function"==typeof p.children?null==(o=p.children)?void 0:o.call(p,P):p.children)},slot:P,defaultTag:"div",features:td,visible:M,name:"Combobox.Options"})))})),sd=ia((function(e,t){var r,n,o;let i=Xu("Combobox.Option"),a=Gu("Combobox.Option"),s=be(),{id:l=`headlessui-combobox-option-${s}`,value:c,disabled:u=null!=(o=null==(n=null==(r=i.virtual)?void 0:r.disabled)?void 0:n.call(r,c))&&o,order:d=null,...p}=e,[f]=qs(a,(e=>[e.inputElement])),m=yl(f),h=qs(a,ge((e=>a.selectors.isActive(e,c,l)),[c,l])),g=i.isSelected(c),v=fe(null),y=Wi({disabled:u,value:c,domRef:v,order:d}),b=ve(Ju),w=Ra(t,v,b?b.measureElement:null),C=zi((()=>{a.actions.setIsTyping(!1),a.actions.onChange(c)}));Ui((()=>a.actions.registerOption(l,y)),[y,l]);let _=qs(a,ge((e=>a.selectors.shouldScrollIntoView(e,c,l)),[c,l]));Ui((()=>{if(_)return Bi().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[_,v]);let x=zi((e=>{e.preventDefault(),e.button===ku.Left&&(u||(C(),pl()||requestAnimationFrame((()=>m())),i.mode===ju.Single&&a.actions.closeCombobox()))})),k=zi((()=>{if(u)return a.actions.goToOption({focus:Cu.Nothing});let e=i.calculateIndex(c);a.actions.goToOption({focus:Cu.Specific,idx:e})})),S=function(){let e=fe([-1,-1]);return{wasMoved(t){let r=Sl(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=Sl(t)}}}(),E=zi((e=>S.update(e))),F=zi((e=>{if(!S.wasMoved(e)||u||h)return;let t=i.calculateIndex(c);a.actions.goToOption({focus:Cu.Specific,idx:t},Uu.Pointer)})),T=zi((e=>{S.wasMoved(e)&&(u||h&&(i.optionsPropsRef.current.hold||a.actions.goToOption({focus:Cu.Nothing})))})),O=he((()=>({active:h,focus:h,selected:g,disabled:u})),[h,g,u]),M={id:l,ref:w,role:"option",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,"aria-selected":g,disabled:void 0,onMouseDown:x,onFocus:k,onPointerEnter:E,onMouseEnter:E,onPointerMove:F,onMouseMove:F,onPointerLeave:T,onMouseLeave:T};return ea()({ourProps:M,theirProps:p,slot:O,defaultTag:"div",name:"Combobox.Option"})})),ld=Object.assign(rd,{Input:od,Button:nd,Label:id,Options:ad,Option:sd});let cd=ia((function(e,t){let r=`headlessui-control-${be()}`,[n,o]=qa(),[i,a]=Na(),s=qi(),{disabled:l=s||!1,...c}=e,u=he((()=>({disabled:l})),[l]),d={ref:t,disabled:l||void 0,"aria-disabled":l||void 0},p=ea();return Dt.createElement(Zi,{value:l},Dt.createElement(o,{value:n},Dt.createElement(a,{value:i},Dt.createElement(xa,{id:r},p({ourProps:d,theirProps:{...c,children:Dt.createElement(va,null,"function"==typeof c.children?c.children(u):c.children)},slot:u,defaultTag:"div",name:"Field"})))))}));var ud=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(ud||{});let dd={0(e,t){let r=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:cl(r,(e=>e.element.current))}},1(e,t){let r=e.options.slice(),n=e.options.findIndex((e=>e.id===t.id));return-1===n?e:(r.splice(n,1),{...e,options:r})}},pd=U(null);function fd(e){let t=ve(pd);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fd),t}return t}pd.displayName="RadioGroupDataContext";let md=U(null);function hd(e){let t=ve(md);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hd),t}return t}function gd(e,t){return Yi(t.type,dd,e,t)}md.displayName="RadioGroupActionsContext";let vd=ia((function(e,t){let r=be(),n=qi(),{id:o=`headlessui-radiogroup-${r}`,value:i,form:a,name:s,onChange:l,by:c,disabled:u=n||!1,defaultValue:d,tabIndex:p=0,...f}=e,m=ps(c),[h,g]=ue(gd,{options:[]}),v=h.options,[y,b]=qa(),[w,C]=Na(),_=fe(null),x=Ra(_,t),k=ua(d),[S,E]=ca(i,l,k),F=he((()=>v.find((e=>!e.propsRef.current.disabled))),[v]),T=he((()=>v.some((e=>m(e.propsRef.current.value,S)))),[v,S]),O=zi((e=>{var t;if(u||m(e,S))return!1;let r=null==(t=v.find((t=>m(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==r||!r.disabled)&&(null==E||E(e),!0)})),M=zi((e=>{let t=_.current;if(!t)return;let r=Ni(t),n=v.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case Ua.Enter:!function(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}(e.currentTarget);break;case Ua.ArrowLeft:case Ua.ArrowUp:if(e.preventDefault(),e.stopPropagation(),ul(n,nl.Previous|nl.WrapAround)===ol.Success){let e=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&O(e.propsRef.current.value)}break;case Ua.ArrowRight:case Ua.ArrowDown:if(e.preventDefault(),e.stopPropagation(),ul(n,nl.Next|nl.WrapAround)===ol.Success){let e=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));e&&O(e.propsRef.current.value)}break;case Ua.Space:{e.preventDefault(),e.stopPropagation();let t=v.find((e=>e.element.current===(null==r?void 0:r.activeElement)));t&&O(t.propsRef.current.value)}}})),L=zi((e=>(g({type:0,...e}),()=>g({type:1,id:e.id})))),A=he((()=>({value:S,firstOption:F,containsCheckedOption:T,disabled:u,compare:m,tabIndex:p,...h})),[S,F,T,u,m,p,h]),P=he((()=>({registerOption:L,change:O})),[L,O]),R={ref:x,id:o,role:"radiogroup","aria-labelledby":y,"aria-describedby":w,onKeyDown:M},V=he((()=>({value:S})),[S]),D=ge((()=>{if(void 0!==k)return O(k)}),[O,k]),I=ea();return Dt.createElement(C,{name:"RadioGroup.Description"},Dt.createElement(b,{name:"RadioGroup.Label"},Dt.createElement(md.Provider,{value:P},Dt.createElement(pd.Provider,{value:A},null!=s&&Dt.createElement(ba,{disabled:u,data:{[s]:S||"on"},overrides:{type:"radio",checked:null!=S},form:a,onReset:D}),I({ourProps:R,theirProps:f,slot:V,defaultTag:"div",name:"RadioGroup"})))))})),yd=ia((function(e,t){var r;let n=fd("RadioGroup.Option"),o=hd("RadioGroup.Option"),i=be(),{id:a=`headlessui-radiogroup-option-${i}`,value:s,disabled:l=n.disabled||!1,autoFocus:c=!1,...u}=e,d=fe(null),p=Ra(d,t),[f,m]=qa(),[h,g]=Na(),v=Wi({value:s,disabled:l});Ui((()=>o.registerOption({id:a,element:d,propsRef:v})),[a,o,d,v]);let y=zi((e=>{var t;if(Aa(e.currentTarget))return e.preventDefault();o.change(s)&&(null==(t=d.current)||t.focus())})),b=(null==(r=n.firstOption)?void 0:r.id)===a,{isFocusVisible:w,focusProps:C}=Ri({autoFocus:c}),{isHovered:_,hoverProps:x}=Pi({isDisabled:l}),k=n.compare(n.value,s),S=oa({ref:p,id:a,role:"radio","aria-checked":k?"true":"false","aria-labelledby":f,"aria-describedby":h,"aria-disabled":!!l||void 0,tabIndex:l?-1:k||!n.containsCheckedOption&&b?n.tabIndex:-1,onClick:l?void 0:y,autoFocus:c},C,x),E=he((()=>({checked:k,disabled:l,active:w,hover:_,focus:w,autofocus:c})),[k,l,_,w,c]),F=ea();return Dt.createElement(g,{name:"RadioGroup.Description"},Dt.createElement(m,{name:"RadioGroup.Label"},F({ourProps:S,theirProps:u,slot:E,defaultTag:"div",name:"RadioGroup.Option"})))})),bd=ia((function(e,t){var r;let n=fd("Radio"),o=hd("Radio"),i=be(),a=_a(),s=qi(),{id:l=a||`headlessui-radio-${i}`,value:c,disabled:u=n.disabled||s||!1,autoFocus:d=!1,...p}=e,f=fe(null),m=Ra(f,t),h=$a(),g=Ia(),v=Wi({value:c,disabled:u});Ui((()=>o.registerOption({id:l,element:f,propsRef:v})),[l,o,f,v]);let y=zi((e=>{var t;if(Aa(e.currentTarget))return e.preventDefault();o.change(c)&&(null==(t=f.current)||t.focus())})),{isFocusVisible:b,focusProps:w}=Ri({autoFocus:d}),{isHovered:C,hoverProps:_}=Pi({isDisabled:u}),x=(null==(r=n.firstOption)?void 0:r.id)===l,k=n.compare(n.value,c),S=oa({ref:m,id:l,role:"radio","aria-checked":k?"true":"false","aria-labelledby":h,"aria-describedby":g,"aria-disabled":!!u||void 0,tabIndex:u?-1:k||!n.containsCheckedOption&&x?n.tabIndex:-1,autoFocus:d,onClick:u?void 0:y},w,_),E=he((()=>({checked:k,disabled:u,hover:C,focus:b,autofocus:d})),[k,u,C,b,d]);return ea()({ourProps:S,theirProps:p,slot:E,defaultTag:"span",name:"Radio"})})),wd=Ga,Cd=Ba,_d=Object.assign(vd,{Option:yd,Radio:bd,Label:wd,Description:Cd});const xd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:12,viewBox:"0 0 16 12",fill:"none",...e},g("path",{d:"M14.3 0.3L5 9.6L1.7 6.3C1.3 5.9 0.7 5.9 0.3 6.3C-0.1 6.7 -0.1 7.3 0.3 7.7L4.3 11.7C4.5 11.9 4.7 12 5 12C5.3 12 5.5 11.9 5.7 11.7L15.7 1.7C16.1 1.3 16.1 0.7 15.7 0.3C15.3 -0.1 14.7 -0.1 14.3 0.3Z"})),kd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...e},g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",fill:"#6B7280"})),Sd=$o(od,{target:"e1eotdzt1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),Ed=$o(Ga,{target:"e1eotdzt0"})((({variant:e})=>"sm"===e?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";");let Fd;const Td=()=>ve(Fd),Od=({children:e})=>!Td().features.hideHelperText&&e?Wn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:e}):Wn(Un,{}),Md=ze((({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:a,variant:s,isMultiSelect:l},c)=>zn("div",{className:n,children:[zn(ld,{value:r||(l?[]:""),onChange:e=>{if(l){const r=e,n=e.findIndex((e=>{var r;return null==(r=t.find((t=>t.key==e)))?void 0:r.isReset}));0===n&&r.length>1?o([...r.slice(1)]):o(n>-1?[r[n]]:e)}else o(e)},multiple:l,children:[Wn(Ed,{variant:s,children:e}),zn("div",{css:{position:"relative",marginTop:"0.5rem"},children:[Wn(Sd,{readonly:!0,ref:c,hasError:!!i,displayValue:()=>l?((e,t)=>e&&Array.isArray(e)&&0!==e.length?e.map((e=>{var r;return null==(r=t.find((t=>t.key==e)))?void 0:r.displayValue})).join(", "):"Select")(r,t):((e,t)=>{var r;return e?(null==(r=t.find((t=>t.key==e)))?void 0:r.displayValue)??"Select":"Select"})(r,t)}),Wn(nd,{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",width:"100%",alignItems:"center",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",":focus":{outline:"2px solid transparent",outlineOffset:"2px"}},children:Wn("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem"},children:Wn(kd,{"aria-hidden":"true"})})}),Wn(ad,{modal:!1,css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed][data-leave]":{opacity:"0"},"&[data-leave]":{transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"100ms"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:Wn("div",{children:t.map((e=>zn(sd,{className:"group",css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"},'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:e.key,children:[Wn("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.displayValue}),Wn("span",{css:{visibility:"hidden",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingRight:"0.75rem",".group[data-headlessui-state~='selected'] &":{visibility:"visible"},".group[data-headlessui-state~='active'] &":{fill:"#fff"}},children:Wn(xd,{css:{fill:"inherit"},"aria-hidden":"true"})})]},e.key)))})})]})]}),(null==i?void 0:i.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i.message}),Wn(Od,{children:a})]}))),Ld=$o("button",{target:"e1opgb1f2"})((({variant:e})=>{switch(e){case"lg":return{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-500)","--tw-ring-offset-width":"2px"}};case"md":return{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-100)",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.375rem",paddingBottom:"0.375rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600",color:"var(--fl-color-primary-600)","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"var(--fl-color-primary-200)"}};default:return{display:"flex",paddingTop:"0.75rem",paddingBottom:"0.75rem",fontWeight:"600",color:"var(--fl-color-primary-600)",":hover":{color:"var(--fl-color-primary-700)"}}}})," ",(({variant:e})=>"sm"===e?{paddingTop:"0px",paddingBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem"}:{fontSize:"1rem",lineHeight:"1.5rem"})," svg{",{fill:"var(--fl-color-primary-600)"},";}&:hover svg{",{fill:"var(--fl-color-primary-700)"},";}"),Ad=$o("span",{target:"e1opgb1f1"})((({arrowDirection:e})=>"left"===e?{paddingLeft:"0.5rem"}:"")," ",(({variant:e})=>"lg"===e||"md"===e?{marginRight:"0.25rem",color:"var(--fl-color-primary-300)"}:""),";"),Pd=$o("span",{target:"e1opgb1f0"})([{color:"var(--fl-color-primary-300)"}],""),Rd=e=>g("svg",{width:16,height:12,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M5.293 11.7193C5.4816 11.9014 5.7342 12.0022 5.9964 12C6.2586 11.9977 6.50941 11.8925 6.69482 11.7071C6.88023 11.5217 6.9854 11.2709 6.98767 11.0087C6.98995 10.7465 6.88916 10.4939 6.707 10.3053L3.414 7.01229L15 7.01229C15.2652 7.01229 15.5196 6.90693 15.7071 6.71939C15.8946 6.53186 16 6.2775 16 6.01229C16 5.74707 15.8946 5.49272 15.7071 5.30518C15.5196 5.11765 15.2652 5.01229 15 5.01229L3.414 5.01229L6.707 1.71929C6.80251 1.62704 6.87869 1.5167 6.9311 1.39469C6.98351 1.27269 7.0111 1.14147 7.01225 1.00869C7.01341 0.875909 6.9881 0.744229 6.93782 0.621333C6.88754 0.498437 6.81329 0.386786 6.7194 0.292893C6.6255 0.199 6.51385 0.124746 6.39096 0.0744659C6.26806 0.0241853 6.13638 -0.00111761 6.0036 3.63194e-05C5.87082 0.00119025 5.7396 0.0287762 5.6176 0.0811854C5.49559 0.133595 5.38525 0.209777 5.293 0.305287L0.293001 5.30529C0.105529 5.49281 0.00021417 5.74712 0.000214147 6.01229C0.000214123 6.27745 0.105529 6.53176 0.293001 6.71929L5.293 11.7193Z"}))),Vd=e=>g("svg",{width:16,height:12,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M10.707 0.280712C10.5184 0.0985537 10.2658 -0.00224062 10.0036 3.78026e-05C9.7414 0.00231622 9.49059 0.107485 9.30518 0.292893C9.11977 0.478301 9.0146 0.729114 9.01233 0.99131C9.01005 1.25351 9.11084 1.50611 9.293 1.69471L12.586 4.98771H1C0.734784 4.98771 0.48043 5.09307 0.292893 5.28061C0.105357 5.46814 0 5.7225 0 5.98771C0 6.25293 0.105357 6.50728 0.292893 6.69482C0.48043 6.88235 0.734784 6.98771 1 6.98771H12.586L9.293 10.2807C9.19749 10.373 9.12131 10.4833 9.0689 10.6053C9.01649 10.7273 8.9889 10.8585 8.98775 10.9913C8.9866 11.1241 9.0119 11.2558 9.06218 11.3787C9.11246 11.5016 9.18671 11.6132 9.28061 11.7071C9.3745 11.801 9.48615 11.8753 9.60905 11.9255C9.73194 11.9758 9.86362 12.0011 9.9964 12C10.1292 11.9988 10.2604 11.9712 10.3824 11.9188C10.5044 11.8664 10.6148 11.7902 10.707 11.6947L15.707 6.69471C15.8945 6.50718 15.9998 6.25288 15.9998 5.98771C15.9998 5.72255 15.8945 5.46824 15.707 5.28071L10.707 0.280712Z"}))),Dd=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:15,viewBox:"0 0 14 15",fill:"currentColor",...e},g("path",{d:"M8.99979 0H1.99979C1.73457 0 1.48022 0.105357 1.29268 0.292893C1.10514 0.48043 0.999786 0.734784 0.999786 1C0.999786 1.26522 1.10514 1.51957 1.29268 1.70711C1.48022 1.89464 1.73457 2 1.99979 2H8.99979C9.79544 2 10.5585 2.31607 11.1211 2.87868C11.6837 3.44129 11.9998 4.20435 11.9998 5C11.9998 5.79565 11.6837 6.55871 11.1211 7.12132C10.5585 7.68393 9.79544 8 8.99979 8H3.41379L5.70679 5.707C5.88894 5.5184 5.98974 5.2658 5.98746 5.0036C5.98518 4.7414 5.88001 4.49059 5.6946 4.30518C5.5092 4.11977 5.25838 4.0146 4.99619 4.01233C4.73399 4.01005 4.48139 4.11084 4.29279 4.293L0.292786 8.293C0.105315 8.48053 0 8.73484 0 9C0 9.26516 0.105315 9.51947 0.292786 9.707L4.29279 13.707C4.38503 13.8025 4.49538 13.8787 4.61738 13.9311C4.73939 13.9835 4.87061 14.0111 5.00339 14.0123C5.13616 14.0134 5.26784 13.9881 5.39074 13.9378C5.51364 13.8875 5.62529 13.8133 5.71918 13.7194C5.81307 13.6255 5.88733 13.5139 5.93761 13.391C5.98789 13.2681 6.01319 13.1364 6.01204 13.0036C6.01088 12.8708 5.9833 12.7396 5.93089 12.6176C5.87848 12.4956 5.8023 12.3852 5.70679 12.293L3.41379 10H8.99979C10.3259 10 11.5976 9.47322 12.5353 8.53553C13.473 7.59785 13.9998 6.32608 13.9998 5C13.9998 3.67392 13.473 2.40215 12.5353 1.46447C11.5976 0.526784 10.3259 0 8.99979 0Z",fill:"currentColor"})),Id=e=>Wn("div",{className:e.className,children:zn(Ld,{as:e.onClick||"submit"===e.type?"button":"a",onClick:e.onClick,href:e.href,target:e.href&&"_blank",rel:e.href&&"noreferrer",variant:e.variant,type:e.type||"button",children:["left"===e.arrowDirection?Wn(Rd,{css:{margin:"auto"},"aria-hidden":"true"}):Wn(b,{}),Wn(Ad,{arrowDirection:e.arrowDirection,children:e.children}),"right"===e.arrowDirection?Wn(Vd,{css:{margin:"auto",marginLeft:"0.5rem"},"aria-hidden":"true"}):Wn(b,{}),"uTurn"===e.arrowDirection?Wn(Dd,{css:{margin:"auto",marginLeft:"0.5rem"},"aria-hidden":"true"}):Wn(b,{})]})}),Nd=$o(Id,{target:"e1rrh8040"})(""),Hd=e=>{const{state:t}=Zn(),r=Ve(t);return r?Wn("div",{className:e.className,children:zn(Nd,{variant:"lg",type:e.type||"button",onClick:e.onClick,children:["Form"===r.type&&Wn(Pd,{children:"Next: "}),r.progressButton]})}):Wn(b,{})},Bd=$o(Id,{target:"ebbwto10"})(""),jd=e=>{const{state:t,dispatch:r}=Zn(),n=Td();return!(e=>null!=De(e))(t)||n.features.isGated&&t.currentPage===Le?Wn(b,{}):Wn(Bd,{"aria-describedby":"Previous",className:e.className,onClick:()=>{r({type:"PreviousPageSelected"})},arrowDirection:"left",children:"Previous"})},Ud=$o("form",{target:"ethywdv6"})([{marginTop:"0px"}],""),Wd=$o("div",{target:"ethywdv5"})([{marginTop:"1rem",display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"1rem"}],""),zd=$o("div",{target:"ethywdv4"})([{gridColumn:"1 / -1",marginTop:"1rem",display:"flex",width:"100%",flexWrap:"wrap-reverse",justifyContent:"space-around"}],""),$d=$o(Hd,{target:"ethywdv3"})([{flexGrow:"1","@media (min-width: 430px)":{maxWidth:"fit-content"}}],""),qd=$o(jd,{target:"ethywdv2"})([{flexGrow:"1",paddingRight:"1rem"}],""),Zd=$o("p",{target:"ethywdv1"})({gridColumn:"1 / -1",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}," a{",{color:"var(--fl-color-primary-600)",textDecorationLine:"underline",":visited":{color:"rgb(147 51 234 )"},":hover":{color:"var(--fl-color-primary-800)"}},";}"),Gd=e=>g("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M15 9H5C4.4 9 4 9.4 4 10C4 10.6 4.4 11 5 11H15C15.6 11 16 10.6 16 10C16 9.4 15.6 9 15 9Z"})),Yd=e=>g("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M15 9H11V5C11 4.4 10.6 4 10 4C9.4 4 9 4.4 9 5V9H5C4.4 9 4 9.4 4 10C4 10.6 4.4 11 5 11H9V15C9 15.6 9.4 16 10 16C10.6 16 11 15.6 11 15V11H15C15.6 11 16 10.6 16 10C16 9.4 15.6 9 15 9Z"})),Kd=$o("input",{target:"ev4e9jo1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({prefix:e})=>e?{paddingLeft:"1.375rem"}:{paddingLeft:"0.75rem"})," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),Xd=$o("label",{target:"ev4e9jo0"})((({variant:e})=>"sm"===e?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";"),Jd=e=>{const t=e.target,r=t.value;t.type="number",""!==r&&(t.value=Math.round(Number(r.replace(/,/g,""))).toString())},Qd=ze((({label:e,id:t,value:r,max:n,min:o,prefix:i,rangeAdjustment:a,className:s,onChange:l,onBlur:c,error:u,helperText:d,variant:p},f)=>zn("div",{css:{position:"relative"},className:s,children:[Wn(Xd,{htmlFor:t,variant:p,children:e}),zn("div",{css:{position:"relative",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},children:[i?Wn("div",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",left:"0px",display:"flex",alignItems:"center",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem","@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}},children:Wn("span",{css:{fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}},children:i})}):Wn(b,{}),Wn(Kd,{type:"text",name:t,id:t,value:r.toLocaleString("en"),onBlur:e=>{if((e=>{const t=e.target,r=t.value;t.type="text",""!==r&&(t.value=Math.round(Number(r)).toLocaleString("en"))})(e),e.target instanceof HTMLInputElement){const t=Math.round(Number(e.target.value.replace(/,/g,"")));l(Number.isNaN(t)?0:t),c&&c(Number.isNaN(t)?0:t)}},onFocus:Jd,prefix:i,ref:f,hasError:!!u}),zn("div",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",order:"9999",display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(0.75rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))"},paddingRight:"0.75rem"},children:[Wn("button",{type:"button","aria-label":"decrement",onClick:()=>{const e=r-a>o?r-a:o;l(e),c&&c(e)},tabIndex:-1,children:Wn(Gd,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{color:"var(--fl-color-primary-600)"},":focus":{color:"var(--fl-color-primary-600)"}}})}),Wn("button",{type:"button","aria-label":"increment",onClick:()=>{const e=r+a<=n?r+a:n;l(e),c&&c(e)},tabIndex:-1,children:Wn(Yd,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{color:"var(--fl-color-primary-600)"},":focus":{color:"var(--fl-color-primary-600)"}}})})]})]}),(null==u?void 0:u.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:u.message}),Wn(Od,{children:d})]}))),ep=({label:e,items:t,value:r,className:n,onChange:o,helperText:i})=>{const a=e=>{o(e)},s=t.findIndex((e=>e.key===r));return zn("div",{className:n,children:[Wn("div",{css:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:Wn("label",{as:"label",css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e})}),zn(_d,{value:r,tabIndex:0,onKeyDown:e=>{switch(e.key){case"ArrowLeft":case"ArrowDown":{e.preventDefault(),e.stopPropagation();const r=s-1<0?t.length-1:s-1,n=t[r];a(n.key)}break;case"ArrowRight":case"ArrowUp":e.preventDefault(),e.stopPropagation();{e.preventDefault(),e.stopPropagation();const r=s+1>t.length-1?0:s+1,n=t[r];a(n.key)}}},css:{marginTop:"0.5rem",":focus-visible":{borderRadius:"0.375rem",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-300)"}},children:[Wn(Ga,{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),Wn("div",{css:{marginBottom:"0.25rem",display:"grid",gridTemplateColumns:"repeat(5, minmax(0, 1fr))",gap:"0px"},children:t.map((e=>Wn("div",{role:"radio",value:e.key,onClick:()=>a(e.key),"data-headlessui-state":e.key==r?"active checked":"","aria-checked":e.key==r,css:{marginRight:"-1px",display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"center","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"500",textTransform:"uppercase","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":last-child":{marginRight:"0px",borderTopRightRadius:"0.375rem",borderBottomRightRadius:"0.375rem"},":first-of-type":{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem"},":hover":{backgroundColor:"var(--fl-color-primary-50)"},":focus":{zIndex:"50",outline:"2px solid transparent",outlineOffset:"2px"},'&[data-headlessui-state~="checked"]':{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"},':where([data-headlessui-state~="checked"]) &':{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"},'&[data-headlessui-state~="active"]':{marginRight:"0px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-600)","--tw-ring-offset-width":"0px"},':where([data-headlessui-state~="active"]) &':{marginRight:"0px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-color":"var(--fl-color-primary-600)","--tw-ring-offset-width":"0px"},"@media (min-width: 640px)":{flex:"1 1 0%",fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}},children:Wn(Ga,{css:{cursor:"pointer"},children:e.displayValue})},e.key)))})]}),Wn(Od,{children:i})]})},tp=[{key:"monthly",displayValue:"Monthly"},{key:"weekly",displayValue:"Weekly"},{key:"fortnightly",displayValue:"Fortnightly"}],rp=[{key:"fulltime",displayValue:"Full time"},{key:"parttime",displayValue:"Part time"},{key:"casual",displayValue:"Casual"},{key:"contract",displayValue:"Contract"},{key:"other",displayValue:"Other"}],np=[{key:"NSW",displayValue:"New South Wales"},{key:"VIC",displayValue:"Victoria"},{key:"QLD",displayValue:"Queensland"},{key:"WA",displayValue:"Western Australia"},{key:"SA",displayValue:"South Australia"},{key:"TAS",displayValue:"Tasmania"},{key:"NT",displayValue:"Northern Territory"},{key:"ACT",displayValue:"Australian Capital Territory"}],op=[{key:"ev",displayValue:"Electric Vehicle"},{key:"ice",displayValue:"Petrol, Diesel, Hybrid (inc. Plug-In Hybrid)"},{key:"notsure",displayValue:"Not sure yet"}],ip=[{key:"small",displayValue:"Hatch"},{key:"medium",displayValue:"Sedan / wagon"},{key:"suv",displayValue:"SUV"},{key:"large",displayValue:"Ute"},{key:"luxury",displayValue:"Luxury"}],ap=[{key:1,displayValue:"1"},{key:2,displayValue:"2"},{key:3,displayValue:"3"},{key:4,displayValue:"4"},{key:5,displayValue:"5"}],sp=[{key:"Audi",displayValue:"Audi"},{key:"BMW",displayValue:"BMW"},{key:"BYD",displayValue:"BYD"},{key:"Ford",displayValue:"Ford"},{key:"Hyundai",displayValue:"Hyundai"},{key:"Kia",displayValue:"Kia"},{key:"Mazda",displayValue:"Mazda"},{key:"Mercedes",displayValue:"Mercedes"},{key:"MG",displayValue:"MG"},{key:"Mitsubishi",displayValue:"Mitsubishi"},{key:"Polestar",displayValue:"Polestar"},{key:"Tesla",displayValue:"Tesla"},{key:"Toyota",displayValue:"Toyota"},{key:"Other",displayValue:"Other"},{key:"NotSure",displayValue:"I'm not sure",isReset:!0}],lp=[{key:"now",displayValue:"As soon as possible"},{key:"short",displayValue:"1-4 months"},{key:"medium",displayValue:"5-12 months"},{key:"long",displayValue:"More than one year"},{key:"notSure",displayValue:"I'm not sure"}],cp={vehicleOptions:{vehicleCost:5e4,annualKms:15e3,leaseTerm:3},employmentDetails:{annualSalary:5e4},isDirty:!1,isFirstTouchCompleted:!1},up=U({state:cp,dispatch:()=>({})}),dp=({initialState:e,children:t})=>{const[r,n]=ue(fp,e);return Wn(up.Provider,{value:{state:r,dispatch:n},children:t})},pp=()=>ve(up),fp=(e,t)=>{var r,n,o,i,a,s;switch(t.type){case"VehicleOptionsSubmitted":return Xn(e.vehicleOptions,t.payload)?e:{...e,isDirty:!0,vehicleOptions:t.payload,results:void 0};case"EmploymentDetailsSubmitted":return Xn(e.employmentDetails,t.payload)?e:{...e,isDirty:!0,employmentDetails:t.payload,results:{...e.results,ev:{...null==(r=e.results)?void 0:r.ev,estimation:void 0},ice:{...null==(n=e.results)?void 0:n.ice,estimation:void 0}}};case"ContactDetailsSubmitted":return Xn(e.contactDetails,t.payload)?e:{...e,isDirty:!0,contactDetails:t.payload};case"EvEstimationResultUpdated":return{...e,results:{...e.results,ev:{...null==(o=e.results)?void 0:o.ev,estimation:t.payload}}};case"EvRecommendationResultUpdated":return{...e,results:{...e.results,ev:{...null==(i=e.results)?void 0:i.ev,recommendation:t.payload}}};case"IceEstimationResultUpdated":return{...e,results:{...e.results,ice:{...null==(a=e.results)?void 0:a.ice,estimation:t.payload}}};case"IceRecommendationResultUpdated":return{...e,results:{...e.results,ice:{...null==(s=e.results)?void 0:s.ice,recommendation:t.payload}}};case"EnquirySubmitted":return{...e,isDirty:!1};case"FirstTouchCompleted":return{...e,isFirstTouchCompleted:!0};default:return e}};var mp=e=>"checkbox"===e.type,hp=e=>e instanceof Date,gp=e=>null==e;const vp=e=>"object"==typeof e;var yp=e=>!gp(e)&&!Array.isArray(e)&&vp(e)&&!hp(e),bp=e=>yp(e)&&e.target?mp(e.target)?e.target.checked:e.target.value:e,wp=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Cp="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function _p(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Cp&&(e instanceof Blob||e instanceof FileList)||!r&&!yp(e))return e;if(t=r?[]:{},r||(e=>{const t=e.constructor&&e.constructor.prototype;return yp(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=_p(e[r]));else t=e}return t}var xp=e=>Array.isArray(e)?e.filter(Boolean):[],kp=e=>void 0===e,Sp=(e,t,r)=>{if(!t||!yp(e))return r;const n=xp(t.split(/[,[\].]+?/)).reduce(((e,t)=>gp(e)?e:e[t]),e);return kp(n)||n===e?kp(e[t])?r:e[t]:n},Ep=e=>"boolean"==typeof e,Fp=e=>/^\w*$/.test(e),Tp=e=>xp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Op=(e,t,r)=>{let n=-1;const o=Fp(t)?[t]:Tp(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=yp(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const Mp="blur",Lp="focusout",Ap="change",Pp="onBlur",Rp="onChange",Vp="onSubmit",Dp="onTouched",Ip="all",Np="max",Hp="min",Bp="maxLength",jp="minLength",Up="pattern",Wp="required",zp="validate",$p=Dt.createContext(null),qp=()=>Dt.useContext($p);var Zp=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Ip&&(t._proxyFormState[o]=!n||Ip),r&&(r[o]=!0),e[o]}});return o},Gp=e=>yp(e)&&!Object.keys(e).length,Yp=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Gp(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||Ip)))},Kp=e=>Array.isArray(e)?e:[e],Xp=(e,t,r)=>!e||!t||e===t||Kp(e).some((e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))));function Jp(e){const t=Dt.useRef(e);t.current=e,Dt.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var Qp=e=>"string"==typeof e,ef=(e,t,r,n,o)=>Qp(e)?(n&&t.watch.add(e),Sp(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),Sp(r,e)))):(n&&(t.watchAll=!0),r);function tf(e){const t=qp(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,a=wp(o._names.array,r),s=function(e){const t=qp(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:a}=e||{},s=Dt.useRef(n);s.current=n,Jp({disabled:i,subject:r._subjects.values,next:e=>{Xp(s.current,e.name,a)&&c(_p(ef(s.current,r._names,e.values||r._formValues,!1,o)))}});const[l,c]=Dt.useState(r._getWatch(n,o));return Dt.useEffect((()=>r._removeUnmounted())),l}({control:o,name:r,defaultValue:Sp(o._formValues,r,Sp(o._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){const t=qp(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[a,s]=Dt.useState(r._formState),l=Dt.useRef(!0),c=Dt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=Dt.useRef(o);return u.current=o,Jp({disabled:n,next:e=>l.current&&Xp(u.current,e.name,i)&&Yp(e,c.current,r._updateFormState)&&s({...r._formState,...e}),subject:r._subjects.state}),Dt.useEffect((()=>(l.current=!0,c.current.isValid&&r._updateValid(!0),()=>{l.current=!1})),[r]),Zp(a,r,c.current,!1)}({control:o,name:r,exact:!0}),c=Dt.useRef(o.register(r,{...e.rules,value:s,...Ep(e.disabled)?{disabled:e.disabled}:{}}));return Dt.useEffect((()=>{const e=o._options.shouldUnregister||i,t=(e,t)=>{const r=Sp(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=_p(Sp(o._options.defaultValues,r));Op(o._defaultValues,r,e),kp(Sp(o._formValues,r))&&Op(o._formValues,r,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}}),[r,o,a,i]),Dt.useEffect((()=>{Sp(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Sp(o._fields,r)._f.value})}),[n,r,o]),{field:{name:r,value:s,...Ep(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:Dt.useCallback((e=>c.current.onChange({target:{value:bp(e),name:r},type:Ap})),[r]),onBlur:Dt.useCallback((()=>c.current.onBlur({target:{value:Sp(o._formValues,r),name:r},type:Mp})),[r,o]),ref:Dt.useCallback((e=>{const t=Sp(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[o._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Sp(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!Sp(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Sp(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Sp(l.validatingFields,r)},error:{enumerable:!0,get:()=>Sp(l.errors,r)}})}}const rf=e=>e.render(tf(e));var nf=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},of=e=>({isOnSubmit:!e||e===Vp,isOnBlur:e===Pp,isOnChange:e===Rp,isOnAll:e===Ip,isOnTouch:e===Dp}),af=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const sf=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Sp(e,o);if(r){const{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(sf(i,t))break}else if(yp(i)&&sf(i,t))break}}};var lf=(e,t,r)=>{const n=Kp(Sp(e,r));return Op(n,"root",t[r]),Op(e,r,n),e},cf=e=>"file"===e.type,uf=e=>"function"==typeof e,df=e=>{if(!Cp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pf=e=>Qp(e),ff=e=>"radio"===e.type,mf=e=>e instanceof RegExp;const hf={value:!1,isValid:!1},gf={value:!0,isValid:!0};var vf=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kp(e[0].attributes.value)?kp(e[0].value)||""===e[0].value?gf:{value:e[0].value,isValid:!0}:gf:hf}return hf};const yf={isValid:!1,value:null};var bf=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),yf):yf;function wf(e,t,r="validate"){if(pf(e)||Array.isArray(e)&&e.every(pf)||Ep(e)&&!e)return{type:r,message:pf(e)?e:"",ref:t}}var Cf=e=>yp(e)&&!mf(e)?e:{value:e,message:""},_f=async(e,t,r,n,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:p,validate:f,name:m,valueAsNumber:h,mount:g,disabled:v}=e._f,y=Sp(t,m);if(!g||v)return{};const b=a?a[0]:i,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(Ep(e)?"":e||""),b.reportValidity())},C={},_=ff(i),x=mp(i),k=_||x,S=(h||cf(i))&&kp(i.value)&&kp(y)||df(i)&&""===i.value||""===y||Array.isArray(y)&&!y.length,E=nf.bind(null,m,r,C),F=(e,t,r,n=Bp,o=jp)=>{const a=e?t:r;C[m]={type:e?n:o,message:a,ref:i,...E(e?n:o,a)}};if(o?!Array.isArray(y)||!y.length:s&&(!k&&(S||gp(y))||Ep(y)&&!y||x&&!vf(a).isValid||_&&!bf(a).isValid)){const{value:e,message:t}=pf(s)?{value:!!s,message:s}:Cf(s);if(e&&(C[m]={type:Wp,message:t,ref:b,...E(Wp,t)},!r))return w(t),C}if(!(S||gp(u)&&gp(d))){let e,t;const n=Cf(d),o=Cf(u);if(gp(y)||isNaN(y)){const r=i.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;Qp(n.value)&&y&&(e=s?a(y)>a(n.value):l?y>n.value:r>new Date(n.value)),Qp(o.value)&&y&&(t=s?a(y)<a(o.value):l?y<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(y?+y:y);gp(n.value)||(e=r>n.value),gp(o.value)||(t=r<o.value)}if((e||t)&&(F(!!e,n.message,o.message,Np,Hp),!r))return w(C[m].message),C}if((l||c)&&!S&&(Qp(y)||o&&Array.isArray(y))){const e=Cf(l),t=Cf(c),n=!gp(e.value)&&y.length>+e.value,o=!gp(t.value)&&y.length<+t.value;if((n||o)&&(F(n,e.message,t.message),!r))return w(C[m].message),C}if(p&&!S&&Qp(y)){const{value:e,message:t}=Cf(p);if(mf(e)&&!y.match(e)&&(C[m]={type:Up,message:t,ref:i,...E(Up,t)},!r))return w(t),C}if(f)if(uf(f)){const e=wf(await f(y,t),b);if(e&&(C[m]={...e,...E(zp,e.message)},!r))return w(e.message),C}else if(yp(f)){let e={};for(const n in f){if(!Gp(e)&&!r)break;const o=wf(await f[n](y,t),b,n);o&&(e={...o,...E(n,o.message)},w(o.message),r&&(C[m]=e))}if(!Gp(e)&&(C[m]={ref:b,...e},!r))return C}return w(!0),C};function xf(e,t){const r=Array.isArray(t)?t:Fp(t)?[t]:Tp(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=kp(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(yp(n)&&Gp(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!kp(e[t]))return!1;return!0}(n))&&xf(e,r.slice(0,-1)),e}var kf=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Sf=e=>gp(e)||!vp(e);function Ef(e,t){if(Sf(e)||Sf(t))return e===t;if(hp(e)&&hp(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(hp(r)&&hp(e)||yp(r)&&yp(e)||Array.isArray(r)&&Array.isArray(e)?!Ef(r,e):r!==e)return!1}}return!0}var Ff=e=>"select-multiple"===e.type,Tf=e=>df(e)&&e.isConnected,Of=e=>{for(const t in e)if(uf(e[t]))return!0;return!1};function Mf(e,t={}){const r=Array.isArray(e);if(yp(e)||r)for(const n in e)Array.isArray(e[n])||yp(e[n])&&!Of(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Mf(e[n],t[n])):gp(e[n])||(t[n]=!0);return t}function Lf(e,t,r){const n=Array.isArray(e);if(yp(e)||n)for(const o in e)Array.isArray(e[o])||yp(e[o])&&!Of(e[o])?kp(t)||Sf(r[o])?r[o]=Array.isArray(e[o])?Mf(e[o],[]):{...Mf(e[o])}:Lf(e[o],gp(t)?{}:t[o],r[o]):r[o]=!Ef(e[o],t[o]);return r}var Af=(e,t)=>Lf(e,t,Mf(t)),Pf=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>kp(e)?e:t?""===e?NaN:e?+e:e:r&&Qp(e)?new Date(e):n?n(e):e;function Rf(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return cf(t)?t.files:ff(t)?bf(e.refs).value:Ff(t)?[...t.selectedOptions].map((({value:e})=>e)):mp(t)?vf(e.refs).value:Pf(kp(t.value)?e.ref.value:t.value,e)}var Vf=e=>kp(e)?e:mf(e)?e.source:yp(e)?mf(e.value)?e.value.source:e.value:e;const Df="AsyncFunction";function If(e,t,r){const n=Sp(e,r);if(n||Fp(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=Sp(t,n),a=Sp(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}const Nf={mode:Vp,reValidateMode:Rp,shouldFocusError:!0};function Hf(e={}){let t,r={...Nf,...e},n={submitCount:0,isDirty:!1,isLoading:uf(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},i=(yp(r.defaultValues)||yp(r.values))&&_p(r.defaultValues||r.values)||{},a=r.shouldUnregister?{}:_p(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:kf(),array:kf(),state:kf()},p=of(r.mode),f=of(r.reValidateMode),m=r.criteriaMode===Ip,h=async e=>{if(u.isValid||e){const e=r.resolver?Gp((await w()).errors):await C(o,!0);e!==n.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?Op(n.validatingFields,e,t):xf(n.validatingFields,e))})),d.state.next({validatingFields:n.validatingFields,isValidating:!Gp(n.validatingFields)}))},v=(e,t,r,n)=>{const l=Sp(o,e);if(l){const o=Sp(a,e,kp(r)?Sp(i,e):r);kp(o)||n&&n.defaultChecked||t?Op(a,e,t?o:Rf(l._f)):k(e,o),s.mount&&h()}},y=(e,t,r,a,s)=>{let l=!1,c=!1;const p={name:e},f=!!(Sp(o,e)&&Sp(o,e)._f&&Sp(o,e)._f.disabled);if(!r||a){u.isDirty&&(c=n.isDirty,n.isDirty=p.isDirty=_(),l=c!==p.isDirty);const r=f||Ef(Sp(i,e),t);c=!(f||!Sp(n.dirtyFields,e)),r||f?xf(n.dirtyFields,e):Op(n.dirtyFields,e,!0),p.dirtyFields=n.dirtyFields,l=l||u.dirtyFields&&c!==!r}if(r){const t=Sp(n.touchedFields,e);t||(Op(n.touchedFields,e,r),p.touchedFields=n.touchedFields,l=l||u.touchedFields&&t!==r)}return l&&s&&d.state.next(p),l?p:{}},b=(r,o,i,a)=>{const s=Sp(n.errors,r),l=u.isValid&&Ep(o)&&n.isValid!==o;var p;if(e.delayError&&i?(p=()=>((e,t)=>{Op(n.errors,e,t),d.state.next({errors:n.errors})})(r,i),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(e.delayError)):(clearTimeout(c),t=null,i?Op(n.errors,r,i):xf(n.errors,r)),(i?!Ef(s,i):s)||!Gp(a)||l){const e={...a,...l&&Ep(o)?{isValid:o}:{},errors:n.errors,name:r};n={...n,...e},d.state.next(e)}},w=async e=>{g(e,!0);const t=await r.resolver(a,r.context,((e,t,r,n)=>{const o={};for(const i of e){const e=Sp(t,i);e&&Op(o,i,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return g(e),t},C=async(e,t,o={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&!((i=c._f)&&i.validate||!(uf(i.validate)&&i.validate.constructor.name===Df||yp(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===Df))));p&&u.validatingFields&&g([s],!0);const f=await _f(c,a,m,r.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(o.valid=!1,t))break;!t&&(Sp(f,e.name)?d?lf(n.errors,f,e.name):Op(n.errors,e.name,f[e.name]):xf(n.errors,e.name))}!Gp(d)&&await C(d,t,o)}}var i;return o.valid},_=(e,t)=>(e&&t&&Op(a,e,t),!Ef(M(),i)),x=(e,t,r)=>ef(e,l,{...s.mount?a:kp(t)?i:Qp(e)?{[e]:t}:t},r,t),k=(e,t,r={})=>{const n=Sp(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&Op(a,e,Pf(t,r)),i=df(r.ref)&&gp(t)?"":t,Ff(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?mp(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):cf(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||d.values.next({name:e,values:{...a}})))}(r.shouldDirty||r.shouldTouch)&&y(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&O(e)},S=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=Sp(o,a);!l.array.has(e)&&Sf(i)&&(!s||s._f)||hp(i)?k(a,i,r):S(a,i,r)}},E=(e,t,r={})=>{const c=Sp(o,e),p=l.array.has(e),f=_p(t);Op(a,e,f),p?(d.array.next({name:e,values:{...a}}),(u.isDirty||u.dirtyFields)&&r.shouldDirty&&d.state.next({name:e,dirtyFields:Af(i,a),isDirty:_(e,f)})):!c||c._f||gp(f)?k(e,f,r):S(e,f,r),af(e,l)&&d.state.next({...n}),d.values.next({name:s.mount?e:void 0,values:{...a}})},F=async i=>{s.mount=!0;const c=i.target;let v=c.name,_=!0;const x=Sp(o,v),k=e=>{_=Number.isNaN(e)||Ef(e,Sp(a,v,e))};if(x){let s,E;const F=c.type?Rf(x._f):bp(i),T=i.type===Mp||i.type===Lp,M=!((S=x._f).mount&&(S.required||S.min||S.max||S.maxLength||S.minLength||S.pattern||S.validate)||r.resolver||Sp(n.errors,v)||x._f.deps)||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(T,Sp(n.touchedFields,v),n.isSubmitted,f,p),L=af(v,l,T);Op(a,v,F),T?(x._f.onBlur&&x._f.onBlur(i),t&&t(0)):x._f.onChange&&x._f.onChange(i);const A=y(v,F,T,!1),P=!Gp(A)||L;if(!T&&d.values.next({name:v,type:i.type,values:{...a}}),M)return u.isValid&&("onBlur"===e.mode?T&&h():h()),P&&d.state.next({name:v,...L?{}:A});if(!T&&L&&d.state.next({...n}),r.resolver){const{errors:e}=await w([v]);if(k(F),_){const t=If(n.errors,o,v),r=If(e,o,t.name||v);s=r.error,v=r.name,E=Gp(e)}}else g([v],!0),s=(await _f(x,a,m,r.shouldUseNativeValidation))[v],g([v]),k(F),_&&(s?E=!1:u.isValid&&(E=await C(o,!0)));_&&(x._f.deps&&O(x._f.deps),b(v,E,s,A))}var S},T=(e,t)=>{if(Sp(n.errors,t)&&e.focus)return e.focus(),1},O=async(e,t={})=>{let i,a;const s=Kp(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(e)for(const r of e){const e=Sp(t,r);e?Op(n.errors,r,e):xf(n.errors,r)}else n.errors=t;return t})(kp(e)?e:s);i=Gp(t),a=e?!s.some((e=>Sp(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=Sp(o,e);return await C(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||n.isValid)&&h()):a=i=await C(o);return d.state.next({...!Qp(e)||u.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!a&&sf(o,T,e?s:l.mount),a},M=e=>{const t={...s.mount?a:i};return kp(e)?t:Qp(e)?Sp(t,e):e.map((e=>Sp(t,e)))},L=(e,t)=>({invalid:!!Sp((t||n).errors,e),isDirty:!!Sp((t||n).dirtyFields,e),error:Sp((t||n).errors,e),isValidating:!!Sp(n.validatingFields,e),isTouched:!!Sp((t||n).touchedFields,e)}),A=(e,t,r)=>{const i=(Sp(o,e,{_f:{}})._f||{}).ref,a=Sp(n.errors,e)||{},{ref:s,message:l,type:c,...u}=a;Op(n.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},P=(e,t={})=>{for(const s of e?Kp(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(xf(o,s),xf(a,s)),!t.keepError&&xf(n.errors,s),!t.keepDirty&&xf(n.dirtyFields,s),!t.keepTouched&&xf(n.touchedFields,s),!t.keepIsValidating&&xf(n.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&xf(i,s);d.values.next({values:{...a}}),d.state.next({...n,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&h()},R=({disabled:e,name:t,field:r,fields:n,value:o})=>{if(Ep(e)&&s.mount||e){const i=e?void 0:kp(o)?Rf(r?r._f:Sp(n,t)._f):o;Op(a,t,i),y(t,i,!1,!1,!0)}},V=(t,n={})=>{let a=Sp(o,t);const c=Ep(n.disabled)||Ep(e.disabled);return Op(o,t,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:t}},name:t,mount:!0,...n}}),l.mount.add(t),a?R({field:a,disabled:Ep(n.disabled)?n.disabled:e.disabled,name:t,value:n.value}):v(t,!0,n.value),{...c?{disabled:n.disabled||e.disabled}:{},...r.progressive?{required:!!n.required,min:Vf(n.min),max:Vf(n.max),minLength:Vf(n.minLength),maxLength:Vf(n.maxLength),pattern:Vf(n.pattern)}:{},name:t,onChange:F,onBlur:F,ref:e=>{if(e){V(t,n),a=Sp(o,t);const r=kp(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=(e=>ff(e)||mp(e))(r),l=a._f.refs||[];if(s?l.find((e=>e===r)):r===a._f.ref)return;Op(o,t,{_f:{...a._f,...s?{refs:[...l.filter(Tf),r,...Array.isArray(Sp(i,t))?[{}]:[]],ref:{type:r.type,name:t}}:{ref:r}}}),v(t,!1,void 0,r)}else a=Sp(o,t,{}),a._f&&(a._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&(!wp(l.array,t)||!s.action)&&l.unMount.add(t)}}},D=()=>r.shouldFocusError&&sf(o,T,l.mount),I=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=_p(a);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await w();n.errors=e,l=t}else await C(o);if(xf(n.errors,"root"),Gp(n.errors)){d.state.next({errors:{}});try{await e(l,i)}catch(c){s=c}}else t&&await t({...n.errors},i),D(),setTimeout(D);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gp(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},N=(t,r={})=>{const c=t?_p(t):i,p=_p(c),f=Gp(t),m=f?i:p;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues)for(const e of l.mount)Sp(n.dirtyFields,e)?Op(m,e,Sp(a,e)):E(e,Sp(m,e));else{if(Cp&&kp(t))for(const e of l.mount){const t=Sp(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(df(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=e.shouldUnregister?r.keepDefaultValues?_p(i):{}:_p(m),d.array.next({values:{...m}}),d.values.next({values:{...m}})}l={mount:r.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!r.keepIsValid||!!r.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!f&&(r.keepDirty?n.isDirty:!(!r.keepDefaultValues||Ef(t,i))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:r.keepDirtyValues?r.keepDefaultValues&&a?Af(i,a):n.dirtyFields:r.keepDefaultValues&&t?Af(i,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},H=(e,t)=>N(uf(e)?e(a):e,t);return{control:{register:V,unregister:P,getFieldState:L,handleSubmit:I,setError:A,_executeSchema:w,_getWatch:x,_getDirty:_,_updateValid:h,_removeUnmounted:()=>{for(const e of l.unMount){const t=Sp(o,e);t&&(t._f.refs?t._f.refs.every((e=>!Tf(e))):!Tf(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,l,c=!0,p=!0)=>{if(l&&r){if(s.action=!0,p&&Array.isArray(Sp(o,e))){const t=r(Sp(o,e),l.argA,l.argB);c&&Op(o,e,t)}if(p&&Array.isArray(Sp(n.errors,e))){const t=r(Sp(n.errors,e),l.argA,l.argB);c&&Op(n.errors,e,t),((e,t)=>{!xp(Sp(e,t)).length&&xf(e,t)})(n.errors,e)}if(u.touchedFields&&p&&Array.isArray(Sp(n.touchedFields,e))){const t=r(Sp(n.touchedFields,e),l.argA,l.argB);c&&Op(n.touchedFields,e,t)}u.dirtyFields&&(n.dirtyFields=Af(i,a)),d.state.next({name:e,isDirty:_(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Op(a,e,t)},_updateDisabledField:R,_getFieldArray:t=>xp(Sp(s.mount?a:i,t,e.shouldUnregister?Sp(i,t,[]):[])),_reset:N,_resetDefaultValues:()=>uf(r.defaultValues)&&r.defaultValues().then((e=>{H(e,r.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{Ep(e)&&(d.state.next({disabled:e}),sf(o,((t,r)=>{const n=Sp(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{n.errors=e,d.state.next({errors:n.errors,isValid:!1})},get _fields(){return o},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:O,register:V,handleSubmit:I,watch:(e,t)=>uf(e)?d.values.subscribe({next:r=>e(x(void 0,t),r)}):x(e,t,!0),setValue:E,getValues:M,reset:H,resetField:(e,t={})=>{Sp(o,e)&&(kp(t.defaultValue)?E(e,_p(Sp(i,e))):(E(e,t.defaultValue),Op(i,e,_p(t.defaultValue))),t.keepTouched||xf(n.touchedFields,e),t.keepDirty||(xf(n.dirtyFields,e),n.isDirty=t.defaultValue?_(e,_p(Sp(i,e))):_()),t.keepError||(xf(n.errors,e),u.isValid&&h()),d.state.next({...n}))},clearErrors:e=>{e&&Kp(e).forEach((e=>xf(n.errors,e))),d.state.next({errors:e?n.errors:{}})},unregister:P,setError:A,setFocus:(e,t={})=>{const r=Sp(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:L}}function Bf(e={}){const t=Dt.useRef(),r=Dt.useRef(),[n,o]=Dt.useState({isDirty:!1,isValidating:!1,isLoading:uf(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:uf(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Hf(e),formState:n});const i=t.current.control;return i._options=e,Jp({subject:i._subjects.state,next:e=>{Yp(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),Dt.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),Dt.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==n.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,n.isDirty]),Dt.useEffect((()=>{e.values&&!Ef(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,o((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),Dt.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),Dt.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),Dt.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),t.current.formState=Zp(n,i),t.current}const jf=e=>t=>!!t&&e(t),Uf=e=>jf(e.test.bind(e)),Wf=e=>jf((t=>!!t&&e.includes(t))),zf=/^\+?(614|6104|04)([0-9]{8})$/,$f=e=>{const t=e.replace(/\s/g,""),r=e.replace(/\s/g,"").match(zf);return null==r?t:`+614${r[2]}`},qf=Wf(["small","medium","suv","large","luxury"]),Zf=Wf(["ev","ice","notsure"]),Gf=["Tesla","Toyota","BYD","Mitsubishi","Mazda","Hyundai","Kia","MG","Ford","BMW","Polestar","Mercedes","Audi","Other","NotSure"],Yf=Wf(["monthly","weekly","fortnightly"]),Kf=Wf(["fulltime","parttime","contract","casual","other"]),Xf=Wf(["NSW","VIC","QLD","WA","SA","TAS","NT","ACT"]),Jf=Uf(/^[A-Za-z0-9][A-Za-z0-9._%+'-]{0,63}@(?:[A-Za-z0-9-]{1,63}\.){1,125}[A-Za-z]{2,63}$/),Qf=Uf(/(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\- ']{0,59}$/),em=Uf(zf),tm=Uf(/^(?:(0[289][0-9]{2})|([1-9][0-9]{3}))$/),rm=Uf(/^[A-Za-z0-9\s!"#$%&'()*,\-./\\_{}|:;=?@]{1,100}$/),nm=Wf(["now","short","medium","long","notSure"]),om=e=>({...e}),im=e=>({...e});class am extends Error{constructor(e,t){super(e),c(this,"response"),this.response=t}}const sm=async(e,t,r,n)=>{const o=await fetch(e,{method:t,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1322"},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3),credentials:"include"});if(!o.ok)throw new am(`[API] Fetch error: ${o.statusText}. Url: ${t} ${e}`,o);return n?{}:await o.json()},lm=async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/vehicles/estimate`}?${r}`);var o;return await sm(n,"GET")},cm=async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/vehicles`}?${r}`);var o;return await sm(n,"GET")},um=async(e,t)=>{try{const n=new URL(`${e.url}${r=e.subRoute,`/salary-packaging/${r}/v1.0/vehicles/track`}`);await sm(n,"POST",t,!0),dm(t)}catch(n){console.log(n)}var r},dm=e=>{if("enquirySubmitted"===e.eventName)t="purchase",window.uetq=window.uetq||[],window.uetq.push("event",t,{});var t},pm=(e,t)=>({distinctId:null==e?void 0:e.distinctId,externalId:null==e?void 0:e.externalId,component:{host:location.origin,path:location.pathname,isGated:t},google:{gclid:null==e?void 0:e.gclid},microsoft:{mcid:null==e?void 0:e.mcid},apollo:{accountId:null==e?void 0:e.accountId,customerId:null==e?void 0:e.customerId,partnerId:null==e?void 0:e.partnerId,profileId:null==e?void 0:e.profileId,contactId:null==e?void 0:e.contactId},utm:{source:null==e?void 0:e.utmSource,medium:null==e?void 0:e.utmMedium,campaign:null==e?void 0:e.utmCampaign,term:null==e?void 0:e.utmTerm,content:null==e?void 0:e.utmContent},salesforce:{source:null==e?void 0:e.sfSource,subSource:null==e?void 0:e.sfSubSource,description:null==e?void 0:e.sfDescription,class:null==e?void 0:e.sfClass,medium:null==e?void 0:e.sfMedium,name:null==e?void 0:e.sfName,priority:null==e?void 0:e.sfPriority,team:null==e?void 0:e.sfTeam}}),fm=e=>({annualKms:e.annualKms,budget:e.vehicleCost,size:e.vehicleSize||"",brand:e.brand,preferredMakes:e.preferredMakes||[],termInMonths:12*e.leaseTerm,type:e.engineType||"",timeframe:e.timeframe||""}),mm=e=>({annualSalaryGross:e.annualSalary,employerName:e.employerName||"",employmentType:e.employmentType||"",payCycle:e.payFrequency||"",state:e.location??"not selected"}),hm=(e,t,r,n,o,i,a)=>({eventName:"enquirySubmitted",session:pm(e,t),properties:{vehicleOptions:fm(r),employmentDetails:mm(n),other:{postcode:o.postCode||""},contactDetails:{email:o.email||"",firstName:o.firstName||"",lastName:o.lastName||"",mobile:o.mobile&&$f(o.mobile)||""},evEstimation:i,iceEstimation:a}}),gm=(e,t,r,n,o,i,a)=>({eventName:"estimateLoaded",session:pm(e,t),properties:{vehicleOptions:fm(r),employmentDetails:mm(n),other:{postcode:(null==o?void 0:o.postCode)??void 0},evEstimation:i,iceEstimation:a}}),vm=()=>{const{state:e,dispatch:t}=pp(),{dispatch:r}=Zn(),n=Td(),{handleSubmit:o,control:i,watch:a}=Bf({mode:"onBlur",defaultValues:{...e.vehicleOptions}});de((()=>{const r=e.isFirstTouchCompleted?void 0:a((()=>{var r,o;e.isFirstTouchCompleted||(t({type:"FirstTouchCompleted"}),um(n.backend,(r=n.tracking,o=!!n.features.isGated,{eventName:"activityStarted",session:pm(r,o)})))}));return r&&e.isFirstTouchCompleted&&r.unsubscribe(),()=>r&&r.unsubscribe()}),[a,e.isFirstTouchCompleted,n.tracking,n.features.isGated,n.backend,t]);return zn(Ud,{onSubmit:o((e=>{if(t({type:"VehicleOptionsSubmitted",payload:e}),"ice"===e.engineType)r({type:"SummaryPageTabUpdated",payload:"ICE"});else r({type:"SummaryPageTabUpdated",payload:"EV"});var o,i,a;um(n.backend,(o=n.tracking,i=!!n.features.isGated,a=e,{eventName:"vehicleOptionsSubmitted",session:pm(o,i),properties:{vehicleOptions:fm(a)}})),r({type:"NextPageSelected"})})),children:[!n.features.hideVehicleSelection&&zn(b,{children:[zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn("div",{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},children:Wn(rf,{name:"engineType",control:i,rules:{validate:Zf,required:"Please select vehicle type"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Vehicle type",error:t.error,items:op,...e})})}),Wn("div",{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},children:Wn(rf,{name:"vehicleSize",control:i,rules:{validate:qf,required:"Please select vehicle body type"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Body type",error:t.error,items:ip,...e})})})]}),Wn(Wd,{children:Wn(rf,{name:"preferredMakes",control:i,rules:{required:!1},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"Preferred car makes",error:t.error,items:sp,css:{gridColumn:"span 4 / span 4"},isMultiSelect:!0,...e})})})]}),Wn(Wd,{children:Wn(rf,{name:"vehicleCost",control:i,rules:{min:{message:"Vehicle cost must be more than $5,000",value:5e3},max:{message:"Vehicle cost must be less than $1,000,000",value:1e6},required:"Please provide the Vehicle cost"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"vehicleCost",label:"Vehicle cost",helperText:"Driveaway price, including GST and on-road costs.",max:1e6,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"annualKms",control:i,rules:{min:{message:"Annual kms must be more than 500",value:500},max:{message:"Annual kms must be less than 1,000,000",value:1e6},required:"Please estimate your Annual kms"},render:({field:e,fieldState:t})=>Wn(Qd,{label:"Annual kms",helperText:"Drivers in Australia travel an average of 15,000km per year.",max:1e6,min:5e3,rangeAdjustment:5e3,id:"annualKms",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"leaseTerm",control:i,rules:{required:!0},render:({field:e})=>Wn(ep,{label:"Lease term (years)",helperText:"A longer lease term attracts a lower cost per pay.",items:ap,id:"leaseTerm",css:{gridColumn:"span 4 / span 4"},...e})})}),Wn(Wd,{children:Wn(rf,{name:"timeframe",control:i,rules:{validate:nm,required:"Please select when you would like your lease to start"},render:({field:e,fieldState:t})=>Wn(Md,{inputLabel:"When would you like the lease to start?",error:t.error,items:lp,css:{gridColumn:"span 4 / span 4"},...e})})}),Wn(Wd,{children:Wn(zd,{children:Wn($d,{css:{marginLeft:"auto",maxWidth:"none","@media (min-width: 430px)":{maxWidth:"none"},"@media (min-width: 768px)":{maxWidth:"fit-content"}},type:"submit"})})})]})},ym=$o("input",{target:"e1kj3hkm0"})((()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}}))," ",(({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"})," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),bm=ze((({label:e,id:t,type:r,placeholder:n,setPlaceholderOnFocus:o,value:i,className:a,onChange:s,onBlur:l,error:c},u)=>zn("div",{className:a,children:[Wn("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),Wn("div",{css:{marginTop:"0.5rem"},children:Wn(ym,{type:r,value:i,name:t,id:t,placeholder:n,onChange:e=>{e.target instanceof HTMLInputElement&&s(e.target.value.trim())},onBlur:e=>{e.target instanceof HTMLInputElement&&l&&l(e.target.value.trim())},onFocus:()=>{n&&o&&!(null==i?void 0:i.trim())&&s(n)},hasError:!!c,ref:u})}),(null==c?void 0:c.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:c.message})]}))),wm=()=>{const{state:e,dispatch:t}=pp(),{state:r,dispatch:n}=Zn(),o=Td(),{handleSubmit:i,control:a}=Bf({mode:"onBlur",defaultValues:{...e.contactDetails}}),s=Ve(r);return zn(Ud,{onSubmit:i((e=>{var r,i,a;t({type:"ContactDetailsSubmitted",payload:{...e,isSubmitted:!0}}),n({type:"NextPageSelected"}),um(o.backend,(r=o.tracking,i=!!o.features.isGated,a=e,{eventName:"contactDetailsSubmitted",session:pm(r,i),properties:{other:{postcode:a.postCode||""}}}))})),children:[zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"firstName",control:a,rules:{validate:{validName:e=>Qf(e)||"First name is not valid"},required:"Please provide your first name"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},label:"First name",id:"firstName",type:"text",error:t.error,...e})}),Wn(rf,{name:"lastName",control:a,rules:{validate:{validName:e=>Qf(e)||"Last name is not valid"},required:"Please provide your last name"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},label:"Last name",id:"lastName",type:"text",error:t.error,...e})})]}),Wn(Wd,{children:Wn(rf,{name:"email",control:a,rules:{validate:{validEmail:e=>Jf(e)||"Email is not valid"},required:"Please provide your email"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"span 4 / span 4"},label:"Email",id:"email",type:"text",error:t.error,...e})})}),zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"mobile",control:a,rules:{validate:{validAuMobile:e=>e&&em(e.replace(/\s/g,""))||"That doesn’t look like a real Australian mobile number"},required:"Please provide your mobile"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 3 / span 3"}},label:"Mobile",placeholder:"+61",id:"mobile",type:"text",setPlaceholderOnFocus:!0,error:t.error,...e})}),Wn(rf,{name:"postCode",control:a,rules:{validate:{validPostcode:e=>tm(e)||"Postcode is not valid"},required:"Please provide your postcode"},render:({field:e,fieldState:t})=>Wn(bm,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 1 / span 1",marginTop:"0px"}},label:"Postcode",id:"postcode",type:"text",error:t.error,...e})})]}),Wn(Wd,{children:zn(Zd,{children:["By clicking “Next: ",null==s?void 0:s.progressButton,"” you acknowledge that your personal information will be used in accordance with our"," ",Wn("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/privacy-policy/",children:"Privacy Policy"}),"."]})}),Wn(Wd,{children:zn(zd,{children:[Wn(qd,{}),Wn($d,{type:"submit"})]})})]})},Cm=e=>{switch(e){case"ev":default:return"ev";case"ice":return"ice,hybrid"}},_m=(e,t)=>({annualKms:e.annualKms.toString(),annualSalaryGross:t.annualSalary.toString(),payCycle:t.payFrequency||"",size:e.vehicleSize||"",brand:e.brand,termInMonths:(12*e.leaseTerm).toString(),budget:e.vehicleCost.toString(),state:t.location||"",type:Cm(e.engineType||"")}),xm=e=>({budget:e.vehicleCost.toString(),size:e.vehicleSize||"",type:Cm(e.engineType||""),brand:e.brand}),km=$o("div",{target:"e1skra173"})([{overflow:"hidden",borderRadius:"0.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))"}],""),Sm=$o("div",{target:"e1skra172"})([{backgroundColor:"transparent",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.5rem",paddingBottom:"1.5rem","@media (min-width: 768px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}],""),Em=$o("div",{target:"e1skra171"})([{height:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.5rem","@media (min-width: 768px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}],""),Fm=$o("p",{target:"e1skra170"})({fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"2.25rem",lineHeight:"2.25rem",fontWeight:"700","@media (min-width: 768px)":{fontSize:"3rem",lineHeight:'"3rem"'}},";",(({isPrimary:e})=>e?{color:"var(--fl-color-primary-600)"}:{"--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}),";"),Tm=$o("li",{target:"e1jk9oz71"})([{backgroundColor:"transparent"}],""),Om=$o("span",{target:"e1jk9oz70"})({paddingLeft:"0.5rem",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"400"},";"),Mm=e=>g("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group"},g("path",{id:"Vector",d:"M13.7 0.3C13.3 -0.1 12.7 -0.1 12.3 0.3L7 5.6L1.7 0.3C1.3 -0.1 0.7 -0.1 0.3 0.3C-0.1 0.7 -0.1 1.3 0.3 1.7L5.6 7L0.3 12.3C-0.1 12.7 -0.1 13.3 0.3 13.7C0.5 13.9 0.7 14 1 14C1.3 14 1.5 13.9 1.7 13.7L7 8.4L12.3 13.7C12.5 13.9 12.8 14 13 14C13.2 14 13.5 13.9 13.7 13.7C14.1 13.3 14.1 12.7 13.7 12.3L8.4 7L13.7 1.7C14.1 1.3 14.1 0.7 13.7 0.3Z",fill:"#FF876F"}))),Lm=({items:e,className:t})=>Wn("ul",{className:t,children:e.map((e=>Wn(Tm,{css:{gridColumn:"span 1 / span 1"},children:e.isTicked?zn(b,{children:[Wn(xd,{css:{display:"inline",fill:"var(--fl-color-primary-600)"},"aria-hidden":"true"}),Wn(Om,{children:e.description})]}):zn(b,{children:[Wn(Mm,{css:{marginRight:"0.25rem",display:"inline"},"aria-hidden":"true"}),Wn(Om,{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:e.description})]})},e)))}),Am=({className:e,heading:t,children:r})=>Wn(km,{className:e,children:t?zn(b,{children:[Wn(Sm,{css:{paddingBottom:"0px","@media (min-width: 768px)":{paddingBottom:"1.25rem"}},children:Wn(t,{})}),Wn(Em,{children:r})]}):Wn(Sm,{children:r})}),Pm=$o("div",{target:"ez4pykt0"})("width:",(({width:e})=>e?`${e}rem`:"100%"),";height:",(({height:e})=>e),"rem;"),Rm=({height:e,width:t,className:r})=>Wn("div",{className:r,children:Wn("div",{css:{display:"flex",height:"100%","@keyframes pulse":{"50%":{opacity:".5"}},animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",flexDirection:"row"},children:Wn(Pm,{width:t,height:e,css:{borderRadius:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"}})})}),Vm=$o("button",{target:"eg9ip2a1"})((({variant:e})=>"sm"===e?{borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0px",paddingBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"}:{borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"})," ",(({isCurrent:e})=>e?{backgroundColor:"var(--fl-color-primary-100)",color:"var(--fl-color-primary-700)"}:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}}),";"),Dm=$o("nav",{target:"eg9ip2a0"})((({variant:e})=>"sm"==e?{display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(0.25rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))"}}:{display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(1rem * var(--tw-space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--tw-space-x-reverse)))"}}),";"),Im=({tabs:e,currentTab:t,onChange:r,className:n,variant:o})=>{const i=r;return Wn("div",{className:n,children:Wn("div",{children:Wn(Dm,{variant:o,"aria-label":"Tabs",children:e.map((e=>Wn(Vm,{type:"button",onClick:()=>i(e.id),"aria-current":e.id===t?"page":void 0,isCurrent:e.id===t,variant:o,children:e.displayName},e.displayName)))})})})},Nm=$o(Id,{target:"e9j1jgy0"})({gridColumn:"span 1 / span 1",gridColumnStart:"3","@media (min-width: 768px)":{gridColumn:"auto"}},";"),Hm=({className:e})=>{var t,r,n,o;const{state:i,dispatch:a}=pp(),[s,l]=ce(!1),{state:c,dispatch:u}=Zn(),{handleSubmit:d,control:p}=Bf({mode:"onBlur",defaultValues:{...i.vehicleOptions}}),f=c.pageState.summaryPage.currentTab,m=Td();de((()=>{var e,t,r,n,o,a,c,u,d,p,h,g,v;s&&("ICE"===f&&(null==(t=null==(e=i.results)?void 0:e.ice)?void 0:t.estimation)||"EV"===f&&(null==(n=null==(r=i.results)?void 0:r.ev)?void 0:n.estimation))&&(um(m.backend,(c=m.tracking,u=!!m.features.isGated,d=i.vehicleOptions,p=i.employmentDetails,h=i.contactDetails,g=null==(o=i.results.ev)?void 0:o.estimation,v=null==(a=i.results.ice)?void 0:a.estimation,{eventName:"estimateUpdated",session:pm(c,u),properties:{vehicleOptions:fm(d),employmentDetails:mm(p),other:{postcode:(null==h?void 0:h.postCode)??void 0},evEstimation:g,iceEstimation:v}})),l(!1))}),[null==(r=null==(t=i.results)?void 0:t.ice)?void 0:r.estimation,null==(o=null==(n=i.results)?void 0:n.ev)?void 0:o.estimation,m.backend]);const h=()=>Wn(Id,{variant:"sm",onClick:()=>u({type:"PageSelected",payload:c.pageOrder.filter((e=>"Vehicle"===e.id))[0]}),arrowDirection:"uTurn",children:"Restart calculator"});return zn(Am,{css:{overflow:"visible"},className:e,children:[zn("div",{css:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[Wn("h4",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"500"},children:"Update estimate"}),Wn("span",{css:{display:"none",alignSelf:"center","@media (min-width: 768px)":{display:"flex"}},children:Wn(h,{})})]}),Wn(Ud,{onSubmit:d((e=>{l(!0),a({type:"VehicleOptionsSubmitted",payload:e})})),children:zn(Wd,{css:{marginTop:"1rem",display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",alignItems:"baseline",gap:"0.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(7, minmax(0, 1fr))",gap:"1rem"}},children:[Wn(rf,{name:"vehicleCost",control:p,rules:{min:{message:"Vehicle cost must be more than $5000",value:5e3},max:{message:"Vehicle cost must be less than $1 000 000",value:1e6},required:"Please provide the Vehicle cost"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"vehicleCost",label:"Vehicle cost",variant:"sm",max:1e6,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},error:t.error,...e})}),Wn(rf,{name:"annualKms",control:p,rules:{min:{message:"Annual kms must be more than 500",value:500},max:{message:"Annual kms must be less than 1 000 000",value:1e6},required:"Please estimate your Annual kms"},render:({field:e,fieldState:t})=>Wn(Qd,{label:"Annual kms",max:1e6,min:5e3,variant:"sm",rangeAdjustment:5e3,id:"annualKms",css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},error:t.error,...e})}),Wn(rf,{name:"leaseTerm",control:p,rules:{required:!0},render:({field:e})=>Wn(Md,{css:{gridColumn:"1 / -1",marginBottom:"auto","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"Lease term (years)",items:ap,variant:"sm",...e})}),Wn("span",{css:{marginTop:"1.5rem","@media (min-width: 768px)":{display:"none"}},children:Wn(h,{})}),Wn(Nm,{variant:"md",type:"submit",children:"Update"})]})})]})},Bm=$o(Am,{target:"e1n1rrhx3"})({marginBottom:"1.25rem"}," background-color:",(e=>e.backgroundColour),";"),jm=$o("h4",{target:"e1n1rrhx2"})({marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"500"},""),Um=$o("h4",{target:"e1n1rrhx1"})({paddingBottom:"0px",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},""),Wm=$o("h4",{target:"e1n1rrhx0"})({paddingTop:"0.5rem",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"0.75rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},""),zm=(e,t)=>"function"==typeof e?e(t||{}):e,$m=({icon:e,content:t,parameters:r,backgroundColour:n})=>{const o=e=>{const n=t[e],o=(null==r?void 0:r[e])||{};return zm(n,o)};return Wn(Bm,{backgroundColour:n,children:zn("div",{css:{display:"flex"},children:[Wn("div",{css:{alignSelf:"flex-start",paddingRight:"1rem","@media (min-width: 1024px)":{alignSelf:"center"}},children:Wn(e,{css:{height:"5rem",width:"5rem","@media (min-width: 768px)":{height:"6rem",width:"6rem"}}})}),zn("div",{children:[Wn(jm,{children:o("heading")}),Wn(Um,{children:o("paragraph")}),t.disclaimer&&Wn(Wm,{children:o("disclaimer")})]})]})})},qm=({savings:e})=>{const{content:{banners:{evSavings:t}}}=Td(),r={heading:{savings:Math.trunc(e).toLocaleString("en-US")}};return Wn($m,{icon:t.icon,content:t,parameters:r,backgroundColour:t.backgroundColour})},Zm=()=>{const{content:{banners:{maxEvSavings:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Gm=()=>{const{content:{banners:{error:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour,css:{marginTop:"1.25rem"}})},Ym=()=>{const{content:{banners:{getInTouch:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Km=()=>{const{content:{banners:{luxuryCarSavings:e}}}=Td();return Wn($m,{icon:e.icon,content:e,backgroundColour:e.backgroundColour})},Xm=[{id:"EV",displayName:"Electric vehicle"},{id:"ICE",displayName:"Fuel / Hybrid"}],Jm=()=>zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>zn(b,{children:[Wn(Rm,{css:{marginBottom:"0.5rem"},width:13,height:1.5}),Wn(Rm,{width:11,height:3})]}),children:[Wn(Rm,{css:{marginBottom:"0.75rem"},width:13,height:1}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5}),Wn(Rm,{css:{marginBottom:"0.75rem"},height:1.5})]}),Qm=()=>{var e,t,r,n,o,i,a,s,l,c,u,d,p,f,m,h,g,v,y,w,C,_,x,k,S,E,F,T,O,M;const[L,A]=ce(),[P,R]=ce("LeaseTerm"),[V,D]=ce(!1),[I,N]=ce(!1),[H,B]=ce(!1),{state:j,dispatch:U}=pp(),W=Td(),{state:z,dispatch:$}=Zn(),q=z.pageState.summaryPage.currentTab,Z=e=>{R(e)};de((()=>{var e,t,r,n;switch(q){case"EV":A(null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation);break;case"ICE":A(null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation)}}),[j,q]),de((()=>{(async()=>{var e,t,r,n;if(!(null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation))try{const e=await lm(W.backend,_m({...j.vehicleOptions,engineType:"ev"},j.employmentDetails));"EV"!==q||I||(um(W.backend,gm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,e,null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation)),N(!0)),U({type:"EvEstimationResultUpdated",payload:om(e)}),D(!1)}catch{D(!0)}})()}),[null==(t=null==(e=j.results)?void 0:e.ev)?void 0:t.estimation,null==(n=null==(r=j.results)?void 0:r.ice)?void 0:n.estimation,j.contactDetails,j.isDirty,j.vehicleOptions,j.employmentDetails,W.tracking,W.features.isGated,W.backend,q,I,U]),de((()=>{(async()=>{var e,t,r,n;if(!(null==(t=null==(e=j.results)?void 0:e.ice)?void 0:t.estimation)&&"ICE"===q)try{const e=await lm(W.backend,_m({...j.vehicleOptions,engineType:"ice"},j.employmentDetails));H||(um(W.backend,gm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(n=null==(r=j.results)?void 0:r.ev)?void 0:n.estimation,e)),B(!0)),U({type:"IceEstimationResultUpdated",payload:om(e)})}catch{D(!0)}})()}),[null==(i=null==(o=j.results)?void 0:o.ev)?void 0:i.estimation,null==(s=null==(a=j.results)?void 0:a.ice)?void 0:s.estimation,j.vehicleOptions,j.employmentDetails,j.contactDetails,j.isDirty,W.tracking,W.features.isGated,W.backend,q,H,U]),de((()=>{var e,t,r,n,o,i,a;j.isDirty&&(null==(e=j.contactDetails)?void 0:e.isSubmitted)&&((null==(r=null==(t=j.results)?void 0:t.ice)?void 0:r.estimation)||(null==(o=null==(n=j.results)?void 0:n.ev)?void 0:o.estimation))&&(um(W.backend,hm(W.tracking,!!W.features.isGated,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(i=j.results.ev)?void 0:i.estimation,null==(a=j.results.ice)?void 0:a.estimation)),U({type:"EnquirySubmitted"}))}),[j.isDirty,j.vehicleOptions,j.employmentDetails,j.contactDetails,null==(c=null==(l=j.results)?void 0:l.ice)?void 0:c.estimation,null==(d=null==(u=j.results)?void 0:u.ev)?void 0:d.estimation,W.backend,U,W]);const G=L&&Math.trunc(null==L?void 0:L.packagedPerPayCycle.afterTaxCost).toLocaleString("en-US"),Y="LeaseTerm"===P?L&&Math.trunc((L.packagedPerPayCycle.taxSavings||0)*(L.payCyclesPerYear||1)*j.vehicleOptions.leaseTerm)||0:Math.trunc((null==L?void 0:L.packagedPerPayCycle.taxSavings)||0),K=0===(null==(h=null==(m=null==(f=null==(p=j.results)?void 0:p.ev)?void 0:f.estimation)?void 0:m.packagedPerPayCycle)?void 0:h.postTaxDeduction),X=(null==(v=null==(g=j.results)?void 0:g.ev)?void 0:v.estimation)&&L&&K&&(j.results.ev.estimation.packagedPerPayCycle.taxSavings-L.packagedPerPayCycle.taxSavings)*L.payCyclesPerYear*j.vehicleOptions.leaseTerm,J=!("EV"!=q||!(null==(C=null==(w=null==(y=j.results)?void 0:y.ev)?void 0:w.estimation)?void 0:C.packagedPerPayCycle)||0!=(null==(k=null==(x=null==(_=j.results)?void 0:_.ev)?void 0:x.estimation)?void 0:k.packagedPerPayCycle.postTaxDeduction)),Q=!!("EV"==q&&(null==(F=null==(E=null==(S=j.results)?void 0:S.ev)?void 0:E.estimation)?void 0:F.packagedPerPayCycle)&&(null==(M=null==(O=null==(T=j.results)?void 0:T.ev)?void 0:O.estimation)?void 0:M.packagedPerPayCycle.postTaxDeduction)>0);return zn("div",{children:[V?Wn(Gm,{}):zn(b,{children:[!W.features.hideVehicleSelection&&Wn(Im,{css:{marginBottom:"1.5rem",marginTop:"1rem"},tabs:Xm,currentTab:q,onChange:async e=>{var t,r,n;$({type:"SummaryPageTabUpdated",payload:e}),await um(W.backend,(t=W.tracking,r=!!W.features.isGated,n={...j.vehicleOptions,engineType:"EV"==e?"ev":"ice"},{eventName:"engineTypeUpdated",session:pm(t,r),properties:{vehicleOptions:fm(n)}}))}}),X&&X>0?Wn(qm,{savings:X}):Wn(b,{}),Wn(J?Zm:b,{}),Wn(Q?Km:b,{}),zn("div",{css:{marginBottom:"1.25rem",display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}},children:[G?zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>zn(b,{children:[zn("h4",{css:{marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"500"},children:["Cost per ",j.employmentDetails.payFrequency," pay"]}),zn(Fm,{children:["$",G]})]}),children:[Wn("p",{css:{marginBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Cost includes:"}),Wn(Lm,{css:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"0.5rem"},items:[{description:"Registration",isTicked:!0},{description:"Tyres",isTicked:!0},{description:"Insurance",isTicked:!0},{description:"Servicing",isTicked:!0},{description:"Finance",isTicked:!0},{description:"Maintenance",isTicked:!0},{description:"EV"===q?"Charging / Fuel":"Fuel",isTicked:!0}]})]}):Wn(Jm,{}),Y?zn(Am,{css:{gridColumn:"span 1 / span 1"},heading:()=>{return zn(b,{children:[zn("div",{css:{display:"flex",justifyContent:"space-between"},children:[Wn("h4",{css:{marginBottom:"0.5rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"500"},children:"Total savings"}),Wn(Im,{css:{marginTop:"0.25rem"},tabs:(e=j.vehicleOptions.leaseTerm,[{id:"LeaseTerm",displayName:`${e} years`},{id:"PayCycle",displayName:"Per pay"}]),currentTab:P,onChange:Z,variant:"sm"})]}),zn(Fm,{isPrimary:!0,children:["$",Y>0?Y.toLocaleString("en-US"):0]})]});var e},children:[Wn("p",{css:{marginBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Enjoy the benefits of:"}),Wn(Lm,{css:{display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"0.5rem"},items:[{description:"Pre-tax deduction savings",isTicked:!0},{description:"GST savings on purchase price",isTicked:!0},{description:"GST savings on running costs",isTicked:!0},{description:"FBT exemption on deductions",isTicked:0===(null==L?void 0:L.packagedPerPayCycle.postTaxDeduction)}]})]}):Wn(Jm,{})]}),W.features.isGated&&Wn(Ym,{})]}),Wn(Hm,{css:{marginBottom:"1.25rem"}}),Wn("p",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Figures shown are estimates only and are based on an estimated driveaway price of the vehicle which includes dealer delivery, CTP, Rego and Stamp duty."}),Wn(Wd,{children:zn(zd,{css:{marginTop:"0.5rem"},children:[Wn(qd,{}),V?Wn(b,{}):Wn($d,{type:"button",onClick:()=>$({type:"NextPageSelected"})})]})})]})},eh=$o("h2",{target:"e1nbvt2e0"})({textAlign:"right",verticalAlign:"text-bottom",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},";"),th=e=>{const{state:t}=Zn(),r=Re(t)+1,n=t.pageOrder.filter((e=>"Form"===e.type)).length;return zn(eh,{css:{placeSelf:"center","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},className:e.className,children:["Step ",r,"/",n]})};var rh={exports:{}};rh.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(2),i=(n=o)&&n.__esModule?n:{default:n};t.default=i.default,e.exports=t.default},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=c;var i=r(3),a=o(r(4)),s=r(14),l=o(r(15));function c(e){var t=e.activeClassName,r=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,c=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&&d,f=e.className,m=e.findChunks,h=e.highlightClassName,g=void 0===h?"":h,v=e.highlightStyle,y=void 0===v?{}:v,b=e.highlightTag,w=void 0===b?"mark":b,C=e.sanitize,_=e.searchWords,x=e.textToHighlight,k=e.unhighlightTag,S=void 0===k?"span":k,E=e.unhighlightClassName,F=void 0===E?"":E,T=e.unhighlightStyle,O=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),M=(0,i.findAll)({autoEscape:u,caseSensitive:p,findChunks:m,sanitize:C,searchWords:_,textToHighlight:x}),L=w,A=-1,P="",R=void 0,V=(0,l.default)((function(e){var t={};for(var r in e)t[r.toLowerCase()]=e[r];return t}));return(0,s.createElement)("span",n({className:f},O,{children:M.map((function(e,t){var n=x.substr(e.start,e.end-e.start);if(e.highlight){A++;var o=void 0;o="object"==typeof g?p?g[n]:(g=V(g))[n.toLowerCase()]:g;var i=A===+a;P=o+" "+(i?r:""),R=!0===i&&null!=c?Object.assign({},y,c):y;var l={children:n,className:P,key:t,style:R};return"string"!=typeof L&&(l.highlightIndex=A),(0,s.createElement)(L,l)}return(0,s.createElement)(S,{children:n,className:F,key:t,style:T})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?n:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?i:n,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(n,r?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({start:l,end:c}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,r,!1)}return n};function i(e){return e}}])},function(e,t,r){(function(t){e.exports=r(13)()}).call(t,r(5))},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(Ki){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(Ki){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(Ki){n=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(Ki){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||u||s(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){(function(t){var n=r(7),o=r(8),i=r(9),a=r(10),s=r(11),l=r(12);e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",u={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(n.thatReturnsNull),arrayOf:function(e){return f((function(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,n,o,i+"["+l+"]",s);if(c instanceof Error)return c}return null}))},element:f((function(t,r,n,o,i){var a=t[r];return e(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement.")})),instanceOf:function(e){return f((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||c;return new p("Invalid "+o+" `"+i+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,r,n,o){return h(e[t])?null:new p("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,r,n,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=t[r],l=g(a);if("object"!==l)return new p("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,n,o,i+"."+c,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,r,n,o,i){for(var a=t[r],s=0;s<e.length;s++)if(d(a,e[s]))return null;return new p("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+n+"`, expected one of "+JSON.stringify(e)+".")})):n.thatReturnsNull},oneOfType:function(e){if(!Array.isArray(e))return n.thatReturnsNull;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),t),n.thatReturnsNull}return f((function(t,r,n,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,r,n,o,i,s))return null;return new p("Invalid "+o+" `"+i+"` supplied to `"+n+"`.")}))},shape:function(e){return f((function(t,r,n,o,i){var a=t[r],l=g(a);if("object"!==l)return new p("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(a,c,n,o,i+"."+c,s);if(d)return d}}return null}))},exact:function(e){return f((function(t,r,n,o,i){var l=t[r],c=g(l);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");var u=a({},t[r],e);for(var d in u){var f=e[d];if(!f)return new p("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(l,d,n,o,i+"."+d,s);if(m)return m}return null}))}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){this.message=e,this.stack=""}function f(e){function r(r,n,i,a,l,u,d){return a=a||c,u=u||i,d!==s&&t&&o(!1,"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"),null==n[i]?r?null===n[i]?new p("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `null`."):new p("The "+l+" `"+u+"` is marked as required in `"+a+"`, but its value is `undefined`."):null:e(n,i,a,l,u)}var n=r.bind(null,!1);return n.isRequired=r.bind(null,!0),n}function m(e){return f((function(t,r,n,o,i,a){var s=t[r];return g(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+n+"`, expected `"+e+"`."):null}))}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var n=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=l,u.PropTypes=u,u}}).call(t,r(5))},function(e,t){function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){e.exports=function(e,t,r,n,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,r(5))},function(e,t,r){(function(t){var n=r(7);e.exports=n}).call(t,r(5))},function(e,t){var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(r){a=r(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(t){e.exports=function(e,t,r,n,o){}}).call(t,r(5))},function(e,t,r){var n=r(7),o=r(8),i=r(11);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t){e.exports=Is},function(e,t){var r=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,o=[],i=void 0,a=!1,s=function(e,r){return t(e,o[r])};return function(){for(var t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];return a&&n===this&&r.length===o.length&&r.every(s)?i:(a=!0,n=this,o=r,i=e.apply(this,r))}}}]);const nh=Ur(rh.exports);var oh=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ih="object"==typeof jr&&jr&&jr.Object===Object&&jr,ah="object"==typeof self&&self&&self.Object===Object&&self,sh=ih||ah||Function("return this")(),lh=sh,ch=function(){return lh.Date.now()},uh=/\s/;var dh=function(e){for(var t=e.length;t--&&uh.test(e.charAt(t)););return t},ph=/^\s+/;var fh=function(e){return e?e.slice(0,dh(e)+1).replace(ph,""):e},mh=sh.Symbol,hh=mh,gh=Object.prototype,vh=gh.hasOwnProperty,yh=gh.toString,bh=hh?hh.toStringTag:void 0;var wh=function(e){var t=vh.call(e,bh),r=e[bh];try{e[bh]=void 0;var n=!0}catch(Ki){}var o=yh.call(e);return n&&(t?e[bh]=r:delete e[bh]),o},Ch=Object.prototype.toString;var _h=wh,xh=function(e){return Ch.call(e)},kh=mh?mh.toStringTag:void 0;var Sh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kh&&kh in Object(e)?_h(e):xh(e)},Eh=function(e){return null!=e&&"object"==typeof e};var Fh=fh,Th=oh,Oh=function(e){return"symbol"==typeof e||Eh(e)&&"[object Symbol]"==Sh(e)},Mh=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,Ah=/^0o[0-7]+$/i,Ph=parseInt;var Rh=oh,Vh=ch,Dh=function(e){if("number"==typeof e)return e;if(Oh(e))return NaN;if(Th(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Th(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Fh(e);var r=Lh.test(e);return r||Ah.test(e)?Ph(e.slice(2),r?2:8):Mh.test(e)?NaN:+e},Ih=Math.max,Nh=Math.min;const Hh=Ur((function(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function m(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function h(){var e=Vh();if(m(e))return g(e);s=setTimeout(h,function(e){var r=t-(e-l);return d?Nh(r,i-(e-c)):r}(e))}function g(e){return s=void 0,p&&n?f(e):(n=o=void 0,a)}function v(){var e=Vh(),r=m(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=Dh(t)||0,Rh(r)&&(u=!!r.leading,i=(d="maxWait"in r)?Ih(Dh(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Vh())},v})),Bh=$o(od,{target:"eqjfw6j1"})((()=>({marginBottom:"0.25rem",display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}}))," ",(({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}),";"),jh=$o(sd,{target:"eqjfw6j0"})((()=>({position:"relative",cursor:"pointer",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","&[data-focus]":{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}})),";"),Uh=ze((({inputLabel:e,value:t,className:r,onChange:n,onBlur:o,getItems:i,error:a,helperText:s,placeholder:l,itemsTitle:c,emptyItemTitle:u,emptyItemPrefix:d,defaultItemTitle:p,defaultItemPrefix:f,complianceText:m},h)=>{const[g,v]=ce({key:-1,displayValue:t}),[y,b]=ce({items:[],isOpen:!1});de((()=>{v({key:-1,displayValue:t||""})}),[t]);const w=ge(Hh((async e=>{if(e.length>=3){const t=await i(e);b({items:t,isOpen:!0})}else b({items:[],isOpen:!1})}),500),[i]),C=y.items.length>0;return zn("div",{className:r,children:[zn(cd,{children:[Wn(Ga,{css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),Wn("div",{css:{position:"relative",marginTop:"0.5rem"},children:Wn(ld,{value:g,onChange:e=>{v(e||{key:-1,displayValue:""}),n((null==e?void 0:e.displayValue)||"")},children:zn("div",{css:{position:"relative",marginTop:"0.5rem"},children:[Wn(Bh,{ref:h,onChange:async e=>{const t=e.target.value.trim();v({key:-1,displayValue:t}),n(t),w(t)},onBlur:e=>{const t=e.target;o(t.value.trim()),b({items:[],isOpen:!1})},placeholder:l,hasError:!!a,displayValue:e=>(null==e?void 0:e.displayValue)||""}),y.isOpen&&g.displayValue.length>=3&&zn(ad,{modal:!1,css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:[C&&Wn("div",{css:{position:"relative",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:c}),y.items.map((e=>Wn(jh,{value:e,children:Wn(nh,{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"600"},highlightStyle:{fontWeight:400},highlightTag:"span",searchWords:g.displayValue.split(" ")||[],autoEscape:!0,textToHighlight:e.displayValue})},e.key))),C&&Wn("div",{css:{borderTopWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(243 244 246 / var(--tw-border-opacity))"}}),Wn("div",{css:{position:"relative",userSelect:"none",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:C?p:u}),zn(jh,{value:{key:"default",displayValue:g.displayValue.toUpperCase()},children:[C?f:d," ",Wn("span",{css:{fontWeight:"700"},children:g.displayValue.toUpperCase()})]})]})]})})})]}),(null==a?void 0:a.message)&&Wn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:a.message}),Wn(Od,{children:s}),m&&Wn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:m})]})})),Wh=()=>{const{state:e,dispatch:t}=pp(),{dispatch:r}=Zn(),n=Td(),{handleSubmit:o,control:i}=Bf({mode:"onBlur",defaultValues:{...e.employmentDetails}}),a=async e=>{const t=await(async(e,t)=>{const r=new URLSearchParams(t).toString(),n=new URL(`${e.url}${o=e.subRoute,`/salary-packaging/${o}/v1.0/employer/name-suggestions`}?${r}`);var o;return await sm(n,"GET")})(n.backend,(r=e,{searchKey:r}));var r;return(null==t?void 0:t.data)?t.data.map(((e,t)=>({key:t,displayValue:e.employerName}))):[]};return zn(Ud,{onSubmit:o((e=>{var o,i,a;t({type:"EmploymentDetailsSubmitted",payload:e}),r({type:"NextPageSelected"}),um(n.backend,(o=n.tracking,i=!!n.features.isGated,a=e,{eventName:"employmentDetailsSubmitted",session:pm(o,i),properties:{employmentDetails:mm(a)}}))})),children:[Wn(Wd,{children:Wn(rf,{name:"annualSalary",control:i,rules:{min:{message:"Annual salary must be more than $5000",value:5e3},max:{message:"Annual salary must be less than $100 000 000",value:1e8},required:"Please provide the annual salary"},render:({field:e,fieldState:t})=>Wn(Qd,{id:"annualSalary",label:"Annual salary",helperText:"Gross salary, before tax and excluding super.",max:1e8,min:5e3,rangeAdjustment:5e3,prefix:"$",css:{gridColumn:"span 4 / span 4"},error:t.error,...e})})}),zn(Wd,{css:{gap:"0px","@media (min-width: 768px)":{gap:"1rem"}},children:[Wn(rf,{name:"payFrequency",control:i,rules:{validate:Yf,required:"Please select your pay frequency"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"1 / -1","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"Pay frequency",error:t.error,items:tp,...e})}),Wn(rf,{name:"employmentType",control:i,rules:{validate:Kf,required:"Please select your employment type"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"1 / -1",marginTop:"1rem","@media (min-width: 768px)":{gridColumn:"span 2 / span 2",marginTop:"0px"}},inputLabel:"Employment type",error:t.error,items:rp,...e})})]}),!n.features.hideEmployerName&&Wn(Wd,{children:Wn(rf,{name:"employerName",control:i,rules:{validate:{validName:e=>rm(e)||"Employer name is not valid"},required:"Please provide the name of your employer"},render:({field:e,fieldState:t})=>n.features.showEmployerSearch?Wn(Uh,{inputLabel:"Employer name",itemsTitle:"Are you looking for...",emptyItemTitle:"We couldn't find the employer you're searching for...",emptyItemPrefix:"Use this name:",defaultItemTitle:"Can't find your employer?",defaultItemPrefix:"Use this name:",placeholder:"Search for your company",complianceText:"This information is used only for your quote and won’t be shared with your employer.",getItems:a,error:t.error,css:{gridColumn:"span 4 / span 4"},...e}):Wn(bm,{css:{gridColumn:"span 4 / span 4"},label:"Employer name",id:"employerName",type:"text",error:t.error,...e})})}),Wn(Wd,{children:Wn(rf,{name:"location",control:i,rules:{validate:Xf,required:"Please select your state"},render:({field:e,fieldState:t})=>Wn(Md,{css:{gridColumn:"span 4 / span 4","@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}},inputLabel:"State",items:np,error:t.error,...e})})}),Wn(Wd,{children:zn(zd,{children:[Wn(qd,{}),Wn($d,{type:"submit"})]})})]})},zh=$o("div",{target:"e14xkt9j7"})({position:"relative",height:"50vw",minHeight:"10rem",width:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","@media (min-width: 768px)":{height:"20vw"},"@media (min-width: 1024px)":{height:"10rem"}},";"),$h=$o("p",{target:"e14xkt9j6"})([{paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}],""),qh=$o("h4",{target:"e14xkt9j5"})({marginBottom:"1rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.5rem",lineHeight:"1.75rem",fontWeight:"700"},";"),Zh=$o("div",{target:"e14xkt9j4"})((()=>({position:"absolute",left:"auto",right:"0px",margin:"auto",height:"50vw",minHeight:"10rem",width:"100%",overflow:"hidden",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"600ms","@media (min-width: 768px)":{height:"20vw"},"@media (min-width: 1024px)":{left:"0px",top:"0px",height:"10rem"}}))," ",(({isShown:e})=>e?{opacity:"1"}:{opacity:"0"})," img{",{position:"absolute",bottom:"0px",top:"0px",marginTop:"auto",marginBottom:"auto",verticalAlign:"middle"},";}"),Gh=$o("div",{target:"e14xkt9j3"})([{marginTop:"1.5rem",display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))"}],""),Yh=$o("div",{target:"e14xkt9j2"})([{gridColumn:"span 3 / span 3",justifySelf:"end"}],""),Kh=$o("div",{target:"e14xkt9j1"})([{gridColumn:"span 1 / span 1",display:"grid",maxWidth:"fit-content",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"0.5rem",justifySelf:"start",borderRadius:"9999px",backgroundColor:"var(--fl-color-primary-100)",padding:"0.5rem"}],""),Xh=$o("button",{target:"e14xkt9j0"})({height:"0.5rem",width:"0.5rem",borderRadius:"9999px",backgroundColor:"var(--fl-color-primary-600)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"200ms"}," ",(({isActive:e})=>e?{opacity:"1"}:{opacity:"0.3"}),";"),Jh=({items:e,title:t})=>{const[r,n]=ce(e.length),[o,i]=ce();return de((()=>{if((null==o?void 0:o.index)!=r&&e.length>1){(null==o?void 0:o.timeoutId)&&clearTimeout(null==o?void 0:o.timeoutId);const t=setTimeout((()=>n((r+1)%e.length)),5e3);i({timeoutId:t,index:r})}return()=>clearTimeout(null==o?void 0:o.timeoutId)}),[o,r,e]),Wn(b,{children:0===e.length?zn("div",{children:[Wn($h,{as:"div",children:Wn(Rm,{height:1.25,width:12})}),Wn(qh,{as:"div",children:Wn(Rm,{height:1.75})}),Wn(zh,{children:Wn(Rm,{height:10})})]}):zn("div",{children:[Wn($h,{children:t}),zn("div",{css:{display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",overflow:"hidden"},children:[Wn(qh,{children:e[r].title}),Wn(zh,{children:e.map(((e,t)=>Wn(Zh,{src:e.src,isShown:r===t,children:Wn("img",{src:e.src})},e.title)))})]}),zn(Gh,{children:[Wn(Kh,{children:e.map(((e,t)=>Wn(Xh,{type:"button",isActive:r===t,onClick:()=>n(t)},t)))}),Wn(Yh,{children:Wn(Id,{href:"https://www.flarehr.com/cars/latest-deals",arrowDirection:"right",variant:"sm",children:"See more vehicles"})})]})]})})},Qh=()=>{const{content:{banners:{support:e}}}=Td();return zn("div",{css:{display:"flex","@media (min-width: 768px)":{display:"block"}},children:[Wn("div",{css:{alignSelf:"center",paddingRight:"1rem"},children:Wn(e.icon,{css:{height:"5rem",width:"5rem"}})}),zn("div",{css:{marginTop:"1rem"},children:[Wn("h4",{css:{marginBottom:"0.75rem",fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},children:zm(e.heading)}),Wn("p",{css:{paddingBottom:"0px",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:zm(e.paragraph)})]})]})},eg=()=>{var e,t,r,n,o;const[i,a]=ce(),{state:s,dispatch:l}=pp(),{state:c}=Zn(),u=Td(),[d,p]=ce(!1),f=c.pageState.summaryPage.currentTab;return de((()=>{var e,t,r,n;switch(f){case"EV":a(null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.recommendation);break;case"ICE":a(null==(n=null==(r=s.results)?void 0:r.ice)?void 0:n.recommendation)}}),[s,f]),de((()=>{(async()=>{var e,t;try{if(!(null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.estimation)&&!u.features.hideVehicleRecommendations){const e=await cm(u.backend,xm({...s.vehicleOptions,engineType:"ev"}));l({type:"EvRecommendationResultUpdated",payload:im(e)})}p(!1)}catch(r){p(!0)}})()}),[null==(t=null==(e=s.results)?void 0:e.ev)?void 0:t.estimation,u.backend,u.features.hideVehicleRecommendations,s.vehicleOptions,l]),de((()=>{(async()=>{var e,t;try{if(!(null==(t=null==(e=s.results)?void 0:e.ice)?void 0:t.estimation)&&"ICE"===f&&!u.features.hideVehicleRecommendations){const e=await cm(u.backend,xm({...s.vehicleOptions,engineType:"ice"}));l({type:"IceRecommendationResultUpdated",payload:im(e)})}p(!1)}catch(r){p(!0)}})()}),[null==(n=null==(r=s.results)?void 0:r.ice)?void 0:n.estimation,u.backend,u.features.hideVehicleRecommendations,s.vehicleOptions,f,l]),zn("div",{css:{display:"block","@media (min-width: 768px)":{display:"inline-flex"},"@media (min-width: 1024px)":{display:"block",maxWidth:"20.5rem"}},children:[d||u.features.hideVehicleRecommendations?Wn(b,{}):Wn(Am,{css:{margin:"auto",marginBottom:"2.5rem",marginRight:"0px",display:"block",width:"100%",minWidth:"16.5rem",maxWidth:"100%","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","@media (min-width: 768px)":{marginBottom:"1.5rem",marginRight:"2.5rem"},"@media (min-width: 1024px)":{marginRight:"0px",maxWidth:"20.5rem"}},children:Wn(Jh,{title:"You may be interested in:",items:(null==(o=null==i?void 0:i.data)?void 0:o.map((e=>({src:e.photoUri,title:e.shortDescription}))))||[]})}),Wn(Qh,{})]})},tg=e=>g("svg",{viewBox:"0 0 84 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group 58"},g("path",{id:"Vector",d:"M42.0832 83.8353C65.2331 83.8353 83.9998 65.0686 83.9998 41.9186C83.9998 18.7687 65.2331 0.00195312 42.0832 0.00195312C18.9332 0.00195312 0.166504 18.7687 0.166504 41.9186C0.166504 65.0686 18.9332 83.8353 42.0832 83.8353Z",fill:"url(#paint0_linear_585_2736)"}),g("path",{id:"Vector_2",d:"M21.1043 52.7916L38.5552 78.7516L26.8728 86.6047C25.4813 87.5401 23.5906 87.1717 22.6535 85.7777L8.59315 64.8616C7.65775 63.4701 8.02613 61.5794 9.42019 60.6422L21.1025 52.7891L21.1043 52.7916Z",fill:"url(#paint1_linear_585_2736)"}),g("path",{id:"Vector_3",d:"M72.6195 22.7688C71.0792 20.1624 67.6948 19.2698 65.0698 20.776C62.9593 21.9909 59.8817 23.7358 56.3177 25.7595C49.016 29.9032 39.9291 35.0602 34.583 38.2431C34.4745 38.3082 34.3877 38.3547 34.3165 38.3919C34.2886 38.3299 34.2545 38.2555 34.2173 38.1625C33.8454 37.2452 33.4859 36.3216 33.1233 35.4011C32.5685 33.9817 31.9921 32.5158 31.3846 31.0809C30.2534 28.4094 28.555 25.0126 25.4527 22.4062C23.398 20.68 20.8194 20.1004 17.9961 20.7264C16.6045 21.0333 15.9661 21.7585 15.681 22.3101C15.402 22.8494 15.1789 23.7513 15.7027 25.0002C16.1149 25.9827 16.6913 26.8443 17.2523 27.6779L17.4134 27.9166C19.8618 31.5798 20.8969 34.9549 20.6676 38.5313C20.587 39.7741 20.525 41.0169 20.463 42.2597C20.367 44.1595 20.2709 46.1244 20.1097 48.0428C19.6665 53.3455 20.3856 58.5646 22.2451 63.5512C24.2441 68.9159 26.8226 72.6721 30.3526 75.3746C34.5272 78.5699 38.9591 79.5554 43.5273 78.3127C43.5521 78.3065 43.5769 78.3003 43.6017 78.291C45.1172 77.8664 46.487 77.1009 47.8135 76.3633C48.0459 76.2331 48.2752 76.106 48.5077 75.979C50.7608 74.7486 55.2794 72.1359 56.9964 71.1349L56.3394 70.0068L44.3052 44.1595L44.9839 45.2721C48.892 42.8888 56.0511 38.7762 62.3704 35.1501C65.5781 33.3092 68.6091 31.5705 70.636 30.3835C71.919 29.6335 72.8333 28.428 73.2083 26.9899C73.5833 25.5488 73.3726 24.0488 72.6164 22.7657L72.6195 22.7688Z",fill:"url(#paint2_linear_585_2736)"}),g("path",{id:"Vector_4",d:"M58.4685 37.2206C56.9623 36.6379 55.2918 36.8239 53.8879 37.7319C51.7928 39.0863 49.5986 40.391 47.4787 41.6524C46.2638 42.3745 41.894 44.8973 40.6884 45.6349C39.5262 46.3446 38.7235 47.4138 38.4291 48.6442C38.116 49.9397 38.3764 51.3529 39.1574 52.6236C40.4126 54.6659 42.5944 55.5306 44.6802 54.9449C45.0954 54.8271 45.5076 54.6536 45.9105 54.418C49.0872 52.5554 55.6482 48.7403 59.4788 46.4531C61.5801 45.1979 62.3642 43.202 61.6886 40.8342C61.2454 39.1762 60.0429 37.8249 58.4747 37.2175L58.4685 37.2206Z",fill:"#FF876F"}),g("path",{id:"Vector_5",d:"M62.0544 46.7352C60.5482 46.1526 58.8777 46.3385 57.4738 47.2466C55.3787 48.6009 53.1845 49.9057 51.0647 51.1671C49.8498 51.8892 45.4799 54.4119 44.2743 55.1495C43.1121 55.8593 42.3094 56.9285 42.015 58.1589C41.702 59.4543 41.9623 60.8676 42.7433 62.1382C43.9985 64.1806 46.1803 65.0453 48.2661 64.4595C48.6814 64.3418 49.0936 64.1682 49.4965 63.9327C52.6731 62.07 59.2341 58.2549 63.0648 55.9677C65.166 54.7125 65.9501 52.7167 65.2745 50.3489C64.8313 48.6908 63.6288 47.3396 62.0606 46.7321L62.0544 46.7352Z",fill:"#FF876F"}),g("path",{id:"Vector_6",d:"M64.9118 56.9129C63.4056 56.3303 61.7352 56.5162 60.3312 57.4243C58.2362 58.7787 56.0419 60.0834 53.9221 61.3448C52.7072 62.0669 48.3373 64.5897 47.1317 65.3273C45.9695 66.037 45.1668 67.1062 44.8724 68.3366C44.5594 69.6321 44.8197 71.0453 45.6007 72.316C46.8559 74.3583 49.0377 75.223 51.1235 74.6373C51.5388 74.5195 51.951 74.3459 52.3539 74.1104C55.5306 72.2478 62.0916 68.4327 65.9222 66.1455C68.0234 64.8903 68.8075 62.8944 68.1319 60.5266C67.6887 58.8685 66.4862 57.5173 64.918 56.9098L64.9118 56.9129Z",fill:"#FF876F"}),g("path",{id:"Vector_7",d:"M34.295 38.3019C34.2671 38.2399 34.233 38.1655 34.1958 38.0726C33.8239 37.1552 33.4644 36.2316 33.1018 35.3112C32.547 33.8917 31.9706 32.4258 31.3631 30.9909C30.2319 28.3194 28.5336 24.9227 25.4313 22.3162C23.3765 20.59 20.798 20.0104 17.9746 20.6365C16.5831 20.9433 15.9446 21.6685 15.6595 22.2202C15.3806 22.7594 15.1574 23.6613 15.6812 24.9103C16.0934 25.8927 16.6698 26.7543 17.2308 27.588L17.3919 27.8266C19.8403 31.4899 20.8754 34.8649 20.6461 38.4414C20.5655 39.6841 20.5035 40.9269 20.4416 42.1697C20.3455 44.0695 20.2494 46.0344 20.0882 47.9528C19.9302 49.8278 19.9209 51.6904 20.0511 53.5376L27.3807 51.3464C27.3807 51.3464 35.389 48.7989 34.2919 38.2988",fill:"url(#paint3_linear_585_2736)"}),g("path",{id:"Vector_8",d:"M27.1234 83.24C28.6211 83.24 29.8352 82.0259 29.8352 80.5282C29.8352 79.0305 28.6211 77.8164 27.1234 77.8164C25.6257 77.8164 24.4116 79.0305 24.4116 80.5282C24.4116 82.0259 25.6257 83.24 27.1234 83.24Z",fill:"#C6D6FD"}),g("path",{id:"Vector_9",d:"M56.4708 15.8014L49.1143 22.2803L50.5481 23.9083L57.9046 17.4295L56.4708 15.8014Z",fill:"#161E37"}),g("path",{id:"Vector_10",d:"M42.8432 10.3023L40.6743 10.3496L40.883 19.9115L43.0519 19.8641L42.8432 10.3023Z",fill:"#161E37"}),g("path",{id:"Vector_11",d:"M28.6045 14.7085L26.8994 16.0498L32.9334 23.7203L34.6385 22.379L28.6045 14.7085Z",fill:"#161E37"})),g("defs",null,g("linearGradient",{id:"paint0_linear_585_2736",x1:5.77605,y1:62.8816,x2:78.3903,y2:20.9587,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"white"}),g("stop",{offset:.05,stopColor:"#FCFCFE"}),g("stop",{offset:.67,stopColor:"#D8E2FD"}),g("stop",{offset:1,stopColor:"#CBD9FD"})),g("linearGradient",{id:"paint1_linear_585_2736",x1:14.2897,y1:57.3725,x2:31.7406,y2:83.3325,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.12,stopColor:"#16203D"}),g("stop",{offset:.27,stopColor:"#19274F"}),g("stop",{offset:.45,stopColor:"#1C326D"}),g("stop",{offset:.65,stopColor:"#214297"}),g("stop",{offset:.86,stopColor:"#2855CC"}),g("stop",{offset:1,stopColor:"#2D64F2"})),g("linearGradient",{id:"paint2_linear_585_2736",x1:18.3277,y1:62.082,x2:69.0399,y2:18.4958,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.13,stopColor:"#B85BE1"}),g("stop",{offset:.32,stopColor:"#D16AB8"}),g("stop",{offset:.5,stopColor:"#E57798"}),g("stop",{offset:.68,stopColor:"#F37F81"}),g("stop",{offset:.85,stopColor:"#FC8573"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint3_linear_585_2736",x1:32.8554,y1:33.208,x2:15.6862,y2:38.0275,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F",stopOpacity:.99}),g("stop",{offset:.08,stopColor:"#FF876F",stopOpacity:.79}),g("stop",{offset:.17,stopColor:"#FF876F",stopOpacity:.6}),g("stop",{offset:.26,stopColor:"#FF876F",stopOpacity:.44}),g("stop",{offset:.35,stopColor:"#FF876F",stopOpacity:.3}),g("stop",{offset:.45,stopColor:"#FF876F",stopOpacity:.19}),g("stop",{offset:.56,stopColor:"#FF876F",stopOpacity:.11}),g("stop",{offset:.67,stopColor:"#FF876F",stopOpacity:.05}),g("stop",{offset:.81,stopColor:"#FF876F",stopOpacity:.01}),g("stop",{offset:1,stopColor:"#FF876F",stopOpacity:0})))),rg=()=>{var e,t,r,n;const{state:o,dispatch:i}=Zn(),{state:a,dispatch:s}=pp(),l=Td();de((()=>{var e,t,r,n,o,i,c;a.isDirty&&(null==(e=a.contactDetails)?void 0:e.isSubmitted)&&((null==(r=null==(t=a.results)?void 0:t.ice)?void 0:r.estimation)||(null==(o=null==(n=a.results)?void 0:n.ev)?void 0:o.estimation))&&(um(l.backend,hm(l.tracking,!!l.features.isGated,a.vehicleOptions,a.employmentDetails,a.contactDetails,null==(i=a.results.ev)?void 0:i.estimation,null==(c=a.results.ice)?void 0:c.estimation)),s({type:"EnquirySubmitted"}))}),[null==(t=null==(e=a.results)?void 0:e.ev)?void 0:t.estimation,null==(n=null==(r=a.results)?void 0:r.ice)?void 0:n.estimation,a.vehicleOptions,a.employmentDetails,a.contactDetails,a.isDirty,l.tracking,l.features.isGated,l.backend,s]);return zn("div",{css:{width:"100%",paddingBottom:"4rem",paddingTop:"1.5rem",textAlign:"center"},children:[zn("div",{children:[Wn(tg,{css:{margin:"auto",marginBottom:"1rem",height:"6rem",width:"6rem"}}),Wn(Yo,{css:{marginBottom:"2rem",textAlign:"center"},children:"Thanks, we’ve received your enquiry"})]}),Wn("div",{css:{marginLeft:"auto",marginRight:"auto",maxWidth:"35rem"},children:zn("p",{css:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},children:["A Flare Cars expert ",Wn("span",{css:{fontWeight:"600"},children:"will be in touch soon"})," to discuss your estimate and your novated leasing options."]})}),Wn("div",{css:{marginTop:"2rem",display:"flex",justifyContent:"center"},children:Wn((()=>Wn(Id,{variant:"lg",onClick:()=>i({type:"PageSelected",payload:o.pageOrder.filter((e=>"Summary"===e.id))[0]}),arrowDirection:"uTurn",children:"View your estimate"})),{})})]})},ng=$o("div",{target:"el2nhj02"})({display:"inline-flex","@media (min-width: 1024px)":{display:"block"}},";"),og=$o("div",{target:"el2nhj01"})([{marginRight:"1.5rem","@media (min-width: 1024px)":{marginBottom:"1rem"}}],""),ig=$o("div",{target:"el2nhj00"})([{backgroundColor:"transparent"}],""),ag=({icon:e,heading:t,paragraph:r,className:n})=>zn(ng,{className:n,children:[Wn(og,{children:Wn(e,{css:{height:"5rem",width:"5rem","@media (min-width: 768px)":{height:"6rem",width:"6rem"}}})}),zn(ig,{children:[Wn("h3",{children:t}),Wn("p",{css:{marginBottom:"0px",fontFamily:'var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},children:r})]})]}),sg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:71,height:20,viewBox:"0 0 71 20",fill:"none",...e},g("g",{clipPath:"url(#clip0_1904_6059)"},g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6639 3.87647C4.179 3.45703 6.45272 2.14501 8.05832 0.186652C8.12533 0.109862 8.21421 0.0548043 8.31335 0.0286585C8.4125 0.00251269 8.51732 0.00649186 8.61414 0.0400772C8.71096 0.0736625 8.7953 0.135295 8.85615 0.21694C8.917 0.298584 8.95155 0.396452 8.95528 0.497781V8.19023C8.95363 8.27717 8.92928 8.36222 8.88457 8.43711C8.83987 8.51201 8.77633 8.57422 8.70013 8.61771C8.62392 8.6612 8.53763 8.68449 8.44964 8.68532C8.36164 8.68615 8.27492 8.66449 8.19789 8.62245L1.4937 4.79809C1.40731 4.74443 1.33917 4.66643 1.29808 4.57415C1.25698 4.48187 1.2448 4.37954 1.26312 4.28036C1.28143 4.18117 1.3294 4.08969 1.40084 4.0177C1.47227 3.94571 1.5639 3.89652 1.6639 3.87647ZM1.6639 16.1467C4.179 16.5662 6.45272 17.8782 8.05832 19.8365C8.12533 19.9133 8.21421 19.9684 8.31335 19.9945C8.4125 20.0207 8.51732 20.0167 8.61414 19.9831C8.71096 19.9495 8.7953 19.8879 8.85615 19.8063C8.917 19.7246 8.95155 19.6267 8.95528 19.5254V11.8397C8.9548 11.7522 8.93129 11.6663 8.88706 11.5905C8.84283 11.5147 8.7794 11.4515 8.70301 11.4072C8.62661 11.363 8.53987 11.3391 8.45131 11.3379C8.36276 11.3368 8.27542 11.3584 8.19789 11.4007L1.4937 15.2251C1.40731 15.2788 1.33917 15.3568 1.29808 15.449C1.25698 15.5413 1.2448 15.6437 1.26312 15.7428C1.28143 15.842 1.3294 15.9335 1.40084 16.0055C1.47227 16.0775 1.5639 16.1267 1.6639 16.1467ZM0.0282893 6.34364C0.940505 8.69672 0.953213 11.2977 0.0640314 13.6594C0.0322604 13.7549 0.030097 13.8576 0.0578186 13.9544C0.0855401 14.0511 0.141882 14.1374 0.219616 14.2023C0.29735 14.2672 0.39293 14.3077 0.494093 14.3185C0.595256 14.3293 0.697387 14.3101 0.787383 14.2631L7.48817 10.4404C7.5632 10.3955 7.62524 10.3322 7.66829 10.2566C7.71134 10.181 7.73396 10.0958 7.73396 10.0091C7.73396 9.92236 7.71134 9.83711 7.66829 9.76155C7.62524 9.68599 7.5632 9.62267 7.48817 9.5777L0.748237 5.73147C0.657578 5.68437 0.554677 5.6653 0.452904 5.67673C0.351132 5.68817 0.255193 5.72959 0.177554 5.7956C0.0999138 5.86162 0.0441625 5.94918 0.0175436 6.04692C-0.00907535 6.14465 -0.00533122 6.24804 0.0282893 6.34364ZM17.4381 16.1467C14.923 16.5662 12.6492 17.8782 11.0436 19.8365C10.9766 19.9133 10.8878 19.9684 10.7886 19.9945C10.6895 20.0207 10.5847 20.0167 10.4878 19.9831C10.391 19.9495 10.3067 19.8879 10.2458 19.8063C10.185 19.7246 10.1504 19.6267 10.1467 19.5254V11.8397C10.1473 11.7524 10.1709 11.6668 10.215 11.5912C10.2592 11.5156 10.3224 11.4526 10.3985 11.4084C10.4747 11.3642 10.5611 11.3402 10.6494 11.3389C10.7377 11.3375 10.8249 11.3589 10.9024 11.4007L17.6083 15.2251C17.6947 15.2788 17.7628 15.3568 17.8039 15.449C17.845 15.5413 17.8572 15.6437 17.8389 15.7428C17.8205 15.842 17.7726 15.9335 17.7011 16.0055C17.6297 16.0775 17.5381 16.1267 17.4381 16.1467ZM11.0436 0.186652C12.6492 2.14501 14.923 3.45703 17.4381 3.87647C17.5381 3.89652 17.6297 3.94571 17.7011 4.0177C17.7726 4.08969 17.8205 4.18117 17.8389 4.28036C17.8572 4.37954 17.845 4.48187 17.8039 4.57415C17.7628 4.66643 17.6947 4.74443 17.6083 4.79809L10.9024 8.62245C10.8254 8.66409 10.7389 8.68542 10.6511 8.68439C10.5634 8.68336 10.4773 8.65999 10.4014 8.61655C10.3254 8.57311 10.2621 8.51106 10.2175 8.43638C10.1729 8.36171 10.1485 8.27693 10.1467 8.19023V0.497781C10.1504 0.396452 10.185 0.298584 10.2458 0.21694C10.3067 0.135295 10.391 0.0736625 10.4878 0.0400772C10.5847 0.00649186 10.6895 0.00251269 10.7886 0.0286585C10.8878 0.0548043 10.9766 0.109862 11.0436 0.186652ZM19.0363 6.36382C18.1468 8.72556 18.1602 11.3268 19.0737 13.6796C19.1076 13.7754 19.1116 13.8791 19.0849 13.9771C19.0583 14.0751 19.0023 14.1629 18.9244 14.2291C18.8464 14.2952 18.7501 14.3365 18.648 14.3477C18.5459 14.3589 18.4428 14.3394 18.3521 14.2917L11.6104 10.4455C11.5354 10.4005 11.4734 10.3372 11.4303 10.2616C11.3872 10.1861 11.3646 10.1008 11.3646 10.0141C11.3646 9.9274 11.3872 9.84216 11.4303 9.76659C11.4734 9.69103 11.5354 9.62771 11.6104 9.58274L18.3129 5.76006C18.4029 5.71314 18.505 5.69386 18.6062 5.70469C18.7074 5.71553 18.8029 5.75598 18.8807 5.82086C18.9584 5.88574 19.0148 5.9721 19.0425 6.06884C19.0702 6.16558 19.068 6.2683 19.0363 6.36382Z",fill:"#2696EC"}),g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.9848 7.84645V17.0334H26.4547V7.84645H24.7129V5.66268H26.4547V4.65478C26.4547 3.51026 26.7254 2.68995 27.2668 2.19384C27.8083 1.69773 28.7061 1.44912 29.9604 1.448H31.377V3.44867H30.5172C29.9599 3.44867 29.5654 3.56066 29.3338 3.78464C29.1006 4.01477 28.9848 4.40281 28.9848 4.96051V5.6694H31.3362V7.85317L28.9848 7.84645ZM36.1751 1.45472H33.6211V17.0301H36.1751V1.45472ZM50.0447 17.0334V5.6694H47.5793V7.22828C47.1205 6.66484 46.5384 6.21115 45.8767 5.90121C45.2125 5.59401 44.487 5.43732 43.7535 5.44262C42.9931 5.42656 42.2378 5.56772 41.536 5.85703C40.8343 6.14635 40.2018 6.5774 39.6791 7.12245C38.5724 8.25689 38.019 9.65674 38.019 11.322C38.0201 13.0231 38.5582 14.4308 39.6331 15.5451C40.708 16.6594 42.0582 17.2165 43.6837 17.2165C44.4336 17.2215 45.1752 17.0614 45.8545 16.7478C46.5269 16.435 47.1185 15.9755 47.5844 15.404V17.0334H50.0447ZM40.7979 12.7007C40.6224 12.2622 40.5378 11.7934 40.5491 11.322C40.5378 10.8507 40.6224 10.3818 40.7979 9.94328C40.9733 9.50473 41.2361 9.10532 41.5707 8.76868C41.8924 8.43965 42.2779 8.17774 42.7042 7.99849C43.1305 7.81925 43.5889 7.72632 44.0523 7.72522C44.5157 7.72413 44.9746 7.81488 45.4018 7.99211C45.8289 8.16933 46.2157 8.42942 46.539 8.75692C46.8689 9.09815 47.127 9.50056 47.2983 9.94086C47.4696 10.3812 47.5506 10.8506 47.5367 11.322C47.5506 11.7934 47.4696 12.2629 47.2983 12.7032C47.127 13.1435 46.8689 13.5459 46.539 13.8871C46.2157 14.2146 45.8289 14.4747 45.4018 14.6519C44.9746 14.8291 44.5157 14.9199 44.0523 14.9188C43.5889 14.9177 43.1305 14.8248 42.7042 14.6455C42.2779 14.4663 41.8924 14.2044 41.5707 13.8753C41.2361 13.5387 40.9733 13.1393 40.7979 12.7007ZM55.0318 10.1814V17.0334H52.5016V5.6694H54.962V6.81504C55.2358 6.39225 55.6105 6.04214 56.0533 5.79539C56.5024 5.55656 57.0059 5.43512 57.5159 5.44262C57.8502 5.43935 58.1831 5.48578 58.5034 5.58037C58.7734 5.65471 59.023 5.78789 59.2339 5.97009L57.9569 8.16898C57.7966 8.06558 57.6208 7.98791 57.4359 7.93884C57.2653 7.89425 57.0897 7.87111 56.9132 7.86997C56.6485 7.85837 56.3848 7.90951 56.1443 8.01911C55.9037 8.12871 55.6933 8.29358 55.5306 8.49991C55.1981 8.91874 55.0318 9.47924 55.0318 10.1814ZM70.9957 11.7621C71.0076 11.6714 71.0076 11.5337 71.0076 11.3506C71.0019 9.64051 70.4423 8.22833 69.3288 7.11405C68.2153 5.99977 66.8072 5.44262 65.1046 5.44262C63.3815 5.43702 61.9524 5.99193 60.8173 7.10733C59.6822 8.22273 59.1147 9.63547 59.1147 11.3455C59.1147 13.0702 59.6641 14.4784 60.7628 15.5703C61.8616 16.6622 63.2856 17.2081 65.0348 17.2081C66.3257 17.2381 67.5945 16.8744 68.6682 16.1666C69.6826 15.4906 70.4318 14.4923 70.7914 13.3378H68.1216C67.8295 13.8597 67.3955 14.2908 66.8685 14.5826C66.3209 14.8782 65.7048 15.0281 65.0807 15.0176C64.2438 15.0437 63.4289 14.75 62.806 14.1979C62.201 13.6592 61.8451 12.9313 61.7384 12.0141H70.9616C70.9783 11.9309 70.9896 11.8467 70.9957 11.7621ZM65.0623 7.63976C65.0633 7.63979 65.0644 7.63981 65.0654 7.63984H65.0586C65.0598 7.63981 65.0611 7.63979 65.0623 7.63976ZM62.9167 8.37224C63.5195 7.88166 64.2812 7.62167 65.0623 7.63976C65.8474 7.6249 66.6117 7.88902 67.2158 8.384C67.8158 8.8755 68.1986 9.57785 68.2834 10.3427H61.7674C61.905 9.57342 62.3117 8.87614 62.9167 8.37224Z",fill:"#143057"})),g("defs",null,g("clipPath",{id:"clip0_1904_6059"},g("rect",{width:71,height:20,fill:"white"})))),lg=()=>Wn("div",{css:{marginTop:"2.75rem","@media (min-width: 768px)":{marginTop:"auto"}},children:zn("div",{css:{display:"grid",width:"100%",gridAutoColumns:"auto",gridAutoFlow:"column",placeContent:"end"},children:[Wn("p",{css:{marginRight:"0.5rem",placeSelf:"center",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Powered by"}),Wn(sg,{})]})}),cg=({backendUrl:e,subRoute:t,content:r,initialState:n,features:o})=>{const{state:i}=Zn(),a=co(so()),s=fe(null);var l;l={backend:{url:e,subRoute:t},tracking:a,content:r,features:o},Fd=U({...l,backend:{url:l.backend.url.replace(/\/?$/,""),subRoute:l.backend.subRoute},features:{...l.features}});const c=Td(),{pages:u}=r;de((()=>{(async()=>{c.backend.url&&await um(c.backend,((e,t)=>({eventName:"appLoaded",session:pm(e,t)}))(co(so()),!!o.isGated))})()}),[c.backend,o.isGated,t]),de((()=>{var e;i.hasNavigated&&s&&s.current&&(e=s.current).scrollIntoView&&(e.getBoundingClientRect().bottom>window.innerHeight||e.getBoundingClientRect().top<0)&&e.scrollIntoView({behavior:"smooth"})}),[i.currentPage,i.pageOrder,i.hasNavigated]);const{Main:d,Information:p}=(()=>{switch(i.currentPage.id){case"Vehicle":return{Main:Wn(vm,{}),Information:Wn(ag,{...u.vehicleOptions.infoPanel})};case"Employment":return{Main:Wn(Wh,{}),Information:Wn(ag,{...u.employmentDetails.infoPanel})};case"Contact":return{Main:Wn(wm,{}),Information:Wn(ag,{...u.contactDetails.infoPanel})};case"Summary":return{Main:Wn(Qm,{}),Information:Wn(eg,{})};case"ThankYou":return{Main:Wn(rg,{})};default:return{Main:Wn(b,{})}}})(),f=!o.hideInfoPanel||"Summary"===i.currentPage.id;return zn(dp,{initialState:n,children:[Wn("div",{ref:s}),zn(qo,{children:[zn(Go,{fullWidth:!p||!f,children:["Information"!==i.currentPage.type&&zn(Ko,{children:[Wn(th,{css:{justifySelf:"start","@media (min-width: 768px)":{order:"2",gridColumn:"span 1 / span 1",justifySelf:"auto"}}}),Wn(Yo,{css:{justifySelf:"start","@media (min-width: 768px)":{order:"1",gridColumn:"span 3 / span 3",justifySelf:"auto"}},children:i.currentPage.title})]}),d]}),p&&f?zn(Zo,{children:[p,o.isPartnerDistribution&&Wn(lg,{})]}):Wn(b,{})]})]})},ug=Kn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),dg=Kn`
11
11
  body {
12
12
  input::-webkit-outer-spin-button,
13
13
  input::-webkit-inner-spin-button {
@@ -124,4 +124,4 @@ var e,t,r,n,o,i,a,s,l=Object.defineProperty,c=(e,t,r)=>(((e,t,r)=>{t in e?l(e,t,
124
124
  ${{paddingLeft:"2rem",paddingRight:"2rem"}}
125
125
  }
126
126
  }
127
- `,mg=()=>zn(b,{children:[Wn(pg,{}),Wn(Yn,{styles:fg})]}),hg=e=>`\n(function(h,o,u,n,d) {\n h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}\n d=o.createElement(u);d.async=1;d.src=n\n n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)\n})(window,document,'script','https://www.datadoghq-browser-agent.com/us1/v4/datadog-rum.js','DD_RUM')\nwindow.DD_RUM.onReady(function() {\n window.DD_RUM.init({\n clientToken: 'pub7545f3e00e06cc0ea275a912a1b395da',\n applicationId: 'c740d580-dc87-4135-ad31-034fcc4bdecf',\n site: 'datadoghq.com',\n service: 'cars-calculator',\n env: '${window.location.hostname.toLocaleLowerCase().replace(/[^.a-z]/,"")}',\n // Specify a version number to identify the deployed version of your application in Datadog \n version: '${"1.0.1321".toLocaleLowerCase().replace(/[^0-9a-z.]/,"")}', \n sessionSampleRate: 100,\n sessionReplaySampleRate: ${e?0:5},\n trackUserInteractions: true,\n trackResources: true,\n trackLongTasks: true,\n defaultPrivacyLevel: 'mask-user-input',\n });\n\n window.DD_RUM.startSessionReplayRecording();\n})\n`,gg=({disableSessionRecord:e})=>Wn("script",{dangerouslySetInnerHTML:{__html:hg(e)}}),vg={pages:{vehicleOptions:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M50.1169 235.368C50.1169 235.368 72.4518 227.464 110.384 235.368C148.309 243.272 160.539 245.404 186.024 233.61C204.913 224.874 257.51 191.64 283.493 174.999C291.638 169.787 293.77 158.826 288.176 150.938C283.112 143.78 273.427 141.672 265.842 146.075L185.098 192.916L165.416 185.012H50.1169",fill:"url(#paint0_linear_419_151)"}),g("path",{d:"M183.73 170.199H141.814C141.814 170.199 122.256 166.006 98.4978 159.02C74.7393 152.034 27.6035 169.569 27.6035 169.569V200.936H183.73C192.217 200.936 199.102 194.059 199.102 185.564C199.102 177.069 192.225 170.192 183.73 170.192V170.199Z",fill:"url(#paint1_linear_419_151)"}),g("path",{d:"M55.765 156.632H8.69922V251.168H55.765V156.632Z",fill:"url(#paint2_linear_419_151)"}),g("path",{d:"M37.9033 241.701C43.3942 241.701 47.8455 237.249 47.8455 231.758C47.8455 226.268 43.3942 221.816 37.9033 221.816C32.4124 221.816 27.9612 226.268 27.9612 231.758C27.9612 237.249 32.4124 241.701 37.9033 241.701Z",fill:"#0095F2"}),g("path",{d:"M108.245 112.795C110.991 122.869 112.672 128.89 113.839 135.705C101.454 135.705 91.4882 135.705 87.8241 135.705C87.8241 135.534 87.8319 135.363 87.8319 135.192C87.8319 115.02 71.4794 98.6672 51.3073 98.6672C33.7646 98.6672 22.4844 109.115 18.1434 127.638C16.8442 127.249 15.6929 126.813 15.1016 126.354C14.347 125.763 13.6235 124.332 13.1646 122.371C13.2968 121.733 13.4446 121.088 13.6391 120.442C15.7318 113.324 15.3117 111.651 19.7071 109.138C20.9596 106.836 18.6569 104.743 19.7071 100.137C20.7573 95.532 23.4723 81.0933 30.1705 79.4208C30.2171 79.3819 30.2794 79.3274 30.3338 79.2729C30.3105 79.2963 30.2794 79.3274 30.256 79.3507C46.9897 79.6853 84.1211 80.5566 114.819 81.3734V81.4979C107.607 87.6903 103.531 95.5398 108.237 112.802L108.245 112.795Z",fill:"url(#paint3_linear_419_151)"}),g("path",{d:"M64.937 102.487C64.9215 102.829 64.8515 103.172 64.7114 103.514C64.7814 103.203 64.8592 102.86 64.937 102.487Z",fill:"#C0AD96"}),g("path",{d:"M55.9206 51.1658C57.5932 51.1658 75.7504 48.9176 121.743 48.1318C167.735 47.3461 163.363 50.2245 168.808 52.7373C174.246 55.25 205.901 80.9378 205.901 80.9378C202.291 84.0263 183.457 83.6062 154.992 82.556C144.179 82.1592 123.384 81.5758 101.36 81.0156C73.9378 80.3155 44.6014 79.6309 30.2561 79.3431C33.0723 76.8458 52.5987 52.8151 55.9206 51.158V51.1658Z",fill:"#CBD9FD"}),g("path",{d:"M19.5203 103.911C19.3881 102.853 19.3803 101.623 19.7148 100.138C20.4694 96.8079 22.1031 88.3361 25.4872 83.2639C29.2758 79.732 31.7497 82.3459 31.4929 83.7073C29.9759 87.5815 24.8959 102.541 23.2467 104.113C21.9475 105.35 20.5317 105.677 19.5203 103.911Z",fill:"#A650FF"}),g("path",{d:"M153.949 54.5111C153.949 54.5111 157.162 57.7396 179.139 83.2718C179.139 83.2718 183.465 83.3263 184.927 83.3263C176.852 83.3107 166.747 82.984 155 82.5561C144.84 82.1827 138.694 81.8948 115.091 81.3658L112.648 54.5111H153.957H153.949Z",fill:"url(#paint4_linear_419_151)"}),g("path",{d:"M209.184 135.192C209.184 149.156 220.503 160.483 234.475 160.483C248.447 160.483 259.766 149.164 259.766 135.192C259.766 121.22 248.447 109.901 234.475 109.901C220.503 109.901 209.184 121.22 209.184 135.192ZM229.41 135.192C229.41 132.399 231.674 130.135 234.467 130.135C237.26 130.135 239.524 132.399 239.524 135.192C239.524 137.985 237.26 140.248 234.467 140.248C231.674 140.248 229.41 137.985 229.41 135.192Z",fill:"#143057"}),g("path",{d:"M26.4829 135.915C26.4829 149.483 37.4831 160.483 51.0505 160.483C64.6179 160.483 75.618 149.483 75.618 135.915C75.618 122.348 64.6179 111.348 51.0505 111.348C37.4831 111.348 26.4829 122.348 26.4829 135.915ZM46.1338 135.915C46.1338 133.2 48.3354 130.999 51.0505 130.999C53.7655 130.999 55.9671 133.2 55.9671 135.915C55.9671 138.63 53.7655 140.832 51.0505 140.832C48.3354 140.832 46.1338 138.63 46.1338 135.915Z",fill:"#143057"}),g("path",{d:"M61.9419 55.7324C61.9419 55.7324 62.0041 55.6935 62.043 55.6779C72.5297 55.6235 86.3539 55.5379 100.684 55.4368C100.808 55.5379 100.87 55.6313 100.87 55.7324V81.0079C79.8813 80.5489 58.7756 79.9265 43.8857 79.6231C43.8857 79.6231 52.8399 65.6979 61.9419 55.7324Z",fill:"url(#paint5_linear_419_151)"}),g("path",{d:"M24.6313 124.425C24.6313 124.425 24.6547 124.371 24.6625 124.347C24.6547 124.371 24.6391 124.402 24.6313 124.425Z",fill:"url(#paint6_linear_419_151)"}),g("path",{d:"M234.529 97.936C213.952 97.936 197.273 114.615 197.273 135.192C197.273 135.332 197.273 135.472 197.273 135.612C195.554 135.62 193.835 135.635 192.115 135.643C192.917 118.131 194.939 102.674 191.828 94.902C188.833 87.4026 185.962 84.283 184.919 83.3261C196.41 83.3495 203.785 82.7427 205.901 80.9301C205.901 80.9301 223.638 82.3459 241.375 84.5397C259.112 86.7335 276.375 93.9607 280.77 99.9197C284.598 105.109 286.045 110.313 286.356 128.96C285.967 129.497 280.039 132.671 271.746 134.149C271.194 114.055 254.748 97.9282 234.521 97.9282L234.529 97.936Z",fill:"url(#paint7_linear_419_151)"}),g("path",{d:"M191.836 94.902C194.94 102.674 192.925 118.132 192.123 135.643C192.03 135.643 191.937 135.643 191.851 135.643C189.836 135.659 144.435 135.698 113.854 135.713C112.679 128.898 111.007 122.877 108.261 112.803C103.554 95.5399 107.631 87.6905 114.85 81.498V81.3735C131.591 81.817 146.435 82.2448 155.008 82.5638C166.755 82.9994 176.86 83.3184 184.935 83.334C185.978 84.2986 188.84 87.4104 191.843 94.9098L191.836 94.902Z",fill:"url(#paint8_linear_419_151)"}),g("path",{d:"M191.836 94.902C194.94 102.674 192.925 118.132 192.123 135.643C192.03 135.643 191.937 135.643 191.851 135.643C189.836 135.659 144.435 135.698 113.854 135.713C112.679 128.898 111.007 122.877 108.261 112.803C103.554 95.5399 107.631 87.6905 114.85 81.498L115.099 81.3735C131.856 81.817 146.442 82.2448 155.008 82.5638C166.755 82.9994 176.86 83.3184 184.935 83.334C185.978 84.2986 188.84 87.4104 191.843 94.9098L191.836 94.902Z",fill:"url(#paint9_linear_419_151)"}),g("path",{d:"M24.6626 124.347C24.7948 124.013 24.9427 123.686 25.0905 123.367C24.9427 123.694 24.8026 124.021 24.6626 124.347Z",fill:"#ABBBE2"}),g("path",{d:"M78.4885 144.698C79.531 141.719 80.0678 138.568 80.0911 135.417C80.0678 138.669 79.5076 141.789 78.4885 144.698Z",fill:"#ABBBE2"}),g("path",{d:"M205.909 80.9301C204.415 82.2059 200.307 82.8827 193.983 83.1628C187.93 77.8416 166.14 58.673 161.021 54.1298L164.078 51.0414C166.14 51.5937 167.61 52.1616 168.816 52.7217C174.254 55.2345 205.909 80.9223 205.909 80.9223V80.9301Z",fill:"url(#paint10_linear_419_151)"}),g("path",{d:"M174.806 81.0701C177.42 83.7929 179.147 84.8353 178.89 86.3057C178.626 87.7682 174.861 88.764 170.574 88.1883C166.28 87.6126 166.404 86.08 166.443 85.3799C166.49 84.6797 168.217 83.5828 168.894 82.4315C169.571 81.2801 174.806 81.0701 174.806 81.0701Z",fill:"#610AC5"}),g("path",{d:"M169.648 73.3217C162.81 72.7771 160.546 73.1661 159.76 75.2043C158.975 77.2425 158.189 82.1903 159.994 84.4619C161.799 86.7413 169.773 85.8622 173.546 83.1238C176.673 80.8522 176.463 77.1181 175.809 76.1379C175.024 74.9632 171.78 73.4773 169.648 73.3139V73.3217Z",fill:"#8B4FFF"}),g("path",{d:"M12.6823 126.743C12.6823 126.401 12.6979 126.059 12.7212 125.709C12.7212 125.646 12.729 125.576 12.7368 125.514C12.7601 125.172 12.7912 124.822 12.8301 124.472C12.8301 124.41 12.8457 124.34 12.8535 124.277C12.9001 123.919 12.9468 123.554 13.0091 123.196C13.0168 123.134 13.0246 123.079 13.0402 123.017C13.0791 122.807 13.1258 122.589 13.1724 122.371C13.6314 124.332 14.3549 125.771 15.1095 126.354C15.7008 126.813 16.8521 127.257 18.1513 127.638C22.4922 109.115 33.7725 98.6673 51.3152 98.6673C71.4873 98.6673 87.8397 115.02 87.8397 135.192C87.8397 135.363 87.8397 135.534 87.832 135.705C91.4961 135.713 101.454 135.713 113.846 135.705C144.435 135.69 192.03 135.635 192.123 135.635C193.843 135.628 195.562 135.612 197.281 135.604C197.281 135.464 197.281 135.324 197.281 135.184C197.281 114.607 213.96 97.9282 234.537 97.9282C254.764 97.9282 271.217 114.055 271.762 134.149C280.055 132.679 285.983 129.497 286.372 128.961C286.372 128.999 286.372 129.038 286.372 129.077C286.372 129.225 286.372 129.388 286.372 129.544C286.38 130.081 286.387 130.633 286.395 131.193C286.395 131.318 286.395 131.458 286.395 131.582C286.395 132.189 286.411 132.796 286.411 133.426C286.411 133.519 286.411 133.605 286.411 133.698C286.411 134.367 286.418 135.052 286.418 135.752C286.418 135.814 286.418 135.876 286.418 135.939C286.418 136.686 286.418 137.44 286.418 138.218C286.418 138.615 285.376 139.338 285.119 139.541C283.268 140.98 268.207 144.162 263.85 145.087C263.469 145.165 262.497 144.924 262.084 144.582C263.057 141.657 263.593 138.529 263.593 135.27C263.593 126.852 260.054 119.275 254.39 113.907C240.418 100.075 217.43 103.716 208.126 121.041C207.566 122.083 207.169 123.165 206.897 124.269C205.528 127.669 204.765 131.38 204.765 135.27C204.765 138.646 205.341 141.89 206.391 144.916C199.864 144.932 87.0618 145.048 86.4861 145.033C86.4861 145.033 81.2194 144.807 79.1968 144.722C80.2003 141.758 80.7526 138.584 80.7526 135.27C80.7526 119.026 67.582 105.856 51.3385 105.856C35.095 105.856 21.9243 119.026 21.9243 135.27C21.9243 136.172 21.971 137.067 22.0488 137.954C21.9399 137.93 21.831 137.907 21.7221 137.884C21.5587 137.852 21.3953 137.814 21.232 137.775C21.2164 137.775 21.2008 137.775 21.1853 137.767C21.0375 137.736 20.8819 137.697 20.7263 137.666C20.7029 137.666 20.6718 137.65 20.6485 137.65C20.3062 137.572 19.9639 137.487 19.6138 137.401C19.5827 137.393 19.5516 137.386 19.5205 137.378C19.3804 137.339 19.2404 137.308 19.1004 137.269C19.0615 137.261 19.0226 137.246 18.9837 137.238C18.8203 137.191 18.6492 137.145 18.4858 137.098C18.4702 137.098 18.4547 137.09 18.4391 137.082C18.2913 137.043 18.1513 136.997 18.0113 136.958C17.9724 136.942 17.9257 136.934 17.8868 136.919C17.7623 136.88 17.6378 136.841 17.5134 136.802C17.4823 136.794 17.4434 136.779 17.4122 136.771C17.2644 136.724 17.1166 136.67 16.9766 136.623C16.9455 136.616 16.9144 136.6 16.891 136.592C16.7821 136.553 16.6732 136.507 16.5643 136.468C16.5254 136.452 16.4865 136.437 16.4476 136.421C16.3465 136.382 16.2531 136.335 16.152 136.297C16.152 136.297 16.1364 136.297 16.1286 136.289C16.1053 136.281 16.0819 136.273 16.0664 136.258C15.9497 136.203 15.8408 136.149 15.7319 136.094C15.7008 136.079 15.6774 136.063 15.6541 136.055C15.5763 136.017 15.4985 135.97 15.4285 135.931C15.4051 135.915 15.374 135.9 15.3507 135.884C15.2651 135.83 15.1795 135.775 15.1095 135.713C14.9928 135.628 14.8839 135.511 14.7672 135.386C14.7594 135.379 14.7517 135.371 14.7439 135.355C14.6427 135.231 14.5338 135.099 14.4327 134.943C14.4249 134.927 14.4094 134.912 14.4016 134.888C14.3004 134.741 14.2071 134.57 14.1137 134.391C14.106 134.367 14.0904 134.352 14.0826 134.328C13.9893 134.142 13.8959 133.947 13.8103 133.737C13.8026 133.714 13.7948 133.698 13.787 133.675C13.7014 133.473 13.6236 133.247 13.5458 133.021C13.5303 132.967 13.5069 132.905 13.4914 132.85C13.4214 132.617 13.3436 132.383 13.2813 132.135C13.2813 132.103 13.2658 132.08 13.258 132.049C13.188 131.784 13.1258 131.52 13.0713 131.24C13.0635 131.201 13.0557 131.154 13.048 131.115C12.9935 130.843 12.9468 130.555 12.9001 130.267C12.9001 130.221 12.8846 130.174 12.8768 130.12C12.8379 129.824 12.799 129.521 12.7679 129.209C12.7679 129.163 12.7601 129.116 12.7523 129.069C12.7368 128.852 12.7212 128.626 12.7134 128.4C12.6979 128.167 12.6901 127.934 12.6823 127.692C12.6823 127.428 12.6668 127.156 12.6745 126.883C12.6745 126.829 12.6745 126.782 12.6745 126.728L12.6823 126.743Z",fill:"#CBD9FD"}),g("defs",null,g("linearGradient",{id:"paint0_linear_419_151",x1:50.1169,y1:192.83,x2:291.304,y2:192.83,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.02,stopColor:"#8F51F9"}),g("stop",{offset:.26,stopColor:"#B764C8"}),g("stop",{offset:.48,stopColor:"#D673A1"}),g("stop",{offset:.69,stopColor:"#EC7E85"}),g("stop",{offset:.87,stopColor:"#FA8474"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_419_151",x1:27.6035,y1:179.161,x2:199.102,y2:179.161,gradientUnits:"userSpaceOnUse"},g("stop",{offset:.09,stopColor:"#8B4FFF"}),g("stop",{offset:.19,stopColor:"#9152F6"}),g("stop",{offset:.36,stopColor:"#A45BDF"}),g("stop",{offset:.56,stopColor:"#C36AB9"}),g("stop",{offset:.8,stopColor:"#ED7E84"}),g("stop",{offset:.89,stopColor:"#FF876F"})),g("linearGradient",{id:"paint2_linear_419_151",x1:8.69922,y1:203.9,x2:55.765,y2:203.9,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"white"}),g("stop",{offset:1,stopColor:"#CBD9FD"})),g("linearGradient",{id:"paint3_linear_419_151",x1:64.0111,y1:145.297,x2:64.0111,y2:79.2652,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint4_linear_419_151",x1:184.927,y1:68.9187,x2:112.64,y2:68.9187,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint5_linear_419_151",x1:100.87,y1:68.2184,x2:43.8857,y2:68.2184,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint6_linear_419_151",x1:24.6469,y1:145.297,x2:24.6469,y2:79.2658,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint7_linear_419_151",x1:235.642,y1:145.297,x2:235.642,y2:79.2652,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint8_linear_419_151",x1:149.865,y1:145.297,x2:149.865,y2:79.2653,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint9_linear_419_151",x1:149.865,y1:138.055,x2:149.865,y2:54.511,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint10_linear_419_151",x1:205.909,y1:67.1138,x2:161.021,y2:67.1138,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})))),heading:"What type of car are you interested in?",paragraph:"To get started, select from the vehicle and lease options available. If you don’t have a specific vehicle in mind, consider what is an appropriate budget for your needs."}},employmentDetails:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M122.01 24H181.918C192.861 24 201.75 32.889 201.75 43.8323V68.545H102.178V43.8323C102.178 32.889 111.067 24 122.01 24Z",fill:"#161E37"}),g("path",{d:"M272.04 50.2056H27.9596C12.518 50.2056 0 62.7235 0 78.1652V230.54C0 245.982 12.518 258.5 27.9596 258.5H272.04C287.482 258.5 300 245.982 300 230.54V78.1652C300 62.7235 287.482 50.2056 272.04 50.2056Z",fill:"url(#paint0_linear_419_98)"}),g("path",{d:"M0 174.662H300V237.706C300 249.191 290.68 258.51 279.196 258.51H20.8044C9.31988 258.51 0 249.191 0 237.706V174.662Z",fill:"url(#paint1_linear_419_98)"}),g("path",{d:"M170.304 152.695H132.312V174.321H170.304V152.695Z",fill:"white"}),g("path",{d:"M170.304 174.662H132.312V198.242H170.304V174.662Z",fill:"#0095F2"}),g("defs",null,g("linearGradient",{id:"paint0_linear_419_98",x1:150,y1:258.5,x2:150,y2:50.2056,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#0095F2"}),g("stop",{offset:.29,stopColor:"#307CF6"}),g("stop",{offset:.61,stopColor:"#6163FB"}),g("stop",{offset:.86,stopColor:"#7F54FD"}),g("stop",{offset:1,stopColor:"#8B4FFF"})),g("linearGradient",{id:"paint1_linear_419_98",x1:205.148,y1:304.479,x2:97.6382,y2:118.281,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#2E66F7"}),g("stop",{offset:.06,stopColor:"#2B5EE3"}),g("stop",{offset:.24,stopColor:"#254BAF"}),g("stop",{offset:.41,stopColor:"#1F3A84"}),g("stop",{offset:.57,stopColor:"#1B2E62"}),g("stop",{offset:.73,stopColor:"#18254A"}),g("stop",{offset:.88,stopColor:"#161F3C"}),g("stop",{offset:1,stopColor:"#161E37"})))),heading:"Tell us a bit about your employment situation",paragraph:"Enter your employment details to find out how much a novated lease will cost and what you can save."}},contactDetails:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M55.8862 49.5002C51.9981 47.274 47.5082 45.9985 42.7173 45.9985C27.9618 45.9985 16 58.056 16 72.9279V91.787H69.4313V72.9279C69.4313 62.8845 63.9702 54.1303 55.8828 49.5002H55.8862Z",fill:"url(#paint0_linear_741_6601)"}),g("path",{d:"M42.4198 44.2136C52.4199 44.2136 60.5266 36.1069 60.5266 26.1068C60.5266 16.1067 52.4199 8 42.4198 8C32.4197 8 24.313 16.1067 24.313 26.1068C24.313 36.1069 32.4197 44.2136 42.4198 44.2136Z",fill:"#2E66F7"}),g("path",{d:"M86.0566 44.521L92.902 51.3664C94.215 52.6794 94.215 54.8072 92.902 56.1202L89.4781 59.5441L77.8788 47.9449L81.3028 44.521C82.6158 43.208 84.7436 43.208 86.0566 44.521Z",fill:"#A650FF"}),g("path",{opacity:.94,d:"M89.4782 59.5407L77.8789 47.9414L45.8062 80.0141L57.4055 91.6133L89.4782 59.5407Z",fill:"url(#paint1_linear_741_6601)"}),g("path",{d:"M57.4079 91.6127L45.8052 80.0134L41.7119 97.0738L57.4079 91.6127Z",fill:"#0095F2"}),g("defs",null,g("linearGradient",{id:"paint0_linear_741_6601",x1:42.7139,y1:91.787,x2:42.7139,y2:45.9985,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.16,stopColor:"#161F3B"}),g("stop",{offset:.32,stopColor:"#182547"}),g("stop",{offset:.49,stopColor:"#1B2F5B"}),g("stop",{offset:.65,stopColor:"#203D78"}),g("stop",{offset:.82,stopColor:"#264F9D"}),g("stop",{offset:.98,stopColor:"#2D64CA"}),g("stop",{offset:.99,stopColor:"#2E66CD"})),g("linearGradient",{id:"paint1_linear_741_6601",x1:51.6071,y1:85.8149,x2:83.6797,y2:53.7422,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.15,stopColor:"#BA5CDE"}),g("stop",{offset:.39,stopColor:"#D76EAE"}),g("stop",{offset:.6,stopColor:"#ED7B8B"}),g("stop",{offset:.78,stopColor:"#FA8476"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"Finally, tell us a little more about you…",paragraph:"Provide your contact details, and we’ll generate a personalised report based on your needs."}}},banners:{error:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M86.8376 63.668L49.2598 46.5395C48.5963 46.2365 47.8357 46.2365 47.1722 46.5335L9.15503 63.6619C7.23705 64.5255 7.14918 67.2191 9.00959 68.2039L47.0267 88.3745C47.7721 88.7714 48.6659 88.7683 49.4083 88.3684L86.9861 68.1978C88.8313 67.207 88.7435 64.5346 86.8376 63.665V63.668Z",fill:"url(#paint0_linear_767_12323)"}),g("path",{d:"M58.335 31.2441L53.0689 11.3977C52.4871 9.20704 50.5025 7.67993 48.2361 7.67993H46.9362C44.6486 7.67993 42.6548 9.23128 42.0913 11.4462L36.8555 32.0288C45.6788 33.3923 53.2719 32.4106 58.332 31.241L58.335 31.2441Z",fill:"url(#paint1_linear_767_12323)"}),g("path",{d:"M62.9011 48.4482C58.3167 49.9905 46.5513 53.0265 32.3832 49.633L27.9473 67.0675C27.9473 67.0675 44.0577 74.7939 67.843 67.0675L62.9041 48.4482H62.9011Z",fill:"url(#paint2_linear_767_12323)"}),g("path",{d:"M62.9008 48.4484L58.3376 31.2441C53.2745 32.4137 45.6814 33.3954 36.8611 32.0319L32.3828 49.6331C46.551 53.0236 58.3164 49.9906 62.9008 48.4484Z",fill:"#FFD84D"}),g("defs",null,g("linearGradient",{id:"paint0_linear_767_12323",x1:7.66428,y1:67.4918,x2:88.3193,y2:67.4918,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_767_12323",x1:27.9443,y1:20.1877,x2:67.84,y2:20.1877,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.22,stopColor:"#FF8B6D"}),g("stop",{offset:.44,stopColor:"#FF9768"}),g("stop",{offset:.67,stopColor:"#FFAB5F"}),g("stop",{offset:.89,stopColor:"#FFC853"}),g("stop",{offset:.99,stopColor:"#FFD84D"})),g("linearGradient",{id:"paint2_linear_767_12323",x1:27.9442,y1:59.4743,x2:4.51341,y2:59.4743,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.22,stopColor:"#FF8B6D"}),g("stop",{offset:.44,stopColor:"#FF9768"}),g("stop",{offset:.67,stopColor:"#FFAB5F"}),g("stop",{offset:.89,stopColor:"#FFC853"}),g("stop",{offset:.99,stopColor:"#FFD84D"})))),heading:"Oops, something went wrong!",paragraph:"We couldn’t get your estimate at this time, please try again later.",backgroundColour:"#FFEEEB"},evSavings:{icon:e=>g("svg",{viewBox:"0 0 70 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group 18"},g("path",{id:"Vector",d:"M66.0127 22.3174V67.4818C66.0127 70.3794 63.6567 72.7354 60.7591 72.7354C57.8614 72.7354 55.5054 70.3794 55.5054 67.4818V61.7377C55.5054 60.9885 55.1805 60.2784 54.6148 59.7849L48.4254 54.4049C47.8266 53.8843 47.7634 52.9786 48.2839 52.3829C48.8015 51.7841 49.7072 51.7209 50.306 52.2414L56.4954 57.6215C57.6869 58.6565 58.373 60.158 58.373 61.7377V67.4818C58.373 68.7967 59.4442 69.8679 60.7591 69.8679C62.074 69.8679 63.1452 68.7967 63.1452 67.4818V23.4187",fill:"#CBD9FD"}),g("path",{id:"Vector_2",d:"M11.382 0.679688H45.7654C48.8134 0.679688 51.2868 3.15305 51.2868 6.20112V73.9237H5.8606V6.20112C5.8606 3.15305 8.33396 0.679688 11.382 0.679688Z",fill:"url(#paint0_linear_639_2036)"}),g("path",{id:"Vector_3",d:"M2.51162 72.5156H54.6358C55.8002 72.5156 56.745 73.4604 56.745 74.6249V81.3198H0.402344V74.6249C0.402344 73.4604 1.34716 72.5156 2.51162 72.5156Z",fill:"#161E37"}),g("path",{id:"Vector_4",d:"M15.4563 72.5156H43.2741V73.4996C43.2741 75.2869 41.8208 76.7402 40.0334 76.7402H18.6969C16.9096 76.7402 15.4563 75.2869 15.4563 73.4996V72.5156Z",fill:"#2E66F7"}),g("path",{id:"Vector_5",d:"M29.5352 9.48438H28.8491C24.1761 9.48438 20.3879 13.2726 20.3879 17.9456V52.4342C20.3879 57.1072 24.1761 60.8954 28.8491 60.8954H29.5352C34.2081 60.8954 37.9963 57.1072 37.9963 52.4342V17.9456C37.9963 13.2726 34.2081 9.48438 29.5352 9.48438Z",fill:"url(#paint1_linear_639_2036)"}),g("path",{id:"Vector_6",d:"M28.3105 41.9263C28.154 41.9263 27.9975 41.8781 27.8621 41.7788C27.5281 41.5321 27.4589 41.0597 27.7057 40.7257L30.8651 36.468H26.1019C25.8191 36.468 25.5603 36.3085 25.4309 36.0558C25.3015 35.803 25.3256 35.5021 25.4941 35.2735L29.3756 29.9356C29.6194 29.5986 30.0918 29.5263 30.4258 29.7701C30.7628 30.0138 30.835 30.4862 30.5912 30.8202L27.5793 34.9635H32.3605C32.6434 34.9635 32.9051 35.123 33.0315 35.3788C33.1579 35.6345 33.1338 35.9384 32.9623 36.1641L28.9123 41.6223C28.7648 41.8209 28.5361 41.9263 28.3075 41.9263H28.3105Z",fill:"#FF876F"}),g("g",{id:"Group"},g("path",{id:"Vector_7",d:"M61.8513 20.7524C61.2676 20.7524 60.7952 20.28 60.7952 19.6962V15.1196C60.7952 14.5359 61.2676 14.0635 61.8513 14.0635C62.435 14.0635 62.9075 14.5359 62.9075 15.1196V19.6962C62.9075 20.28 62.435 20.7524 61.8513 20.7524Z",fill:"#A650FF"}),g("path",{id:"Vector_8",d:"M66.78 20.7524C66.1963 20.7524 65.7239 20.28 65.7239 19.6962V15.1196C65.7239 14.5359 66.1963 14.0635 66.78 14.0635C67.3638 14.0635 67.8362 14.5359 67.8362 15.1196V19.6962C67.8362 20.28 67.3638 20.7524 66.78 20.7524Z",fill:"#A650FF"})),g("path",{id:"Vector_9",d:"M59.7421 17.2285H68.8893C69.3767 17.2285 69.7739 17.6257 69.7739 18.1131V24.799C69.7739 27.811 67.3276 30.2573 64.3157 30.2573C61.3037 30.2573 58.8574 27.811 58.8574 24.799V18.1131C58.8574 17.6257 59.2546 17.2285 59.7421 17.2285Z",fill:"url(#paint2_linear_639_2036)"})),g("defs",null,g("linearGradient",{id:"paint0_linear_639_2036",x1:28.5752,y1:73.9237,x2:28.5752,y2:.679688,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint1_linear_639_2036",x1:29.1891,y1:60.8954,x2:29.1891,y2:9.48438,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint2_linear_639_2036",x1:58.713,y1:26.0147,x2:70.5322,y2:19.1904,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})))),heading:e=>zn(Un,{children:["You could save an extra"," ",zn("span",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontWeight:"700"},children:["$",e.savings]})]}),paragraph:"Explore potential savings with an eligible Battery Electric Vehicle (BEV). Petrol, Diesel, and Hybrid (including Plug-In Hybrid) vehicles are not eligible for the Fringe Benefits Tax (FBT) exemption.",backgroundColour:"#F5EBFF"},maxEvSavings:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M48.8842 68.3729H47.2114V73.5408H48.8842V68.3729Z",fill:"#0095F2"}),g("path",{d:"M53.9739 13.7909C70.8102 16.7692 83.2606 31.8205 82.5296 49.3708C81.7647 67.6861 66.9275 82.088 48.8809 82.5844",stroke:"#2E66F7",strokeWidth:2.88,strokeMiterlimit:10,strokeLinecap:"round"}),g("path",{d:"M52.9876 88.32L47.0786 82.853L51.6855 76.485",stroke:"#2E66F7",strokeWidth:2.88,strokeLinecap:"round",strokeLinejoin:"round"}),g("path",{d:"M41.0269 82.1662C24.8094 78.6949 12.971 63.9496 13.6849 46.8209C14.4499 28.5056 29.2871 14.1037 47.3337 13.6073",stroke:"#0095F2",strokeWidth:2.88,strokeMiterlimit:10,strokeLinecap:"round"}),g("path",{d:"M43.2266 7.87512L49.1356 13.3422L44.5287 19.7068",stroke:"#0095F2",strokeWidth:2.88,strokeLinecap:"round",strokeLinejoin:"round"}),g("path",{d:"M48.8841 50.6662V21.0905C48.7583 21.0021 48.6937 20.9579 48.6937 20.9579C48.6937 20.9579 36.1549 29.4474 31.4019 43.6862L48.6937 50.7546L48.8841 50.6662Z",fill:"#0095F2"}),g("path",{d:"M48.6902 71.5721C48.6902 71.5721 48.7582 71.5653 48.8806 71.5551V50.6661L48.6902 50.7545L31.3983 43.6862C30.7217 45.7091 30.205 47.851 29.9024 50.1018C27.2198 70.0422 48.6902 71.5755 48.6902 71.5755V71.5721Z",fill:"url(#paint0_linear_743_7349)"}),g("path",{d:"M65.6798 42.8158C61.0865 30.1206 50.438 22.1988 48.8843 21.0939V50.6662L65.6798 42.8158Z",fill:"url(#paint1_linear_743_7349)"}),g("path",{d:"M65.6798 42.8158C61.0865 30.1206 50.438 22.1988 48.8843 21.0939V50.6662L65.6798 42.8158Z",fill:"#2E66F7"}),g("path",{d:"M67.4817 50.0985C67.1349 47.5248 66.5059 45.0904 65.6798 42.8125L48.8843 50.6629V71.5518C50.9922 71.3444 70.018 68.9373 67.4817 50.0951V50.0985Z",fill:"url(#paint2_linear_743_7349)"}),g("path",{d:"M67.4817 50.0985C67.1349 47.5248 66.5059 45.0904 65.6798 42.8125L48.8843 50.6629V71.5518C50.9922 71.3444 70.018 68.9373 67.4817 50.0951V50.0985Z",fill:"url(#paint3_linear_743_7349)"}),g("defs",null,g("linearGradient",{id:"paint0_linear_743_7349",x1:39.2759,y1:71.5721,x2:39.2759,y2:43.6862,gradientUnits:"userSpaceOnUse"},g("stop",{offset:.11,stopColor:"#0095F2"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint1_linear_743_7349",x1:29.6715,y1:35.88,x2:67.7129,y2:35.88,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.17,stopColor:"#A150FE"}),g("stop",{offset:.35,stopColor:"#9353FD"}),g("stop",{offset:.55,stopColor:"#7D57FC"}),g("stop",{offset:.75,stopColor:"#5E5DFA"}),g("stop",{offset:.96,stopColor:"#3664F7"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint2_linear_743_7349",x1:29.6715,y1:57.1839,x2:67.7129,y2:57.1839,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.17,stopColor:"#A150FE"}),g("stop",{offset:.35,stopColor:"#9353FD"}),g("stop",{offset:.55,stopColor:"#7D57FC"}),g("stop",{offset:.75,stopColor:"#5E5DFA"}),g("stop",{offset:.96,stopColor:"#3664F7"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint3_linear_743_7349",x1:44.9336,y1:64.718,x2:69.9772,y2:50.2583,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#2E66F7"}),g("stop",{offset:.08,stopColor:"#3B63F7"}),g("stop",{offset:.38,stopColor:"#695BFA"}),g("stop",{offset:.64,stopColor:"#8A55FD"}),g("stop",{offset:.85,stopColor:"#9E51FE"}),g("stop",{offset:1,stopColor:"#A650FF"})))),heading:"You’ve made a great choice!",paragraph:"Not only are you doing a great thing for the environment, but by choosing a Battery Electric Vehicle (BEV) you’re maximising your tax savings through the Fringe Benefits Tax (FBT) exemption.",disclaimer:()=>zn(Un,{children:[Wn("sup",{children:"*"}),"Savings calculated over the full lease term"]}),backgroundColour:"#EAF0FE"},luxuryCarSavings:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M35.8692 52.8943H14.0801V88.3167H35.8692V52.8943Z",fill:"url(#paint0_linear_731_6332)"}),g("path",{d:"M59.2242 33.2529H37.5908V88.3198H59.2242V33.2529Z",fill:"url(#paint1_linear_731_6332)"}),g("path",{d:"M82.0723 45.8538H60.7852V88.3199H82.0723V45.8538Z",fill:"url(#paint2_linear_731_6332)"}),g("path",{d:"M25.0537 50.3017C30.939 50.3017 35.71 45.4895 35.71 39.5533C35.71 33.6172 30.939 28.8049 25.0537 28.8049C19.1684 28.8049 14.3975 33.6172 14.3975 39.5533C14.3975 45.4895 19.1684 50.3017 25.0537 50.3017Z",fill:"#0095F2"}),g("path",{d:"M27.8371 41.5581C27.8371 38.2284 23.3128 39.7947 23.3128 37.5453C23.3128 36.8622 23.8148 36.2172 24.9681 36.2172C26.1214 36.2172 26.6933 36.7923 26.6933 37.7359H27.6624C27.6624 36.2522 26.5694 35.5437 25.4701 35.3848V33.4944H24.4661V35.388C23.1381 35.5786 22.3692 36.5032 22.3692 37.5485C22.3692 40.8432 26.884 39.0417 26.884 41.6184C26.884 42.4763 26.1151 43.0069 25.0412 43.0069C23.8053 43.0069 23.0364 42.2412 23.0364 41.288H22.0928C22.0928 42.6447 23.1095 43.6359 24.4725 43.8456V45.9648H25.4765V43.8615C26.9729 43.6963 27.8435 42.7368 27.8435 41.5612L27.8371 41.5581Z",fill:"white"}),g("path",{d:"M48.2471 29.1767C54.1324 29.1767 58.9033 24.3645 58.9033 18.4283C58.9033 12.4922 54.1324 7.67993 48.2471 7.67993C42.3618 7.67993 37.5908 12.4922 37.5908 18.4283C37.5908 24.3645 42.3618 29.1767 48.2471 29.1767Z",fill:"#FF876F"}),g("path",{d:"M51.0334 20.4331C51.0334 17.1034 46.5091 18.6697 46.5091 16.4203C46.5091 15.7372 47.0111 15.0922 48.1644 15.0922C49.3177 15.0922 49.8896 15.6673 49.8896 16.6109H50.8587C50.8587 15.1272 49.7657 14.4187 48.6664 14.2598V12.3694H47.6624V14.263C46.3344 14.4536 45.5655 15.3782 45.5655 16.4235C45.5655 19.7182 50.0803 17.9167 50.0803 20.4934C50.0803 21.3513 49.3114 21.8819 48.2375 21.8819C47.0016 21.8819 46.2327 21.1162 46.2327 20.163H45.2891C45.2891 21.5197 46.3058 22.5109 47.6688 22.7206V24.8398H48.6728V22.7365C50.1692 22.5713 51.0398 21.6118 51.0398 20.4362L51.0334 20.4331Z",fill:"black"}),g("path",{d:"M71.3809 41.7773C77.2662 41.7773 82.0371 36.9651 82.0371 31.0289C82.0371 25.0927 77.2662 20.2805 71.3809 20.2805C65.4956 20.2805 60.7246 25.0927 60.7246 31.0289C60.7246 36.9651 65.4956 41.7773 71.3809 41.7773Z",fill:"#A650FF"}),g("path",{d:"M74.1643 33.0337C74.1643 29.704 69.64 31.2703 69.64 29.0209C69.64 28.3378 70.142 27.6928 71.2953 27.6928C72.4486 27.6928 73.0205 28.2679 73.0205 29.2115H73.9895C73.9895 27.7278 72.8966 27.0193 71.7973 26.8604V24.97H70.7933V26.8636C69.4652 27.0542 68.6963 27.9788 68.6963 29.0241C68.6963 32.3188 73.2111 30.5173 73.2111 33.094C73.2111 33.9519 72.4422 34.4824 71.3683 34.4824C70.1324 34.4824 69.3635 33.7167 69.3635 32.7636H68.4199C68.4199 34.1202 69.4366 35.1115 70.7996 35.3212V37.4404H71.8036V35.3371C73.3001 35.1719 74.1706 34.2124 74.1706 33.0368L74.1643 33.0337Z",fill:"white"}),g("defs",null,g("linearGradient",{id:"paint0_linear_731_6332",x1:24.9746,y1:88.3167,x2:24.9746,y2:52.8943,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.19,stopColor:"#BE5ED7"}),g("stop",{offset:.45,stopColor:"#D970AA"}),g("stop",{offset:.68,stopColor:"#EE7C8A"}),g("stop",{offset:.87,stopColor:"#FA8476"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_731_6332",x1:48.4059,y1:88.3166,x2:48.4059,y2:33.2529,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.08,stopColor:"#1B2D5F"}),g("stop",{offset:.18,stopColor:"#203C87"}),g("stop",{offset:.28,stopColor:"#2449AA"}),g("stop",{offset:.39,stopColor:"#2753C6"}),g("stop",{offset:.51,stopColor:"#2A5BDB"}),g("stop",{offset:.64,stopColor:"#2C61EB"}),g("stop",{offset:.78,stopColor:"#2D64F4"}),g("stop",{offset:1,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint2_linear_731_6332",x1:71.4287,y1:88.3168,x2:71.4287,y2:45.8538,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.01,stopColor:"#A251FE"}),g("stop",{offset:.27,stopColor:"#6969FA"}),g("stop",{offset:.5,stopColor:"#3B7CF6"}),g("stop",{offset:.71,stopColor:"#1B89F4"}),g("stop",{offset:.88,stopColor:"#0792F2"}),g("stop",{offset:1,stopColor:"#0095F2"})))),heading:"You could save more!",paragraph:"Consider a Battery Electric Vehicle (BEV) below the Luxury Car Tax (LCT) threshold ($91,387 for financial year 2024-25) for even greater savings. Adjust your vehicle cost to compare the savings with the Fringe Benefits Tax (FBT) exemption.",disclaimer:()=>zn(Un,{children:[Wn("sup",{children:"*"}),"Savings calculated over the full lease term"]}),backgroundColour:"#FFEEEB"},getInTouch:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{opacity:.93,d:"M62.3617 15.7588C59.7524 14.3343 56.757 13.5222 53.5719 13.5222C43.4242 13.5222 35.2002 21.7495 35.2002 31.8939C35.2002 42.0383 42.6254 49.4336 52.0676 50.2024C52.5635 50.2423 53.066 50.269 53.5719 50.269C63.7196 50.269 71.9436 42.0416 71.9436 31.8973C71.9436 24.9346 68.0696 18.874 62.3584 15.7588H62.3617Z",fill:"#2E66F7"}),g("path",{d:"M51.4657 51.4736C36.4954 51.4736 24.3574 63.6116 24.3574 78.5819V91.8348H78.5739V78.5819C78.5739 63.6116 66.436 51.4736 51.4657 51.4736Z",fill:"url(#paint0_linear_837_4233)"}),g("path",{opacity:.87,d:"M88.2154 49.9327C87.2137 41.752 80.1113 35.2187 71.8174 34.9824C63.7797 34.7528 56.7938 39.9381 54.6671 47.6929C53.6021 51.5669 53.9648 55.1946 56.3878 58.5095C57.0268 59.3849 57.6092 60.3001 58.2216 61.1921C60.0089 63.7881 61.4799 66.5338 62.1656 69.6391C62.4118 70.7573 62.5782 71.8923 62.7813 73.0172L79.4822 73.0571C79.612 72.9673 79.6653 72.8075 79.6886 72.5646C79.9748 69.6757 80.7636 66.9199 82.2347 64.4204C83.4328 62.3836 84.7608 60.4199 86.0987 58.4696C87.876 55.8769 88.6048 53.0979 88.2188 49.9361L88.2154 49.9327Z",fill:"url(#paint1_linear_837_4233)"}),g("path",{d:"M79.4822 73.0537L79.4123 73.6761L78.4704 81.7969L63.4203 81.7603L62.7812 73.0171",fill:"#CBD9FD"}),g("path",{opacity:.71,d:"M52.3609 4.15991H11.3607C9.32715 4.15991 7.67969 5.80738 7.67969 7.84091V26.2193C7.67969 28.2528 9.32715 29.9003 11.3607 29.9003H16.6991L23.6717 35.5882V29.9003H52.3642C54.3978 29.9003 56.0452 28.2528 56.0452 26.2193V7.84424C56.0452 5.8107 54.3978 4.16324 52.3642 4.16324L52.3609 4.15991Z",fill:"url(#paint2_linear_837_4233)"}),g("path",{d:"M28.4775 57.2083H28.2212C28.2212 52.5388 24.4371 48.7546 19.7676 48.7546V48.4983C24.4371 48.4983 28.2212 44.7142 28.2212 40.0447H28.4775C28.4775 44.7142 32.2617 48.4983 36.9311 48.4983V48.7546C32.2617 48.7546 28.4775 52.5388 28.4775 57.2083Z",fill:"url(#paint3_linear_837_4233)"}),g("defs",null,g("linearGradient",{id:"paint0_linear_837_4233",x1:24.3574,y1:71.6526,x2:78.5739,y2:71.6526,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#0095F2"}),g("stop",{offset:.24,stopColor:"#2580F5"}),g("stop",{offset:.59,stopColor:"#5665FA"}),g("stop",{offset:.85,stopColor:"#7455FD"}),g("stop",{offset:1,stopColor:"#804FFF"})),g("linearGradient",{id:"paint1_linear_837_4233",x1:71.1657,y1:73.0311,x2:71.252,y2:34.9698,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.13,stopColor:"#FF9C66"}),g("stop",{offset:.34,stopColor:"#FFB65B"}),g("stop",{offset:.55,stopColor:"#FFC953"}),g("stop",{offset:.76,stopColor:"#FFD44E"}),g("stop",{offset:.99,stopColor:"#FFD84D"})),g("linearGradient",{id:"paint2_linear_837_4233",x1:7.67636,y1:19.8757,x2:56.0419,y2:19.8757,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#CBD9FD"}),g("stop",{offset:.99,stopColor:"white"})),g("linearGradient",{id:"paint3_linear_837_4233",x1:21.8577,y1:52.3724,x2:34.841,y2:44.8772,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"What’s next?",paragraph:()=>zn(Un,{children:["A Flare Cars expert ",Wn("span",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontWeight:"700"},children:"will be in touch soon"})," to discuss your estimate and your novated leasing options."]}),backgroundColour:"#FFFFFF"},support:{icon:e=>g("svg",{viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M32.5458 16.7271C40.5465 16.7271 47.0549 23.2355 47.0549 31.2362C47.0549 39.2369 40.5465 45.7453 32.5458 45.7453C24.5451 45.7453 18.0367 39.2369 18.0367 31.2362C18.0367 23.2355 24.5451 16.7271 32.5458 16.7271ZM32.5458 4.94531C18.0258 4.94531 6.25488 16.7162 6.25488 31.2362C6.25488 45.7562 18.0258 57.5271 32.5458 57.5271C47.0658 57.5271 58.8367 45.7562 58.8367 31.2362C58.8367 16.7162 47.0658 4.94531 32.5458 4.94531Z",fill:"url(#paint0_linear_731_5867)"}),g("g",{opacity:.9},g("path",{d:"M58.7147 28.0728H46.3046C45.1526 28.0728 44.2188 29.0066 44.2188 30.1586V33.8415C44.2188 34.9934 45.1526 35.9273 46.3046 35.9273H58.7147C59.8667 35.9273 60.8006 34.9934 60.8006 33.8415V30.1586C60.8006 29.0066 59.8667 28.0728 58.7147 28.0728Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M17.6962 28.0728H5.28601C4.13405 28.0728 3.2002 29.0066 3.2002 30.1586V33.8415C3.2002 34.9934 4.13405 35.9273 5.28601 35.9273H17.6962C18.8482 35.9273 19.782 34.9934 19.782 33.8415V30.1586C19.782 29.0066 18.8482 28.0728 17.6962 28.0728Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M33.842 44.218H30.1591C29.0071 44.218 28.0732 45.1519 28.0732 46.3038V58.714C28.0732 59.866 29.0071 60.7998 30.1591 60.7998H33.842C34.9939 60.7998 35.9278 59.866 35.9278 58.714V46.3038C35.9278 45.1519 34.9939 44.218 33.842 44.218Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M33.842 3.19995H30.1591C29.0071 3.19995 28.0732 4.1338 28.0732 5.28577V17.696C28.0732 18.8479 29.0071 19.7818 30.1591 19.7818H33.842C34.9939 19.7818 35.9278 18.8479 35.9278 17.696V5.28577C35.9278 4.1338 34.9939 3.19995 33.842 3.19995Z",fill:"#C6D6FD"})),g("defs",null,g("linearGradient",{id:"paint0_linear_731_5867",x1:6.25488,y1:31.2362,x2:58.8367,y2:31.2362,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"Need help?",paragraph:()=>zn(Un,{children:["Have a question about how novated leasing works or need help with your estimate? Call us now on ",Wn("span",{css:{fontWeight:"700"},children:"1300 480 096"})," to speak to a Flare Cars expert."]}),backgroundColour:"#FFFFFF"}}},yg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M34.5 12.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 12.5H12.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M20.5 20.5C24.9183 20.5 28.5 16.9183 28.5 12.5C28.5 8.08172 24.9183 4.5 20.5 4.5C16.0817 4.5 12.5 8.08172 12.5 12.5C12.5 16.9183 16.0817 20.5 20.5 20.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M34.5 52.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 52.5H12.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M20.5 60.5C24.9183 60.5 28.5 56.9183 28.5 52.5C28.5 48.0817 24.9183 44.5 20.5 44.5C16.0817 44.5 12.5 48.0817 12.5 52.5C12.5 56.9183 16.0817 60.5 20.5 60.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 32.5H30.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M52.5 32.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M44.5 40.5C48.9183 40.5 52.5 36.9183 52.5 32.5C52.5 28.0817 48.9183 24.5 44.5 24.5C40.0817 24.5 36.5 28.0817 36.5 32.5C36.5 36.9183 40.0817 40.5 44.5 40.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),bg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M13.5 61.5H3.5V35.5H7.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 46.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 40.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 52.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 34.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M33.5 19.5V3.5L61.5 13.5V61.5H13.5V25.5H37.5V60.833",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M43.5 52.5V15.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M49.5 52.5V17.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M55.5 52.5V19.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),wg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:64,height:58,viewBox:"0 0 64 58",fill:"none",...e},g("path",{d:"M9 56V49.9C8.99933 49.2052 9.17962 48.5223 9.52312 47.9184C9.86662 47.3145 10.3615 46.8105 10.959 46.456C12.86 45.328 16.309 44 22 44C27.691 44 31.14 45.328 33.041 46.454C33.6388 46.8087 34.1339 47.313 34.4774 47.9173C34.8209 48.5215 35.001 49.2049 35 49.9V56",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M15 31C15 29.1435 15.7375 27.363 17.0503 26.0503C18.363 24.7375 20.1435 24 22 24C23.8565 24 25.637 24.7375 26.9497 26.0503C28.2625 27.363 29 29.1435 29 31C29 34.866 25.866 39 22 39C18.134 39 15 34.866 15 31Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M28 14H2V56H56V30",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M34 7V19C34 19.6566 34.1293 20.3068 34.3806 20.9134C34.6319 21.52 35.0002 22.0712 35.4645 22.5355C36.4021 23.4732 37.6739 24 39 24H40V30L50 24H57C57.6566 24 58.3068 23.8707 58.9134 23.6194C59.52 23.3681 60.0712 22.9998 60.5355 22.5355C60.9998 22.0712 61.3681 21.52 61.6194 20.9134C61.8707 20.3068 62 19.6566 62 19V7C62 5.67392 61.4732 4.40215 60.5355 3.46447C59.5979 2.52678 58.3261 2 57 2H39C37.6739 2 36.4021 2.52678 35.4645 3.46447C34.5268 4.40215 34 5.67392 34 7Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),Cg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M85.9375 39.3247C83.1129 42.3249 79.7036 44.7146 75.9198 46.3463C72.1361 47.9781 68.0581 48.8173 63.9375 48.8122C60.2908 48.8122 56.7934 50.2609 54.2148 52.8395C51.6362 55.4181 50.1875 58.9155 50.1875 62.5622C50.1875 66.2089 51.6362 69.7063 54.2148 72.2849C56.7934 74.8636 60.2908 76.3122 63.9375 76.3122C69.7723 76.3122 75.3681 73.9944 79.4939 69.8686C83.6197 65.7428 85.9375 60.147 85.9375 54.3122V39.3247Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.8303 12.0093C24.3452 13.8683 26.2771 18.5955 26.2771 18.5955C27.5139 19.4701 28.4977 20.656 29.1288 22.033C29.5091 23.5201 29.5218 25.0774 29.166 26.5705C29.166 26.5705 31.091 32.2245 30.1862 33.8113C29.2815 35.398 25.4273 36.4155 25.4273 36.4155C24.9046 37.3079 24.2013 38.0812 23.3624 38.6859C22.5235 39.2906 21.5675 39.7135 20.5557 39.9273C19.3561 39.9945 18.2313 40.532 17.4254 41.4231C16.6194 42.3142 16.1973 43.4872 16.2506 44.6875C16.2506 47.7469 19.3086 52.7299 19.3086 52.7299C19.3086 52.7299 22.4807 54.2809 22.9345 55.4125C23.2752 56.6435 23.4785 57.9084 23.5408 59.1841C23.5408 59.1841 26.5658 64.5095 24.8595 67.5717C24.3177 68.5479 21.8015 69.2712 21.8015 69.2712L18.2732 74.5622",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M76.1583 20.1958C72.7354 21.6249 69.1959 22.7571 65.579 23.5797C65.579 23.5797 60.6606 29.0549 57.4321 28.6012C54.2036 28.1474 50.9188 24.5243 50.9188 24.5243C50.9188 24.5243 51.1443 17.8404 50.1254 17.5008C49.1065 17.1612 46.3868 18.9748 44.6886 17.6135C42.9905 16.2523 43.9695 12.4229 43.9695 12.4229C43.9695 12.4229 40.2708 11.2707 39.817 10.0235C39.3633 8.77641 41.1631 6.00304 41.5069 4.93604",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M73.5625 57.0625C54.3125 63.9375 59.8125 84.5625 43.3125 84.5625",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M63.6707 40.576L63.7944 40.3134C61.5691 39.5651 59.26 39.094 56.9194 38.9109C55.6823 38.132 54.3659 37.4867 52.9924 36.9859C51.6326 36.6463 47.1762 38.1189 47.1762 38.1189C47.1762 38.1189 41.7422 44.6873 41.7422 47.1788C41.7422 48.1977 43.7016 49.7762 45.1371 51.1965",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M81.9311 30.4383C79.5037 24.0919 75.4948 18.4711 70.2849 14.1093C65.075 9.74744 58.8369 6.78928 52.1626 5.51551C45.4883 4.24175 38.5992 4.69464 32.149 6.83122C25.6989 8.96779 19.9018 12.7172 15.3077 17.7235C10.7137 22.7299 7.47517 28.8272 5.89948 35.4367C4.32379 42.0463 4.46322 48.9488 6.30454 55.4893C8.14586 62.0299 11.628 67.9914 16.4204 72.8081C21.2129 77.6249 27.1567 81.1371 33.6879 83.0114",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),_g={...vg,pages:{...vg.pages,vehicleOptions:{infoPanel:{icon:()=>Wn(yg,{css:{height:"4rem"}}),heading:"Configure your estimate",paragraph:"Owning your new BYD can be quick, easy, and cost-effective with the help of our finance partner, Flare Cars. To get started, select from the vehicle and lease options available."}},employmentDetails:{infoPanel:{...vg.pages.employmentDetails.infoPanel,icon:()=>Wn(bg,{css:{height:"4rem"}})}},contactDetails:{infoPanel:{...vg.pages.contactDetails.infoPanel,icon:()=>Wn(wg,{css:{height:"4rem"}})}}},banners:{...vg.banners,error:{...vg.banners.error,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M28.1875 36.4375H61.1875",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M21.7246 55.6875H67.6496",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M11.6875 85.9375L39.1875 3.4375H50.1875L77.6875 85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M3.4375 85.9375H85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))},maxEvSavings:{...vg.banners.maxEvSavings,icon:Cg},evSavings:{...vg.banners.evSavings,icon:Cg},luxuryCarSavings:{...vg.banners.luxuryCarSavings,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M3.4375 80.4375H85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M22.6875 33.6875H6.1875V69.4375H22.6875V33.6875Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M52.9375 8.9375H36.4375V69.4375H52.9375V8.9375Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M83.1875 47.4375H66.6875V69.4375H83.1875V47.4375Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))},getInTouch:{...vg.banners.getInTouch,icon:wg},support:{...vg.banners.support,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:64,height:64,viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M8.38477 16.3838L19.4428 27.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M16.3848 8.38379L27.4428 19.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M48.6166 8.38379L37.5586 19.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M56.6166 16.3838L45.5586 27.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M56.6166 48.6161L45.5586 37.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M48.6166 56.6161L37.5586 45.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M16.3848 56.6161L27.4428 45.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M8.38477 48.6161L19.4428 37.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M32.5 61.5C48.5163 61.5 61.5 48.5163 61.5 32.5C61.5 16.4837 48.5163 3.5 32.5 3.5C16.4837 3.5 3.5 16.4837 3.5 32.5C3.5 48.5163 16.4837 61.5 32.5 61.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M32.5 46.5C40.232 46.5 46.5 40.232 46.5 32.5C46.5 24.768 40.232 18.5 32.5 18.5C24.768 18.5 18.5 24.768 18.5 32.5C18.5 40.232 24.768 46.5 32.5 46.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))}}},xg=e=>{var t,r,n,o,i,a,s,l,c,u,d,p;const f=new URLSearchParams(window.location.search.substring(1)),m=new URLSearchParams(window.location.hash.substring(1)),h=e=>f.get(e)??(m.get(e)||void 0),g=(null==(t=h(Ao))?void 0:t.toLowerCase())||(null==(r=e.vehicleType)?void 0:r.toLowerCase()),v=(null==(n=h(Po))?void 0:n.toLowerCase())||(null==(o=e.engineType)?void 0:o.toLowerCase()),y=(null==(i=h(Ro))?void 0:i.toUpperCase())||(null==(a=e.employerName)?void 0:a.toUpperCase()),b=(null==(s=h(Vo))?void 0:s.toLowerCase())||(null==(l=e.employmentType)?void 0:l.toLowerCase()),w=(null==(c=h(Do))?void 0:c.split(","))||(null==(u=e.preferredMakes)?void 0:u.split(","))||[],C=parseFloat(h(Io)||e.budget||""),_=(null==(d=h(No))?void 0:d.toUpperCase())||(null==(p=e.location)?void 0:p.toUpperCase());var x;return((e,t)=>{const r=new Map;for(const n in e)t(e[n])&&r.set(n,e[n]);return Object.fromEntries(r)})({vehicleSize:qf(g)?g:void 0,engineType:Zf(v)?v:void 0,preferredMakes:(x=w,x.reduce(((e,t)=>{const r=Gf.find((e=>e.toLowerCase()===t.toLowerCase()));return r?[...e,r]:e}),[])),vehicleCost:isNaN(C)?void 0:C,employerName:Qf(y)?y:void 0,employmentType:Kf(b)?b:void 0,location:Xf(_)?_:void 0,firstName:Qf(e.firstName)?e.firstName:void 0,lastName:Qf(e.lastName)?e.lastName:void 0,email:Jf(e.email)?e.email:void 0,mobile:em(e.mobile)?e.mobile:void 0},(e=>!!e))};var kg={exports:{}};Ur(kg.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var r=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(f.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function u(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(e){var t=c(e,"Y")&&u(e,"Y"),r=c(e,"X")&&u(e,"X");return t||r}function p(t){var r,n,o,a,s=(i()-t.startTime)/468;a=s=s>1?1:s,r=.5*(1-Math.cos(Math.PI*a)),n=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,n,o),n===t.x&&o===t.y||e.requestAnimationFrame(p.bind(e,t))}function f(r,n,a){var l,c,u,d,f=i();r===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=o.scroll):(l=r,c=r.scrollLeft,u=r.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:n,y:a})}}}).polyfill(),function(e,t,r,n){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=$,o.prototype.attributeChangedCallback=Z,o.prototype.disconnectedCallback=G,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}((e=>{const t=fe(null),r=e.backendUrl||"https://partner.flarehr.com",n="false"!=e.isGated,{EmotionProvider:o,hasAppliedStyles:i}=Qn("byd-cars-calculator",t,r);(e=>{de((()=>{const t=new URLSearchParams(window.location.search.substring(1)),r=new URLSearchParams(window.location.hash.substring(1)),n=e=>t.get(e)??(r.get(e)||void 0),o={distinctId:void 0,accountId:e.accountId||n(uo),contactId:n(po),customerId:e.customerId||n(fo),partnerId:e.partnerId||n(mo),profileId:e.profileId||n(ho),externalId:e.externalId||n(go),gclid:n(vo),mcid:n(yo),utmSource:n(bo),utmMedium:n(wo),utmTerm:n(Co),utmCampaign:n(_o),utmContent:n(xo),sfSource:e.sfSource||n(ko),sfSubSource:e.sfSubSource||n(So),sfDescription:e.sfDescription||n(Eo),sfClass:e.sfClass||n(Fo),sfMedium:e.sfMedium||n(To),sfName:e.sfName||n(Oo),sfPriority:e.sfPriority||n(Mo),sfTeam:e.sfTeam||n(Lo)};lo(o)}),[e])})({sfClass:"Partner",sfSource:"BYD",sfSubSource:"EVFlex",sfDescription:"BYD_Novated-Calculator",sfMedium:"Web",sfName:"BYD_Novated-Calculator"});const a=xg(e),s={...cp,vehicleOptions:{...cp.vehicleOptions,brand:"BYD",preferredMakes:["BYD"],vehicleSize:"small",engineType:"ev",vehicleCost:a.vehicleCost??cp.vehicleOptions.vehicleCost},employmentDetails:{...cp.employmentDetails,employmentType:a.employmentType??cp.employmentDetails.employmentType,location:a.location??cp.employmentDetails.location}};return zn(b,{children:[Wn("head",{ref:t,children:Wn(gg,{disableSessionRecord:!0})}),Wn(o,{children:Wn("body",{children:i?zn(qn,{isGated:n,children:[Wn(mg,{}),Wn(cg,{backendUrl:r,subRoute:"byd",initialState:s,content:_g,features:{isPartnerDistribution:!0,isGated:n,hideVehicleSelection:!0,hideVehicleRecommendations:!0,showEmployerSearch:!0}})]}):Wn(b,{})})})]})}),"byd-cars-calculator",[],{shadow:!0});
127
+ `,mg=()=>zn(b,{children:[Wn(pg,{}),Wn(Yn,{styles:fg})]}),hg=e=>`\n(function(h,o,u,n,d) {\n h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}\n d=o.createElement(u);d.async=1;d.src=n\n n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)\n})(window,document,'script','https://www.datadoghq-browser-agent.com/us1/v4/datadog-rum.js','DD_RUM')\nwindow.DD_RUM.onReady(function() {\n window.DD_RUM.init({\n clientToken: 'pub7545f3e00e06cc0ea275a912a1b395da',\n applicationId: 'c740d580-dc87-4135-ad31-034fcc4bdecf',\n site: 'datadoghq.com',\n service: 'cars-calculator',\n env: '${window.location.hostname.toLocaleLowerCase().replace(/[^.a-z]/,"")}',\n // Specify a version number to identify the deployed version of your application in Datadog \n version: '${"1.0.1322".toLocaleLowerCase().replace(/[^0-9a-z.]/,"")}', \n sessionSampleRate: 100,\n sessionReplaySampleRate: ${e?0:5},\n trackUserInteractions: true,\n trackResources: true,\n trackLongTasks: true,\n defaultPrivacyLevel: 'mask-user-input',\n });\n\n window.DD_RUM.startSessionReplayRecording();\n})\n`,gg=({disableSessionRecord:e})=>Wn("script",{dangerouslySetInnerHTML:{__html:hg(e)}}),vg={pages:{vehicleOptions:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M50.1169 235.368C50.1169 235.368 72.4518 227.464 110.384 235.368C148.309 243.272 160.539 245.404 186.024 233.61C204.913 224.874 257.51 191.64 283.493 174.999C291.638 169.787 293.77 158.826 288.176 150.938C283.112 143.78 273.427 141.672 265.842 146.075L185.098 192.916L165.416 185.012H50.1169",fill:"url(#paint0_linear_419_151)"}),g("path",{d:"M183.73 170.199H141.814C141.814 170.199 122.256 166.006 98.4978 159.02C74.7393 152.034 27.6035 169.569 27.6035 169.569V200.936H183.73C192.217 200.936 199.102 194.059 199.102 185.564C199.102 177.069 192.225 170.192 183.73 170.192V170.199Z",fill:"url(#paint1_linear_419_151)"}),g("path",{d:"M55.765 156.632H8.69922V251.168H55.765V156.632Z",fill:"url(#paint2_linear_419_151)"}),g("path",{d:"M37.9033 241.701C43.3942 241.701 47.8455 237.249 47.8455 231.758C47.8455 226.268 43.3942 221.816 37.9033 221.816C32.4124 221.816 27.9612 226.268 27.9612 231.758C27.9612 237.249 32.4124 241.701 37.9033 241.701Z",fill:"#0095F2"}),g("path",{d:"M108.245 112.795C110.991 122.869 112.672 128.89 113.839 135.705C101.454 135.705 91.4882 135.705 87.8241 135.705C87.8241 135.534 87.8319 135.363 87.8319 135.192C87.8319 115.02 71.4794 98.6672 51.3073 98.6672C33.7646 98.6672 22.4844 109.115 18.1434 127.638C16.8442 127.249 15.6929 126.813 15.1016 126.354C14.347 125.763 13.6235 124.332 13.1646 122.371C13.2968 121.733 13.4446 121.088 13.6391 120.442C15.7318 113.324 15.3117 111.651 19.7071 109.138C20.9596 106.836 18.6569 104.743 19.7071 100.137C20.7573 95.532 23.4723 81.0933 30.1705 79.4208C30.2171 79.3819 30.2794 79.3274 30.3338 79.2729C30.3105 79.2963 30.2794 79.3274 30.256 79.3507C46.9897 79.6853 84.1211 80.5566 114.819 81.3734V81.4979C107.607 87.6903 103.531 95.5398 108.237 112.802L108.245 112.795Z",fill:"url(#paint3_linear_419_151)"}),g("path",{d:"M64.937 102.487C64.9215 102.829 64.8515 103.172 64.7114 103.514C64.7814 103.203 64.8592 102.86 64.937 102.487Z",fill:"#C0AD96"}),g("path",{d:"M55.9206 51.1658C57.5932 51.1658 75.7504 48.9176 121.743 48.1318C167.735 47.3461 163.363 50.2245 168.808 52.7373C174.246 55.25 205.901 80.9378 205.901 80.9378C202.291 84.0263 183.457 83.6062 154.992 82.556C144.179 82.1592 123.384 81.5758 101.36 81.0156C73.9378 80.3155 44.6014 79.6309 30.2561 79.3431C33.0723 76.8458 52.5987 52.8151 55.9206 51.158V51.1658Z",fill:"#CBD9FD"}),g("path",{d:"M19.5203 103.911C19.3881 102.853 19.3803 101.623 19.7148 100.138C20.4694 96.8079 22.1031 88.3361 25.4872 83.2639C29.2758 79.732 31.7497 82.3459 31.4929 83.7073C29.9759 87.5815 24.8959 102.541 23.2467 104.113C21.9475 105.35 20.5317 105.677 19.5203 103.911Z",fill:"#A650FF"}),g("path",{d:"M153.949 54.5111C153.949 54.5111 157.162 57.7396 179.139 83.2718C179.139 83.2718 183.465 83.3263 184.927 83.3263C176.852 83.3107 166.747 82.984 155 82.5561C144.84 82.1827 138.694 81.8948 115.091 81.3658L112.648 54.5111H153.957H153.949Z",fill:"url(#paint4_linear_419_151)"}),g("path",{d:"M209.184 135.192C209.184 149.156 220.503 160.483 234.475 160.483C248.447 160.483 259.766 149.164 259.766 135.192C259.766 121.22 248.447 109.901 234.475 109.901C220.503 109.901 209.184 121.22 209.184 135.192ZM229.41 135.192C229.41 132.399 231.674 130.135 234.467 130.135C237.26 130.135 239.524 132.399 239.524 135.192C239.524 137.985 237.26 140.248 234.467 140.248C231.674 140.248 229.41 137.985 229.41 135.192Z",fill:"#143057"}),g("path",{d:"M26.4829 135.915C26.4829 149.483 37.4831 160.483 51.0505 160.483C64.6179 160.483 75.618 149.483 75.618 135.915C75.618 122.348 64.6179 111.348 51.0505 111.348C37.4831 111.348 26.4829 122.348 26.4829 135.915ZM46.1338 135.915C46.1338 133.2 48.3354 130.999 51.0505 130.999C53.7655 130.999 55.9671 133.2 55.9671 135.915C55.9671 138.63 53.7655 140.832 51.0505 140.832C48.3354 140.832 46.1338 138.63 46.1338 135.915Z",fill:"#143057"}),g("path",{d:"M61.9419 55.7324C61.9419 55.7324 62.0041 55.6935 62.043 55.6779C72.5297 55.6235 86.3539 55.5379 100.684 55.4368C100.808 55.5379 100.87 55.6313 100.87 55.7324V81.0079C79.8813 80.5489 58.7756 79.9265 43.8857 79.6231C43.8857 79.6231 52.8399 65.6979 61.9419 55.7324Z",fill:"url(#paint5_linear_419_151)"}),g("path",{d:"M24.6313 124.425C24.6313 124.425 24.6547 124.371 24.6625 124.347C24.6547 124.371 24.6391 124.402 24.6313 124.425Z",fill:"url(#paint6_linear_419_151)"}),g("path",{d:"M234.529 97.936C213.952 97.936 197.273 114.615 197.273 135.192C197.273 135.332 197.273 135.472 197.273 135.612C195.554 135.62 193.835 135.635 192.115 135.643C192.917 118.131 194.939 102.674 191.828 94.902C188.833 87.4026 185.962 84.283 184.919 83.3261C196.41 83.3495 203.785 82.7427 205.901 80.9301C205.901 80.9301 223.638 82.3459 241.375 84.5397C259.112 86.7335 276.375 93.9607 280.77 99.9197C284.598 105.109 286.045 110.313 286.356 128.96C285.967 129.497 280.039 132.671 271.746 134.149C271.194 114.055 254.748 97.9282 234.521 97.9282L234.529 97.936Z",fill:"url(#paint7_linear_419_151)"}),g("path",{d:"M191.836 94.902C194.94 102.674 192.925 118.132 192.123 135.643C192.03 135.643 191.937 135.643 191.851 135.643C189.836 135.659 144.435 135.698 113.854 135.713C112.679 128.898 111.007 122.877 108.261 112.803C103.554 95.5399 107.631 87.6905 114.85 81.498V81.3735C131.591 81.817 146.435 82.2448 155.008 82.5638C166.755 82.9994 176.86 83.3184 184.935 83.334C185.978 84.2986 188.84 87.4104 191.843 94.9098L191.836 94.902Z",fill:"url(#paint8_linear_419_151)"}),g("path",{d:"M191.836 94.902C194.94 102.674 192.925 118.132 192.123 135.643C192.03 135.643 191.937 135.643 191.851 135.643C189.836 135.659 144.435 135.698 113.854 135.713C112.679 128.898 111.007 122.877 108.261 112.803C103.554 95.5399 107.631 87.6905 114.85 81.498L115.099 81.3735C131.856 81.817 146.442 82.2448 155.008 82.5638C166.755 82.9994 176.86 83.3184 184.935 83.334C185.978 84.2986 188.84 87.4104 191.843 94.9098L191.836 94.902Z",fill:"url(#paint9_linear_419_151)"}),g("path",{d:"M24.6626 124.347C24.7948 124.013 24.9427 123.686 25.0905 123.367C24.9427 123.694 24.8026 124.021 24.6626 124.347Z",fill:"#ABBBE2"}),g("path",{d:"M78.4885 144.698C79.531 141.719 80.0678 138.568 80.0911 135.417C80.0678 138.669 79.5076 141.789 78.4885 144.698Z",fill:"#ABBBE2"}),g("path",{d:"M205.909 80.9301C204.415 82.2059 200.307 82.8827 193.983 83.1628C187.93 77.8416 166.14 58.673 161.021 54.1298L164.078 51.0414C166.14 51.5937 167.61 52.1616 168.816 52.7217C174.254 55.2345 205.909 80.9223 205.909 80.9223V80.9301Z",fill:"url(#paint10_linear_419_151)"}),g("path",{d:"M174.806 81.0701C177.42 83.7929 179.147 84.8353 178.89 86.3057C178.626 87.7682 174.861 88.764 170.574 88.1883C166.28 87.6126 166.404 86.08 166.443 85.3799C166.49 84.6797 168.217 83.5828 168.894 82.4315C169.571 81.2801 174.806 81.0701 174.806 81.0701Z",fill:"#610AC5"}),g("path",{d:"M169.648 73.3217C162.81 72.7771 160.546 73.1661 159.76 75.2043C158.975 77.2425 158.189 82.1903 159.994 84.4619C161.799 86.7413 169.773 85.8622 173.546 83.1238C176.673 80.8522 176.463 77.1181 175.809 76.1379C175.024 74.9632 171.78 73.4773 169.648 73.3139V73.3217Z",fill:"#8B4FFF"}),g("path",{d:"M12.6823 126.743C12.6823 126.401 12.6979 126.059 12.7212 125.709C12.7212 125.646 12.729 125.576 12.7368 125.514C12.7601 125.172 12.7912 124.822 12.8301 124.472C12.8301 124.41 12.8457 124.34 12.8535 124.277C12.9001 123.919 12.9468 123.554 13.0091 123.196C13.0168 123.134 13.0246 123.079 13.0402 123.017C13.0791 122.807 13.1258 122.589 13.1724 122.371C13.6314 124.332 14.3549 125.771 15.1095 126.354C15.7008 126.813 16.8521 127.257 18.1513 127.638C22.4922 109.115 33.7725 98.6673 51.3152 98.6673C71.4873 98.6673 87.8397 115.02 87.8397 135.192C87.8397 135.363 87.8397 135.534 87.832 135.705C91.4961 135.713 101.454 135.713 113.846 135.705C144.435 135.69 192.03 135.635 192.123 135.635C193.843 135.628 195.562 135.612 197.281 135.604C197.281 135.464 197.281 135.324 197.281 135.184C197.281 114.607 213.96 97.9282 234.537 97.9282C254.764 97.9282 271.217 114.055 271.762 134.149C280.055 132.679 285.983 129.497 286.372 128.961C286.372 128.999 286.372 129.038 286.372 129.077C286.372 129.225 286.372 129.388 286.372 129.544C286.38 130.081 286.387 130.633 286.395 131.193C286.395 131.318 286.395 131.458 286.395 131.582C286.395 132.189 286.411 132.796 286.411 133.426C286.411 133.519 286.411 133.605 286.411 133.698C286.411 134.367 286.418 135.052 286.418 135.752C286.418 135.814 286.418 135.876 286.418 135.939C286.418 136.686 286.418 137.44 286.418 138.218C286.418 138.615 285.376 139.338 285.119 139.541C283.268 140.98 268.207 144.162 263.85 145.087C263.469 145.165 262.497 144.924 262.084 144.582C263.057 141.657 263.593 138.529 263.593 135.27C263.593 126.852 260.054 119.275 254.39 113.907C240.418 100.075 217.43 103.716 208.126 121.041C207.566 122.083 207.169 123.165 206.897 124.269C205.528 127.669 204.765 131.38 204.765 135.27C204.765 138.646 205.341 141.89 206.391 144.916C199.864 144.932 87.0618 145.048 86.4861 145.033C86.4861 145.033 81.2194 144.807 79.1968 144.722C80.2003 141.758 80.7526 138.584 80.7526 135.27C80.7526 119.026 67.582 105.856 51.3385 105.856C35.095 105.856 21.9243 119.026 21.9243 135.27C21.9243 136.172 21.971 137.067 22.0488 137.954C21.9399 137.93 21.831 137.907 21.7221 137.884C21.5587 137.852 21.3953 137.814 21.232 137.775C21.2164 137.775 21.2008 137.775 21.1853 137.767C21.0375 137.736 20.8819 137.697 20.7263 137.666C20.7029 137.666 20.6718 137.65 20.6485 137.65C20.3062 137.572 19.9639 137.487 19.6138 137.401C19.5827 137.393 19.5516 137.386 19.5205 137.378C19.3804 137.339 19.2404 137.308 19.1004 137.269C19.0615 137.261 19.0226 137.246 18.9837 137.238C18.8203 137.191 18.6492 137.145 18.4858 137.098C18.4702 137.098 18.4547 137.09 18.4391 137.082C18.2913 137.043 18.1513 136.997 18.0113 136.958C17.9724 136.942 17.9257 136.934 17.8868 136.919C17.7623 136.88 17.6378 136.841 17.5134 136.802C17.4823 136.794 17.4434 136.779 17.4122 136.771C17.2644 136.724 17.1166 136.67 16.9766 136.623C16.9455 136.616 16.9144 136.6 16.891 136.592C16.7821 136.553 16.6732 136.507 16.5643 136.468C16.5254 136.452 16.4865 136.437 16.4476 136.421C16.3465 136.382 16.2531 136.335 16.152 136.297C16.152 136.297 16.1364 136.297 16.1286 136.289C16.1053 136.281 16.0819 136.273 16.0664 136.258C15.9497 136.203 15.8408 136.149 15.7319 136.094C15.7008 136.079 15.6774 136.063 15.6541 136.055C15.5763 136.017 15.4985 135.97 15.4285 135.931C15.4051 135.915 15.374 135.9 15.3507 135.884C15.2651 135.83 15.1795 135.775 15.1095 135.713C14.9928 135.628 14.8839 135.511 14.7672 135.386C14.7594 135.379 14.7517 135.371 14.7439 135.355C14.6427 135.231 14.5338 135.099 14.4327 134.943C14.4249 134.927 14.4094 134.912 14.4016 134.888C14.3004 134.741 14.2071 134.57 14.1137 134.391C14.106 134.367 14.0904 134.352 14.0826 134.328C13.9893 134.142 13.8959 133.947 13.8103 133.737C13.8026 133.714 13.7948 133.698 13.787 133.675C13.7014 133.473 13.6236 133.247 13.5458 133.021C13.5303 132.967 13.5069 132.905 13.4914 132.85C13.4214 132.617 13.3436 132.383 13.2813 132.135C13.2813 132.103 13.2658 132.08 13.258 132.049C13.188 131.784 13.1258 131.52 13.0713 131.24C13.0635 131.201 13.0557 131.154 13.048 131.115C12.9935 130.843 12.9468 130.555 12.9001 130.267C12.9001 130.221 12.8846 130.174 12.8768 130.12C12.8379 129.824 12.799 129.521 12.7679 129.209C12.7679 129.163 12.7601 129.116 12.7523 129.069C12.7368 128.852 12.7212 128.626 12.7134 128.4C12.6979 128.167 12.6901 127.934 12.6823 127.692C12.6823 127.428 12.6668 127.156 12.6745 126.883C12.6745 126.829 12.6745 126.782 12.6745 126.728L12.6823 126.743Z",fill:"#CBD9FD"}),g("defs",null,g("linearGradient",{id:"paint0_linear_419_151",x1:50.1169,y1:192.83,x2:291.304,y2:192.83,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.02,stopColor:"#8F51F9"}),g("stop",{offset:.26,stopColor:"#B764C8"}),g("stop",{offset:.48,stopColor:"#D673A1"}),g("stop",{offset:.69,stopColor:"#EC7E85"}),g("stop",{offset:.87,stopColor:"#FA8474"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_419_151",x1:27.6035,y1:179.161,x2:199.102,y2:179.161,gradientUnits:"userSpaceOnUse"},g("stop",{offset:.09,stopColor:"#8B4FFF"}),g("stop",{offset:.19,stopColor:"#9152F6"}),g("stop",{offset:.36,stopColor:"#A45BDF"}),g("stop",{offset:.56,stopColor:"#C36AB9"}),g("stop",{offset:.8,stopColor:"#ED7E84"}),g("stop",{offset:.89,stopColor:"#FF876F"})),g("linearGradient",{id:"paint2_linear_419_151",x1:8.69922,y1:203.9,x2:55.765,y2:203.9,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"white"}),g("stop",{offset:1,stopColor:"#CBD9FD"})),g("linearGradient",{id:"paint3_linear_419_151",x1:64.0111,y1:145.297,x2:64.0111,y2:79.2652,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint4_linear_419_151",x1:184.927,y1:68.9187,x2:112.64,y2:68.9187,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint5_linear_419_151",x1:100.87,y1:68.2184,x2:43.8857,y2:68.2184,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint6_linear_419_151",x1:24.6469,y1:145.297,x2:24.6469,y2:79.2658,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint7_linear_419_151",x1:235.642,y1:145.297,x2:235.642,y2:79.2652,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint8_linear_419_151",x1:149.865,y1:145.297,x2:149.865,y2:79.2653,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint9_linear_419_151",x1:149.865,y1:138.055,x2:149.865,y2:54.511,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#0095F2"})),g("linearGradient",{id:"paint10_linear_419_151",x1:205.909,y1:67.1138,x2:161.021,y2:67.1138,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})))),heading:"What type of car are you interested in?",paragraph:"To get started, select from the vehicle and lease options available. If you don’t have a specific vehicle in mind, consider what is an appropriate budget for your needs."}},employmentDetails:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M122.01 24H181.918C192.861 24 201.75 32.889 201.75 43.8323V68.545H102.178V43.8323C102.178 32.889 111.067 24 122.01 24Z",fill:"#161E37"}),g("path",{d:"M272.04 50.2056H27.9596C12.518 50.2056 0 62.7235 0 78.1652V230.54C0 245.982 12.518 258.5 27.9596 258.5H272.04C287.482 258.5 300 245.982 300 230.54V78.1652C300 62.7235 287.482 50.2056 272.04 50.2056Z",fill:"url(#paint0_linear_419_98)"}),g("path",{d:"M0 174.662H300V237.706C300 249.191 290.68 258.51 279.196 258.51H20.8044C9.31988 258.51 0 249.191 0 237.706V174.662Z",fill:"url(#paint1_linear_419_98)"}),g("path",{d:"M170.304 152.695H132.312V174.321H170.304V152.695Z",fill:"white"}),g("path",{d:"M170.304 174.662H132.312V198.242H170.304V174.662Z",fill:"#0095F2"}),g("defs",null,g("linearGradient",{id:"paint0_linear_419_98",x1:150,y1:258.5,x2:150,y2:50.2056,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#0095F2"}),g("stop",{offset:.29,stopColor:"#307CF6"}),g("stop",{offset:.61,stopColor:"#6163FB"}),g("stop",{offset:.86,stopColor:"#7F54FD"}),g("stop",{offset:1,stopColor:"#8B4FFF"})),g("linearGradient",{id:"paint1_linear_419_98",x1:205.148,y1:304.479,x2:97.6382,y2:118.281,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#2E66F7"}),g("stop",{offset:.06,stopColor:"#2B5EE3"}),g("stop",{offset:.24,stopColor:"#254BAF"}),g("stop",{offset:.41,stopColor:"#1F3A84"}),g("stop",{offset:.57,stopColor:"#1B2E62"}),g("stop",{offset:.73,stopColor:"#18254A"}),g("stop",{offset:.88,stopColor:"#161F3C"}),g("stop",{offset:1,stopColor:"#161E37"})))),heading:"Tell us a bit about your employment situation",paragraph:"Enter your employment details to find out how much a novated lease will cost and what you can save."}},contactDetails:{infoPanel:{icon:e=>g("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M55.8862 49.5002C51.9981 47.274 47.5082 45.9985 42.7173 45.9985C27.9618 45.9985 16 58.056 16 72.9279V91.787H69.4313V72.9279C69.4313 62.8845 63.9702 54.1303 55.8828 49.5002H55.8862Z",fill:"url(#paint0_linear_741_6601)"}),g("path",{d:"M42.4198 44.2136C52.4199 44.2136 60.5266 36.1069 60.5266 26.1068C60.5266 16.1067 52.4199 8 42.4198 8C32.4197 8 24.313 16.1067 24.313 26.1068C24.313 36.1069 32.4197 44.2136 42.4198 44.2136Z",fill:"#2E66F7"}),g("path",{d:"M86.0566 44.521L92.902 51.3664C94.215 52.6794 94.215 54.8072 92.902 56.1202L89.4781 59.5441L77.8788 47.9449L81.3028 44.521C82.6158 43.208 84.7436 43.208 86.0566 44.521Z",fill:"#A650FF"}),g("path",{opacity:.94,d:"M89.4782 59.5407L77.8789 47.9414L45.8062 80.0141L57.4055 91.6133L89.4782 59.5407Z",fill:"url(#paint1_linear_741_6601)"}),g("path",{d:"M57.4079 91.6127L45.8052 80.0134L41.7119 97.0738L57.4079 91.6127Z",fill:"#0095F2"}),g("defs",null,g("linearGradient",{id:"paint0_linear_741_6601",x1:42.7139,y1:91.787,x2:42.7139,y2:45.9985,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.16,stopColor:"#161F3B"}),g("stop",{offset:.32,stopColor:"#182547"}),g("stop",{offset:.49,stopColor:"#1B2F5B"}),g("stop",{offset:.65,stopColor:"#203D78"}),g("stop",{offset:.82,stopColor:"#264F9D"}),g("stop",{offset:.98,stopColor:"#2D64CA"}),g("stop",{offset:.99,stopColor:"#2E66CD"})),g("linearGradient",{id:"paint1_linear_741_6601",x1:51.6071,y1:85.8149,x2:83.6797,y2:53.7422,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.15,stopColor:"#BA5CDE"}),g("stop",{offset:.39,stopColor:"#D76EAE"}),g("stop",{offset:.6,stopColor:"#ED7B8B"}),g("stop",{offset:.78,stopColor:"#FA8476"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"Finally, tell us a little more about you…",paragraph:"Provide your contact details, and we’ll generate a personalised report based on your needs."}}},banners:{error:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M86.8376 63.668L49.2598 46.5395C48.5963 46.2365 47.8357 46.2365 47.1722 46.5335L9.15503 63.6619C7.23705 64.5255 7.14918 67.2191 9.00959 68.2039L47.0267 88.3745C47.7721 88.7714 48.6659 88.7683 49.4083 88.3684L86.9861 68.1978C88.8313 67.207 88.7435 64.5346 86.8376 63.665V63.668Z",fill:"url(#paint0_linear_767_12323)"}),g("path",{d:"M58.335 31.2441L53.0689 11.3977C52.4871 9.20704 50.5025 7.67993 48.2361 7.67993H46.9362C44.6486 7.67993 42.6548 9.23128 42.0913 11.4462L36.8555 32.0288C45.6788 33.3923 53.2719 32.4106 58.332 31.241L58.335 31.2441Z",fill:"url(#paint1_linear_767_12323)"}),g("path",{d:"M62.9011 48.4482C58.3167 49.9905 46.5513 53.0265 32.3832 49.633L27.9473 67.0675C27.9473 67.0675 44.0577 74.7939 67.843 67.0675L62.9041 48.4482H62.9011Z",fill:"url(#paint2_linear_767_12323)"}),g("path",{d:"M62.9008 48.4484L58.3376 31.2441C53.2745 32.4137 45.6814 33.3954 36.8611 32.0319L32.3828 49.6331C46.551 53.0236 58.3164 49.9906 62.9008 48.4484Z",fill:"#FFD84D"}),g("defs",null,g("linearGradient",{id:"paint0_linear_767_12323",x1:7.66428,y1:67.4918,x2:88.3193,y2:67.4918,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_767_12323",x1:27.9443,y1:20.1877,x2:67.84,y2:20.1877,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.22,stopColor:"#FF8B6D"}),g("stop",{offset:.44,stopColor:"#FF9768"}),g("stop",{offset:.67,stopColor:"#FFAB5F"}),g("stop",{offset:.89,stopColor:"#FFC853"}),g("stop",{offset:.99,stopColor:"#FFD84D"})),g("linearGradient",{id:"paint2_linear_767_12323",x1:27.9442,y1:59.4743,x2:4.51341,y2:59.4743,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.22,stopColor:"#FF8B6D"}),g("stop",{offset:.44,stopColor:"#FF9768"}),g("stop",{offset:.67,stopColor:"#FFAB5F"}),g("stop",{offset:.89,stopColor:"#FFC853"}),g("stop",{offset:.99,stopColor:"#FFD84D"})))),heading:"Oops, something went wrong!",paragraph:"We couldn’t get your estimate at this time, please try again later.",backgroundColour:"#FFEEEB"},evSavings:{icon:e=>g("svg",{viewBox:"0 0 70 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("g",{id:"Group 18"},g("path",{id:"Vector",d:"M66.0127 22.3174V67.4818C66.0127 70.3794 63.6567 72.7354 60.7591 72.7354C57.8614 72.7354 55.5054 70.3794 55.5054 67.4818V61.7377C55.5054 60.9885 55.1805 60.2784 54.6148 59.7849L48.4254 54.4049C47.8266 53.8843 47.7634 52.9786 48.2839 52.3829C48.8015 51.7841 49.7072 51.7209 50.306 52.2414L56.4954 57.6215C57.6869 58.6565 58.373 60.158 58.373 61.7377V67.4818C58.373 68.7967 59.4442 69.8679 60.7591 69.8679C62.074 69.8679 63.1452 68.7967 63.1452 67.4818V23.4187",fill:"#CBD9FD"}),g("path",{id:"Vector_2",d:"M11.382 0.679688H45.7654C48.8134 0.679688 51.2868 3.15305 51.2868 6.20112V73.9237H5.8606V6.20112C5.8606 3.15305 8.33396 0.679688 11.382 0.679688Z",fill:"url(#paint0_linear_639_2036)"}),g("path",{id:"Vector_3",d:"M2.51162 72.5156H54.6358C55.8002 72.5156 56.745 73.4604 56.745 74.6249V81.3198H0.402344V74.6249C0.402344 73.4604 1.34716 72.5156 2.51162 72.5156Z",fill:"#161E37"}),g("path",{id:"Vector_4",d:"M15.4563 72.5156H43.2741V73.4996C43.2741 75.2869 41.8208 76.7402 40.0334 76.7402H18.6969C16.9096 76.7402 15.4563 75.2869 15.4563 73.4996V72.5156Z",fill:"#2E66F7"}),g("path",{id:"Vector_5",d:"M29.5352 9.48438H28.8491C24.1761 9.48438 20.3879 13.2726 20.3879 17.9456V52.4342C20.3879 57.1072 24.1761 60.8954 28.8491 60.8954H29.5352C34.2081 60.8954 37.9963 57.1072 37.9963 52.4342V17.9456C37.9963 13.2726 34.2081 9.48438 29.5352 9.48438Z",fill:"url(#paint1_linear_639_2036)"}),g("path",{id:"Vector_6",d:"M28.3105 41.9263C28.154 41.9263 27.9975 41.8781 27.8621 41.7788C27.5281 41.5321 27.4589 41.0597 27.7057 40.7257L30.8651 36.468H26.1019C25.8191 36.468 25.5603 36.3085 25.4309 36.0558C25.3015 35.803 25.3256 35.5021 25.4941 35.2735L29.3756 29.9356C29.6194 29.5986 30.0918 29.5263 30.4258 29.7701C30.7628 30.0138 30.835 30.4862 30.5912 30.8202L27.5793 34.9635H32.3605C32.6434 34.9635 32.9051 35.123 33.0315 35.3788C33.1579 35.6345 33.1338 35.9384 32.9623 36.1641L28.9123 41.6223C28.7648 41.8209 28.5361 41.9263 28.3075 41.9263H28.3105Z",fill:"#FF876F"}),g("g",{id:"Group"},g("path",{id:"Vector_7",d:"M61.8513 20.7524C61.2676 20.7524 60.7952 20.28 60.7952 19.6962V15.1196C60.7952 14.5359 61.2676 14.0635 61.8513 14.0635C62.435 14.0635 62.9075 14.5359 62.9075 15.1196V19.6962C62.9075 20.28 62.435 20.7524 61.8513 20.7524Z",fill:"#A650FF"}),g("path",{id:"Vector_8",d:"M66.78 20.7524C66.1963 20.7524 65.7239 20.28 65.7239 19.6962V15.1196C65.7239 14.5359 66.1963 14.0635 66.78 14.0635C67.3638 14.0635 67.8362 14.5359 67.8362 15.1196V19.6962C67.8362 20.28 67.3638 20.7524 66.78 20.7524Z",fill:"#A650FF"})),g("path",{id:"Vector_9",d:"M59.7421 17.2285H68.8893C69.3767 17.2285 69.7739 17.6257 69.7739 18.1131V24.799C69.7739 27.811 67.3276 30.2573 64.3157 30.2573C61.3037 30.2573 58.8574 27.811 58.8574 24.799V18.1131C58.8574 17.6257 59.2546 17.2285 59.7421 17.2285Z",fill:"url(#paint2_linear_639_2036)"})),g("defs",null,g("linearGradient",{id:"paint0_linear_639_2036",x1:28.5752,y1:73.9237,x2:28.5752,y2:.679688,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})),g("linearGradient",{id:"paint1_linear_639_2036",x1:29.1891,y1:60.8954,x2:29.1891,y2:9.48438,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.15,stopColor:"#161F3B"}),g("stop",{offset:.31,stopColor:"#182547"}),g("stop",{offset:.46,stopColor:"#1B2E5B"}),g("stop",{offset:.62,stopColor:"#1F3A78"}),g("stop",{offset:.78,stopColor:"#244A9D"}),g("stop",{offset:.94,stopColor:"#2B5ECA"}),g("stop",{offset:.99,stopColor:"#2E66DC"})),g("linearGradient",{id:"paint2_linear_639_2036",x1:58.713,y1:26.0147,x2:70.5322,y2:19.1904,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#8B4FFF"}),g("stop",{offset:.89,stopColor:"#FF806F"})))),heading:e=>zn(Un,{children:["You could save an extra"," ",zn("span",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontWeight:"700"},children:["$",e.savings]})]}),paragraph:"Explore potential savings with an eligible Battery Electric Vehicle (BEV). Petrol, Diesel, and Hybrid (including Plug-In Hybrid) vehicles are not eligible for the Fringe Benefits Tax (FBT) exemption.",backgroundColour:"#F5EBFF"},maxEvSavings:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M48.8842 68.3729H47.2114V73.5408H48.8842V68.3729Z",fill:"#0095F2"}),g("path",{d:"M53.9739 13.7909C70.8102 16.7692 83.2606 31.8205 82.5296 49.3708C81.7647 67.6861 66.9275 82.088 48.8809 82.5844",stroke:"#2E66F7",strokeWidth:2.88,strokeMiterlimit:10,strokeLinecap:"round"}),g("path",{d:"M52.9876 88.32L47.0786 82.853L51.6855 76.485",stroke:"#2E66F7",strokeWidth:2.88,strokeLinecap:"round",strokeLinejoin:"round"}),g("path",{d:"M41.0269 82.1662C24.8094 78.6949 12.971 63.9496 13.6849 46.8209C14.4499 28.5056 29.2871 14.1037 47.3337 13.6073",stroke:"#0095F2",strokeWidth:2.88,strokeMiterlimit:10,strokeLinecap:"round"}),g("path",{d:"M43.2266 7.87512L49.1356 13.3422L44.5287 19.7068",stroke:"#0095F2",strokeWidth:2.88,strokeLinecap:"round",strokeLinejoin:"round"}),g("path",{d:"M48.8841 50.6662V21.0905C48.7583 21.0021 48.6937 20.9579 48.6937 20.9579C48.6937 20.9579 36.1549 29.4474 31.4019 43.6862L48.6937 50.7546L48.8841 50.6662Z",fill:"#0095F2"}),g("path",{d:"M48.6902 71.5721C48.6902 71.5721 48.7582 71.5653 48.8806 71.5551V50.6661L48.6902 50.7545L31.3983 43.6862C30.7217 45.7091 30.205 47.851 29.9024 50.1018C27.2198 70.0422 48.6902 71.5755 48.6902 71.5755V71.5721Z",fill:"url(#paint0_linear_743_7349)"}),g("path",{d:"M65.6798 42.8158C61.0865 30.1206 50.438 22.1988 48.8843 21.0939V50.6662L65.6798 42.8158Z",fill:"url(#paint1_linear_743_7349)"}),g("path",{d:"M65.6798 42.8158C61.0865 30.1206 50.438 22.1988 48.8843 21.0939V50.6662L65.6798 42.8158Z",fill:"#2E66F7"}),g("path",{d:"M67.4817 50.0985C67.1349 47.5248 66.5059 45.0904 65.6798 42.8125L48.8843 50.6629V71.5518C50.9922 71.3444 70.018 68.9373 67.4817 50.0951V50.0985Z",fill:"url(#paint2_linear_743_7349)"}),g("path",{d:"M67.4817 50.0985C67.1349 47.5248 66.5059 45.0904 65.6798 42.8125L48.8843 50.6629V71.5518C50.9922 71.3444 70.018 68.9373 67.4817 50.0951V50.0985Z",fill:"url(#paint3_linear_743_7349)"}),g("defs",null,g("linearGradient",{id:"paint0_linear_743_7349",x1:39.2759,y1:71.5721,x2:39.2759,y2:43.6862,gradientUnits:"userSpaceOnUse"},g("stop",{offset:.11,stopColor:"#0095F2"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint1_linear_743_7349",x1:29.6715,y1:35.88,x2:67.7129,y2:35.88,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.17,stopColor:"#A150FE"}),g("stop",{offset:.35,stopColor:"#9353FD"}),g("stop",{offset:.55,stopColor:"#7D57FC"}),g("stop",{offset:.75,stopColor:"#5E5DFA"}),g("stop",{offset:.96,stopColor:"#3664F7"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint2_linear_743_7349",x1:29.6715,y1:57.1839,x2:67.7129,y2:57.1839,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.17,stopColor:"#A150FE"}),g("stop",{offset:.35,stopColor:"#9353FD"}),g("stop",{offset:.55,stopColor:"#7D57FC"}),g("stop",{offset:.75,stopColor:"#5E5DFA"}),g("stop",{offset:.96,stopColor:"#3664F7"}),g("stop",{offset:.99,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint3_linear_743_7349",x1:44.9336,y1:64.718,x2:69.9772,y2:50.2583,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#2E66F7"}),g("stop",{offset:.08,stopColor:"#3B63F7"}),g("stop",{offset:.38,stopColor:"#695BFA"}),g("stop",{offset:.64,stopColor:"#8A55FD"}),g("stop",{offset:.85,stopColor:"#9E51FE"}),g("stop",{offset:1,stopColor:"#A650FF"})))),heading:"You’ve made a great choice!",paragraph:"Not only are you doing a great thing for the environment, but by choosing a Battery Electric Vehicle (BEV) you’re maximising your tax savings through the Fringe Benefits Tax (FBT) exemption.",disclaimer:()=>zn(Un,{children:[Wn("sup",{children:"*"}),"Savings calculated over the full lease term"]}),backgroundColour:"#EAF0FE"},luxuryCarSavings:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M35.8692 52.8943H14.0801V88.3167H35.8692V52.8943Z",fill:"url(#paint0_linear_731_6332)"}),g("path",{d:"M59.2242 33.2529H37.5908V88.3198H59.2242V33.2529Z",fill:"url(#paint1_linear_731_6332)"}),g("path",{d:"M82.0723 45.8538H60.7852V88.3199H82.0723V45.8538Z",fill:"url(#paint2_linear_731_6332)"}),g("path",{d:"M25.0537 50.3017C30.939 50.3017 35.71 45.4895 35.71 39.5533C35.71 33.6172 30.939 28.8049 25.0537 28.8049C19.1684 28.8049 14.3975 33.6172 14.3975 39.5533C14.3975 45.4895 19.1684 50.3017 25.0537 50.3017Z",fill:"#0095F2"}),g("path",{d:"M27.8371 41.5581C27.8371 38.2284 23.3128 39.7947 23.3128 37.5453C23.3128 36.8622 23.8148 36.2172 24.9681 36.2172C26.1214 36.2172 26.6933 36.7923 26.6933 37.7359H27.6624C27.6624 36.2522 26.5694 35.5437 25.4701 35.3848V33.4944H24.4661V35.388C23.1381 35.5786 22.3692 36.5032 22.3692 37.5485C22.3692 40.8432 26.884 39.0417 26.884 41.6184C26.884 42.4763 26.1151 43.0069 25.0412 43.0069C23.8053 43.0069 23.0364 42.2412 23.0364 41.288H22.0928C22.0928 42.6447 23.1095 43.6359 24.4725 43.8456V45.9648H25.4765V43.8615C26.9729 43.6963 27.8435 42.7368 27.8435 41.5612L27.8371 41.5581Z",fill:"white"}),g("path",{d:"M48.2471 29.1767C54.1324 29.1767 58.9033 24.3645 58.9033 18.4283C58.9033 12.4922 54.1324 7.67993 48.2471 7.67993C42.3618 7.67993 37.5908 12.4922 37.5908 18.4283C37.5908 24.3645 42.3618 29.1767 48.2471 29.1767Z",fill:"#FF876F"}),g("path",{d:"M51.0334 20.4331C51.0334 17.1034 46.5091 18.6697 46.5091 16.4203C46.5091 15.7372 47.0111 15.0922 48.1644 15.0922C49.3177 15.0922 49.8896 15.6673 49.8896 16.6109H50.8587C50.8587 15.1272 49.7657 14.4187 48.6664 14.2598V12.3694H47.6624V14.263C46.3344 14.4536 45.5655 15.3782 45.5655 16.4235C45.5655 19.7182 50.0803 17.9167 50.0803 20.4934C50.0803 21.3513 49.3114 21.8819 48.2375 21.8819C47.0016 21.8819 46.2327 21.1162 46.2327 20.163H45.2891C45.2891 21.5197 46.3058 22.5109 47.6688 22.7206V24.8398H48.6728V22.7365C50.1692 22.5713 51.0398 21.6118 51.0398 20.4362L51.0334 20.4331Z",fill:"black"}),g("path",{d:"M71.3809 41.7773C77.2662 41.7773 82.0371 36.9651 82.0371 31.0289C82.0371 25.0927 77.2662 20.2805 71.3809 20.2805C65.4956 20.2805 60.7246 25.0927 60.7246 31.0289C60.7246 36.9651 65.4956 41.7773 71.3809 41.7773Z",fill:"#A650FF"}),g("path",{d:"M74.1643 33.0337C74.1643 29.704 69.64 31.2703 69.64 29.0209C69.64 28.3378 70.142 27.6928 71.2953 27.6928C72.4486 27.6928 73.0205 28.2679 73.0205 29.2115H73.9895C73.9895 27.7278 72.8966 27.0193 71.7973 26.8604V24.97H70.7933V26.8636C69.4652 27.0542 68.6963 27.9788 68.6963 29.0241C68.6963 32.3188 73.2111 30.5173 73.2111 33.094C73.2111 33.9519 72.4422 34.4824 71.3683 34.4824C70.1324 34.4824 69.3635 33.7167 69.3635 32.7636H68.4199C68.4199 34.1202 69.4366 35.1115 70.7996 35.3212V37.4404H71.8036V35.3371C73.3001 35.1719 74.1706 34.2124 74.1706 33.0368L74.1643 33.0337Z",fill:"white"}),g("defs",null,g("linearGradient",{id:"paint0_linear_731_6332",x1:24.9746,y1:88.3167,x2:24.9746,y2:52.8943,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.19,stopColor:"#BE5ED7"}),g("stop",{offset:.45,stopColor:"#D970AA"}),g("stop",{offset:.68,stopColor:"#EE7C8A"}),g("stop",{offset:.87,stopColor:"#FA8476"}),g("stop",{offset:1,stopColor:"#FF876F"})),g("linearGradient",{id:"paint1_linear_731_6332",x1:48.4059,y1:88.3166,x2:48.4059,y2:33.2529,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#161E37"}),g("stop",{offset:.08,stopColor:"#1B2D5F"}),g("stop",{offset:.18,stopColor:"#203C87"}),g("stop",{offset:.28,stopColor:"#2449AA"}),g("stop",{offset:.39,stopColor:"#2753C6"}),g("stop",{offset:.51,stopColor:"#2A5BDB"}),g("stop",{offset:.64,stopColor:"#2C61EB"}),g("stop",{offset:.78,stopColor:"#2D64F4"}),g("stop",{offset:1,stopColor:"#2E66F7"})),g("linearGradient",{id:"paint2_linear_731_6332",x1:71.4287,y1:88.3168,x2:71.4287,y2:45.8538,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.01,stopColor:"#A251FE"}),g("stop",{offset:.27,stopColor:"#6969FA"}),g("stop",{offset:.5,stopColor:"#3B7CF6"}),g("stop",{offset:.71,stopColor:"#1B89F4"}),g("stop",{offset:.88,stopColor:"#0792F2"}),g("stop",{offset:1,stopColor:"#0095F2"})))),heading:"You could save more!",paragraph:"Consider a Battery Electric Vehicle (BEV) below the Luxury Car Tax (LCT) threshold ($91,387 for financial year 2024-25) for even greater savings. Adjust your vehicle cost to compare the savings with the Fringe Benefits Tax (FBT) exemption.",disclaimer:()=>zn(Un,{children:[Wn("sup",{children:"*"}),"Savings calculated over the full lease term"]}),backgroundColour:"#FFEEEB"},getInTouch:{icon:e=>g("svg",{viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{opacity:.93,d:"M62.3617 15.7588C59.7524 14.3343 56.757 13.5222 53.5719 13.5222C43.4242 13.5222 35.2002 21.7495 35.2002 31.8939C35.2002 42.0383 42.6254 49.4336 52.0676 50.2024C52.5635 50.2423 53.066 50.269 53.5719 50.269C63.7196 50.269 71.9436 42.0416 71.9436 31.8973C71.9436 24.9346 68.0696 18.874 62.3584 15.7588H62.3617Z",fill:"#2E66F7"}),g("path",{d:"M51.4657 51.4736C36.4954 51.4736 24.3574 63.6116 24.3574 78.5819V91.8348H78.5739V78.5819C78.5739 63.6116 66.436 51.4736 51.4657 51.4736Z",fill:"url(#paint0_linear_837_4233)"}),g("path",{opacity:.87,d:"M88.2154 49.9327C87.2137 41.752 80.1113 35.2187 71.8174 34.9824C63.7797 34.7528 56.7938 39.9381 54.6671 47.6929C53.6021 51.5669 53.9648 55.1946 56.3878 58.5095C57.0268 59.3849 57.6092 60.3001 58.2216 61.1921C60.0089 63.7881 61.4799 66.5338 62.1656 69.6391C62.4118 70.7573 62.5782 71.8923 62.7813 73.0172L79.4822 73.0571C79.612 72.9673 79.6653 72.8075 79.6886 72.5646C79.9748 69.6757 80.7636 66.9199 82.2347 64.4204C83.4328 62.3836 84.7608 60.4199 86.0987 58.4696C87.876 55.8769 88.6048 53.0979 88.2188 49.9361L88.2154 49.9327Z",fill:"url(#paint1_linear_837_4233)"}),g("path",{d:"M79.4822 73.0537L79.4123 73.6761L78.4704 81.7969L63.4203 81.7603L62.7812 73.0171",fill:"#CBD9FD"}),g("path",{opacity:.71,d:"M52.3609 4.15991H11.3607C9.32715 4.15991 7.67969 5.80738 7.67969 7.84091V26.2193C7.67969 28.2528 9.32715 29.9003 11.3607 29.9003H16.6991L23.6717 35.5882V29.9003H52.3642C54.3978 29.9003 56.0452 28.2528 56.0452 26.2193V7.84424C56.0452 5.8107 54.3978 4.16324 52.3642 4.16324L52.3609 4.15991Z",fill:"url(#paint2_linear_837_4233)"}),g("path",{d:"M28.4775 57.2083H28.2212C28.2212 52.5388 24.4371 48.7546 19.7676 48.7546V48.4983C24.4371 48.4983 28.2212 44.7142 28.2212 40.0447H28.4775C28.4775 44.7142 32.2617 48.4983 36.9311 48.4983V48.7546C32.2617 48.7546 28.4775 52.5388 28.4775 57.2083Z",fill:"url(#paint3_linear_837_4233)"}),g("defs",null,g("linearGradient",{id:"paint0_linear_837_4233",x1:24.3574,y1:71.6526,x2:78.5739,y2:71.6526,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#0095F2"}),g("stop",{offset:.24,stopColor:"#2580F5"}),g("stop",{offset:.59,stopColor:"#5665FA"}),g("stop",{offset:.85,stopColor:"#7455FD"}),g("stop",{offset:1,stopColor:"#804FFF"})),g("linearGradient",{id:"paint1_linear_837_4233",x1:71.1657,y1:73.0311,x2:71.252,y2:34.9698,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#FF876F"}),g("stop",{offset:.13,stopColor:"#FF9C66"}),g("stop",{offset:.34,stopColor:"#FFB65B"}),g("stop",{offset:.55,stopColor:"#FFC953"}),g("stop",{offset:.76,stopColor:"#FFD44E"}),g("stop",{offset:.99,stopColor:"#FFD84D"})),g("linearGradient",{id:"paint2_linear_837_4233",x1:7.67636,y1:19.8757,x2:56.0419,y2:19.8757,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#CBD9FD"}),g("stop",{offset:.99,stopColor:"white"})),g("linearGradient",{id:"paint3_linear_837_4233",x1:21.8577,y1:52.3724,x2:34.841,y2:44.8772,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"What’s next?",paragraph:()=>zn(Un,{children:["A Flare Cars expert ",Wn("span",{css:{fontFamily:'var(--fl-font-primary), var(--fl-font-secondary), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontWeight:"700"},children:"will be in touch soon"})," to discuss your estimate and your novated leasing options."]}),backgroundColour:"#FFFFFF"},support:{icon:e=>g("svg",{viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g("path",{d:"M32.5458 16.7271C40.5465 16.7271 47.0549 23.2355 47.0549 31.2362C47.0549 39.2369 40.5465 45.7453 32.5458 45.7453C24.5451 45.7453 18.0367 39.2369 18.0367 31.2362C18.0367 23.2355 24.5451 16.7271 32.5458 16.7271ZM32.5458 4.94531C18.0258 4.94531 6.25488 16.7162 6.25488 31.2362C6.25488 45.7562 18.0258 57.5271 32.5458 57.5271C47.0658 57.5271 58.8367 45.7562 58.8367 31.2362C58.8367 16.7162 47.0658 4.94531 32.5458 4.94531Z",fill:"url(#paint0_linear_731_5867)"}),g("g",{opacity:.9},g("path",{d:"M58.7147 28.0728H46.3046C45.1526 28.0728 44.2188 29.0066 44.2188 30.1586V33.8415C44.2188 34.9934 45.1526 35.9273 46.3046 35.9273H58.7147C59.8667 35.9273 60.8006 34.9934 60.8006 33.8415V30.1586C60.8006 29.0066 59.8667 28.0728 58.7147 28.0728Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M17.6962 28.0728H5.28601C4.13405 28.0728 3.2002 29.0066 3.2002 30.1586V33.8415C3.2002 34.9934 4.13405 35.9273 5.28601 35.9273H17.6962C18.8482 35.9273 19.782 34.9934 19.782 33.8415V30.1586C19.782 29.0066 18.8482 28.0728 17.6962 28.0728Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M33.842 44.218H30.1591C29.0071 44.218 28.0732 45.1519 28.0732 46.3038V58.714C28.0732 59.866 29.0071 60.7998 30.1591 60.7998H33.842C34.9939 60.7998 35.9278 59.866 35.9278 58.714V46.3038C35.9278 45.1519 34.9939 44.218 33.842 44.218Z",fill:"#C6D6FD"})),g("g",{opacity:.9},g("path",{d:"M33.842 3.19995H30.1591C29.0071 3.19995 28.0732 4.1338 28.0732 5.28577V17.696C28.0732 18.8479 29.0071 19.7818 30.1591 19.7818H33.842C34.9939 19.7818 35.9278 18.8479 35.9278 17.696V5.28577C35.9278 4.1338 34.9939 3.19995 33.842 3.19995Z",fill:"#C6D6FD"})),g("defs",null,g("linearGradient",{id:"paint0_linear_731_5867",x1:6.25488,y1:31.2362,x2:58.8367,y2:31.2362,gradientUnits:"userSpaceOnUse"},g("stop",{stopColor:"#A650FF"}),g("stop",{offset:.89,stopColor:"#FF876F"})))),heading:"Need help?",paragraph:()=>zn(Un,{children:["Have a question about how novated leasing works or need help with your estimate? Call us now on ",Wn("span",{css:{fontWeight:"700"},children:"1300 480 096"})," to speak to a Flare Cars expert."]}),backgroundColour:"#FFFFFF"}}},yg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M34.5 12.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 12.5H12.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M20.5 20.5C24.9183 20.5 28.5 16.9183 28.5 12.5C28.5 8.08172 24.9183 4.5 20.5 4.5C16.0817 4.5 12.5 8.08172 12.5 12.5C12.5 16.9183 16.0817 20.5 20.5 20.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M34.5 52.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 52.5H12.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M20.5 60.5C24.9183 60.5 28.5 56.9183 28.5 52.5C28.5 48.0817 24.9183 44.5 20.5 44.5C16.0817 44.5 12.5 48.0817 12.5 52.5C12.5 56.9183 16.0817 60.5 20.5 60.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M3.5 32.5H30.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M52.5 32.5H61.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M44.5 40.5C48.9183 40.5 52.5 36.9183 52.5 32.5C52.5 28.0817 48.9183 24.5 44.5 24.5C40.0817 24.5 36.5 28.0817 36.5 32.5C36.5 36.9183 40.0817 40.5 44.5 40.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),bg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M13.5 61.5H3.5V35.5H7.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 46.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 40.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 52.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.5 34.5H29.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M33.5 19.5V3.5L61.5 13.5V61.5H13.5V25.5H37.5V60.833",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M43.5 52.5V15.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M49.5 52.5V17.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M55.5 52.5V19.5",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),wg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:64,height:58,viewBox:"0 0 64 58",fill:"none",...e},g("path",{d:"M9 56V49.9C8.99933 49.2052 9.17962 48.5223 9.52312 47.9184C9.86662 47.3145 10.3615 46.8105 10.959 46.456C12.86 45.328 16.309 44 22 44C27.691 44 31.14 45.328 33.041 46.454C33.6388 46.8087 34.1339 47.313 34.4774 47.9173C34.8209 48.5215 35.001 49.2049 35 49.9V56",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M15 31C15 29.1435 15.7375 27.363 17.0503 26.0503C18.363 24.7375 20.1435 24 22 24C23.8565 24 25.637 24.7375 26.9497 26.0503C28.2625 27.363 29 29.1435 29 31C29 34.866 25.866 39 22 39C18.134 39 15 34.866 15 31Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M28 14H2V56H56V30",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M34 7V19C34 19.6566 34.1293 20.3068 34.3806 20.9134C34.6319 21.52 35.0002 22.0712 35.4645 22.5355C36.4021 23.4732 37.6739 24 39 24H40V30L50 24H57C57.6566 24 58.3068 23.8707 58.9134 23.6194C59.52 23.3681 60.0712 22.9998 60.5355 22.5355C60.9998 22.0712 61.3681 21.52 61.6194 20.9134C61.8707 20.3068 62 19.6566 62 19V7C62 5.67392 61.4732 4.40215 60.5355 3.46447C59.5979 2.52678 58.3261 2 57 2H39C37.6739 2 36.4021 2.52678 35.4645 3.46447C34.5268 4.40215 34 5.67392 34 7Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),Cg=e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M85.9375 39.3247C83.1129 42.3249 79.7036 44.7146 75.9198 46.3463C72.1361 47.9781 68.0581 48.8173 63.9375 48.8122C60.2908 48.8122 56.7934 50.2609 54.2148 52.8395C51.6362 55.4181 50.1875 58.9155 50.1875 62.5622C50.1875 66.2089 51.6362 69.7063 54.2148 72.2849C56.7934 74.8636 60.2908 76.3122 63.9375 76.3122C69.7723 76.3122 75.3681 73.9944 79.4939 69.8686C83.6197 65.7428 85.9375 60.147 85.9375 54.3122V39.3247Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M21.8303 12.0093C24.3452 13.8683 26.2771 18.5955 26.2771 18.5955C27.5139 19.4701 28.4977 20.656 29.1288 22.033C29.5091 23.5201 29.5218 25.0774 29.166 26.5705C29.166 26.5705 31.091 32.2245 30.1862 33.8113C29.2815 35.398 25.4273 36.4155 25.4273 36.4155C24.9046 37.3079 24.2013 38.0812 23.3624 38.6859C22.5235 39.2906 21.5675 39.7135 20.5557 39.9273C19.3561 39.9945 18.2313 40.532 17.4254 41.4231C16.6194 42.3142 16.1973 43.4872 16.2506 44.6875C16.2506 47.7469 19.3086 52.7299 19.3086 52.7299C19.3086 52.7299 22.4807 54.2809 22.9345 55.4125C23.2752 56.6435 23.4785 57.9084 23.5408 59.1841C23.5408 59.1841 26.5658 64.5095 24.8595 67.5717C24.3177 68.5479 21.8015 69.2712 21.8015 69.2712L18.2732 74.5622",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M76.1583 20.1958C72.7354 21.6249 69.1959 22.7571 65.579 23.5797C65.579 23.5797 60.6606 29.0549 57.4321 28.6012C54.2036 28.1474 50.9188 24.5243 50.9188 24.5243C50.9188 24.5243 51.1443 17.8404 50.1254 17.5008C49.1065 17.1612 46.3868 18.9748 44.6886 17.6135C42.9905 16.2523 43.9695 12.4229 43.9695 12.4229C43.9695 12.4229 40.2708 11.2707 39.817 10.0235C39.3633 8.77641 41.1631 6.00304 41.5069 4.93604",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M73.5625 57.0625C54.3125 63.9375 59.8125 84.5625 43.3125 84.5625",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M63.6707 40.576L63.7944 40.3134C61.5691 39.5651 59.26 39.094 56.9194 38.9109C55.6823 38.132 54.3659 37.4867 52.9924 36.9859C51.6326 36.6463 47.1762 38.1189 47.1762 38.1189C47.1762 38.1189 41.7422 44.6873 41.7422 47.1788C41.7422 48.1977 43.7016 49.7762 45.1371 51.1965",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M81.9311 30.4383C79.5037 24.0919 75.4948 18.4711 70.2849 14.1093C65.075 9.74744 58.8369 6.78928 52.1626 5.51551C45.4883 4.24175 38.5992 4.69464 32.149 6.83122C25.6989 8.96779 19.9018 12.7172 15.3077 17.7235C10.7137 22.7299 7.47517 28.8272 5.89948 35.4367C4.32379 42.0463 4.46322 48.9488 6.30454 55.4893C8.14586 62.0299 11.628 67.9914 16.4204 72.8081C21.2129 77.6249 27.1567 81.1371 33.6879 83.0114",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"})),_g={...vg,pages:{...vg.pages,vehicleOptions:{infoPanel:{icon:()=>Wn(yg,{css:{height:"4rem"}}),heading:"Configure your estimate",paragraph:"Owning your new BYD can be quick, easy, and cost-effective with the help of our finance partner, Flare Cars. To get started, select from the vehicle and lease options available."}},employmentDetails:{infoPanel:{...vg.pages.employmentDetails.infoPanel,icon:()=>Wn(bg,{css:{height:"4rem"}})}},contactDetails:{infoPanel:{...vg.pages.contactDetails.infoPanel,icon:()=>Wn(wg,{css:{height:"4rem"}})}}},banners:{...vg.banners,error:{...vg.banners.error,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M28.1875 36.4375H61.1875",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M21.7246 55.6875H67.6496",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M11.6875 85.9375L39.1875 3.4375H50.1875L77.6875 85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M3.4375 85.9375H85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))},maxEvSavings:{...vg.banners.maxEvSavings,icon:Cg},evSavings:{...vg.banners.evSavings,icon:Cg},luxuryCarSavings:{...vg.banners.luxuryCarSavings,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:88,height:88,viewBox:"0 0 88 88",fill:"none",...e},g("path",{d:"M3.4375 80.4375H85.9375",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M22.6875 33.6875H6.1875V69.4375H22.6875V33.6875Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M52.9375 8.9375H36.4375V69.4375H52.9375V8.9375Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M83.1875 47.4375H66.6875V69.4375H83.1875V47.4375Z",stroke:"#212121",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))},getInTouch:{...vg.banners.getInTouch,icon:wg},support:{...vg.banners.support,icon:e=>g("svg",{xmlns:"http://www.w3.org/2000/svg",width:64,height:64,viewBox:"0 0 64 64",fill:"none",...e},g("path",{d:"M8.38477 16.3838L19.4428 27.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M16.3848 8.38379L27.4428 19.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M48.6166 8.38379L37.5586 19.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M56.6166 16.3838L45.5586 27.4418",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M56.6166 48.6161L45.5586 37.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M48.6166 56.6161L37.5586 45.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M16.3848 56.6161L27.4428 45.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M8.38477 48.6161L19.4428 37.5581",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10}),g("path",{d:"M32.5 61.5C48.5163 61.5 61.5 48.5163 61.5 32.5C61.5 16.4837 48.5163 3.5 32.5 3.5C16.4837 3.5 3.5 16.4837 3.5 32.5C3.5 48.5163 16.4837 61.5 32.5 61.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}),g("path",{d:"M32.5 46.5C40.232 46.5 46.5 40.232 46.5 32.5C46.5 24.768 40.232 18.5 32.5 18.5C24.768 18.5 18.5 24.768 18.5 32.5C18.5 40.232 24.768 46.5 32.5 46.5Z",stroke:"#111827",strokeWidth:3,strokeMiterlimit:10,strokeLinecap:"square"}))}}},xg=e=>{var t,r,n,o,i,a,s,l,c,u,d,p;const f=new URLSearchParams(window.location.search.substring(1)),m=new URLSearchParams(window.location.hash.substring(1)),h=e=>f.get(e)??(m.get(e)||void 0),g=(null==(t=h(Ao))?void 0:t.toLowerCase())||(null==(r=e.vehicleType)?void 0:r.toLowerCase()),v=(null==(n=h(Po))?void 0:n.toLowerCase())||(null==(o=e.engineType)?void 0:o.toLowerCase()),y=(null==(i=h(Ro))?void 0:i.toUpperCase())||(null==(a=e.employerName)?void 0:a.toUpperCase()),b=(null==(s=h(Vo))?void 0:s.toLowerCase())||(null==(l=e.employmentType)?void 0:l.toLowerCase()),w=(null==(c=h(Do))?void 0:c.split(","))||(null==(u=e.preferredMakes)?void 0:u.split(","))||[],C=parseFloat(h(Io)||e.budget||""),_=(null==(d=h(No))?void 0:d.toUpperCase())||(null==(p=e.location)?void 0:p.toUpperCase());var x;return((e,t)=>{const r=new Map;for(const n in e)t(e[n])&&r.set(n,e[n]);return Object.fromEntries(r)})({vehicleSize:qf(g)?g:void 0,engineType:Zf(v)?v:void 0,preferredMakes:(x=w,x.reduce(((e,t)=>{const r=Gf.find((e=>e.toLowerCase()===t.toLowerCase()));return r?[...e,r]:e}),[])),vehicleCost:isNaN(C)?void 0:C,employerName:Qf(y)?y:void 0,employmentType:Kf(b)?b:void 0,location:Xf(_)?_:void 0,firstName:Qf(e.firstName)?e.firstName:void 0,lastName:Qf(e.lastName)?e.lastName:void 0,email:Jf(e.email)?e.email:void 0,mobile:em(e.mobile)?e.mobile:void 0},(e=>!!e))};var kg={exports:{}};Ur(kg.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var r=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(f.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function u(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(e){var t=c(e,"Y")&&u(e,"Y"),r=c(e,"X")&&u(e,"X");return t||r}function p(t){var r,n,o,a,s=(i()-t.startTime)/468;a=s=s>1?1:s,r=.5*(1-Math.cos(Math.PI*a)),n=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,n,o),n===t.x&&o===t.y||e.requestAnimationFrame(p.bind(e,t))}function f(r,n,a){var l,c,u,d,f=i();r===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=o.scroll):(l=r,c=r.scrollLeft,u=r.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:n,y:a})}}}).polyfill(),function(e,t,r,n){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=$,o.prototype.attributeChangedCallback=Z,o.prototype.disconnectedCallback=G,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}((e=>{const t=fe(null),r=e.backendUrl||"https://partner.flarehr.com",n="false"!=e.isGated,{EmotionProvider:o,hasAppliedStyles:i}=Qn("byd-cars-calculator",t,r);(e=>{de((()=>{const t=new URLSearchParams(window.location.search.substring(1)),r=new URLSearchParams(window.location.hash.substring(1)),n=e=>t.get(e)??(r.get(e)||void 0),o={distinctId:void 0,accountId:e.accountId||n(uo),contactId:n(po),customerId:e.customerId||n(fo),partnerId:e.partnerId||n(mo),profileId:e.profileId||n(ho),externalId:e.externalId||n(go),gclid:n(vo),mcid:n(yo),utmSource:n(bo),utmMedium:n(wo),utmTerm:n(Co),utmCampaign:n(_o),utmContent:n(xo),sfSource:e.sfSource||n(ko),sfSubSource:e.sfSubSource||n(So),sfDescription:e.sfDescription||n(Eo),sfClass:e.sfClass||n(Fo),sfMedium:e.sfMedium||n(To),sfName:e.sfName||n(Oo),sfPriority:e.sfPriority||n(Mo),sfTeam:e.sfTeam||n(Lo)};lo(o)}),[e])})({sfClass:"Partner",sfSource:"BYD",sfSubSource:"EVFlex",sfDescription:"BYD_Novated-Calculator",sfMedium:"Web",sfName:"BYD_Novated-Calculator"});const a=xg(e),s={...cp,vehicleOptions:{...cp.vehicleOptions,brand:"BYD",preferredMakes:["BYD"],vehicleSize:"small",engineType:"ev",vehicleCost:a.vehicleCost??cp.vehicleOptions.vehicleCost},employmentDetails:{...cp.employmentDetails,employmentType:a.employmentType??cp.employmentDetails.employmentType,location:a.location??cp.employmentDetails.location}};return zn(b,{children:[Wn("head",{ref:t,children:Wn(gg,{disableSessionRecord:!0})}),Wn(o,{children:Wn("body",{children:i?zn(qn,{isGated:n,children:[Wn(mg,{}),Wn(cg,{backendUrl:r,subRoute:"byd",initialState:s,content:_g,features:{isPartnerDistribution:!0,isGated:n,hideVehicleSelection:!0,hideVehicleRecommendations:!0,showEmployerSearch:!0}})]}):Wn(b,{})})})]})}),"byd-cars-calculator",[],{shadow:!0});