@inploi/plugin-job-search 9.0.8 → 9.1.0
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.
- package/README.md +142 -0
- package/cdn/index.js +14 -14
- package/cdn/style.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +112 -3
- package/dist/index.d.ts +112 -3
- package/dist/index.js +211 -204
- package/dist/{job-search-C1jNeCI0.js → job-search-CI9kMPab.js} +3255 -2886
- package/dist/job-search-NaGE4ixy.cjs +44 -0
- package/dist/{map-BdK-wTC4.js → map-Cg3MSVPB.js} +2 -2
- package/dist/{map-CA2GQNlw.cjs → map-sXHS6vhg.cjs} +1 -1
- package/dist/{mapbox-gl-DU8p4eb-.js → mapbox-gl-B4QioMNv.js} +1 -1
- package/dist/{mapbox-gl-SSZZLm3u.cjs → mapbox-gl-DP29e0dp.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +59 -2
- package/dist/utils.d.ts +59 -2
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/job-search-TQDgitmM.cjs +0 -44
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";var ml=Object.defineProperty;var _l=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gi=(e,t,n)=>_l(e,typeof t!="symbol"?t+"":t,n);const $e=require("@inploi/sdk");var At=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function qa(e,t){if(!e)throw new Error(t)}function yl(e,t){return e in t}var mi={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},bl=e=>{const{salary:t,config:n,t:r=a=>a}=e,o=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1||t.pay===null&&t.pay_min===null&&t.pay_max===null)return;if(t.pay_mask)return r("competitive");if(t.pay_max&&Number.isNaN(+t.pay_max)||t.pay_min&&Number.isNaN(+t.pay_min)||t.pay&&Number.isNaN(+t.pay))return r("invalid_salary");const i=t.pay_type&&t.pay_type in mi?mi[t.pay_type]:void 0;return t.pay?[o.format(+t.pay),i].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[o.formatRange(+t.pay_min,+t.pay_max),i].filter(Boolean).join(" ")||"":t.pay_max?`${r("up_to")} ${[o.format(+t.pay_max),i].filter(Boolean).join(" ")}`:t.pay_min?`${r("from")} ${[o.format(+t.pay_min),i].filter(Boolean).join(" ")}`:r("invalid_salary")},wl=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),xl=({from:e=new Date,to:t,formatter:n=wl,t:r=o=>o})=>{const i=(t instanceof Date?t:new Date(t)).getTime()-e.getTime(),a={days:Math.round(i/1e3/60/60/24),months:Math.round(i/1e3/60/60/24/30)};return a.days===0?r("today"):Math.abs(a.days)<30?n.format(a.days,"days"):Math.abs(a.days)<3?n.format(a.months,"months"):a.months<0?r("over_30_days_ago"):r("in_over_30_days")},$l="https://maps.inploi.com",Sl=async(e,t,n=Date.now()+2500)=>{t==null||t.throwIfAborted();const r=new AbortController,o=()=>r.abort(t==null?void 0:t.reason);t==null||t.addEventListener("abort",o,{once:!0});let i;try{const a=new Promise((c,d)=>{r.signal.addEventListener("abort",()=>d(r.signal.reason),{once:!0}),i=setTimeout(()=>r.abort(),Math.max(0,n-Date.now()))}),s=await Promise.race([e(r.signal),a]);return t==null||t.throwIfAborted(),s}catch{t==null||t.throwIfAborted();return}finally{clearTimeout(i),t==null||t.removeEventListener("abort",o)}},Cl=async(e,t,n)=>{const r=await Sl(async o=>{const{lookupPlaces:i}=await Promise.resolve().then(()=>require("./common.geo-transport-CJGUJXTA-BmDm5A18.cjs"));return o.throwIfAborted(),i({...e,signal:o})},e.signal);return r?{...r,results:r.results.map(t)}:{results:await n(),arm:"direct",source:"direct"}},El=e=>{try{const t=new URL("/outcome",$l);t.search=new URLSearchParams({kind:e.kind,surface:e.surface,arm:e.arm,picked:e.picked?"1":"0"}).toString(),t.searchParams.set("source",e.source),e.picked&&e.edited!==void 0&&t.searchParams.set("edited",e.edited?"1":"0"),e.region&&t.searchParams.set("region",e.region),fetch(t.href,{keepalive:!0}).catch(()=>{})}catch{}},un;exports.l=void 0;var Ba,mt,_i,Ka,Ga,Ja,Ao,Zr,Xr,Ya,zn={},qn=[],Ol=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dn=Array.isArray;function Ie(e,t){for(var n in t)e[n]=t[n];return e}function To(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?un.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return tn(e,a,r,o,null)}function tn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Ba,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function Za(){return{current:null}}function V(e){return e.children}function xe(e,t){this.props=e,this.context=t}function It(e,t){if(t==null)return e.__?It(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?It(e):null}function kl(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Ie({},t);i.__v=t.__v+1,exports.l.vnode&&exports.l.vnode(i),Po(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??It(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,ts(r,i,o),t.__e=t.__=null,i.__e!=n&&Xa(i)}}function Xa(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Xa(e)}function Qr(e){(!e.__d&&(e.__d=!0)&&mt.push(e)&&!Bn.__r++||_i!=exports.l.debounceRendering)&&((_i=exports.l.debounceRendering)||Ka)(Bn)}function Bn(){for(var e,t=1;mt.length;)mt.length>t&&mt.sort(Ga),e=mt.shift(),t=mt.length,kl(e);Bn.__r=0}function Qa(e,t,n,r,o,i,a,s,c,d,f){var l,h,p,g,v,y,m,_=r&&r.__k||qn,b=t.length;for(c=Al(n,t,_,c,b),l=0;l<b;l++)(p=n.__k[l])!=null&&(h=p.__i!=-1&&_[p.__i]||zn,p.__i=l,y=Po(e,p,h,o,i,a,s,c,d,f),g=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Ro(h.ref,null,p),f.push(p.ref,p.__c||g,p)),v==null&&g!=null&&(v=g),(m=!!(4&p.__u))||h.__k===p.__k?c=es(p,c,e,m):typeof p.type=="function"&&y!==void 0?c=y:g&&(c=g.nextSibling),p.__u&=-7);return n.__e=v,c}function Al(e,t,n,r,o){var i,a,s,c,d,f=n.length,l=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[i]=tn(null,a,null,null,null):dn(a)?a=e.__k[i]=tn(V,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=tn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,c=i+h,a.__=e,a.__b=e.__b+1,s=null,(d=a.__i=Tl(a,n,c,l))!=-1&&(l--,(s=n[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>f?h--:o<f&&h++),typeof a.type!="function"&&(a.__u|=4)):d!=c&&(d==c-1?h--:d==c+1?h++:(d>c?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=It(s)),rs(s,s));return r}function es(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=es(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=It(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(dn(e)?e.some(function(n){Ge(n,t)}):t.push(e)),t}function Tl(e,t,n,r){var o,i,a,s=e.key,c=e.type,d=t[n],f=d!=null&&(2&d.__u)==0;if(d===null&&s==null||f&&s==d.key&&c==d.type)return n;if(r>(f?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&(2&d.__u)==0&&s==d.key&&c==d.type)return a}return-1}function yi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ol.test(t)?n:n+"px"}function wn(e,t,n,r,o){var i,a;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||yi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||yi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ja,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Ao,e.addEventListener(t,i?Xr:Zr,i)):e.removeEventListener(t,i?Xr:Zr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function bi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ao++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function Po(e,t,n,r,o,i,a,s,c,d){var f,l,h,p,g,v,y,m,_,b,w,$,x,C,S,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=exports.l.__b)&&f(t);e:if(typeof E=="function")try{if(m=t.props,_="prototype"in E&&E.prototype.render,b=(f=E.contextType)&&r[f.__c],w=f?b?b.props.value:f.__:r,n.__c?y=(l=t.__c=n.__c).__=l.__E:(_?t.__c=l=new E(m,w):(t.__c=l=new xe(m,w),l.constructor=E,l.render=Rl),b&&b.sub(l),l.state||(l.state={}),l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&E.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ie({},l.__s)),Ie(l.__s,E.getDerivedStateFromProps(m,l.__s))),p=l.props,g=l.state,l.__v=t,h)_&&E.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&E.getDerivedStateFromProps==null&&m!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,w),t.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,w)===!1){t.__v!=n.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(A){A&&(A.__=t)}),qn.push.apply(l.__h,l._sb),l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,w),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,g,v)})}if(l.context=w,l.props=m,l.__P=e,l.__e=!1,$=exports.l.__r,x=0,_)l.state=l.__s,l.__d=!1,$&&$(t),f=l.render(l.props,l.state,l.context),qn.push.apply(l.__h,l._sb),l._sb=[];else do l.__d=!1,$&&$(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++x<25);l.state=l.__s,l.getChildContext!=null&&(r=Ie(Ie({},r),l.getChildContext())),_&&!h&&l.getSnapshotBeforeUpdate!=null&&(v=l.getSnapshotBeforeUpdate(p,g)),C=f!=null&&f.type===V&&f.key==null?ns(f.props.children):f,s=Qa(e,dn(C)?C:[C],t,n,r,o,i,a,s,c,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),y&&(l.__E=l.__=null)}catch(A){if(t.__v=null,c||i!=null)if(A.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(S=i.length;S--;)To(i[S]);eo(t)}else t.__e=n.__e,t.__k=n.__k,A.then||eo(t);exports.l.__e(A,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Pl(n.__e,t,n,r,o,i,a,c,d);return(f=exports.l.diffed)&&f(t),128&t.__u?void 0:s}function eo(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(eo))}function ts(e,t,n){for(var r=0;r<n.length;r++)Ro(n[r],n[++r],n[++r]);exports.l.__c&&exports.l.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){exports.l.__e(i,o.__v)}})}function ns(e){return typeof e!="object"||e==null||e.__b>0?e:dn(e)?e.map(ns):Ie({},e)}function Pl(e,t,n,r,o,i,a,s,c){var d,f,l,h,p,g,v,y=n.props||zn,m=t.props,_=t.type;if(_=="svg"?o="http://www.w3.org/2000/svg":_=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((p=i[d])&&"setAttribute"in p==!!_&&(_?p.localName==_:p.nodeType==3)){e=p,i[d]=null;break}}if(e==null){if(_==null)return document.createTextNode(m);e=document.createElementNS(o,_,m.is&&m),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(_==null)y===m||s&&e.data==m||(e.data=m);else{if(i=i&&un.call(e.childNodes),!s&&i!=null)for(y={},d=0;d<e.attributes.length;d++)y[(p=e.attributes[d]).name]=p.value;for(d in y)p=y[d],d=="dangerouslySetInnerHTML"?l=p:d=="children"||d in m||d=="value"&&"defaultValue"in m||d=="checked"&&"defaultChecked"in m||wn(e,d,null,p,o);for(d in m)p=m[d],d=="children"?h=p:d=="dangerouslySetInnerHTML"?f=p:d=="value"?g=p:d=="checked"?v=p:s&&typeof p!="function"||y[d]===p||wn(e,d,p,y[d],o);if(f)s||l&&(f.__html==l.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),Qa(t.type=="template"?e.content:e,dn(h)?h:[h],t,n,r,_=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&It(n,0),s,c),i!=null)for(d=i.length;d--;)To(i[d]);s||(d="value",_=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||_=="progress"&&!g||_=="option"&&g!=y[d])&&wn(e,d,g,y[d],o),d="checked",v!=null&&v!=e[d]&&wn(e,d,v,y[d],o))}return e}function Ro(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){exports.l.__e(o,n)}}function rs(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ro(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){exports.l.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&rs(r[o],t,n||typeof e.type!="function");n||To(e.__e),e.__c=e.__=e.__e=void 0}function Rl(e,t,n){return this.constructor(e,n)}function Mt(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Po(t,e=(!r&&n||t).__k=k(V,null,[e]),o||zn,zn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?un.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),ts(i,e,a)}function Do(e,t){Mt(e,t,Do)}function Dl(e,t,n){var r,o,i,a,s=Ie({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?un.call(arguments,2):n),tn(e.type,s,r||e.key,o||e.ref,null)}function Ye(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Qr(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Ya++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}un=qn.slice,exports.l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Ba=0,xe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ie({},this.state),typeof e=="function"&&(e=e(Ie({},n),this.props)),e&&Ie(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qr(this))},xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qr(this))},xe.prototype.render=V,mt=[],Ka=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ga=function(e,t){return e.__v.__b-t.__v.__b},Bn.__r=0,Ja=/(PointerCapture)$|Capture$/i,Ao=0,Zr=bi(!1),Xr=bi(!0),Ya=0;const Ll={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function os(e){return Ll}let xr;function Il(e){return xr==null?void 0:xr.get(e)}let $r;function Ml(e){return $r==null?void 0:$r.get(e)}let Sr;function Nl(e,t){var n;return(n=Sr==null?void 0:Sr.get(e))==null?void 0:n.get(t)}function Lo(e){var n,r;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor)==null?void 0:r.name))??"null":t}function ve(e,t,n,r,o){const i=o&&"input"in o?o.input:n.value,a=(o==null?void 0:o.expected)??e.expects??null,s=(o==null?void 0:o.received)??Lo(i),c={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??Nl(e.reference,c.lang)??(d?Ml(c.lang):null)??r.message??Il(c.lang);f!==void 0&&(c.message=typeof f=="function"?f(c):f),d&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}const wi=new WeakMap;function de(e){let t=wi.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},os())}},wi.set(e,t)),t}function jl(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function is(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}const Fl=/^[+-]?(?:\d*\.)?\d+$/u;function as(e){return{kind:"validation",type:"decimal",reference:as,async:!1,expects:null,requirement:Fl,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&ve(this,"decimal",t,n),t}}}function Ze(e){return{kind:"transformation",type:"transform",reference:Ze,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function ss(e){return{kind:"validation",type:"url",reference:ss,async:!1,expects:null,requirement(t){try{return new URL(t),!0}catch{return!1}},message:e,"~run"(t,n){return t.typed&&!this.requirement(t.value)&&ve(this,"URL",t,n),t}}}function Vl(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Io(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function to(){return{kind:"schema",type:"any",reference:to,expects:"any",async:!1,get"~standard"(){return de(this)},"~run"(e){return e.typed=!0,e}}}function fn(e,t){return{kind:"schema",type:"array",reference:fn,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return de(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let a=0;a<o.length;a++){const s=o[a],c=this.item["~run"]({value:s},r);if(c.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const f of c.issues)f.path?f.path.unshift(d):f.path=[d],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else ve(this,"type",n,r);return n}}}function Kn(e){return{kind:"schema",type:"boolean",reference:Kn,expects:"boolean",async:!1,message:e,get"~standard"(){return de(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:ve(this,"type",t,n),t}}}function Ot(e,t){return{kind:"schema",type:"literal",reference:Ot,expects:Lo(e),async:!1,literal:e,message:t,get"~standard"(){return de(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:ve(this,"type",n,r),n}}}function ie(e,t){return{kind:"schema",type:"nullable",reference:ie,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return de(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=Io(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function be(e){return{kind:"schema",type:"number",reference:be,expects:"number",async:!1,message:e,get"~standard"(){return de(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ve(this,"type",t,n),t}}}function we(e,t){return{kind:"schema",type:"object",reference:we,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return de(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const a in this.entries){const s=this.entries[a];if(a in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){const c=a in o?o[a]:Io(s),d=s["~run"]({value:c},r);if(d.issues){const f={type:"object",origin:"value",input:o,key:a,value:c};for(const l of d.issues)l.path?l.path.unshift(f):l.path=[f],(i=n.issues)==null||i.push(l);if(n.issues||(n.issues=d.issues),r.abortEarly){n.typed=!1;break}}d.typed||(n.typed=!1),n.value[a]=d.value}else if(s.fallback!==void 0)n.value[a]=Vl(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(ve(this,"key",n,r,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),r.abortEarly))break}}else ve(this,"type",n,r);return n}}}function Be(e,t){return{kind:"schema",type:"optional",reference:Be,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return de(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Io(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function cs(e,t){return{kind:"schema",type:"picklist",reference:cs,expects:is(e.map(Lo),"|"),async:!1,options:e,message:t,get"~standard"(){return de(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:ve(this,"type",n,r),n}}}function Mo(e,t,n){return{kind:"schema",type:"record",reference:Mo,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return de(this)},"~run"(r,o){var a,s;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const c in i)if(jl(i,c)){const d=i[c],f=this.key["~run"]({value:c},o);if(f.issues){const h={type:"object",origin:"key",input:i,key:c,value:d};for(const p of f.issues)p.path=[h],(a=r.issues)==null||a.push(p);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const l=this.value["~run"]({value:d},o);if(l.issues){const h={type:"object",origin:"value",input:i,key:c,value:d};for(const p of l.issues)p.path?p.path.unshift(h):p.path=[h],(s=r.issues)==null||s.push(p);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!l.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=l.value)}}else ve(this,"type",r,o);return r}}}function Q(e){return{kind:"schema",type:"string",reference:Q,expects:"string",async:!1,message:e,get"~standard"(){return de(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:ve(this,"type",t,n),t}}}function xi(e){let t;if(e)for(const n of e)if(t)for(const r of n.issues)t.push(r);else t=n.issues;return t}function no(e,t){return{kind:"schema",type:"union",reference:no,expects:is(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return de(this)},"~run"(n,r){let o,i,a;for(const s of this.options){const c=s["~run"]({value:n.value},r);if(c.typed)if(c.issues)i?i.push(c):i=[c];else{o=c;break}else a?a.push(c):a=[c]}if(o)return o;if(i){if(i.length===1)return i[0];ve(this,"type",n,r,{issues:xi(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];ve(this,"type",n,r,{issues:xi(a)})}return n}}}function ls(){return{kind:"schema",type:"unknown",reference:ls,expects:"unknown",async:!1,get"~standard"(){return de(this)},"~run"(e){return e.typed=!0,e}}}function Xe(...e){return{...e[0],pipe:e,get"~standard"(){return de(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}function us(e,t,n){const r=e["~run"]({value:t},os());return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Hl="isdk-saved-jobs",Ul="inploi-job-search",Wl=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],ds=["LOCATION","REMOTE","HYBRID"],_t=10,$i=Xe(ls(),Ze(String),Q()),zl=e=>Xe(Mo(Q(),fn(we({label:$i,value:$i,jobs:be()}))),Ze(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)fs(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)ps(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),ql=Xe(Q(),ss()),Bl=we({total:be(),current_page:be(),per_page:be(),last_page:be()}),xn=Be(ie(Q()),null),Kl=we({id:be(),company_name:Q(),external_id:Be(ie(Q())),company_logo:xn,employment_type:Q(),location_type:cs(ds),pay_type:ie(no([Ot("ANNUALLY"),Ot("HOURLY"),Ot("MONTHLY"),Ot("WEEKLY"),Ot("DAILY")])),pay_currency:Q(),pay_mask:Kn(),pay_display:Kn(),pay:ie(Q()),pay_min:ie(Q()),pay_max:ie(Q()),title:Q(),contract_type:ie(Q()),created_at:ie(Q()),custom_data:ie(Mo(to(),to())),href:Q(),industry:ie(Q()),category:ie(Q()),skills:xn,town:xn,city:ie(Q()),country:ie(Q()),vector_distance:xn,coordinates:Be(ie(we({lat:be(),lng:be()}))),distance_meters:Be(ie(no([be(),Xe(Q(),as(),Ze(Number))])),null),locale:Be(ie(Q()))});function fs(e){return Wl.includes(e)}function ps(e){return ds.includes(e)}const hs=(e,t=void 0)=>Xe(Kl,Ze(n=>{const r=us(ql,n.company_logo),o=t??void 0,i=new Intl.RelativeTimeFormat(o,{numeric:"auto"});return{id:n.id,createdAt:n.created_at,company:{name:n.company_name,logo:r.success?r.output:null},pay:bl({salary:n,config:{locales:o},t:e})??null,title:n.title,contractType:n.contract_type,href:n.href,relativePostedDate:n.created_at?xl({to:new Date(n.created_at),t:e,formatter:i}):"INVALID DATE",customData:n.custom_data,raw:{...n,location_type:ps(n.location_type)?e(`job.location_type.${n.location_type}`):n.location_type,employment_type:fs(n.employment_type)?e(`job.employment_type.${n.employment_type}`):n.employment_type},distanceMeters:n.distance_meters,match:n.vector_distance&&parseFloat(n.vector_distance)<.15?e("great_match"):null}})),vs=(e,t)=>Xe(we({data:fn(hs(e,t)),pagination:Bl}),Ze(n=>({pagination:n.pagination,results:n.data}))),gs=e=>!e||Array.isArray(e)&&e.length===0?null:e,ir=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=gs(i==null?void 0:i.value)}return((n=e.geo)==null?void 0:n.type)==="provided"&&e.geo.coords&&(t.geolocation={type:e.geo.type,lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius}),((r=e.geo)==null?void 0:r.type)==="bounds"&&(t.geolocation={type:"bounds",sw:{lat:e.geo.sw.lat,lng:e.geo.sw.lng},ne:{lat:e.geo.ne.lat,lng:e.geo.ne.lng}}),t},Si=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=$e.endpoint({method:"GET",pathname:"/search/filters",schema:{response:zl(n),searchParams:$e.typed()}});return await e.request(a,{searchParams:{filters:ir(t),query:t.query,locale:o,fallback_locale:i},signal:r})},ms=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const c=$e.endpoint({method:"GET",pathname:"/search/results",schema:{response:vs(o,a??s),searchParams:$e.typed()}});return await e.request(c,{searchParams:{filters:ir(n),query:n.query,page:r,per_page:_t,result_order:n.resultOrder,priority_segment:i,locale:a,fallback_locale:s},signal:t})},Gl=(e,t)=>Xe(we({data:fn(hs(e,t)),pagination:we({has_more:Kn()})}),Ze(n=>({results:n.data,pagination:n.pagination}))),Jl=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=$e.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Gl(r,i??a),searchParams:$e.typed()}});return await e.request(s,{searchParams:{filters:ir(n),query:n.query,mode:n.mode,result_order:n.resultOrder,priority_segment:o,locale:i,fallback_locale:a},signal:t})},pn=e=>{if(e.error)return{queryState:"error",error:e.error,swr:e};if(e.isLoading&&e.data===void 0)return{queryState:"loading",swr:e};if((e.isLoading||e.isValidating)&&e.data)return{queryState:"revalidating",data:e.data,swr:e};if(!e.isLoading&&e.data)return{queryState:"loaded",data:e.data,swr:e};if(!e.data&&!e.isLoading)return{queryState:"idle",swr:e};throw console.error("Unhandled data state",e),new Error("Unhandled data state")},Gn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};async function Yl({rpcClient:e,ids:t,filters:n,t:r,locale:o,signal:i}){var f;const a=[],s=["custom_data.is_internal","segment_ids","segment_slugs"],c={};for(const l of s){const h=gs((f=n[l])==null?void 0:f.value);h!==null&&(c[l]=h)}const d=$e.endpoint({method:"GET",pathname:"/search/results",schema:{response:vs(r,o),searchParams:$e.typed()}});for(let l=0;l<t.length;l+=100){const h=t.slice(l,l+100),p=await e.request(d,{searchParams:{filters:{...c,id:h},query:"",page:1,per_page:100},signal:i});a.push(...p.results.filter(g=>h.includes(g.id)))}return t.flatMap(l=>a.find(h=>h.id===l)??[])}var Zl=0;function u(e,t,n,r,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Zl,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function _s(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_s(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_s(e))&&(r&&(r+=" "),r+=t);return r}var Qe,G,Cr,Ci,jt=0,ys=[],ne=exports.l,Ei=ne.__b,Oi=ne.__r,ki=ne.diffed,Ai=ne.__c,Ti=ne.unmount,Pi=ne.__;function bt(e,t){ne.__h&&ne.__h(G,e,jt||t),jt=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return jt=1,hn(bs,e)}function hn(e,t,n){var r=bt(Qe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):bs(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,s);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=G,!G.__f)){var o=function(s,c,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,s,c,d);var l=r.__c.props!==s;return f.some(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(l=!0)}}),i&&i.call(this,s,c,d)||l};G.__f=!0;var i=G.shouldComponentUpdate,a=G.componentWillUpdate;G.componentWillUpdate=function(s,c,d){if(this.__e){var f=i;i=void 0,o(s,c,d),i=f}a&&a.call(this,s,c,d)},G.shouldComponentUpdate=o}return r.__N||r.__}function j(e,t){var n=bt(Qe++,3);!ne.__s&&jo(n.__H,t)&&(n.__=e,n.u=t,G.__H.__h.push(n))}function se(e,t){var n=bt(Qe++,4);!ne.__s&&jo(n.__H,t)&&(n.__=e,n.u=t,G.__h.push(n))}function R(e){return jt=5,J(function(){return{current:e}},[])}function No(e,t,n){jt=6,se(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function J(e,t){var n=bt(Qe++,7);return jo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function H(e,t){return jt=8,J(function(){return e},t)}function me(e){var t=G.context[e.__c],n=bt(Qe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(G)),t.props.value):e.__}function ar(e,t){ne.useDebugValue&&ne.useDebugValue(t?t(e):e)}function Xl(e){var t=bt(Qe++,10),n=D();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function sr(){var e=bt(Qe++,11);if(!e.__){for(var t=G.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ql(){for(var e;e=ys.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(In),t.__h.some(ro),t.__h=[]}catch(n){t.__h=[],ne.__e(n,e.__v)}}}ne.__b=function(e){G=null,Ei&&Ei(e)},ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pi&&Pi(e,t)},ne.__r=function(e){Oi&&Oi(e),Qe=0;var t=(G=e.__c).__H;t&&(Cr===G?(t.__h=[],G.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(In),t.__h.some(ro),t.__h=[],Qe=0)),Cr=G},ne.diffed=function(e){ki&&ki(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ys.push(t)!==1&&Ci===ne.requestAnimationFrame||((Ci=ne.requestAnimationFrame)||eu)(Ql)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Cr=G=null},ne.__c=function(e,t){t.some(function(n){try{n.__h.some(In),n.__h=n.__h.filter(function(r){return!r.__||ro(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ne.__e(r,n.__v)}}),Ai&&Ai(e,t)},ne.unmount=function(e){Ti&&Ti(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{In(r)}catch(o){t=o}}),n.__H=void 0,t&&ne.__e(t,n.__v))};var Ri=typeof requestAnimationFrame=="function";function eu(e){var t,n=function(){clearTimeout(r),Ri&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ri&&(t=requestAnimationFrame(n))}function In(e){var t=G,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),G=t}function ro(e){var t=G;e.__c=e.__(),G=t}function jo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function bs(e,t){return typeof t=="function"?t(e):t}var tu=["other","few","many","two","one","zero"],Di=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(c,d)=>{var f;return((f=a==null?void 0:a[d])==null?void 0:f.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let c=r.select(a.count);if(!(c in s)){const d=tu.find(f=>f in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=d}return s[c].replace(/{{(\w+)}}/g,(d,f)=>{var l;return((l=a==null?void 0:a[f])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Li=Ye(null),nu=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=J(()=>Di({locale:r,terms:e,overrides:t}),[t,r]);return u(Li.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=me(Li);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Di({terms:e,overrides:t,locale:n})});const{TranslationProvider:ru,useTranslation:re,createTFunction:ou,defaultTerms:iu}=nu({save_job:"Save {{title}}",remove_saved_job:"Remove {{title}} from saved jobs",view_saved_jobs:"Saved jobs",view_saved_jobs_count:"Saved jobs ({{count}})",saved_jobs_title:"Your saved jobs",saved_job_unavailable:"No longer available",remove_unavailable_saved_job:"Remove unavailable job {{id}} from saved jobs",remove:"Remove",no_saved_jobs:"No saved jobs",unavailable_saved_jobs:"Some saved jobs are unavailable in this view. Your bookmarks have been kept.",search_jobs:"Search Jobs",search:"Search",type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",distance_away:"{{distance}} away",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",geo_no_match:"We couldn’t find that place. Try a town, city or postcode.",geo_query_too_short:"Type at least 3 letters of a town, city or postcode.",geo_choose_location:"Press Enter or choose a suggestion to search near this place.",geo_any_distance:"Any distance",feedback:"How was your search experience?",list:"List",map:"Map",map_gesture_windows:"Use Ctrl + scroll to zoom the map",map_gesture_mac:"Use ⌘ + scroll to zoom the map",map_gesture_mobile:"Use two fingers to move the map",map_unavailable:"Map unavailable",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset",sort_by:"Sort by",sort_most_relevant:"Most relevant",sort_closest:"Closest",sort_newest:"Newest","job.employment_type.FULL_TIME":"Full-time","job.employment_type.PART_TIME":"Part-time","job.employment_type.CONTRACT":"Contractor","job.employment_type.TEMPORARY":"Temporary","job.employment_type.INTERN":"Internship","job.employment_type.VOLUNTEER":"Volunteer","job.employment_type.OTHER":"Other","job.location_type.LOCATION":"On-site","job.location_type.REMOTE":"Remote","job.location_type.HYBRID":"Hybrid"});function ws(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ws(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function au(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ws(e))&&(r&&(r+=" "),r+=t);return r}const Ii=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,su=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return au(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const c=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(i.map(d=>d(c)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:c}=o,d=Object.keys(s).map(h=>{const p=i==null?void 0:i[h],g=c==null?void 0:c[h],v=Ii(p)||Ii(g);return s[h][v]}),f={...c,...i&&Object.entries(i).reduce((h,p)=>{let[g,v]=p;return typeof v>"u"?h:{...h,[g]:v}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,p)=>{let{class:g,className:v,...y}=p;return Object.entries(y).every(m=>{let[_,b]=m;const w=f[_];return Array.isArray(b)?b.includes(w):w===b})?[...h,g,v]:h},[]);return t(o==null?void 0:o.base,d,l,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{cva:Se}=su(),ge=Se({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",primary:"bg-accent-12 text-lowest pointer-fine:hover:bg-accent-11",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}}),cu=({error:e,resetError:t})=>u("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[u("p",{children:e.message}),u("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:"Retry"})]}),et=({error:e,resetError:t,class:n,...r})=>{const{t:o}=re();return j(()=>{e.cause instanceof $e.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:Nt("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",n),...r,children:[u("div",{class:"flex max-w-full flex-col gap-1",children:[u("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),u("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:e.message})]}),u("button",{type:"button",class:ge({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class on extends xe{constructor(){super(...arguments);gi(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n.message}}componentDidCatch(n){this.setState({error:n})}render(){if(this.state.error){const{Fallback:n}=this.props;return u(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const lu={bookmark:u("path",{d:"M7 4.75h10v15l-5-3-5 3Z"}),"bookmark-filled":u("path",{d:"M7 4.75h10v15l-5-3-5 3Z",fill:"currentColor"}),briefcase:u(V,{children:[u("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),u("path",{d:"M4.75 11.75H19.25"}),u("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),u("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:u(V,{children:[u("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),u("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),u("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),u("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),u("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),u("circle",{cx:"18.75",cy:"12",r:"2"}),u("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:u(V,{children:[u("path",{d:"M16.75 10.25H13.75"}),u("path",{d:"M16.75 13.25H13.75"}),u("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),u("path",{d:"M10.25 12.25V18.25"})]}),circles:u(V,{children:[u("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),u("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:u(V,{children:[u("path",{d:"M14 9L12 13L9.5 12"}),u("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:u(V,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(V,{children:[u("path",{d:"M5 13.75H19"}),u("path",{d:"M5 10.25H19"}),u("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),u("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:u(V,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),u("path",{d:"M16 16L19 19"})]}),magnifierSimple:u(V,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M16 16L19 19"})]}),mapPin:u(V,{children:[u("circle",{cx:"12",cy:"9",r:"2"}),u("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),u("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]}),pay:u(V,{children:[u("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),u("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:u(V,{children:[u("path",{d:"M18.5 8.5L17.5 9.5"}),u("path",{d:"M5.5 8.5L6.5 9.5"}),u("path",{d:"M12 6L12 7.5"}),u("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),u("path",{d:"M20.25 15.25H12H3.75"}),u("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:u("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:u("path",{d:"M12 8V16M8 12H16"}),"chevron-right":u("path",{d:"M11 8L15 12L11 16"}),ai:u("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":u(V,{children:[u("circle",{cx:"12",cy:"12",r:"0.75"}),u("circle",{cx:"12",cy:"12",r:"5.75"}),u("path",{d:"M12 4.25V6.25"}),u("path",{d:"M12 17.75V19.75"}),u("path",{d:"M4.25 12L6.25 12"}),u("path",{d:"M17.75 12L19.75 12"})]}),warning:u("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:u(V,{children:[u("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),u("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),u("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:u(V,{children:[u("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),u("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},uu=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(lu).map(([t,n])=>{var r;return u("symbol",{id:`i-icon-${t}`,children:u("g",{fill:"none","stroke-width":e.mode==="dark"&&((r=e.accessibility)==null?void 0:r.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})},t)})})}),oe=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function xs(e,t){for(var n in t)e[n]=t[n];return e}function oo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fo(e,t){var n=t(),r=D({t:{__:n,u:t}}),o=r[0].t,i=r[1];return se(function(){o.__=n,o.u=t,Er(o)&&i({t:o})},[e,n,t]),j(function(){return Er(o)&&i({t:o}),e(function(){Er(o)&&i({t:o})})},[e]),n}function Er(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function Vo(e){e()}function Ho(e){return e}function Uo(){return[!1,Vo]}var Wo=se;function Jn(e,t){this.props=e,this.context=t}function $s(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:oo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,k(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Jn.prototype=new xe).isPureReactComponent=!0,Jn.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var Mi=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mi&&Mi(e)};var du=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function te(e){function t(n){var r=xs({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=du,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ni=function(e,t){return e==null?null:Ge(Ge(e).map(t))},Ne={map:Ni,forEach:Ni,count:function(e){return e?Ge(e).length:0},only:function(e){var t=Ge(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ge},fu=exports.l.__e;exports.l.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}fu(e,t,n,r)};var ji=exports.l.unmount;function Ss(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=xs({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ss(r,t,n)})),e}function Cs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Cs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Tt(){this.__u=0,this.o=null,this.__b=null}function Es(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function zo(e){var t,n,r,o=null;function i(a){if(t||(t=e()).then(function(s){s&&(o=s.default||s),r=!0},function(s){n=s,r=!0}),n)throw n;if(!r)throw t;return o?k(o,a):null}return i.displayName="Lazy",i.__f=!0,i}function kt(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ji&&ji(e)},(Tt.prototype=new xe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Es(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var s=n.__P;n.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Cs(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=s,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Tt.prototype.componentWillUnmount=function(){this.o=[]},Tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ss(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&k(V,null,e.fallback);return o&&(o.__u&=-33),[k(V,null,t.__a?null:e.children),o]};var Fi=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function pu(e){return this.getChildContext=function(){return e.context},e.children}function hu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Mt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}Mt(k(pu,{context:t.context},e.__v),t.v)}function Os(e,t){var n=k(hu,{__v:e,h:t});return n.containerInfo=t,n}(kt.prototype=new xe).__a=function(e){var t=this,n=Es(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Fi(t,e,r)):o()};n?n(i):i()}},kt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ge(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Fi(e,n,t)})};var ks=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mu=/[A-Z0-9]/g,_u=typeof document<"u",yu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function As(e,t,n){return t.__k==null&&(t.textContent=""),Mt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ts(e,t,n){return Do(e,t),typeof n=="function"&&n(),e?e.__c:null}xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vi=exports.l.event;function bu(){}function wu(){return this.cancelBubble}function xu(){return this.defaultPrevented}exports.l.event=function(e){return Vi&&(e=Vi(e)),e.persist=bu,e.isPropagationStopped=wu,e.isDefaultPrevented=xu,e.nativeEvent=e};var qo,$u={enumerable:!1,configurable:!0,get:function(){return this.class}},Hi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||_u&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||yu(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":gu.test(a)&&(a=c):c=a="oninput":i&&vu.test(a)?a=a.replace(mu,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ge(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ge(n.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",$u)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=ks,Hi&&Hi(e)};var Ui=exports.l.__r;exports.l.__r=function(e){Ui&&Ui(e),qo=e.__c};var Wi=exports.l.diffed;exports.l.diffed=function(e){Wi&&Wi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),qo=null};var Ps={ReactCurrentDispatcher:{current:{readContext:function(e){return qo.__n[e.__c].props.value},useCallback:H,useContext:me,useDebugValue:ar,useDeferredValue:Ho,useEffect:j,useId:sr,useImperativeHandle:No,useInsertionEffect:Wo,useLayoutEffect:se,useMemo:J,useReducer:hn,useRef:R,useState:D,useSyncExternalStore:Fo,useTransition:Uo}}},Su="18.3.1";function Rs(e){return k.bind(null,e)}function tt(e){return!!e&&e.$$typeof===ks}function Ds(e){return tt(e)&&e.type===V}function Ls(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function zt(e){return tt(e)?Dl.apply(null,arguments):e}function Is(e){return!!e.__k&&(Mt(null,e),!0)}function Ms(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ns=function(e,t){return e(t)},vn=function(e,t){return e(t)},js=V,Fs=tt,gn={useState:D,useId:sr,useReducer:hn,useEffect:j,useLayoutEffect:se,useInsertionEffect:Wo,useTransition:Uo,useDeferredValue:Ho,useSyncExternalStore:Fo,startTransition:Vo,useRef:R,useImperativeHandle:No,useMemo:J,useCallback:H,useContext:me,useDebugValue:ar,version:"18.3.1",Children:Ne,render:As,hydrate:Ts,unmountComponentAtNode:Is,createPortal:Os,createElement:k,createContext:Ye,createFactory:Rs,cloneElement:zt,createRef:Za,Fragment:V,isValidElement:tt,isElement:Fs,isFragment:Ds,isMemo:Ls,findDOMNode:Ms,Component:xe,PureComponent:Jn,memo:$s,forwardRef:te,flushSync:vn,unstable_batchedUpdates:Ns,StrictMode:js,Suspense:Tt,SuspenseList:kt,lazy:zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ps};const Vs=Object.freeze(Object.defineProperty({__proto__:null,Children:Ne,Component:xe,Fragment:V,PureComponent:Jn,StrictMode:js,Suspense:Tt,SuspenseList:kt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ps,cloneElement:zt,createContext:Ye,createElement:k,createFactory:Rs,createPortal:Os,createRef:Za,default:gn,findDOMNode:Ms,flushSync:vn,forwardRef:te,hydrate:Ts,isElement:Fs,isFragment:Ds,isMemo:Ls,isValidElement:tt,lazy:zo,memo:$s,render:As,startTransition:Vo,unmountComponentAtNode:Is,unstable_batchedUpdates:Ns,useCallback:H,useContext:me,useDebugValue:ar,useDeferredValue:Ho,useEffect:j,useErrorBoundary:Xl,useId:sr,useImperativeHandle:No,useInsertionEffect:Wo,useLayoutEffect:se,useMemo:J,useReducer:hn,useRef:R,useState:D,useSyncExternalStore:Fo,useTransition:Uo,version:Su},Symbol.toStringTag,{value:"Module"}));var $n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cu(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var io={exports:{}},Or={};const Hs=Cu(Vs);var zi;function Eu(){if(zi)return Or;zi=1;var e=Hs;function t(l,h){return l===h&&(l!==0||1/l===1/h)||l!==l&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(l,h){var p=h(),g=r({inst:{value:p,getSnapshot:h}}),v=g[0].inst,y=g[1];return i(function(){v.value=p,v.getSnapshot=h,c(v)&&y({inst:v})},[l,p,h]),o(function(){return c(v)&&y({inst:v}),l(function(){c(v)&&y({inst:v})})},[l]),a(p),p}function c(l){var h=l.getSnapshot;l=l.value;try{var p=h();return!n(l,p)}catch{return!0}}function d(l,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Or.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Or}var kr={};var qi;function Ou(){return qi||(qi=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=g();if(!l){var y=g();i(v,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}y=a({inst:{value:v,getSnapshot:g}});var m=y[0].inst,_=y[1];return c(function(){m.value=v,m.getSnapshot=g,n(m)&&_({inst:m})},[p,v,g]),s(function(){return n(m)&&_({inst:m}),p(function(){n(m)&&_({inst:m})})},[p]),d(v),v}function n(p){var g=p.getSnapshot;p=p.value;try{var v=g();return!i(p,v)}catch{return!0}}function r(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Hs,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,l=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;kr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),kr}process.env.NODE_ENV==="production"?io.exports=Eu():io.exports=Ou();var Bi=io.exports;const Us=0,Ws=1,zs=2,Ki=3;var Gi=Object.prototype.hasOwnProperty;function ao(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ao(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Gi.call(e,n)&&++r&&!Gi.call(t,n)||!(n in t)||!ao(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const qe=new WeakMap,Ke=()=>{},ae=Ke(),Yn=Object,U=e=>e===ae,Ee=e=>typeof e=="function",nt=(e,t)=>({...e,...t}),qs=e=>Ee(e.then),Ar={},Sn={},Ko="undefined",mn=typeof window!=Ko,so=typeof document!=Ko,ku=mn&&"Deno"in window,Au=()=>mn&&typeof window.requestAnimationFrame!=Ko,Bs=(e,t)=>{const n=qe.get(e);return[()=>!U(t)&&e.get(t)||Ar,r=>{if(!U(t)){const o=e.get(t);t in Sn||(Sn[t]=o),n[5](t,nt(o,r),o||Ar)}},n[6],()=>!U(t)&&t in Sn?Sn[t]:!U(t)&&e.get(t)||Ar]};let co=!0;const Tu=()=>co,[lo,uo]=mn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],Pu=()=>{const e=so&&document.visibilityState;return U(e)||e!=="hidden"},Ru=e=>(so&&document.addEventListener("visibilitychange",e),lo("focus",e),()=>{so&&document.removeEventListener("visibilitychange",e),uo("focus",e)}),Du=e=>{const t=()=>{co=!0,e()},n=()=>{co=!1};return lo("online",t),lo("offline",n),()=>{uo("online",t),uo("offline",n)}},Lu={isOnline:Tu,isVisible:Pu},Iu={initFocus:Ru,initReconnect:Du},Ji=!gn.useId,Pt=!mn||ku,Mu=e=>Au()?window.requestAnimationFrame(e):setTimeout(e,1),Mn=Pt?j:se,Tr=typeof navigator<"u"&&navigator.connection,Yi=!Pt&&Tr&&(["slow-2g","2g"].includes(Tr.effectiveType)||Tr.saveData),Cn=new WeakMap,Nu=e=>Yn.prototype.toString.call(e),Pr=(e,t)=>e===`[object ${t}]`;let ju=0;const fo=e=>{const t=typeof e,n=Nu(e),r=Pr(n,"Date"),o=Pr(n,"RegExp"),i=Pr(n,"Object");let a,s;if(Yn(e)===e&&!r&&!o){if(a=Cn.get(e),a)return a;if(a=++ju+"~",Cn.set(e,a),Array.isArray(e)){for(a="@",s=0;s<e.length;s++)a+=fo(e[s])+",";Cn.set(e,a)}if(i){a="#";const c=Yn.keys(e).sort();for(;!U(s=c.pop());)U(e[s])||(a+=s+":"+fo(e[s])+",");Cn.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},Go=e=>{if(Ee(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?fo(e):"",[e,t]};let Fu=0;const po=()=>++Fu;async function Ks(...e){const[t,n,r,o]=e,i=nt({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,f=i.throwOnError;if(Ee(n)){const h=n,p=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&p.push(v);return Promise.all(p.map(l))}return l(n);async function l(h){const[p]=Go(h);if(!p)return;const[g,v]=Bs(t,p),[y,m,_,b]=qe.get(t),w=()=>{const L=y[p];return(Ee(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete _[p],delete b[p],L&&L[0])?L[0](zs).then(()=>g().data):g().data};if(e.length<3)return w();let $=r,x,C=!1;const S=po();m[p]=[S,0];const E=!U(c),A=g(),I=A.data,P=A._c,M=U(P)?I:P;if(E&&(c=Ee(c)?c(M,I):c,v({data:c,_c:M})),Ee($))try{$=$(M)}catch(L){x=L,C=!0}if($&&qs($))if($=await $.catch(L=>{x=L,C=!0}),S!==m[p][0]){if(C)throw x;return $}else C&&E&&d(x)&&(a=!0,v({data:M,_c:ae}));if(a&&!C)if(Ee(a)){const L=a($,M);v({data:L,error:ae,_c:ae})}else v({data:$,error:ae,_c:ae});if(m[p][1]=po(),Promise.resolve(w()).then(()=>{v({_c:ae})}),C){if(f)throw x;return}return $}}const Zi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Gs=(e,t)=>{if(!qe.has(e)){const n=nt(Iu,t),r=Object.create(null),o=Ks.bind(ae,e);let i=Ke;const a=Object.create(null),s=(f,l)=>{const h=a[f]||[];return a[f]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(f,l,h)=>{e.set(f,l);const p=a[f];if(p)for(const g of p)g(l,h)},d=()=>{if(!qe.has(e)&&(qe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,s]),!Pt)){const f=n.initFocus(setTimeout.bind(ae,Zi.bind(ae,r,Us))),l=n.initReconnect(setTimeout.bind(ae,Zi.bind(ae,r,Ws)));i=()=>{f&&f(),l&&l(),qe.delete(e)}}};return d(),[e,o,d,i]}return[e,qe.get(e)[4]]},Vu=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!U(i)&&a>i||setTimeout(r,s,o)},Hu=ao,[Jo,Uu]=Gs(new Map),Js=nt({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:Vu,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Yi?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Yi?5e3:3e3,compare:Hu,isPaused:()=>!1,cache:Jo,mutate:Uu,fallback:{}},Lu),Ys=(e,t)=>{const n=nt(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=nt(o,a))}return n},ho=Ye({}),Wu=e=>{const{value:t}=e,n=me(ho),r=Ee(t),o=J(()=>r?t(n):t,[r,n,t]),i=J(()=>r?o:Ys(n,o),[r,n,o]),a=o&&o.provider,s=R(ae);a&&!s.current&&(s.current=Gs(a(i.cache||Jo),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),Mn(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k(ho.Provider,nt(e,{value:i}))},zu="$inf$",Zs=mn&&window.__SWR_DEVTOOLS_USE__,qu=Zs?window.__SWR_DEVTOOLS_USE__:[],Bu=()=>{Zs&&(window.__SWR_DEVTOOLS_REACT__=gn)},Ku=e=>Ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Gu=()=>{const e=me(ho);return J(()=>nt(Js,e),[e])},Ju=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Go(t),[,,,s]=qe.get(Jo);if(a.startsWith(zu))return n(...i);const c=s[a];return U(c)?n(...i):(delete s[a],c)}),r),Yu=qu.concat(Ju),Zu=e=>function(...n){const r=Gu(),[o,i,a]=Ku(n),s=Ys(r,a);let c=e;const{use:d}=s,f=(d||[]).concat(Yu);for(let l=f.length;l--;)c=f[l](c);return c(o,i||s.fetcher||null,s)},Xu=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Bu();const Rr=gn.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Dr={dedupe:!0},Xi=Promise.resolve(ae),Qu=()=>Ke,ed=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:l,keepPreviousData:h,strictServerPrefetchWarning:p}=n,[g,v,y,m]=qe.get(r),[_,b]=Go(e),w=R(!1),$=R(!1),x=R(_),C=R(t),S=R(n),E=()=>S.current,A=()=>E().isVisible()&&E().isOnline(),[I,P,M,L]=Bs(r,_),z=R({}).current,B=U(a)?U(n.fallback)?ae:n.fallback[_]:a,N=(W,Y)=>{for(const Z in z){const X=Z;if(X==="data"){if(!o(W[X],Y[X])&&(!U(W[X])||!o(ue,Y[X])))return!1}else if(Y[X]!==W[X])return!1}return!0},K=!w.current,q=J(()=>{const W=I(),Y=L(),Z=O=>{const F=nt(O);return delete F._k,(()=>{if(!_||!t||E().isPaused())return!1;if(K&&!U(s))return s;const Qt=U(B)?F.data:B;return U(Qt)||c})()?{isValidating:!0,isLoading:!0,...F}:F},X=Z(W),ce=W===Y?X:Z(Y);let T=X;return[()=>{const O=Z(I());return N(O,T)?(T.data=O.data,T.isLoading=O.isLoading,T.isValidating=O.isValidating,T.error=O.error,T):(T=O,O)},()=>ce]},[r,_]),le=Bi.useSyncExternalStore(H(W=>M(_,(Y,Z)=>{N(Z,Y)||W()}),[r,_]),q[0],q[1]),at=g[_]&&g[_].length>0,Te=le.data,_e=U(Te)?B&&qs(B)?Rr(B):B:Te,He=le.error,Ce=R(_e),ue=h?U(Te)?U(Ce.current)?_e:Ce.current:Te:_e,fe=_&&U(_e),Pe=R(null);!Pt&&Bi.useSyncExternalStore(Qu,()=>(Pe.current=!1,Pe),()=>(Pe.current=!0,Pe));const Ue=Pe.current;p&&Ue&&!i&&fe&&console.warn(`Missing pre-initiated data for serialized key "${_}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const st=!_||!t||E().isPaused()||at&&!U(He)?!1:K&&!U(s)?s:i?U(_e)?!1:c:U(_e)||c,wt=U(le.isValidating)?st:le.isValidating,xt=U(le.isLoading)?st:le.isLoading,Re=H(async W=>{const Y=C.current;if(!_||!Y||$.current||E().isPaused())return!1;let Z,X,ce=!0;const T=W||{},O=!y[_]||!T.dedupe,F=()=>Ji?!$.current&&_===x.current&&w.current:_===x.current,Xt={isValidating:!1,isLoading:!1},Qt=()=>{P(Xt)},hi=()=>{const ye=y[_];ye&&ye[1]===X&&delete y[_]},vi={isValidating:!0};U(I().data)&&(vi.isLoading=!0);try{if(O&&(P(vi),n.loadingTimeout&&U(I().data)&&setTimeout(()=>{ce&&F()&&E().onLoadingSlow(_,n)},n.loadingTimeout),y[_]=[Y(b),po()]),[Z,X]=y[_],Z=await Z,O&&setTimeout(hi,n.dedupingInterval),!y[_]||y[_][1]!==X)return O&&F()&&E().onDiscarded(_),!1;Xt.error=ae;const ye=v[_];if(!U(ye)&&(X<=ye[0]||X<=ye[1]||ye[1]===0))return Qt(),O&&F()&&E().onDiscarded(_),!1;const ze=I().data;Xt.data=o(ze,Z)?ze:Z,O&&F()&&E().onSuccess(Z,_,n)}catch(ye){hi();const ze=E(),{shouldRetryOnError:br}=ze;ze.isPaused()||(Xt.error=ye,O&&F()&&(ze.onError(ye,_,ze),(br===!0||Ee(br)&&br(ye))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||A())&&ze.onErrorRetry(ye,_,ze,gl=>{const wr=g[_];wr&&wr[0]&&wr[0](Ki,gl)},{retryCount:(T.retryCount||0)+1,dedupe:!0})))}return ce=!1,Qt(),!0},[_,r]),vt=H((...W)=>Ks(r,x.current,...W),[]);if(Mn(()=>{C.current=t,S.current=n,U(Te)||(Ce.current=Te)}),Mn(()=>{if(!_)return;const W=Re.bind(ae,Dr);let Y=0;E().revalidateOnFocus&&(Y=Date.now()+E().focusThrottleInterval);const X=Xu(_,g,(ce,T={})=>{if(ce==Us){const O=Date.now();E().revalidateOnFocus&&O>Y&&A()&&(Y=O+E().focusThrottleInterval,W())}else if(ce==Ws)E().revalidateOnReconnect&&A()&&W();else{if(ce==zs)return Re();if(ce==Ki)return Re(T)}});return $.current=!1,x.current=_,w.current=!0,P({_k:b}),st&&(y[_]||(U(_e)||Pt?W():Mu(W))),()=>{$.current=!0,X()}},[_]),Mn(()=>{let W;function Y(){const X=Ee(d)?d(I().data):d;X&&W!==-1&&(W=setTimeout(Z,X))}function Z(){!I().error&&(f||E().isVisible())&&(l||E().isOnline())?Re(Dr).then(Y):Y()}return Y(),()=>{W&&(clearTimeout(W),W=-1)}},[d,f,l,_]),ar(ue),i){if(!Ji&&Pt&&fe)throw new Error("Fallback data is required when using Suspense in SSR.");fe&&(C.current=t,S.current=n,$.current=!1);const W=m[_],Y=!U(W)&&fe?vt(W):Xi;if(Rr(Y),!U(He)&&fe)throw He;const Z=fe?Re(Dr):Xi;!U(ue)&&fe&&(Z.status="fulfilled",Z.value=!0),Rr(Z)}return{mutate:vt,get data(){return z.data=!0,ue},get error(){return z.error=!0,He},get isValidating(){return z.isValidating=!0,wt},get isLoading(){return z.isLoading=!0,xt}}},td=Yn.defineProperty(Wu,"defaultValue",{value:Js}),Ft=Zu(ed),Xs=e=>{const[t,n]=D(!1);return j(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},nd=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=D(!1);j(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(c=>c.forEach(d=>{clearTimeout(a),d.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var rd=["1","2","3","4","5","6","7","8","9","10","11","12"],od={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},id=(e,t=1,n)=>r=>{const[o,i]=od[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Lr=e=>{const t=id(e.hue,e.chroma,e.mode);return Object.fromEntries(rd.map(n=>[e.prefix+n,e.transform(t(n))]))},Ir=e=>e,ad=e=>{const t=Object.keys(e).flatMap(n=>{const r=e[n];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(n)}.${o}`,i]}):[[n,r]]});return Object.fromEntries(t)},En=e=>!!e&&typeof e=="object"&&!Array.isArray(e),vo=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(En(e)&&En(n))for(const r in n){const o=n[r];if(En(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];En(i)&&vo(i,o)}else Object.assign(e,{[r]:n[r]})}return vo(e,...t)},sd=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},cd=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),c=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:c}}),f=ad(vo(s,c,d)),l=([h,p],g)=>{const v=[g,h].filter(Boolean).join(".");return typeof p=="object"?Object.entries(p).flatMap(y=>l(y,v)):[[r.getToken("declaration",v),p]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const De=e=>{const t=[],n=r=>({with:(o,i)=>(t.push({pattern:o,fn:i}),n(r)),otherwise:o=>{e:for(const{fn:i,pattern:a}of t){for(const s in a)if(a[s]!==r[s])continue e;return i(r)}if(o)return o(r);throw new Error("No pattern matched")}});return n(e)},[Mr,Nr,On]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],ld=cd().core(({theme:e})=>{var t,n,r,o;return{color:{black:Mr,white:Nr,lowest:e.mode==="light"?Nr:Mr,highest:e.mode==="light"?Mr:Nr,...Lr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Ir}),...Lr({prefix:"n-",hue:((t=e.neutral)==null?void 0:t.hue)??e.accent.hue,chroma:((n=e.neutral)==null?void 0:n.chroma)??.05,mode:e.mode,transform:Ir}),...Lr({prefix:"m-",hue:((r=e.monetary)==null?void 0:r.hue)??140,chroma:((o=e.monetary)==null?void 0:o.chroma)??1,mode:e.mode,transform:Ir})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,d,f,l,h,p,g,v,y,m,_,b,w,$,x,C,S,E,A,I;const r=(P,M)=>n.core.color[P].replace(")",` / ${M})`),{typography:o,highlights:i}=t,a=((s=t.accessibility)==null?void 0:s.highContrast)??!1;return{font:o.fontFamily??"inherit","font-style":o.style??"inherit","font-filter":((c=o.filter)==null?void 0:c.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((f=o.tag)==null?void 0:f.fontFamily)??o.fontFamily??"inherit","weight-default":((l=o.weight)==null?void 0:l.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((g=(p=o.filter)==null?void 0:p.weight)==null?void 0:g.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((y=o.tag)==null?void 0:y.style)??o.style??"inherit","style-job-heading":((m=o.jobHeading)==null?void 0:m.style)??o.style??"inherit","weight-tag":((b=(_=o.tag)==null?void 0:_.weight)==null?void 0:b.toString())??((w=o.weight)==null?void 0:w.toString())??"inherit","weight-job-heading":((x=($=o.jobHeading)==null?void 0:$.weight)==null?void 0:x.toString())??((C=o.weight)==null?void 0:C.toString())??"inherit","style-input":((S=o.input)==null?void 0:S.style)??o.style??"inherit","weight-input":((A=(E=o.input)==null?void 0:E.weight)==null?void 0:A.toString())??((I=o.weight)==null?void 0:I.toString())??"inherit","app-bg":e("color.lowest"),copy:e(a?"color.highest":"color.n-12"),"copy-lowcontrast":e("color.n-11"),"copy-info":e(a?"color.n-11":"color.n-10"),"copy-icon":e(a?"color.n-12":"color.n-11"),"copy-accent":e(a?"color.highest":"color.a-12"),"copy-accent-lowcontrast":e(a?"color.a-12":"color.a-11"),"copy-accent-icon":e(a?"color.a-12":"color.a-11"),"copy-inverted":e("color.lowest"),"copy-inverted-lowcontrast":e("color.n-4"),"copy-inverted-icon":e("color.n-3"),"tag-neutral-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"tag-neutral-weak-copy":e("color.n-12"),"tag-neutral-weak-stroke-color":e(i==="stroke"?"color.n-5":"color.n-3"),"tag-neutral-strong-bg":i==="fill"?e("color.n-12"):On,"tag-neutral-strong-copy":e(i==="fill"?"color.white":"color.n-12"),"tag-neutral-strong-stroke-color":r(a?"n-12":"n-4",i==="stroke"?1:0),"tag-monetary-weak-bg":e("color.m-3"),"tag-monetary-weak-copy":e("color.m-11"),"tag-monetary-weak-stroke-color":e("color.m-4"),"tag-accent-strong-bg":t.mode==="dark"?e("color.a-9"):e("color.a-11"),"tag-accent-strong-copy":e("color.white"),"tag-accent-strong-stroke-color":On,"radius-app":De(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":De(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":De(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":De(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":De(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":De(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":De(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"1rem").otherwise(),"interactive-neutral-bg":r(a?"n-5":"n-4",.01),"interactive-neutral-bg-hover":e(a?"color.n-5":"color.n-4"),"interactive-neutral-text":e("color.n-12"),"interactive-accent-bg":r(i==="fill"?"a-4":"a-3",.01),"interactive-accent-bg-hover":e(i==="fill"?"color.a-4":"color.a-3"),"interactive-accent-text":e("color.a-11"),"radius-interactive":De(t).with({corners:"rounded"},()=>"1.5rem").with({corners:"soft"},()=>".5rem").with({corners:"sharp"},()=>"0").otherwise(),"section-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"section-strong-bg":e(i==="fill"?a?"color.n-3":"color.n-2":"color.lowest"),"section-weak-stroke-color":i==="fill"?On:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?On:e(a?"color.n-11":"color.n-4"),"section-stroke-width":De(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px"),"job-card-bg":e("color.lowest"),"job-card-bg-active":e("color.lowest"),"job-card-stroke-color":e(a?"color.n-10":"color.n-4"),"job-card-stroke-color-active":e("color.a-9"),"job-card-stroke-width":De(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),ud=sd({prefix:"i-"}),dd=e=>{const t=ld.from({theme:e.theme,getToken:ud}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
|
|
2
|
+
${n.concat(n).join(`
|
|
3
|
+
`)}
|
|
4
|
+
}`},go=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t},Zn=e=>{var n,r,o,i;const t=[e.baseKey,`mode=${e.mode??"query"}`];if(e.state.query&&t.push(`q=${e.state.query}`),e.state.resultOrder==="newest"&&t.push("result_order=newest"),((n=e.state.geo)==null?void 0:n.type)==="ip"&&t.push("geo=ip"),((r=e.state.geo)==null?void 0:r.type)==="provided"&&e.state.geo.coords&&t.push(`geo=${e.state.geo.coords.lat}_${e.state.geo.coords.lng}_${e.state.geo.radius}`),((o=e.state.geo)==null?void 0:o.type)==="bounds"){const{sw:a,ne:s}=e.state.geo;t.push(`geo=bounds_${a.lat}_${a.lng}_${s.lat}_${s.lng}`)}for(const a in e.state.filters){const s=e.state.filters[a];if(!s)continue;const c=s.select==="many"?(i=s.value)==null?void 0:i.slice().sort().join("|"):s.value;t.push(`${a}=${c}`)}return JSON.stringify(t.sort())};function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function Oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function fd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Qs(...e){return t=>e.forEach(n=>fd(n,t))}function Fe(...e){return H(Qs(...e),e)}function pd(e,t){const n=Ye(t);function r(i){const{children:a,...s}=i,c=J(()=>s,Object.values(s));return k(n.Provider,{value:c},a)}function o(i){const a=me(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function Yo(e,t=[]){let n=[];function r(i,a){const s=Ye(a),c=n.length;n=[...n,a];function d(l){const{scope:h,children:p,...g}=l,v=(h==null?void 0:h[e][c])||s,y=J(()=>g,Object.values(g));return k(v.Provider,{value:y},p)}function f(l,h){const p=(h==null?void 0:h[e][c])||s,g=me(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=n.map(a=>Ye(a));return function(s){const c=(s==null?void 0:s[e])||i;return J(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,hd(o,...t)]}function hd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:c,scopeName:d})=>{const l=c(i)[`__scope${d}`];return{...s,...l}},{});return J(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Vt=globalThis!=null&&globalThis.document?se:()=>{},vd=Vs.useId||(()=>{});let gd=0;function Nn(e){const[t,n]=D(vd());return Vt(()=>{n(r=>r??String(gd++))},[e]),e||(t?`radix-${t}`:"")}function ut(e){const t=R(e);return j(()=>{t.current=e}),J(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ec({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=md({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=ut(n),c=H(d=>{if(i){const l=typeof d=="function"?d(e):d;l!==e&&s(l)}else o(d)},[i,e,o,s]);return[a,c]}function md({defaultProp:e,onChange:t}){const n=D(e),[r]=n,o=R(r),i=ut(t);return j(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const cr=te((e,t)=>{const{children:n,...r}=e,o=Ne.toArray(n),i=o.find(yd);if(i){const a=i.props.children,s=o.map(c=>c===i?Ne.count(a)>1?Ne.only(null):tt(a)?a.props.children:null:c);return k(mo,ee({},r,{ref:t}),tt(a)?zt(a,void 0,s):null)}return k(mo,ee({},r,{ref:t}),n)});cr.displayName="Slot";const mo=te((e,t)=>{const{children:n,...r}=e;return tt(n)?zt(n,{...bd(r,n.props),ref:t?Qs(t,n.ref):n.ref}):Ne.count(n)>1?Ne.only(null):null});mo.displayName="SlotClone";const _d=({children:e})=>k(V,null,e);function yd(e){return tt(e)&&e.type===_d}function bd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const wd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pt=wd.reduce((e,t)=>{const n=te((r,o)=>{const{asChild:i,...a}=r,s=i?cr:t;return j(()=>{window[Symbol.for("radix-ui")]=!0},[]),k(s,ee({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xd(e,t){e&&vn(()=>e.dispatchEvent(t))}function $d(e,t=globalThis==null?void 0:globalThis.document){const n=ut(e);j(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const _o="dismissableLayer.update",Sd="dismissableLayer.pointerDownOutside",Cd="dismissableLayer.focusOutside";let Qi;const Ed=Ye({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tc=te((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,f=me(Ed),[l,h]=D(null),p=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=D({}),v=Fe(t,S=>h(S)),y=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),_=y.indexOf(m),b=l?y.indexOf(l):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,$=b>=_,x=Od(S=>{const E=S.target,A=[...f.branches].some(I=>I.contains(E));!$||A||(i==null||i(S),s==null||s(S),S.defaultPrevented||c==null||c())},p),C=kd(S=>{const E=S.target;[...f.branches].some(I=>I.contains(E))||(a==null||a(S),s==null||s(S),S.defaultPrevented||c==null||c())},p);return $d(S=>{b===f.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},p),j(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Qi=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),ea(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Qi)}},[l,p,r,f]),j(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),ea())},[l,f]),j(()=>{const S=()=>g({});return document.addEventListener(_o,S),()=>document.removeEventListener(_o,S)},[]),k(pt.div,ee({},d,{ref:v,style:{pointerEvents:w?$?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,x.onPointerDownCapture)}))});function Od(e,t=globalThis==null?void 0:globalThis.document){const n=ut(e),r=R(!1),o=R(()=>{});return j(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){nc(Sd,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kd(e,t=globalThis==null?void 0:globalThis.document){const n=ut(e),r=R(!1);return j(()=>{const o=i=>{i.target&&!r.current&&nc(Cd,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ea(){const e=new CustomEvent(_o);document.dispatchEvent(e)}function nc(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xd(o,i):o.dispatchEvent(i)}const jr="focusScope.autoFocusOnMount",Fr="focusScope.autoFocusOnUnmount",ta={bubbles:!1,cancelable:!0},rc=te((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=D(null),d=ut(o),f=ut(i),l=R(null),h=Fe(t,v=>c(v)),p=R({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j(()=>{if(r){let v=function(b){if(p.paused||!s)return;const w=b.target;s.contains(w)?l.current=w:ct(l.current,{select:!0})},y=function(b){if(p.paused||!s)return;const w=b.relatedTarget;w!==null&&(s.contains(w)||ct(l.current,{select:!0}))},m=function(b){if(document.activeElement===document.body)for(const $ of b)$.removedNodes.length>0&&ct(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const _=new MutationObserver(m);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),_.disconnect()}}},[r,s,p.paused]),j(()=>{if(s){ra.add(p);const v=document.activeElement;if(!s.contains(v)){const m=new CustomEvent(jr,ta);s.addEventListener(jr,d),s.dispatchEvent(m),m.defaultPrevented||(Ad(Ld(oc(s)),{select:!0}),document.activeElement===v&&ct(s))}return()=>{s.removeEventListener(jr,d),setTimeout(()=>{const m=new CustomEvent(Fr,ta);s.addEventListener(Fr,f),s.dispatchEvent(m),m.defaultPrevented||ct(v??document.body,{select:!0}),s.removeEventListener(Fr,f),ra.remove(p)},0)}}},[s,d,f,p]);const g=H(v=>{if(!n&&!r||p.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const _=v.currentTarget,[b,w]=Td(_);b&&w?!v.shiftKey&&m===w?(v.preventDefault(),n&&ct(b,{select:!0})):v.shiftKey&&m===b&&(v.preventDefault(),n&&ct(w,{select:!0})):m===_&&v.preventDefault()}},[n,r,p.paused]);return k(pt.div,ee({tabIndex:-1},a,{ref:h,onKeyDown:g}))});function Ad(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ct(r,{select:t}),document.activeElement!==n)return}function Td(e){const t=oc(e),n=na(t,e),r=na(t.reverse(),e);return[n,r]}function oc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function na(e,t){for(const n of e)if(!Pd(n,{upTo:t}))return n}function Pd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Rd(e){return e instanceof HTMLInputElement&&"select"in e}function ct(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rd(e)&&t&&e.select()}}const ra=Dd();function Dd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oa(e,t),e.unshift(t)},remove(t){var n;e=oa(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function oa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ld(e){return e.filter(t=>t.tagName!=="A")}const ic=te((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?gn.createPortal(k(pt.div,ee({},o,{ref:t})),r):null});function Id(e,t){return hn((n,r)=>{const o=t[n][r];return o??n},e)}const qt=e=>{const{present:t,children:n}=e,r=Md(t),o=typeof n=="function"?n({present:r.isPresent}):Ne.only(n),i=Fe(r.ref,o.ref);return typeof n=="function"||r.isPresent?zt(o,{ref:i}):null};qt.displayName="Presence";function Md(e){const[t,n]=D(),r=R({}),o=R(e),i=R("none"),a=e?"mounted":"unmounted",[s,c]=Id(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j(()=>{const d=kn(r.current);i.current=s==="mounted"?d:"none"},[s]),Vt(()=>{const d=r.current,f=o.current;if(f!==e){const h=i.current,p=kn(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Vt(()=>{if(t){const d=l=>{const p=kn(r.current).includes(l.animationName);l.target===t&&p&&vn(()=>c("ANIMATION_END"))},f=l=>{l.target===t&&(i.current=kn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:H(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function kn(e){return(e==null?void 0:e.animationName)||"none"}let Vr=0;function ac(){j(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ia()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ia()),Vr++,()=>{Vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Vr--}},[])}function ia(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Le.apply(this,arguments)};function sc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Nd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jn="right-scroll-bar-position",Fn="width-before-scroll-bar",jd="with-scroll-bars-hidden",Fd="--removed-body-scroll-bar-size";function Hr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vd(e,t){var n=D(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Hd=typeof window<"u"?se:j,aa=new WeakMap;function Ud(e,t){var n=Vd(null,function(r){return e.forEach(function(o){return Hr(o,r)})});return Hd(function(){var r=aa.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Hr(s,null)}),i.forEach(function(s){o.has(s)||Hr(s,a)})}aa.set(n,e)},[e]),n}function Wd(e){return e}function zd(e,t){t===void 0&&(t=Wd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function qd(e){e===void 0&&(e={});var t=zd(null);return t.options=Le({async:!0,ssr:!1},e),t}var cc=function(e){var t=e.sideCar,n=sc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k(r,Le({},n))};cc.isSideCarExport=!0;function Bd(e,t){return e.useMedium(t),cc}var lc=qd(),Ur=function(){},lr=te(function(e,t){var n=R(null),r=D({onScrollCapture:Ur,onWheelCapture:Ur,onTouchMoveCapture:Ur}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,l=e.shards,h=e.sideCar,p=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,_=sc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=h,w=Ud([n,t]),$=Le(Le({},_),o);return k(V,null,f&&k(b,{sideCar:lc,removeScrollBar:d,shards:l,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?zt(Ne.only(s),Le(Le({},$),{ref:w})):k(m,Le({},$,{className:c,ref:w}),s))});lr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lr.classNames={fullWidth:Fn,zeroRight:jn};var Kd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kd();return t&&e.setAttribute("nonce",t),e}function Jd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gd())&&(Jd(t,n),Yd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xd=function(){var e=Zd();return function(t,n){j(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uc=function(){var e=Xd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qd={left:0,top:0,right:0,gap:0},Wr=function(e){return parseInt(e||"",10)||0},ef=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Wr(n),Wr(r),Wr(o)]},tf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qd;var t=ef(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nf=uc(),Rt="data-scroll-locked",rf=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
5
|
+
.`.concat(jd,` {
|
|
6
|
+
overflow: hidden `).concat(r,`;
|
|
7
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
8
|
+
}
|
|
9
|
+
body[`).concat(Rt,`] {
|
|
10
|
+
overflow: hidden `).concat(r,`;
|
|
11
|
+
overscroll-behavior: contain;
|
|
12
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
13
|
+
padding-left: `.concat(o,`px;
|
|
14
|
+
padding-top: `).concat(i,`px;
|
|
15
|
+
padding-right: `).concat(a,`px;
|
|
16
|
+
margin-left:0;
|
|
17
|
+
margin-top:0;
|
|
18
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
19
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.`).concat(jn,` {
|
|
23
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.`).concat(Fn,` {
|
|
27
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.`).concat(jn," .").concat(jn,` {
|
|
31
|
+
right: 0 `).concat(r,`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.`).concat(Fn," .").concat(Fn,` {
|
|
35
|
+
margin-right: 0 `).concat(r,`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body[`).concat(Rt,`] {
|
|
39
|
+
`).concat(Fd,": ").concat(s,`px;
|
|
40
|
+
}
|
|
41
|
+
`)},sa=function(){var e=parseInt(document.body.getAttribute(Rt)||"0",10);return isFinite(e)?e:0},of=function(){j(function(){return document.body.setAttribute(Rt,(sa()+1).toString()),function(){var e=sa()-1;e<=0?document.body.removeAttribute(Rt):document.body.setAttribute(Rt,e.toString())}},[])},af=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;of();var i=J(function(){return tf(o)},[o]);return k(nf,{styles:rf(i,!t,o,n?"":"!important")})},yo=!1;if(typeof window<"u")try{var An=Object.defineProperty({},"passive",{get:function(){return yo=!0,!0}});window.addEventListener("test",An,An),window.removeEventListener("test",An,An)}catch{yo=!1}var $t=yo?{passive:!1}:!1,sf=function(e){return e.tagName==="TEXTAREA"},dc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sf(e)&&n[t]==="visible")},cf=function(e){return dc(e,"overflowY")},lf=function(e){return dc(e,"overflowX")},ca=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=fc(e,n);if(r){var o=pc(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},uf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},df=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fc=function(e,t){return e==="v"?cf(t):lf(t)},pc=function(e,t){return e==="v"?uf(t):df(t)},ff=function(e,t){return e==="h"&&t==="rtl"?-1:1},pf=function(e,t,n,r,o){var i=ff(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),d=!1,f=a>0,l=0,h=0;do{var p=pc(e,s),g=p[0],v=p[1],y=p[2],m=v-y-i*g;(g||m)&&fc(e,s)&&(l+=m,h+=g),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&l===0||!f&&h===0)&&(d=!0),d},Tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},la=function(e){return[e.deltaX,e.deltaY]},ua=function(e){return e&&"current"in e?e.current:e},hf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vf=function(e){return`
|
|
42
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
43
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
44
|
+
`)},gf=0,St=[];function mf(e){var t=R([]),n=R([0,0]),r=R(),o=D(gf++)[0],i=D(function(){return uc()})[0],a=R(e);j(function(){a.current=e},[e]),j(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Nd([e.lockRef.current],(e.shards||[]).map(ua),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H(function(v,y){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var m=Tn(v),_=n.current,b="deltaX"in v?v.deltaX:_[0]-m[0],w="deltaY"in v?v.deltaY:_[1]-m[1],$,x=v.target,C=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in v&&C==="h"&&x.type==="range")return!1;var S=ca(C,x);if(!S)return!0;if(S?$=C:($=C==="v"?"h":"v",S=ca(C,x)),!S)return!1;if(!r.current&&"changedTouches"in v&&(b||w)&&(r.current=$),!$)return!0;var E=r.current||$;return pf(E,y,v,E==="h"?b:w)},[]),c=H(function(v){var y=v;if(!(!St.length||St[St.length-1]!==i)){var m="deltaY"in y?la(y):Tn(y),_=t.current.filter(function($){return $.name===y.type&&$.target===y.target&&hf($.delta,m)})[0];if(_&&_.should){y.cancelable&&y.preventDefault();return}if(!_){var b=(a.current.shards||[]).map(ua).filter(Boolean).filter(function($){return $.contains(y.target)}),w=b.length>0?s(y,b[0]):!a.current.noIsolation;w&&y.cancelable&&y.preventDefault()}}},[]),d=H(function(v,y,m,_){var b={name:v,delta:y,target:m,should:_};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),f=H(function(v){n.current=Tn(v),r.current=void 0},[]),l=H(function(v){d(v.type,la(v),v.target,s(v,e.lockRef.current))},[]),h=H(function(v){d(v.type,Tn(v),v.target,s(v,e.lockRef.current))},[]);j(function(){return St.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,$t),document.addEventListener("touchmove",c,$t),document.addEventListener("touchstart",f,$t),function(){St=St.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,$t),document.removeEventListener("touchmove",c,$t),document.removeEventListener("touchstart",f,$t)}},[]);var p=e.removeScrollBar,g=e.inert;return k(V,null,g?k(i,{styles:vf(o)}):null,p?k(af,{gapMode:"margin"}):null)}const _f=Bd(lc,mf);var Zo=te(function(e,t){return k(lr,Le({},e,{ref:t,sideCar:_f}))});Zo.classNames=lr.classNames;var yf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ct=new WeakMap,Pn=new WeakMap,Rn={},zr=0,hc=function(e){return e&&(e.host||hc(e.parentNode))},bf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wf=function(e,t,n,r){var o=bf(t,Array.isArray(e)?e:[e]);Rn[n]||(Rn[n]=new WeakMap);var i=Rn[n],a=[],s=new Set,c=new Set(o),d=function(l){!l||s.has(l)||(s.add(l),d(l.parentNode))};o.forEach(d);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))f(h);else try{var p=h.getAttribute(r),g=p!==null&&p!=="false",v=(Ct.get(h)||0)+1,y=(i.get(h)||0)+1;Ct.set(h,v),i.set(h,y),a.push(h),v===1&&g&&Pn.set(h,!0),y===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(t),s.clear(),zr++,function(){a.forEach(function(l){var h=Ct.get(l)-1,p=i.get(l)-1;Ct.set(l,h),i.set(l,p),h||(Pn.has(l)||l.removeAttribute(r),Pn.delete(l)),p||l.removeAttribute(n)}),zr--,zr||(Ct=new WeakMap,Ct=new WeakMap,Pn=new WeakMap,Rn={})}},vc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=yf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wf(r,o,n,"aria-hidden")):function(){return null}};const gc="Dialog",[mc]=Yo(gc),[xf,ht]=mc(gc),$f=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=R(null),c=R(null),[d=!1,f]=ec({prop:r,defaultProp:o,onChange:i});return k(xf,{scope:t,triggerRef:s,contentRef:c,contentId:Nn(),titleId:Nn(),descriptionId:Nn(),open:d,onOpenChange:f,onOpenToggle:H(()=>f(l=>!l),[f]),modal:a},n)},Sf="DialogTrigger",Cf=te((e,t)=>{const{__scopeDialog:n,...r}=e,o=ht(Sf,n),i=Fe(t,o.triggerRef);return k(pt.button,ee({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xo(o.open)},r,{ref:i,onClick:Oe(e.onClick,o.onOpenToggle)}))}),_c="DialogPortal",[Ef,yc]=mc(_c,{forceMount:void 0}),Of=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ht(_c,t);return k(Ef,{scope:t,forceMount:n},Ne.map(r,a=>k(qt,{present:n||i.open},k(ic,{asChild:!0,container:o},a))))},bo="DialogOverlay",kf=te((e,t)=>{const n=yc(bo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ht(bo,e.__scopeDialog);return i.modal?k(qt,{present:r||i.open},k(Af,ee({},o,{ref:t}))):null}),Af=te((e,t)=>{const{__scopeDialog:n,...r}=e,o=ht(bo,n);return k(Zo,{as:cr,allowPinchZoom:!0,shards:[o.contentRef]},k(pt.div,ee({"data-state":Xo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ht="DialogContent",Tf=te((e,t)=>{const n=yc(Ht,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ht(Ht,e.__scopeDialog);return k(qt,{present:r||i.open},i.modal?k(Pf,ee({},o,{ref:t})):k(Rf,ee({},o,{ref:t})))}),Pf=te((e,t)=>{const n=ht(Ht,e.__scopeDialog),r=R(null),o=Fe(t,n.contentRef,r);return j(()=>{const i=r.current;if(i)return vc(i)},[]),k(bc,ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,i=>i.preventDefault())}))}),Rf=te((e,t)=>{const n=ht(Ht,e.__scopeDialog),r=R(!1),o=R(!1);return k(bc,ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),bc=te((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=ht(Ht,n),c=R(null),d=Fe(t,c);return ac(),k(V,null,k(rc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(tc,ee({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Df="DialogTitle";function Xo(e){return e?"open":"closed"}const Lf="DialogTitleWarning";pd(Lf,{contentName:Ht,titleName:Df,docsSlug:"dialog"});const If=$f,Mf=Cf,Nf=Of,jf=kf,Ff=Tf,Vf=["top","right","bottom","left"],dt=Math.min,pe=Math.max,Xn=Math.round,Dn=Math.floor,je=e=>({x:e,y:e}),Hf={left:"right",right:"left",bottom:"top",top:"bottom"};function wo(e,t,n){return pe(e,dt(t,n))}function rt(e,t){return typeof e=="function"?e(t):e}function ot(e){return e.split("-")[0]}function Bt(e){return e.split("-")[1]}function Qo(e){return e==="x"?"y":"x"}function ei(e){return e==="y"?"height":"width"}function Me(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ti(e){return Qo(Me(e))}function Uf(e,t,n){n===void 0&&(n=!1);const r=Bt(e),o=ti(e),i=ei(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qn(a)),[a,Qn(a)]}function Wf(e){const t=Qn(e);return[xo(e),t,xo(t)]}function xo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const da=["left","right"],fa=["right","left"],zf=["top","bottom"],qf=["bottom","top"];function Bf(e,t,n){switch(e){case"top":case"bottom":return n?t?fa:da:t?da:fa;case"left":case"right":return t?zf:qf;default:return[]}}function Kf(e,t,n,r){const o=Bt(e);let i=Bf(ot(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(xo)))),i}function Qn(e){const t=ot(e);return Hf[t]+e.slice(t.length)}function Gf(e){return{top:0,right:0,bottom:0,left:0,...e}}function wc(e){return typeof e!="number"?Gf(e):{top:e,right:e,bottom:e,left:e}}function er(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pa(e,t,n){let{reference:r,floating:o}=e;const i=Me(t),a=ti(t),s=ei(a),c=ot(t),d=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:l};break;case"left":p={x:r.x-o.width,y:l};break;default:p={x:r.x,y:r.y}}switch(Bt(t)){case"start":p[a]-=h*(n&&d?-1:1);break;case"end":p[a]+=h*(n&&d?-1:1);break}return p}async function Jf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:h=!1,padding:p=0}=rt(t,e),g=wc(p),y=s[h?l==="floating"?"reference":"floating":l],m=er(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),_=l==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},$=er(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:b,strategy:c}):_);return{top:(m.top-$.top+g.top)/w.y,bottom:($.bottom-m.bottom+g.bottom)/w.y,left:(m.left-$.left+g.left)/w.x,right:($.right-m.right+g.right)/w.x}}const Yf=50,Zf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Jf},c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:l}=pa(d,r,c),h=r,p=0;const g={};for(let v=0;v<i.length;v++){const y=i[v];if(!y)continue;const{name:m,fn:_}=y,{x:b,y:w,data:$,reset:x}=await _({x:f,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=b??f,l=w??l,g[m]={...g[m],...$},x&&p<Yf&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(d=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:f,y:l}=pa(d,h,c)),v=-1)}return{x:f,y:l,placement:h,strategy:o,middlewareData:g}},Xf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=rt(e,t)||{};if(d==null)return{};const l=wc(f),h={x:n,y:r},p=ti(o),g=ei(p),v=await a.getDimensions(d),y=p==="y",m=y?"top":"left",_=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-h[p]-i.floating[g],$=h[p]-i.reference[p],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=x?x[b]:0;(!C||!await(a.isElement==null?void 0:a.isElement(x)))&&(C=s.floating[b]||i.floating[g]);const S=w/2-$/2,E=C/2-v[g]/2-1,A=dt(l[m],E),I=dt(l[_],E),P=A,M=C-v[g]-I,L=C/2-v[g]/2+S,z=wo(P,L,M),B=!c.arrow&&Bt(o)!=null&&L!==z&&i.reference[g]/2-(L<P?A:I)-v[g]/2<0,N=B?L<P?L-P:L-M:0;return{[p]:h[p]+N,data:{[p]:z,centerOffset:L-z-N,...B&&{alignmentOffset:N}},reset:B}}}),Qf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=rt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=ot(o),_=Me(s),b=ot(s)===s,w=await(c.isRTL==null?void 0:c.isRTL(d.floating)),$=h||(b||!v?[Qn(s)]:Wf(s)),x=g!=="none";!h&&x&&$.push(...Kf(s,v,g,w));const C=[s,...$],S=await c.detectOverflow(t,y),E=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&E.push(S[m]),l){const L=Uf(o,a,w);E.push(S[L[0]],S[L[1]])}if(A=[...A,{placement:o,overflows:E}],!E.every(L=>L<=0)){var I,P;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,z=C[L];if(z&&(!(l==="alignment"?_!==Me(z):!1)||A.every(K=>Me(K.placement)===_?K.overflows[0]>0:!0)))return{data:{index:L,overflows:A},reset:{placement:z}};let B=(P=A.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:P.placement;if(!B)switch(p){case"bestFit":{var M;const N=(M=A.filter(K=>{if(x){const q=Me(K.placement);return q===_||q==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(q=>q>0).reduce((q,le)=>q+le,0)]).sort((K,q)=>K[1]-q[1])[0])==null?void 0:M[0];N&&(B=N);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function ha(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function va(e){return Vf.some(t=>e[t]>=0)}const ep=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=rt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=ha(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:va(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),s=ha(a,n.floating);return{data:{escapedOffsets:s,escaped:va(s)}}}default:return{}}}}},xc=new Set(["left","top"]);async function tp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ot(n),s=Bt(n),c=Me(n)==="y",d=xc.has(a)?-1:1,f=i&&c?-1:1,l=rt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),c?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const np=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await tp(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},rp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:m=>{let{x:_,y:b}=m;return{x:_,y:b}}},...d}=rt(e,t),f={x:n,y:r},l=await i.detectOverflow(t,d),h=Me(ot(o)),p=Qo(h);let g=f[p],v=f[h];if(a){const m=p==="y"?"top":"left",_=p==="y"?"bottom":"right",b=g+l[m],w=g-l[_];g=wo(b,g,w)}if(s){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",b=v+l[m],w=v-l[_];v=wo(b,v,w)}const y=c.fn({...t,[p]:g,[h]:v});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:a,[h]:s}}}}}},op=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=rt(e,t),f={x:n,y:r},l=Me(o),h=Qo(l);let p=f[h],g=f[l];const v=rt(s,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const b=h==="y"?"height":"width",w=i.reference[h]-i.floating[b]+y.mainAxis,$=i.reference[h]+i.reference[b]-y.mainAxis;p<w?p=w:p>$&&(p=$)}if(d){var m,_;const b=h==="y"?"width":"height",w=xc.has(ot(o)),$=i.reference[l]-i.floating[b]+(w&&((m=a.offset)==null?void 0:m[l])||0)+(w?0:y.crossAxis),x=i.reference[l]+i.reference[b]+(w?0:((_=a.offset)==null?void 0:_[l])||0)-(w?y.crossAxis:0);g<$?g=$:g>x&&(g=x)}return{[h]:p,[l]:g}}}},ip=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...d}=rt(e,t),f=await a.detectOverflow(t,d),l=ot(o),h=Bt(o),p=Me(o)==="y",{width:g,height:v}=i.floating;let y,m;l==="top"||l==="bottom"?(y=l,m=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(m=l,y=h==="end"?"top":"bottom");const _=v-f.top-f.bottom,b=g-f.left-f.right,w=dt(v-f[y],_),$=dt(g-f[m],b),x=!t.middlewareData.shift;let C=w,S=$;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=_),x&&!h){const A=pe(f.left,0),I=pe(f.right,0),P=pe(f.top,0),M=pe(f.bottom,0);p?S=g-2*(A!==0||I!==0?A+I:pe(f.left,f.right)):C=v-2*(P!==0||M!==0?P+M:pe(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:C});const E=await a.getDimensions(s.floating);return g!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}};function ur(){return typeof window<"u"}function Kt(e){return $c(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=($c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $c(e){return ur()?e instanceof Node||e instanceof he(e).Node:!1}function ke(e){return ur()?e instanceof Element||e instanceof he(e).Element:!1}function it(e){return ur()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function ga(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function _n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function ap(e){return/^(table|td|th)$/.test(Kt(e))}function dr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const sp=/transform|translate|scale|rotate|perspective|filter/,cp=/paint|layout|strict|content/,gt=e=>!!e&&e!=="none";let qr;function ni(e){const t=ke(e)?Ae(e):e;return gt(t.transform)||gt(t.translate)||gt(t.scale)||gt(t.rotate)||gt(t.perspective)||!ri()&&(gt(t.backdropFilter)||gt(t.filter))||sp.test(t.willChange||"")||cp.test(t.contain||"")}function lp(e){let t=ft(e);for(;it(t)&&!Ut(t);){if(ni(t))return t;if(dr(t))return null;t=ft(t)}return null}function ri(){return qr==null&&(qr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qr}function Ut(e){return/^(html|body|#document)$/.test(Kt(e))}function Ae(e){return he(e).getComputedStyle(e)}function fr(e){return ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ga(e)&&e.host||Ve(e);return ga(t)?t.host:t}function Sc(e){const t=ft(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&_n(t)?t:Sc(t)}function an(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(i){const s=$o(a);return t.concat(a,a.visualViewport||[],_n(o)?o:[],s&&n?an(s):[])}else return t.concat(o,an(o,[],n))}function $o(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cc(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Xn(n)!==i||Xn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function oi(e){return ke(e)?e:e.contextElement}function Dt(e){const t=oi(e);if(!it(t))return je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Cc(t);let a=(i?Xn(n.width):n.width)/r,s=(i?Xn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const up=je(0);function Ec(e){const t=he(e);return!ri()||!t.visualViewport?up:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function yt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=oi(e);let a=je(1);t&&(r?ke(r)&&(a=Dt(r)):a=Dt(e));const s=dp(i,n,r)?Ec(i):je(0);let c=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,l=o.height/a.y;if(i){const h=he(i),p=r&&ke(r)?he(r):r;let g=h,v=$o(g);for(;v&&r&&p!==g;){const y=Dt(v),m=v.getBoundingClientRect(),_=Ae(v),b=m.left+(v.clientLeft+parseFloat(_.paddingLeft))*y.x,w=m.top+(v.clientTop+parseFloat(_.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,l*=y.y,c+=b,d+=w,g=he(v),v=$o(g)}}return er({width:f,height:l,x:c,y:d})}function pr(e,t){const n=fr(e).scrollLeft;return t?t.left+n:yt(Ve(e)).left+n}function Oc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fp(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Ve(r),s=t?dr(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=je(1);const f=je(0),l=it(r);if((l||!l&&!i)&&((Kt(r)!=="body"||_n(a))&&(c=fr(r)),l)){const p=yt(r);d=Dt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=a&&!l&&!i?Oc(a,c):je(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function pp(e){return Array.from(e.getClientRects())}function hp(e){const t=Ve(e),n=fr(e),r=e.ownerDocument.body,o=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pr(e);const s=-n.scrollTop;return Ae(r).direction==="rtl"&&(a+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const ma=25;function vp(e,t){const n=he(e),r=Ve(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const f=ri();(!f||f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const d=pr(r);if(d<=0){const f=r.ownerDocument,l=f.body,h=getComputedStyle(l),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-l.clientWidth-p);g<=ma&&(i-=g)}else d<=ma&&(i+=d);return{width:i,height:a,x:s,y:c}}function gp(e,t){const n=yt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=it(e)?Dt(e):je(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,d=r*i.y;return{width:a,height:s,x:c,y:d}}function _a(e,t,n){let r;if(t==="viewport")r=vp(e,n);else if(t==="document")r=hp(Ve(e));else if(ke(t))r=gp(t,n);else{const o=Ec(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return er(r)}function kc(e,t){const n=ft(e);return n===t||!ke(n)||Ut(n)?!1:Ae(n).position==="fixed"||kc(n,t)}function mp(e,t){const n=t.get(e);if(n)return n;let r=an(e,[],!1).filter(s=>ke(s)&&Kt(s)!=="body"),o=null;const i=Ae(e).position==="fixed";let a=i?ft(e):e;for(;ke(a)&&!Ut(a);){const s=Ae(a),c=ni(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||_n(a)&&!c&&kc(e,a))?r=r.filter(f=>f!==a):o=s,a=ft(a)}return t.set(e,r),r}function _p(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?dr(t)?[]:mp(t,this._c):[].concat(n),r],s=_a(t,a[0],o);let c=s.top,d=s.right,f=s.bottom,l=s.left;for(let h=1;h<a.length;h++){const p=_a(t,a[h],o);c=pe(p.top,c),d=dt(p.right,d),f=dt(p.bottom,f),l=pe(p.left,l)}return{width:d-l,height:f-c,x:l,y:c}}function yp(e){const{width:t,height:n}=Cc(e);return{width:t,height:n}}function bp(e,t,n){const r=it(t),o=Ve(t),i=n==="fixed",a=yt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=je(0);function d(){c.x=pr(o)}if(r||!r&&!i)if((Kt(t)!=="body"||_n(o))&&(s=fr(t)),r){const p=yt(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&d();i&&!r&&o&&d();const f=o&&!r&&!i?Oc(o,s):je(0),l=a.left+s.scrollLeft-c.x-f.x,h=a.top+s.scrollTop-c.y-f.y;return{x:l,y:h,width:a.width,height:a.height}}function Br(e){return Ae(e).position==="static"}function ya(e,t){if(!it(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ve(e)===n&&(n=n.ownerDocument.body),n}function Ac(e,t){const n=he(e);if(dr(e))return n;if(!it(e)){let o=ft(e);for(;o&&!Ut(o);){if(ke(o)&&!Br(o))return o;o=ft(o)}return n}let r=ya(e,t);for(;r&&ap(r)&&Br(r);)r=ya(r,t);return r&&Ut(r)&&Br(r)&&!ni(r)?n:r||lp(e)||n}const wp=async function(e){const t=this.getOffsetParent||Ac,n=this.getDimensions,r=await n(e.floating);return{reference:bp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xp(e){return Ae(e).direction==="rtl"}const $p={convertOffsetParentRelativeRectToViewportRelativeRect:fp,getDocumentElement:Ve,getClippingRect:_p,getOffsetParent:Ac,getElementRects:wp,getClientRects:pp,getDimensions:yp,getScale:Dt,isElement:ke,isRTL:xp};function Tc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sp(e,t){let n=null,r;const o=Ve(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:f,top:l,width:h,height:p}=d;if(s||t(),!h||!p)return;const g=Dn(l),v=Dn(o.clientWidth-(f+h)),y=Dn(o.clientHeight-(l+p)),m=Dn(f),b={rootMargin:-g+"px "+-v+"px "+-y+"px "+-m+"px",threshold:pe(0,dt(1,c))||1};let w=!0;function $(x){const C=x[0].intersectionRatio;if(C!==c){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!Tc(d,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver($,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver($,b)}n.observe(e)}return a(!0),i}function Cp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=oi(e),f=o||i?[...d?an(d):[],...t?an(t):[]]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const l=d&&s?Sp(d,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(m=>{let[_]=m;_&&_.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!c&&p.observe(d),t&&p.observe(t));let g,v=c?yt(e):null;c&&y();function y(){const m=yt(e);v&&!Tc(v,m)&&n(),v=m,g=requestAnimationFrame(y)}return n(),()=>{var m;f.forEach(_=>{o&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),l==null||l(),(m=p)==null||m.disconnect(),p=null,c&&cancelAnimationFrame(g)}}const Ep=np,Op=rp,kp=Qf,Ap=ip,Tp=ep,ba=Xf,Pp=op,Rp=(e,t,n)=>{const r=new Map,o={platform:$p,...n},i={...o.platform,_c:r};return Zf(e,t,{...o,platform:i})};var Vn=typeof document<"u"?se:j;function tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!tr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!tr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wa(e,t){const n=Pc(e);return Math.round(t*n)/n}function xa(e){const t=R(e);return Vn(()=>{t.current=e}),t}function Dp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,l]=D({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D(r);tr(h,r)||p(r);const[g,v]=D(null),[y,m]=D(null),_=H(N=>{N!==x.current&&(x.current=N,v(N))},[]),b=H(N=>{N!==C.current&&(C.current=N,m(N))},[]),w=i||g,$=a||y,x=R(null),C=R(null),S=R(f),E=c!=null,A=xa(c),I=xa(o),P=H(()=>{if(!x.current||!C.current)return;const N={placement:t,strategy:n,middleware:h};I.current&&(N.platform=I.current),Rp(x.current,C.current,N).then(K=>{const q={...K,isPositioned:!0};M.current&&!tr(S.current,q)&&(S.current=q,vn(()=>{l(q)}))})},[h,t,n,I]);Vn(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,l(N=>({...N,isPositioned:!1})))},[d]);const M=R(!1);Vn(()=>(M.current=!0,()=>{M.current=!1}),[]),Vn(()=>{if(w&&(x.current=w),$&&(C.current=$),w&&$){if(A.current)return A.current(w,$,P);P()}},[w,$,P,A,E]);const L=J(()=>({reference:x,floating:C,setReference:_,setFloating:b}),[_,b]),z=J(()=>({reference:w,floating:$}),[w,$]),B=J(()=>{const N={position:n,left:0,top:0};if(!z.floating)return N;const K=wa(z.floating,f.x),q=wa(z.floating,f.y);return s?{...N,transform:"translate("+K+"px, "+q+"px)",...Pc(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:q}},[n,s,z.floating,f.x,f.y]);return J(()=>({...f,update:P,refs:L,elements:z,floatingStyles:B}),[f,P,L,z,B])}const Lp=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ba({element:r.current,padding:o}).fn(n):{}:r?ba({element:r,padding:o}).fn(n):{}}}},Ip=(e,t)=>({...Ep(e),options:[e,t]}),Mp=(e,t)=>({...Op(e),options:[e,t]}),Np=(e,t)=>({...Pp(e),options:[e,t]}),jp=(e,t)=>({...kp(e),options:[e,t]}),Fp=(e,t)=>({...Ap(e),options:[e,t]}),Vp=(e,t)=>({...Tp(e),options:[e,t]}),Hp=(e,t)=>({...Lp(e),options:[e,t]});function Up(e){const[t,n]=D(void 0);return Vt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Rc="Popper",[Dc,Lc]=Yo(Rc),[Wp,Ic]=Dc(Rc),zp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=D(null);return k(Wp,{scope:t,anchor:r,onAnchorChange:o},n)},qp="PopperAnchor",Bp=te((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ic(qp,n),a=R(null),s=Fe(t,a);return j(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:k(pt.div,ee({},o,{ref:s}))}),Mc="PopperContent",[Kp,Ay]=Dc(Mc),Gp=te((e,t)=>{var n,r,o,i,a,s,c,d;const{__scopePopper:f,side:l="bottom",sideOffset:h=0,align:p="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:m=[],collisionPadding:_=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:$="optimized",onPlaced:x,...C}=e,S=Ic(Mc,f),[E,A]=D(null),I=Fe(t,We=>A(We)),[P,M]=D(null),L=Up(P),z=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,B=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,N=l+(p!=="center"?"-"+p:""),K=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},q=Array.isArray(m)?m:[m],le=q.length>0,at={padding:K,boundary:q.filter(Jp),altBoundary:le},{refs:Te,floatingStyles:_e,placement:He,isPositioned:Ce,middlewareData:ue}=Dp({strategy:"fixed",placement:N,whileElementsMounted:(...We)=>Cp(...We,{animationFrame:$==="always"}),elements:{reference:S.anchor},middleware:[Ip({mainAxis:h+B,alignmentAxis:g}),y&&Mp({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Np():void 0,...at}),y&&jp({...at}),Fp({...at,apply:({elements:We,rects:W,availableWidth:Y,availableHeight:Z})=>{const{width:X,height:ce}=W.reference,T=We.floating.style;T.setProperty("--radix-popper-available-width",`${Y}px`),T.setProperty("--radix-popper-available-height",`${Z}px`),T.setProperty("--radix-popper-anchor-width",`${X}px`),T.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),P&&Hp({element:P,padding:v}),Yp({arrowWidth:z,arrowHeight:B}),w&&Vp({strategy:"referenceHidden",...at})]}),[fe,Pe]=Nc(He),Ue=ut(x);Vt(()=>{Ce&&(Ue==null||Ue())},[Ce,Ue]);const st=(o=ue.arrow)===null||o===void 0?void 0:o.x,wt=(i=ue.arrow)===null||i===void 0?void 0:i.y,xt=((a=ue.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Re,vt]=D();return Vt(()=>{E&&vt(window.getComputedStyle(E).zIndex)},[E]),k("div",{ref:Te.setFloating,"data-radix-popper-content-wrapper":"",style:{..._e,transform:Ce?_e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(s=ue.transformOrigin)===null||s===void 0?void 0:s.x,(c=ue.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},k(Kp,{scope:f,placedSide:fe,onArrowChange:M,arrowX:st,arrowY:wt,shouldHideArrow:xt},k(pt.div,ee({"data-side":fe,"data-align":Pe},C,{ref:I,style:{...C.style,animation:Ce?void 0:"none",opacity:(d=ue.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function Jp(e){return e!==null}const Yp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,l=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[g,v]=Nc(s),y={start:"0%",center:"50%",end:"100%"}[v],m=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,_=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let b="",w="";return g==="bottom"?(b=l?y:`${m}px`,w=`${-p}px`):g==="top"?(b=l?y:`${m}px`,w=`${c.floating.height+p}px`):g==="right"?(b=`${-p}px`,w=l?y:`${_}px`):g==="left"&&(b=`${c.floating.width+p}px`,w=l?y:`${_}px`),{data:{x:b,y:w}}}});function Nc(e){const[t,n="center"]=e.split("-");return[t,n]}const Zp=zp,Xp=Bp,Qp=Gp,jc="Popover",[Fc]=Yo(jc,[Lc]),ii=Lc(),[eh,Gt]=Fc(jc),th=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ii(t),c=R(null),[d,f]=D(!1),[l=!1,h]=ec({prop:r,defaultProp:o,onChange:i});return k(Zp,s,k(eh,{scope:t,contentId:Nn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:H(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:H(()=>f(!0),[]),onCustomAnchorRemove:H(()=>f(!1),[]),modal:a},n))},nh="PopoverTrigger",rh=te((e,t)=>{const{__scopePopover:n,...r}=e,o=Gt(nh,n),i=ii(n),a=Fe(t,o.triggerRef),s=k(pt.button,ee({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Uc(o.open)},r,{ref:a,onClick:Oe(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:k(Xp,ee({asChild:!0},i),s)}),Vc="PopoverPortal",[oh,ih]=Fc(Vc,{forceMount:void 0}),ah=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Gt(Vc,t);return k(oh,{scope:t,forceMount:n},k(qt,{present:n||i.open},k(ic,{asChild:!0,container:o},r)))},sn="PopoverContent",sh=te((e,t)=>{const n=ih(sn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Gt(sn,e.__scopePopover);return k(qt,{present:r||i.open},i.modal?k(ch,ee({},o,{ref:t})):k(lh,ee({},o,{ref:t})))}),ch=te((e,t)=>{const n=Gt(sn,e.__scopePopover),r=R(null),o=Fe(t,r),i=R(!1);return j(()=>{const a=r.current;if(a)return vc(a)},[]),k(Zo,{as:cr,allowPinchZoom:!0},k(Hc,ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,d=s.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Oe(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),lh=te((e,t)=>{const n=Gt(sn,e.__scopePopover),r=R(!1),o=R(!1);return k(Hc,ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Hc=te((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...l}=e,h=Gt(sn,n),p=ii(n);return ac(),k(rc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},k(tc,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},k(Qp,ee({"data-state":Uc(h.open),role:"dialog",id:h.contentId},p,l,{ref:t,style:{...l.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Uc(e){return e?"open":"closed"}const uh=th,dh=rh,fh=ah,ph=sh,$a=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},hh=(e,t={by:"results-count",order:"descending"})=>{const n=[...e];switch(t.by){case"results-count":n.sort((r,o)=>r.jobs-o.jobs);break;case"alphabetically":n.sort((r,o)=>r.label.localeCompare(o.label));break;case"numerically":n.sort((r,o)=>{const i=$a(r.value),a=$a(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},yn=Se({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),Wc=Se({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),zc=Se({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),qc=Se({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),vh=Se({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),gh=({children:e,colorScheme:t})=>u("span",{class:vh({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),mh=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},_h=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},yh=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},bh=({value:e,hasKeyword:t,property:n,useQuery:r,isMobile:o,onValueChange:i,onClose:a})=>{const{t:s}=re(),c=pn(r()),d=J(()=>{switch(c.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const g=c.data[n.key]??[];return Object.fromEntries(g.map(v=>[v.value,v.jobs]))}default:At(c)}},[c,n.key]),f=Bc(e),l=f.length>0,[h,p]=D();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[n.searchable&&u("div",{class:"border-b-px border-neutral-4",children:u("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:h,onInput:g=>p(g.currentTarget.value),placeholder:s("type_to_search")})}),(()=>{var g;switch(c.queryState){case"error":return u(et,{error:new Error(s("filters_loading_error"),{cause:c.error}),class:"flex-1",resetError:()=>c.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((v,y)=>u("div",{style:{animationDelay:y*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},y))});case"revalidating":case"loaded":{const v=[...c.data[n.key]??[]];if(!t)for(const b of n.pinnedValues??[])v.some(w=>w.value===b)||v.push({value:b,label:b,jobs:0});const y=h&&h.length>1?v.filter(b=>b.label.toLowerCase().includes(h.toLowerCase())):v,m=[];for(const b of y){if(b.label.length<1)continue;const w=(g=n.pinnedValues)==null?void 0:g.includes(b.value);if(t&&w&&b.jobs===0)continue;const $={...b,results:yh(d,b),disabled:_h(d,b)};n.results==="only-available"?($.disabled===!1||w&&!t)&&m.push($):m.push($)}return m.some(b=>{var w;return!b.disabled||!t&&((w=n.pinnedValues)==null?void 0:w.includes(b.value))})?u("ul",{class:Wc(),children:hh(m,n.sortSuggestions).map(b=>{const w=f.includes(b.value);return u("li",{class:zc({type:"line"}),children:u("button",{type:"button",disabled:b.disabled,"data-filter":!0,"data-current-value":w?"true":void 0,"aria-pressed":w,onClick:()=>{switch(e.select){case"many":{const $=mh(f,b.value);i({select:"many",value:$});break}case"one":i({select:"one",value:w?void 0:b.value});break;default:At(e)}},class:qc({active:w,disabled:b.disabled}),children:[u("span",{class:"max-w-full truncate",children:b.label})," ",u(gh,{colorScheme:w?"accentStrong":"neutralStrong",children:b.results})]})},b.value)})}):u("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:s("no_filter_options_available")})}default:At(c)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:l&&u("button",{type:"button",class:ge({variant:"neutral",icon:"left"}),onClick:()=>{i(void 0)},children:[u(oe,{"aria-hidden":!0,name:"x"})," ",s("clear")]})}),e.select==="many"&&o&&u("div",{class:"flex items-center overflow-hidden",children:u("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[f.length," ",s("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:ge({variant:l?"accent":"neutral",class:"ml-auto"}),onClick:a,children:s(l?"done":"close")},l?"done":"close")})]})]})},Sa=8,Ca={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},Ea=Se({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),Oa=Se({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),Bc=e=>typeof e.value=="string"?[e.value]:e.value??[],wh=({selectedValues:e})=>{const t=e.length;return t===0?null:u("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg absolute -right-1 -top-1 inline-flex min-h-6 min-w-6 items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},Kc=({active:e,hasKeyword:t=!1,value:n,onActiveChange:r,property:o,onValueChange:i,unfilteredQuery:a,useQuery:s,theme:c,widgetId:d})=>{const f=yl(o.key,Ca)?Ca[o.key]:void 0,l=o.icon??f??"filter",h=Bc(n),p=h.length>0,{t:g}=re(),v=p?`${o.label}, ${h.length} ${g("selected")}`:o.label,y=Xs("(pointer: coarse)"),m=u(V,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(oe,{"aria-hidden":!0,class:"flex-none",name:l}),u("span",{class:"truncate",children:o.label})]}),u(oe,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(wh,{selectedValues:h})]}),_=u(bh,{hasKeyword:t,useQuery:s,onClose:()=>r(!1),onValueChange:i,unfilteredQuery:a,property:o,value:n,isMobile:y});return y?u(If,{open:e,onOpenChange:r,children:[u(Mf,{"data-filter-key":o.key,"aria-label":v,class:Ea({state:e||p?"active":"default"}),onTouchStart:xh,children:m}),u(Nf,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:[u(jf,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Ff,{class:Oa({mode:"mobile",class:go(c)}),children:[u("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[u(oe,{name:l,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:o.label})]}),_]})]})})]}):u(uh,{open:e,onOpenChange:b=>r(b),modal:y,children:[u(dh,{"data-filter-key":o.key,"aria-label":v,class:Ea({state:e||p?"active":"default"}),children:m}),u(fh,{children:u("div",{class:"inploi-job-search","data-widget-id":d,children:u(ph,{side:"bottom",sideOffset:Sa,align:"center",collisionPadding:Sa,class:Oa({mode:"desktop",class:go(c)}),children:_})})})]})};function xh(){}const $h=(e,t)=>{var n,r,o;switch(t.select){case"many":(n=t.value)==null||n.forEach(i=>{var a,s;switch(e.select){case"many":(a=e.value)!=null&&a.includes(i)||(s=e.value)==null||s.push(i);break;case"one":e.value=i}});break;case"one":if(!t.value)break;switch(e.select){case"many":(r=e.value)!=null&&r.includes(t.value)||(o=e.value)==null||o.push(t.value);break;case"one":e.value=t.value}break}},Sh=({value:e,activeKey:t})=>{switch(e==null?void 0:e.select){case void 0:return{newValue:void 0,newActiveKey:t};case"one":case"many":return{newValue:e,newActiveKey:t};default:At(e)}},Ch=({properties:e,state:t,staged:n,onFilterValueChange:r,onResetFilters:o,rpcClient:i,theme:a,alerts:s,widgetId:c,i18n:d})=>{const{t:f}=re(),[l,h]=D(void 0),p=J(()=>({filters:or(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),g=pn(Ft(Zn({state:p,baseKey:"filters"}),()=>Si({rpcClient:i,state:p,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Gn)),v=H(m=>()=>{const _={...t,resultOrder:void 0,filters:{...t.filters,[m]:p.filters[m]}};return Ft(Zn({state:_,baseKey:"filters"}),()=>Si({rpcClient:i,state:_,t:f,locale:d?d.locale:void 0,fallbackLocale:d?d.fallbackLocale:void 0}),Gn)},[i,p.filters,t,f,d]);if(g.queryState==="error")return u(et,{error:new Error(f("filters_loading_error"),{cause:g.error}),resetError:()=>g.swr.mutate()});const y=n?Eh:Kc;return u("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[e.filter(m=>m.hidden!==!0).map(m=>{const _=l===m.key,b=t.filters[m.key]??{select:m.select,value:void 0},w=p.filters[m.key];w&&$h(b,w);const $=S=>{const{newActiveKey:E,newValue:A}=Sh({activeKey:l,value:S??w,appliedFilters:t.filters});return h(E),r(m.key,A)},x=S=>h(S?m.key:void 0),C=v(m.key);return u(on,{Fallback:et,children:u(y,{unfilteredQuery:g,active:_,hasKeyword:!!t.query,property:m,onActiveChange:x,value:b,useQuery:C,onValueChange:$,theme:a,widgetId:c})},m.key)}),u("button",{type:"button",class:ge({variant:"neutral"}),onClick:o,children:f("reset")}),s?u("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:u("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[u("div",{class:"block h-6 w-6"}),u("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:s.params.config.label})]})}):null]})};function Eh({useQuery:e,...t}){const n=e();return u(Kc,{...t,useQuery:()=>n})}const Gc=["gb"],Oh=e=>{const t=$e.jobCountryCodes(e);return t.length?t:Gc},cn=e=>e*1609.34,So=e=>e*1e3,kh=()=>{const e=typeof document>"u"?"":document.documentElement.lang;if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return}},Jc=(e,t,n=1)=>new Intl.NumberFormat(kh()??e,{style:"unit",unit:t==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:n,trailingZeroDisplay:"stripIfInteger"}),Ah=(e,t,n)=>Jc(n,t).format(e/(t==="miles"?cn(1):So(1)));function Th(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hr=Th,Ph=typeof $n=="object"&&$n&&$n.Object===Object&&$n,Rh=Ph,Dh=Rh,Lh=typeof self=="object"&&self&&self.Object===Object&&self,Ih=Dh||Lh||Function("return this")(),vr=Ih,Mh=vr,Nh=function(){return Mh.Date.now()},jh=Nh,Fh=/\s/;function Vh(e){for(var t=e.length;t--&&Fh.test(e.charAt(t)););return t}var Hh=Vh,Uh=Hh,Wh=/^\s+/;function zh(e){return e&&e.slice(0,Uh(e)+1).replace(Wh,"")}var qh=zh,Bh=vr,Kh=Bh.Symbol,ai=Kh,ka=ai,Yc=Object.prototype,Gh=Yc.hasOwnProperty,Jh=Yc.toString,en=ka?ka.toStringTag:void 0;function Yh(e){var t=Gh.call(e,en),n=e[en];try{e[en]=void 0;var r=!0}catch{}var o=Jh.call(e);return r&&(t?e[en]=n:delete e[en]),o}var Zh=Yh,Xh=Object.prototype,Qh=Xh.toString;function ev(e){return Qh.call(e)}var tv=ev,Aa=ai,nv=Zh,rv=tv,ov="[object Null]",iv="[object Undefined]",Ta=Aa?Aa.toStringTag:void 0;function av(e){return e==null?e===void 0?iv:ov:Ta&&Ta in Object(e)?nv(e):rv(e)}var Zc=av;function sv(e){return e!=null&&typeof e=="object"}var cv=sv,lv=Zc,uv=cv,dv="[object Symbol]";function fv(e){return typeof e=="symbol"||uv(e)&&lv(e)==dv}var gr=fv,pv=qh,Pa=hr,hv=gr,Ra=NaN,vv=/^[-+]0x[0-9a-f]+$/i,gv=/^0b[01]+$/i,mv=/^0o[0-7]+$/i,_v=parseInt;function yv(e){if(typeof e=="number")return e;if(hv(e))return Ra;if(Pa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pv(e);var n=gv.test(e);return n||mv.test(e)?_v(e.slice(2),n?2:8):vv.test(e)?Ra:+e}var bv=yv,wv=hr,Kr=jh,Da=bv,xv="Expected a function",$v=Math.max,Sv=Math.min;function Cv(e,t,n){var r,o,i,a,s,c,d=0,f=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(xv);t=Da(t)||0,wv(n)&&(f=!!n.leading,l="maxWait"in n,i=l?$v(Da(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(x){var C=r,S=o;return r=o=void 0,d=x,a=e.apply(S,C),a}function g(x){return d=x,s=setTimeout(m,t),f?p(x):a}function v(x){var C=x-c,S=x-d,E=t-C;return l?Sv(E,i-S):E}function y(x){var C=x-c,S=x-d;return c===void 0||C>=t||C<0||l&&S>=i}function m(){var x=Kr();if(y(x))return _(x);s=setTimeout(m,v(x))}function _(x){return s=void 0,h&&r?p(x):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),d=0,r=c=o=s=void 0}function w(){return s===void 0?a:_(Kr())}function $(){var x=Kr(),C=y(x);if(r=arguments,o=this,c=x,C){if(s===void 0)return g(c);if(l)return clearTimeout(s),s=setTimeout(m,t),p(c)}return s===void 0&&(s=setTimeout(m,t)),a}return $.cancel=b,$.flush=w,$}var Ev=Cv;const Ov=Bo(Ev),Co="|",Xc=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;switch(r.select){case"one":{r.defaultValue=o;break}case"many":o.includes(Co)?r.defaultValue=o.split(Co):r.defaultValue=o}}}),n},Qc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},el=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},kv=({searchParams:e})=>({properties:t})=>({filters:or(Xc(t,e),"defaultValue"),mode:Qc(e),geo:tl(e),page:Hn(e.get("page"))??1,view:el(e),query:e.get("query")??"",...e.get("result_order")==="newest"?{resultOrder:"newest"}:{}}),Av=(e,t)=>{var n,r;if(e.filters!==void 0){const o=ir({filters:e.filters,mode:e.mode??"query",page:e.page??1,view:e.view??"list"});for(const[i,a]of Object.entries(o))if(i!=="geolocation"){if(a==null){t.delete(i);continue}Array.isArray(a)?a.length===0?t.delete(i):t.set(i,a.join(Co)):typeof a=="string"&&t.set(i,a)}}"geo"in e&&(((n=e.geo)==null?void 0:n.type)==="provided"?(e.geo.coords?(t.set("lat",e.geo.coords.lat.toString()),t.set("lng",e.geo.coords.lng.toString())):(t.delete("lat"),t.delete("lng")),t.set("radius",e.geo.radius.toString())):((r=e.geo)==null||r.type,t.delete("lat"),t.delete("lng"),t.delete("radius"))),"query"in e&&(e.query?t.set("query",e.query):t.delete("query")),"page"in e&&(e.page&&e.page>1?t.set("page",e.page.toString()):t.delete("page")),"resultOrder"in e&&(e.resultOrder==="newest"?t.set("result_order","newest"):t.delete("result_order")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},Hn=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},tl=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=Hn(t),i=Hn(n),a=Hn(r)??cn(Oo);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?cn(Oo):a}},nl=(e,t=1e3)=>{const[n,r]=D(e),o=J(()=>Ov(i=>r(i),t),[t]);return j(()=>{o(e)},[e,o]),n},Tv=te(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onEnter:a,onQueryChange:s,onBlur:c,onFocus:d,inputProps:f,menuProps:l,query:h},p)=>{const[g,v]=D(!1),[y,m]=D(),_=R(!1),{t:b}=re();j(()=>{var x;m((x=o[0])==null?void 0:x.id),_.current=!1},[o]);const w=x=>{i(x),v(!1)},$=!t&&g&&!e&&o.length>0;return u("div",{class:"relative h-full",children:[u("input",{name:n,"aria-label":r,ref:p,disabled:e,"data-active":g?"true":void 0,"aria-controls":$?`ijs-${n}-menu`:void 0,placeholder:r,class:yn({size:"md"}),onFocus:()=>{d==null||d(),v(!0)},onBlur:()=>{window.setTimeout(()=>{c==null||c(),v(!1)},100)},value:h,onChange:x=>{_.current=!1,s(x.currentTarget.value)},onKeyDown:x=>{switch(v(!0),x.key){case"ArrowDown":case"ArrowUp":{const C=x.key==="ArrowDown"?1:-1;x.preventDefault();const S=o.findIndex(A=>A.id===y);if(S===-1)return;const E=o[S+C]??o[x.key==="ArrowDown"?0:o.length-1];if(!E)return;m(E.id),_.current=!0;break}case"Enter":x.preventDefault(),a(y,_.current)}},...f}),$?u("ul",{className:Wc({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${n}-menu`,onMouseDown:x=>x.preventDefault(),...l,children:t?u("div",{role:"alert",children:b("geo_suggestions_error")}):o.map(x=>u("li",{class:zc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>{m(x.id),_.current=!0},class:qc({active:x.id===y,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(x.id),onKeyDown:C=>{C.key==="Enter"&&w(x.id)},children:x.label})},x.id))}):null]})}),Pv="https://api.mapbox.com/search/geocode/v6/forward",Eo=3,Rv="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Dv=e=>atob(e).split("").reverse().join(""),Lv="region,postcode,district,place,locality,neighborhood",Iv=we({features:fn(Xe(we({properties:we({mapbox_id:Q(),feature_type:Be(Q()),place_formatted:Be(Q()),name_preferred:Be(Q(),"Untitled location"),coordinates:Xe(we({latitude:be(),longitude:be()}),Ze(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),Ze(e=>e.properties)))}),Mv=e=>{const t=us(Iv,e);if(t.success===!1)throw console.error(t.issues),new Error("Invalid data");return t.output.features},Nv=(e,t)=>{const n=new URL(Pv);return n.searchParams.set("q",e),n.searchParams.set("proximity","ip"),n.searchParams.set("country",t.join(",")),n.searchParams.set("types",Lv),n.searchParams.set("access_token",Dv(Rv)),n},La=e=>e.replace(/\s/gu,"").toUpperCase(),jv=(e,t)=>{const n=La(e),r=t.find(o=>o.feature_type==="postcode"&&La(o.name_preferred)===n);return r?[r,...t.filter(o=>o!==r)]:t},Fv=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Ia="inploi:geo:job-search:seed";let Et;const Vv=()=>{if(Et)return Et;Et=$e.generateUUID();try{const e=sessionStorage.getItem(Ia);e&&/^[\w-]{1,64}$/.test(e)?Et=e:sessionStorage.setItem(Ia,Et)}catch{}return Et},Hv=e=>({mapbox_id:`${e.kind}:${e.label}`,feature_type:e.kind,name_preferred:e.name,place_formatted:e.label.startsWith(`${e.name}, `)?e.label.slice(e.name.length+2):e.label,coordinates:{lat:e.lat,lng:e.lng}}),Ma=async([e,t],n,r)=>{if(e.trim().length<Eo)return{results:[],lookup:null};const{results:o,arm:i,source:a}=await Cl({query:e,country:t.join(","),seed:Vv(),surface:"job-search",signal:n},Hv,async()=>{r==null||r();const c=await fetch(Nv(e,t),{signal:n});if(!c.ok)throw new Error("Failed to get address details");return Mv(await c.json())}),s=Fv(o,c=>c.name_preferred+c.place_formatted);return{results:jv(e,s),lookup:{arm:i,source:a}}},Uv=1e4;class rl extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const Wv=({signal:e,timeoutMs:t})=>new Promise((n,r)=>{if(e.aborted){r(new DOMException("Aborted","AbortError"));return}const o=setTimeout(()=>r(new rl),t);e.addEventListener("abort",()=>{clearTimeout(o),r(new DOMException("Aborted","AbortError"))},{once:!0}),navigator.geolocation.getCurrentPosition(i=>{clearTimeout(o),n(i.coords)},i=>{clearTimeout(o),r(i)},{timeout:t})}),zv=1,qv=3,Bv=e=>{if(e instanceof DOMException&&e.name==="AbortError")return null;if(e instanceof rl)return"geo_error_timeout";const t=typeof e=="object"&&e!==null&&"code"in e?e.code:void 0;return t===zv?"geo_error_permission_denied":t===qv?"geo_error_timeout":"geo_error_position_unavailable"},Kv=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Gv=({onLocate:e,onError:t,signal:n})=>{const[r,o]=D("idle"),[i,a]=D(null),{t:s}=re(),c=f=>{o("idle"),a(f),e(f)},d=f=>{const l=Bv(f);if(!l)return o("idle");o("error"),t(s(l))};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(r!=="loading"){if(i)return c(i);if(!Kv())return d(void 0);o("loading"),Wv({signal:n,timeoutMs:Uv}).then(f=>c({lat:f.latitude,lng:f.longitude})).catch(d)}},"data-state":r,class:ge({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),children:u(oe,{name:"target-location"})})},Lt=Se({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),Jv=({onSelect:e,onValueChange:t,coords:n,radius:r,countries:o,onError:i})=>{const{t:a}=re(),[s,c]=D(""),[d,f]=D(),l=nl(s,500),[h,p]=D(new AbortController),g=Ft(l.trim().length>=Eo?[l,o]:null,Ma,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:v,queryState:y,error:m}=pn(g),_=R(0),[b,w]=D("view"),$=R(null),x=R(null),C=R(null),S=R(!1);j(()=>{var P,M;b==="edit"&&((P=$.current)==null||P.focus()),b==="view"&&n&&S.current&&(S.current=!1,(M=C.current)==null||M.focus())},[b,n]);const E=(P,M)=>{var L;_.current++,S.current=((L=x.current)==null?void 0:L.contains(document.activeElement))??!1,e(P,M),f(M),c(""),w("view")},A=(P,M)=>{P&&El({kind:"places",surface:"job-search",...P,picked:M})};return u("div",{ref:x,class:"relative flex-1",children:[b==="view"&&n?u("button",{ref:C,"aria-label":`${a("geo_search_placeholder")}: ${d??a("location_provided")}`,type:"button",class:yn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{w("edit")},children:u("div",{class:Lt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:d??a("location_provided")})}):u(Tv,{ref:$,error:m,query:s,name:"location-search",onQueryChange:P=>{_.current++,c(P),i(void 0)},onFocus:()=>{h.abort(),p(new AbortController)},onBlur:()=>{const P=$.current;if(!(!P||document.activeElement===P)){if(w("view"),n)return c("");P.value.trim()&&i(a("geo_choose_location"))}},onItemSelect:P=>{if(y!=="loaded")return;const M=v.results.find(L=>L.mapbox_id===P);M&&(A(v.lookup,!0),E(M.coordinates,M.name_preferred))},onEnter:async(P,M)=>{const L=s.trim();if(!L)return;if(L.length<Eo)return i(a("geo_query_too_short"));const z=++_.current;let B=null;try{const N=l===s&&y==="loaded"?v:await Ma([L,o],void 0,()=>{B={arm:"direct",source:"direct"}});if(z!==_.current)return;const K=N.results.find(le=>le.mapbox_id===P),q=K??N.results[0];if(A(N.lookup,M&&!!K),q)return E(q.coordinates,q.name_preferred);i(a("geo_no_match"))}catch{if(z!==_.current)return;A(B,!1),i(a("geo_suggestions_error"))}},inputPlaceholder:a("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(v==null?void 0:v.results.map(P=>({id:P.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:P.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:P.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!s&&!n?u(Gv,{onLocate:P=>E(P,a("geo_my_location")),onError:i,signal:h.signal}):u("button",{type:"button","aria-label":a("geo_clear_search"),onClick:()=>{_.current++,c(""),i(void 0),f(void 0),t({radius:r,type:"provided"}),w("edit"),$.current&&($.current.value="",$.current.focus())},class:ge({variant:"neutral",size:"lg",icon:"only"}),children:u(oe,{name:"x"})})})]})},Yv=[.25,.5,1,3,5,10,15,20,30,40],Zv=[.5,1,3,5,10,15,25,50,100],Oo=20,Xv=25,Qv=({rpcClient:e,value:t,onValueChange:n,distanceUnit:r="miles"})=>{const{t:o,locale:i}=re(),a=sr(),[s,c]=D(),d=Ft("job-countries",()=>$e.getJobCountries(e),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}),f=J(()=>d.data?Oh(d.data):Gc,[d.data]),l=J(()=>Jc(i,r,2),[i,r]),h=r==="miles"?cn(Oo):So(Xv),p=(t==null?void 0:t.type)==="provided"?t.radius:h,g=(t==null?void 0:t.type)==="provided"?t.coords:void 0,v=(t==null?void 0:t.type)==="provided"?t.label:void 0,y=r==="miles"?Yv.map(m=>({value:cn(m),label:l.format(m)})):Zv.map(m=>({value:So(m),label:l.format(m)}));return u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"flex flex-col gap-2 md:flex-row",children:[u(Jv,{coords:g,radius:p,countries:f,onValueChange:n,onSelect:(m,_)=>{c(void 0),n({type:"provided",radius:p,coords:m,label:_})},onError:c}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:a,children:o("geo_range_label")}),u("select",{id:a,name:"radius",class:yn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!g,value:g?p:"",onChange:m=>{c(void 0),n({type:"provided",coords:g,label:v,radius:Number(m.currentTarget.value)})},children:[g?null:u("option",{value:"",children:o("geo_any_distance")}),y.map(m=>u("option",{value:m.value,class:"truncate",children:m.label},m.value))]}),u("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:u(oe,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),s?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(oe,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),s]}):null]})},ol=(e,t,n,r)=>{const[o,i]=D(e??""),a=R(),s=R(t);s.current=t;const c=H(()=>clearTimeout(a.current),[]);return se(()=>(i(e??""),c(),c),[e,c]),{input:o,changeInput:f=>{i(f),c();const l=f.trim();if(l.length<=n){s.current("");return}a.current=setTimeout(()=>s.current(l),r)},cancelPending:c}},eg=2,tg=({value:e,onValueChange:t,onSearch:n})=>{const{input:r,changeInput:o,cancelPending:i}=ol(e,t,eg,300),a=r!==""&&r===e,{t:s}=re();return u("div",{class:"flex flex-col gap-3",children:u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(oe,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:Nt({"text-copy-neutral-icon":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:yn({hasValue:a,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:s("type_to_search_jobs"),value:r,onKeyDown:c=>{if(n&&c.key==="Enter"){c.preventDefault(),i();const d=c.currentTarget.value.trim();t(d),n(d)}},onChange:c=>{o(c.currentTarget.value)}}),u("button",{type:"button",class:ge({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o("")},children:u(oe,{name:"x"})})]})})},ng=({intervalMs:e,strings:t,class:n})=>{const[r,o]=D(0),[i,a]=D(!0),s=[...t,t[0]];return j(()=>{r===s.length&&(a(!1),o(0));const c=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(c)},[r,s.length,e]),u("div",{className:Nt("relative h-full w-full overflow-hidden",n),children:u("div",{className:Nt("absolute w-full",{"transition-transform duration-500 ease-in-out":i}),style:{height:`${100*s.length}%`,transform:`translateY(-${r*(100/s.length)}%)`},children:s.map((c,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:c},d))})})},rg=(e,t)=>{j(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},Na=3,og=({value:e,onValueChange:t,options:n,onSearch:r})=>{const{input:o,changeInput:i,cancelPending:a}=ol(e,t,Na,1e3),s=o.trim(),c=s!==""&&s===e,{t:d}=re(),f=s.split(""),[l,h]=D(0),p=R(null);return rg(p,g=>{g.target instanceof HTMLInputElement&&h(g.target.scrollLeft)}),u("div",{class:"mb-2 flex flex-col gap-2",children:[u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(oe,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:Nt("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!c,"text-copy-accent-icon":c})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:p,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:yn({hasValue:c,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:o,onChange:g=>{const v=g.currentTarget.value.trim();i(v)},onKeyDown:g=>{if(g.key==="Enter"){const v=g.currentTarget.value.trim();if(r){g.preventDefault(),a(),t(v),r(v);return}if(v.length<=Na)return;g.preventDefault(),a(),t(v)}}}),u("div",{"data-synced":c,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:s.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-l}px)`},children:f.map((g,v)=>u("span",{style:{animationDelay:`${v*300/f.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:g===" "?" ":g},s+v))}):n!=null&&n.suggestions?u(ng,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:ge({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{i("")},children:u(oe,{name:"x"})})]}),u("p",{class:"font-family-default font-style-default text-style-job-card-info text-copy-neutral-lowcontrast text-balance",children:d("ai_disclaimer")})]})},nr=Se({base:"fr flex min-h-8 min-w-0 items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),il="bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]",ig=({value:e,onValueChange:t})=>{const{t:n}=re();return u("div",{class:il,children:[u("button",{type:"button","aria-pressed":e==="list",class:nr({active:e==="list"}),onClick:()=>t("list"),children:[u(oe,{name:"list",class:"size-5 shrink-0"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:nr({active:e==="map"}),onClick:()=>t("map"),children:[u(oe,{name:"map",class:"size-5 shrink-0"}),u("span",{children:n("map")})]})]})},ag=({state:e,onValueChange:t})=>{var o;const{t:n}=re(),r=e.query.trim()?"sort_most_relevant":((o=e.geo)==null?void 0:o.type)==="provided"&&e.geo.coords?"sort_closest":void 0;return r?u("div",{role:"group","aria-label":n("sort_by"),class:il,children:[u("button",{type:"button","aria-pressed":!e.resultOrder,class:nr({active:!e.resultOrder}),onClick:()=>t(void 0),children:n(r)}),u("button",{type:"button","aria-pressed":e.resultOrder==="newest",class:nr({active:e.resultOrder==="newest"}),onClick:()=>t("newest"),children:n("sort_newest")})]}):null};var sg=Array.isArray,si=sg,cg=si,lg=gr,ug=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dg=/^\w*$/;function fg(e,t){if(cg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||lg(e)?!0:dg.test(e)||!ug.test(e)||t!=null&&e in Object(t)}var pg=fg,hg=Zc,vg=hr,gg="[object AsyncFunction]",mg="[object Function]",_g="[object GeneratorFunction]",yg="[object Proxy]";function bg(e){if(!vg(e))return!1;var t=hg(e);return t==mg||t==_g||t==gg||t==yg}var wg=bg,xg=vr,$g=xg["__core-js_shared__"],Sg=$g,Gr=Sg,ja=(function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Cg(e){return!!ja&&ja in e}var Eg=Cg,Og=Function.prototype,kg=Og.toString;function Ag(e){if(e!=null){try{return kg.call(e)}catch{}try{return e+""}catch{}}return""}var Tg=Ag,Pg=wg,Rg=Eg,Dg=hr,Lg=Tg,Ig=/[\\^$.*+?()[\]{}|]/g,Mg=/^\[object .+?Constructor\]$/,Ng=Function.prototype,jg=Object.prototype,Fg=Ng.toString,Vg=jg.hasOwnProperty,Hg=RegExp("^"+Fg.call(Vg).replace(Ig,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ug(e){if(!Dg(e)||Rg(e))return!1;var t=Pg(e)?Hg:Mg;return t.test(Lg(e))}var Wg=Ug;function zg(e,t){return e==null?void 0:e[t]}var qg=zg,Bg=Wg,Kg=qg;function Gg(e,t){var n=Kg(e,t);return Bg(n)?n:void 0}var al=Gg,Jg=al,Yg=Jg(Object,"create"),mr=Yg,Fa=mr;function Zg(){this.__data__=Fa?Fa(null):{},this.size=0}var Xg=Zg;function Qg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var em=Qg,tm=mr,nm="__lodash_hash_undefined__",rm=Object.prototype,om=rm.hasOwnProperty;function im(e){var t=this.__data__;if(tm){var n=t[e];return n===nm?void 0:n}return om.call(t,e)?t[e]:void 0}var am=im,sm=mr,cm=Object.prototype,lm=cm.hasOwnProperty;function um(e){var t=this.__data__;return sm?t[e]!==void 0:lm.call(t,e)}var dm=um,fm=mr,pm="__lodash_hash_undefined__";function hm(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fm&&t===void 0?pm:t,this}var vm=hm,gm=Xg,mm=em,_m=am,ym=dm,bm=vm;function Jt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jt.prototype.clear=gm;Jt.prototype.delete=mm;Jt.prototype.get=_m;Jt.prototype.has=ym;Jt.prototype.set=bm;var wm=Jt;function xm(){this.__data__=[],this.size=0}var $m=xm;function Sm(e,t){return e===t||e!==e&&t!==t}var Cm=Sm,Em=Cm;function Om(e,t){for(var n=e.length;n--;)if(Em(e[n][0],t))return n;return-1}var _r=Om,km=_r,Am=Array.prototype,Tm=Am.splice;function Pm(e){var t=this.__data__,n=km(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tm.call(t,n,1),--this.size,!0}var Rm=Pm,Dm=_r;function Lm(e){var t=this.__data__,n=Dm(t,e);return n<0?void 0:t[n][1]}var Im=Lm,Mm=_r;function Nm(e){return Mm(this.__data__,e)>-1}var jm=Nm,Fm=_r;function Vm(e,t){var n=this.__data__,r=Fm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Hm=Vm,Um=$m,Wm=Rm,zm=Im,qm=jm,Bm=Hm;function Yt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=Um;Yt.prototype.delete=Wm;Yt.prototype.get=zm;Yt.prototype.has=qm;Yt.prototype.set=Bm;var Km=Yt,Gm=al,Jm=vr,Ym=Gm(Jm,"Map"),Zm=Ym,Va=wm,Xm=Km,Qm=Zm;function e_(){this.size=0,this.__data__={hash:new Va,map:new(Qm||Xm),string:new Va}}var t_=e_;function n_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var r_=n_,o_=r_;function i_(e,t){var n=e.__data__;return o_(t)?n[typeof t=="string"?"string":"hash"]:n.map}var yr=i_,a_=yr;function s_(e){var t=a_(this,e).delete(e);return this.size-=t?1:0,t}var c_=s_,l_=yr;function u_(e){return l_(this,e).get(e)}var d_=u_,f_=yr;function p_(e){return f_(this,e).has(e)}var h_=p_,v_=yr;function g_(e,t){var n=v_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var m_=g_,__=t_,y_=c_,b_=d_,w_=h_,x_=m_;function Zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zt.prototype.clear=__;Zt.prototype.delete=y_;Zt.prototype.get=b_;Zt.prototype.has=w_;Zt.prototype.set=x_;var $_=Zt,sl=$_,S_="Expected a function";function ci(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(S_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ci.Cache||sl),n}ci.Cache=sl;var C_=ci,E_=C_,O_=500;function k_(e){var t=E_(e,function(r){return n.size===O_&&n.clear(),r}),n=t.cache;return t}var A_=k_,T_=A_,P_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R_=/\\(\\)?/g,D_=T_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(P_,function(n,r,o,i){t.push(o?i.replace(R_,"$1"):r||n)}),t}),L_=D_;function I_(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var M_=I_,Ha=ai,N_=M_,j_=si,F_=gr,Ua=Ha?Ha.prototype:void 0,Wa=Ua?Ua.toString:void 0;function cl(e){if(typeof e=="string")return e;if(j_(e))return N_(e,cl)+"";if(F_(e))return Wa?Wa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var V_=cl,H_=V_;function U_(e){return e==null?"":H_(e)}var W_=U_,z_=si,q_=pg,B_=L_,K_=W_;function G_(e,t){return z_(e)?e:q_(e,t)?[e]:B_(K_(e))}var J_=G_,Y_=gr;function Z_(e){if(typeof e=="string"||Y_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var X_=Z_,Q_=J_,ey=X_;function ty(e,t){t=Q_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ey(t[n++])];return n&&n==r?e:void 0}var ny=ty,ry=ny;function oy(e,t,n){var r=e==null?void 0:ry(e,t);return r===void 0?n:r}var iy=oy;const ll=Bo(iy),Un=new Map,ln=new Set,ko="isdk-saved-jobs-change",rr=e=>`${Hl}:${e}`,ul=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>0;function Wt(e){if(typeof window>"u")return[];if(ln.has(e))return[...Un.get(e)??[]];let t;try{t=window.localStorage.getItem(rr(e))}catch{return ln.add(e),[...Un.get(e)??[]]}let n;try{n=t===null?[]:JSON.parse(t)}catch{n=[]}const r=Array.isArray(n)?[...new Set(n.filter(ul))]:[];return Un.set(e,r),[...r]}function ay(e,t){return Wt(e).includes(t)}function sy(e,t){if(Un.set(e,t),!ln.has(e))try{t.length?window.localStorage.setItem(rr(e),JSON.stringify(t)):window.localStorage.removeItem(rr(e))}catch{ln.add(e)}window.dispatchEvent(new CustomEvent(ko,{detail:e}))}function dl(e,t){if(!ul(t))throw new TypeError("Job id must be a positive safe integer");if(typeof window>"u")return!1;const n=Wt(e),r=!n.includes(t);return sy(e,r?[...n,t]:n.filter(o=>o!==t)),r}function li(e,t){if(typeof window>"u")return()=>{};const n=o=>{o instanceof CustomEvent&&o.detail===e&&t(Wt(e))},r=o=>{if(!ln.has(e)){try{if(o.storageArea&&o.storageArea!==window.localStorage)return}catch{return}(o.key===null||o.key===rr(e))&&t(Wt(e))}};return window.addEventListener(ko,n),window.addEventListener("storage",r),()=>{window.removeEventListener(ko,n),window.removeEventListener("storage",r)}}function cy(e){const t=new URL(e);return t.searchParams.set("saved",""),t.href}const bn=Ye(void 0);function ui(e){const[t,n]=D();return se(()=>{const r=li(e,n);return n(Wt(e)),r},[e]),t}function ly({buttonRef:e,onClick:t}){const n=me(bn);if(!n)throw new Error("Saved jobs context is required");const r=ui(n.scope),{t:o}=re(),i=(r==null?void 0:r.length)??0;return u("button",{ref:e,type:"button",class:ge({variant:"neutral",size:"lg",class:"ring-neutral-7 focus-visible:outline-highest ring-px self-start focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}),onClick:t,children:i?o("view_saved_jobs_count",{count:i}):o("view_saved_jobs")})}function fl({id:e,title:t,unavailable:n=!1}){const r=me(bn);if(!r)throw new Error("Saved jobs context is required");const o=ui(r.scope),{t:i}=re(),a=(o==null?void 0:o.includes(e))??!1;return u("button",{type:"button","data-save-job":e,"aria-pressed":a,"aria-label":n?i("remove_unavailable_saved_job",{id:e}):i(a?"remove_saved_job":"save_job",{title:t}),class:ge({variant:n?"accent":a?"primary":"neutral",position:n?"relative":"absolute",size:n?"sm":"unsized",class:`${n?"shrink-0 underline underline-offset-4":`rounded-interactive right-4 top-4 p-2 transition-transform ${a?"":"bg-job-card-bg ring-job-card-stroke ring-px"}`} focus-visible:outline-highest focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2`}),onClick:s=>{s.preventDefault(),s.stopPropagation();const c=dl(r.scope,e);r.analytics.log({event:"SAVE_JOB",properties:{job_id:e,saved:c}})},children:n?i("remove"):u(oe,{"aria-hidden":!0,name:a?"bookmark-filled":"bookmark"})})}const nn=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),pl=Se({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),hl=Se({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Ln=({job:e,property:t})=>{if(!t)return null;const n=ll(e.raw,t.key);return t.transform?t.transform(n):n},uy=({job:e,config:t="hidden"})=>t==="hidden"?null:u("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:t.replace(":","/")},children:e.company.logo?u("img",{src:e.company.logo,alt:e.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),Jr=e=>Array.isArray(e)?e:[e],lt="[+-]?(?:\\d*\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?",rn=`${lt}%`,Je=`${lt}%?`,di=`(?:\\s*\\/\\s*${Je})?`,vl=`(?:\\s*,\\s*${Je})?`,dy=`${Je}\\s+${Je}\\s+${Je}${di}`,fy=`(?:${lt}\\s*,\\s*${lt}\\s*,\\s*${lt}|${rn}\\s*,\\s*${rn}\\s*,\\s*${rn})${vl}`,py=`${lt}\\s+${Je}\\s+${Je}${di}`,hy=`${lt}\\s*,\\s*${rn}\\s*,\\s*${rn}${vl}`,vy=`${Je}\\s+${Je}\\s+${lt}${di}`,gy=new RegExp(`^(?:#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})|var\\(--[a-z0-9-]+\\)|(?:rgb|rgba)\\(\\s*(?:${dy}|${fy})\\s*\\)|(?:hsl|hsla)\\(\\s*(?:${py}|${hy})\\s*\\)|oklch\\(\\s*${vy}\\s*\\))$`),my=1e3*60*60*24,fi=({job:e,config:t,onJobClick:n,size:r,distanceUnit:o})=>{var $,x,C,S,E,A;const{t:i,locale:a}=re(),s=me(bn),c=e.distanceMeters===null?null:i("distance_away",{distance:Ah(e.distanceMeters,o??"miles",a)}),d=Ln({job:e,property:t.eyebrow}),f=($=t.accent)==null?void 0:$.rules.find(I=>Jr(ll(e.raw,I.key)).includes(I.value)),l=f&&gy.test(f.color)?f:void 0,h=t.subheading?Ln({job:e,property:t.subheading}):null,p=t.infoTags.flatMap(I=>Jr(Ln({job:e,property:I}))).filter(Boolean),g=Jr((x=t.overrides)!=null&&x.salary?Ln({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),v=t.postedDate??"show",y=(C=t.overrides)!=null&&C.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,m=t.newUnderDays??7,_=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-m*my:!1,b=I=>{var P,M;n==null||n(e),(M=(P=t.overrides)==null?void 0:P.onClick)==null||M.call(P,I)},w=u("a",{onMouseEnter:(S=t.overrides)==null?void 0:S.onMouseEnter,onClick:b,href:y,"data-accent":l==null?void 0:l.value,style:l?{"--ijs-card-accent":l.color}:void 0,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:pl({class:s?"pr-20":void 0}),children:[l&&u("span",{"aria-hidden":"true",class:"pointer-events-none absolute inset-0 overflow-hidden [border-radius:inherit]",children:u("span",{"data-accent-style":((E=t.accent)==null?void 0:E.style)??"band",class:((A=t.accent)==null?void 0:A.style)==="edge"?"absolute inset-y-0 left-0 w-[4px]":"absolute inset-x-0 top-0 h-[4px]",style:{backgroundColor:"var(--ijs-card-accent)"}})}),u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(uy,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:"flex flex-col items-start gap-1",children:[u("div",{class:"order-2 flex flex-col gap-1",children:[e.match?u("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[u(oe,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,d?u("p",{class:"text-style-job-card-info text-copy-job-info",children:d}):null,u("p",{class:hl({size:r}),children:[e.title.trim(),_&&v!=="hide"&&u(V,{children:[" ",u("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:i("new")})]})]}),h?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:h}):null]}),v==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[i("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[c?u("p",{class:"text-style-job-card-info text-copy-job-info flex items-center gap-1",children:[u(oe,{name:"target-location",class:"size-4 flex-none","aria-hidden":!0}),c]}):null,u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:g.map((I,P)=>u("span",{class:Lt({variant:"monetaryWeak",size:"xs"}),children:I},P))}),p.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:p.map(I=>u("li",{class:Lt({size:"xs",class:"max-w-full truncate"}),children:I},I))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(oe,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(oe,{name:"chevron-right",class:"text-copy-neutral-icon"})})]});return s?u("div",{class:"relative",children:[w,u(fl,{id:e.id,title:e.title})]}):w},pi=({config:e,animationDelay:t,seed:n})=>{const r=e.logo??"hidden",o=e.postedDate??"show";return u("div",{"aria-hidden":!0,style:{animationDelay:t+"s"},class:pl({interactive:!1}),children:[u("div",{class:"flex flex-1 flex-col gap-4",children:[u("div",{class:"flex items-center gap-4",children:[r==="hidden"?null:u("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:r.replace(":","/")}}),u("div",{class:"flex flex-col items-start gap-1",children:[o==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info",children:u(nn,{chars:12})}):null,u("div",{class:"flex flex-col gap-1",children:[u("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:u(nn,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(nn,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:Lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:Lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:Lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(oe,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},_y=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=re(),i=Math.min(_t,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:_t}).map((a,s)=>u("li",{children:u(pi,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:ge({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:t,children:[o("load_more_count",{count:i})," ",o("of_remaining_count",{count:r})]})},yy=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c,prioritySegment:d,i18n:f,distanceUnit:l})=>{const{t:h}=re(),p=R(),[g,v]=D();return u(V,{children:[u("p",{class:"sr-only",role:"status",children:g===void 0?"":g===0?h("no_jobs_found"):h("jobs_found",{count:g})}),Array.from({length:e.page}).map((y,m)=>{const _=m===e.page-1;return u(on,{Fallback:et,children:u(by,{state:e,rpcClient:t,page:m+1,isFirst:m===0,isLast:_,fetchNextPage:()=>{p.current=e.page+1,a(e.page+1)},focusPage:p,jobCardConfig:n,initialData:r,onResultsUpdate:b=>{v(b.totalCount),o==null||o(b)},onJobClick:i,mode:s,afterResults:c,prioritySegment:d,i18n:f,distanceUnit:l},m)},m)})]})},za=({page:e})=>{const{t}=re();return u("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},by=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,focusPage:a,jobCardConfig:s,initialData:c,onResultsUpdate:d,onJobClick:f,afterResults:l,prioritySegment:h,i18n:p,distanceUnit:g})=>{const{t:v}=re(),y=n===1?c:void 0,{data:m,error:_,queryState:b,swr:w}=pn(Ft(Zn({state:e,baseKey:n.toString()}),()=>ms({rpcClient:t,state:e,page:n,t:v,prioritySegment:h,locale:p?p.locale:void 0,fallbackLocale:p?p.fallbackLocale:void 0}),{...Gn,fallbackData:y}));j(()=>{m&&r&&d({totalCount:m.pagination.total})},[m,r,d]);const $=R(null);switch(j(()=>{var x,C;!m||a.current!==n||(a.current=void 0,(!document.activeElement||document.activeElement===document.body)&&((C=(x=$.current)==null?void 0:x.querySelector("a"))==null||C.focus({preventScroll:!0})))},[m,a,n]),b){case"idle":return null;case"loading":return u(V,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:u(nn,{chars:8})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:l})]}):u(za,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:_t}).map((x,C)=>u("li",{children:u(pi,{seed:C,animationDelay:(C-_t)*.1,config:s})},C))})]});case"error":return u(et,{error:new Error(v("jobs_loading_error"),{cause:_}),resetError:()=>w.mutate()});case"revalidating":case"loaded":{if(qa(m.pagination.current_page===n,"Received wrong page from server"),m.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(oe,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:v("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:v("no_jobs_found_description")})]})]});const x=m.pagination.last_page!==m.pagination.current_page,C=n*_t,S=Math.max(m.pagination.total-C,0),E=A=>{f(A,n)};return u(V,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:v("jobs_found",{count:m.pagination.total})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:l})]}):u(za,{page:n}),u("ul",{ref:$,"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:m.results.map(A=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:b==="revalidating"?.33:1},children:u(fi,{job:A,onJobClick:E,config:s,distanceUnit:g})},A.id))}),x&&o&&u(_y,{state:b,fetchNextPage:i,config:s,remainingItems:S})]})}default:At(b)}},wy=zo(()=>Promise.resolve().then(()=>require("./map-sXHS6vhg.cjs")).then(e=>e.Map)),xy=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:c,distanceUnit:d})=>{var m,_;const{t:f}=re(),[l,h]=D(new AbortController),p=Xs("(max-width: 767px)"),g=H(b=>{r(b),l.abort(),h(new AbortController)},[r,l]),v=pn(Ft(Zn({state:e,baseKey:"map",mode:e.mode}),()=>Jl({rpcClient:t,state:e,t:f,signal:l.signal,prioritySegment:s,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Gn));if(v.queryState==="error")return u(et,{error:new Error(f("jobs_loading_error"),{cause:v.error}),resetError:()=>v.swr.mutate()});const y=v.queryState==="loaded"||v.queryState==="revalidating";return u(V,{children:[u("div",{class:"flex items-center justify-between gap-3",children:[u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:y?v.data.results.length!==0&&f("map_jobs_showing",{count:v.data.results.length}):u("div",{class:"animate-skeleton",children:u(nn,{chars:8})})}),u("div",{class:"flex min-w-0 flex-1 justify-end",children:o})]}),u("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[u("div",{class:"aspect-square flex-1 md:order-2 md:aspect-auto md:min-w-80",children:y?u(Tt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(wy,{config:n,mapData:v,autoFit:((m=e.geo)==null?void 0:m.type)!=="bounds",onBoundsChange:g})}):u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),u("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((_=v.data)==null?void 0:_.results.length)===0?u("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[u(oe,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:f("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:f("no_jobs_found_description")})]})]}):null,y?v.data.results.map(b=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:v.queryState==="revalidating"?.33:1},children:u(fi,{job:b,onJobClick:w=>i(w,1),config:a,size:p?"sm":void 0,distanceUnit:d})},b.id)):Array.from({length:6}).map((b,w)=>u("li",{children:u(pi,{seed:w,animationDelay:(w-6)*.1,config:a})},w))]})]})]})},$y=e=>{var r;const t=e.state.view,n=u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center justify-end gap-3",children:[(r=e.mapConfig)!=null&&r.enabled?u(ig,{value:t,onValueChange:e.onViewChange}):null,u(ag,{state:e.state,onValueChange:e.onResultOrderChange})]});return t==="list"?u(yy,{afterResults:n,...e}):u(xy,{...e,afterResults:n})};function Sy({rpcClient:e,filters:t,config:n,distanceUnit:r,onJobClick:o,onSearch:i}){const a=me(bn);if(!a)throw new Error("Saved jobs context is required");const{scope:s}=a,c=ui(s),{t:d,locale:f}=re(),[l,h]=D(null),[p,g]=D(),[v,y]=D(0),m=R(null),_=R(),b=R(!1);se(()=>{(l==null?void 0:l.filters)===t&&l.ids.some(S=>c==null?void 0:c.includes(S))?b.current=!0:(c==null?void 0:c.length)===0&&b.current&&i()},[c,l,t,i]),j(()=>{if(!c)return;const S=new AbortController,E=li(s,()=>S.abort());return g(void 0),Yl({rpcClient:e,ids:c,filters:t,t:d,locale:f,signal:S.signal}).then(A=>{S.signal.aborted||h({jobs:A,ids:c,filters:t})}).catch(A=>{S.signal.aborted||g(A)}),()=>{E(),S.abort()}},[e,s,c,t,d,f,v]);const w=(l==null?void 0:l.filters)===t?l.jobs.filter(S=>c==null?void 0:c.includes(S.id)):void 0,$=b.current&&(c==null?void 0:c.length)===0||c===void 0||l===null||l.filters!==t||c.some(S=>!l.ids.includes(S)),x=!p&&!$?c.filter(S=>!(w!=null&&w.some(E=>E.id===S))):[],C=[...(w==null?void 0:w.map(S=>S.id))??[],...x];return se(()=>{var E,A,I;if(_.current===void 0)return;(I=(_.current==="heading"?null:(E=m.current)==null?void 0:E.querySelector(`[data-save-job="${_.current}"]`))??((A=m.current)==null?void 0:A.querySelector("h2")))==null||I.focus(),_.current=void 0},[c,l]),u("div",{ref:m,class:"flex flex-col gap-4",onClickCapture:S=>{if(!(S.target instanceof Element))return;const E=S.target.closest("button[data-save-job]");if(!E||E.getAttribute("aria-pressed")!=="true")return;const A=C.indexOf(Number(E.dataset.saveJob));_.current=C[A+1]??C[A-1]??"heading"},children:[u("h2",{tabIndex:-1,class:"text-style-job-heading text-copy-neutral",children:!$&&c.length===0?d("no_saved_jobs"):d("saved_jobs_title")}),u("p",{role:"status",class:"sr-only",children:$||p?"":d("jobs_found",{count:c.length})}),p?u(et,{error:new Error(d("jobs_loading_error"),{cause:p}),resetError:()=>y(v+1)}):$&&!(w!=null&&w.length)?u("p",{class:"text-copy-neutral",children:d("loading_jobs")}):C.length?u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:[w==null?void 0:w.map(S=>u("li",{children:u(fi,{job:S,config:n,distanceUnit:r,onJobClick:E=>o(E,1)})},S.id)),x.map(S=>u("li",{class:"rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex items-center justify-between gap-4 p-4",children:[u("p",{class:hl(),children:d("saved_job_unavailable")}),u(fl,{id:S,title:d("saved_job_unavailable"),unavailable:!0})]},S))]}):null,u("button",{type:"button",class:ge({variant:"primary",size:"lg",class:"focus-visible:outline-highest self-start focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}),onClick:i,children:d("search_jobs")})]})}const or=(e,t="value")=>e.reduce((n,r)=>{switch(r.select){case"one":{const o=r.value??r[t],i=typeof o=="string"?o:o==null?void 0:o[0];n[r.key]={select:r.select,value:i};break}case"many":{const o=r.value??r[t],i=typeof o=="string"?[o]:Array.isArray(o)?o:[];n[r.key]={select:r.select,value:i};break}default:At(r.select)}return n},{}),Wn=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=n==null?void 0:n.value;return[t,Array.isArray(r)?r:r?[r]:[]]}).filter(([,t])=>t!==void 0&&t.length>0)),Yr=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Cy=(e,t,n)=>{var o;const r=Wn(e.filters);return n&&(r._locale=n),((o=e.geo)==null?void 0:o.type)==="provided"&&e.geo.coords&&(r.geolocation={type:"provided",lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius,unit:t,...e.geo.label?{label:e.geo.label}:{}}),r},Ey=({rpcClient:e,properties:t,analytics:n,initialData:r,onStateChange:o,params:i})=>{var He,Ce,ue,fe,Pe,Ue,st,wt,xt,Re,vt,We,W,Y,Z,X,ce;const{t:a}=re(),s=R(null),c=J(()=>or(t,"defaultValue"),[t]),[d,f]=D(!0),[l,h]=D(()=>typeof i.initialState=="function"?i.initialState(i):i.initialState),p=i.applyFiltersOn==="submit",[g,v]=D(l),y=p?g:l,m=p?"form":"div",[_,b]=D(0),[w,$]=D((He=i.savedJobs)!=null&&He.enabled?void 0:!1),x=H(T=>{const O=new URL(window.location.href);T?O.searchParams.set("saved",""):O.searchParams.delete("saved"),window.history.replaceState(window.history.state,"",O),$(T)},[]);se(()=>{var O;if(!((O=i.savedJobs)!=null&&O.enabled))return;const T=()=>$(new URLSearchParams(window.location.search).has("saved"));return T(),window.addEventListener("popstate",T),()=>window.removeEventListener("popstate",T)},[(Ce=i.savedJobs)==null?void 0:Ce.enabled]);const C=H(()=>{var T;(T=i.savedJobs)!=null&&T.enabled&&x(!1)},[(ue=i.savedJobs)==null?void 0:ue.enabled,x]),S=R(null),E=R(),A=H(()=>{E.current="toggle",C()},[C]);se(()=>{var T,O,F;w===!0&&E.current==="heading"?((O=(T=s.current)==null?void 0:T.querySelector("h2"))==null||O.focus(),E.current=void 0):w===!1&&E.current==="toggle"&&((F=S.current??s.current)==null||F.focus(),E.current=void 0)},[w]);const[I,P]=D(0),{onJobClick:M,analyticsPaginate:L}=Oy({appRef:s,analytics:n,state:l,hasInteracted:!d,totalCount:I,defaultFilters:c}),z=H(T=>{h(O=>{if(O.page===T)return O;const F={...O,page:T};return o==null||o(F),F}),L(T)},[L,o]),B=H(T=>{h(O=>{const F={...O,view:T};return o==null||o(F),F})},[o]),N=H(T=>{if(p){v(T);return}h(O=>{const F=T(O);return F===O?O:(C(),f(!1),o==null||o(F),F)})},[p,C,o]),K=H(T=>{N(O=>{var F;return O.query===T?O:{...O,query:T,geo:Yr(O.geo),page:1,mode:(F=i.naturalLanguageSearch)!=null&&F.enabled?"vector":"query"}})},[N,(fe=i.naturalLanguageSearch)==null?void 0:fe.enabled]),q=(T=g.query)=>{var F;const O={...g,view:l.view,resultOrder:l.resultOrder,query:T,geo:T===g.query?g.geo:Yr(g.geo),page:1,mode:(F=i.naturalLanguageSearch)!=null&&F.enabled?"vector":"query"};C(),f(!1),v(O),h(O),o==null||o(O)},le=H(T=>{v(O=>({...O,geo:T})),f(!1),h(O=>{const F={...O,geo:T,page:1};return o==null||o(F),F})},[o]),at=H(()=>{C(),p&&b(T=>T+1),f(!1),h(T=>{const O={...T,filters:or(t,"defaultValue"),query:"",geo:void 0,page:1,resultOrder:void 0};return v(O),o==null||o(O),O})},[o,t,C,p]),Te=H(T=>{h(O=>{if(O.resultOrder===T)return O;f(!1);const F={...O,resultOrder:T,page:1};return o==null||o(F),F})},[o]),_e=J(()=>(e.environment,new Map),[e.environment]);return u(td,{value:{provider:()=>_e},children:u("div",{ref:s,tabIndex:(Pe=i.savedJobs)!=null&&Pe.enabled?-1:void 0,class:Nt("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(Ue=i.theme.accessibility)==null?void 0:Ue.reducedMotion},go(i.theme)),children:[u(on,{Fallback:et,children:u(m,{class:"flex flex-col gap-2",onSubmit:p?T=>{T.preventDefault();const O=T.currentTarget.querySelector('input[name="keyword"]');q(O==null?void 0:O.value.trim())}:void 0,children:[u("div",{class:"px-4",children:u("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:a("search_label")}),(st=i.naturalLanguageSearch)!=null&&st.enabled?u(og,{value:y.query,onValueChange:K,options:i.naturalLanguageSearch,onSearch:p?q:(wt=i.savedJobs)!=null&&wt.enabled?C:void 0},_):i.enableKeywordSearch?u(tg,{value:y.query,onValueChange:K,onSearch:p?q:(xt=i.savedJobs)!=null&&xt.enabled?C:void 0},_):null]}),(Re=i.geolocation)!=null&&Re.enabled?u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:a("geo_label")}),u(Qv,{rpcClient:e,value:y.geo,distanceUnit:i.geolocation.distanceUnit,onValueChange:T=>{N(O=>({...O,geo:T,page:1})),p||L(1)}})]}):null]})}),u(Ch,{state:y,staged:p,onFilterValueChange:(T,O)=>{N(F=>({...F,filters:{...F.filters,[T]:O},geo:Yr(F.geo),page:1})),p||L(1)},onResetFilters:at,properties:t,rpcClient:e,alerts:i.alerts,theme:i.theme,widgetId:i.widgetId,i18n:i.i18n}),p?u("button",{type:"submit",class:ge({variant:"accent",class:"self-center"}),children:a("search")}):null]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(on,{Fallback:et,children:u(V,{children:[(vt=i.savedJobs)!=null&&vt.enabled&&i.savedJobs.showEntry!==!1&&!w?u(ly,{buttonRef:S,onClick:()=>{E.current="heading",b(T=>T+1),x(!0)}}):null,(We=i.savedJobs)!=null&&We.enabled&&w===void 0?u("p",{class:"text-copy-neutral",children:a("loading_jobs")}):(W=i.savedJobs)!=null&&W.enabled&&w?u(Sy,{rpcClient:e,filters:l.filters,config:i.jobCard,distanceUnit:(Y=i.geolocation)==null?void 0:Y.distanceUnit,onJobClick:M,onSearch:A}):u($y,{state:l,rpcClient:e,jobCardConfig:i.jobCard,mapConfig:i.map,initialData:d?r==null?void 0:r.jobs:void 0,onResultsUpdate:T=>{P(T.totalCount)},onJobClick:M,onPaginate:z,mode:(Z=i.naturalLanguageSearch)!=null&&Z.enabled?"vector":"query",onGeoChange:le,onViewChange:B,onResultOrderChange:Te,prioritySegment:(X=i.results)==null?void 0:X.prioritySegment,distanceUnit:(ce=i.geolocation)==null?void 0:ce.distanceUnit,i18n:i.i18n})]})}),i.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default font-style-default text-style-job-card-info text-copy-neutral-lowcontrast text-balance",children:a("feedback")}),u("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:u("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},Oy=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=H((d=1)=>({query:n.query,mode:n.mode,filters:Wn(n.filters),default_filters:Wn(r),total_count:o,page_size:_t,page:d}),[n.query,n.mode,n.filters,r,o]);return nd(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),j(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Wn(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(d)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(d,f)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(f)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.A=R;exports.ErrorBoundary=on;exports.IconSpritesheet=uu;exports.J=Mt;exports.JOB_SEARCH_WIDGET_ID=Ul;exports.JobSearch=Ey;exports.K=Do;exports.SavedJobsContext=bn;exports.TranslationProvider=ru;exports.UnstyledErrorView=cu;exports._=k;exports.alertsPayload=Cy;exports.createTFunction=ou;exports.d=D;exports.defaultTerms=iu;exports.generateColorThemeCss=dd;exports.getDefaultExportFromCjs=Bo;exports.getGeolocationFromSearchParams=tl;exports.getJobSearchResults=ms;exports.getModeFromSearchParams=Qc;exports.getSavedJobIds=Wt;exports.getSavedJobsUrl=cy;exports.getStatefulPropertiesFromSearchParams=Xc;exports.getViewFromSearchParams=el;exports.getWidgetStateFromSearchParams=kv;exports.invariant=qa;exports.isJobSaved=ay;exports.k=V;exports.setWidgetStateToSearchParams=Av;exports.subscribeSavedJobs=li;exports.toggleSavedJob=dl;exports.u=u;exports.useDebouncedValue=nl;exports.useTranslation=re;exports.y=j;
|