@inploi/plugin-job-search 8.1.3 → 8.2.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/cdn/index.js +37 -37
- package/cdn/style.css +1 -1
- package/dist/components/job-search.d.ts +2 -0
- package/dist/components/result-order.d.ts +6 -0
- package/dist/components/results.d.ts +1 -0
- package/dist/components/view-switch.d.ts +58 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/job-search.api.test.d.ts +1 -0
- package/dist/lib/cache-key.d.ts +1 -0
- package/dist/lib/i18n.d.ts +28 -0
- package/dist/{map-46694990.cjs → map-5b358f66.cjs} +1 -1
- package/dist/{map-34de18ee.js → map-e6c052ec.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{utils-374158b9.js → utils-65ec6e7e.js} +2048 -1995
- package/dist/utils-864c9c53.cjs +60 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/utils-f0f082b5.cjs +0 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-job-search.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"vite": "^4.5.3",
|
|
67
67
|
"vite-plugin-dts": "^3.9.1",
|
|
68
68
|
"vite-tsconfig-paths": "^4.3.2",
|
|
69
|
-
"@inploi/core": "1.19.0",
|
|
70
69
|
"@inploi/design-tokens": "0.2.1",
|
|
71
70
|
"@inploi/i18n": "0.1.5",
|
|
71
|
+
"@inploi/core": "1.21.0",
|
|
72
72
|
"eslint-config-custom": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"msw": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"mapbox-gl": "^3.12.0",
|
|
81
|
-
"@inploi/sdk": "2.3.
|
|
81
|
+
"@inploi/sdk": "2.3.2"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"dev": "vite",
|
package/dist/utils-f0f082b5.cjs
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";var qc=Object.defineProperty;var Kc=(e,t,n)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qo=(e,t,n)=>(Kc(e,typeof t!="symbol"?t+"":t,n),n);const ut=require("@inploi/sdk");var $t=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function ka(e,t){if(!e)throw new Error(t)}function Gc(e,t){return e in t}var ei={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},Yc=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 ei?ei[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")},Zc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Xc=({from:e=new Date,to:t,formatter:n=Zc,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")},nn;exports.l=void 0;var Aa,st,ti,Pa,Ra,Da,mo,Vr,Hr,Ma,Mn={},Ln=[],Jc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rn=Array.isArray;function Oe(e,t){for(var n in t)e[n]=t[n];return e}function _o(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O(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?nn.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 Gt(e,a,r,o,null)}function Gt(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??++Aa,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function La(){return{current:null}}function F(e){return e.children}function he(e,t){this.props=e,this.context=t}function kt(e,t){if(t==null)return e.__?kt(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"?kt(e):null}function Qc(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Oe({},t);i.__v=t.__v+1,exports.l.vnode&&exports.l.vnode(i),yo(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??kt(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Fa(r,i,o),t.__e=t.__=null,i.__e!=n&&Na(i)}}function Na(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}),Na(e)}function Wr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Nn.__r++||ti!=exports.l.debounceRendering)&&((ti=exports.l.debounceRendering)||Pa)(Nn)}function Nn(){for(var e,t=1;st.length;)st.length>t&&st.sort(Ra),e=st.shift(),t=st.length,Qc(e);Nn.__r=0}function Ia(e,t,n,r,o,i,a,s,l,d,p){var c,h,f,g,v,_,y,m=r&&r.__k||Ln,w=t.length;for(l=el(n,t,m,l,w),c=0;c<w;c++)(f=n.__k[c])!=null&&(h=f.__i!=-1&&m[f.__i]||Mn,f.__i=c,_=yo(e,f,h,o,i,a,s,l,d,p),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&bo(h.ref,null,f),p.push(f.ref,f.__c||g,f)),v==null&&g!=null&&(v=g),(y=!!(4&f.__u))||h.__k===f.__k?l=ja(f,l,e,y):typeof f.type=="function"&&_!==void 0?l=_:g&&(l=g.nextSibling),f.__u&=-7);return n.__e=v,l}function el(e,t,n,r,o){var i,a,s,l,d,p=n.length,c=p,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]=Gt(null,a,null,null,null):rn(a)?a=e.__k[i]=Gt(F,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=Gt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+h,a.__=e,a.__b=e.__b+1,s=null,(d=a.__i=tl(a,n,l,c))!=-1&&(c--,(s=n[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(o>p?h--:o<p&&h++),typeof a.type!="function"&&(a.__u|=4)):d!=l&&(d==l-1?h--:d==l+1?h++:(d>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=kt(s)),Ha(s,s));return r}function ja(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=ja(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=kt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function je(e,t){return t=t||[],e==null||typeof e=="boolean"||(rn(e)?e.some(function(n){je(n,t)}):t.push(e)),t}function tl(e,t,n,r){var o,i,a,s=e.key,l=e.type,d=t[n],p=d!=null&&(2&d.__u)==0;if(d===null&&s==null||p&&s==d.key&&l==d.type)return n;if(r>(p?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)&&s==d.key&&l==d.type)return a}return-1}function ni(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Jc.test(t)?n:n+"px"}function hn(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||ni(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ni(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Da,"$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=mo,e.addEventListener(t,i?Hr:Vr,i)):e.removeEventListener(t,i?Hr:Vr,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 ri(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=mo++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function yo(e,t,n,r,o,i,a,s,l,d){var p,c,h,f,g,v,_,y,m,w,b,x,$,C,S,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(p=exports.l.__b)&&p(t);e:if(typeof E=="function")try{if(y=t.props,m="prototype"in E&&E.prototype.render,w=(p=E.contextType)&&r[p.__c],b=p?w?w.props.value:p.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:(m?t.__c=c=new E(y,b):(t.__c=c=new he(y,b),c.constructor=E,c.render=rl),w&&w.sub(c),c.state||(c.state={}),c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),m&&c.__s==null&&(c.__s=c.state),m&&E.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Oe({},c.__s)),Oe(c.__s,E.getDerivedStateFromProps(y,c.__s))),f=c.props,g=c.state,c.__v=t,h)m&&E.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),m&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(m&&E.getDerivedStateFromProps==null&&y!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,b),t.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,b)===!1){t.__v!=n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Ln.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,b),m&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,g,v)})}if(c.context=b,c.props=y,c.__P=e,c.__e=!1,x=exports.l.__r,$=0,m)c.state=c.__s,c.__d=!1,x&&x(t),p=c.render(c.props,c.state,c.context),Ln.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,x&&x(t),p=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++$<25);c.state=c.__s,c.getChildContext!=null&&(r=Oe(Oe({},r),c.getChildContext())),m&&!h&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(f,g)),C=p!=null&&p.type===F&&p.key==null?Va(p.props.children):p,s=Ia(e,rn(C)?C:[C],t,n,r,o,i,a,s,l,d),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),_&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null)if(T.then){for(t.__u|=l?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--;)_o(i[S]);Ur(t)}else t.__e=n.__e,t.__k=n.__k,T.then||Ur(t);exports.l.__e(T,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=nl(n.__e,t,n,r,o,i,a,l,d);return(p=exports.l.diffed)&&p(t),128&t.__u?void 0:s}function Ur(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Ur))}function Fa(e,t,n){for(var r=0;r<n.length;r++)bo(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 Va(e){return typeof e!="object"||e==null||e.__b>0?e:rn(e)?e.map(Va):Oe({},e)}function nl(e,t,n,r,o,i,a,s,l){var d,p,c,h,f,g,v,_=n.props||Mn,y=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="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((f=i[d])&&"setAttribute"in f==!!m&&(m?f.localName==m:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(m==null)return document.createTextNode(y);e=document.createElementNS(o,m,y.is&&y),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(m==null)_===y||s&&e.data==y||(e.data=y);else{if(i=i&&nn.call(e.childNodes),!s&&i!=null)for(_={},d=0;d<e.attributes.length;d++)_[(f=e.attributes[d]).name]=f.value;for(d in _)f=_[d],d=="dangerouslySetInnerHTML"?c=f:d=="children"||d in y||d=="value"&&"defaultValue"in y||d=="checked"&&"defaultChecked"in y||hn(e,d,null,f,o);for(d in y)f=y[d],d=="children"?h=f:d=="dangerouslySetInnerHTML"?p=f:d=="value"?g=f:d=="checked"?v=f:s&&typeof f!="function"||_[d]===f||hn(e,d,f,_[d],o);if(p)s||c&&(p.__html==c.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ia(t.type=="template"?e.content:e,rn(h)?h:[h],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&kt(n,0),s,l),i!=null)for(d=i.length;d--;)_o(i[d]);s||(d="value",m=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||m=="progress"&&!g||m=="option"&&g!=_[d])&&hn(e,d,g,_[d],o),d="checked",v!=null&&v!=e[d]&&hn(e,d,v,_[d],o))}return e}function bo(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 Ha(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||bo(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]&&Ha(r[o],t,n||typeof e.type!="function");n||_o(e.__e),e.__c=e.__=e.__e=void 0}function rl(e,t,n){return this.constructor(e,n)}function At(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=[],yo(t,e=(!r&&n||t).__k=O(F,null,[e]),o||Mn,Mn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?nn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Fa(i,e,a)}function wo(e,t){At(e,t,wo)}function ol(e,t,n){var r,o,i,a,s=Oe({},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?nn.call(arguments,2):n),Gt(e.type,s,r||e.key,o||e.ref,null)}function dt(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,Wr(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"+Ma++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}nn=Ln.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}},Aa=0,he.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Oe({},this.state),typeof e=="function"&&(e=e(Oe({},n),this.props)),e&&Oe(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Wr(this))},he.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Wr(this))},he.prototype.render=F,st=[],Pa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ra=function(e,t){return e.__v.__b-t.__v.__b},Nn.__r=0,Da=/(PointerCapture)$|Capture$/i,mo=0,Vr=ri(!1),Hr=ri(!0),Ma=0;var Le;function Wa(e){return{lang:(e==null?void 0:e.lang)??(Le==null?void 0:Le.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Le==null?void 0:Le.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Le==null?void 0:Le.abortPipeEarly)}}var dr;function il(e){return dr==null?void 0:dr.get(e)}var fr;function al(e){return fr==null?void 0:fr.get(e)}var pr;function sl(e,t){var n;return(n=pr==null?void 0:pr.get(e))==null?void 0:n.get(t)}function xo(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 le(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)??xo(i),l={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",p=(o==null?void 0:o.message)??e.message??sl(e.reference,l.lang)??(d?al(l.lang):null)??r.message??il(l.lang);p!==void 0&&(l.message=typeof p=="function"?p(l):p),d&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function ae(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Wa())}}}function cl(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Ua(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}var ll=/^[+-]?(?:\d*\.)?\d+$/u;function za(e){return{kind:"validation",type:"decimal",reference:za,async:!1,expects:null,requirement:ll,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&le(this,"decimal",t,n),t}}}function Fe(e){return{kind:"transformation",type:"transform",reference:Fe,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Ba(e){return{kind:"validation",type:"url",reference:Ba,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)&&le(this,"URL",t,n),t}}}function ul(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function $o(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function zr(){return{kind:"schema",type:"any",reference:zr,expects:"any",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function on(e,t){return{kind:"schema",type:"array",reference:on,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ae(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],l=this.item["~run"]({value:s},r);if(l.issues){const d={type:"array",origin:"value",input:o,key:a,value:s};for(const p of l.issues)p.path?p.path.unshift(d):p.path=[d],(i=n.issues)==null||i.push(p);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else le(this,"type",n,r);return n}}}function In(e){return{kind:"schema",type:"boolean",reference:In,expects:"boolean",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:le(this,"type",t,n),t}}}function wt(e,t){return{kind:"schema",type:"literal",reference:wt,expects:xo(e),async:!1,literal:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:le(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 ae(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=$o(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function fe(e){return{kind:"schema",type:"number",reference:fe,expects:"number",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:le(this,"type",t,n),t}}}function pe(e,t){return{kind:"schema",type:"object",reference:pe,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ae(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 l=a in o?o[a]:$o(s),d=s["~run"]({value:l},r);if(d.issues){const p={type:"object",origin:"value",input:o,key:a,value:l};for(const c of d.issues)c.path?c.path.unshift(p):c.path=[p],(i=n.issues)==null||i.push(c);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]=ul(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(le(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 le(this,"type",n,r);return n}}}function ct(e,t){return{kind:"schema",type:"optional",reference:ct,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=$o(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function qa(e,t){return{kind:"schema",type:"picklist",reference:qa,expects:Ua(e.map(xo),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:le(this,"type",n,r),n}}}function Co(e,t,n){return{kind:"schema",type:"record",reference:Co,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ae(this)},"~run"(r,o){var a,s;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const l in i)if(cl(i,l)){const d=i[l],p=this.key["~run"]({value:l},o);if(p.issues){const h={type:"object",origin:"key",input:i,key:l,value:d};for(const f of p.issues)f.path=[h],(a=r.issues)==null||a.push(f);if(r.issues||(r.issues=p.issues),o.abortEarly){r.typed=!1;break}}const c=this.value["~run"]({value:d},o);if(c.issues){const h={type:"object",origin:"value",input:i,key:l,value:d};for(const f of c.issues)f.path?f.path.unshift(h):f.path=[h],(s=r.issues)==null||s.push(f);if(r.issues||(r.issues=c.issues),o.abortEarly){r.typed=!1;break}}(!p.typed||!c.typed)&&(r.typed=!1),p.typed&&(r.value[p.value]=c.value)}}else le(this,"type",r,o);return r}}}function Y(e){return{kind:"schema",type:"string",reference:Y,expects:"string",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:le(this,"type",t,n),t}}}function oi(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Br(e,t){return{kind:"schema",type:"union",reference:Br,expects:Ua(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){let o,i,a;for(const s of this.options){const l=s["~run"]({value:n.value},r);if(l.typed)if(l.issues)i?i.push(l):i=[l];else{o=l;break}else a?a.push(l):a=[l]}if(o)return o;if(i){if(i.length===1)return i[0];le(this,"type",n,r,{issues:oi(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];le(this,"type",n,r,{issues:oi(a)})}return n}}}function Ka(){return{kind:"schema",type:"unknown",reference:Ka,expects:"unknown",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function Ve(...e){return{...e[0],pipe:e,get"~standard"(){return ae(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 Ga(e,t,n){const r=e["~run"]({value:t},Wa(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const dl="inploi-job-search",fl=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],Ya=["LOCATION","REMOTE","HYBRID"],lt=10,ii=Ve(Ka(),Fe(String),Y()),pl=e=>Ve(Co(Y(),on(pe({label:ii,value:ii,jobs:fe()}))),Fe(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)Za(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)Xa(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),hl=Ve(Y(),Ba()),vl=pe({total:fe(),current_page:fe(),per_page:fe(),last_page:fe()}),vn=ct(ie(Y()),null),gl=pe({id:fe(),company_name:Y(),company_logo:vn,employment_type:Y(),location_type:qa(Ya),pay_type:ie(Br([wt("ANNUALLY"),wt("HOURLY"),wt("MONTHLY"),wt("WEEKLY"),wt("DAILY")])),pay_currency:Y(),pay_mask:In(),pay_display:In(),pay:ie(Y()),pay_min:ie(Y()),pay_max:ie(Y()),title:Y(),contract_type:ie(Y()),created_at:ie(Y()),custom_data:ie(Co(zr(),zr())),href:Y(),industry:ie(Y()),category:ie(Y()),skills:vn,town:vn,city:ie(Y()),country:ie(Y()),vector_distance:vn,coordinates:ct(ie(pe({lat:fe(),lng:fe()}))),distance_meters:ct(ie(Br([fe(),Ve(Y(),za(),Fe(Number))])),null),locale:ct(ie(Y()))});function Za(e){return fl.includes(e)}function Xa(e){return Ya.includes(e)}const Ja=(e,t=void 0)=>Ve(gl,Fe(n=>{const r=Ga(hl,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:Yc({salary:n,config:{locales:o},t:e})??null,title:n.title,contractType:n.contract_type,href:n.href,relativePostedDate:n.created_at?Xc({to:new Date(n.created_at),t:e,formatter:i}):"INVALID DATE",customData:n.custom_data,raw:{...n,location_type:Xa(n.location_type)?e(`job.location_type.${n.location_type}`):n.location_type,employment_type:Za(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}})),ml=(e,t)=>Ve(pe({data:on(Ja(e,t)),pagination:vl}),Fe(n=>({pagination:n.pagination,results:n.data}))),_l=e=>!e||Array.isArray(e)&&e.length===0?null:e,qn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=_l(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},ai=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=ut.endpoint({method:"GET",pathname:"/search/filters",schema:{response:pl(n),searchParams:ut.typed()}});return await e.request(a,{searchParams:{filters:qn(t),query:t.query,locale:o,fallback_locale:i},signal:r})},Qa=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const l=ut.endpoint({method:"GET",pathname:"/search/results",schema:{response:ml(o,a??s),searchParams:ut.typed()}});return await e.request(l,{searchParams:{filters:qn(n),query:n.query,page:r,per_page:lt,priority_segment:i,locale:a,fallback_locale:s},signal:t})},yl=(e,t)=>Ve(pe({data:on(Ja(e,t)),pagination:pe({has_more:In()})}),Fe(n=>({results:n.data,pagination:n.pagination}))),bl=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=ut.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:yl(r,i??a),searchParams:ut.typed()}});return await e.request(s,{searchParams:{filters:qn(n),query:n.query,mode:n.mode,priority_segment:o,locale:i,fallback_locale:a},signal:t})},an=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")},jn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var wl=0;function u(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var d={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--wl,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function es(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=es(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=es(e))&&(r&&(r+=" "),r+=t);return r}var He,U,hr,si,Rt=0,ts=[],Q=exports.l,ci=Q.__b,li=Q.__r,ui=Q.diffed,di=Q.__c,fi=Q.unmount,pi=Q.__;function pt(e,t){Q.__h&&Q.__h(U,e,Rt||t),Rt=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function P(e){return Rt=1,sn(ns,e)}function sn(e,t,n){var r=pt(He++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ns(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,s);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.__f)){var o=function(s,l,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(h){return h.__c});if(p.every(function(h){return!h.__N}))return!i||i.call(this,s,l,d);var c=r.__c.props!==s;return p.some(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(c=!0)}}),i&&i.call(this,s,l,d)||c};U.__f=!0;var i=U.shouldComponentUpdate,a=U.componentWillUpdate;U.componentWillUpdate=function(s,l,d){if(this.__e){var p=i;i=void 0,o(s,l,d),i=p}a&&a.call(this,s,l,d)},U.shouldComponentUpdate=o}return r.__N||r.__}function M(e,t){var n=pt(He++,3);!Q.__s&&Eo(n.__H,t)&&(n.__=e,n.u=t,U.__H.__h.push(n))}function Pe(e,t){var n=pt(He++,4);!Q.__s&&Eo(n.__H,t)&&(n.__=e,n.u=t,U.__h.push(n))}function A(e){return Rt=5,B(function(){return{current:e}},[])}function So(e,t,n){Rt=6,Pe(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 B(e,t){var n=pt(He++,7);return Eo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function V(e,t){return Rt=8,B(function(){return e},t)}function tt(e){var t=U.context[e.__c],n=pt(He++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(U)),t.props.value):e.__}function Kn(e,t){Q.useDebugValue&&Q.useDebugValue(t?t(e):e)}function xl(e){var t=pt(He++,10),n=P();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Gn(){var e=pt(He++,11);if(!e.__){for(var t=U.__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 $l(){for(var e;e=ts.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(En),t.__h.some(qr),t.__h=[]}catch(n){t.__h=[],Q.__e(n,e.__v)}}}Q.__b=function(e){U=null,ci&&ci(e)},Q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pi&&pi(e,t)},Q.__r=function(e){li&&li(e),He=0;var t=(U=e.__c).__H;t&&(hr===U?(t.__h=[],U.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(En),t.__h.some(qr),t.__h=[],He=0)),hr=U},Q.diffed=function(e){ui&&ui(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ts.push(t)!==1&&si===Q.requestAnimationFrame||((si=Q.requestAnimationFrame)||Cl)($l)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),hr=U=null},Q.__c=function(e,t){t.some(function(n){try{n.__h.some(En),n.__h=n.__h.filter(function(r){return!r.__||qr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Q.__e(r,n.__v)}}),di&&di(e,t)},Q.unmount=function(e){fi&&fi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{En(r)}catch(o){t=o}}),n.__H=void 0,t&&Q.__e(t,n.__v))};var hi=typeof requestAnimationFrame=="function";function Cl(e){var t,n=function(){clearTimeout(r),hi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);hi&&(t=requestAnimationFrame(n))}function En(e){var t=U,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),U=t}function qr(e){var t=U;e.__c=e.__(),U=t}function Eo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ns(e,t){return typeof t=="function"?t(e):t}var Sl=["other","few","many","two","one","zero"],vi=({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,(l,d)=>{var p;return((p=a==null?void 0:a[d])==null?void 0:p.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(a.count);if(!(l in s)){const d=Sl.find(p=>p in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,p)=>{var c;return((c=a==null?void 0:a[p])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},gi=dt(null),El=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=B(()=>vi({locale:r,terms:e,overrides:t}),[t,r]);return u(gi.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=tt(gi);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>vi({terms:e,overrides:t,locale:n})});const{TranslationProvider:Ol,useTranslation:oe,createTFunction:Tl,defaultTerms:kl}=El({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_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",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","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 rs(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=rs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rs(e))&&(r&&(r+=" "),r+=t);return r}const mi=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Al=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,l;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](vr(i)):typeof(e==null||(l=e.hooks)===null||l===void 0?void 0:l.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(vr(i)):vr(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 l=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[p]=d;return!["class","className"].includes(p)}));return t(i.map(d=>d(l)),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:l}=o,d=Object.keys(s).map(h=>{const f=i==null?void 0:i[h],g=l==null?void 0:l[h],v=mi(f)||mi(g);return s[h][v]}),p={...l,...i&&Object.entries(i).reduce((h,f)=>{let[g,v]=f;return typeof v>"u"?h:{...h,[g]:v}},{})},c=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:g,className:v,..._}=f;return Object.entries(_).every(y=>{let[m,w]=y;const b=p[m];return Array.isArray(w)?w.includes(b):b===w})?[...h,g,v]:h},[]);return t(o==null?void 0:o.base,d,c,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:D_,cva:ve,cx:M_}=Al(),We=ve({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",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"}}),Pl=({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"})]}),Xe=({error:e,resetError:t,class:n,...r})=>{const{t:o}=oe();return M(()=>{e.cause instanceof ut.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),u("div",{class:Pt("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:We({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class Zt extends he{constructor(){super(...arguments);Qo(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 Rl={briefcase:u(F,{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(F,{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(F,{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(F,{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(F,{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(F,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(F,{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(F,{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(F,{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(F,{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(F,{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(F,{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(F,{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(F,{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(F,{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"})]})},Dl=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(Rl).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)})})}),ee=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})});function os(e,t){for(var n in t)e[n]=t[n];return e}function Kr(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 Oo(e,t){var n=t(),r=P({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Pe(function(){o.__=n,o.u=t,gr(o)&&i({t:o})},[e,n,t]),M(function(){return gr(o)&&i({t:o}),e(function(){gr(o)&&i({t:o})})},[e]),n}function gr(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 To(e){e()}function ko(e){return e}function Ao(){return[!1,To]}var Po=Pe;function Fn(e,t){this.props=e,this.context=t}function is(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:Kr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,O(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Fn.prototype=new he).isPureReactComponent=!0,Fn.prototype.shouldComponentUpdate=function(e,t){return Kr(this.props,e)||Kr(this.state,t)};var _i=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_i&&_i(e)};var Ml=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function K(e){function t(n){var r=os({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ml,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var yi=function(e,t){return e==null?null:je(je(e).map(t))},ke={map:yi,forEach:yi,count:function(e){return e?je(e).length:0},only:function(e){var t=je(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:je},Ll=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)}Ll(e,t,n,r)};var bi=exports.l.unmount;function as(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=os({},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 as(r,t,n)})),e}function ss(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ss(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 Ct(){this.__u=0,this.o=null,this.__b=null}function cs(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ro(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?O(o,a):null}return i.displayName="Lazy",i.__f=!0,i}function xt(){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),bi&&bi(e)},(Ct.prototype=new he).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=cs(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var s=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=ss(d,d.__c.__P,d.__c.__O)}var p;for(r.setState({__a:r.__b=null});p=r.o.pop();)p.__P=s,p.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ct.prototype.componentWillUnmount=function(){this.o=[]},Ct.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]=as(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O(F,null,e.fallback);return o&&(o.__u&=-33),[O(F,null,t.__a?null:e.children),o]};var wi=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 Nl(e){return this.getChildContext=function(){return e.context},e.children}function Il(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){At(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)}}}At(O(Nl,{context:t.context},e.__v),t.v)}function ls(e,t){var n=O(Il,{__v:e,h:t});return n.containerInfo=t,n}(xt.prototype=new he).__a=function(e){var t=this,n=cs(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),wi(t,e,r)):o()};n?n(i):i()}},xt.prototype.render=function(e){this.i=null,this.l=new Map;var t=je(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},xt.prototype.componentDidUpdate=xt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){wi(e,n,t)})};var us=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jl=/^(?: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]/,Fl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vl=/[A-Z0-9]/g,Hl=typeof document<"u",Wl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ds(e,t,n){return t.__k==null&&(t.textContent=""),At(e,t),typeof n=="function"&&n(),e?e.__c:null}function fs(e,t,n){return wo(e,t),typeof n=="function"&&n(),e?e.__c:null}he.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(he.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var xi=exports.l.event;function Ul(){}function zl(){return this.cancelBubble}function Bl(){return this.defaultPrevented}exports.l.event=function(e){return xi&&(e=xi(e)),e.persist=Ul,e.isPropagationStopped=zl,e.isDefaultPrevented=Bl,e.nativeEvent=e};var Do,ql={enumerable:!1,configurable:!0,get:function(){return this.class}},$i=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||Hl&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Wl(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Fl.test(a)&&(a=l):l=a="oninput":i&&jl.test(a)?a=a.replace(Vl,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=je(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=je(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",ql)):n.className&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=us,$i&&$i(e)};var Ci=exports.l.__r;exports.l.__r=function(e){Ci&&Ci(e),Do=e.__c};var Si=exports.l.diffed;exports.l.diffed=function(e){Si&&Si(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),Do=null};var ps={ReactCurrentDispatcher:{current:{readContext:function(e){return Do.__n[e.__c].props.value},useCallback:V,useContext:tt,useDebugValue:Kn,useDeferredValue:ko,useEffect:M,useId:Gn,useImperativeHandle:So,useInsertionEffect:Po,useLayoutEffect:Pe,useMemo:B,useReducer:sn,useRef:A,useState:P,useSyncExternalStore:Oo,useTransition:Ao}}},Kl="18.3.1";function hs(e){return O.bind(null,e)}function Ue(e){return!!e&&e.$$typeof===us}function vs(e){return Ue(e)&&e.type===F}function gs(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function Lt(e){return Ue(e)?ol.apply(null,arguments):e}function ms(e){return!!e.__k&&(At(null,e),!0)}function _s(e){return e&&(e.base||e.nodeType===1&&e)||null}var ys=function(e,t){return e(t)},cn=function(e,t){return e(t)},bs=F,ws=Ue,ln={useState:P,useId:Gn,useReducer:sn,useEffect:M,useLayoutEffect:Pe,useInsertionEffect:Po,useTransition:Ao,useDeferredValue:ko,useSyncExternalStore:Oo,startTransition:To,useRef:A,useImperativeHandle:So,useMemo:B,useCallback:V,useContext:tt,useDebugValue:Kn,version:"18.3.1",Children:ke,render:ds,hydrate:fs,unmountComponentAtNode:ms,createPortal:ls,createElement:O,createContext:dt,createFactory:hs,cloneElement:Lt,createRef:La,Fragment:F,isValidElement:Ue,isElement:ws,isFragment:vs,isMemo:gs,findDOMNode:_s,Component:he,PureComponent:Fn,memo:is,forwardRef:K,flushSync:cn,unstable_batchedUpdates:ys,StrictMode:bs,Suspense:Ct,SuspenseList:xt,lazy:Ro,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ps};const xs=Object.freeze(Object.defineProperty({__proto__:null,Children:ke,Component:he,Fragment:F,PureComponent:Fn,StrictMode:bs,Suspense:Ct,SuspenseList:xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ps,cloneElement:Lt,createContext:dt,createElement:O,createFactory:hs,createPortal:ls,createRef:La,default:ln,findDOMNode:_s,flushSync:cn,forwardRef:K,hydrate:fs,isElement:ws,isFragment:vs,isMemo:gs,isValidElement:Ue,lazy:Ro,memo:is,render:ds,startTransition:To,unmountComponentAtNode:ms,unstable_batchedUpdates:ys,useCallback:V,useContext:tt,useDebugValue:Kn,useDeferredValue:ko,useEffect:M,useErrorBoundary:xl,useId:Gn,useImperativeHandle:So,useInsertionEffect:Po,useLayoutEffect:Pe,useMemo:B,useReducer:sn,useRef:A,useState:P,useSyncExternalStore:Oo,useTransition:Ao,version:Kl},Symbol.toStringTag,{value:"Module"}));var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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 Gr={exports:{}},mr={};const $s=Gl(xs);/**
|
|
2
|
-
* @license React
|
|
3
|
-
* use-sync-external-store-shim.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ei;function Yl(){if(Ei)return mr;Ei=1;var e=$s;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&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(c,h){var f=h(),g=r({inst:{value:f,getSnapshot:h}}),v=g[0].inst,_=g[1];return i(function(){v.value=f,v.getSnapshot=h,l(v)&&_({inst:v})},[c,f,h]),o(function(){return l(v)&&_({inst:v}),c(function(){l(v)&&_({inst:v})})},[c]),a(f),f}function l(c){var h=c.getSnapshot;c=c.value;try{var f=h();return!n(c,f)}catch{return!0}}function d(c,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return mr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,mr}var _r={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* use-sync-external-store-shim.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Oi;function Zl(){return Oi||(Oi=1,process.env.NODE_ENV!=="production"&&function(){function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}function t(f,g){p||o.startTransition===void 0||(p=!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(!c){var _=g();i(v,_)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}_=a({inst:{value:v,getSnapshot:g}});var y=_[0].inst,m=_[1];return l(function(){y.value=v,y.getSnapshot=g,n(y)&&m({inst:y})},[f,v,g]),s(function(){return n(y)&&m({inst:y}),f(function(){n(y)&&m({inst:y})})},[f]),d(v),v}function n(f){var g=f.getSnapshot;f=f.value;try{var v=g();return!i(f,v)}catch{return!0}}function r(f,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=$s,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,p=!1,c=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;_r.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())}()),_r}process.env.NODE_ENV==="production"?Gr.exports=Yl():Gr.exports=Zl();var Ti=Gr.exports;const Cs=0,Ss=1,Es=2,ki=3;var Ai=Object.prototype.hasOwnProperty;function Yr(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--&&Yr(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Ai.call(e,n)&&++r&&!Ai.call(t,n)||!(n in t)||!Yr(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Ne=new WeakMap,Ie=()=>{},re=Ie(),Vn=Object,j=e=>e===re,_e=e=>typeof e=="function",ze=(e,t)=>({...e,...t}),Os=e=>_e(e.then),yr={},gn={},Lo="undefined",un=typeof window!=Lo,Zr=typeof document!=Lo,Xl=un&&"Deno"in window,Jl=()=>un&&typeof window.requestAnimationFrame!=Lo,Ts=(e,t)=>{const n=Ne.get(e);return[()=>!j(t)&&e.get(t)||yr,r=>{if(!j(t)){const o=e.get(t);t in gn||(gn[t]=o),n[5](t,ze(o,r),o||yr)}},n[6],()=>!j(t)&&t in gn?gn[t]:!j(t)&&e.get(t)||yr]};let Xr=!0;const Ql=()=>Xr,[Jr,Qr]=un&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ie,Ie],eu=()=>{const e=Zr&&document.visibilityState;return j(e)||e!=="hidden"},tu=e=>(Zr&&document.addEventListener("visibilitychange",e),Jr("focus",e),()=>{Zr&&document.removeEventListener("visibilitychange",e),Qr("focus",e)}),nu=e=>{const t=()=>{Xr=!0,e()},n=()=>{Xr=!1};return Jr("online",t),Jr("offline",n),()=>{Qr("online",t),Qr("offline",n)}},ru={isOnline:Ql,isVisible:eu},ou={initFocus:tu,initReconnect:nu},Pi=!ln.useId,St=!un||Xl,iu=e=>Jl()?window.requestAnimationFrame(e):setTimeout(e,1),On=St?M:Pe,br=typeof navigator<"u"&&navigator.connection,Ri=!St&&br&&(["slow-2g","2g"].includes(br.effectiveType)||br.saveData),mn=new WeakMap,au=e=>Vn.prototype.toString.call(e),wr=(e,t)=>e===`[object ${t}]`;let su=0;const eo=e=>{const t=typeof e,n=au(e),r=wr(n,"Date"),o=wr(n,"RegExp"),i=wr(n,"Object");let a,s;if(Vn(e)===e&&!r&&!o){if(a=mn.get(e),a)return a;if(a=++su+"~",mn.set(e,a),Array.isArray(e)){for(a="@",s=0;s<e.length;s++)a+=eo(e[s])+",";mn.set(e,a)}if(i){a="#";const l=Vn.keys(e).sort();for(;!j(s=l.pop());)j(e[s])||(a+=s+":"+eo(e[s])+",");mn.set(e,a)}}else a=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},No=e=>{if(_e(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?eo(e):"",[e,t]};let cu=0;const to=()=>++cu;async function ks(...e){const[t,n,r,o]=e,i=ze({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const d=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(_e(n)){const h=n,f=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&f.push(v);return Promise.all(f.map(c))}return c(n);async function c(h){const[f]=No(h);if(!f)return;const[g,v]=Ts(t,f),[_,y,m,w]=Ne.get(t),b=()=>{const k=_[f];return(_e(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete m[f],delete w[f],k&&k[0])?k[0](Es).then(()=>g().data):g().data};if(e.length<3)return b();let x=r,$,C=!1;const S=to();y[f]=[S,0];const E=!j(l),T=g(),D=T.data,L=T._c,H=j(L)?D:L;if(E&&(l=_e(l)?l(H,D):l,v({data:l,_c:H})),_e(x))try{x=x(H)}catch(k){$=k,C=!0}if(x&&Os(x))if(x=await x.catch(k=>{$=k,C=!0}),S!==y[f][0]){if(C)throw $;return x}else C&&E&&d($)&&(a=!0,v({data:H,_c:re}));if(a&&!C)if(_e(a)){const k=a(x,H);v({data:k,error:re,_c:re})}else v({data:x,error:re,_c:re});if(y[f][1]=to(),Promise.resolve(b()).then(()=>{v({_c:re})}),C){if(p)throw $;return}return x}}const Di=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},As=(e,t)=>{if(!Ne.has(e)){const n=ze(ou,t),r=Object.create(null),o=ks.bind(re,e);let i=Ie;const a=Object.create(null),s=(p,c)=>{const h=a[p]||[];return a[p]=h,h.push(c),()=>h.splice(h.indexOf(c),1)},l=(p,c,h)=>{e.set(p,c);const f=a[p];if(f)for(const g of f)g(c,h)},d=()=>{if(!Ne.has(e)&&(Ne.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,s]),!St)){const p=n.initFocus(setTimeout.bind(re,Di.bind(re,r,Cs))),c=n.initReconnect(setTimeout.bind(re,Di.bind(re,r,Ss)));i=()=>{p&&p(),c&&c(),Ne.delete(e)}}};return d(),[e,o,d,i]}return[e,Ne.get(e)[4]]},lu=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!j(i)&&a>i||setTimeout(r,s,o)},uu=Yr,[Io,du]=As(new Map),Ps=ze({onLoadingSlow:Ie,onSuccess:Ie,onError:Ie,onErrorRetry:lu,onDiscarded:Ie,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ri?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ri?5e3:3e3,compare:uu,isPaused:()=>!1,cache:Io,mutate:du,fallback:{}},ru),Rs=(e,t)=>{const n=ze(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=ze(o,a))}return n},no=dt({}),fu=e=>{const{value:t}=e,n=tt(no),r=_e(t),o=B(()=>r?t(n):t,[r,n,t]),i=B(()=>r?o:Rs(n,o),[r,n,o]),a=o&&o.provider,s=A(re);a&&!s.current&&(s.current=As(a(i.cache||Io),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),On(()=>{if(l)return l[2]&&l[2](),l[3]},[]),O(no.Provider,ze(e,{value:i}))},pu="$inf$",Ds=un&&window.__SWR_DEVTOOLS_USE__,hu=Ds?window.__SWR_DEVTOOLS_USE__:[],vu=()=>{Ds&&(window.__SWR_DEVTOOLS_REACT__=ln)},gu=e=>_e(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],mu=()=>{const e=tt(no);return B(()=>ze(Ps,e),[e])},_u=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=No(t),[,,,s]=Ne.get(Io);if(a.startsWith(pu))return n(...i);const l=s[a];return j(l)?n(...i):(delete s[a],l)}),r),yu=hu.concat(_u),bu=e=>function(...n){const r=mu(),[o,i,a]=gu(n),s=Rs(r,a);let l=e;const{use:d}=s,p=(d||[]).concat(yu);for(let c=p.length;c--;)l=p[c](l);return l(o,i||s.fetcher||null,s)},wu=(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())}};vu();const xr=ln.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}}),$r={dedupe:!0},Mi=Promise.resolve(re),xu=()=>Ie,$u=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:d,refreshWhenHidden:p,refreshWhenOffline:c,keepPreviousData:h,strictServerPrefetchWarning:f}=n,[g,v,_,y]=Ne.get(r),[m,w]=No(e),b=A(!1),x=A(!1),$=A(m),C=A(t),S=A(n),E=()=>S.current,T=()=>E().isVisible()&&E().isOnline(),[D,L,H,k]=Ts(r,m),R=A({}).current,N=j(a)?j(n.fallback)?re:n.fallback[m]:a,I=(W,Z)=>{for(const X in R){const J=X;if(J==="data"){if(!o(W[J],Z[J])&&(!j(W[J])||!o(ge,Z[J])))return!1}else if(Z[J]!==W[J])return!1}return!0},z=!b.current,G=B(()=>{const W=D(),Z=k(),X=te=>{const me=ze(te);return delete me._k,(()=>{if(!m||!t||E().isPaused())return!1;if(z&&!j(s))return s;const Bt=j(N)?me.data:N;return j(Bt)||l})()?{isValidating:!0,isLoading:!0,...me}:me},J=X(W),ue=W===Z?J:X(Z);let ne=J;return[()=>{const te=X(D());return I(te,ne)?(ne.data=te.data,ne.isLoading=te.isLoading,ne.isValidating=te.isValidating,ne.error=te.error,ne):(ne=te,te)},()=>ue]},[r,m]),xe=Ti.useSyncExternalStore(V(W=>H(m,(Z,X)=>{I(X,Z)||W()}),[r,m]),G[0],G[1]),ht=g[m]&&g[m].length>0,Ge=xe.data,$e=j(Ge)?N&&Os(N)?xr(N):N:Ge,vt=xe.error,Ye=A($e),ge=h?j(Ge)?j(Ye.current)?$e:Ye.current:Ge:$e,Ce=m&&j($e),ot=A(null);!St&&Ti.useSyncExternalStore(xu,()=>(ot.current=!1,ot),()=>(ot.current=!0,ot));const gt=ot.current;f&>&&!i&&Ce&&console.warn(`Missing pre-initiated data for serialized key "${m}" 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 Ut=(()=>!m||!t||E().isPaused()||ht&&!j(vt)?!1:z&&!j(s)?s:i?j($e)?!1:l:j($e)||l)(),sr=j(xe.isValidating)?Ut:xe.isValidating,cr=j(xe.isLoading)?Ut:xe.isLoading,it=V(async W=>{const Z=C.current;if(!m||!Z||x.current||E().isPaused())return!1;let X,J,ue=!0;const ne=W||{},te=!_[m]||!ne.dedupe,me=()=>Pi?!x.current&&m===$.current&&b.current:m===$.current,zt={isValidating:!1,isLoading:!1},Bt=()=>{L(zt)},Xo=()=>{const de=_[m];de&&de[1]===J&&delete _[m]},Jo={isValidating:!0};j(D().data)&&(Jo.isLoading=!0);try{if(te&&(L(Jo),n.loadingTimeout&&j(D().data)&&setTimeout(()=>{ue&&me()&&E().onLoadingSlow(m,n)},n.loadingTimeout),_[m]=[Z(w),to()]),[X,J]=_[m],X=await X,te&&setTimeout(Xo,n.dedupingInterval),!_[m]||_[m][1]!==J)return te&&me()&&E().onDiscarded(m),!1;zt.error=re;const de=v[m];if(!j(de)&&(J<=de[0]||J<=de[1]||de[1]===0))return Bt(),te&&me()&&E().onDiscarded(m),!1;const Me=D().data;zt.data=o(Me,X)?Me:X,te&&me()&&E().onSuccess(X,m,n)}catch(de){Xo();const Me=E(),{shouldRetryOnError:lr}=Me;Me.isPaused()||(zt.error=de,te&&me()&&(Me.onError(de,m,Me),(lr===!0||_e(lr)&&lr(de))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||T())&&Me.onErrorRetry(de,m,Me,Bc=>{const ur=g[m];ur&&ur[0]&&ur[0](ki,Bc)},{retryCount:(ne.retryCount||0)+1,dedupe:!0})))}return ue=!1,Bt(),!0},[m,r]),pn=V((...W)=>ks(r,$.current,...W),[]);if(On(()=>{C.current=t,S.current=n,j(Ge)||(Ye.current=Ge)}),On(()=>{if(!m)return;const W=it.bind(re,$r);let Z=0;E().revalidateOnFocus&&(Z=Date.now()+E().focusThrottleInterval);const J=wu(m,g,(ue,ne={})=>{if(ue==Cs){const te=Date.now();E().revalidateOnFocus&&te>Z&&T()&&(Z=te+E().focusThrottleInterval,W())}else if(ue==Ss)E().revalidateOnReconnect&&T()&&W();else{if(ue==Es)return it();if(ue==ki)return it(ne)}});return x.current=!1,$.current=m,b.current=!0,L({_k:w}),Ut&&(_[m]||(j($e)||St?W():iu(W))),()=>{x.current=!0,J()}},[m]),On(()=>{let W;function Z(){const J=_e(d)?d(D().data):d;J&&W!==-1&&(W=setTimeout(X,J))}function X(){!D().error&&(p||E().isVisible())&&(c||E().isOnline())?it($r).then(Z):Z()}return Z(),()=>{W&&(clearTimeout(W),W=-1)}},[d,p,c,m]),Kn(ge),i){if(!Pi&&St&&Ce)throw new Error("Fallback data is required when using Suspense in SSR.");Ce&&(C.current=t,S.current=n,x.current=!1);const W=y[m],Z=!j(W)&&Ce?pn(W):Mi;if(xr(Z),!j(vt)&&Ce)throw vt;const X=Ce?it($r):Mi;!j(ge)&&Ce&&(X.status="fulfilled",X.value=!0),xr(X)}return{mutate:pn,get data(){return R.data=!0,ge},get error(){return R.error=!0,vt},get isValidating(){return R.isValidating=!0,sr},get isLoading(){return R.isLoading=!0,cr}}},Cu=Vn.defineProperty(fu,"defaultValue",{value:Ps}),Xt=bu($u),Ms=e=>{const[t,n]=P(!1);return M(()=>{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},Su=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=P(!1);M(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(l=>l.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 Eu=["1","2","3","4","5","6","7","8","9","10","11","12"],Ou={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]}},Tu=(e,t=1,n)=>r=>{const[o,i]=Ou[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Cr=e=>{const t=Tu(e.hue,e.chroma,e.mode);return Object.fromEntries(Eu.map(n=>[e.prefix+n,e.transform(t(n))]))},Sr=e=>e,ku=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)},_n=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ro=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(_n(e)&&_n(n))for(const r in n){const o=n[r];if(_n(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];_n(i)&&ro(i,o)}else Object.assign(e,{[r]:n[r]})}return ro(e,...t)},Au=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Pu=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.toString()),s=e({theme:o}),l=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:l}}),p=ku(ro(s,l,d)),c=([h,f],g)=>{const v=[g,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(_=>c(_,v)):[[r.getToken("declaration",v),f]]};return{values:p,declarations:Object.fromEntries(Object.entries(p).flatMap(h=>c(h))),ref:h=>i("reference",h.toString())}}})})})});const Se=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)},[Er,Or,yn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],Ru=Pu().core(({theme:e})=>{var t,n,r,o;return{color:{black:Er,white:Or,lowest:e.mode==="light"?Or:Er,highest:e.mode==="light"?Er:Or,...Cr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Sr}),...Cr({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:Sr}),...Cr({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:Sr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,l,d,p,c,h,f,g,v,_,y,m,w,b,x,$,C,S,E,T,D;const r=(L,H)=>n.core.color[L].replace(")",` / ${H})`),{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":((l=o.filter)==null?void 0:l.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((p=o.tag)==null?void 0:p.fontFamily)??o.fontFamily??"inherit","weight-default":((c=o.weight)==null?void 0:c.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((g=(f=o.filter)==null?void 0:f.weight)==null?void 0:g.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((_=o.tag)==null?void 0:_.style)??o.style??"inherit","style-job-heading":((y=o.jobHeading)==null?void 0:y.style)??o.style??"inherit","weight-tag":((w=(m=o.tag)==null?void 0:m.weight)==null?void 0:w.toString())??((b=o.weight)==null?void 0:b.toString())??"inherit","weight-job-heading":(($=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:$.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":((T=(E=o.input)==null?void 0:E.weight)==null?void 0:T.toString())??((D=o.weight)==null?void 0:D.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"):yn,"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":yn,"radius-app":Se(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Se(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Se(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Se(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Se(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Se(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Se(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":Se(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"?yn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?yn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Se(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":Se(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),Du=Au({prefix:"i-"}),Mu=e=>{const t=Ru.from({theme:e.theme,getToken:Du}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
|
|
18
|
-
${n.concat(n).join(`
|
|
19
|
-
`)}
|
|
20
|
-
}`},oo=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const io=e=>{var n,r,o;const t=[e.baseKey];e.state.query&&t.push(`q=${e.state.query}`),((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}`);for(const i in e.state.filters){const a=e.state.filters[i];if(!a)continue;const s=a.select==="many"?(o=a.value)==null?void 0:o.sort().join("|"):a.value;t.push(`${i}=${s}`)}return t.sort().join("::")};function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}function ye(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 Lu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ls(...e){return t=>e.forEach(n=>Lu(n,t))}function Re(...e){return V(Ls(...e),e)}function jo(e,t=[]){let n=[];function r(i,a){const s=dt(a),l=n.length;n=[...n,a];function d(c){const{scope:h,children:f,...g}=c,v=(h==null?void 0:h[e][l])||s,_=B(()=>g,Object.values(g));return O(v.Provider,{value:_},f)}function p(c,h){const f=(h==null?void 0:h[e][l])||s,g=tt(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,p]}const o=()=>{const i=n.map(a=>dt(a));return function(s){const l=(s==null?void 0:s[e])||i;return B(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Nu(o,...t)]}function Nu(...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:l,scopeName:d})=>{const c=l(i)[`__scope${d}`];return{...s,...c}},{});return B(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Dt=globalThis!=null&&globalThis.document?Pe:()=>{},Iu=xs["useId".toString()]||(()=>{});let ju=0;function Tn(e){const[t,n]=P(Iu());return Dt(()=>{e||n(r=>r??String(ju++))},[e]),e||(t?`radix-${t}`:"")}function Je(e){const t=A(e);return M(()=>{t.current=e}),B(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ns({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Fu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Je(n),l=V(d=>{if(i){const c=typeof d=="function"?d(e):d;c!==e&&s(c)}else o(d)},[i,e,o,s]);return[a,l]}function Fu({defaultProp:e,onChange:t}){const n=P(e),[r]=n,o=A(r),i=Je(t);return M(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Yn=K((e,t)=>{const{children:n,...r}=e,o=ke.toArray(n),i=o.find(Hu);if(i){const a=i.props.children,s=o.map(l=>l===i?ke.count(a)>1?ke.only(null):Ue(a)?a.props.children:null:l);return O(ao,q({},r,{ref:t}),Ue(a)?Lt(a,void 0,s):null)}return O(ao,q({},r,{ref:t}),n)});Yn.displayName="Slot";const ao=K((e,t)=>{const{children:n,...r}=e;return Ue(n)?Lt(n,{...Wu(r,n.props),ref:t?Ls(t,n.ref):n.ref}):ke.count(n)>1?ke.only(null):null});ao.displayName="SlotClone";const Vu=({children:e})=>O(F,null,e);function Hu(e){return Ue(e)&&e.type===Vu}function Wu(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 Uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=Uu.reduce((e,t)=>{const n=K((r,o)=>{const{asChild:i,...a}=r,s=i?Yn:t;return M(()=>{window[Symbol.for("radix-ui")]=!0},[]),O(s,q({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zu(e,t){e&&cn(()=>e.dispatchEvent(t))}function Bu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);M(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const so="dismissableLayer.update",qu="dismissableLayer.pointerDownOutside",Ku="dismissableLayer.focusOutside";let Li;const Gu=dt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Is=K((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,p=tt(Gu),[c,h]=P(null),f=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=P({}),v=Re(t,S=>h(S)),_=Array.from(p.layers),[y]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),m=_.indexOf(y),w=c?_.indexOf(c):-1,b=p.layersWithOutsidePointerEventsDisabled.size>0,x=w>=m,$=Yu(S=>{const E=S.target,T=[...p.branches].some(D=>D.contains(E));!x||T||(i==null||i(S),s==null||s(S),S.defaultPrevented||l==null||l())},f),C=Zu(S=>{const E=S.target;[...p.branches].some(D=>D.contains(E))||(a==null||a(S),s==null||s(S),S.defaultPrevented||l==null||l())},f);return Bu(S=>{w===p.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},f),M(()=>{if(c)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Li=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(c)),p.layers.add(c),Ni(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Li)}},[c,f,r,p]),M(()=>()=>{c&&(p.layers.delete(c),p.layersWithOutsidePointerEventsDisabled.delete(c),Ni())},[c,p]),M(()=>{const S=()=>g({});return document.addEventListener(so,S),()=>document.removeEventListener(so,S)},[]),O(nt.div,q({},d,{ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Yu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1),o=A(()=>{});return M(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){js(qu,n,l,{discrete:!0})};const l={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 Zu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1);return M(()=>{const o=i=>{i.target&&!r.current&&js(Ku,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 Ni(){const e=new CustomEvent(so);document.dispatchEvent(e)}function js(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?zu(o,i):o.dispatchEvent(i)}const Tr="focusScope.autoFocusOnMount",kr="focusScope.autoFocusOnUnmount",Ii={bubbles:!1,cancelable:!0},Fs=K((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=P(null),d=Je(o),p=Je(i),c=A(null),h=Re(t,v=>l(v)),f=A({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M(()=>{if(r){let v=function(w){if(f.paused||!s)return;const b=w.target;s.contains(b)?c.current=b:Ze(c.current,{select:!0})},_=function(w){if(f.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||Ze(c.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&Ze(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),m.disconnect()}}},[r,s,f.paused]),M(()=>{if(s){Fi.add(f);const v=document.activeElement;if(!s.contains(v)){const y=new CustomEvent(Tr,Ii);s.addEventListener(Tr,d),s.dispatchEvent(y),y.defaultPrevented||(Xu(nd(Vs(s)),{select:!0}),document.activeElement===v&&Ze(s))}return()=>{s.removeEventListener(Tr,d),setTimeout(()=>{const y=new CustomEvent(kr,Ii);s.addEventListener(kr,p),s.dispatchEvent(y),y.defaultPrevented||Ze(v??document.body,{select:!0}),s.removeEventListener(kr,p),Fi.remove(f)},0)}}},[s,d,p,f]);const g=V(v=>{if(!n&&!r||f.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(_&&y){const m=v.currentTarget,[w,b]=Ju(m);w&&b?!v.shiftKey&&y===b?(v.preventDefault(),n&&Ze(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),n&&Ze(b,{select:!0})):y===m&&v.preventDefault()}},[n,r,f.paused]);return O(nt.div,q({tabIndex:-1},a,{ref:h,onKeyDown:g}))});function Xu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ze(r,{select:t}),document.activeElement!==n)return}function Ju(e){const t=Vs(e),n=ji(t,e),r=ji(t.reverse(),e);return[n,r]}function Vs(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 ji(e,t){for(const n of e)if(!Qu(n,{upTo:t}))return n}function Qu(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 ed(e){return e instanceof HTMLInputElement&&"select"in e}function Ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ed(e)&&t&&e.select()}}const Fi=td();function td(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Vi(e,t),e.unshift(t)},remove(t){var n;e=Vi(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Vi(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nd(e){return e.filter(t=>t.tagName!=="A")}const Hs=K((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?ln.createPortal(O(nt.div,q({},o,{ref:t})),r):null});function rd(e,t){return sn((n,r)=>{const o=t[n][r];return o??n},e)}const Nt=e=>{const{present:t,children:n}=e,r=od(t),o=typeof n=="function"?n({present:r.isPresent}):ke.only(n),i=Re(r.ref,o.ref);return typeof n=="function"||r.isPresent?Lt(o,{ref:i}):null};Nt.displayName="Presence";function od(e){const[t,n]=P(),r=A({}),o=A(e),i=A("none"),a=e?"mounted":"unmounted",[s,l]=rd(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M(()=>{const d=bn(r.current);i.current=s==="mounted"?d:"none"},[s]),Dt(()=>{const d=r.current,p=o.current;if(p!==e){const h=i.current,f=bn(d);e?l("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(p&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Dt(()=>{if(t){const d=c=>{const f=bn(r.current).includes(c.animationName);c.target===t&&f&&cn(()=>l("ANIMATION_END"))},p=c=>{c.target===t&&(i.current=bn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function bn(e){return(e==null?void 0:e.animationName)||"none"}let Ar=0;function Ws(){M(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Hi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Hi()),Ar++,()=>{Ar===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ar--}},[])}function Hi(){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 Ee=function(){return Ee=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},Ee.apply(this,arguments)};function Us(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 id(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 kn="right-scroll-bar-position",An="width-before-scroll-bar",ad="with-scroll-bars-hidden",sd="--removed-body-scroll-bar-size";function Pr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cd(e,t){var n=P(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 ld=typeof window<"u"?Pe:M,Wi=new WeakMap;function ud(e,t){var n=cd(t||null,function(r){return e.forEach(function(o){return Pr(o,r)})});return ld(function(){var r=Wi.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Pr(s,null)}),i.forEach(function(s){o.has(s)||Pr(s,a)})}Wi.set(n,e)},[e]),n}function dd(e){return e}function fd(e,t){t===void 0&&(t=dd);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 l=function(){var p=a;a=[],p.forEach(i)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return o}function pd(e){e===void 0&&(e={});var t=fd(null);return t.options=Ee({async:!0,ssr:!1},e),t}var zs=function(e){var t=e.sideCar,n=Us(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 O(r,Ee({},n))};zs.isSideCarExport=!0;function hd(e,t){return e.useMedium(t),zs}var Bs=pd(),Rr=function(){},Zn=K(function(e,t){var n=A(null),r=P({onScrollCapture:Rr,onWheelCapture:Rr,onTouchMoveCapture:Rr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,p=e.enabled,c=e.shards,h=e.sideCar,f=e.noIsolation,g=e.inert,v=e.allowPinchZoom,_=e.as,y=_===void 0?"div":_,m=Us(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,b=ud([n,t]),x=Ee(Ee({},m),o);return O(F,null,p&&O(w,{sideCar:Bs,removeScrollBar:d,shards:c,noIsolation:f,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?Lt(ke.only(s),Ee(Ee({},x),{ref:b})):O(y,Ee({},x,{className:l,ref:b}),s))});Zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zn.classNames={fullWidth:An,zeroRight:kn};var Ui,vd=function(){if(Ui)return Ui;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=vd();return t&&e.setAttribute("nonce",t),e}function md(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _d(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gd())&&(md(t,n),_d(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bd=function(){var e=yd();return function(t,n){M(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qs=function(){var e=bd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wd={left:0,top:0,right:0,gap:0},Dr=function(e){return parseInt(e||"",10)||0},xd=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[Dr(n),Dr(r),Dr(o)]},$d=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wd;var t=xd(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])}},Cd=qs(),Et="data-scroll-locked",Sd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
21
|
-
.`.concat(ad,` {
|
|
22
|
-
overflow: hidden `).concat(r,`;
|
|
23
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
24
|
-
}
|
|
25
|
-
body[`).concat(Et,`] {
|
|
26
|
-
overflow: hidden `).concat(r,`;
|
|
27
|
-
overscroll-behavior: contain;
|
|
28
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
29
|
-
padding-left: `.concat(o,`px;
|
|
30
|
-
padding-top: `).concat(i,`px;
|
|
31
|
-
padding-right: `).concat(a,`px;
|
|
32
|
-
margin-left:0;
|
|
33
|
-
margin-top:0;
|
|
34
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
35
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.`).concat(kn,` {
|
|
39
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.`).concat(An,` {
|
|
43
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.`).concat(kn," .").concat(kn,` {
|
|
47
|
-
right: 0 `).concat(r,`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.`).concat(An," .").concat(An,` {
|
|
51
|
-
margin-right: 0 `).concat(r,`;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
body[`).concat(Et,`] {
|
|
55
|
-
`).concat(sd,": ").concat(s,`px;
|
|
56
|
-
}
|
|
57
|
-
`)},zi=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Ed=function(){M(function(){return document.body.setAttribute(Et,(zi()+1).toString()),function(){var e=zi()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Od=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ed();var i=B(function(){return $d(o)},[o]);return O(Cd,{styles:Sd(i,!t,o,n?"":"!important")})},co=!1;if(typeof window<"u")try{var wn=Object.defineProperty({},"passive",{get:function(){return co=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{co=!1}var _t=co?{passive:!1}:!1,Td=function(e){return e.tagName==="TEXTAREA"},Ks=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Td(e)&&n[t]==="visible")},kd=function(e){return Ks(e,"overflowY")},Ad=function(e){return Ks(e,"overflowX")},Bi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Gs(e,n);if(r){var o=Ys(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Pd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gs=function(e,t){return e==="v"?kd(t):Ad(t)},Ys=function(e,t){return e==="v"?Pd(t):Rd(t)},Dd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Md=function(e,t,n,r,o){var i=Dd(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),d=!1,p=a>0,c=0,h=0;do{var f=Ys(e,s),g=f[0],v=f[1],_=f[2],y=v-_-i*g;(g||y)&&Gs(e,s)&&(c+=y,h+=g),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(o&&c===0||!o&&a>c)||!p&&(o&&h===0||!o&&-a>h))&&(d=!0),d},xn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qi=function(e){return[e.deltaX,e.deltaY]},Ki=function(e){return e&&"current"in e?e.current:e},Ld=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nd=function(e){return`
|
|
58
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
59
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
60
|
-
`)},Id=0,yt=[];function jd(e){var t=A([]),n=A([0,0]),r=A(),o=P(Id++)[0],i=P(function(){return qs()})[0],a=A(e);M(function(){a.current=e},[e]),M(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=id([e.lockRef.current],(e.shards||[]).map(Ki),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=V(function(v,_){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var y=xn(v),m=n.current,w="deltaX"in v?v.deltaX:m[0]-y[0],b="deltaY"in v?v.deltaY:m[1]-y[1],x,$=v.target,C=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in v&&C==="h"&&$.type==="range")return!1;var S=Bi(C,$);if(!S)return!0;if(S?x=C:(x=C==="v"?"h":"v",S=Bi(C,$)),!S)return!1;if(!r.current&&"changedTouches"in v&&(w||b)&&(r.current=x),!x)return!0;var E=r.current||x;return Md(E,_,v,E==="h"?w:b,!0)},[]),l=V(function(v){var _=v;if(!(!yt.length||yt[yt.length-1]!==i)){var y="deltaY"in _?qi(_):xn(_),m=t.current.filter(function(x){return x.name===_.type&&x.target===_.target&&Ld(x.delta,y)})[0];if(m&&m.should){_.cancelable&&_.preventDefault();return}if(!m){var w=(a.current.shards||[]).map(Ki).filter(Boolean).filter(function(x){return x.contains(_.target)}),b=w.length>0?s(_,w[0]):!a.current.noIsolation;b&&_.cancelable&&_.preventDefault()}}},[]),d=V(function(v,_,y,m){var w={name:v,delta:_,target:y,should:m};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),p=V(function(v){n.current=xn(v),r.current=void 0},[]),c=V(function(v){d(v.type,qi(v),v.target,s(v,e.lockRef.current))},[]),h=V(function(v){d(v.type,xn(v),v.target,s(v,e.lockRef.current))},[]);M(function(){return yt.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_t),document.addEventListener("touchmove",l,_t),document.addEventListener("touchstart",p,_t),function(){yt=yt.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,_t),document.removeEventListener("touchmove",l,_t),document.removeEventListener("touchstart",p,_t)}},[]);var f=e.removeScrollBar,g=e.inert;return O(F,null,g?O(i,{styles:Nd(o)}):null,f?O(Od,{gapMode:"margin"}):null)}const Fd=hd(Bs,jd);var Zs=K(function(e,t){return O(Zn,Ee({},e,{ref:t,sideCar:Fd}))});Zs.classNames=Zn.classNames;const Xs=Zs;var Vd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bt=new WeakMap,$n=new WeakMap,Cn={},Mr=0,Js=function(e){return e&&(e.host||Js(e.parentNode))},Hd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Js(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})},Wd=function(e,t,n,r){var o=Hd(t,Array.isArray(e)?e:[e]);Cn[n]||(Cn[n]=new WeakMap);var i=Cn[n],a=[],s=new Set,l=new Set(o),d=function(c){!c||s.has(c)||(s.add(c),d(c.parentNode))};o.forEach(d);var p=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))p(h);else try{var f=h.getAttribute(r),g=f!==null&&f!=="false",v=(bt.get(h)||0)+1,_=(i.get(h)||0)+1;bt.set(h,v),i.set(h,_),a.push(h),v===1&&g&&$n.set(h,!0),_===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return p(t),s.clear(),Mr++,function(){a.forEach(function(c){var h=bt.get(c)-1,f=i.get(c)-1;bt.set(c,h),i.set(c,f),h||($n.has(c)||c.removeAttribute(r),$n.delete(c)),f||c.removeAttribute(n)}),Mr--,Mr||(bt=new WeakMap,bt=new WeakMap,$n=new WeakMap,Cn={})}},Qs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Vd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wd(r,o,n,"aria-hidden")):function(){return null}};const ec="Dialog",[tc,L_]=jo(ec),[Ud,rt]=tc(ec),zd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=A(null),l=A(null),[d=!1,p]=Ns({prop:r,defaultProp:o,onChange:i});return O(Ud,{scope:t,triggerRef:s,contentRef:l,contentId:Tn(),titleId:Tn(),descriptionId:Tn(),open:d,onOpenChange:p,onOpenToggle:V(()=>p(c=>!c),[p]),modal:a},n)},Bd="DialogTrigger",qd=K((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Bd,n),i=Re(t,o.triggerRef);return O(nt.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fo(o.open)},r,{ref:i,onClick:ye(e.onClick,o.onOpenToggle)}))}),nc="DialogPortal",[Kd,rc]=tc(nc,{forceMount:void 0}),Gd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(nc,t);return O(Kd,{scope:t,forceMount:n},ke.map(r,a=>O(Nt,{present:n||i.open},O(Hs,{asChild:!0,container:o},a))))},lo="DialogOverlay",Yd=K((e,t)=>{const n=rc(lo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(lo,e.__scopeDialog);return i.modal?O(Nt,{present:r||i.open},O(Zd,q({},o,{ref:t}))):null}),Zd=K((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(lo,n);return O(Xs,{as:Yn,allowPinchZoom:!0,shards:[o.contentRef]},O(nt.div,q({"data-state":Fo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Jt="DialogContent",Xd=K((e,t)=>{const n=rc(Jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Jt,e.__scopeDialog);return O(Nt,{present:r||i.open},i.modal?O(Jd,q({},o,{ref:t})):O(Qd,q({},o,{ref:t})))}),Jd=K((e,t)=>{const n=rt(Jt,e.__scopeDialog),r=A(null),o=Re(t,n.contentRef,r);return M(()=>{const i=r.current;if(i)return Qs(i)},[]),O(oc,q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault())}))}),Qd=K((e,t)=>{const n=rt(Jt,e.__scopeDialog),r=A(!1),o=A(!1);return O(oc,q({},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 l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),oc=K((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Jt,n),l=A(null),d=Re(t,l);return Ws(),O(F,null,O(Fs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(Is,q({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Fo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function Fo(e){return e?"open":"closed"}const ef=zd,tf=qd,nf=Gd,rf=Yd,of=Xd,af=["top","right","bottom","left"],Qe=Math.min,se=Math.max,Hn=Math.round,Sn=Math.floor,Ae=e=>({x:e,y:e}),sf={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e,t,n){return se(e,Qe(t,n))}function Be(e,t){return typeof e=="function"?e(t):e}function qe(e){return e.split("-")[0]}function It(e){return e.split("-")[1]}function Vo(e){return e==="x"?"y":"x"}function Ho(e){return e==="y"?"height":"width"}function Te(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wo(e){return Vo(Te(e))}function cf(e,t,n){n===void 0&&(n=!1);const r=It(e),o=Wo(e),i=Ho(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Wn(a)),[a,Wn(a)]}function lf(e){const t=Wn(e);return[fo(e),t,fo(t)]}function fo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Gi=["left","right"],Yi=["right","left"],uf=["top","bottom"],df=["bottom","top"];function ff(e,t,n){switch(e){case"top":case"bottom":return n?t?Yi:Gi:t?Gi:Yi;case"left":case"right":return t?uf:df;default:return[]}}function pf(e,t,n,r){const o=It(e);let i=ff(qe(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(fo)))),i}function Wn(e){const t=qe(e);return sf[t]+e.slice(t.length)}function hf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ic(e){return typeof e!="number"?hf(e):{top:e,right:e,bottom:e,left:e}}function Un(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 Zi(e,t,n){let{reference:r,floating:o}=e;const i=Te(t),a=Wo(t),s=Ho(a),l=qe(t),d=i==="y",p=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:c};break;case"left":f={x:r.x-o.width,y:c};break;default:f={x:r.x,y:r.y}}switch(It(t)){case"start":f[a]-=h*(n&&d?-1:1);break;case"end":f[a]+=h*(n&&d?-1:1);break}return f}async function vf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=Be(t,e),g=ic(f),_=s[h?c==="floating"?"reference":"floating":c],y=Un(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:l})),m=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Un(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:l}):m);return{top:(y.top-x.top+g.top)/b.y,bottom:(x.bottom-y.bottom+g.bottom)/b.y,left:(y.left-x.left+g.left)/b.x,right:(x.right-y.right+g.right)/b.x}}const gf=50,mf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:vf},l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:c}=Zi(d,r,l),h=r,f=0;const g={};for(let v=0;v<i.length;v++){const _=i[v];if(!_)continue;const{name:y,fn:m}=_,{x:w,y:b,data:x,reset:$}=await m({x:p,y:c,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});p=w??p,c=b??c,g[y]={...g[y],...x},$&&f<gf&&(f++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:p,y:c}=Zi(d,h,l)),v=-1)}return{x:p,y:c,placement:h,strategy:o,middlewareData:g}},_f=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:p=0}=Be(e,t)||{};if(d==null)return{};const c=ic(p),h={x:n,y:r},f=Wo(o),g=Ho(f),v=await a.getDimensions(d),_=f==="y",y=_?"top":"left",m=_?"bottom":"right",w=_?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[f]-h[f]-i.floating[g],x=h[f]-i.reference[f],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=$?$[w]:0;(!C||!await(a.isElement==null?void 0:a.isElement($)))&&(C=s.floating[w]||i.floating[g]);const S=b/2-x/2,E=C/2-v[g]/2-1,T=Qe(c[y],E),D=Qe(c[m],E),L=T,H=C-v[g]-D,k=C/2-v[g]/2+S,R=uo(L,k,H),N=!l.arrow&&It(o)!=null&&k!==R&&i.reference[g]/2-(k<L?T:D)-v[g]/2<0,I=N?k<L?k-L:k-H:0;return{[f]:h[f]+I,data:{[f]:R,centerOffset:k-R-I,...N&&{alignmentOffset:I}},reset:N}}}),yf=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:l,elements:d}=t,{mainAxis:p=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,..._}=Be(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=qe(o),m=Te(s),w=qe(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=h||(w||!v?[Wn(s)]:lf(s)),$=g!=="none";!h&&$&&x.push(...pf(s,v,g,b));const C=[s,...x],S=await l.detectOverflow(t,_),E=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&E.push(S[y]),c){const k=cf(o,a,b);E.push(S[k[0]],S[k[1]])}if(T=[...T,{placement:o,overflows:E}],!E.every(k=>k<=0)){var D,L;const k=(((D=i.flip)==null?void 0:D.index)||0)+1,R=C[k];if(R&&(!(c==="alignment"?m!==Te(R):!1)||T.every(z=>Te(z.placement)===m?z.overflows[0]>0:!0)))return{data:{index:k,overflows:T},reset:{placement:R}};let N=(L=T.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:L.placement;if(!N)switch(f){case"bestFit":{var H;const I=(H=T.filter(z=>{if($){const G=Te(z.placement);return G===m||G==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(G=>G>0).reduce((G,xe)=>G+xe,0)]).sort((z,G)=>z[1]-G[1])[0])==null?void 0:H[0];I&&(N=I);break}case"initialPlacement":N=s;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Xi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ji(e){return af.some(t=>e[t]>=0)}const bf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Be(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=Xi(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ji(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),s=Xi(a,n.floating);return{data:{escapedOffsets:s,escaped:Ji(s)}}}default:return{}}}}},ac=new Set(["left","top"]);async function wf(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=qe(n),s=It(n),l=Te(n)==="y",d=ac.has(a)?-1:1,p=i&&l?-1:1,c=Be(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*p,y:h*d}:{x:h*d,y:f*p}}const xf=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,l=await wf(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},$f=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:l={fn:y=>{let{x:m,y:w}=y;return{x:m,y:w}}},...d}=Be(e,t),p={x:n,y:r},c=await i.detectOverflow(t,d),h=Te(qe(o)),f=Vo(h);let g=p[f],v=p[h];if(a){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",w=g+c[y],b=g-c[m];g=uo(w,g,b)}if(s){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",w=v+c[y],b=v-c[m];v=uo(w,v,b)}const _=l.fn({...t,[f]:g,[h]:v});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[f]:a,[h]:s}}}}}},Cf=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:l=!0,crossAxis:d=!0}=Be(e,t),p={x:n,y:r},c=Te(o),h=Vo(c);let f=p[h],g=p[c];const v=Be(s,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const w=h==="y"?"height":"width",b=i.reference[h]-i.floating[w]+_.mainAxis,x=i.reference[h]+i.reference[w]-_.mainAxis;f<b?f=b:f>x&&(f=x)}if(d){var y,m;const w=h==="y"?"width":"height",b=ac.has(qe(o)),x=i.reference[c]-i.floating[w]+(b&&((y=a.offset)==null?void 0:y[c])||0)+(b?0:_.crossAxis),$=i.reference[c]+i.reference[w]+(b?0:((m=a.offset)==null?void 0:m[c])||0)-(b?_.crossAxis:0);g<x?g=x:g>$&&(g=$)}return{[h]:f,[c]:g}}}},Sf=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:l=()=>{},...d}=Be(e,t),p=await a.detectOverflow(t,d),c=qe(o),h=It(o),f=Te(o)==="y",{width:g,height:v}=i.floating;let _,y;c==="top"||c==="bottom"?(_=c,y=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,_=h==="end"?"top":"bottom");const m=v-p.top-p.bottom,w=g-p.left-p.right,b=Qe(v-p[_],m),x=Qe(g-p[y],w),$=!t.middlewareData.shift;let C=b,S=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=m),$&&!h){const T=se(p.left,0),D=se(p.right,0),L=se(p.top,0),H=se(p.bottom,0);f?S=g-2*(T!==0||D!==0?T+D:se(p.left,p.right)):C=v-2*(L!==0||H!==0?L+H:se(p.top,p.bottom))}await l({...t,availableWidth:S,availableHeight:C});const E=await a.getDimensions(s.floating);return g!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}};function Xn(){return typeof window<"u"}function jt(e){return sc(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(sc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sc(e){return Xn()?e instanceof Node||e instanceof ce(e).Node:!1}function be(e){return Xn()?e instanceof Element||e instanceof ce(e).Element:!1}function Ke(e){return Xn()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Qi(e){return!Xn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}function dn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Ef(e){return/^(table|td|th)$/.test(jt(e))}function Jn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Of=/transform|translate|scale|rotate|perspective|filter/,Tf=/paint|layout|strict|content/,at=e=>!!e&&e!=="none";let Lr;function Uo(e){const t=be(e)?we(e):e;return at(t.transform)||at(t.translate)||at(t.scale)||at(t.rotate)||at(t.perspective)||!zo()&&(at(t.backdropFilter)||at(t.filter))||Of.test(t.willChange||"")||Tf.test(t.contain||"")}function kf(e){let t=et(e);for(;Ke(t)&&!Mt(t);){if(Uo(t))return t;if(Jn(t))return null;t=et(t)}return null}function zo(){return Lr==null&&(Lr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Lr}function Mt(e){return/^(html|body|#document)$/.test(jt(e))}function we(e){return ce(e).getComputedStyle(e)}function Qn(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(jt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qi(e)&&e.host||De(e);return Qi(t)?t.host:t}function cc(e){const t=et(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&dn(t)?t:cc(t)}function Qt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ce(o);if(i){const s=po(a);return t.concat(a,a.visualViewport||[],dn(o)?o:[],s&&n?Qt(s):[])}else return t.concat(o,Qt(o,[],n))}function po(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lc(e){const t=we(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ke(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Hn(n)!==i||Hn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Bo(e){return be(e)?e:e.contextElement}function Ot(e){const t=Bo(e);if(!Ke(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=lc(t);let a=(i?Hn(n.width):n.width)/r,s=(i?Hn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Af=Ae(0);function uc(e){const t=ce(e);return!zo()||!t.visualViewport?Af:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Bo(e);let a=Ae(1);t&&(r?be(r)&&(a=Ot(r)):a=Ot(e));const s=Pf(i,n,r)?uc(i):Ae(0);let l=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,p=o.width/a.x,c=o.height/a.y;if(i){const h=ce(i),f=r&&be(r)?ce(r):r;let g=h,v=po(g);for(;v&&r&&f!==g;){const _=Ot(v),y=v.getBoundingClientRect(),m=we(v),w=y.left+(v.clientLeft+parseFloat(m.paddingLeft))*_.x,b=y.top+(v.clientTop+parseFloat(m.paddingTop))*_.y;l*=_.x,d*=_.y,p*=_.x,c*=_.y,l+=w,d+=b,g=ce(v),v=po(g)}}return Un({width:p,height:c,x:l,y:d})}function er(e,t){const n=Qn(e).scrollLeft;return t?t.left+n:ft(De(e)).left+n}function dc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-er(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Rf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=De(r),s=t?Jn(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Ae(1);const p=Ae(0),c=Ke(r);if((c||!c&&!i)&&((jt(r)!=="body"||dn(a))&&(l=Qn(r)),c)){const f=ft(r);d=Ot(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}const h=a&&!c&&!i?dc(a,l):Ae(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+p.x+h.x,y:n.y*d.y-l.scrollTop*d.y+p.y+h.y}}function Df(e){return Array.from(e.getClientRects())}function Mf(e){const t=De(e),n=Qn(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+er(e);const s=-n.scrollTop;return we(r).direction==="rtl"&&(a+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const ea=25;function Lf(e,t){const n=ce(e),r=De(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const p=zo();(!p||p&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const d=er(r);if(d<=0){const p=r.ownerDocument,c=p.body,h=getComputedStyle(c),f=p.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-c.clientWidth-f);g<=ea&&(i-=g)}else d<=ea&&(i+=d);return{width:i,height:a,x:s,y:l}}function Nf(e,t){const n=ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ke(e)?Ot(e):Ae(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,d=r*i.y;return{width:a,height:s,x:l,y:d}}function ta(e,t,n){let r;if(t==="viewport")r=Lf(e,n);else if(t==="document")r=Mf(De(e));else if(be(t))r=Nf(t,n);else{const o=uc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Un(r)}function fc(e,t){const n=et(e);return n===t||!be(n)||Mt(n)?!1:we(n).position==="fixed"||fc(n,t)}function If(e,t){const n=t.get(e);if(n)return n;let r=Qt(e,[],!1).filter(s=>be(s)&&jt(s)!=="body"),o=null;const i=we(e).position==="fixed";let a=i?et(e):e;for(;be(a)&&!Mt(a);){const s=we(a),l=Uo(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||dn(a)&&!l&&fc(e,a))?r=r.filter(p=>p!==a):o=s,a=et(a)}return t.set(e,r),r}function jf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Jn(t)?[]:If(t,this._c):[].concat(n),r],s=ta(t,a[0],o);let l=s.top,d=s.right,p=s.bottom,c=s.left;for(let h=1;h<a.length;h++){const f=ta(t,a[h],o);l=se(f.top,l),d=Qe(f.right,d),p=Qe(f.bottom,p),c=se(f.left,c)}return{width:d-c,height:p-l,x:c,y:l}}function Ff(e){const{width:t,height:n}=lc(e);return{width:t,height:n}}function Vf(e,t,n){const r=Ke(t),o=De(t),i=n==="fixed",a=ft(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ae(0);function d(){l.x=er(o)}if(r||!r&&!i)if((jt(t)!=="body"||dn(o))&&(s=Qn(t)),r){const f=ft(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&d();i&&!r&&o&&d();const p=o&&!r&&!i?dc(o,s):Ae(0),c=a.left+s.scrollLeft-l.x-p.x,h=a.top+s.scrollTop-l.y-p.y;return{x:c,y:h,width:a.width,height:a.height}}function Nr(e){return we(e).position==="static"}function na(e,t){if(!Ke(e)||we(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return De(e)===n&&(n=n.ownerDocument.body),n}function pc(e,t){const n=ce(e);if(Jn(e))return n;if(!Ke(e)){let o=et(e);for(;o&&!Mt(o);){if(be(o)&&!Nr(o))return o;o=et(o)}return n}let r=na(e,t);for(;r&&Ef(r)&&Nr(r);)r=na(r,t);return r&&Mt(r)&&Nr(r)&&!Uo(r)?n:r||kf(e)||n}const Hf=async function(e){const t=this.getOffsetParent||pc,n=this.getDimensions,r=await n(e.floating);return{reference:Vf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wf(e){return we(e).direction==="rtl"}const Uf={convertOffsetParentRelativeRectToViewportRelativeRect:Rf,getDocumentElement:De,getClippingRect:jf,getOffsetParent:pc,getElementRects:Hf,getClientRects:Df,getDimensions:Ff,getScale:Ot,isElement:be,isRTL:Wf};function hc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zf(e,t){let n=null,r;const o=De(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const d=e.getBoundingClientRect(),{left:p,top:c,width:h,height:f}=d;if(s||t(),!h||!f)return;const g=Sn(c),v=Sn(o.clientWidth-(p+h)),_=Sn(o.clientHeight-(c+f)),y=Sn(p),w={rootMargin:-g+"px "+-v+"px "+-_+"px "+-y+"px",threshold:se(0,Qe(1,l))||1};let b=!0;function x($){const C=$[0].intersectionRatio;if(C!==l){if(!b)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!hc(d,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return a(!0),i}function Bf(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:l=!1}=r,d=Bo(e),p=o||i?[...d?Qt(d):[],...t?Qt(t):[]]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=d&&s?zf(d,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(y=>{let[m]=y;m&&m.target===d&&f&&t&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),d&&!l&&f.observe(d),t&&f.observe(t));let g,v=l?ft(e):null;l&&_();function _(){const y=ft(e);v&&!hc(v,y)&&n(),v=y,g=requestAnimationFrame(_)}return n(),()=>{var y;p.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c==null||c(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const qf=xf,Kf=$f,Gf=yf,Yf=Sf,Zf=bf,ra=_f,Xf=Cf,Jf=(e,t,n)=>{const r=new Map,o={platform:Uf,...n},i={...o.platform,_c:r};return mf(e,t,{...o,platform:i})};var Pn=typeof document<"u"?Pe:M;function zn(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(!zn(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)&&!zn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oa(e,t){const n=vc(e);return Math.round(t*n)/n}function ia(e){const t=A(e);return Pn(()=>{t.current=e}),t}function Qf(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:l,open:d}=e,[p,c]=P({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=P(r);zn(h,r)||f(r);const[g,v]=P(null),[_,y]=P(null),m=V(I=>{I!==$.current&&($.current=I,v(I))},[]),w=V(I=>{I!==C.current&&(C.current=I,y(I))},[]),b=i||g,x=a||_,$=A(null),C=A(null),S=A(p),E=l!=null,T=ia(l),D=ia(o),L=V(()=>{if(!$.current||!C.current)return;const I={placement:t,strategy:n,middleware:h};D.current&&(I.platform=D.current),Jf($.current,C.current,I).then(z=>{const G={...z,isPositioned:!0};H.current&&!zn(S.current,G)&&(S.current=G,cn(()=>{c(G)}))})},[h,t,n,D]);Pn(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[d]);const H=A(!1);Pn(()=>(H.current=!0,()=>{H.current=!1}),[]),Pn(()=>{if(b&&($.current=b),x&&(C.current=x),b&&x){if(T.current)return T.current(b,x,L);L()}},[b,x,L,T,E]);const k=B(()=>({reference:$,floating:C,setReference:m,setFloating:w}),[m,w]),R=B(()=>({reference:b,floating:x}),[b,x]),N=B(()=>{const I={position:n,left:0,top:0};if(!R.floating)return I;const z=oa(R.floating,p.x),G=oa(R.floating,p.y);return s?{...I,transform:"translate("+z+"px, "+G+"px)",...vc(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:G}},[n,s,R.floating,p.x,p.y]);return B(()=>({...p,update:L,refs:k,elements:R,floatingStyles:N}),[p,L,k,R,N])}const ep=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?ra({element:r.current,padding:o}).fn(n):{}:r?ra({element:r,padding:o}).fn(n):{}}}},tp=(e,t)=>({...qf(e),options:[e,t]}),np=(e,t)=>({...Kf(e),options:[e,t]}),rp=(e,t)=>({...Xf(e),options:[e,t]}),op=(e,t)=>({...Gf(e),options:[e,t]}),ip=(e,t)=>({...Yf(e),options:[e,t]}),ap=(e,t)=>({...Zf(e),options:[e,t]}),sp=(e,t)=>({...ep(e),options:[e,t]});function cp(e){const[t,n]=P(void 0);return Dt(()=>{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 l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;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 gc="Popper",[mc,_c]=jo(gc),[lp,yc]=mc(gc),up=e=>{const{__scopePopper:t,children:n}=e,[r,o]=P(null);return O(lp,{scope:t,anchor:r,onAnchorChange:o},n)},dp="PopperAnchor",fp=K((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=yc(dp,n),a=A(null),s=Re(t,a);return M(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:O(nt.div,q({},o,{ref:s}))}),bc="PopperContent",[pp,N_]=mc(bc),hp=K((e,t)=>{var n,r,o,i,a,s,l,d;const{__scopePopper:p,side:c="bottom",sideOffset:h=0,align:f="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:_=!0,collisionBoundary:y=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,S=yc(bc,p),[E,T]=P(null),D=Re(t,mt=>T(mt)),[L,H]=P(null),k=cp(L),R=(n=k==null?void 0:k.width)!==null&&n!==void 0?n:0,N=(r=k==null?void 0:k.height)!==null&&r!==void 0?r:0,I=c+(f!=="center"?"-"+f:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},G=Array.isArray(y)?y:[y],xe=G.length>0,ht={padding:z,boundary:G.filter(vp),altBoundary:xe},{refs:Ge,floatingStyles:$e,placement:vt,isPositioned:Ye,middlewareData:ge}=Qf({strategy:"fixed",placement:I,whileElementsMounted:(...mt)=>Bf(...mt,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[tp({mainAxis:h+N,alignmentAxis:g}),_&&np({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?rp():void 0,...ht}),_&&op({...ht}),ip({...ht,apply:({elements:mt,rects:W,availableWidth:Z,availableHeight:X})=>{const{width:J,height:ue}=W.reference,ne=mt.floating.style;ne.setProperty("--radix-popper-available-width",`${Z}px`),ne.setProperty("--radix-popper-available-height",`${X}px`),ne.setProperty("--radix-popper-anchor-width",`${J}px`),ne.setProperty("--radix-popper-anchor-height",`${ue}px`)}}),L&&sp({element:L,padding:v}),gp({arrowWidth:R,arrowHeight:N}),b&&ap({strategy:"referenceHidden",...ht})]}),[Ce,ot]=wc(vt),gt=Je($);Dt(()=>{Ye&&(gt==null||gt())},[Ye,gt]);const Ut=(o=ge.arrow)===null||o===void 0?void 0:o.x,sr=(i=ge.arrow)===null||i===void 0?void 0:i.y,cr=((a=ge.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[it,pn]=P();return Dt(()=>{E&&pn(window.getComputedStyle(E).zIndex)},[E]),O("div",{ref:Ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...$e,transform:Ye?$e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(s=ge.transformOrigin)===null||s===void 0?void 0:s.x,(l=ge.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},O(pp,{scope:p,placedSide:Ce,onArrowChange:H,arrowX:Ut,arrowY:sr,shouldHideArrow:cr},O(nt.div,q({"data-side":Ce,"data-align":ot},C,{ref:D,style:{...C.style,animation:Ye?void 0:"none",opacity:(d=ge.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function vp(e){return e!==null}const gp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:d}=t,c=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[g,v]=wc(s),_={start:"0%",center:"50%",end:"100%"}[v],y=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,m=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",b="";return g==="bottom"?(w=c?_:`${y}px`,b=`${-f}px`):g==="top"?(w=c?_:`${y}px`,b=`${l.floating.height+f}px`):g==="right"?(w=`${-f}px`,b=c?_:`${m}px`):g==="left"&&(w=`${l.floating.width+f}px`,b=c?_:`${m}px`),{data:{x:w,y:b}}}});function wc(e){const[t,n="center"]=e.split("-");return[t,n]}const mp=up,_p=fp,yp=hp,xc="Popover",[$c,I_]=jo(xc,[_c]),qo=_c(),[bp,Ft]=$c(xc),wp=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=qo(t),l=A(null),[d,p]=P(!1),[c=!1,h]=Ns({prop:r,defaultProp:o,onChange:i});return O(mp,s,O(bp,{scope:t,contentId:Tn(),triggerRef:l,open:c,onOpenChange:h,onOpenToggle:V(()=>h(f=>!f),[h]),hasCustomAnchor:d,onCustomAnchorAdd:V(()=>p(!0),[]),onCustomAnchorRemove:V(()=>p(!1),[]),modal:a},n))},xp="PopoverTrigger",$p=K((e,t)=>{const{__scopePopover:n,...r}=e,o=Ft(xp,n),i=qo(n),a=Re(t,o.triggerRef),s=O(nt.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ec(o.open)},r,{ref:a,onClick:ye(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:O(_p,q({asChild:!0},i),s)}),Cc="PopoverPortal",[Cp,Sp]=$c(Cc,{forceMount:void 0}),Ep=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Ft(Cc,t);return O(Cp,{scope:t,forceMount:n},O(Nt,{present:n||i.open},O(Hs,{asChild:!0,container:o},r)))},en="PopoverContent",Op=K((e,t)=>{const n=Sp(en,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Ft(en,e.__scopePopover);return O(Nt,{present:r||i.open},i.modal?O(Tp,q({},o,{ref:t})):O(kp,q({},o,{ref:t})))}),Tp=K((e,t)=>{const n=Ft(en,e.__scopePopover),r=A(null),o=Re(t,r),i=A(!1);return M(()=>{const a=r.current;if(a)return Qs(a)},[]),O(Xs,{as:Yn,allowPinchZoom:!0},O(Sc,q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,d=s.button===2||l;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ye(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),kp=K((e,t)=>{const n=Ft(en,e.__scopePopover),r=A(!1),o=A(!1);return O(Sc,q({},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 l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Sc=K((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:p,...c}=e,h=Ft(en,n),f=qo(n);return Ws(),O(Fs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(Is,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1)},O(yp,q({"data-state":Ec(h.open),role:"dialog",id:h.contentId},f,c,{ref:t,style:{...c.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 Ec(e){return e?"open":"closed"}const Ap=wp,Pp=$p,Rp=Ep,Dp=Op,aa=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},Mp=(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=aa(r.value),a=aa(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},fn=ve({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}}),Oc=ve({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"}}),Tc=ve({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"}}}),kc=ve({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}}),Lp=ve({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"}}}),Np=({children:e,colorScheme:t})=>u("span",{class:Lp({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),Ip=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},jp=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},Fp=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Vp=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=oe(),s=an(n()),l=B(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const f=s.data[t.key]??[];return Object.fromEntries(f.map(g=>[g.value,g.jobs]))}default:$t(s)}},[s,t.key]),d=Ac(e),p=d.length>0,[c,h]=P();return u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.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:c,onInput:f=>h(f.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return u(Xe,{error:new Error(a("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return u("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((f,g)=>u("div",{style:{animationDelay:g*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},g))});case"revalidating":case"loaded":{const f=s.data[t.key]??[],g=c&&c.length>1?f.filter(y=>y.label.toLowerCase().includes(c.toLowerCase())):f,v=[];for(const y of g){if(y.label.length<1)continue;const m={...y,results:Fp(l,y),disabled:jp(l,y)};switch(t.results){case"only-available":m.disabled===!1&&v.push(m);break;default:v.push(m)}}return v.find(y=>!y.disabled)?u("ul",{class:Oc(),children:Mp(v,t.sortSuggestions).map(y=>{const m=d.includes(y.value);return u("li",{class:Tc({type:"line"}),children:u("button",{type:"button",disabled:y.disabled,"data-filter":!0,"data-current-value":m?"true":void 0,onClick:()=>{switch(e.select){case"many":{const w=Ip(d,y.value);o({select:"many",value:w});break}case"one":o({select:"one",value:m?void 0:y.value});break;default:$t(e)}},class:kc({active:m,disabled:y.disabled}),children:[u("span",{class:"max-w-full truncate",children:y.label})," ",u(Np,{colorScheme:m?"accentStrong":"neutralStrong",children:y.results})]})},y.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:a("no_filter_options_available")})}default:$t(s)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:p&&u("button",{type:"button",class:We({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(ee,{"aria-hidden":!0,name:"x"})," ",a("clear")]})}),e.select==="many"&&r&&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:[d.length," ",a("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:We({variant:p?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(p?"done":"close")},p?"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"},la=ve({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"}}}),ua=ve({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"}}}),Ac=e=>typeof e.value=="string"?[e.value]:e.value??[],Hp=({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 min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},Wp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:l})=>{const d=Gc(r.key,ca)?ca[r.key]:void 0,p=r.icon??d??"filter",c=Ac(t),h=c.length>0,f=Ms("(pointer: coarse)"),g=u(F,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(ee,{"aria-hidden":!0,class:"flex-none",name:p}),u("span",{class:"truncate",children:r.label})]}),u(ee,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(Hp,{selectedValues:c})]}),v=u(Vp,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?u(ef,{open:e,onOpenChange:n,children:[u(tf,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:la({state:e||h?"active":"default"}),onTouchStart:Up,children:g}),u(nf,{children:u("div",{class:"inploi-job-search","data-widget-id":l,children:[u(rf,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(of,{class:ua({mode:"mobile",class:oo(s)}),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(ee,{name:p,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),v]})]})})]}):u(Ap,{open:e,onOpenChange:_=>n(_),modal:f,children:[u(Pp,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:la({state:e||h?"active":"default"}),children:g}),u(Rp,{children:u("div",{class:"inploi-job-search","data-widget-id":l,children:u(Dp,{side:"bottom",sideOffset:sa,align:"center",collisionPadding:sa,class:ua({mode:"desktop",class:oo(s)}),children:v})})})]})};function Up(){}const zp=(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}},Bp=({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:$t(e)}},qp=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s,i18n:l})=>{const{t:d}=oe(),[p,c]=P(void 0),h=B(()=>({filters:Bn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),f=an(Xt(io({state:h,baseKey:"filters"}),()=>ai({rpcClient:o,state:h,t:d,locale:l?l.locale:void 0,fallbackLocale:l?l.fallbackLocale:void 0}),jn)),g=V(v=>()=>{const _={...t,filters:{...t.filters,[v]:h.filters[v]}};return Xt(io({state:_,baseKey:"filters"}),()=>ai({rpcClient:o,state:_,t:d,locale:l?l.locale:void 0,fallbackLocale:l?l.fallbackLocale:void 0}),jn)},[o,h.filters,t,d,l]);return f.queryState==="error"?u(Xe,{error:new Error(d("filters_loading_error"),{cause:f.error}),resetError:()=>f.swr.mutate()}):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(v=>v.hidden!==!0).map(v=>{const _=p===v.key,y=t.filters[v.key]??{select:v.select,value:void 0},m=h.filters[v.key];m&&zp(y,m);const w=$=>{const{newActiveKey:C,newValue:S}=Bp({property:v,activeKey:p,value:$??m,properties:e,appliedFilters:t.filters});return c(C),n(v.key,S)},b=$=>c($?v.key:void 0),x=g(v.key);return u(Zt,{Fallback:Xe,children:u(Wp,{unfilteredQuery:f,active:_,property:v,onActiveChange:b,value:y,useQuery:x,onValueChange:w,theme:i,widgetId:s})},v.key)}),u("button",{type:"button",class:We({variant:"neutral"}),onClick:r,children:d("reset")}),a?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:a.params.config.label})]})}):null]})},tn=e=>e*1609.34,ho=e=>e*1e3,Kp=()=>{const e=typeof document>"u"?"":document.documentElement.lang;if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return}},Pc=(e,t)=>new Intl.NumberFormat(Kp()??e,{style:"unit",unit:t==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Gp=(e,t,n)=>Pc(n,t).format(e/(t==="miles"?tn(1):ho(1)));function Yp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tr=Yp,Zp=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt,Xp=Zp,Jp=Xp,Qp=typeof self=="object"&&self&&self.Object===Object&&self,eh=Jp||Qp||Function("return this")(),nr=eh,th=nr,nh=function(){return th.Date.now()},rh=nh,oh=/\s/;function ih(e){for(var t=e.length;t--&&oh.test(e.charAt(t)););return t}var ah=ih,sh=ah,ch=/^\s+/;function lh(e){return e&&e.slice(0,sh(e)+1).replace(ch,"")}var uh=lh,dh=nr,fh=dh.Symbol,Ko=fh,da=Ko,Rc=Object.prototype,ph=Rc.hasOwnProperty,hh=Rc.toString,qt=da?da.toStringTag:void 0;function vh(e){var t=ph.call(e,qt),n=e[qt];try{e[qt]=void 0;var r=!0}catch{}var o=hh.call(e);return r&&(t?e[qt]=n:delete e[qt]),o}var gh=vh,mh=Object.prototype,_h=mh.toString;function yh(e){return _h.call(e)}var bh=yh,fa=Ko,wh=gh,xh=bh,$h="[object Null]",Ch="[object Undefined]",pa=fa?fa.toStringTag:void 0;function Sh(e){return e==null?e===void 0?Ch:$h:pa&&pa in Object(e)?wh(e):xh(e)}var Dc=Sh;function Eh(e){return e!=null&&typeof e=="object"}var Oh=Eh,Th=Dc,kh=Oh,Ah="[object Symbol]";function Ph(e){return typeof e=="symbol"||kh(e)&&Th(e)==Ah}var rr=Ph,Rh=uh,ha=tr,Dh=rr,va=0/0,Mh=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,Nh=/^0o[0-7]+$/i,Ih=parseInt;function jh(e){if(typeof e=="number")return e;if(Dh(e))return va;if(ha(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ha(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rh(e);var n=Lh.test(e);return n||Nh.test(e)?Ih(e.slice(2),n?2:8):Mh.test(e)?va:+e}var Fh=jh,Vh=tr,Ir=rh,ga=Fh,Hh="Expected a function",Wh=Math.max,Uh=Math.min;function zh(e,t,n){var r,o,i,a,s,l,d=0,p=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(Hh);t=ga(t)||0,Vh(n)&&(p=!!n.leading,c="maxWait"in n,i=c?Wh(ga(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f($){var C=r,S=o;return r=o=void 0,d=$,a=e.apply(S,C),a}function g($){return d=$,s=setTimeout(y,t),p?f($):a}function v($){var C=$-l,S=$-d,E=t-C;return c?Uh(E,i-S):E}function _($){var C=$-l,S=$-d;return l===void 0||C>=t||C<0||c&&S>=i}function y(){var $=Ir();if(_($))return m($);s=setTimeout(y,v($))}function m($){return s=void 0,h&&r?f($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),d=0,r=l=o=s=void 0}function b(){return s===void 0?a:m(Ir())}function x(){var $=Ir(),C=_($);if(r=arguments,o=this,l=$,C){if(s===void 0)return g(l);if(c)return clearTimeout(s),s=setTimeout(y,t),f(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=w,x.flush=b,x}var Bh=zh;const qh=Mo(Bh),vo="|",Mc=(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(vo)?r.defaultValue=o.split(vo):r.defaultValue=o}}}),n},Lc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},Nc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},Kh=({searchParams:e})=>({properties:t})=>({filters:Bn(Mc(t,e),"defaultValue"),mode:Lc(e),geo:Ic(e),page:Rn(e.get("page"))??1,view:Nc(e),query:e.get("query")??""}),Gh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=qn({filters:e.filters,query:"",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(vo)):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")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},Rn=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},Ic=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=Rn(t),i=Rn(n),a=Rn(r)??tn(go);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?tn(go):a}},jc=(e,t=1e3)=>{const[n,r]=P(e),o=B(()=>qh(i=>r(i),t),[t]);return M(()=>{o(e)},[e,o]),n},Yh=K(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onEnter:a,onQueryChange:s,onBlur:l,onFocus:d,inputProps:p,menuProps:c,query:h},f)=>{const[g,v]=P(!1),[_,y]=P(),{t:m}=oe();M(()=>{var b;y((b=o[0])==null?void 0:b.id)},[o]);const w=b=>{i(b),v(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:f,disabled:e,"data-active":g?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:fn({size:"md"}),onFocus:()=>{d==null||d(),v(!0)},onBlur:()=>{window.setTimeout(()=>{l==null||l(),v(!1)},100)},value:h,onChange:b=>s(b.currentTarget.value),onKeyDown:b=>{switch(v(!0),b.key){case"ArrowDown":case"ArrowUp":{const x=b.key==="ArrowDown"?1:-1;b.preventDefault();const $=o.findIndex(S=>S.id===_);if($===-1)return;const C=o[$+x]??o[b.key==="ArrowDown"?0:o.length-1];if(!C)return;y(C.id);break}case"Enter":b.preventDefault(),a(_)}},...p}),!t&&g&&!e&&o.length>0?u("ul",{className:Oc({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:b=>b.preventDefault(),...c,children:t?u("div",{role:"alert",children:m("geo_suggestions_error")}):o.map(b=>u("li",{class:Tc({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>y(b.id),class:kc({active:b.id===_,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(b.id),onKeyDown:x=>{x.key==="Enter"&&w(b.id)},children:b.label})},b.id))}):null]})}),Zh=1e4;class Fc extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const Xh=({signal:e,timeoutMs:t})=>new Promise((n,r)=>{if(e.aborted){r(new DOMException("Aborted","AbortError"));return}const o=setTimeout(()=>r(new Fc),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})}),Jh=1,Qh=3,ev=e=>{if(e instanceof DOMException&&e.name==="AbortError")return null;if(e instanceof Fc)return"geo_error_timeout";const t=typeof e=="object"&&e!==null&&"code"in e?e.code:void 0;return t===Jh?"geo_error_permission_denied":t===Qh?"geo_error_timeout":"geo_error_position_unavailable"},tv=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,nv=({onLocate:e,onError:t,signal:n})=>{const[r,o]=P("idle"),[i,a]=P(null),{t:s}=oe(),l=p=>{o("idle"),a(p),e(p)},d=p=>{const c=ev(p);if(!c)return o("idle");o("error"),t(s(c))};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(r!=="loading"){if(i)return l(i);if(!tv())return d(void 0);o("loading"),Xh({signal:n,timeoutMs:Zh}).then(p=>l({lat:p.latitude,lng:p.longitude})).catch(d)}},"data-state":r,class:We({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),children:u(ee,{name:"target-location"})})},Tt=ve({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}}),rv="https://api.mapbox.com/search/geocode/v6/forward",ov="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",iv=e=>atob(e).split("").reverse().join(""),av=pe({features:on(Ve(pe({properties:pe({mapbox_id:Y(),place_formatted:ct(Y()),name_preferred:ct(Y(),"Untitled location"),coordinates:Ve(pe({latitude:fe(),longitude:fe()}),Fe(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),Fe(e=>e.properties)))}),sv=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),ma=async e=>{if(!e)return[];const t=new URL(rv);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",iv(ov));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=Ga(av,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return sv(o,i=>i.name_preferred+i.place_formatted)},cv=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=oe(),[a,s]=P(""),[l,d]=P(),p=jc(a,500),[c,h]=P(new AbortController),f=Xt(p,ma,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:g,queryState:v,error:_}=an(f),y=A(0),[m,w]=P("view"),b=A(null),x=A(null),$=A(null),C=A(!1);M(()=>{var T,D;m==="edit"&&((T=b.current)==null||T.focus()),m==="view"&&n&&C.current&&(C.current=!1,(D=$.current)==null||D.focus())},[m,n]);const S=(T,D)=>{var L;y.current++,C.current=((L=x.current)==null?void 0:L.contains(document.activeElement))??!1,e(T),d(D),s(""),w("view")};return u("div",{ref:x,class:"relative flex-1",children:[m==="view"&&n?u("button",{ref:$,"aria-label":`${i("geo_search_placeholder")}: ${l??i("location_provided")}`,type:"button",class:fn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{w("edit")},children:u("div",{class:Tt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:l??i("location_provided")})}):u(Yh,{ref:b,error:_,query:a,name:"location-search",onQueryChange:T=>{y.current++,s(T),o(void 0)},onFocus:()=>{c.abort(),h(new AbortController)},onBlur:()=>{const T=b.current;if(!(!T||document.activeElement===T)){if(w("view"),n)return s("");T.value.trim()&&o(i("geo_choose_location"))}},onItemSelect:T=>{if(v!=="loaded")return;const D=g.find(L=>L.mapbox_id===T);D&&S(D.coordinates,D.name_preferred)},onEnter:async T=>{const D=a.trim();if(!D)return;const L=++y.current;try{const H=p===a&&v==="loaded"?g:await ma(D);if(L!==y.current)return;const k=H.find(R=>R.mapbox_id===T)??H[0];if(k)return S(k.coordinates,k.name_preferred);o(i("geo_no_match"))}catch{if(L!==y.current)return;o(i("geo_suggestions_error"))}},inputPlaceholder:i("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(g==null?void 0:g.map(T=>({id:T.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:T.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:T.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(nv,{onLocate:T=>S(T,i("geo_my_location")),onError:o,signal:c.signal}):u("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{y.current++,s(""),o(void 0),d(void 0),t({radius:r,type:"provided"}),w("edit"),b.current&&(b.current.value="",b.current.focus())},class:We({variant:"neutral",size:"lg",icon:"only"}),children:u(ee,{name:"x"})})})]})},lv=[.25,.5,1,3,5,10,15,20,30,40],uv=[.5,1,3,5,10,15,25,50,100],go=20,dv=25,fv=({value:e,onValueChange:t,distanceUnit:n="miles"})=>{const{t:r,locale:o}=oe(),i=Gn(),[a,s]=P(),l=B(()=>Pc(o,n),[o,n]),d=n==="miles"?tn(go):ho(dv),p=(e==null?void 0:e.type)==="provided"?e.radius:d,c=(e==null?void 0:e.type)==="provided"?e.coords:void 0,h=n==="miles"?lv.map(f=>({value:tn(f),label:l.format(f)})):uv.map(f=>({value:ho(f),label:l.format(f)}));return u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"flex flex-col gap-2 md:flex-row",children:[u(cv,{coords:c,radius:p,onValueChange:t,onSelect:f=>{s(void 0),t({type:"provided",radius:p,coords:f})},onError:s}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:i,children:r("geo_range_label")}),u("select",{id:i,name:"radius",class:fn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!c,value:c?p:"",onChange:f=>{s(void 0),t({type:"provided",coords:c,radius:Number(f.currentTarget.value)})},children:[c?null:u("option",{value:"",children:r("geo_any_distance")}),h.map(f=>u("option",{value:f.value,class:"truncate",children:f.label},f.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(ee,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(ee,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},pv=2,hv=({value:e,onValueChange:t})=>{const[n,r]=P(e??""),o=n!==""&&n===e,{t:i}=oe();return M(()=>{r(e??"")},[e]),M(()=>{let a=n.trim();if(a.length<=pv&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),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(ee,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:Pt({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:fn({hasValue:o,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:i("type_to_search_jobs"),value:n,onChange:a=>{r(a.currentTarget.value)}}),u("button",{type:"button",class:We({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:u(ee,{name:"x"})})]})})},vv=({intervalMs:e,strings:t,class:n})=>{const[r,o]=P(0),[i,a]=P(!0),s=[...t,t[0]];return M(()=>{r===s.length&&(a(!1),o(0));const l=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(l)},[r,s.length,e]),u("div",{className:Pt("relative h-full w-full overflow-hidden",n),children:u("div",{className:Pt("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((l,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:l},d))})})},gv=(e,t)=>{M(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},_a=3,mv=({value:e,onValueChange:t,options:n})=>{const[r,o]=P(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=oe(),l=i.split("");M(()=>{o(e??"")},[e]);const[d,p]=P(0),c=A(null);return gv(c,h=>{h.target instanceof HTMLInputElement&&p(h.target.scrollLeft)}),M(()=>{let h=r.trim();if(h.length<=_a&&(h=null),h===null){t("");return}const f=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(f)},[r,t]),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(ee,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:Pt("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!a,"text-copy-accent-icon":a})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:c,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:fn({hasValue:a,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:r,onChange:h=>{const f=h.currentTarget.value.trim();o(f)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=_a)return;h.preventDefault(),t(r)}}}),u("div",{"data-synced":a,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:i.length>0?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-d}px)`},children:l.map((h,f)=>u("span",{style:{animationDelay:`${f*300/l.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+f))}):n!=null&&n.suggestions?u(vv,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:We({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o(""),t("")},children:u(ee,{name:"x"})})]}),u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var _v=Array.isArray,Go=_v,yv=Go,bv=rr,wv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xv=/^\w*$/;function $v(e,t){if(yv(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bv(e)?!0:xv.test(e)||!wv.test(e)||t!=null&&e in Object(t)}var Cv=$v,Sv=Dc,Ev=tr,Ov="[object AsyncFunction]",Tv="[object Function]",kv="[object GeneratorFunction]",Av="[object Proxy]";function Pv(e){if(!Ev(e))return!1;var t=Sv(e);return t==Tv||t==kv||t==Ov||t==Av}var Rv=Pv,Dv=nr,Mv=Dv["__core-js_shared__"],Lv=Mv,jr=Lv,ya=function(){var e=/[^.]+$/.exec(jr&&jr.keys&&jr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nv(e){return!!ya&&ya in e}var Iv=Nv,jv=Function.prototype,Fv=jv.toString;function Vv(e){if(e!=null){try{return Fv.call(e)}catch{}try{return e+""}catch{}}return""}var Hv=Vv,Wv=Rv,Uv=Iv,zv=tr,Bv=Hv,qv=/[\\^$.*+?()[\]{}|]/g,Kv=/^\[object .+?Constructor\]$/,Gv=Function.prototype,Yv=Object.prototype,Zv=Gv.toString,Xv=Yv.hasOwnProperty,Jv=RegExp("^"+Zv.call(Xv).replace(qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qv(e){if(!zv(e)||Uv(e))return!1;var t=Wv(e)?Jv:Kv;return t.test(Bv(e))}var eg=Qv;function tg(e,t){return e==null?void 0:e[t]}var ng=tg,rg=eg,og=ng;function ig(e,t){var n=og(e,t);return rg(n)?n:void 0}var Vc=ig,ag=Vc,sg=ag(Object,"create"),or=sg,ba=or;function cg(){this.__data__=ba?ba(null):{},this.size=0}var lg=cg;function ug(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dg=ug,fg=or,pg="__lodash_hash_undefined__",hg=Object.prototype,vg=hg.hasOwnProperty;function gg(e){var t=this.__data__;if(fg){var n=t[e];return n===pg?void 0:n}return vg.call(t,e)?t[e]:void 0}var mg=gg,_g=or,yg=Object.prototype,bg=yg.hasOwnProperty;function wg(e){var t=this.__data__;return _g?t[e]!==void 0:bg.call(t,e)}var xg=wg,$g=or,Cg="__lodash_hash_undefined__";function Sg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$g&&t===void 0?Cg:t,this}var Eg=Sg,Og=lg,Tg=dg,kg=mg,Ag=xg,Pg=Eg;function Vt(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])}}Vt.prototype.clear=Og;Vt.prototype.delete=Tg;Vt.prototype.get=kg;Vt.prototype.has=Ag;Vt.prototype.set=Pg;var Rg=Vt;function Dg(){this.__data__=[],this.size=0}var Mg=Dg;function Lg(e,t){return e===t||e!==e&&t!==t}var Ng=Lg,Ig=Ng;function jg(e,t){for(var n=e.length;n--;)if(Ig(e[n][0],t))return n;return-1}var ir=jg,Fg=ir,Vg=Array.prototype,Hg=Vg.splice;function Wg(e){var t=this.__data__,n=Fg(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Hg.call(t,n,1),--this.size,!0}var Ug=Wg,zg=ir;function Bg(e){var t=this.__data__,n=zg(t,e);return n<0?void 0:t[n][1]}var qg=Bg,Kg=ir;function Gg(e){return Kg(this.__data__,e)>-1}var Yg=Gg,Zg=ir;function Xg(e,t){var n=this.__data__,r=Zg(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jg=Xg,Qg=Mg,em=Ug,tm=qg,nm=Yg,rm=Jg;function Ht(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])}}Ht.prototype.clear=Qg;Ht.prototype.delete=em;Ht.prototype.get=tm;Ht.prototype.has=nm;Ht.prototype.set=rm;var om=Ht,im=Vc,am=nr,sm=im(am,"Map"),cm=sm,wa=Rg,lm=om,um=cm;function dm(){this.size=0,this.__data__={hash:new wa,map:new(um||lm),string:new wa}}var fm=dm;function pm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hm=pm,vm=hm;function gm(e,t){var n=e.__data__;return vm(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ar=gm,mm=ar;function _m(e){var t=mm(this,e).delete(e);return this.size-=t?1:0,t}var ym=_m,bm=ar;function wm(e){return bm(this,e).get(e)}var xm=wm,$m=ar;function Cm(e){return $m(this,e).has(e)}var Sm=Cm,Em=ar;function Om(e,t){var n=Em(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Tm=Om,km=fm,Am=ym,Pm=xm,Rm=Sm,Dm=Tm;function Wt(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])}}Wt.prototype.clear=km;Wt.prototype.delete=Am;Wt.prototype.get=Pm;Wt.prototype.has=Rm;Wt.prototype.set=Dm;var Mm=Wt,Hc=Mm,Lm="Expected a function";function Yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Lm);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(Yo.Cache||Hc),n}Yo.Cache=Hc;var Nm=Yo,Im=Nm,jm=500;function Fm(e){var t=Im(e,function(r){return n.size===jm&&n.clear(),r}),n=t.cache;return t}var Vm=Fm,Hm=Vm,Wm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Um=/\\(\\)?/g,zm=Hm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Wm,function(n,r,o,i){t.push(o?i.replace(Um,"$1"):r||n)}),t}),Bm=zm;function qm(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 Km=qm,xa=Ko,Gm=Km,Ym=Go,Zm=rr,Xm=1/0,$a=xa?xa.prototype:void 0,Ca=$a?$a.toString:void 0;function Wc(e){if(typeof e=="string")return e;if(Ym(e))return Gm(e,Wc)+"";if(Zm(e))return Ca?Ca.call(e):"";var t=e+"";return t=="0"&&1/e==-Xm?"-0":t}var Jm=Wc,Qm=Jm;function e_(e){return e==null?"":Qm(e)}var t_=e_,n_=Go,r_=Cv,o_=Bm,i_=t_;function a_(e,t){return n_(e)?e:r_(e,t)?[e]:o_(i_(e))}var s_=a_,c_=rr,l_=1/0;function u_(e){if(typeof e=="string"||c_(e))return e;var t=e+"";return t=="0"&&1/e==-l_?"-0":t}var d_=u_,f_=s_,p_=d_;function h_(e,t){t=f_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[p_(t[n++])];return n&&n==r?e:void 0}var v_=h_,g_=v_;function m_(e,t,n){var r=e==null?void 0:g_(e,t);return r===void 0?n:r}var __=m_;const y_=Mo(__),Yt=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),Uc=ve({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}}),b_=ve({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"}}),Fr=({job:e,property:t})=>{if(!t)return null;const n=y_(e.raw,t.key);return t.transform?t.transform(n):n},w_=({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}),Sa=e=>Array.isArray(e)?e:[e],x_=1e3*60*60*24,zc=({job:e,config:t,onJobClick:n,size:r,distanceUnit:o})=>{var _,y,m;const{t:i,locale:a}=oe(),s=e.distanceMeters===null?null:i("distance_away",{distance:Gp(e.distanceMeters,o??"miles",a)}),l=t.subheading?Fr({job:e,property:t.subheading}):null,d=t.infoTags.flatMap(w=>Sa(Fr({job:e,property:w}))).filter(Boolean),p=Sa((_=t.overrides)!=null&&_.salary?Fr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",h=(y=t.overrides)!=null&&y.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,f=t.newUnderDays??7,g=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-f*x_:!1,v=w=>{var b,x;n==null||n(e),(x=(b=t.overrides)==null?void 0:b.onClick)==null||x.call(b,w)};return u("a",{onMouseEnter:(m=t.overrides)==null?void 0:m.onMouseEnter,onClick:v,href:h,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:Uc(),children:[u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(w_,{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(ee,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:b_({size:r}),children:[e.title.trim(),g&&c!=="hide"&&u(F,{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")})]})]}),l?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:l}):null]}),c==="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:[s?u("p",{class:"text-style-job-card-info text-copy-job-info flex items-center gap-1",children:[u(ee,{name:"target-location",class:"size-4 flex-none","aria-hidden":!0}),s]}):null,u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:p.map((w,b)=>u("span",{class:Tt({variant:"monetaryWeak",size:"xs"}),children:w},b))}),d.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:d.map(w=>u("li",{class:Tt({size:"xs",class:"max-w-full truncate"}),children:w},w))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(ee,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(ee,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Zo=({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:Uc({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(Yt,{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(Yt,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(Yt,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:Tt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:Tt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:Tt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(ee,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},$_=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=oe(),i=Math.min(lt,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:lt}).map((a,s)=>u("li",{children:u(Zo,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:We({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})]})},C_=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:l,prioritySegment:d,i18n:p,distanceUnit:c})=>u(F,{children:Array.from({length:e.page}).map((h,f)=>{const g=f===e.page-1;return u(Zt,{Fallback:Xe,children:u(S_,{state:e,rpcClient:t,page:f+1,isFirst:f===0,isLast:g,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:l,prioritySegment:d,i18n:p,distanceUnit:c},f)},f)})}),Ea=({page:e})=>{const{t}=oe();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"})]})},S_=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:l,onJobClick:d,afterResults:p,prioritySegment:c,i18n:h,distanceUnit:f})=>{const{t:g}=oe(),v=n===1?s:void 0,{data:_,error:y,queryState:m,swr:w}=an(Xt(io({state:e,baseKey:n.toString()}),()=>Qa({rpcClient:t,state:e,page:n,t:g,prioritySegment:c,locale:h?h.locale:void 0,fallbackLocale:h?h.fallbackLocale:void 0}),{...jn,fallbackData:v}));switch(M(()=>{_&&r&&l&&l({totalCount:_.pagination.total})},[_,r,l]),m){case"idle":return null;case"loading":return u(F,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:u(Yt,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(Ea,{page:n}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:lt}).map((b,x)=>u("li",{children:u(Zo,{seed:x,animationDelay:(x-lt)*.1,config:a})},x))})]});case"error":return u(Xe,{error:new Error(g("jobs_loading_error"),{cause:y}),resetError:()=>w.mutate()});case"revalidating":case"loaded":{if(ka(_.pagination.current_page===n,"Received wrong page from server"),_.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(ee,{"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:g("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:g("no_jobs_found_description")})]})]});const b=_.pagination.last_page!==_.pagination.current_page,x=n*lt,$=Math.max(_.pagination.total-x,0),C=S=>{d(S,n)};return u(F,{children:[r?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:g("jobs_found",{count:_.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:p})]}):u(Ea,{page:n}),u("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:_.results.map(S=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:m==="revalidating"?.33:1},children:u(zc,{job:S,onJobClick:C,config:a,distanceUnit:f})},S.id))}),b&&o&&u($_,{state:m,fetchNextPage:i,config:a,remainingItems:$})]})}default:$t(m)}},E_=Ro(()=>Promise.resolve().then(()=>require("./map-46694990.cjs")).then(e=>e.Map)),O_=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:l,distanceUnit:d})=>{var y,m;const{t:p}=oe(),[c,h]=P(new AbortController),f=Ms("(max-width: 767px)"),g=V(w=>{r(w),c.abort(),h(new AbortController)},[r,c]),v=an(Xt(["map",e],()=>bl({rpcClient:t,state:e,t:p,signal:c.signal,prioritySegment:s,locale:l?l.locale:void 0,fallbackLocale:l?l.fallbackLocale:void 0}),jn));if(v.queryState==="error")return u(Xe,{error:new Error(p("jobs_loading_error"),{cause:v.error}),resetError:()=>v.swr.mutate()});const _=v.queryState==="loaded"||v.queryState==="revalidating";return u(F,{children:[u("div",{class:"flex items-center gap-2",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:_?v.data.results.length!==0&&p("map_jobs_showing",{count:v.data.results.length}):u("div",{class:"animate-skeleton",children:u(Yt,{chars:8})})}),u("div",{class:"flex 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:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:_?u(Ct,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(E_,{config:n,mapData:v,autoFit:((y=e.geo)==null?void 0:y.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:[((m=v.data)==null?void 0:m.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(ee,{"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:p("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:p("no_jobs_found_description")})]})]}):null,_?v.data.results.map(w=>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(zc,{job:w,onJobClick:b=>i(b,1),config:a,size:f?"sm":void 0,distanceUnit:d})},w.id)):Array.from({length:6}).map((w,b)=>u("li",{children:u(Zo,{seed:b,animationDelay:(b-6)*.1,config:a})},b))]})]})]})},Oa=ve({base:"flex 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}}),T_=({value:e,onValueChange:t})=>{const{t:n}=oe();return u("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[u("button",{type:"button","aria-pressed":e==="list",class:Oa({active:e==="list"}),onClick:()=>t("list"),children:[u(ee,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:Oa({active:e==="map"}),onClick:()=>t("map"),children:[u(ee,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},k_=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(T_,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(C_,{afterResults:n,...e}):u(O_,{...e,afterResults:n})},Bn=(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:$t(r.select)}return n},{}),Dn=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)),Ta=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,A_=({rpcClient:e,properties:t,analytics:n,initialData:r,onStateChange:o,params:i})=>{var C,S,E,T,D,L,H;const{t:a}=oe(),s=A(null),l=B(()=>Bn(t,"defaultValue"),[t]),[d,p]=P(!0),[c,h]=P(()=>typeof i.initialState=="function"?i.initialState(i):i.initialState),[f,g]=P(0),{onJobClick:v,analyticsPaginate:_}=P_({appRef:s,analytics:n,state:c,hasInteracted:!d,totalCount:f,defaultFilters:l}),y=V(k=>{h(R=>{if(R.page===k)return R;const N={...R,page:k};return o==null||o(N),N}),_(k)},[_,o]),m=V(k=>{h(R=>{const N={...R,view:k};return o==null||o(N),N})},[o]),w=V(k=>{h(R=>{var z;if(!R.query&&!k||R.query===k)return R;p(!1);const N=Ta(R.geo),I={...R,query:k,geo:N,page:1,mode:(z=i.naturalLanguageSearch)!=null&&z.enabled?"vector":"query"};return o==null||o(I),I})},[o,(C=i.naturalLanguageSearch)==null?void 0:C.enabled]),b=V(k=>{p(!1),h(R=>{const N={...R,geo:k};return o==null||o(N),N})},[o]),x=V(()=>{h(k=>{const R={...k,filters:Bn(t,"defaultValue"),query:"",geo:void 0,page:1};return o==null||o(R),R})},[o,t]),$=B(()=>(e.environment,new Map),[e.environment]);return u(Cu,{value:{provider:()=>$},children:u("div",{ref:s,class:Pt("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(S=i.theme.accessibility)==null?void 0:S.reducedMotion},oo(i.theme)),children:[u(Zt,{Fallback:Xe,children:u("div",{class:"flex flex-col gap-2",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")}),(E=i.naturalLanguageSearch)!=null&&E.enabled?u(mv,{value:c.query,onValueChange:w,options:i.naturalLanguageSearch}):i.enableKeywordSearch?u(hv,{value:c.query,onValueChange:w}):null]}),(T=i.geolocation)!=null&&T.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(fv,{value:c.geo,distanceUnit:i.geolocation.distanceUnit,onValueChange:k=>{p(!1),h(R=>{const N={...R,geo:k,page:1};return o==null||o(N),N}),_(1)}})]}):null]})}),u(qp,{state:c,onFilterValueChange:(k,R)=>{p(!1),h(N=>{const I={...N.filters,[k]:R},z=Ta(N.geo),G={...N,filters:I,geo:z,page:1};return o==null||o(G),G}),_(1)},onResetFilters:x,properties:t,rpcClient:e,alerts:i.alerts,theme:i.theme,widgetId:i.widgetId,i18n:i.i18n})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(Zt,{Fallback:Xe,children:u(k_,{state:c,rpcClient:e,jobCardConfig:i.jobCard,mapConfig:i.map,initialData:d?r==null?void 0:r.jobs:void 0,onResultsUpdate:k=>{g(k.totalCount)},onJobClick:v,onPaginate:y,mode:(D=i.naturalLanguageSearch)!=null&&D.enabled?"vector":"query",onGeoChange:b,onViewChange:m,prioritySegment:(L=i.results)==null?void 0:L.prioritySegment,distanceUnit:(H=i.geolocation)==null?void 0:H.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 text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",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]})]})})},P_=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=V((d=1)=>({query:n.query,mode:n.mode,filters:Dn(n.filters),default_filters:Dn(r),total_count:o,page_size:lt,page:d}),[n.query,n.mode,n.filters,r,o]);return Su(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),M(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Dn(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,p)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(p)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.A=A;exports.ErrorBoundary=Zt;exports.IconSpritesheet=Dl;exports.J=At;exports.JOB_SEARCH_WIDGET_ID=dl;exports.JobSearch=A_;exports.K=wo;exports.TranslationProvider=Ol;exports.UnstyledErrorView=Pl;exports._=O;exports.commonjsGlobal=Kt;exports.createTFunction=Tl;exports.d=P;exports.defaultTerms=kl;exports.filtersToPayload=Dn;exports.generateColorThemeCss=Mu;exports.getDefaultExportFromCjs=Mo;exports.getGeolocationFromSearchParams=Ic;exports.getJobSearchResults=Qa;exports.getModeFromSearchParams=Lc;exports.getStatefulPropertiesFromSearchParams=Mc;exports.getViewFromSearchParams=Nc;exports.getWidgetStateFromSearchParams=Kh;exports.invariant=ka;exports.k=F;exports.setWidgetStateToSearchParams=Gh;exports.u=u;exports.useDebouncedValue=jc;exports.useTranslation=oe;exports.y=M;
|