@inploi/plugin-job-search 5.0.0 → 5.0.2

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