@inploi/plugin-job-search 3.0.4 → 3.0.5

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