1/*! For license information please see main.780799f5.js.LICENSE.txt */ 2(()=>{var e={783(e,t,n){"use strict";var a={};n.r(a),n.d(a,{hasBrowserEnv:()=>Cr,hasStandardBrowserEnv:()=>Sr,hasStandardBrowserWebWorkerEnv:()=>Mr,navigator:()=>Fr,origin:()=>Or});var r={};n.r(r),n.d(r,{boolean:()=>ok,booleanish:()=>lk,commaOrSpaceSeparated:()=>pk,commaSeparated:()=>mk,number:()=>dk,overloadedBoolean:()=>ck,spaceSeparated:()=>uk});var i={};n.r(i),n.d(i,{attentionMarkers:()=>BD,contentInitial:()=>HD,disable:()=>VD,document:()=>RD,flow:()=>LD,flowInitial:()=>PD,insideSpan:()=>ZD,string:()=>TD,text:()=>ID});var s={};n.r(s),n.d(s,{scaleBand:()=>$W,scaleDiverging:()=>eX,scaleDivergingLog:()=>tX,scaleDivergingPow:()=>aX,scaleDivergingSqrt:()=>rX,scaleDivergingSymlog:()=>nX,scaleIdentity:()=>KK,scaleImplicit:()=>KW,scaleLinear:()=>YK,scaleLog:()=>aG,scaleOrdinal:()=>GW,scalePoint:()=>XW,scalePow:()=>mG,scaleQuantile:()=>AG,scaleQuantize:()=>kG,scaleRadial:()=>fG,scaleSequential:()=>YQ,scaleSequentialLog:()=>KQ,scaleSequentialPow:()=>$Q,scaleSequentialQuantile:()=>XQ,scaleSequentialSqrt:()=>QQ,scaleSequentialSymlog:()=>GQ,scaleSqrt:()=>pG,scaleSymlog:()=>oG,scaleThreshold:()=>EG,scaleTime:()=>zQ,scaleUtc:()=>qQ,tickFormat:()=>UK});var o=n(950),l=n.t(o,2),c=n(352);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x(e,t,n){f(e,t),t.set(e,n)}function g(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function v(e,t){return e.get(g(e,t))}function b(e,t,n){return e.set(g(e,t),n),n}var y="undefined"===typeof window||"Deno"in globalThis;function j(){}function w(e,t){return"function"===typeof e?e(t):e}function N(e,t){const n=e.type,a=void 0===n?"all":n,r=e.exact,i=e.fetchStatus,s=e.predicate,o=e.queryKey,l=e.stale;if(o)if(r){if(t.queryHash!==k(o,t.options))return!1}else if(!D(t.queryKey,o))return!1;if("all"!==a){const e=t.isActive();if("active"===a&&!e)return!1;if("inactive"===a&&e)return!1}return("boolean"!==typeof l||t.isStale()===l)&&((!i||i===t.state.fetchStatus)&&!(s&&!s(t)))}function A(e,t){const n=e.exact,a=e.status,r=e.predicate,i=e.mutationKey;if(i){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(i))return!1}else if(!D(t.options.mutationKey,i))return!1}return(!a||t.state.status===a)&&!(r&&!r(t))}function k(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||E)(e)}function E(e){return JSON.stringify(e,(e,t)=>F(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function D(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!D(e[n],t[n])))}function _(e,t){if(e===t)return e;const n=C(e)&&C(t);if(n||F(e)&&F(t)){const a=n?e:Object.keys(e),r=a.length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let l=0;for(let c=0;c<s;c++){const r=n?c:i[c];(!n&&a.includes(r)||n)&&void 0===e[r]&&void 0===t[r]?(o[r]=void 0,l++):(o[r]=_(e[r],t[r]),o[r]===e[r]&&void 0!==e[r]&&l++)}return r===s&&l===r?e:o}return t}function C(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function F(e){if(!S(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!S(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function M(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?_(e,t):t}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=[...e,t];return n&&a.length>n?a.slice(1):a}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var H=Symbol();function P(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==H?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function L(e,t){f(e,t),t.add(e)}var T,I,Z,B,V,z,q=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()},r=e=>setTimeout(e,0);const i=a=>{t?e.push(a):r(()=>{n(a)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r(()=>{a(()=>
2{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];i(()=>{e(...n)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e},setScheduler:e=>{r=e}}}(),U=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},W=(T=new WeakMap,I=new WeakMap,Z=new WeakMap,class extends U{constructor(){super(),x(this,T,void 0),x(this,I,void 0),x(this,Z,void 0),b(Z,this,e=>{if(!y&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){v(I,this)||this.setEventListener(v(Z,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=v(I,this))||void 0===e||e.call(this),b(I,this,void 0))}setEventListener(e){var t;b(Z,this,e),null===(t=v(I,this))||void 0===t||t.call(this),b(I,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){v(T,this)!==e&&(b(T,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof v(T,this)?v(T,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),Y=new W,K=(B=new WeakMap,V=new WeakMap,z=new WeakMap,class extends U{constructor(){super(),x(this,B,!0),x(this,V,void 0),x(this,z,void 0),b(z,this,e=>{if(!y&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){v(V,this)||this.setEventListener(v(z,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=v(V,this))||void 0===e||e.call(this),b(V,this,void 0))}setEventListener(e){var t;b(z,this,e),null===(t=v(V,this))||void 0===t||t.call(this),b(V,this,e(this.setOnline.bind(this)))}setOnline(e){v(B,this)!==e&&(b(B,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return v(B,this)}}),G=new K;function $(e){return Math.min(1e3*2**e,3e4)}function Q(e){return"online"!==(null!==e&&void 0!==e?e:"online")||G.isOnline()}var X,J=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function ee(e){return e instanceof J}function te(e){let t,n,a,r=!1,i=0,s=!1;const o=new Promise((e,t)=>{n=e,a=t}),l=()=>Y.isFocused()&&("always"===e.networkMode||G.isOnline())&&e.canRun(),c=()=>Q(e.networkMode)&&e.canRun(),d=a=>{var r,i;s||(s=!0,null===(r=e.onSuccess)||void 0===r||r.call(e,a),null===(i=t)||void 0===i||i(),n(a))},u=n=>{var r,i;s||(s=!0,null===(r=e.onError)||void 0===r||r.call(e,n),null===(i=t)||void 0===i||i(),a(n))},m=()=>new Promise(n=>{var a;t=e=>{(s||l())&&n(e)},null===(a=e.onPause)||void 0===a||a.call(e)}).then(()=>{var n;(t=void 0,s)||(null===(n=e.onContinue)||void 0===n||n.call(e))}),p=()=>{if(s)return;let t;const n=0===i?e.initialPromise:void 0;try{t=null!==n&&void 0!==n?n:e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(d).catch(t=>{var n,a,o;if(s)return;const c=null!==(n=e.retry)&&void 0!==n?n:y?0:3,d=null!==(a=e.retryDelay)&&void 0!==a?a:$,h="function"===typeof d?d(i,t):d,f=!0===c||"number"===typeof c&&i<c||"function"===typeof c&&c(i,t);var x;!r&&f?(i++,null===(o=e.onFail)||void 0===o||o.call(e,i,t),(x=h,new Promise(e=>{setTimeout(e,x)})).then(()=>l()?void 0:m()).then(()=>{r?u(t):p()})):u(t)})};return{promise:o,cancel:t=>{var n;s||(u(new J(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),o},cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:c,start:()=>(c()?p():m().then(p),o)}}var ne,ae,re,ie,se,oe,le,ce,de=(X=new WeakMap,class{constructor(){x(this,X,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),function(e){return"number"===typeof e&&e>=0&&e!==1/0}(this.gcTime)&&b(X,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:y?1/0:3e5)}clearGcTimeout(){v(X,this)&&(clearTimeout(v(X,this)),b(X,this,void 0))}}),ue=(ne=new WeakMap,ae=new WeakMap,re=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,le=new WeakSet,class extends de{constructor(e){var t;super(),L(this,le),x(this,ne,void 0),x(this,ae,void 0),x(this,re,void 0),x(this,ie,void 0),x(this,se,void 0),x(this,oe,void 0),b(oe,this,!1),b(se,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],b(re,this,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,b(ne,this,function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==a&&void 0!==a?a:Date.now():0,error:null,errorUpdate
2Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:v(ne,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=v(ie,this))||void 0===e?void 0:e.promise}setOptions(e){this.options=h(h({},v(se,this)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||v(re,this).remove(this)}setData(e,t){const n=M(this.state.data,e,this.options);return g(le,this,me).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){g(le,this,me).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const a=null===(t=v(ie,this))||void 0===t?void 0:t.promise;return null===(n=v(ie,this))||void 0===n||n.cancel(e),a?a.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(ne,this))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"===typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=v(ie,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=v(ie,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),v(re,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(v(ie,this)&&(v(oe,this)?v(ie,this).cancel({revert:!0}):v(ie,this).cancelRetry()),this.scheduleGc()),v(re,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||g(le,this,me).call(this,{type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(v(ie,this))return v(ie,this).continueRetry(),v(ie,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(b(oe,this,!0),r.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=P(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return i(n),b(oe,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};var o;(i(s),null===(n=this.options.behavior)||void 0===n||n.onFetch(s,this),b(ae,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(a=s.fetchOptions)||void 0===a?void 0:a.meta))&&g(le,this,me).call(this,{type:"fetch",meta:null===(o=s.fetchOptions)||void 0===o?void 0:o.meta});const l=e=>{var t,n,a,r;(ee(e)&&e.silent||g(le,this,me).call(this,{type:"error",error:e}),ee(e))||(null===(t=(n=v(re,this).config).onError)||void 0===t||t.call(n,e,this),null===(a=(r=v(re,this).config).onSettled)||void 0===a||a.call(r,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return b(ie,this,te({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{var t,n,a,r;if(void 0!==e){try{this.setData(e)}catch(i){return void l(i)}null===(t=(n=v(re,this).config).onSuccess)||void 0===t||t.call(n,e,this),null===(a=(r=v(re,this).config).onSettled)||void 0===a||a.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error("".concat(this.queryHash," data is undefined")))},onError:l,onFail:(e,t)=>{g(le,this,me).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{g(le,this,me).call(this,{type:"pause"})},onContinue:()=>{g(le,this,me).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),v(ie,this).start()}});function me(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return h(h({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return h(h({},t),{},{fetchStatus:"paused"});case"continue":return h(h({},t),{},{fetchStatus:"fetching"});case"fetch":return h(h(h({},t),function(e,t){return h({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return h(h({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(a=e.dataUpdatedAt)&&void 0!==a?a:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const r=e.error;return ee(r)&&r.revert&&v(ae,this)?h(h({}
2,v(ae,this)),{},{fetchStatus:"idle"}):h(h({},t),{},{error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"});case"invalidate":return h(h({},t),{},{isInvalidated:!0});case"setState":return h(h({},t),e.state)}})(this.state),q.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),v(re,this).notify({query:this,type:"updated",action:e})})}var pe,he,fe,xe,ge,ve,be=(ce=new WeakMap,class extends U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),x(this,ce,void 0),this.config=e,b(ce,this,new Map)}build(e,t,n){var a;const r=t.queryKey,i=null!==(a=t.queryHash)&&void 0!==a?a:k(r,t);let s=this.get(i);return s||(s=new ue({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){v(ce,this).has(e.queryHash)||(v(ce,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=v(ce,this).get(e.queryHash);t&&(e.destroy(),t===e&&v(ce,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){q.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return v(ce,this).get(e)}getAll(){return[...v(ce,this).values()]}find(e){const t=h({exact:!0},e);return this.getAll().find(e=>N(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>N(e,t)):t}notify(e){q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){q.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){q.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),ye=(pe=new WeakMap,he=new WeakMap,fe=new WeakMap,xe=new WeakSet,class extends de{constructor(e){super(),L(this,xe),x(this,pe,void 0),x(this,he,void 0),x(this,fe,void 0),this.mutationId=e.mutationId,b(he,this,e.mutationCache),b(pe,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){v(pe,this).includes(e)||(v(pe,this).push(e),this.clearGcTimeout(),v(he,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){b(pe,this,v(pe,this).filter(t=>t!==e)),this.scheduleGc(),v(he,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){v(pe,this).length||("pending"===this.state.status?this.scheduleGc():v(he,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=v(fe,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;b(fe,this,te({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{g(xe,this,je).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{g(xe,this,je).call(this,{type:"pause"})},onContinue:()=>{g(xe,this,je).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(he,this).canRun(this)}));const n="pending"===this.state.status,a=!v(fe,this).canStart();try{var r,i,s,o,l,c,d,u;if(!n){var m,p,h,f;g(xe,this,je).call(this,{type:"pending",variables:e,isPaused:a}),await(null===(m=(p=v(he,this).config).onMutate)||void 0===m?void 0:m.call(p,e,this));const t=await(null===(h=(f=this.options).onMutate)||void 0===h?void 0:h.call(f,e));t!==this.state.context&&g(xe,this,je).call(this,{type:"pending",context:t,variables:e,isPaused:a})}const t=await v(fe,this).start();return await(null===(r=(i=v(he,this).config).onSuccess)||void 0===r?void 0:r.call(i,t,e,this.state.context,this)),await(null===(s=(o=this.options).onSuccess)||void 0===s?void 0:s.call(o,t,e,this.state.context)),await(null===(l=(c=v(he,this).config).onSettled)||void 0===l?void 0:l.call(c,t,null,this.state.variables,this.state.context,this)),await(null===(d=(u=this.options).onSettled)||void 0===d?void 0:d.call(u,t,null,e,this.state.context)),g(xe,this,je).call(this,{type:"success",data:t}),t}catch(D){try{var x,y,j,w,N,A,k,E;throw await(null===(x=(y=v(he,this).config).onError)||void 0===x?void 0:x.call(y,D,e,this.state.context,this)),await(null===(j=(w=this.options).onError)||void 0===j?void 0:j.call(w,D,e,this.state.context)),await(null===(N=(A=v(he,this).config).onSettled)||void 0===N?void 0:N.call(A,void 0,D,this.state.variables,this.state.context,this)),await(null===(k=(E=this.options).onSettled)||void 0===k?void 0:k.call(E,void 0,D,e,this.state.context)),D}finally{g(xe,this,je).call(this,{type:"error",error:D})}}finally{v(he,this).runNext(this)}}});function je(e){this.state=(t=>{switch(e.type){case"failed":return h(h({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return h(h({},t),{},{isPaused:!0});case"continue":return h(h({},t),{},{isPaused:!1});
2case"pending":return h(h({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return h(h({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return h(h({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),q.batch(()=>{v(pe,this).forEach(t=>{t.onMutationUpdate(e)}),v(he,this).notify({mutation:this,type:"updated",action:e})})}var we,Ne,Ae,ke,Ee,De,_e,Ce,Fe=(ge=new WeakMap,ve=new WeakMap,class extends U{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),x(this,ge,void 0),x(this,ve,void 0),this.config=e,b(ge,this,new Map),b(ve,this,Date.now())}build(e,t,n){var a;const r=new ye({mutationCache:this,mutationId:b(ve,this,(a=v(ve,this),++a)),options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){var t;const n=Se(e),a=null!==(t=v(ge,this).get(n))&&void 0!==t?t:[];a.push(e),v(ge,this).set(n,a),this.notify({type:"added",mutation:e})}remove(e){const t=Se(e);if(v(ge,this).has(t)){var n;const a=null===(n=v(ge,this).get(t))||void 0===n?void 0:n.filter(t=>t!==e);a&&(0===a.length?v(ge,this).delete(t):v(ge,this).set(t,a))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=v(ge,this).get(Se(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;const a=null===(t=v(ge,this).get(Se(e)))||void 0===t?void 0:t.find(t=>
2t!==e&&t.state.isPaused);return null!==(n=null===a||void 0===a?void 0:a.continue())&&void 0!==n?n:Promise.resolve()}clear(){q.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...v(ge,this).values()].flat()}find(e){const t=h({exact:!0},e);return this.getAll().find(e=>A(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>A(e,t))}notify(e){q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return q.batch(()=>Promise.all(e.map(e=>e.continue().catch(j))))}});function Se(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function Me(e){return{onFetch:(t,n)=>{var a,r,i;const s=t.options,o=null===(a=t.fetchOptions)||void 0===a||null===(a=a.meta)||void 0===a||null===(a=a.fetchMore)||void 0===a?void 0:a.direction,l=(null===(r=t.state.data)||void 0===r?void 0:r.pages)||[],c=(null===(i=t.state.data)||void 0===i?void 0:i.pageParams)||[];let d={pages:[],pageParams:[]},u=0;const m=async()=>{let n=!1;const a=P(t.options,t.fetchOptions),r=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const s={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})})(s);const o=await a(s),l=t.options.maxPages,c=i?R:O;return{pages:c(e.pages,o,l),pageParams:c(e.pageParams,r,l)}};if(o&&l.length){const e="backward"===o,t={pages:l,pageParams:c},n=(e?Re:Oe)(s,t);d=await r(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var i;const e=0===u?null!==(i=c[0])&&void 0!==i?i:s.initialPageParam:Oe(s,d);if(u>0&&null==e)break;d=await r(d,e),u++}while(u<t)}return d};t.options.persister?t.fetchFn=()=>{var e,a;return null===(e=(a=t.options).persister)||void 0===e?void 0:e.call(a,m,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function Oe(e,t){let n=t.pages,a=t.pageParams;const r=n.length-1;return n.length>0?e.getNextPageParam(n[r],n,a[r],a):void 0}function Re(e,t){var n;let a=t.pages,r=t.pageParams;return a.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,a[0],a,r[0],r):void 0}var He=(we=new WeakMap,Ne=new WeakMap,Ae=new WeakMap,ke=new WeakMap,Ee=new WeakMap,De=new WeakMap,_e=new WeakMap,Ce=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,we,void 0),x(this,Ne,void 0),x(this,Ae,void 0),x(this,ke,void 0),x(this,Ee,void 0),x(this,De,void 0),x(this,_e,void 0),x(this,Ce,void 0),b(we,this,e.queryCache||new be),b(Ne,this,e.mutationCache||new Fe),b(Ae,this,e.defaultOptions||{}),b(ke,this,new Map),b(Ee,this,new Map),b(De,this,0)}mount(){var e;b(De,this,(e=v(De,this),e++,e)),1===v(De,this)&&(b(_e,this,Y.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(we,this).onFocus())})),b(Ce,this,G.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(we,this).onOnline())})))}unmount(){var e,t,n;b(De,this,(e=v(De,this),e--,e)),0===v(De,this)&&(null===(t=v(_e,this))||void 0===t||t.call(this),b(_e,this,void 0),null===(n=v(Ce,this))||void 0===n||n.call(this),b(Ce,this,void 0))}isFetching(e){return v(we,this).findAll(h(h({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return v(Ne,this).findAll(h(h({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=v(we,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),a=v(we,this).build(this,n);return e.revalidateIfStale&&a.isStaleByTime(w(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return v(we,this).findAll(e).map(e=>[e.queryKey,e.state.data])}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=v(we,this).get(a.queryHash),i=function(e,t){return"function"===typeof e?e(t):e}(t,null===r||void 0===r?void 0:r.state.data);if(void 0!==i)return v(we,this).build(this,a).setData(i,h(h({},n),{},{manual:!0}))}
2setQueriesData(e,t,n){return q.batch(()=>v(we,this).findAll(e).map(e=>{let a=e.queryKey;return[a,this.setQueryData(a,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=v(we,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=v(we,this);q.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=v(we,this),a=h({type:"active"},e);return q.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(a,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=q.batch(()=>v(we,this).findAll(e).map(e=>e.cancel(t)));return Promise.all(n).then(j).catch(j)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q.batch(()=>{var n,a;if(v(we,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const r=h(h({},e),{},{type:null!==(n=null!==(a=e.refetchType)&&void 0!==a?a:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(r,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const a=h(h({},n),{},{cancelRefetch:null===(e=null===n||void 0===n?void 0:n.cancelRefetch)||void 0===e||e}),r=q.batch(()=>v(we,this).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(j)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=v(we,this).build(this,t);return n.isStaleByTime(w(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=Me(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}ensureInfiniteQueryData(e){return e.behavior=Me(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return G.isOnline()?v(Ne,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(we,this)}getMutationCache(){return v(Ne,this)}getDefaultOptions(){return v(Ae,this)}setDefaultOptions(e){b(Ae,this,e)}setQueryDefaults(e,t){v(ke,this).set(E(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(ke,this).values()];let n={};return t.forEach(t=>{D(e,t.queryKey)&&(n=h(h({},n),t.defaultOptions))}),n}setMutationDefaults(e,t){v(Ee,this).set(E(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(Ee,this).values()];let n={};return t.forEach(t=>{D(e,t.mutationKey)&&(n=h(h({},n),t.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=h(h(h(h({},v(Ae,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=k(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===H&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:h(h(h(h({},v(Ae,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){v(we,this).clear(),v(Ne,this).clear()}}),Pe=n(414),Le=o.createContext(void 0),Te=e=>{let t=e.client,n=e.children;return o.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,Pe.jsx)(Le.Provider,{value:t,children:n})};function Ie(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Be(e){if(Array.isArray(e))return e}function Ve(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}
2function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qe(e){return Be(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(e)||ze()}function Ue(e,t){return Be(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}(e,t)||Ve(e,t)||ze()}const We=["sri"],Ye=["page"],Ke=["page","matches"],Ge=["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$e=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Qe=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];var Xe="popstate";function Je(){return st(function(e,t){let n=e.location;return at("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:rt(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function et(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function tt(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(zf){}}}function nt(e,t){return{usr:e.state,key:e.key,idx:t}}function at(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;return h(h({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?it(t):t),{},{state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10)})}function rt(e){let t=e.pathname,n=void 0===t?"/":t,a=e.search,r=void 0===a?"":a,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function it(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function st(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=a.window,i=void 0===r?document.defaultView:r,s=a.v5Compat,o=void 0!==s&&s,l=i.history,c="POP",d=null,u=m();function m(){return(l.state||{idx:null}).idx}function p(){c="POP";let e=m(),t=null==e?null:e-u;u=e,d&&d({action:c,location:x.location,delta:t})}function f(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:rt(e);return n=n.replace(/ $/,"%20"),et(t,"No window.location.(origin|href) available to create URL for href: ".concat(n)),new URL(n,t)}null==u&&(u=0,l.replaceState(h(h({},l.state),{},{idx:u}),""));let x={get action(){return c},get location(){return e(i,l)},listen(e){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(Xe,p),d=e,()=>{i.removeEventListener(Xe,p),d=null}},createHref:e=>
2t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let a=at(x.location,e,t);n&&n(a,e),u=m()+1;let r=nt(a,u),s=x.createHref(a);try{l.pushState(r,"",s)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(s)}o&&d&&d({action:c,location:x.location,delta:1})},replace:function(e,t){c="REPLACE";let a=at(x.location,e,t);n&&n(a,e),u=m();let r=nt(a,u),i=x.createHref(a);l.replaceState(r,"",i),o&&d&&d({action:c,location:x.location,delta:0})},go:e=>l.go(e)};return x}new WeakMap;function ot(e,t){return lt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function lt(e,t,n,a){let r=vt(("string"===typeof t?it(t):t).pathname||"/",n);if(null==r)return null;let i=ct(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let s=null;for(let o=0;null==s&&o<i.length;++o){let e=gt(r);s=ht(i[o],e,a)}return s}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=(e,r,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};s.relativePath.startsWith("/")&&(et(s.relativePath.startsWith(a),'Absolute route path "'.concat(s.relativePath,'" nested under path "').concat(a,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),s.relativePath=s.relativePath.slice(a.length));let o=Nt([a,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(et(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(o,'".')),ct(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:pt(o,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let a of dt(e.path))r(e,t,a);else r(e,t)}),t}function dt(e){let t=e.split("/");if(0===t.length)return[];let n=qe(t),a=n[0],r=Ze(n).slice(1),i=a.endsWith("?"),s=a.replace(/\?$/,"");if(0===r.length)return i?[s,""]:[s];let o=dt(r.join("/")),l=[];return l.push(...o.map(e=>""===e?s:[s,e].join("/"))),i&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var ut=/^:[\w-]+$/,mt=e=>"*"===e;function pt(e,t){let n=e.split("/"),a=n.length;return n.some(mt)&&(a+=-2),t&&(a+=2),n.filter(e=>!mt(e)).reduce((e,t)=>e+(ut.test(t)?3:""===t?1:10),a)}function ht(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.routesMeta,r={},i="/",s=[];for(let o=0;o<a.length;++o){let e=a[o],l=o===a.length-1,c="/"===i?t:t.slice(i.length)||"/",d=ft({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),u=e.route;if(!d&&l&&n&&!a[a.length-1].route.index&&(d=ft({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!d)return null;
2Object.assign(r,d.params),s.push({params:r,pathname:Nt([i,d.pathname]),pathnameBase:At(Nt([i,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(i=Nt([i,d.pathnameBase]))}return s}function ft(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=Ue(xt(e.path,e.caseSensitive,e.end),2),a=n[0],r=n[1],i=t.match(a);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1),c=r.reduce((e,t,n)=>{let a=t.paramName,r=t.isOptional;if("*"===a){let e=l[n]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[n];return e[a]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:s,pathnameBase:o,pattern:e}}function xt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];tt("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function gt(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return tt(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function vt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function bt(e,t,n,a){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(a),"]. Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function yt(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function jt(e){let t=yt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function wt(e,t,n){let a,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?a=it(e):(a=h({},e),et(!a.pathname||!a.pathname.includes("?"),bt("?","pathname","search",a)),et(!a.pathname||!a.pathname.includes("#"),bt("#","pathname","hash",a)),et(!a.search||!a.search.includes("#"),bt("#","search","hash",a)));let i,s=""===e||""===a.pathname,o=s?"/":a.pathname;if(null==o)i=n;else{let e=t.length-1;if(!r&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n="string"===typeof e?it(e):e,a=n.pathname,r=n.search,i=void 0===r?"":r,s=n.hash,o=void 0===s?"":s,l=a?a.startsWith("/")?a:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(a,t):t;return{pathname:l,search:kt(i),hash:Et(o)}}(a,i),c=o&&"/"!==o&&o.endsWith("/"),d=(s||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}var Nt=e=>e.join("/").replace(/\/\/+/g,"/"),At=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Et=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Dt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var _t=["POST","PUT","PATCH","DELETE"],Ct=(new Set(_t),["GET",..._t]);new Set(Ct),Symbol("ResetLoaderData");var Ft=o.createContext(null);Ft.displayName="DataRouter";var St=o.createContext(null);St.displayName="DataRouterState";var Mt=o.createContext({isTransitioning:!1});Mt.displayName="ViewTransition";var Ot=o.createContext(new Map);Ot.displayName="Fetchers";var Rt=o.createContext(null);Rt.displayName="Await";var Ht=o.createContext(null);Ht.displayName="Navigation";var Pt=o.createContext(null);Pt.displayName="Location";var Lt=o.createContext({outlet:null,matches:[],isDataRoute:!1});Lt.displayName="Route";var Tt=o.createContext(null);Tt.displayName="RouteError";function It(){return null!=o.useContext(Pt)}function Zt(){return et(It(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(Pt).location}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vt(e){o.useContext(Ht).static||o.useLayoutEffect(e)}function zt(){return o.useContext(Lt).isDataRoute?function(){let e=Jt("useNavigate").router,t=tn("useNavigate"),n=o.useRef(!1);Vt(()=>{n.current=!0});let a=o.useCallback(async function(a){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tt(n.current,Bt),n.current&&("number"===typeof a?e.navigate(a):await e.navigate(a,h({fromRouteId:t},r)))},[e,t]);return a}():function(){et(It(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(Ft),t=o.useContext(Ht),n=t.basename,a=t.navigator,r=o.useContext(Lt).matches,i=Zt().pathname,s=JSON.stringify(jt(r)),l=o.useRef(!1);Vt(()=>{l.current=!0});let c=o.useCallback(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(tt(l.current,Bt),!l.current)return;if("number"===typeof t)return void a.go(t);let o=wt(t,JSON.parse(s),i,"path"===r.relative);null==e&&"/"!==n&&(o.pathname="/"===o.pathname?n:Nt([n,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)},[n,a,s,i,e]);return c}()}o.createContext(null);function qt(){let e=o.useContext(Lt).matches,t=e[e.length-1];return t?t.params:{}}function Ut(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,n=o.useContext(Lt).matches,a=Zt().pathname,r=JSON.stringify(jt(n));return o.useMemo(()=>wt(e,JSON.parse(r),a,"path"===t),[e,r,a,t])}function Wt(e,t,n,a){et(It(),"useRoutes() may be used only in the context of a <Router> component.");let r=o.useContext(Ht),i=r.navigator,s=r.static,l=o.useContext(Lt).matches,c=l[l.length-1],d=c?c.params:{},u=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let e=p&&p.path||"";rn(u,!p||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(u,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let f,x=Zt();if(t){var g;let e="string"===typeof t?it(t):t;et("/"===m||(null===(g=e.pathname)||void 0===g?void 0:g.startsWith(m)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(m,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),f=e}else f=x;let v=f.pathname||"/",b=v;if("/"!==m){let e=m.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=!s&&n&&n.matches&&n.matches.length>0?n.matches:ot(e,{pathname:b});tt(p||null!=y,'No routes matched location "'.concat(f.pathname).concat(f.search).concat(f.hash,'" ')),tt(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,'Matched leaf route at location "'.concat(f.pathname).concat(f.search).concat(f.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let j=Qt(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:Nt([m,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:Nt([m,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,a);
2return t&&j?o.createElement(Pt.Provider,{value:{location:h({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:"POP"}},j):j}function Yt(){let e=nn(),t=Dt(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,s)}var Kt=o.createElement(Yt,null),Gt=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(Lt.Provider,{value:this.props.routeContext},o.createElement(Tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $t(e){let t=e.routeContext,n=e.match,a=e.children,r=o.useContext(Ft);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(Lt.Provider,{value:t},a)}function Qt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,r=null===n||void 0===n?void 0:n.errors;if(null!=r){let e=a.findIndex(e=>e.route.id&&void 0!==(null===r||void 0===r?void 0:r[e.route.id]));et(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(r).join(","))),a=a.slice(0,Math.min(a.length,e+1))}let i=!1,s=-1;if(n)for(let o=0;o<a.length;o++){let e=a[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=o),e.route.id){let t=n.loaderData,r=n.errors,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){i=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight((e,l,c)=>{let d,u=!1,m=null,p=null;n&&(d=r&&l.route.id?r[l.route.id]:void 0,m=l.route.errorElement||Kt,i&&(s<0&&0===c?(rn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,p=null):s===c&&(u=!0,p=l.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,c+1)),f=()=>{let t;return t=d?m:u?p:l.route.Component?o.createElement(l.route.Component,null):l.route.element?l.route.element:e,o.createElement($t,{match:l,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?o.createElement(Gt,{location:n.location,revalidation:n.revalidation,component:m,error:d,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}function Xt(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function Jt(e){let t=o.useContext(Ft);return et(t,Xt(e)),t}function en(e){let t=o.useContext(St);return et(t,Xt(e)),t}function tn(e){let t=function(e){let t=o.useContext(Lt);return et(t,Xt(e)),t}(e),n=t.matches[t.matches.length-1];return et(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function nn(){var e;let t=o.useContext(Tt),n=en("useRouteError"),a=tn("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[a]}var an={};function rn(e,t,n){t||an[e]||(an[e]=!0,tt(!1,n))}o.memo(function(e){let t=e.routes,n=e.future,a=e.state;return Wt(t,void 0,a,n)});function sn(e){let t=e.to,n=e.replace,a=e.state,r=e.relative;et(It(),"<Navigate> may be used only in the context of a <Router> component."),tt(!o.useContext(Ht).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let i=o.useContext(Lt).matches,s=Zt().pathname,l=zt(),c=wt(t,jt(i),s,"path"===r),d=JSON.stringify(c);return o.useEffect(()=>{l(JSON.parse(d),{replace:n,state:a,relative:r})},[l,d,r,n,a]),null}function on(e){et(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ln(e){let t=e.basename,n=void 0===t?"/":t,a=e.children,r=void 0===a?null:a,i=e.location,s=e.navigationType,l=void 0===s?"POP":s,c=e.navigator,d=e.static,u=void 0!==d&&d;et(!It(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),p=o.useMemo(()=>({basename:m,navigator:c,static:u,future:{}}),[m,c,u]);"string"===typeof i&&(i=it(i));let h=i,f=h.pathname,x=void 0===f?"/":f,g=h.search,v=void 0===g?"":g,b=h.hash,y=void 0===b?"":b,j=h.state,w=void 0===j?null:j,N=h.key,A=void 0===N?"default":N,k=o.useMemo(()=>{let e=vt(x,m);return null==e?null:{location:{pathname:e,search:v,hash:y,state:w,key:A},navigationType:l}},[m,x,v,y,w,A,l]);
2return tt(null!=k,'<Router basename="'.concat(m,'"> is not able to match the URL "').concat(x).concat(v).concat(y,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==k?null:o.createElement(Ht.Provider,{value:p},o.createElement(Pt.Provider,{children:r,value:k}))}function cn(e){let t=e.children,n=e.location;return Wt(dn(t),n)}o.Component;function dn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return o.Children.forEach(e,(e,a)=>{if(!o.isValidElement(e))return;let r=[...t,a];if(e.type===o.Fragment)return void n.push.apply(n,dn(e.props.children,r));et(e.type===on,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),et(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=dn(e.props.children,r)),n.push(i)}),n}var un="get",mn="application/x-www-form-urlencoded";function pn(e){return null!=e&&"string"===typeof e.tagName}function hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(e=>[n,e]):[[n,a]])},[]))}var fn=null;var xn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gn(e){return null==e||xn.has(e)?e:(tt(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(mn,'"')),null)}function vn(e,t){let n,a,r,i,s;if(function(e){return pn(e)&&"form"===e.tagName.toLowerCase()}(e)){let s=e.getAttribute("action");a=s?vt(s,t):null,n=e.getAttribute("method")||un,r=gn(e.getAttribute("enctype"))||mn,i=new FormData(e)}else if(function(e){return pn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return pn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||s.getAttribute("action");if(a=o?vt(o,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||un,r=gn(e.getAttribute("formenctype"))||gn(s.getAttribute("enctype"))||mn,i=new FormData(s,e),!function(){if(null===fn)try{new FormData(document.createElement("form"),0),fn=!1}catch(zf){fn=!0}return fn}()){let t=e.name,n=e.type,a=e.value;if("image"===n){let e=t?"".concat(t,"."):"";i.append("".concat(e,"x"),"0"),i.append("".concat(e,"y"),"0")}else t&&i.append(t,a)}}else{if(pn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=un,a=null,r=mn,s=e}return i&&"text/plain"===r&&(s=i,i=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:i,body:s}}function bn(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}async function yn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jn(e){return null!=e&&"string"===typeof e.page}function wn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Nn(e,t,n,a,r,i){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>{var a;return n[t].pathname!==e.pathname||(null===(a=n[t].route.path)||void 0===a?void 0:a.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===i?t.filter((e,t)=>
2s(e,t)||o(e,t)):"data"===i?t.filter((t,i)=>{let l=a.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,i)||o(t,i))return!0;if(t.route.shouldRevalidate){var c;let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof a)return a}return!0}):[]}function An(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).includeHydrateFallback;return a=e.map(e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r}).flat(1),[...new Set(a)];var a}function kn(e,t){let n=new Set,a=new Set(t);return e.reduce((e,r)=>{if(t&&!jn(r)&&"script"===r.as&&r.href&&a.has(r.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(r));return n.has(i)||(n.add(i),e.push({key:i,link:r})),e},[])}function En(e){return{__html:e}}Symbol("SingleFetchRedirect");var Dn=new Set([100,101,204,205]);function _n(e,t){let n="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===vt(n.pathname,t)?n.pathname="".concat(t.replace(/\/$/,""),"/_root.data"):n.pathname="".concat(n.pathname.replace(/\/$/,""),".data"),n}o.Component;function Cn(e){let t=e.error,n=e.isOutsideRemixApp;console.error(t);let a,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if(Dt(t))return o.createElement(Fn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),r);if(t instanceof Error)a=t;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);a=new Error(e)}return o.createElement(Fn,{title:"Application Error!",isOutsideRemixApp:n},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),r)}function Fn(e){var t;let n=e.title,a=e.renderScripts,r=e.isOutsideRemixApp,i=e.children;return null!==(t=Hn().routeModules.root)&&void 0!==t&&t.Layout&&!r?i:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,n)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,a?o.createElement(Vn,null):null)))}function Sn(e){return!0===e}function Mn(){let e=o.useContext(Ft);return bn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function On(){let e=o.useContext(St);return bn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rn=o.createContext(void 0);function Hn(){let e=o.useContext(Rn);return bn(e,"You must render this element inside a <HydratedRouter> element"),e}function Pn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ln(e,t,n){if(n&&!Bn)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}function Tn(e){let t=e.page,n=Ie(e,Ye),a=Mn().router,r=o.useMemo(()=>ot(a.routes,t,a.basename),[a.routes,t,a.basename]);return r?o.createElement(Zn,h({page:t,matches:r},n)):null}function In(e){let t=Hn(),n=t.manifest,a=t.routeModules,r=Ue(o.useState([]),2),i=r[0],s=r[1];return o.useEffect(()=>{let t=!1;return async function(e,t,n){return kn((await Promise.all(e.map(async e=>{let a=t.routes[e.route.id];if(a){let e=await yn(a,n);return e.links?e.links():[]}return[]}))).flat(1).filter(wn).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?h(h({},e),{},{rel:"prefetch",as:"style"}):h(h({},e),{},{rel:"prefetch"})))}(e,n,a).then(e=>{t||s(e)}
2),()=>{t=!0}},[e,n,a]),i}function Zn(e){let t=e.page,n=e.matches,a=Ie(e,Ke),r=Zt(),i=Hn(),s=i.manifest,l=i.routeModules,c=Mn().basename,d=On(),u=d.loaderData,m=d.matches,p=o.useMemo(()=>Nn(t,n,m,s,r,"data"),[t,n,m,s,r]),f=o.useMemo(()=>Nn(t,n,m,s,r,"assets"),[t,n,m,s,r]),x=o.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let e=new Set,a=!1;if(n.forEach(t=>{var n;let r=s.routes[t.route.id];r&&r.hasLoader&&(!p.some(e=>e.route.id===t.route.id)&&t.route.id in u&&null!==(n=l[t.route.id])&&void 0!==n&&n.shouldRevalidate||r.hasClientLoader?a=!0:e.add(t.route.id))}),0===e.size)return[];let i=_n(t,c);return a&&e.size>0&&i.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[i.pathname+i.search]},[c,u,r,s,p,n,t,l]),g=o.useMemo(()=>An(f,s),[f,s]),v=In(f);return o.createElement(o.Fragment,null,x.map(e=>o.createElement("link",h({key:e,rel:"prefetch",as:"fetch",href:e},a))),g.map(e=>o.createElement("link",h({key:e,rel:"modulepreload",href:e},a))),v.map(e=>{let t=e.key,n=e.link;return o.createElement("link",h({key:t},n))}))}Rn.displayName="FrameworkContext";var Bn=!1;function Vn(e){let t=Hn(),n=t.manifest,a=t.serverHandoffString,r=t.isSpaMode,i=t.ssr,s=t.renderMeta,l=Mn(),c=l.router,d=l.static,u=l.staticContext,m=On().matches,p=Sn(i);s&&(s.didRenderScripts=!0);let f=Ln(m,null,r);o.useEffect(()=>{Bn=!0},[]);let x=o.useMemo(()=>{var t;let r=u?"window.__reactRouterContext = ".concat(a,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",i=d?"".concat(null!==(t=n.hmr)&&void 0!==t&&t.runtime?"import ".concat(JSON.stringify(n.hmr.runtime),";"):"").concat(p?"":"import ".concat(JSON.stringify(n.url)),";\n").concat(f.map((e,t)=>{let a="route".concat(t),r=n.routes[e.route.id];bn(r,"Route ".concat(e.route.id," not found in manifest"));let i=r.clientActionModule,s=r.clientLoaderModule,o=r.clientMiddlewareModule,l=r.hydrateFallbackModule,c=r.module,d=[...i?[{module:i,varName:"".concat(a,"_clientAction")}]:[],...s?[{module:s,varName:"".concat(a,"_clientLoader")}]:[],...o?[{module:o,varName:"".concat(a,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(a,"_HydrateFallback")}]:[],{module:c,varName:"".concat(a,"_main")}];return 1===d.length?"import * as ".concat(a," from ").concat(JSON.stringify(c),";"):[d.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";')).join("\n"),"const ".concat(a," = {").concat(d.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n ").concat(p?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=e.sri,a=Ie(e,We),r=new Set(t.state.matches.map(e=>e.route.id)),i=t.state.location.pathname.split("/").filter(Boolean),s=["/"];for(i.pop();i.length>0;)s.push("/".concat(i.join("/"))),i.pop();s.forEach(e=>{let n=ot(t.routes,e,t.basename);n&&n.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,t)=>Object.assign(e,{[t]:a.routes[t]}),{});return h(h({},a),{},{routes:o,sri:!!n||void 0})}(n,c),null,2),";"):"","\n window.__reactRouterRouteModules = {").concat(f.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(n.entry.module),");"):" ";return o.createElement(o.Fragment,null,o.createElement("script",h(h({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:En(r),type:void 0})),o.createElement("script",h(h({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:En(i),type:"module",async:!0})))},[]),g=Bn?[]:function(e){return[...new Set(e)]}(n.entry.imports.concat(An(f,n,{includeHydrateFallback:!0}))),v="object"===typeof n.sri?n.sri:{};return Bn?null:o.createElement(o.Fragment,null,"object"===typeof n.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,p?null:o.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin,integrity:v[n.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin,integrity:v[n.entry.module],suppressHydrationWarning:!0}),g.map(t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0})),x)}function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}var qn="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{qn&&(window.__reactRouterVersion="7.5.1")}catch(zf){}function Un(e){let t=e.basename,n=e.children,a=e.window,r=o.useRef();null==r.current&&(r.current=Je({window:a,v5Compat:!0}));let i=r.current,s=Ue(o.useState({action:i.action,location:i.location}),2),l=s[0],c=s[1],d=o.useCallback(e=>{o.startTransition(()=>c(e))},[c]);return o.useLayoutEffect(()=>
2i.listen(d),[i,d]),o.createElement(ln,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i})}var Wn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yn=o.forwardRef(function(e,t){let n,a=e.onClick,r=e.discover,i=void 0===r?"render":r,s=e.prefetch,l=void 0===s?"none":s,c=e.relative,d=e.reloadDocument,u=e.replace,m=e.state,p=e.target,f=e.to,x=e.preventScrollReset,g=e.viewTransition,v=Ie(e,Ge),b=o.useContext(Ht).basename,y="string"===typeof f&&Wn.test(f),j=!1;if("string"===typeof f&&y&&(n=f,qn))try{let e=new URL(window.location.href),t=f.startsWith("//")?new URL(e.protocol+f):new URL(f),n=vt(t.pathname,b);t.origin===e.origin&&null!=n?f=n+t.search+t.hash:j=!0}catch(zf){tt(!1,'<Link to="'.concat(f,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}let w=function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative;et(It(),"useHref() may be used only in the context of a <Router> component.");let n=o.useContext(Ht),a=n.basename,r=n.navigator,i=Ut(e,{relative:t}),s=i.hash,l=i.pathname,c=i.search,d=l;return"/"!==a&&(d="/"===l?a:Nt([a,l])),r.createHref({pathname:d,search:c,hash:s})}(f,{relative:c}
2),N=function(e,t){let n=o.useContext(Rn),a=Ue(o.useState(!1),2),r=a[0],i=a[1],s=Ue(o.useState(!1),2),l=s[0],c=s[1],d=t.onFocus,u=t.onBlur,m=t.onMouseEnter,p=t.onMouseLeave,h=t.onTouchStart,f=o.useRef(null);o.useEffect(()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{c(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(r){let e=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(e)}}},[r]);let x=()=>{i(!0)},g=()=>{i(!1),c(!1)};return n?"intent"!==e?[l,f,{}]:[l,f,{onFocus:Pn(d,x),onBlur:Pn(u,g),onMouseEnter:Pn(m,x),onMouseLeave:Pn(p,g),onTouchStart:Pn(h,x)}]:[!1,f,{}]}(l,v),A=Ue(N,3),k=A[0],E=A[1],D=A[2],_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,a=t.replace,r=t.state,i=t.preventScrollReset,s=t.relative,l=t.viewTransition,c=zt(),d=Zt(),u=Ut(e,{relative:s});return o.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==a?a:rt(d)===rt(u);c(e,{replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l})}},[d,c,u,a,r,n,e,i,s,l])}(f,{replace:u,state:m,target:p,preventScrollReset:x,relative:c,viewTransition:g});let C=o.createElement("a",h(h(h({},v),D),{},{href:n||w,onClick:j||d?a:function(e){a&&a(e),e.defaultPrevented||_(e)},ref:zn(t,E),target:p,"data-discover":y||"render"!==i?void 0:"true"}));return k&&!y?o.createElement(o.Fragment,null,C,o.createElement(Tn,{page:w})):C});Yn.displayName="Link";var Kn=o.forwardRef(function(e,t){let n=e["aria-current"],a=void 0===n?"page":n,r=e.caseSensitive,i=void 0!==r&&r,s=e.className,l=void 0===s?"":s,c=e.end,d=void 0!==c&&c,u=e.style,m=e.to,p=e.viewTransition,f=e.children,x=Ie(e,$e),g=Ut(m,{relative:x.relative}),v=Zt(),b=o.useContext(St),y=o.useContext(Ht),j=y.navigator,w=y.basename,N=null!=b&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.useContext(Mt);et(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let a=Qn("useViewTransitionState").basename,r=Ut(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=vt(n.currentLocation.pathname,a)||n.currentLocation.pathname,s=vt(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=ft(r.pathname,s)||null!=ft(r.pathname,i)}(g)&&!0===p,A=j.encodeLocation?j.encodeLocation(g).pathname:g.pathname,k=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(k=k.toLowerCase(),E=E?E.toLowerCase():null,A=A.toLowerCase()),E&&w&&(E=vt(E,w)||E);const D="/"!==A&&A.endsWith("/")?A.length-1:A.length;let _,C=k===A||!d&&k.startsWith(A)&&"/"===k.charAt(D),F=null!=E&&(E===A||!d&&E.startsWith(A)&&"/"===E.charAt(A.length)),S={isActive:C,isPending:F,isTransitioning:N},M=C?a:void 0;_="function"===typeof l?l(S):[l,C?"active":null,F?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let O="function"===typeof u?u(S):u;return o.createElement(Yn,h(h({},x),{},{"aria-current":M,className:_,ref:t,style:O,to:m,viewTransition:p}),"function"===typeof f?f(S):f)});Kn.displayName="NavLink";var Gn=o.forwardRef((e,t)=>{let n=e.discover,a=void 0===n?"render":n,r=e.fetcherKey,i=e.navigate,s=e.reloadDocument,l=e.replace,c=e.state,d=e.method,u=void 0===d?un:d,m=e.action,p=e.onSubmit,f=e.relative,x=e.preventScrollReset,g=e.viewTransition,v=Ie(e,Qe),b=ea(),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,a=o.useContext(Ht).basename,r=o.useContext(Lt);et(r,"useFormAction must be used inside a RouteContext");let i=Ue(r.matches.slice(-1),1)[0],s=h({},Ut(e||".",{relative:n})),l=Zt();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();s.search=n?"?".concat(n):""}}e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==a&&(s.pathname="/"===s.pathname?a:Nt([a,s.pathname]));return rt(s)}(m,{relative:f}),j="get"===u.toLowerCase()?"get":"post",w="string"===typeof m&&Wn.test(m);return o.createElement("form",h(h({ref:t,method:j,action:y,onSubmit:s?p:e=>{if(p&&p(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||u;b(t||e.currentTarget,{fetcherKey:r,method:n,navigate:i,replace:l,state:c,relative:f,preventScrollReset:x,viewTransition:g})}},v),{},{"data-discover":w||"render"!==a?void 0:"true"}))});function $n(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function Qn(e){let t=o.useContext(Ft);return et(t,$n(e)),t}function Xn(e){tt("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
2let t=o.useRef(hn(e)),n=o.useRef(!1),a=Zt(),r=o.useMemo(()=>function(e,t){let n=hn(e);return t&&t.forEach((e,a)=>{n.has(a)||t.getAll(a).forEach(e=>{n.append(a,e)})}),n}(a.search,n.current?null:t.current),[a.search]),i=zt(),s=o.useCallback((e,t)=>{const a=hn("function"===typeof e?e(r):e);n.current=!0,i("?"+a,t)},[i,r]);return[r,s]}Gn.displayName="Form";var Jn=0;function ea(){let e=Qn("useSubmit").router,t=o.useContext(Ht).basename,n=tn("useRouteId");return o.useCallback(async function(a){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=vn(a,t),s=i.action,o=i.method,l=i.encType,c=i.formData,d=i.body;if(!1===r.navigate){let t=r.fetcherKey||"__".concat(String(++Jn),"__");await e.fetch(t,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:c,body:d,formMethod:r.method||o,formEncType:r.encType||l,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:c,body:d,formMethod:r.method||o,formEncType:r.encType||l,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}new TextEncoder;function ta(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var na=(e,t,n,a,r,i,s,o)=>{let l=document.documentElement,c=["light","dark"];function d(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,a=n&&i?r.map(e=>i[e]||e):r;n?(l.classList.remove(...a),l.classList.add(i&&i[t]?i[t]:t)):l.setAttribute(e,t)}),function(e){o&&c.includes(e)&&(l.style.colorScheme=e)}(t)}if(a)d(a);else try{let e=localStorage.getItem(t)||n;d(s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}catch($f){}},aa=o.createContext(void 0),ra={setTheme:e=>{},themes:[]},ia=(o.memo(e=>{let t=e.forcedTheme,n=e.storageKey,a=e.attribute,r=e.enableSystem,i=e.enableColorScheme,s=e.defaultTheme,l=e.value,c=e.themes,d=e.nonce,u=e.scriptProps,m=JSON.stringify([a,n,s,t,c,l,r,i]).slice(1,-1);return o.createElement("script",h(h({},u),{},{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(na.toString(),")(").concat(m,")")}}))}),n(119));const sa=["message"];const oa=Array(12).fill(0),la=e=>{let t=e.visible,n=e.className;return o.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},o.createElement("div",{className:"sonner-spinner"},oa.map((e,t)=>o.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},ca=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),da=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ua=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ma=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pa=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let ha=1;const fa=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
2{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const n=e.message,a=Ie(e,sa),r="number"===typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:ha++,i=this.toasts.find(e=>e.id===r),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(t=>t.id===r?(this.publish(h(h(h({},t),e),{},{id:r,title:n})),h(h(h({},t),e),{},{id:r,dismissible:s,title:n})):t):this.addToast(h(h({title:n},a),{},{dismissible:s,id:r})),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create(h(h({},t),{},{message:e})),this.error=(e,t)=>this.create(h(h({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(h(h({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(h(h({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(h(h({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>
2this.create(h(h({},t),{},{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create(h(h({},t),{},{promise:e,type:"loading",message:t.loading,description:"function"!==typeof t.description?t.description:void 0})));const a=Promise.resolve(e instanceof Function?e():e);let r,i=void 0!==n;const s=a.then(async e=>{r=["resolve",e];if(o.isValidElement(e))i=!1,this.create({id:n,type:"default",message:e});else if(xa(e)&&!e.ok){i=!1;const a="function"===typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,r="function"===typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(h({id:n,type:"error",description:r},s))}else if(e instanceof Error){i=!1;const a="function"===typeof t.error?await t.error(e):t.error,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(h({id:n,type:"error",description:r},s))}else if(void 0!==t.success){i=!1;const a="function"===typeof t.success?await t.success(e):t.success,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(h({id:n,type:"success",description:r},s))}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){i=!1;const a="function"===typeof t.error?await t.error(e):t.error,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(h({id:n,type:"error",description:r},s))}}).finally(()=>{i&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!==typeof n&&"number"!==typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||ha++;return this.create(h({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},xa=e=>e&&"object"===typeof e&&"ok"in e&&"boolean"===typeof e.ok&&"status"in e&&"number"===typeof e.status,ga=(e,t)=>{const n=(null==t?void 0:t.id)||ha++;return fa.addToast(h(h({title:e},t),{},{id:n})),n},va=Object.assign(ga,{success:fa.success,info:fa.info,warning:fa.warning,error:fa.error,custom:fa.custom,message:fa.message,promise:fa.promise,dismiss:fa.dismiss,loading:fa.loading},{getHistory:()=>fa.toasts,getToasts:()=>fa.getActiveToasts()});function ba(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 2
2}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
2ya(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const ja=e=>{var t,n,a,r,i,s,l,c,d;const u=e.invert,m=e.toast,p=e.unstyled,f=e.interacting,x=e.setHeights,g=e.visibleToasts,v=e.heights,b=e.index,y=e.toasts,j=e.expanded,w=e.removeToast,N=e.defaultRichColors,A=e.closeButton,k=e.style,E=e.cancelButtonStyle,D=e.actionButtonStyle,_=e.className,C=void 0===_?"":_,F=e.descriptionClassName,S=void 0===F?"":F,M=e.duration,O=e.position,R=e.gap,H=e.expandByDefault,P=e.classNames,L=e.icons,T=e.closeButtonAriaLabel,I=void 0===T?"Close toast":T,Z=Ue(o.useState(null),2),B=Z[0],V=Z[1],z=Ue(o.useState(null),2),q=z[0],U=z[1],W=Ue(o.useState(!1),2),Y=W[0],K=W[1],G=Ue(o.useState(!1),2),$=G[0],Q=G[1],X=Ue(o.useState(!1),2),J=X[0],ee=X[1],te=Ue(o.useState(!1),2),ne=te[0],ae=te[1],re=Ue(o.useState(!1),2),ie=re[0],se=re[1],oe=Ue(o.useState(0),2),le=oe[0],ce=oe[1],de=Ue(o.useState(0),2),ue=de[0],me=de[1],pe=o.useRef(m.duration||M||4e3),he=o.useRef(null),fe=o.useRef(null),xe=0===b,ge=b+1<=g,ve=m.type,be=!1!==m.dismissible,ye=m.className||"",je=m.descriptionClassName||"",we=o.useMemo(()=>v.findIndex(e=>e.toastId===m.id)||0,[v,m.id]),Ne=o.useMemo(()=>{var e;return null!=(e=m.closeButton)?e:A},[m.closeButton,A]),Ae=o.useMemo(()=>m.duration||M||4e3,[m.duration,M]),ke=o.useRef(0),Ee=o.useRef(0),De=o.useRef(0),_e=o.useRef(null),Ce=Ue(O.split("-"),2),Fe=Ce[0],Se=Ce[1],Me=o.useMemo(()=>v.reduce((e,t,n)=>n>=we?e:e+t.height,0),[v,we]),Oe=(()=>{const e=Ue(o.useState(document.hidden),2),t=e[0],n=e[1];return o.useEffect(()=>{const e=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),t})(),Re=m.invert||u,He="loading"===ve;Ee.current=o.useMemo(()=>we*R+Me,[we,Me]),o.useEffect(()=>{pe.current=Ae},[Ae]),o.useEffect(()=>{K(!0)},[]),o.useEffect(()=>{const e=fe.current;if(e){const t=e.getBoundingClientRect().height;return me(t),x(e=>[{toastId:m.id,height:t,position:m.position},...e]),()=>x(e=>e.filter(e=>e.toastId!==m.id))}},[x,m.id]),o.useLayoutEffect(()=>{if(!Y)return;const e=fe.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,me(n),x(e=>e.find(e=>e.toastId===m.id)?e.map(e=>e.toastId===m.id?h(h({},e),{},{height:n}):e):[{toastId:m.id,height:n,position:m.position},...e])},[Y,m.title,m.description,x,m.id]);const Pe=o.useCallback(()=>{Q(!0),ce(Ee.current),x(e=>e.filter(e=>e.toastId!==m.id)),setTimeout(()=>{w(m)},200)},[m,w,x,Ee]);o.useEffect(()=>{if(m.promise&&"loading"===ve||m.duration===1/0||"loading"===m.type)return;let e;return j||f||Oe?(()=>{if(De.current<ke.current){const e=(new Date).getTime()-ke.current;pe.current=pe.current-e}De.current=(new Date).getTime()})():pe.current!==1/0&&(ke.current=(new Date).getTime(),e=setTimeout(()=>{null==m.onAutoClose||m.onAutoClose.call(m,m),Pe()},pe.current)),()=>clearTimeout(e)},[j,f,m,ve,Oe,Pe]),o.useEffect(()=>{m.delete&&Pe()},[Pe,m.delete]);const Le=m.icon||(null==L?void 0:L[ve])||(e=>{switch(e){case"success":return ca;case"info":return ua;case"warning":return da;case"error":return ma;default:return null}})(ve);var Te,Ie;return o.createElement("li",{tabIndex:0,ref:fe,className:ya(C,ye,null==P?void 0:P.toast,null==m||null==(t=m.classNames)?void 0:t.toast,null==P?void 0:P.default,null==P?void 0:P[ve],null==m||null==(n=m.classNames)?void 0:n[ve]),"data-sonner-toast":"","data-rich-colors":null!=(Te=m.richColors)?Te:N,"data-styled":!Boolean(m.jsx||m.unstyled||p),"data-mounted":Y,"data-promise":Boolean(m.promise),"data-swiped":ie,"data-removed":$,"data-visible":ge,"data-y-position":Fe,"data-x-position":Se,"data-index":b,"data-front":xe,"data-swiping":J,"data-dismissible":be,"data-type":ve,"data-invert":Re,"data-swipe-out":ne,"data-swipe-direction":q,"data-expanded":Boolean(j||H&&Y),style:h(h({"--index":b,"--toasts-before":b,"--z-index":y.length-b,"--offset":"".concat($?le:Ee.current,"px"),"--initial-height":H?"auto":"".concat(ue,"px")},k),m.style),onDragEnd:()=>{ee(!1),V(null),_e.current=null},onPointerDown:e=>
2{!He&&be&&(he.current=new Date,ce(Ee.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ee(!0),_e.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ne||!be)return;_e.current=null;const a=Number((null==(e=fe.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),r=Number((null==(t=fe.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=(new Date).getTime()-(null==(n=he.current)?void 0:n.getTime()),s="x"===B?a:r,o=Math.abs(s)/i;if(Math.abs(s)>=45||o>.11)return ce(Ee.current),null==m.onDismiss||m.onDismiss.call(m,m),U("x"===B?a>0?"right":"left":r>0?"down":"up"),Pe(),void ae(!0);var l,c;null==(l=fe.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=fe.current)||c.style.setProperty("--swipe-amount-y","0px"),se(!1),ee(!1),V(null)},onPointerMove:t=>{var n,a,r;if(!_e.current||!be)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const i=t.clientY-_e.current.y,s=t.clientX-_e.current.x;var o;const l=null!=(o=e.swipeDirections)?o:function(e){const t=Ue(e.split("-"),2),n=t[0],a=t[1],r=[];return n&&r.push(n),a&&r.push(a),r}(O);!B&&(Math.abs(s)>1||Math.abs(i)>1)&&V(Math.abs(s)>Math.abs(i)?"x":"y");let c={x:0,y:0};const d=e=>1/(1.5+Math.abs(e)/20);if("y"===B){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&i<0||l.includes("bottom")&&i>0)c.y=i;else{const e=i*d(i);c.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===B&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&s<0||l.includes("right")&&s>0)c.x=s;else{const e=s*d(s);c.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&se(!0),null==(a=fe.current)||a.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(r=fe.current)||r.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},Ne&&!m.jsx&&"loading"!==ve?o.createElement("button",{"aria-label":I,"data-disabled":He,"data-close-button":!0,onClick:He||!be?()=>{}:()=>{Pe(),null==m.onDismiss||m.onDismiss.call(m,m)},className:ya(null==P?void 0:P.closeButton,null==m||null==(a=m.classNames)?void 0:a.closeButton)},null!=(Ie=null==L?void 0:L.close)?Ie:pa):null,(ve||m.icon||m.promise)&&null!==m.icon&&(null!==(null==L?void 0:L[ve])||m.icon)?o.createElement("div",{"data-icon":"",className:ya(null==P?void 0:P.icon,null==m||null==(r=m.classNames)?void 0:r.icon)},m.promise||"loading"===m.type&&!m.icon?m.icon||function(){var e,t;return(null==L?void 0:L.loading)?o.createElement("div",{className:ya(null==P?void 0:P.loader,null==m||null==(t=m.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ve},L.loading):o.createElement(la,{className:ya(null==P?void 0:P.loader,null==m||null==(e=m.classNames)?void 0:e.loader),visible:"loading"===ve})}():null,"loading"!==m.type?Le:null):null,o.createElement("div",{"data-content":"",className:ya(null==P?void 0:P.content,null==m||null==(i=m.classNames)?void 0:i.content)},o.createElement("div",{"data-title":"",className:ya(null==P?void 0:P.title,null==m||null==(s=m.classNames)?void 0:s.title)},m.jsx?m.jsx:"function"===typeof m.title?m.title():m.title),m.description?o.createElement("div",{"data-description":"",className:ya(S,je,null==P?void 0:P.description,null==m||null==(l=m.classNames)?void 0:l.description)},"function"===typeof m.description?m.description():m.description):null),o.isValidElement(m.cancel)?m.cancel:m.cancel&&ba(m.cancel)?o.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||E,onClick:e=>{ba(m.cancel)&&be&&(null==m.cancel.onClick||m.cancel.onClick.call(m.cancel,e),Pe())},className:ya(null==P?void 0:P.cancelButton,null==m||null==(c=m.classNames)?void 0:c.cancelButton)},m.cancel.label):null,o.isValidElement(m.action)?m.action:m.action&&ba(m.action)?o.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||D,onClick:e=>{ba(m.action)&&(null==m.action.onClick||m.action.onClick.call(m.action,e),e.defaultPrevented||Pe())},className:ya(null==P?void 0:P.actionButton,null==m||null==(d=m.classNames)?void 0:d.actionButton)},m.action.label):null)};function wa(){if("undefined"===typeof window)return"ltr";if("undefined"===typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function Na(e,t){const n={};return[e,t].forEach((e,t)=>{const a=1===t,r=a?"--mobile-offset":"--offset",i=a?"16px":"24px";function s(e){["top","right","bottom","left"].forEach(t=>{n["".concat(r,"-").concat(t)]="number"===typeof e?"".concat(e,"px"):e})}"number"===typeof e||"string"===typeof e?s(e):"object"===typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n["".concat(r,"-").concat(t)]=i:n["".concat(r,"-").concat(t)]="number"===typeof e[t]?"".concat(e[t],"px"):e[t]}):s(i)}),n}const Aa=o.forwardRef(function(e,t){const n=e.invert,a=e.position,r=void 0===a?"bottom-right":a,i=e.hotkey,s=void 0===i?["altKey","KeyT"]:i,l=e.expand,c=e.closeButton,d=e.className,u=e.offset,m=e.mobileOffset,p=e.theme,f=void 0===p?"light":p,x=e.richColors,g=e.duration,v=e.style,b=e.visibleToasts,y=void 0===b?3:b,j=e.toastOptions,w=e.dir,N=void 0===w?wa():w,A=e.gap,k=void 0===A?14:A,E=e.icons,D=e.containerAriaLabel,_=void 0===D?"Notifications":D,C=Ue(o.useState([]),2),F=C[0],S=C[1],M=o.useMemo(()=>Array.from(new Set([r].concat(F.filter(e=>e.position).map(e=>e.position)))),[F,r]),O=Ue(o.useState([]),2),R=O[0],H=O[1],P=Ue(o.useState(!1),2),L=P[0],T=P[1],I=Ue(o.useState(!1),2),Z=I[0],B=I[1],V=Ue(o.useState("system"!==f?f:"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),2),z=V[0],q=V[1],U=o.useRef(null),W=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Y=o.useRef(null),K=o.useRef(!1),G=o.useCallback(e=>{S(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||fa.dismiss(e.id),t.filter(t=>t.id!==e.id)})},[]);return o.useEffect(()=>fa.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?h(h({},t),{},{delete:!0}):t))}):setTimeout(()=>{ia.flushSync(()=>{S(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),h(h({},t[n]),e),...t.slice(n+1)]:[e,...t]})})})}),[F]),o.useEffect(()=>{if("system"!==f)return void q(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),"undefined"===typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let t=e.matches;q(t?"dark":"light")})}catch(t){e.addListener(e=>{let t=e.matches;try{q(t?"dark":"light")}catch(zf){console.error(zf)}})}},[f]),o.useEffect(()=>{F.length<=1&&T(!1)},[F]),o.useEffect(()=>{const e=e=>{var t;var n;s.every(t=>e[t]||e.code===t)&&(T(!0),null==(n=U.current)||n.focus());"Escape"!==e.code||document.activeElement!==U.current&&!(null==(t=U.current)?void 0:t.contains(document.activeElement))||T(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),o.useEffect(()=>{if(U.current)return()=>{Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null,K.current=!1)}},[U.current]),o.createElement("section",{ref:t,"aria-label":"".concat(_," ").concat(W),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((t,a)=>{var r;const i=Ue(t.split("-"),2),s=i[0],p=i[1];return F.length?o.createElement("ol",{key:t,dir:"auto"===N?wa():N,tabIndex:-1,ref:U,className:d,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":s,"data-lifted":L&&F.length>1&&!l,"data-x-position":p,style:h(h({"--front-toast-height":"".concat((null==(r=R[0])?void 0:r.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(k,"px")},v),Na(u,m)),onBlur:e=>{K.current&&!e.currentTarget.contains(e.relatedTarget)&&(K.current=!1,Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||K.current||(K.current=!0,Y.current=e.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{Z||T(!1)},onDragEnd:()=>T(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||B(!0)},onPointerUp:()=>B(!1)},F.filter(e=>!e.position&&0===a||e.position===t).map((a,r)=>{var i,s;return o.createElement(ja,{key:a.id,icons:E,index:r,toast:a,defaultRichColors:x,duration:null!=(i=null==j?void 0:j.duration)?i:g,className:null==j?void 0:j.className,descriptionClassName:null==j?void 0:j.descriptionClassName,invert:n,visibleToasts:y,closeButton:null!=(s=null==j?void 0:j.closeButton)?s:c,interacting:Z,position:t,style:null==j?void 0:j.style,unstyled:null==j?void 0:j.unstyled,classNames:null==j?void 0:j.classNames,cancelButtonStyle:null==j?void 0:j.cancelButtonStyle,actionButtonStyle:null==j?void 0:j.actionButtonStyle,closeButtonAriaLabel:null==j?void 0:j.closeButtonAriaLabel,removeToast:G,toasts:F.filter(e=>e.position==a.position),heights:R.filter(e=>e.position==a.position),setHeights:H,expandByDefault:l,gap:k,expanded:L,swipeDirections:e.swipeDirections})})):null}))}),ka=e=>{let t=Object.assign({},(ta(e),e));const n=(()=>{var e;return null!=(e=o.useContext(aa))?e:ra})(),a=n.theme,r=void 0===a?"system":a;return(0,Pe.jsx)(Aa,h({theme:r,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},t))};function Ea(e,t){return function(){return e.apply(t,arguments)}}const Da=Object.prototype.toString,_a=Object.getPrototypeOf,Ca=(Fa=Object.create(null),e=>{const t=Da.call(e);return Fa[t]||(Fa[t]=t.slice(8,-1).toLowerCase())});var Fa;const Sa=e=>(e=e.toLowerCase(),t=>Ca(t)===e),Ma=e=>t=>typeof t===e,Oa=Array.isArray,Ra=Ma("undefined");const Ha=Sa("ArrayBuffer");
2const Pa=Ma("string"),La=Ma("function"),Ta=Ma("number"),Ia=e=>null!==e&&"object"===typeof e,Za=e=>{if("object"!==Ca(e))return!1;const t=_a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ba=Sa("Date"),Va=Sa("File"),za=Sa("Blob"),qa=Sa("FileList"),Ua=Sa("URLSearchParams"),Wa=Ue(["ReadableStream","Request","Response","Headers"].map(Sa),4),Ya=Wa[0],Ka=Wa[1],Ga=Wa[2],$a=Wa[3];function Qa(e,t){let n,a,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==r&&r;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Oa(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const a=i?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let s;for(n=0;n<r;n++)s=a[n],t.call(null,e[s],s,e)}}function Xa(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ja="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g,er=e=>!Ra(e)&&e!==Ja;const tr=(nr="undefined"!==typeof Uint8Array&&_a(Uint8Array),e=>nr&&e instanceof nr);var nr;const ar=Sa("HTMLFormElement"),rr=(()=>{let e=Object.prototype.hasOwnProperty;return(t,n)=>e.call(t,n)})(),ir=Sa("RegExp"),sr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Qa(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(a[r]=i||n)}),Object.defineProperties(e,a)};const or=Sa("AsyncFunction"),lr=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),a=[],Ja.addEventListener("message",e=>{let t=e.source,r=e.data;t===Ja&&r===n&&a.length&&a.shift()()},!1),e=>{a.push(e),Ja.postMessage(n,"*")}):e=>setTimeout(e);var n,a})("function"===typeof setImmediate,La(Ja.postMessage)),cr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Ja):"undefined"!==typeof process&&process.nextTick||lr,dr={isArray:Oa,isArrayBuffer:Ha,isBuffer:function(e){return null!==e&&!Ra(e)&&null!==e.constructor&&!Ra(e.constructor)&&La(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||La(e.append)&&("formdata"===(t=Ca(e))||"object"===t&&La(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ha(e.buffer),t},isString:Pa,isNumber:Ta,isBoolean:e=>!0===e||!1===e,isObject:Ia,isPlainObject:Za,isReadableStream:Ya,isRequest:Ka,isResponse:Ga,isHeaders:$a,isUndefined:Ra,isDate:Ba,isFile:Va,isBlob:za,isRegExp:ir,isFunction:La,isStream:e=>Ia(e)&&La(e.pipe),isURLSearchParams:Ua,isTypedArray:tr,isFileList:qa,forEach:Qa,merge:function e(){const t=(er(this)&&this||{}).caseless,n={},a=(a,r)=>{const i=t&&Xa(n,r)||r;Za(n[i])&&Za(a)?n[i]=e(n[i],a):Za(a)?n[i]=e({},a):Oa(a)?n[i]=a.slice():n[i]=a};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Qa(arguments[r],a);return n},extend:function(e,t,n){return Qa(t,(t,a)=>{n&&La(t)?e[a]=Ea(t,n):e[a]=t},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,i,s;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],a&&!a(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&_a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ca,kindOfTest:Sa,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(Oa(e))return e;let t=e.length;if(!Ta(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>
vendor: 4,142 bytes, line 2
2{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:ar,hasOwnProperty:rr,hasOwnProp:rr,reduceDescriptors:sr,freezeMethods:e=>{sr(e,(t,n)=>{if(La(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];La(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach(e=>{n[e]=!0})};return Oa(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Xa,global:Ja,isContextDefined:er,isSpecCompliantForm:function(e){return!!(e&&La(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(Ia(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const r=Oa(e)?[]:{};return Qa(e,(e,t)=>{const i=n(e,a+1);!Ra(i)&&(r[t]=i)}),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:or,isThenable:e=>e&&(Ia(e)||La(e))&&La(e.then)&&La(e.catch),setImmediate:lr,asap:cr};function ur(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status?r.status:null)}dr.inherits(ur,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:dr.toJSONObject(this.config),code:this.code,status:this.status}}});const mr=ur.prototype,pr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pr[e]={value:e}}),Object.defineProperties(ur,pr),Object.defineProperty(mr,"isAxiosError",{value:!0}),ur.from=(e,t,n,a,r,i)=>{const s=Object.create(mr);return dr.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ur.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const hr=ur;function fr(e){return dr.isPlainObject(e)||dr.isArray(e)}function xr(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function gr(e,t,n){return e?e.concat(t).map(function(e,t){return e=xr(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const vr=dr.toFlatObject(dr,{},null,function(e){return/^is[A-Z]/.test(e)});const br=function(e,t,n){if(!dr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(n=dr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dr.isUndefined(t[e])})).metaTokens,r=n.visitor||c,i=n.dots,s=n.indexes,o=(n.Blob||"undefined"!==typeof Blob&&Blob)&&dr.isSpecCompliantForm(t);if(!dr.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(dr.isDate(e))return e.toISOString();if(!o&&dr.isBlob(e))throw new hr("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(e)||dr.isTypedArray(e)?o&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let o=e;if(e&&!r&&"object"===typeof e)if(dr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(dr.isArray(e)&&function(e){return dr.isArray(e)&&!e.some(fr)}(e)||(dr.isFileList(e)||dr.endsWith(n,"[]"))&&(o=dr.toArray(e)))return n=xr(n),o.forEach(function(e,a){!dr.isUndefined(e)&&null!==e&&t.append(!0===s?gr([n],a,i):null===s?n:n+"[]",l(e))}),!1;return!!fr(e)||(t.append(gr(r,n,i),l(e)),!1)}const d=[],u=Object.assign(vr,{defaultVisitor:c,convertValue:l,isVisitable:fr});if(!dr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!dr.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+a.join("."));d.push(n),dr.forEach(n,function(n,i){!0===(!(dr.isUndefined(n)||null===n)&&r.call(t,n,dr.isString(i)?i.trim():i,a,u))&&e(n,a?a.concat(i):[i])}),d.pop()}}(e),t};
2function yr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function jr(e,t){this._pairs=[],e&&br(e,this,t)}const wr=jr.prototype;wr.append=function(e,t){this._pairs.push([e,t])},wr.toString=function(e){const t=e?function(t){return e.call(this,t,yr)}:yr;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Nr=jr;function Ar(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kr(e,t,n){if(!t)return e;const a=n&&n.encode||Ar;dr.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(i=r?r(t,n):dr.isURLSearchParams(t)?t.toString():new Nr(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Er=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){dr.forEach(this.handlers,function(t){null!==t&&e(t)})}},Dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_r={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Nr,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Cr="undefined"!==typeof window&&"undefined"!==typeof document,Fr="object"===typeof navigator&&navigator||void 0,Sr=Cr&&(!Fr||["ReactNative","NativeScript","NS"].indexOf(Fr.product)<0),Mr="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Or=Cr&&window.location.href||"http://localhost",Rr=h(h({},a),_r);const Hr=function(e){function t(e,n,a,r){let i=e[r++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),o=r>=e.length;if(i=!i&&dr.isArray(a)?a.length:i,o)return dr.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s;a[i]&&dr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],r)&&dr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=e[i];return t}(a[i])),!s}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const n={};return dr.forEachEntry(e,(e,a)=>{t(function(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null};const Pr={transitional:Dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=dr.isObject(e);r&&dr.isHTMLForm(e)&&(e=new FormData(e));if(dr.isFormData(e))return a?JSON.stringify(Hr(e)):e;if(dr.isArrayBuffer(e)||dr.isBuffer(e)||dr.isStream(e)||dr.isFile(e)||dr.isBlob(e)||dr.isReadableStream(e))return e;if(dr.isArrayBufferView(e))return e.buffer;if(dr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return br(e,new Rr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return Rr.isNode&&dr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=dr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return br(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(dr.isString(e))try{return(t||JSON.parse)(e),dr.trim(e)}catch(zf){if("SyntaxError"!==zf.name)throw zf}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pr.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(dr.isResponse(e)||dr.isReadableStream(e))return e;if(e&&dr.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(zf){if(n){if("SyntaxError"===zf.name)throw hr.from(zf,hr.ERR_BAD_RESPONSE,this,null,this.response);throw zf}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rr.classes.FormData,Blob:Rr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],e=>{Pr.headers[e]={}});const Lr=Pr,Tr=dr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ir=e=>{const t={};let n,a,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&Tr[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};n.dn(Ir);const Zr=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function Vr(e){return!1===e||null==e?e:dr.isArray(e)?e.map(Vr):String(e)}
2function zr(e,t,n,a,r){return dr.isFunction(a)?a.call(this,t,n):(r&&(t=n),dr.isString(t)?dr.isString(a)?-1!==t.indexOf(a):dr.isRegExp(a)?a.test(t):void 0:void 0)}class qr{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=Br(t);if(!r)throw new Error("header name must be a non-empty string");const i=dr.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=Vr(e))}const i=(e,t)=>dr.forEach(e,(e,n)=>r(e,n,t));if(dr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(dr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(Ir(e),t);else if(dr.isHeaders(e))for(const o of e.entries()){var s=Ue(o,2);const e=s[0];r(s[1],e,n)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Br(e)){const n=dr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(dr.isFunction(t))return t.call(this,e,n);if(dr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Br(e)){const n=dr.findKey(this,e);return!(!n||void 0===this[n]||t&&!zr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=Br(e)){const r=dr.findKey(n,e);!r||t&&!zr(0,n[r],r,t)||(delete n[r],a=!0)}}return dr.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!zr(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return dr.forEach(this,(a,r)=>{const i=dr.findKey(n,r);if(i)return t[i]=Vr(a),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();s!==r&&delete t[r],t[s]=Vr(a),n[s]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return dr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&dr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let t=Ue(e,2);return t[0]+": "+t[1]}).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return a.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[Zr]=this[Zr]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=Br(e);t[a]||(!function(e,t){const n=dr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[a]=!0)}return dr.isArray(e)?e.forEach(a):a(e),this}}qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(qr.prototype,(e,t)=>{let n=e.value,a=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[a]=e}}}),dr.freezeMethods(qr);const Ur=qr;function Wr(e,t){const n=this||Lr,a=t||n,r=Ur.from(a.headers);let i=a.data;return dr.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Yr(e){return!(!e||!e.__CANCEL__)}function Kr(e,t,n){hr.call(this,null==e?"canceled":e,hr.ERR_CANCELED,t,n),this.name="CanceledError"}dr.inherits(Kr,hr,{__CANCEL__:!0});const Gr=Kr;function $r(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new hr("Request failed with status code "+n.status,[hr.ERR_BAD_REQUEST,hr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Qr=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,i=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=a[s];r||(r=l),n[i]=o,a[i]=l;let d=s,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-r<t)return;const m=c&&l-c;return m?Math.round(1e3*u/m):void 0}};const Xr=function(e,t){let n,a,r=0,i=1e3/t;const s=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=i,n=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-r;for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];t>=i?s(l,e):(n=l,a||(a=setTimeout(()=>{a=null,s(n)},i-t)))},()=>n&&s(n)]},Jr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=0;const r=Qr(50,250);return Xr(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,o=i-a,l=r(o);a=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},ei=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},ti=e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return dr.asap(()=>e(...n))},ni=Rr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rr.origin),Rr.navigator&&/(msie|trident)/i.test(Rr.navigator.userAgent)):()=>!0,ai=Rr.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];dr.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),dr.isString(a)&&s.push("path="+a),dr.isString(r)&&s.push("domain="+r),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ri(e,t,n){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ii=e=>e instanceof Ur?h({},e):e;function si(e,t){t=t||{};const n={};function a(e,t,n,a){return dr.isPlainObject(e)&&dr.isPlainObject(t)?dr.merge.call({caseless:a},e,t):dr.isPlainObject(t)?dr.merge({},t):dr.isArray(t)?t.slice():t}function r(e,t,n,r){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:a(void 0,e,0,r):a(e,t,0,r)}function i(e,t){if(!dr.isUndefined(t))return a(void 0,t)}function s(e,t){return dr.isUndefined(t)?dr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function o(n,r,i){return i in t?a(n,r):i in e?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>r(ii(e),ii(t),0,!0)};return dr.forEach(Object.keys(Object.assign({},e,t)),function(a){const i=l[a]||r,s=i(e[a],t[a],a);dr.isUndefined(s)&&i!==o||(n[a]=s)}),n}const oi=e=>{const t=si({},e);let n,a=t.data,r=t.withXSRFToken,i=t.xsrfHeaderName,s=t.xsrfCookieName,o=t.headers,l=t.auth;if(t.headers=o=Ur.from(o),t.url=kr(ri(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),dr.isFormData(a))if(Rr.hasStandardBrowserEnv||Rr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(n=o.getContentType())){const e=qe(n?n.split(";").map(e=>
2e.trim()).filter(Boolean):[]),t=e[0],a=Ze(e).slice(1);o.setContentType([t||"multipart/form-data",...a].join("; "))}if(Rr.hasStandardBrowserEnv&&(r&&dr.isFunction(r)&&(r=r(t)),r||!1!==r&&ni(t.url))){const e=i&&s&&ai.read(s);e&&o.set(i,e)}return t};n.dn(oi);const li="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=oi(e);let r=a.data;const i=Ur.from(a.headers).normalize();let s,o,l,c,d,u=a.responseType,m=a.onUploadProgress,p=a.onDownloadProgress;function h(){c&&c(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function x(){if(!f)return;const a=Ur.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());$r(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}if(f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=x:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(x)},f.onabort=function(){f&&(n(new hr("Request aborted",hr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new hr("Network Error",hr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||Dr;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new hr(t,r.clarifyTimeoutError?hr.ETIMEDOUT:hr.ECONNABORTED,e,f)),f=null},void 0===r&&i.setContentType(null),"setRequestHeader"in f&&dr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),dr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),u&&"json"!==u&&(f.responseType=a.responseType),p){var g=Ue(Jr(p,!0),2);l=g[0],d=g[1],f.addEventListener("progress",l)}if(m&&f.upload){var v=Ue(Jr(m),2);o=v[0],c=v[1],f.upload.addEventListener("progress",o),f.upload.addEventListener("loadend",c)}(a.cancelToken||a.signal)&&(s=t=>{f&&(n(!t||t.type?new Gr(null,e,f):t),f.abort(),f=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);b&&-1===Rr.protocols.indexOf(b)?n(new hr("Unsupported protocol "+b+":",hr.ERR_BAD_REQUEST,e)):f.send(r||null)})},ci=(e,t)=>{const n=(e=e?e.filter(Boolean):[]).length;if(t||n){let n,a=new AbortController;const r=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;a.abort(t instanceof hr?t:new Gr(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,r(new hr("timeout ".concat(t," of ms exceeded"),hr.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const o=a.signal;return o.unsubscribe=()=>dr.asap(s),o}};function di(e,t){this.v=e,this.k=t}function ui(e){return function(){return new mi(e.apply(this,arguments))}}function mi(e){var t,n;function a(t,n){try{var i=e[t](n),s=i.value,o=s instanceof di;Promise.resolve(o?s.v:s).then(function(n){if(o){var l="return"===t&&s.k?t:"next";if(!s.k||n.done)return a(l,n);n=e[l](n).value}r(!!i.done,n)},function(e){a("throw",e)})}catch(e){r(2,e)}}function r(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?a(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(i,s){var o={key:e,arg:r,resolve:i,reject:s,next:null};n?n=n.next=o:(t=n=o,a(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function pi(e){return new di(e,0)}function hi(e){var t={},n=!1;function a(t,a){return n=!0,a=new Promise(function(n){n(e[t](a))}),{done:!1,value:new di(a,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):a("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return a("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):a("return",e)}),t}function fi(e){var t,n,a,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,a=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);
2if(a&&null!=(t=e[a]))return new xi(t.call(e));n="@@asyncIterator",a="@@iterator"}throw new TypeError("Object is not async iterable")}function xi(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return xi=function(e){this.s=e,this.n=e.next},xi.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new xi(e)}mi.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},mi.prototype.next=function(e){return this._invoke("next",e)},mi.prototype.throw=function(e){return this._invoke("throw",e)},mi.prototype.return=function(e){return this._invoke("return",e)};const gi=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,r=0;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},vi=function(){var e=ui(function*(e,t){var n,a=!1,r=!1;try{for(var i,s=fi(bi(e));a=!(i=yield pi(s.next())).done;a=!1){const e=i.value;yield*hi(fi(gi(e,t)))}}catch(o){r=!0,n=o}finally{try{a&&null!=s.return&&(yield pi(s.return()))}finally{if(r)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),bi=function(){var e=ui(function*(e){if(e[Symbol.asyncIterator])return void(yield*hi(fi(e)));const t=e.getReader();try{for(;;){const e=yield pi(t.read()),n=e.done,a=e.value;if(n)break;yield a}}finally{yield pi(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),yi=(e,t,n,a)=>{const r=vi(e,t);let i,s=0,o=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const t=await r.next(),a=t.done,i=t.value;if(a)return o(),void e.close();let l=i.byteLength;if(n){let e=s+=l;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw o(t),t}},cancel:e=>(o(e),r.return())},{highWaterMark:2})},ji="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,wi=ji&&"function"===typeof ReadableStream,Ni=ji&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ai=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return!!e(...n)}catch(zf){return!1}},ki=wi&&Ai(()=>{let e=!1;const t=new Request(Rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ei=wi&&Ai(()=>dr.isReadableStream(new Response("").body)),Di={stream:Ei&&(e=>e.body)};var _i;ji&&(_i=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Di[e]&&(Di[e]=dr.isFunction(_i[e])?t=>t[e]():(t,n)=>{throw new hr("Response type '".concat(e,"' is not supported"),hr.ERR_NOT_SUPPORT,n)})}));const Ci=async(e,t)=>{const n=dr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e)){const t=new Request(Rr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dr.isArrayBufferView(e)||dr.isArrayBuffer(e)?e.byteLength:(dr.isURLSearchParams(e)&&(e+=""),dr.isString(e)?(await Ni(e)).byteLength:void 0)})(t):n},Fi=ji&&(async e=>{let t=oi(e),n=t.url,a=t.method,r=t.data,i=t.signal,s=t.cancelToken,o=t.timeout,l=t.onDownloadProgress,c=t.onUploadProgress,d=t.responseType,u=t.headers,m=t.withCredentials,p=void 0===m?"same-origin":m,f=t.fetchOptions;d=d?(d+"").toLowerCase():"text";let x,g=ci([i,s&&s.toAbortSignal()],o);const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(c&&ki&&"get"!==a&&"head"!==a&&0!==(b=await Ci(u,r))){let e,t=new Request(n,{method:"POST",body:r,duplex:"half"});if(dr.isFormData(r)&&(e=t.headers.get("content-type"))&&u.setContentType(e),t.body){const e=Ue(ei(b,Jr(ti(c))),2),n=e[0],a=e[1];r=yi(t.body,65536,n,a)}}dr.isString(p)||(p=p?"include":"omit");const t="credentials"in Request.prototype;x=new Request(n,h(h({},f),{},{signal:g,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:t?p:void 0}));let i=await fetch(x);const s=Ei&&("stream"===d||"response"===d);if(Ei&&(l||s&&v)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=dr.toFiniteNumber(i.headers.get("content-length")),n=Ue(l&&ei(t,Jr(ti(l),!0))||[],2),a=n[0],r=n[1];i=new Response(yi(i.body,65536,a,()=>{r&&r(),v&&v()}),e)}d=d||"text";let o=await Di[dr.findKey(Di,d)||"text"](i,e);return!s&&v&&v(),await new Promise((t,n)=>{$r(t,n,{data:o,headers:Ur.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:x})})}catch(y){if(v&&v(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new hr("Network Error",hr.ERR_NETWORK,e,x),{cause:y.cause||y});throw hr.from(y,y&&y.code,e,x)}}),Si={http:null,xhr:li,fetch:Fi};dr.forEach(Si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(zf){}Object.defineProperty(e,"adapterName",{value:t})}});const Mi=e=>"- ".concat(e),Oi=e=>dr.isFunction(e)||null===e||!1===e,Ri=e=>{const t=(e=dr.isArray(e)?e:[e]).length;let n,a;const r={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!Oi(n)&&(a=Si[(t=String(n)).toLowerCase()],void 0===a))throw new hr("Unknown adapter '".concat(t,"'"));if(a)break;r[t||"#"+i]=a}if(!a){const e=Object.entries(r).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return"adapter ".concat(n," ")+(!1===a?"is not supported by the environment":"is not available in the build")});let n=t?e.length>
21?"since :\n"+e.map(Mi).join("\n"):" "+Mi(e[0]):"as no adapter specified";throw new hr("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return a};function Hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gr(null,e)}function Pi(e){Hi(e),e.headers=Ur.from(e.headers),e.data=Wr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ri(e.adapter||Lr.adapter)(e).then(function(t){return Hi(e),t.data=Wr.call(e,e.transformResponse,t),t.headers=Ur.from(t.headers),t},function(t){return Yr(t)||(Hi(e),t&&t.response&&(t.response.data=Wr.call(e,e.transformResponse,t.response),t.response.headers=Ur.from(t.response.headers))),Promise.reject(t)})}const Li={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Li[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ti={};Li.transitional=function(e,t,n){function a(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new hr(a(r," has been removed"+(t?" in "+t:"")),hr.ERR_DEPRECATED);return t&&!Ti[r]&&(Ti[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},Li.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const Ii={assertOptions:function(e,t,n){if("object"!==typeof e)throw new hr("options must be an object",hr.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new hr("option "+i+" must be "+n,hr.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new hr("Unknown option "+i,hr.ERR_BAD_OPTION)}},validators:Li},Zi=Ii.validators;class Bi{constructor(e){this.defaults=e,this.interceptors={request:new Er,response:new Er}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(zf){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};const n=t=si(this.defaults,t),a=n.transitional,r=n.paramsSerializer,i=n.headers;void 0!==a&&Ii.assertOptions(a,{silentJSONParsing:Zi.transitional(Zi.boolean),forcedJSONParsing:Zi.transitional(Zi.boolean),clarifyTimeoutError:Zi.transitional(Zi.boolean)},!1),null!=r&&(dr.isFunction(r)?t.paramsSerializer={serialize:r}:Ii.assertOptions(r,{encode:Zi.function,serialize:Zi.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ii.assertOptions(t,{baseUrl:Zi.spelling("baseURL"),withXsrfToken:Zi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&dr.merge(i.common,i[t.method]);i&&dr.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Ur.concat(s,i);const o=[];let l=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let d;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,m=0;if(!l){const e=[Pi.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),u=e.length,d=Promise.resolve(t);m<u;)d=d.then(e[m++],e[m++]);return d}u=o.length;let p=t;for(m=0;m<u;){const e=o[m++],t=o[m++];try{p=e(p)}catch(h){t.call(this,h);break}}try{d=Pi.call(this,p)}catch(h){return Promise.reject(h)}for(m=0,u=c.length;m<u;)d=d.then(c[m++],c[m++]);return d}getUri(e){return kr(ri((e=si(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}dr.forEach(["delete","get","head","options"],function(e){Bi.prototype[e]=function(t,n){return this.request(si(n||{},{method:e,url:t,data:(n||{}).data}))}}),dr.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,r){return this.request(si(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Bi.prototype[e]=t(),Bi.prototype[e+"Form"]=t(!0)});const Vi=Bi;class zi{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,r){n.reason||(n.reason=new Gr(e,a,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new zi(function(t){e=t});return{token:t,cancel:e}}}const qi=zi;const Ui={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ui).forEach(e=>{let t=Ue(e,2),n=t[0],a=t[1];Ui[a]=n});const Wi=Ui;const Yi=function e(t){const n=new Vi(t),a=Ea(Vi.prototype.request,n);return dr.extend(a,Vi.prototype,n,{allOwnKeys:!0}),dr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(si(t,n))},a}(Lr);Yi.Axios=Vi,Yi.CanceledError=Gr,Yi.CancelToken=qi,Yi.isCancel=Yr,Yi.VERSION="1.8.4",Yi.toFormData=br,Yi.AxiosError=hr,Yi.Cancel=Yi.CanceledError,Yi.all=function(e){return Promise.all(e)},Yi.spread=function(e){return function(t){return e.apply(null,t)}},Yi.isAxiosError=function(e){return dr.isObject(e)&&!0===e.isAxiosError},Yi.mergeConfig=si,Yi.AxiosHeaders=Ur,Yi.formToJSON=e=>
2Hr(dr.isHTMLForm(e)?new FormData(e):e),Yi.getAdapter=Ri,Yi.HttpStatusCode=Wi,Yi.default=Yi;const Ki=Yi,Gi="".concat("https://www.getaros.ai","/api"),$i=Ki.create({baseURL:Gi});$i.interceptors.request.use(e=>{const t=localStorage.getItem("aros_token");return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),$i.interceptors.response.use(e=>e,e=>{var t,n,a,r;null===e||void 0===e||null===(t=e.response)||void 0===t||t.status;const i=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail,s=i&&"object"===typeof i?i.code:null;return 403===(null===e||void 0===e||null===(r=e.response)||void 0===r?void 0:r.status)&&"trial_expired"===s&&"undefined"!==typeof window&&"/trial-expired"!==window.location.pathname&&window.location.assign("/trial-expired"),Promise.reject(e)});const Qi=$i,Xi=(0,o.createContext)(null);function Ji(e){let t=e.children;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!0),2),s=i[0],l=i[1],c=(0,o.useCallback)(async()=>{if(!localStorage.getItem("aros_token"))return r(null),void l(!1);try{const e=(await Qi.get("/auth/me")).data;r(e)}catch(e){localStorage.removeItem("aros_token"),r(null)}finally{l(!1)}},[]);(0,o.useEffect)(()=>{c()},[c]);return(0,Pe.jsx)(Xi.Provider,{value:{user:a,loading:s,login:async(e,t)=>{const n=(await Qi.post("/auth/login",{email:e,password:t})).data;return null!==n&&void 0!==n&&n.mfa_required||null!==n&&void 0!==n&&n.mfa_enrolment_required?{mfa:{purpose:n.purpose,challenge_token:n.challenge_token,expires_in:n.expires_in}}:(localStorage.setItem("aros_token",n.access_token),r(n.user),n.user)},register:async e=>{const t=(await Qi.post("/auth/register",e)).data;return localStorage.setItem("aros_token",t.access_token),r(t.user),t.user},logout:()=>{localStorage.removeItem("aros_token"),r(null)},completeGoogleSession:async e=>{const t=(await Qi.post("/auth/google/session",{session_id:e})).data;return localStorage.setItem("aros_token",t.access_token),r(t.user),t.user},refresh:c,refreshUser:c},children:t})}const es=()=>(0,o.useContext)(Xi);function ts(e){let t=e.children,n=e.roles;const a=es(),r=a.user,i=a.loading,s=Zt();return i?(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center text-sm text-muted-foreground",children:"Loading\u2026"}):r?n&&!n.includes(r.role)?(0,Pe.jsx)(sn,{to:"/",replace:!0}):t:(0,Pe.jsx)(sn,{to:"/login",state:{from:s},replace:!0})}const ns="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:"443",FAST_REFRESH:!0,REACT_APP_BACKEND_URL:"https://www.getaros.ai",REACT_APP_PUBLIC_APP_URL:"https://www.getaros.ai",REACT_APP_TURNSTILE_SITE_KEY:"",REACT_APP_GA4_MEASUREMENT_ID:"",REACT_APP_GSC_VERIFICATION:"",REACT_APP_BING_VERIFICATION:""}||{};function as(e,t){if("string"!==typeof e)return t;const n=e.trim();return n.length>0?n:t}const rs=as(ns.REACT_APP_BRAND_NAME,"AROS"),is=as(ns.REACT_APP_BRAND_HANDLED,rs);as(ns.REACT_APP_BRAND_TAGLINE,"Hiring, handled."),as(ns.REACT_APP_BRAND_PROMISE,"You run the business. ".concat(is," handles the hiring."));const ss={light:{left:"#14B8A6",right:"#FFC857",bottom:"#0F1D2D",text:"#FFFFFF"},dark:{left:"#0F1D2D",right:"#14B8A6",bottom:"#0F1D2D",text:"#0F1D2D"}};function os(e){let t=e.size,n=void 0===t?28:t,a=e.tone,r=void 0===a?"dark":a,i=e.className,s=void 0===i?"":i;const o=ss[r]||ss.dark;return(0,Pe.jsxs)("svg",{viewBox:"0 0 64 64",width:n,height:n,role:"img","aria-label":"".concat(rs," logo"),className:s,"data-testid":"aros-mark",children:[(0,Pe.jsx)("polygon",{points:"32,4 4,56 32,38",fill:o.left}),(0,Pe.jsx)("polygon",{points:"32,4 32,38 60,56",fill:o.right}),(0,Pe.jsx)("polygon",{points:"32,38 4,56 24,56 32,46 40,56 60,56",fill:o.bottom})]})}function ls(e){let t=e.to,n=void 0===t?"/":t,a=e.invert,r=void 0!==a&&a,i=e.withWordmark,s=void 0===i||i,o=e.size,l=void 0===o?28:o;const c=r?"light":"dark",d=r?"text-white":"text-[#0F1D2D]",u=Zt(),m=zt();return(0,Pe.jsxs)(Yn,{to:n,onClick:e=>{u.pathname===n?(e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})):(e.preventDefault(),m(n),window.scrollTo({top:0,behavior:"auto"}))},className:"inline-flex items-center gap-2.5 group select-none","data-testid":"nav-brand","aria-label":"".concat(rs," \u2014 home"),children:[(0,Pe.jsx)(os,{size:l,tone:c,className:"shrink-0 transition-transform duration-300 group-hover:-translate-y-0.5"}),s&&(0,Pe.jsx)("span",{className:"font-sans font-bold tracking-[0.04em] ".concat(d),style:{fontSize:"".concat(Math.round(.72*l),"px"),lineHeight:1},"data-testid":"nav-brand-wordmark",children:rs})]})}function cs(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const a=t.map(t=>{const a=cs(t,e);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let e=0;e<a.length;e++){const n=a[e];"function"==typeof n?n():cs(t[e],null)}}}}function us(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(ds(...t),t)}const ms=["children"],ps=["children"];
2function hs(e){const t=xs(e),n=o.forwardRef((e,n)=>{const a=e.children,r=Ie(e,ms),i=o.Children.toArray(a),s=i.find(bs);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,Pe.jsx)(t,h(h({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,Pe.jsx)(t,h(h({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}var fs=hs("Slot");function xs(e){const t=o.forwardRef((e,t)=>{const n=e.children,a=Ie(e,ps);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=h({},t);for(const a in t){const r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=function(){i(...arguments),r(...arguments)}:r&&(n[a]=r):"style"===a?n[a]=h(h({},r),i):"className"===a&&(n[a]=[r,i].filter(Boolean).join(" "))}return h(h({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?ds(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var gs=Symbol("radix.slottable");function vs(e){const t=e=>{let t=e.children;return(0,Pe.jsx)(Pe.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=gs,t}function bs(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===gs}function ys(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ys(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function js(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ys(e))&&(a&&(a+=" "),a+=t);return a}const ws=["class","className"],Ns=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,As=js,ks=(e,t)=>n=>{var a;if(null==(null===t||void 0===t?void 0:t.variants))return As(e,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const r=t.variants,i=t.defaultVariants,s=Object.keys(r).map(e=>{const t=null===n||void 0===n?void 0:n[e],a=null===i||void 0===i?void 0:i[e];if(null===t)return null;const s=Ns(t)||Ns(a);return r[e][s]}),o=n&&Object.entries(n).reduce((e,t)=>{let n=Ue(t,2),a=n[0],r=n[1];return void 0===r||(e[a]=r),e},{}),l=null===t||void 0===t||null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let n=t.class,a=t.className,r=Ie(t,ws);return Object.entries(r).every(e=>{let t=Ue(e,2),n=t[0],a=t[1];return Array.isArray(a)?a.includes(h(h({},i),o)[n]):h(h({},i),o)[n]===a})?[...e,n,a]:e},[]);return As(e,s,l,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)},Es=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),i=r?Es(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const s=e.join("-");return null===(n=t.validators.find(e=>(0,e.validator)(s)))||void 0===n?void 0:n.classGroupId},Ds=/^\[(.+)\]$/,_s=e=>{if(Ds.test(e)){const t=Ds.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Cs=e=>{const t=e.theme,n=e.classGroups,a={nextPart:new Map,validators:[]};for(const r in n)Fs(n[r],a,r,t);return a},Fs=(e,t,n,a)=>{e.forEach(e=>{if("string"===typeof e){return void((""===e?t:Ss(t,e)).classGroupId=n)}if("function"===typeof e)return Ms(e)?void Fs(e(a),t,n,a):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(e=>{let r=Ue(e,2),i=r[0],s=r[1];Fs(s,Ss(t,i),n,a)})})},Ss=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Ms=e=>e.isThemeGetter,Os=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(r,i)=>{n.set(r,i),t++,t>e&&(t=0,a=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=a.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},Rs=e=>{const t=e.prefix,n=e.experimentalParseClassName;let a=e=>{const t=[];let n,a=0,r=0,i=0;for(let l=0;l<e.length;l++){let s=e[l];
2if(0===a&&0===r){if(":"===s){t.push(e.slice(i,l)),i=l+1;continue}if("/"===s){n=l;continue}}"["===s?a++:"]"===s?a--:"("===s?r++:")"===s&&r--}const s=0===t.length?e:e.substring(i),o=Hs(s);return{modifiers:t,hasImportantModifier:o!==s,baseClassName:o,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=a;a=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=a;a=t=>n({className:t,parseClassName:e})}return a},Hs=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ps=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...a.sort(),e),a=[]):a.push(e)}),n.push(...a.sort()),n}},Ls=e=>h({cache:Os(e.cacheSize),parseClassName:Rs(e),sortModifiers:Ps(e)},(e=>{const t=Cs(e),n=e.conflictingClassGroups,a=e.conflictingClassGroupModifiers;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Es(n,t)||_s(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}})(e)),Ts=/\s+/;function Is(){let e,t,n=0,a="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Zs(e))&&(a&&(a+=" "),a+=t);return a}const Zs=e=>{if("string"===typeof e)return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=Zs(e[a]))&&(n&&(n+=" "),n+=t);return n};function Bs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];let r,i,s,o=function(t){const a=n.reduce((e,t)=>t(e),e());return r=Ls(a),i=r.cache.get,s=r.cache.set,o=l,l(t)};function l(e){const t=i(e);if(t)return t;const n=((e,t)=>{const n=t.parseClassName,a=t.getClassGroupId,r=t.getConflictingClassGroupIds,i=t.sortModifiers,s=[],o=e.trim().split(Ts);let l="";for(let c=o.length-1;c>=0;c-=1){const e=o[c],t=n(e),d=t.isExternal,u=t.modifiers,m=t.hasImportantModifier,p=t.baseClassName,h=t.maybePostfixModifierPosition;if(d){l=e+(l.length>0?" "+l:l);continue}let f=!!h,x=a(f?p.substring(0,h):p);if(!x){if(!f){l=e+(l.length>0?" "+l:l);continue}if(x=a(p),!x){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=i(u).join(":"),v=m?g+"!":g,b=v+x;if(s.includes(b))continue;s.push(b);const y=r(x,f);for(let n=0;n<y.length;++n){const e=y[n];s.push(v+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return s(e,n),n}return function(){return o(Is.apply(null,arguments))}}const Vs=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},zs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Us=/^\d+\/\d+$/,Ws=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ks=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Gs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$s=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qs=e=>Us.test(e),Xs=e=>!!e&&!Number.isNaN(Number(e)),Js=e=>!!e&&Number.isInteger(Number(e)),eo=e=>e.endsWith("%")&&Xs(e.slice(0,-1)),to=e=>Ws.test(e),no=()=>!0,ao=e=>Ys.test(e)&&!Ks.test(e),ro=()=>!1,io=e=>Gs.test(e),so=e=>$s.test(e),oo=e=>!co(e)&&!xo(e),lo=e=>No(e,Do,ro),co=e=>zs.test(e),uo=e=>No(e,_o,ao),mo=e=>No(e,Co,Xs),po=e=>No(e,ko,ro),ho=e=>No(e,Eo,so),fo=e=>No(e,So,io),xo=e=>qs.test(e),go=e=>Ao(e,_o),vo=e=>Ao(e,Fo),bo=e=>Ao(e,ko),yo=e=>Ao(e,Do),jo=e=>Ao(e,Eo),wo=e=>Ao(e,So,!0),No=(e,t,n)=>{const a=zs.exec(e);return!!a&&(a[1]?t(a[1]):n(a[2]))},Ao=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=qs.exec(e);return!!a&&(a[1]?t(a[1]):n)},ko=e=>"position"===e||"percentage"===e,Eo=e=>"image"===e||"url"===e,Do=e=>"length"===e||"size"===e||"bg-size"===e,_o=e=>"length"===e,Co=e=>"number"===e,Fo=e=>"family-name"===e,So=e=>"shadow"===e,Mo=(Symbol.toStringTag,()=>{const e=Vs("color"),t=Vs("font"),n=Vs("text"),a=Vs("font-weight"),r=Vs("tracking"),i=Vs("leading"),s=Vs("breakpoint"),o=Vs("container"),l=Vs("spacing"),c=Vs("radius"),d=Vs("shadow"),u=Vs("inset-shadow"),m=Vs("text-shadow"),p=Vs("drop-shadow"),h=Vs("blur"),f=Vs("perspective"),x=Vs("aspect"),g=Vs("ease"),v=Vs("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",xo,co],y=()=>[xo,co,l],j=()=>[Qs,"full","auto",...y()],w=()=>[Js,"none","subgrid",xo,co],N=()=>["auto",{span:["full",Js,xo,co]},Js,xo,co],A=()=>[Js,"auto",xo,co],k=()=>["auto","min","max","fr",xo,co],E=()=>["auto",...y()],D=()=>[Qs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],_=()=>[e,xo,co],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",bo,po,{position:[xo,co]}],F=()=>["auto","cover","contain",yo,lo,{size:[xo,co]}],S=()=>[eo,go,uo],M=()=>["","none","full",c,xo,co],O=()=>["",Xs,go,uo],R=()=>[Xs,eo,bo,po],H=()=>["","none",h,xo,co],P=()=>["none",Xs,xo,co],L=()=>["none",Xs,xo,co],T=()=>[Xs,xo,co],I=()=>[Qs,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[to],breakpoint:[to],color:[no],container:[to],"drop-shadow":[to],ease:["in","out","in-out"],font:[oo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[to],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[to],shadow:[to
vendor: 5,502 bytes, line 2
2],spacing:["px",Xs],text:[to],"text-shadow":[to],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qs,co,xo,x]}],container:["container"],columns:[{columns:[Xs,co,xo,o]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[Js,"auto",xo,co]}],basis:[{basis:[Qs,"full","auto",o,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xs,Qs,"auto","initial","none",co]}],grow:[{grow:["",Xs,xo,co]}],shrink:[{shrink:["",Xs,xo,co]}],order:[{order:[Js,"first","last","none",xo,co]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[o,"screen",...D()]}],"min-w":[{"min-w":[o,"screen","none",...D()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...D()]}],h:[{h:["screen",...D()]}],"min-h":[{"min-h":["screen","none",...D()]}],"max-h":[{"max-h":["screen",...D()]}],"font-size":[{text:["base",n,go,uo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,xo,mo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eo,co]}],"font-family":[{font:[vo,co,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,xo,co]}],"line-clamp":[{"line-clamp":[Xs,"none",xo,mo]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",xo,co]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xo,co]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","
2wavy"]}],"text-decoration-thickness":[{decoration:[Xs,"from-font","auto",xo,uo]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Xs,"auto",xo,co]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xo,co]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xo,co]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Js,xo,co],radial:["",xo,co],conic:[Js,xo,co]},jo,ho]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Xs,xo,co]}],"outline-w":[{outline:["",Xs,go,uo]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,wo,fo]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,wo,fo]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Xs,uo]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,wo,fo]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Xs,xo,co]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Xs]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[xo,co]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Xs]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xo,co]}],filter:[{filter:["","none",xo,co]}],blur:[{blur:H()}],brightness:[{brightness:[Xs,xo,co]}],contrast:[{contrast:[Xs,xo,co]}],"drop-shadow":[{"drop-shadow":["","none",p,wo,fo]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Xs,xo,co]}],"hue-rotate":[{"hue-rotate":[Xs,xo,co]}],invert:[{invert:["",Xs,xo,co]}],saturate:[{saturate:[Xs,xo,co]}],sepia:[{sepia:["",Xs,xo,co]}],"backdrop-filter":[{"backdrop-filter":["","none",xo,co]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[Xs,xo,co]}],"backdrop-contrast":[{"backdrop-contrast":[Xs,xo,co]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xs,xo,co]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xs,xo,co]}],"backdrop-invert":[{"backdrop-invert":["",Xs,xo,co]}],"backdrop-opacity":[{"backdrop-opacity":[Xs,xo,co]}],"backdrop-saturate":[{"backdrop-saturate":[Xs,xo,co]}],"backdrop-sepia":[{"backdrop-sepia":["",Xs,xo,co]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xo,co]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xs,"initial",xo,co]}],ease:[{ease:["linear","initial",g,xo,co]}],delay:[{delay:[Xs,xo,co]}],animate:[{animate:["none",v,xo,co]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,xo,co]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:T()}],"skew-x":[{"skew-x":T()}],"skew-y":[{"skew-y":T()}],transform:[{transform:[xo,co,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}
vendor: 5,533 bytes, line 2
2],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xo,co]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xo,co]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Xs,go,uo,mo]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Oo=Bs(Mo);function Ro(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Oo(js(t))}const Ho=["className","variant","size","asChild"],Po=ks("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Lo=o.forwardRef((e,t)=>
2{let n=e.className,a=e.variant,r=e.size,i=e.asChild,s=void 0!==i&&i,o=Ie(e,Ho);const l=s?fs:"button";return(0,Pe.jsx)(l,h({className:Ro(Po({variant:a,size:r,className:n})),ref:t},o))});Lo.displayName="Button";const To=["className","type"],Io=o.forwardRef((e,t)=>{let n=e.className,a=e.type,r=Ie(e,To);return(0,Pe.jsx)("input",h({type:a,className:Ro("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t},r))});Io.displayName="Input";const Zo=["className"],Bo=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Zo);return(0,Pe.jsx)("textarea",h({className:Ro("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t},a))});Bo.displayName="Textarea";const Vo=["asChild"];var zo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=hs("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const r=e.asChild,i=Ie(e,Vo),s=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Pe.jsx)(s,h(h({},i),{},{ref:a}))});return a.displayName="Primitive.".concat(t),h(h({},e),{},{[t]:a})},{});function qo(e,t){e&&ia.flushSync(()=>e.dispatchEvent(t))}var Uo=o.forwardRef((e,t)=>(0,Pe.jsx)(zo.label,h(h({},e),{},{ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Uo.displayName="Label";var Wo=Uo;const Yo=["className"],Ko=ks("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Go=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Yo);return(0,Pe.jsx)(Wo,h({ref:t,className:Ro(Ko(),n)},a))});function $o(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,a=void 0===n||n;return function(n){if(null===e||void 0===e||e(n),!1===a||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}Go.displayName=Wo.displayName;const Qo=["children"],Xo=["scope","children"];function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const a=()=>{const t=n.map(e=>o.createContext(e));return function(n){const a=(null===n||void 0===n?void 0:n[e])||t;return o.useMemo(()=>({["__scope".concat(e)]:h(h({},n),{},{[e]:a})}),[n,a])}};return a.scopeName=e,[function(t,a){const r=o.createContext(a),i=n.length;n=[...n,a];const s=t=>{var n;const a=t.scope,s=t.children,l=Ie(t,Xo),c=(null===a||void 0===a||null===(n=a[e])||void 0===n?void 0:n[i])||r,d=o.useMemo(()=>l,Object.values(l));return(0,Pe.jsx)(c.Provider,{value:d,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;const c=(null===s||void 0===s||null===(l=s[e])||void 0===l?void 0:l[i])||r,d=o.useContext(c);if(d)return d;if(void 0!==a)return a;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},el(a,...t)]}function el(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];if(1===t.length)return a;const r=()=>{const e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const n=e.reduce((e,n)=>{let a=n.useScope,r=n.scopeName;const i=a(t)["__scope".concat(r)];return h(h({},e),i)},{});return o.useMemo(()=>({["__scope".concat(a.scopeName)]:n}),[n])}};return r.scopeName=a.scopeName,r}var tl=null!==globalThis&&void 0!==globalThis&&globalThis.document?o.useLayoutEffect:()=>{},nl=l[" useId ".trim().toString()]||(()=>{}),al=0;function rl(e){const t=Ue(o.useState(nl()),2),n=t[0],a=t[1];return tl(()=>{e||a(e=>null!==e&&void 0!==e?e:String(al++))},[e]),e||(n?"radix-".concat(n):"")}var il=l[" useInsertionEffect ".trim().toString()]||tl;function sl(e){let t=e.prop,n=e.defaultProp,a=e.onChange,r=void 0===a?()=>{}:a,i=e.caller;
2const s=function(e){let t=e.defaultProp,n=e.onChange;const a=o.useState(t),r=Ue(a,2),i=r[0],s=r[1],l=o.useRef(i),c=o.useRef(n);return il(()=>{c.current=n},[n]),o.useEffect(()=>{var e;l.current!==i&&(null===(e=c.current)||void 0===e||e.call(c,i),l.current=i)},[i,l]),[i,s,c]}({defaultProp:n,onChange:r}),l=Ue(s,3),c=l[0],d=l[1],u=l[2],m=void 0!==t,p=m?t:c;{const e=o.useRef(void 0!==t);o.useEffect(()=>{const t=e.current;if(t!==m){const e=t?"controlled":"uncontrolled",n=m?"controlled":"uncontrolled";console.warn("".concat(i," is changing from ").concat(e," to ").concat(n,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=m},[m,i])}const h=o.useCallback(e=>{if(m){const a=function(e){return"function"===typeof e}(e)?e(t):e;var n;if(a!==t)null===(n=u.current)||void 0===n||n.call(u,a)}else d(e)},[m,t,d,u]);return[p,h]}Symbol("RADIX:SYNC_STATE");function ol(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...a)},[])}const ll=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var cl,dl="dismissableLayer.update",ul="dismissableLayer.pointerDownOutside",ml="dismissableLayer.focusOutside",pl=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hl=o.forwardRef((e,t)=>{var n;const a=e.disableOutsidePointerEvents,r=void 0!==a&&a,i=e.onEscapeKeyDown,s=e.onPointerDownOutside,l=e.onFocusOutside,c=e.onInteractOutside,d=e.onDismiss,u=Ie(e,ll),m=o.useContext(pl),p=Ue(o.useState(null),2),f=p[0],x=p[1],g=null!==(n=null===f||void 0===f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,v=Ue(o.useState({}),2)[1],b=us(t,e=>x(e)),y=Array.from(m.layers),j=Ue([...m.layersWithOutsidePointerEventsDisabled].slice(-1),1)[0],w=y.indexOf(j),N=f?y.indexOf(f):-1,A=m.layersWithOutsidePointerEventsDisabled.size>0,k=N>=w,E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ol(e),a=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const e=e=>{if(e.target&&!a.current){let a=function(){gl(ul,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}(e=>{const t=e.target,n=[...m.branches].some(e=>e.contains(t));k&&!n&&(null===s||void 0===s||s(e),null===c||void 0===c||c(e),e.defaultPrevented||null===d||void 0===d||d())},g),D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ol(e),a=o.useRef(!1);return o.useEffect(()=>{const e=e=>{if(e.target&&!a.current){gl(ml,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(null===l||void 0===l||l(e),null===c||void 0===c||c(e),e.defaultPrevented||null===d||void 0===d||d())},g);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=ol(e);o.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===m.layers.size-1&&(null===i||void 0===i||i(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},g),o.useEffect(()=>{if(f)return r&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(cl=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),xl(),()=>{r&&1===m.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=cl)}},[f,g,r,m]),o.useEffect(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),xl())},[f,m]),o.useEffect(()=>{const e=()=>v({});return document.addEventListener(dl,e),()=>document.removeEventListener(dl,e)},[]),(0,Pe.jsx)(zo.div,h(h({},u),{},{ref:b,style:h({pointerEvents:A?k?"auto":"none":void 0},e.style),onFocusCapture:$o(e.onFocusCapture,D.onFocusCapture),onBlurCapture:$o(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:$o(e.onPointerDownCapture,E.onPointerDownCapture)}))});hl.displayName="DismissableLayer";var fl=o.forwardRef((e,t)=>
2{const n=o.useContext(pl),a=o.useRef(null),r=us(t,a);return o.useEffect(()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Pe.jsx)(zo.div,h(h({},e),{},{ref:r}))});function xl(){const e=new CustomEvent(dl);document.dispatchEvent(e)}function gl(e,t,n,a){let r=a.discrete;const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?qo(i,s):i.dispatchEvent(s)}fl.displayName="DismissableLayerBranch";const vl=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var bl="focusScope.autoFocusOnMount",yl="focusScope.autoFocusOnUnmount",jl={bubbles:!1,cancelable:!0},wl=o.forwardRef((e,t)=>{const n=e.loop,a=void 0!==n&&n,r=e.trapped,i=void 0!==r&&r,s=e.onMountAutoFocus,l=e.onUnmountAutoFocus,c=Ie(e,vl),d=Ue(o.useState(null),2),u=d[0],m=d[1],p=ol(s),f=ol(l),x=o.useRef(null),g=us(t,e=>m(e)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(i){let e=function(e){if(v.paused||!u)return;const t=e.target;u.contains(t)?x.current=t:El(x.current,{select:!0})},t=function(e){if(v.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||El(x.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&El(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const a=new MutationObserver(n);return u&&a.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),a.disconnect()}}},[i,u,v.paused]),o.useEffect(()=>{if(u){Dl.add(v);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(bl,jl);u.addEventListener(bl,p),u.dispatchEvent(n),n.defaultPrevented||(!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,a=void 0!==n&&n;const r=document.activeElement;for(const i of e)if(El(i,{select:a}),document.activeElement!==r)return}((e=Nl(u),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&El(u))}return()=>{u.removeEventListener(bl,p),setTimeout(()=>{const e=new CustomEvent(yl,jl);u.addEventListener(yl,f),u.dispatchEvent(e),e.defaultPrevented||El(null!==t&&void 0!==t?t:document.body,{select:!0}),u.removeEventListener(yl,f),Dl.remove(v)},0)}}var e},[u,p,f,v]);const b=o.useCallback(e=>{if(!a&&!i)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,r=function(e){const t=Nl(e),n=Al(t,e),a=Al(t.reverse(),e);return[n,a]}(t),i=Ue(r,2),s=i[0],o=i[1];s&&o?e.shiftKey||n!==o?e.shiftKey&&n===s&&(e.preventDefault(),a&&El(o,{select:!0})):(e.preventDefault(),a&&El(s,{select:!0})):n===t&&e.preventDefault()}},[a,i,v.paused]);return(0,Pe.jsx)(zo.div,h(h({tabIndex:-1},c),{},{ref:g,onKeyDown:b}))});function Nl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Al(e,t){for(const n of e)if(!kl(n,{upTo:t}))return n}function kl(e,t){let n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function El(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}wl.displayName="FocusScope";var Dl=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=_l(e,t),e.unshift(t)},remove(t){var n;e=_l(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function _l(e,t){const n=[...e],a=n.indexOf(t);return-1!==a&&n.splice(a,1),n}const Cl=["container"];var Fl=o.forwardRef((e,t)=>{var n;const a=e.container,r=Ie(e,Cl),i=Ue(o.useState(!1),2),s=i[0],l=i[1];tl(()=>l(!0),[]);const c=a||s&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return c?ia.createPortal((0,Pe.jsx)(zo.div,h(h({},r),{},{ref:t})),c):null});Fl.displayName="Portal";var Sl=e=>{const t=e.present,n=e.children,a=function(e){const t=Ue(o.useState(),2),n=t[0],a=t[1],r=o.useRef(null),i=o.useRef(e),s=o.useRef("none"),l=e?"mounted":"unmounted",c=function(e,t){return o.useReducer((e,n)=>{const a=t[e][n];return null!==a&&void 0!==a?a:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=Ue(c,2),u=d[0],m=d[1];return o.useEffect(()=>{const e=Ml(r.current);s.current="mounted"===u?e:"none"},[u]),tl(()=>{const t=r.current,n=i.current;if(n!==e){const a=s.current,r=Ml(t);if(e)m("MOUNT");else if("none"===r||"none"===(null===t||void 0===t?void 0:t.display))m("UNMOUNT");else{m(n&&a!==r?"ANIMATION_OUT":"UNMOUNT")}i.current=e}},[e,m]),tl(()=>{if(n){var e;let t;const a=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{const s=Ml(r.current).includes(e.animationName);if(e.target===n&&s&&(m("ANIMATION_END"),!i.current)){const e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=a.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},l=e=>{e.target===n&&(s.current=Ml(r.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{a.clearTimeout(t),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{r.current=e?getComputedStyle(e):null,a(e)},[])}}(t),r="function"===typeof n?n({present:a.isPresent}):o.Children.only(n),i=us(a.ref,function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r));return"function"===typeof n||a.isPresent?o.cloneElement(r,{ref:i}):null};function Ml(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}Sl.displayName="Presence";var Ol=0;function Rl(){o.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Hl()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Hl()),Ol++,()=>{1===Ol&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
2=>e.remove()),Ol--}},[])}function Hl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Pl=function(){return Pl=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Pl.apply(this,arguments)};function Ll(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}Object.create;function Tl(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}Object.create;var Il="right-scroll-bar-position",Zl="width-before-scroll-bar";function Bl(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var Vl="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,zl=new WeakMap;function ql(e,t){var n=function(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return Bl(e,t)})});return Vl(function(){var t=zl.get(n);if(t){var a=new Set(t),r=new Set(e),i=n.current;a.forEach(function(e){r.has(e)||Bl(e,null)}),r.forEach(function(e){a.has(e)||Bl(e,i)})}zl.set(n,e)},[e]),n}function Ul(e){return e}function Wl(e,t){void 0===t&&(t=Ul);var n=[],a=!1,r={read:function(){if(a)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(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return r}var Yl=function(e){void 0===e&&(e={});var t=Wl(null);return t.options=Pl({async:!0,ssr:!1},e),t}(),Kl=function(){},Gl=o.forwardRef(function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),r=a[0],i=a[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,m=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,x=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,y=e.gapMode,j=Ll(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,N=ql([n,t]),A=Pl(Pl({},j),r);return o.createElement(o.Fragment,null,u&&o.createElement(w,{sideCar:Yl,removeScrollBar:d,shards:m,noRelative:h,noIsolation:f,inert:x,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?o.cloneElement(o.Children.only(l),Pl(Pl({},A),{ref:N})):o.createElement(b,Pl({},A,{className:c,ref:N}),l))});Gl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gl.classNames={fullWidth:Zl,zeroRight:Il};var $l,Ql=function(e){var t=e.sideCar,n=Ll(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,Pl({},n))};Ql.isSideCarExport=!0;function Xl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$l||n.nc;return t&&e.setAttribute("nonce",t),e}var Jl=function(){var e=0,t=null;return{add:function(n){var a,r;0==e&&(t=Xl())&&(r=n,(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ec=function(){var e=function(){var e=Jl();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,a=t.dynamic;return e(n,a),null}},tc={left:0,top:0,right:0,gap:0},nc=function(e){return parseInt(e||"",10)||0},ac=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return tc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[nc(n),nc(a),nc(r)]}(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},rc=ec(),ic="data-scroll-locked",sc=function(e,t,n,a){var r=e.left,i=e.top,s=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(a,";\n padding-right: ").concat(o,"px ").concat(a,";\n }\n body[").concat(ic,"] {\n overflow: hidden ").concat(a,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(a,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(a,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(a,";
2")].filter(Boolean).join(""),"\n }\n \n .").concat(Il," {\n right: ").concat(o,"px ").concat(a,";\n }\n \n .").concat(Zl," {\n margin-right: ").concat(o,"px ").concat(a,";\n }\n \n .").concat(Il," .").concat(Il," {\n right: 0 ").concat(a,";\n }\n \n .").concat(Zl," .").concat(Zl," {\n margin-right: 0 ").concat(a,";\n }\n \n body[").concat(ic,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},oc=function(){var e=parseInt(document.body.getAttribute(ic)||"0",10);return isFinite(e)?e:0},lc=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,r=void 0===a?"margin":a;o.useEffect(function(){return document.body.setAttribute(ic,(oc()+1).toString()),function(){var e=oc()-1;e<=0?document.body.removeAttribute(ic):document.body.setAttribute(ic,e.toString())}},[]);var i=o.useMemo(function(){return ac(r)},[r]);return o.createElement(rc,{styles:sc(i,!t,r,n?"":"!important")})},cc=!1;if("undefined"!==typeof window)try{var dc=Object.defineProperty({},"passive",{get:function(){return cc=!0,!0}});window.addEventListener("test",dc,dc),window.removeEventListener("test",dc,dc)}catch($ge){cc=!1}var uc=!!cc&&{passive:!1},mc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},pc=function(e,t){var n=t.ownerDocument,a=t;do{if("undefined"!==typeof ShadowRoot&&a instanceof ShadowRoot&&(a=a.host),hc(e,a)){var r=fc(e,a);if(r[1]>r[2])return!0}a=a.parentNode}while(a&&a!==n.body);return!1},hc=function(e,t){return"v"===e?function(e){return mc(e,"overflowY")}(t):function(e){return mc(e,"overflowX")}(t)},fc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},xc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gc=function(e){return[e.deltaX,e.deltaY]},vc=function(e){return e&&"current"in e?e.current:e},bc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yc=0,jc=[];function wc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nc=(Ac=function(e){var t=o.useRef([]),n=o.useRef([0,0]),a=o.useRef(),r=o.useState(yc++)[0],i=o.useState(ec)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=Tl([e.lockRef.current],(e.shards||[]).map(vc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=xc(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-i[0],c="deltaY"in e?e.deltaY:o[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var m=window.getSelection(),p=m&&m.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var h=pc(u,d);if(!h)return!0;if(h?r=u:(r="v"===u?"h":"v",h=pc(u,d)),!h)return!1;if(!a.current&&"changedTouches"in e&&(l||c)&&(a.current=r),!r)return!0;var f=a.current||r;return function(e,t,n,a,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*a,o=n.target,l=t.contains(o),c=!1,d=s>0,u=0,m=0;do{if(!o)break;var p=fc(e,o),h=p[0],f=p[1]-p[2]-i*h;(h||f)&&hc(e,o)&&(u+=f,m+=h);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(r&&Math.abs(u)<1||!r&&s>u)||!d&&(r&&Math.abs(m)<1||!r&&-s>m))&&(c=!0),c}(f,t,e,"h"===f?l:c,!0)},[]),c=o.useCallback(function(e){var n=e;if(jc.length&&jc[jc.length-1]===i){var a="deltaY"in n?gc(n):xc(n),r=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,a)})[0];if(r&&r.should)n.cancelable&&n.preventDefault();
2else if(!r){var o=(s.current.shards||[]).map(vc).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?l(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=o.useCallback(function(e,n,a,r){var i={name:e,delta:n,target:a,should:r,shadowParent:wc(a)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=o.useCallback(function(e){n.current=xc(e),a.current=void 0},[]),m=o.useCallback(function(t){d(t.type,gc(t),t.target,l(t,e.lockRef.current))},[]),p=o.useCallback(function(t){d(t.type,xc(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return jc.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",c,uc),document.addEventListener("touchmove",c,uc),document.addEventListener("touchstart",u,uc),function(){jc=jc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,uc),document.removeEventListener("touchmove",c,uc),document.removeEventListener("touchstart",u,uc)}},[]);var h=e.removeScrollBar,f=e.inert;return o.createElement(o.Fragment,null,f?o.createElement(i,{styles:bc(r)}):null,h?o.createElement(lc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Yl.useMedium(Ac),Ql);var Ac,kc=o.forwardRef(function(e,t){return o.createElement(Gl,Pl({},e,{ref:t,sideCar:Nc}))});kc.classNames=Gl.classNames;const Ec=kc;var Dc=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},_c=new WeakMap,Cc=new WeakMap,Fc={},Sc=0,Mc=function(e){return e&&(e.host||Mc(e.parentNode))},Oc=function(e,t,n,a){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Mc(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Fc[n]||(Fc[n]=new WeakMap);var i=Fc[n],s=[],o=new Set,l=new Set(r),c=function(e){e&&!o.has(e)&&(o.add(e),c(e.parentNode))};r.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(o.has(e))d(e);else try{var t=e.getAttribute(a),r=null!==t&&"false"!==t,l=(_c.get(e)||0)+1,c=(i.get(e)||0)+1;_c.set(e,l),i.set(e,c),s.push(e),1===l&&r&&Cc.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(a,"true")}catch(zf){console.error("aria-hidden: cannot operate on ",e,zf)}})};return d(t),o.clear(),Sc++,function(){s.forEach(function(e){var t=_c.get(e)-1,r=i.get(e)-1;_c.set(e,t),i.set(e,r),t||(Cc.has(e)||e.removeAttribute(a),Cc.delete(e)),r||e.removeAttribute(n)}),--Sc||(_c=new WeakMap,_c=new WeakMap,Cc=new WeakMap,Fc={})}},Rc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=t||Dc(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),Oc(a,r,n,"aria-hidden")):function(){return null}};const Hc=["__scopeDialog"],Pc=["forceMount"],Lc=["__scopeDialog"],Tc=["forceMount"],Ic=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],Zc=["__scopeDialog"],Bc=["__scopeDialog"],Vc=["__scopeDialog"];var zc="Dialog",qc=Ue(Jo(zc),2),Uc=qc[0],Wc=(qc[1],Ue(Uc(zc),2)),Yc=Wc[0],Kc=Wc[1],Gc=e=>{const t=e.__scopeDialog,n=e.children,a=e.open,r=e.defaultOpen,i=e.onOpenChange,s=e.modal,l=void 0===s||s,c=o.useRef(null),d=o.useRef(null),u=Ue(sl({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:zc}),2),m=u[0],p=u[1];return(0,Pe.jsx)(Yc,{scope:t,triggerRef:c,contentRef:d,contentId:rl(),titleId:rl(),descriptionId:rl(),open:m,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};Gc.displayName=zc;var $c="DialogTrigger",Qc=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Ie(e,Hc),r=Kc($c,n),i=us(t,r.triggerRef);return(0,Pe.jsx)(zo.button,h(h({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":vd(r.open)},a),{},{ref:i,onClick:$o(e.onClick,r.onOpenToggle)}))});Qc.displayName=$c;var Xc="DialogPortal",Jc=Ue(Uc(Xc,{forceMount:void 0}),2),ed=Jc[0],td=Jc[1],nd=e=>{const t=e.__scopeDialog,n=e.forceMount,a=e.children,r=e.container,i=Kc(Xc,t);return(0,Pe.jsx)(ed,{scope:t,forceMount:n,children:o.Children.map(a,e=>(0,Pe.jsx)(Sl,{present:n||i.open,children:(0,Pe.jsx)(Fl,{asChild:!0,container:r,children:e})}))})};nd.displayName=Xc;var ad="DialogOverlay",rd=o.forwardRef((e,t)=>
2{const n=td(ad,e.__scopeDialog),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Ie(e,Pc),s=Kc(ad,e.__scopeDialog);return s.modal?(0,Pe.jsx)(Sl,{present:r||s.open,children:(0,Pe.jsx)(sd,h(h({},i),{},{ref:t}))}):null});rd.displayName=ad;var id=hs("DialogOverlay.RemoveScroll"),sd=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Ie(e,Lc),r=Kc(ad,n);return(0,Pe.jsx)(Ec,{as:id,allowPinchZoom:!0,shards:[r.contentRef],children:(0,Pe.jsx)(zo.div,h(h({"data-state":vd(r.open)},a),{},{ref:t,style:h({pointerEvents:"auto"},a.style)}))})}),od="DialogContent",ld=o.forwardRef((e,t)=>{const n=td(od,e.__scopeDialog),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Ie(e,Tc),s=Kc(od,e.__scopeDialog);return(0,Pe.jsx)(Sl,{present:r||s.open,children:s.modal?(0,Pe.jsx)(cd,h(h({},i),{},{ref:t})):(0,Pe.jsx)(dd,h(h({},i),{},{ref:t}))})});ld.displayName=od;var cd=o.forwardRef((e,t)=>{const n=Kc(od,e.__scopeDialog),a=o.useRef(null),r=us(t,n.contentRef,a);return o.useEffect(()=>{const e=a.current;if(e)return Rc(e)},[]),(0,Pe.jsx)(ud,h(h({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$o(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:$o(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:$o(e.onFocusOutside,e=>e.preventDefault())}))}),dd=o.forwardRef((e,t)=>{const n=Kc(od,e.__scopeDialog),a=o.useRef(!1),r=o.useRef(!1);return(0,Pe.jsx)(ud,h(h({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,s;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(a.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());a.current=!1,r.current=!1},onInteractOutside:t=>{var i,s;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const o=t.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}}))}),ud=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=e.trapFocus,r=e.onOpenAutoFocus,i=e.onCloseAutoFocus,s=Ie(e,Ic),l=Kc(od,n),c=o.useRef(null),d=us(t,c);return Rl(),(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(wl,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:i,children:(0,Pe.jsx)(hl,h(h({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":vd(l.open)},s),{},{ref:d,onDismiss:()=>l.onOpenChange(!1)}))}),(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(Nd,{titleId:l.titleId}),(0,Pe.jsx)(Ad,{contentRef:c,descriptionId:l.descriptionId})]})]})}),md="DialogTitle",pd=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Ie(e,Zc),r=Kc(md,n);return(0,Pe.jsx)(zo.h2,h(h({id:r.titleId},a),{},{ref:t}))});pd.displayName=md;var hd="DialogDescription",fd=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Ie(e,Bc),r=Kc(hd,n);return(0,Pe.jsx)(zo.p,h(h({id:r.descriptionId},a),{},{ref:t}))});fd.displayName=hd;var xd="DialogClose",gd=o.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Ie(e,Vc),r=Kc(xd,n);return(0,Pe.jsx)(zo.button,h(h({type:"button"},a),{},{ref:t,onClick:$o(e.onClick,()=>r.onOpenChange(!1))}))});function vd(e){return e?"open":"closed"}gd.displayName=xd;var bd="DialogTitleWarning",yd=function(e,t){const n=o.createContext(t),a=e=>{const t=e.children,a=Ie(e,Qo),r=o.useMemo(()=>a,Object.values(a));return(0,Pe.jsx)(n.Provider,{value:r,children:t})};return a.displayName=e+"Provider",[a,function(a){const r=o.useContext(n);if(r)return r;if(void 0!==t)return t;throw new Error("`".concat(a,"` must be used within `").concat(e,"`"))}]}(bd,{contentName:od,titleName:md,docsSlug:"dialog"}),jd=Ue(yd,2),wd=(jd[0],jd[1]),Nd=e=>{let t=e.titleId;const n=wd(bd),a="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{if(t){document.getElementById(t)||console.error(a)}},[a,t]),null},Ad=e=>{let t=e.contentRef,n=e.descriptionId;const a=wd("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(a.contentName,"}.");return o.useEffect(()=>{var e;const a=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(n&&a){document.getElementById(n)||console.warn(r)}},[r,t,n]),null},kd=Gc,Ed=Qc,Dd=nd,_d=rd,Cd=ld,Fd=pd,Sd=fd,Md=gd;const Od=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rd=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Hd=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];
2return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var Pd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ld=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],Td=(0,o.forwardRef)((e,t)=>{let n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=e.strokeWidth,l=void 0===s?2:s,c=e.absoluteStrokeWidth,d=e.className,u=void 0===d?"":d,m=e.children,p=e.iconNode,f=Ie(e,Ld);return(0,o.createElement)("svg",h(h(h({ref:t},Pd),{},{width:i,height:i,stroke:a,strokeWidth:c?24*Number(l)/Number(i):l,className:Hd("lucide",u)},!m&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"}),f),[...p.map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,o.createElement)(n,a)}),...Array.isArray(m)?m:[m]])}),Id=["className"],Zd=(e,t)=>{const n=(0,o.forwardRef)((n,a)=>{let r=n.className,i=Ie(n,Id);return(0,o.createElement)(Td,h({ref:a,iconNode:t,className:Hd("lucide-".concat(Od(Rd(e))),"lucide-".concat(e),r)},i))});return n.displayName=Rd(e),n},Bd=Zd("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vd=["className"],zd=["className","children"],qd=["className"],Ud=["className"],Wd=["className"],Yd=["className"],Kd=kd,Gd=Dd,$d=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Vd);return(0,Pe.jsx)(_d,h({ref:t,className:Ro("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a))});$d.displayName=_d.displayName;const Qd=o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Ie(e,zd);return(0,Pe.jsxs)(Gd,{children:[(0,Pe.jsx)($d,{}),(0,Pe.jsxs)(Cd,h(h({ref:t,className:Ro("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},r),{},{children:[a,(0,Pe.jsxs)(Md,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Pe.jsx)(Bd,{className:"h-4 w-4"}),(0,Pe.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});Qd.displayName=Cd.displayName;const Xd=e=>{let t=e.className,n=Ie(e,qd);return(0,Pe.jsx)("div",h({className:Ro("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};Xd.displayName="DialogHeader";const Jd=e=>{let t=e.className,n=Ie(e,Ud);return(0,Pe.jsx)("div",h({className:Ro("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};Jd.displayName="DialogFooter";const eu=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Wd);return(0,Pe.jsx)(Fd,h({ref:t,className:Ro("text-lg font-semibold leading-none tracking-tight",n)},a))});eu.displayName=Fd.displayName;const tu=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Yd);return(0,Pe.jsx)(Sd,h({ref:t,className:Ro("text-sm text-muted-foreground",n)},a))});function nu(e,t){let n=Ue(t,2),a=n[0],r=n[1];return Math.min(r,Math.max(a,e))}var au;tu.displayName=Sd.displayName;const ru=["scope","children"];function iu(e){const t=e+"CollectionProvider",n=Ue(Jo(t),2),a=n[0],r=n[1],i=Ue(a(t,{collectionRef:{current:null},itemMap:new Map}),2),s=i[0],l=i[1],c=e=>{const t=e.scope,n=e.children,a=o.useRef(null),r=o.useRef(new Map).current;return(0,Pe.jsx)(s,{scope:t,itemMap:r,collectionRef:a,children:n})};c.displayName=t;const d=e+"CollectionSlot",u=hs(d),m=o.forwardRef((e,t)=>{const n=e.scope,a=e.children,r=us(t,l(d,n).collectionRef);return(0,Pe.jsx)(u,{ref:r,children:a})});m.displayName=d;const p=e+"CollectionItemSlot",f="data-radix-collection-item",x=hs(p),g=o.forwardRef((e,t)=>{const n=e.scope,a=e.children,r=Ie(e,ru),i=o.useRef(null),s=us(t,i),c=l(p,n);return o.useEffect(()=>(c.itemMap.set(i,h({ref:i},r)),()=>{c.itemMap.delete(i)})),(0,Pe.jsx)(x,h(h({},{[f]:""}),{},{ref:s,children:a}))});return g.displayName=p,[{Provider:c,Slot:m,ItemSlot:g},function(t){const n=l(e+"CollectionConsumer",t),a=o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll("[".concat(f,"]"))),a=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return a},[n.collectionRef,n.itemMap]);return a},r]}var su=new WeakMap;au=new WeakMap,Map;function ou(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,a=lu(t),r=a>=0?a:n+a;return r<0||r>=n?-1:r}(e,t);return-1===n?void 0:e[n]}function lu(e){return e!==e||0===e?0:Math.trunc(e)}var cu=o.createContext(void 0);function du(e){const t=o.useContext(cu);return e||t||"ltr"}const uu=["top","right","bottom","left"],mu=Math.min,pu=Math.max,hu=Math.round,fu=Math.floor,xu=e=>({x:e,y:e}),gu={left:"right",right:"left",bottom:"top",top:"bottom"};function vu(e,t,n){return pu(e,mu(t,n))}function bu(e,t){return"function"===typeof e?e(t):e}function yu(e){return e.split("-")[0]}function ju(e){return e.split("-")[1]}function wu(e){return"x"===e?"y":"x"}function Nu(e){return"y"===e?"height":"width"}function Au(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ku(e){return wu(Au(e))}function Eu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Du=["left","right"],_u=["right","left"],Cu=["top","bottom"],Fu=["bottom","top"];function Su(e,t,n,a){const r=ju(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?_u:Du:t?Du:_u;case"left":case"right":return t?Cu:Fu;default:return[]}}(yu(e),"start"===n,a);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(Eu)))),i}function Mu(e){const t=yu(e);return gu[t]+e.slice(t.length)}function Ou(e){return"number"!==typeof e?function(e){var t,n,a,r;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(a=e.bottom)?a:0,left:null!=(r=e.left)?r:0}}(e):{top:e,right:e,bottom:e,left:e}}function Ru(e){const t=e.x,n=e.y,a=e.width,r=e.height;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}const Hu=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Pu=["strategy"],Lu=["mainAxis","crossAxis","limiter"],Tu=["apply"];function Iu(e,t,n){let a=e.reference,r=e.floating;const i=Au(t),s=ku(t),o=Nu(s),l=yu(t),c="y"===i,d=a.x+a.width/2-r.width/2,u=a.y+a.height/2-r.height/2,m=a[o]/2-r[o]/2;let p;switch(l){case"top":p={x:d,y:a.y-r.height};break;case"bottom":p={x:d,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:u};break;case"left":p={x:a.x-r.width,y:u};break;default:p={x:a.x,y:a.y}}const h=ju(t);return h&&(p[s]+=m*("end"===h?1:-1)*(n&&c?-1:1)),p}async function Zu(e,t){var n;void 0===t&&(t={});const a=e.x,r=e.y,i=e.platform,s=e.rects,o=e.elements,l=e.strategy,c=bu(t,e),d=c.boundary,u=void 0===d?"clippingAncestors":d,m=c.rootBoundary,p=void 0===m?"viewport":m,h=c.elementContext,f
vendor: 4,964 bytes, line 2
2=void 0===h?"floating":h,x=c.altBoundary,g=void 0!==x&&x,v=c.padding,b=Ou(void 0===v?0:v),y=o[g?"floating"===f?"reference":"floating":f],j=Ru(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:p,strategy:l})),w="floating"===f?{x:a,y:r,width:s.floating.width,height:s.floating.height}:s.reference,N=await(null==i.getOffsetParent?void 0:i.getOffsetParent(o.floating)),A=await(null==i.isElement?void 0:i.isElement(N))&&await(null==i.getScale?void 0:i.getScale(N))||{x:1,y:1},k=Ru(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:w,offsetParent:N,strategy:l}):w);return{top:(j.top-k.top+b.top)/A.y,bottom:(k.bottom-j.bottom+b.bottom)/A.y,left:(j.left-k.left+b.left)/A.x,right:(k.right-j.right+b.right)/A.x}}function Bu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vu(e){return uu.some(t=>e[t]>=0)}const zu=new Set(["left","top"]);function qu(){return"undefined"!==typeof window}function Uu(e){return Ku(e)?(e.nodeName||"").toLowerCase():"#document"}function Wu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Yu(e){var t;return null==(t=(Ku(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ku(e){return!!qu()&&(e instanceof Node||e instanceof Wu(e).Node)}function Gu(e){return!!qu()&&(e instanceof Element||e instanceof Wu(e).Element)}function $u(e){return!!qu()&&(e instanceof HTMLElement||e instanceof Wu(e).HTMLElement)}function Qu(e){return!(!qu()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wu(e).ShadowRoot)}function Xu(e){const t=lm(e),n=t.overflow,a=t.overflowX,r=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+r+a)&&"inline"!==i&&"contents"!==i}function Ju(e){return/^(table|td|th)$/.test(Uu(e))}function em(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const tm=/transform|translate|scale|rotate|perspective|filter/,nm=/paint|layout|strict|content/,am=e=>!!e&&"none"!==e;let rm;function im(e){const t=Gu(e)?lm(e):e;return am(t.transform)||am(t.translate)||am(t.scale)||am(t.rotate)||am(t.perspective)||!sm()&&(am(t.backdropFilter)||am(t.filter))||tm.test(t.willChange||"")||nm.test(t.contain||"")}function sm(){return null==rm&&(rm="undefined"!==typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rm}function om(e){return/^(html|body|#document)$/.test(Uu(e))}function lm(e){return Wu(e).getComputedStyle(e)}function cm(e){return Gu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dm(e){if("html"===Uu(e))return e;const t=e.assignedSlot||e.parentNode||Qu(e)&&e.host||Yu(e);return Qu(t)?t.host:t}function um(e){const t=dm(e);return om(t)?(e.ownerDocument||e).body:$u(t)&&Xu(t)?t:um(t)}function mm(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=um(e),i=r===(null==(a=e.ownerDocument)?void 0:a.body),s=Wu(r);if(i){const e=pm(s);return t.concat(s,s.visualViewport||[],Xu(r)?r:[],e&&n?mm(e):[])}return t.concat(r,mm(r,[],n))}function pm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hm(e){const t=lm(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=$u(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:a,o=hu(n)!==i||hu(a)!==s;return o&&(n=i,a=s),{width:n,height:a,$:o}}function fm(e){return Gu(e)?e:e.contextElement}function xm(e){const t=fm(e);if(!$u(t))return xu(1);const n=t.getBoundingClientRect(),a=hm(t),r=a.width,i=a.height,s=a.$;let o=(s?hu(n.width):n.width)/r,l=(s?hu(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}const gm=xu(0);function vm(e){const t=Wu(e);return sm()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gm}function bm(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=fm(e);let s=xu(1);t&&(a?Gu(a)&&(s=xm(a)):s=xm(e));const o=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Wu(e)}(i,n,a)?vm(i):xu(0);let l=(r.left+o.x)/s.x,c=(r.top+o.y)/s.y,d=r.width/s.x,u=r.height/s.y;if(i&&a){const e=Wu(i),t=Gu(a)?Wu(a):a;let n=e,r=pm(n);for(;r&&t!==n;){const e=xm(r),t=r.getBoundingClientRect(),a=lm(r),i=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=Wu(r),r=pm(n)}}return Ru({width:d,height:u,x:l,y:c})}function ym(e,t){const n=cm(e).scrollLeft;return t?t.left+n:bm(Yu(e)).left+n}function jm(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ym(e,n),y:n.top+t.scrollTop}}function wm(e,t,n){let a;if("viewport"===t||"layoutViewport"===t)a=function(e,t,n){void 0===n&&(n="viewport");
vendor: 4,242 bytes, line 2
2const a="layoutViewport"===n,r=Wu(e),i=Yu(e),s=r.visualViewport;let o=i.clientWidth,l=i.clientHeight,c=0,d=0;if(s){const e=!sm()||"fixed"===t;a?e||(c=-s.offsetLeft,d=-s.offsetTop):(o=s.width,l=s.height,e&&(c=s.offsetLeft,d=s.offsetTop))}if(ym(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(i.clientWidth-t.clientWidth-a),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?r/2:r;s<=25&&(o-=s)}return{width:o,height:l,x:c,y:d}}(e,n,t);else if("document"===t)a=function(e){const t=cm(e),n=e.ownerDocument.body,a=pu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=pu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+ym(e);const s=-t.scrollTop;return"rtl"===lm(n).direction&&(i+=pu(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:i,y:s}}(Yu(e));else if(Gu(t))a=function(e,t){const n=bm(e,!0,"fixed"===t),a=n.top+e.clientTop,r=n.left+e.clientLeft,i=xm(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:a*i.y}}(t,n);else{const n=vm(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ru(a)}function Nm(e,t,n){const a=$u(t),r=Yu(t),i="fixed"===n,s=bm(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=xu(0);if((a||!i)&&(("body"!==Uu(t)||Xu(r))&&(o=cm(t)),a)){const e=bm(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!a&&r&&(l.x=ym(r));const c=!r||a||i?xu(0):jm(r,o);return{x:s.left+o.scrollLeft-l.x-c.x,y:s.top+o.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Am(e){return"static"===lm(e).position}function km(e,t){if(!$u(e)||"fixed"===lm(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Yu(e)===n&&(n=n.ownerDocument.body),n}function Em(e,t){const n=Wu(e);if(em(e))return n;if(!$u(e)){let t=dm(e);for(;t&&!om(t);){if(Gu(t)&&!Am(t))return t;t=dm(t)}return n}let a=km(e,t);for(;a&&Ju(a)&&Am(a);)a=km(a,t);return a&&om(a)&&Am(a)&&!im(a)?n:a||function(e){let t=dm(e);for(;$u(t)&&!om(t);){if(im(t))return t;if(em(t))return null;t=dm(t)}return null}(e)||n}const Dm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let t=e.elements,n=e.rect,a=e.offsetParent;const r="fixed"===e.strategy,i=Yu(a),s=!!t&&em(t.floating);if(a===i||s&&r)return n;let o={scrollLeft:0,scrollTop:0},l=xu(1);const c=xu(0),d=$u(a);if((d||!r)&&(("body"!==Uu(a)||Xu(i))&&(o=cm(a)),d)){const e=bm(a);l=xm(a),c.x=e.x+a.clientLeft,c.y=e.y+a.clientTop}const u=!i||d||r?xu(0):jm(i,o);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-o.scrollLeft*l.x+c.x+u.x,y:n.y*l.y-o.scrollTop*l.y+c.y+u.y}},getDocumentElement:Yu,getClippingRect:function(e){let t=e.element,n=e.boundary,a=e.rootBoundary,r=e.strategy;const i="clippingAncestors"===n?em(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=mm(e,[],!1).filter(e=>Gu(e)&&"body"!==Uu(e)),r=null;const i="fixed"===lm(e).position;let s=i?dm(e):e;for(;Gu(s)&&!om(s);){const e=lm(s),t=im(s),n=r?r.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?r=e:a=a.filter(e=>e!==s),s=dm(s)}return t.set(e,a),a}(t,this._c):[].concat(n),s=[...i,a],o=wm(t,s[0],r);let l=o.top,c=o.right,d=o.bottom,u=o.left;for(let m=1;m<s.length;m++){const e=wm(t,s[m],r);l=pu(e.top,l),c=mu(e.right,c),d=mu(e.bottom,d),u=pu(e.left,u)}return{width:c-u,height:d-l,x:u,y:l}},getOffsetParent:Em,getElementRects:async function(e){const t=this.getOffsetParent||Em,n=this.getDimensions,a=await n(e.floating);return{reference:Nm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const t=hm(e);return{width:t.width,height:t.height}},getScale:xm,isElement:Gu,isRTL:function(e){return"rtl"===lm(e).direction}};function _m(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cm(e,t,n,a){void 0===a&&(a={});const r=a,i=r.ancestorScroll,s=void 0===i||i,o=r.ancestorResize,l=void 0===o||o,c=r.elementResize,d=void 0===c?"function"===typeof ResizeObserver:c,u=r.layoutShift,m=void 0===u?"function"===typeof IntersectionObserver:u,p=r.animationFrame,f=void 0!==p&&p,x=fm(e),g=s||l?[...x?mm(x):[],...t?mm(t):[]]:[];
2g.forEach(e=>{s&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});const v=x&&m?function(e,t,n){let a,r=null;const i=Yu(e);function s(){var e;clearTimeout(a),null==(e=r)||e.disconnect(),r=null}function o(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),d=c.left,u=c.top,m=c.width,p=c.height;if(n||t(),!m||!p)return;const f={rootMargin:-fu(u)+"px "+-fu(i.clientWidth-(d+m))+"px "+-fu(i.clientHeight-(u+p))+"px "+-fu(d)+"px",threshold:pu(0,mu(1,l))||1};let x=!0;function g(t){const n=t[0].intersectionRatio;if(!_m(c,e.getBoundingClientRect()))return o();if(n!==l){if(!x)return o();n?o(!1,n):a=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(g,h(h({},f),{},{root:i.ownerDocument}))}catch(v){r=new IntersectionObserver(g,f)}r.observe(e)}const l=Wu(e),c=()=>o(n);return l.addEventListener("resize",c),o(!0),()=>{l.removeEventListener("resize",c),s()}}(x,n,l):null;let b,y=-1,j=null;d&&(j=new ResizeObserver(e=>{let a=Ue(e,1)[0];a&&a.target===x&&j&&t&&(j.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=j)||e.observe(t)})),n()}),x&&!f&&j.observe(x),t&&j.observe(t));let w=f?bm(e):null;return f&&function t(){const a=bm(e);w&&!_m(w,a)&&n();w=a,b=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=j)||e.disconnect(),j=null,f&&cancelAnimationFrame(b)}}const Fm=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const r=t.x,i=t.y,s=t.placement,o=t.middlewareData,l=await async function(e,t){const n=e.placement,a=e.platform,r=e.elements,i=await(null==a.isRTL?void 0:a.isRTL(r.floating)),s=yu(n),o=ju(n),l="y"===Au(n),c=zu.has(s)?-1:1,d=i&&l?-1:1,u=bu(t,e);let m="number"===typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis},p=m.mainAxis,h=m.crossAxis,f=m.alignmentAxis;return o&&"number"===typeof f&&(h="end"===o?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return s===(null==(n=o.offset)?void 0:n.placement)&&null!=(a=o.arrow)&&a.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:h(h({},l),{},{placement:s})}}}},Sm=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const n=t.x,a=t.y,r=t.placement,i=t.platform,s=bu(e,t),o=s.mainAxis,l=void 0===o||o,c=s.crossAxis,d=void 0!==c&&c,u=s.limiter,m=void 0===u?{fn:e=>({x:e.x,y:e.y})}:u,p=Ie(s,Lu),f={x:n,y:a},x=await i.detectOverflow(t,p),g=Au(r),v=wu(g);let b=f[v],y=f[g];const j=(e,t)=>vu(t+x["y"===e?"top":"left"],t,t-x["y"===e?"bottom":"right"]);l&&(b=j(v,b)),d&&(y=j(g,y));const w=m.fn(h(h({},t),{},{[v]:b,[g]:y}));return h(h({},w),{},{data:{x:w.x-n,y:w.y-a,enabled:{[v]:l,[g]:d}}})}}},Mm=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const r=t.placement,i=t.middlewareData,s=t.rects,o=t.initialPlacement,l=t.platform,c=t.elements,d=bu(e,t),u=d.mainAxis,m=void 0===u||u,p=d.crossAxis,h=void 0===p||p,f=d.fallbackPlacements,x=d.fallbackStrategy,g=void 0===x?"bestFit":x,v=d.fallbackAxisSideDirection,b=void 0===v?"none":v,y=d.flipAlignment,j=void 0===y||y,w=Ie(d,Hu);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const N=yu(r),A=Au(o),k=yu(o)===o,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),D=f||(k||!j?[Mu(o)]:function(e){const t=Mu(e);return[Eu(e),t,Eu(t)]}(o)),_="none"!==b;!f&&_&&D.push(...Su(o,j,b,E));const C=[o,...D],F=await l.detectOverflow(t,w),S=[];let M=(null==(a=i.flip)?void 0:a.overflows)||[];if(m&&S.push(F[N]),h){const e=function(e,t,n){void 0===n&&(n=!1);const a=ju(e),r=ku(e),i=Nu(r);let s="x"===r?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Mu(s)),[s,Mu(s)]}(r,s,E);S.push(F[e[0]],F[e[1]])}if(M=[...M,{placement:r,overflows:S}],!S.every(e=>e<=0)){var O,R;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&A!==Au(t))||M.every(e=>Au(e.placement)!==A||e.overflows[0]>0))return{data:{index:e,overflows:M},reset:{placement:t}}}let n=null==(R=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(g){case"bestFit":{var H;const e=null==(H=M.filter(e=>{if(_){const t=Au(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:H[0];e&&(n=e);break}case"initialPlacement":n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Om=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const n=t.placement,a=t.rects,r=t.platform,i=t.elements,s=bu(e,t),o=s.apply,l=void 0===o?()=>{}:o,c=Ie(s,Tu),d=await r.detectOverflow(t,c),u=yu(n),m=ju(n),p="y"===Au(n),f=a.floating,x=f.width,g=f.height;let v,b;"top"===u||"bottom"===u?(v=u,b=m===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=u,v="end"===m?"top":"bottom");const y=g-d.top-d.bottom,j=x-d.left-d.right,w=mu(g-d[v],y),N=mu(x-d[b],j),A=t.middlewareData.shift,k=!A;let E=w,D=N;null!=A&&A.enabled.x&&(D=j),null!=A&&A.enabled.y&&(E=y),k&&!m&&(p?D=x-2*pu(d.left,d.right):E=g-2*pu(d.top,d.bottom)),await l(h(h({},t),{},{availableWidth:D,availableHeight:E}));const _=await r.getDimensions(i.floating);return x!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}},Rm=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const n=t.rects,a=t.platform,r=bu(e,t),i=r.strategy,s=void 0===i?"referenceHidden":i,o=Ie(r,Pu);switch(s){case"referenceHidden":{const e=Bu(await a.detectOverflow(t,h(h({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Vu(e)}}}case"escaped":{const e=Bu(await a.detectOverflow(t,h(h({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:Vu(e)}}}default:return{}}}}},Hm=e=>({name:"arrow",options:e,async fn(t){const n=t.x,a=t.y,r=t.placement,i=t.rects,s=t.platform,o=t.elements,l=t.middlewareData,c=bu(e,t)||{},d=c.element,u=c.padding;if(null==d)return{};const m=Ou(void 0===u?0:u),p={x:n,y:a},f=ku(r),x=Nu(f),g=await s.getDimensions(d),v="y"===f,b=v?"top":"left",y=v?"bottom":"right",j=v?"clientHeight":"clientWidth",w=i.reference[x]+i.reference[f]-p[f]-i.floating[x],N=p[f]-i.reference[f],A=await(null==s.getOffsetParent?void 0:s.getOffsetParent(d));let k=A?A[j]:0;k&&await(null==s.isElement?void 0:s.isElement(A))||(k=o.floating[j]||i.floating[x]);const E=w/2-N/2,D=k/2-g[x]/2-1,_=mu(m[b],D),C=mu(m[y],D),F=k-g[x]-C,S=k/2-g[x]/2+E,M=vu(_,S,F),O=!l.arrow&&null!=ju(r)&&S!==M&&i.reference[x]/2-(S<_?_:C)-g[x]/2<0,R=O?S<_?S-_:S-F:0;return{[f]:p[f]+R,data:h({[f]:M,centerOffset:S-M-R},O&&{alignmentOffset:R}),reset:O}}}),Pm=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,a;const r=t.x,i=t.y,s=t.placement,o=t.rects,l=t.middlewareData,c=bu(e,t),d=c.offset,u=void 0===d?0:d,m=c.mainAxis,p=void 0===m||m,h=c.crossAxis,f=void 0===h||h,x={x:r,y:i},g=Au(s),v=wu(g);let b=x[v],y=x[g];const j=bu(u,t),w="number"===typeof j?{mainAxis:j,crossAxis:0}:{mainAxis:null!=(n=j.mainAxis)?n:0,crossAxis:null!=(a=j.crossAxis)?a:0};if(p){const e="y"===v?"height":"width",t=o.reference[v]-o.floating[e]+w.mainAxis,n=o.reference[v]+o.reference[e]-w.mainAxis;b<t?b=t:b>n&&(b=n)}if(f){var N,A;const e="y"===v?"width":"height",t=zu.has(yu(s)),n=o.reference[g]-o.floating[e]+(t&&(null==(N=l.offset)?void 0:N[g])||0)+(t?0:w.crossAxis),a=o.reference[g]+o.reference[e]+(t?0:(null==(A=l.offset)?void 0:A[g])||0)-(t?w.crossAxis:0);y<n?y=n:y>a&&(y=a)}return{[v]:b,[g]:y}}}},Lm=(e,t,n)=>{const a=new Map,r=null!=n?n:{},i=h(h(h({},Dm),r.platform),{},{_c:a});return(async(e,t,n)=>{const a=n.placement,r=void 0===a?"bottom":a,i=n.strategy,s=void 0===i?"absolute":i,o=n.middleware,l=void 0===o?[]:o,c=n.platform,d=c.detectOverflow?c:h(h({},c),{},{detectOverflow:Zu}),u=await(null==c.isRTL?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:s}),p=Iu(m,r,u),f=p.x,x=p.y,g=r,v=0;const b={};for(let j=0;j<l.length;j++){const n=l[j];if(!n)continue;const a=n.name,i=n.fn,o=await i({x:f,y:x,initialPlacement:r,placement:g,strategy:s,middlewareData:b,rects:m,platform:d,elements:{reference:e,floating:t}}),p=o.x,w=o.y,N=o.data,A=o.reset;if(f=null!=p?p:f,x=null!=w?w:x,b[a]=h(h({},b[a]),N),A&&v<50){if(v++,"object"===typeof A){A.placement&&(g=A.placement),A.rects&&(m=!0===A.rects?await c.getElementRects({reference:e,floating:t,strategy:s}):A.rects);var y=Iu(m,g,u);f=y.x,x=y.y}j=-1}}return{x:f,y:x,placement:g,strategy:s,middlewareData:b}}
2)(e,t,h(h({},r),{},{platform:i}))};var Tm="undefined"!==typeof document?o.useLayoutEffect:function(){};function Im(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!Im(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(("_owner"!==n||!e.$$typeof)&&!Im(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Zm(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bm(e,t){const n=Zm(e);return Math.round(t*n)/n}function Vm(e){const t=o.useRef(e);return Tm(()=>{t.current=e}),t}const zm=(e,t)=>{const n=Fm(e);return{name:n.name,fn:n.fn,options:[e,t]}},qm=(e,t)=>{const n=Sm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Um=(e,t)=>({fn:Pm(e).fn,options:[e,t]}),Wm=(e,t)=>{const n=Mm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ym=(e,t)=>{const n=Om(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=(e,t)=>{const n=Rm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gm=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const n="function"===typeof e?e(t):e,a=n.element,r=n.padding;return a&&function(e){return{}.hasOwnProperty.call(e,"current")}(a)?null!=a.current?Hm({element:a.current,padding:r}).fn(t):{}:a?Hm({element:a,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}},$m=["children","width","height"];var Qm=o.forwardRef((e,t)=>{const n=e.children,a=e.width,r=void 0===a?10:a,i=e.height,s=void 0===i?5:i,o=Ie(e,$m);return(0,Pe.jsx)(zo.svg,h(h({},o),{},{ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,Pe.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});Qm.displayName="Arrow";var Xm=Qm;function Jm(e){const t=Ue(o.useState(void 0),2),n=t[0],a=t[1];return tl(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let r,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;a({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),n}const ep=["__scopePopper","virtualRef"],tp=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],np=["__scopePopper"];var ap="Popper",rp=Ue(Jo(ap),2),ip=rp[0],sp=rp[1],op=Ue(ip(ap),2),lp=op[0],cp=op[1],dp=e=>{const t=e.__scopePopper,n=e.children,a=Ue(o.useState(null),2),r=a[0],i=a[1];return(0,Pe.jsx)(lp,{scope:t,anchor:r,onAnchorChange:i,children:n})};dp.displayName=ap;var up="PopperAnchor",mp=o.forwardRef((e,t)=>{const n=e.__scopePopper,a=e.virtualRef,r=Ie(e,ep),i=cp(up,n),s=o.useRef(null),l=us(t,s);return o.useEffect(()=>{i.onAnchorChange((null===a||void 0===a?void 0:a.current)||s.current)}),a?null:(0,Pe.jsx)(zo.div,h(h({},r),{},{ref:l}))});mp.displayName=up;var pp="PopperContent",hp=Ue(ip(pp),2),fp=hp[0],xp=hp[1],gp=o.forwardRef((e,t)=>{var n,a,r,i,s,l,c,d;const u=e.__scopePopper,m=e.side,p=void 0===m?"bottom":m,f=e.sideOffset,x=void 0===f?0:f,g=e.align,v=void 0===g?"center":g,b=e.alignOffset,y=void 0===b?0:b,j=e.arrowPadding,w=void 0===j?0:j,N=e.avoidCollisions,A=void 0===N||N,k=e.collisionBoundary,E=void 0===k?[]:k,D=e.collisionPadding,_=void 0===D?0:D,C=e.sticky,F=void 0===C?"partial":C,S=e.hideWhenDetached,M=void 0!==S&&S,O=e.updatePositionStrategy,R=void 0===O?"optimized":O,H=e.onPlaced,P=Ie(e,tp),L=cp(pp,u),T=Ue(o.useState(null),2),I=T[0],Z=T[1],B=us(t,e=>Z(e)),V=Ue(o.useState(null),2),z=V[0],q=V[1],U=Jm(z),W=null!==(n=null===U||void 0===U?void 0:U.width)&&void 0!==n?n:0,Y=null!==(a=null===U||void 0===U?void 0:U.height)&&void 0!==a?a:0,K=p+("center"!==v?"-"+v:""),G="number"===typeof _?_:h({top:0,right:0,bottom:0,left:0},_),$=Array.isArray(E)?E:[E],Q=$.length>0,X={padding:G,boundary:$.filter(jp),altBoundary:Q},J=function(e){void 0===e&&(e={});const t=e,n=t.placement,a=void 0===n?"bottom":n,r=t.strategy,i=void 0===r?"absolute":r,s=t.middleware,l=void 0===s?[]:s,c=t.platform,d=t.elements,u=void 0===d?{}:d,m=u.reference,p=u.floating,f=t.transform,x=void 0===f||f,g=t.whileElementsMounted,v=t.open,b=Ue(o.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),2),y=b[0],j=b[1],w=Ue(o.useState(l),2),N=w[0],A=w[1];Im(N,l)||A(l);const k=Ue(o.useState(null),2),E=k[0],D=k[1],_=Ue(o.useState(null),2),C=_[0],F=_[1],S=o.useCallback(e=>
2{e!==H.current&&(H.current=e,D(e))},[]),M=o.useCallback(e=>{e!==P.current&&(P.current=e,F(e))},[]),O=m||E,R=p||C,H=o.useRef(null),P=o.useRef(null),L=o.useRef(y),T=null!=g,I=Vm(g),Z=Vm(c),B=Vm(v),V=o.useCallback(()=>{if(!H.current||!P.current)return;const e={placement:a,strategy:i,middleware:N};Z.current&&(e.platform=Z.current),Lm(H.current,P.current,e).then(e=>{const t=h(h({},e),{},{isPositioned:!1!==B.current});z.current&&!Im(L.current,t)&&(L.current=t,ia.flushSync(()=>{j(t)}))})},[N,a,i,Z,B]);Tm(()=>{!1===v&&L.current.isPositioned&&(L.current.isPositioned=!1,j(e=>h(h({},e),{},{isPositioned:!1})))},[v]);const z=o.useRef(!1);Tm(()=>(z.current=!0,()=>{z.current=!1}),[]),Tm(()=>{if(O&&(H.current=O),R&&(P.current=R),O&&R){if(I.current)return I.current(O,R,V);V()}},[O,R,V,I,T]);const q=o.useMemo(()=>({reference:H,floating:P,setReference:S,setFloating:M}),[S,M]),U=o.useMemo(()=>({reference:O,floating:R}),[O,R]),W=o.useMemo(()=>{const e={position:i,left:0,top:0};if(!U.floating)return e;const t=Bm(U.floating,y.x),n=Bm(U.floating,y.y);return x?h(h({},e),{},{transform:"translate("+t+"px, "+n+"px)"},Zm(U.floating)>=1.5&&{willChange:"transform"}):{position:i,left:t,top:n}},[i,x,U.floating,y.x,y.y]);return o.useMemo(()=>h(h({},y),{},{update:V,refs:q,elements:U,floatingStyles:W}),[y,V,q,U,W])}({strategy:"fixed",placement:K,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cm(...t,{animationFrame:"always"===R})},elements:{reference:L.anchor},middleware:[zm({mainAxis:x+Y,alignmentAxis:y}),A&&qm(h({mainAxis:!0,crossAxis:!1,limiter:"partial"===F?Um():void 0},X)),A&&Wm(h({},X)),Ym(h(h({},X),{},{apply:e=>{let t=e.elements,n=e.rects,a=e.availableWidth,r=e.availableHeight;const i=n.reference,s=i.width,o=i.height,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(a,"px")),l.setProperty("--radix-popper-available-height","".concat(r,"px")),l.setProperty("--radix-popper-anchor-width","".concat(s,"px")),l.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}})),z&&Gm({element:z,padding:w}),wp({arrowWidth:W,arrowHeight:Y}),M&&Km(h({strategy:"referenceHidden"},X))]}),ee=J.refs,te=J.floatingStyles,ne=J.placement,ae=J.isPositioned,re=J.middlewareData,ie=Ue(Np(ne),2),se=ie[0],oe=ie[1],le=ol(H);tl(()=>{ae&&(null===le||void 0===le||le())},[ae,le]);const ce=null===(r=re.arrow)||void 0===r?void 0:r.x,de=null===(i=re.arrow)||void 0===i?void 0:i.y,ue=0!==(null===(s=re.arrow)||void 0===s?void 0:s.centerOffset),me=Ue(o.useState(),2),pe=me[0],he=me[1];return tl(()=>{I&&he(window.getComputedStyle(I).zIndex)},[I]),(0,Pe.jsx)("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:h(h({},te),{},{transform:ae?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[null===(l=re.transformOrigin)||void 0===l?void 0:l.x,null===(c=re.transformOrigin)||void 0===c?void 0:c.y].join(" ")},(null===(d=re.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,Pe.jsx)(fp,{scope:u,placedSide:se,onArrowChange:q,arrowX:ce,arrowY:de,shouldHideArrow:ue,children:(0,Pe.jsx)(zo.div,h(h({"data-side":se,"data-align":oe},P),{},{ref:B,style:h(h({},P.style),{},{animation:ae?void 0:"none"})}))})})});gp.displayName=pp;var vp="PopperArrow",bp={top:"bottom",right:"left",bottom:"top",left:"right"},yp=o.forwardRef(function(e,t){const n=e.__scopePopper,a=Ie(e,np),r=xp(vp,n),i=bp[r.placedSide];return(0,Pe.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,Pe.jsx)(Xm,h(h({},a),{},{ref:t,style:h(h({},a.style),{},{display:"block"})}))})});function jp(e){return null!==e}yp.displayName=vp;var wp=e=>({name:"transformOrigin",options:e,fn(t){var n,a,r,i,s;const o=t.placement,l=t.rects,c=t.middlewareData,d=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),u=d?0:e.arrowWidth,m=d?0:e.arrowHeight,p=Ue(Np(o),2),h=p[0],f={start:"0%",center:"50%",end:"100%"}[p[1]],x=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+u/2,g=(null!==(i=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+m/2;let v="",b="";return"bottom"===h?(v=d?f:"".concat(x,"px"),b="".concat(-m,"px")):"top"===h?(v=d?f:"".concat(x,"px"),b="".concat(l.floating.height+m,"px")):"right"===h?(v="".concat(-m,"px"),b=d?f:"".concat(g,"px")):"left"===h&&(v="".concat(l.floating.width+m,"px"),b=d?f:"".concat(g,"px")),{data:{x:v,y:b}}}});function Np(e){const t=Ue(e.split("-"),2),n=t[0],a=t[1];return[n,void 0===a?"center":a]}var Ap=dp,kp=mp,Ep=gp,Dp=yp;function _p(e){const t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Cp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fp=o.forwardRef((e,t)=>
2(0,Pe.jsx)(zo.span,h(h({},e),{},{ref:t,style:h(h({},Cp),e.style)})));Fp.displayName="VisuallyHidden";var Sp=Fp;const Mp=["__scopeSelect","disabled"],Op=["__scopeSelect","className","style","children","placeholder"],Rp=["__scopeSelect","children"],Hp=["__scopeSelect","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],Pp=["__scopeSelect","onPlaced"],Lp=["__scopeSelect","align","collisionPadding"],Tp=["__scopeSelect","nonce"],Ip=["__scopeSelect"],Zp=["__scopeSelect"],Bp=["__scopeSelect","value","disabled","textValue"],Vp=["__scopeSelect","className","style"],zp=["__scopeSelect"],qp=["__scopeSelect","onAutoScroll"],Up=["__scopeSelect"],Wp=["__scopeSelect"],Yp=["__scopeSelect","value"];var Kp=[" ","Enter","ArrowUp","ArrowDown"],Gp=[" ","Enter"],$p="Select",Qp=Ue(iu($p),3),Xp=Qp[0],Jp=Qp[1],eh=Qp[2],th=Ue(Jo($p,[eh,sp]),2),nh=th[0],ah=(th[1],sp()),rh=Ue(nh($p),2),ih=rh[0],sh=rh[1],oh=Ue(nh($p),2),lh=oh[0],ch=oh[1],dh=e=>{const t=e.__scopeSelect,n=e.children,a=e.open,r=e.defaultOpen,i=e.onOpenChange,s=e.value,l=e.defaultValue,c=e.onValueChange,d=e.dir,u=e.name,m=e.autoComplete,p=e.disabled,f=e.required,x=e.form,g=ah(t),v=Ue(o.useState(null),2),b=v[0],y=v[1],j=Ue(o.useState(null),2),w=j[0],N=j[1],A=Ue(o.useState(!1),2),k=A[0],E=A[1],D=du(d),_=Ue(sl({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:$p}),2),C=_[0],F=_[1],S=Ue(sl({prop:s,defaultProp:l,onChange:c,caller:$p}),2),M=S[0],O=S[1],R=o.useRef(null),H=!b||(x||!!b.closest("form")),P=Ue(o.useState(new Set),2),L=P[0],T=P[1],I=Array.from(L).map(e=>e.props.value).join(";");return(0,Pe.jsx)(Ap,h(h({},g),{},{children:(0,Pe.jsxs)(ih,{required:f,scope:t,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:N,valueNodeHasChildren:k,onValueNodeHasChildrenChange:E,contentId:rl(),value:M,onValueChange:O,open:C,onOpenChange:F,dir:D,triggerPointerDownPosRef:R,disabled:p,children:[(0,Pe.jsx)(Xp.Provider,{scope:t,children:(0,Pe.jsx)(lh,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{T(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),H?(0,Pe.jsxs)(nf,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:m,value:M,onChange:e=>O(e.target.value),disabled:p,form:x,children:[void 0===M?(0,Pe.jsx)("option",{value:""}):null,Array.from(L)]},I):null]})}))};dh.displayName=$p;var uh="SelectTrigger",mh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.disabled,r=void 0!==a&&a,i=Ie(e,Mp),s=ah(n),l=sh(uh,n),c=l.disabled||r,d=us(t,l.onTriggerChange),u=Jp(n),m=o.useRef("touch"),p=rf(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),a=sf(t,e,n);void 0!==a&&l.onValueChange(a.value)}),f=Ue(p,3),x=f[0],g=f[1],v=f[2],b=e=>{c||(l.onOpenChange(!0),v()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,Pe.jsx)(kp,h(h({asChild:!0},s),{},{children:(0,Pe.jsx)(zo.button,h(h({type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":af(l.value)?"":void 0},i),{},{ref:d,onClick:$o(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&b(e)}),onPointerDown:$o(i.onPointerDown,e=>{m.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:$o(i.onKeyDown,e=>{const t=""!==x.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),t&&" "===e.key||Kp.includes(e.key)&&(b(),e.preventDefault())})}))}))});mh.displayName=uh;var ph="SelectValue",hh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=(e.className,e.style,e.children),r=e.placeholder,i=void 0===r?"":r,s=Ie(e,Op),o=sh(ph,n),l=o.onValueNodeHasChildrenChange,c=void 0!==a,d=us(t,o.onValueNodeChange);return tl(()=>{l(c)},[l,c]),(0,Pe.jsx)(zo.span,h(h({},s),{},{ref:d,style:{pointerEvents:"none"},children:af(o.value)?(0,Pe.jsx)(Pe.Fragment,{children:i}):a}))});hh.displayName=ph;var fh=o.forwardRef((e,t)=>
2{e.__scopeSelect;const n=e.children,a=Ie(e,Rp);return(0,Pe.jsx)(zo.span,h(h({"aria-hidden":!0},a),{},{ref:t,children:n||"\u25bc"}))});fh.displayName="SelectIcon";var xh=e=>(0,Pe.jsx)(Fl,h({asChild:!0},e));xh.displayName="SelectPortal";var gh="SelectContent",vh=o.forwardRef((e,t)=>{const n=sh(gh,e.__scopeSelect),a=Ue(o.useState(),2),r=a[0],i=a[1];if(tl(()=>{i(new DocumentFragment)},[]),!n.open){const t=r;return t?ia.createPortal((0,Pe.jsx)(jh,{scope:e.__scopeSelect,children:(0,Pe.jsx)(Xp.Slot,{scope:e.__scopeSelect,children:(0,Pe.jsx)("div",{children:e.children})})}),t):null}return(0,Pe.jsx)(Ah,h(h({},e),{},{ref:t}))});vh.displayName=gh;var bh=10,yh=Ue(nh(gh),2),jh=yh[0],wh=yh[1],Nh=hs("SelectContent.RemoveScroll"),Ah=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.position,r=void 0===a?"item-aligned":a,i=e.onCloseAutoFocus,s=e.onEscapeKeyDown,l=e.onPointerDownOutside,c=e.side,d=e.sideOffset,u=e.align,m=e.alignOffset,p=e.arrowPadding,f=e.collisionBoundary,x=e.collisionPadding,g=e.sticky,v=e.hideWhenDetached,b=e.avoidCollisions,y=Ie(e,Hp),j=sh(gh,n),w=Ue(o.useState(null),2),N=w[0],A=w[1],k=Ue(o.useState(null),2),E=k[0],D=k[1],_=us(t,e=>A(e)),C=Ue(o.useState(null),2),F=C[0],S=C[1],M=Ue(o.useState(null),2),O=M[0],R=M[1],H=Jp(n),P=Ue(o.useState(!1),2),L=P[0],T=P[1],I=o.useRef(!1);o.useEffect(()=>{if(N)return Rc(N)},[N]),Rl();const Z=o.useCallback(e=>{const t=qe(H().map(e=>e.ref.current)),n=t[0],a=Ue(Ze(t).slice(1).slice(-1),1)[0],r=document.activeElement;for(const i of e){if(i===r)return;if(null===i||void 0===i||i.scrollIntoView({block:"nearest"}),i===n&&E&&(E.scrollTop=0),i===a&&E&&(E.scrollTop=E.scrollHeight),null===i||void 0===i||i.focus(),document.activeElement!==r)return}},[H,E]),B=o.useCallback(()=>Z([F,N]),[Z,F,N]);o.useEffect(()=>{L&&B()},[L,B]);const V=j.onOpenChange,z=j.triggerPointerDownPosRef;o.useEffect(()=>{if(N){let e={x:0,y:0};const t=t=>{var n,a,r,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(a=z.current)||void 0===a?void 0:a.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(i=z.current)||void 0===i?void 0:i.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():N.contains(n.target)||V(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[N,V,z]),o.useEffect(()=>{const e=()=>V(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[V]);const q=rf(e=>{const t=H().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),a=sf(t,e,n);a&&setTimeout(()=>a.ref.current.focus())}),U=Ue(q,2),W=U[0],Y=U[1],K=o.useCallback((e,t,n)=>{const a=!I.current&&!n;(void 0!==j.value&&j.value===t||a)&&(S(e),a&&(I.current=!0))},[j.value]),G=o.useCallback(()=>null===N||void 0===N?void 0:N.focus(),[N]),$=o.useCallback((e,t,n)=>{const a=!I.current&&!n;(void 0!==j.value&&j.value===t||a)&&R(e)},[j.value]),Q="popper"===r?Eh:kh,X=Q===Eh?{side:c,sideOffset:d,align:u,alignOffset:m,arrowPadding:p,collisionBoundary:f,collisionPadding:x,sticky:g,hideWhenDetached:v,avoidCollisions:b}:{};return(0,Pe.jsx)(jh,{scope:n,content:N,viewport:E,onViewportChange:D,itemRefCallback:K,selectedItem:F,onItemLeave:G,itemTextRefCallback:$,focusSelectedItem:B,selectedItemText:O,position:r,isPositioned:L,searchRef:W,children:(0,Pe.jsx)(Ec,{as:Nh,allowPinchZoom:!0,children:(0,Pe.jsx)(wl,{asChild:!0,trapped:j.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$o(i,e=>{var t;null===(t=j.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,Pe.jsx)(hl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,Pe.jsx)(Q,h(h(h({role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:e=>e.preventDefault()},y),X),{},{onPlaced:()=>T(!0),ref:_,style:h({display:"flex",flexDirection:"column",outline:"none"},y.style),onKeyDown:$o(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;
2if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Y(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=H().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,a=t.indexOf(n);t=t.slice(a+1)}setTimeout(()=>Z(t)),e.preventDefault()}})}))})})})})});Ah.displayName="SelectContentImpl";var kh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.onPlaced,r=Ie(e,Pp),i=sh(gh,n),s=wh(gh,n),l=Ue(o.useState(null),2),c=l[0],d=l[1],u=Ue(o.useState(null),2),m=u[0],p=u[1],f=us(t,e=>p(e)),x=Jp(n),g=o.useRef(!1),v=o.useRef(!0),b=s.viewport,y=s.selectedItem,j=s.selectedItemText,w=s.focusSelectedItem,N=o.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&m&&b&&y&&j){const e=i.trigger.getBoundingClientRect(),t=m.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=j.getBoundingClientRect();if("rtl"!==i.dir){const a=r.left-t.left,i=n.left-a,s=e.left-i,o=e.width+s,l=Math.max(o,t.width),d=window.innerWidth-bh,u=nu(i,[bh,Math.max(bh,d-l)]);c.style.minWidth=o+"px",c.style.left=u+"px"}else{const a=t.right-r.right,i=window.innerWidth-n.right-a,s=window.innerWidth-e.right-i,o=e.width+s,l=Math.max(o,t.width),d=window.innerWidth-bh,u=nu(i,[bh,Math.max(bh,d-l)]);c.style.minWidth=o+"px",c.style.right=u+"px"}const s=x(),o=window.innerHeight-20,l=b.scrollHeight,d=window.getComputedStyle(m),u=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),h=parseInt(d.borderBottomWidth,10),f=u+p+l+parseInt(d.paddingBottom,10)+h,v=Math.min(5*y.offsetHeight,f),w=window.getComputedStyle(b),N=parseInt(w.paddingTop,10),A=parseInt(w.paddingBottom,10),k=e.top+e.height/2-bh,E=o-k,D=y.offsetHeight/2,_=u+p+(y.offsetTop+D),C=f-_;if(_<=k){const e=s.length>0&&y===s[s.length-1].ref.current;c.style.bottom="0px";const t=m.clientHeight-b.offsetTop-b.offsetHeight,n=_+Math.max(E,D+(e?A:0)+t+h);c.style.height=n+"px"}else{const e=s.length>0&&y===s[0].ref.current;c.style.top="0px";const t=Math.max(k,u+b.offsetTop+(e?N:0)+D)+C;c.style.height=t+"px",b.scrollTop=_-k+b.offsetTop}c.style.margin="".concat(bh,"px 0"),c.style.minHeight=v+"px",c.style.maxHeight=o+"px",null===a||void 0===a||a(),requestAnimationFrame(()=>g.current=!0)}},[x,i.trigger,i.valueNode,c,m,b,y,j,i.dir,a]);tl(()=>N(),[N]);const A=Ue(o.useState(),2),k=A[0],E=A[1];tl(()=>{m&&E(window.getComputedStyle(m).zIndex)},[m]);const D=o.useCallback(e=>{e&&!0===v.current&&(N(),null===w||void 0===w||w(),v.current=!1)},[N,w]);return(0,Pe.jsx)(_h,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:D,children:(0,Pe.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,Pe.jsx)(zo.div,h(h({},r),{},{ref:f,style:h({boxSizing:"border-box",maxHeight:"100%"},r.style)}))})})});kh.displayName="SelectItemAlignedPosition";var Eh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.align,r=void 0===a?"start":a,i=e.collisionPadding,s=void 0===i?bh:i,o=Ie(e,Lp),l=ah(n);return(0,Pe.jsx)(Ep,h(h(h({},l),o),{},{ref:t,align:r,collisionPadding:s,style:h(h({boxSizing:"border-box"},o.style),{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"})}))});Eh.displayName="SelectPopperPosition";var Dh=Ue(nh(gh,{}),2),_h=Dh[0],Ch=Dh[1],Fh="SelectViewport",Sh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.nonce,r=Ie(e,Tp),i=wh(Fh,n),s=Ch(Fh,n),l=us(t,i.onViewportChange),c=o.useRef(0);return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,Pe.jsx)(Xp.Slot,{scope:n,children:(0,Pe.jsx)(zo.div,h(h({"data-radix-select-viewport":"",role:"presentation"},r),{},{ref:l,style:h({position:"relative",flex:1,overflow:"hidden auto"},r.style),onScroll:$o(r.onScroll,e=>{const t=e.currentTarget,n=s.contentWrapper,a=s.shouldExpandOnScrollRef;if(null!==a&&void 0!==a&&a.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const a=window.innerHeight-20,r=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(r,
2i);if(s<a){const r=s+e,i=Math.min(a,r),o=r-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=o>0?o:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})}))})]})});Sh.displayName=Fh;var Mh="SelectGroup",Oh=Ue(nh(Mh),2),Rh=Oh[0],Hh=Oh[1],Ph=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=Ie(e,Ip),r=rl();return(0,Pe.jsx)(Rh,{scope:n,id:r,children:(0,Pe.jsx)(zo.div,h(h({role:"group","aria-labelledby":r},a),{},{ref:t}))})});Ph.displayName=Mh;var Lh="SelectLabel",Th=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=Ie(e,Zp),r=Hh(Lh,n);return(0,Pe.jsx)(zo.div,h(h({id:r.id},a),{},{ref:t}))});Th.displayName=Lh;var Ih="SelectItem",Zh=Ue(nh(Ih),2),Bh=Zh[0],Vh=Zh[1],zh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.value,r=e.disabled,i=void 0!==r&&r,s=e.textValue,l=Ie(e,Bp),c=sh(Ih,n),d=wh(Ih,n),u=c.value===a,m=Ue(o.useState(null!==s&&void 0!==s?s:""),2),p=m[0],f=m[1],x=Ue(o.useState(!1),2),g=x[0],v=x[1],b=us(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,a,i)}),y=rl(),j=o.useRef("touch"),w=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,Pe.jsx)(Bh,{scope:n,value:a,disabled:i,textId:y,isSelected:u,onItemTextChange:o.useCallback(e=>{f(t=>{var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,Pe.jsx)(Xp.ItemSlot,{scope:n,value:a,disabled:i,textValue:p,children:(0,Pe.jsx)(zo.div,h(h({role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},l),{},{ref:b,onFocus:$o(l.onFocus,()=>v(!0)),onBlur:$o(l.onBlur,()=>v(!1)),onClick:$o(l.onClick,()=>{"mouse"!==j.current&&w()}),onPointerUp:$o(l.onPointerUp,()=>{"mouse"===j.current&&w()}),onPointerDown:$o(l.onPointerDown,e=>{j.current=e.pointerType}),onPointerMove:$o(l.onPointerMove,e=>{var t;(j.current=e.pointerType,i)?null===(t=d.onItemLeave)||void 0===t||t.call(d):"mouse"===j.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$o(l.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null===(t=d.onItemLeave)||void 0===t||t.call(d))}),onKeyDown:$o(l.onKeyDown,e=>{var t;""!==(null===(t=d.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Gp.includes(e.key)&&w()," "===e.key&&e.preventDefault())})}))})})});zh.displayName=Ih;var qh="SelectItemText",Uh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=(e.className,e.style,Ie(e,Vp)),r=sh(qh,n),i=wh(qh,n),s=Vh(qh,n),l=ch(qh,n),c=Ue(o.useState(null),2),d=c[0],u=c[1],m=us(t,e=>u(e),s.onItemTextChange,e=>{var t;return null===(t=i.itemTextRefCallback)||void 0===t?void 0:t.call(i,e,s.value,s.disabled)}),p=null===d||void 0===d?void 0:d.textContent,f=o.useMemo(()=>(0,Pe.jsx)("option",{value:s.value,disabled:s.disabled,children:p},s.value),[s.disabled,s.value,p]),x=l.onNativeOptionAdd,g=l.onNativeOptionRemove;return tl(()=>(x(f),()=>g(f)),[x,g,f]),(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(zo.span,h(h({id:s.textId},a),{},{ref:m})),s.isSelected&&r.valueNode&&!r.valueNodeHasChildren?ia.createPortal(a.children,r.valueNode):null]})});Uh.displayName=qh;var Wh="SelectItemIndicator",Yh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=Ie(e,zp);return Vh(Wh,n).isSelected?(0,Pe.jsx)(zo.span,h(h({"aria-hidden":!0},a),{},{ref:t})):null});Yh.displayName=Wh;var Kh="SelectScrollUpButton",Gh=o.forwardRef((e,t)=>{const n=wh(Kh,e.__scopeSelect),a=Ch(Kh,e.__scopeSelect),r=Ue(o.useState(!1),2),i=r[0],s=r[1],l=us(t,a.onScrollButtonChange);return tl(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;s(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,Pe.jsx)(Xh,h(h({},e),{},{ref:l,onAutoScroll:()=>{const e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null});Gh.displayName=Kh;var $h="SelectScrollDownButton",Qh=o.forwardRef((e,t)=>
2{const n=wh($h,e.__scopeSelect),a=Ch($h,e.__scopeSelect),r=Ue(o.useState(!1),2),i=r[0],s=r[1],l=us(t,a.onScrollButtonChange);return tl(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,Pe.jsx)(Xh,h(h({},e),{},{ref:l,onAutoScroll:()=>{const e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null});Qh.displayName=$h;var Xh=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=e.onAutoScroll,r=Ie(e,qp),i=wh("SelectScrollButton",n),s=o.useRef(null),l=Jp(n),c=o.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>c(),[c]),tl(()=>{var e;const t=l().find(e=>e.ref.current===document.activeElement);null===t||void 0===t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[l]),(0,Pe.jsx)(zo.div,h(h({"aria-hidden":!0},r),{},{ref:t,style:h({flexShrink:0},r.style),onPointerDown:$o(r.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(a,50))}),onPointerMove:$o(r.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(a,50))}),onPointerLeave:$o(r.onPointerLeave,()=>{c()})}))}),Jh=o.forwardRef((e,t)=>{e.__scopeSelect;const n=Ie(e,Up);return(0,Pe.jsx)(zo.div,h(h({"aria-hidden":!0},n),{},{ref:t}))});Jh.displayName="SelectSeparator";var ef="SelectArrow",tf=o.forwardRef((e,t)=>{const n=e.__scopeSelect,a=Ie(e,Wp),r=ah(n),i=sh(ef,n),s=wh(ef,n);return i.open&&"popper"===s.position?(0,Pe.jsx)(Dp,h(h(h({},r),a),{},{ref:t})):null});tf.displayName=ef;var nf=o.forwardRef((e,t)=>{e.__scopeSelect;let n=e.value,a=Ie(e,Yp);const r=o.useRef(null),i=us(t,r),s=_p(n);return o.useEffect(()=>{const e=r.current;if(!e)return;const t=window.HTMLSelectElement.prototype,a=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==n&&a){const t=new Event("change",{bubbles:!0});a.call(e,n),e.dispatchEvent(t)}},[s,n]),(0,Pe.jsx)(zo.select,h(h({},a),{},{style:h(h({},Cp),a.style),ref:i,defaultValue:n}))});function af(e){return""===e||void 0===e}function rf(e){const t=ol(e),n=o.useRef(""),a=o.useRef(0),r=o.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),i=o.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}function sf(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let i=function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(e,Math.max(r,0));1===a.length&&(i=i.filter(e=>e!==n));const s=i.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return s!==n?s:void 0}nf.displayName="SelectBubbleInput";var of=dh,lf=mh,cf=hh,df=fh,uf=xh,mf=vh,pf=Sh,hf=Th,ff=zh,xf=Uh,gf=Yh,vf=Gh,bf=Qh,yf=Jh;const jf=Zd("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),wf=Zd("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Nf=Zd("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Af=["className","children"],kf=["className"],Ef=["className"],Df=["className","children","position"],_f=["className"],Cf=["className","children"],Ff=["className"],Sf=of,Mf=cf,Of=o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Ie(e,Af);return(0,Pe.jsxs)(lf,h(h({ref:t,className:Ro("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n)},r),{},{children:[a,(0,Pe.jsx)(df,{asChild:!0,children:(0,Pe.jsx)(jf,{className:"h-4 w-4 opacity-50"})})]}))});Of.displayName=lf.displayName;const Rf=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,kf);return(0,Pe.jsx)(vf,h(h({ref:t,className:Ro("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,Pe.jsx)(wf,{className:"h-4 w-4"})}))});Rf.displayName=vf.displayName;const Hf=o.forwardRef((e,t)=>
2{let n=e.className,a=Ie(e,Ef);return(0,Pe.jsx)(bf,h(h({ref:t,className:Ro("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,Pe.jsx)(jf,{className:"h-4 w-4"})}))});Hf.displayName=bf.displayName;const Pf=o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=e.position,i=void 0===r?"popper":r,s=Ie(e,Df);return(0,Pe.jsx)(uf,{children:(0,Pe.jsxs)(mf,h(h({ref:t,className:Ro("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i},s),{},{children:[(0,Pe.jsx)(Rf,{}),(0,Pe.jsx)(pf,{className:Ro("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,Pe.jsx)(Hf,{})]}))})});Pf.displayName=mf.displayName;o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,_f);return(0,Pe.jsx)(hf,h({ref:t,className:Ro("px-2 py-1.5 text-sm font-semibold",n)},a))}).displayName=hf.displayName;const Lf=o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Ie(e,Cf);return(0,Pe.jsxs)(ff,h(h({ref:t,className:Ro("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,Pe.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Pe.jsx)(gf,{children:(0,Pe.jsx)(Nf,{className:"h-4 w-4"})})}),(0,Pe.jsx)(xf,{children:a})]}))});Lf.displayName=ff.displayName;o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Ff);return(0,Pe.jsx)(yf,h({ref:t,className:Ro("-mx-1 my-1 h-px bg-muted",n)},a))}).displayName=yf.displayName;const Tf=(0,o.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),If=["alt","color","size","weight","mirrored","children","weights"],Zf=["color","size","weight","mirrored"],Bf=o.forwardRef((e,t)=>{const n=e.alt,a=e.color,r=e.size,i=e.weight,s=e.mirrored,l=e.children,c=e.weights,d=Ie(e,If),u=o.useContext(Tf),m=u.color,p=void 0===m?"currentColor":m,f=u.size,x=u.weight,g=void 0===x?"regular":x,v=u.mirrored,b=void 0!==v&&v,y=Ie(u,Zf);return o.createElement("svg",h(h({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=r?r:f,height:null!=r?r:f,fill:null!=a?a:p,viewBox:"0 0 256 256",transform:s||b?"scale(-1, 1)":void 0},y),d),!!n&&o.createElement("title",null,n),l,c.get(null!=i?i:g))});Bf.displayName="IconBase";const Vf=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24
2-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),zf=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Vf})));zf.displayName="QuestionIcon";const qf=zf,Uf=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Wf=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Uf})));Wf.displayName="CheckCircleIcon";const Yf=Wf,Kf=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Gf=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Kf})));Gf.displayName="XIcon";const $f=Gf,Qf=[{value:"bug",label:"Bug Report"},{value:"question",label:"Question"},{value:"feature_request",label:"Feature Request"},{value:"general_feedback",label:"General Feedback"}];function Xf(){const e=es().user,t=Zt(),n=Ue((0,o.useState)(!1),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!1),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!1),2),d=c[0],u=c[1],m=Ue((0,o.useState)("bug"),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(""),2),b=v[0],y=v[1];if(!e)return null;const j=()=>{h("bug"),g(""),y(""),u(!1),l(!1)},w=e=>{r(e),e||setTimeout(j,300)},N=!s&&p&&x.trim().length>0&&b.trim().length>=10;return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("button",{type:"button",onClick:()=>r(!0),"data-testid":"help-button-pill","aria-label":"Help and feedback",className:"fixed z-40 bottom-[88px] right-5 inline-flex items-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold shadow-lg transition-transform hover:scale-[1.03] active:scale-[0.98]",style:{background:"#041C3A",color:"white",border:"1px solid rgba(255,255,255,0.06)"},children:[(0,Pe.jsx)(qf,{size:16,weight:"bold"}),"Help"]}),(0,Pe.jsx)(Kd,{open:a,onOpenChange:w,children:(0,Pe.jsx)(Qd,{className:"sm:max-w-[520px]","data-testid":"help-dialog",children:d?(0,Pe.jsxs)("div",{className:"py-2","data-testid":"help-success",children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(Yf,{size:28,weight:"duotone",style:{color:"#047857"}}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)(eu,{className:"text-lg",children:"Message received"}),(0,Pe.jsxs)(tu,{className:"mt-1.5",children:["Your message is saved in the AROS support queue. We read every one. An email confirmation will arrive once our notification service is live \u2014 for urgent questions, reach us at ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),"."]})]})]}),(0,Pe.jsx)(Jd,{className:"mt-6",children:(0,Pe.jsx)(Lo,{onClick:()=>w(!1),"data-testid":"help-close-success",children:"Close"})})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsx)(eu,{children:"Help & Feedback"}),(0,Pe.jsx)(tu,{children:"Bug, question, idea, or general thought \u2014 we want to hear it."})]}),(0,Pe.jsxs)("div",{className:"space-y-4 py-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"help-type",children:"Type"}),(0,Pe.jsxs)(Sf,{value:p,onValueChange:h,children:[(0,Pe.jsx)(Of,{id:"help-type","data-testid":"help-type-trigger",className:"mt-1.5",children:(0,Pe.jsx)(Mf,{placeholder:"Choose a type"})}),(0,Pe.jsx)(Pf,{children:Qf.map(e=>(0,Pe.jsx)(Lf,{value:e.value,"data-testid":"help-type-".concat(e.value),children:e.label},e.value))})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"help-subject",children:"Subject"}),(0,Pe.jsx)(Io,{id:"help-subject","data-testid":"help-subject",value:x,onChange:e=>g(e.target.value),placeholder:"Short summary",maxLength:200,className:"mt-1.5"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"help-description",children:"Description"}),(0,Pe.jsx)(Bo,{id:"help-description","data-testid":"help-description",value:b,onChange:e=>y(e.target.value),placeholder:"What happened? What were you trying to do? (min. 10 characters)",maxLength:8e3,rows:6,className:"mt-1.5"}),(0,Pe.jsxs)("div",{className:"text-[11px] font-mono mt-1 text-muted-foreground","data-testid":"help-description-counter",children:[b.trim().length," / 8000 (min 10)"]})]}),(0,Pe.jsx)("div",{className:"text-[11px] font-mono text-muted-foreground",children:"We automatically include your role, the page URL, and a timestamp so we can reproduce issues faster."})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsxs)(Lo,{variant:"ghost",onClick:()=>w(!1),"data-testid":"help-cancel",children:[(0,Pe.jsx)($f,{size:14,className:"mr-1"})," Cancel"]}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(N){l(!0);try{await Qi.post("/support/tickets",{type:p,subject:x.trim(),description:b.trim(),page_url:"undefined"!==typeof window?window.location.href:t.pathname,app_version:"unknown",client_timestamp:(new Date).toISOString(),entry_point:"help_button",route_name:"undefined"!==typeof window?window.location.pathname:t.pathname,referrer_url:(()=>
2{if("undefined"===typeof window)return null;try{const e=window.sessionStorage.getItem("aros_prev_path");if(e)return e}catch(t){}const e="undefined"!==typeof document&&document.referrer||"";return e&&e.startsWith(window.location.origin)?e.replace(window.location.origin,""):null})()}),u(!0),va.success("Message saved to the AROS support queue.")}catch($ge){var e,n;const a=(null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||(null===$ge||void 0===$ge?void 0:$ge.message)||"Could not submit. Please try again.";va.error(a),l(!1)}}},disabled:!N,"data-testid":"help-submit",children:s?"Sending\u2026":"Send"})]})]})})})]})}const Jf=[{id:"getting-started",title:"Getting Started",description:"What AROS is, who it's for, and your first 5 minutes."},{id:"owners",title:"Owners",description:"Hiring without ever opening an ATS."},{id:"recruiters",title:"Recruiters",description:"Hiring momentum, decision packets, and the hiring-manager loop."},{id:"hiring-managers",title:"Hiring Managers",description:"Reviewing candidates from a share link \u2014 no AROS account required."},{id:"pricing",title:"Account & Access",description:"How to sign up, what's available, and how access works."},{id:"troubleshooting",title:"Troubleshooting",description:"Login, setup links, and email delivery."}],ex=[{slug:"what-aros-is",category:"getting-started",title:"What AROS is \u2014 and what it isn't",summary:"AROS keeps hiring organized, keeps candidates informed, and makes sure nobody falls through the cracks. It's not an ATS, not an AI scorer, and not a candidate sourcing tool.",keywords:["what is aros","definition","purpose","ats replacement","differences","explain"],body_md:"\nAROS keeps hiring organized, keeps candidates informed, and makes sure **nobody falls through the cracks**. We exist because two failures happen in almost every hire:\n\n1. Candidates get **ghosted** \u2014 applications disappear into a black box.\n2. Decisions are never **explained** \u2014 rejections happen silently, even to finalists.\n\nAROS makes both of those impossible by default.\n\n### What AROS *is*\n- A platform that **automatically acknowledges** every application within minutes.\n- A platform that **forces a closure communication** before anyone can be marked \"not selected.\"\n- A platform that gives candidates a **timeline they can see** \u2014 every status change, with the candidate's permission settings respected.\n- A platform that lets recruiters keep **hiring managers in the loop** without needing them to learn new software.\n\n### What AROS *isn't*\n- **Not an ATS replacement.** We don't try to be your applicant tracking system of record. We sit alongside or beside one.\n- **Not an AI scoring engine.** We surface plain-English labels (Recommended / Worth a Look / Probably Not), never opaque confidence percentages.\n- **Not a sourcing tool.** We don't scrape, spam, or do outbound. Candidates apply; we help you treat them well.\n\n### Who AROS is for\nTwo production experiences sit on the same backend:\n\n- **Owner Mode** \u2014 for small business owners who hire occasionally. Three nav items. Plain English. ~30 minutes a week.\n- **Recruiter Mode** \u2014 for professional recruiters running a real pipeline. Hiring Momentum, decision packets, share links.\n\nPick one when you sign up; you can switch in Settings if you change your mind.\n".trim()},{slug:"owner-vs-recruiter-mode",category:"getting-started",title:"Owner Mode vs Recruiter Mode \u2014 which should you pick?",summary:"Owner Mode is for small business owners hiring occasionally. Recruiter Mode is for professionals running a daily pipeline.",keywords:["which mode","owner or recruiter","differences","switch mode","hiring mode"],body_md:"\nPick the mode that matches **how often you hire**, not your job title.\n\n### Choose Owner Mode if\u2026\n- You hire **fewer than 5 people a year**.\n- You don't think of yourself as a recruiter.\n- You want hiring to take 30 minutes a week, max.\n- You'd rather see **Recommended / Worth a Look / Probably Not** than candidate scores.\n\nYou'll land in `/app/
2owner` with three nav items: **Hiring**, **History**, **Settings**. That's the whole product.\n\n### Choose Recruiter Mode if\u2026\n- You hire **weekly or daily**.\n- You manage a pipeline across multiple open roles.\n- You need decision packets you can hand to hiring managers.\n- You live in your hiring software 4+ hours a day.\n\nYou'll land in `/app/employer` with the full surface \u2014 Hiring Momentum, applicants, analytics, decision packets, share links.\n\n### Can I switch?\nYes. Go to **Settings \u2192 Switch hiring mode**. Your data is preserved either way.\n\n### Can a team use both?\nToday, each user picks one mode. When we ship Team MVP (post-validation), a single org will be able to host both owner-style and recruiter-style users together.\n".trim()},{slug:"first-5-minutes",category:"getting-started",title:"Your first 5 minutes",summary:"Sign up \u2192 set password \u2192 land in your workspace \u2192 post your first job. Most people are done in under 5 minutes.",keywords:["onboarding","getting started","first time","setup","tutorial"],body_md:"\nHere's what the first 5 minutes look like, end to end.\n\n### 1. Sign up (30 seconds)\nVisit the homepage, fill in your name, company, work email, and whether you're hiring as an **owner** or a **recruiter**. Submit. We email you a setup link in seconds.\n\n### 2. Click the email link & set a password (60 seconds)\nThe link is valid for **72 hours** and can be used **once**. Pick a password of at least 10 characters. You'll be signed in automatically.\n\n### 3. Land in your workspace (instant)\n- **Owner Mode** \u2192 `/app/owner` (Hiring, History, Settings)\n- **Recruiter Mode** \u2192 `/app/employer` (full pipeline)\n\nThis is where AROS officially **starts working for you**.\n\n### 4. Post your first job (2 minutes)\n- Owner: home \u2192 **Post a job** \u2192 fill the short form \u2192 publish.\n- Recruiter: `Jobs` \u2192 **New job** \u2192 richer form with structured fit dimensions.\n\nYou can post a real job or a test job. Both work.\n\n### 5. Share the link & wait (instant)\nCopy the public application URL and share it wherever you'd post a job. The moment someone applies, AROS:\n- Sends them an **acknowledgement email** within minutes.\n- Adds them to your inbox with all the fields needed to make a decision.\n- Starts their **application timeline** \u2014 which they can see.\n\nYou're now live. Welcome to AROS.\n".trim()},{slug:"posting-first-job-owner",category:"owners",title:"Posting your first job (Owner Mode)",summary:"Owner Mode's job form is intentionally short. Title, location, hiring goal, and a couple of must-haves is enough.",keywords:["post job","create job","new job","owner","job form"],body_md:"\nOwner Mode jobs are designed for the body-shop owner, not the talent ops lead. You don't need to define competency rubrics. You need to hire a real person, fast.\n\n### The short form\n- **Title** \u2014 the role as you'd say it to a friend (\"Customer Success Manager\", \"Pastry Cook\").\n- **Location** \u2014 city or remote.\n- **Hiring goal** \u2014 one sentence: who you want and why.\n- **Must-haves** \u2014 up to 3 things that disqualify a candidate.\n- **Nice-to-haves** \u2014 optional, up to 5.\n\nThat's it. You can publish in under 90 seconds.\n\n### What happens next\n- A public application URL is generated. Copy it from the job's detail page.\n- Every application creates an **applicant card** in your Hiring tab with a plain-English label.\n- The candidate gets an **acknowledgement email** automatically.\n\n### Edits and reposts\nYou can edit anything except the public URL. Closing a job moves it to History \u2014 applicants and decisions are preserved.\n\n### Where to share the link\nAnywhere works \u2014 your storefront, Facebook, Craigslist, a flyer. Each applicant inherits the source so you'll know which channel actually worked.\n".trim()},{slug:"reviewing-applicants-owner",category:"owners",title:"Reviewing applicants (Owner Mode)",summary:"Three labels: Recommended, Worth a Look, Probably Not. No percentages. You make the call.",keywords:["review applicants","candidates","labels","re
2commended","worth a look","probably not"],body_md:"\nWe don't show you AI confidence scores. We show you a **plain-English label** and the reasoning behind it.\n\n### The three labels\n- **Recommended** \u2014 clear match on must-haves; relevant experience or signal is present.\n- **Worth a Look** \u2014 partial match. You should read this one before passing.\n- **Probably Not** \u2014 missing one or more must-haves, or zero relevant signal.\n\nLabels are **suggestions**. You make the actual decision.\n\n### What's on the candidate detail page\n- The 3 most relevant points from their resume.\n- Their answers to any context questions you asked.\n- A button to **Schedule an interview** (we send the candidate a friendly email).\n- A button to **Pass** (we send the candidate a respectful closure email \u2014 automatically).\n\n### What we DON'T show owners\n- Opaque AI percentages.\n- Raw fit-score breakdowns.\n- Compare/contrast against other candidates.\n\nIf you want a deeper view, switch to Recruiter Mode in Settings \u2014 but most owners don't need it.\n\n### What happens when you decide\nEvery action you take is logged. The candidate gets an email. The activity feed records what AROS did on your behalf. You wrote zero emails.\n".trim()},{slug:"owner-activity-feed",category:"owners",title:"The Owner activity feed",summary:"History tab shows everything AROS has done on your behalf \u2014 every email, every label, every status change.",keywords:["activity feed","history","audit","owner","what aros did"],body_md:"\nOpen the **History** tab in Owner Mode. You'll see a chronological list of every action AROS has taken on your behalf:\n\n- Acknowledgement emails sent\n- Labels assigned\n- Pass / Hire decisions you made\n- Closure emails sent\n- Status changes the candidate could see\n\n### Why it's there\nTwo reasons:\n\n1. **Proof.** When a candidate asks \"did anyone ever respond to my application?\", you can answer with receipts.\n2. **Trust.** AROS does a lot of background work. We don't want you to take it on faith \u2014 we want you to see it.\n\n### Filtering\nYou can filter the feed by job, by candidate, or by event type (email vs decision vs status change). Useful for audits or when a candidate emails you weeks later.\n\n### Privacy\nOnly you (and admins) can see your activity feed. Candidates see their **own** application timeline, which is a different view \u2014 same data, scoped to them.\n".trim()},{slug:"pipeline-pulse",category:"recruiters",title:"Hiring momentum \u2014 your action queue",summary:"Hiring momentum is an action-ranked queue, not a swim-lane board. It tells you what to do next.",keywords:["hiring momentum","pipeline pulse","queue","actions","next step","recruiter dashboard"],body_md:'\nHiring momentum is the **central action hub** in Recruiter Mode. Instead of showing you a kanban board, it asks "what\'s the next thing a recruiter should do today?" and ranks accordingly.\n\n### What it surfaces\n- **Closures overdue** \u2014 candidates marked "not selected" who haven\'t received a closure email yet. (We block reaching that state without one, but if your team imports legacy data we\'ll prompt you.)\n- **Acknowledgements pending** \u2014 applications that arrived more than 5 minutes ago without an ack going out.\n- **Applicants stuck in one step** \u2014 anyone who hasn\'t moved forward in the time you set.\n- **Hiring manager waits** \u2014 share links that have been sent but not responded to.\n\nClick any row \u2192 land on the right page to take action.\n\n### Filters\nBy job, by stage, by org (admins only). Filters persist across sessions.\n\n### Empty state\n"Hiring momentum is empty" is the goal. When you reach it, AROS will say so \u2014 and quietly stay out of your way.\n\n### Where it lives\n`/app/employer/pipeline-pulse`. There\'s also a Trust Strip on the Recruiter dashboard that summarizes the top 3 actions.\n'.trim()},{slug:"hiring-manager-share-link",category:"recruiters",title:"Hiring Manager Share Link",summary:"Send a hiring manager a secure, time-limited link. They review the candidate, leave a decision + note, no AROS account needed.",keywords:["share link","hiring manager","hm link","external review","feedback"],body_md:"\nHiring managers don't want to learn another piece of software. The HM Share Link solves that.\n\n### How it works\n1. On any candidate detail page, click **Share with hiring manager**.\n2. Pick the manager's email and an expiry (1, 3, or 7 days).\n3. AROS emails them a link like `/hm/<token>`.\n4. They click it, log in **without an AROS account**, see a clean decision packet, and submit one of: **Hire**, **Pass**, or **Need more info** + an optional note.\n5. The feedback lands back on your candidate detail page in real time.\n\n### What the hiring manager sees\n- Candidate decision packet (executive summary, why-might-succeed, areas to validate).\n- Application timeline (sanitized \u2014 no recruiter-internal notes).\n- A simple 3-option decision form.\n\n### What they DON'T see\n- Other candidates.\
2n- Internal ranking, fit scores, or recruiter notes.\n- Other share links or admin data.\n\n### Security\n- Single-use tokens, hashed at rest.\n- Expire after the window you set.\n- Revocable from the candidate detail page.\n- Every link issuance is logged in the audit trail.\n".trim()},{slug:"decision-packets",category:"recruiters",title:"Decision packets \u2014 what's in one",summary:"A printable 1-page brief composing everything AROS knows about a candidate \u2014 executive summary, evidence signals, risk flags, interview guide.",keywords:["decision packet","printable","1-page","candidate brief","executive summary"],body_md:"\nA decision packet is a single page your team uses to weigh a candidate's evidence before deciding. AROS organises the evidence; recruiters validate; hiring managers decide.\n\n### What it contains\n1. **Executive Summary** \u2014 2\u20133 sentences.\n2. **AROS draft evidence summary** \u2014 a draft you validate, never a verdict.\n3. **Diagnostic signals** \u2014 collapsed by default, recruiter-only, not shared.\n4. **Why this candidate might succeed** \u2014 3 reasons.\n5. **Areas to validate** \u2014 3 specific things to dig into during interviews.\n6. **Risk flags** \u2014 anything outside the normal envelope (gap, layoff, pivot, etc.)
2with context.\n7. **Human context** \u2014 candidate's own answers to context questions, if asked.\n8. **Interview guide** \u2014 behavioral / skills / context questions, categorized.\n9. **Suggested follow-up** \u2014 schedule, share, keep warm.\n\n### Where to find one\n- Recruiter Mode: `/app/employer/applications/<id>/packet`\n- Compare two finalists side-by-side: `/app/employer/packet/compare?ids=a,b`\n\n### Printing\nUse your browser's print dialog. We've added `@media print` CSS so the page formats cleanly on A4. No PDF dependencies.\n\n### Empty-state guardrail\nIf a candidate profile is incomplete (no skills, no employment history, no scores) we flag the packet as **incomplete** so a \"Not Recommended\" doesn't get misread as a true negative.\n".trim()},{slug:"hm-using-your-link",category:"hiring-managers",title:"Using your AROS share link",summary:"You got a share link from a recruiter. Here's how it works \u2014 no account required.",keywords:["hiring manager","share link","review","decision","external"],body_md:"\nA recruiter sent you a link to review a candidate. Here's what to expect.\n\n### Click the link\nIt looks like `https://app.getaros.ai/hm/<token>`. **You do not need an AROS account.** The link itself authenticates you for one candidate only, for a limited window.\n\n### What you'll see\n1. A **decision packet** \u2014 a one-page summary of the candidate.\n2. Their **application timeline** \u2014 what's happened so far in the process.\n3. A **decision form** with three options: Hire, Pass, Need more info \u2014 plus a note field.\n\n### What's NOT visible to you\n- Other candidates for the role.\n- Internal recruiter notes that weren't shared.\n- Anything from other share links.\n\n### How long the link works\nWhatever the recruiter set \u2014 usually 1, 3, or 7 days. After that, the link expires and shows a \"please ask the recruiter for a new one\" message.\n\n### Privacy\nThe recruiter sees that you opened the link and what decision you submitted. They don't see how long you spent or what you scrolled past.\n".trim()},{slug:"hm-what-you-decide",category:"hiring-managers",title:"What you'll see and what you decide",summary:"Three decision options: Hire, Pass, Need more info. Each can carry a note that the recruiter sees instantly.",keywords:["hiring manager","decide","hire","pass","need more info","feedback"],body_md:"\nYour job is to make a decision \u2014 fast \u2014 that the recruiter can act on.\n\n### Hire\nYou're confident this person should move forward (offer, next round, whatever the next step is). The recruiter takes it from here.\n\n### Pass\nYou're confident this person isn't right. The recruiter handles the closure communication to the candidate \u2014 automatically and respectfully. You don't have to write any email.\n\n### Need more info\nYou can't decide yet. **Use the note field** to tell the recruiter exactly what you need: another interview, a specific question answered, a portfolio link. The recruiter sees your note instantly and follows up.\n\n### Notes are optional but recommended\nA 1\u20132 sentence note saves an email exchange. Stuff like \"Strong on craft, unsure on culture \u2014 let's do a 15-min call\" is far more useful than just clicking the button.\n\n### After you submit\nYou'll see a confirmation. The recruiter is notified in real time. The link goes inert (one submission per link).\n".trim()},{slug:"free-during-early-access",category:"pricing",title:"How AROS access works today",summary:"Full platform access during early access. Pricing will be introduced later with advance notice.",keywords:["pricing","access","early access","limits","subscription","account"],body_md:"\nAROS is in **early access** while we validate which surfaces drive real hiring outcomes.\n\n### What that means right now\n- **All features available** \u2014 Hiring Momentum, Trust Metrics, Communication Reliability, decision packets, share links \u2014 everything.\n- **No expiration** \u2014 accounts do not time out.\n- **No usage limits today** \u2014 post as many jobs, review as many applicants, share with as many hiring managers as you want.\n\n### What will change later\nA paid Pro plan will be introduced once we know
2which capabilities matter most. When that happens:\n- We'll give you plenty of advance notice.\n- Your existing data and account stay intact.\n- You'll have a chance to choose your plan at that time.\n\n### Want to talk about Pro now?\nVisit **/upgrade** and tell us what would matter most to you. There's nothing to buy yet \u2014 it's an interest form. A real human follows up.\n".trim()},{slug:"do-i-need-a-credit-card",category:"pricing",title:"Signup and account essentials",summary:"Signup takes about 2 minutes. Set a password from the link we email you. That's it.",keywords:["signup","account","password","setup link","billing","payment"],body_md:"\n### Signing up\n1. Visit **/** and submit the signup form (name, company, work email).\n2. We email you a setup link valid for 72 hours.\n3. Click the link, set a password (\u226510 characters), and you're signed in.\n\n### What we don't do\n- We don't ask for payment information at signup.\n- We don't share or sell your data.\n- We don't email you your password \u2014 only a one-time setup link.\n\nIf pricing is introduced later, we'll announce it well in advance and give you an explicit choice. We will never auto-charge an account that didn't go through an explicit upgrade flow.\n".trim()},{slug:"cant-log-in",category:"troubleshooting",title:"I can't log in",summary:"Most login problems are one of three things: wrong email, forgotten password, or browser cache. Here's how to fix each.",keywords:["can't log in","login failed","wrong password","forgot password","locked out"],body_md:"\nThree failure modes, in order of frequency:\n\n### 1. Wrong email\n- Are you using the **exact email** you signed up with? Most often the issue is a colleague registered with a different address.\n- Try the **Forgot password** flow \u2014 it tells you whether the email exists in the system. (We deliberately don't reveal account existence on the login page itself.)\n\n### 2. Forgotten password\n- Click **Forgot password** at `/login`.\n- Enter your email \u2014 we'll send a reset link if an account exists.\n- Reset links expire in 72 hours.\n\n### 3. Cached old token\n- Sign out fully (`localStorage.clear()` in dev tools works too).\n- Close all tabs of `*.getaros.ai`.\n- Try logging in again from a fresh tab.\n\n### Still stuck?\nEmail **[email protected]** with the email address you're trying to use and we'll unstick it. Usually under one business day.\n\n### What we never ask for\nWe will **never** ask for your password by email or in chat. If anyone claims to be from AROS and asks for it, that's a phish. Report it to us.\n".trim()},{slug:"setup-email-never-arrived",category:"troubleshooting",title:"I signed up but never got the setup email",summary:"Your account exists. If the success card said 'we couldn't send the setup email,' that's an email-delivery problem on our side. Here's how to recover.",keywords:["setup email","no email","didn't receive","missing","stuck","trial setup","welcome email","email delivery"],body_md:"\nIf you completed the signup form and the success card told you \"we created your account, but couldn't send the setup email\" \u2014 your AROS account **does exist**. We just couldn't deliver the link to your inbox. Here's how to get unstuck.\n\n### Step 1 \u2014 Email us from the same inbox you signed up with\nSend a quick note to **[email protected]** *from the email address you used to sign up* with the subject \"AROS setup link\". We'll re-issue a fresh setup link manually within one business day, usually much faster. Tell us the company name you put in the form so we can find you fast.\n\n### Step 2 \u2014 While you wait, the link will land in your inbox\nThe recovery flow sends you a fresh setup link from a different sender path (often our personal email instead of the automated Resend pipeline). That link works identically \u2014 click it, set a password, and
2you're in.\n\n### Why this happens\nThe most common cause is our email provider (Resend) failing to deliver to a specific inbox or domain \u2014 often because of corporate spam filters, brand-new sending domain reputation, or a misconfigured DNS record on our side. None of these are caused by anything you did wrong.\n\n### What we don't do\n- We don't email you your password (ever) \u2014 only a one-time setup link.\n- We don't expire your account because the email didn't land. Your data sits and waits.\n- We don't ask you to start over from scratch \u2014 the original account is preserved.\n\n### Different scenario: setup link arrived but expired\nIf you got the email earlier and the link doesn't work anymore, see the [setup link expired](/help/setup-link-expired) article \u2014 that's a different problem with a different fix.\n".trim()},{slug:"setup-link-expired",category:"troubleshooting",title:"My setup link expired or doesn't work",summary:"Setup links are valid for 72 hours and can only be used once. Here's how to get a new one.",keywords:["setup link","expired","invalid","link not working","password setup","72 hours"],body_md:"\nSetup links \u2014 the ones in the welcome email after you sign up \u2014 are:\n\n- Valid for **72 hours** from issue.\n- **Single-use** \u2014 clicking the link to set your password \"consumes\" it.\n- **Per-account** \u2014 issuing a new one invalidates older ones.\n\nIf yours has expired or you already used it and need another:\n\n### Option 1: Sign up again\nGo to the homepage and sign up with the **same email**. If your account hasn't been activated yet, we'll re-issue a new setup link to that address. If your account is already active (you've set your password before), we'll tell you to use `/login` instead.\n\n### Option 2: Forgot password\nIf you've already set a password before but it's not working, use the **Forgot password** flow at `/login`. That issues a fresh reset link with the same 72-hour window.\n\n### Option 3: Email us\n**[email protected]**, subject \"AROS setup link\". We respond within one business day.\n\n### Why links expire\nSecurity. A link that lives forever in someone's inbox is a phishing target. 72 hours is long enough to be useful, short enough to limit damage if an inbox is compromised.\n".trim()},{slug:"email-not-arriving",category:"troubleshooting",title:"I'm not receiving emails from AROS",summary:"Check spam, your domain's email filter, and that you're using the inbox you signed up with. If still missing, email us.",keywords:["email","not arriving","spam","missing email","delivery","resend"],body_md:"\nEmail is fragile. Here's how to diagnose, in order:\n\n### 1. Check spam / promotions / \"other\" folders\nThe first welcome email occasionally lands there. Mark it \"Not spam\" so future ones don't.\n\n### 2. Check the email address you signed up with\nSometimes there's a typo \u2014 `@gnail.com` instead of `@gmail.com`. Look in the welcome confirmation card on the homepage if you still have it.\n\n### 3. Check your domain's filter\nCorporate email systems (especially Microsoft 365) sometimes quarantine emails from new senders. Ask your IT admin to allowlist:\n- `[email protected]` (sender we use during validation)\n- `[email protected]`\n\n### 4. Verify the trial / setup email schedule\n- **At signup** \u2192 welcome + setup link, within seconds.\n- **Day 3 of trial** \u2192 check-in.\n- **Day 10 of trial** \u2192 4-days-left reminder.\n- **Day 14 (end)** \u2192 trial-ended notice.\n\nYou should not be getting more than these.\n\n### Still missing?\nEmail **[email protected]** with the email address you used and we'll investigate from our end. Our Founder Dashboard tracks delivery success per organization, so we can usually see exactly what happened.\n".trim()}],tx=new Set(["the","a","an","and","or","of","to","in","is","are","was","were","be","been","being","for","on","at","by","with","from","as","that","this","these","those","it","its","i","you","we","they","me","my","your","our","their","do","does","did","do","what","how","why","when","who","where","which","can","could","would","should","not","no"]);function nx(e){return String(e||"").toLowerCase().replace(/[^a-z0-9 ]+/g," ").split(/\s+/).filter(e=>e.length>1&&!tx.has(e))}let ax=null;function rx(){return ax||(ax=ex.map(e=>{const t=nx([e.title.repeat(4),e.summary.repeat(2),(e.keywords||[]).join(" ").repeat(3),e.body_md].join(" ")),n=new Map;for(const a of t)n.set(a,(n.get(a)||0)+1);return{article:e,freq:n,total:t.length}})),ax}function ix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const n=nx(e);if(0===n.length)return[];const a=rx().map(e=>{let t=e.article,a=e.freq,r=e.total,i=0;for(const o of n){a.has(o)&&(i+=a.get(o));for(const e of a){var s=Ue(e,2);const t=s[0],n=s[1];t!==o&&t.startsWith(o)&&o.length>=3&&(i+=.4*n)}}return{article:t,score:i/Math.sqrt(Math.max(1,r))}});return a.filter(e=>e.score>0).sort((e,t)=>
2t.score-e.score).slice(0,t).map(e=>h(h({},e.article),{},{_score:Number(e.score.toFixed(3))}))}const sx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),ox=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:sx})));ox.displayName="ChatCircleIcon";const lx=ox,cx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"}),o.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196.89,130.94,144.4,111.6,125.
206,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"}))]]),dx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:cx})));dx.displayName="SparkleIcon";const ux=dx,mx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,
2177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),px=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:mx})));px.displayName="SpinnerIcon";const hx=px,fx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"}),o.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"}))]]),xx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:fx})));xx.displayName="PaperPlaneRightIcon";const gx=xx,vx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),o.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V2
200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),bx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:vx})));bx.displayName="BookOpenIcon";const yx=bx,jx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),wx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:jx})));wx.displayName="EnvelopeSimpleIcon";const Nx=wx,Ax="#041C3A",kx="#6B7280",Ex="#E5E7EB",Dx="".concat("https://www.getaros.ai","/api");let _x="";function Cx(){if(_x)return _x;try{_x=sessionStorage.getItem("aros.guide.sid")||"",_x||(_x="g-".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,8)),sessionStorage.setItem("aros.guide.sid",_x))}catch(e){_x="g-".concat(Date.now().toString(36))}return _x}const Fx=["How does AROS work?","How do I get started?","How does AROS help me stay organized while hiring?","Owner vs Recruiter mode?"];function Sx(e){let t=e.surface,n=void 0===t?"":t;
2const a=Ue((0,o.useState)(!1),2),r=a[0],i=a[1],s=Ue((0,o.useState)(""),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)([]),2),f=p[0],x=p[1],g=(0,o.useRef)(null);(0,o.useEffect)(()=>{r&&g.current&&(g.current.scrollTop=g.current.scrollHeight)},[f,r,u]);const v=(0,o.useCallback)(async e=>{const t=(e||"").trim();if(!t||u)return;const a=ix(t,4);x(e=>[...e,{role:"user",text:t}]),c(""),m(!0),x(e=>[...e,{role:"assistant",text:"",articles:a,streaming:!0}]);try{const e=await fetch("".concat(Dx,"/aros-guide/ask"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify({question:t,surface:n,session_id:Cx(),context_articles:a.map(e=>({slug:e.slug,title:e.title,summary:e.summary,body:e.body_md}))})});if(!e.ok){let t="AROS Guide couldn't reach the server.";try{var r;t=(null===(r=await e.json())||void 0===r?void 0:r.detail)||t}catch(s){}return void x(e=>{const n=[...e];return n[n.length-1]={role:"assistant",text:t,articles:a,streaming:!1,error:!0},n})}const l=e.body.getReader(),c=new TextDecoder;let d="";for(;;){const e=await l.read(),t=e.value;if(e.done)break;d+=c.decode(t,{stream:!0});const n=d.split("\n\n");d=n.pop()||"";for(const r of n){var i;const e=r.split("\n"),t=(e.find(e=>e.startsWith("event:"))||"").replace(/^event:\s*/,""),n=(e.find(e=>e.startsWith("data:"))||"").replace(/^data:\s*/,"");if(!n)continue;let s=null;try{s=JSON.parse(n)}catch(o){continue}"token"===t&&null!==(i=s)&&void 0!==i&&i.t?x(e=>{const t=[...e],n=t[t.length-1];return t[t.length-1]=h(h({},n),{},{text:(n.text||"")+s.t}),t}):"done"===t?x(e=>{const t=[...e],n=t[t.length-1];return t[t.length-1]=h(h({},n),{},{streaming:!1}),t}):"error"===t&&x(e=>{var t;const n=[...e];return n[n.length-1]={role:"assistant",text:(null===(t=s)||void 0===t?void 0:t.message)||"Something went wrong.",articles:a,streaming:!1,error:!0},n})}}}catch(zf){x(e=>{const t=[...e];return t[t.length-1]={role:"assistant",text:"Couldn't reach AROS Guide right now. Try again, or email [email protected].",articles:a,streaming:!1,error:!0},t})}finally{m(!1)}},[u,n]),b=(0,o.useCallback)(e=>{e&&"function"===typeof e.preventDefault&&e.preventDefault(),v(l)},[v,l]);return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),className:"fixed bottom-5 right-[180px] z-50 h-14 px-5 rounded-full text-white font-brand font-medium flex items-center gap-2 shadow-2xl transition-all hover:-translate-y-0.5 hover:shadow-[0_24px_60px_-12px_rgba(15,79,168,0.6)]",style:{background:r?"#0F4FA8":Ax,boxShadow:"0 18px 50px -16px rgba(4,28,58,0.6)"},"data-testid":"aros-guide-toggle","aria-label":r?"Close AROS Guide":"Open AROS Guide",children:[r?(0,Pe.jsx)($f,{size:18,weight:"bold"}):(0,Pe.jsx)(lx,{size:20,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-sm",children:r?"Close":"Ask AROS Guide"})]}),r&&(0,Pe.jsxs)("div",{className:"fixed bottom-24 right-5 z-50 w-[min(420px,calc(100vw-2rem))] flex flex-col overflow-hidden",style:{background:"#FFFFFF",borderRadius:18,border:"1px solid ".concat(Ex),boxShadow:"0 32px 100px -20px rgba(4,28,58,0.45)",maxHeight:"min(640px, calc(100vh - 8rem))"},"data-testid":"aros-guide-panel",children:[(0,Pe.jsxs)("div",{className:"px-5 py-4 border-b flex items-start gap-3",style:{borderColor:Ex,background:Ax,color:"#fff"},children:[(0,Pe.jsx)("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(255,255,255,0.10)",border:"1px solid rgba(255,255,255,0.18)"},children:(0,Pe.jsx)(ux,{size:18,weight:"duotone",style:{color:"#7BB5FF"}})}),(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-[15px]",children:"AROS Guide"}),(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:"rgba(255,255,255,0.7)"},children:"Answers from AROS docs only. Email us if I miss."})]})]}),(0,Pe.jsx)("div",{className:"px-5 py-2.5 border-b text-[11px] font-brand leading-relaxed",style:{borderColor:Ex,background:"#FEF9E7",color:"#92400E"},"data-testid":"aros-guide-disclaimer",children:"AROS Guide can answer questions about the platform, but it does not provide legal, HR, or employment advice."}),(0,Pe.jsxs)("div",{ref:g,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4","data-testid":"aros-guide-body",children:[0===f.length&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("p",{className:"text-[14px] font-brand",style:{color:"#374151"},children:"Ask anything about how AROS works. I'll search our help articles and answer \u2014 or tell you to email a human if I can't."}),(0,Pe.jsx)("div",{className:"space-y-1.5",children:Fx.map(e=>(0,Pe.jsx)("button",{type:"button",onClick:()=>v(e),disabled:u,className:"block w-full text-left text-[13px] font-brand px-3 py-2 rounded-lg transition-colors",style:{background:"#F7F9FF",color:Ax,border:"1px solid ".concat(Ex)},"data-testid":"aros-guide-suggestion-".concat(e.toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,30)),children:e},e))})]}),f.map((e,t)=>(0,Pe.jsx)(Mx,{turn:e,onEscalate:()=>{var n;return(async(e,t)=>{try{await fetch("".concat(Dx,"/aros-guide/escalate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:e,article_slugs:t,session_id:Cx()})})}catch(a){}const n=encodeURIComponent("AROS help \u2014 ".concat(e.slice(0,60)));window.location.href="mailto:[email protected]?subject=".concat(n)})((null===(n=f.find(e=>"user"===e.role&&f.indexOf(e)<=t))||void 0===n?void 0:n.text)||"",(e.articles||[]).map(e=>e.slug))}},t))]}),(0,Pe.jsxs)("form",{onSubmit:b,className:"px-4 py-3 border-t flex items-center gap-2",style:{borderColor:Ex,background:"#FAFBFD"}
2,children:[(0,Pe.jsx)(Io,{value:l,onChange:e=>c(e.target.value),placeholder:"Ask about AROS\u2026",disabled:u,className:"h-10 text-[14px] bg-white",style:{borderColor:Ex,borderRadius:10},"data-testid":"aros-guide-input"}),(0,Pe.jsx)(Lo,{type:"submit",disabled:u||!l.trim(),className:"h-10 px-3 text-white",style:{background:Ax,borderRadius:10},"data-testid":"aros-guide-send","aria-label":"Send",children:u?(0,Pe.jsx)(hx,{size:16,className:"animate-spin"}):(0,Pe.jsx)(gx,{size:16,weight:"bold"})})]})]})]})}function Mx(e){let t=e.turn,n=e.onEscalate;return"user"===t.role?(0,Pe.jsx)("div",{className:"flex justify-end","data-testid":"aros-guide-turn-user",children:(0,Pe.jsx)("div",{className:"px-3.5 py-2.5 rounded-2xl rounded-tr-sm max-w-[85%] text-[14px] font-brand",style:{background:Ax,color:"#fff"},children:t.text})}):(0,Pe.jsxs)("div",{className:"space-y-2","data-testid":"aros-guide-turn-assistant",children:[(0,Pe.jsx)("div",{className:"px-3.5 py-2.5 rounded-2xl rounded-tl-sm max-w-[92%] text-[14px] font-brand whitespace-pre-wrap",style:{background:"#F3F4F6",color:Ax},children:t.text||(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[#6B7280]",children:[(0,Pe.jsx)(hx,{size:12,className:"animate-spin"})," Thinking\u2026"]})}),t.articles&&t.articles.length>0&&!t.streaming&&(0,Pe.jsxs)("div",{className:"pl-1",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:kx},children:"Suggested reading"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1",children:t.articles.slice(0,3).map(e=>(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/help/".concat(e.slug),className:"inline-flex items-center gap-1.5 text-[13px] font-brand hover:underline",style:{color:"#0F4FA8"},"data-testid":"aros-guide-suggested-".concat(e.slug),children:[(0,Pe.jsx)(yx,{size:11,weight:"duotone"})," ",e.title]})},e.slug))})]}),!t.streaming&&(0,Pe.jsxs)("button",{type:"button",onClick:n,className:"text-[12px] font-brand inline-flex items-center gap-1.5 hover:underline mt-1",style:{color:kx},"data-testid":"aros-guide-escalate",children:[(0,Pe.jsx)(Nx,{size:12})," Didn't answer? Email us."]})]})}function Ox(){const e=es(),t=e.user,n=e.refreshUser,a=Ue((0,o.useState)(!1),2),r=a[0],i=a[1],s=Ue((0,o.useState)([]),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(""),2),h=p[0],f=p[1],x=Ue((0,o.useState)(""),2),g=x[0],v=x[1],b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1],w=!!t&&!t.organization_id&&("employer"===t.role||"recruiter"===t.role);(0,o.useEffect)(()=>{w&&(i(!0),(async()=>{try{const e=(await Qi.get("/industry-templates")).data;c(e.templates||[]);const t=(e.templates||[]).find(e=>e.is_default)||(e.templates||[])[0];t&&f(t.slug)}catch(e){c([{slug:"general",label:"General / Other",is_default:!0}]),f("general")}})())},[w]);return w?(0,Pe.jsx)(Kd,{open:r,onOpenChange:()=>{},children:(0,Pe.jsxs)(Qd,{className:"sm:max-w-md","data-testid":"google-onboarding-modal",onEscapeKeyDown:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground",children:"One quick step"}),(0,Pe.jsx)(eu,{className:"text-2xl font-bold mt-1",children:"Set up your workspace"}),(0,Pe.jsx)(tu,{children:"Tell us a little about your team so AROS can tailor the interview questions, empty-state examples, and Guided Tour to your industry. You can change any of this later."})]}),(0,Pe.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),u.trim()&&h){j(!0);try{await Qi.post("/employer/me/organization",{name:u.trim(),industry_template:h,region:g.trim()||null}),await n(),va.success("Workspace ready \u2014 welcome to AROS."),i(!1)}catch($ge){var t,a,r;if(409===(null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t?void 0:t.status))return await n(),void i(!1);va.error((null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Couldn't create your workspace. Please try again.")}finally{j(!1)}}}
2,className:"space-y-4 mt-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"org-name",children:"Organization name"}),(0,Pe.jsx)(Io,{id:"org-name",value:u,onChange:e=>m(e.target.value),placeholder:"e.g. Meridian Benefits Group",className:"mt-1.5","data-testid":"google-onboarding-org-name",autoFocus:!0,required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"template",children:"Industry"}),(0,Pe.jsx)("select",{id:"template",value:h,onChange:e=>f(e.target.value),className:"mt-1.5 w-full h-10 rounded-md border border-input bg-transparent px-3 text-sm","data-testid":"google-onboarding-template",required:!0,children:l.map(e=>(0,Pe.jsx)("option",{value:e.slug,children:e.label||e.name},e.slug))}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5",children:"Picks the right sample jobs, interview prompts, and Guided Tour path. Never overwrites real data."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"region",className:"flex items-baseline justify-between",children:["Region ",(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground font-normal",children:"Optional"})]}),(0,Pe.jsx)(Io,{id:"region",value:g,onChange:e=>v(e.target.value),placeholder:"e.g. Austin, TX",className:"mt-1.5","data-testid":"google-onboarding-region"})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:y||!u.trim()||!h,className:"w-full bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"google-onboarding-submit",children:y?"Setting up\u2026":"Enter my workspace"})]})]})}):null}const Rx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h68A12,12,0,0,1,176,108Zm-12,28H96a12,12,0,0,0,0,24h68a12,12,0,0,0,0-24Zm72-12A104.11,104.11,0,0,1,132,228H48a20,20,0,0,1-20-20V124a104,104,0,0,1,208,0Zm-24,0a80,80,0,0,0-160,0v80h80A80.09,80.09,0,0,0,212,124Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,124h0a92,92,0,0,1-92,92H48a8,8,0,0,1-8-8V124a92,92,0,0,1,92-92h0A92,92,0,0,1,224,124Z",opacity:"0.2"}),o.createElement("path",{d:"M172,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h68A8,8,0,0,1,172,112Zm-8,24H96a8,8,0,0,0,0,16h68a8,8,0,0,0,0-16Zm68-12A100.11,100.11,0,0,1,132,224H48a16,16,0,0,1-16-16V124a100,100,0,0,1,200,0Zm-16,0a84,84,0,0,0-168,0v84h84A84.09,84.09,0,0,0,216,124Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200Zm32,128H96a8,8,0,0,1,0-16h68a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h68a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M170,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h68A6,6,0,0,1,170,112Zm-6,26H96a6,6,0,0,0,0,12h68a6,6,0,0,0,0-12Zm66-14a98.11,98.11,0,0,1-98,98H48a14,14,0,0,1-14-14V124a98,98,0,0,1,196,0Zm-12,0a86,86,0,0,0-172,0v84a2,2,0,0,0,2,2h84A86.1,86.1,0,0,0,218,124Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h68A8,8,0,0,1,172,112Zm-8,24H96a8,8,0,0,0,0,16h68a8,8,0,0,0,0-16Zm68-12A100.11,100.11,0,0,1,132,224H48a16,16,0,0,1-16-16V124a100,100,0,0,1,200,0Zm-16,0a84,84,0,0,0-168,0v84h84A84.09,84.09,0,0,0,216,124Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h68A4,4,0,0,1,168,112Zm-4,28H96a4,4,0,0,0,0,8h68a4,4,0,0,0,0-8Zm64-16a96.11,96.11,0,0,1-96,96H48a12,12,0,0,1-12-12V124a96,96,0,0,1,192,0Zm-8,0a88,88,0,0,0-176,0v84a4,4,0,0,0,4,4h84A88.1,88.1,0,0,0,220,124Z"}))]]),Hx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Rx})));Hx.displayName="ChatTeardropTextIcon";const Px=Hx,Lx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),o.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13
2-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),Tx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Lx})));Tx.displayName="StarIcon";const Ix=Tx,Zx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212.48,136.49l-82.06,82a60,60,0,0,1-84.85-84.88l98.16-97.89a40,40,0,0,1,56.56,56.59l-.17.16-95.8,92.22a12,12,0,1,1-16.64-17.3l95.71-92.12a16,16,0,0,0-22.7-22.56L62.53,150.57a36,36,0,0,0,50.93,50.91l82.06-82a12,12,0,0,1,17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M180.75,104.75,204,128l-82.06,81.94a48,48,0,0,1-67.88-67.88L153.37,41.37a32,32,0,0,1,45.26,45.26Z",opacity:"0.2"}),o.createElement("path",{d:"M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,50.34a8,8,0,0,0-11.32,0L87.09,143A24,24,0,1,0,121,177l49.32-50.32a8,8,0,1,1,11.42,11.2l-49.37,50.38a40,40,0,1,1-56.62-56.51L143,63.09A24,24,0,1,1,177,97L109.71,165.6a8,8,0,1,1-11.42-11.2L165.6,85.71a8,8,0,0,0,.06-11.37Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208.25,123.76a6,6,0,0,1,0,8.49l-82.06,82a54,54,0,0,1-76.36-76.39L149.1,37.14a38,38,0,1,1,53.77,53.72L103.59,191.54a22,22,0,1,1-31.15-31.09l83.28-84.67a6,6,0,0,1,8.56,8.42L81,168.91a10,10,0,1,0,14.11,14.18L194.35,82.4a26,26,0,1,0-36.74-36.8L58.33,146.28a42,42,0,1,0,59.37,59.44l82.06-82A6,6,0,0,1,208.25,123.76Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M206.83,125.17a4,4,0,0,1,0,5.66l-82.06,82a52,52,0,0,1-73.54-73.55L150.52,38.55a36,36,0,1,1,50.94,50.9l-99.3,100.69a20,20,0,1,1-28.3-28.27l83.29-84.68a4,4,0,1,1,5.7,5.61L79.54,167.5a12,12,0,1,0,16.95,17L195.78,83.81A28,28,0,1,0,156.2,44.18L56.91,144.87a44,44,0,1,0,62.21,62.26l82-82A4,4,0,0,1,206.83,125.17Z"}))]]),Bx=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Zx})));Bx.displayName="PaperclipIcon";const Vx=Bx,zx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),qx=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:zx})));qx.displayName="ArrowClockwiseIcon";const Ux=qx,Wx="".concat("https://www.getaros.ai","/api"),Yx=[{value:"confusing",label:"Confusing"},{value:"missing_information",label:"Missing information"},{value:"trust_concern",label:"Trust concern"},{value:"legal_compliance_concern",label:"Legal / compliance concern"},{value:"would_not_use",label:"Would not use"},{value:"would_pay_for_this",label:"Would pay for this"},{value:"other",label:"Other"}];function Kx(e){let t=e.source,n=e.applicationId,a=e.packetToken,r=e.anonymous,i=void 0!==r&&r,s=e.variant,l=void 0===s?"floating":s;const c=Ue((0,o.useState)(!1),2),d=c[0],u=c[1],m=Ue((0,o.useState)(0),2),p=m[0],h=m[1],f=Ue((0,o.useState)(0),2),x=f[0],g=f[1],v=Ue((0,o.useState)(""),2),b=v[0],y=v[1],j=Ue((0,o.useState)(""),2),w=j[0],N=j[1],A=Ue((0,o.useState)(""),2),k=A[0],E=A[1],D=Ue((0,o.useState)(""),2),_=D[0],C=D[1],F=Ue((0,o.useState)(!1),2),S=F[0],M=F[1],O=Ue((0,o.useState)(null),2),R=O[0],H=O[1],P=Ue((0,o.useState)(""),2),L=P[0],T=P[1],I=Ue((0,o.useState)("idle"),2),Z=I[0],B=I[1],V=Ue((0,o.useState)(0),2),z=V[0],q=V[1],U=Ue((0,o.useState)(""),2),W=U[0],Y=U[1],K=Ue((0,o.useState)(null),2),G=K[0],$=K[1],Q=(0,o.useRef)(null),X=()=>{if(L)try{URL.revokeObjectURL(L)}catch(e){}H(null),T(""),B("idle"),q(0),Y(""),$(null),Q.current&&(Q.current.value="")},J=e=>{const t=(e=>e?["image/png","image/jpeg"].includes(e.type)?e.size>5242880?"Screenshot must be 5 MB or smaller":null:"PNG or JPEG only":"No file")(e);if(t)return Y(t),void B("failed");B("uploading"),q(0),Y("");const n=new FormData;n.append("file",e),a&&n.append("packet_token",a);const r=new XMLHttpRequest;if(r.open("POST","".concat(Wx,"/feedback/attachment")),!i){const e=localStorage.getItem("aros_token");e&&r.setRequestHeader("Authorization","Bearer ".concat(e))}r.upload.onprogress=e=>{e.lengthComputable&&q(Math.round(e.loaded/e.total*100))},r.onload=()=>{if(r.status>=200&&r.status<300)try{const e=JSON.parse(r.responseText);$(e.attachment_id),B("uploaded")}catch(t){B("failed"),Y("Bad server response")}else{let t="Upload failed";try{var e;const n=JSON.parse(r.responseText);t=(null===n||void 0===n||null===(e=n.detail)||void 0===e?void 0:e.message)||(null===n||void 0===n?void 0:n.detail)||t}catch(n){}B("failed"),Y(t)}},r.onerror=()=>{B("failed"),Y("Network error")},r.send(n)},ee="floating"===l?(0,Pe.jsxs)("button",{"data-testid":"open-feedback-widget-btn",onClick:()=>u(!0),className:"no-print fixed bottom-5 left-5 z-50 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-full shadow-lg pl-3 pr-4 py-2.5 inline-flex items-center gap-1.5 text-sm font-medium transition-colors",children:[(0,Pe.jsx)(Px,{size:16,weight:"duotone"})," Feedback"]}):(0,Pe.jsxs)(Lo,{"data-testid":"open-feedback-widget-btn",variant:"outline",size:"sm",onClick:()=>u(!0),className:"no-print",children:[(0,Pe.jsx)(Px,{size:14,className:"mr-1"})," Feedback"]});return(0,Pe.jsxs)(Pe.Fragment,{children:[ee,(0,Pe.jsx)(Kd,{open:d,onOpenChange:u,children:(0,Pe.jsxs)(Qd,{className:"max-w-md no-print","data-testid":"feedback-widget-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsx)(eu,{children:"What would make you trust or use this in a real hiring decision?"}),(0,Pe.jsx)(tu,{children:"30 seconds. Honest, anonymous. Helps us decide what to build next."})]}
2),(0,Pe.jsxs)("div",{className:"space-y-4 mt-1",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Trust / usefulness"}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1 mt-1.5","data-testid":"feedback-rating-stars",children:[[1,2,3,4,5].map(e=>(0,Pe.jsx)("button",{"data-testid":"feedback-star-".concat(e),onMouseEnter:()=>g(e),onMouseLeave:()=>g(0),onClick:()=>h(e),className:"p-1 -ml-0.5 transition-transform hover:scale-110","aria-label":"".concat(e," star").concat(e>1?"s":""),children:(0,Pe.jsx)(Ix,{size:26,weight:(x||p)>=e?"fill":"regular",className:(x||p)>=e?"text-amber-500":"text-muted-foreground"})},e)),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground ml-2",children:p?"".concat(p,"/5"):"Tap to rate"})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"feedback-category",className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Category (optional)"}),(0,Pe.jsxs)(Sf,{value:w,onValueChange:N,children:[(0,Pe.jsx)(Of,{id:"feedback-category","data-testid":"feedback-category",className:"mt-1.5",children:(0,Pe.jsx)(Mf,{placeholder:"Pick one if it fits"})}),(0,Pe.jsx)(Pf,{children:Yx.map(e=>(0,Pe.jsx)(Lf,{value:e.value,"data-testid":"feedback-category-".concat(e.value),children:e.label},e.value))})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"feedback-text",className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Your honest answer"}),(0,Pe.jsx)(Bo,{id:"feedback-text","data-testid":"feedback-text",rows:4,placeholder:"What would make this trustworthy enough for a real hire decision?",value:b,onChange:e=>y(e.target.value),className:"mt-1.5"})]}),i&&(0,Pe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"feedback-name",className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Your name (optional)"}),(0,Pe.jsx)(Io,{id:"feedback-name","data-testid":"feedback-respondent-name",value:_,onChange:e=>C(e.target.value),className:"mt-1.5"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"feedback-role",className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Your role (optional)"}),(0,Pe.jsx)(Io,{id:"feedback-role","data-testid":"feedback-respondent-role",value:k,onChange:e=>E(e.target.value),placeholder:"GM, HR, recruiter\u2026",className:"mt-1.5"})]})]}),(0,Pe.jsxs)("div",{"data-testid":"feedback-attachment-section",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Screenshot (optional)"}),(0,Pe.jsx)("input",{ref:Q,type:"file",accept:"image/png,image/jpeg",onChange:e=>{const t=e.target.files&&e.target.files[0];if(t){if(L)try{URL.revokeObjectURL(L)}catch(n){}H(t),T(URL.createObjectURL(t)),J(t)}},className:"sr-only","data-testid":"feedback-attachment-input"}),"idle"===Z&&(0,Pe.jsxs)("button",{type:"button","data-testid":"feedback-attachment-pick",onClick:()=>Q.current&&Q.current.click(),className:"mt-1.5 w-full flex items-center justify-center gap-2 rounded-md border border-dashed border-slate-300 px-3 py-3 text-xs text-muted-foreground hover:border-[#0F4FA8] hover:text-[#0F4FA8] transition-colors",children:[(0,Pe.jsx)(Vx,{size:14})," Add screenshot \u2014 PNG or JPEG, up to 5 MB"]}),"idle"!==Z&&(0,Pe.jsxs)("div",{className:"mt-1.5 border border-border rounded-md p-2 flex items-center gap-3","data-testid":"feedback-attachment-state-".concat(Z),"data-state":Z,children:[L?(0,Pe.jsx)("img",{src:L,alt:"",className:"h-12 w-12 object-cover rounded","data-testid":"feedback-attachment-thumbnail"}):(0,Pe.jsx)("div",{className:"h-12 w-12 rounded bg-slate-100","aria-hidden":"true"}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"text-xs font-medium truncate","data-testid":"feedback-attachment-filename",children:R?R.name:""}),"uploading"===Z&&(0,Pe.jsxs)("div",{className:"mt-1",children:[(0,Pe.jsx)("div",{className:"h-1 bg-slate-100 rounded overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F4FA8] transition-[width]",style:{width:"".concat(z,"%")},"data-testid":"feedback-attachment-progress"})}),(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground mt-0.5",children:["Uploading\u2026 ",z,"%"]})]}
2),"uploaded"===Z&&(0,Pe.jsx)("div",{className:"text-[11px] text-emerald-600 font-medium","data-testid":"feedback-attachment-uploaded",children:"Uploaded \xb7 will be attached on submit"}),"failed"===Z&&(0,Pe.jsx)("div",{className:"text-[11px] text-rose-600","data-testid":"feedback-attachment-error",children:W||"Upload failed"})]}),"failed"===Z&&(0,Pe.jsx)("button",{type:"button",onClick:()=>{R&&J(R)},"data-testid":"feedback-attachment-retry",className:"p-1.5 rounded hover:bg-slate-100 transition-colors","aria-label":"Retry upload",children:(0,Pe.jsx)(Ux,{size:14})}),(0,Pe.jsx)("button",{type:"button",onClick:X,"data-testid":"feedback-attachment-remove",className:"p-1.5 rounded hover:bg-slate-100 transition-colors","aria-label":"Remove screenshot",children:(0,Pe.jsx)($f,{size:14})})]})]})]}),(0,Pe.jsxs)(Jd,{className:"mt-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>u(!1),children:"Cancel"}),(0,Pe.jsx)(Lo,{"data-testid":"feedback-submit-btn",onClick:async()=>{if(p)if(b.trim()){M(!0);try{const e={};if(!i){const t=localStorage.getItem("aros_token");t&&(e.Authorization="Bearer ".concat(t))}await Ki.post("".concat(Wx,"/feedback"),{source:t,rating:p,text:b.trim(),category:w||null,application_id:n||null,packet_token:a||null,respondent_role:k||null,respondent_name:_||null,page_path:"undefined"!==typeof window?window.location.pathname:null,attachment_id:G||null},{headers:e}),va.success("Thanks \u2014 feedback captured."),u(!1),h(0),g(0),y(""),N(""),E(""),C(""),X()}catch(zf){var e,r;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(r=e.data)||void 0===r?void 0:r.detail)||"Could not save feedback")}finally{M(!1)}}else va.error("Add a short comment");else va.error("Pick a rating")},disabled:S,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:S?"Sending\u2026":"Send feedback"})]})]})})]})}const Gx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),$x=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Gx})));$x.displayName="WarningCircleIcon";const Qx=$x,Xx=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),o.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),Jx=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Xx})));Jx.displayName="ArrowRightIcon";const eg=Jx,tg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),ng=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:tg})));ng.displayName="ClockIcon";const ag=ng,rg="".concat("https://www.getaros.ai","/api");function ig(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=localStorage.getItem("aros_token");return(0,o.useEffect)(()=>{if(!a)return;let e=!0;const t=async()=>{try{const t=await Ki.get("".concat(rg,"/trial/me"),{headers:{Authorization:"Bearer ".concat(a)}});e&&n(t.data)}catch(t){}};t();const r=setInterval(t,6e4);return()=>{e=!1,clearInterval(r)}},[a]),t?"trial_expired_restricted"===t.state?(0,Pe.jsxs)("div",{"data-testid":"trial-banner-expired",className:"w-full border-b bg-red-50 border-red-200 px-4 py-2 text-sm flex items-center justify-center gap-3",children:[(0,Pe.jsx)(Qx,{size:18,weight:"fill",className:"text-red-600 flex-shrink-0"}),(0,Pe.jsxs)("span",{className:"text-red-800",children:[(0,Pe.jsx)("strong",{children:"Your 30-day trial has ended."})," Pick a plan to keep creating jobs."]}),(0,Pe.jsxs)(Yn,{to:"/upgrade","data-testid":"trial-banner-upgrade-link",className:"inline-flex items-center gap-1 rounded-md bg-red-600 px-3 py-1 text-xs font-medium text-white hover:bg-red-700",children:["Choose a plan ",(0,Pe.jsx)(eg,{size:12})]})]}):"trial_active"===t.state&&t.checkout_cta?(0,Pe.jsxs)("div",{"data-testid":"trial-banner-ending-soon",className:"w-full border-b bg-amber-50 border-amber-200 px-4 py-2 text-sm flex items-center justify-center gap-3",children:[(0,Pe.jsx)(ag,{size:18,weight:"fill",className:"text-amber-600 flex-shrink-0"}),(0,Pe.jsxs)("span",{className:"text-amber-900",children:[(0,Pe.jsx)("strong",{children:null!==(r=t.days_remaining)&&void 0!==r?r:0})," day",1===t.days_remaining?"":"s"," left in your trial."]}),(0,Pe.jsxs)(Yn,{to:"/upgrade","data-testid":"trial-banner-choose-plan-link",className:"inline-flex items-center gap-1 rounded-md bg-amber-600 px-3 py-1 text-xs font-medium text-white hover:bg-amber-700",children:["Choose a plan ",(0,Pe.jsx)(eg,{size:12})]})]}):null:null;var r}const sg="".concat("https://www.getaros.ai","/api");function og(e){let t=e.userRole;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i="undefined"!==typeof window?localStorage.getItem("aros_token"):null;if((0,o.useEffect)(()=>{if(!i)return;if("admin"===t)return;let e=!0;const n=async()=>{try{const t=await Ki.get("".concat(sg,"/trial/me"),{headers:{Authorization:"Bearer ".concat(i)}});e&&r(t.data)}catch(t){}};n();const a=setInterval(n,6e4);return()=>{e=!1,clearInterval(a)}},[i,t]),!a||"admin"===t)return null;const s=a.state,l=a.days_remaining;if("trial_expired_restricted"===s)return(0,Pe.jsxs)("div",{"data-testid":"sidebar-tr
2ial-status-expired",className:"px-3 py-2 rounded-md border border-red-500/40 bg-red-500/10",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-red-200",children:[(0,Pe.jsx)(Qx,{size:14,weight:"fill"}),(0,Pe.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Trial ended"})]}),(0,Pe.jsx)("p",{className:"mt-1 text-[11px] text-red-100/90 leading-snug",children:"Pick a plan to keep creating jobs."}),(0,Pe.jsxs)(Yn,{to:"/upgrade","data-testid":"sidebar-choose-plan-cta",className:"mt-2 inline-flex items-center gap-1 rounded-md bg-red-500 px-2.5 py-1.5 text-xs font-medium text-white hover:bg-red-600 transition-colors",children:["Choose a plan ",(0,Pe.jsx)(eg,{size:12})]})]});if("paid"===s||"paid_active"===s||a.is_paid)return(0,Pe.jsxs)("div",{"data-testid":"sidebar-trial-status-paid",className:"px-3 py-2 rounded-md bg-white/5",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-emerald-300",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill"}),(0,Pe.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider",children:"Plan active"})]}),(0,Pe.jsxs)(Yn,{to:"/upgrade","data-testid":"sidebar-manage-billing-cta",className:"mt-2 inline-flex items-center gap-1 text-xs text-white/70 hover:text-white transition-colors",children:["Manage billing ",(0,Pe.jsx)(eg,{size:11})]})]});const c=null==l?"Free trial":"".concat(l," day").concat(1===l?"":"s"," left in trial"),d="number"===typeof l&&l<=7;return(0,Pe.jsxs)("div",{"data-testid":"sidebar-trial-status-active",className:"px-3 py-2 rounded-md border ".concat(d?"border-amber-400/40 bg-amber-400/10":"border-white/10 bg-white/5"),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 ".concat(d?"text-amber-200":"text-white/70"),children:[(0,Pe.jsx)(ag,{size:14,weight:"fill"}),(0,Pe.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider",children:c})]}),(0,Pe.jsxs)(Yn,{to:"/upgrade","data-testid":"sidebar-choose-plan-cta",className:"mt-2 inline-flex items-center gap-1 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors ".concat(d?"bg-amber-400 text-black hover:bg-amber-300":"bg-white text-[#0F172A] hover:bg-white/90"),children:["Choose a plan ",(0,Pe.jsx)(eg,{size:12})]})]})}const lg=["className"],cg=["side","className","children"],dg=["className"],ug=["className"],mg=["className"],pg=["className"],hg=kd,fg=Ed,xg=Dd,gg=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,lg);return(0,Pe.jsx)(_d,h(h({className:Ro("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a),{},{ref:t}))});gg.displayName=_d.displayName;const vg=ks("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),bg=o.forwardRef((e,t)=>{let n=e.side,a=void 0===n?"right":n,r=e.className,i=e.children,s=Ie(e,cg);return(0,Pe.jsxs)(xg,{children:[(0,Pe.jsx)(gg,{}),(0,Pe.jsxs)(Cd,h(h({ref:t,className:Ro(vg({side:a}),r)},s),{},{children:[(0,Pe.jsxs)(Md,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Pe.jsx)(Bd,{className:"h-4 w-4"}),(0,Pe.jsx)("span",{className:"sr-only",children:"Close"})]}),i]}))]})});bg.displayName=Cd.displayName;const yg=e=>{let t=e.className,n=Ie(e,dg);return(0,Pe.jsx)("div",h({className:Ro("flex flex-col space-y-2 text-center sm:text-left",t)},n))};yg.displayName="SheetHeader";const jg=e=>{let t=e.className,n=Ie(e,ug);return(0,Pe.jsx)("div",h({className:Ro("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};jg.displayName="SheetFooter";const wg=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,mg);return(0,Pe.jsx)(Fd,h({ref:t,className:Ro("text-lg font-semibold text-foreground",n)},a))});wg.displayName=Fd.displayName;const Ng=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,pg);return(0,Pe.jsx)(Sd,h({ref:t,className:Ro("text-sm text-muted-foreground",n)},a))});Ng.displayName=Sd.displayName;const Ag=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),o.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),kg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Ag})));kg.displayName="MagnifyingGlassIcon";const Eg=kg,Dg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M100,100a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24H112A12,12,0,0,1,100,100ZM236,68V196a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V68A20,20,0,0,1,40,48H76V40a28,28,0,0,1,28-28h48a28,28,0,0,1,28,28v8h36A20,20,0,0,1,236,68ZM100,48h56V40a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4ZM44,72v35.23A180.06,180.06,0,0,0,128,128a180,180,0,0,0,84-20.78V72ZM212,192V133.94A204.27,204.27,0,0,1,128,152a204.21,204.21,0,0,1-84-18.06V192Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,118.31V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V118.31h0A191.14,191.14,0,0,0,128,144,191.08,191.08,0,0,0,224,118.31Z",opacity:"0.2"}),o.createElement("path",{d:"M104,112a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H112A8,8,0,0,1,104,112ZM232,72V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56H80V48a24,24,0,0,1,24-24h48a24,24,0,0,1,24,24v8h40A16,16,0,0,1,232,72ZM96,56h64V48a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8ZM40,72v41.62A184.07,184.07,0,0,0,128,136a184,184,0,0,0,88-22.39V72ZM216,200V131.63A200.25,200.25,0,0,1,128,152a200.19,200.19,0,0,1-88-20.36V200H216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M152,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,112Zm80-40V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56H80V48a24,24,0,0,1,24-24h48a24,24,0,0,1,24,24v8h40A16,16,0,0,1,232,72ZM96,56h64V48a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8Zm120,57.61V72H40v41.61A184,184,0,0,0,128,136,184,184,0,0,0,216,113.61Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M106,112a6,6,0,0,1,6-6h32a6,6,0,0,1,0,12H112A6,6,0,0,1,106,112ZM230,72V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V72A14,14,0,0,1,40,58H82V48a22,22,0,0,1,22-22h48a22,22,0,0,1,22,22V58h42A14,14,0,0,1,230,72ZM94,58h68V48a10,10,0,0,0-10-10H104A10,10,0,0,0,94,48ZM38,72v42.79A186,186,0,0,0,128,138a185.91,185.91,0,0,0,90-23.22V72a2,2,0,0,0-2-2H40A2,2,0,0,0,38,72ZM218,200V128.37A198.12,198.12,0,0,1,128,150a198.05,198.05,0,0,1-90-21.62V200a2,2,0,0,0,2,2H216A2,2,0,0,0,218,200Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56H176V48a24,24,0,0,0-24-24H104A24,24,0,0,0,80,48v8H40A16,16,0,0,0,24,72V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V72A16,16,0,0,0,216,56ZM96,48a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM216,72v41.61A184,184,0,0,1,128,136a184.07,184.07,0,0,1-88-22.38V72Zm0,128H40V131.64A200.
219,200.19,0,0,0,128,152a200.25,200.25,0,0,0,88-20.37V200ZM104,112a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H112A8,8,0,0,1,104,112Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M108,112a4,4,0,0,1,4-4h32a4,4,0,0,1,0,8H112A4,4,0,0,1,108,112ZM228,72V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V72A12,12,0,0,1,40,60H84V48a20,20,0,0,1,20-20h48a20,20,0,0,1,20,20V60h44A12,12,0,0,1,228,72ZM92,60h72V48a12,12,0,0,0-12-12H104A12,12,0,0,0,92,48ZM36,72v44a188,188,0,0,0,92,24,188,188,0,0,0,92-24V72a4,4,0,0,0-4-4H40A4,4,0,0,0,36,72ZM220,200V125.1A196.06,196.06,0,0,1,128,148a196,196,0,0,1-92-22.9V200a4,4,0,0,0,4,4H216A4,4,0,0,0,220,200Z"}))]]),_g=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Dg})));_g.displayName="BriefcaseIcon";const Cg=_g,Fg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),o.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),Sg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Fg})));Sg.displayName="UserIcon";const Mg=Sg,Og=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),o.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),Rg=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Og})));Rg.displayName="UsersIcon";const Hg=Rg,Pg=["score","confidence","ranking","fit_score"];function Lg(e){const t=e=>{if(null==e)return!0;if("string"===typeof e){const t=e.toLowerCase();return!/^(score|confidence|ranking|fit score)[:\s].*$/i.test(t)}if(Array.isArray(e))return e.every(t);if("object"===typeof e)for(const a of Object.entries(e)){var n=Ue(a,2);const e=n[0],r=n[1];if(Pg.some(t=>e.toLowerCase().includes(t)))return!1;if(!t(r))return!1}return!0};return t(e)}function Tg(){const e=Ue((0,o.useState)(""),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!1),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)([]),2),h=p[0],f=p[1],x=Ue((0,o.useState)(-1),2),g=x[0],v=x[1],b=Ue((0,o.useState)(null),2),y=b[0],j=b[1],w=(0,o.useRef)(null),N=(0,o.useRef)(null),A="global-search-listbox",k=zt(),E=function(e,t){const n=Ue((0,o.useState)(e),2),a=n[0],r=n[1];return(0,o.useEffect)(()=>{const n=window.setTimeout(()=>r(e),t);return()=>window.clearTimeout(n)},[e,t]),a}(t,250),D=(0,o.useMemo)(()=>{const e=[],t=[];for(const n of h)Lg(n)&&("job"===n.kind?e.push(n):"person"===n.kind&&t.push(n));return{jobRows:e,personRows:t}},[h]),_=D.jobRows,C=D.personRows,F=(0,o.useMemo)(()=>[..._,...C],[_,C]);(0,o.useEffect)(()=>{const e=E.trim();if(e.length<2)return f([]),m(""),v(-1),void j(null);let t=!1;return c(!0),m(""),Qi.get("/search",{params:{q:e,limit:20}}).then(e=>{let n=e.data;t||(f(Array.isArray(null===n||void 0===n?void 0:n.results)?n.results:[]),j("number"===typeof(null===n||void 0===n?void 0:n.elapsed_ms)?n.elapsed_ms:null),v(-1))}).catch(e=>{var n,a;t||(m((null===e||void 0===e||null===(n=e.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Search failed."),f([]))}).finally(()=>{t||c(!1)}),()=>{t=!0}},[E]),(0,o.useEffect)(()=>{const e=e=>{var t,n;!e.metaKey&&!e.ctrlKey||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),null===(t=w.current)||void 0===t||t.focus(),null===(n=w.current)||void 0===n||n.select(),i(!0))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,o.useEffect)(()=>{if(!r)return;const e=e=>{var t;null!==(t=N.current)&&void 0!==t&&t.contains(e.target)||i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r]);const S=(0,o.useCallback)(e=>{null!==e&&void 0!==e&&e.url&&(i(!1),n(""),f([]),v(-1),k(e.url))},[k]),M=r&&(l||u||F.length>0||E.trim().length>=2);return(0,Pe.jsxs)("div",{className:"relative w-full max-w-md",ref:N,"data-testid":"global-search",children:[(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)(Eg,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none","aria-hidden":"true"}),(0,Pe.jsx)(Io,{ref:w,type:"search",value:t,onChange:e=>{n(e.target.value),i(!0)},onFocus:()=>i(!0),onKeyDown:e=>{var t;return"Escape"===e.key?(e.preventDefault(),i(!1),void(null===(t=w.current)||void 0===t||t.blur())):"ArrowDown"===e.key?(e.preventDefault(),i(!0),void v(e=>Math.min(e+1,F.length-1))):"ArrowUp"===e.key?(e.preventDefault(),void v(e=>Math.max(e-1,0))):void("Enter"===e.key&&g>=0&&g<F.length&&(e.preventDefault(),S(F[g])))},placeholder:"Search jobs and people\u2026 (\u2318K)",className:"pl-9 pr-3 h-9 text-sm bg-white border-slate-200",role:"combobox","aria-expanded":M,"aria-controls":A,"aria-autocomplete":"list","aria-activedescendant":g>=0&&F[g]?"gs-row-".concat(F[g].kind,"-").concat(F[g].id):void 0,"aria-label":"Search jobs and people across your organization","data-testid":"global-search-input"})]}),M&&(0,Pe.jsxs)("div",{className:"absolute z-40 mt-1 w-[min(28rem,90vw)] max-h-[70vh] overflow-auto rounded-md border border-slate-200 bg-white shadow-lg",role:"listbox",id:A,"aria-label":"Search results","data-testid":"global-search-results",children:[l&&(0,Pe.jsx)("div",{className:"px-3 py-2 text-xs text-slate-500",role:"status","aria-live":"polite","data-testid":"global-search-loading",children:"Searching\u2026"}),!!u&&!l&&(0,Pe.jsx)("div",{className:"px-3 py-2 text-xs text-rose-700",role:"alert","data-testid":"global-search-error",children:String(u)}),!l&&!u&&0===F.length&&E.trim().length>=2&&(0,Pe.jsxs)("div",{className:"px-3 py-3 text-xs text-slate-500",role:"status","aria-live":"polite","data-testid":"global-search-empty",children:["No matches for \u201c",E.trim(),"\u201d."]}),_.length>0&&(0,Pe.jsxs)("div",{className:"py-1","data-testid":"global-search-group-jobs",children:[(0,Pe.jsx)("div",{className:"px-3 pt-2 pb-1 text-[10px] uppercase tracking-[0.18em] font-mono text-slate-400","aria-hidden":"true",children:"Jobs"}),(0,Pe.jsx)("ul",{children:_.map((e,t)=>{const n=t,a=n===g;return(0,Pe.jsxs)("li",{id:"gs-row-job-".concat(e.id),role:"option","aria-selected":a,onMouseEnter:()=>v(n),onClick:()=>S(e),className:"flex items-center gap-3 px-3 py-2 cursor-pointer text-sm ".concat(a?"bg-slate-100":"hover:bg-slate-50"),"data-testid":"global-search-row-job-".concat(e.id),children:[(0,Pe.jsx)(Cg,{size:14,weight:"duotone",className:"text-slate-500 shrink-0"}),(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsx)("div",{className:"truncate font-medium text-slate-900",children:e.title}),(0,Pe.jsxs)("div",{className:"truncate text-[11px] text-slate-500",children:[e.status,e.location?" \xb7 ".concat(e.location):"",e.department?" \xb7 ".concat(e.department):""]})]})]},"job-".concat(e.id))})})]}),C.length>0&&(0,Pe.jsxs)("div",{className:"py-1 border-t border-slate-100","data-testid":"global-search-group-people",children:[(0,Pe.jsx)("div",{className:"px-3 pt-2 pb-1 text-[10px] uppercase tracking-[0.18em] font-mono text-slate-400","aria-hidden":"true",children:"People"}),(0,Pe.jsx)("ul",{children:C.map((e,t)=>{const n=_.length+t,a=n===g,r=(e.sources||[]).includes("talent_pool"),i=(e.sources||[]).includes("application"),s=(e.applications||[])[0],o=e.additional_applications||0;return(0,Pe.jsxs)("li",{id:"gs-row-person-".concat(e.id),role:"option","aria-selected":a,onMouseEnter:()=>v(n),onClick:()=>S(e),className:"flex items-start gap-3 px-3 py-2 cursor-pointer text-sm ".concat(a?"bg-slate-100":"hover:bg-slate-50"),"data-testid":"global-search-row-person-".concat(e.id),children:[(0,Pe.jsx)(Mg,{size:14,weight:"duotone",className:"text-slate-500 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"truncate font-medium text-slate-900",children:e.name||e.email||"(unnamed)"}),r&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-emerald-200 bg-emerald-50 px-1.5 py-0.5 text-[10px] font-mono uppercase tracking-wider text-emerald-800","data-testid":"global-search-chip-talent-pool-".concat(e.id),children:[(0,Pe.jsx)(Hg,{size:9,weight:"fill"})," Talent Pool"]})]}),e.headline&&(0,Pe.jsx)("div",{className:"truncate text-[11px] text-slate-500 mt-0.5",children:e.headline}),(0,Pe.jsxs)("div",{className:"text-[11px] text-slate-500 mt-0.5 flex flex-wrap items-center gap-1",children:[i&&(null===s||void 0===s?void 0:s.job_title)&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-slate-100 border border-slate-200 px-1.5 py-0.5 font-mono uppercase tracking-wider text-slate-600","data-testid":"global-search-chip-application-".concat(e.id),children:["Applied \xb7 ",s.job_title]}),o>0&&(0,Pe.jsxs)("span",{className:"text-slate-500 text-[10px]","data-testid":"global-search-additional-apps-".concat(e.id),children:["+",o," more"]}),e.email&&(0,Pe.jsx)("span",{className:"text-slate-400 text-[10px] truncate",children:e.email})]})]})]},"person-".concat(e.id))})})]}),"number"===typeof y&&F.length>0&&(0,Pe.jsxs)("div",{className:"px-3 py-1 text-[10px] text-slate-400 border-t border-slate-100",children:[F.length," result",1===F.length?"":"s"," \xb7 ",y," ms"]})]})]})}const Ig=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),o.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z"}))]]),Zg=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Ig})));Zg.displayName="ChartLineIcon";const Bg=Zg,Vg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),o.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),zg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Vg})));zg.displayName="HouseIcon";const qg=zg,Ug=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),o.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32
2-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),Wg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Ug})));Wg.displayName="GearIcon";const Yg=Wg,Kg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),o.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"}))]]),Gg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Kg})));Gg.displayName="KanbanIcon";const $g=Gg,Qg=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,24V88H36V68ZM36,188V112H220v76Zm172-24a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,164Zm-68,0a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24h12A12,12,0,0,1,140,164Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,96v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),o.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM136,176H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm64,0H168a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM32,88V64H224V88Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM32,62H224a2,2,0,0,1,2,2V90H30V64A2,2,0,0,1,32,62ZM224,194H32a2,2,0,0,1-2-2V102H226v90A2,2,0,0,1,224,194Zm-18-26a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h32A6,6,0,0,1,206,168Zm-64,0a6,6,0,0,1-6,6H120a6,6,0,0,1,0-12h16A6,6,0,0,1,142,168Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM32,60H224a4,4,0,0,1,4,4V92H28V64A4,4,0,0,1,32,60ZM224,196H32a4,4,0,0,1-4-4V100H228v92A4,4,0,0,1,224,196Zm-2
20-28a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h32A4,4,0,0,1,204,168Zm-64,0a4,4,0,0,1-4,4H120a4,4,0,0,1,0-8h16A4,4,0,0,1,140,168Z"}))]]),Xg=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Qg})));Xg.displayName="CreditCardIcon";const Jg=Xg,ev=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),o.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),tv=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:ev})));tv.displayName="BuildingsIcon";const nv=tv,av=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),o.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),rv=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:av})));rv.displayName="ChartBarIcon";const iv=rv,sv=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M219.23,159.2a196.66,196.66,0,0,0-18-31.2,196.66,196.66,0,0,0,18-31.2c11.84-26.31,11.69-47.48-.43-59.6s-33.29-12.27-59.6-.43a196.66,196.66,0,0,0-31.2,18,196.66,196.66,0,0,0-31.2-18c-26.31-11.84-47.48-11.69-59.6.43s-12.27,33.29-.43,59.6a196.66,196.66,0,0,0,18,31.2,196.66,196.66,0,0,0-18,31.2c-11.84,26.31-11.69,47.48.43,59.6h0C43.33,224.93,51.78,228,62,228c10,0,21.77-2.92,34.76-8.77a196.66,196.66,0,0,0,31.2-18,196.66,196.66,0,0,0,31.2,18c13,5.85,24.74,8.77,34.76,8.77,10.26,0,18.71-3.07,24.84-9.2h0C230.92,206.68,231.07,185.51,219.23,159.2Zm-17.41-105c5.25,5.26,1.79,26-16,53.78-5.61-6.66-11.65-13.25-18.07-19.67S154.7,75.83,148,70.22C175.82,52.39,196.56,48.93,201.82,54.18ZM171.24,128a288.6,288.6,0,0,1-20.51,22.73A288.6,288.6,0,0,1,128,171.24a288.6,288.6,0,0,1-22.73-20.51A288.6,288.6,0,0,1,84.76,128,298.55,298.55,0,0,1,128,84.76a286.83,286.83,0,0,1,22.73,20.51A286.83,286.83,0,0,1,171.24,128ZM54.18,54.18c1.46-1.45,4.1-2.24,7.75-2.24,9.53,0,25.94,5.39,46,18.28-6.66,5.61-13.25,11.65-19.67,18.07S75.83,101.3,70.22,108C52.39,80.18,48.93,59.44,54.18,54.18Zm0,147.64c-5.25-5.26-1.79-26,16-53.78,5.61,6.66,11.65,13.25,18.07,19.67s13,12.46,19.67,18.07C80.18,203.61,59.44,207.07,54.18,201.82Zm147.64,0c-5.26,5.25-26,1.79-53.78-16,6.66-5.61,13.25-11.65,19.67-18.07s12.46-13,18.07-19.67C203.61,175.82,207.07,196.56,201.82,201.82ZM144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M210.26,210.26c-17.23,17.23-68-5.63-113.46-51.06S28.51,63,45.74,45.74s68,5.63,113.46,51.06S227.49,193,210.26,210.26Z",opacity:"0.2"}),o.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.48,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A300.33,300.33,0,0,0,141.27,70C172.15,49,196.91,43.8,204.55,51.45ZM176.29,128a289.14,289.14,0,0,1-22.76,25.53A289.14,289.14,0,0,1,128,176.29a289.14,289.14,0,0,1-25.53-22.76A289.14,289.14,0,0,1,79.71,128,298.62,298.62,0,0,1,128,79.71a289.14,289.14,0,0,1,25.53,22.76A289.14,289.14,0,0,1,176.29,128ZM51.45,51.45c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.2,51.45,204.55Zm153.1,0c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55ZM140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.47,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A302.47,302.47,0,0,0,141.27,70C172.15,49,196.91,43.81,204.55,51.45Zm-153.1,0c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.19,51.45,204.55ZM128,140a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm76.55,64.56c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M193.83,128a195.73,195.73,0,0,0,19.9-33.65c10.74-23.88,11-42.66.8-52.88s-29-9.94-52.88.8A195.73,195.73,0,0,0,128,62.17a195.73,195.73,0,0,0-33.65-19.9c-23.88-10.74-42.66-11-52.88-.8s-9.94,29,.8,52.88A195.73,195.73,0,0,0,62.17,128a195.73,195.73,0,0,0-19.9,33.65c-10.74,23.88-11,42.66-.8,52.88h0c5,5,12,7.47,20.63,7.47,9.1,0,20-2.76,32.25-8.27A195.73,195.73,0,0,0,128,193.83a195.73,195.73,0,0,0,33.65,19.9C173.9,219.24,184.8,222,193.9,222c8.64,0,15.65-2.49,20.63-7.47h0c10.23-10.22,9.94-29-.8-52.88A195.73,195.73,0,0,0,193.83,128ZM206,50c9.28,9.28,2.36,36.29-19.8,68a306.2,306.2,0,0,0-22.78-25.45A306.2,306.2,0,0,0,138,69.76C169.75,47.61,196.77,40.68,206,50Zm-27.19,78A289.17,289.17,0,0,1,155,155a289.17,289.17,0,0,1-27,23.88A289.17,289.17,0,0,1,101,155a29
20.62,290.62,0,0,1-23.88-27A297.06,297.06,0,0,1,128,77.14,290.74,290.74,0,0,1,155,101,289.17,289.17,0,0,1,178.85,128ZM50,50c2.68-2.69,6.84-4,12.17-4,13.11,0,33.3,8,55.87,23.81A302.94,302.94,0,0,0,92.54,92.54,306.2,306.2,0,0,0,69.76,118C47.6,86.25,40.68,59.24,50,50ZM50,206h0c-9.28-9.28-2.35-36.29,19.8-68a306.2,306.2,0,0,0,22.78,25.45A306.2,306.2,0,0,0,118,186.24C86.25,208.4,59.24,215.32,50,206ZM206,206c-9.28,9.28-36.29,2.35-68-19.81a304.26,304.26,0,0,0,25.45-22.77A306.2,306.2,0,0,0,186.24,138C208.4,169.75,215.32,196.76,206,206Zm-68-78a10,10,0,1,1-10-10A10,10,0,0,1,138,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.48,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A300.33,300.33,0,0,0,141.27,70C172.15,49,196.91,43.8,204.55,51.45ZM176.29,128a289.14,289.14,0,0,1-22.76,25.53A289.14,289.14,0,0,1,128,176.29a289.14,289.14,0,0,1-25.53-22.76A289.14,289.14,0,0,1,79.71,128,298.62,298.62,0,0,1,128,79.71a289.14,289.14,0,0,1,25.53,22.76A289.14,289.14,0,0,1,176.29,128ZM51.45,51.45c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.2,51.45,204.55Zm153.1,0c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55ZM140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M211.89,162.47A195.58,195.58,0,0,0,191.36,128a195.58,195.58,0,0,0,20.53-34.47c10.38-23.06,10.81-41,1.21-50.63s-27.57-9.17-50.63,1.21A195.58,195.58,0,0,0,128,64.64,195.58,195.58,0,0,0,93.53,44.11C70.47,33.73,52.49,33.3,42.9,42.9s-9.17,27.57,1.21,50.63A195.58,195.58,0,0,0,64.64,128a195.58,195.58,0,0,0-20.53,34.47c-10.38,23.06-10.81,41-1.21,50.63h0C47.5,217.7,54,220,62.12,220c8.78,0,19.41-2.71,31.41-8.11A195.58,195.58,0,0,0,128,191.36a195.58,195.58,0,0,0,34.47,20.53c12,5.4,22.63,8.11,31.41,8.11,8.09,0,14.62-2.3,19.22-6.9h0C222.7,203.51,222.27,185.53,211.89,162.47ZM207.45,48.55c10.27,10.28,3.14,39.05-21.1,72.84A301,301,0,0,0,162,94a301,301,0,0,0-27.43-24.31C168.4,45.4,197.17,38.27,207.45,48.55Zm-26,79.45a293.16,293.16,0,0,1-25,28.38,291.82,291.82,0,0,1-28.38,25,291.82,291.82,0,0,1-28.38-25,293.16,293.16,0,0,1-25-28.38A302.36,302.36,0,0,1,128,74.58a295.83,295.83,0,0,1,28.37,25A293.16,293.16,0,0,1,181.41,128ZM48.55,48.55c3.05-3,7.71-4.55,13.64-4.55,14.11,0,35.41,8.59,59.19,25.65a304.89,304.89,0,0,0-51.73,51.74C45.41,87.6,38.28,58.83,48.55,48.55Zm0,158.9c-10.27-10.28-3.14-39,21.1-72.84A301,301,0,0,0,94,162a301,301,0,0,0,27.43,24.31C87.6,210.59,58.83,217.72,48.55,207.45Zm158.9,0c-10.28,10.27-39,3.14-72.84-21.1A301,301,0,0,0,162,162a301,301,0,0,0,24.31-27.43C210.59,168.4,217.72,197.17,207.45,207.45ZM136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Z"}))]]),ov=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:sv})));ov.displayName="AtomIcon";const lv=ov,cv=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),o.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
2Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
2Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),dv=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:cv})));dv.displayName="FileTextIcon";const uv=dv,mv=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),o.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),pv=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:mv})));pv.displayName="SignOutIcon";const hv=pv,fv=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),xv=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:fv})));xv.displayName="ListIcon";const gv=xv,vv=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),o.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),bv=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:vv})));bv.displayName="BellIcon";const yv=bv;const jv="false"!=="true".toString().toLowerCase(),wv={to:"/app/employer/reports",label:"Reports",icon:Bg},Nv="false"!=="true".toString().toLowerCase(),Av={employer:[{to:"/app/employer",label:"Today",icon:qg},{to:"/app/employer/jobs",label:"Jobs",icon:Cg},{to:"/app/employer/applicants",label:"People",icon:Hg},...jv?[wv]:[],{to:"/app/employer/settings",label:"Settings",icon:Yg}],recruiter:[{to:"/app/employer",label:"Today",icon:qg},{to:"/app/employer/jobs",label:"Jobs",icon:Cg},{to:"/app/employer/applicants",label:"People",icon:Hg},...jv?[wv]:[],{to:"/app/employer/settings",label:"Settings",icon:Yg}]},kv={employer:[{to:"/app/employer",label:"Home",icon:qg},{to:"/app/employer/jobs",label:"Jobs",icon:Cg},{to:"/app/employer/applicants",label:"Candidates",icon:$g},...jv?[wv]:[],{to:"/app/employer/messages",label:"Messages",icon:lx},{to:"/app/employer/billing",label:"Plans & Billing",icon:Jg},{to:"/app/employer/settings",label:"Settings",icon:Yg}],recruiter:[{to:"/app/employer",label:"Home",icon:qg},{to:"/app/employer/jobs",label:"Jobs",icon:Cg},{to:"/app/employer/applicants",label:"Candidates",icon:$g},...jv?[wv]:[],{to:"/app/employer/messages",label:"Messages",icon:lx},{to:"/app/employer/billing",label:"Plans & Billing",icon:Jg},{to:"/app/employer/settings",label:"Settings",icon:Yg}],admin:[{to:"/app/admin",label:"Dashboard",icon:qg},{to:"/app/admin/leads",label:"Leads",icon:nv},{to:"/app/admin/activation",label:"Activation",icon:iv},{to:"/app/admin/pilot",label:"Pilot",icon:iv},{to:"/app/admin/users",label:"Users",icon:Hg},{to:"/app/admin/orgs",label:"Organizations",icon:nv},{to:"/app/admin/validation",label:"Validation",icon:iv},{to:"/app/admin/career-dna-review",label:"Career DNA Review",icon:lv},{to:"/app/admin/audit",label:"Audit Logs",icon:uv}]},Ev={employer:Nv?Av.employer:kv.employer,recruiter:Nv?Av.recruiter:kv.recruiter,admin:kv.admin},Dv=e=>{let t=e.isActive;return"flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ".concat(t?"bg-[#14B8A6] text-[#0F1D2D] font-semibold":"text-white/75 hover:bg-white/10 hover:text-white")};function _v(e){let t=e.link,n=e.onClick;const a=t.icon;return(0,Pe.jsxs)(Kn,{to:t.to,end:!0,onClick:e=>{if("/app/employer/messages"===t.to||"/app/messages"===t.to)try{window.sessionStorage.setItem("aros_messages_nav_source","sidebar"),window.sessionStorage.setItem("aros_messages_nav_ts",String(Date.now()))}catch(a){}null===n||void 0===n||n(e)},className:Dv,"data-testid":"nav-link-".concat(t.label.toLowerCase().replace(/[^a-z0-9]+/g,"-")),children:[(0,Pe.jsx)(a,{size:18,weight:"duotone"}),t.label]})}function Cv(e){let t=e.user,n=e.onLogout,a=e.children;return(0,Pe.jsxs)("div",{className:"flex h-full flex-col bg-[#0F1D2D] text-white",children:[(0,Pe.jsx)("div",{className:"px-5 py-5 border-b border-white/10",children:(0,Pe.jsx)(ls,{to:"/app/".concat("admin"===t.role?"admin":"employer"),invert:!0})}),(0,Pe.jsx)("nav",{className:"flex-1 px-3 py-4 overflow-y-auto",children:a}),(0,Pe.jsxs)("div",{className:"px-3 py-4 border-t border-white/10 space-y-2",children:[(0,Pe.jsx)(og,{userRole:t.role}),(0,Pe.jsxs)("div",{className:"px-3 py-2 rounded-md bg-white/5",children:[(0,Pe.jsx)("div",{className:"text-xs text-white/60 uppercase tracking-wider",children:"Signed in"}),(0,Pe.jsx)("div",{className:"text-sm font-medium truncate",children:t.full_name}),(0,Pe.jsx)("div",{className:"text-[11px] text-white/55 uppercase tracking-wider mt-0.5",children:t.role})]}),(0,Pe.jsxs)("button",{onClick:n,"data-testid":"nav-logout",className:"w-full flex items-center gap-2 px-3 py-2 rounded-md text-sm text-white/70 hover:bg-white/10 hover:text-white transition-colors",children:[(0,Pe.jsx)(hv,{size:16,weight:"duotone"})," Sign out"]})]})]})}function Fv(e){let t=e.user,n=e.onLogout,a=e.links,r=e.children;const i=Zt(),s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1];(0,o.useEffect)(()=>{c(!1)},[i.pathname]);const d=()=>(0,Pe.jsx)("div",{className:"space-y-0.5",children:a.map((e,t)=>"group"===e.type?(0,Pe.jsx)("div",{className:"px-3 pb-1 pt-3 text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-white/40 ".concat(0===t?"!pt-1":""),"data-testid":"nav-group-".concat(e.label.toLowerCase().replace(/[^a-z]+/g,"-")),children:e.label},"group-".concat(e.label,"-").concat(t)):(0,Pe.jsx)(_v,{link:e},e.to))});return(0,Pe.jsxs)("div",{className:"min-h-screen flex bg-white",children:[(0,Pe.jsx)("aside",{"data-testid":"app-sidebar",className:"hidden md:flex w-60 shrink-0 flex-col border-r border-border bg-[#0F1D2D] text-white",children:(0,Pe.jsx)(Cv,{user:t,onLogout:n,children:d()})}),(0,Pe.jsxs)("div",{className:"md:hidden fixed top-0 inset-x-0 z-40 glass-header px-4 py-3 flex items-center justify-between",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsxs)(hg,{open:l,onOpenChange:c,children:[(0,Pe.jsx)(fg,{asChild:!0,children:(0,Pe.jsx)(Lo,{variant:"ghost",size:"sm","data-testid":"nav-hamburger-mobile","aria-label":"Open navigation menu",className:"-ml-1",children:(0,Pe.jsx)(gv,{size:22,weight:"bold"})})}),(0,Pe.jsx)(bg,{side:"left",className:"w-64 p-0 bg-[#0F1D2D] text-white border-none","data-testid":"app-sidebar-mobile",children:(0,Pe.jsx)(Cv,{user:t,onLogout:n,children:d()})})]}),(0,Pe.jsx)(ls,{to:"/app/".concat("admin"===t.role?"admin":"employer")})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1",children:["admin"!==t.role&&(0,Pe.jsx)(Lo,{variant:"ghost",size:"sm","data-testid":"nav-messages-bell-mobile",onClick:()=>window.location.href="/app/employer/messages","aria-label":"Messages",children:(0,Pe.jsx)(yv,{size:18,weight:"duotone"})}),(0,Pe.jsx)(Lo,{variant:"ghost",size:"sm",onClick:n,"data-testid":"nav-logout-mobile",children:(0,Pe.jsx)(hv,{size:16})})]})]}),(0,Pe.jsxs)("main",{className:"flex-1 min-w-0 md:pl-0 pt-14 md:pt-0",children:[(0,Pe.jsxs)("div",{className:"hidden md:flex items-center justify-end gap-4 border-b border-slate-200 bg-white px-6 py-2","data-testid":"app-topbar",children:[(0,Pe.jsx)(Tg,{}),"admin"!==t.role&&(0,Pe.jsxs)(Kn,{to:"/app/employer/messages","data-testid":"nav-messages-bell",className:e=>{let t=e.isActive;return"inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm transition-colors ".concat(t?"bg-[#F2EFEA] text-[#0F1D2D]":"text-slate-600 hover:text-[#0F1D2D] hover:bg-slate-50")},"aria-label":"Messages",children:[(0,Pe.jsx)(yv,{size:16,weight:"duotone"}),(0,Pe.jsx)("span",{className:"hidden lg:inline",children:"Messages"})]})]}),(0,Pe.jsx)("div",{className:"md:hidden px-4 py-2 border-b border-slate-100 bg-white",children:(0,Pe.jsx)(Tg,{})}),r]})]})}function Sv(e){let t=e.children;const n=es(),a=n.user,r=n.logout,i=zt(),s=Zt(),l=(0,o.useRef)(null);if((0,o.useEffect)(()=>
2{if("undefined"===typeof window)return;const e=l.current;if(e&&e!==s.pathname)try{window.sessionStorage.setItem("aros_prev_path",e)}catch(t){}l.current=s.pathname},[s.pathname]),!a)return null;if("candidate"===a.role)return r(),i("/login?candidate_retired=1"),null;const c=Ev[a.role]||[];return(0,Pe.jsxs)(Fv,{user:a,onLogout:()=>{r(),i("/")},links:c,children:[(0,Pe.jsx)(ig,{}),t,(0,Pe.jsx)(Xf,{}),(0,Pe.jsx)(Sx,{surface:"app-".concat(a.role)}),(0,Pe.jsx)(Ox,{}),(0,Pe.jsx)(Kx,{source:"app-global"})]})}const Mv=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],Ov=["__scopeCollapsible"],Rv=["forceMount"],Hv=["__scopeCollapsible","present","children"];var Pv="Collapsible",Lv=Ue(Jo(Pv),2),Tv=Lv[0],Iv=Lv[1],Zv=Ue(Tv(Pv),2),Bv=Zv[0],Vv=Zv[1],zv=o.forwardRef((e,t)=>{const n=e.__scopeCollapsible,a=e.open,r=e.defaultOpen,i=e.disabled,s=e.onOpenChange,l=Ie(e,Mv),c=Ue(sl({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:s,caller:Pv}),2),d=c[0],u=c[1];return(0,Pe.jsx)(Bv,{scope:n,disabled:i,contentId:rl(),open:d,onOpenToggle:o.useCallback(()=>u(e=>!e),[u]),children:(0,Pe.jsx)(zo.div,h(h({"data-state":Gv(d),"data-disabled":i?"":void 0},l),{},{ref:t}))})});zv.displayName=Pv;var qv="CollapsibleTrigger",Uv=o.forwardRef((e,t)=>{const n=e.__scopeCollapsible,a=Ie(e,Ov),r=Vv(qv,n);return(0,Pe.jsx)(zo.button,h(h({type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Gv(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled},a),{},{ref:t,onClick:$o(e.onClick,r.onOpenToggle)}))});Uv.displayName=qv;var Wv="CollapsibleContent",Yv=o.forwardRef((e,t)=>{const n=e.forceMount,a=Ie(e,Rv),r=Vv(Wv,e.__scopeCollapsible);return(0,Pe.jsx)(Sl,{present:n||r.open,children:e=>{let n=e.present;return(0,Pe.jsx)(Kv,h(h({},a),{},{ref:t,present:n}))}})});Yv.displayName=Wv;var Kv=o.forwardRef((e,t)=>{const n=e.__scopeCollapsible,a=e.present,r=e.children,i=Ie(e,Hv),s=Vv(Wv,n),l=Ue(o.useState(a),2),c=l[0],d=l[1],u=o.useRef(null),m=us(t,u),p=o.useRef(0),f=p.current,x=o.useRef(0),g=x.current,v=s.open||c,b=o.useRef(v),y=o.useRef(void 0);return o.useEffect(()=>{const e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),tl(()=>{const e=u.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,x.current=t.width,b.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),d(a)}},[s.open,a]),(0,Pe.jsx)(zo.div,h(h({"data-state":Gv(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v},i),{},{ref:m,style:h({"--radix-collapsible-content-height":f?"".concat(f,"px"):void 0,"--radix-collapsible-content-width":g?"".concat(g,"px"):void 0},e.style),children:v&&r}))});function Gv(e){return e?"open":"closed"}var $v=zv,Qv=Uv,Xv=Yv;const Jv=["type"],eb=["value","defaultValue","onValueChange","collapsible"],tb=["value","defaultValue","onValueChange"],nb=["__scopeAccordion","disabled","dir","orientation"],ab=["__scopeAccordion","value"],rb=["__scopeAccordion"],ib=["__scopeAccordion"],sb=["__scopeAccordion"];var ob="Accordion",lb=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],cb=Ue(iu(ob),3),db=cb[0],ub=cb[1],mb=cb[2],pb=Ue(Jo(ob,[mb,Iv]),2),hb=pb[0],fb=(pb[1],Iv()),xb=o.forwardRef((e,t)=>{const n=e.type,a=Ie(e,Jv),r=a,i=a;return(0,Pe.jsx)(db.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,Pe.jsx)(Ab,h(h({},i),{},{ref:t})):(0,Pe.jsx)(Nb,h(h({},r),{},{ref:t}))})});xb.displayName=ob;var gb=Ue(hb(ob),2),vb=gb[0],bb=gb[1],yb=Ue(hb(ob,{collapsible:!1}),2),jb=yb[0],wb=yb[1],Nb=o.forwardRef((e,t)=>{const n=e.value,a=e.defaultValue,r=e.onValueChange,i=void 0===r?()=>{}:r,s=e.collapsible,l=void 0!==s&&s,c=Ie(e,eb),d=Ue(sl({prop:n,defaultProp:null!==a&&void 0!==a?a:"",onChange:i,caller:ob}),2),u=d[0],m=d[1];return(0,Pe.jsx)(vb,{scope:e.__scopeAccordion,value:o.useMemo(()=>u?[u]:[],[u]),onItemOpen:m,onItemClose:o.useCallback(()=>l&&m(""),[l,m]),children:(0,Pe.jsx)(jb,{scope:e.__scopeAccordion,collapsible:l,children:(0,Pe.jsx)(_b,h(h({},c),{},{ref:t}))})})}),Ab=o.forwardRef((e,t)=>
2{const n=e.value,a=e.defaultValue,r=e.onValueChange,i=void 0===r?()=>{}:r,s=Ie(e,tb),l=Ue(sl({prop:n,defaultProp:null!==a&&void 0!==a?a:[],onChange:i,caller:ob}),2),c=l[0],d=l[1],u=o.useCallback(e=>d(function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e]}),[d]),m=o.useCallback(e=>d(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(t=>t!==e)}),[d]);return(0,Pe.jsx)(vb,{scope:e.__scopeAccordion,value:c,onItemOpen:u,onItemClose:m,children:(0,Pe.jsx)(jb,{scope:e.__scopeAccordion,collapsible:!0,children:(0,Pe.jsx)(_b,h(h({},s),{},{ref:t}))})})}),kb=Ue(hb(ob),2),Eb=kb[0],Db=kb[1],_b=o.forwardRef((e,t)=>{const n=e.__scopeAccordion,a=e.disabled,r=e.dir,i=e.orientation,s=void 0===i?"vertical":i,l=Ie(e,nb),c=us(o.useRef(null),t),d=ub(n),u="ltr"===du(r),m=$o(e.onKeyDown,e=>{var t;if(!lb.includes(e.key))return;const n=e.target,a=d().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),r=a.findIndex(e=>e.ref.current===n),i=a.length;if(-1===r)return;e.preventDefault();let o=r;const l=i-1,c=()=>{o=r+1,o>l&&(o=0)},m=()=>{o=r-1,o<0&&(o=l)};switch(e.key){case"Home":o=0;break;case"End":o=l;break;case"ArrowRight":"horizontal"===s&&(u?c():m());break;case"ArrowDown":"vertical"===s&&c();break;case"ArrowLeft":"horizontal"===s&&(u?m():c());break;case"ArrowUp":"vertical"===s&&m()}null===(t=a[o%i].ref.current)||void 0===t||t.focus()});return(0,Pe.jsx)(Eb,{scope:n,disabled:a,direction:r,orientation:s,children:(0,Pe.jsx)(db.Slot,{scope:n,children:(0,Pe.jsx)(zo.div,h(h({},l),{},{"data-orientation":s,ref:c,onKeyDown:a?void 0:m}))})})}),Cb="AccordionItem",Fb=Ue(hb(Cb),2),Sb=Fb[0],Mb=Fb[1],Ob=o.forwardRef((e,t)=>{const n=e.__scopeAccordion,a=e.value,r=Ie(e,ab),i=Db(Cb,n),s=bb(Cb,n),o=fb(n),l=rl(),c=a&&s.value.includes(a)||!1,d=i.disabled||e.disabled;return(0,Pe.jsx)(Sb,{scope:n,open:c,disabled:d,triggerId:l,children:(0,Pe.jsx)($v,h(h(h({"data-orientation":i.orientation,"data-state":Zb(c)},o),r),{},{ref:t,disabled:d,open:c,onOpenChange:e=>{e?s.onItemOpen(a):s.onItemClose(a)}}))})});Ob.displayName=Cb;var Rb="AccordionHeader",Hb=o.forwardRef((e,t)=>{const n=e.__scopeAccordion,a=Ie(e,rb),r=Db(ob,n),i=Mb(Rb,n);return(0,Pe.jsx)(zo.h3,h(h({"data-orientation":r.orientation,"data-state":Zb(i.open),"data-disabled":i.disabled?"":void 0},a),{},{ref:t}))});Hb.displayName=Rb;var Pb="AccordionTrigger",Lb=o.forwardRef((e,t)=>{const n=e.__scopeAccordion,a=Ie(e,ib),r=Db(ob,n),i=Mb(Pb,n),s=wb(Pb,n),o=fb(n);return(0,Pe.jsx)(db.ItemSlot,{scope:n,children:(0,Pe.jsx)(Qv,h(h(h({"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId},o),a),{},{ref:t}))})});Lb.displayName=Pb;var Tb="AccordionContent",Ib=o.forwardRef((e,t)=>{const n=e.__scopeAccordion,a=Ie(e,sb),r=Db(ob,n),i=Mb(Tb,n),s=fb(n);return(0,Pe.jsx)(Xv,h(h(h({role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation},s),a),{},{ref:t,style:h({"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)"},e.style)}))});function Zb(e){return e?"open":"closed"}Ib.displayName=Tb;var Bb=xb,Vb=Ob,zb=Hb,qb=Lb,Ub=Ib;const Wb=Zd("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Yb=["className"],Kb=["className","children"],Gb=["className","children"],$b=Bb,Qb=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Yb);return(0,Pe.jsx)(Vb,h({ref:t,className:Ro("border-b transition-colors data-[state=open]:bg-slate-50/70",n)},a))});Qb.displayName="AccordionItem";const Xb=o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Ie(e,Kb);return(0,Pe.jsx)(zb,{className:"flex",children:(0,Pe.jsxs)(qb,h(h({ref:t,className:Ro("flex flex-1 items-center justify-between gap-3 py-4 text-sm font-medium text-left transition-all","data-[state=open]:font-semibold data-[state=open]:text-[#0F4FA8]","[&[data-state=open]>span>svg]:rotate-45 [&[data-state=open]>span]:bg-[#0F4FA8] [&[data-state=open]>span]:text-white [&[data-state=open]>span]:border-[#0F4FA8]",n)},r),{},{children:[a,(0,Pe.jsx)("span",{"aria-hidden":"true",className:"shrink-0 inline-flex items-center justify-center h-6 w-6 rounded-full border border-slate-300 text-slate-500 transition-all duration-200",children:(0,Pe.jsx)(Wb,{className:"h-3.5 w-3.5 transition-transform duration-200"})})]}))})});Xb.displayName=qb.displayName;const Jb=o.forwardRef((e,t)=>
2{let n=e.className,a=e.children,r=Ie(e,Gb);return(0,Pe.jsx)(Ub,h(h({ref:t,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},r),{},{children:(0,Pe.jsx)("div",{className:Ro("pb-4 pt-0",n),children:a})}))});Jb.displayName=Ub.displayName;const ey=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"}),o.createElement("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"}))]]),ty=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:ey})));ty.displayName="ArrowDownIcon";const ny=ty,ay=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),ry=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:ay})));ry.displayName="ShieldCheckIcon";const iy=ry,sy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),o.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),oy=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:sy})));oy.displayName="EyeIcon";const ly=oy,cy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232.76,137.88a28.66,28.66,0,0,0-12-5.39C236.19,114.94,244,97.37,244,80c0-28.67-23.09-52-51.46-52A51.77,51.77,0,0,0,156,42.85,51.77,51.77,0,0,0,119.46,28C91.09,28,68,51.33,68,80c0,10.15,2.72,20.3,8.22,30.7a35.9,35.9,0,0,0-11.73,7.84L43,140H20A20,20,0,0,0,0,160v40a20,20,0,0,0,20,20H120a11.89,11.89,0,0,0,2.91-.36l64-16a11.4,11.4,0,0,0,1.79-.6l38.82-16.54c.23-.09.45-.19.67-.3a28.61,28.61,0,0,0,4.57-48.32ZM119.46,52A27.18,27.18,0,0,1,144.9,68.56a12,12,0,0,0,22.2,0A27.18,27.18,0,0,1,192.54,52C207.42,52,220,64.82,220,80c0,18.06-15,38.84-43.38,60.19L172,141.26c0-.42,0-.84,0-1.26a32,32,0,0,0-32-32H102.71C95.42,97.76,92,88.77,92,80,92,64.82,104.58,52,119.46,52ZM24,164H36v32H24Zm193.68.61-37.51,16L118.52,196H60V157l21.46-21.46A11.93,11.93,0,0,1,89.94,132H140a8,8,0,0,1,0,16H112a12,12,0,0,0,0,24h32a12.19,12.19,0,0,0,2.69-.3l67-15.41.47-.12a4.61,4.61,0,0,1,5.82,4.44A4.58,4.58,0,0,1,217.68,164.61Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M16,152H48v56H16a8,8,0,0,1-8-8V160A8,8,0,0,1,16,152ZM192.54,40A39.12,39.12,0,0,0,156,64a39.12,39.12,0,0,0-36.54-24C97.67,40,80,58.31,80,80c0,14.56,7,27.71,16.73,40H140a20,20,0,0,1,0,40h4l37.78-8.68C203.82,135.07,232,109.23,232,80,232,58.31,214.33,40,192.54,40Z",opacity:"0.2"}),o.createElement("path",{d:"M230.33,141.06a24.34,24.34,0,0,0-18.61-4.77C230.5,117.33,240,98.48,240,80c0-26.47-21.29-48-47.46-48A47.58,47.58,0,0,0,156,48.75,47.58,47.58,0,0,0,119.46,32C93.29,32,72,53.53,72,80c0,11,3.24,21.69,10.06,33a31.87,31.87,0,0,0-14.75,8.4L44.69,144H16A16,16,0,0,0,0,160v40a16,16,0,0,0,16,16H120a7.93,7.93,0,0,0,1.94-.24l64-16a6.94,6.94,0,0,0,1.19-.4L226,182.82l.44-.2a24.6,24.6,0,0,0,3.93-41.56ZM119.46,48A31.15,31.15,0,0,1,148.6,67a8,8,0,0,0,14.8,0,31.15,31.15,0,0,1,29.14-19C209.59,48,224,62.65,224,80c0,19.51-15.79,41.58-45.66,63.9l-11.09,2.55A28,28,0,0,0,140,112H100.68C92.05,100.36,88,90.12,88,80,88,62.65,102.41,48,119.46,48ZM16,160H40v40H16Zm203.43,8.21-38,16.18L119,200H56V155.31l22.63-22.62A15.86,15.86,0,0,1,89.94,128H140a12,12,0,0,1,0,24H112a8,8,0,0,0,0,16h32a8.32,8.32,0,0,0,1.79-.2l67-15.41.31-.08a8.6,8.6,0,0,1,6.3,15.9Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.33,141.06a24.34,24.34,0,0,0-18.61-4.77C230.5,117.33,240,98.48,240,80c0-26.47-21.29-48-47.46-48A47.58,47.58,0,0,0,156,48.75,47.58,47.58,0,0,0,119.46,32C93.29,32,72,53.53,72,80c0,11,3.24,21.69,10.06,33a31.87,31.87,0,0,0-14.75,8.4L44.69,144H16A16,16,0,0,0,0,160v40a16,16,0,0,0,16,16H120a7.93,7.93,0,0,0,1.94-.24l64-16a6.94,6.94,0,0,0,1.19-.4L226,182.82l.44-.2a24.6,24.6,0,0,0,3.93-41.56Zm-10.9,27.15-38,16.18L119,200H56V155.31l22.63-22.62A15.86,15.86,0,0,1,89.94,128H140a12,12,0,0,1,0,24H112a8,8,0,0,0,0,16h32a8.32,8.32,0,0,0,1.79-.2l67-15.41.31-.08a8.6,8.6,0,0,1,6.3,15.9Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.12,142.65a22.43,22.43,0,0,0-19.55-3.88l-4.32,1C227,119.55,238,99.51,238,80c0-25.36-20.39-46-45.46-46A45.51,45.51,0,0,0,156,52a45.51,45.51,0,0,0-36.54-18C94.39,34,74,54.64,74,80c0,11.38,3.63,22.49,11.29,34.36a29.73,29.73,0,0,0-16.56,8.43L45.52,146H16A14,14,0,0,0,2,160v40a14,14,0,0,0,14,14H120a6,6,0,0,0,1.46-.18l64-16a7.16,7.16,0,0,0,.89-.3L225.17,181l.33-.15a22.6,22.6,0,0,0,3.62-38.18ZM119.46,46a33.16,33.16,0,0,1,31,20.28,6,6,0,0,0,11.1,0,33.16,33.16,0,0,1,31-20.28C210.68,46,226,61.57,226,80c0,20.24-16.18,43-46.8,65.75l-14.87,3.42A26,26,0,0,0,140,114H99.67C90.36,101.67,86,90.81,86,80,86,61.57,101.32,46,119.46,46ZM14,200V160a2,2,0,0,1,2-2H42v44H16A2,2,0,0,1,14,200Zm206.28-30-38.2,16.27L119.26,202H54V154.49l23.21-23.22A17.88,17.88,0,0,1,89.94,126H140a14,14,0,0,1,0,28H112a6,6,0,0,0,0,12h32a6,6,0,0,0,1.34-.15l67-15.41.24-.06A10.6,10.6,0,0,1,220.28,170Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.33,141.06a24.34,24.34,0,0,0-18.61-4.77C230.5,117.33,240,98.48,240,80c0-26.47-21.29-48-47.46-48A47.58,47.58,0,0,0,156,48.75,47.58,47.58,0,0,0,119.46,32C93.29,32,72,53.53,72,80c0,11,3.24,21.69,10.06,33a31.87,31.87,0,0,0-14.75,8.4L44.69,144H16A16,16,0,0,0,0,160v40a16,16,0,0,0,16,16H120a7.93,7.93,0,0,0,1.94-.24l64-16a6.94,6.94,0,0,0,1.19-.4L226,182.82l.44-.2a24.6,24.6,0,0,0,3.93-41.56ZM119.46,48A31.15,31.15,0,0,1,148.6,67a8,8,0,0,0,14.8,0,31.15,31.15,0,0,1,29.14-19C209.59,48,224,62.65,224,80c0,19.51-15.79,41.58-45.66,63.9l-11.09,2.55A28,28,0,0,0,140,112H100.68C92.05,100.36,88,90.12,88,80,88,62.65,102.41,48,119.46,48ZM16,160H40v40H16Zm203.43,8.21-38,16.18L119,200H56V155.31l22.63-22.62A15.86,15.86,0,0,1,89.94,128H140a12,12,0,0,1,0,24H112a8,8,0,0,0,0,16h32a8.32,8.32,0,0,0,1.79-.2l67-15.41.31-.08a8.6,8.6,0,0,1,6.3,15.9Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.9,144.24a20.45,20.45,0,0,0-17.84-3.53l-11.95,2.75C223.26,121.88,236,100.58,236,80c0-24.26-19.5-44-43.46-44A43.41,43.41,0,0,0,156,55.44,43.41,43.41,0,0,0,119.46,36C95.5,36,76,55.74,76,80c0,11.85,4.11,23.44,12.81,36a27.8,27.8,0,0,0-18.67,8.17L46.34,148H16A12,12,0,0,0,4,160v40a12,12,0,0,0,12,12H120a4,4,0,0,0,1-.12l64-16a4.69,4.69,0,0,0,.6-.2l38.82-16.54.22-.1a20.6,20.6,0,0,0,3.29-34.8ZM119.46,44A35.15,35.15,0,0,1,152.3,65.52a4,4,0,0,0,7.4,0A35.15,35.15,0,0,1,192.54,44C211.76,44,228,60.49,228,80c0,21.27-16.13,44-47.94,67.61L160.75,152A23.76,23.76,0,0,0,164,140a24,24,0,0,0-24-24H98.69C88.69,103,84,91.5,84,80,84,60.49,100.24,44,119.46,44ZM12,200V160a4,4,0,0,1,4-4H44v48H16A4,4,0,0,1,12,200Zm209.13-28.17L182.72,188.2,119.51,204H52V153.66l23.8-23.8A19.86,19.86,0,0,1,89.94,124H140a16,16,0,0,1,0,32H112a4,4,0,0,0,0,8h32a3.94,3.94,0,0,0,.9-.1l67-15.41.16,0a12.6,12.6,0,0,1,9,23.38Z"}))]]),dy=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:cy})));dy.displayName="HandHeartIcon";const uy=dy,my=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),o.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),o.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),o.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),py=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:my})));py.displayName="StackIcon";const hy=py,fy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"}))]]),xy=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:fy})));xy.displayName="ClockCounterClockwiseIcon";const gy=xy,vy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,76H188V48a20,20,0,0,0-20-20H40A20,20,0,0,0,20,48V176a12,12,0,0,0,19.54,9.33l28.46-23V184a20,20,0,0,0,20,20h92.17l36.29,29.33A12,12,0,0,0,236,224V96A20,20,0,0,0,216,76ZM44,150.87V52H164v80H71.58A12,12,0,0,0,64,134.67Zm168,48-20-16.2a12,12,0,0,0-7.54-2.67H92V156h76a20,20,0,0,0,20-20V100h24Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,96V224l-39.58-32H88a8,8,0,0,1-8-8V144h88a8,8,0,0,0,8-8V88h40A8,8,0,0,1,224,96Z",opacity:"0.2"}),o.createElement("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,96a16,16,0,0,0-16-16H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8Zm-42.55,89.78a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32V207.25Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,82H182V48a14,14,0,0,0-14-14H40A14,14,0,0,0,26,48V176a6,6,0,0,0,3.42,5.41A5.86,5.86,0,0,0,32,182a6,6,0,0,0,3.77-1.33L73.71,150H74v34a14,14,0,0,0,14,14h94.29l37.94,30.67A6,6,0,0,0,224,230a5.86,5.86,0,0,0,2.58-.59A6,6,0,0,0,230,224V96A14,14,0,0,0,216,82ZM71.58,138a6,6,0,0,0-3.77,1.33L38,163.43V48a2,2,0,0,1,2-2H168a2,2,0,0,1,2,2v88a2,2,0,0,1-2,2ZM218,211.43l-29.81-24.1a6,6,0,0,0-3.77-1.33H88a2,2,0,0,1-2-2V150h82a14,14,0,0,0,14-14V94h34a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,80H184V48a16,16,0,0,0-16-16H40A16,16,0,0,0,24,48V176a8,8,0,0,0,13,6.22L72,154V184a16,16,0,0,0,16,16h93.59L219,230.22a8,8,0,0,0,5,1.78,8,8,0,0,0,8-8V96A16,16,0,0,0,216,80ZM66.55,137.78,40,159.25V48H168v88H71.58A8,8,0,0,0,66.55,137.78ZM216,207.25l-26.55-21.47a8,8,0,0,0-5-1.78H88V152h80a16,16,0,0,0,16-16V96h32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,84H180V48a12,12,0,0,0-12-12H40A12,12,0,0,0,28,48V176a4,4,0,0,0,4,4,4,4,0,0,0,2.51-.89L73,148h3v36a12,12,0,0,0,12,12h95l38.49,31.11A4,4,0,0,0,224,228a4,4,0,0,0,4-4V96A12,12,0,0,0,216,84ZM71.58,140a4,4,0,0,0-2.51.89L36,167.62V48a4,4,0,0,1,4-4H168a4,4,0,0,1,4,4v88a4,4,0,0,1-4,4ZM220,215.62l-33.07-26.73a4,4,0,0,0-2.51-.89H88a4,4,0,0,1-4-4V148h84a12,12,0,0,0,12-12V92h36a4,4,0,0,1,4,4Z"}))]]),by=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:vy})));by.displayName="ChatsIcon";const yy=by,jy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M120,136V96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,48a12,12,0,1,0-12-12A12,12,0,0,0,128,184ZM224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40ZM120,96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M122,136V96a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm6,26a10,
210,0,1,0,10,10A10,10,0,0,0,128,162ZM222,56v56c0,51.94-25.12,83.4-46.2,100.64-22.73,18.6-45.27,24.89-46.22,25.15a6,6,0,0,1-3.16,0c-1-.26-23.49-6.55-46.22-25.15C59.12,195.4,34,163.94,34,112V56A14,14,0,0,1,48,42H208A14,14,0,0,1,222,56Zm-12,0a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2v56c0,37.75,13.94,68.39,41.44,91.06A130.94,130.94,0,0,0,128,225.72a131.17,131.17,0,0,0,40.56-22.66C196.06,180.39,210,149.75,210,112Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M120,136V96a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,48a12,12,0,1,0-12-12A12,12,0,0,0,128,184ZM224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M124,136V96a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm4,28a8,8,0,1,0,8,8A8,8,0,0,0,128,164ZM220,56v56c0,51.16-24.73,82.12-45.47,99.1-22.4,18.32-44.55,24.5-45.48,24.76a4,4,0,0,1-2.1,0c-.93-.26-23.08-6.44-45.48-24.76C60.73,194.12,36,163.16,36,112V56A12,12,0,0,1,48,44H208A12,12,0,0,1,220,56Zm-8,0a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4v56c0,38.44,14.23,69.63,42.29,92.71A132.23,132.23,0,0,0,128,227.82a132.45,132.45,0,0,0,41.71-23.11C197.77,181.63,212,150.44,212,112Z"}))]]),wy=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:jy})));wy.displayName="ShieldWarningIcon";const Ny=wy,Ay=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M148,108a12,12,0,0,1,12-12h28a12,12,0,0,1,0,24H160A12,12,0,0,1,148,108Zm40,28H168a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24Zm48-80V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212ZM58.28,159.37A43.82,43.82,0,0,1,71.53,142a36,36,0,1,1,56.94,0,43.84,43.84,0,0,1,13.26,17.37,12,12,0,0,1-22.15,9.26C116.48,161.19,108.42,156,100,156s-16.47,5.2-19.59,12.63a12,12,0,1,1-22.13-9.26ZM88,120a12,12,0,1,0,12-12A12,12,0,0,0,88,120Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM96,144a24,24,0,1,1,24-24A24,24,0,0,1,96,144Z",opacity:"0.2"}),o.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M112,120a16,16,0,1,1-16-16A16,16,0,0,1,112,120ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM135.75,166a39.76,39.76,0,0,0-17.19-23.34,32,32,0,1,0-45.12,0A39.84,39.84,0,0,0,56.25,166a8,8,0,0,0,15.5,4c2.64-10.25,13.06-18,24.25-18s21.62,7.73,24.25,18a8,8,0,1,0,15.5-4ZM200,144a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,144Zm0-32a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,112Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M198,112a6,6,0,0,1-6,6H152a6,6,0,0,1,0-12h40A6,6,0,0,1,198,112Zm-6,26H152a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm38-82V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2ZM133.81,166.51a6,6,0,0,1-11.62,3C119.34,158.38,108.08,150,96,150s-23.33,8.38-26.19,19.5a6,6,0,0,1-11.62-3A38,38,0,0,1,76.78,143a30,30,0,1,1,38.45,0A38,38,0,0,1,133.81,166.51ZM96,138a18,18,0,1,0-18-18A18,18,0,0,0,96,138Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196,112a4,4,0,0,1-4,4H152a4,4,0,0,1,0-8h40A4,4,0,0,1,196,112Zm-4,28H152a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm36-84V200a12,12,0,0,1-12,12H4
20a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4ZM131.87,167a4,4,0,1,1-7.74,2C121.06,157,109,148,96,148s-25,9-28.13,21A4,4,0,0,1,64,172a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,60.13,167a36.28,36.28,0,0,1,20.43-23.66,28,28,0,1,1,30.88,0A36.2,36.2,0,0,1,131.87,167ZM96,140a20,20,0,1,0-20-20A20,20,0,0,0,96,140Z"}))]]),ky=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Ay})));ky.displayName="IdentificationCardIcon";const Ey=ky,Dy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M84,100A12,12,0,0,1,96,88h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,100Zm12,52h64a12,12,0,0,0,0-24H96a12,12,0,0,0,0,24ZM236,56V184a20,20,0,0,1-20,20H157.89l-12.52,21.92a20,20,0,0,1-34.74,0L98.11,204H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V180h61.07a12,12,0,0,1,10.42,6.05L128,207.94l12.51-21.89A12,12,0,0,1,150.93,180H212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56V184a8,8,0,0,1-8,8H150.93l-16,28a8,8,0,0,1-13.9,0l-16-28H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),o.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V184a16,16,0,0,0,16,16h60.43l13.68,23.94a16,16,0,0,0,27.78,0L155.57,200H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM160,144H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M166,104a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,104Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-74V184a14,14,0,0,1-14,14H154.41L140.16,223a14,14,0,0,1-24.32,0L101.59,198H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V184a2,2,0,0,0,2,2h65.07a6,6,0,0,1,5.21,3l16,28a2,2,0,0,0,3.48,0l16-28a6,6,0,0,1,5.21-3H216a2,2,0,0,0,2-2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,104Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,56V184a16,16,0,0,1-16,16H155.57l-13.68,23.94a16,16,0,0,1-27.78,0L100.43,200H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V184h65.07a8,8,0,0,1,7,4l16,28,16-28a8,8,0,0,1,7-4H216Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164,104a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,104Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-76V184a12,12,0,0,1-12,12H153.25L138.42,222a12,12,0,0,1-20.84,0L102.75,196H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V184a4,4,0,0,0,4,4h65.07a4,4,0,0,1,3.47,2l16,28a4,4,0,0,0,6.94,0l16-28a4,4,0,0,1,3.47-2H216a4,4,0,0,0,4-4Z"}))]]),_y=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Dy})));_y.displayName="ChatCenteredTextIcon";const Cy=_y,Fy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,56v64L168,56Z",opacity:"0.2"}),o.createElement("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"}))]]),Sy=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Fy})));Sy.displayName="TrendUpIcon";const My=Sy,Oy=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"}),o.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"}))]]),Ry=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Oy})));Ry.displayName="LockIcon";const Hy=Ry,Py="".concat("https://www.getaros.ai","/api/marketing/track"),Ly="aros.mkt.anon",Ty="aros.mkt.seen",Iy="aros.mkt.attr",Zy=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];function By(){try{if("undefined"!==typeof crypto&&crypto.randomUUID)return crypto.randomUUID()}catch(e){}return"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,10))}function Vy(){if("undefined"===typeof window)return"ssr";try{let e=sessionStorage.getItem(Ly);return e||(e=By(),sessionStorage.setItem(Ly,e)),e}catch(e){return By()}}function zy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"===typeof window)return;const n=t.path||window.location.pathname||"/",a=function(){if("undefined"===typeof window)return{};try{const e=sessionStorage.getItem(Iy);if(e)return JSON.parse(e)}catch(t){}const e={};try{const t=new URLSearchParams(window.location.search||"");for(const n of Zy){const a=t.get(n);a&&a.length<=80&&(e[n]=a.slice(0,80))}e.landing_path=(window.location.pathname||"/").slice(0,120),e.first_landing_path=e.landing_path}catch(n){}try{sessionStorage.setItem(Iy,JSON.stringify(e))}catch(a){}return e}(),r=h(h({},a),t.label||{}),i=function(e,t,n){const a=(new Date).toISOString().slice(0,10),r=n?Object.keys(n).sort().map(e=>"".concat(e,"=").concat(n[e])).join("|"):"";return"".concat(a,"|").concat(e,"|").concat(t,"|").concat(r)}(e,n,r);if(function(e){try{const t=sessionStorage.getItem(Ty);return!!t&&t.split("\n").includes(e)}catch(t){return!1}}(i))return;!function(e){try{const t=sessionStorage.getItem(Ty)||"",n=t?t.split("\n"):[];n.push(e),n.length>500&&n.splice(0,n.length-500),sessionStorage.setItem(Ty,n.join("\n"))}catch(t){}}(i);const s={event:e,path:n,anon_id:Vy(),label:r,referrer:("undefined"!==typeof document?document.referrer:"").slice(0,400)||null};try{Ki.post(Py,s,{timeout:3e3}).catch(()=>{})}catch(o){}}function qy(e,t){if("undefined"===typeof document||!t)return;const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"property":"name";let a=document.head.querySelector("meta[".concat(n,'="').concat(e,'"]'));a||(a=document.createElement("meta"),a.setAttribute(n,e),a.setAttribute("data-managed","page-meta"),document.head.appendChild(a)),a.setAttribute("content",t)}function Uy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.useEffect)(()=>
2{if("undefined"===typeof document)return;const t=e.title,n=e.description,a=e.canonical,r=e.robots,i=e.referrer,s=e.ogTitle,o=e.ogDescription,l=e.ogImage;if(t&&(document.title=t),n&&(qy("description",n),qy("og:description",o||n,!0),qy("twitter:description",o||n)),t&&(qy("og:title",s||t,!0),qy("twitter:title",s||t)),a){const e=a.startsWith("http")?a:"".concat("https://getaros.ai").concat(a.startsWith("/")?a:"/".concat(a));!function(e){if("undefined"===typeof document||!e)return;let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),t.setAttribute("data-managed","page-meta"),document.head.appendChild(t)),t.setAttribute("href",e)}(e),qy("og:url",e,!0)}r&&qy("robots",r),i&&function(e){if("undefined"===typeof document||!e)return;let t=document.head.querySelector('meta[name="referrer"]');t||(t=document.createElement("meta"),t.setAttribute("name","referrer"),t.setAttribute("data-managed","page-meta"),document.head.appendChild(t)),t.setAttribute("content",e)}(i),l&&(qy("og:image",l,!0),qy("twitter:image",l))},[e.title,e.description,e.canonical,e.robots,e.referrer,e.ogTitle,e.ogDescription,e.ogImage])}const Wy="#041C3A",Yy="#F3F4F6",Ky="#6B7280",Gy="#374151";function $y(e){let t=e.minimal,n=void 0!==t&&t;return(0,Pe.jsxs)("header",{className:"sticky top-0 z-40 bg-white/85 backdrop-blur supports-[backdrop-filter]:bg-white/70 border-b",style:{borderColor:Yy},"data-testid":"marketing-topnav",children:[(0,Pe.jsx)("a",{href:"#main",className:"sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:bg-white focus:px-3 focus:py-2 focus:rounded focus:z-50 text-sm",children:"Skip to main content"}),(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 h-16 flex items-center justify-between",children:[(0,Pe.jsx)(ls,{to:"/",size:26}),!n&&(0,Pe.jsxs)("nav",{className:"hidden md:flex items-center gap-8 text-sm font-brand",style:{color:Gy},children:[(0,Pe.jsx)("a",{href:"/#how-it-works",className:"hover:text-[#041C3A] transition-colors","data-testid":"marketing-nav-how",children:"How it works"}),(0,Pe.jsx)("a",{href:"/platform",className:"hover:text-[#041C3A] transition-colors","data-testid":"marketing-nav-platform",children:"Platform"}),(0,Pe.jsx)("a",{href:"/trust",className:"hover:text-[#041C3A] transition-colors","data-testid":"marketing-nav-trust",children:"Trust"}),(0,Pe.jsx)("a",{href:"/pricing",className:"hover:text-[#041C3A] transition-colors","data-testid":"marketing-nav-pricing",children:"Pricing"}),(0,Pe.jsx)("a",{href:"/#faq",className:"hover:text-[#041C3A] transition-colors","data-testid":"marketing-nav-faq",children:"FAQ"})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("a",{href:"/login",className:"hidden sm:inline text-sm font-brand hover:text-[#041C3A] transition-colors",style:{color:Gy},children:"Sign in"}),(0,Pe.jsx)("a",{href:"/register",children:(0,Pe.jsx)(Lo,{className:"text-white font-brand font-medium px-5 transition-all hover:-translate-y-0.5",style:{background:Wy,borderRadius:12},"data-testid":"marketing-nav-cta",children:"Start free trial"})})]})]})]})}function Qy(){return(0,Pe.jsxs)("footer",{className:"bg-white","data-testid":"marketing-footer",children:[(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 py-14 grid sm:grid-cols-12 gap-10",children:[(0,Pe.jsxs)("div",{className:"sm:col-span-5",children:[(0,Pe.jsx)(ls,{to:"/",size:26}),(0,Pe.jsx)("p",{className:"mt-4 text-sm leading-relaxed max-w-sm font-brand",style:{color:Gy},children:"An AI hiring assistant that helps small teams see the right candidates sooner \u2014 and give every applicant a real answer."})]}),(0,Pe.jsxs)("div",{className:"sm:col-span-7 grid grid-cols-2 sm:grid-cols-4 gap-6 text-sm font-brand",children:[(0,Pe.jsxs)(Xy,{title:"Product",children:[(0,Pe.jsx)("a",{href:"/#how-it-works",className:"block hover:text-[#041C3A]",style:{color:Gy},children:"How it works"}),(0,Pe.jsx)("a",{href:"/platform",className:"block hover:text-[#041C3A]",style:{color:Gy},children:"Platform"}),(0,Pe.jsx)("a",{href:"/pricing",className:"block hover:text-[#041C3A]",style:{color:Gy},children:"Pricing"})]}),(0,Pe.jsxs)(Xy,{title:"Company",children:[(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-contact",children:"Contact"}),(0,Pe.jsx)("a",{href:"/#faq",className:"block hover:text-[#041C3A]",style:{color:Gy},children:"FAQ"})]}),(0,Pe.jsxs)(Xy,{title:"Legal",children:[(0,Pe.jsx)("a",{href:"/privacy",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-privacy",children:"Privacy"}),(0,Pe.jsx)("a",{href:"/terms",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-terms",children:"Terms"}),(0,Pe.jsx)("a",{href:"/trust",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-trust",children:"Trust & Security"})]}),(0,Pe.jsxs)(Xy,{title:"Get started",children:[(0,Pe.jsx)("a",{href:"/register",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-start-trial",children:"Start free trial"}),(0,Pe.jsx)("a",{href:"/pricing",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-pricing",children:"View pricing"}),(0,Pe.jsx)("a",{href:"/for-candidates",className:"block hover:text-[#041C3A]",style:{color:Gy},"data-testid":"footer-candidate-access",children:"Candidate access"})]})]})]}),(0,Pe.jsx)("div",{className:"border-t",style:{borderColor:Yy},children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 py-6 text-xs flex items-center justify-between font-brand",style:{color:Ky},children:[(0,Pe.jsxs)("div",{children:["\xa9 ",(new Date).getFullYear()," AROS. All rights reserved."]}),(0,Pe.jsx)("div",{className:"font-mono",children:"v1.0"})]})})]})}function Xy(e){let t=e.title,n=e.children;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-3",style:{color:Ky},children:t}),(0,Pe.jsx)("div",{className:"space-y-2",children:n})]})}function Jy(e){let t=e.children;return(0,Pe.jsxs)("div",{className:"min-h-screen bg-white",style:{color:Wy},children:[(0,Pe.jsx)($y,{}),(0,Pe.jsx)("main",{children:t}),(0,Pe.jsx)(Qy,{})]})}const ej="#041C3A",tj="#0F4FA8",nj="#374151",aj="#6B7280",rj="#F8FAFC",ij="#E5E7EB";function sj(){return Uy({title:"AROS | Evidence-Based Hiring",description:"Make hiring decisions with evidence instead of instinct. Discover skills, uncover potential, and hire with confidence.",canonical:"/",robots:"index,follow",ogImage:"https://getaros.ai/brand/og.jpg"}),(0,o.useEffect)(()=>{zy("page_viewed",{path:"/"});const e=function(){if("undefined"===typeof window)return()=>{};const e=[25,50,75,100],t=new Set;let n=!1;const a=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;const a=document.documentElement,r=a.scrollHeight-a.clientHeight||1,i=Math.round(window.scrollY/r*100);for(const n of e)i>=n&&!t.has(n)&&(t.add(n),zy("scroll_depth_reached",{label:{depth:String(n)}}))}))};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)}();return e},[]),(0,Pe.jsxs)("div",{className:"min-h-screen",style:{background:"white",color:"#0F172A"},children:[(0,Pe.jsx)($y,{}),(0,Pe.jsxs)("main",{id:"main",children:[(0,Pe.jsx)(cj,{}),(0,Pe.jsx)(dj,{}),(0,Pe.jsx)(uj,{}),(0,Pe.jsx)(mj,{}),(0,Pe.jsx)(pj,{}),(0,Pe.jsx)(hj,{}),(0,Pe.jsx)(fj,{}),(0,Pe.jsx)(xj,{}),(0,Pe.jsx)(gj,{}),(0,Pe.jsx)(vj,{}),(0,Pe.jsx)(bj,{}),(0,Pe.jsx)(yj,{})]}),(0,Pe.jsx)(Qy,{})]})}function oj(e){let t=e.id,n=e.className,a=void 0===n?"":n,r=e.background,i=void 0===r?"white":r,s=e.children,o=e.ariaLabel;return(0,Pe.jsx)("section",{id:t,"aria-labelledby":o,className:"px-6 lg:px-8 py-20 lg:py-24 ".concat(a),style:{background:i},children:s})}function lj(e){let t=e.children,n=e.color,a=void 0===n?aj:n,r=e.testid;return(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:a},"data-testid":r,children:t})}function cj(){return(0,Pe.jsx)(oj,{background:"white",ariaLabel:"hero-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto","data-testid":"landing-hero",children:[(0,Pe.jsx)(lj,{color:tj,testid:"hero-eyebrow",children:"AI Hiring Assistant"}),(0,Pe.jsxs)("h1",{id:"hero-heading",className:"font-brand font-extrabold text-4xl sm:text-5xl lg:text-6xl tracking-[-0.025em] leading-[1.05] mt-4",style:{color:ej},"data-testid":"hero-headline",children:["See the whole person. ",(0,Pe.jsx)("br",{className:"hidden sm:block"}),"Hire the ",(0,Pe.jsx)("span",{style:{color:tj},children:"right one"}),"."]}),(0,Pe.jsx)("p",{className:"mt-6 text-lg sm:text-xl leading-relaxed max-w-2xl font-brand",style:{color:nj},"data-testid":"hero-sub",children:"Whether you're hiring your first employee or your thousandth, AROS helps you see the whole person behind every application \u2014 the evidence, context, and story a r\xe9sum\xe9 alone can't show \u2014 so every hire feels clear and confident."}),(0,Pe.jsxs)("div",{className:"mt-9 flex flex-wrap items-center gap-3","data-testid":"hero-ctas",children:[(0,Pe.jsx)(Yn,{to:"/register",onClick:()=>zy("hero_primary_cta_clicked"),children:(0,Pe.jsxs)(Lo,{className:"text-white font-brand font-medium px-6 h-12 text-base transition-all hover:-translate-y-0.5",style:{background:ej,borderRadius:10},"data-testid":"hero-primary-cta",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:18,weight:"bold",className:"ml-2"})]})}),(0,Pe.jsx)("a",{href:"#how-it-works","data-testid":"hero-secondary-cta",onClick:()=>zy("hero_secondary_cta_clicked"),children:(0,Pe.jsxs)(Lo,{variant:"ghost",className:"font-brand font-medium h-12 px-4 text-base",style:{color:ej},children:["See how it works",(0,Pe.jsx)(ny,{size:16,weight:"bold",className:"ml-2"})]})})]}),(0,Pe.jsxs)("div",{className:"mt-10 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm font-brand",style:{color:aj},"data-testid":"hero-trust-line",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(iy,{size:16,weight:"duotone",style:{color:tj}})," Evidence-first"]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(ly,{size:16,weight:"duotone",style:{color:tj}})," Score-free"]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(uy,{size:16,weight:"duotone",style:{color:tj}})," Human always in control"]})]}),(0,Pe.jsx)("div",{className:"mt-6 text-[13px] font-brand",style:{color:aj},"data-testid":"hero-language-contract",children:"AI proposes. Recruiters validate. Hiring managers decide."})]})})}function dj(){const e=[{icon:hy,title:"Resume overload",body:"Too many resumes, not enough time to read them well."},{icon:gy,title:"Slow decisions",body:"Candidates hear back weeks after they applied \u2014 or not at all."},{icon:yy,title:"Poor communication",body:"Applicants sit in the dark, then a form rejection. Trust breaks."},{icon:Eg,title:"Missed talent",body:"Strong candidates get buried under keyword matches."},{icon:Ny,title:"Hiring risk",body:"One bad hire costs more than months of good decisions saved."}];return(0,Pe.jsx)(oj,{background:rj,ariaLabel:"problem-heading",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto","data-testid":"landing-problem",children:[(0,Pe.jsx)(lj,{children:"Why hiring is hard"}),(0,Pe.jsx)("h2",{id:"problem-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3 max-w-2xl",style:{color:ej},children:"Traditional hiring makes it hard to hire well."}),(0,Pe.jsx)("p",{className:"mt-4 max-w-2xl text-base leading-relaxed font-brand",style:{color:nj},children:"Most tools were built for volume, not for care. Small teams end up doing everything by hand, and it still isn't enough."}),(0,Pe.jsx)("div",{className:"mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
2p-4","data-testid":"problem-grid",children:e.map((e,t)=>(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-5 h-full",style:{border:"1px solid ".concat(ij)},"data-testid":"problem-tile-".concat(t+1),children:[(0,Pe.jsx)(e.icon,{size:22,weight:"duotone",style:{color:tj}}),(0,Pe.jsx)("div",{className:"mt-3 font-brand font-semibold text-[15px]",style:{color:ej},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed",style:{color:nj},children:e.body})]},e.title))})]})})}function uj(){return(0,Pe.jsx)(oj,{id:"how-it-works",background:"white",ariaLabel:"how-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto","data-testid":"landing-how",children:[(0,Pe.jsx)(lj,{children:"How AROS works"}),(0,Pe.jsx)("h2",{id:"how-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"Evidence-first hiring, from job to Decision Packet."}),(0,Pe.jsx)("p",{className:"mt-4 text-base leading-relaxed font-brand",style:{color:nj},children:"AI proposes. Recruiters validate. Hiring managers decide."}),(0,Pe.jsx)("p",{className:"mt-3 text-base leading-relaxed font-brand max-w-2xl",style:{color:nj},children:"No spreadsheets. No lost r\xe9sum\xe9s. No trying to remember what someone said two weeks ago. AROS keeps every candidate, note, and interview together \u2014 so you can see the whole person, not just the paper."}),(0,Pe.jsx)("ol",{className:"mt-10 space-y-4","data-testid":"how-steps",children:[{n:1,title:"Create a job",body:"Paste a description or a short brief. AROS drafts the details you can edit."},{n:2,title:"Bring your candidates",body:"Paste a stack of r\xe9sum\xe9s or upload a folder of PDFs. AROS parses skills, history, and evidence in one place."},{n:3,title:"AI proposes context you'd miss",body:"Career transitions, returnships, mismatched fits \u2014 surfaced with evidence from what each candidate actually submitted."},{n:4,title:"Recruiters validate every finding",body:"Confirm in interview, dismiss, or flag for follow-up. Nothing advances on the AI's word alone."},{n:5,title:"Hiring managers resolve the calls",body:"When recruiters disagree, the manager sees the full timeline and decides. Every step is auditable."},{n:6,title:"Ship a Decision Packet, not a score",body:"Every hire \u2014 and every no-hire \u2014 ends with an evidence-first packet. AROS never makes the decision."}].map(e=>(0,Pe.jsxs)("li",{className:"rounded-xl bg-white p-5 flex items-start gap-5",style:{border:"1px solid ".concat(ij)},"data-testid":"how-step-".concat(e.n),children:[(0,Pe.jsx)("div",{className:"shrink-0 w-9 h-9 rounded-full flex items-center justify-center font-brand font-bold text-sm",style:{background:ej,color:"white"},children:e.n}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-brand font-semibold text-[15px]",style:{color:ej},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1 text-sm leading-relaxed",style:{color:nj},children:e.body})]})]},e.n))})]})})}function mj(){const e=[{icon:Cg,title:"AI Hiring Summary",body:"A per-job recap of who to talk to next \u2014 and why.",href:"/platform/ai-hiring-summary"},{icon:Ey,title:"Candidate Intelligence",body:"Skills that match, skills that don't, and grounded questions to ask.",href:"/platform/candidate-intelligence"},{icon:hy,title:"Category Pipeline",body:"Three clear buckets \u2014 no numeric scores, no ranking games.",href:"/platform/category-pipeline"},{icon:Cy,title:"Interview Intelligence",body:"Interview and behavioural questions drafted from the r\xe9sum\xe9 and the job.",href:"/platform/interview-intelligence"},{icon:My,title:"Outcome Intelligence",body:"AROS learns from every hire and every closure \u2014 and gets sharper over time.",href:"/platform/outcome-intelligence"},{icon:Hy,title:"Trust & Security",body:"Data isolated by design. Explainable AI. Human-approved every step.",href:"/platform/trust-security"}];return(0,Pe.jsx)(oj,{id:"product",background:rj,ariaLabel:"product-heading",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto","data-testid":"landing-product",children:[(0,Pe.jsx)(lj,{children:"The product"}),(0,Pe.jsx)("h2",{id:"product-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3 max-w-3xl",style:{color:ej},children:"Everything you need to hire well \u2014 none of the ATS clutter."}),(0,Pe.jsx)("div",{className:"mt-10 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4","data-testid":"product-grid",children:e.map((e,t)=>{const n=e.href.startsWith("/"),a=n?Yn:"a",r=n?{to:e.href}:{href:e.href};return(0,Pe.jsxs)(a,h(h({},r),{},{className:"group rounded-xl bg-white p-6 transition-all hover:-translate-y-0.5 hover:shadow-sm block",style:{border:"1px solid ".concat(ij)},"data-testid":"product-card-".concat(t+1),children:[(0,Pe.jsx)(e.icon,{size:24,weight:"duotone",style:{color:tj}}),(0,Pe.jsx)("div",{className:"mt-4 font-brand font-semibold text-lg",style:{color:ej},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed",style:{color:nj},children:e.body}),(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-brand font-semibold inline-flex items-center gap-1 transition-transform group-hover:translate-x-0.5",style:{color:tj},children:["Learn more ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})]}),e.title)})})]})})}function pj(){return(0,Pe.jsx)(oj,{background:"white",ariaLabel:"different-heading",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto","data-testid":"landing-different",children:[(0,Pe.jsx)(lj,{children:"Different by design"}),(0,Pe.jsx)("h2",{id:"different-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"AROS is not another ATS."}),(0,Pe.jsxs)("p",{className:"mt-4 max-w-2xl text-base leading-relaxed font-brand",style:{color:nj},children:["We built AROS around a different question. Not ",(0,Pe.jsx)("em",{children:"where is this candidate in the workflow?"}),"but ",(0,Pe.jsx)("em",{children:"who deserves attention next \u2014 and why?"})]}),(0,Pe.jsxs)("div",{className:"mt-10 rounded-2xl overflow-hidden",style:{border:"1px solid ".concat(ij)},"data-testid":"compare-table",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 divide-x",style:{borderColor:ij},children:[(0,Pe.jsx)("div",{className:"p-5",style:{background:"#F3F4F6"},children:(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:aj},children:"The old way"})}),(0,Pe.jsx)("div",{className:"p-5",style:{background:ej},children:(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:"rgba(255,255,255,0.7)"},children:"The AROS way"})})]}),[{old:"Stores resumes",aros:"Creates hiring intelligence."},{old:"Tracks workflow",aros:"Helps you make better decisions."},{old:"Requires manual screening",aros:"Surfaces where to begin."},{old:"Ranks candidates 0\u2013100",aros:"Organizes evidence \u2014 no black-box grading."},{old:"Impersonal candidate emails",aros:"Warm, drafted-for-you outreach at every stage."},{old:"Data locked in silos",aros:"Learns from your hiring outcomes \u2014 privately."}].map((e,t)=>(0,Pe.jsxs)("div",{className:"grid grid-cols-2 divide-x border-t",style:{borderColor:ij},"data-testid":"compare-row-".concat(t+1),children:[(0,Pe.jsx)("div",{className:"p-5 text-sm sm:text-base font-brand",style:{color:nj},children:e.old}),(0,Pe.jsx)("div",{className:"p-5 text-sm sm:text-base font-brand font-semibold",style:{color:ej},children:e.aros})]},t))]})]})})}function hj(){const e=[{icon:uy,title:"Human in control",body:"Every consequential action is a human click. AROS drafts; you decide."},{icon:ly,title:"AI explains itself",body:"Every recommendation cites evidence from the r\xe9sum\xe9 and the job description."},{icon:iy,title:"Data stays yours",body:"Every organization runs in an isolated
2workspace. No cross-customer leakage."},{icon:Hy,title:"Privacy by default",body:"Candidate data is never sold or used to train general AI models."}];return(0,Pe.jsx)(oj,{background:rj,ariaLabel:"trust-heading",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto","data-testid":"landing-trust-intro",children:[(0,Pe.jsx)(lj,{children:"Trust & responsible AI"}),(0,Pe.jsx)("h2",{id:"trust-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3 max-w-3xl",style:{color:ej},children:"Built for responsible AI hiring."}),(0,Pe.jsx)("p",{className:"mt-4 max-w-3xl text-base leading-relaxed font-brand",style:{color:nj},children:"AROS helps employers make better hiring decisions while keeping people in control. AI provides evidence-based recommendations, but every hiring decision remains human. Your organization's data stays isolated, recommendations are transparent, and candidate information is handled with care."}),(0,Pe.jsx)("div",{className:"mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4","data-testid":"trust-pillars",children:e.map((e,t)=>(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-5",style:{border:"1px solid ".concat(ij)},"data-testid":"trust-pillar-".concat(t+1),children:[(0,Pe.jsx)(e.icon,{size:22,weight:"duotone",style:{color:tj}}),(0,Pe.jsx)("div",{className:"mt-3 font-brand font-semibold text-[15px]",style:{color:ej},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed",style:{color:nj},children:e.body})]},e.title))}),(0,Pe.jsx)("div",{className:"mt-8",children:(0,Pe.jsxs)(Yn,{to:"/trust",onClick:()=>zy("trust_link_clicked",{label:{target:"/trust"}}),className:"inline-flex items-center gap-2 text-sm font-brand font-semibold transition-colors hover:translate-x-0.5",style:{color:tj},"data-testid":"trust-cta-link",children:["Learn about our Trust & Security approach",(0,Pe.jsx)(eg,{size:16,weight:"bold"})]})})]})})}function fj(){return(0,Pe.jsx)(oj,{background:"white",ariaLabel:"candidate-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto","data-testid":"landing-candidate",children:[(0,Pe.jsx)(lj,{children:"Every candidate matters"}),(0,Pe.jsx)("h2",{id:"candidate-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"A better employer experience creates a better candidate experience."}),(0,Pe.jsx)("p",{className:"mt-4 text-base leading-relaxed font-brand",style:{color:nj},children:"Candidates never log in to AROS. Instead, AROS drafts every outbound message and hands you the send button \u2014 so nobody gets ghosted."}),(0,Pe.jsx)("div",{className:"mt-8 grid grid-cols-1 sm:grid-cols-3 gap-4","data-testid":"candidate-list",children:[{title:"Clear status updates",body:"Applicants aren't left guessing where things stand \u2014 every stage is tracked and shareable."},{title:"Warm outcome emails",body:"Templates are ready. Connect your own Resend key on setup and every candidate hears back \u2014 not just the ones who advance."},{title:"Optional useful feedback",body:"Late-stage candidates can receive respectful notes that help their next search \u2014 you review before anything sends."}].map((e,t)=>(0,Pe.jsxs)("div",{className:"rounded-xl p-5",style:{background:rj,border:"1px solid ".concat(ij)},"data-testid":"candidate-item-".concat(t+1),children:[(0,Pe.jsx)(Yf,{size:18,weight:"fill",style:{color:"#16A34A"}}),(0,Pe.jsx)("div",{className:"mt-3 font-brand font-semibold text-[15px]",style:{color:ej},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed",style:{color:nj},children:e.body})]},e.title))})]})})}function xj(){return(0,Pe.jsx)(oj,{background:ej,ariaLabel:"future-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto text-white","data-testid":"landing-future",children:[(0,Pe.jsx)(lj,{color:"rgba(255,255,255,0.55)",children:"The direction we're heading"}),(0,Pe.jsx)("h2",{id:"future-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",children:"Hiring platforms should learn from outcomes \u2014 not just store resumes."}),(0,Pe.jsx)("p",{className:"mt-4 text-base sm:text-lg leading-relaxed font-brand",style:{color:"rgba(255,255,255,0.78)"},children:"AROS is heading toward a future where teams can benchmark their own hiring against reality \u2014 privately, on their terms. We're building it slowly and honestly, one signal at a time."}),(0,Pe.jsx)("div",{className:"mt-8 flex flex-wrap gap-2","data-testid":"future-chips",children:["Job Intelligence","Market Intelligence","AI normalization","Hiring insights","Benchmarking"].map(e=>(0,Pe.jsx)("span",{className:"inline-flex items-center px-3 py-1.5 rounded-full text-[12px] font-brand font-medium",style:{background:"rgba(255,255,255,0.10)",color:"white",border:"1px solid rgba(255,255,255,0.20)"},children:e},e))}),(0,Pe.jsx)("p",{className:"mt-6 text-sm font-brand",style:{color:"rgba(255,255,255,0.55)"},children:"We won't overpromise, and we won't ship anything that breaks the trust contract."})]})})}function gj(){return(0,Pe.jsx)(oj,{background:"white",ariaLabel:"proof-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto text-center","data-testid":"landing-proof",children:[(0,Pe.jsx)(lj,{children:"Early signal"}),(0,Pe.jsx)("h2",{id:"proof-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"What early users tell us."}),(0,Pe.jsx)("p",{className:"mt-4 text-base leading-relaxed font-brand max-w-2xl mx-auto",style:{color:nj},children:"Testimonials from early customers will land here as more teams onboard. We won't publish quotes we didn't earn."}),(0,Pe.jsx)("div",{className:"mt-10 grid grid-cols-1 sm:grid-cols-3 gap-4 text-left","data-testid":"proof-grid",children:[1,2,3].map(e=>(0,Pe.jsx)("div",{className:"rounded-xl p-5 h-40 flex items-end",style:{border:"1px dashed ".concat(ij),background:rj},"data-testid":"proof-slot-".concat(e),children:(0,Pe.jsx)("div",{className:"text-xs font-brand",style:{color:aj},children:"A customer's quote will live here."})},e))}),(0,Pe.jsx)("div",{className:"mt-8",children:(0,Pe.jsxs)(Yn,{to:"/register",className:"inline-flex items-center gap-2 text-sm font-brand font-semibold hover:translate-x-0.5 transition-transform",style:{color:tj},"data-testid":"proof-early-cta",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:16,weight:"bold"})]})})]})})}function vj(){const e=(0,o.useRef)(null);return(0,o.useEffect)(()=>
2{if(e.current)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"===typeof window||!e)return()=>{};let a=!1;const r=new IntersectionObserver(e=>{for(const i of e)!a&&i.isIntersecting&&i.intersectionRatio>=.5&&(a=!0,zy(t,{label:n}),r.disconnect())},{threshold:.5});return r.observe(e),()=>r.disconnect()}(e.current,"pricing_viewed")},[]),(0,Pe.jsx)(oj,{id:"pricing",background:rj,ariaLabel:"pricing-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto","data-testid":"landing-pricing",ref:e,children:[(0,Pe.jsx)(lj,{children:"Simple, honest pricing"}),(0,Pe.jsx)("h2",{id:"pricing-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"Start free for 30 days. Upgrade when you're ready."}),(0,Pe.jsx)("p",{className:"mt-4 max-w-2xl text-base leading-relaxed font-brand",style:{color:nj},children:"30-day free trial on every paid plan. No credit card required at signup. Cancel anytime, one click."}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-4","data-testid":"pricing-tiles",children:[(0,Pe.jsxs)("div",{className:"rounded-2xl bg-white p-6",style:{border:"1px solid ".concat(ij)},"data-testid":"pricing-starter-tile",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:aj},children:"Starter"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsx)("span",{className:"font-brand font-extrabold text-4xl",style:{color:ej},children:"$99"}),(0,Pe.jsx)("span",{className:"text-sm font-brand",style:{color:aj},children:"/month"})]}),(0,Pe.jsxs)("ul",{className:"mt-4 space-y-2 text-sm font-brand",style:{color:nj},children:[(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Everything in the 30-day free trial"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Full AI Hiring Summary + Candidate Intelligence"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Warm candidate emails via Resend"]})]})]}),(0,Pe.jsxs)("div",{className:"rounded-2xl p-6 relative",style:{background:ej,color:"white"},"data-testid":"pricing-growth-tile",children:[(0,Pe.jsx)("div",{className:"absolute -top-3 right-4 px-2 py-0.5 rounded-full text-[10px] font-mono uppercase tracking-[0.18em] font-semibold",style:{background:"#7BB5FF",color:ej},children:"Most popular"}),(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:"rgba(255,255,255,0.6)"},children:"Growth"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsx)("span",{className:"font-brand font-extrabold text-4xl",children:"$299"}),(0,Pe.jsx)("span",{className:"text-sm font-brand",style:{color:"rgba(255,255,255,0.65)"},children:"/month"})]}),(0,Pe.jsxs)("ul",{className:"mt-4 space-y-2 text-sm font-brand",style:{color:"rgba(255,255,255,0.85)"},children:[(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#7BB5FF",marginTop:3}})," Everything in Starter"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#7BB5FF",marginTop:3}})," More active jobs & teammate seats"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#7BB5FF",marginTop:3}})," Priority support"]})]})]}),(0,Pe.jsxs)("div",{className:"rounded-2xl bg-white p-6",style:{border:"1px solid ".concat(ij)},"data-testid":"pricing-business-tile",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:aj},children:"Business"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsx)("span",{className:"font-brand font-extrabold text-4xl",style:{color:ej},children:"$799"}),(0,Pe.jsx)("span",{className:"text-sm font-brand",style:{color:aj},children:"/month"})]}),(0,Pe.jsxs)("ul",{className:"mt-4 space-y-2 text-sm font-brand",style:{color:nj},children:[(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Everything in Growth"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Multi-workspace & advanced analytics"]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",style:{color:"#16A34A",marginTop:3}})," Dedicated onboarding"]})]})]})]}),(0,Pe.jsx)("div",{className:"mt-8 rounded-xl bg-white p-5",style:{border:"1px dashed ".concat(ij)},"data-testid":"landing-packs-strip",children:(0,Pe.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:tj},children:"Optional add-ons"}),(0,Pe.jsx)("div",{className:"font-brand font-semibold text-base mt-1",style:{color:ej},children:"Candidate Review Packs"}),(0,Pe.jsx)("div",{className:"text-xs font-brand mt-1",style:{color:nj},children:"One-time add-ons for active paid workspaces. Never expire."})]}),(0,Pe.jsxs)("div",{className:"flex gap-3 text-sm font-brand",children:[(0,Pe.jsxs)("div",{"data-testid":"landing-pack-100",children:[(0,Pe.jsx)("strong",{style:{color:ej},children:"100"})," reviews \xb7 ",(0,Pe.jsx)("strong",{children:"$29"})]}),(0,Pe.jsxs)("div",{"data-testid":"landing-pack-250",children:[(0,Pe.jsx)("strong",{style:{color:ej},children:"250"})," reviews \xb7 ",(0,Pe.jsx)("strong",{children:"$69"})]}),(0,Pe.jsxs)("div",{"data-testid":"landing-pack-500",children:[(0,Pe.jsx)("strong",{style:{color:ej},children:"500"})," reviews \xb7 ",(0,Pe.jsx)("strong",{children:"$129"})]})]})]})}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3 items-center",children:[(0,Pe.jsxs)(Yn,{to:"/register",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-md font-brand font-semibold text-sm",style:{background:ej,color:"white"},"data-testid":"landing-pricing-primary-cta",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:16,weight:"bold"})]}),(0,Pe.jsx)(Yn,{to:"/pricing",className:"text-sm font-brand font-semibold",style:{color:tj},"data-testid":"landing-pricing-view-details",children:"View full pricing \u2192"})]}),(0,Pe.jsx)("p",{className:"mt-4 text-xs font-brand",style:{color:aj},children:"No credit card required to start. Cancel anytime, one click."})]})})}function bj(){const e=[{q:"Does AROS post my job to LinkedIn, Indeed, or other job boards?",a:"Not today. AROS is built for teams who already have a candidate pipeline \u2014 paste r\xe9sum\xe9s, upload a folder of PDFs, or forward exports from wherever you're already sourcing (LinkedIn, Indeed, referrals, career-fair leads). Public job syndication is on the roadmap; we didn't want to ship it half-built."},{q:"What is AROS?",a:"AROS is an AI hiring assistant for small teams. Bring the candidates you're already sourcing, and AROS reviews every r\xe9sum\xe9, groups candidates into clear categories, and helps you decide who to talk to next \u2014 with reasons you can see."},{q:"How is AROS different from an ATS?",a:"An ATS stores r\xe9sum\xe9s and tracks workflow. AROS reads every r\xe9sum\xe9 you bring in, categorizes candidates against the role, drafts interview questions from real evidence, and drafts warm outbound emails for every applicant so nobody gets ghosted (once you connect your Resend key on setup). The workflow is the byproduct, not the product."},{q:"Is AI making hiring decisions?",a:"No. AROS organizes evidence and cites where each observation came from. Every consequential action \u2014 invite, interview, extend, reject \u2014 is a human click. We don't auto-send anything to candidates without your review."},{q:"Is my data secure?",a:"Yes. Every organization runs in an isolated
2workspace. Candidate data is never sold, licensed, or used to train general AI models. Full details are on our Trust page."},{q:"Who is AROS for?",a:"Small business owners, recruiters, and hiring managers running roughly 1\u201315 hires a year. If your team is spending nights reading resumes, we built AROS for you."},{q:"How much does AROS cost?",a:"Every paid plan starts with a 30-day free trial \u2014 no credit card required. Starter is $99/month, Growth is $299/month, Business is $799/month. Candidate Review Packs are optional one-time add-ons for active paid workspaces: 100 reviews for $29, 250 for $69, 500 for $129."}];return(0,Pe.jsx)(oj,{id:"faq",background:"white",ariaLabel:"faq-heading",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto","data-testid":"landing-faq",children:[(0,Pe.jsx)(lj,{children:"Answers"}),(0,Pe.jsx)("h2",{id:"faq-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:ej},children:"Frequently asked questions."}),(0,Pe.jsx)($b,{type:"single",collapsible:!0,className:"mt-8","data-testid":"faq-accordion",onValueChange:t=>{if(t){var n;const a=parseInt(t.replace("item-",""),10),r=null===(n=e[a])||void 0===n?void 0:n.q;r&&zy("faq_item_expanded",{label:{question:r}})}},children:e.map((e,t)=>(0,Pe.jsxs)(Qb,{value:"item-".concat(t),"data-testid":"faq-item-".concat(t+1),children:[(0,Pe.jsx)(Xb,{className:"font-brand text-left text-[15px] font-semibold",style:{color:ej},children:e.q}),(0,Pe.jsx)(Jb,{className:"text-sm leading-relaxed font-brand",style:{color:nj},children:e.a})]},t))})]})})}function yj(){return(0,Pe.jsx)(oj,{background:rj,ariaLabel:"final-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto rounded-3xl p-10 sm:p-14 text-center",style:{background:ej,color:"white"},"data-testid":"landing-final-cta",children:[(0,Pe.jsx)(lj,{color:"rgba(255,255,255,0.55)",children:"Ready when you are"}),(0,Pe.jsx)("h2",{id:"final-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",children:"Great people deserve to be seen."}),(0,Pe.jsx)("p",{className:"mt-4 text-base sm:text-lg leading-relaxed font-brand max-w-xl mx-auto",style:{color:"rgba(255,255,255,0.78)"},children:"Try AROS free for 30 days. Post a job in five minutes. See what hiring feels like when you can see the whole person."}),(0,Pe.jsx)("div",{className:"mt-8 flex items-center justify-center",children:(0,Pe.jsx)(Yn,{to:"/register",onClick:()=>zy("final_cta_clicked"),children:(0,Pe.jsxs)(Lo,{className:"font-brand font-semibold px-6 h-12 text-base",style:{background:"white",color:ej,borderRadius:10},"data-testid":"final-cta-btn",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:18,weight:"bold",className:"ml-2"})]})})}),(0,Pe.jsx)("div",{className:"mt-6 text-xs font-brand",style:{color:"rgba(255,255,255,0.55)"},children:"No credit card required. Cancel anytime."})]})})}const jj="#041C3A",wj="#0F4FA8",Nj="#374151",Aj=e=>{let t=e.id,n=e.title,a=e.children;return(0,Pe.jsxs)("section",{id:t,className:"mt-10 scroll-mt-24","data-testid":"privacy-".concat(t),children:[(0,Pe.jsx)("h2",{className:"font-brand font-bold text-2xl tracking-[-0.022em]",style:{color:jj},children:n}),(0,Pe.jsx)("div",{className:"mt-3 space-y-3 text-[15px] leading-relaxed font-brand",style:{color:Nj},children:a})]})},kj=[["who-we-are","Who we are"],["what-we-collect","What we collect"],["how-we-use-it","How we use your information"],["legal-bases","Legal bases (EEA / UK)"],["sharing","Who we share data with"],["retention","How long we keep it"],["your-rights","Your rights and choices"],["security","Security"],["children","Children's data"],["international","International transfers"],["changes","Changes to this policy"],["contact","Contact and requests"]];function Ej(){return Uy({title:"Privacy Policy \xb7 AROS",description:"How AROS handles personal data \u2014 what we collect, how it's used, isolated by organization, and never sold or used to train general AI models.",canonical:"/privacy",robots:"index,follow"}),(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-16 lg:py-20","data-testid":"privacy-page",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:wj},children:"Privacy Policy"}),(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-4xl sm:text-5xl tracking-[-0.025em] mt-3",style:{color:jj},children:"How AROS handles your information"}),(0,Pe.jsx)("p",{className:"mt-5 text-lg leading-relaxed font-brand",style:{color:Nj},children:"AROS is in a validation / early-access phase. We collect the minimum information needed to evaluate the platform with you, communicate about the program, and keep our service secure. This page explains exactly what that means."}),(0,Pe.jsxs)("p",{className:"mt-3 text-sm font-brand",style:{color:Nj},children:["Effective date: ",(0,Pe.jsx)("strong",{children:"February 1, 2026"})," \xb7 Last updated: ",(0,Pe.jsx)("strong",{children:"February 6, 2026"})]}),(0,Pe.jsxs)("nav",{className:"mt-10 p-5 rounded-2xl",style:{background:"#F9FAFB",border:"1px solid #E5E7EB"},"aria-label":"On this page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#6B7280"},children:"On this page"}),(0,Pe.jsx)("ol",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 text-sm font-brand",children:kj.map((e,t)=>{let n=Ue(e,2),a=n[0],r=n[1];return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("a",{href:"#".concat(a),className:"hover:text-[#0F4FA8]",style:{color:Nj},children:[String(t+1).padStart(2,"0"),". ",r]})},a)})})]}),(0,Pe.jsx)(Aj,{id:"who-we-are",title:"1. Who we are",children:(0,Pe.jsx)("p",{children:"AROS (\u201cAROS\u201d, \u201cwe\u201d, \u201cus\u201d, or \u201cour\u201d) is a hiring coordination platform operated by the AROS team. This Privacy Policy describes how we
2collect, use, and protect personal information you share with us through our marketing site (getaros.ai and subdomains), our application, and any direct communications with our team."})}),(0,Pe.jsxs)(Aj,{id:"what-we-collect",title:"2. What we collect",children:[(0,Pe.jsx)("p",{children:(0,Pe.jsx)("strong",{children:"From the Early Access form on our public site:"})}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"Name"}),(0,Pe.jsx)("li",{children:"Work email"}),(0,Pe.jsx)("li",{children:"Company name"}),(0,Pe.jsx)("li",{children:"Job title"}),(0,Pe.jsx)("li",{children:"Approximate hires per year (optional)"}),(0,Pe.jsx)("li",{children:"Your biggest hiring challenge (optional, free text)"}),(0,Pe.jsx)("li",{children:"Your stated interest (early access / demo / Validation Program)"}),(0,Pe.jsx)("li",{children:"Submission timestamp, IP address, and browser user-agent (for abuse prevention)"})]}),(0,Pe.jsx)("p",{className:"pt-2",children:(0,Pe.jsx)("strong",{children:"If you become a customer or program participant, we additionally process:"})}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"Account information (email, hashed password, role, organisation)"}),(0,Pe.jsx)("li",{children:"Application content you create (job postings, hiring criteria, decision notes)"}),(0,Pe.jsxs)("li",{children:["Candidate data that ",(0,Pe.jsx)("em",{children:"your organisation"})," uploads or imports into AROS \u2014 see \u201cCandidate data processed on behalf of employers\u201d below"]}),(0,Pe.jsx)("li",{children:"Audit logs of significant actions taken within the platform"}),(0,Pe.jsxs)("li",{children:["Support ticket content sent to ",(0,Pe.jsx)("span",{className:"font-mono text-[13px]",children:"[email protected]"})," or our in-app help form"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"AROS Guide questions"})," \u2014 questions you ask our in-app AI assistant, the help articles we suggested back, and whether you escalated to a human. Used for product improvement."]}),(0,Pe.jsx)("li",{children:"Legal consent stamps \u2014 the timestamp + version of the Terms / Privacy policy you accepted at signup"})]}),(0,Pe.jsx)("p",{className:"pt-2",children:(0,Pe.jsx)("strong",{children:"From your use of our website:"})}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"Basic analytics (page views, referrers, device/browser type) via PostHog"}),(0,Pe.jsx)("li",{children:"Cookies strictly necessary for the site to function"})]}),(0,Pe.jsxs)("p",{className:"pt-2",children:[(0,Pe.jsx)("strong",{children:"Candidate data processed on behalf of employers:"})," when employers and recruiters upload candidate profiles, resumes, or applications to AROS, we act as a data processor on their behalf. The employer is the data controller for that information. Candidates should direct subject-access or deletion requests to the relevant employer in the first instance; we will assist that employer in fulfilling them."]})]}),(0,Pe.jsxs)(Aj,{id:"how-we-use-it",title:"3. How we use your information",children:[(0,Pe.jsx)("p",{children:"We use the information above only for the following purposes:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"To contact you about Early Access, demos, and the Validation Program"}),(0,Pe.jsx)("li",{children:"To evaluate fit between your hiring workflow and our roadmap"}),(0,Pe.jsx)("li",{children:"To operate and improve the AROS platform"}),(0,Pe.jsx)("li",{children:"To detect and prevent abuse, fraud, and security incidents"}),(0,Pe.jsx)("li",{children:"To comply with our legal and regulatory obligations"})]}),(0,Pe.jsxs)("p",{children:["We do ",(0,Pe.jsx)("strong",{children:"not"})," sell your personal information. We do not share Early Access submissions with third parties for marketing."]})]}),(0,Pe.jsxs)(Aj,{id:"legal-bases",title:"4. Legal bases (EEA / UK)",children:[(0,Pe.jsx)("p",{children:"If you are in the EEA or the UK, the legal bases on which we process your data are:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Consent"})," \u2014 when you submit the Early Access form, you consent to being contacted about the program. You can withdraw consent at any time."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Contract"})," \u2014 when you become a customer, processing is necessary to deliver the service you\u2019ve signed up for."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Legitimate interest"})," \u2014 for security, abuse prevention, and to improve the platform, balanced against your rights and expectations."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Legal obligation"})," \u2014 where applicable."]})]})]}),(0,Pe.jsxs)(Aj,{id:"sharing",title:"5. Who we share data with",children:[(0,Pe.jsx)("p",{children:"We share data only with the following categories of recipients, and only as needed:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Infrastru
2cture providers"})," \u2014 cloud hosting, database, and content delivery. These act as our processors under contractual data protection obligations."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Analytics"})," \u2014 PostHog for product analytics."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Email delivery"})," \u2014 Resend or equivalent, when we email you about the program or send transactional emails (welcome, setup links, closure communications)."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"AI / LLM provider"})," \u2014 questions you ask ",(0,Pe.jsx)("strong",{children:"AROS Guide"})," are sent to a third-party LLM provider (e.g. Anthropic Claude) along with the relevant excerpts of our public Help corpus. We do ",(0,Pe.jsx)("em",{children:"not"})," send your hiring data, candidate data, or audit logs to the LLM provider when you use AROS Guide."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Legal and safety"})," \u2014 if required by law, or to protect the rights and safety of AROS, our users, or the public."]})]})]}),(0,Pe.jsx)(Aj,{id:"retention",title:"6. How long we keep it",children:(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Early Access form submissions"})," \u2014 until you ask us to delete them, or 24 months after our last contact with you, whichever is sooner."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Account data"})," \u2014 for as long as you have an account with AROS, plus a short window for backup and audit log retention."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Audit logs"})," \u2014 up to 24 months, then aggregated or deleted."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Candidate data uploaded by employers"})," \u2014 retained per the controlling employer\u2019s instructions and their own retention policy."]})]})}),(0,Pe.jsxs)(Aj,{id:"your-rights",title:"7. Your rights and choices",children:[(0,Pe.jsx)("p",{children:"Depending on where you live, you have the following rights with respect to your data:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Access"})," \u2014 request a copy of the personal information we hold about you"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Correction"})," \u2014 ask us to fix inaccurate information"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Deletion"})," \u2014 ask us to delete your information, subject to legal retention obligations"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Restriction / objection"})," \u2014 limit or object to certain processing"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Portability"})," \u2014 receive your data in a portable format"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Withdraw consent"})," \u2014 at any time, with no penalty"]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Lodge a complaint"})," \u2014 with your local supervisory authority"]})]}),(0,Pe.jsxs)("p",{children:["To exercise any of these rights, email"," ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:wj},children:"[email protected]"}),". We respond within 30 days. For Early Access submissions specifically, telling us \u201cdelete my submission\u201d is enough \u2014 no verification ceremony required."]})]}),(0,Pe.jsx)(Aj,{id:"security",title:"8. Security",children:(0,Pe.jsx)("p",{children:"AROS uses industry-standard safeguards including TLS in transit, encryption at rest for sensitive fields, role-based access control, and audit logging. No system is perfectly secure; if we become aware of a breach that affects your data, we will notify you and the relevant authorities within the timeframes required by applicable law."})}),(0,Pe.jsx)(Aj,{id:"children",title:"9. Children's data",children:(0,Pe.jsx)("p",{children:"AROS is not intended for and does not knowingly collect personal information from individuals under 16. If you believe a child has provided us with information, contact us and we will delete it."})}),(0,Pe.jsx)(Aj,{id:"international",title:"10. International transfers",children:(0,Pe.jsx)("p",{children:"AROS is operated from the United States. If you are accessing the service from outside the US, your information may be transferred to, stored in, and processed in the US and other countries where we or our processors operate. Where required, we rely on appropriate safeguards (such as Standard Contractual Clauses)."})}),(0,Pe.jsx)(Aj,{id:"changes",title:"11. Changes to this policy",children:(0,Pe.jsx)("p",{children:"We may update this policy as the product evolves. Material changes will be announced via email to active program participants and via a notice on this page. The \u201cLast updated\u201d date at the top reflects the most recent revision."})}),(0,Pe.jsxs)(Aj,{id:"contact",title:"12. Contact and requests",children:[(0,Pe.jsx)("p",{children:"Questions, requests, or complaints about your data:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:["Email: ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:wj},children:"[email protected]"})]}),(0,Pe.jsxs)("li",{children:["General: ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:wj},children:"[email protected]"})]})]}),(0,Pe.jsx)("p",{className:"pt-2 text-xs",style:{color:"#6B7280"},children:"This policy is plain-English by design. It is not a substitute for legal advice in your jurisdiction. Counsel-reviewed terms will replace this notice before general availability."})]})]})})}const Dj="#041C3A",_j="#0F4FA8",Cj="#374151",Fj=e=>{let t=e.id,n=e.title,a=e.children;return(0,Pe.jsxs)("section",{id:t,className:"mt-10 scroll-mt-24","data-testid":"terms-".concat(t),children:[(0,Pe.jsx)("h2",{className:"font-brand font-bold text-2xl tracking-[-0.022em]",style:{color:Dj},children:n}),(0,Pe.jsx)("div",{className:"mt-3 space-y-3 text-[15px] leading-relaxed font-brand",style:{color:Cj},children:a})]})},Sj=[["agreement","Agreement to these terms"],["service-status","Service availability & no-guarantee status"],["eligibility","Who can use AROS"],["accounts","Accounts and access"],["acceptable-use","Acceptable use"],["customer-content","Customer content and candidate data"],["ip","Intellectual property"],["fees","Fees during the validation period"],["confidentiality","Confidentiality and feedback"],["warranties","Disclaimer of warranties"],["liability","Limitation of liability"],["indemnity","Indemnification"],["termination","Termination"],["changes","Changes to these terms"],["governing-law","Governing law"],["contact","Contact"]];function Mj(){return Uy({title:"Terms of Service \xb7 AROS",description:"AROS terms of service \u2014 acceptable use, IP ownership, no-guarantee language, and limitation of liability. Plain-English, not legal advice.",canonical:"/terms",robots:"index,follow"}),(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-16 lg:py-20","data-testid":"terms-page",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:_j},children:"Terms of Service"}),(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-4xl sm:text-5xl tracking-[-0.025em] mt-3",style:{color:Dj},children:"The rules of the road"}),(0,Pe.jsx)("p",{className:"mt-5 text-lg leading-relaxed font-brand",style:{color:Cj},children:"These Terms govern your access to and use of AROS during our early-access and validation phase. They're intentionally short. Counsel-reviewed terms will replace this notice before general availability."}),(0,Pe.jsxs)("p",{className:"mt-3 text-sm font-brand",style:{color:Cj},children:["Effective date: ",(0,Pe.jsx)("strong",{children:"February 1, 2026"})," \xb7 Last updated: ",(0,Pe.jsx)("strong",{children:"February 6, 2026"})]}),(0,Pe.jsxs)("nav",{className:"mt-10 p-5 rounded-2xl",style:{background:"#F9FAFB",border:"1px solid #E5E7EB"},"aria-label":"On this page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#6B7280"},children:"On this page"}),(0,Pe.jsx)("ol",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 text-sm font-brand",children:Sj.map((e,t)=>{let n=Ue(e,2),a=n[0],r=n[1];return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("a",{href:"#".concat(a),className:"hover:text-[#0F4FA8]",style:{color:Cj},children:[String(t+1).padStart(2,"0"),". ",r]})},a)})})]}),(0,Pe.jsx)(Fj,{id:"agreement",title:"1. Agreement to these terms",children:(0,Pe.jsx)("p",{children:"By registering for AROS, accepting an invitation to the platform, or otherwise using AROS, you agree to these Terms. If you are using AROS on behalf of an organisation, you confirm you have authority to bind that organisation, and \u201cyou\u201d refers to both you and that organisation."})}),(0,Pe.jsxs)(Fj,{id:"service-status",title:"2. Service availability & no-guarantee status",children:[(0,Pe.jsxs)("p",{children:["The service is provided ",(0,Pe.jsx)("strong",{children:"\u201cas is\u201d and \u201cas available\u201d"}),". Features may be added, changed, or removed without notice. AROS makes ",(0,Pe.jsx)("strong",{children:"no guarantees"})," of fitness for a particular purpose, uptime, output accuracy, hiring outcomes, or business results."]}),(0,Pe.jsxs)("p",{children:[(0,Pe.jsx)("strong",{children:"You are the decision-maker."})," AROS surfaces insights to assist your hiring process. It does not \u2014 and is not intended to \u2014 make hiring decisions on your behalf. You remain solely responsible for every hiring decision you make."]})]}),(0,Pe.jsx)(Fj,{id:"eligibility",title:"3. Who can use AROS",children:(0,Pe.jsx)("p",{children:"AROS is built for recruiters, hiring managers, HR team
2s, and candidates engaged in lawful hiring activity. You must be at least 16 years old to use the service. You must not use AROS if you are prohibited from doing so under applicable law."})}),(0,Pe.jsx)(Fj,{id:"accounts",title:"4. Accounts and access",children:(0,Pe.jsxs)("p",{children:["You are responsible for safeguarding your account credentials and for any activity under your account. Notify us promptly at ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:_j},children:"[email protected]"})," ","if you suspect unauthorised access."]})}),(0,Pe.jsxs)(Fj,{id:"acceptable-use",title:"5. Acceptable use",children:[(0,Pe.jsxs)("p",{children:["You agree ",(0,Pe.jsx)("strong",{children:"not"})," to:"]}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"Use AROS to discriminate against candidates on the basis of race, colour, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other protected characteristic"}),(0,Pe.jsx)("li",{children:"Use AROS to make fully-automated decisions about individuals where human review is required by applicable law"}),(0,Pe.jsx)("li",{children:"Upload candidate data you have no lawful basis to process, or in violation of any applicable employment, privacy, or data-protection law"}),(0,Pe.jsx)("li",{children:"Attempt to reverse-engineer, scrape, or extract source data, prompts, model weights, or scoring logic from AROS"}),(0,Pe.jsx)("li",{children:"Resell, sublicense, or provide AROS as a service to third parties without a written agreement with us"}),(0,Pe.jsx)("li",{children:"Interfere with the security, integrity, or availability of the service, or use it to transmit malicious code"}),(0,Pe.jsx)("li",{children:"Use the platform to harass, defame, or violate the rights of any person"})]})]}),(0,Pe.jsxs)(Fj,{id:"customer-content",title:"6. Customer content and candidate data",children:[(0,Pe.jsx)("p",{children:"\u201cCustomer Content\u201d means any data you, your organisation, or candidates you process upload to AROS \u2014 including job postings, candidate profiles, resumes, decisions, notes, and feedback. You retain ownership of your Customer Content."}),(0,Pe.jsx)("p",{children:"You grant AROS a limited, worldwide, non-exclusive licence to host, process, transmit, and display Customer Content solely to provide the service to you, to improve security and reliability, and (in aggregated and de-identified form) to improve the platform."}),(0,Pe.jsx)("p",{children:"You are responsible for ensuring you have the legal right to upload Customer Content, including obtaining any consents required from candidates."})]}),(0,Pe.jsxs)(Fj,{id:"ip",title:"7. Intellectual property",children:[(0,Pe.jsx)("p",{children:"AROS, its name, the AROS mark, the platform, the underlying software, models, prompts, documentation, and all related intellectual property are owned by AROS. These Terms do not grant you any rights in our intellectual property other than the limited right to use the service."}),(0,Pe.jsx)("p",{children:"You may not remove, alter, or obscure any AROS branding or notices, except where the platform explicitly allows you to (for example, when you customise decision templates for your organisation)."})]}),(0,Pe.jsx)(Fj,{id:"fees",title:"8. Fees during the validation period",children:(0,Pe.jsxs)("p",{children:["During the validation period, AROS is provided to invited participants at ",(0,Pe.jsx)("strong",{children:"no cost"}),". We will give you at least 30 days' written notice before any fees apply to your account. If you do not agree to future fees, you may terminate your use of the service without penalty."]})}),(0,Pe.jsxs)(Fj,{id:"confidentiality",title:"9. Confidentiality and feedback",children:[(0,Pe.jsx)("p",{children:"Non-public information about AROS (including roadmap, unreleased features, pricing, and internal scoring methodology) is confidential. Please do not share screenshots or information about unreleased features without our consent."}),(0,Pe.jsx)("p",{children:"Any feedback, suggestions, or ideas you share about AROS may be used by us without obligation or compensation to you. We will not identify you by name when using your feedback unless you give us permission."})]}),(0,Pe.jsx)(Fj,{id:"warranties",title:"10. Disclaimer of warranties",children:(0,Pe.jsxs)("p",{children:["TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, AROS IS PROVIDED ",(0,Pe.jsx)("strong",{children:"\u201cAS IS\u201d AND \u201cAS AVAILABLE\u201d"}),", WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR UNINTERRUPTED OPERATION. WE DO NOT WARRANT THAT THE OUTPUTS OF AROS WILL BE ACCURATE, COMPLETE, OR FREE FROM ERROR."]})}),(0,Pe.jsxs)(Fj,{id:"liability",title:"11. Limitation of liability",children:[(0,Pe.jsx)("p",{children:"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, AROS, ITS AFFILIATES, AND ITS SUPPLIERS WILL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR ANY LOSS OF PROFITS, REVENUE, DATA, BUSINESS, OR GOODWILL, ARISING OUT OF OR IN CONNECTION WITH YOUR USE OF AROS."}),(0,Pe.jsx)("p",{children:"OUR AGGREGATE LIABILITY ARISING OUT OF OR IN CONNECTION WITH THESE TERMS WILL NOT EXCEED THE GREATER OF (A) THE AMOUNT YOU HAVE PAID US IN THE 12 MONTHS PRECEDING THE EVENT GIVING RISE TO THE CLAIM, OR (B) USD $100. SOME JURISDICTIONS DO NOT ALLOW THESE LIMITATIONS; THEY APPLY ONLY TO THE EXTENT PERMITTED BY LAW."})]}),(0,Pe.jsx)(Fj,{id:"indemnity",title:"12. Indemnification",children:(0,Pe.jsx)("p",{children:"You agree to defend, indemnify, and hold harmless AROS and its team from any third-party claims arising out of (a) your Customer Content, (b) your use of AROS in violation of these Terms or applicable law, or (c) your violation of any rights of a candidate or other third party."})}),(0,Pe.jsx)(Fj,{id:"termination",title:"13. Termination",children:(0,Pe.jsx)("p",{children:"You may stop using AROS at any time. We may suspend or terminate your access if you materially breach these Terms or use AROS in a way that creates risk for us or other users. On termination, your right to access AROS ends; sections that by their nature should survive (IP, disclaimers, liability, indemnity, governing law) will survive."})}),(0,Pe.jsx)(Fj,{id:"changes",title:"14. Changes to these terms",children:(0,Pe.jsx)("p",{children:"We may update these Terms during the validation period. We will post the new version on this page and update the \u201cLast updated\u201d date. Material changes will be communicated via email to active program participants."})}),(0,Pe.jsx)(Fj,{id:"governing-law",title:"15. Governing law",children:(0,Pe.jsx)("p",{children:"These Terms are governed by the laws of the State of Delaware, USA, without regard to conflict-of-law principles. Disputes will be resolved
2in the state or federal courts located in Delaware, except where applicable consumer-protection law gives you a right to bring proceedings in another forum."})}),(0,Pe.jsxs)(Fj,{id:"contact",title:"16. Contact",children:[(0,Pe.jsxs)("p",{children:["Questions about these Terms:"," ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:_j},children:"[email protected]"}),"."]}),(0,Pe.jsx)("p",{className:"pt-2 text-xs",style:{color:"#6B7280"},children:"These Terms are plain-English by design and are not a substitute for legal advice in your jurisdiction. Counsel-reviewed terms will replace this notice before general availability."})]})]})})}const Oj="#041C3A",Rj="#374151",Hj="#6B7280",Pj=e=>{let t=e.id,n=e.title,a=e.children;return(0,Pe.jsxs)("section",{id:t,className:"mt-10 scroll-mt-24","data-testid":"trust-section-".concat(t),children:[(0,Pe.jsx)("h2",{className:"font-brand font-bold text-2xl tracking-[-0.022em]",style:{color:Oj},children:n}),(0,Pe.jsx)("div",{className:"mt-3 space-y-3 text-[15px] leading-relaxed font-brand",style:{color:Rj},children:a})]})},Lj=[["short-version","The short version"],["secure-platform","Secure cloud-based platform"],["your-data","Your organization's data is yours"],["roles","Role-based permissions"],["ai-transparency","AI transparency"],["human-decisions","Human-controlled hiring decisions"],["resume-privacy","Resume and candidate data privacy"],["outcome-learning","Outcome learning"],["reliability","Reliability and backups"],["roadmap","What we're building toward"]];function Tj(){return Uy({title:"Why Employers Trust AROS",description:"Learn how AROS protects candidate privacy, reduces hiring bias, and delivers transparent hiring recommendations.",canonical:"/trust",robots:"index,follow",ogImage:"https://getaros.ai/brand/og.jpg"}),(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-16 lg:py-20","data-testid":"trust-page",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#0F4FA8"},children:"Trust & Architecture"}),(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-4xl sm:text-5xl tracking-[-0.025em] mt-3",style:{color:Oj},children:"How AROS protects your team, your candidates, and your hiring."}),(0,Pe.jsx)("p",{className:"mt-5 text-lg leading-relaxed font-brand",style:{color:Rj},children:"AROS is a cloud-based hiring platform. Your team, your candidates, your hires, and your outcomes stay yours. AROS uses AI to help you make better hiring decisions \u2014 but the decisions are always yours to make. This page explains, in plain English, how we protect your data, how we use AI, and what to expect from us."}),(0,Pe.jsxs)("p",{className:"mt-3 text-sm font-brand",style:{color:Rj},children:["Effective date: ",(0,Pe.jsx)("strong",{children:"February 1, 2026"})," \xb7 Last updated: ",(0,Pe.jsx)("strong",{children:"February 20, 2026"})]}),(0,Pe.jsxs)("nav",{className:"mt-10 p-5 rounded-2xl",style:{background:"#F9FAFB",border:"1px solid #E5E7EB"},"aria-label":"On this page","data-testid":"trust-toc",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Hj},children:"On this page"}),(0,Pe.jsx)("ol",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 text-sm font-brand",children:Lj.map((e,t)=>{let n=Ue(e,2),a=n[0],r=n[1];return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("a",{href:"#".concat(a),className:"hover:text-[#0F4FA8]",style:{color:Rj},children:[String(t+1).padStart(2,"0"),". ",r]})},a)})})]}),(0,Pe.jsx)(Pj,{id:"short-version",title:"1. The short version",children:(0,Pe.jsx)("p",{children:"AROS is delivered over the web. You sign in from a browser \u2014 no software to install. Every job, candidate, note, and hiring outcome is scoped to your organization's private workspace. AI helps; humans decide."})}),(0,Pe.jsxs)(Pj,{id:"secure-platform",title:"2. Secure cloud-based platform",children:[(0,Pe.jsx)("p",{children:"AROS runs on modern cloud infrastructure with production-grade encryption in transit (HTTPS everywhere) and at rest (managed database encryption). We follow the same architectural patterns as other trusted business software you already use."}),(0,Pe.jsx)("p",{children:"You don't need to think about servers, backups, or updates. That's our job."})]}),(0,Pe.jsxs)(Pj,{id:"your-data",title:"3. Your organization's data is yours",children:[(0,Pe.jsx)("p",{children:"When you sign up, AROS creates a private workspace for your organization. Every job, every candidate, every note, every hiring outcome is scoped to that workspace."}),(0,Pe.jsxs)("p",{children:[(0,Pe.jsx)("strong",{children:"No other company using AROS can see any of your data. Ever."})," Not their team, not their admins, not their AI. We enforce that boundary in code at every screen and every API call \u2014 not as a policy that could be forgotten, but as a technical rule the system checks on every request."]})]}),(0,Pe.jsxs)(Pj,{id:"roles",title:"4. Role-based permissions",children:[(0,Pe.jsx)("p",{children:"Inside your organization, AROS supports three roles:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Employer"})," \u2014 the person running hiring for the company. Full access to jobs, candidates, and outcomes."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Recruiter"})," \u2014 day-to-day recruiter. Same working access as Employer."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Admin"})," \u2014 the AROS founder-level role. Only used for platform administration; never for accessing your business data unless you specifically ask for support."]}
2)]}),(0,Pe.jsx)("p",{children:"Only the account owner can invite additional members, change roles, or remove members."})]}),(0,Pe.jsxs)(Pj,{id:"ai-transparency",title:"5. AI transparency",children:[(0,Pe.jsx)("p",{children:"AROS uses AI to help you screen candidates, refine job descriptions, prepare interview questions, and learn from your hiring outcomes. Three rules we hold ourselves to:"}),(0,Pe.jsxs)("ol",{className:"list-decimal pl-5 space-y-2",children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"Every AI-generated insight is labeled \u201cDraft \u2014 please review.\u201d"})," ","You are always the reviewer. The AI is always the assistant."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"We never show a numeric score for a candidate."})," AROS uses qualitative language \u2014 \u201cStrong fit,\u201d \u201cWorth a second look,\u201d \u201cWorth a closer look.\u201d No 87%, no 4-out-of-5, no ranking."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)("strong",{children:"The AI cites its evidence."})," When AROS says a candidate is a strong match, it tells you ",(0,Pe.jsx)("em",{children:"why"})," \u2014 pulling directly from the r\xe9sum\xe9 and the job description. When information is missing, AROS says so instead of guessing."]})]}),(0,Pe.jsx)("p",{children:"If our AI is ever unavailable, AROS falls back to deterministic logic \u2014 you can still work."})]}),(0,Pe.jsxs)(Pj,{id:"human-decisions",title:"6. Human-controlled hiring decisions",children:[(0,Pe.jsx)("p",{children:"AROS never makes a hiring decision for you. It doesn't rank candidates against each other publicly. It doesn't send anyone a rejection without you clicking send. It doesn't auto-hire."}),(0,Pe.jsx)("p",{children:"Every consequential action \u2014 invite, interview, extend, hire, decline \u2014 is a human click. AROS is a decision-support surface, not a decision-maker."}),(0,Pe.jsx)("p",{children:"We won't build \u201cAI recruiter agents\u201d that message candidates on your behalf without your review. That's a line we've drawn intentionally."})]}),(0,Pe.jsxs)(Pj,{id:"resume-privacy",title:"7. R\xe9sum\xe9 and candidate data privacy",children:[(0,Pe.jsx)("p",{children:"When a candidate applies, their r\xe9sum\xe9 is uploaded to your workspace. AROS extracts structured information from it (skills, work history, education) so the platform can help you review it. That data:"}),(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"Stays in your workspace."}),(0,Pe.jsx)("li",{children:"Is never sold, licensed, or shared with any other AROS customer."}),(0,Pe.jsx)("li",{children:"Is never used to train AROS's general AI models."}),(0,Pe.jsx)("li",{children:"Can be deleted at your request \u2014 email us and we'll process it promptly."})]}),(0,Pe.jsx)("p",{children:"Candidates who apply through AROS see a clear application-transparency timeline \u2014 they know where their application stands and what to expect next. We designed that on purpose."})]}),(0,Pe.jsxs)(Pj,{id:"outcome-learning",title:"8. Outcome learning \u2014 how AROS gets smarter",children:[(0,Pe.jsxs)("p",{children:["Every time you hire someone through AROS, we invite you to log 30-, 60-, and 90-day reviews. Those reviews stay in your workspace. Over time, AROS learns which traits, experiences, and interview signals actually led to successful hires ",(0,Pe.jsx)("em",{children:"for your team"})," \u2014 not for a generic industry."]}),(0,Pe.jsx)("p",{children:"Hiring platforms that don't learn from outcomes are just glorified spreadsheets. AROS closes the loop between \u201cwho did we pick?\u201d and \u201cdid that work?\u201d"}),(0,Pe.jsx)("p",{children:"Everything you feed the outcome loop stays private to your organization. When we one day publish aggregate industry insights, they'll be built from anonymized, opt-in data \u2014 and you'll always be able to opt out."})]}),(0,Pe.jsxs)(Pj,{id:"reliability",title:"9. Reliability and backups",children:[(0,Pe.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Pe.jsx)("li",{children:"AROS runs on production cloud infrastru
2cture with managed database backups."}),(0,Pe.jsx)("li",{children:"Our platform provider handles daily backups and point-in-time recovery."}),(0,Pe.jsx)("li",{children:"If we ever have a service disruption, we'll tell you honestly \u2014 no jargon, no spin."}),(0,Pe.jsx)("li",{children:"We monitor the platform continuously and respond within business hours; critical incidents get faster attention."})]}),(0,Pe.jsx)("p",{children:"We're a small team building AROS in the open. When something breaks, you'll hear from a human quickly."})]}),(0,Pe.jsxs)(Pj,{id:"roadmap",title:"10. What we're building toward",children:[(0,Pe.jsx)("p",{children:"We are working toward SOC 2 readiness as AROS scales. Today we operate at a pre-certification stage \u2014 we follow the same practices, but we haven't yet undergone a formal audit. When we do, we'll say so clearly on this page. We won't claim certifications we don't have."}),(0,Pe.jsx)("p",{children:"If your organization needs a formal security review before adopting AROS, contact the founder directly and we'll walk through our practices with you."})]}),(0,Pe.jsxs)("div",{className:"mt-14 p-6 rounded-2xl flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",style:{background:Oj,color:"white"},"data-testid":"trust-cta",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-lg tracking-[-0.015em]",children:"Have a security question?"}),(0,Pe.jsx)("div",{className:"text-sm mt-1",style:{color:"rgba(255,255,255,0.75)"},children:"A human on the AROS team reads every message."})]}),(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"inline-flex items-center justify-center px-5 py-3 rounded-md font-brand font-semibold text-sm",style:{background:"white",color:Oj},"data-testid":"trust-contact-cta",children:"Email [email protected]"})]}),(0,Pe.jsx)("p",{className:"mt-10 text-xs font-brand",style:{color:Hj},children:"This page will be updated as AROS grows. We don't claim SOC 2, ISO 27001, HIPAA, or GDPR compliance today. We'll add those only after formal audits are complete."})]})})}function Ij(){Uy({title:"AROS \u2014 start your free trial",description:"AROS public trial is open. Start your 30-day trial \u2014 no credit card required.",canonical:"/register",robots:"noindex,nofollow"});const e=Zt().search,t=new URLSearchParams(e).get("plan"),n=t?"/register?plan=".concat(encodeURIComponent(t)):"/register";return(0,o.useEffect)(()=>{},[]),(0,Pe.jsx)(sn,{to:n,replace:!0,"data-testid":"beta-redirect-to-register"})}const Zj=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Bj=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Zj})));Bj.displayName="XCircleIcon";const Vj=Bj,zj="#041C3A",qj="#0F4FA8",Uj="#6B7280",Wj="#374151",Yj="#F8FAFC",Kj=[{slug:"starter",name:"Starter",price:"$99",cadence:"per month",tagline:"Small teams. First real hire on AROS.",highlight:!1,features:["Up to 3 active jobs","400 AI reviews per month","3 seats","Evidence-first candidate reviews","Human-in-the-loop validation on every AI claim","Warm candidate email drafts (connect your Resend key)"],cta:"Start free trial",href:"/register?plan=starter"},{slug:"growth",name:"Growth",price:"$299",cadence:"per month",tagline:"Growing hiring teams and boutique agencies.",highlight:!0,badge:"Most popular",features:["Up to 10 active jobs","1,000 AI reviews per month","10 seats","Everything in Starter","Decision Packets \u2014 evidence-backed hiring recommendations","Hiring Outcomes learning per workspace","Priority email support"],cta:"Start free trial",href:"/register?plan=growth"},{slug:"business",name:"Business",price:"$799",cadence:"per month",tagline:"Multi-team recruiting orgs and in-house recruiting agencies.",highlight:!1,features:["Up to 30 active jobs","3,000 AI reviews per month","30 seats","Everything in Growth","Advanced admin, roles, and audit visibility","Priority chat + email support"],cta:"Start free trial",href:"/register?plan=business"},{slug:"standby",name:"Standby",price:"$12",cadence:"per month",tagline:"Pause between hiring cycles \u2014 keep your data and workspace warm.",highlight:!1,features:["0 active jobs (paused hiring)","Read-only access to prior decisions","Zero AI reviews per month","Reactivate any tier in one click","Retention of workspace history and settings"],cta:"Start free trial",href:"/register"},{slug:"enterprise",name:"Enterprise",price:"Custom",cadence:"annual contract",tagline:"50+ seats, SSO, procurement, custom SLAs, dedicated support.",highlight:!1,features:["Unlimited active jobs","Custom AI review volume","Unlimited seats \xb7 SSO","SOC 2 evidence pack, DPA, and custom retention windows","Dedicated account team and priority incident SLA"],cta:"Contact sales",href:"mailto:[email protected]?subject=AROS%20Enterprise%20inquiry",external:!0}],Gj=[{icon:Vj,text:"No credit card required to start"},{icon:Yf,text:"30-day free trial on every paid plan"},{icon:uy,text:"Cancel anytime, in one click"},{icon:iy,text:"Recruiters stay in control"},{icon:Hy,text:"Your data stays yours"}],$j=[{q:"Do I need a credit card to start?",a:"No. You sign up with just an email and password, get 30 days of full access, and only add a payment method when you're ready to keep going."},{q:"What happens after the 30-day trial?",a:"Nothing charges automatically. If you don't choose a paid plan, your workspace enters a restricted state \u2014 you keep your data but new hiring features pause until you upgrade or move to Standby."},{q:"How are AI review limits counted?",a:"One AI review = one candidate evaluated with AROS Human Context Intelligence, Bias Auditor, and evidence citations. Reviews reset on the first of each billing month."},{q:"Can I switch plans?",a:"Yes. You can move up or down at any time through the Customer Portal in your workspace settings. Prorated changes take effect immediately."},{q:"What does Standby do?",a:"Standby ($12/month) keeps your workspace, history, and configuration warm during a hiring pause. You keep read-only access to prior decisions and can reactivate any tier in one click without re-onboarding."},{q:"How does Enterprise differ?",a:"Enterprise includes SSO, custom retention, priority incident SLA, a dedicated account team, and a signed contract. Contact us for a scoped proposal."}];function Qj(e){let t=e.plan;const n=!!t.highlight,a=n;return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 sm:p-8 flex flex-col h-full",style:{borderColor:n?zj:"#E5E7EB",background:a?zj:"white",color:a?"white":Wj,boxShadow:n?"0 10px 30px rgba(4,28,58,0.10)":"none"},"data-testid":"pricing-card-".concat(t.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:a?"rgba(255,255,255,0.7)":Uj},children:t.name}),t.badge&&(0,Pe.jsx)("span",{className:"text-[9px] uppercase tracking-[0.16em] font-mono font-semibold px-2 py-0.5 rounded-full",style:{background:"white",color:zj},"data-testid":"pricing-badge-".concat(t.slug),children:t.badge})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-baseline gap-2",children:[(0,Pe.jsx)("span",{className:"font-display font-bold text-4xl",style:{color:a?"white":zj},"data-testid":"pricing-price-".concat(t.slug),children:t.price}),(0,Pe.jsx)("span",{className:"text-xs",style:{color:a?"rgba(255,255,255,0.7)":Uj},children:t.cadence})]}),(0,Pe.jsx)("p",{className:"text-sm mt-3 min-h-[3rem]",style:{color:a?"rgba(255,255,255,0.8)":Wj},children:t.tagline}),(0,Pe.jsx)("ul",{className:"mt-5 space-y-2.5 text-sm flex-1",children:t.features.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:16,weight:"fill",style:{color:a?"white":qj,marginTop:2,flexShrink:0}}),(0,Pe.jsx)("span",{style:{color:a?"rgba(255,255,255,0.9)":Wj},children:e})]},t))}),(0,Pe.jsx)("div",{className:"mt-6",children:t.external?(0,Pe.jsx)("a",{href:t.href,onClick:()=>zy("pricing_cta_clicked",{plan:t.slug}),"data-testid":"pricing-cta-".concat(t.slug),children:(0,Pe.jsx)(Lo,{className:"w-full rounded-md",style:{background:a?"white":zj,color:a?zj:"white"},children:t.cta})}):(0,Pe.jsx)(Yn,{to:t.href,onClick:()=>zy("pricing_cta_clicked",{plan:t.slug}),"data-testid":"pricing-cta-".concat(t.slug),children:(0,Pe.jsx)(Lo,{className:"w-full rounded-md",style:{background:a?"white":zj,color:a?zj:"white"},children:t.cta})})})]})}function Xj(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t="".concat("https://www.getaros.ai","/api"),a=await Ki.get("".concat(t,"/public/packs/catalog"));e&&n(a.data.packs||[])}catch(t){}})(),()=>{e=!1}},[]),t.length?(0,Pe.jsxs)("div",{className:"mt-10 pt-8 border-t",style:{borderColor:"#E5E7EB"},"data-testid":"pricing-packs-strip",children:[(0,Pe.jsxs)("div",{className:"text-center mb-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qj},children:"Optional add-ons"}),(0,Pe.jsx)("h3",{className:"mt-1 text-lg font-semibold",style:{color:zj},children:"Candidate Review Packs"}),(0,Pe.jsx)("p",{className:"mt-1 text-sm",style:{color:Wj},children:"One-time add-ons for active paid workspaces. Never expire."})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 max-w-3xl mx-auto",children:t.map(e=>(0,Pe.jsxs)("div",{"data-testid":"pricing-pack-".concat(e.slug),className:"rounded-lg border p-4 text-center",style:{borderColor:"#E5E7EB",background:"white"},children:[(0,Pe.jsx)("div",{className:"text-sm",style:{color:Wj},children:e.label}),(0,Pe.jsxs)("div",{className:"mt-1 text-2xl font-semibold",style:{color:zj},children:["$",e.amount_usd]}),(0,Pe.jsx)("div",{className:"text-[11px]",style:{color:Uj},children:"one-time"})]},e.slug))})]}):null}function Jj(){return Uy({title:"Pricing \u2014 AROS Evidence-First Hiring",description:"Starter $99, Growth $299, Business $799. 30-day free trial on every plan. No credit card required.",canonical:"/pricing"}),(0,Pe.jsxs)(Jy,{children:[(0,Pe.jsx)("section",{className:"py-14 sm:py-20 px-6",style:{background:Yj},"data-testid":"pricing-hero",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qj},children:"Pricing"}),(0,Pe.jsxs)("h1",{className:"mt-3 font-display font-bold tracking-tight text-4xl sm:text-5xl lg:text-6xl",style:{color:zj},children:["Straightforward pricing.",(0,Pe.jsx)("br",{}),(0,Pe.jsx)("span",{style:{color:qj},children:"Start free for 30 days."})]}),(0,Pe.jsx)("p",{className:"mt-4 max-w-2xl text-base sm:text-lg",style:{color:Wj},children:"Every paid plan starts with a 30-day free trial. No credit card required. Nothing charges automatically. You upgrade only when you're ready."}),(0,Pe.jsx)("div",{className:"mt-6 flex flex-wrap gap-4 text-xs",style:{color:Wj},children:Gj.map((e,t)=>(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Pe.jsx)(e.icon,{size:14,style:{color:qj}}),(0,Pe.jsx)("span",{children:e.text})]},t))})]})}),(0,Pe.jsx)("section",{className:"py-14 sm:py-20 px-6","data-testid":"pricing-grid",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,Pe.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:Kj.slice(0,3).map(e=>(0,Pe.jsx)(Qj,{plan:e},e.slug))}),(0,Pe.jsx)("div",{className:"grid gap-6 mt-6 md:grid-cols-2",children:Kj.slice(3).map(e=>(0,Pe.jsx)(Qj,{plan:e},e.slug))}),(0,Pe.jsx)("p",{className:"text-xs mt-6",style:{color:Uj},children:"All prices in USD, billed monthly. Cancel anytime."}),(0,Pe.jsx)(Xj,{})]})}),(0,Pe.jsx)("section",{className:"py-14 sm:py-20 px-6",style:{background:Yj},"data-testid":"pricing-faq",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qj},children:"FAQ"}),(0,Pe.jsx)("h2",{className:"mt-3 font-display font-bold tracking-tight text-3xl sm:text-4xl",style:{color:zj},children:"Questions people ask before their trial"}),(0,Pe.jsx)($b,{type:"single",collapsible:!0,className:"mt-8",children:$j.map((e,t)=>(0,Pe.jsxs)(Qb,{value:"faq-".concat(t),children:[(0,Pe.jsx)(Xb,{className:"text-left",children:e.q}),(0,Pe.jsx)(Jb,{style:{color:Wj},children:e.a})]},t))})]})}),(0,Pe.jsx)("section",{className:"py-16 sm:py-24 px-6",style:{background:zj,color:"white"},"data-testid":"pricing-final-cta",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto text-center",children:[(0,Pe.jsx)(ux,{size:28,weight:"fill",style:{color:"white",opacity:.9},className:"mx-auto"}),(0,Pe.jsx)("h2",{className:"mt-4 font-display font-bold tracking-tight text-3xl sm:text-4xl",children:"30-day free trial. No credit card."}),(0,Pe.jsx)("p",{className:"mt-3 text-base opacity-80 max-w-xl mx-auto",children:"You keep every trial run \u2014 evidence, decisions, and workspace history \u2014 even if you don't upgrade."}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[(0,Pe.jsx)(Yn,{to:"/register?plan=growth",onClick:()=>zy("pricing_final_cta_clicked"),children:(0,Pe.jsx)(Lo,{className:"rounded-md bg-white text-[#041C3A] hover:bg-slate-100","data-testid":"pricing-final-primary-cta",children:"Start free trial"})}),(0,Pe.jsx)("a",{href:"mailto:[email protected]?subject=AROS%20Enterprise%20inquiry","data-testid":"pricing-final-enterprise-cta",children:(0,Pe.jsx)(Lo,{variant:"outline",className:"rounded-md border-white text-white hover:bg-white hover:text-[#041C3A]",children:"Talk to sales"})})]})]})})]})}const ew=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),o.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),tw=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:ew})));tw.displayName="ArrowLeftIcon";const nw=tw,aw={"ai-hiring-summary":{slug:"ai-hiring-summary",title:"AI Hiring Summary",metaTitle:"AI Hiring Summary \xb7 AROS",metaDescription:"A per-job recap of who deserves attention next \u2014 grounded in the r\xe9sum\xe9s you received and the job you posted. Human decides, AROS explains.",badge:{icon:"Star",label:"Core feature"},heroLead:"Who deserves your attention next.",heroSub:"The AI Hiring Summary is a per-job recap that groups every applicant into clear categories and points you to the ones worth your time \u2014 with evidence, not scores.",preview:"HiringSummaryPreview",problem:{heading:"You don't need another inbox. You need a decision to make.",paras:["Small teams don't have time to read 300 r\xe9sum\xe9s. Most tools respond by dumping applicants into a spreadsheet and calling it a workflow.","That leaves the hardest question \u2014 *who deserves attention next?* \u2014 squarely on the hiring manager, without any help.","You end up rereading the same r\xe9sum\xe9s at 10pm, hoping something jumps out. That's not a hiring process. That's fatigue."]},solution:{heading:"How the AI Hiring Summary works",intro:"Every time a candidate applies, AROS reads the r\xe9sum\xe9, compares it against the job you posted, and adds them to a category. When you open the job, you see a calm one-screen recap:",flow:["Applications land in your workspace","AROS categorises each one against the role you defined","You see a per-job summary \u2014 Strong Match, Worth a second look, Worth a closer look","Every category is expandable to the underlying evidence","You decide who to invite. AROS drafts the outreach."]},outputs:[{title:"Strong Match",body:"Candidates whose \xe9vidence aligns with the role's core requirements. Human review required \u2014 always."},{title:"Worth a second look",body:"Candidates with partial alignment, unusual strengths, or transferable experience worth exploring."},{title:"Worth a closer look",body:"Candidates the AI is less sure about. Never rejected \u2014 flagged for human judgement."},{title:"One-line recap",body:"A plain-English summary of the applicant pool: how many, how strong, what stands out this week."}],founder:{heading:"Why we built this",quote:'We kept hearing the same thing from small-team hiring managers: "I don\'t need another dashboard. I need a decision to make." So we built the Summary around that exact question \u2014 not "where is this candidate in the workflow?" but "who deserves attention next, and why?"',attribution:"AROS Founder"},faqs:[{q:"Does AROS reject candidates?",a:"No. The Summary categorises, it never rejects. Only a human can decline an applicant, and AROS never sends an outcome email without your review."},{q:"Does AROS rank applicants?",a:"No \u2014 no numeric ranking, no 1-through-N ordering, no score. Candidates are grouped into qualitative categories and the evidence for each is visible on demand."},{q:"How does AROS decide categories?",a:"By comparing the r\xe9sum\xe9's stated skills, experience, and history against the job you posted. If evidence is missing, AROS says so instead of guessing."},{q:"Can I override a category?",a:"Yes. Every categorisation is a draft. Move a candidate to a different bucket with one click; the change is logged and factored into future learning."},{q:"Does the AI get smarter over time?",a:"Yes \u2014 but only for your organisation. AROS learns which hires worked out for your team and adjusts categorisation over subsequent roles. Your data never trains anyone else's model."}],related:["candidate-intelligence","category-pipeline","outcome-intelligence"]},"candidate-intelligence":{slug:"candidate-intelligence",title:"Candidate Intelligence",metaTitle:"Candidate Intelligence \xb7 AROS",metaDescription:"A grounded, evidence-first read on every candidate \u2014 skills that match, skills that don't, and honest questions to ask before you interview.",badge:{icon:"Sparkle",label:"Evidence-first AI"},heroLead:"Every r\xe9sum\xe9, read with care.",heroSub:"Candidate Intelligence gives you a one-page read on every applicant: what matches, what's missing, and what to ask them next. Grounded in the r\xe9sum\xe9, cited by the AI, decided by you.",preview:"CandidateIntelPreview",problem:{heading:"Reading r\xe9sum\xe9s at 10pm isn't a hiring strategy.",paras:["The hardest part of hiring isn't running the process. It's understanding a stranger from a two-page document that could have been written by anyone.","You skim, you flag, you forget. By the time you interview them, half of the r\xe9sum\xe9 context is gone. So you ask the generic questions instead of the ones that would actually tell you something.","The real cost isn't the time. It's the interviews that produced no signal because nobody had time to prepare."]},solution:{heading:"How Candidate Intelligence works",intro:"Open a candidate. In under a minute, you see everything the r\xe9sum\xe9 says \u2014 and everything it doesn't:",flow:["AROS extracts skills, work history, education, and named accomplishments from the r\xe9sum\xe9","It compares each item to the job you posted","You see: skills that match, skills that don't, transferable strengths, and where evidence is missing","AROS drafts honest interview questions tailored to *this* candidate","You approve, edit, or ignore. Every recommendation is a draft."]},outputs:[{title:"Skills that match",body:"Skills stated in the r\xe9sum\xe9 that map to the role's requirements \u2014 with the exact r\xe9sum\xe9 line quoted as evidence."},{title:"Skills that don't",body:"Requirements not addressed by the r\xe9sum\xe9. Called out honestly \u2014 not scored, not hidden."},{title:"Transferable strengths",body:"Experience from adjacent industries or roles that could apply. Marked as inference so you can decide."},{title:"Missing evidence",body:'Requirements where the r\xe9sum\xe9 is silent. AROS says "we don\'t know" instead of guessing.'},{title:"Interview questions",body:"Draft technical and behavioural questions grounded in this candidate's actual history."}],founder:{heading:"Why we built this",quote:"The first person I hired at my last company was a technically perfect r\xe9sum\xe9 who cratered on culture. The second w
2as a r\xe9sum\xe9 that looked wrong on paper but turned out great. We were reading the same documents differently \u2014 some days carefully, most days not. Candidate Intelligence is what we wished we'd had.",attribution:"AROS Founder"},faqs:[{q:"How does AROS handle missing information?",a:'It says so. If the r\xe9sum\xe9 doesn\'t mention a required skill, AROS marks it "no evidence in r\xe9sum\xe9" rather than inferring. You\'ll never see "the candidate probably knows X" \u2014 that\'s a decision, not a fact.'},{q:"Does the candidate see this analysis?",a:"No. Vision \xa74.5: candidates don't have a product surface on AROS. They see their status via a transparency timeline and receive warm outcome emails \u2014 but not the internal analysis your team uses to decide."},{q:"Can I edit the interview questions?",a:"Yes. Everything AROS generates is a draft. Edit, add your own, or ignore \u2014 it's a starting point, not a finished script."},{q:"Does AROS score candidates 0\u2013100?",a:"No, and it never will. Numeric scores create false precision and encourage bad decisions. AROS uses qualitative labels only."},{q:"Will AROS learn what my team looks for?",a:"Over time, yes \u2014 via the Outcome Intelligence loop. Your hiring outcomes stay private to your workspace and never train anyone else's AROS."}],related:["ai-hiring-summary","interview-intelligence","trust-security"]},"category-pipeline":{slug:"category-pipeline",title:"Category Pipeline",metaTitle:"Category Pipeline \xb7 AROS",metaDescription:"Three qualitative buckets \u2014 Strong Match, Worth a second look, Worth a closer look. No numeric scores, no ranking games, no false precision.",badge:{icon:"Stack",label:"No scores"},heroLead:"Three clear buckets. No numeric scores.",heroSub:"The Category Pipeline is how AROS organises applicants without ranking games or false precision. Every candidate is in exactly one qualitative category, movable with one click, backed by explainable evidence.",preview:"CategoryPipelinePreview",problem:{heading:'"92% match" tells you nothing.',paras:["Numeric scores feel objective. They aren't. They compress a complex human into a single number that isn't actually comparable across candidates \u2014 and they encourage rank-ordering behaviour that misses the person who quietly should have been hired.",'Traditional pipelines also fuse two very different questions into one column: "is this person a fit for the role?" and "where are they in our process?"',"So candidates get stuck as data points instead of people worth deciding about."]},solution:{heading:"How the pipeline works",intro:"Three qualitative buckets, plainly named, always human-owned:",flow:["Strong Match \u2014 the AI is confident, based on cited r\xe9sum\xe9 evidence","Worth a second look \u2014 partial alignment; interesting angles","Worth a closer look \u2014 the AI is unsure; flagged for you to decide","Every candidate is in exactly one bucket at a time","Move anyone with a click. Every move is logged and teaches AROS."]},outputs:[{title:"One-glance overview",body:"Open any job and see the applicant pool at a glance: how many in each bucket, what's new since yesterday."},{title:"One-click reclassification",body:"Disagree with the AI? Move the candidate. AROS learns from the move; you keep the last word."},{title:"Explainable placement",body:"Every candidate's bucket is backed by a plain-English reason drawn from their r\xe9sum\xe9 and the job."},{title:"No sneaky sub-ranking",body:"Within each bucket, no invisible ordering. The pipeline is a set, not a ladder."}],founder:{heading:"Why we built this",quote:"Every scoring product I've ever used ranked candidates from 1 to N and pretended that was neutral. It isn't. Ordering creates pressure to interview from the top down and quietly buries anyone in the middle. Three qualitative buckets forced us to make different, honest choices about who to talk to next.",attribution:"AROS Founder"},faqs:[{q:"Why three buckets instead of four or five?",a:'Because five options create decision paralysis and three doesn\'t. "Strong / second look / closer look" is enough resolution to act on, without giving you the temptation to rank candidates 3.7 vs 3.9.'},{q:"Can I add my own categories?",a:"Not yet. We deliberately kept the vocabulary small so it stays meaningful across teams. Custom stages sit on the Phase 2 roadmap."},{q:"Does the candidate see which bucket they're in?",a:"No. Buckets are internal only. Candidates receive warm status updates via their transparency timeline \u2014 never a ranking."},{q:"What if the AI puts someone in the wrong bucket?",a:"Move them. That's the whole point \u2014 the AI drafts, you decide. Reclassifications are logged and factored
2into future learning for your workspace only."}],related:["ai-hiring-summary","candidate-intelligence","outcome-intelligence"]},"interview-intelligence":{slug:"interview-intelligence",title:"Interview Intelligence",metaTitle:"Interview Intelligence \xb7 AROS",metaDescription:"Interview questions and behavioural cues drafted from this candidate's actual history \u2014 never generic. You approve every one before it's used.",badge:{icon:"ChatCenteredText",label:"Grounded prompts"},heroLead:"Better interviews start before the interview.",heroSub:"Interview Intelligence drafts questions and behavioural prompts tailored to the candidate in front of you \u2014 grounded in their r\xe9sum\xe9, framed by the job, and always yours to approve.",preview:"InterviewIntelPreview",problem:{heading:"Generic interviews produce generic answers.",paras:["The best interviews probe the specific gap between what the r\xe9sum\xe9 claims and what the role requires. The worst interviews use the same six questions for every candidate, so every candidate sounds identical.",'But writing tailored questions takes time. You have ten interviews next week. So you fall back on "tell me about a challenging project" \u2014 and the candidate rehearses the same answer they gave the last three interviewers.',"Interviews should be an information-gathering exercise. Most aren't."]},solution:{heading:"How Interview Intelligence works",intro:"For each candidate on your calendar, AROS drafts a short guide:",flow:["Technical questions grounded in this candidate's actual work history","Behavioural prompts targeting the traits your role requires","Follow-up branches for likely answers","Areas to probe where the r\xe9sum\xe9 was vague","Notes on what you already know so you don't waste interview time"]},outputs:[{title:"Personalised interview guide",body:"One printable page per candidate: your job, their history, and 6\u201310 draft questions."},{title:"Areas to probe",body:"R\xe9sum\xe9 claims where evidence is thin \u2014 clearly marked so you can decide whether to test them."},{title:"Follow-up questions",body:"For each opening question, one or two branches to go deeper if the answer is generic."},{title:"Behavioural prompts",body:"Situation-based prompts framed against your role's real requirements, not textbook competencies."}],founder:{heading:"Why we built this",quote:"I once interviewed a candidate for 45 minutes and left knowing less than when we started. Not because the person was evasive \u2014 because I asked the same generic questions I asked everyone. Interview Intelligence exists because the r\xe9sum\xe9 already told us where the interesting questions were. We just weren't reading it in time.",attribution:"AROS Founder"},faqs:[{q:"Do I have to use the questions AROS drafts?",a:"No. Every question is a draft. Delete them, edit them, add your own. AROS is trying to save you the blank-page problem \u2014 not force a script on you."},{q:"Can candidates see the questions in advance?",a:"That's your call. AROS doesn't send interview guides to candidates automatically \u2014 sharing question themes in advance is a valid inclusive-hiring choice, but it's yours to make."},{q:"How are the behavioural prompts different from STAR templates?",a:'They start with your role, not a generic competency library. "Tell me about handling ambiguity" becomes a specific prompt about the ambiguity this role will actually surface.'},{q:"Will AROS grade the interview?",a:"No. AROS doesn't score interview answers. Notes stay yours; the outcome is a human decision \u2014 always."}],related:["candidate-intelligence","ai-hiring-summary","outcome-intelligence"]},"outcome-intelligence":{slug:"outcome-intelligence",title:"Outcome Intelligence",metaTitle:"Outcome Intelligence \xb7 AROS",metaDescription:"AROS learns from every hire and every closure \u2014 privately, per organisation. Post-hire outcomes make the next round of hiring sharper.",badge:{icon:"TrendUp",label:"Learns over time"},heroLead:"Hiring platforms should learn from outcomes.",heroSub:'Outcome Intelligence closes the loop between "who did we pick?" and "did that work?" Post-hire ratings \u2014 30, 60, 90 days in \u2014 make your next round of hiring sharper. Privately. Never shared with anyone else.',preview:"OutcomeIntelPreview",problem:{heading:"Most hiring tools stop the day the offer is signed.",paras:["The reason hiring feels like guesswork is that most tools never learn. You hire someone. Six months later you know
2whether it worked. That knowledge never makes it back to the platform, so the next hire starts from zero.","So teams keep making the same mistakes: over-weighting the shiny r\xe9sum\xe9, under-weighting the quiet fit, hiring for the last emergency instead of the next opportunity.","The information exists. It just isn't captured anywhere useful."]},solution:{heading:"How Outcome Intelligence works",intro:"AROS prompts you for three lightweight reviews on every hire:",flow:["30 days in \u2014 how did onboarding go? Any early flags?","60 days in \u2014 is the person ramping? What surprised you?","90 days in \u2014 would you make the same hire again?","Every rating stays inside your workspace",'AROS quietly updates its internal picture of what "good" looks like for *your* team']},outputs:[{title:"30 / 60 / 90 day reviews",body:"Short, opinion-based check-ins. No scores. Two questions, one paragraph, done in under a minute."},{title:"Hire-vs-close signal",body:"AROS also learns from the applicants you didn't hire \u2014 closed candidacies feed the same loop."},{title:"Traits that translated",body:"Over time, a private view of which r\xe9sum\xe9 signals actually produced good hires for your team."},{title:"Organisational learning",body:"Your workspace gets sharper. Other AROS customers see none of it \u2014 Vision \xa74.4 data isolation is absolute."}],founder:{heading:"Why we built this",quote:"Hiring platforms that don't learn from outcomes are just glorified inboxes. Every product I've used treated \"offer signed\" as the finish line. It's the start. Outcome Intelligence is the reason AROS gets better the longer you use it \u2014 and the reason nobody else's data can ever poison your workspace.",attribution:"AROS Founder"},faqs:[{q:"Is the outcome data shared with other companies?",a:"Never. Your outcome data stays in your workspace. It is not sold, not used to train AROS's general models, and not aggregated with other customers. Full stop."},{q:"What if I don't want to log outcomes?",a:"You don't have to. Outcome logging is optional and n
2on-blocking \u2014 nothing about the rest of AROS depends on it. But teams that log outcomes see the AI get noticeably sharper by hire three or four."},{q:"Can I edit a review later?",a:"Yes. Reviews are living notes, not audit records. Update them as your understanding of the hire evolves."},{q:"Does AROS use this data to change candidate scoring?",a:"No candidate scoring exists to begin with. Outcome data changes how AROS drafts summaries and interview questions for your future roles \u2014 it does not change how existing candidates are evaluated."}],related:["ai-hiring-summary","candidate-intelligence","trust-security"]},"trust-security":{slug:"trust-security",title:"Trust & Security",metaTitle:"Trust & Security \xb7 AROS",metaDescription:"Explainable AI, isolated organisation data, human approval on every consequential action. Read the details of how AROS protects your team and candidates.",badge:{icon:"ShieldCheck",label:"Explainable AI"},heroLead:"Built for responsible AI hiring.",heroSub:"AI provides evidence-based recommendations. Every hiring decision remains human. Every organisation's data stays isolated. Candidate information is handled with care.",preview:"TrustPreview",problem:{heading:"AI in hiring has earned real skepticism.",paras:['The AI-in-hiring category is full of tools that automate rejection, rank people 1\u2013N, share candidate data across customers to "improve the model," and quietly encode bias into a black box nobody can inspect.',"That's not what AROS is. We built the trust contract into the code first, then the product on top.","Every claim we make on this page is enforced by the system, not by policy."]},solution:{heading:"The four things we guarantee",intro:"Every AROS deployment enforces these four rules at the code level:",flow:["Human in control \u2014 no candidate outcome is ever sent without your explicit click","AI explains itself \u2014 every recommendation cites the r\xe9sum\xe9 line and the job requirement it came from","Organisation isolation \u2014 your data never mixes with anyone else's, ever, technically enforced","Explainable, editable, overridable \u2014 every AI output is a draft you can change"]},outputs:[{title:"Explainable recommendations",body:"Click any AI output and see the exact r\xe9sum\xe9 lines and job requirements that produced it."},{title:"Human approval required",body:"Nothing consequential \u2014 invite, reject, offer \u2014 happens without a human click. AROS never sends outcome emails autonomously."},{title:"Data stays in your workspace",body:"Candidate r\xe9sum\xe9s, notes, ratings, and outcomes are scoped to your organisation. We do not train general models on your data."},{title:"Audit trail",body:"Every reclassification, every override, every outcome log is timestamped and attributable. Nothing happens invisibly."}],founder:{heading:"Why we built this",quote:"I have watched a friend get automatically rejected by AI she never spoke to. That doesn't happen on AROS. Not because we have a policy against it, but because the system literally cannot do it \u2014 the code path doesn't exist. Trust isn't a marketing surface. It's the deepest layer of the product.",attribution:"AROS Founder"},faqs:[{q:"Is AROS SOC 2 certified?",a:"Not yet. We follow SOC 2-aligned practices but haven't completed the audit. When we do, we'll say so on the Trust page \u2014 not before. We won't claim certifications we haven't earned."}
2,{q:"Do you sell or share candidate data?",a:"No. Candidate data is never sold, licensed, or shared with any other AROS customer. It is not used to train general AI models. It stays inside your organisation."},{q:"Can candidates request their data?",a:"Yes. Under GDPR-aligned practice, candidates can request access to, export of, or deletion of their data. Contact [email protected] and we handle it within a reasonable window."},{q:"What happens if AROS ships an AI feature I disagree with?",a:"You can turn it off. Every AI surface has a human-only fallback. If you ever want AROS to stop drafting anything, it will."},{q:"Who has access to my workspace data?",a:"Your team, and a very small number of AROS engineers under strict operational controls (production access is logged and audited). We do not browse customer data."}],related:["ai-hiring-summary","candidate-intelligence","outcome-intelligence"]}},rw=["ai-hiring-summary","candidate-intelligence","category-pipeline","interview-intelligence","outcome-intelligence","trust-security"],iw=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),sw=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:iw})));sw.displayName="CircleIcon";const ow=sw,lw="#041C3A",cw="#0F4FA8",dw="#6B7280",uw="#374151",mw="#E5E7EB",pw="#16A34A",hw="#B45309",fw="#F8FAFC";function xw(e){let t=e.label,n=e.children,a=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-2xl bg-white overflow-hidden",style:{border:"1px solid ".concat(mw),boxShadow:"0 4px 20px rgba(4,28,58,0.06)"},"data-testid":a,children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b",style:{borderColor:mw,background:fw},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Pe.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#F87171"}}),(0,Pe.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#FBBF24"}}),(0,Pe.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#34D399"}})]}),(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.2em] font-semibold",style:{color:dw},children:t}),(0,Pe.jsx)("div",{className:"w-14"})]}),(0,Pe.jsx)("div",{className:"p-5",children:n})]})}function gw(){return(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono font-semibold uppercase tracking-[0.16em]",style:{background:"#FFF7ED",color:hw,border:"1px solid #FED7AA"},children:"Draft \u2014 please review"})}const vw={HiringSummaryPreview:function(){const e=[{label:"Strong Match",count:4,color:pw,icon:Yf},{label:"Worth a second look",count:7,color:cw,icon:ly},{label:"Worth a closer look",count:12,color:dw,icon:ow}];return(0,Pe.jsxs)(xw,{label:"Senior Backend Engineer \xb7 this week",testid:"preview-hiring-summary",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-xs font-brand",style:{color:dw},children:"Applicants in the last 7 days"}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-1",style:{color:lw},children:"23 new"})]}),(0,Pe.jsx)(gw,{})]}),(0,Pe.jsx)("div",{className:"mt-4 space-y-2",children:e.map(e=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsx)(e.icon,{size:18,weight:"fill",style:{color:e.color}}),(0,Pe.jsx)("div",{className:"flex-1 text-sm font-brand",style:{color:lw},children:e.label}),(0,Pe.jsx)("div",{className:"font-mono text-sm",style:{color:uw},children:e.count})]},e.label))}),(0,Pe.jsxs)("div",{className:"mt-4 text-[13px] leading-relaxed font-brand",style:{color:uw},children:[(0,Pe.jsx)("strong",{children:"Recap:"}
2)," Four strong matches this week \u2014 two former startup engineers with distributed-systems experience worth a first call."]})]})},CandidateIntelPreview:function(){return(0,Pe.jsxs)(xw,{label:"J. Rivera \xb7 Senior Backend Engineer",testid:"preview-candidate-intel",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-lg",style:{color:lw},children:"Jamie Rivera"}),(0,Pe.jsx)("div",{className:"text-xs font-brand",style:{color:dw},children:"7 years \xb7 Distributed systems \xb7 Applied 2 days ago"})]}),(0,Pe.jsx)(gw,{})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[(0,Pe.jsxs)("div",{className:"p-3 rounded-lg",style:{background:"#F0FDF4",border:"1px solid #BBF7D0"},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold",style:{color:pw},children:"Matches"}),(0,Pe.jsxs)("ul",{className:"mt-1.5 text-[12px] font-brand space-y-1",style:{color:lw},children:[(0,Pe.jsx)("li",{children:"\xb7 Python + async pipelines"}),(0,Pe.jsx)("li",{children:"\xb7 AWS + IaC ownership"}),(0,Pe.jsx)("li",{children:"\xb7 Team-lead experience"})]})]}),(0,Pe.jsxs)("div",{className:"p-3 rounded-lg",style:{background:"#FFF7ED",border:"1px solid #FED7AA"},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold",style:{color:hw},children:"Doesn't match"}),(0,Pe.jsxs)("ul",{className:"mt-1.5 text-[12px] font-brand space-y-1",style:{color:lw},children:[(0,Pe.jsx)("li",{children:"\xb7 No Kafka on r\xe9sum\xe9"}),(0,Pe.jsx)("li",{children:"\xb7 No fintech domain"})]})]})]}),(0,Pe.jsxs)("div",{className:"mt-3 p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold",style:{color:dw},children:"Questions to ask"}),(0,Pe.jsx)("div",{className:"mt-1.5 text-[12px] font-brand leading-relaxed",style:{color:uw},children:"\u201cYou led a two-year migration off a monolith at Acme \u2014 what did you learn about coordinating stakeholder buy-in mid-migration?\u201d"})]})]})},CategoryPipelinePreview:function(){const e=[{label:"Strong Match",color:pw,names:["Jamie Rivera","Alex Chen","Priya Nair","Dana Wu"]},{label:"Worth a second look",color:cw,names:["Sam Kim","M. Fern\xe1ndez","Ren Ito","\u20263 more"]},{label:"Worth a closer look",color:dw,names:["Cara Booth","Otis Reed","\u202610 more"]}];return(0,Pe.jsxs)(xw,{label:"Senior Backend Engineer \xb7 pipeline",testid:"preview-category-pipeline",children:[(0,Pe.jsx)("div",{className:"grid grid-cols-3 gap-2",children:e.map(e=>(0,Pe.jsxs)("div",{className:"p-2.5 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,Pe.jsx)("span",{className:"w-2 h-2 rounded-full",style:{background:e.color}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.14em] font-mono font-semibold",style:{color:dw},children:e.label})]}),(0,Pe.jsx)("ul",{className:"space-y-1",children:e.names.map(e=>(0,Pe.jsx)("li",{className:"text-[12px] font-brand px-2 py-1.5 rounded bg-white",style:{color:lw,border:"1px solid ".concat(mw)},children:e},e))})]},e.label))}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-center gap-2 text-[11px] font-brand",style:{color:dw},children:[(0,Pe.jsx)(hy,{size:14,weight:"duotone",style:{color:cw}}),"No numeric scores. Move any candidate with one click."]})]})},InterviewIntelPreview:function(){return(0,Pe.jsxs)(xw,{label:"Interview guide \xb7 J. Rivera",testid:"preview-interview-intel",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-base",style:{color:lw},children:"Prepared for your 30-min screen"}),(0,Pe.jsx)(gw,{})]}),(0,Pe.jsxs)("ol",{className:"mt-4 space-y-3 text-[13px] font-brand",style:{color:uw},children:[(0,Pe.jsxs)("li",{className:"p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.16em] font-mono font-semibold",style:{color:cw},children:[(0,Pe.jsx)(Cy,{size:12,weight:"duotone"})," Technical \xb7 grounded in r\xe9sum\xe9"]}),(0,Pe.jsx)("div",{className:"mt-1.5 leading-relaxed",children:"Walk me through the Kafka-to-Kinesis migration you led at Acme. What did you underestimate?"})]}),(0,Pe.jsxs)("li",{className:"p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.16em] font-mono font-semibold",style:{color:cw},children:[(0,Pe.jsx)(Cy,{size:12,weight:"duotone"})," Behavioural \xb7 for this role"]}),(0,Pe.jsx)("div",{className:"mt-1.5 leading-relaxed",children:"Tell me about a time you disagreed with a technical direction. What did you do?"})]}),(0,Pe.jsxs)("li",{className:"p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.16em] font-mono font-semibold",style:{color:hw},children:[(0,Pe.jsx)(Cy,{size:12,weight:"duotone"})," Probe \xb7 thin evidence"]}),(0,Pe.jsx)("div",{className:"mt-1.5 leading-relaxed",children:"R\xe9sum\xe9 mentions \u201con-call ownership\u201d but no context \u2014 ask what that meant in practice."})]})]})]})},OutcomeIntelPreview:function(){return(0,Pe.jsxs)(xw,{label:"Post-hire outcomes \xb7 your workspace",testid:"preview-outcome-intel",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-base",style:{color:lw},children:"What worked, what didn't"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold",style:{color:dw},children:"Private \xb7 your team only"})]}),(0,Pe.jsx)("div",{className:"mt-4 space-y-2",children:[{name:"Alex Chen \xb7 Backend Eng",label:"60 days \u2014 ramping well",tone:"good"},{name:"Priya Nair \xb7 Product Designer",label:"30 days \u2014 logged",tone:"neutral"},{name:"Dana Wu \xb7 Frontend Eng",label:"90 days \u2014 would hire again",tone:"good"}].map(e=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsx)(My,{size:16,weight:"duotone",style:{color:"good"===e.tone?pw:dw}}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("div",{className:"text-sm font-brand font-semibold",style:{color:lw},children:e.name}),(0,Pe.jsx)("div",{className:"text-[12px] font-brand",style:{color:uw},children:e.label})]})]},e.name))}),(0,Pe.jsxs)("div",{className:"mt-3 text-[12px] font-brand leading-relaxed",style:{color:uw},children:["Traits translating well this quarter: ",(0,Pe.jsx)("strong",{children:"self-directed ambiguity handling"}),", ",(0,Pe.jsx)("strong",{children:"async communication"}),"."]})]})},TrustPreview:function(){const e=[{icon:uy,title:"Human in control",body:"No outcome sent without your click."},{icon:ly,title:"AI explains itself",body:"Every draft cites its evidence."},{icon:iy,title:"Isolated by design",body:"Your data never mixes with others'."},{icon:Hy,title:"Privacy by default",body:"Never sold, never used to train general models."}];return(0,Pe.jsx)(xw,{label:"How AROS protects you",testid:"preview-trust",children:(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:e.map(e=>(0,Pe.jsxs)("div",{className:"p-3 rounded-lg",style:{background:fw,border:"1px solid ".concat(mw)},children:[(0,Pe.jsx)(e.icon,{size:18,weight:"duotone",style:{color:cw}}),(0,Pe.jsx)("div",{className:"mt-2 text-sm font-brand font-semibold",style:{color:lw},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1 text-[12px] font-brand",style:{color:uw},children:e.body})]},e.title))})})}},bw="#041C3A",yw="#0F4FA8",jw="#0F172A",ww="#374151",Nw="#6B7280",Aw="#F8FAFC",kw="#E5E7EB",Ew={Star:Ix,Sparkle:ux,Stack:hy,ChatCenteredText:Cy,TrendUp:My,ShieldCheck:iy};function Dw(e){let t=e.id,n=e.background,a=void 0===n?"white":n,r=e.children,i=e.ariaLabel;return(0,Pe.jsx)("section",{id:t,"aria-labelledby":i,className:"px-6 lg:px-8 py-16 lg:py-20",style:{background:a},children:r})}function _w(e){let t=e.children,n=e.color,a=void 0===n?Nw:n;return(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:a},children:t})}function Cw(e){var t,n;let a=e.feature;const r=Ew[null===(t=a.badge)||void 0===t?void 0:t.icon]||Ix;return(0,Pe.jsx)(Dw,{background:"white",ariaLabel:"feature-hero-heading",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto grid lg:grid-cols-2 gap-10 lg:gap-16 items-center","data-testid":"feature-hero",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Yn,{to:"/#product",className:"inline-flex items-center gap-1.5 text-[12px] font-brand font-medium mb-5 hover:-translate-x-0.5 transition-transform",style:{color:yw},"data-testid":"feature-back-link",children:[(0,Pe.jsx)(nw,{size:14,weight:"bold"}),"All platform features"]}),(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-mono font-semibold uppercase tracking-[0.16em]",style:{background:"#EEF4FF",color:yw,border:"1px solid #DBE6FF"},"data-testid":"feature-badge",children:[(0,Pe.jsx)(r,{size:12,weight:"fill"}),null===(n=a.badge)||void 0===n?void 0:n.label]}),(0,Pe.jsx)("h1",{id:"feature-hero-heading",className:"font-brand font-extrabold text-4xl sm:text-5xl tracking-[-0.025em] leading-[1.05] mt-4",style:{color:bw},"data-testid":"feature-hero-headline",children:a.heroLead}),(0,Pe.jsx)("p",{className:"mt-5 text-lg leading-relaxed max-w-xl font-brand",style:{color:ww},"data-testid":"feature-hero-sub",children:a.heroSub}),(0,Pe.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-3","data-testid":"feature-hero-ctas",children:[(0,Pe.jsx)(Yn,{to:"/register",onClick:()=>zy("feature_hero_primary_cta_clicked",{label:{slug:a.slug}}),children:(0,Pe.jsxs)(Lo,{className:"text-white font-brand font-medium px-6 h-12 text-base transition-all hover:-translate-y-0.5",style:{background:bw,borderRadius:10},"data-testid":"feature-hero-primary-cta",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:18,weight:"bold",className:"ml-2"})]})}),(0,Pe.jsx)("a",{href:"#feature-preview",onClick:()=>zy("feature_hero_secondary_cta_clicked",{label:{slug:a.slug}}),children:(0,Pe.jsx)(Lo,{variant:"ghost",className:"font-brand font-medium h-12 px-4 text-base",style:{color:bw},"data-testid":"feature-hero-secondary-cta",children:"See it in action"})})]})]}),(0,Pe.jsx)("div",{id:"feature-preview","data-testid":"feature-preview-wrap",children:(0,Pe.jsx)(Fw,{slug:a.slug,preview:a.preview})})]})})}function Fw(e){let t=e.slug,n=e.preview;const a=vw[n];return a?(0,Pe.jsx)(a,{}):(0,Pe.jsx)("div",{className:"rounded-2xl p-6",style:{background:Aw,border:"1px dashed ".concat(kw),color:Nw},"data-testid":"feature-preview-missing-".concat(t),children:"Preview coming soon."})}function Sw(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:Aw,ariaLabel:"feature-problem-heading",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto","data-testid":"feature-problem",children:[(0,Pe.jsx)(_w,{children:"The problem"}),(0,Pe.jsx)("h2",{id:"feature-problem-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:bw},children:t.problem.heading}),(0,Pe.jsx)("div",{className:"mt-6 space-y-4 text-base leading-relaxed font-brand",style:{color:ww},children:t.problem.paras.map((e,t)=>(0,Pe.jsx)("p",{"data-testid":"feature-problem-para-".concat(t+1),children:e},t))})]})})}function Mw(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:"white",ariaLabel:"feature-solution-
2heading",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto","data-testid":"feature-solution",children:[(0,Pe.jsx)(_w,{children:"How it works"}),(0,Pe.jsx)("h2",{id:"feature-solution-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:bw},children:t.solution.heading}),(0,Pe.jsx)("p",{className:"mt-4 text-base leading-relaxed font-brand",style:{color:ww},children:t.solution.intro}),(0,Pe.jsx)("ol",{className:"mt-8 space-y-3","data-testid":"feature-solution-steps",children:t.solution.flow.map((e,t)=>(0,Pe.jsxs)("li",{className:"rounded-xl bg-white p-4 flex items-start gap-4",style:{border:"1px solid ".concat(kw)},"data-testid":"feature-solution-step-".concat(t+1),children:[(0,Pe.jsx)("div",{className:"shrink-0 w-8 h-8 rounded-full flex items-center justify-center font-brand font-bold text-xs",style:{background:bw,color:"white"},children:t+1}),(0,Pe.jsx)("div",{className:"pt-1 text-[15px] font-brand leading-relaxed",style:{color:ww},children:e})]},t))})]})})}function Ow(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:Aw,ariaLabel:"feature-outputs-heading",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto","data-testid":"feature-outputs",children:[(0,Pe.jsx)(_w,{children:"What you actually get"}),(0,Pe.jsx)("h2",{id:"feature-outputs-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3 max-w-2xl",style:{color:bw},children:"Small surface, big signal."}),(0,Pe.jsx)("div",{className:"mt-10 grid grid-cols-1 md:grid-cols-2 gap-4","data-testid":"feature-outputs-grid",children:t.outputs.map((e,t)=>(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(kw)},"data-testid":"feature-output-card-".concat(t+1),children:[(0,Pe.jsx)(Yf,{size:20,weight:"fill",style:{color:"#16A34A"}}),(0,Pe.jsx)("div",{className:"mt-3 font-brand font-semibold text-lg",style:{color:bw},children:e.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed font-brand",style:{color:ww},children:e.body})]},e.title))})]})})}function Rw(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:bw,ariaLabel:"feature-founder-heading",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto text-white","data-testid":"feature-founder",children:[(0,Pe.jsx)(_w,{color:"rgba(255,255,255,0.55)",children:t.founder.heading}),(0,Pe.jsxs)("blockquote",{id:"feature-founder-heading",className:"font-brand font-medium text-2xl sm:text-3xl tracking-[-0.018em] leading-[1.35] mt-4",children:["\u201c",t.founder.quote,"\u201d"]}),(0,Pe.jsxs)("div",{className:"mt-6 text-sm font-brand",style:{color:"rgba(255,255,255,0.65)"},children:["\u2014 ",t.founder.attribution]})]})})}function Hw(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:"white",ariaLabel:"feature-faq-heading",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto","data-testid":"feature-faq",children:[(0,Pe.jsx)(_w,{children:"Answers"}),(0,Pe.jsx)("h2",{id:"feature-faq-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:bw},children:"Common questions."}),(0,Pe.jsx)($b,{type:"single",collapsible:!0,className:"mt-8","data-testid":"feature-faq-accordion",onValueChange:e=>{if(e){var n;const a=parseInt(e.replace("item-",""),10),r=null===(n=t.faqs[a])||void 0===n?void 0:n.q;r&&zy("feature_faq_expanded",{label:{slug:t.slug,question:r}})}},children:t.faqs.map((e,t)=>(0,Pe.jsxs)(Qb,{value:"item-".concat(t),"data-testid":"feature-faq-item-".concat(t+1),children:[(0,Pe.jsx)(Xb,{className:"font-brand text-left text-[15px] font-semibold",style:{color:bw},children:e.q}),(0,Pe.jsx)(Jb,{className:"text-sm leading-relaxed font-brand",style:{color:ww},children:e.a})]},t))})]})})}function Pw(e){var t;let n=e.feature;const a=(null===(t=n.related)||void 0===t?void 0:t.filter(e=>aw[e]))||[];return 0===a.length?null:(0,Pe.jsx)(Dw,{background:Aw,ariaLabel:"feature-related-heading",children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto","data-testid":"feature-related",children:[(0,Pe.jsx)(_w,{children:"Explore more"}),(0,Pe.jsx)("h2",{id:"feature-related-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:bw},children:"Related in the platform."}),(0,Pe.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-4","data-testid":"feature-related-grid",children:a.map((e,t)=>{var a;const r=aw[e],i=Ew[null===(a=r.badge)||void 0===a?void 0:a.icon]||Ix;return(0,Pe.jsxs)(Yn,{to:"/platform/".concat(e),onClick:()=>zy("feature_related_clicked",{label:{from:n.slug,to:e}}),className:"group rounded-xl bg-white p-6 transition-all hover:-translate-y-0.5 hover:shadow-sm block",style:{border:"1px solid ".concat(kw)},"data-testid":"feature-related-card-".concat(t+1),children:[(0,Pe.jsx)(i,{size:22,weight:"duotone",style:{color:yw}}),(0,Pe.jsx)("div",{className:"mt-3 font-brand font-semibold text-lg",style:{color:bw},children:r.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed font-brand",style:{color:ww},children:r.heroLead}),(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-brand font-semibold inline-flex items-center gap-1 transition-transform group-hover:translate-x-0.5",style:{color:yw},children:["Explore ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})]},e)})})]})})}function Lw(e){let t=e.feature;return(0,Pe.jsx)(Dw,{background:"white",ariaLabel:"feature-final-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto rounded-3xl p-10 sm:p-14 text-center",style:{background:bw,color:"white"},"data-testid":"feature-final-cta",children:[(0,Pe.jsx)(_w,{color:"rgba(255,255,255,0.55)",children:"Ready when you are"}),(0,Pe.jsxs)("h2",{id:"feature-final-heading",className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",children:["See ",t.title.toLowerCase()," in your workflow."]}),(0,Pe.jsx)("p",{className:"mt-4 text-base sm:text-lg leading-relaxed font-brand max-w-xl mx-auto",style:{color:"rgba(255,255,255,0.78)"},children:"Start your 30-day free trial \u2014 no credit card required."}),(0,Pe.jsxs)("div",{className:"mt-8 flex items-center justify-center gap-3",children:[(0,Pe.jsx)(Yn,{to:"/register",onClick:()=>zy("feature_final_cta_clicked",{label:{slug:t.slug}}),children:(0,Pe.jsxs)(Lo,{className:"font-brand font-semibold px-6 h-12 text-base",style:{background:"white",color:bw,borderRadius:10},"data-testid":"feature-final-cta-btn",children:["Start your 30-day free trial",(0,Pe.jsx)(eg,{size:18,weight:"bold",className:"ml-2"})]})}),(0,Pe.jsx)(Yn,{to:"/pricing",onClick:()=>zy("feature_final_pricing_cta_clicked",{label:{slug:t.slug}}),children:(0,Pe.jsxs)(Lo,{variant:"ghost",className:"font-brand font-semibold px-4 h-12 text-base",style:{color:"white"},"data-testid":"feature-final-pricing-cta",children:["See pricing",(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"ml-2"})]})})]})]})})}
2function Tw(){const e=qt().slug,t=aw[e];if(Uy({title:(null===t||void 0===t?void 0:t.metaTitle)||"AROS Platform",description:(null===t||void 0===t?void 0:t.metaDescription)||"Explore AI-powered recruiting, candidate intelligence, interview insights, and evidence-based hiring tools.",canonical:t?"/platform/".concat(t.slug):"/",robots:"index,follow",ogImage:"https://getaros.ai/brand/og.jpg"}),(0,o.useEffect)(()=>{t&&zy("platform_feature_viewed",{path:"/platform/".concat(t.slug),label:{slug:t.slug}})},[t]),!t)return(0,Pe.jsx)(sn,{to:"/#product",replace:!0});const n=rw.indexOf(e),a=n>0?rw[n-1]:null,r=n>=0&&n<rw.length-1?rw[n+1]:null;return(0,Pe.jsxs)("div",{className:"min-h-screen",style:{background:"white",color:jw},children:[(0,Pe.jsx)($y,{}),(0,Pe.jsxs)("main",{id:"main","data-testid":"feature-page-".concat(t.slug),children:[(0,Pe.jsx)(Cw,{feature:t}),(0,Pe.jsx)(Sw,{feature:t}),(0,Pe.jsx)(Mw,{feature:t}),(0,Pe.jsx)(Ow,{feature:t}),(0,Pe.jsx)(Rw,{feature:t}),(0,Pe.jsx)(Hw,{feature:t}),(0,Pe.jsx)(Pw,{feature:t}),(0,Pe.jsx)(Lw,{feature:t}),(a||r)&&(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 pb-16 -mt-8 flex items-center justify-between text-sm font-brand","data-testid":"feature-pager",children:[(0,Pe.jsx)("div",{children:a&&(0,Pe.jsxs)(Yn,{to:"/platform/".concat(a),onClick:()=>zy("feature_pager_clicked",{label:{from:t.slug,to:a,direction:"prev"}}),className:"inline-flex items-center gap-2 font-semibold hover:-translate-x-0.5 transition-transform",style:{color:yw},"data-testid":"feature-pager-prev",children:[(0,Pe.jsx)(nw,{size:16,weight:"bold"}),aw[a].title]})}),(0,Pe.jsx)("div",{children:r&&(0,Pe.jsxs)(Yn,{to:"/platform/".concat(r),onClick:()=>zy("feature_pager_clicked",{label:{from:t.slug,to:r,direction:"next"}}),className:"inline-flex items-center gap-2 font-semibold hover:translate-x-0.5 transition-transform",style:{color:yw},"data-testid":"feature-pager-next",children:[aw[r].title,(0,Pe.jsx)(eg,{size:16,weight:"bold"})]})})]})]}),(0,Pe.jsx)(Qy,{})]})}function Iw(){return Uy({title:"AROS Platform",description:"Explore AI-powered recruiting, candidate intelligence, interview insights, and evidence-based hiring tools.",canonical:"/platform",robots:"index,follow",ogImage:"https://getaros.ai/brand/og.jpg"}),(0,o.useEffect)(()=>{zy("platform_overview_viewed",{path:"/platform"})},[]),(0,Pe.jsxs)("div",{className:"min-h-screen",style:{background:"white",color:jw},children:[(0,Pe.jsx)($y,{}),(0,Pe.jsxs)("main",{id:"main","data-testid":"platform-overview",children:[(0,Pe.jsx)(Dw,{background:"white",ariaLabel:"platform-overview-heading",children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,Pe.jsx)(_w,{color:yw,children:"The platform"}),(0,Pe.jsx)("h1",{id:"platform-overview-heading",className:"font-brand font-extrabold text-4xl sm:text-5xl lg:text-6xl tracking-[-0.025em] leading-[1.05] mt-4",style:{color:bw},"data-testid":"platform-overview-heading",children:"Everything AROS does, in one place."}),(0,Pe.jsx)("p",{className:"mt-6 text-lg leading-relaxed max-w-2xl font-brand",style:{color:ww},children:"Six surfaces built around a single idea: help small teams see the right candidates sooner \u2014 and give every applicant a real answer."})]})}),(0,Pe.jsx)(Dw,{background:Aw,children:(0,Pe.jsx)("div",{className:"max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4","data-testid":"platform-overview-grid",children:rw.map((e,t)=>{var n;const a=aw[e],r=Ew[null===(n=a.badge)||void 0===n?void 0:n.icon]||Ix;return(0,Pe.jsxs)(Yn,{to:"/platform/".concat(e),onClick:()=>zy("platform_overview_card_clicked",{label:{slug:e}}),className:"group rounded-xl bg-white p-6 transition-all hover:-translate-y-0.5 hover:shadow-sm block",style:{border:"1px solid ".concat(kw)},"data-testid":"platform-overview-card-".concat(t+1),children:[(0,Pe.jsx)(r,{size:24,weight:"duotone",style:{color:yw}}),(0,Pe.jsx)("div",{className:"mt-4 font-brand font-semibold text-lg",style:{color:bw},children:a.title}),(0,Pe.jsx)("div",{className:"mt-1.5 text-sm leading-relaxed font-brand",style:{color:ww},children:a.heroLead}),(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-brand font-semibold inline-flex items-center gap-1 transition-transform group-hover:translate-x-0.5",style:{color:yw},children:["Learn more ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})]},e)})})})]}),(0,Pe.jsx)(Qy,{})]})}const Zw="login-email-input",Bw="login-password-input",Vw="login-submit-btn",zw="register-email-input",qw="register-password-input",Uw="register-name-input",Ww="register-role-select",Yw="register-org-input",
2Kw="register-submit-btn",Gw="employer-jobs-list",$w="employer-new-job-btn",Qw="employer-job-form-title",Xw="employer-job-form-save",Jw="employer-job-form-generate",eN="employer-applicants-kanban",tN="employer-ai-input",nN="employer-ai-send",aN="employer-context-questions-btn",rN="employer-recruiter-notes-save",iN="employer-reject-reason",sN="employer-reject-confirm",oN="employer-post-hire-btn",lN="employer-post-hire-submit",cN="employer-roi-tab",dN="admin-dashboard",uN="admin-users-table",mN="admin-audit-log-table";function pN(){Uy({title:"Sign in \xb7 AROS",description:"Sign in to your AROS workspace.",canonical:"/login",robots:"noindex,nofollow"});const e=es(),t=e.login,n=e.logout,a=zt(),r=Zt(),i=Ue(Xn(),1)[0],s=Ue((0,o.useState)(""),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1],x=Ue((0,o.useState)(""),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{"1"===i.get("candidate_retired")&&a("/for-candidates?from=login",{replace:!0})},[i,a]);return(0,Pe.jsxs)("div",{className:"min-h-screen grid grid-cols-1 lg:grid-cols-2",children:[(0,Pe.jsxs)("div",{className:"hidden lg:flex relative bg-[#0F172A] text-white overflow-hidden",children:[(0,Pe.jsx)("img",{src:"https://images.unsplash.com/photo-1497366216548-37526070297c",alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-50"}),(0,Pe.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0F172A] via-[#0F172A]/60 to-transparent"}),(0,Pe.jsxs)("div",{className:"relative z-10 p-12 flex flex-col justify-between w-full",children:[(0,Pe.jsx)(ls,{to:"/",invert:!0}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"SIGN IN"}),(0,Pe.jsxs)("h1",{className:"font-display font-black text-5xl mt-3 leading-none tracking-tight",children:["Hire smarter.",(0,Pe.jsx)("br",{}),"Decide faster."]}),(0,Pe.jsx)("p",{className:"mt-5 text-white/70 max-w-md",children:"Sign in to keep your pipelines moving, your candidates informed, and your decisions documented."})]})]})]}),(0,Pe.jsx)("div",{className:"flex items-center justify-center px-6 py-12",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"lg:hidden mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-3xl tracking-tight",children:"Sign in"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Use your AROS credentials to continue."}),(0,Pe.jsxs)("form",{className:"mt-8 space-y-4",onSubmit:async e=>{e&&e.preventDefault(),f(!0),v("");try{var i,s;const e=await t(l,u);if(e&&e.mfa){const t="enroll"===e.mfa.purpose?"/internal/mfa-setup":"/internal/mfa-verify";return void window.location.replace("".concat(t,"#challenge=").concat(encodeURIComponent(e.mfa.challenge_token)))}if("candidate"===e.role){try{await n()}catch(d){}return void a("/for-candidates?from=login",{replace:!0})}va.success("Welcome, ".concat(e.full_name));const o=null===(i=r.state)||void 0===i||null===(s=i.from)||void 0===s?void 0:s.pathname;o?a(o):"admin"===e.role?a("/app/admin"):e.hiring_mode?"owner"===e.hiring_mode?a("/app/owner"):a("/app/employer"):a("/onboarding/hiring-mode")}catch($ge){var o,c;const t=null===$ge||void 0===$ge||null===(o=$ge.response)||void 0===o||null===(c=o.data)||void 0===c?void 0:c.detail;if(t&&"object"===typeof t&&"candidate_accounts_deprecated"===t.code)return void a(t.redirect_to||"/for-candidates?from=login",{replace:!0});const n=("string"===typeof t?t:null===t||void 0===t?void 0:t.message)||"Login failed";v(n)}finally{f(!1)}},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"email",children:"Email"}),(0,Pe.jsx)(Io,{id:"email","data-testid":Zw,type:"email",value:l,onChange:e=>c(e.target.value),className:"mt-1.5",required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsx)(Go,{htmlFor:"password",children:"Password"}),(0,Pe.jsx)(Yn,{to:"/forgot-password",className:"text-xs text-[#0F4FA8] font-medium","data-testid":"login-forgot-password",children:"Forgot password?"})]}),(0,Pe.jsx)(Io,{id:"password","data-testid":Bw,type:"password",value:u,onChange:e=>m(e.target.value),className:"mt-1.5",required:!0})]}),g&&(0,Pe.jsx)("div",{role:"alert","data-testid":"login-error-toast",className:"rounded-md border border-rose-200 bg-rose-50 text-rose-900 text-sm px-3 py-2",children:g}),(0,Pe.jsx)(Lo,{"data-testid":Vw,type:"submit",disabled:h,className:"w-full bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:h?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):"Sign in"})]}),(0,Pe.jsxs)("div",{className:"mt-5 flex items-center gap-3 text-xs text-muted-foreground",children:[(0,Pe.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,Pe.jsx)("span",{children:"or"}),(0,Pe.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,Pe.jsxs)("button",{type:"button","data-testid":"login-google-btn",onClick:()=>{const e=window.location.origin+"/auth/callback";window.location.href="https://auth.emergentagent.com/?redirect=".concat(encodeURIComponent(e))},className:"mt-4 w-full flex items-center justify-center gap-3 h-11 rounded-md border border-border bg-white text-[#0F172A] hover:bg-slate-50 transition-colors text-sm font-medium",children:[(0,Pe.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,Pe.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),(0,Pe.jsx)("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24
212c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,Pe.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,Pe.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571.001-.001.002-.001.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]}),"Continue with Google"]}),(0,Pe.jsxs)("p",{className:"text-sm text-center text-muted-foreground mt-8",children:["New to AROS? ",(0,Pe.jsx)(Yn,{to:"/register",className:"text-[#0F4FA8] font-medium",children:"Create an account"})]}),(0,Pe.jsx)("p",{className:"text-xs text-center text-muted-foreground mt-4",children:(0,Pe.jsx)(Yn,{to:"/help",className:"hover:text-[#041C3A] underline","data-testid":"login-link-help",children:"Help"})})]})})]})}const hN=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),o.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),fN=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:hN})));fN.displayName="PencilSimpleIcon";const xN=fN,gN=new Set(["starter","growth","business"]);function vN(){Uy({title:"Create your AROS account",description:"Start your 30-day AROS trial. No credit card required.",canonical:"/register",robots:"noindex,nofollow"});const e=es().register,t=zt(),n=Zt(),a=new URLSearchParams(n.search).get("plan"),r=(()=>{try{return sessionStorage.getItem("aros.signup.plan")}catch(e){return null}})(),i=(a||r||"").toLowerCase(),s=Ue((0,o.useState)(i&&gN.has(i)?i:null),1)[0];(0,o.useEffect)(()=>{if(s)try{sessionStorage.setItem("aros.signup.plan",s)}catch(e){}},[s]);const l=Ue((0,o.useState)({loaded:!1,available:!0,cta_label:null,cta_href:null,message:null}),2),c=l[0],d=l[1];(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t=(await Qi.get("/auth/signup-availability")).data;if(!e)return;d({loaded:!0,available:Boolean(null===t||void 0===t?void 0:t.available),cta_label:(null===t||void 0===t?void 0:t.cta_label)||null,cta_href:(null===t||void 0===t?void 0:t.cta_href)||null,message:(null===t||void 0===t?void 0:t.message)||null})}catch(t){if(!e)return;d({loaded:!0,available:!0,cta_label:null,cta_href:null,message:null})}})(),()=>{e=!1}},[]);const u=Ue((0,o.useState)({full_name:"",email:"",password:"",role:"employer",organization_name:""}),2),m=u[0],p=u[1],f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1],v=Ue((0,o.useState)(null),2),b=v[0],y=v[1],j=Ue((0,o.useState)(null),2),w=j[0],N=j[1],A=Ue((0,o.useState)(!1),2),k=A[0],E=A[1],D="employer"===m.role||"recruiter"===m.role;return(0,Pe.jsxs)("div",{className:"min-h-screen grid grid-cols-1 lg:grid-cols-2",children:[(0,Pe.jsxs)("div",{className:"hidden lg:flex relative bg-[#0F172A] text-white overflow-hidden",children:[(0,Pe.jsx)("img",{src:"https://images.unsplash.com/photo-1556761175-5973dc0f32e7",alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-55"}),(0,Pe.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0F172A] via-[#0F172A]/60 to-transparent"}),(0,Pe.jsxs)("div",{className:"relative z-10 p-12 flex flex-col justify-between w-full",children:[(0,Pe.jsx)(ls,{to:"/",invert:!0}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"CREATE ACCOUNT"}),(0,Pe.jsx)("h1",{className:"font-display font-black text-5xl mt-3 leading-none tracking-tight",children:"Join the operating system."}),(0,Pe.jsx)("p",{className:"mt-5 text-white/70 max-w-md",children:"See the evidence. Hire faster. Be the recruiter that doesn't ghost."})]})]})]}),(0,Pe.jsx)("div",{className:"flex items-center justify-center px-6 py-12",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"lg:hidden mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-3xl tracking-tight",children:"Create your account"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["For employers, hiring managers, and recruiters. Candidates get secure access through the employer they applied to \u2014 ",(0,Pe.jsx)("a",{href:"/for-candidates",className:"underline",children:"learn more"}),"."]}),c.loaded&&!c.available?(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-amber-200 bg-amber-50 p-5","data-testid":"register-signups-closed",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-amber-900",children:c.cta_label||"Trial signup opening soon"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-amber-900/90","data-testid":"register-signups-closed-message",children:c.message||"AROS public signups are not open yet. Join the waitlist to hear when they open."}),(0,Pe.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(Yn,{to:c.cta_href||"/register",children:(0,Pe.jsx)(Lo,{className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"register-signups-closed-cta",children:c.cta_label||"Join the waitlist"})}),(0,Pe.jsx)(Yn,{to:"/login",className:"text-sm text-[#0F4FA8] font-medium","data-testid":"register-signups-closed-signin",children:"Already have an account? Sign in"})]})]}):(0,Pe.jsxs)("form",{className:"mt-8 space-y-4",onSubmit:async n=>{if(n.preventDefault(),!c.available)return va.error(c.message||"Public signups are not open yet. Join the waitlist to hear when they open."),void(c.cta_href&&t(c.cta_href));if(m.password.length<6)va.error("Password must be 6+ chars");else{g(!0);try{const n="undefined"!==typeof window&&window.__aros_turnstile_token||void 0,a=await e(h(h({},m),{},{turnstile_token:n}));if(va.success("Welcome to AROS, ".concat(a.full_name.split(" ")[0]," \u2014 check your email to activate your 30-day trial.")),"admin"===a.role)return void t("/app/admin");
2if(s){try{sessionStorage.removeItem("aros.signup.plan")}catch(i){}return void t("/upgrade?plan=".concat(encodeURIComponent(s)))}t("/onboarding/hiring-mode")}catch($ge){var a,r;va.error((null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Registration failed")}finally{g(!1)}}},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{children:"I am a\u2026"}),(0,Pe.jsxs)(Sf,{value:m.role,onValueChange:e=>p(h(h({},m),{},{role:e})),children:[(0,Pe.jsx)(Of,{"data-testid":Ww,className:"mt-1.5",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"employer",children:"Employer / Hiring Manager"}),(0,Pe.jsx)(Lf,{value:"recruiter",children:"Recruiter"})]})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"name",children:"Full name"}),(0,Pe.jsx)(Io,{id:"name","data-testid":Uw,value:m.full_name,onChange:e=>p(h(h({},m),{},{full_name:e.target.value})),className:"mt-1.5",required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"email",children:"Email"}),(0,Pe.jsx)(Io,{id:"email","data-testid":zw,type:"email",value:m.email,onChange:e=>p(h(h({},m),{},{email:e.target.value})),onBlur:async()=>{if(D&&m.email&&m.email.includes("@"))try{var e;const t=(await Qi.post("/onboarding/org-suggest",{email:m.email})).data||{};if(t.should_bypass)return y(null),void N(null);if(t.match)return y(t.match),N(t.domain),E(!1),void p(e=>h(h({},e),{},{organization_name:t.match.name}));null!==(e=t.suggestion)&&void 0!==e&&e.name&&(y(null),N(t.domain),p(e=>h(h({},e),{},{organization_name:e.organization_name||t.suggestion.name})))}catch(t){}},className:"mt-1.5",required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"pwd",children:"Password"}),(0,Pe.jsx)(Io,{id:"pwd","data-testid":qw,type:"password",value:m.password,onChange:e=>p(h(h({},m),{},{password:e.target.value})),className:"mt-1.5",required:!0})]}),D&&(b&&!k?(0,Pe.jsx)("div",{className:"rounded-md border border-emerald-200 bg-emerald-50 p-3","data-testid":"reg-org-match",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:18,weight:"fill",className:"text-emerald-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold text-emerald-900",children:"We found your organization"}),(0,Pe.jsx)("div",{className:"mt-0.5 text-sm text-emerald-900/85 truncate","data-testid":"reg-org-match-name",children:b.name}),(0,Pe.jsxs)("div",{className:"mt-0.5 text-[11px] text-emerald-900/60 font-mono",children:["based on @",w]}),(0,Pe.jsxs)("button",{type:"button",onClick:()=>{E(!0),y(null)},className:"mt-2 inline-flex items-center gap-1 text-xs font-medium text-emerald-900 hover:underline","data-testid":"reg-org-edit",children:[(0,Pe.jsx)(xN,{size:12,weight:"bold"})," Not us \u2014 let me edit"]})]})]})}):(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"org",children:"Organization name"}),(0,Pe.jsx)(Io,{id:"org","data-testid":Yw,value:m.organization_name,onChange:e=>p(h(h({},m),{},{organization_name:e.target.value})),className:"mt-1.5",placeholder:"Your company or agency"}),w&&!b&&m.organization_name&&(0,Pe.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground","data-testid":"reg-org-suggestion-hint",children:"Suggested from your email domain \u2014 edit if needed."})]})),(0,Pe.jsx)(Lo,{"data-testid":Kw,type:"submit",disabled:x,className:"w-full bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:x?"Creating\u2026":"Create account"})]}),(!c.loaded||c.available)&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"mt-5 flex items-center gap-3 text-xs text-muted-foreground",children:[(0,Pe.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,Pe.jsx)("span",{children:"or"}),(0,Pe.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,Pe.jsxs)("button",{type:"button","data-testid":"register-google-btn",onClick:()=>{const e=window.location.origin+"/auth/callback";window.location.href="https://auth.emergentagent.com/?redirect=".concat(encodeURIComponent(e))},className:"mt-4 w-full flex items-center justify-center gap-3 h-11 rounded-md border border-border bg-white text-[#0F172A] hover:bg-slate-50 transition-colors text-sm font-medium",children:[(0,Pe.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,Pe.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),(0,Pe.jsx)("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24
212c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,Pe.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,Pe.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571.001-.001.002-.001.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]}),"Sign up with Google"]}),(0,Pe.jsxs)("p",{className:"text-sm text-center text-muted-foreground mt-6",children:["Already have an account? ",(0,Pe.jsx)(Yn,{to:"/login",className:"text-[#0F4FA8] font-medium",children:"Sign in"})]})]})]})})]})}function bN(){const e=Zt(),t=es().user,n=Boolean(t),a=n?"/app/employer":"/",r=n?"Back to dashboard":"Back to home";return(0,Pe.jsx)("div",{className:"min-h-screen bg-white flex items-center justify-center px-6","data-testid":"not-found-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono","data-testid":"not-found-kicker",children:"Page not found \xb7 404"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-2","data-testid":"not-found-heading",children:"That page doesn't exist."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:"The link may have been renamed or removed. If you followed a bookmark, it might be time to update it."}),(0,Pe.jsx)("div",{className:"mt-4 text-xs font-mono text-muted-foreground bg-slate-50 border border-border rounded-lg px-3 py-2 break-all","data-testid":"not-found-path",children:e.pathname}),(0,Pe.jsxs)("div",{className:"mt-8 flex items-center gap-3",children:[(0,Pe.jsx)(Yn,{to:a,"data-testid":"not-found-home-cta",className:"inline-flex items-center rounded-lg bg-[#1E3A8A] px-4 py-2 text-sm font-medium text-white hover:bg-[#152a68] transition-colors",children:r}),n&&(0,Pe.jsx)(Yn,{to:"/help","data-testid":"not-found-help-link",className:"text-sm text-muted-foreground hover:text-[#1E3A8A] transition-colors",children:"Need help?"})]}),(0,Pe.jsx)("div",{className:"mt-10 text-[11px] uppercase tracking-wider text-muted-foreground/70",children:"AROS \xb7 Evidence organized \xb7 Your team decides."})]})})}function yN(){const e=zt(),t=es().completeGoogleSession,n=Ue((0,o.useState)(null),2),a=n[0],r=n[1];return(0,o.useEffect)(()=>{const n=function(){const e=window.location.hash||"";if(!e.startsWith("#"))return null;const t=new URLSearchParams(e.slice(1)).get("session_id");return t&&t.length>0?t:null}();n?(async()=>{try{await t(n),window.history.replaceState({},document.title,"/auth/callback"),e("/app/employer",{replace:!0})}catch(zf){var a,i;r((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.detail)||"We couldn't finish signing you in with Google. Please try again.")}})():r("Missing session id \u2014 please start the sign-in flow again.")},[]),(0,Pe.jsx)("div",{className:"min-h-screen bg-white flex items-center justify-center px-6",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md text-center","data-testid":"auth-callback",children:[(0,Pe.jsx)("div",{className:"flex justify-center mb-6",children:(0,Pe.jsx)(ls,{to:"/"})}),a?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"rounded-md border border-rose-200 bg-rose-50 text-rose-900 text-sm px-4 py-3 text-left",role:"alert","data-testid":"auth-callback-error",children:a}),(0,Pe.jsx)(Yn,{to:"/login",className:"inline-block mt-6 text-sm font-medium text-[#0F4FA8]","data-testid":"auth-callback-back-to-login",children:"Back to sign in"})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(hx,{size:28,weight:"bold",className:"animate-spin mx-auto",style:{color:"#041C3A"}}),(0,Pe.jsx)("p",{className:"mt-5 text-sm text-muted-foreground","data-testid":"auth-callback-status",children:"Finishing your Google sign-in\u2026"})]})]})})}function jN(){Uy({title:"Reset your password \xb7 AROS",description:"Request a password reset link for your AROS account.",canonical:"/forgot-password",robots:"noindex,nofollow"});const e=Ue((0,o.useState)(""),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!1),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1];return(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 py-12 bg-white","data-testid":"forgot-password-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight",children:"Reset your password"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5",children:"Enter the email you used to sign up. If we find a matching account, we'll send a reset link."}),l?(0,Pe.jsxs)("div",{className:"mt-8 p-4 rounded-md border border-emerald-200 bg-emerald-50","data-testid":"fp-success",children:[(0,Pe.jsx)("div",{className:"font-semibold text-emerald-900",children:"Check your email"}),(0,Pe.jsxs)("p",{className:"mt-1.5 text-sm text-emerald-900/80",children:["If an account exists for ",(0,Pe.jsx)("span",{className:"font-mono",children:t}),", a password reset link has been sent. The link expires in 60 minutes."]}),(0,Pe.jsx)("p",{className:"mt-3 text-xs text-emerald-900/70",children:"Didn't receive it? Check your spam folder, or wait a few minutes and try again."})]}):(0,Pe.jsxs)("form",{className:"mt-8 space-y-4",onSubmit:async e=>{if(e.preventDefault(),t){i(!0);try{await Qi.post("/auth/password-reset/request",{email:t}),c(!0)}catch($ge){var n;c(!0),(null===$ge||void 0===$ge||null===(n=$ge.response)||void 0===n?void 0:n.status)>=500&&va.error("Service temporarily unavailable. Please try again.")}finally{i(!1)}}},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"email",children:"Email"}),(0,Pe.jsx)(Io,{id:"email",type:"email",value:t,onChange:e=>n(e.target.value),className:"mt-1.5",required:!0,"data-testid":"fp-email",autoComplete:"email"})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:r,className:"w-full bg-[#041C3A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"fp-submit",children:r?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):"Send reset link"})]}),(0,Pe.jsx)("p",{className:"text-sm text-center text-muted-foreground mt-8",children:(0,Pe.jsx)(Yn,{to:"/login",className:"text-[#0F4FA8] font-medium","data-testid":"fp-back-to-login",children:"\u2190 Back to sign in"})})]})})}const wN=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),o.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,
2151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),NN=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:wN})));NN.displayName="WarningIcon";const AN=NN;function kN(){const e=Ue(Xn(),1)[0],t=zt(),n=e.get("token")||"",a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(""),2),h=p[0],f=p[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{let e=!0;return(async()=>{if(n)try{const t=await Qi.post("/auth/password-reset/verify",{token:n});e&&c(t.data)}catch($ge){e&&c({valid:!1,reason:"invalid"})}finally{e&&i(!1)}else e&&(c({valid:!1,reason:"invalid"}),i(!1))})(),()=>{e=!1}},[n]);return(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 py-12 bg-white","data-testid":"reset-password-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight",children:"Choose a new password"}),r?(0,Pe.jsx)("div",{className:"mt-8 text-sm text-muted-foreground","data-testid":"rp-verifying",children:"Verifying reset link\u2026"}):null!==l&&void 0!==l&&l.valid?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1.5",children:["Resetting password for ",(0,Pe.jsx)("span",{className:"font-mono",children:l.email_hint}),"."]}),(0,Pe.jsxs)("form",{className:"mt-8 space-y-4",onSubmit:async e=>{if(e.preventDefault(),u.length<12)va.error("Password must be at least ".concat(12," characters."));else if(u===h){v(!0);try{await Qi.post("/auth/password-reset/complete",{token:n,new_password:u}),va.success("Password reset. Please sign in."),t("/login")}catch($ge){var a,r,i,s;const t=(null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Could not reset password. Please request a new link.";var o;if(va.error(t),410===(null===$ge||void 0===$ge||null===(i=$ge.response)||void 0===i?void 0:i.status)||400===(null===$ge||void 0===$ge||null===(s=$ge.response)||void 0===s?void 0:s.status))c({valid:!1,reason:410===(null===$ge||void 0===$ge||null===(o=$ge.response)||void 0===o?void 0:o.status)?"expired":"invalid"})}finally{v(!1)}}else va.error("Passwords do not match.")},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"pwd",children:"New password"}),(0,Pe.jsx)(Io,{id:"pwd",type:"password",value:u,onChange:e=>m(e.target.value),className:"mt-1.5",required:!0,minLength:12,"data-testid":"rp-password",autoComplete:"new-password"}),(0,Pe.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["At least ",12," characters."]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"confirm",children:"Confirm new password"}),(0,Pe.jsx)(Io,{id:"confirm",type:"password",value:h,onChange:e=>f(e.target.value),className:"mt-1.5",required:!0,minLength:12,"data-testid":"rp-confirm",autoComplete:"new-password"})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:g,className:"w-full bg-[#041C3A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"rp-submit",children:g?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):"Set new password"})]})]}):(0,Pe.jsx)(EN,{state:l}),(0,Pe.jsx)("p",{className:"text-sm text-center text-muted-foreground mt-8",children:(0,Pe.jsx)(Yn,{to:"/login",className:"text-[#0F4FA8] font-medium","data-testid":"rp-back-to-login",children:"\u2190 Back to sign in"})})]})})}function EN(e){let t=e.state;const n={invalid:{title:"Link not recognised",body:"This reset link is invali
2d. Request a new one to continue.",testid:"rp-error-invalid"},expired:{title:"Link has expired",body:"This reset link expired after 60 minutes. Request a new one to continue.",testid:"rp-error-expired"},used:{title:"Link already used",body:"This reset link has already been used. Request a new one if you need to reset again.",testid:"rp-error-used"}},a=n[(null===t||void 0===t?void 0:t.reason)||"invalid"]||n.invalid;return(0,Pe.jsxs)("div",{className:"mt-8","data-testid":a.testid,children:[(0,Pe.jsxs)("div",{className:"p-4 rounded-md border border-red-200 bg-red-50 flex gap-3",children:[(0,Pe.jsx)(AN,{size:18,weight:"fill",className:"text-red-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold text-red-900",children:a.title}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-red-900/80",children:a.body})]})]}),(0,Pe.jsx)(Yn,{to:"/forgot-password",className:"mt-4 inline-block text-sm font-medium text-[#0F4FA8]","data-testid":"rp-request-new",children:"Request a new reset link \u2192"})]})}const DN=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-76-92a32,32,0,0,0-12,61.66V180a12,12,0,0,0,24,0v-6.34A32,32,0,0,0,128,112Zm0,24a8,8,0,1,1-8,8A8,8,0,0,1,128,136Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,88H48a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V96A8,8,0,0,0,208,88Zm-80,72a20,20,0,1,1,20-20A20,20,0,0,1,128,160Z",opacity:"0.2"}),o.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-80-96a28,28,0,0,0-8,54.83V184a8,8,0,0,0,16,0V166.83A28,28,0,0,0,128,112Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,128,152Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-72,78.63V184a8,8,0,0,1-16,0V158.63a24,24,0,1,1,16,0ZM160,80H96V56a32,32,0,0,1,64,0Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-82-94a26,26,0,0,0-6,51.29V184a6,6,0,0,0,12,0V165.29A26,26,0,0,0,128,114Zm0,40a14,14,0,1,1,14-14A14,14,0,0,1,128,154Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,112a28,28,0,0,0-8,54.83V184a8,8,0,0,0,16,0V166.83A28,28,0,0,0,128,112Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,128,152Zm80-72H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-84-92a24,24,0,0,0-4,47.66V184a4,4,0,0,0,8,0V163.66A24,24,0,0,0,128,116Zm0,40a16,16,0,1,1,16-16A16,16,0,0,1,128,156Z"}))]]),_N=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:DN})));_N.displayName="LockKeyIcon";const CN=_N;function FN(){const e=zt(),t=(0,o.useRef)(""),n=Ue((0,o.useState)(!0),2),a=n[0],r=n[1],i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],h=m[1],f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1];(0,o.useEffect)(()=>{const e=function(){const e=()=>new Proxy(function(){},{get:(t,n)=>"has_opted_out_capturing"===n?()=>!0:"__loaded"===n||e(),apply(){},set:()=>!0});let t;try{t=window.posthog;try{t&&"function"===typeof t.opt_out_capturing&&t.opt_out_capturing(),t&&"function"===typeof t.reset&&t.reset(!0),t&&"function"===typeof t.stopSessionRecording&&t.stopSessionRecording()}catch(r){}window.posthog=e()}catch(i){}let n=0;const a=setInterval(()=>{n+=1;try{window.posthog&&!0!==window.posthog.__is_aros_noop&&(window.posthog=e())}catch(t){}n>60&&clearInterval(a)},200);return()=>{try{clearInterval(a)}catch(e){}try{void 0!==t&&(window.posthog=t)}catch(n){}}}(),n=function(){if("undefined"===typeof window)return"";const e=window.location.hash||"";let t="";e.startsWith("#")&&(t=new URLSearchParams(e.slice(1)).get("token")||"");try{e&&window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch(n){}return t}();t.current=n;let a=!0;return(async()=>
2{if(n)try{const e=await Qi.post("/admin/internal-recovery/verify",{token:n});a&&l(e.data)}catch($ge){a&&l({valid:!1,reason:"invalid"})}finally{a&&r(!1)}else a&&(l({valid:!1,reason:"invalid"}),r(!1))})(),()=>{a=!1,t.current="","function"===typeof e&&e()}},[]);return(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 py-12 bg-white","data-testid":"internal-recovery-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:[(0,Pe.jsx)(CN,{size:12,weight:"fill"}),"INTERNAL ACCOUNT RECOVERY"]}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-2",children:"Restore access to your AROS account"}),a?(0,Pe.jsx)("div",{className:"mt-8 text-sm text-muted-foreground","data-testid":"ir-verifying",children:"Verifying recovery link\u2026"}):null!==s&&void 0!==s&&s.valid?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1.5",children:["Setting a new password for"," ",(0,Pe.jsx)("span",{className:"font-mono",children:s.email_hint}),". This link is single-use and expires 15 minutes after it was generated."]}),(0,Pe.jsxs)("form",{className:"mt-8 space-y-4",onSubmit:async n=>{if(n.preventDefault(),d.length<12)return void va.error("Password must be at least ".concat(12," characters."));if(d!==p)return void va.error("Passwords do not match.");const a=t.current;if(a){g(!0);try{await Qi.post("/admin/internal-recovery/consume",{token:a,new_password:d}),va.success("Internal account restored. Please sign in."),t.current="",u(""),h(""),e("/login")}catch($ge){var r,i,s,o;const t=(null===$ge||void 0===$ge||null===(r=$ge.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"Could not restore access. Ask the admin to generate a new link.";var c;if(va.error(t),410===(null===$ge||void 0===$ge||null===(s=$ge.response)||void 0===s?void 0:s.status)||400===(null===$ge||void 0===$ge||null===(o=$ge.response)||void 0===o?void 0:o.status))l({valid:!1,reason:410===(null===$ge||void 0===$ge||null===(c=$ge.response)||void 0===c?void 0:c.status)?"expired":"invalid"})}finally{g(!1)}}else va.error("Recovery link is missing a token. Ask the admin to generate a new one.")},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"ir-pwd",children:"New password"}),(0,Pe.jsx)(Io,{id:"ir-pwd",type:"password",value:d,onChange:e=>u(e.target.value),className:"mt-1.5",required:!0,minLength:12,"data-testid":"ir-password",autoComplete:"new-password"}),(0,Pe.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["At least ",12," characters."]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"ir-confirm",children:"Confirm new password"}),(0,Pe.jsx)(Io,{id:"ir-confirm",type:"password",value:p,onChange:e=>h(e.target.value),className:"mt-1.5",required:!0,minLength:12,"data-testid":"ir-confirm",autoComplete:"new-password"})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:x,className:"w-full bg-[#041C3A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"ir-submit",children:x?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):"Restore access"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-4",children:"Completing this reset will sign every other device out of this account."})]}):(0,Pe.jsx)(SN,{state:s}),(0,Pe.jsx)("p",{className:"text-sm text-center text-muted-foreground mt-8",children:(0,Pe.jsx)(Yn,{to:"/login",className:"text-[#0F4FA8] font-medium","data-testid":"ir-back-to-login",children:"\u2190 Back to sign in"})})]})})}function SN(e){let t=e.state;const n={invalid:{title:"Link not recognised",body:"This recovery link is invalid. Ask an @aros.ai administrator to generate a new one.",testid:"ir-error-invalid"},expired:{title:"Link has expired",body:"This recovery link expired 15 minutes after it was generated. Ask an @aros.ai administrator to generate a new one.",testid:"ir-error-expired"},used:{title:"Link already used",body:"This recovery link has already been used. If you still need access, ask an @aros.ai administrator to generate a fresh one.",testid:"ir-error-used"}},a=n[(null===t||void 0===t?void 0:t.reason)||"invalid"]||n.invalid;return(0,Pe.jsx)("div",{className:"mt-8","data-testid":a.testid,children:(0,Pe.jsxs)("div",{className:"p-4 rounded-md border border-red-200 bg-red-50 flex gap-3",children:[(0,Pe.jsx)(AN,{size:18,weight:"fill",className:"text-red-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold text-red-900",children:a.title}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-red-900/80",children:a.body})]})]})})}let MN=null,ON=null;function RN(e){let t=e.mode,n=void 0===t?"enroll":t;const a=zt(),r=Ue(Xn(),1)[0],i=es().refresh,s=(0,o.useRef)(""),l=(0,o.useRef)(""),c=Ue((0,o.useState)("loading"),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(""),2),b=v[0],y=v[1],j=Ue((0,o.useState)(""),2),w=j[0],N=j[1],A=Ue((0,o.useState)(!1),2),k=A[0],E=A[1],D=Ue((0,o.useState)(!1),2),_=D[0],C=D[1];(0,o.useEffect)(()=>{const e=function(){const e=()=>new Proxy(function(){},{get:(t,n)=>"has_opted_out_capturing"===n?()=>
2!0:"__loaded"===n||e(),apply(){},set:()=>!0});let t;try{t=window.posthog;try{var n,a,r;null!==(n=t)&&void 0!==n&&n.opt_out_capturing&&t.opt_out_capturing(),null!==(a=t)&&void 0!==a&&a.reset&&t.reset(!0),null!==(r=t)&&void 0!==r&&r.stopSessionRecording&&t.stopSessionRecording()}catch(o){}window.posthog=e()}catch(l){}let i=0;const s=setInterval(()=>{i+=1;try{window.posthog&&!0!==window.posthog.__is_aros_noop&&(window.posthog=e())}catch(t){}i>60&&clearInterval(s)},200);return()=>{try{clearInterval(s)}catch(e){}try{void 0!==t&&(window.posthog=t)}catch(n){}}}(),t=function(){if("undefined"===typeof window)return"";const e=window.location.pathname+window.location.hash;if(ON===e&&null!==MN)return MN;const t=window.location.hash||"";let n="";t.startsWith("#")&&(n=new URLSearchParams(t.slice(1)).get("challenge")||"");try{t&&window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch(a){}return MN=n,ON=window.location.pathname+"",n}();s.current=t;let a=!0;return(async()=>{if(t)if("verify"!==n)try{const e=await Qi.post("/auth/mfa/enroll/begin",{challenge_token:t});if(!a)return;l.current=e.data.secret,g(e.data.secret),y(e.data.provisioning_uri),u("prompt")}catch($ge){var e,r;if(!a)return;const n=(null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(r=e.data)||void 0===r?void 0:r.detail)||"";String(n).includes("expired")||String(n).includes("invalid")?h("invalid_or_expired_challenge"):h("begin_failed"),u("error")}else a&&u("prompt");else a&&(h("no_challenge"),u("error"))})(),()=>{a=!1,s.current="",l.current="",g(""),y(""),N(""),"function"===typeof e&&e()}},[n]);(0,o.useMemo)(()=>"",[b]);return(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 py-12 bg-white","data-testid":"mfa-setup-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"mb-8",children:(0,Pe.jsx)(ls,{to:"/"})}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:[(0,Pe.jsx)(CN,{size:12,weight:"fill"}),"FOUNDER \xb7 MULTI-FACTOR AUTHENTICATION"]}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-2",children:"verify"===n?"Enter your authenticator code":"Set up your authenticator app"}),"loading"===d&&(0,Pe.jsxs)("div",{className:"mt-8 text-sm text-muted-foreground","data-testid":"mfa-loading",children:[(0,Pe.jsx)(hx,{size:16,className:"animate-spin inline mr-2"}),"Preparing secure session\u2026"]}),"error"===d&&(0,Pe.jsx)(HN,{reason:p}),"prompt"===d&&(0,Pe.jsxs)(Pe.Fragment,{children:["enroll"===n&&(0,Pe.jsxs)("div",{className:"mt-6","data-testid":"mfa-enroll-instructions",children:[(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:"Scan this code with any TOTP authenticator (1Password, Authy, Google Authenticator, Bitwarden). Then type the 6-digit code the app shows to finish setup."}),(0,Pe.jsxs)("div",{className:"mt-4 rounded-md border bg-slate-50 p-4 space-y-2 text-sm",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-slate-700",children:[(0,Pe.jsx)(CN,{size:14,weight:"fill"}),(0,Pe.jsx)("span",{className:"font-medium",children:"One-time secret"})]}),(0,Pe.jsx)("div",{className:"font-mono text-[13px] break-all text-slate-900 select-all","data-testid":"mfa-enroll-secret",children:x}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground",children:"Type this into your authenticator app manually if the QR scan isn't available. Do NOT save this string anywhere else \u2014 you won't see it again after the next step."}),b?(0,Pe.jsx)("div",{className:"pt-2",children:(0,Pe.jsx)("a",{href:b,className:"text-[11px] text-[#0F4FA8] underline break-all",rel:"noreferrer noopener nofollow","data-testid":"mfa-enroll-otpauth",children:"Open in authenticator app"})}):null]})]}),_&&(0,Pe.jsxs)("div",{role:"alert",className:"mt-4 rounded-md border border-rose-200 bg-rose-50 text-rose-900 text-sm px-3 py-2","data-testid":"mfa-rate-limited",children:["Too many failed attempts. Please wait 15 minutes and try again from"," ",(0,Pe.jsx)(Yn,{to:"/login",className:"underline",children:"the login screen"}),"."]}),(0,Pe.jsxs)("form",{className:"mt-6 space-y-4",onSubmit:async e=>{if(e&&e.preventDefault(),6!==w.length)return void va.error("Enter the ".concat(6,"-digit code from your authenticator app."));const t=s.current;if(!t)return h("no_challenge"),void u("error");E(!0);try{var o;const e="verify"===n?"/auth/mfa/verify":"/auth/mfa/enroll/complete",c=null===(o=(await Qi.post(e,{challenge_token:t,code:w})).data)||void 0===o?void 0:o.access_token;if(!c)throw new Error("no_token");localStorage.setItem("aros_token",c),s.current="",l.current="",MN=null,ON=null,g(""),y(""),N(""),u("done"),await i(),va.success("MFA verified \u2014 welcome back.");const d=r.get("next")||"/app/admin";a(d,{replace:!0})}catch($ge){var c,d,m;const t=null===$ge||void 0===$ge||null===(c=$ge.response)||void 0===c?void 0:c.status,n=(null===$ge||void 0===$ge||null===(d=$ge.response)||void 0===d||null===(m=d.data)||void 0===m?void 0:m.detail)||"";429===t?(C(!0),va.error("Too many failed attempts. Try again in 15 minutes.")):400===t&&(String(n).includes("expired")||String(n).includes("invalid"))?(h("invalid_or_expired_challenge"),u("error")):401===t?va.error("Incorrect code \u2014 try again."):va.error("Could not complete MFA. Restart from /login."),N("")}finally{E(!1)}},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"mfa-code",children:"6-digit code"}),(0,Pe.jsx)(Io,{id:"mfa-code","data-testid":"mfa-code-input",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,autoComplete:"one-time-code",value:w,onChange:e=>N(e.target.value.replace(/\D/g,"").slice(0,6)),className:"mt-1.5 font-mono tracking-[0.4em] text-center text-lg",required:!0,autoFocus:!0})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:k||_||6!==w.length,className:"w-full bg-[#041C3A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"mfa-submit",children:k?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):"verify"===n?"Verify":"Complete setup"})]})]}),"done"===d&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-emerald-200 bg-emerald-50 p-4 flex gap-3","data-testid":"mfa-done",children:[(0,Pe.jsx)(Yf,{size:18,weight:"fill",className:"text-emerald-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold text-emerald-900",children:"MFA verified"}),(0,Pe.jsx)("p",{className:"text-sm text-emerald-900/80 mt-1",children:"Redirecting to your workspace\u2026"})]})]}),(0,Pe.jsx)("p",{className:"text-sm text-center text-muted-foreground mt-8",children:(0,Pe.jsx)(Yn,{to:"/login",className:"text-[#0F4FA8] font-medium","data-testid":"mfa-back-to-login",children:"\u2190 Back to sign in"})})]})})}function HN(e){const t={no_challenge:{title:"Session expired",body:"This MFA link is missing its session token. Please sign in again to receive a fresh one.",testid:"mfa-error-no-challenge"},invalid_or_expired_challenge:{title:"Challenge expired",body:"MFA challenges expire 5 minutes after login. Please sign in again to receive a fresh challenge.",testid:"mfa-error-expired"},begin_failed:{title:"Could not start enrolment",body:"AROS could not begin MFA enrolment. Please sign in again, or contact the security team.",testid:"mfa-error-begin"}},n=t[e.reason]||t.no_challenge;return(0,Pe.jsx)("div",{className:"mt-8","data-testid":n.testid,children:(0,Pe.jsxs)("div",{className:"p-4 rounded-md border border-red-200 bg-red-50 flex gap-3",children:[(0,Pe.jsx)(AN,{size:18,weight:"fill",className:"text-red-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold text-red-900",children:n.title}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-red-900/80",children:n.body})]})]})})}const PN=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24a80,80,0,0,0-80,80c0,72,80,128,80,128s80-56,80-128A80,80,0,0,0,128,24Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,128,136Z",opacity:"0.2"}),o.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,66a38,38,0,1,0,38,38A38,38,0,0,0,128,66Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,130Zm0-112a86.1,86.1,0,0,0-86,86c0,30.91,14.34,63.74,41.47,94.94a252.32,252.32,0,0,0,41.09,38,6,6,0,0,0,6.88,0,252.32,252.32,0,0,0,41.09-38c27.13-31.2,41.47-64,41.47-94.94A86.1,86.1,0,0,0,128,18Zm0,206.51C113,212.93,54,163.62,54,104a74,74,0,0,1,148,0C202,163.62,143,212.93,128,224.51Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,68a36,36,0,1,0,36,36A36,36,0,0,0,128,68Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,132Zm0-112a84.09,84.09,0,0,0-84,84c0,30.42,14.17,62.79,41,93.62a250,250,0,0,0,40.73,37.66,4,4,0,0,0,4.58,0A250,250,0,0,0,171,197.62c26.81-30.83,41-63.2,41-93.62A84.09,84.09,0,0,0,128,20Zm37.1,172.23A254.62,254.62,0,0,1,128,227a254.62,254.62,0,0,1-37.1-34.81C73.15,171.8,52,139.9,52,104a76,76,0,0,1,152,0C204,139.9,182.85,171.8,165.1,192.23Z"}))]]),LN=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:PN})));LN.displayName="MapPinIcon";const TN=LN,IN="".concat("https://www.getaros.ai","/api");function ZN(){const e=Ue((0,o.useState)("loading"),2),t=e[0],n=e[1],a=Ue((0,o.useState)([]),2),r=a[0],i=a[1];return Uy({title:"Open roles \xb7 AROS",description:"Live open roles hiring through AROS. AROS is the hiring platform companies use to evaluate candidates fairly \u2014 apply directly, no candidate account required.",canonical:"/jobs",robots:"index,follow"}),(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{var t;const a=await Ki.get("".concat(IN,"/public/jobs"),{params:{limit:50},validateStatus:()=>!0});if(!e)return;if(503===a.status)return void n("unavailable");if(200!==a.status)return void n("unavailable");const r=Array.isArray(null===(t=a.data)||void 0===t?void 0:t.items)?a.data.items:[];i(r),n(r.length?"loaded":"empty")}catch(a){e&&n("unavailable")}})(),()=>{e=!1}},[]),(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("main",{className:"max-w-4xl mx-auto px-6 py-14","data-testid":"public-jobs-list-page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500",children:"Open roles"}),(0,Pe.jsx)("h1",{className:"mt-2 font-brand font-bold text-4xl sm:text-5xl tracking-[-0.022em]",style:{color:"#041C3A"},children:"Roles hiring through AROS"}),(0,Pe.jsx)("p",{className:"mt-4 max-w-2xl text-base leading-relaxed text-slate-700",children:"Every role below is live and accepting applications. Applications go directly to the employer \u2014 no candidate account required. AROS is the hiring platform they use to evaluate candidates fairly."}),(0,Pe.jsxs)("div",{className:"mt-10 space-y-3","data-testid":"public-jobs-list-items",children:["loading"===t&&(0,Pe.jsx)("div",{"data-testid":"public-jobs-list-loading",className:"space-y-3",children:Array.from({length:4}).map((e,t)=>(0,Pe.jsxs)("div",{className:"animate-pulse rounded-md border border-slate-200 p-5",children:[(0,Pe.jsx)("div",{className:"h-4 w-2/3 bg-slate-200 rounded"}),(0,Pe.jsx)("div",{className:"mt-3 h-3 w-1/2 bg-slate-100 rounded"})]},t))}),"empty"===t&&(0,Pe.jsxs)("div",{"data-testid":"public-jobs-list-empty",className:"rounded-md border border-slate-200 bg-slate-50 p-8 text-center",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-slate-800",children:"No open roles right now"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Check back soon \u2014 companies hiring through AROS post new roles regularly."}),(0,Pe.jsx)(Yn,{to:"/",className:"mt-4 inline-block text-sm underline text-slate-700","data-testid":"public-jobs-list-empty-home",children:"\u2190 Back to home"})]}),"unavailable"===t&&(0,Pe.jsxs)("div",{"data-testid":"public-jobs-list-unavailable",className:"rounded-md border border-amber-300 bg-amber-50 p-8 text-center",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-amber-900",children:"Job listings are temporarily unavailable"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-amber-900/80",children:"We couldn't reach the jobs service. Please try again in a moment."})]}),"loaded"===t&&r.map(e=>{var t;const n=e.canonicalSlug||"job-".concat(e.publicId),a={remote:"Remote",hybrid:"Hybrid",onsite:"On-site"}[null===(r=e.workplaceType)||void 0===r?void 0:r.toLowerCase()]||null;var r;const i=function(e){if(!e)return null;const t=new Intl.NumberFormat("en-US"),n=e.minValue?"$".concat(t.format(e.minValue)):null,a=e.maxValue?"$".concat(t.format(e.maxValue)):null,r="HOUR"===e.unitText?"/hr":"MONTH"===e.unitText?"/mo":"";return n&&a?"".concat(n,"\u2013").concat(a).concat(r):"".concat(n||a).concat(r)}(e.compensation),s=null===(t=e.location)||void 0===t?void 0:t.freeText;return(0,Pe.jsx)(Yn,{to:"/jobs/".concat(n),className:"block rounded-md border border-slate-200 bg-white p-5 hover:border-slate-400 transition-colors","data-testid":"public-job-row-".concat(e.publicId),children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] font-mono text-slate-500",children:e.company||"AROS"}),(0,Pe.jsx)("div",{className:"mt-1 text-lg font-semibold text-slate-900 truncate",children:e.title}),(0,Pe.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-slate-600",children:[s&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(TN,{size:14,weight:"fill",className:"text-slate-400"}),s]}),a&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(Cg,{size:14,weight:"fill",className:"text-slate-400"}),a]}),e.employmentType&&(0,Pe.jsx)("span",{className:"capitalize",children:e.employmentType.replace(/_/g," ")}),i&&(0,Pe.jsx)("span",{children:i})]})]}),(0,Pe.jsx)(eg,{size:18,className:"mt-2 text-slate-400 shrink-0"})]})},e.publicId)})]}),(0,Pe.jsxs)("div",{className:"mt-16 border-t border-slate-200 pt-6 text-xs text-slate-500",children:["AROS is a hiring platform \u2014 ",(0,Pe.jsx)(Yn,{to:"/",className:"underline",children:"learn how it works"}),"."]})]})})}const BN="job-jsonld";const VN=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M152,116H140V60h4a28,28,0,0,1,28,28,12,12,0,0,0,24,0,52.06,52.06,0,0,0-52-52h-4V24a12,12,0,0,0-24,0V36h-4a52,52,0,0,0,0,104h4v56H104a28,28,0,0,1-28-28,12,12,0,0,0-24,0,52.06,52.06,0,0,0,52,52h12v12a12,12,0,0,0,24,0V220h12a52,52,0,0,0,0-104Zm-40,0a28,28,0,0,1,0-56h4v56Zm40,80H140V140h12a28,28,0,0,1,0,56Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,168a40,40,0,0,1-40,40H128V128h24A40,40,0,0,1,192,168ZM112,48a40,40,0,0,0,0,80h16V48Z",opacity:"0.2"}),o.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M160,152a16,16,0,0,1-16,16h-8V136h8A16,16,0,0,1,160,152Zm72-24A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-56,24a32,32,0,0,0-32-32h-8V88h4a16,16,0,0,1,16,16,8,8,0,0,0,16,0,32,32,0,0,0-32-32h-4V64a8,8,0,0,0-16,0v8h-4a32,32,0,0,0,0,64h4v32h-8a16,16,0,0,1-16-16,8,8,0,0,0-16,0,32,32,0,0,0,32,32h8v8a8,8,0,0,0,16,0v-8h8A32,32,0,0,0,176,152Zm-76-48a16,16,0,0,0,16,16h4V88h-4A16,16,0,0,0,100,104Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M152,122H134V54h10a34,34,0,0,1,34,34,6,6,0,0,0,12,0,46.06,46.06,0,0,0-46-46H134V24a6,6,0,0,0-12,0V42H112a46,46,0,0,0,0,92h10v68H104a34,34,0,0,1-34-34,6,6,0,0,0-12,0,46.06,46.06,0,0,0,46,46h18v18a6,6,0,0,0,12,0V214h18a46,46,0,0,0,0-92Zm-40,0a34,34,0,0,1,0-68h10v68Zm40,80H134V134h18a34,34,0,0,1,0,68Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M152,124H132V52h12a36,36,0,0,1,36,36,4,4,0,0,0,8,0,44.05,44.05,0,0,0-44-44H132V24a4,4,0,0,0-8,0V44H112a44,44,0,0,0,0,88h12v72H104a36,36,0,0,1-36-36,4,4,0,0,0-8,0,44.05,44.05,0,0,0,44,44h20v20a4,4,0,0,0,8,0V212h20a44,44,0,0,0,0-88Zm-40,0a36,36,0,0,1,0-72h12v72Zm40,80H132V132h20a36,36,0,0,1,0,72Z"}))]]),zN=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:VN})));zN.displayName="CurrencyDollarIcon";const qN=zN,UN="".concat("https://www.getaros.ai","/api"),WN="#041C3A";function YN(){const e=function(e){if(!e)return"";const t=String(e).split("-");return(t[t.length-1]||"").toLowerCase()}(qt().slugWithId),t=Ue((0,o.useState)("loading"),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1];(0,o.useEffect)(()=>{let t=!0;return a("loading"),s(null),e?((async()=>{try{const n=await Ki.get("".concat(UN,"/public/jobs/by-id/").concat(encodeURIComponent(e),"/full"),{validateStatus:()=>!0});if(!t)return;if(404===n.status)return void a("missing");if(503===n.status)return void a("unavailable");if(200!==n.status||!n.data)return void a("unavailable");s(n.data),a("loaded")}catch(n){t&&a("unavailable")}})(),()=>{t=!1}):(a("missing"),()=>{})},[e]);const l=!1!==(null===i||void 0===i?void 0:i.googleJobsEligible),c="open"===(null===i||void 0===i?void 0:i.publicStatus)&&(null===i||void 0===i?void 0:i.acceptingApplications)&&l,d=(null===i||void 0===i?void 0:i.canonicalUrl)||null;var u;return Uy({title:i?"".concat(i.title," \xb7 ").concat(i.company||"AROS"):"missing"===n?"Role unavailable \xb7 AROS":"Loading\u2026 \xb7 AROS",description:null!==i&&void 0!==i&&i.description?i.description.slice(0,155):"Live role hiring through AROS. Apply directly \u2014 no candidate account required.",canonical:d||"/jobs",robots:c?"index,follow":"noindex,nofollow"}),u=c?null===i||void 0===i?void 0:i.jsonLd:null,(0,o.useEffect)(()=>{if("undefined"===typeof document)return()=>{};if(document.head.querySelectorAll('script[data-managed="'.concat(BN,'"]')).forEach(e=>e.parentNode&&e.parentNode.removeChild(e)),!u||"object"!==typeof u)return()=>{};let e;try{e=JSON.stringify(u)}catch(n){return()=>{}}const t=document.createElement("script");return t.type="application/ld+json",t.setAttribute("data-managed",BN),t.text=e,document.head.appendChild(t),()=>{t.parentNode&&t.parentNode.removeChild(t)}},[u]),(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("main",{className:"max-w-3xl mx-auto px-6 py-14","data-testid":"public-job-detail-page",children:[(0,Pe.jsx)("div",{className:"text-xs",children:(0,Pe.jsx)(Yn,{to:"/jobs",className:"text-slate-500 hover:text-slate-800","data-testid":"public-job-detail-back",children:"\u2190 All open roles"})}),"loading"===n&&(0,Pe.jsxs)("div",{className:"mt-6 animate-pulse space-y-3","data-testid":"public-job-detail-loading",children:[(0,Pe.jsx)("div",{className:"h-4 w-1/3 bg-slate-100 rounded"}),(0,Pe.jsx)("div",{className:"h-8 w-2/3 bg-slate-200 rounded"}),(0,Pe.jsx)("div",{className:"mt-6 h-3 w-full bg-slate-100 rounded"}),(0,Pe.jsx)("div",{className:"h-3 w-5/6 bg-slate-100 rounded"}),(0,Pe.jsx)("div",{className:"h-3 w-4/6 bg-slate-100 rounded"})]}),"missing"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-slate-200 bg-slate-50 p-8 text-center","data-testid":"public-job-detail-missing",children:[(0,Pe.jsx)(AN,{size:22,weight:"fill",className:"mx-auto text-slate-400"}),(0,Pe.jsx)("div",{className:"mt-3 text-lg font-semibold text-slate-800",children:"Role unavailable"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"This role is either closed, no longer accepting applications, or the link is incorrect."}),(0,Pe.jsxs)(Yn,{to:"/jobs",className:"mt-5 inline-flex items-center gap-1 text-sm underline text-slate-700","data-testid":"public-job-detail-back-empty",children:["See open roles",(0,Pe.jsx)(eg,{size:14})]})]}),"unavailable"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-amber-300 bg-amber-50 p-8 text-center","data-testid":"public-job-detail-unavailable",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-amber-900",children:"Temporarily unavailable"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-amber-900/80",children:"We couldn't load this role. Please try again in a moment."})]}),"loaded"===n&&i&&(0,Pe.jsx)(KN,{job:i})]})})}function KN(e){var t;let n=e.job;const a="open"===n.publicStatus&&n.acceptingApplications,r="closed"===n.publicStatus,i="expired"===n.publicStatus,s={remote:"Remote",hybrid:"Hybrid",onsite:"On-site"}[null===(o=n.workplaceType)||void 0===o?void 0:o.toLowerCase()]||null;var o;const l=function(e){if(!e)return null;const t=new Intl.NumberFormat("en-US"),n=e.minValue?"$".concat(t.format(e.minValue)):null,a=e.maxValue?"$".concat(t.format(e.maxValue)):null,r="HOUR"===e.unitText?"/hr":"MONTH"===e.unitText?"/mo":"YEAR"===e.unitText?"/yr":"";return n&&a?"".concat(n," \u2013 ").concat(a).concat(r):"".concat(n||a).concat(r)}(n.compensation),c=null===(t=n.location)||void 0===t?void 0:t.freeText,d=function(e){if(!e)return"";try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch(t){return""}}(n.datePosted);return(0,Pe.jsxs)("article",{className:"mt-6","data-testid":"public-job-detail-body",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono text-slate-500",children:n.company||"AROS"}),(0,Pe.jsx)("h1",{className:"mt-2 font-brand font-bold text-4xl sm:text-5xl tracking-[-0.022em]",style:{color:WN},"data-testid":"public-job-detail-title",children:n.title}),(0,Pe.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-slate-600",children:[c&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1","data-testid":"public-job-detail-location",children:[(0,Pe.jsx)(TN,{size:14,weight:"fill",className:"text-slate-400"}),c]}),s&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(Cg,{size:14,weight:"fill",className:"text-slate-400"}),s]}),n.employmentType&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 capitalize",children:[(0,Pe.jsx)(ag,{size:14,weight:"fill",className:"text-slate-400"}
2),n.employmentType.replace(/_/g," ")]}),l&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1","data-testid":"public-job-detail-comp",children:[(0,Pe.jsx)(qN,{size:14,weight:"fill",className:"text-slate-400"}),l]}),n.department&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(nv,{size:14,weight:"fill",className:"text-slate-400"}),n.department]})]}),d&&(0,Pe.jsxs)("div",{className:"mt-2 text-xs text-slate-500",children:["Posted ",d]}),r&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-slate-300 bg-slate-100 p-5","data-testid":"public-job-detail-closed",children:[(0,Pe.jsx)("div",{className:"font-semibold text-slate-900",children:"This role is no longer accepting applications."}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-slate-700",children:["The company has closed this posting. See"," ",(0,Pe.jsx)(Yn,{to:"/jobs",className:"underline",children:"other open roles"}),"."]})]}),i&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-slate-300 bg-slate-100 p-5","data-testid":"public-job-detail-expired",children:[(0,Pe.jsx)("div",{className:"font-semibold text-slate-900",children:"This posting has expired."}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-slate-700",children:["The application window for this role has ended. See"," ",(0,Pe.jsx)(Yn,{to:"/jobs",className:"underline",children:"other open roles"}),"."]})]}),n.description&&(0,Pe.jsx)("div",{className:"prose prose-slate mt-8 max-w-none whitespace-pre-wrap text-[15px] leading-relaxed text-slate-800","data-testid":"public-job-detail-description",children:n.description}),a&&(0,Pe.jsxs)("div",{className:"mt-10 border-t border-slate-200 pt-8",children:[(0,Pe.jsx)(Yn,{to:"/apply/".concat(encodeURIComponent(n.publicId)),"data-testid":"public-job-detail-apply-cta",children:(0,Pe.jsx)(Lo,{className:"rounded-md text-white px-6 py-6 text-base",style:{background:WN},children:"Apply for this role \u2192"})}),(0,Pe.jsx)("p",{className:"mt-3 text-xs text-slate-500",children:"You'll be able to attach a r\xe9sum\xe9 and share your contact details. No account required."})]})]})}const GN=["__scopeCheckbox","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],$N=["__scopeCheckbox","forceMount"],QN=["__scopeCheckbox","control","checked","bubbles","defaultChecked"];var XN="Checkbox",JN=Ue(Jo(XN),2),eA=JN[0],tA=(JN[1],Ue(eA(XN),2)),nA=tA[0],aA=tA[1],rA=o.forwardRef((e,t)=>{const n=e.__scopeCheckbox,a=e.name,r=e.checked,i=e.defaultChecked,s=e.required,l=e.disabled,c=e.value,d=void 0===c?"on":c,u=e.onCheckedChange,m=e.form,p=Ie(e,GN),f=Ue(o.useState(null),2),x=f[0],g=f[1],v=us(t,e=>g(e)),b=o.useRef(!1),y=!x||(m||!!x.closest("form")),j=Ue(sl({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:u,caller:XN}),2),w=j[0],N=j[1],A=o.useRef(w);return o.useEffect(()=>{const e=null===x||void 0===x?void 0:x.form;if(e){const t=()=>N(A.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[x,N]),(0,Pe.jsxs)(nA,{scope:n,state:w,disabled:l,children:[(0,Pe.jsx)(zo.button,h(h({type:"button",role:"checkbox","aria-checked":lA(w)?"mixed":w,"aria-required":s,"data-state":cA(w),"data-disabled":l?"":void 0,disabled:l,value:d},p),{},{ref:v,onKeyDown:$o(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:$o(e.onClick,e=>{N(e=>!!lA(e)||!e),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,Pe.jsx)(oA,{control:x,bubbles:!b.current,name:a,value:d,checked:w,required:s,disabled:l,form:m,style:{transform:"translateX(-100%)"},defaultChecked:!lA(i)&&i})]})});rA.displayName=XN;var iA="CheckboxIndicator",sA=o.forwardRef((e,t)=>{const n=e.__scopeCheckbox,a=e.forceMount,r=Ie(e,$N),i=aA(iA,n);return(0,Pe.jsx)(Sl,{present:a||lA(i.state)||!0===i.state,children:(0,Pe.jsx)(zo.span,h(h({"data-state":cA(i.state),"data-disabled":i.disabled?"":void 0},r),{},{ref:t,style:h({pointerEvents:"none"},e.style)}))})});sA.displayName=iA;var oA=o.forwardRef((e,t)=>{e.__scopeCheckbox;let n=e.control,a=e.checked,r=e.bubbles,i=void 0===r||r,s=e.defaultChecked,l=Ie(e,QN);const c=o.useRef(null),d=us(c,t),u=_p(a),m=Jm(n);o.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==a&&n){const t=new Event("click",{bubbles:i});e.indeterminate=lA(a),n.call(e,!lA(a)&&a),e.dispatchEvent(t)}},[u,a,i]);const p=o.useRef(!lA(a)&&a);return(0,Pe.jsx)(zo.input,h(h({type:"checkbox","aria-hidden":!0,defaultChecked:null!==s&&void 0!==s?s:p.current},l),{},{tabIndex:-1,ref:d,style:h(h(h({},l.style),m),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}
2))});function lA(e){return"indeterminate"===e}function cA(e){return lA(e)?"indeterminate":e?"checked":"unchecked"}oA.displayName="CheckboxBubbleInput";var dA=rA,uA=sA;const mA=["className"],pA=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,mA);return(0,Pe.jsx)(dA,h(h({ref:t,className:Ro("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},a),{},{children:(0,Pe.jsx)(uA,{className:Ro("flex items-center justify-center text-current"),children:(0,Pe.jsx)(Nf,{className:"h-4 w-4"})})}))});pA.displayName=dA.displayName;const hA="".concat("https://www.getaros.ai","/api"),fA="#041C3A";function xA(){const e=(qt().publicId||"").toLowerCase(),t=(zt(),Ue((0,o.useState)("loading"),2)),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(""),2),c=l[0],d=l[1],u=Ue((0,o.useState)(""),2),m=u[0],p=u[1],h=Ue((0,o.useState)(""),2),f=h[0],x=h[1],g=Ue((0,o.useState)(""),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(!1),2),D=E[0],_=E[1],C=Ue((0,o.useState)(null),2),F=C[0],S=C[1],M=Ue((0,o.useState)({}),2),O=M[0],R=M[1],H=(0,o.useRef)(null);Uy({title:null!==i&&void 0!==i&&i.title?"Apply \xb7 ".concat(i.title," \xb7 AROS"):"Apply \xb7 AROS",description:"Apply directly through AROS. No candidate account required.",canonical:"/apply/".concat(e),robots:"noindex,follow"}),(0,o.useEffect)(()=>{let t=!0;return(async()=>{if(e)try{const n=await Ki.get("".concat(hA,"/public/jobs/by-id/").concat(encodeURIComponent(e)),{validateStatus:()=>!0});if(!t)return;if(404===n.status)return void a("missing");if(503===n.status)return void a("unavailable");if(200!==n.status||!n.data)return void a("unavailable");s(n.data),a("open"===n.data.publicStatus&&n.data.acceptingApplications?"open":"closed")}catch(n){t&&a("unavailable")}else a("missing")})(),()=>{t=!1}},[e]);return(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("main",{className:"max-w-2xl mx-auto px-6 py-14","data-testid":"public-job-apply-page",children:[(0,Pe.jsx)("div",{className:"text-xs",children:(0,Pe.jsx)(Yn,{to:"/jobs",className:"text-slate-500 hover:text-slate-800",children:"\u2190 All open roles"})}),"loading"===n&&(0,Pe.jsxs)("div",{className:"mt-6 animate-pulse space-y-3","data-testid":"public-job-apply-loading",children:[(0,Pe.jsx)("div",{className:"h-4 w-1/3 bg-slate-100 rounded"}),(0,Pe.jsx)("div",{className:"h-8 w-2/3 bg-slate-200 rounded"})]}),"missing"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-slate-200 bg-slate-50 p-8","data-testid":"public-job-apply-missing",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-slate-800",children:"Application not available"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"This role can no longer accept applications, or the link is incorrect."}),(0,Pe.jsxs)(Yn,{to:"/jobs",className:"mt-4 inline-flex items-center gap-1 text-sm underline text-slate-700",children:["See open roles ",(0,Pe.jsx)(eg,{size:14})]})]}),"closed"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-slate-300 bg-slate-100 p-8","data-testid":"public-job-apply-closed",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-slate-900",children:"Applications are closed"}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-slate-700",children:["This role is no longer accepting applications. See"," ",(0,Pe.jsx)(Yn,{to:"/jobs",className:"underline",children:"other open roles"}),"."]})]}),"unavailable"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-amber-300 bg-amber-50 p-8","data-testid":"public-job-apply-unavailable",children:[(0,Pe.jsx)("div",{className:"text-lg font-semibold text-amber-900",children:"Temporarily unavailable"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-amber-900/80",children:"We couldn't reach the application service. Please try again in a moment."})]}),"success"===n&&(0,Pe.jsxs)("div",{className:"mt-8 rounded-md border border-emerald-300 bg-emerald-50 p-8","data-testid":"public-job-apply-success",children:[(0,Pe.jsx)(Yf,{size:22,weight:"fill",className:"text-emerald-700"}),(0,Pe.jsx)("div",{className:"mt-3 text-lg font-semibold text-emerald-900",children:"Your application was received"}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-emerald-900/80",children:["Thanks for applying",m?", ".concat(m.trim().split(" ")[0]):"",". The employer'
2s hiring team will review your r\xe9sum\xe9 and reach out if there's a match. AROS does not store a general candidate account for you \u2014 the employer will contact you directly at ",(0,Pe.jsx)("span",{className:"font-mono",children:f}),"."]}),(0,Pe.jsxs)(Yn,{to:"/jobs",className:"mt-6 inline-flex items-center gap-1 text-sm text-slate-700 underline","data-testid":"public-job-apply-success-more",children:["See other open roles ",(0,Pe.jsx)(eg,{size:14})]})]}),("open"===n||"submitting"===n)&&i&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"mt-6 text-xs uppercase tracking-[0.18em] font-mono text-slate-500",children:["Apply \xb7 ",i.company||"AROS"]}),(0,Pe.jsx)("h1",{className:"mt-2 font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em]",style:{color:fA},"data-testid":"public-job-apply-title",children:i.title}),(0,Pe.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:async t=>{if(t.preventDefault(),d(""),(()=>{const e={};return(!m.trim()||m.trim().length<2)&&(e.fullName="Please enter your name."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test((f||"").trim())||(e.email="Please enter a valid email address."),D||(e.consent="Consent is required to process your application."),F?F.size>10485760&&(e.resume="R\xe9sum\xe9 must be under 10 MB."):e.resume="Please attach your r\xe9sum\xe9.",R(e),0===Object.keys(e).length})()){a("submitting");try{var n;const t=new FormData;t.append("resume",F),t.append("fullName",m.trim()),t.append("email",f.trim()),t.append("consentToProcess","true"),v.trim()&&t.append("phone",v.trim()),j.trim()&&t.append("linkedInUrl",j.trim()),A.trim()&&t.append("portfolioUrl",A.trim());const r=await Ki.post("".concat(hA,"/public/jobs/by-id/").concat(encodeURIComponent(e),"/apply"),t,{validateStatus:()=>!0,headers:{"Content-Type":"multipart/form-data"}});if(200===r.status||201===r.status)return void a("success");let i=null===(n=r.data)||void 0===n?void 0:n.detail,s="";"string"===typeof i?s=i:null!==i&&void 0!==i&&i.message?s=i.message:Array.isArray(i)&&(s=i.map(e=>e.msg||"").filter(Boolean).join("; ")),d(s||"Application could not be submitted (".concat(r.status,"). Please try again.")),a("open")}catch($ge){d((null===$ge||void 0===$ge?void 0:$ge.message)||"Application could not be submitted. Please try again."),a("open")}}else va.error("Please fix the highlighted fields.")},"data-testid":"public-job-apply-form",noValidate:!0,children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"apply-full-name",children:["Full name",(0,Pe.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,Pe.jsx)(Io,{id:"apply-full-name","data-testid":"public-job-apply-fullName",className:"mt-1.5",value:m,onChange:e=>p(e.target.value),required:!0,autoComplete:"name","aria-invalid":!!O.fullName}),O.fullName&&(0,Pe.jsx)("div",{className:"mt-1 text-xs text-red-600","data-testid":"public-job-apply-fullName-error",children:O.fullName})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"apply-email",children:["Email",(0,Pe.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,Pe.jsx)(Io,{id:"apply-email",type:"email","data-testid":"public-job-apply-email",className:"mt-1.5",value:f,onChange:e=>x(e.target.value),required:!0,autoComplete:"email","aria-invalid":!!O.email}),O.email&&(0,Pe.jsx)("div",{className:"mt-1 text-xs text-red-600","data-testid":"public-job-apply-email-error",children:O.email})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"apply-phone",children:["Phone ",(0,Pe.jsx)("span",{className:"text-slate-400",children:"(optional)"})]}),(0,Pe.jsx)(Io,{id:"apply-phone","data-testid":"public-job-apply-phone",className:"mt-1.5",value:v,onChange:e=>b(e.target.value),autoComplete:"tel"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"apply-linkedin",children:["LinkedIn URL ",(0,Pe.jsx)("span",{className:"text-slate-400",children:"(optional)"})]}),(0,Pe.jsx)(Io,{id:"apply-linkedin","data-testid":"public-job-apply-linkedin",className:"mt-1.5",value:j,onChange:e=>w(e.target.value),placeholder:"https://linkedin.com/in/\u2026"})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:"apply-portfolio",children:["Portfolio / website ",(0,Pe.jsx)("span",{className:"text-slate-400",children:"(optional)"})]}),(0,Pe.jsx)(Io,{id:"apply-portfolio","data-testid":"public-job-apply-portfolio",className:"mt-1.5",value:A,onChange:e=>k(e.target.value),placeholder:"https://\u2026"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{children:["R\xe9sum\xe9",(0,Pe.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,Pe.jsxs)("div",{className:"mt-1.5 rounded-md border border-dashed border-slate-300 p-4 flex items-center justify-between gap-3",children:[(0,Pe.jsx)("div",{className:"text-sm text-slate-700 min-w-0",children:F?(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(Vx,{size:14,weight:"fill",className:"text-slate-500"}),(0,Pe.jsx)("span",{className:"truncate","data-testid":"public-job-apply-resume-name",children:F.name}),(0,Pe.jsxs)("span",{className:"text-xs text-slate-500",children:["(",Math.round(F.size/1024)," KB)"]})]}):(0,Pe.jsx)("span",{className:"text-slate-500",children:"PDF, DOC, or DOCX \u2014 max 10 MB"})}),(0,Pe.jsx)("input",{ref:H,id:"apply-resume",type:"file",accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",className:"hidden","data-testid":"public-job-apply-resume-input",onChange:e=>{var t;return S((null===(t=e.target.files)||void 0===t?void 0:t[0])||null)}}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline","data-testid":"public-job-apply-resume-choose",onClick:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.click()},children:F?"Change file":"Choose file"})]}),O.resume&&(0,Pe.jsx)("div",{className:"mt-1 text-xs text-red-600","data-testid":"public-job-apply-resume-error",children:O.resume})]}),(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(pA,{id:"apply-consent","data-testid":"public-job-apply-consent",checked:D,onCheckedChange:e=>_(!!e)}),(0,Pe.jsxs)("label",{htmlFor:"apply-consent",className:"text-sm text-slate-700 leading-relaxed",children:["I consent to AROS and ",i.company||"the employer"," processing my application data (r\xe9sum\xe9, contact details) for the purpose of evaluating me for this role. I understand I do not need an AROS account and can request deleti
2on of my data at any time.",(0,Pe.jsx)("span",{className:"text-red-600",children:"*"})]})]}),O.consent&&(0,Pe.jsx)("div",{className:"text-xs text-red-600","data-testid":"public-job-apply-consent-error",children:O.consent}),c&&(0,Pe.jsxs)("div",{role:"alert",className:"rounded-md border border-red-300 bg-red-50 p-3 text-sm text-red-900 flex gap-2","data-testid":"public-job-apply-error",children:[(0,Pe.jsx)(AN,{size:16,weight:"fill",className:"text-red-700 shrink-0 mt-0.5"}),(0,Pe.jsx)("div",{children:c})]}),(0,Pe.jsxs)("div",{className:"pt-2",children:[(0,Pe.jsx)(Lo,{type:"submit",className:"rounded-md text-white px-6 py-6 text-base",style:{background:fA},disabled:"submitting"===n,"data-testid":"public-job-apply-submit",children:"submitting"===n?"Submitting\u2026":"Submit application"}),(0,Pe.jsxs)("p",{className:"mt-3 text-xs text-slate-500",children:["Your application goes directly to ",(0,Pe.jsx)("span",{className:"font-medium",children:i.company||"the employer"}),". AROS is the hiring platform they use \u2014 we don't forward your data to third parties."]})]})]})]})]})})}const gA=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),vA=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:gA})));vA.displayName="InfoIcon";const bA=vA;function yA(){var e,t,n,a;const r=qt().orgId,i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)([]),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(!1),2),b=v[0],y=v[1],j=()=>{Qi.get("/admin/org-ops/organizations/".concat(r,"/snapshot")).then(e=>l(e.data)).catch(()=>va.error("Could not load organization snapshot.")),Qi.get("/admin/org-ops/permissions/matrix").then(e=>u(e.data.your_capabilities||[])).catch(()=>{})};(0,o.useEffect)(()=>{j()},[r]);if(!s)return(0,Pe.jsx)("div",{className:"p-10 text-muted-foreground",children:"Loading snapshot\u2026"});const w=s.plan||{},N=s.counts||{},A=s.adoption_30d||{},k=s.organization||{};return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl","data-testid":"ops-snapshot",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"AROS ADMIN OPS \xb7 ORGANIZATION SNAPSHOT"}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-3 mt-2",children:[(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl tracking-tight",children:k.name}),k.suspended&&(0,Pe.jsx)("span",{className:"pill bg-red-50 text-red-900 border border-red-200 uppercase text-[10px] tracking-wider",children:"SUSPENDED"}),"unlimited"===(null===(e=s.plan)||void 0===e?void 0:e.plan_slug)&&(0,Pe.jsx)("span",{className:"pill bg-emerald-50 text-emerald-900 border border-emerald-200 uppercase text-[10px] tracking-wider",children:"UNLIMITED"})]}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-1",children:[(0,Pe.jsx)("span",{className:"font-mono",children:k.id}),k.primary_domain&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 ",k.primary_domain]}),k.created_at&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 created ",new Date(k.created_at).toLocaleDateString()]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-3 gap-4 mt-8",children:[(0,Pe.jsxs)(jA,{title:"Plan",testId:"ops-panel-plan",children:[(0,Pe.jsx)("div",{className:"text-2xl font-semibold",children:w.plan_slug}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:["source: ",w.source]}),w.expires_at&&(0,Pe.jsxs)("div",{className:"text-xs mt-1",children:["expires ",new Date(w.expires_at).toLocaleDateString()]}),w.stripe_subscription_id&&(0,Pe.jsxs)("div",{className:"text-[11px] font-mono mt-2 text-muted-foreground truncate",children:["Stripe \xb7 ",w.stripe_subscription_id]})]}),(0,Pe.jsxs)(jA,{title:"Users",icon:(0,Pe.jsx)(Mg,{size:14}),children:[(0,Pe.jsxs)("div",{className:"text-2xl font-semibold",children:[N.active_users,(0,Pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[" / ",N.total_users]})]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:[N.disabled_users>0&&"".concat(N.disabled_users," disabled \xb7 "),A.last_login&&"last login ".concat(new Date(A.last_login).toLocaleDateString())]})]}),(0,Pe.jsxs)(jA,{title:"Jobs & candidates",icon:(0,Pe.jsx)(nv,{size:14}),children:[(0,Pe.jsxs)("div",{className:"text-2xl font-semibold",children:[N.open_jobs,(0,Pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[" open \xb7 ",N.total_jobs," total"]})]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:[N.candidates.toLocaleStr
2ing()," candidates \xb7 ",N.outreach.toLocaleString()," outreach"]})]})]}),(0,Pe.jsx)("h2",{className:"mt-10 text-lg font-semibold",children:"Adoption \xb7 last 30 days"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[(0,Pe.jsx)(wA,{label:"Jobs created",val:A.jobs_created}),(0,Pe.jsx)(wA,{label:"Candidates reviewed",val:A.candidates_reviewed}),(0,Pe.jsx)(wA,{label:"Outreach sent",val:A.outreach_sent}),(0,Pe.jsx)(wA,{label:"Hiring decisions",val:A.hiring_decisions})]}),(null===(t=s.issues)||void 0===t?void 0:t.length)>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("h2",{className:"mt-10 text-lg font-semibold",children:"Issues"}),(0,Pe.jsx)("div",{className:"mt-2 space-y-2",children:s.issues.map((e,t)=>(0,Pe.jsxs)("div",{className:"flex items-start gap-2 p-3 rounded-md border ".concat("critical"===e.severity?"bg-red-50 border-red-200 text-red-900":"warning"===e.severity?"bg-amber-50 border-amber-200 text-amber-900":"bg-slate-50 border-slate-200 text-slate-900"),"data-testid":"ops-issue-".concat(e.kind),children:["critical"===e.severity?(0,Pe.jsx)(AN,{size:16,weight:"fill"}):(0,Pe.jsx)(bA,{size:16}),(0,Pe.jsx)("div",{className:"text-sm",children:e.message})]},t))})]}),(0,Pe.jsx)("h2",{className:"mt-10 text-lg font-semibold",children:"Internal notes"}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground flex items-center gap-1.5 mt-0.5",children:[(0,Pe.jsx)(CN,{size:12})," Visible to AROS internal operators only. Never visible to the customer."]}),(e=>d.includes(e))("customer_notes.write")?(0,Pe.jsxs)("div",{className:"mt-3 space-y-2 max-w-2xl",children:[(0,Pe.jsx)("input",{className:"input w-full text-sm",placeholder:"Category (optional): billing / support / risk / \u2026",value:x,onChange:e=>g(e.target.value),"data-testid":"ops-note-category"}),(0,Pe.jsx)(Bo,{className:"w-full",placeholder:"Add an internal note about this customer\u2026",value:p,onChange:e=>h(e.target.value),rows:3,"data-testid":"ops-note-input"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(p.trim()){y(!0);try{await Qi.post("/admin/org-ops/organizations/".concat(r,"/notes"),{text:p.trim(),category:x.trim()}),h(""),g(""),va.success("Note added."),j()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save note.")}finally{y(!1)}}},disabled:b||!p.trim(),"data-testid":"ops-note-save",children:b?"Saving\u2026":"Add note"})]}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2 italic",children:"Your role does not include note write access."}),(0,Pe.jsxs)("div",{className:"mt-4 space-y-3",children:[0===(null===(n=s.notes)||void 0===n?void 0:n.length)&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"No internal notes yet."}),null===(a=s.notes)||void 0===a?void 0:a.map(e=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 bg-slate-50/60","data-testid":"ops-note-row",children:[e.category&&(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-mono mb-1",children:e.category}),(0,Pe.jsx)("div",{className:"text-sm whitespace-pre-wrap",children:e.text}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-2",children:[e.author_email," \xb7 ",new Date(e.created_at).toLocaleString()]})]},e.id))]}),(0,Pe.jsx)("div",{className:"mt-10 text-xs text-muted-foreground",children:(0,Pe.jsx)(Yn,{to:"/app/admin/ops/organizations/".concat(r,"/audit"),className:"text-[#0F4FA8]",children:"View full audit timeline \u2192"})})]})}function jA(e){let t=e.title,n=e.icon,a=e.children,r=e.testId;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4 bg-white","data-testid":r,children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono flex items-center gap-1.5",children:[n,t]}),(0,Pe.jsx)("div",{className:"mt-2",children:a})]})}function wA(e){let t=e.label,n=e.val;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 bg-white",children:[(0,Pe.jsx)("div",{className:"text-2xl font-semibold",children:Number(n||0).toLocaleStr
2ing()}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:t})]})}const NA="#041C3A";function AA(){var e;const t=qt().token,n=zt(),a=es().refreshUser,r=Ue((0,o.useState)({phase:"checking",error:"",meta:null}),2),i=r[0],s=r[1],l=Ue((0,o.useState)(""),2),c=l[0],d=l[1],u=Ue((0,o.useState)(""),2),m=u[0],p=u[1],h=Ue((0,o.useState)(!1),2),f=h[0],x=h[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const n=(await Qi.get("/auth/setup-token/".concat(encodeURIComponent(t)))).data;e||s({phase:"ready",error:"",meta:n})}catch(zf){var n,a,r;if(e)return;const i=null===zf||void 0===zf||null===(n=zf.response)||void 0===n?void 0:n.status,o=(null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"This link is invalid.";s({phase:"rejected",error:o,reason:410===i?"expired":404===i?"not_found":"invalid",meta:null})}})(),()=>{e=!0}},[t]);return(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-center px-6 py-12 bg-[#F7F9FF]","data-testid":"setup-password-page",children:(0,Pe.jsxs)("div",{className:"w-full max-w-md",children:[(0,Pe.jsx)("div",{className:"flex justify-center mb-8",children:(0,Pe.jsx)(ls,{to:"/",size:28})}),"checking"===i.phase&&(0,Pe.jsx)(kA,{children:(0,Pe.jsxs)("div",{className:"flex items-center gap-3 text-sm text-[#374151]",children:[(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}),"Checking your setup link\u2026"]})}),"rejected"===i.phase&&(0,Pe.jsx)(kA,{children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(AN,{size:22,weight:"fill",className:"text-[#B91C1C] shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-xl tracking-tight",style:{color:NA},children:"expired"===i.reason?"This link has expired":"not_found"===i.reason?"This link is no longer valid":"We couldn't process this link"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-[#6B7280]",children:i.error}),(0,Pe.jsx)("p",{className:"mt-4 text-sm text-[#374151]",children:"Setup links expire 72 hours after signup and can only be used once."}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[(0,Pe.jsx)(Yn,{to:"/","data-testid":"setup-link-rejected-restart",children:(0,Pe.jsx)(Lo,{className:"bg-[#041C3A] text-white",style:{borderRadius:10},children:"Sign up again"})}),(0,Pe.jsx)(Yn,{to:"/login",className:"text-sm text-[#0F4FA8] font-medium self-center","data-testid":"setup-link-rejected-login",children:"Already have an account? Sign in"})]})]})]})}),"ready"===i.phase&&(0,Pe.jsxs)(kA,{children:[(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-2xl tracking-tight",style:{color:NA},children:"Set your password"}),(0,Pe.jsxs)("p",{className:"mt-1.5 text-sm text-[#6B7280]",children:["For ",(0,Pe.jsx)("span",{className:"font-medium text-[#374151]","data-testid":"setup-meta-email",children:null===(e=i.meta)||void 0===e?void 0:e.email})]}),(0,Pe.jsxs)("form",{className:"mt-6 space-y-4",onSubmit:async e=>{if(e.preventDefault(),c.length<10)va.error("Use at least 10 characters.");else if(c===m){x(!0);try{const e=(await Qi.post("/auth/set-password",{token:t,password:c})).data;localStorage.setItem("aros_token",e.access_token),await a(),va.success("You're in. Welcome to AROS.");const r=e.user||{};"owner"===r.hiring_mode?n("/app/owner"):"recruiter"===r.hiring_mode?n("/app/employer"):n("/onboarding/hiring-mode")}catch(tY){var r,i,o;const t=null===tY||void 0===tY||null===(r=tY.response)||void 0===r?void 0:r.status,n=(null===tY||void 0===tY||null===(i=tY.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.detail)||"Could not set your password.";410===t||404===t?s({phase:"rejected",error:n,reason:410===t?"expired":"not_found",meta:null}):va.error(n)}finally{x(!1)}}else va.error("Passwords don't match.")},"data-testid":"setup-password-form",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"pw",children:"New password"}),(0,Pe.jsx)(Io,{id:"pw",type:"password",value:c,onChange:e=>d(e.target.value),autoComplete:"new-password",required:!0,minLength:10,className:"mt-1.5","data-testid":"setup-pw"}),(0,Pe.jsx)("p",{className:"mt-1 text-[11px] text-[#6B7280]",children:"At least 10 characters."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"pw2",children:"Confirm password"}),(0,Pe.jsx)(Io,{id:"pw2",type:"password",value:m,onChange:e=>p(e.target.value),autoComplete:"new-password",required:!0,minLength:10,className:"mt-1.5","data-testid":"setup-pw-confirm"})]}),(0,Pe.jsx)(Lo,{type:"submit",disabled:f,className:"w-full bg-[#041C3A] hover:bg-[#0F4FA8] text-white",style:{borderRadius:10},"data-testid":"setup-submit",children:f?(0,Pe.jsx)(hx,{size:18,className:"animate-spin"}):(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(Yf,{size:16,weight:"fill"})," Set password & sign in"]})})]})]})]})})}function kA(e){let t=e.children;return(0,Pe.jsx)("div",{className:"bg-white p-7 sm:p-8",style:{borderRadius:16,border:"1px solid #E5E7EB",boxShadow:"0 12px 40px -16px rgba(4,28,58,0.18)"},children:t})}const EA="".concat("https://www.getaros.ai","/api"),DA="#041C3A",_A="#0F4FA8",CA="#5BE3EF",FA=new Set(["starter","growth","business"]);function SA(e){let t=e.plan,n=e.onSubscribe,a=e.submitting;
2const r=t.purchasable_today,i=t.is_custom_pricing,s=t.is_standby;return(0,Pe.jsxs)("div",{"data-testid":"plan-card-".concat(t.plan_id),className:"flex flex-col rounded-2xl border p-6 bg-white shadow-sm hover:shadow-md transition",style:{borderColor:r?_A:"#E5E7EB"},children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsx)("h3",{className:"text-xl font-semibold",style:{color:DA},children:t.marketing_name}),"growth"===t.plan_id&&(0,Pe.jsx)("span",{className:"text-xs font-medium rounded-full px-2 py-1",style:{background:CA+"33",color:DA},children:"Most popular"})]}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-slate-600",children:t.tagline}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-baseline gap-1",children:[(0,Pe.jsx)("span",{className:"text-4xl font-semibold",style:{color:DA},children:(o=t.monthly_price_usd,null==o?"Custom":"$".concat(o))}),!i&&(0,Pe.jsx)("span",{className:"text-sm text-slate-500",children:"/month"})]}),(0,Pe.jsx)("ul",{className:"mt-4 space-y-2 text-sm text-slate-700 flex-1",children:t.feature_scope.slice(0,6).map(e=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:16,weight:"fill",style:{color:_A,flexShrink:0,marginTop:2}}),(0,Pe.jsx)("span",{className:"capitalize",children:e.replace(/_/g," ")})]},e))}),(0,Pe.jsxs)("div",{className:"mt-6",children:[r&&(0,Pe.jsx)(Lo,{"data-testid":"subscribe-".concat(t.plan_id,"-btn"),onClick:()=>n(t.plan_id),disabled:a,className:"w-full",style:{background:_A,color:"white"},children:a?"Redirecting\u2026":(0,Pe.jsxs)(Pe.Fragment,{children:["Subscribe ",(0,Pe.jsx)(eg,{size:16})]})}),!r&&i&&(0,Pe.jsx)("a",{"data-testid":"contact-sales-btn",href:"mailto:[email protected]?subject=AROS%20Enterprise%20inquiry",className:"inline-flex w-full items-center justify-center rounded-md px-4 py-2 text-sm font-medium",style:{background:DA,color:"white"},children:"Contact sales"}),!r&&s&&(0,Pe.jsx)("div",{"data-testid":"standby-coming-soon",className:"w-full text-center text-sm text-slate-500 py-2 rounded-md",style:{background:"#F1F5F9"},children:"Coming soon"})]})]});var o}function MA(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=zt(),h=Zt(),f=localStorage.getItem("aros_token"),x=(new URLSearchParams(h.search).get("plan")||"").toLowerCase(),g=x&&FA.has(x)?x:null,v=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t=Ue(await Promise.all([Ki.get("".concat(EA,"/billing/plans")),f?Ki.get("".concat(EA,"/trial/me"),{headers:{Authorization:"Bearer ".concat(f)}}):Promise.resolve(null)]),2),a=t[0],r=t[1];if(!e)return;n(a.data.plans||[]),m((null===r||void 0===r?void 0:r.data)||null)}catch(zf){va.error("Could not load pricing. Please try again.")}finally{e&&i(!1)}})(),()=>{e=!1}},[f]);const b=async e=>{if(!f)return va.error("Sign in first, then choose a plan."),void p("/login?next=/upgrade");c(!0);try{var t;const n=await Ki.post("".concat(EA,"/billing/subscribe"),{plan_id:e,origin_url:window.location.origin},{headers:{Authorization:"Bearer ".concat(f)}});if(null!==(t=n.data)&&void 0!==t&&t.url)return void(window.location.href=n.data.url);va.error("Something went wrong. Please try again.")}catch(zf){var n,a;const t=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail,r=null===t||void 0===t?void 0:t.code,i="string"===typeof t?t:null===t||void 0===t?void 0:t.message;"production_charging_disabled"===r?va.info(i||"Paid checkout opens shortly \u2014 you're on the 30-day trial."):va.error(i||"Could not start checkout.")}finally{c(!1)}};return(0,o.useEffect)(()=>{g&&!v.current&&!r&&t.length&&f&&(v.current=!0,b(g))},[g,r,t.length,f]),(0,Pe.jsx)("div",{className:"min-h-screen bg-slate-50 py-16 px-4","data-testid":"upgrade-page",children:(0,Pe.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,Pe.jsxs)("div",{className:"text-center mb-10",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full px-3 py-1 mb-4",style:{background:CA+"33",color:DA},children:[(0,Pe.jsx)(ux,{size:16,weight:"fill"}),(0,Pe.jsx)("span",{className:"text-sm font-medium",children:"Pick a plan \xb7 monthly billing"})]}),(0,Pe.jsx)("h1",{className:"text-3xl sm:text-4xl font-semibold",style:{color:DA},children:"Choose your AROS plan"}),(0,Pe.jsx)("p",{className:"mt-3 text-slate-600 max-w-2xl mx-auto",children:"Every new workspace starts on a 30-day free trial. Upgrade any time to keep hiring."}),"trial_expired_restricted"===(null===u||void 0===u?void 0:u.state)&&(0,Pe.jsx)("div",{"data-testid":"trial-expired-notice",className:"mt-6 mx-auto max-w-xl rounded-lg border p-4 text-left",style:{background:"#FFF7ED",borderColor:"#FED7AA"},children:(0,Pe.jsxs)("p",{className:"text-sm text-slate-800",children:[(0,Pe.jsx)("strong",{children:"Your 30-day trial has ended."})," Pick a plan to continue creating jobs and using paid features. Your data and admin access are preserved."]})})]}),r&&(0,Pe.jsx)("p",{className:"text-center text-slate-500",children:"Loading plans\u2026"}),!r&&(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-testid":"plans-grid",children:t.filter(e=>["starter","growth","business"].includes(e.plan_id)).map(e=>(0,Pe.jsx)(SA,{plan:e,onSubscribe:b,submitting:l},e.plan_id))}),!r&&(0,Pe.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-6",children:t.filter(e=>["enterprise","standby"].includes(e.plan_id)).map(e=>(0,Pe.jsx)(SA,{plan:e,onSubscribe:b,submitting:l},e.plan_id))}),(0,Pe.jsxs)("p",{className:"mt-10 text-center text-xs text-slate-500",children:["Annual billing coming soon. Cancel anytime by emailing"," ",(0,Pe.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),"."]}),(0,Pe.jsx)(OA,{}),(0,Pe.jsx)("p",{className:"mt-2 text-center",children:(0,Pe.jsx)(Yn,{to:"/app/employer",className:"text-sm underline","data-testid":"back-to-app-link",children:"Back to workspace"})})]})})}function OA(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=localStorage.getItem("aros_token");(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t=Ue(await Promise.all([Ki.get("".concat(EA,"/public/packs/catalog")),d?Ki.get("".concat(EA,"/trial/me"),{headers:{Authorization:"Bearer ".concat(d)}}):Promise.resolve(null)]),2),a=t[0],r=t[1];if(!e)return;n(a.data.packs||[]),i((null===r||void 0===r?void 0:r.data)||null)}catch(t){}})(),()=>{e=!1}},[d]);const u=!(null===r||void 0===r||!r.is_paid);return t.length?(0,Pe.jsxs)("section",{className:"mt-14","data-testid":"upgrade-packs-section",children:[(0,Pe.jsxs)("div",{className:"text-center mb-6",children:[(0,Pe.jsx)("h2",{className:"text-xl font-semibold",style:{color:DA},children:"Candidate Review Packs"}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-slate-600 max-w-xl mx-auto",children:"Optional one-time add-ons for active paid workspaces. Buy extra reviews any time \u2014 packs never expire."})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4","data-testid":"upgrade-packs-grid",children:t.map(e=>(0,Pe.jsxs)("div",{"data-testid":"pack-card-".concat(e.slug),className:"rounded-xl border p-5 bg-white flex flex-col",style:{borderColor:"#E5E7EB"},children:[(0,Pe.jsx)("div",{className:"text-sm text-slate-500",children:e.label}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-1",children:[(0,Pe.jsxs)("span",{className:"text-3xl font-semibold",style:{color:DA},children:["$",e.amount_usd]}),(0,Pe.jsx)("span",{className:"text-xs text-slate-500",children:"one-time"})]}),(0,Pe.jsxs)("div",{className:"mt-3 text-sm text-slate-600 flex-1",children:[e.granted_analyses.toLocaleString()," Candidate Reviews added to your workspace balance."]}),(0,Pe.jsx)(Lo,{"data-testid":"buy-pack-".concat(e.slug,"-btn"),onClick:()=>(async e=>{if(d)if(u){c(e);try{var t;const n=await Ki.post("".concat(EA,"/billing/packs/checkout"),{pack_slug:e,origin_url:window.location.origin},{headers:{Authorization:"Bearer ".concat(d)}});if(null!==(t=n.data)&&void 0!==t&&t.url)return void(window.location.href=n.data.url)}catch(zf){var n,a;const t=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;"paid_plan_required"===((null===t||void 0===t?void 0:t.code)||t)?va.info((null===t||void 0===t?void 0:t.message)||"Choose a plan first."):va.error((null===t||void 0===t?void 0:t.message)||t||"Could not start pack checkout.")}finally{c(null)}}else va.info("Choose a plan first, then buy Candidate Review Packs any time.");else va.error("Sign in first, then buy a pack.")})(e.slug),disabled:l===e.slug,className:"mt-4 w-full",style:{background:u?_A:"#94A3B8",color:"white"},children:l===e.slug?"Redirecting\u2026":u?"Buy pack":"Choose a plan first"})]},e.slug))}),(0,Pe.jsx)("p",{className:"mt-4 text-center text-xs text-slate-500",children:"Packs are one-time purchases and are credited automatically once payment clears."})]}):null}const RA="#041C3A",HA="#0F4FA8",PA="#374151",LA="#E5E7EB";function TA(){Uy({title:"Your plan is active \xb7 AROS",description:"Your paid plan is active. Publish additional roles right away.",canonical:"/upgrade/success",robots:"noindex,nofollow"});const e=Ue(Xn(),1)[0].get("session_id"),t=Ue((0,o.useState)("checking"),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1];return(0,o.useEffect)(()=>{if(!e)return void a("missing");let t=!1,n=0;const r=async()=>{if(!t){n+=1;try{const n=(await Qi.get("/billing/status/".concat(encodeURIComponent(e)))).data;if(t)return;if(s(n),"paid"===n.payment_status)return void a("paid");if("expired"===n.status)return void a("error")}catch(zf){if(t)return}n>=5?a(e=>"checking"===e?"timeout":e):setTimeout(r,2e3)}};return r(),()=>{t=!0}},[e]),(0,Pe.jsxs)("div",{className:"min-h-screen",style:{background:"#F8FAFC"},"data-testid":"upgrade-success-page",children:[(0,Pe.jsx)("header",{className:"px-6 lg:px-12 py-6 border-b bg-white",style:{borderColor:LA},children:(0,Pe.jsx)(Yn,{to:"/",className:"font-brand font-bold text-xl",style:{color:RA},children:"AROS"})}),(0,Pe.jsxs)("main",{className:"max-w-3xl mx-auto px-6 lg:px-12 py-16",children:["checking"===n&&(0,Pe.jsx)(ZA,{}),"paid"===n&&(0,Pe.jsx)(BA,{detail:i}),"timeout"===n&&(0,Pe.jsx)(VA,{}),"error"===n&&(0,Pe.jsx)(zA,{}),"missing"===n&&(0,Pe.jsx)(qA,{})]})]})}function IA(e){let t=e.children,n=e.testid;return(0,Pe.jsx)("div",{className:"rounded-2xl p-8 bg-white",style:{border:"1px solid ".concat(LA)},"data-testid":n,children:t})}function ZA(){return(0,Pe.jsxs)(IA,{testid:"upgrade-success-checking",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium mb-4",style:{background:"#EEF4FF",color:HA},children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone"})," Checking payment"]}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:RA},children:"Confirming with Stripe\u2026"}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed",style:{color:PA},children:"This usually takes a few seconds. Please don't close this tab."})]})}function BA(){return(0,Pe.jsxs)(IA,{testid:"upgrade-success-paid",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium mb-4",style:{background:"#DCFCE7",color:"#166534"},children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill"})," You're in"]}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:RA},children:"Your plan is active."}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed mb-6",style:{color:PA},children:"Thanks for choosing AROS. Your workspace can now publish additional roles right away \u2014 everything you were already using keeps working."}),(0,Pe.jsx)("div",{className:"text-xs mb-6",style:{color:"#6B7280"},children:"A receipt is on its way to your email from Stripe. Cancel any time \u2014 no exit interview."}),(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(Yn,{to:"/app",children:(0,Pe.jsxs)(Lo,{className:"text-white font-brand font-medium h-11 px-5",style:{background:RA,borderRadius:10},"data-testid":"upgrade-success-cta",children:["Back to AROS",(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"ml-2"})]})}
2),(0,Pe.jsx)(Yn,{to:"/app/settings",className:"text-sm font-brand",style:{color:HA},children:"Manage billing in Settings"})]})]})}function VA(){return(0,Pe.jsxs)(IA,{testid:"upgrade-success-timeout",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium mb-4",style:{background:"#FEF3C7",color:"#92400E"},children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone"})," Still processing"]}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:RA},children:"Stripe is taking a moment."}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed mb-6",style:{color:PA},children:"Your payment is being confirmed in the background. Refresh in a minute, or head back to AROS \u2014 we'll update your workspace automatically once Stripe reports success."}),(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,Pe.jsx)(Lo,{onClick:()=>window.location.reload(),variant:"outline",className:"h-11 px-5 font-brand","data-testid":"upgrade-success-refresh",children:"Refresh"}),(0,Pe.jsx)(Yn,{to:"/app",children:(0,Pe.jsx)(Lo,{className:"text-white font-brand font-medium h-11 px-5",style:{background:RA,borderRadius:10},children:"Back to AROS"})})]})]})}function zA(){return(0,Pe.jsxs)(IA,{testid:"upgrade-success-error",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium mb-4",style:{background:"#FEE2E2",color:"#991B1B"},children:[(0,Pe.jsx)(Qx,{size:14,weight:"fill"})," Payment expired"]}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:RA},children:"This checkout session expired."}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed mb-6",style:{color:PA},children:"No charge was made. You can start a fresh checkout from AROS whenever you're ready."}),(0,Pe.jsx)(Yn,{to:"/app",children:(0,Pe.jsx)(Lo,{className:"text-white font-brand font-medium h-11 px-5",style:{background:RA,borderRadius:10},children:"Back to AROS"})})]})}function qA(){return(0,Pe.jsxs)(IA,{testid:"upgrade-success-missing",children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:RA},children:"Nothing to confirm here."}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed mb-6",style:{color:PA},children:"This page is only reached after a Stripe checkout \u2014 no session id is in the URL, so head back to AROS."}),(0,Pe.jsx)(Yn,{to:"/app",children:(0,Pe.jsx)(Lo,{className:"text-white font-brand font-medium h-11 px-5",style:{background:RA,borderRadius:10},children:"Back to AROS"})})]})}const UA="#041C3A",WA="#E5E7EB";function YA(){return Uy({title:"Checkout cancelled \xb7 AROS",description:"No charge was made. Come back whenever you're ready.",canonical:"/upgrade/cancelled",robots:"noindex,nofollow"}),(0,Pe.jsxs)("div",{className:"min-h-screen",style:{background:"#F8FAFC"},"data-testid":"upgrade-cancelled-page",children:[(0,Pe.jsx)("header",{className:"px-6 lg:px-12 py-6 border-b bg-white",style:{borderColor:WA},children:(0,Pe.jsx)(Yn,{to:"/",className:"font-brand font-bold text-xl",style:{color:UA},children:"AROS"})}),(0,Pe.jsx)("main",{className:"max-w-3xl mx-auto px-6 lg:px-12 py-16",children:(0,Pe.jsxs)("div",{className:"rounded-2xl p-8 bg-white",style:{border:"1px solid ".concat(WA)},"data-testid":"upgrade-cancelled-card",children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mb-3",style:{color:UA},children:"No charge \u2014 no problem."}),(0,Pe.jsx)("p",{className:"text-base leading-relaxed mb-6",style:{color:"#374151"},children:"You cancelled the checkout before completing payment. Your workspace is unchanged and your first active job stays free forever. Come back whenever you're ready to add a second role."}),(0,Pe.jsx)(Yn,{to:"/app",children:(0,Pe.jsxs)(Lo,{className:"text-white font-brand font-medium h-11 px-5",style:{background:UA,borderRadius:10},"data-testid":"upgrade-cancelled-cta",children:["Back to AROS",(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"ml-2"})]})})]})})]})}function KA(){}function GA(){}const $A=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
20EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE4
20-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/,QA=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
20EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE4
20-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/,XA={};function JA(e,t){return((t||XA).jsx?QA:$A).test(e)}const ek=/[ \t\n\f\r]/g;function tk(e){return""===e.replace(ek,"")}class nk{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ak(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new nk(n,a,t)}function rk(e){return e.toLowerCase()}nk.prototype.normal={},nk.prototype.property={},nk.prototype.space=void 0;class ik{constructor(e,t){this.attribute=t,this.property=e}}ik.prototype.attribute="",ik.prototype.booleanish=!1,ik.prototype.boolean=!1,ik.prototype.commaOrSpaceSeparated=!1,ik.prototype.commaSeparated=!1,ik.prototype.defined=!1,ik.prototype.mustUseProperty=!1,ik.prototype.number=!1,ik.prototype.overloadedBoolean=!1,ik.prototype.property="",ik.prototype.spaceSeparated=!1,ik.prototype.space=void 0;let sk=0;const ok=hk(),lk=hk(),ck=hk(),dk=hk(),uk=hk(),mk=hk(),pk=hk();function hk(){return 2**++sk}const fk=Object.keys(r);class xk extends ik{constructor(e,t,n,a){let i=-1;
2if(super(e,t),gk(this,"space",a),"number"===typeof n)for(;++i<fk.length;){const e=fk[i];gk(this,fk[i],(n&r[e])===r[e])}}}function gk(e,t,n){n&&(e[t]=n)}function vk(e){const t={},n={};for(const r of Object.entries(e.properties)){var a=Ue(r,2);const i=a[0],s=a[1],o=new xk(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[rk(i)]=i,n[rk(o.attribute)]=i}return new nk(t,n,e.space)}xk.prototype.defined=!0;const bk=vk({properties:{ariaActiveDescendant:null,ariaAtomic:lk,ariaAutoComplete:null,ariaBusy:lk,ariaChecked:lk,ariaColCount:dk,ariaColIndex:dk,ariaColSpan:dk,ariaControls:uk,ariaCurrent:null,ariaDescribedBy:uk,ariaDetails:null,ariaDisabled:lk,ariaDropEffect:uk,ariaErrorMessage:null,ariaExpanded:lk,ariaFlowTo:uk,ariaGrabbed:lk,ariaHasPopup:null,ariaHidden:lk,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:uk,ariaLevel:dk,ariaLive:null,ariaModal:lk,ariaMultiLine:lk,ariaMultiSelectable:lk,ariaOrientation:null,ariaOwns:uk,ariaPlaceholder:null,ariaPosInSet:dk,ariaPressed:lk,ariaReadOnly:lk,ariaRelevant:null,ariaRequired:lk,ariaRoleDescription:uk,ariaRowCount:dk,ariaRowIndex:dk,ariaRowSpan:dk,ariaSelected:lk,ariaSetSize:dk,ariaSort:null,ariaValueMax:dk,ariaValueMin:dk,ariaValueNow:dk,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function yk(e,t){return t in e?e[t]:t}function jk(e,t){return yk(e,t.toLowerCase())}const wk=vk({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mk,acceptCharset:uk,accessKey:uk,action:null,allow:null,allowFullScreen:ok,allowPaymentRequest:ok,allowUserMedia:ok,alpha:ok,alt:null,as:null,async:ok,autoCapitalize:null,autoComplete:uk,autoFocus:ok,autoPlay:ok,blocking:uk,capture:null,charSet:null,checked:ok,cite:null,className:uk,closedBy:null,colorSpace:null,cols:dk,colSpan:dk,command:null,commandFor:null,content:null,contentEditable:lk,controls:ok,controlsList:uk,coords:dk|mk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ok,defer:ok,dir:null,dirName:null,disabled:ok,download:ck,draggable:lk,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ok,formTarget:null,headers:uk,height:dk,hidden:ck,high:dk,href:null,hrefLang:null,htmlFor:uk,httpEquiv:uk,id:null,imageSizes:null,imageSrcSet:null,inert:ok,inputMode:null,integrity:null,is:null,isMap:ok,itemId:null,itemProp:uk,itemRef:uk,itemScope:ok,itemType:uk,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ok,low:dk,manifest:null,max:null,maxLength:dk,media:null,method:null,min:null,minLength:dk,multiple:ok,muted:ok,name:null,nonce:null,noModule:ok,noValidate:ok,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ok,optimum:dk,pattern:null,ping:uk,placeholder:null,playsInl
2ine:ok,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ok,referrerPolicy:null,rel:uk,required:ok,reversed:ok,rows:dk,rowSpan:dk,sandbox:uk,scope:null,scoped:ok,seamless:ok,selected:ok,shadowRootClonable:ok,shadowRootCustomElementRegistry:ok,shadowRootDelegatesFocus:ok,shadowRootMode:null,shadowRootSerializable:ok,shape:null,size:dk,sizes:null,slot:null,span:dk,spellCheck:lk,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dk,step:null,style:null,tabIndex:dk,target:null,title:null,translate:null,type:null,typeMustMatch:ok,useMap:null,value:lk,width:dk,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:uk,axis:null,background:null,bgColor:null,border:dk,borderColor:null,bottomMargin:dk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ok,declare:ok,event:null,face:null,frame:null,frameBorder:null,hSpace:dk,leftMargin:dk,link:null,longDesc:null,lowSrc:null,marginHeight:dk,marginWidth:dk,noResize:ok,noHref:ok,noShade:ok,noWrap:ok,object:null,profile:null,prompt:null,rev:null,rightMargin:dk,rules:null,scheme:null,scrolling:lk,standby:null,summary:null,text:null,topMargin:dk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dk,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ok,disablePictureInPicture:ok,disableRemotePlayback:ok,exportParts:mk,part:uk,prefix:null,property:null,results:dk,security:null,unselectable:null},space:"html",transform:jk}),Nk=vk({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
2-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pk,accentHeight:dk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dk,amplitude:dk,arabicForm:null,ascent:dk,attributeName:null,attributeType:null,azimuth:dk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dk,by:null,calcMode:null,capHeight:dk,className:uk,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dk,diffuseConstant:dk,direction:null,display:null,dur:null,divisor:dk,dominantBaseline:null,download:ok,dx:null,dy:null,edgeMode:null,editable:null,elevation:dk,enableBackground:null,end:null,event:null,exponent:dk,externalResourcesRequired:null,fill:null,fillOpacity:dk,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mk,g2:mk,glyphName:mk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dk,horizOriginX:dk,horizOriginY:dk,id:null,ideographic:dk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dk,k:dk,k1:dk,k2:dk,k3:dk,k4:dk,kernelMatrix:pk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dk,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dk,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dk,overlineThickness:dk,paintOrder:null,panose1:null,path:null,pathLength:dk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:uk,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dk,pointsAtY:dk,pointsAtZ:dk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pk,rev:pk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pk,requiredFeatures:pk,requiredFonts:pk,requiredFormats:pk,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dk,specularExponent:dk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dk,strikethroughThickness:dk,string:null,stroke:null,strokeDashArray:pk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dk,strokeOpacity:dk,strokeWidth:null,style:null,surfaceScale:dk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pk,tabIndex:dk,tableValues:null,target:null,targetX:dk,targetY:dk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pk,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dk,underlineThickness:dk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dk,values:null,vAlphabetic:dk,vMathematical:dk,vectorEffect:null,vHanging:dk,vIdeographic:dk,version:null,vertAdvY:dk,vertOriginX:dk,vertOriginY:dk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yk}),Ak=vk({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),kk=vk({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jk}),Ek=vk({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Dk=ak([bk,wk,Ak,kk,Ek],"html"),_k=ak([bk,Nk,Ak,kk,Ek],"svg"),Ck=/[A-Z]/g,Fk=/-[a-z]/g,Sk=/^data[-\w.:]+$/i;function Mk(e){return"-"+e.toLowerCase()}function Ok(e){return e.charAt(1).toUpperCase()}const Rk={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Hk=n(967);const Pk=Tk("end"),Lk=Tk("start");function Tk(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ik(e){return e&&"object"===typeof e?"position"in e||"type"in e?Bk(e.position):"start"in e||"end"in e?Bk(e):"line"in e||"column"in e?Zk(e):"":""}function Zk(e){return Vk(e&&e.line)+":"+Vk(e&&e.column)}function Bk(e){return Zk(e&&e.start)+"-"+Zk(e&&e.end)}function Vk(e){return e&&"number"===typeof e?e:1}class zk extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let a="",r={},i=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:h({},t)),"string"===typeof e?a=e:!r.cause&&e&&(i=!0,a=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}const s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=Ik(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=i&&r.cause&&"string"===typeof r.cause.stack?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zk.prototype.file="",zk.prototype.name="",zk.prototype.reason="",zk.prototype.message="",zk.prototype.stack="",zk.prototype.column=void 0,zk.prototype.line=void 0,zk.prototype.ancestors=void 0,zk.prototype.cause=void 0,zk.prototype.fatal=void 0,zk.prototype.place=void 0,zk.prototype.ruleId=void 0,zk.prototype.source=void 0;const qk={}.hasOwnProperty,Uk=new Map,Wk=/[A-Z]/g,Yk=new Set(["table","tbody","thead","tfoot","tr"]),Kk=new Set(["td","th"]),Gk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $k(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return n;function n(n,a,r,i){const s=Array.isArray(r.children),o=Lk(n);return t(a,r,i,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");
vendor: 9,425 bytes, line 2
2if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,n){return a;function a(e,a,r,i){const s=Array.isArray(r.children)?n:t;return i?s(a,r,i):s(a,r)}}(0,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?_k:Dk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Qk(r,e,void 0);return i&&"string"!==typeof i?i:r.create(e,r.Fragment,{children:i||void 0},void 0)}function Qk(e,t,n){return"element"===t.type?function(e,t,n){const a=e.schema;let r=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(r=_k,e.schema=r);e.ancestors.push(t);const i=nE(e,t.tagName,!1),s=function(e,t){const n={};let a,r;for(r in t.properties)if("children"!==r&&qk.call(t.properties,r)){const i=tE(e,r,t.properties[r]);if(i){const r=Ue(i,2),s=r[0],o=r[1];e.tableCellAlignToStyle&&"align"===s&&"string"===typeof o&&Kk.has(t.tagName)?a=o:n[s]=o}}if(a){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return n}(e,t);let o=eE(e,t);Yk.has(t.tagName)&&(o=o.filter(function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&tk(t.value):tk(t));var t}));return Xk(e,s,i,t),Jk(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}aE(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const a=e.schema;let r=a;"svg"===t.name&&"html"===a.space&&(r=_k,e.schema=r);e.ancestors.push(t);const i=null===t.name?e.Fragment:nE(e,t.name,!0),s=function(e,t){const n={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];KA(t.type);const r=t.expression;KA(r.type);const i=r.properties[0];KA(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else aE(e,t.position);else{const r=a.name;let i;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];KA(t.type),i=e.evaluater.evaluateExpression(t.expression)}else aE(e,t.position);else i=null===a.value||a.value;n[r]=i}return n}(e,t),o=eE(e,t);return Xk(e,s,i,t),Jk(s,o),e.ancestors.pop(),e.schema=a,e.create(t,i,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);aE(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const a={};return Jk(a,eE(e,t)),e.create(t,e.Fragment,a,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Xk(e,t,n,a){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Jk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function eE(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:Uk;for(;++a<t.children.length;){const i=t.children[a];let s;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=r.get(e)||0;s=e+"-"+t,r.set(e,t+1)}}const o=Qk(e,i,s);void 0!==o&&n.push(o)}return n}function tE(e,t,n){const a=function(e,t){const n=rk(t);let a=t,r=ik;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Sk.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Fk,Ok);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Fk.test(e)){let n=e.replace(Ck,Mk);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=xk}return new r(a,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===a.property){let t="object"===typeof n?n:function(e,t){try{return Hk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,a=new zk("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Gk+"#cannot-parse-style-attribute",a}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)qk.call(e,n)&&(t[rE(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&a.space?Rk[a.property]||a.property:a.attribute,n]}}function nE(e,t,n){let a;if(n)if(t.includes(".")){const e=t.split(".");let n,r=-1;for(;++r<e.length;){const t=JA(e[r])?{type:"Identifier",name:e[r]}:{type:"Literal",value:e[r]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(r&&"Literal"===t.type),optional:!1}:t}a=n}else a=JA(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else a={type:"Literal",value:t};if("Literal"===a.type){const t=a.value;return qk.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(a);aE(e)}function aE(e,t){const n=new zk("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Gk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function rE(e){let t=e.replace(Wk,iE);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function iE(e){return"-"+e.toLowerCase()}const sE={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},oE={};function lE(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return cE(e.children,t,n)}return Array.isArray(e)?cE(e,t,n):""}function cE(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=lE(e[r],t,n);return a.join("")}function dE(e,t,n,a){const r=e.length;let i,s=0;if(t=t<0?-t>r?0:r+t:t>r?r:t,n=n>0?n:0,a.length<1e4)i=Array.from(a),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<a.length;)i=a.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function uE(e,t){return e.length>0?(dE(e,e.length,0,t),e):t}class mE{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const a=t||0;this.setCursor(Math.trunc(e));const r=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&pE(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),pE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),pE(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);pE(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);pE(this.left,t.reverse())}}}function pE(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hE(e){const t={};let n,a,r,i,s,o,l,c=-1;const d=new mE(e);for(;++c<d.length;){for(;c in t;)c=t[c];if(n=d.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===d.get(c-1)[1].type&&(o=n[1]._tokenizer.events,r=0,r<o.length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,fE(d,c)),c=t[c],l=!0);else if(n[1]._container){for(r=c,a=void 0;r--;)if(i=d.get(r),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(a&&(d.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=r);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;a&&(n[1].end=h({},d.get(a)[1].start),s=d.slice(a,c),s.unshift(n),d.splice(a,c-a+1,s))}}return dE(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function fE(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const i=[];let s=n._tokenizer;s||(s=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._c
2ontentTypeTextTrailing=!0));const o=s.events,l=[],c={};let d,u,m=-1,p=n,h=0,f=0;const x=[f];for(;p;){for(;e.get(++r)[1]!==p;);i.push(r),p._tokenizer||(d=a.sliceStream(p),p.next||d.push(null),u&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++m<o.length;)"exit"===o[m][0]&&"enter"===o[m-1][0]&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(f=m+1,x.push(f),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),m=x.length;m--;){const t=o.slice(x[m],x[m+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),m=-1;++m<l.length;)c[h+l[m][0]]=h+l[m][1],h+=l[m][1]-l[m][0]-1;return c}const xE={}.hasOwnProperty;function gE(e,t){let n;for(n in t){const a=(xE.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let i;if(r)for(i in r){xE.call(a,i)||(a[i]=[]);const e=r[i];vE(a[i],Array.isArray(e)?e:e?[e]:[])}}}function vE(e,t){let n=-1;const a=[];for(;++n<t.length;)("after"===t[n].add?e:a).push(t[n]);dE(e,0,0,a)}const bE=SE(/[A-Za-z]/),yE=SE(/[\dA-Za-z]/),jE=SE(/[#-'*+\--9=?A-Z^-~]/);function wE(e){return null!==e&&(e<32||127===e)}const NE=SE(/\d/),AE=SE(/[\dA-Fa-f]/),kE=SE(/[!-/:-@[-`{-~]/);function EE(e){return null!==e&&e<-2}function DE(e){return null!==e&&(e<0||32===e)}function _E(e){return-2===e||-1===e||32===e}const CE=SE(/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1F
vendor: 9,179 bytes, line 2
2BF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/),FE=SE(/\s/);function SE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ME(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let i=0;return function(a){if(_E(a))return e.enter(n),s(a);return t(a)};function s(a){return _E(a)&&i++<r?(e.consume(a),s):(e.exit(n),t(a))}}const OE={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ME(e,t,"linePrefix")},function(t){return e.enter("paragraph"),a(t)});let n;return t;function a(t){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,r(t)}function r(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):EE(t)?(e.consume(t),e.exit("chunkText"),a):(e.consume(t),r)}}};const RE={tokenize:function(e){const t=this,n=[];let a,r,i,s=0;return o;function o(a){if(s<n.length){const r=n[s];return t.containerState=r[1],e.attempt(r[0].continuation,l,c)(a)}return c(a)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const n=t.events.length;let r,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){r=t.events[i][1].end;break}v(s);let o=n;for(;o<t.events.length;)t.events[o][1].end=h({},r),o++;return dE(t.events,i+1,0,t.events.slice(n)),t.events.length=o,c(e)}return o(e)}function c(r){if(s===n.length){if(!a)return m(r);if(a.currentConstruct&&a.currentConstruct.concrete)return f(r);t.interrupt=Boolean(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(HE,d,u)(r)}function d(e){return a&&b(),v(s),m(e)}function u(e){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,f(e)}function m(n){return t.containerState={},e.attempt(HE,p,f)(n)}function p(e){return s++,n.push([t.currentConstruct,t.containerState]),m(e)}function f(n){return null===n?(a&&b(),v(0),void e.consume(n)):(a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:r}),x(n))}function x(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):EE(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,o):(e.consume(n),x)}function g(e,n){const o=t.sliceStream(e);if(n&&o.push(null),e.previous=r,r&&(r.next=e),r=e,a.defineSkip(e.start),a.write(o),t.parser.lazy[e.start.line]){let e=a.events.length;for(;e--;)if(a.events[e][1].start.offset<i&&(!a.events[e][1].end||a.events[e][1].end.offset>i))return;const n=t.events.length;let r,o,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(r){o=t.events[l][1].end;break}r=!0}for(v(s),e=n;e<t.events.length;)t.events[e][1].end=h({},o),e++;dE(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(a){let r=n.length;for(;r-- >a;){const a=n[r];t.containerState=a[1],a[0].exit.call(t,e)}n.length=a}function b(){a.write([null]),r=void 0,a=void 0,t.containerState._closeFlow=void 0}}},HE={tokenize:function(e,t,n){return ME(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const PE={partial:!0,tokenize:function(e,t,n){return function(t){return _E(t)?ME(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||EE(e)?t(e):n(e)}}};const LE={resolve:function(e){return hE(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?r(t):EE(t)?e.check(TE,i,r)(t):(e.consume(t),a)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}},TE={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ME(e,r,"linePrefix")};function r(r){if(null===r||EE(r))return n(r);const i=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(r):e.interrupt(a.parser.constructs.flow,n,t)(r)}}};const IE={tokenize:function(e){const t=this,n=e.attempt(PE,function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,a,ME(e,e.attempt(this.parser.constructs.flow,a,e.attempt(LE,a)),"linePrefix")));return n;function a(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(a)}}};const ZE={resolveAll:qE()},BE=zE("string"),VE=zE("text");function zE(e){return{resolveAll:qE("text"===e?UE:void 0),tokenize:function(t){const n=this,a=this.parser.constructs[e],r=t.attempt(a,i,s);return i;function i(e){return l(e)?r(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return l(e)?(t.exit("data"),r(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;const t=a[e];let r=-1;if(t)for(;++r<t.length;){const e=t[r];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function qE(e){return function(t,n){let a,r=-1;for(;++r<=t.length;)void 0===a?t[r]&&"data"===t[r][1].type&&(a=r,r++):t[r]&&"data"===t[r][1].type||(r!==a+2&&(t[a][1].end=t[r-1][1].end,t.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(t,n):t}}function UE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const a=e[n-1][1],r=t.sliceStream(a);let i,s=r.length,o=-1,l=0;for(;s--;){const e=r[s];if("string"===typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)i=!0,l++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const r={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:a.start._bufferIndex+o,_index:a.start._index+s,line:a.end.line,column:a.end.column-l,offset:a.end.offset-l},end:h({},a.end)};a.end=h({},r.start),a.start.offset===a.end.offset?Object.assign(a,r):(e.splice(n,0,["enter",r,t],["exit",r,t]),n+=2)}n++}return e}const WE={name:"thematicBreak",tokenize:function(e,t,n){let a,r=0;return function(t){return e.enter("thematicBreak"),function(e){return a=e,i(e)}(t)};function i(i){return i===a?(e.enter("thematicBreakSequence"),s(i)):r>=3&&(null===i||EE(i))?(e.exit("thematicBreak"),t(i)):n(i)}function s(t){return t===a?(e.consume(t),r++,s):(e.exit("thematicBreakSequence"),_E(t)?ME(e,i,"whitespace")(t):i(t))}}};const YE={continuation:{tokenize:function(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(PE,r,i);function r(n){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ME(e,t,"listItemIndent",a.containerState.size+1)(n)}function i(n){return a.containerState.furtherBlankLines||!_E(n)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine
vendor: 1,328 bytes, line 2
2=void 0,s(n)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(GE,t,s)(n))}function s(r){return a.containerState._closeFlow=!0,a.interrupt=void 0,ME(e,e.attempt(YE,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const a=this,r=a.events[a.events.length-1];let i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=0;return function(t){const r=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!a.containerState.marker||t===a.containerState.marker:NE(t)){if(a.containerState.type||(a.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(WE,n,l)(t):l(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return n(t)};function o(t){return NE(t)&&++s<10?(e.consume(t),o):(!a.interrupt||s<2)&&(a.containerState.marker?t===a.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(PE,a.interrupt?n:c,e.attempt(KE,u,d))}
vendor: 9,760 bytes, line 2
2function c(e){return a.containerState.initialBlankLine=!0,i++,u(e)}function d(t){return _E(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return a.containerState.size=i+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},KE={partial:!0,tokenize:function(e,t,n){const a=this;return ME(e,function(e){const r=a.events[a.events.length-1];return!_E(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},GE={partial:!0,tokenize:function(e,t,n){const a=this;return ME(e,function(e){const r=a.events[a.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===a.containerState.size?t(e):n(e)},"listItemIndent",a.containerState.size+1)}};const $E={continuation:{tokenize:function(e,t,n){const a=this;return function(t){if(_E(t))return ME(e,r,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return r(t)};function r(a){return e.attempt($E,t,n)(a)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const a=this;return function(t){if(62===t){const n=a.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return _E(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function QE(e,t,n,a,r,i,s,o,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return function(t){if(60===t)return e.enter(a),e.enter(r),e.enter(i),e.consume(t),e.exit(i),u;if(null===t||32===t||41===t||wE(t))return n(t);return e.enter(a),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(t)};function u(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(o),u(t)):null===t||60===t||EE(t)?n(t):(e.consume(t),92===t?p:m)}function p(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function h(r){return d||null!==r&&41!==r&&!DE(r)?d<c&&40===r?(e.consume(r),d++,h):41===r?(e.consume(r),d--,h):null===r||32===r||40===r||wE(r)?n(r):(e.consume(r),92===r?f:h):(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(a),t(r))}function f(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function XE(e,t,n,a,r,i){const s=this;let o,l=0;return function(t){return e.enter(a),e.enter(r),e.consume(t),e.exit(r),e.enter(i),c};function c(u){return l>999||null===u||91===u||93===u&&!o||94===u&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(u):93===u?(e.exit(i),e.enter(r),e.consume(u),e.exit(r),e.exit(a),t):EE(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||EE(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!_E(t)),92===t?u:d)}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}}function JE(e,t,n,a,r,i){let s;return function(t){if(34===t||39===t||40===t)return e.enter(a),e.enter(r),e.consume(t),e.exit(r),s=40===t?41:t,o;return n(t)};function o(n){return n===s?(e.enter(r),e.consume(n),e.exit(r),e.exit(a),t):(e.enter(i),l(n))}function l(t){return t===s?(e.exit(i),o(s)):null===t?n(t):EE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ME(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||EE(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?d:c)}function d(t){return t===s||92===t?(e.consume(t),c):c(t)}}function eD(e,t){let n;return function a(r){if(EE(r))return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a;if(_E(r))return ME(e,a,n?"linePrefix":"lineSuffix")(r);return t(r)}}function tD(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nD={name:"definition",tokenize:function(e,t,n){const a=this;let r;return function(t){return e.enter("definition"),function(t){return XE.call(a,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return r=tD(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return DE(t)?eD(e,o)(t):o(t)}function o(t){return QE(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(aD,c,c)(t)}function c(t){return _E(t)?ME(e,d,"whitespace")(t):d(t)}function d(i){return null===i||EE(i)?(e.exit("definition"),a.parser.defined.push(r),t(i)):n(i)}}},aD={partial:!0,tokenize:function(e,t,n){return function(t){return DE(t)?eD(e,a)(t):n(t)};function a(t){return JE(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return _E(t)?ME(e,i,"whitespace")(t):i(t)}function i(e){return null===e||EE(e)?t(e):n(e)}}};const rD={name:"codeIndented",tokenize:function(e,t,n){const a=this;return function(t){return e.enter("codeIndented"),ME(e,r,"linePrefix",5)(t)};function r(e){const t=a.events[a.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?o(t):EE(t)?e.attempt(iD,i,o)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||EE(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),s)}function o(n){return e.exit("codeIndented"),t(n)}}},iD={partial:!0,tokenize:function(e,t,n){const a=this;return r;function r(t){return a.parser.lazy[a.now().line]?n(t):EE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):ME(e,i,"linePrefix",5)(t)}function i(e){const i=a.events[a.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):EE(e)?r(e):n(e)}}};const sD={name:"headingAtx",resolve:function(e,t){let n,a,r=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);r-2>i&&"whitespace"===e[r][1].type&&(r-=2);"atxHeadingSequence"===e[r][1].type&&(i===r-1||r-4>i&&"whitespace"===e[r-2][1].type)&&(r-=i+1===r?2:4);r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},dE(e,i,r-i+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let a=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),r(t)}(t)};function r(t){return 35===t&&a++<6?(e.consume(t),r):null===t||DE(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||EE(n)?(e.exit("atxHeading"),t(n)):_E(n)?ME(e,i,"whitespace")(n):(e.enter("atxHeadingText"),o(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),i(t))}function o(t){return null===t||35===t||DE(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),o)}}};const oD={name:"setextUnderline",resolveTo:function(e,t){let n,a,r,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(a=i)}else"content"===e[i][1].type&&e.splice(i,1),r||"definition"!==e[i][1].type||(r=i);const s={type:"setextHeading",start:h({},e[n][1].start),end:h({},e[e.length-1][1].end)};e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",s,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end=h({},e[r][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const a=this;let r;return function(t){let s,o=a.events.length;for(;o--;)if("lineEnding"!==a.events[o][1].type&&"linePrefix"!==a.events[o][1].type&&"content"!==a.events[o][1].type){s="paragraph"===a.events[o][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||s))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===r?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),_E(t)?ME(e,s,"lineSuffix")(t):s(t))}function s(a){return null===a||EE(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}};const lD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cD=["pre","script","style","textarea"],dD={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const a=this;let r,i,s,o,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),d):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,a.interrupt?t:R):bE(o)?(e.consume(o),s=String.fromCharCode(o),h):n(o)}function d(i){return 45===i?(e.consume(i),r=2,u):91===i?(e.consume(i),r=5,o=0,m):bE(i)?(e.consume(i),r=4,a.interrupt?t:R):n(i)}function u(r){return 45===r?(e.consume(r),a.interrupt?t:R):n(r)}function m(r){const i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),6===o?a.interrupt?t:E:m):n(r)}function p(t){return bE(t)?(e.consume(t),s=String.fromCharCode(t),h):n(t)}
vendor: 4,289 bytes, line 2
2function h(o){if(null===o||47===o||62===o||DE(o)){const l=47===o,c=s.toLowerCase();return l||i||!cD.includes(c)?lD.includes(s.toLowerCase())?(r=6,l?(e.consume(o),f):a.interrupt?t(o):E(o)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(o):i?x(o):g(o)):(r=1,a.interrupt?t(o):E(o))}return 45===o||yE(o)?(e.consume(o),s+=String.fromCharCode(o),h):n(o)}function f(r){return 62===r?(e.consume(r),a.interrupt?t:E):n(r)}function x(t){return _E(t)?(e.consume(t),x):A(t)}function g(t){return 47===t?(e.consume(t),A):58===t||95===t||bE(t)?(e.consume(t),v):_E(t)?(e.consume(t),g):A(t)}function v(t){return 45===t||46===t||58===t||95===t||yE(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),y):_E(t)?(e.consume(t),b):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,j):_E(t)?(e.consume(t),y):w(t)}function j(t){return t===l?(e.consume(t),l=null,N):null===t||EE(t)?n(t):(e.consume(t),j)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||DE(t)?b(t):(e.consume(t),w)}function N(e){return 47===e||62===e||_E(e)?g(e):n(e)}function A(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||EE(t)?E(t):_E(t)?(e.consume(t),k):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),F):60===t&&1===r?(e.consume(t),S):62===t&&4===r?(e.consume(t),H):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),O):!EE(t)||6!==r&&7!==r?null===t||EE(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(uD,P,D)(t))}function D(t){return e.check(mD,_,P)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||EE(t)?D(t):(e.enter("htmlFlowData"),E(t))}function F(t){return 45===t?(e.consume(t),R):E(t)}function S(t){return 47===t?(e.consume(t),s="",M):E(t)}function M(t){if(62===t){const n=s.toLowerCase();return cD.includes(n)?(e.consume(t),H):E(t)}return bE(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),M):E(t)}function O(t){return 93===t?(e.consume(t),R):E(t)}function R(t){return 62===t?(e.consume(t),H):45===t&&2===r?(e.consume(t),R):E(t)}function H(t){return null===t||EE(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),H)}function P(n){return e.exit("htmlFlow"),t(n)}}},uD={partial:!0,tokenize:function(e,t,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(PE,t,n)}}},mD={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){if(EE(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r;return n(t)};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}}};const pD={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}}},hD={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const a=this,r={partial:!0,tokenize:function(e,t,n){let r=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),_E(t)?ME(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),d(t)):n(t)}function d(t){return t===i?(r++,e.consume(t),d):r>=o?(e.exit("codeFencedFenceSequence"),_E(t)?ME(e,u,"whitespace")(t):u(t)):n(t)}function u(a){return null===a||EE(a)?(e.exit("codeFencedFence"),t(a)):n(a)}}};let i,s=0,o=0;return function(t){return function(t){const n=a.events[a.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(o++,e.consume(t),l):o<3?n(t):(e.exit("codeFencedFenceSequence"),_E(t)?ME(e,c,"whitespace")(t):c(t))}function c(n){return null===n||EE(n)?(e.exit("codeFencedFence"),a.interrupt?t(n):e.check(pD,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return null===t||EE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):_E(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ME(e,u,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),d)}
vendor: 6,249 bytes, line 2
2function u(t){return null===t||EE(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(t))}function m(t){return null===t||EE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),m)}function p(t){return e.attempt(r,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return s>0&&_E(t)?ME(e,x,"linePrefix",s+1)(t):x(t)}function x(t){return null===t||EE(t)?e.check(pD,p,v)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||EE(t)?(e.exit("codeFlowValue"),x(t)):(e.consume(t),g)}function v(n){return e.exit("codeFenced"),t(n)}}};const fD=document.createElement("i");function xD(e){const t="&"+e+";";fD.innerHTML=t;const n=fD.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const gD={name:"characterReference",tokenize:function(e,t,n){const a=this;let r,i,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=yE,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=AE,c):(e.enter("characterReferenceValue"),r=7,i=NE,c(t))}function c(o){if(59===o&&s){const r=e.exit("characterReferenceValue");return i!==yE||xD(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&s++<r?(e.consume(o),c):n(o)}}};const vD={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),a};function a(a){return kE(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}};const bD={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ME(e,t,"linePrefix")}}};function yD(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const i=e[r].resolveAll;i&&!a.includes(i)&&(t=i(t,n),a.push(i))}return t}const jD={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),"labelImage"===a.type||"labelLink"===a.type||"labelEnd"===a.type){const e="labelImage"===a.type?4:2;a.type="data",t+=e}}e.length!==n.length&&dE(e,0,e.length,n);return e},resolveTo:function(e,t){let n,a,r,i,s=e.length,o=0;for(;s--;)if(n=e[s][1],a){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(a=s,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(r=s);const l={type:"labelLink"===e[a][1].type?"link":"image",start:h({},e[a][1].start),end:h({},e[e.length-1][1].end)},c={type:"label",start:h({},e[a][1].start),end:h({},e[r][1].end)},d={type:"labelText",start:h({},e[a+o+2][1].end),end:h({},e[r-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=uE(i,e.slice(a+1,a+o+3)),i=uE(i,[["enter",d,t]]),i=uE(i,yD(t.parser.constructs.insideSpan.null,e.slice(a+o+4,r-3),t)),i=uE(i,[["exit",d,t],e[r-2],e[r-1],["exit",c,t]]),i=uE(i,e.slice(r+1)),i=uE(i,[["exit",l,t]]),dE(e,a,e.length,i),e},tokenize:function(e,t,n){const a=this;let r,i,s=a.events.length;for(;s--;)if(("labelImage"===a.events[s][1].type||"labelLink"===a.events[s][1].type)&&!a.events[s][1]._balanced){r=a.events[s][1];break}return function(t){if(!r)return n(t);if(r._inactive)return d(t);return i=a.parser.defined.includes(tD(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o};function o(t){return 40===t?e.attempt(wD,c,i?c:d)(t):91===t?e.attempt(ND,c,i?l:d)(t):i?c(t):d(t)}function l(t){return e.attempt(AD,c,d)(t)}function c(e){return t(e)}function d(e){return r._balanced=!0,n(e)}}},wD={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),a};function a(t){return DE(t)?eD(e,r)(t):r(t)}function r(t){return 41===t?c(t):QE(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return DE(t)?eD(e,o)(t):c(t)}function s(e){return n(e)}function o(t){return 34===t||39===t||40===t?JE(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return DE(t)?eD(e,c)(t):c(t)}function c(a){return 41===a?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),t):n(a)}}},ND={tokenize:function(e,t,n){const a=this;return function(t){return XE.call(a,e,r,i,"reference","referenceMarker","referenceString")(t)};function r(e){return a.parser.defined.includes(tD(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},AD={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),a};function a(a){return 93===a?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}};const kD={name:"labelStartImage",resolveAll:jD.resolveAll,tokenize:function(e,t,n){const a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),r};function r(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}}};function ED(e){return null===e||DE(e)||FE(e)?1:CE(e)?2:void 0}const DD={name:"attention",resolveAll:function(e,t){let n,a,r,i,s,o,l,c,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close)for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 6,476 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;const u=h({},e[n][1].end),m=h({},e[d][1].start);_D(u,-o),_D(m,o),i={type:o>1?"strongSequence":"emphasisSequence",start:u,end:h({},e[n][1].end)},s={type:o>1?"strongSequence":"emphasisSequence",start:h({},e[d][1].start),end:m},r={type:o>1?"strongText":"emphasisText",start:h({},e[n][1].end),end:h({},e[d][1].start)},a={type:o>1?"strong":"emphasis",start:h({},i.start),end:h({},s.end)},e[n][1].end=h({},i.start),e[d][1].start=h({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=uE(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=uE(l,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",r,t]]),l=uE(l,yD(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),l=uE(l,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,l=uE(l,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,dE(e,n-1,d-n+3,l),d=n+l.length-c-2;break}d=-1;for(;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=ED(a);let i;return function(t){return i=t,e.enter("attentionSequence"),s(t)};function s(o){if(o===i)return e.consume(o),s;const l=e.exit("attentionSequence"),c=ED(o),d=!c||2===c&&r||n.includes(o),u=!r||2===r&&c||n.includes(a);return l._open=Boolean(42===i?d:d&&(r||!u)),l._close=Boolean(42===i?u:u&&(c||!d)),t(o)}}};function _D(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const CD={name:"autolink",tokenize:function(e,t,n){let a=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return bE(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||yE(e)?(a=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),a=0,o):(43===t||45===t||46===t||yE(t))&&a++<32?(e.consume(t),s):(a=0,l(t))}function o(a){return 62===a?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):null===a||32===a||60===a||wE(a)?n(a):(e.consume(a),o)}function l(t){return 64===t?(e.consume(t),c):jE(t)?(e.consume(t),l):n(t)}function c(e){return yE(e)?d(e):n(e)}function d(n){return 46===n?(e.consume(n),a=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):u(n)}function u(t){if((45===t||yE(t))&&a++<63){const n=45===t?u:d;return e.consume(t),n}return n(t)}}};const FD={name:"htmlText",tokenize:function(e,t,n){const a=this;let r,i,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),y):63===t?(e.consume(t),v):bE(t)?(e.consume(t),N):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):bE(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),m):n(t)}function d(t){return null===t?n(t):45===t?(e.consume(t),u):EE(t)?(s=d,M(t)):(e.consume(t),d)}function u(t){return 45===t?(e.consume(t),m):d(t)}function m(e){return 62===e?S(e):45===e?u(e):d(e)}function p(t){const a="CDATA[";return t===a.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),f):EE(t)?(s=h,M(t)):(e.consume(t),h)}function f(t){return 93===t?(e.consume(t),x):h(t)}function x(t){return 62===t?S(t):93===t?(e.consume(t),x):h(t)}function g(t){return null===t||62===t?S(t):EE(t)?(s=g,M(t)):(e.consume(t),g)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):EE(t)?(s=v,M(t)):(e.consume(t),v)}function b(e){return 62===e?S(e):v(e)}function y(t){return bE(t)?(e.consume(t),j):n(t)}function j(t){return 45===t||yE(t)?(e.consume(t),j):w(t)}function w(t){return EE(t)?(s=w,M(t)):_E(t)?(e.consume(t),w):S(t)}function N(t){return 45===t||yE(t)?(e.consume(t),N):47===t||62===t||DE(t)?A(t):n(t)}function A(t){return 47===t?(e.consume(t),S):58===t||95===t||bE(t)?(e.consume(t),k):EE(t)?(s=A,M(t)):_E(t)?(e.consume(t),A):S(t)}function k(t){return 45===t||46===t||58===t||95===t||yE(t)?(e.consume(t),k):E(t)}function E(t){return 61===t?(e.consume(t),D):EE(t)?(s=E,M(t)):_E(t)?(e.consume(t),E):A(t)}function D(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,_):EE(t)?(s=D,M(t)):_E(t)?(e.consume(t),D):(e.consume(t),C)}function _(t){return t===r?(e.consume(t),r=void 0,F):null===t?n(t):EE(t)?(s=_,M(t)):(e.consume(t),_)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||DE(t)?A(t):(e.consume(t),C)}function F(e){return 47===e||62===e||DE(e)?A(e):n(e)}function S(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):n(a)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return _E(t)?ME(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),s(t)}}};const SD={name:"labelStartLink",resolveAll:jD.resolveAll,tokenize:function(e,t,n){const a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),r};function r(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}}};const MD={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),a};function a(a){return EE(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}};const OD={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,a=e.length-4,r=3;if(("lineEnding"===e[r][1].type||"space"===e[r][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type))for(t=r;++t<a;)if("codeTextData"===e[t][1].type){e[r][1].type="codeTextPadding",e[a][1].type="codeTextPadding",r+=2,a-=2;break}t=r-1,a++;for(;++t<=a;)void 0===n?t!==a&&"lineEnding"!==e[t][1].type&&(n=t):t!==a&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),a-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let a,r,i=0;
vendor: 11,369 bytes, line 2
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),i++,s):(e.exit("codeTextSequence"),o(t))}function o(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):96===t?(r=e.enter("codeTextSequence"),a=0,c(t)):EE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||EE(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(r.type="codeTextData",l(n))}}};const RD={42:YE,43:YE,45:YE,48:YE,49:YE,50:YE,51:YE,52:YE,53:YE,54:YE,55:YE,56:YE,57:YE,62:$E},HD={91:nD},PD={[-2]:rD,[-1]:rD,32:rD},LD={35:sD,42:WE,45:[oD,WE],60:dD,61:oD,95:WE,96:hD,126:hD},TD={38:gD,92:vD},ID={[-5]:bD,[-4]:bD,[-3]:bD,33:kD,38:gD,42:DD,60:[CD,FD],91:SD,92:[MD,vD],93:jD,95:DD,96:OD},ZD={null:[DD,ZE]},BD={null:[42,95]},VD={null:[]};function zD(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},i=[];let s=[],o=[],l=!0;const c={attempt:v(function(e,t){b(e,t.from)}),check:v(g),consume:function(e){EE(e)?(a.line++,a.column=1,a.offset+=-3===e?2:1,y()):-1!==e&&(a.column++,a.offset++);a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++));d.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),d.events.push(["enter",n,d]),o.push(n),n},exit:function(e){const t=o.pop();return t.end=h(),d.events.push(["exit",t,d]),t},interrupt:v(g,{interrupt:!0})},d={code:null,containerState:{},defineSkip:function(e){r[e.line]=e.column,y()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const i=e[n];let s;if("string"===typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&r)continue;s=" ";break;default:s=String.fromCharCode(i)}r=-2===i,a.push(s)}return a.join("")}(p(e),t)},sliceStream:p,write:function(e){if(s=uE(s,e),f(),null!==s[s.length-1])return[];return b(t,0),d.events=yD(i,d.events,d),d.events}};let u,m=t.tokenize.call(d,c);return t.resolveAll&&i.push(t),d;function p(e){return function(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,i=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(a,i)];else{if(s=e.slice(n,r),a>-1){const e=s[0];"string"===typeof e?s[0]=e.slice(a):s.shift()}i>0&&s.push(e[r].slice(0,i))}return s}(s,e)}function h(){const e=a;return{_bufferIndex:e._bufferIndex,_index:e._index,line:e.line,column:e.column,offset:e.offset}}function f(){let e;for(;a._index<s.length;){const t=s[a._index];if("string"===typeof t)for(e=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===e&&a._bufferIndex<t.length;)x(t.charCodeAt(a._bufferIndex));else x(t)}}function x(e){l=void 0,u=e,m=m(e)}function g(e,t){t.restore()}function v(e,t){return function(n,r,i){let s,u,m,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],a=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(a)?a:a?[a]:[]])(t)}}(n);function f(e){return s=e,u=0,0===e.length?i:x(e[u])}function x(e){return function(n){p=function(){const e=h(),t=d.previous,n=d.currentConstruct,r=d.events.length,i=Array.from(o);return{from:r,restore:s};function s(){a=e,d.previous=t,d.currentConstruct=n,d.events.length=r,o=i,y()}}(),m=e,e.partial||(d.currentConstruct=e);if(e.name&&d.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(d),t):d,c,g,v)(n)}}function g(t){return l=!0,e(m,p),r}function v(e){return l=!0,p.restore(),++u<s.length?x(s[u]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&dE(d.events,t,d.events.length-t,e.resolve(d.events.slice(t),d)),e.resolveTo&&(d.events=e.resolveTo(d.events,d))}function y(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function qD(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)gE(t,e[n]);return t}([i,...(e||{}).extensions||[]]),n={constructs:t,content:a(OE),defined:[],document:a(RE),flow:a(IE),lazy:{},string:a(BE),text:a(VE)};return n;function a(e){return function(t){return zD(n,e,t)}}}const UD=/[\0\t\n\r]/g;function WD(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const YD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KD(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return WD(n.slice(t?2:1),t?16:10)}return xD(n)||e}const GD={}.hasOwnProperty;function $D(e,t,n){return t&&"object"===typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:k,autolinkEmail:k,atxHeading:i(Q),blockQuote:i(W),characterEscape:k,characterReference:k,codeFenced:i(Y),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Y,s),codeText:i(K,s),codeTextData:k,data:k,codeFlowValue:k,definition:i(G),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i($),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,s),htmlFlowData:k,htmlText:i(J,s),htmlTextData:k,image:i(ee),label:s,link:i(te),listItem:i(ae),listItemValue:m,listOrdered:i(ne,u),listUnordered:i(ne),paragraph:i(re),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Q),strong:i(ie),thematicBreak:i(oe)},exit:{atxHeading:l(),atxHeadingSequence:j,autolink:l(),autolinkEmail:U,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:V,characterReference:z,codeFenced:l(x),codeFencedFence:f,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:E,codeIndented:l(g),codeText:l(S),codeTextData:E,data:E,definition:l(),definitionDestinationString:y,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(C),htmlFlowData:E,htmlText:l(F),htmlTextData:E,image:l(O),label:H,labelText:R,lineEnding:D,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Z,resourceDestinationString:P,resourceTitleString:L,resource:T,setextHeading:l(A),setextHeadingLineSequence:N,setextHeadingText:w,strong:l(),thematicBreak:l()}};XD(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(e){let a={type:"root",children:[]};const i={stack:[a],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:d,data:n},l=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])l.push(u);else{u=r(e,l.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];GD.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},i),e[u][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||e_).call(i,void 0,e[0])}for(a.position={start:QD(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:QD(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)a=t.transforms[u](a)||a;return a}function r(e,t,n){let a,r,i,s,o=t-1,l=-1,c=!1;for(;++o<=n;){const t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!a||s||l||i||(i=o),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(a){let s=o;for(r=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",r=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!r||i<r)&&(a._spread=!0),a.end=Object.assign({},r?e[r][1].start:t[1].end),e.splice(r||o,0,["exit",a,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){const r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};a=r,e.splice(o,0,["enter",r,t[2]]),o++,n++,i=void 0,s=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){o.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:QD(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),a=this.tokenStack.pop();if(!a)throw new Error("Cannot close `"+e.type+"` ("+Ik({start:e.start,end:e.end})+"): it\u2019s not open");if(a[0].type!==e.type)if(t)t.call(this,e,a[0]);else{(a[1]||e_).call(this,e,a[0])}n.position.end=QD(e.end)}function d(){return function(e,t){const n=t||oE;return lE(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function m(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function f(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tD(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){const e=this.resume();this.stack[this.stack.length-1].url=e}function j(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function k(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:QD(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=QD(e.end)}function D(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=QD(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
vendor: 4,330 bytes, line 2
2ype)&&(k.call(this,e),E.call(this,e))}function _(){this.data.atHardBreak=!0}function C(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.resume();this.stack[this.stack.length-1].value=e}function S(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(YD,KD)}(t),n.identifier=tD(t).toLowerCase()}function H(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function P(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function T(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function Z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tD(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function V(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let a;if(n)a=WD(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{a=xD(t)}this.stack[this.stack.length-1].value+=a}function z(e){this.stack.pop().position.end=QD(e.end)}function q(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function U(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function G(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ae(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}(n)(function(e){for(;!hE(e););return e}(qD(n).document().write(function(){let e,t=1,n="",a=!0;return function(r,i,s){const o=[];let l,c,d,u,m;for(r=n+("string"===typeof r?r.toString():new TextDecoder(i||void 0).decode(r)),d=0,n="",a&&(65279===r.charCodeAt(0)&&d++,a=void 0);d<r.length;){if(UD.lastIndex=d,l=UD.exec(r),u=l&&void 0!==l.index?l.index:r.length,m=r.charCodeAt(u),!l){n=r.slice(d);break}if(10===m&&d===u&&e)o.push(-3),e=void 0;else switch(e&&(o.push(-5),e=void 0),d<u&&(o.push(r.slice(d,u)),t+=u-d),m){case 0:o.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),o.push(-2);t++<c;)o.push(-1);break;case 10:o.push(-4),t=1;break;default:e=!0,t=1}d=u+1}return s&&(e&&o.push(-5),n&&o.push(n),o.push(null)),o}}()(e,t,!0))))}function QD(e){return{line:e.line,column:e.column,offset:e.offset}}function XD(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?XD(e,a):JD(e,a)}}function JD(e,t){let n;for(n in t)if(GD.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function e_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ik({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ik({start:t.start,end:t.end}
2)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ik({start:t.start,end:t.end})+") is still open")}function t_(e){const t=this;t.parser=function(n){return $D(n,h(h(h({},t.data("settings")),e),{},{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}const n_="object"===typeof self?self:globalThis,a_=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new n_[e](t)},r_=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),a=r=>{if(e.has(r))return e.get(r);const i=Ue(t[r],2),s=i[0],o=i[1];switch(s){case 0:case-1:return n(o,r);case 1:{const e=n([],r);for(const t of o)e.push(a(t));return e}case 2:{const e=n({},r);for(const t of o){var l=Ue(t,2);const n=l[0],r=l[1];e[a(n)]=a(r)}return e}case 3:return n(new Date(o),r);case 4:{const e=o.source,t=o.flags;return n(new RegExp(e,t),r)}case 5:{const e=n(new Map,r);for(const t of o){var c=Ue(t,2);const n=c[0],r=c[1];e.set(a(n),a(r))}return e}case 6:{const e=n(new Set,r);for(const t of o)e.add(a(t));return e}case 7:{const e=o.name,t=o.message;return n("function"===typeof n_[e]?a_(e,t):new Error(t),r)}case 8:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const e=new Uint8Array(o).buffer;return n(new DataView(e),o)}}return n(a_(s,o),r)};return a})(new Map,e)(0),i_="",s_={}.toString,o_=Object.keys,l_=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=s_.call(e).slice(8,-1);switch(n){case"Array":return[1,i_];case"Object":return[2,i_];case"Date":return[3,i_];case"RegExp":return[4,i_];case"Map":return[5,i_];case"Set":return[6,i_];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},c_=e=>{let t=Ue(e,2),n=t[0],a=t[1];return 0===n&&("function"===a||"symbol"===a)},d_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.json,a=t.lossy;const r=[];return((e,t,n,a)=>{const r=(e,t)=>{const r=a.push(e)-1;return n.set(t,r),r},i=a=>{if(n.has(a))return n.get(a);let s=Ue(l_(a),2),o=s[0],l=s[1];switch(o){case 0:{let t=a;switch(l){case"bigint":o=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return r([-1],a)}return r([o,t],a)}case 1:{if(l){let e=a;return"DataView"===l?e=new Uint8Array(a.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(a)),r([l,[...e]],a)}const e=[],t=r([o,e],a);for(const n of a)e.push(i(n));return t}case 2:{if(l)switch(l){case"BigInt":return r([l,a.toString()],a);case"Boolean":case"Number":case"String":return r([l,a.valueOf()],a)}if(t&&"toJSON"in a)return i(a.toJSON());const n=[],s=r([o,n],a);for(const t of o_(a))!e&&c_(l_(a[t]))||n.push([i(t),i(a[t])]);return s}case 3:return r([o,isNaN(a.getTime())?i_:a.toISOString()],a);case 4:{const e=a.source,t=a.flags;return r([o,{source:e,flags:t}],a)}case 5:{const t=[],n=r([o,t],a);for(const r of a){var c=Ue(r,2);const n=c[0],a=c[1];(e||!c_(l_(n))&&!c_(l_(a)))&&t.push([i(n),i(a)])}return n}case 6:{const t=[],n=r([o,t],a);for(const r of a)!e&&c_(l_(r))||t.push(i(r));return n}}const d=a.message;return r([o,{name:l,message:d}],a)};return i})(!(n||a),!!n,new Map,r)(e),r},u_="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?r_(d_(e,t)):structuredClone(e):(e,t)=>r_(d_(e,t));function m_(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(37===i&&yE(e.charCodeAt(n+1))&&yE(e.charCodeAt(n+2)))r=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(s=String.fromCharCode(i,t),r=1):s="\ufffd"}else s=String.fromCharCode(i);s&&(t.push(e.slice(a,n),encodeURIComponent(s)),a=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function p_(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function h_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const f_=function(e){if(null===e||void 0===e)return g_;if("function"===typeof e)return x_(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=f_(e[n]);return x_(a);function a(){let e=-1;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];for(;++e<t.length;)if(t[e].apply(this,a))return!0;return!1}}(e):function(e){const t=e;return x_(n);function n(n){const a=n;let r;for(r in e)if(a[r]!==t[r])return!1;return!0}}(e);if("string"===typeof e)return function(e){return x_(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function x_(e){return function(t,n,a){return Boolean(v_(t)&&e.call(this,t,"number"===typeof n?n:void 0,a||void 0))}}function g_(){return!0}function v_(e){return null!==e&&"object"===typeof e&&"type"in e}const b_=[],y_=!0,j_=!1;function w_(e,t,n,a){let r;"function"===typeof t&&"function"!==typeof n?(a=n,n=t):r=t;
vendor: 10,363 bytes, line 2
2const i=f_(r),s=a?-1:1;!function e(r,o,l){const c=r&&"object"===typeof r?r:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return d;function d(){let c,d,u,m=b_;if((!t||i(r,o,l[l.length-1]||void 0))&&(m=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[y_,e];return null===e||void 0===e?b_:[e]}(n(r,l)),m[0]===j_))return m;if("children"in r&&r.children){const t=r;if(t.children&&"skip"!==m[0])for(d=(a?t.children.length:-1)+s,u=l.concat(t);d>-1&&d<t.children.length;){const n=t.children[d];if(c=e(n,d,u)(),c[0]===j_)return c;d="number"===typeof c[1]?c[1]:d+s}}return m}}(e,void 0,[])()}function N_(e,t,n,a){let r,i,s;"function"===typeof t&&"function"!==typeof n?(i=void 0,s=t,r=n):(i=t,s=n,r=a),w_(e,i,function(e,t){const n=t[t.length-1],a=n?n.children.indexOf(e):void 0;return s(e,a,n)},r)}function A_(e,t){const n=t.referenceType;let a="]";if("collapsed"===n?a+="[]":"full"===n&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),i=r[0];i&&"text"===i.type?i.value="["+i.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&"text"===s.type?s.value+=a:r.push({type:"text",value:a}),r}function k_(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function E_(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),r=0;const i=[];for(;a;)i.push(D_(t.slice(r,a.index),r>0,!0),a[0]),r=a.index+a[0].length,a=n.exec(t);return i.push(D_(t.slice(r),r>0,!1)),i.join("")}function D_(e,t,n){let a=0,r=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>a?e.slice(a,r):""}const __={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let i={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=m_(a.toLowerCase()),i=e.footnoteOrder.indexOf(a);let s,o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(a,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return A_(e,t);const r={src:m_(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(r.title=a.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:m_(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return A_(e,t);const r={href:m_(a.url||"")};null!==a.title&&void 0!==a.title&&(r.title=a.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:m_(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,n){const a=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=k_(n[a])}return t}(n):k_(t),i={},s=[];if("boolean"===typeof t.checked){const e=a[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},a.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<a.length;){const e=a[o];(r||0!==o||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||r?s.push(e):s.push(...e.children)}const l=a[a.length-1];l&&(r||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},a=e.all(t);let r=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++r<a.length;){const e=a[r];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),a=n.shift(),r=[];if(a){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],n),r.push(n)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Lk(t.children[1]),s=Pk(t.children[t.children.length-1]);i&&s&&(a.position={start:i,end:s}),r.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const a=n?n.children:void 0,r=0===(a?a.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,s=i?i.length:t.children.length;let o=-1;const l=[];for(;++o<s;){const n=t.children[o],a={},s=i?i[o]:void 0;s&&(a.align=s);let c={type:"element",tagName:r,properties:a,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:E_(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:C_,yaml:C_,definition:C_,footnoteDefinition:C_};function C_(){}const F_=["children"],S_={}.hasOwnProperty,M_={};function O_(e,t){e.position&&(t.position=function(e){const t=Lk(e),n=Pk(e);if(t&&n)return{start:t,end:n}}(e))}function R_(e,t){let n=t;if(e&&e.data){const t=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&r&&Object.assign(n.properties,u_(r)),"children"in n&&n.children&&null!==a&&void 0!==a&&(n.children=a)}return n}function H_(e,t){const n=t.data||{},a=!("value"in t)||S_.call(n,"hProperties")||S_.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,a),e.applyData(t,a)}function P_(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:"\n"});++a<e.length;)a&&n.push({type:"text",value:"\n"}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function L_(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function T_(e,t){const n=function(e,t){const n=t||M_,a=new Map,r=new Map,i=new Map,s=h(h({},__),n.handlers),o={all:function(e){const t=[];if("children"in e){const n=e.children;let a=-1;for(;++a<n.length;){const r=o.one(n[a],e);if(r){if(a&&"break"===n[a-1].type&&(Array.isArray(r)||"text"!==r.type||(r.value=L_(r.value)),!Array.isArray(r)&&"element"===r.type)){const e=r.children[0];e&&"text"===e.type&&(e.value=L_(e.value))}Array.isArray(r)?t.push(...r):t.push(r)}}}return t},applyData:R_,definitionById:a,footnoteById:r,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,a=o.handlers[n];if(S_.call(o.handlers,n)&&a)return a(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){e.children;const t=Ie(e,F_),n=u_(t);return n.children=o.all(e),n}return u_(e)}return(o.options.unknownHandler||H_)(o,e,t)},options:n,patch:O_,wrap:P_};return N_(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?a:r,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),a=n.one(e,void 0),r=function(e){const t="string"===typeof e.o
2ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||p_,a=e.options.footnoteBackLabel||h_,r=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const r=e.footnoteById.get(e.footnoteOrder[l]);if(!r)continue;const i=e.all(r),s=String(r.identifier).toUpperCase(),c=m_(s.toLowerCase());let d=0;const u=[],m=e.footnoteCounts.get(s);for(;void 0!==m&&++d<=m;){u.length>0&&u.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,d);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(l,d),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...u)}else i.push(...u);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(r,h),o.push(h)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:h(h({},u_(s)),{},{id:"footnote-label"}),children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
2,{type:"text",value:"\n"}]}}(n),i=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return r&&i.children.push({type:"text",value:"\n"},r),i}function I_(e,t){return e&&"run"in e?async function(n,a){const r=T_(n,h({file:a},t));await e.run(r,a)}:function(n,a){return T_(n,h({file:a},e||t))}}function Z_(e){if(e)throw e}var B_=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},o=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,a,r,i,d,u=arguments[0],m=1,p=arguments.length,h=!1;for("boolean"===typeof u&&(h=u,u=arguments[1]||{},m=2),(null==u||"object"!==typeof u&&"function"!==typeof u)&&(u={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)a=c(u,n),u!==(r=c(t,n))&&(h&&r&&(o(r)||(i=s(r)))?(i?(i=!1,d=a&&s(a)?a:[]):d=a&&o(a)?a:{},l(u,{name:n,newValue:e(h,d,r)})):"undefined"!==typeof r&&l(u,{name:n,newValue:r}));return u}});function V_(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function z_(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];let r=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(a){const s=e[++r];let o=-1;if(a)i(a);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];for(;++o<n.length;)null!==c[o]&&void 0!==c[o]||(c[o]=n[o]);n=c,s?function(e,t){let n;return r;function r(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const l=e.length>r.length;let c;l&&r.push(i);try{c=e.apply(this,r)}catch(a){if(l&&n)throw a;return i(a)}l||(c&&c.then&&"function"===typeof c.then?c.then(s,i):c instanceof Error?i(c):s(c))}function i(e){if(!n){n=!0;for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];t(e,...r)}}function s(e){i(null,e)}}(s,t)(...c):i(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const q_={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');U_(e);let n,a=0,r=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){a=i+1;break}}else r<0&&(n=!0,r=i+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){a=i+1;break}}else s<0&&(n=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));a===r?r=s:r<0&&(r=e.length);return e.slice(a,r)},dirname:function(e){if(U_(e),0===e.length)return".";let t,n=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){n=a;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){U_(e);let t,n=e.length,a=-1,r=0,i=-1,s=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)a<0&&(t=!0,a=n+1),46===o?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){r=n+1;break}}if(i<0||a<0||0===s||1===s&&i===a-1&&i===r+1)return"";return e.slice(i,a)},join:function(){let e,t=-1;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];for(;++t<a.length;)U_(a[t]),a[t]&&(e=void 0===e?a[t]:e+"/"+a[t]);return void 0===e?".":function(e){U_(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,a,r="",i=0,s=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===o);else if(s!==l-1&&2===o){if(r.length<2||2!==i||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2))if(r.length>2){if(a=r.lastIndexOf("/"),a!==r.length-1){a<0?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),s=l,o=0;continue}}else if(r.length>0){r="",i=0,s=l,o=0;continue}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,l):r=e.slice(s+1,l),i=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return r}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function U_(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W_={cwd:function(){return"/"}};function Y_(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function K_(e){if("string"===typeof e)e=new URL(e);else if(!Y_(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const G_=["history","path","basename","stem","extname","dirname"];class $_{constructor(e){let t;t=e?Y_(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":W_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,a=-1;for(;++a<G_.length;){const e=G_[a];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)G_.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?q_.basename(this.path):void 0}
2set basename(e){X_(e,"basename"),Q_(e,"basename"),this.path=q_.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?q_.dirname(this.path):void 0}set dirname(e){J_(this.basename,"dirname"),this.path=q_.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?q_.extname(this.path):void 0}set extname(e){if(Q_(e,"extname"),J_(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=q_.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Y_(e)&&(e=K_(e)),X_(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?q_.basename(this.path,this.extname):void 0}set stem(e){X_(e,"stem"),Q_(e,"stem"),this.path=q_.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const a=this.message(e,t,n);throw a.fatal=!0,a}info(e,t,n){const a=this.message(e,t,n);return a.fatal=void 0,a}message(e,t,n){const a=new zk(e,t,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Q_(e,t){if(e&&e.includes(q_.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+q_.sep+"`")}function X_(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function J_(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const eC=function(e){const t=this.constructor.prototype,n=t[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,t),a},tC={}.hasOwnProperty;class nC extends eC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=z_()}copy(){const e=new nC;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(B_(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(sC("data",this.frozen),this.namespace[e]=t,this):tC.call(this.namespace,e)&&this.namespace[e]||void 0:e?(sC("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const t=qe(this.attachers[this.freezeIndex]),n=t[0],a=Ze(t).slice(1);if(!1===a[0])continue;!0===a[0]&&(a[0]=void 0);const r=n.call(e,...a);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=cC(e),n=this.parser||this.Parser;return rC("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),rC("process",this.parser||this.Parser),iC("process",this.compiler||this.Compiler),t?a(void 0,t):new Promise(a);function a(a,r){const i=cC(e),s=n.parse(i);function o(e,n){e||!n?r(e):a?a(n):t(void 0,n)}n.run(s,i,function(e,t,a){if(e||!t||!a)return o(e);const r=t,i=n.stringify(r,a);!function(e){return"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?a.result=i:a.value=i,o(e,a)})}}processSync(e){let t,n=!1;return this.freeze(),rC("processSync",this.parser||this.Parser),iC("processSync",this.compiler||this.Compiler),this.process(e,function(e,a){n=!0,Z_(e),t=a}),lC("processSync","process",n),t}run(e,t,n){oC(e),this.freeze();const a=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?r(void 0,n):new Promise(r);function r(r,i){const s=cC(t);a.run(e,s,function(t,a,s){const o=a||e;t?i(t):r?r(o):n(void 0,o,s)})}}runSync(e,t){let n,a=!1;return this.run(e,t,function(e,t){Z_(e),n=t,a=!0}),lC("runSync","run",a),n}stringify(e,t){this.freeze();const n=cC(t),a=this.compiler||this.Compiler;return iC("stringify",a),oC(e),a(e,n)}use(e){const t=this.attachers,n=this.namespace;if(sC("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];c(e,r)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):o(e)}return this;function s(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const t=qe(e);c(t[0],Ze(t).slice(1))}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=B_(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function c(e,n){let a=-1,r=-1;for(;++a<t.length;)if(t[a][0]===e){r=a;break}if(-1===r)t.push([e,...n]);else if(n.length>0){let a=qe(n),i=a[0],s=Ze(a).slice(1);const o=t[r][1];V_(o)&&V_(i)&&(i=B_(!0,o,i)),t[r]=[e,i,...s]}}}}const aC=(new nC).freeze();function rC(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function iC(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function sC(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function oC(e){if(!V_(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cC(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new $_(e)}const dC=[],uC={allowDangerousHtml:!0},mC=/^(https?|ircs?|mailto|xmpp)$/i,pC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function hC(e){const t=fC(e),n=xC(e);return gC(t.runSync(t.parse(n),n),e)}function fC(e){const t=e.rehypePlugins||dC,n=e.remarkPlugins||dC,a=e.remarkRehypeOptions?h(h({},e.remarkRehypeOptions),uC):uC;return aC().use(t_).use(n).use(I_,a).use(t)}function xC(e){const t=e.children||"",n=new $_;return"string"===typeof t&&(n.value=t),n}function gC(e,t){const n=t.allowedElements,a=t.allowElement,r=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||vC;for(const c of pC)Object.hasOwn(t,c.from)&&GA((c.from,c.to&&c.to,c.id));return N_(e,function(e,t,r){if("raw"===e.type&&r&&"number"===typeof t)return s?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in sE)if(Object.hasOwn(sE,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],a=sE[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&a&&"number"===typeof t&&(s=!a(e,t,r)),s&&r&&"number"===typeof t)return o&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),$k(e,{Fragment:Pe.Fragment,components:r,ignoreInvalidStyle:!0,jsx:Pe.jsx,jsxs:Pe.jsxs,passKeys:!0,passNode:!0})}function vC(e){const t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return-1===t||-1!==r&&t>r||-1!==n&&t>n||-1!==a&&t>a||mC.test(e.slice(0,t))?e:""}const bC=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),o.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),yC=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:bC})));yC.displayName="CaretRightIcon";const jC=yC,wC="#041C3A",NC="#0F4FA8",AC="#F3F4F6",kC="#6B7280",EC="#374151",DC="#E5E7EB",_C={h3:e=>(0,Pe.jsx)("h3",h({className:"font-brand font-bold text-xl tracking-tight mt-8 mb-3",style:{color:wC}},e)),h4:e=>(0,Pe.jsx)("h4",h({className:"font-brand font-semibold text-base mt-5 mb-2",style:{color:wC}},e)),p:e=>(0,Pe.jsx)("p",h({className:"text-[15px] leading-relaxed my-4 font-brand",style:{color:EC}},e)),ul:e=>(0,Pe.jsx)("ul",h({className:"list-disc pl-6 my-4 space-y-2 text-[15px] font-brand",style:{color:EC}},e)),ol:e=>(0,Pe.jsx)("ol",h({className:"list-decimal pl-6 my-4 space-y-2 text-[15px] font-brand",style:{color:EC}},e)),li:e=>(0,Pe.jsx)("li",h({className:"leading-relaxed"},e)),code:e=>(0,Pe.jsx)("code",h({className:"px-1.5 py-0.5 rounded text-[13px] font-mono",style:{background:"#F3F4F6",color:wC}},e)),strong:e=>(0,Pe.jsx)("strong",h({style:{color:wC,fontWeight:600}},e)),a:e=>(0,Pe.jsx)("a",h({className:"underline",style:{color:NC}},e))};function CC(){return(0,Pe.jsx)("header",{className:"sticky top-0 z-40 bg-white/85 backdrop-blur border-b",style:{borderColor:AC},children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 h-16 flex items-center justify-between",children:[(0,Pe.jsx)(ls,{to:"/",size:26}),(0,Pe.jsxs)("nav",{className:"hidden md:flex items-center gap-8 text-sm font-brand",style:{color:EC},children:[(0,Pe.jsx)(Yn,{to:"/",className:"hover:text-[#041C3A]","data-testid":"help-nav-home",children:"Home"}),(0,Pe.jsx)(Yn,{to:"/help",className:"hover:text-[#041C3A] font-medium","data-testid":"help-nav-help",style:{color:wC},children:"Help"})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Yn,{to:"/login",className:"hidden sm:inline text-sm font-brand hover:text-[#041C3A]",style:{color:EC},"data-testid":"help-nav-signin",children:"Sign in"}),(0,Pe.jsx)(Yn,{to:"/#signup",children:(0,Pe.jsx)(Lo,{className:"text-white font-brand font-medium px-5",style:{background:wC,borderRadius:12},"data-testid":"help-nav-cta",children:"Sign Up"})})]})]})})}function FC(){return(0,Pe.jsx)("footer",{className:"border-t mt-16",style:{borderColor:AC,background:"#F9FAFB"},children:(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 lg:px-8 py-8 flex flex-wrap items-center justify-between gap-3 text-xs font-brand",style:{color:kC},children:[(0,Pe.jsxs)("div",{children:["Can't find what you need? Email ",(0,Pe.jsx)("a",{href:"mailto:[email protected]?subject=AROS%20help",className:"underline hover:text-[#041C3A]","data-testid":"help-footer-email",children:"[email protected]"})," \u2014 we reply within one business day."]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Pe.jsx)(Yn,{to:"/",className:"hover:text-[#041C3A]","data-testid":"help-footer-home",children:"Home"}),(0,Pe.jsx)(Yn,{to:"/login",className:"hover:text-[#041C3A]","data-testid":"help-footer-signin",children:"Sign in"})]})]})})}function SC(){const e=qt().slug;return(0,Pe.jsxs)(Pe.Fragment,{children:[e?(0,Pe.jsx)(RC,{slug:e}):(0,Pe.jsx)(MC,{}),(0,Pe.jsx)(Sx,{surface:"help"})]})}function MC(){Uy({title:"Help Center \xb7 AROS",description:"Guides, walkthroughs, and quick answers for AROS \u2014 from your first 5 minutes to running your first hire.",canonical:"/help",robots:"index,follow"});const e=Ue((0,o.useState)(""),2),t=e[0],n=e[1],a=(0,o.useMemo)(()=>t.trim()?ix(t,8):[],[t]);return(0,Pe.jsxs)("div",{className:"min-h-screen bg-white","data-testid":"help-page",children:[(0,Pe.jsx)(CC,{}),(0,Pe.jsx)("section",{className:"border-b",style:{borderColor:AC,background:"linear-gradient(180deg, #FFFFFF, #F7F9FF)"},children:(0,Pe.jsxs)("div",{className:"max-w-4xl mx-auto px-6 lg:px-8 py-16 lg:py-20 text-center",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:NC},children:"Help center"}),(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-5xl sm:text-6xl tracking-[-0.025em] mt-3",style:{color:wC},children:"How can we help?"}),(0,Pe.jsxs)("p",{className:"mt-5 text-lg font-brand max-w-2xl mx-auto",style:{color:EC},children:[ex.length," articles covering everything from your first 5 minutes to running your first hire. Search, or browse by category."]}),(0,Pe.jsxs)("div",{className:"mt-9 max-w-2xl mx-auto relative",children:[(0,Pe.jsx)(Eg,{size:18,weight:"bold",className:"absolute left-4 top-1/2 -translate-y-1/2 pointer-events-none",style:{color:kC}}),(0,Pe.jsx)(Io,{value:t,onChange:e=>n(e.target.value),placeholder:"Try: 'hiring momentum', 'setup link expired', 'candidate emails'\u2026",className:"h-12 pl-11 pr-4 text-[15px] font-brand bg-white",style:{borderColor:DC,borderRadius:12,boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},"data-testid":"help-search-input",autoFocus:!0})]}),t.trim()&&(0,Pe.jsx)("div",{className:"mt-6 max-w-2xl mx-auto text-left","data-testid":"help-search-results",children:0===a.length?(0,Pe.jsxs)("div",{className:"p-5 rounded-xl text-sm font-brand",style:{background:"#FFFFFF",border:"1px solid ".concat(DC),color:EC},children:["No matches. Try simpler keywords, or email"," ",(0,Pe.jsx)("a",{href:"mailto:[email protected]?subject=AROS%20help%20%E2%80%94%20".concat(encodeURIComponent(t)),className:"underline","data-testid":"help-search-empty-email",children:"[email protected]"}),"."]}):(0,Pe.jsx)("ul",{className:"space-y-2",children:a.map(e=>(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/help/".concat(e.slug),className:"block p-4 rounded-xl hover:bg-[#F7F9FF] transition-colors",style:{background:"#FFFFFF",border:"1px solid ".concat(DC)},"data-testid":"help-search-result-".concat(e.slug),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono",style:{color:kC},children:OC(e.category)}),(0,Pe.jsx)("div",{className:"font-brand font-semibold mt-1",style:{color:wC},children:e.title}),(0,Pe.jsx)("div",{className:"text-sm font-brand mt-1",style:{color:EC},children:e.summary})]})},e.slug))})})]})}),(0,Pe.jsx)("section",{className:"max-w-6xl mx-auto px-6 lg:px-8 py-14",children:(0,Pe.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6","data-testid":"help-categories",children:Jf.map(e=>{const t=(n=e.id,ex.filter(e=>e.category===n));var n;return(0,Pe.jsxs)("div",{className:"p-6",style:{background:"#FFFFFF",border:"1px solid ".concat(DC),borderRadius:16,boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},"data-testid":"help-category-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:NC},children:[(0,Pe.jsx)(yx,{size:13,weight:"duotone"})," ",e.title]}),(0,Pe.jsx)("p",{className:"mt-3 text-sm font-brand",style:{color:EC},children:e.description}),(0,Pe.jsx)("ul",{className:"mt-5 space-y-2.5",children:t.map(e=>(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/help/".concat(e.slug),className:"flex items-center justify-between gap-3 group text-[14px] font-brand",style:{color:wC},"data-testid":"help-link-".concat(e.slug),children:[(0,Pe.jsx)("span",{className:"group-hover:underline",children:e.title}),(0,Pe.jsx)(jC,{size:12,weight:"bold",className:"opacity-50 group-hover:opacity-100"})]})},e.slug))})]},e.id)})})}),(0,Pe.jsx)(HC,{}),(0,Pe.jsx)(FC,{})]})}function OC(e){var t;return(null===(t=Jf.find(t=>
2t.id===e))||void 0===t?void 0:t.title)||e}function RC(e){let t=e.slug;const n=function(e){return ex.find(t=>t.slug===e)||null}(t);Uy({title:n?"".concat(n.title," \xb7 AROS Help"):"Article not found \xb7 AROS Help",description:(null===n||void 0===n?void 0:n.summary)||((null===n||void 0===n?void 0:n.body)||"").slice(0,160)||"AROS help article.",canonical:"/help/".concat(t),robots:n?"index,follow":"noindex,nofollow"});zt();if((0,o.useEffect)(()=>{window.scrollTo({top:0,behavior:"instant"})},[t]),!n)return(0,Pe.jsxs)("div",{className:"min-h-screen bg-white","data-testid":"help-article-not-found",children:[(0,Pe.jsx)(CC,{}),(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-24 text-center",children:[(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-3xl tracking-tight",style:{color:wC},children:"Article not found"}),(0,Pe.jsx)("p",{className:"mt-3 text-[15px] font-brand",style:{color:EC},children:"This help article doesn't exist. It may have been renamed."}),(0,Pe.jsx)("div",{className:"mt-6",children:(0,Pe.jsx)(Yn,{to:"/help",children:(0,Pe.jsxs)(Lo,{style:{background:wC,borderRadius:10},className:"text-white","data-testid":"help-back-to-index",children:[(0,Pe.jsx)(nw,{size:14,className:"mr-1"})," Back to Help"]})})})]}),(0,Pe.jsx)(FC,{})]});const a=ix(n.title+" "+(n.keywords||[]).join(" "),4).filter(e=>e.slug!==n.slug).slice(0,3);return(0,Pe.jsxs)("div",{className:"min-h-screen bg-white","data-testid":"help-article-".concat(n.slug),children:[(0,Pe.jsx)(CC,{}),(0,Pe.jsxs)("article",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-12 lg:py-16",children:[(0,Pe.jsxs)(Yn,{to:"/help",className:"inline-flex items-center gap-1.5 text-sm font-brand hover:underline",style:{color:NC},"data-testid":"help-article-back",children:[(0,Pe.jsx)(nw,{size:13})," All articles"]}),(0,Pe.jsx)("div",{className:"mt-6 text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:NC},children:OC(n.category)}),(0,Pe.jsx)("h1",{className:"font-brand font-extrabold text-4xl sm:text-5xl tracking-[-0.025em] mt-2",style:{color:wC},children:n.title}),(0,Pe.jsx)("p",{className:"mt-4 text-lg font-brand leading-relaxed",style:{color:EC},children:n.summary}),(0,Pe.jsx)("div",{className:"mt-10 prose prose-slate max-w-none font-brand",style:{"--tw-prose-headings":wC,"--tw-prose-body":EC},"data-testid":"help-article-body",children:(0,Pe.jsx)(hC,{components:_C,children:n.body_md})}),a.length>0&&(0,Pe.jsxs)("div",{className:"mt-14 pt-8 border-t",style:{borderColor:DC},"data-testid":"help-article-related",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:NC},children:"Related"}),(0,Pe.jsx)("ul",{className:"mt-3 space-y-2",children:a.map(e=>(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/help/".concat(e.slug),className:"inline-flex items-center gap-2 text-[15px] font-brand hover:underline",style:{color:wC},"data-testid":"help-article-related-".concat(e.slug),children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",style:{color:NC}})," ",e.title]})},e.slug))})]}),(0,Pe.jsxs)("div",{className:"mt-12 p-6 flex flex-wrap items-center justify-between gap-4",style:{background:"#F9FAFB",border:"1px solid ".concat(DC),borderRadius:14},children:[(0,Pe.jsx)("div",{className:"text-sm font-brand",style:{color:EC},children:"Didn't solve your problem? Reply to any AROS email or write directly."}),(0,Pe.jsx)("a",{href:"mailto:[email protected]?subject=AROS%20help%20%E2%80%94%20".concat(encodeURIComponent(n.title)),"data-testid":"help-article-email",children:(0,Pe.jsxs)(Lo,{className:"text-white",style:{background:wC,borderRadius:10},children:[(0,Pe.jsx)(Nx,{size:14,className:"mr-2",weight:"bold"})," Email us"]})})]})]}),(0,Pe.jsx)(FC,{})]})}function HC(){return(0,Pe.jsx)("section",{className:"max-w-6xl mx-auto px-6 lg:px-8 pb-16",children:(0,Pe.jsxs)("div",{className:"p-8 sm:p-10 text-white",style:{background:wC,borderRadius:20,boxShadow:"0 24px 80px -24px rgba(4,28,58,0.45)"},"data-testid":"help-closing",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#7BB5FF"},children:"Still stuck?"}),(0,Pe.jsx)("h2",{className:"font-brand font-extrabold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",children:"Reach a human in one business day."}),(0,Pe.jsx)("p",{className:"mt-3 text-[15px] font-brand max-w-xl",style:{color:"rgba(255,255,255,0.78)"},children:"We don't have a 24/7 support queue. We have a small team that reads every email and responds personally \u2014 usually faster than one business day."}),(0,Pe.jsx)("div",{className:"mt-7 flex flex-wrap gap-3",children:(0,Pe.jsx)("a",{href:"mailto:[email protected]?subject=AROS%20help","data-testid":"help-closing-email",children:(0,Pe.jsxs)(Lo,{className:"bg-white text-[#041C3A] hover:bg-[#5BE3EF] font-brand font-medium px-6 h-12",style:{borderRadius:12},children:["Email [email protected] ",(0,Pe.jsx)(eg,{size:14,className:"ml-2",weight:"bold"})]})})})]})})}const PC=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.66,86l-96-64a12,12,0,0,0-13.32,0l-96,64A12,12,0,0,0,20,96V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V96A12,12,0,0,0,230.66,86ZM89.81,152,44,184.3
21v-65ZM114.36,164h27.28L187,196H69.05ZM166.19,152,212,119.29v65ZM128,46.42l74.86,49.91L141.61,140H114.39L53.14,96.33Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,96l-78.55,56h-34.9L32,96l96-64Z",opacity:"0.2"}),o.createElement("path",{d:"M228.44,89.34l-96-64a8,8,0,0,0-8.88,0l-96,64A8,8,0,0,0,24,96V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V96A8,8,0,0,0,228.44,89.34ZM96.72,152,40,192V111.53Zm16.37,8h29.82l56.63,40H56.46Zm46.19-8L216,111.53V192ZM128,41.61l81.91,54.61-67,47.78H113.11l-67-47.78Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.44,89.34l-96-64a8,8,0,0,0-8.88,0l-96,64A8,8,0,0,0,24,96V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V96A8,8,0,0,0,228.44,89.34ZM96.72,152,40,192V111.53Zm16.37,8h29.82l56.63,40H56.46Zm46.19-8L216,111.53V192Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.33,91l-96-64a6,6,0,0,0-6.66,0l-96,64A6,6,0,0,0,26,96V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V96A6,6,0,0,0,227.33,91ZM100.18,152,38,195.9V107.65Zm12.27,6h31.1l62.29,44H50.16Zm43.37-6L218,107.65V195.9ZM128,39.21l85.43,57L143.53,146H112.47L42.57,96.17Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.44,89.34l-96-64a8,8,0,0,0-8.88,0l-96,64A8,8,0,0,0,24,96V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V96A8,8,0,0,0,228.44,89.34ZM96.72,152,40,192V111.53Zm16.37,8h29.82l56.63,40H56.46Zm46.19-8L216,111.53V192ZM128,41.61l81.91,54.61-67,47.78H113.11l-67-47.78Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.22,92.67l-96-64a4,4,0,0,0-4.44,0l-96,64A4,4,0,0,0,28,96V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V96A4,4,0,0,0,226.22,92.67ZM103.63,152,36,199.76v-96Zm8.19,4h32.36l68,48H43.86Zm40.55-4L220,103.76v96ZM128,36.81,217,96.11,144.17,148H111.83L39.05,96.11Z"}))]]),LC=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:PC})));LC.displayName="EnvelopeOpenIcon";const TC=LC,IC=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),o.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),ZC=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:IC})));ZC.displayName="LightningIcon";const BC=ZC,VC=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"}),o.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"}))]]),zC=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:VC})));zC.displayName="UsersThreeIcon";const qC=zC,UC=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),o.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),WC=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:UC})));WC.displayName="CheckIcon";const YC=WC,KC="#041C3A",GC="#0F4FA8",$C="#F3F4F6",QC="#6B7280",XC="#374151",JC="#E5E7EB",eF=[{icon:TC,title:"Automatic candidate acknowledgements",body:"Every application gets a real reply within minutes \u2014 no candidate goes silent."},{icon:iy,title:"Mandatory closure communications",body:"Rejections can't ship without a respectful closure email. Built in by default."},{icon:BC,title:"Hiring momentum",body:"A next-best-action queue that tells recruiters what to do next, not a kanban board to manage."},{icon:qC,title:"Hiring Manager Share Links",body:"Send a secure link to a hiring manager. They review and decide without an AROS account."},{icon:ux,title:"Reviewing applicants",body:"Plain-English evidence buckets (Strong fit \xb7 Worth interviewing \xb7 Worth a second look \xb7 Limited fit) with the reasoning attached. You stay the decision-maker."}];function tF(){ta(qt());const e=Ue(Xn(),1)[0].get("src"),t=e&&/^[a-z0-9_-]{1,40}$/.test(e)?e:"linkedin",n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{n.current||(n.current=!0,Qi.post("/acquisition/visit",{source:t,page:window.location.pathname,referrer:"undefined"!==typeof document?document.referrer.slice(0,400):""}).catch(()=>{}))},[t]),(0,Pe.jsxs)("div",{className:"min-h-screen bg-white","data-testid":"linkedin-landing-page",children:[(0,Pe.jsx)(nF,{}),(0,Pe.jsx)(aF,{channel:t}),(0,Pe.jsx)(rF,{}),(0,Pe.jsx)(iF,{}),(0,Pe.jsx)(sF,{channel:t}),(0,Pe.jsx)(lF,{}),(0,Pe.jsx)(Sx,{surface:"landing-".concat(t)})]})}function nF(){return(0,Pe.jsx)("header",{className:"border-b",style:{borderColor:$C,background:"#fff"},children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto px-5 sm:px-8 h-14 flex items-center justify-between",children:[(0,Pe.jsx)(ls,{to:"/",size:24}),(0,Pe.jsxs)("div",{className:"flex items-center gap-4 text-sm font-brand",style:{color:XC},children:[(0,Pe.jsx)(Yn,{to:"/help",className:"hover:text-[#041C3A]","data-testid":"linkedin-nav-help",children:"Help"}),(0,Pe.jsx)(Yn,{to:"/login",className:"hover:text-[#041C3A]","data-testid":"linkedin-nav-signin",children:"Sign in"})]})]})})}function aF(){return(0,Pe.jsxs)("section",{className:"relative overflow-hidden border-b",style:{borderColor:$C,background:"linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%)"},"data-testid":"linkedin-hero",children:[(0,Pe.jsx)("div",{"aria-hidden":!0,className:"absolute -top-32 left-1/2 -translate-x-1/2 w-[820px] h-[820px] rounded-full",style:{background:"radial-gradient(closest-side, ".concat("#2E8BFF","22, transparent 70%)")}}),(0,Pe.jsxs)("div",{className:"relative max-w-5xl mx-auto px-5 sm:px-8 py-14 sm:py-20 text-center",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs font-brand",style:{border:"1px solid ".concat(JC),background:"#FFFFFF",color:XC},children:[(0,Pe.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:GC}}),"From a LinkedIn introduction \u2014 welcome"]}),(0,Pe.jsxs)("h1",{className:"font-brand font-extrabold text-4xl sm:text-5xl lg:text-6xl leading-[1.05] tracking-[-0.025em] mt-5",style:{color:KC},children:["Hire smarter. Decide faster.",(0,Pe.jsx)("br",{}),(0,Pe.jsx)("span",{style:{color:GC},children:"Create better candidate experiences."})]}),(0,Pe.jsx)("p",{className:"mt-5 text-base sm:text-lg max-w-2xl mx-auto leading-relaxed font-brand",style:{color:XC},children:"Upload resumes from anywhere, identify the strongest candidates, stay organized throughout the hiring process, and ensure every candidate receives a clear outcome."}),(0,Pe.jsx)("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:(0,Pe.jsx)("a",{href:"#signup",children:(0,Pe.jsxs)(Lo,{size:"lg",className:"text-white font-brand font-medium px-6 h-12 text-base transition-all hover:-translate-y-0.5",style:{background:KC,borderRadius:12},"data-testid":"linkedin-hero-cta-primary",children:["Sign Up ",(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"ml-1"})]})})}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-sm font-brand",style:{color:XC},children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(YC,{size:14,weight:"bold",style:{color:GC}})," Setup in under 2 minutes"]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(YC,{size:14,weight:"bold",style:{color:GC}})," Built for owners and recruiters"]}
2),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(YC,{size:14,weight:"bold",style:{color:GC}})," Candidate trust by default"]})]})]})]})}function rF(){return(0,Pe.jsx)("section",{className:"border-b bg-white",style:{borderColor:$C},"data-testid":"linkedin-audiences",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto px-5 sm:px-8 py-14 sm:py-16",children:[(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:GC},children:"Who AROS is for"}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:KC},children:"Two production experiences. One promise of follow-through."})]}),(0,Pe.jsx)("div",{className:"mt-10 grid sm:grid-cols-2 gap-5",children:[{icon:Cg,label:"Owners",line:"Hire without spending hours managing applicants.",detail:"Three nav items. Plain-English candidate labels. 30 minutes a week."},{icon:Eg,label:"Recruiters",line:"Keep candidates moving and decisions on track.",detail:"Hiring momentum, decision packets, and hiring manager share links."}].map(e=>(0,Pe.jsxs)("div",{className:"p-7",style:{background:"#FFFFFF",border:"1px solid ".concat(JC),borderRadius:16,boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},"data-testid":"linkedin-audience-".concat(e.label.toLowerCase()),children:[(0,Pe.jsx)("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center",style:{background:"#EEF4FF",color:GC,border:"1px solid ".concat(JC)},children:(0,Pe.jsx)(e.icon,{size:20,weight:"duotone"})}),(0,Pe.jsx)("div",{className:"mt-5 text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:GC},children:e.label}),(0,Pe.jsx)("div",{className:"mt-1 font-brand font-bold text-xl tracking-[-0.022em]",style:{color:KC},children:e.line}),(0,Pe.jsx)("p",{className:"mt-2 text-[15px] leading-relaxed font-brand",style:{color:XC},children:e.detail})]},e.label))})]})})}function iF(){return(0,Pe.jsx)("section",{className:"border-b",style:{borderColor:$C,background:"#F9FAFB"},"data-testid":"linkedin-differentiators",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto px-5 sm:px-8 py-14 sm:py-16",children:[(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:GC},children:"What makes AROS different"}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em] mt-3",style:{color:KC},children:"Follow-through is built in \u2014 not something you have to remember."})]}),(0,Pe.jsx)("ul",{className:"mt-10 grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:eF.map(e=>(0,Pe.jsxs)("li",{className:"p-5",style:{background:"#FFFFFF",border:"1px solid ".concat(JC),borderRadius:14,boxShadow:"0 4px 20px rgba(0,0,0,0.03)"},"data-testid":"linkedin-diff-".concat(e.title.toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,30)),children:[(0,Pe.jsx)("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center",style:{background:"#EEF4FF",color:GC,border:"1px solid ".concat(JC)},children:(0,Pe.jsx)(e.icon,{size:18,weight:"duotone"})}),(0,Pe.jsx)("div",{className:"mt-4 font-brand font-semibold text-[15px] tracking-tight",style:{color:KC},children:e.title}),(0,Pe.jsx)("p",{className:"mt-1.5 text-[14px] leading-relaxed font-brand",style:{color:XC},children:e.body})]},e.title))})]})})}function sF(e){let t=e.channel;const n=Ue((0,o.useState)({full_name:"",company_name:"",email:"",password:"",hiring_mode:"owner"}),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!1),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!1),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],f=m[1],x=e=>t=>r(n=>h(h({},n),{},{[e]:null!==t&&void 0!==t&&t.target?t.target.value:t}));return(0,Pe.jsx)("section",{id:"request-access",className:"border-b",style:{borderColor:$C,background:KC,color:"#fff"},"data-testid":"linkedin-access-form-section",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-5 sm:px-8 py-14 sm:py-20",children:[(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#7BB5FF"},children:"Get started"}),(0,Pe.jsx)("h2",{className:"font-brand font-extrabold text-3xl sm:text-4xl tracking-[-0.025em] mt-3",children:"Start using AROS today."}),(0,Pe.jsx)("p",{className:"mt-3 text-[15px] font-brand max-w-xl mx-auto",style:{color:"rgba(255,255,255,0.75)"},children:"No sales call. Create your account and sign in immediately."})]}),(0,Pe.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),a.full_name&&a.company_name&&a.email&&a.password)if(a.password.length<10)va.error("Password must be at least 10 characters.");else if(/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(a.email))if(s){u(!0),f("");try{const e=(await Qi.post("/auth/signup",{email:a.email.trim(),full_name:a.full_name.trim(),company_name:a.company_name.trim(),password:a.password,hiring_mode:a.hiring_mode,source:t,accept_terms:!0})).data;if(null!==e&&void 0!==e&&e.access_token&&null!==e&&void 0!==e&&e.user){try{localStorage.setItem("aros_token",e.access_token),localStorage.setItem("aros_user",JSON.stringify(e.user))}catch(i){}return va.success("Account created \u2014 welcome to AROS."),void window.location.assign("/app/employer")}va.error("Account created but sign-in failed. Please sign in manually."),window.location.assign("/login")}catch(tY){var n,r;const t=(null===tY||void 0===tY||null===(n=tY.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Could not create your account. Please try again.";f("string"===typeof t?t:"Could not create your account. Please try again."),va.error("string"===typeof t?t:"Could not create your account.")}finally{u(!1)}}else va.error("Please accept the Terms of Service and Privacy Policy.");else va.error("That email address doesn't look right.");else va.error("Please fill out name, company, email, and password.")},className:"mt-9 p-6 sm:p-7",style:{background:"#FFFFFF",color:KC,borderRadius:16,boxShadow:"0 24px 80px -24px rgba(46,139,255,0.45)"},"data-testid":"linkedin-access-form",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Pe.jsx)(oF,{id:"li-name",label:"Name",required:!0,children:(0,Pe.jsx)(Io,{value:a.full_name,onChange:x("full_name"),placeholder:"Alex Recruiter","data-testid":"linkedin-form-name",autoComplete:"name"})}),(0,Pe.jsx)(oF,{id:"li-company",label:"Company",required:!0,children:(0,Pe.jsx)(Io,{value:a.company_name,onChange:x("company_name"),placeholder:"Acme, Inc.","data-testid":"linkedin-form-company",autoComplete:"organization"})}),(0,Pe.jsx)(oF,{id:"li-email",label:"Work email",required:!0,children:(0,Pe.jsx)(Io,{type:"email",value:a.email,onChange:x("email"),placeholder:"[email protected]","data-testid":"linkedin-form-email",autoComplete:"email"})}),(0,Pe.jsx)(oF,{id:"li-password",label:"Password",required:!0,children:(0,Pe.jsx)(Io,{type:"password",value:a.password,onChange:x("password"),placeholder:"At least 10 characters",autoComplete:"new-password","data-testid":"linkedin-form-password",minLength:10})}),(0,Pe.jsx)(oF,{id:"li-mode",label:"Owner or Recruiter",children:(0,Pe.jsxs)(Sf,{value:a.hiring_mode,onValueChange:e=>r(t=>h(h({},t),{},{hiring_mode:e})),children:[(0,Pe.jsx)(Of,{"data-testid":"linkedin-form-mode",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"owner",children:"I'm the owner / hiring manager"}),(0,Pe.jsx)(Lf,{value:"recruiter",children:"I'm a recruiter / TA"})]})]})})]}),(0,Pe.jsxs)("label",{className:"mt-6 flex items-start gap-3 cursor-pointer select-none",htmlFor:"linkedin-accept-terms",children:[(0,Pe.jsx)("input",{id:"linkedin-accept-terms",type:"checkbox",checked:s,onChange:e=>l(e.target.checked),className:"mt-1 h-4 w-4 shrink-0 rounded border-gray-300",style:{accentColor:KC},"data-testid":"linkedin-accept-terms",required:!0}),(0,Pe.jsxs)("span",{className:"text-xs font-brand",style:{color:XC},children:["I agree to the"," ",(0,Pe.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:KC},"data-testid":"linkedin-terms-link",children:"Terms of Service"})," ","and"," ",(0,Pe.jsx)("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:KC},"data-testid":"linkedin-privacy-link",children:"Privacy Policy"}),"."]})]}),(0,Pe.jsxs)("div",{className:"mt-5 flex items-center justify-between gap-4 flex-wrap",children:[(0,Pe.jsx)("p",{className:"text-xs max-w-md font-brand",style:{color:QC},children:"You'll be signed in immediately after creating your account."}),(0,Pe.jsx)(Lo,{type:"submit",size:"lg",disabled:d||!s,className:"text-white font-brand font-medium px-6 h-12 transition-all hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed",style:{background:KC,borderRadius:12},"data-testid":"linkedin-form-submit",children:d?"Creating account\u2026":(0,Pe.jsxs)(Pe.Fragment,{children:["Create Account ",(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"ml-1"})]})})]}),p&&(0,Pe.jsx)("div",{className:"mt-4 text-sm font-brand p-3 rounded-lg",style:{background:"#FEF2F2",color:"#7F1D1D",border:"1px solid #FECACA"},"data-testid":"linkedin-form-error",children:p})]})]})})}function oF(e){let t=e.id,n=e.label,a=e.required,r=e.children;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Go,{htmlFor:t,className:"text-xs font-semibold uppercase tracking-wider font-brand",style:{color:XC},children:[n,a&&(0,Pe.jsx)("span",{className:"ml-0.5",style:{color:"#B91C1C"},children:"*"})]}),(0,Pe.jsx)("div",{className:"mt-1.5",children:r})]})}function lF(){return(0,Pe.jsx)("footer",{className:"bg-white",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto px-5 sm:px-8 py-8 flex flex-wrap items-center justify-between gap-3 text-xs font-brand",style:{color:QC},children:[(0,Pe.jsxs)("div",{children:["\xa9 ",(new Date).getFullYear()," AROS \xb7 helping you hire well"]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Pe.jsx)(Yn,{to:"/",className:"hover:text-[#041C3A]","data-testid":"linkedin-footer-home",children:"Home"}),(0,Pe.jsx)(Yn,{to:"/help",className:"hover:text-[#041C3A]","data-testid":"linkedin-footer-help",children:"Help"}),(0,Pe.jsx)(Yn,{to:"/privacy",className:"hover:text-[#041C3A]","data-testid":"linkedin-footer-privacy",children:"Privacy"})]})]})})}const cF=new Set(["match_summary_viewed","review_matches_opened","match_card_opened","explanation_expanded","candidate_selected","candidate_deselected","stage_move_from_match","candidate_contact_viewed","job_intake_started","job_intake_completed","next_action_hero_clicked","job_match_badge_clicked","candidate_detail_section_viewed","job_refinement_started","job_refinement_completed","job_refinement_skipped"]);let dF=[],uF=null;async function mF(){if(0===dF.length)return;const e=dF.splice(0,dF.length);try{await Qi.post("/analytics/recruiter-events",{events:e})}catch(t){}}function pF(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cF.has(e)&&(dF.push({event_type:e,job_id:t.job_id||null,candidate_user_id:t.candidate_user_id||null,properties:t.properties||{}}),dF.length>=20?mF():uF||(uF=setTimeout(()=>{uF=null,mF()},4e3)))}"undefined"!==typeof window&&window.addEventListener("beforeunload",()=>{if(dF.length>0){const a=new Blob([JSON.stringify({events:dF})],{type:"application/json"});try{var e,t;const n="https://www.getaros.ai".replace(/\/$/,"");null===(e=(t=navigator).sendBeacon)||void 0===e||e.call(t,"".concat(n,"/api/analytics/recruiter-events"),a)}catch(n){}dF=[]}});function hF(e){return"string"===typeof e&&e.trim()?e.trim():null}function fF(e){const t=hF(e);if(!t)return null;return t.split(/\s+/)[0]||null}function xF(e){if(!e||"object"!==typeof e)return"there";const t=hF(e.preferred_name)||hF(e.first_name)||fF(e.full_name)||fF(e.name);return t?function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}(t):"there"}function gF(e){let t=e.size,n=void 0===t?16:t,a=e.invert,r=void 0!==a&&a,i=e.className,s=void 0===i?"":i;const o=r?"#FFFFFF":"#041C3A",l=r?"#041C3A":"#FFFFFF";return(0,Pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 16 16",role:"img","aria-label":"Taylor by AROS",className:s,children:[(0,Pe.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",fill:o,stroke:o}),(0,Pe.jsx)("path",{d:"M4 5h8M8 5v7",stroke:l,strokeWidth:"1.6",strokeLinecap:"round"}),(0,Pe.jsx)("circle",{cx:"8",cy:"12.5",r:"0.9",fill:l})]})}function vF(e){let t=e.variant,n=void 0===t?"sentence":t,a=e.invert,r=void 0!==a&&a,i=e.testId;const s="eyebrow"===n,o=s?"font-display font-semibold text-[11px] tracking-[0.22em] uppercase":"font-display font-semibold text-[13px] tracking-[0.02em]",l=r?"text-white":"text-[#041C3A]";return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2 ".concat(l),"data-testid":i,"aria-label":"Taylor by AROS",children:[(0,Pe.jsx)(gF,{size:s?16:20,invert:r}),(0,Pe.jsx)("span",{className:o,children:"Taylor by AROS"})]})}function bF(){var e;const t=zt(),n=Ue((0,o.useState)({loading:!0,payload:null}),2),a=n[0],r=n[1];(0,o.useEffect)(()=>{let e=!0;return Qi.get("/taylor/onboarding-welcome").then(t=>{e&&r({loading:!1,payload:t.data||null})}).catch(()=>{e&&r({loading:!1,payload:null})}),()=>{e=!1}},[]);const i=async()=>{r(e=>h(h({},e),{},{payload:h(h({},e.payload||{}),{},{visible:!1})}
2));try{await Qi.post("/taylor/onboarding-welcome/dismiss")}catch(e){}};if(a.loading)return null;const s=a.payload;return s&&s.visible?(0,Pe.jsxs)("section",{"data-testid":"taylor-onboarding-welcome","data-taylor-voice":"taylor","data-surface-id":s.surface_id,className:"taylor-mount rounded-xl border border-[#E5E7EB] bg-white p-6 mb-6 relative",style:{minHeight:140},children:[(0,Pe.jsx)("button",{onClick:i,"aria-label":"Dismiss Taylor welcome",className:"absolute top-4 right-4 opacity-60 hover:opacity-100 transition-opacity","data-testid":"taylor-onboarding-dismiss",children:(0,Pe.jsx)($f,{size:16})}),(0,Pe.jsx)(vF,{variant:"sentence",testId:"taylor-onboarding-byline"}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-2xl mt-3","data-testid":"taylor-onboarding-heading",children:s.heading}),(0,Pe.jsx)("div",{className:"mt-2 text-sm text-slate-700 max-w-2xl space-y-1.5",children:(s.body||[]).map((e,t)=>(0,Pe.jsx)("p",{"data-testid":"taylor-onboarding-body-".concat(t),children:e},t))}),(0,Pe.jsx)("div",{className:"mt-5",children:(0,Pe.jsx)(Lo,{onClick:()=>{var e,n;i(),t((null===(e=a.payload)||void 0===e||null===(n=e.cta)||void 0===n?void 0:n.href)||"/app/employer")},"data-testid":"taylor-onboarding-cta",className:"bg-[#041C3A] hover:bg-[#0F4FA8] text-white rounded-md",children:(null===(e=s.cta)||void 0===e?void 0:e.label)||"See today's work"})})]}):null}const yF={handled:"".concat(is," handled"),inProgress:"".concat(is," is handling"),needsYou:"Needs you",recommended:"".concat(is," recommends"),issues:"".concat(is," needs your help")},jF={handled:"Work that has actually completed.",inProgress:"Work underway or scheduled.",needsYou:"".concat(is," could not safely proceed without your call."),recommended:"".concat(is," reviewed your applicants and picked the moments worth your time."),issues:"Things ".concat(is," could not complete safely. Each one has a recovery step.")},wF={needsYou:"Nothing needs you right now. ".concat(is," is watching your applicants and will surface anything worth your time."),handled:"Nothing tracked in the last 24 hours.",issues:"",today:"Everyone is up to date."},NF={card_invite:{verb:"Invite to interview",tone:"primary"},card_ask_for_info:{verb:"Ask for more info",tone:"primary"},card_review:{verb:"Review",tone:"primary"},card_pass:{verb:"Pass",tone:"secondary"},card_hire:{verb:"Hire",tone:"primary"},card_cross_role:{verb:"Move to another role",tone:"secondary"},role_closed_close_the_loop_batch:{verb:"Send updates now",tone:"primary"},nudge_stale_app:{verb:"Take a look",tone:"primary"},issue_email_bounce:{verb:"Try a different address",tone:"issue"},issue_ai_unavailable:{verb:"Try again",tone:"issue"},issue_duplicate_candidate:{verb:"Merge applications",tone:"issue"},issue_parse_failed:{verb:"Ask for a different r\xe9sum\xe9",tone:"issue"}};function AF(e){if(!e)return"";const t=new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return"Ready to send at ".concat(t,". Cancel any time before then.")}const kF={send:"".concat(is," could not send this message. You can try again, or open details for the technical trace."),execute:"Something prevented ".concat(is," from finishing this step. You can try again."),parse:"".concat(is," could not read this r\xe9sum\xe9. You can ask the candidate for a different file."),duplicate:"".concat(is," found what looks like a duplicate. Review and merge if it is.")};function EF(e){var t,n,a;let r=e.card,i=e.onChange;const s=Ue((0,o.useState)(r.delayed_send_at?"proposed_delayed_send":"proposed_ready"),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p="issue"===r.permission_class,h=NF[r.kind]||{verb:"Do it",tone:"primary"},f=function(e){var t;return e?"issue"===e.permission_class?"".concat(rs," needs your help"):e.delayed_send_at?"Ready to send":"card_hire"===e.kind||"card_pass"===e.kind?"Your decision":"card_review"===e.kind?"".concat(rs," recommends reviewing"):"card_invite"===e.kind?"".concat(rs," recommends inviting"):"card_ask_for_info"===e.kind?"".concat(rs," needs one detail"):null!==(t=e.kind)&&void 0!==t&&t.startsWith("issue_")?"".concat(rs," needs your help"):"".concat(rs," recommends next"):""}(r);const x=p?"bg-[#B45309] text-white hover:bg-[#92400E]":"secondary"===h.tone?"bg-white text-[#0F1D2D] border border-[#0F1D2D] hover:bg-[#F2EFEA]":"bg-[#0F1D2D] text-white hover:bg-[#1A2A3F]";return(0,Pe.jsxs)("div",{className:"rounded-xl border p-5 shadow-sm bg-white",style:{borderColor:"var(--brand-slate)"},"data-testid":"next-step-card-".concat(l.replace("_","-")),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:p?"#B45309":"var(--brand-navy)"},"data-testid":"card-state-label",children:f}),(0,Pe.jsxs)("div",{className:"mt-1 text-base font-semibold",style:{color:"var(--brand-navy)"},"data-testid":"card-who",children:[(null===(t=r.payload)||void 0===t?void 0:t.candidate_name)||r.application_id,null!==(n=r.payload)&&void 0!==n&&n.role_title?(0,Pe.jsxs)("span",{className:"text-slate-500 font-normal",children:[" \xb7 ",r.payload.role_title]}):null]}),r.evidence_chips&&r.evidence_chips.length>0&&(0,Pe.jsx)("ul",{className:"mt-2 flex flex-wrap gap-2","data-testid":"card-what",children:r.evidence_chips.slice(0,3).map(e=>(0,Pe.jsx)("li",{className:"rounded-full border px-3 py-0.5 text-xs",style:{borderColor:"var(--brand-slate)",color:"var(--brand-navy)"},children:e},e))}),r.ai_reasoning&&(0,Pe.jsx)("p",{className:"mt-3 text-sm leading-relaxed",style:{color:"var(--brand-navy)"},"data-testid":"card-why",children:r.ai_reasoning}),(null===(a=r.payload)||void 0===a?void 0:a.missing_context)&&r.payload.missing_context.length>0&&(0,Pe.jsxs)("p",{className:"mt-2 text-xs",style:{color:"#B45309"},"data-testid":"card-confirm",children:["Still to confirm: ",r.payload.missing_context.slice(0,3).join(", ")
2]}),"proposed_delayed_send"===l&&(0,Pe.jsxs)("div",{className:"mt-3 flex items-center justify-between rounded-md px-3 py-2 text-xs",style:{background:"#FFC857",color:"#0F1D2D"},"data-testid":"delayed-send-strip",children:[(0,Pe.jsx)("span",{children:AF(r.delayed_send_at)}),(0,Pe.jsx)("button",{className:"ml-3 underline font-medium",onClick:async function(){const e=await async function(e){try{return await Ki.post("".concat("https://www.getaros.ai/api","/orchestrator/next-steps/").concat(e,"/cancel"),{},{withCredentials:!0})}catch(zf){var t,n;return{data:(null===zf||void 0===zf||null===(t=zf.response)||void 0===t?void 0:t.data)||{error:"unknown"},status:null===zf||void 0===zf||null===(n=zf.response)||void 0===n?void 0:n.status}}}(r.id),t=(null===e||void 0===e?void 0:e.data)||{};t.ok?i&&i():"cancel_window_closed"===t.error?m({kind:"corrective",message:"This message has already been sent. It cannot be cancelled, but you can:",actions:t.corrective_actions||[]}):m({kind:"error",message:t.error||kF.execute})},"data-testid":"cancel-delayed",children:"Cancel send"})]}),"executed_success"===l&&(0,Pe.jsxs)("div",{className:"mt-3 rounded-md px-3 py-2 text-xs",style:{background:"#F2EFEA",color:"#0F1D2D"},"data-testid":"executed-success-strip",children:[is," handled it."]}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,Pe.jsx)("button",{type:"button",className:"rounded-full px-4 py-2 text-sm font-medium transition-colors ".concat(x),onClick:async function(){c("executing");try{await async function(e){return Ki.post("".concat("https://www.getaros.ai/api","/orchestrator/next-steps/").concat(e,"/resolve"),{},{withCredentials:!0})}(r.id),c("executed_success"),setTimeout(()=>i&&i(),1200)}catch(zf){c("executed_failed"),m({kind:"error",message:(null===zf||void 0===zf?void 0:zf.message)||kF.execute})}},disabled:"executing"===l||"executed_success"===l,"data-testid":"card-primary-action",children:"executing"===l?"Working\u2026":"executed_success"===l?"Done":h.verb}),!p&&"executed_success"!==l&&(0,Pe.jsx)("button",{type:"button",className:"rounded-full border px-4 py-2 text-sm hover:bg-[#F2EFEA]",style:{borderColor:"var(--brand-slate)",color:"var(--brand-navy)"},onClick:async function(){await async function(e){return Ki.post("".concat("https://www.getaros.ai/api","/orchestrator/next-steps/").concat(e,"/snooze"),{},{withCredentials:!0})}(r.id),c("snoozed"),setTimeout(()=>i&&i(),600)},"data-testid":"card-snooze",children:"Snooze"})]}),u&&(0,Pe.jsxs)("div",{className:"mt-3 rounded-md px-3 py-2 text-sm",style:"corrective"===u.kind?{background:"#F2EFEA",borderColor:"var(--brand-slate)",border:"1px solid var(--brand-slate)",color:"var(--brand-navy)"}:{background:"#FEF2F2",borderColor:"#FCA5A5",border:"1px solid #FCA5A5",color:"#7F1D1D"},"data-testid":"card-banner",children:[(0,Pe.jsx)("div",{children:u.message}),u.actions&&u.actions.length>0&&(0,Pe.jsx)("ul",{className:"mt-2 list-disc pl-5 text-xs",children:u.actions.map(e=>(0,Pe.jsx)("li",{children:DF[e]||e},e))})]})]})}const DF={send_correction_email:"Send a correction email to the candidate.",send_reopen_message:"Send a re-open message to the candidate.",contact_candidate_again:"Contact this candidate directly."};function _F(e){let t=e.issues,n=e.onChange;return t&&0!==t.length?(0,Pe.jsxs)("section",{className:"mt-10","data-testid":"issues-feed",children:[(0,Pe.jsx)("h3",{className:"text-lg font-semibold",style:{color:"var(--brand-navy)"},children:yF.issues}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-slate-600",children:jF.issues}),(0,Pe.jsx)("div",{className:"mt-3 space-y-3",children:t.map(e=>(0,Pe.jsx)(EF,{card:e,onChange:n},e.id))})]}):null}function CF(){const e=function(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)([]),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!0),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=(0,o.useCallback)(async()=>{try{const e=await Qi.get("/orchestrator/next-steps");n(e.data.cards||[]),i(e.data.issues||[]),m(null)}catch(zf){var e,t;m({message:(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||(null===zf||void 0===zf?void 0:zf.message)||"Could not load next steps."})}finally{c(!1)}},[]);return(0,o.useEffect)(()=>{p();const e=setInterval(()=>{"visible"===document.visibilityState&&p()},1e4);return()=>clearInterval(e)},[p]),{cards:t,issues:r,loading:l,error:u,refresh:p}}(),t=e.cards,n=e.issues,a=e.loading,r=e.error,i=e.refresh;if(a)return(0,Pe.jsxs)("section",{"data-testid":"next-step-feed-loading",className:"animate-pulse",children:[(0,Pe.jsx)("div",{className:"h-6 w-72 bg-slate-100 rounded"}),(0,Pe.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,Pe.jsx)("div",{className:"h-28 bg-slate-100 rounded-xl"}),(0,Pe.jsx)("div",{className:"h-28 bg-slate-100 rounded-xl"})]})]});const s=function(e){const t=[],n=[],a=[];for(const r of e)r.delayed_send_at?n.push(r):"card_hire"!==r.kind&&"card_pass"!==r.kind&&"card_ask_for_info"!==r.kind?a.push(r):t.push(r);return{needsYou:t,ready:n,recommended:a}}(t),l=s.needsYou,c=s.ready,d=s.recommended;return(0,Pe.jsxs)("section",{"data-testid":"next-step-feed",children:[r&&(0,Pe.jsxs)("div",{className:"rounded-md border px-3 py-2 text-sm",style:{background:"#FEF2F2",borderColor:"#FCA5A5",color:"#7F1D1D"},"data-testid":"feed-error",children:[r.message," ",(0,Pe.jsx)("button",{className:"underline ml-2",onClick:i,children:"Try again"})]}),0===t.length&&!r&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"text-2xl md:text-3xl font-semibold",style:{color:"var(--brand-navy)"},children:yF.needsYou}),(0,Pe.jsx)("div",{className:"mt-4 rounded-lg border border-dashed p-6 text-sm",style:{borderColor:"var(--brand-slate)",color:"var(--brand-navy)"},"data-testid":"feed-empty",children:wF.needsYou})]}),l.length>0&&(0,Pe.jsx)(FF,{testid:"feed-section-needs-you",heading:yF.needsYou,sub:j
2F.needsYou,cards:l,onChange:i}),c.length>0&&(0,Pe.jsx)(FF,{testid:"feed-section-ready",heading:"Ready to send",sub:"".concat(jF.inProgress," Cancel any time before the send window closes."),cards:c,onChange:i}),d.length>0&&(0,Pe.jsx)(FF,{testid:"feed-section-recommended",heading:yF.recommended,sub:jF.recommended,cards:d,onChange:i}),n.length>0&&(0,Pe.jsx)(_F,{issues:n,onChange:i})]})}function FF(e){let t=e.testid,n=e.heading,a=e.sub,r=e.cards,i=e.onChange;return(0,Pe.jsxs)("section",{className:"mt-6 first:mt-0","data-testid":t,children:[(0,Pe.jsx)("h2",{className:"text-xl md:text-2xl font-semibold",style:{color:"var(--brand-navy)"},children:n}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-slate-600",children:a}),(0,Pe.jsx)("div",{className:"mt-3 space-y-3",children:r.map(e=>(0,Pe.jsx)(EF,{card:e,onChange:i},e.id))})]})}const SF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),o.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),MF=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:SF})));MF.displayName="PaperPlaneTiltIcon";const OF=MF;function RF(){var e,t,n,a;const r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!0),2),c=l[0],d=l[1];if((0,o.useEffect)(()=>{let e=!1;return Qi.get("/today/summary").then(t=>{e||s(t.data)}).catch(()=>{e||s(null)}).finally(()=>{e||d(!1)}),()=>{e=!0}},[]),c)return(0,Pe.jsxs)("div",{className:"rounded-xl border p-4 animate-pulse",style:{background:"var(--brand-sand)",borderColor:"var(--brand-slate)"},"data-testid":"handled-strip-loading",children:[(0,Pe.jsx)("div",{className:"h-3 w-40 bg-white/70 rounded"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)("div",{className:"h-14 bg-white/70 rounded-md"}),(0,Pe.jsx)("div",{className:"h-14 bg-white/70 rounded-md"}),(0,Pe.jsx)("div",{className:"h-14 bg-white/70 rounded-md"}),(0,Pe.jsx)("div",{className:"h-14 bg-white/70 rounded-md"})]})]});const u=null!==(e=null===i||void 0===i?void 0:i.reviewed_last_24h)&&void 0!==e?e:0,m=null!==(t=null===i||void 0===i?void 0:i.acknowledgements_sent_24h)&&void 0!==t?t:0,p=null!==(n=null===i||void 0===i?void 0:i.follow_ups_scheduled)&&void 0!==n?n:0,h=null!==(a=null===i||void 0===i?void 0:i.awaiting_you)&&void 0!==a?a:0,f=u+m>0,x=p+h>0;return(0,Pe.jsxs)("div",{className:"rounded-xl border p-5",style:{background:"var(--brand-sand)",borderColor:"var(--brand-slate)"},"data-testid":"handled-strip",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono",style:{color:"var(--brand-navy)"},"data-testid":"handled-strip-eyebrow",children:[yF.handled," \xb7 last 24 hours"]}),!f&&!x&&(0,Pe.jsx)("div",{className:"text-xs text-slate-500","data-testid":"handled-strip-quiet",children:wF.handled})]}),(f||x)&&(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-2 md:grid-cols-4 gap-3","data-testid":"handled-strip-tiles",children:[(0,Pe.jsx)(HF,{testid:"tile-reviewed",icon:(0,Pe.jsx)(ly,{size:16,weight:"duotone"}),value:u,past:!0,label:1===u?"application reviewed":"applications reviewed"}),(0,Pe.jsx)(HF,{testid:"tile-acks",icon:(0,Pe.jsx)(OF,{size:16,weight:"duotone"}),value:m,past:!0,label:1===m?"acknowledgement sent":"acknowledgements sent"}),(0,Pe.jsx)(HF,{testid:"tile-followups",icon:(0,Pe.jsx)(ag,{size:16,weight:"duotone"}),value:p,past:!1,label:1===p?"follow-up scheduled":"follow-ups scheduled"}),(0,Pe.jsx)(HF,{testid:"tile-awaiting",icon:(0,Pe.jsx)(Hg,{size:16,weight:"duotone"}),value:h,past:!1,label:1===h?"person needs you":"people need you",emphasis:!0})]})]})}function HF(e){let t=e.icon,n=e.value,a=e.label,r=e.past,i=e.emphasis,s=e.testid;const o=Number.isFinite(n)?n:0;return(0,Pe.jsxs)("div",{className:"rounded-md bg-white p-3 border ".concat(i?"shadow-sm":""),style:{borderColor:"var(--brand-slate)"},"data-testid":s,title:r?"Handled \u2014 confirmed by system event.":"In progress or awaiting you.",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-slate-500 text-xs",children:[(0,Pe.jsx)("span",{style:{color:i?"var(--brand-teal)":"var(--brand-navy)"},children:t}),(0,Pe.jsx)("span",{className:"uppercase tracking-wider font-mono text-[10px]",children:a})]}),(0,Pe.jsx)("div",{className:"mt-1.5 font-display font-semibold text-2xl tabular-nums",style:{color:"var(--brand-navy)"},children:o})]})}function PF(){const e=es().user,t=zt(),n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)([]),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!0),2),p=m[0],h=m[1];(0,o.useEffect)(()=>{(async()=>{h(!0);try{const e=Ue(await Promise.allSettled([Qi.get("/dashboard/action-center"),Qi.get("/applications/org/all"),Qi.get("/jobs/mine")]),3),t=e[0],n=e[1],a=e[2];"fulfilled"===t.status&&r(t.value.data),"fulfilled"===n.status&&l(n.value.data||[]),"fulfilled"===a.status?u((a.value.data||[]).length):u(0)}finally{h(!1)}})(),pF("home_morning_brief_opened",{properties:{}})},[]);const f=(0,o.useMemo)(()=>(s||[]).filter(e=>{const t=(e.status||"").toLowerCase();return!("hired"!==t&&"rejected"!==t)&&(!e.rejection_email_sent_at&&!e.hired_communication_sent_at)}).length,[s]),x=(0,o.useMemo)(()=>function(e,t){const n=[],a=(null===e||void 0===e?void 0:e.needs_decision)||[];
2if(a.length>0){const e=a[0],t=e.days_waiting||0,r=e.candidate_name||"A candidate";n.push({key:"needs-decision",why:t>0?"".concat(r," has been waiting ").concat(t," day").concat(1===t?"":"s"," for a hiring decision on ").concat(e.job_title||"an open role","."):"".concat(r," is waiting on a hiring decision."),cta:"Follow up",to:e.application_id?"/app/employer/applications/".concat(e.application_id):"/app/employer/applicants",testId:"brief-item-needs-decision"})}const r=(null===e||void 0===e?void 0:e.hidden_talent)||[];if(r.length>0){const e=new Map;for(const n of r){const t=n.recommended_job_id||"unknown";e.has(t)||e.set(t,{count:0,job_title:n.recommended_job_title,job_id:n.recommended_job_id}),e.get(t).count+=1}const t=[...e.values()].sort((e,t)=>t.count-e.count)[0];if(t&&t.count>0){const e=t.count,a=t.job_title||"an open role";n.push({key:"hidden-talent",why:"".concat(e," candidate").concat(1===e?"":"s"," already in your organization may fit the ").concat(a," role."),cta:"Review",to:t.job_id?"/app/employer/jobs/".concat(t.job_id):"/app/employer/jobs",testId:"brief-item-hidden-talent"})}}return t>0&&n.push({key:"follow-through",why:"".concat(t," candidate").concat(1===t?"":"s are"," still waiting to hear back."),cta:"Send updates",to:"/app/employer/applicants",testId:"brief-item-follow-through"}),n.slice(0,3)}(a,f),[a,f]),g=!p&&0===d&&0===(s||[]).length&&0===x.length,v=Ue((0,o.useState)(null),2),b=v[0],y=v[1];(0,o.useEffect)(()=>{if(p)return;let e=!0;return Qi.post("/taylor/work-queue-eyebrow",{item_count:x.length,caught_up:0===x.length}).then(t=>{e&&y(t.data||null)}).catch(()=>{e&&y(null)}),()=>{e=!1}},[p,x.length]);const j=(w=(new Date).getHours())<5?"Working late":w<12?"Good morning":w<17?"Good afternoon":"Good evening";var w;const N=xF(e);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-10 max-w-3xl mx-auto","data-testid":"home-morning-brief",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono",style:{color:"var(--brand-navy)"},children:"Today"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl tracking-tight mt-1",style:{color:"var(--brand-navy)"},children:[j,", ",N,"."]}),(0,Pe.jsx)("div",{className:"mt-6","data-testid":"today-handled-wrap",children:(0,Pe.jsx)(RF,{})}),(0,Pe.jsx)("div",{className:"mt-8",children:(0,Pe.jsx)(CF,{})}),(0,Pe.jsx)("div",{className:"mt-10"}),(0,Pe.jsx)(bF,{}),null!==b&&void 0!==b&&b.visible?(0,Pe.jsx)("div",{className:"mb-2","data-testid":"taylor-work-queue-wrapper",children:(0,Pe.jsx)(vF,{variant:"eyebrow",testId:"taylor-work-queue-byline"})}):(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono text-muted-foreground",children:"Morning brief"}),(0,Pe.jsx)("p",{className:"mt-3 text-lg text-foreground/90","data-testid":"brief-header",children:p?"Reviewing what happened overnight\u2026":g?"Welcome to ".concat(rs,". Post your first job and we'll take it from there."):null!==b&&void 0!==b&&b.visible?b.eyebrow:0===x.length?"You're at zero. Nothing needs your attention right now \u2014 nice work.":1===x.length?"There's one thing worth your attention today.":"Today there ".concat(1===x.length?"is":"are"," ").concat(["","one","two","three"][x.length]," thing").concat(1===x.length?"":"s"," worth your attention.")}),g&&(0,Pe.jsxs)("div",{className:"mt-8 border border-border rounded-md p-6","data-testid":"brief-first-run",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono text-muted-foreground",children:"First step"}),(0,Pe.jsxs)("p",{className:"mt-2 text-base text-foreground leading-relaxed",children:["Post the first role you\u2019re hiring for. Paste a link, drop in a job description, or type just the title \u2014 ",rs," structures the details and walks you through review before it goes live."]}),(0,Pe.jsx)("div",{className:"mt-4",children:(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs/create","data-testid":"brief-first-run-cta",onClick:()=>pF("home_first_run_cta_clicked",{properties:{placement:"brief_first_run"}}),className:"inline-flex items-center gap-1.5 rounded-md bg-[#0F1D2D] hover:bg-[#14B8A6] hover:text-[#0F1D2D] text-white text-sm font-semibold px-4 py-2 transition-colors",children:["Create your first job",(0,Pe.jsx)(eg,{size:14,weight:"bold"})]})})]}),x.length>0&&(0,Pe.jsxs)("ol",{className:"mt-8 space-y-4","data-testid":"brief-items",children:[" ",x.map((e,t)=>(0,Pe.jsx)("li",{children:(0,Pe.jsx)(Yn,{to:e.to,"data-testid":e.testId,onClick:()=>pF("home_brief_item_clicked",{properties:{key:e.key,position:t+1}}),className:"block border border-border rounded-md p-5 hover:border-[#0F172A] transition-colors",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono text-muted-foreground pt-1 shrink-0",children:[t+1,"."]}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("p",{className:"text-base text-foreground leading-relaxed",children:e.why}),(0,Pe.jsxs)("div",{className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-[#0F4FA8]",children:[e.cta,(0,Pe.jsx)(eg,{size:14,weight:"bold"})]})]})]})})},e.key))]}),(null===b||void 0===b?void 0:b.visible)&&b.caption&&(0,Pe.jsx)("p",{className:"text-xs text-slate-500 mt-4 max-w-xl","data-testid":"taylor-work-queue-caption",children:b.caption}),!p&&0===x.length&&!g&&(0,Pe.jsx)("div",{className:"mt-8 border border-dashed border-border rounded-md p-6","data-testid":"brief-empty",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(Yf,{size:20,weight:"duotone",className:"text-emerald-600 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("p",{className:"text-sm text-foreground",children:"Every candidate you own is on track. Everyone waiting has heard back. Every manager has decided."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"Come back later, or explore the jobs and candidates you own."})]})]})}),(0,Pe.jsxs)("div",{className:"mt-16 pt-6 border-t border-border","data-testid":"brief-supporting-work",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono text-muted-foreground",children:"Everything else"}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap gap-4 text-sm",children:[(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs",className:"text-[#14B8A6] hover:text-[#0F9E8C] hover:underline inline-flex items-center gap-1","data-testid":"brief-link-jobs",children:["All jobs ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]}),(0,Pe.jsxs)(Yn,{to:"/app/employer/applicants",className:"text-[#14B8A6] hover:text-[#0F9E8C] hover:underline inline-flex items-center gap-1","data-testid":"brief-link-candidates",children:["All people ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]}),(0,Pe.jsxs)(Yn,{to:"/app/employer/messages",className:"text-[#14B8A6] hover:text-[#0F9E8C] hover:underline inline-flex items-center gap-1","data-testid":"brief-link-messages",children:["Messages ",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})]})]}),(0,Pe.jsx)("span",{className:"sr-only","data-testid":"home-nav-helper",onClick:()=>t("/app/employer/applicants")})]})}const LF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),o.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),TF=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:LF})));TF.displayName="TrashIcon";const IF=TF,ZF="#041C3A";function BF(e){var t,n;let a=e.open,r=e.onOpenChange,i=e.onUpgraded;const s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!0),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1];(0,o.useEffect)(()=>{if(!a)return;let e=!0;return m(!0),Qi.get("/beta-pricing/value-summary").then(t=>{e&&c(t.data)}).catch(()=>{e&&c(null)}).finally(()=>{e&&m(!1)}),Qi.post("/telemetry/track",{event:"second_job_prompt_shown"}).catch(()=>{}),()=>{e=!1}},[a]);const x=(null===l||void 0===l?void 0:l.pricing)||{},g=((null===l||void 0===l?void 0:l.friendly_lines)||[]).filter(Boolean),v=null!==(t=x.beta_price_usd)&&void 0!==t?t:49;return(0,Pe.jsx)(hg,{open:a,onOpenChange:r,children:(0,Pe.jsxs)(bg,{side:"right",className:"w-full sm:max-w-xl","data-testid":"beta-pricing-sheet",children:[(0,Pe.jsxs)(yg,{className:"text-left",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-muted-foreground font-mono font-semibold mb-2",children:"Upgrade"}),(0,Pe.jsx)(wg,{className:"font-display font-bold text-2xl tracking-tight",style:{color:ZF},children:x.upgrade_headline||"You're getting real value. Ready to bring your second role in?"}),(0,Pe.jsx)(Ng,{className:"text-sm leading-relaxed pt-1",children:x.upgrade_subhead||"Upgrade to a paid plan to publish additional active jobs."})]}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-6",children:[(0,Pe.jsxs)("div",{className:"rounded-md border border-slate-200 bg-slate-50/60 p-4","data-testid":"beta-pricing-value-block",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground mb-3",children:"What AROS has already done for you"}),u&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"Adding it up\u2026"}),!u&&0===g.length&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"We'll show your impact numbers here once your first job has activity."}),!u&&g.length>0&&(0,Pe.jsx)("ul",{className:"space-y-2","data-testid":"beta-pricing-value-lines",children:g.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2 text-sm","data-testid":"beta-pricing-value-line-".concat(t),children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",className:"mt-0.5 text-emerald-600 shrink-0"}),(0,Pe.jsx)("span",{style:{color:ZF},children:e})]},t))})]}),(0,Pe.jsxs)("div",{className:"rounded-md border border-slate-200 p-5","data-testid":"beta-pricing-price-card",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,Pe.jsxs)("span",{className:"font-display font-bold text-4xl tracking-tight",style:{color:ZF},children:["$",v]}),(0,Pe.jsx)("span",{className:"text-sm text-muted-foreground",children:"/ month, flat"})]}),(0,Pe.jsxs)("div",{className:"text-sm mt-3 space-y-1.5",style:{color:ZF},children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",className:"mt-1 text-slate-500"}),(0,Pe.jsxs)("span",{children:["Up to ",(0,Pe.jsx)("strong",{children:null!==(n=x.paid_active_job_limit)&&void 0!==n?n:3})," active jobs at once."]})]}),(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",className:"mt-1 text-slate-500"}),(0,Pe.jsx)("span",{children:"Every AI feature you already use stays included."})]}),(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",className:"mt-1 text-slate-500"}),(0,Pe.jsx)("span",{children:"Your first active job stays free forever, on any plan."})]})]}),(0,Pe.jsx)("div",{className:"mt-4 text-xs text-muted-foreground italic","data-testid":"beta-pricing-cancellation",children:x.cancellation_copy||"Cancel any time in one click. No exit interview. No dark patterns."})]}),!1===x.paid_beta_active&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground italic","data-testid":"beta-pricing-not-live-note",children:"Paid plans aren't live for your workspace yet \u2014 while we finish setup, your first job stays free and your second-job invitation is on the way."})]}),(0,Pe.jsxs)(jg,{className:"mt-6 flex-col sm:flex-row gap-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>
2{Qi.post("/telemetry/track",{event:"second_job_prompt_dismissed"}).catch(()=>{}),r(!1)},"data-testid":"beta-pricing-dismiss",className:"w-full sm:w-auto",children:"Not right now"}),(0,Pe.jsx)(Lo,{onClick:async()=>{f(!0);const e=!0===(null===x||void 0===x?void 0:x.paid_beta_active);try{if(e){const e=window.location.origin,t=(await Qi.post("/billing/checkout-session",{origin_url:e})).data;if(Qi.post("/telemetry/track",{event:"checkout_started"}).catch(()=>{}),null!==t&&void 0!==t&&t.url)return void(window.location.href=t.url);throw new Error("No checkout URL returned")}await Qi.post("/plan/upgrade-request",{note:"Second-job upgrade from value sheet"}),va.success("Upgrade request sent. We'll follow up shortly."),r(!1),"function"===typeof i&&i()}catch(zf){var t,n;const s=null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;if("already_subscribed"===s)va.success("You're already on a paid plan \u2014 you can publish another job now."),r(!1),"function"===typeof i&&i();else if("paid_beta_not_live"===s)try{await Qi.post("/plan/upgrade-request",{note:"Second-job upgrade \u2014 paid plan was off"}),va.success("Upgrade request sent. We'll follow up shortly."),r(!1)}catch(a){va.error("Could not send upgrade request right now.")}else va.error("string"===typeof s?s:(null===zf||void 0===zf?void 0:zf.message)||"Could not start checkout right now.")}finally{f(!1)}},disabled:h,"data-testid":"beta-pricing-upgrade",className:"w-full sm:w-auto bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:h?"Starting\u2026":null!==x&&void 0!==x&&x.paid_beta_active?"Subscribe \u2014 $".concat(v,"/mo"):"Request upgrade \u2014 $".concat(v,"/mo")})]})]})})}function VF(){const e=zt(),t=Ue((0,o.useState)([]),2),n=t[0],a=t[1],r=Ue((0,o.useState)({}),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1],u=Ue((0,o.useState)(null),2),m=(u[0],u[1],Ue((0,o.useState)(new Set),2)),p=m[0],f=m[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1],w=Ue((0,o.useState)(null),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!1),2),E=k[0],D=(k[1],Ue((0,o.useState)(""),2)),_=D[0],C=D[1],F=Ue((0,o.useState)("all"),2),S=F[0],M=F[1],O=Ue((0,o.useState)("recent"),2),R=O[0],H=O[1];(0,o.useEffect)(()=>{var e;e=E,Qi.get("/jobs/mine".concat(e?"?include_archived=true":"")).then(e=>a(e.data)),Qi.get("/jobs/match-counts/by-job").then(e=>{const t={};for(const a of(null===(n=e.data)||void 0===n?void 0:n.jobs)||[]){var n;t[a.job_id]=a}s(t)}).catch(()=>{}),Qi.get("/beta-pricing/config").then(e=>A(e.data)).catch(()=>A(null))},[E]);const P=(0,o.useMemo)(()=>n.filter(e=>!e.archived_at&&"archived"!==e.status).length,[n]),L=(0,o.useMemo)(()=>{const e=_.trim().toLowerCase();let t=n.filter(t=>{if("all"!==S){const e=(t.status||"").toLowerCase();if("open"===S&&"open"!==e)return!1;if("draft"===S&&"draft"!==e)return!1;if("closed"===S&&"closed"!==e&&!t.archived_at)return!1}if(!e)return!0;return"".concat(t.title||""," ").concat(t.department||""," ").concat(t.location||"").toLowerCase().includes(e)});return"recent"===R?t=[...t].sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||"")):"oldest"===R?t=[...t].sort((e,t)=>(e.created_at||"").localeCompare(t.created_at||"")):"title"===R?t=[...t].sort((e,t)=>(e.title||"").localeCompare(t.title||"")):"applicants"===R&&(t=[...t].sort((e,t)=>(t.applicant_count||0)-(e.applicant_count||0))),t},[n,_,S,R]),T=n.filter(e=>!e.is_archived),I=T.length>0&&T.every(e=>p.has(e.id)),Z=p.size>0&&!I;return(0,Pe.jsxs)("div",{"data-testid":Gw,className:"px-6 lg:px-10 py-8",children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"JOBS"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Your job postings"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1",children:[n.length," jobs total."]})]}),(0,Pe.jsx)("div",{className:"flex items-center gap-2",children:(0,Pe.jsx)(Yn,{to:"/app/employer/jobs/create","data-testid":"smart-create-job-btn",onClick:e=>{var t;Qi.post("/telemetry/track",{event:"post_a_job_clicked"}).catch(()=>{});const n=Boolean(null===N||void 0===N?void 0:N.paid_beta_active),a=null!==(t=null===N||void 0===N?void 0:N.free_forever_active_job_limit)&&void 0!==t?t:1;n&&P>=a&&(e.preventDefault(),j(!0))},children:(0,Pe.jsxs)(Lo,{"data-testid":$w,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:16,className:"mr-1.5",weight:"fill"})," Post a job"]})})})]}),n.length>0&&(0,Pe.jsxs)("div",{className:"mt-6 flex items-center gap-2 flex-wrap","data-testid":"jobs-controls",children:[(0,Pe.jsx)("input",{type:"search",value:_,onCh
2ange:e=>C(e.target.value),placeholder:"Search title, department, or location",className:"flex-1 min-w-[220px] rounded-md border border-border bg-background px-3 py-1.5 text-sm placeholder:text-muted-foreground focus:outline-none focus:border-[#0F172A]","data-testid":"jobs-search-input","aria-label":"Search jobs"}),(0,Pe.jsxs)("select",{value:S,onChange:e=>M(e.target.value),className:"rounded-md border border-border bg-background px-3 py-1.5 text-sm focus:outline-none focus:border-[#0F172A]","data-testid":"jobs-status-filter","aria-label":"Filter by status",children:[(0,Pe.jsx)("option",{value:"all",children:"All statuses"}),(0,Pe.jsx)("option",{value:"open",children:"Open"}),(0,Pe.jsx)("option",{value:"draft",children:"Draft"}),(0,Pe.jsx)("option",{value:"closed",children:"Closed"})]}),(0,Pe.jsxs)("select",{value:R,onChange:e=>H(e.target.value),className:"rounded-md border border-border bg-background px-3 py-1.5 text-sm focus:outline-none focus:border-[#0F172A]","data-testid":"jobs-sort-order","aria-label":"Sort order",children:[(0,Pe.jsx)("option",{value:"recent",children:"Most recent"}),(0,Pe.jsx)("option",{value:"oldest",children:"Oldest first"}),(0,Pe.jsx)("option",{value:"title",children:"Title A\u2192Z"}),(0,Pe.jsx)("option",{value:"applicants",children:"Most applicants"})]})]}),(0,Pe.jsx)(BF,{open:y,onOpenChange:j,onUpgraded:()=>e("/app/employer/jobs/create")}),T.length>0&&(0,Pe.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-3 flex-wrap rounded-md border border-border px-4 py-2.5 bg-secondary/40","data-testid":"jobs-bulk-actions",children:[(0,Pe.jsxs)("label",{className:"flex items-center gap-2 text-sm cursor-pointer",children:[(0,Pe.jsx)(pA,{checked:!!I||!!Z&&"indeterminate",onCheckedChange:()=>{f(I?new Set:new Set(T.map(e=>e.id)))},"data-testid":"jobs-select-all"}),p.size>0?(0,Pe.jsxs)("span",{children:[(0,Pe.jsx)("strong",{children:p.size})," of ",T.length," selected"]}):(0,Pe.jsx)("span",{children:"Select all"})]}),p.size>0&&(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("button",{type:"button",onClick:()=>f(new Set),className:"text-xs text-muted-foreground hover:text-[#0F172A]","data-testid":"jobs-bulk-clear",children:"Clear selection"}),(0,Pe.jsxs)(Lo,{size:"sm",onClick:async()=>{const e=Array.from(p);if(0===e.length)return;const t=e.reduce((e,t)=>{const a=i[t],r=n.find(e=>e.id===t);return e+((null===a||void 0===a?void 0:a.total)||(null===r||void 0===r?void 0:r.applicant_count)||0)},0);if(window.confirm("Archive ".concat(e.length," role").concat(1===e.length?"":"s","?\n\n")+"This hides them from your list. It is NOT a permanent delete \u2014 applicants, audit logs, and timeline events all stay intact."+(t>0?"\n\n".concat(t," applicant").concat(1===t?"":"s"," across these roles will stay on file and the roles can be restored later."):""))){v(!0);try{const t=(await Qi.post("/jobs/archive-bulk",{job_ids:e})).data,n=new Set((null===t||void 0===t?void 0:t.archived_ids)||[]);a(E?e=>e.map(e=>n.has(e.id)?h(h({},e),{},{is_archived:!0}):e):e=>e.filter(e=>!n.has(e.id))),f(new Set);const r=e.length-n.size;r>0?va.success("Archived ".concat(n.size," of ").concat(e.length,". ").concat(r," skipped (already archived or no permission).")):va.success("Archived ".concat(n.size," role").concat(1===n.size?"":"s","."))}catch(zf){var r,s;va.error((null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(s=r.data)||void 0===s?void 0:s.detail)||"Bulk archive failed.")}finally{v(!1)}}},disabled:g,"data-testid":"jobs-bulk-archive",className:"rounded-md text-red-700 border-red-200 hover:bg-red-50 hover:text-red-700",variant:"outline",children:[(0,Pe.jsx)(IF,{size:14,className:"mr-1.5"}),g?"Archiving\u2026":"Archive ".concat(p.size," selected")]})]})]}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-4",children:[L.map(e=>{const t=i[e.id];return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 hover:border-[#0F172A] transition-colors","data-testid":"job-card-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[!e.is_archived&&(0,Pe.jsx)(pA,{checked:p.has(e.id),onCheckedChange:()=>{return t=e.id,void f(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},className:"mt-1","data-testid":"job-select-".concat(e.id),"aria-label":"Select ".concat(e.title)}),(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground font-semibold",children:e.department}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl mt-1 truncate",children:e.title})]})]}),(0,Pe.jsx)("span",{className:"pill ".concat("open"===e.status?"bg-emerald-50 text-emerald-900 border-emerald-200":"bg-secondary"," border text-xs uppercase tracking-wider"),children:e.status})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted-foreground",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(TN,{size:14}),e.location]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(Hg,{size:14}),e.applicant_count," applicants"]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(ly,{size:14}),e.views," views"]})]}),t&&t.total>0&&(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs/".concat(e.id),"data-testid":"job-match-badges-".concat(e.id),onClick:()=>function(e,t){e&&pF("job_match_badge_clicked",{job_id:e.job_id,properties:{match_total:e.total||0,high:e.high||0,medium:e.medium||0,low:e.low||0,source:t}})}(t,"badge"),className:"mt-3 flex flex-wrap gap-1.5 group/badge",children:[t.high>0&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border bg-emerald-50 text-emerald-700 border-emerald-200 group-hover/badge:bg-emerald-100 transition-colors",children:[t.high," Strong fit"]}),t.medium>0&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border bg-sky-50 text-sky-700 border-sky-200 group-hover/badge:bg-sky-100 transition-colors",children:[t.medium," Promising"]}),t.low>0&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border bg-slate-50 text-slate-700 border-slate-200 group-hover/badge:bg-slate-100 transition-colors",title:"Limited fit \u2014 evidence overlap exists but is thin. Worth a quick read; not urgent.",children:[t.low," Limited fit"]})]}),(0,Pe.jsxs)("div",{className:"mt-4 flex gap-2 flex-wrap",children:[(0,Pe.jsx)(Yn,{to:"/app/employer/jobs/".concat(e.id),"data-testid":"job-open-workspace-".concat(e.id),children:(0,Pe.jsxs)(Lo,{size:"sm",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:["Open ",(0,Pe.jsx)(eg,{size:14,className:"ml-1.5",weight:"bold"})]})}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>(async e=>{const t=i[e.id],n=(null===t||void 0===t?void 0:t.total)||e.applicant_count||0,r
2=n>0?"\n\n".concat(n," applicant").concat(1===n?"":"s"," will stay on file \u2014 their history is preserved and the role can be restored later."):"";if(window.confirm('Archive "'.concat(e.title,'"?\n\nThis hides the role from your list. It is NOT a permanent delete \u2014 applicants, audit logs, and timeline events all stay intact.').concat(r))){d(e.id);try{await Qi.delete("/jobs/".concat(e.id)),a(E?t=>t.map(t=>t.id===e.id?h(h({},t),{},{is_archived:!0}):t):t=>t.filter(t=>t.id!==e.id)),va.success('Archived "'.concat(e.title,'"'))}catch(zf){var s,o;va.error((null===zf||void 0===zf||null===(s=zf.response)||void 0===s||null===(o=s.data)||void 0===o?void 0:o.detail)||"Could not archive role.")}finally{d(null)}}})(e),disabled:c===e.id,"data-testid":"job-archive-".concat(e.id),className:"rounded-md text-red-700 border-red-200 hover:bg-red-50 hover:text-red-700 ml-auto",children:[(0,Pe.jsx)(IF,{size:14,className:"mr-1"}),c===e.id?"Archiving\u2026":"Archive"]})]})]},e.id)}),0===n.length&&(0,Pe.jsxs)("div",{className:"md:col-span-2 border border-dashed border-border rounded-md p-12 text-center",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"No jobs yet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Post your first role to start the pipeline."}),(0,Pe.jsx)(Yn,{to:"/app/employer/jobs/create",children:(0,Pe.jsx)(Lo,{className:"mt-4 bg-[#0F172A] text-white rounded-md",children:"Post a job"})})]}),n.length>0&&0===L.length&&(0,Pe.jsxs)("div",{className:"md:col-span-2 border border-dashed border-border rounded-md p-10 text-center","data-testid":"jobs-empty-search",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-lg",children:"Nothing matches those filters."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Try clearing the search or picking a different status."}),(0,Pe.jsx)(Lo,{variant:"outline",size:"sm",className:"mt-4 rounded-md",onClick:()=>{C(""),M("all"),H("recent")},"data-testid":"jobs-clear-filters",children:"Clear filters"})]})]})]})}const zF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,28H72A20,20,0,0,0,52,48V224a12,12,0,0,0,18.36,10.18l57.63-36,57.65,36A12,12,0,0,0,204,224V48A20,20,0,0,0,184,28Zm-4,174.35-45.65-28.53a12,12,0,0,0-12.72,0L76,202.35V52H180Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,48V224l-64-40L64,224V48a8,8,0,0,1,8-8H184A8,8,0,0,1,192,48Z",opacity:"0.2"}),o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,34H72A14,14,0,0,0,58,48V224a6,6,0,0,0,9.18,5.09l60.81-38,60.83,38A6,6,0,0,0,198,224V48A14,14,0,0,0,184,34Zm2,179.17-54.83-34.26a6,6,0,0,0-6.36,0L70,213.17V48a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,36H72A12,12,0,0,0,60,48V224a4,4,0,0,0,6.12,3.39L128,188.72l61.89,38.67A4,4,0,0,0,192,228a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,196,224V48A12,12,0,0,0,184,36Zm4,180.78-57.89-36.17a4,4,0,0,0-4.24,0L68,216.78V48a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z"}))]]),qF=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:zF})));qF.displayName="BookmarkSimpleIcon";const UF=qF,WF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,154.8l-47.09-21.11-.18-.08a19.94,19.94,0,0,0-19,1.75,13.08,13.08,0,0,0-1.12.84l-22.31,19c-13-7.05-26.43-20.37-33.49-33.21l19.06-22.66a11.76,11.76,0,0,0,.85-1.15,20,20,0,0,0,1.66-18.83,1.42,1.42,0,0,1-.08-.18L101.2,32A20.06,20.06,0,0,0,80.42,20.15,60.27,60.27,0,0,0,28,80c0,81.61,66.39,148,148,148a60.27,60.27,0,0,0,59.85-52.42A20.06,20.06,0,0,0,224,154.8ZM176,204A124.15,124.15,0,0,1,52,80,36.29,36.29,0,0,1,80.48,44.46l18.82,42L80.14,109.28a12,12,0,0,0-.86,1.16A20,20,0,0,0,78,130.08c9.42,19.28,28.83,38.56,48.31,48A20,20,0,0,0,146,176.63a11.63,11.63,0,0,0,1.11-.85l22.43-19.07,42,18.81A36.29,36.29,0,0,1,176,204Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M223.94,174.08A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59l25-21.3a8,8,0,0,1,7.59-.69l47.16,21.13A8,8,0,0,1,223.94,174.08Z",opacity:"0.2"}),o.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32
2-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.59,160.3l-47.24-21.17a14,14,0,0,0-13.28,1.22,4.81,4.81,0,0,0-.56.42l-24.69,21a1.88,1.88,0,0,1-1.68.06c-15.87-7.66-32.31-24-40-39.65a1.91,1.91,0,0,1,0-1.68l21.07-25a6.13,6.13,0,0,0,.42-.58,14,14,0,0,0,1.12-13.27L95.73,34.49a14,14,0,0,0-14.56-8.38A54.24,54.24,0,0,0,34,80c0,78.3,63.7,142,142,142a54.25,54.25,0,0,0,53.89-47.17A14,14,0,0,0,221.59,160.3ZM176,210C104.32,210,46,151.68,46,80A42.23,42.23,0,0,1,82.67,38h.23a2,2,0,0,1,1.84,1.31l21.1,47.11a2,2,0,0,1,0,1.67L84.73,113.15a4.73,4.73,0,0,0-.43.57,14,14,0,0,0-.91,13.73c8.87,18.16,27.17,36.32,45.53,45.19a14,14,0,0,0,13.77-1c.19-.13.38-.27.56-.42l24.68-21a1.92,1.92,0,0,1,1.6-.1l47.25,21.17a2,2,0,0,1,1.21,2A42.24,42.24,0,0,1,176,210Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220.78,162.13,173.56,141A12,12,0,0,0,162.18,142a3.37,3.37,0,0,0-.38.28L137,163.42a3.93,3.93,0,0,1-3.7.21c-16.24-7.84-33.05-24.52-40.89-40.57a3.9,3.9,0,0,1,.18-3.69l21.2-25.21c.1-.12.19-.25.28-.38a12,12,0,0,0,1-11.36L93.9,35.28a12,12,0,0,0-12.48-7.19A52.25,52.25,0,0,0,36,80c0,77.2,62.8,140,140,140a52.25,52.25,0,0,0,51.91-45.42A12,12,0,0,0,220.78,162.13ZM220,173.58A44.23,44.23,0,0,1,176,212C103.22,212,44,152.78,44,80A44.23,44.23,0,0,1,82.42,36a3.87,3.87,0,0,1,.48,0,4,4,0,0,1,3.67,2.49l21.11,47.14a4,4,0,0,1-.23,3.6l-21.19,25.2c-.1.13-.2.25-.29.39a12,12,0,0,0-.78,11.75c8.69,17.79,26.61,35.58,44.6,44.27a12,12,0,0,0,11.79-.87l.37-.28,24.83-21.12a3.93,3.93,0,0,1,3.57-.27l47.21,21.16A4,4,0,0,1,220,173.58Z"}))]]),YF=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:WF})));YF.displayName="PhoneIcon";const KF=YF,GF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,28H72A20,20,0,0,0,52,48V224a12,12,0,0,0,18.36,10.18l57.63-36,57.65,36A12,12,0,0,0,204,224V48A20,20,0,0,0,184,28Zm-4,24V154.35l-45.65-28.53a12,12,0,0,0-12.72,0L76,154.35V52ZM134.35,173.82a12,12,0,0,0-12.72,0L76,202.35v-19.7l52-32.5,52,32.5v19.7Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,176v48l-64-40L64,224V176l64-40Z",opacity:"0.2"}),o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,16V161.57l-51.77-32.35a8,8,0,0,0-8.48,0L72,161.56V48ZM132.23,177.22a8,8,0,0,0-8.48,0L72,209.57V180.43l56-35,56,35v29.14Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32ZM132.23,177.22a8,8,0,0,0-8.48,0L72,209.57V180.43l56-35,56,35v29.14Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,34H72A14,14,0,0,0,58,48V224a6,6,0,0,0,9.18,5.09l60.81-38,60.83,38A6,6,0,0,0,198,224V48A14,14,0,0,0,184,34ZM72,46H184a2,2,0,0,1,2,2V165.18l-54.83-34.27a6,6,0,0,0-6.36,0L70,165.17V48A2,2,0,0,1,72,46Zm59.17,132.91a6,6,0,0,0-6.36,0L70,213.17V179.33l58-36.25,58,36.25v33.84Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,16V161.57l-51.77-32.35a8,8,0,0,0-8.48,0L72,161.56V48ZM132.23,177.22a8,8,0,0,0-8.48,0L72,209.57V180.43l56-35,56,35v29.14Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,36H72A12,12,0,0,0,60,48V224a4,4,0,0,0,6.12,3.39L128,188.72l61.89,38.67A4,4,0,0,0,192,228a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,196,224V48A12,12,0,0,0,184,36ZM72,44H184a4,4,0,0,1,4,4V168.78l-57.89-36.17a4,4,0,0,0-4.24,0L68,168.78V48A4,4,0,0,1,72,44Zm58.11,136.61a4,4,0,0,0-4.24,0L68,216.78V178.22l60-37.5,60,37.5v38.56Z"}))]]),$F=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:GF})));$F.displayName="BookmarkIcon";const QF=$F,XF=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),o.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),JF=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:XF})));JF.displayName="ArrowsLeftRightIcon";const eS=JF,tS=["__scopePopover"],nS=["__scopePopover"],aS=["forceMount"],rS=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],iS=["__scopePopover"],sS=["__scopePopover"];var oS="Popover",lS=Ue(Jo(oS,[sp]),2),cS=lS[0],dS=(lS[1],sp()),uS=Ue(cS(oS),2),mS=uS[0],pS=uS[1],hS=e=>{const t=e.__scopePopover,n=e.children,a=e.open,r=e.defaultOpen,i=e.onOpenChange,s=e.modal,l=void 0!==s&&s,c=dS(t),d=o.useRef(null),u=Ue(o.useState(!1),2),m=u[0],p=u[1],f=Ue(sl({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:oS}),2),x=f[0],g=f[1];return(0,Pe.jsx)(Ap,h(h({},c),{},{children:(0,Pe.jsx)(mS,{scope:t,contentId:rl(),triggerRef:d,open:x,onOpenChange:g,onOpenToggle:o.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:m,onCustomAnchorAdd:o.useCallback(()=>p(!0),[]),onCustomAnchorRemove:o.useCallback(()=>p(!1),[]),modal:l,children:n})}))};hS.displayName=oS;var fS="PopoverAnchor",xS=o.forwardRef((e,t)=>{const n=e.__scopePopover,a=Ie(e,tS),r=pS(fS,n),i=dS(n),s=r.onCustomAnchorAdd,l=r.onCustomAnchorRemove;return o.useEffect(()=>(s(),()=>l()),[s,l]),(0,Pe.jsx)(kp,h(h(h({},i),a),{},{ref:t}))});xS.displayName=fS;var gS="PopoverTrigger",vS=o.forwardRef((e,t)=>{const n=e.__scopePopover,a=Ie(e,nS),r=pS(gS,n),i=dS(n),s=us(t,r.triggerRef),o=(0,Pe.jsx)(zo.button,h(h({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":OS(r.open)},a),{},{ref:s,onClick:$o(e.onClick,r.onOpenToggle)}));return r.hasCustomAnchor?o:(0,Pe.jsx)(kp,h(h({asChild:!0},i),{},{children:o}))});vS.displayName=gS;var bS="PopoverPortal",yS=Ue(cS(bS,{forceMount:void 0}),2),jS=yS[0],wS=yS[1],NS=e=>{const t=e.__scopePopover,n=e.forceMount,a=e.children,r=e.container,i=pS(bS,t);return(0,Pe.jsx)(jS,{scope:t,forceMount:n,children:(0,Pe.jsx)(Sl,{present:n||i.open,children:(0,Pe.jsx)(Fl,{asChild:!0,container:r,children:a})})})};NS.displayName=bS;var AS="PopoverContent",kS=o.forwardRef((e,t)=>
2{const n=wS(AS,e.__scopePopover),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Ie(e,aS),s=pS(AS,e.__scopePopover);return(0,Pe.jsx)(Sl,{present:r||s.open,children:s.modal?(0,Pe.jsx)(DS,h(h({},i),{},{ref:t})):(0,Pe.jsx)(_S,h(h({},i),{},{ref:t}))})});kS.displayName=AS;var ES=hs("PopoverContent.RemoveScroll"),DS=o.forwardRef((e,t)=>{const n=pS(AS,e.__scopePopover),a=o.useRef(null),r=us(t,a),i=o.useRef(!1);return o.useEffect(()=>{const e=a.current;if(e)return Rc(e)},[]),(0,Pe.jsx)(Ec,{as:ES,allowPinchZoom:!0,children:(0,Pe.jsx)(CS,h(h({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$o(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:$o(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;i.current=a},{checkForDefaultPrevented:!1}),onFocusOutside:$o(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})}))})}),_S=o.forwardRef((e,t)=>{const n=pS(AS,e.__scopePopover),a=o.useRef(!1),r=o.useRef(!1);return(0,Pe.jsx)(CS,h(h({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,s;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(a.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());a.current=!1,r.current=!1},onInteractOutside:t=>{var i,s;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const o=t.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}}))}),CS=o.forwardRef((e,t)=>{const n=e.__scopePopover,a=e.trapFocus,r=e.onOpenAutoFocus,i=e.onCloseAutoFocus,s=e.disableOutsidePointerEvents,o=e.onEscapeKeyDown,l=e.onPointerDownOutside,c=e.onFocusOutside,d=e.onInteractOutside,u=Ie(e,rS),m=pS(AS,n),p=dS(n);return Rl(),(0,Pe.jsx)(wl,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:i,children:(0,Pe.jsx)(hl,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:(0,Pe.jsx)(Ep,h(h(h({"data-state":OS(m.open),role:"dialog",id:m.contentId},p),u),{},{ref:t,style:h(h({},u.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)"})}))})})}),FS="PopoverClose",SS=o.forwardRef((e,t)=>{const n=e.__scopePopover,a=Ie(e,iS),r=pS(FS,n);return(0,Pe.jsx)(zo.button,h(h({type:"button"},a),{},{ref:t,onClick:$o(e.onClick,()=>r.onOpenChange(!1))}))});SS.displayName=FS;var MS=o.forwardRef((e,t)=>{const n=e.__scopePopover,a=Ie(e,sS),r=dS(n);return(0,Pe.jsx)(Dp,h(h(h({},r),a),{},{ref:t}))});function OS(e){return e?"open":"closed"}MS.displayName="PopoverArrow";var RS=NS,HS=kS;const PS=["className","align","sideOffset"],LS=hS,TS=vS,IS=o.forwardRef((e,t)=>{let n=e.className,a=e.align,r=void 0===a?"center":a,i=e.sideOffset,s=void 0===i?4:i,o=Ie(e,PS);return(0,Pe.jsx)(RS,{children:(0,Pe.jsx)(HS,h({ref:t,align:r,sideOffset:s,className:Ro("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",n)},o))})});IS.displayName=HS.displayName;function ZS(e){if(!e)return!0;const t=String(e).trim().toLowerCase();return!t||(!!t.endsWith("@aros.local")||!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t))}const BS=function(e){let t=e.candidateUserId,n=e.currentEmail,a=e.currentPhone,r=e.missingFlag,i=e.size,s=void 0===i?"chip":i,l=e.onUpdated,c=e.testIdPrefix,d=void 0===c?"missing-email":c;const u="boolean"===typeof r?r:ZS(n),m=Ue((0,o.useState)(!1),2),p=m[0],h=m[1],f=Ue((0,o.useState)(u?"":n||""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(a||""),2),b=v[0],y=v[1],j=Ue((0,o.useState)(!1),2),w=j[0],N=j[1],A=Ue((0,o.useState)(""),2),k=A[0],E=A[1];if(!u)return null;const D=(0,Pe.jsxs)("button",{type:"button","data-testid":"".concat(d,"-trigger"),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full border text-[10.5px] font-semibold uppercase tracking-wider transition-colors",style:{background:"#FFFBEB",color:"#92400E",borderColor:"#FCD34D"},onClick:e=>{e.preventDefault(),e.stopPropagation()},title:"We couldn't find an email on the resume. Add one to send updates.",children:[(0,Pe.jsx)(AN,{size:11,weight:"fill"}),"Add email"]}),_=(0,Pe.jsxs)("button",{type:"button","data-testid":"".concat(d,"-trigger"),className:"inline-flex items-center gap-2 px-3 py-2 rounded-md border text-sm font-semibold transition-colors hover:bg-amber-100/60",style:{background:"#FFFBEB",color:"#92400E",borderColor:"#FCD34D"},onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,Pe.jsx)(AN,{size:14,weight:"fill"}),"Add email to send updates"]});return(0,Pe.jsxs)(LS,{open:p,onOpenChange:h,children:[(0,Pe.jsx)(TS,{asChild:!0,children:"block"===s?_:D}),(0,Pe.jsxs)(IS,{align:"start",className:"w-80 p-4","data-testid":"".concat(d,"-popover"),onClick:e=>e.stopPropagation(),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,Pe.jsx)(Nx,{size:16,weight:"duotone"}),"Add candidate contact info"]}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"AROS uses this to send updates after you decide. Updates are paused until a deliverable email is on file."}),(0,Pe.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,Pe.jsxs)("label",{className:"block",children:[(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-wider font-mono text-muted-foreground",children:"Email"}),(0,Pe.jsx)("input",{type:"email",autoComplete:"off",value:x,onChange:e=>g(e.target.value),placeholder:"[email protected]","data-testid":"".concat(d,"-email-input"),className:"mt-1 w-full px-2.5 py-1.5 border border-border rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-[#0F172A]/20"})]}),(0,Pe.jsxs)("label",{className:"block",children:[(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-wider font-mono text-muted-foreground",children:"Phone (optional)"}),(0,Pe.jsx)("input",{type:"tel",autoComplete:"off",value:b,onChange:e=>y(e.target.value),placeholder:"(555) 123-4567","data-testid":"".concat(d,"-phone-input"),className:"mt-1 w-full px-2.5 py-1.5 border border-border rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-[#0F172A]/20"})]})]}
2),k&&(0,Pe.jsx)("div",{className:"mt-2 text-[11px] text-red-600","data-testid":"".concat(d,"-error"),children:k}),(0,Pe.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,Pe.jsx)(Lo,{type:"button",variant:"ghost",size:"sm",onClick:()=>h(!1),"data-testid":"".concat(d,"-cancel"),children:"Cancel"}),(0,Pe.jsx)(Lo,{type:"button",size:"sm",disabled:w,onClick:async()=>{E(""),N(!0);try{const e={};if(x&&x.trim()&&(e.email=x.trim()),b&&b.trim()&&(e.phone=b.trim()),!e.email&&!e.phone)return E("Add an email or phone to continue."),void N(!1);const n=(await Qi.patch("/candidates/".concat(t,"/contact"),e)).data;va.success("Contact info saved"),h(!1),l&&l(n)}catch(zf){var e,n;const a=(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Could not save contact info.";E(a)}finally{N(!1)}},"data-testid":"".concat(d,"-save"),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:w?"Saving\u2026":"Save"})]})]})]})};function VS(e){if(!e)return"";const t=new Date(e).getTime(),n=Date.now(),a=Math.floor((n-t)/864e5);if(a<=0)return"today";if(1===a)return"yesterday";if(a<30)return"".concat(a," days ago");const r=Math.floor(a/30);return r<12?"".concat(r," month").concat(r>1?"s":""," ago"):new Date(e).toLocaleDateString()}function zS(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).embedded,t=void 0!==e&&e;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!0),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)([]),2),p=m[0],f=m[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=Ue((0,o.useState)(""),2),y=b[0],j=b[1],w=Ue((0,o.useState)(""),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!1),2),E=k[0],D=k[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{l(!0);try{const t=(await Qi.get("/resume-intel/talent-bench")).data;e||r(t.items||[])}catch(zf){var t,n;e||va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not load Talent Pool.")}finally{e||l(!1)}})(),()=>{e=!0}},[]);const _=()=>{u(null),j(""),A("")},C=(0,o.useMemo)(()=>a.filter(e=>e.is_my_entry).length,[a]);return(0,Pe.jsxs)("div",{className:t?"":"px-6 lg:px-10 py-10 max-w-6xl","data-testid":"talent-bench-page",children:[!t&&(0,Pe.jsx)("div",{className:"flex items-end justify-between gap-4 flex-wrap mb-8",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"TALENT POOL \xb7 SHARED ACROSS YOUR ORG"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",children:"Candidates worth keeping warm"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["Strong candidates anyone on your team has saved for future roles."," ",a.length," in the pool",a.length>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" ","\xb7 ",(0,Pe.jsx)("span",{className:"font-mono",children:C})," added by you"]}),"."]})]})}),t&&!s&&a.length>0&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mb-4","data-testid":"talent-bench-embedded-summary",children:[a.length," in the pool",a.length>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 ",(0,Pe.jsx)("span",{className:"font-mono",children:C})," added by you"]}),". Shared across your organization."]}),s&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground","data-testid":"talent-bench-loading",children:"Loading the pool\u2026"}),!s&&0===a.length&&(0,Pe.jsxs)("div",{className:"rounded-2xl border border-border bg-white p-10 text-center","data-testid":"talent-bench-empty",children:[(0,Pe.jsx)(UF,{size:28,weight:"duotone",className:"mx-auto mb-3 text-muted-foreground"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"No one in the pool yet."}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1.5 max-w-md mx-auto",children:["When anyone on your team finds a candidate worth remembering for a future role, they can use"," ",(0,Pe.jsx)("span",{className:"font-mono text-[12px] bg-secondary px-1.5 py-0.5 rounded",children:"Add to Talent Pool"})," ","on the Resume snapshot tab. They'll appear here for everyone in your org."]}
2)]}),!s&&a.length>0&&(0,Pe.jsx)("div",{className:"space-y-3","data-testid":"talent-bench-list",children:a.filter(e=>e&&e.candidate_user_id).map(e=>{const t=(e.first_name||"").trim(),n=(e.last_name||"").trim(),a=t||n?"".concat(t," ").concat(n).trim():"Unnamed candidate",i=((null===t||void 0===t?void 0:t[0])||(null===n||void 0===n?void 0:n[0])||"?")+(t&&n?n[0]:"");return(0,Pe.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5 flex items-start gap-4 hover:border-[#1E3A8A] transition-colors","data-testid":"talent-bench-item-".concat(e.candidate_user_id),children:[(0,Pe.jsx)("div",{className:"w-12 h-12 rounded-xl bg-[#041C3A] text-white grid place-items-center font-bold font-display text-lg shrink-0",children:i}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-base","data-testid":"talent-bench-name-".concat(e.candidate_user_id),children:a}),null!=e.years_experience&&(0,Pe.jsxs)("span",{className:"text-[11px] font-mono text-muted-foreground",children:["\xb7 ",e.years_experience," yrs experience"]}),e.is_my_entry?(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono uppercase tracking-wider bg-[#041C3A] text-white","data-testid":"talent-bench-yours-".concat(e.candidate_user_id),children:"Saved by you"}):e.added_by_name&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono uppercase tracking-wider border border-border text-muted-foreground","data-testid":"talent-bench-added-by-".concat(e.candidate_user_id),children:[(0,Pe.jsx)(Mg,{size:10,weight:"bold"}),"Saved by ",e.added_by_name]})]}),e.headline&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground mt-0.5",children:e.headline}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-2",children:(e.skills||[]).slice(0,6).map(e=>(0,Pe.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-mono uppercase tracking-wider border bg-secondary text-foreground border-border",children:e},e))}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1 mt-3 text-xs text-muted-foreground",children:[e.primary_email&&!ZS(e.primary_email)&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(Nx,{size:12})," ",e.primary_email]}),ZS(e.primary_email)&&(0,Pe.jsx)(BS,{candidateUserId:e.candidate_user_id,currentEmail:e.primary_email,currentPhone:e.phone,size:"chip",onUpdated:t=>{r(n=>n.map(n=>n.candidate_user_id===e.candidate_user_id?h(h({},n),{},{primary_email:t.primary_email||n.primary_email,phone:t.phone||n.phone}):n))},testIdPrefix:"talent-bench-".concat(e.candidate_user_id,"-missing-email")}),e.phone&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(KF,{size:12})," ",e.phone]}),e.added_at&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(QF,{size:12})," Added ",VS(e.added_at)]})]})]}),(0,Pe.jsxs)("div",{className:"flex flex-col gap-2 shrink-0",children:[(0,Pe.jsxs)(Lo,{size:"sm",onClick:()=>(async e=>{u(e),j(""),A(""),v(!0);try{const e=((await Qi.get("/jobs/mine")).data||[]).filter(e=>!e.is_archived&&"closed"!==(e.status||"").toLowerCase());f(e)}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not load your jobs."),f([])}finally{v(!1)}})(e),"data-testid":"talent-bench-pull-".concat(e.candidate_user_id),className:"rounded-md bg-[#041C3A] hover:bg-[#1E3A8A] text-white",children:[(0,Pe.jsx)(eS,{size:14,weight:"bold",className:"mr-1"}),"Pull into pipeline"]}),e.is_my_entry&&(0,Pe.jsx)(Lo,{variant:"outline",size:"sm",onClick:()=>(async e=>{try{await Qi.post("/resume-intel/candidates/".concat(e,"/talent-bench"),{enabled:!1}),r(t=>t.filter(t=>t.candidate_user_id!==e)),va.success("Removed from Talent Pool")}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not remove.")}}
2)(e.candidate_user_id),"data-testid":"talent-bench-remove-".concat(e.candidate_user_id),className:"rounded-md",children:"Remove"})]})]},e.candidate_user_id)})}),(0,Pe.jsx)(Kd,{open:!!d,onOpenChange:e=>!e&&_(),children:(0,Pe.jsxs)(Qd,{"data-testid":"talent-bench-pull-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{children:["Pull"," ",d&&"".concat(d.first_name||""," ").concat(d.last_name||"").trim()||"candidate"," ","into a role"]}),(0,Pe.jsx)(tu,{children:"They'll stay on the shared bench and a new application will be created for the role you choose. If they're already on that role's pipeline, nothing duplicates."})]}),(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("label",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground mb-1.5 block",children:"Pick an open role"}),g?(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground",children:"Loading your jobs\u2026"}):0===p.length?(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"talent-bench-pull-no-jobs",children:"You don't have any active jobs to pull this candidate into."}):(0,Pe.jsxs)(Sf,{value:y,onValueChange:j,children:[(0,Pe.jsx)(Of,{"data-testid":"talent-bench-pull-job-select",children:(0,Pe.jsx)(Mf,{placeholder:"Select a job"})}),(0,Pe.jsx)(Pf,{children:p.map(e=>(0,Pe.jsxs)(Lf,{value:e.id,"data-testid":"talent-bench-pull-job-option-".concat(e.id),children:[e.title,e.location?" \xb7 ".concat(e.location):""]},e.id))})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("label",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground mb-1.5 block",children:"Note (optional)"}),(0,Pe.jsx)(Bo,{value:N,onChange:e=>A(e.target.value.slice(0,500)),placeholder:"Why is this a fit for this role?",rows:3,"data-testid":"talent-bench-pull-note"})]})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:_,"data-testid":"talent-bench-pull-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(d&&y){D(!0);try{const e=await Qi.post("/resume-intel/talent-bench/pull",{candidate_user_id:d.candidate_user_id,job_id:y,note:N});e.data.created?va.success("".concat(d.first_name||"Candidate"," added to your pipeline.")):va.info("They were already on this role's pipeline."),_()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not pull into pipeline.")}finally{D(!1)}}},disabled:!y||E,"data-testid":"talent-bench-pull-confirm",className:"bg-[#041C3A] hover:bg-[#1E3A8A] text-white",children:E?"Pulling\u2026":"Pull into pipeline"})]})]})})]})}const qS=["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],US=["__scopeSwitch"],WS=["__scopeSwitch","control","checked","bubbles"];var YS="Switch",KS=Ue(Jo(YS),2),GS=KS[0],$S=(KS[1],Ue(GS(YS),2)),QS=$S[0],XS=$S[1],JS=o.forwardRef((e,t)=>{const n=e.__scopeSwitch,a=e.name,r=e.checked,i=e.defaultChecked,s=e.required,l=e.disabled,c=e.value,d=void 0===c?"on":c,u=e.onCheckedChange,m=e.form,p=Ie(e,qS),f=Ue(o.useState(null),2),x=f[0],g=f[1],v=us(t,e=>g(e)),b=o.useRef(!1),y=!x||(m||!!x.closest("form")),j=Ue(sl({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:u,caller:YS}),2),w=j[0],N=j[1];return(0,Pe.jsxs)(QS,{scope:n,checked:w,disabled:l,children:[(0,Pe.jsx)(zo.button,h(h({type:"button",role:"switch","aria-checked":w,"aria-required":s,"data-state":aM(w),"data-disabled":l?"":void 0,disabled:l,value:d},p),{},{ref:v,onClick:$o(e.onClick,e=>{N(e=>!e),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,Pe.jsx)(nM,{control:x,bubbles:!b.current,name:a,value:d,checked:w,required:s,disabled:l,form:m,style:{transform:"translateX(-100%)"}})]})});JS.displayName=YS;var eM="SwitchThumb",tM=o.forwardRef((e,t)=>{const n=e.__scopeSwitch,a=Ie(e,US),r=XS(eM,n);return(0,Pe.jsx)(zo.span,h(h({"data-state":aM(r.checked),"data-disabled":r.disabled?"":void 0},a),{},{ref:t}))});tM.displayName=eM;var nM=o.forwardRef((e,t)=>{e.__scopeSwitch;let n=e.control,a=e.checked,r=e.bubbles,i=void 0===r||r,s=Ie(e,WS);const l=o.useRef(null),c=us(l,t),d=_p(a),u=Jm(n);return o.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==a&&n){const t=new Event("click",{bubbles:i});n.call(e,a),e.dispatchEvent(t)}},[d,a,i]),(0,Pe.jsx)("input",h(h({type:"checkbox","aria-hidden":!0,defaultChecked:a},s),{},{tabIndex:-1,ref:c,style:h(h(h({},s.style),u),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}
2))});function aM(e){return e?"checked":"unchecked"}nM.displayName="SwitchBubbleInput";var rM=JS,iM=tM;const sM=["className"],oM=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,sM);return(0,Pe.jsx)(rM,h(h({className:Ro("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},a),{},{ref:t,children:(0,Pe.jsx)(iM,{className:Ro("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}))});oM.displayName=rM.displayName;const lM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.26,90.4a108,108,0,0,1-177.63,114A108,108,0,0,1,195.41,43.63l20.1-20.11a12,12,0,0,1,17,17l-96,96a12,12,0,1,1-17-17l24-24a36,36,0,1,0,19.76,39.65,12,12,0,0,1,23.53,4.74,60,60,0,1,1-25.73-62L178.3,60.74a84,84,0,1,0,28.46,38,12,12,0,1,1,22.5-8.35Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,128a48,48,0,1,1-48-48A48,48,0,0,1,176,128Z",opacity:"0.2"}),o.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32L167.6,99.71h0l-37.71,37.71-23.95,23.95a40,40,0,0,0,62-35.67,8,8,0,1,1,16-.9,56,56,0,0,1-95.5,42.79h0a56,56,0,0,1,73.13-84.43L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220.06,84a102.06,102.06,0,1,1-24.31-32.27l24-24a6,6,0,0,1,8.48,8.49l-96,96a6,6,0,1,1-8.48-8.49l29.39-29.4a42,42,0,1,0,16.78,31.24,6,6,0,1,1,12-.68A54,54,0,1,1,161.7,85.83l25.54-25.55a89.91,89.91,0,1,0,22,28.93A6,6,0,1,1,220.06,84Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M218.26,84.89a100.16,100.16,0,1,1-22.44-30.37l25.35-25.35a4,4,0,1,1,5.66,5.66l-96,96a4,4,0,0,1-5.66-5.66l31-31a44,44,0,1,0,15.78,31.3,4,4,0,0,1,8-.46,52,52,0,1,1-18.1-36.51l28.34-28.33A92,92,0,0,0,63,193.05,92,92,0,0,0,211,88.33a4,4,0,1,1,7.22-3.44Z"}))]]),cM=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:lM})));cM.displayName="TargetIcon";const dM=cM,uM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212ZM163.27,77l-56,24a12,12,0,0,0-6.3,6.3l-24,56A12,12,0,0,0,92.73,179l56-24a12,12,0,0,0,6.3-6.3l24-56A12,12,0,0,0,163.27,77Zm-28.41,57.89-24,10.29,10.29-24,24-10.29Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm16,112L80,176l32-64,64-32Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm51.58,57.79-32,64a4.08,4.08,0,0,1-1.79,1.79l-64,32a4,4,0,0,1-5.37-5.37l32-64a4.08,4.08,0,0,1,1.79-1.79l64-32A4,4,0,0,1,179.58,81.79Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM173.32,74.63l-64,32a6,6,0,0,0-2.69,2.69l-32,64A6,6,0,0,0,80,182a6.06,6.06,0,0,0,2.68-.63l64-32a6,6,0,0,0,2.69-2.69l32-64a6,6,0,0,0-8.05-8.05Zm-33.79,64.9L93.42,162.58l23-46.11,46.11-23Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM174.21,76.42l-64,32a4.08,4.08,0,0,0-1.79,1.79l-32,64A4,4,0,0,0,80,180a4.05,4.05,0,0,0,1.79-.42l64-32a4.08,4.08,0,0,0,1.79-1.79l32-64a4,4,0,0,0-5.37-5.37ZM141,141l-52.08,26L115,115l52.08-26Z"}))]]),mM=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:uM})));mM.displayName="CompassIcon";const pM=mM,hM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M108,108a12,12,0,0,1,12-12h56a12,12,0,0,1,0,24H120A12,12,0,0,1,108,108Zm68,28H120a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm52-88V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204H68V52H52ZM204,52H92V204H204Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),o.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM80,208H48V48H80Zm96-56H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h64A6,6,0,0,1,182,112Zm-6,26H112a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm46-90V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H74V46H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210ZM210,48a2,2,0,0,0-2-2H86V210H208a2,2,0,0,0,2-2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h64A4,4,0,0,1,180,112Zm-4,28H112a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm44-92V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H76V44H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212ZM212,48a4,4,0,0,0-4-4H84V212H208a4,4,0,0,0,4-4Z"}))]]),fM=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:hM})));fM.displayName="NotebookIcon";const xM=fM,gM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),vM=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:gM})));vM.displayName="ArrowsClockwiseIcon";const bM=vM;function yM(e){let t=e.items,n=void 0===t?[]:t,a=e.showBack,r=void 0===a||a,i=e.backFallback,s=void 0===i?"/":i;const o=zt(),l=Zt();return n.length?(0,Pe.jsxs)("div",{className:"no-print flex items-center gap-2 mb-3","data-testid":"breadcrumbs",children:[r&&(0,Pe.jsxs)("button",{"data-testid":"breadcrumbs-back-btn",onClick:()=>{var e;const t=null===(e=l.state)||void 0===e?void 0:e.from;t?o(t):window.history.length>1?o(-1):o(s)},className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-[#0F172A] border border-border rounded px-2 py-1 transition-colors",children:[(0,Pe.jsx)(nw,{size:12})," Back"]}),(0,Pe.jsx)("nav",{className:"text-[11px] text-muted-foreground font-mono uppercase tracking-wider flex items-center gap-1 flex-wrap","aria-label":"Breadcrumb",children:n.map((e,t)=>{const a=t===n.length-1;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[e.to&&!a?(0,Pe.jsx)(Yn,{to:e.to,state:e.state,className:"hover:text-[#0F4FA8]","data-testid":"breadcrumb-link-".concat(t),children:e.label}):(0,Pe.jsx)("span",{className:a?"text-foreground":"","data-testid":"breadcrumb-current-".concat(t),children:e.label}),!a&&(0,Pe.jsx)(jC,{size:10,className:"text-muted-foreground/60"})]},t)})})]}):null}function jM(e){let t=e.evidence,n=e.testId;if(!t)return null;const a=t.label,r=t.past_hires;let i,s,o;if("worked_well"===a)i="Worked well in ".concat(r," past hire").concat(1===r?"":"s"),s="border-emerald-300 bg-emerald-50 text-emerald-900",o=Yf;else if("hasnt_worked_well"===a)i="Did not work well in ".concat(r," past hire").concat(1===r?"":"s"),s="border-rose-300 bg-rose-50 text-rose-900",o=AN;else{if("insufficient"!==a)return null;i="Not enough history yet",s="border-zinc-200 bg-zinc-50 text-zinc-700",o=bA}return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium leading-none whitespace-nowrap ".concat(s),title:"Based on results from similar roles at your company.","data-testid":n,"data-evidence-label":a,children:[(0,Pe.jsx)(o,{size:11,weight:"fill","aria-hidden":"true"}),i]})}const wM=[{key:"must_have_traits",label:"Must-have traits",placeholder:"e.g. Multi-dept P&L ownership",accent:"#0F4FA8"},{key:"preferred_traits",label:"Preferred traits",placeholder:"e.g. Track record of turning around a difficult customer relationship",accent:"#0F172A"},{key:"nice_to_have_traits",label:"Nice-to-have",placeholder:"e.g. M&A or store transition",accent:"#0F172A"},{key:"red_flag_traits",label:"Red flags",placeholder:"e.g. Frequent <12mo tenures",accent:"#dc2626"}];function NM(e){var t,n,a;let r=e.jobId,i=e.intelligence,s=e.onUpdate,l=e.onApplySuggestions,c=e.autoCompute,d=e.onToggleAutoCompute,u=e.evidenceMap;const m=Ue((0,o.useState)(!1),2),p=m[0],h=m[1];null===(t=i.must_have_traits)||void 0===t||t.length,null===(n=i.preferred_traits)||void 0===n||n.length,null===(a=i.nice_to_have_traits)||void 0===a||a.length;return(0,Pe.jsxs)("section",{className:"mt-8 border border-border rounded-lg p-6 bg-white","data-testid":"role-traits-section",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(BC,{size:20,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-lg",children:"What matters most for this role"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-3xl",children:"Choose the qualities you want candidates to have. AROS will show whether each quality has worked well, has not worked well, or does not have enough history yet."})]}),(0,Pe.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:(0,Pe.jsxs)(Lo,{type:"button",onClick:async()=>{if(r){h(!0);try{const e=(await Qi.post("/jobs/".concat(r,"/trait-suggestions"))).data;l(e.suggestions,"ai"),va.success("Role traits generated. Edit, save, and they'll apply to candidate al
2ignment.")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Generation failed")}finally{h(!1)}}else va.error("Save the job first to generate role traits")},disabled:p||!r,"data-testid":"role-traits-generate-btn",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),p?"Working\u2026":"Suggest qualities for this role"]})})]}),!r&&(0,Pe.jsxs)("div",{className:"mt-4 text-sm bg-secondary/50 border border-border rounded-md px-3 py-2.5 flex items-start gap-2",children:[(0,Pe.jsx)(bA,{size:16,className:"shrink-0 mt-0.5 text-muted-foreground"}),(0,Pe.jsx)("span",{children:"Save the job once to enable suggestions. You can still add qualities manually below now."})]}),d&&(0,Pe.jsxs)("div",{className:"mt-4 flex items-start gap-3 bg-[#0F4FA8]/[0.03] border border-[#0F4FA8]/20 rounded-md px-4 py-3","data-testid":"auto-compute-toggle-wrap",children:[(0,Pe.jsx)(oM,{"data-testid":"auto-compute-toggle",checked:!!c,onCheckedChange:d,className:"mt-0.5"}),(0,Pe.jsxs)("div",{className:"text-sm min-w-0",children:[(0,Pe.jsx)("div",{className:"font-medium",children:"Compare candidates to these qualities automatically"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:"When candidates are added, AROS will show how their experience matches the qualities you selected. This will not change their score or ranking."})]})]}),(0,Pe.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-2 gap-4",children:wM.map(e=>(0,Pe.jsx)(AM,{fieldKey:e.key,label:e.label,placeholder:e.placeholder,accent:e.accent,items:i[e.key]||[],onChange:t=>s(e.key,t),evidenceMap:u},e.key))})]})}function AM(e){let t=e.fieldKey,n=e.label,a=e.placeholder,r=e.accent,i=e.items,s=e.onChange,l=e.evidenceMap;const c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(-1),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=e=>{const t=(e||"").trim();t&&(i.some(e=>e.toLowerCase()===t.toLowerCase())||s([...i,t]),u(""))},b=()=>{const e=x.trim();if(e){const t=[...i];t[p]=e,s(t)}h(-1),g("")};return(0,Pe.jsxs)("div",{"data-testid":"role-traits-".concat(t),className:"border border-border rounded-md p-4 bg-secondary/20",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",style:{color:r},children:[(0,Pe.jsx)(BC,{size:14,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold text-foreground",children:n}),(0,Pe.jsx)("span",{className:"ml-auto text-[10px] text-muted-foreground font-mono",children:i.length})]}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-1.5 min-h-[28px]",children:[0===i.length&&(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground italic",children:"No items yet \u2014 click Generate or add manually."}),i.map((e,n)=>p===n?(0,Pe.jsx)(Io,{autoFocus:!0,value:x,onChange:e=>g(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),b()),"Escape"===e.key&&(h(-1),g(""))},onBlur:b,className:"h-7 text-xs w-44","data-testid":"role-traits-".concat(t,"-edit-input")},n):(0,Pe.jsxs)("span",{className:"pill border inline-flex items-center gap-1 group cursor-text max-w-full",style:{borderColor:"".concat(r,"55"),color:r,backgroundColor:"".concat(r,"0d")},onClick:()=>(e=>{h(e),g(i[e])})(n),"data-testid":"role-traits-".concat(t,"-item-").concat(n),title:"Click to edit",children:[(0,Pe.jsx)("span",{className:"truncate",children:e}),(0,Pe.jsx)(jM,{evidence:l?l[e]:null,testId:"role-traits-".concat(t,"-evidence-").concat(n)}),(0,Pe.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),(e=>
2{s(i.filter((t,n)=>n!==e))})(n)},className:"ml-0.5 opacity-60 hover:opacity-100","data-testid":"role-traits-".concat(t,"-remove-").concat(n),"aria-label":"Remove",children:(0,Pe.jsx)($f,{size:11})})]},n))]}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Io,{value:d,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),v(d))},placeholder:a,className:"h-8 text-sm","data-testid":"role-traits-".concat(t,"-input")}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline",size:"sm",onClick:()=>v(d),className:"rounded-md h-8","data-testid":"role-traits-".concat(t,"-add"),children:"Add"})]})]})}const kM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),EM=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:kM})));EM.displayName="PlusIcon";const DM=EM,_M="".concat("https://www.getaros.ai","/api");function CM(e){let t=e.value,n=void 0===t?{background_patterns:[],trait_focus:[],custom_traits:[]}:t,a=e.onChange,r=e.traitsAutoCompute,i=void 0===r||r,s=e.onAutoComputeChange;const l=Ue((0,o.useState)(null),2),c=l[0],d=l[1],u=Ue((0,o.useState)(null),2),m=u[0],p=u[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(""),2),b=v[0],y=v[1],j="undefined"!==typeof window?localStorage.getItem("aros_token"):null;(0,o.useEffect)(()=>{let e=!0;return(async()=>{if(j)try{const t=await Ki.get("".concat(_M,"/traits/catalog"),{headers:{Authorization:"Bearer ".concat(j)}});e&&d(t.data)}catch(zf){var t,n,a;e&&p((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.detail)||void 0===a?void 0:a.message)||"Traits feature is not enabled in this environment.")}})(),()=>{e=!1}},[j]);const w=n.background_patterns||[],N=n.trait_focus||[],A=n.custom_traits||[],k=(e,t)=>e.includes(t)?e.filter(e=>e!==t):[...e,t],E=e=>a&&a(h(h({},n),e));return m?(0,Pe.jsxs)("div",{className:"rounded-md border p-4 bg-amber-50 border-amber-300 text-amber-900 text-sm flex items-start gap-2","data-testid":"traits-section-disabled",children:[(0,Pe.jsx)(Qx,{size:16,weight:"fill",className:"mt-0.5"}),(0,Pe.jsx)("div",{children:m})]}):c?(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"traits-to-look-for",children:[(0,Pe.jsx)("div",{children:(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500",children:"Optional"}),(0,Pe.jsx)("h3",{className:"mt-1 font-semibold text-lg text-slate-900",children:"What are we looking for?"}),(0,Pe.jsx)("p",{className:"mt-1 text-sm text-slate-600 max-w-2xl",children:"Pick backgrounds and traits AROS should surface with r\xe9sum\xe9 evidence. Nothing here scores or ranks candidates \u2014 matches decorate the applicant page as quotable receipts."})]}),(0,Pe.jsxs)("label",{className:"text-xs text-slate-600 flex items-center gap-2 whitespace-nowrap","data-testid":"traits-auto-compute-toggle",children:[(0,Pe.jsx)("input",{type:"checkbox",checked:i,onChange:e=>s&&s(e.target.checked)}),"Auto-compute for each new applicant"]})]})}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold text-slate-800 mb-2",children:"Backgroun
2d patterns"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"traits-background-chips",children:c.background_patterns.map(e=>{const t=w.includes(e.slug);return(0,Pe.jsx)("button",{type:"button",onClick:()=>E({background_patterns:k(w,e.slug)}),"data-testid":"background-chip-".concat(e.slug),title:e.definition,className:"px-3 py-1.5 rounded-full text-xs font-medium border transition-colors ".concat(t?"bg-slate-900 text-white border-slate-900":"bg-white text-slate-700 border-slate-300 hover:border-slate-500"),children:e.label},e.slug)})})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold text-slate-800 mb-2",children:"Traits to look for"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"traits-trait-chips",children:c.traits.map(e=>{const t=N.includes(e.slug);return(0,Pe.jsx)("button",{type:"button",onClick:()=>E({trait_focus:k(N,e.slug)}),"data-testid":"trait-chip-".concat(e.slug),title:e.definition,className:"px-3 py-1.5 rounded-full text-xs font-medium border transition-colors ".concat(t?"bg-slate-900 text-white border-slate-900":"bg-white text-slate-700 border-slate-300 hover:border-slate-500"),children:e.label},e.slug)})})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-sm font-semibold text-slate-800 mb-2",children:["Custom traits ",(0,Pe.jsxs)("span",{className:"text-xs font-normal text-slate-500",children:["(",A.length,"/",5,") \u2014 both label and definition required"]})]}),A.length>0&&(0,Pe.jsx)("ul",{className:"mb-3 space-y-2","data-testid":"traits-custom-list",children:A.map(e=>(0,Pe.jsxs)("li",{className:"rounded-md border p-3 flex items-start gap-3","data-testid":"custom-trait-".concat(e.custom_id),children:[(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"text-sm font-medium text-slate-900 truncate",children:e.label}),(0,Pe.jsx)("div",{className:"text-xs text-slate-600 mt-0.5",children:e.definition})]}),(0,Pe.jsx)("button",{type:"button",onClick:()=>{return t=e.custom_id,E({custom_traits:A.filter(e=>e.custom_id!==t)});var t},className:"text-slate-400 hover:text-red-600","data-testid":"remove-custom-".concat(e.custom_id),children:(0,Pe.jsx)($f,{size:16})})]},e.custom_id))}),A.length<5&&(0,Pe.jsxs)("div",{className:"rounded-md border border-dashed border-slate-300 p-3 space-y-2",children:[(0,Pe.jsx)(Io,{value:x,onChange:e=>g(e.target.value.slice(0,60)),placeholder:"Trait label (e.g. Comfortable with unhappy customers)","data-testid":"custom-trait-label-input",maxLength:60}),(0,Pe.jsx)(Bo,{value:b,onChange:e=>y(e.target.value),placeholder:"Evidence criterion \u2014 what should the r\xe9sum\xe9 show for this trait to match? (Required. AROS uses this verbatim as the matching contract.)","data-testid":"custom-trait-definition-input",rows:3}),(0,Pe.jsxs)(Lo,{type:"button",size:"sm",onClick:()=>{var e;const t=x.trim(),n=b.trim();t&&n&&(A.length>=5||(E({custom_traits:[...A,{custom_id:(null===(e=crypto)||void 0===e?void 0:e.randomUUID)&&crypto.randomUUID()||"".concat(Date.now(),"-").concat(Math.random()),label:t,definition:n}]}),g(""),y("")))},disabled:!x.trim()||!b.trim(),"data-testid":"custom-trait-add-btn",children:[(0,Pe.jsx)(DM,{size:14,className:"mr-1"})," Add custom trait"]})]})]})]}):(0,Pe.jsx)("div",{className:"text-sm text-slate-500","data-testid":"traits-section-loading",children:"Loading trait catalog\u2026"})}
2const FM={use_company_intel:!1,success_traits:[],interview_focus_areas:[],hidden_talent_backgrounds:[],hiring_recommendations:[],must_have_traits:[],preferred_traits:[],nice_to_have_traits:[],red_flag_traits:[],role_traits_source:null,role_traits_generated_at:null,source_profile_id:null,applied_at:null},SM={title:"",department:"",location:"",compensation_min:0,compensation_max:0,employment_type:"Full-time",industry:"General",experience_required:0,required_skills:[],preferred_skills:[],description:"",hiring_manager_name:"",status:"open",remote_option:"Onsite",intelligence:h({},FM),auto_compute_trait_alignment:!0};function MM(){var e,t,n,a;const r=qt().id,i=zt(),s=Ue((0,o.useState)(SM),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),f=p[0],x=p[1],g=Ue((0,o.useState)(null),2),v=g[0],b=g[1],y=Ue((0,o.useState)({}),2),j=y[0],w=y[1],N=(0,o.useRef)(0);(0,o.useEffect)(()=>{Qi.get("/companies/intelligence").then(e=>b(e.data.profile)).catch(()=>{})},[]),(0,o.useEffect)(()=>{r&&Qi.get("/jobs/".concat(r)).then(e=>{const t=e.data||{};c(h(h(h({},SM),t),{},{intelligence:h(h({},FM),t.intelligence||{})}))})},[r]),(0,o.useEffect)(()=>{const e=l.intelligence||FM,t=[...(e.must_have_traits||[]).map(e=>({trait:e,category:"must_have"})),...(e.preferred_traits||[]).map(e=>({trait:e,category:"preferred"})),...(e.nice_to_have_traits||[]).map(e=>({trait:e,category:"nice_to_have"})),...(e.red_flag_traits||[]).map(e=>({trait:e,category:"red_flag"}))].filter(e=>e.trait&&e.trait.trim());if(!l.title||!l.title.trim()||0===t.length)return w({}),void(N.current+=1);const n=++N.current,a=setTimeout(async()=>{try{var e;const a=await Qi.post("/outcome-intel/traits/evidence-lookup",{job_title:l.title,traits:t});if(n!==N.current)return;w((null===(e=a.data)||void 0===e?void 0:e.results)||{})}catch(a){if(n!==N.current)return;w({})}},400);return()=>clearTimeout(a)},[l.title,JSON.stringify((null===(e=l.intelligence)||void 0===e?void 0:e.must_have_traits)||[]),JSON.stringify((null===(t=l.intelligence)||void 0===t?void 0:t.preferred_traits)||[]),JSON.stringify((null===(n=l.intelligence)||void 0===n?void 0:n.nice_to_have_traits)||[]),JSON.stringify((null===(a=l.intelligence)||void 0===a?void 0:a.red_flag_traits)||[])]);const A=(e,t)=>c(n=>h(h({},n),{},{[e]:t})),k=(e,t)=>c(n=>h(h({},n),{},{intelligence:h(h({},n.intelligence||FM),{},{[e]:t})})),E=function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).force,t=void 0!==e&&e;if(!v)return void va.error("No Company Intelligence Profile yet \u2014 create one first");const n=l.intelligence||FM,a=e=>{const a=v[e]||[];if(t)return[...a];const r=new Set((n[e]||[]).map(e=>e.toLowerCase()));return[...n[e]||[],...a.filter(e=>!r.has(String(e).toLowerCase()))]};c(e=>h(h({},e),{},{intelligence:{use_company_intel:!0,success_traits:a("success_traits"),interview_focu
2s_areas:a("interview_focus_areas"),hidden_talent_backgrounds:a("hidden_talent_backgrounds"),hiring_recommendations:a("hiring_recommendations"),source_profile_id:v.id||null,applied_at:(new Date).toISOString()}})),va.success(t?"Reset to company suggestions":"Suggestions applied")},D=(e,t)=>{t.trim()&&c(n=>h(h({},n),{},{[e]:[...new Set([...n[e],t.trim()])]}))};return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-4xl mx-auto",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Jobs",to:"/app/employer/jobs"},{label:r?"Edit Job":"New Job"}],backFallback:"/app/employer/jobs"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:r?"EDIT JOB":"NEW JOB"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:r?"Edit posting":"Post a new role"}),(null===v||void 0===v?void 0:v.name)&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-1","data-testid":"job-form-company-line",children:["Posting for ",(0,Pe.jsx)("span",{className:"font-medium text-foreground",children:v.name})]}),(0,Pe.jsxs)("section",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(OM,{label:"Title",full:!0,children:(0,Pe.jsx)(Io,{"data-testid":Qw,value:l.title,onChange:e=>A("title",e.target.value),placeholder:"e.g. Account Manager, Field Engineer, or Warehouse Supervisor"})}),(0,Pe.jsx)(OM,{label:"Department",children:(0,Pe.jsx)(Io,{value:l.department,onChange:e=>A("department",e.target.value),placeholder:"e.g. Sales, Engineering, Operations"})}),(0,Pe.jsx)(OM,{label:"Location",children:(0,Pe.jsx)(Io,{value:l.location,onChange:e=>A("location",e.target.value),placeholder:"Dallas, TX"})}),(0,Pe.jsx)(OM,{label:"Employment type",children:(0,Pe.jsxs)(Sf,{value:l.employment_type,onValueChange:e=>A("employment_type",e),children:[(0,Pe.jsx)(Of,{children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"Full-time",children:"Full-time"}),(0,Pe.jsx)(Lf,{value:"Part-time",children:"Part-time"}),(0,Pe.jsx)(Lf,{value:"Contract",children:"Contract"})]})]})}),(0,Pe.jsx)(OM,{label:"Remote option",children:(0,Pe.jsxs)(Sf,{value:l.remote_option,onValueChange:e=>A("remote_option",e),children:[(0,Pe.jsx)(Of,{children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"Onsite",children:"Onsite"}),(0,Pe.jsx)(Lf,{value:"Hybrid",children:"Hybrid"}),(0,Pe.jsx)(Lf,{value:"Remote",children:"Remote"})]})]})}),(0,Pe.jsx)(OM,{label:"Experience required (years)",children:(0,Pe.jsx)(Io,{type:"number",value:l.experience_required,onChange:e=>A("experience_required",e.target.value)})}),(0,Pe.jsx)(OM,{label:"Compensation min ($)",children:(0,Pe.jsx)(Io,{type:"number",value:l.compensation_min,onChange:e=>A("compensation_min",e.target.value)})}),(0,Pe.jsx)(OM,{label:"Compensation max ($)",children:(0,Pe.jsx)(Io,{type:"number",value:l.compensation_max,onChange:e=>A("compensation_max",e.target.value)})}),(0,Pe.jsx)(OM,{label:"Hiring manager",children:(0,Pe.jsx)(Io,{value:l.hiring_manager_name,onChange:e=>A("hiring_manager_name",e.target.value)})}),(0,Pe.jsx)(OM,{label:"Status",children:(0,Pe.jsxs)(Sf,{value:l.status,onValueChange:e=>A("status",e),children:[(0,Pe.jsx)(Of,{children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"draft",children:"Draft"}),(0,Pe.jsx)(Lf,{value:"open",children:"Open"}),(0,Pe.jsx)(Lf,{value:"paused",children:"Paused"}),(0,Pe.jsx)(Lf,{value:"closed",children:"Closed"})]})]})})]}),(0,Pe.jsxs)("section",{className:"mt-6",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground font-semibold",children:"Description"}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm","data-testid":Jw,onClick:async()=>{if(l.title){x(!0);try{const e=(await Qi.post("/ai/job-description",{title:l.title,extra:"Location: ".concat(l.location,". Dept: ").concat(l.department,".")})).data;A("description",e.description),va.success("AI drafted job description")}catch(zf){va.error("Generation failed")}finally{x(!1)}}else va.error("Set a title first")},disabled:f,className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," ",f?"Drafting\u2026":"AI draft"]})]}),(0,Pe.jsx)(Bo,{rows:10,value:l.description,onChange:e=>A("description",e.target.value),className:"mt-2",placeholder:"Use the AI draft button for a head start."})]}),(0,Pe.jsxs)("section",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,Pe.jsx)(RM,{label:"Required skills",items:l.required_skills,onAdd:e=>D("required_skills",e),onRemove:e=>A("required_skills",l.required_skills.filter(t=>t!==e))}),(0,Pe.jsx)(RM,{label:"Preferred skills",items:l.preferred_skills,onAdd:e=>D("preferred_skills",e),onRemove:e=>A("preferred_skills",l.preferred_skills.filter(t=>t!==e))})]}),(0,Pe.jsx)(PM,{intelligence:l.intelligence||FM,companyIntel:v,onUpdate:k,onToggle:e=>{if(e&&v){const e=l.intelligence||FM,t=["success_traits","interview_focu
2s_areas","hidden_talent_backgrounds","hiring_recommendations"].every(t=>0===(e[t]||[]).length);if(t)return void E({force:!1})}k("use_company_intel",e)},onApply:()=>E({force:!1}),onReset:()=>E({force:!0}),onClear:()=>c(e=>h(h({},e),{},{intelligence:h(h({},e.intelligence||FM),{},{success_traits:[],interview_focus_areas:[],hidden_talent_backgrounds:[],hiring_recommendations:[]})}))}),(0,Pe.jsx)(NM,{jobId:r,intelligence:l.intelligence||FM,autoCompute:!1!==l.auto_compute_trait_alignment,onToggleAutoCompute:e=>A("auto_compute_trait_alignment",e),onUpdate:k,evidenceMap:j,onApplySuggestions:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ai";return c(n=>h(h({},n),{},{intelligence:h(h({},n.intelligence||FM),{},{must_have_traits:e.must_have||[],preferred_traits:e.preferred||[],nice_to_have_traits:e.nice_to_have||[],red_flag_traits:e.red_flags||[],role_traits_source:t,role_traits_generated_at:(new Date).toISOString()})}))}}),(0,Pe.jsx)("div",{className:"mt-10 rounded-lg border border-slate-200 bg-white p-6","data-testid":"job-form-traits-section",children:(0,Pe.jsx)(CM,{value:{background_patterns:l.background_patterns||[],trait_focus:l.trait_focus||[],custom_traits:l.custom_traits||[]},onChange:e=>c(t=>h(h({},t),e)),traitsAutoCompute:!1!==l.traits_auto_compute,onAutoComputeChange:e=>A("traits_auto_compute",e)})}),(0,Pe.jsxs)("div",{className:"mt-10 flex gap-3",children:[(0,Pe.jsx)(Lo,{"data-testid":Xw,onClick:async function(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).skipConfirm;if(!r&&!(void 0!==e&&e)&&"undefined"!==typeof window){const e=null!==v&&void 0!==v&&v.name?" for ".concat(v.name):"";if(!window.confirm('Publish "'.concat(l.title||"this role",'"').concat(e,"? Candidates will start seeing it right away.")))return}m(!0);try{const e=h(h({},l),{},{compensation_min:Number(l.compensation_min)||0,compensation_max:Number(l.compensation_max)||0,experience_required:Number(l.experience_required)||0});r?(await Qi.put("/jobs/".concat(r),e),va.success("Job updated")):(await Qi.post("/jobs",e),va.success("Job posted".concat(null!==v&&void 0!==v&&v.name?" for ".concat(v.name):""))),i("/app/employer/jobs")}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Save failed")}finally{m(!1)}},disabled:u,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:u?"Saving\u2026":r?"Save changes":"Post job"}),(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>i(-1),className:"rounded-md",children:"Cancel"})]})]})}function OM(e){let t=e.label,n=e.children,a=e.full;return(0,Pe.jsxs)("div",{className:a?"md:col-span-2":"",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground font-semibold",children:t}),(0,Pe.jsx)("div",{className:"mt-1.5",children:n})]})}function RM(e){let t=e.label,n=e.items,a=e.onAdd,r=e.onRemove;const i=Ue((0,o.useState)(""),2),s=i[0],l=i[1];return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground font-semibold",children:t}),(0,Pe.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5 min-h-[28px]",children:n.map(e=>(0,Pe.jsxs)("span",{className:"pill bg-secondary border border-border",children:[e," ",(0,Pe.jsx)("button",{onClick:()=>r(e),className:"ml-1 opacity-60 hover:opacity-100",children:(0,Pe.jsx)($f,{size:12})})]},e))}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Io,{value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),a(s),l(""))},placeholder:"Type and press Enter"}),(0,Pe.jsx)(Lo,{variant:"outline",size:"sm",onClick:()=>{a(s),l("")},className:"rounded-md",children:"Add"})]})]})}const HM=[{key:"success_traits",label:"Success traits",icon:BC,placeholder:"e.g. Coachability"}
2,{key:"interview_focus_areas",label:"Interview focus areas",icon:dM,placeholder:"e.g. Prospecting"},{key:"hidden_talent_backgrounds",label:"Backgrounds worth a closer look",icon:pM,placeholder:"e.g. Hospitality"},{key:"hiring_recommendations",label:"Hiring recommendations",icon:xM,placeholder:"e.g. Screen for resilience"}];function PM(e){let t=e.intelligence,n=e.companyIntel,a=e.onUpdate,r=e.onToggle,i=e.onApply,s=e.onReset,o=e.onClear;const l=!(null===t||void 0===t||!t.use_company_intel),c=!!n,d=HM.some(e=>((null===t||void 0===t?void 0:t[e.key])||[]).length>0);return(0,Pe.jsxs)("section",{className:"mt-10 border border-border rounded-lg p-6 bg-secondary/30","data-testid":"job-intel-section",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(nv,{size:20,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-lg",children:"Use what your company has learned"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"AROS can suggest skills and qualities based on what has worked in your company's past hires. You can review, change, or remove every suggestion."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Pe.jsx)(oM,{"data-testid":"job-intel-toggle",checked:l,onCheckedChange:r,disabled:!c}),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground",children:"Use our hiring history"})]})]}),!c&&(0,Pe.jsxs)("div",{className:"mt-4 flex items-start gap-2 text-sm bg-white border border-border rounded-md px-3 py-2.5","data-testid":"job-intel-missing-profile",children:[(0,Pe.jsx)(bA,{size:16,className:"shrink-0 mt-0.5 text-[#0F4FA8]"}),(0,Pe.jsxs)("div",{children:["No Company Intelligence Profile yet."," ",(0,Pe.jsx)(Yn,{to:"/app/employer/company-intelligence",className:"text-[#0F4FA8] underline hover:no-underline",children:"Generate one"})," ","to enable suggestions here."]})]}),l&&c&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-2",children:[(0,Pe.jsxs)(Lo,{"data-testid":"job-intel-apply-btn",type:"button",variant:"outline",size:"sm",onClick:i,className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," Accept all suggestions"]}),(0,Pe.jsxs)(Lo,{"data-testid":"job-intel-reset-btn",type:"button",variant:"outline",size:"sm",onClick:s,className:"rounded-md",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5",weight:"duotone"})," Reset to company suggestions"]}),d&&(0,Pe.jsxs)(Lo,{"data-testid":"job-intel-clear-btn",type:"button",variant:"ghost",size:"sm",onClick:o,className:"rounded-md text-muted-foreground",children:[(0,Pe.jsx)($f,{size:14,className:"mr-1.5"})," Clear all"]}),(0,Pe.jsxs)("span",{className:"text-[11px] text-muted-foreground font-mono uppercase tracking-wider ml-auto",children:["Source: ",(0,Pe.jsx)(Yn,{to:"/app/employer/company-intelligence",className:"text-[#0F4FA8] hover:underline",children:"Company Intel"}),(null===t||void 0===t?void 0:t.applied_at)&&" \xb7 ".concat(new Date(t.applied_at).toLocaleDateString())]})]}),(0,Pe.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-2 gap-5",children:HM.map(e=>(0,Pe.jsx)(LM,{fieldKey:e.key,label:e.label,icon:e.icon,placeholder:e.placeholder,items:(null===t||void 0===t?void 0:t[e.key])||[],suggestions:(null===n||void 0===n?void 0:n[e.key])||[],onChange:t=>a(e.key,t)},e.key))})]})]})}function LM(e){let t=e.fieldKey,n=e.label,a=e.icon,r=e.placeholder,i=e.items,s=e.suggestions,l=e.onChange;const c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(-1),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=e=>{const t=(e||"").trim();t&&(i.some(e=>e.toLowerCase()===t.toLowerCase())||l([...i,t]),u(""))},b=()=>{const e=x.trim();if(e){const t=[...i];t[p]=e,l(t)}h(-1),g("")},y=new Set(i.map(e=>e.toLowerCase())),j=(s||[]).filter(e=>!y.has(String(e).toLowerCase()));return(0,Pe.jsxs)("div",{"data-testid":"job-intel-".concat(t),className:"bg-white border border-border rounded-md p-4",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 mb-2 text-[#0F4FA8]",children:[(0,Pe.jsx)(a,{size:15,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold text-foreground",children:n}),(0,Pe.jsx)("span",{className:"ml-auto text-[10px] text-muted-foreground font-mono",children:i.length})]}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-1.5 min-h-[28px]",children:[0===i.length&&(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground italic",children:"No items yet \u2014 accept suggestions below or add your own."}),i.map((e,n)=>p===n?(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1",children:(0,Pe.jsx)(Io,{autoFocus:!0,value:x,onChange:e=>g(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),b()),"Escape"===e.key&&(h(-1),g(""))},onBlur:b,className:"h-7 text-xs w-44","data-testid":"job-intel-".concat(t,"-edit-input")})},n):(0,Pe.jsxs)("span",{className:"pill bg-secondary border border-border inline-flex items-center gap-1 group cursor-text",onClick:()=>(e=>{h(e),g(i[e])})(n),"data-testid":"job-intel-".concat(t,"-item-").concat(n),title:"Click to edit",children:[e,(0,Pe.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),(e=>
2{l(i.filter((t,n)=>n!==e))})(n)},className:"ml-0.5 opacity-60 hover:opacity-100","data-testid":"job-intel-".concat(t,"-remove-").concat(n),"aria-label":"Remove",children:(0,Pe.jsx)($f,{size:11})})]},n))]}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Io,{value:d,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),v(d))},placeholder:r,className:"h-8 text-sm","data-testid":"job-intel-".concat(t,"-input")}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline",size:"sm",onClick:()=>v(d),className:"rounded-md h-8","data-testid":"job-intel-".concat(t,"-add"),children:"Add"})]}),j.length>0&&(0,Pe.jsxs)("div",{className:"mt-3 pt-3 border-t border-border",children:[(0,Pe.jsx)("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wider font-mono mb-1.5",children:"Suggested from Company Intel"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5",children:j.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>l([...i,e]),className:"pill bg-[#0F4FA8]/5 border border-[#0F4FA8]/30 text-[#0F4FA8] hover:bg-[#0F4FA8] hover:text-white transition-colors text-xs","data-testid":"job-intel-".concat(t,"-suggest-").concat(e.toLowerCase().replace(/\s+/g,"-")),title:"Add suggestion",children:["+ ",e]},e))})]})]})}const TM=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M87.5,151.52l64-64a12,12,0,0,1,17,17l-64,64a12,12,0,0,1-17-17Zm131-114a60.08,60.08,0,0,0-84.87,0L103.51,67.61a12,12,0,0,0,17,17l30.07-30.06a36,36,0,0,1,50.93,50.92L171.4,135.52a12,12,0,1,0,17,17l30.08-30.06A60.09,60.09,0,0,0,218.45,37.55ZM135.52,171.4l-30.07,30.08a36,36,0,0,1-50.92-50.93l30.06-30.07a12,12,0,0,0-17-17L37.55,133.58a60,60,0,0,0,84.88,84.87l30.06-30.07a12,12,0,0,0-17-17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M209.94,113.94l-96,96a48,48,0,0,1-67.88-67.88l96-96a48,48,0,0,1,67.88,67.88Z",opacity:"0.2"}),o.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM144.56,173.66l-21.45,21.45a44,44,0,0,1-62.22-62.22l21.45-21.46a8,8,0,0,1,11.32,11.31L72.2,144.2a28,28,0,0,0,39.6,39.6l21.45-21.46a8,8,0,0,1,11.31,11.32Zm-34.9-16a8,8,0,0,1-11.32-11.32l48-48a8,8,0,0,1,11.32,11.32Zm85.45-34.55-21.45,21.45a8,8,0,0,1-11.32-11.31L183.8,111.8a28,28,0,0,0-39.6-39.6L122.74,93.66a8,8,0,0,1-11.31-11.32l21.46-21.45a44,44,0,0,1,62.22,62.22Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164.25,91.75a6,6,0,0,1,0,8.49l-64,64a6,6,0,0,1-8.49-8.48l64-64A6,6,0,0,1,164.25,91.75ZM214.2,41.8a54.07,54.07,0,0,0-76.38,0L107.75,71.85a6,6,0,0,0,8.49,8.49l30.07-30.06a42,42,0,0,1,59.41,59.41l-30.08,30.07a6,6,0,1,0,8.49,8.49l30.07-30.07A54,54,0,0,0,214.2,41.8ZM139.76,175.64l-30.07,30.08a42,42,0,0,1-59.41-59.41l30.06-30.07a6,6,0,0,0-8.49-8.49l-30,30.07a54,54,0,0,0,76.38,76.39l30.07-30.08a6,6,0,0,0-8.49-8.49Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M162.84,93.16a4,4,0,0,1,0,5.66l-64,64a4,4,0,0,1-5.66-5.66l64-64A4,4,0,0,1,162.84,93.16Zm49.95-49.95a52.07,52.07,0,0,0-73.56,0L109.17,73.27a4,4,0,0,0,5.65,5.66l30.07-30.06a44,44,0,0,1,62.24,62.24l-30.07,30.06a4,4,0,0,0,5.66,5.66l30.07-30.06A52.07,52.07,0,0,0,212.79,43.21ZM141.17,177.06l-30.06,30.07a44,44,0,0,1-62.24-62.24l30.06-30.06a4,4,0,0,0-5.66-5.66L43.21,139.23a52,52,0,0,0,73.56,73.56l30.06-30.07a4,4,0,1,0-5.66-5.66Z"}))]]),IM=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:TM})));IM.displayName="LinkSimpleIcon";const ZM=IM;const BM={ready:{label:"Contact Ready",icon:Yf,classes:"bg-emerald-50 text-emerald-700 border-emerald-200"},phone_only:{label:"Phone Only",icon:KF,classes:"bg-sky-50 text-sky-700 border-sky-200"},limited:{label:"Limited Contact Info",icon:qf,classes:"bg-amber-50 text-amber-700 border-amber-200"},missing:{label:"Missing Contact Info",icon:AN,classes:"bg-rose-50 text-rose-700 border-rose-200"}};function VM(e){let t=e.email,n=e.phone,a=e.linkedin,r=e.status,i=e.size,s=void 0===i?"sm":i,o=e.className,l=void 0===o?"":o;const c=r||function(e,t,n){const a=(e||"").trim().toLowerCase(),r=(t||"").trim(),i=(n||"").trim();return a&&a.includes("@")&&!a.endsWith("@aros.local")?"ready":r?"phone_only":i?"limited":"missing"}(t,n,a),d=BM[c]||BM.missing,u=d.icon,m="xs"===s?"px-1.5 py-0.5 text-[10px]":"px-2 py-0.5 text-[11px]";return(0,Pe.jsxs)("span",{"data-testid":"contact-badge-".concat(c),className:"inline-flex items-center gap-1 rounded-full border font-mono uppercase tracking-wide ".concat(d.classes," ").concat(m," ").concat(l),title:d.label,children:[(0,Pe.jsx)(u,{size:"xs"===s?10:12,weight:"ready"===c?"fill":"regular"}),d.label]})}const zM=[{key:"must_haves",title:"What's a must-have?",sub:"Pick the few skills or credentials a candidate truly needs. Skip anything that's nice-to-have.",placeholder:"Add a must-have\u2026"},{key:"deal_breakers",title:"Any deal-breakers?",sub:"Hard-no constraints. We'll surface these on every match so you can confirm before investing time.",placeholder:"Add a deal-breaker\u2026"},{key:"working_style_traits",title:"Who thrives in this role?",sub:"Two or three working-style traits. We'll thread these into the candidate explanations.",placeholder:"Add a trait\u2026"}];function qM(e){let t=e.open,n=e.onOpenChange,a=e.jobId,r=e.onCompleted;const i=Ue((0,o.useState)(0),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!1),2),p=m[0],f=m[1],x=Ue((0,o.useState)({must_haves:[],deal_breakers:[],working_style_traits:[]}),2),g=x[0],v=x[1],b=Ue((0,o.useState)(""),2),y=b[0],j=b[1],w=Ue((0,o.useState)(!1),2),N=w[0],A=w[1];(0,o.useEffect)(()=>{if(!t||!a)return;l(0),v({must_haves:[],deal_breakers:[],working_style_traits:[]}),j(""),pF("job_refinement_started",{job_id:a});let e=!1;return(async()=>{f(!0);try{const t=(await Qi.get("/jobs/".concat(a,"/refinement-suggestions"))).data;if(e)return;u(t||{})}catch(t){if(e)return;u({must_haves:[],deal_breakers:[],working_style_traits:[]})}finally{e||f(!1)}})(),()=>{e=!0}},[t,a]);const k=zM[s],E=g[k.key]||[],D=d&&d[k.key]||[],_=new Set(E.map(e=>(e||"").toLowerCase())),C=D.filter(e=>!_.has((e||"").toLowerCase())),F=()=>{const e=y.trim();e&&(v(t=>{const n=t[k.key]||[],a=new Set(n.map(e=>e.toLowerCase()));return a.has(e.toLowerCase())?t:h(h({},t),{},{[k.key]:[...n,e]})}),j(""))},S=async()=>{if(a){A(!0);try{const e=(await Qi.patch("/jobs/".concat(a,"/refinement"),g)).data;va.success("Job profile sharpened. Talent Radar is re-scoring."),null===r||void 0===r||r(e),n(!1)}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save refinement.")}finally{A(!1)}}};return(0,Pe.jsx)(hg,{open:t,onOpenChange:n,children:(0,Pe.jsxs)(bg,{side:"right",className:"w-full sm:max-w-xl flex flex-col","data-testid":"job-refine-sheet",children:[(0,Pe.jsxs)(yg,{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(ux,{size:11,weight:"duotone"})," SHARPEN THIS ROLE"]}),(0,Pe.jsx)(wg,{className:"font-display text-2xl tracking-tight mt-1",children:k.title}),(0,Pe.jsx)(Ng,{className:"text-sm",children:k.sub})]}),(0,Pe.jsx)("div",{className:"mt-4 flex items-center gap-1","data-testid":"refine-step-pips",children:zM.map((e,t)=>(0,Pe.jsx)("span",{className:"h-1 flex-1 rounded-full transition-colors ".concat(t<=s?"bg-[#0F172A]":"bg-muted")},e.key))}),(0,Pe.jsxs)("div",{className:"mt-6 flex-1 overflow-y-auto pr-1",children:[E.length>0&&(0,Pe.jsxs)("div",{className:"mb-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground mb-1.5",children:"Selected"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5","data-testid":"refine-selected-".concat(k.key),children:E.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>{return t=e,void v(e=>h(h({},e),{},{[k.key]:(e[k.key]||[]).filter(e=>e!==t)}));var t},className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-[#0F172A] text-white text-xs font-medium hover:bg-[#0F4FA8] transition-colors",children:[e," ",(0,Pe.jsx)($f,{size:10})]},e))})]}),(0,Pe.jsxs)("div",{className:"mb-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground mb-1.5",children:p?"Loading suggestions\u2026":"Tap to add"}),!p&&0===C.length&&(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground inline-flex items-center gap-1",children:[(0,Pe.jsx)(AN,{size:11})," No suggestions for this step \u2014 use the input below."]}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5",children:C.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>{return t=e,void v(e=>{const n=e[k.key]||[],a=new Set(n.map(e=>e.toLowerCase()));return a.has(t.toLowerCase())?h(h({},e),{},{[k.key]:n.filter(e=>e.toLowerCase()!==t.toLowerCase())}):h(h({},e),{},{[k.key]:[...n,t]})});var t},className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-muted/60 text-foreground text-xs font-medium hover:bg-muted transition-colors border border-border","data-testid":"refine-suggest-".concat(k.key,"-").concat(e.replace(/\s+/g,"-").toLowerCase()),children:[(0,Pe.jsx)(YC,{size:10,weight:"bold",className:"opacity-50"})," ",e]},e))})]}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground mb-1.5",children:"Add your own"}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Io,{value:y,onChange:e=>j(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),F())},placeholder:k.placeholder,className:"flex-1","data-testid":"refine-input-".concat(k.key)}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline",size:"sm",onClick:F,"data-testid":"refine-add-".concat(k.key),children:"Add"})]})]})]}),(0,Pe.jsxs)("div",{className:"border-t border-border pt-4 mt-4 flex items-center justify-between gap-3",children:[(0,Pe.jsx)("button",{type:"button",onClick:async()=>
2{if(a){try{await Qi.post("/jobs/".concat(a,"/refinement/skip")),pF("job_refinement_skipped",{job_id:a})}catch(e){}n(!1)}},className:"text-xs font-mono uppercase tracking-wider text-muted-foreground hover:text-[#0F172A]","data-testid":"refine-skip",children:"Skip for now"}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[s>0&&(0,Pe.jsxs)(Lo,{type:"button",variant:"outline",onClick:()=>{j(""),s>0&&l(s-1)},disabled:N,"data-testid":"refine-back",children:[(0,Pe.jsx)(nw,{size:14,className:"mr-1.5"})," Back"]}),(0,Pe.jsx)(Lo,{type:"button",onClick:()=>{j(""),s<zM.length-1?l(s+1):S()},disabled:N,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"refine-next",children:s===zM.length-1?N?"Saving\u2026":"Sharpen role":(0,Pe.jsxs)(Pe.Fragment,{children:["Next ",(0,Pe.jsx)(eg,{size:14,className:"ml-1.5"})]})})]})]})]})})}const UM="employer_provided",WM="aros_suggested";function YM(){return"undefined"!==typeof crypto&&crypto.randomUUID?crypto.randomUUID():"idem-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,10)}function KM(e){const t=(e||"").trim();return t?/^https?:\/\//i.test(t)?"url":t.length>=30||t.includes("\n")?"text":"title":null}function GM(){var e;const t=zt(),n=Ue((0,o.useState)(""),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!1),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!1),2),p=m[0],f=m[1],x=Ue((0,o.useState)(null),2),g=x[0],v=x[1],b=Ue((0,o.useState)(0),2),y=b[0],j=b[1],w=Ue((0,o.useState)(0),2),N=w[0],A=w[1],k=(0,o.useRef)(0),E=(0,o.useRef)(!1),D=(0,o.useRef)(YM()),_=(0,o.useRef)({input:"",mode:null,keyRotated:!1}),C=KM(a),F={url:[{label:"Fetching the job posting\u2026",minMs:0},{label:"Reading the page content\u2026",minMs:2500},{label:"Extracting the structured details (this usually takes 10\u201325s)\u2026",minMs:6e3},{label:"Almost done \u2014 checking each field against the source\u2026",minMs:22e3}],text:[{label:"Reading the description\u2026",minMs:0},{label:"Extracting the structured details (this usually takes 10\u201325s)\u2026",minMs:2500},{label:"Almost done \u2014 checking each field against the source\u2026",minMs:22e3}],title:[{label:"Saving the role title\u2026",minMs:0}]},S=F[C]||F.title,M=(null===(e=S[Math.min(y,S.length-1)])||void 0===e?void 0:e.label)||"Working\u2026";(0,o.useEffect)(()=>{if(!s)return;const e=()=>{const e=Date.now()-k.current;A(e);const t=S.reduce((t,n,a)=>e>=n.minMs?a:t,0);j(t)};e();const t=setInterval(e,500);return()=>clearInterval(t)},[s,C]);const O=async()=>{if(null!==d&&void 0!==d&&d.id){l(!0);try{const e={title:d.title||"",company:d.company||null,department:d.department||null,location:d.location||null,employment_type:d.employment_type||null,compensation:d.compensation||null,schedule:d.schedule||null,required_skills:d.required_skills||[],preferred_skills:d.preferred_skills||[],required_experience:d.required_experience||null,languages:d.languages||[],certifications:d.certifications||[],responsibilities:d.responsibilities||[],qualifications:d.qualifications||[],screening_questions:d.screening_questions||[],resume_scoring_criteria:d.resume_scoring_criteria||{},field_confirmations:d.field_confirmations||{}},t=(await Qi.put("/jobs/drafts/".concat(d.id),e)).data;u(t),va.success("Draft saved.")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save draft.")}finally{l(!1)}}},R=async(e,t)=>{try{var n;const a=(await Qi.get("/jobs/".concat(e,"/match-summary"))).data,r=null===a||void 0===a||null===(n=a.run)||void 0===n?void 0:n.status;if(v(t=>({id:e,summary:a,pollExhausted:(null===t||void 0===t?void 0:t.pollExhausted)||!1})),0===t||"complete"===r){const t=(null===a||void 0===a?void 0:a.buckets)||{};pF("match_summary_viewed",{job_id:e,properties:{matched_count:t.total||0,high_fit_count:t.high||0,medium_fit_count:t.medium||0,low_fit_count:t.low||0}})}"running"===r&&(t+1<12?setTimeout(()=>R(e,t+1),2500):v(t=>h(h({},t||{id:e}),{},{summary:a,pollExhausted:!0})))}catch(a){v(t=>h(h({},t||{id:e}),{},{pollExhausted:!0}))}};return g?(0,Pe.jsx)(aO,{published:g,nav:t,onRetry:()=>{null!==g&&void 0!==g&&g.id&&(v(e=>h(h({},e||{}),{},{pollExhausted:!1})),R(g.id,0))}}):d?(0,Pe.jsx)(nO,{draft:d,setDraft:u,onBack:()=>u(null),onSaveDraft:O,onPublish:async()=>
2{if(null===d||void 0===d||!d.id)return;const e=XM(d);if(e.length>0)return void va.error("This role isn't ready to publish yet. Add: ".concat(e.map(e=>e.label).join(", "),"."));const t=JM(d);if(t.length>0)va.error("Please review AROS's suggestions before publishing: ".concat(t.map(tO).join(", "),"."));else{f(!0);try{await O(),await Qi.post("/jobs/".concat(d.id,"/publish")),v({id:d.id,summary:null,pollExhausted:!1}),R(d.id,0)}catch(zf){var n,a;const t=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;"object"===typeof t&&"unreviewed_suggestions"===(null===t||void 0===t?void 0:t.code)?va.error(t.message):"object"===typeof t&&"incomplete_job"===(null===t||void 0===t?void 0:t.code)?va.error(t.message+" Missing: "+(t.missing||[]).map(e=>e.label).join(", ")):va.error("object"===typeof t?t.message:t||"Could not publish.")}finally{f(!1)}}},loading:s,publishing:p}):(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-3xl mx-auto","data-testid":"job-create-page",children:[(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs",className:"text-xs font-mono uppercase tracking-[0.18em] text-muted-foreground inline-flex items-center gap-1 hover:text-[#0F172A]",children:[(0,Pe.jsx)(nw,{size:12})," Back to jobs"]}),(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"POST A JOB"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Tell AROS who you're hiring"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2",children:"Paste a job description, a link, or just a role title. AROS handles the rest."})]}),(0,Pe.jsxs)("div",{className:"mt-8",children:[(0,Pe.jsx)(Go,{htmlFor:"job-intake-input",className:"sr-only",children:"Job description, URL, or role title"}),(0,Pe.jsx)(Bo,{id:"job-intake-input","data-testid":"job-create-intake-input",value:a,onChange:e=>r(e.target.value),rows:6,autoFocus:!0,placeholder:"Sales Consultant \u2014 or \u2014 https://yourcompany.com/careers/sales-consultant \u2014 or \u2014 paste the full job description",className:"font-mono text-sm rounded-md"}),a.trim()&&(0,Pe.jsxs)("div",{className:"text-[11px] font-mono text-muted-foreground mt-2 inline-flex items-center gap-1.5","data-testid":"job-create-detected-".concat(C||"none"),children:[(0,Pe.jsx)(ux,{size:10,weight:"duotone"}),"url"===C&&(0,Pe.jsx)(Pe.Fragment,{children:"Detected: a link. We'll fetch and extract the posting."}),"text"===C&&(0,Pe.jsx)(Pe.Fragment,{children:"Detected: a full job description. We'll structure it for your review."}),"title"===C&&(0,Pe.jsx)(Pe.Fragment,{children:"We'll save this role title. Add the details you know before publishing \u2014 AROS won't fill them in for you."})]})]}),(0,Pe.jsx)("div",{className:"mt-8 flex gap-3",children:(0,Pe.jsxs)(Lo,{"data-testid":"job-create-submit",onClick:async()=>{if(E.current)return;const e=a.trim();if(!e)return;const t=KM(e);!_.current.input||_.current.input===e&&_.current.mode===t||(D.current=YM(),_.current.keyRotated=!0),_.current.input=e,_.current.mode=t,E.current=!0,k.current=Date.now(),A(0),j(0),l(!0),pF("job_intake_started",{properties:{source_type:t}});try{let n;n="url"===t?{source_type:"url",source:e}:"text"===t?{source_type:"text",source:e}:{source_type:"title",source:e},n.idempotency_key=D.current;const a=(await Qi.post("/jobs/intake",n,{headers:{"X-Idempotency-Key":D.current}})).data;u(a),pF("job_intake_completed",{job_id:null===a||void 0===a?void 0:a.id,properties:{source_type:t}}),D.current=YM(),_.current={input:"",mode:null,keyRotated:!1},va.success("title"===t?"Role title saved. Add the details you know before publishing.":"Draft created \u2014 review and publish when ready.")}catch(zf){var n,r;const t=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail;if("object"===typeof t&&"idempotency_conflict"===(null===t||void 0===t?void 0:t.code))D.current=YM(),va.error("Please try again \u2014 that submission couldn't be matched to a previous attempt.");else{const e="object"===typeof t?t.message:t||"Could not create draft.";va.error(e)}}finally{E.current=!1,l(!1)}},disabled:s||!a.trim(),"aria-disabled":s||!a.trim(),type:"button",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:16,className:"mr-1.5",weight:"fill"}),s?"title"===C?"Saving the role title\u2026":"Working\u2026":"title"===C?"Save role title":"Create draft"]})}),s&&("url"===C||"text"===C)&&(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md bg-slate-50/60 px-5 py-4","data-testid":"job-create-progress",role:"status","aria-live":"polite","aria-busy":"true",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)("svg",{className:"animate-spin h-4 w-4 text-[#0F4FA8] shrink-0",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,Pe.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Pe.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),(0,Pe.jsx)("div",{className:"text-sm font-medium text-foreground","data-testid":"job-create-progress-label",children:M}),(0,Pe.jsxs)("div",{className:"ml-auto text-[11px] font-mono uppercase tracking-[0.15em] text-muted-foreground","data-testid":"job-create-progress-elapsed",children:[Math.floor(N/1e3),"s"]})]}),(0,Pe.jsx)("ol",{className:"mt-3 space-y-1.5","data-testid":"job-create-progress-stages",children:S.map((e,t)=>{const n=t<y?"done":t===y?"active":"pending";return(0,Pe.jsxs)("li",{className:"flex items-center gap-2 text-[12px]","data-testid":"job-create-progress-stage-".concat(t),"data-state":n,children:[(0,Pe.jsxs)("span",{"aria-hidden":"true",className:"done"===n?"inline-flex h-4 w-4 items-center justify-center rounded-full bg-emerald-500 text-white":"active"===n?"inline-flex h-4 w-4 items-center justify-center rounded-full border-2 border-[#0F4FA8]":"inline-flex h-4 w-4 items-center justify-center rounded-full border border-slate-300",children:["done"===n&&(0,Pe.jsx)(Yf,{size:10,weight:"fill"}),"active"===n&&(0,Pe.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-[#0F4FA8] animate-pulse"})]}),(0,Pe.jsx)("span",{className:"done"===n?"text-muted-foreground line-through decoration-slate-400/60":"active"===n?"text-foreground":"text-muted-foreground
2/70",children:e.label.replace(/\u2026$/,"")})]},t)})}),N>35e3&&(0,Pe.jsx)("p",{className:"mt-3 text-[11px] text-muted-foreground","data-testid":"job-create-progress-slow-hint",children:"This one is running longer than usual. Hang tight \u2014 we'll show your draft as soon as AROS finishes."})]}),(0,Pe.jsx)("div",{className:"mt-10 text-[11px] font-mono text-muted-foreground/70 max-w-xl",children:"Public job pages only \u2014 private dashboards or LinkedIn behind sign-in can't be fetched."})]})}const $M=[{key:"title",label:"Title"},{key:"location",label:"Location"},{key:"employment_type",label:"Employment type"}],QM=[{key:"responsibilities",label:"At least one responsibility"},{key:"required_skills",label:"At least one required skill"}];function XM(e){const t=[];for(const n of $M){const a=n.key,r=n.label;((null===e||void 0===e?void 0:e[a])||"").toString().trim()||t.push({field:a,label:r})}for(const n of QM){const a=n.key,r=n.label;Array.isArray(null===e||void 0===e?void 0:e[a])&&0!==e[a].length||t.push({field:a,label:r})}return t}function JM(e){const t=(null===e||void 0===e?void 0:e.field_sources)||{},n=(null===e||void 0===e?void 0:e.field_confirmations)||{},a=new Set(["required_skills","preferred_skills","responsibilities","qualifications","screening_questions","languages","certifications"]);return Object.keys(t).filter(e=>t[e]===WM&&!n[e]&&!a.has(e))}const eO={title:"Title",company:"Company",department:"Department",location:"Location",employment_type:"Employment type",compensation:"Compensation",schedule:"Schedule",required_experience:"Required experience",required_skills:"Required skills",preferred_skills:"Preferred skills",responsibilities:"Responsibilities",qualifications:"Qualifications",screening_questions:"Screening questions",languages:"Languages",certifications:"Certifications"};function tO(e){return eO[e]||e}function nO(e){var t,n,a,r,i;let s=e.draft,o=e.setDraft,l=e.onBack,c=e.onSaveDraft,d=e.onPublish,u=e.loading,m=e.publishing;const p=(e,t)=>o(n=>{const a=h({},n.field_sources||{}),r=h({},n.field_confirmations||{});var i;return null==(i=t)||("string"===typeof i?""===i.trim():Array.isArray(i)&&0===i.length)?(delete a[e],delete r[e]):a[e]===UM&&t===n[e]||(a[e]=UM,r[e]=!0),h(h({},n),{},{[e]:t,field_sources:a,field_confirmations:r})}),f=(e,t)=>o(n=>h(h({},n),{},{resume_scoring_criteria:h(h({},n.resume_scoring_criteria||{}),{},{[e]:t})})),x=s.resume_scoring_criteria||{must_have:[],nice_to_have:[],red_flags:[],ranking_notes:""},g=s.field_sources||{},v=s.field_confirmations||{},b=JM(s),y=function(e){const t=(null===e||void 0===e?void 0:e.list_item_sources)||{},n=(null===e||void 0===e?void 0:e.field_confirmations)||{},a=[];for(const r of Object.keys(t)){if(n[r])continue;const e=Array.isArray(t[r])?t[r]:[];for(const t of e)(null===t||void 0===t?void 0:t.source)!==WM||null!==t&&void 0!==t&&t.confirmed||a.push({field:r,item_id:t.item_id,value:t.value})}return a}(s),j=XM(s),w=b.length>0||y.length>0||j.length>0,N=async(e,t,n,a)=>{try{const r={item_id:t,action:n};"edit"===n&&(r.value=a);const i=(await Qi.patch("/jobs/".concat(s.id,"/list-items/").concat(e),r)).data;o(i)}catch(zf){var r,i,l;va.error((null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(i=r.data)||void 0===i||null===(l=i.detail)||void 0===l?void 0:l.message)||"Couldn't update that item.")}},A=async(e,t)=>{try{const n=(await Qi.post("/jobs/".concat(s.id,"/list-items/").concat(e,"/bulk"),{action:t})).data;o(n);const a=(null===n||void 0===n?void 0:n._bulk_affected)||0;a>0&&va.success("confirm_all"===t?"Accepted ".concat(a," suggestion").concat(1===a?"":"s","."):"Removed ".concat(a," suggestion").concat(1===a?"":"s","."))}catch(zf){var n,a,r;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a||null===(r=a.detail)||void 0===r?void 0:r.message)||"Couldn't apply that bulk action.")}},k=(e,t)=>({fieldKey:e,source:g[e],confirmed:!!v[e],onConfirm:()=>(e=>o(t=>h(h({},t),{},{field_confirmations:h(h({},t.field_confirmations||{}),{},{[e]:!0})})))(e),onClear:()=>((e,t)=>o(n=>{const a=h({},n.field_sources||{}),r=h({},n.field_confirmations||{});return delete a[e],delete r[e],h(h({},n),{},{[e]:t,field_sources:a,field_confirmations:r})}))(e,t)});return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"job-create-review",children:[(0,Pe.jsxs)("button",{onClick:l,className:"text-xs font-mono uppercase tracking-[0.18em] text-muted-foreground inline-flex items-center gap-1 hover:text-[#0F172A]",children:[(0,Pe.jsx)(nw,{size:12})," Try a different source"]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"DRAFT \xb7 REVIEW"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-2 tracking-tight",children:s.title||"Untitled role"}),s.source_url&&(0,Pe.jsxs)("a",{href:s.source_url,target:"_blank",rel:"noreferrer",className:"text-xs text-muted-foreground hover:text-[#0F172A] inline-flex items-center gap-1 mt-1 font-mono",children:[(0,Pe.jsx)(ZM,{size:11})," ",s.source_url]}
2)]}),(0,Pe.jsxs)("div",{className:"flex gap-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:c,disabled:u||m,"data-testid":"job-create-save-draft",children:"Save draft"}),(0,Pe.jsxs)(Lo,{onClick:d,disabled:u||m||w,"aria-disabled":u||m||w,"data-testid":"job-create-publish",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",title:w?j.length>0?"Add all required fields before publishing.":"Review the AROS suggestions before publishing.":void 0,children:[(0,Pe.jsx)(ux,{size:16,weight:"fill",className:"mr-1.5"})," ",m?"Publishing\u2026":"Publish job"]})]})]}),j.length>0&&(0,Pe.jsxs)("div",{className:"mt-4 border border-blue-200 rounded-md bg-blue-50/60 p-4 text-sm text-blue-900","data-testid":"missing-fields-banner",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 font-medium",children:[(0,Pe.jsx)(AN,{size:14,weight:"duotone"})," This role isn't ready to publish yet."]}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-blue-800/90 leading-relaxed",children:"Add the details below before publishing. AROS won't make them up for you."}),(0,Pe.jsx)("ul",{className:"mt-2 text-xs list-disc pl-5 space-y-0.5",children:j.map(e=>(0,Pe.jsx)("li",{"data-testid":"missing-field-".concat(e.field),children:e.label},e.field))})]}),(b.length>0||y.length>0)&&(0,Pe.jsxs)("div",{className:"mt-4 border border-amber-200 rounded-md bg-amber-50/60 p-4 text-sm text-amber-900","data-testid":"unreviewed-suggestions-banner",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 font-medium",children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone"})," AROS suggested some values it isn't sure about."]}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-amber-800/90 leading-relaxed",children:"Keep or remove each one before you can publish. Editing a value counts as keeping it. These are suggestions only \u2014 they weren't in what you provided."}),b.length>0&&(0,Pe.jsx)("ul",{className:"mt-2 text-xs list-disc pl-5 space-y-0.5",children:b.map(e=>(0,Pe.jsx)("li",{"data-testid":"unreviewed-field-".concat(e),children:tO(e)},e))}),y.length>0&&(0,Pe.jsx)("ul",{className:"mt-2 text-xs list-disc pl-5 space-y-0.5","data-testid":"unreviewed-items-list",children:y.map(e=>(0,Pe.jsxs)("li",{"data-testid":"unreviewed-item-".concat(e.item_id),children:[(0,Pe.jsxs)("span",{className:"font-medium",children:[tO(e.field),":"]})," ",e.value]},e.item_id))})]}),(0,Pe.jsx)(oO,{title:"Job basics",children:(0,Pe.jsxs)(lO,{children:[(0,Pe.jsx)(cO,h(h({label:"Title"},k("title","")),{},{children:(0,Pe.jsx)(Io,{"data-testid":"draft-title",value:s.title||"",onChange:e=>p("title",e.target.value)})})),(0,Pe.jsx)(cO,h(h({label:"Company"},k("company",null)),{},{children:(0,Pe.jsx)(Io,{"data-testid":"draft-company",value:s.company||"",onChange:e=>p("company",e.target.value||null)})})),(0,Pe.jsx)(cO,h(h({label:"Department"},k("department",null)),{},{children:(0,Pe.jsx)(Io,{value:s.department||"",onChange:e=>p("department",e.target.value||null)})})),(0,Pe.jsx)(cO,h(h({label:"Employment type"},k("employment_type",null)),{},{children:(0,Pe.jsx)(Io,{value:s.employment_type||"",onChange:e=>p("employment_type",e.target.value||null),placeholder:"Full-time"})}))]})}),(0,Pe.jsx)(oO,{title:"Location and pay",children:(0,Pe.jsxs)(lO,{children:[(0,Pe.jsx)(cO,h(h({label:"Location"},k("location",null)),{},{children:(0,Pe.jsx)(Io,{"data-testid":"draft-location",value:s.location||"",onChange:e=>p("location",e.target.value||null)})})),(0,Pe.jsx)(cO,h(h({label:"Compensation"},k("compensation",null)),{},{children:(0,Pe.jsx)(Io,{"data-testid":"draft-compensation",value:s.compensation||"",onChange:e=>p("compensation",e.target.value||null),placeholder:"e.g. $95k\u2013$115k base"})})),(0,Pe.jsx)(cO,h(h({label:"Schedule"},k("schedule",null)),{},{children:(0,Pe.jsx)(Io,{value:s.schedule||"",onChange:e=>p("schedule",e.target.value||null),placeholder:"e.g. Mon\u2013Fri"})})),(0,Pe.jsx)(cO,h(h({label:"Required experience"},k("required_experience",null)),{},{children:(0,Pe.jsx)(Io,{value:s.required_experience||"",onChange:e=>p("required_experience",e.target.value||null),placeholder:"e.g. 3+ years in a similar role"})}))]})}),(0,Pe.jsx)(oO,h(h({title:"Responsibilities"},k("responsibilities",[])),{},{children:(0,Pe.jsx)(uO,{field:"responsibilities",testid:"draft-responsibilities",items:s.responsibilities||[],provenance:(null===(t=s.list_item_sources)||void 0===t?void 0:t.responsibilities)||[],onChange:e=>p("responsibilities",e),onItemAction:N,onBulkAction:A,placeholder:"What this person owns\u2026"})})),(0,Pe.jsx)(oO,h(h({title:"Required skills"},k("required_skills",[])),{},{children:(0,Pe.jsx)(uO,{field:"required_skills",testid:"draft-required-skills",items:s.required_skills||[],provenance:(null===(n=s.list_item_sources)||void 0===n?void 0:n.required_skills)||[],onChange:e=>p("required_skills",e),onItemAction:N,onBulkAction:A,placeholder:"e.g. Figma"})})),(0,Pe.jsx)(oO,h(h({title:"Preferred skills"},k("preferred_skills",[])),{},{children:(0,Pe.jsx)(uO,{field:"preferred_skills",testid:"draft-preferred-skills",items:s.preferred_skills||[],provenance:(null===(a=s.list_item_sources)||void 0===a?void 0:a.preferred_skills)||[],onChange:e=>p("preferred_skills",e),onItemAction:N,onBulkAction:A,placeholder:"e.g. React"})})),(0,Pe.jsx)(oO,h(h({title:"Qualifications"},k("qualifications",[])),{},{children:(0,Pe.jsx)(uO,{field:"qualifications",testid:"draft-qualifications",items:s.qualifications||[],provenance:(null===(r=s.list_item_sources)||void 0===r?void 0:r.qualifications)||[],onChange:e=>p("qualifications",e),onItemAction:N,onBulkAction:A,placeholder:"A qualification a candidate must meet\u2026"})})),(0,Pe.jsx)(oO,h(h({title:"Screening questions",hint:"Asked up front to confirm fit before deeper review."},k("screening_questions",[])),{},{children:(0,Pe.jsx)(uO,{field:"screening_questions",testid:"draft-screening",items:s.screening_questions||[],provenance:(null===(i=s.list_item_sources)||void 0===i?void 0:i.screening_questions)||[],onChange:e=>p("screening_questions",e),onItemAction:N,onBulkAction:A,placeholder:"Are you authorized to work in the US without sponsorship?"})})),(0,Pe.jsx)(oO,{title:"R\xe9sum\xe9 evidence to look for",hint:"Signals AROS should surface from each r\xe9sum\xe9 so reviewers can decide.",children:(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.16em] font-mono",children:"Must-have"}),(0,Pe.jsx)(dO,{items:x.must_have||[],onChange:e=>f("must_have",e),placeholder:"Hard requirement\u2026"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.16em] font-mono",children:"Nice-to-have"}),(0,Pe.jsx)(dO,{items:x.nice_to_have||[],onChange:e=>f("nice_to_have",e),placeholder:"Bonus signal\u2026"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.16em] font-mono",children:"Red flags"}),(0,Pe.jsx)(dO,{items:x.red_flags||[],onChange:e=>f("red_flags",e),placeholder:"Dealbreaker\u2026"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.16em] font-mono",children:"Reviewer notes"}),(0,Pe.jsx)(Bo,{value:x.ranking_notes||"",onChange:e=>f("ranking_notes",e.target.value),rows:3,placeholder:"What should a reviewer look at when two candidates both look strong?",className:"mt-1 text-sm"})]})]})}),(0,Pe.jsxs)("div",{className:"mt-8 flex justify-end gap-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:c,disabled:u||m,children:"Save draft"}),(0,Pe.jsx)(Lo,{onClick:d,disabled:u||m||w,"aria-disabled":u||m||w,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"job-create-publish-bottom",title:w?j.length>0?"Add all required fields before publishing.":"Review the AROS suggestions before publishing.":void 0,children:m?"Publishing\u2026":"Publish job"})]})]})}function aO(e){var t,n;let a=e.published,r=e.nav,i=e.onRetry;const s=a.summary,l=null===s||void 0===s?void 0:s.run,c=(null===l||void 0===l?void 0:l.status)||(s?"unknown":"running"),d=!!a.pollExhausted,u=(null===s||void 0===s?void 0:s.buckets)||{high:0,medium:0,low:0,total:0},m=(null===s||void 0===s?void 0:s.top)||[],p=null!==(t=u.total)&&void 0!==t?t:0,h=null!==(n=null===l||void 0===l?void 0:l.candidates_evaluated)&&void 0!==n?n:0,f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1],v=Ue((0,o.useState)(!1),2),b=v[0],y=v[1],j="complete"===c?"complete":"failed"===c?"failed":"running"===c&&d?"waiting":d?"failed":"running";return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-12 max-w-4xl mx-auto","data-testid":"job-create-success",children:[(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{className:"inline-flex items-center justify-center w-14 h-14 roun
2ded-full bg-emerald-50 text-emerald-700",children:(0,Pe.jsx)(Yf,{size:32,weight:"fill"})}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-4 tracking-tight",children:"Job published."}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"It's live and accepting applications."})]}),(0,Pe.jsxs)("div",{className:"mt-10 border border-border rounded-md p-6","data-testid":"auto-match-state-".concat(j),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"EXISTING-CANDIDATE MATCHES"}),"running"===j&&(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl mt-1",children:"Scoring your existing candidates\u2026"}),"waiting"===j&&(0,Pe.jsxs)("div",{className:"font-display font-semibold text-xl mt-1 inline-flex items-center gap-2",children:[(0,Pe.jsx)(AN,{size:20,weight:"duotone",className:"text-amber-500"}),"Taking longer than usual."]}),"failed"===j&&(0,Pe.jsxs)("div",{className:"font-display font-semibold text-xl mt-1 inline-flex items-center gap-2",children:[(0,Pe.jsx)(AN,{size:20,weight:"duotone",className:"text-amber-500"}),"Couldn't finish scoring right now."]}),"complete"===j&&0===p&&(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl mt-1",children:"No existing matches yet."}),"complete"===j&&p>0&&(0,Pe.jsxs)("div",{className:"font-display font-semibold text-2xl mt-1","data-testid":"auto-match-count",children:[p," candidate",1===p?"":"s"," match this role."]}),(0,Pe.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:["running"===j&&"Evaluated ".concat(h," so far \u2014 this finishes in a few seconds."),"waiting"===j&&"We're still scoring in the background. You can come back to this in a minute, or check the Jobs list.","failed"===j&&"The job is live. We'll quietly retry the scoring the next time you visit the Jobs list \u2014 or click retry below.","complete"===j&&"".concat(h," candidate").concat(1===h?"":"s"," evaluated.")]})]}),"complete"===j&&p>0&&(0,Pe.jsx)(Lo,{"data-testid":"success-review-matches",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",onClick:()=>r("/app/employer/jobs/".concat(a.id,"/matches")),children:"Review matches"}),("waiting"===j||"failed"===j)&&(0,Pe.jsx)(Lo,{"data-testid":"success-retry-auto-match",variant:"outline",onClick:i,children:"Try again"})]}),"complete"===j&&p>0&&(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-3 gap-3","data-testid":"match-buckets",children:[(0,Pe.jsx)(rO,{label:"High Fit",hint:"85+",count:u.high,tone:"emerald",testid:"bucket-high"}),(0,Pe.jsx)(rO,{label:"Medium Fit",hint:"70\u201384",count:u.medium,tone:"sky",testid:"bucket-medium"}),(0,Pe.jsx)(rO,{label:"Low Fit",hint:"< 70",count:u.low,tone:"slate",testid:"bucket-low"})]}),"complete"===j&&m.length>0&&(0,Pe.jsxs)("div",{className:"mt-6",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono mb-2",children:"TOP 5"}),(0,Pe.jsx)("div",{className:"divide-y divide-border border border-border rounded-md",children:m.slice(0,5).map(e=>(0,Pe.jsx)(iO,{m:e},e.candidate_user_id))})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 flex justify-center gap-3",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>r("/app/employer/jobs"),"data-testid":"success-back-jobs",children:"Back to jobs"}),(0,Pe.jsx)(Lo,{className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",onClick:()=>r("/app/employer/applicants?job=".concat(a.id)),"data-testid":"success-view-applicants",children:"View applicants"})]}),!b&&(0,Pe.jsx)("div",{className:"mt-8 border border-border rounded-md p-5 bg-gradient-to-br from-amber-50/50 to-transparent","data-testid":"success-refine-card",children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] text-amber-800 font-mono",children:[(0,Pe.jsx)(ux,{size:11,weight:"duotone"})," SHARPEN THIS ROLE \xb7 60 SEC"]}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl mt-1.5 tracking-tight",children:"Three quick questions for sharper matches."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-lg",children:"Tell AROS what's truly required, what's a deal-breaker, and who thrives here. We'll thread it through every candidate explanation."})]}),(0,Pe.jsxs)(Lo,{onClick:()=>g(!0),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"success-open-refine",children:[(0,Pe.jsx)(ux,{size:14,weight:"fill",className:"mr-1.5"})," Sharpen this role"]})]})}),b&&(0,Pe.jsxs)("div",{className:"mt-8 border border-emerald-200 rounded-md p-4 bg-emerald-50/50 text-emerald-900 text-sm inline-flex items-center gap-2","data-testid":"success-refine-complete",children:[(0,Pe.jsx)(Yf,{size:16,weight:"fill"})," Role sharpened \u2014 Talent Radar is re-scoring with the refined profile."]}),(0,Pe.jsx)(qM,{open:x,onOpenChange:g,jobId:a.id,onCompleted:()=>y(!0)})]})}function rO(e){let t=e.label,n=e.hint,a=e.count,r=e.tone,i=e.testid;return(0,Pe.jsxs)("div",{"data-testid":i,className:"border rounded-md p-4 ".concat({emerald:"border-emerald-200 bg-emerald-50/40 text-emerald-700",sky:"border-sky-200 bg-sky-50/40 text-sky-700",slate:"border-slate-200 bg-slate-50/40 text-slate-700"}[r]),children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl leading-none",children:a}),(0,Pe.jsx)("div",{className:"mt-1 text-sm font-semibold",children:t}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono opacity-80 mt-0.5",children:n})]})}function iO(e){var t,n;let a=e.m;
2const r="high"===a.bucket?"text-emerald-700":"medium"===a.bucket?"text-sky-700":"text-slate-700";return(0,Pe.jsxs)("div",{className:"flex items-center gap-3 p-3 text-sm",children:[(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("div",{className:"font-semibold truncate","data-testid":"top-match-name-".concat(a.candidate_user_id),children:a.candidate_name}),(0,Pe.jsx)(VM,{email:a.candidate_email,phone:a.candidate_phone,linkedin:a.linkedin_url,status:a.contact_status,size:"xs"})]}),(0,Pe.jsx)("div",{className:"text-[11px] font-mono text-muted-foreground truncate mt-0.5",children:[a.candidate_email,a.candidate_phone].filter(Boolean).join(" \xb7 ")||"\u2014"}),(null===(t=a.explanation)||void 0===t||null===(n=t.why_matched)||void 0===n?void 0:n[0])&&(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground/90 truncate mt-1",children:["\xb7 ",a.explanation.why_matched[0]]})]}),(0,Pe.jsxs)("div",{className:"shrink-0 text-right","data-testid":"top-match-fit-band",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-sm leading-tight ".concat(r),children:"high"===a.bucket?"Strong fit":"medium"===a.bucket?"Worth interviewing":"Worth a second look"}),(0,Pe.jsx)("div",{className:"text-[9px] uppercase tracking-wider font-mono text-muted-foreground",children:"Recommendation"})]})]})}function sO(e){let t=e.fieldKey,n=e.source,a=e.confirmed,r=e.onConfirm,i=e.onClear;e.size;return n!==WM||a?null:(0,Pe.jsxs)("div",{className:"mt-1.5 inline-flex items-center gap-2 text-[11px] text-amber-800 bg-amber-50/70 border border-amber-200 rounded-md px-2 py-1","data-testid":"suggestion-chip-".concat(t),children:[(0,Pe.jsx)(ux,{size:11,weight:"duotone"}),(0,Pe.jsx)("span",{children:"Suggested by AROS \u2014 please review"}),(0,Pe.jsxs)("button",{type:"button",onClick:r,className:"ml-1 inline-flex items-center gap-1 text-emerald-700 hover:text-emerald-900 font-medium","data-testid":"suggestion-keep-".concat(t),children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill"})," Keep"]}),(0,Pe.jsxs)("button",{type:"button",onClick:i,className:"inline-flex items-center gap-1 text-slate-600 hover:text-rose-700","data-testid":"suggestion-clear-".concat(t),children:[(0,Pe.jsx)($f,{size:12,weight:"bold"})," Clear"]})]})}function oO(e){let t=e.title,n=e.hint,a=e.children,r=e.fieldKey,i=e.source,s=e.confirmed,o=e.onConfirm,l=e.onClear;return(0,Pe.jsxs)("section",{className:"mt-8 border-t border-border pt-6",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-3 flex-wrap",children:[(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl tracking-tight",children:t}),n&&(0,Pe.jsx)("span",{className:"text-[11px] text-muted-foreground",children:n})]}),r&&(0,Pe.jsx)(sO,{fieldKey:r,source:i,confirmed:s,onConfirm:o,onClear:l}),(0,Pe.jsx)("div",{className:"mt-3",children:a})]})}function lO(e){let t=e.children;return(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:t})}function cO(e){let t=e.label,n=e.children,a=e.fieldKey,r=e.source,i=e.confirmed,s=e.onConfirm,o=e.onClear;const l=a&&r===WM&&!i;return(0,Pe.jsxs)("div",{"data-testid":a?"field-wrap-".concat(a):void 0,children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.16em] font-mono",children:t}),(0,Pe.jsx)("div",{className:"mt-1 ".concat(l?"ring-1 ring-amber-300 rounded-md":""),children:n}),a&&(0,Pe.jsx)(sO,{fieldKey:a,source:r,confirmed:i,onConfirm:s,onClear:o})]})}function dO(e){let t=e.items,n=e.onChange,a=e.placeholder,r=e.testid;const i=Ue((0,o.useState)(""),2),s=i[0],l=i[1],c=()=>{const e=s.trim();e&&(n([...t||[],e]),l(""))};return(0,Pe.jsxs)("div",{"data-testid":r,children:[(0,Pe.jsx)("ul",{className:"space-y-1.5",children:(t||[]).map((e,a)=>(0,Pe.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,Pe.jsx)(Io,{value:e,onChange:e=>{const r=[...t];r[a]=e.target.value,n(r)},className:"flex-1"}),(0,Pe.jsx)(Lo,{type:"button",variant:"ghost",size:"sm",onClick:()=>n(t.filter((e,t)=>t!==a)),className:"text-xs text-muted-foreground hover:text-rose-600","aria-label":"Remove",children:"Remove"})]},a))}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,Pe.jsx)(Io,{value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),c())},placeholder:a,className:"flex-1"}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline",size:"sm",onClick:c,children:"Add"})]}),0===(t||[]).length&&(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground mt-2 inline-flex items-center gap-1",children:[(0,Pe.jsx)(AN,{size:11})," Empty \u2014 add at least one if you want this signal to count."]})]})}function uO(e){let t=e.field,n=e.items,a=e.provenance,r=e.onChange,i=e.onItemAction,s=e.onBulkAction,l=e.placeholder,c=e.testid;const d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)(""),2),g=x[0],v=x[1],b=new Map;for(const o of a||[])o&&!b.has(String(o.value))&&b.set(String(o.value),o);const y=(n||[]).map((e,t)=>{const n=b.get(String(e));return{key:(null===n||void 0===n?void 0:n.item_id)||"noprov-".concat(t),value:e,prov:n}}),j=(a||[]).filter(e=>(null===e||void 0===e?void 0:e.source)===WM&&!(null!==e&&void 0!==e&&e.confirmed)).length,w=(a||[]).filter(e=>(null===e||void 0===e?void 0:e.source)===WM&&(null===e||void 0===e?void 0:e.confirmed)).length,N=()=>{const e=u.trim();e&&(r([...n||[],e]),m(""))},A=async e=>{const n=(g||"").trim();f(null),v(""),n&&n!==e.value&&await i(t,e.prov.item_id,"edit",n)};return(0,Pe.jsxs)("div",{"data-testid":c,children:[j>0&&(0,Pe.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md border border-amber-300 bg-amber-50/70 px-3 py-2 text-[12px] text-amber-900","data-testid":"prov-bulk-bar-".concat(t),children:[(0,Pe.jsx)(ux,{size:12,weight:"duotone"}),(0,Pe.jsxs)("span",{className:"font-medium",children:[j," suggested by AROS \xb7 ",w," reviewed"]}),(0,Pe.jsxs)("div",{className:"ml-auto flex gap-2",children:[(0,Pe.jsxs)(Lo,{type:"button",size:"sm",variant:"outline",className:"h-7 text-[11px] border-emerald-300 text-emerald-800 hover:bg-emerald-50",onClick:()=>s(t,"confirm_all"),"data-testid":"prov-accept-all-".concat(t),children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"mr-1"})," Accept all"]}),(0,Pe.jsxs)(Lo,{type:"button",size:"sm",variant:"outline",className:"h-7 text-[11px] border-rose-300 text-rose-800 hover:bg-rose-50",onClick:()=>s(t,"reject_all"),"data-testid":"prov-reject-all-".concat(t),children:[(0,Pe.jsx)($f,{size:12,weight:"bold",className:"mr-1"})," Reject all"]})]})]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:y.map(e=>{var a,s,o,l,c,d,u,m,p,x,b,y;const j=(null===(a=e.prov)||void 0===a?void 0:a.source)||UM,w=j===WM&&!(null!==(s=e.prov)&&void 0!==s&&s.confirmed),N=j!==WM||null!==(o=e.prov)&&void 0!==o&&o.confirmed?j===WM&&null!==(l=e.prov)&&void 0!==l&&l.confirmed?"Kept":"imported"===j?"From source":"You added":"Suggested",k=w?"bg-amber-100 text-amber-900 border border-amber-300":"bg-slate-100 text-slate-500 border border-slate-200";return(0,Pe.jsxs)("li",{className:"flex flex-col gap-1 rounded-md border p-2 ".concat(w?"border-amber-300 bg-amber-50/40":"border-transparent bg-transparent"),"data-testid":"prov-item-row-".concat(t,"-").concat((null===(c=e.prov)||void 0===c?void 0:c.item_id)||e.key),"data-source":j,"data-confirmed":null!==(d=e.prov)&&void 0!==d&&d.confirmed?"true":"false",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[h===(null===(u=e.prov)||void 0===u?void 0:u.item_id)?(0,Pe.jsx)(Io,{autoFocus:!0,value:g,onChange:e=>v(e.target.value),onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),A(e)),"Escape"===t.key&&(f(null),v(""))},onBlur:()=>A(e),className:"flex-1","data-testid":"prov-item-edit-input-".concat(t,"-").concat(null===(m=e.prov)||void 0===m?void 0:m.item_id)}):(0,Pe.jsxs)("div",{className:"flex-1 flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"text-sm ".concat(w?"font-medium text-amber-950":"text-foreground"),"data-testid":"prov-item-value-".concat(t,"-").concat((null===(p=e.prov)||void 0===p?void 0:p.item_id)||e.key),children:e.value}),(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px] font-mono uppercase tracking-wider ".concat(k),"data-testid":"prov-chip-".concat(t,"-").concat((null===(x=e.prov)||void 0===x?void 0:x.item_id)||e.key),children:N})]}),e.prov&&w&&h!==e.prov.item_id&&(0,Pe.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Pe.jsxs)(Lo,{type:"button",size:"sm",variant:"ghost",className:"h-7 px-2 text-[11px] text-emerald-700 hover:text-emerald-900 hover:bg-emerald-50",onClick:()=>i(t,e.prov.item_id,"confirm"),"data-testid":"prov-item-accept-".concat(t,"-").concat(e.prov.item_id),title:"Keep this suggestion",children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"mr-1"})," Accept"]}),(0,Pe.jsxs)(Lo,{type:"button",size:"sm",variant:"ghost",className:"h-7 px-2 text-[11px] text-rose-700 hover:text-rose-900 hover:bg-rose-50",onClick:()=>i(t,e.prov.item_id,"reject"),"data-testid":"prov-item-reject-".concat(t,"-").concat(e.prov.item_id),title:"Remove this suggestion",children:[(0,Pe.jsx)($f,{size:12,weight:"bold",className:"mr-1"})," Reject"]}),(0,Pe.jsx)(Lo,{type:"button",size:"sm",variant:"ghost",className:"h-7 px-2 text-[11px] text-slate-700 hover:bg-slate-100",onClick:()=>(e=>{e.prov&&(f(e.prov.item_id),v(e.value))})(e),"data-testid":"prov-item-edit-".concat(t,"-").concat(e.prov.item_id),title:"Edit the value (marks as yours)",children:"Edit"})]}),e.prov&&!w&&h!==e.prov.item_id&&(0,Pe.jsx)(Lo,{type:"button",size:"sm",variant:"ghost",className:"h-7 px-2 text-[11px] text-muted-foreground hover:text-rose-700",onClick:()=>i(t,e.prov.item_id,"reject"),"data-testid":"prov-item-remove-".concat(t,"-").concat(e.prov.item_id),"aria-label":"Remove",children:"Remove"}),!e.prov&&(0,Pe.jsx)(Lo,{type:"button",size:"sm",variant:"ghost",className:"h-7 px-2 text-[11px] text-muted-foreground hover:text-rose-700",onClick:()=>r((n||[]).filter(t=>t!==e.value)),"aria-label":"Remove",children:"Remove"})]}),(null===(b=e.prov)||void 0===b||null===(y=b.evidence)||void 0===y?void 0:y.text)&&(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground italic pl-1",children:["Evidence: \u201c",e.prov.evidence.text,"\u201d"]})]},e.key)})}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,Pe.jsx)(Io,{value:u,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),N())},placeholder:l,className:"flex-1","data-testid":"prov-add-input-".concat(t)}),(0,Pe.jsx)(Lo,{type:"button",variant:"outline",size:"sm",onClick:N,"data-testid":"prov-add-btn-".concat(t),children:"Add"})]}),0===(n||[]).length&&(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground mt-2 inline-flex items-center gap-1",children:[(0,Pe.jsx)(AN,{size:11})," Empty \u2014 add at least one if you want this signal to count."]})]})}const mO=["className"],pO=["className"],hO=["className"],fO=["className"],xO=["className"],gO=["className"],vO=o.forwardRef((e,t)=>
2{let n=e.className,a=Ie(e,mO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("rounded-xl border bg-card text-card-foreground shadow",n)},a))});vO.displayName="Card";const bO=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,pO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("flex flex-col space-y-1.5 p-6",n)},a))});bO.displayName="CardHeader";const yO=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,hO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("font-semibold leading-none tracking-tight",n)},a))});yO.displayName="CardTitle";o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,fO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("text-sm text-muted-foreground",n)},a))}).displayName="CardDescription";const jO=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,xO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("p-6 pt-0",n)},a))});jO.displayName="CardContent";o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,gO);return(0,Pe.jsx)("div",h({ref:t,className:Ro("flex items-center p-6 pt-0",n)},a))}).displayName="CardFooter";const wO="#041C3A",NO={"Strong fit":{bg:"#ECFDF5",fg:"#065F46",border:"#A7F3D0"},"Worth interviewing":{bg:"#EFF6FF",fg:"#1E3A8A",border:"#BFDBFE"},"Worth a second look":{bg:"#FFFBEB",fg:"#92400E",border:"#FCD34D"},"Better opportunity found":{bg:"#F5F3FF",fg:"#5B21B6",border:"#DDD6FE"}},AO={"In Talent Pool":{bg:"#F1F5F9",fg:wO},"From a recent role":{bg:"#F1F5F9",fg:wO},"Previously not selected":{bg:"#FEF3C7",fg:"#92400E"},"Career DNA match":{bg:"#F5F3FF",fg:"#5B21B6"},"Experience that may carry over":{bg:"#F1F5F9",fg:wO}},kO={emerald:{bg:"#ECFDF5",fg:"#065F46"},navy:{bg:"#EFF6FF",fg:"#1E3A8A"},violet:{bg:"#F5F3FF",fg:"#5B21B6"},slate:{bg:"#F1F5F9",fg:wO}};function EO(e){let t=e.chip;const n=kO[null===t||void 0===t?void 0:t.tone]||kO.slate;return(0,Pe.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10.5px] font-medium",style:{background:n.bg,color:n.fg},"data-testid":"talent-radar-evidence-".concat(t.key),children:t.label})}function DO(e){let t=e.label;const n=NO[t]||NO["Worth a second look"];return(0,Pe.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-[11px] font-semibold border",style:{background:n.bg,color:n.fg,borderColor:n.border},"data-testid":"talent-radar-recommendation-chip",children:t})}function _O(e){let t=e.label;const n=AO[t]||AO["Experience that may carry over"];return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-mono uppercase tracking-wider",style:{background:n.bg,color:n.fg},"data-testid":"talent-radar-source-chip",children:[(0,Pe.jsx)(ux,{size:10,weight:"duotone"})," ",t]})}function CO(e){let t=e.match,n=e.jobId,a=e.jobTitle,r=e.placement,i=void 0===r?"job_detail":r,s=e.onMoved;const l=Ue((0,o.useState)(null),2),c=l[0],d=l[1],u=(t.evidence_chips||[]).map(e=>e.key),m=e=>{Qi.post("/talent-radar/actions",{action:e,candidate_user_id:t.candidate_user_id,job_id:n,recommendation_label:t.recommendation,source_chip:t.source,evidence_chips:u,placement:i}).catch(()=>{})},p="Better opportunity found"===t.recommendation,h=t.better_opportunity_reasons||[];return(0,Pe.jsxs)("div",{className:"flex items-start gap-3 py-3 border-t border-border first:border-t-0","data-testid":"talent-radar-row-".concat(t.candidate_user_id),children:[(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)(Yn,{to:"/app/employer/candidates/".concat(t.candidate_user_id),onClick:()=>m("review_profile"),className:"text-sm font-semibold hover:underline truncate",style:{color:wO},"data-testid":"talent-radar-candidate-name",children:t.candidate_name}),(0,Pe.jsx)(DO,{label:t.recommendation}),(0,Pe.jsx)(_O,{label:t.source})]}),t.headline&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.headline}),(t.evidence_chips||[]).length>0&&(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1 mt-1.5","data-testid":"talent-radar-evidence-row-".concat(t.candidate_user_id),children:t.evidence_chips.map(e=>(0,Pe.jsx)(EO,{chip:e},e.key))}),p&&h.length>0&&(0,Pe.jsx)("ul",{className:"mt-2 space-y-0.5","data-testid":"talent-radar-better-reasons-".concat(t.candidate_user_id
2),children:h.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-[12.5px] flex items-start gap-1.5",style:{color:"#334155"},children:[(0,Pe.jsx)("span",{className:"text-[#5B21B6] font-bold",children:"\xb7"}),(0,Pe.jsx)("span",{children:e})]},t))}),t.why_summary&&!p&&(0,Pe.jsx)("p",{className:"text-[13px] mt-1.5",style:{color:"#334155"},children:t.why_summary})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,Pe.jsxs)(Lo,{size:"sm",onClick:async()=>{d("move");try{await Qi.post("/applications/move/".concat(t.candidate_user_id,"/").concat(n)),m("move_to_job"),va.success("Moved ".concat(t.candidate_name," to ").concat(a)),s&&s(t.candidate_user_id)}catch(zf){var e,r;const n=(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(r=e.data)||void 0===r?void 0:r.detail)||"Could not move candidate.";va.error(n)}finally{d(null)}},disabled:!!c,"data-testid":"talent-radar-move-to-job",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md text-[12px] h-8",children:[(0,Pe.jsx)(eg,{size:12,className:"mr-1",weight:"bold"}),"move"===c?"Moving\u2026":"Move to job"]}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:async()=>{d("keep");try{await Qi.post("/resume-intel/candidates/".concat(t.candidate_user_id,"/talent-bench"),{enabled:!0}),m("In Talent Pool"===t.source?"keep_in_bench":"save_to_bench"),va.success("Kept ".concat(t.candidate_name," in your Talent Pool"))}catch(zf){var e,n;const a=(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Could not save to bench.";va.error(a)}finally{d(null)}},disabled:!!c,"data-testid":"talent-radar-keep-in-bench",className:"rounded-md text-[12px] h-8",children:[(0,Pe.jsx)(QF,{size:12,className:"mr-1",weight:"duotone"}),"keep"===c?"Saving\u2026":"Keep in bench"]})]})]})}function FO(e){let t=e.jobId,n=e.jobTitle,a=e.autoLoad,r=void 0===a||a;const i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(r),2),d=c[0],u=c[1],m=Ue((0,o.useState)(new Set),2),p=m[0],h=m[1];if((0,o.useEffect)(()=>{if(!t||!r)return;let e=!1;return u(!0),Qi.get("/talent-radar/jobs/".concat(t),{params:{limit:3}}).then(t=>{e||l(t.data)}).catch(()=>{e||l(null)}).finally(()=>!e&&u(!1)),()=>{e=!0}},[t,r]),d)return(0,Pe.jsx)("div",{className:"bg-white border border-border rounded-lg p-4 animate-pulse","data-testid":"talent-radar-loading",children:(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(pM,{size:16,weight:"duotone",style:{color:wO}}),(0,Pe.jsx)("div",{className:"text-sm font-semibold",children:"Scanning Talent Pool\u2026"})]})});if(!s)return null;const f=(s.matches||[]).filter(e=>!p.has(e.candidate_user_id));return(0,Pe.jsxs)("section",{className:"bg-white border border-border rounded-lg p-4","data-testid":"talent-radar-card",children:[(0,Pe.jsxs)("header",{className:"flex items-center justify-between gap-3 mb-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,Pe.jsx)(pM,{size:18,weight:"duotone",style:{color:wO}}),(0,Pe.jsx)("h3",{className:"font-brand font-bold text-base tracking-[-0.01em]",style:{color:wO},children:"AROS found people you may already know"})]}),s.matches_found>0&&(0,Pe.jsxs)("span",{className:"text-[11px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full",style:{background:"#F1F5F9",color:wO},"data-testid":"talent-radar-count",children:[s.matches_found," match",1===s.matches_found?"":"es"]})]}),0===f.length?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground py-2","data-testid":"talent-radar-empty-copy",children:s.no_matches_copy||"No one in your Talent Pool fits this role yet. AROS will keep watching as new resumes come in."}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("p",{className:"text-[12px] text-muted-foreground mb-1",children:"Before you source externally \u2014 check the people you've already met."}),(0,Pe.jsx)("div",{"data-testid":"talent-radar-matches",children:f.map(e=>(0,Pe.jsx)(CO,{match:e,jobId:t,jobTitle:s.job_title||n,onMoved:e=>h(t=>{const n=new Set(t);return n.add(e),n})},e.candidate_user_id))}),f.every((e,t)=>t===f.length-1)&&f.length===s.matches_found&&s.matches_found>=3&&(0,Pe.jsxs)("div",{className:"pt-2 mt-1 border-t border-border flex items-center gap-1 text-[11px] text-muted-foreground",children:[(0,Pe.jsx)(Yf,{size:11,weight:"duotone"}),"Showing the top ",f.length," of ",s.matches_found,"."]})]})]})}const SO={strong_match:{bg:"#ECFDF5",fg:"#065F46",border:"#A7F3D0"},worth_second_look:{bg:"#EFF6FF",fg:"#1E3A8A",border:"#BFDBFE"},worth_closer_look:{bg:"#F5F3FF",fg:"#5B21B6",border:"#DDD6FE"}};function MO(e){let t=e.k,n=e.cat;const a=SO[t]||SO.worth_closer_look;return(0,Pe.jsxs)("div",{className:"rounded-md border p-3 flex-1",style:{background:a.bg,borderColor:a.border},"data-testid":"ai-summary-bucket-".concat(t),children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl leading-none",style:{color:a.fg},children:n.count}),(0,Pe.jsx)("div",{className:"text-xs font-mono uppercase tracking-[0.12em] mt-1",style:{color:a.fg},children:n.label}),(0,Pe.jsx)("div",{className:"text-[11px] mt-1.5 leading-snug",style:{color:"#334155"},children:n.why})]})}function OO(e){var t,n;let a=e.jobId,r=e.onFilterChange;const i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!0),2),d=c[0],u=c[1];if((0,o.useEffect)(()=>
2{if(!a)return;let e=!1;return(async()=>{try{const t=await Qi.get("/jobs/".concat(a,"/ai-hiring-summary"));e||l(t.data)}catch(t){e||l(null)}finally{e||u(!1)}})(),()=>{e=!0}},[a]),d||!s)return null;const m=s.categories||{},p=s.next_action||{},h=0===(s.total_applicants||0);return(0,Pe.jsxs)("section",{className:"mt-6 rounded-lg border bg-white p-5",style:{borderColor:"#E5E7EB"},"data-testid":"ai-hiring-summary",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] font-mono",style:{color:"#6B7280"},children:[(0,Pe.jsx)(ux,{size:11,weight:"duotone"})," AI HIRING SUMMARY"]}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-2xl tracking-tight mt-1",style:{color:"#041C3A"},children:p.label}),p.hint&&(0,Pe.jsx)("p",{className:"text-sm mt-1 max-w-xl",style:{color:"#374151"},children:p.hint})]}),p.cta&&!h&&(0,Pe.jsxs)(Lo,{type:"button",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",onClick:()=>null===r||void 0===r?void 0:r(p.cta.filter),"data-testid":"ai-summary-next-action",children:[p.cta.label," ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})]}),!h&&(0,Pe.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mt-4","data-testid":"ai-summary-buckets",children:[(0,Pe.jsx)(MO,{k:"strong_match",cat:m.strong_match}),(0,Pe.jsx)(MO,{k:"worth_second_look",cat:m.worth_second_look}),(0,Pe.jsx)(MO,{k:"worth_closer_look",cat:m.worth_closer_look})]}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center gap-4 text-xs flex-wrap",style:{color:"#6B7280"},children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5","data-testid":"ai-summary-total",children:[(0,Pe.jsx)(Hg,{size:12})," ",s.total_applicants," applicant",1===s.total_applicants?"":"s"," \xb7 ",s.total_scored," reviewed"]}),s.total_applicants>0&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5",title:(null===(t=s.screening_time_saved)||void 0===t?void 0:t.basis)||"","data-testid":"ai-summary-time-saved",children:[(0,Pe.jsx)(ag,{size:12})," ",null===(n=s.screening_time_saved)||void 0===n?void 0:n.label," of screening saved"]})]})]})}const RO=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),o.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),HO=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:RO})));HO.displayName="CaretUpIcon";const PO=HO,LO=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),o.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),TO=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:LO})));TO.displayName="CaretDownIcon";const IO=TO,ZO=[{key:"high",label:"Strong Match",guidance:"Clearest evidence their experience supports this role.",tone:{bg:"#ECFDF5",border:"#A7F3D0",accent:"#065F46",pill:"#D1FAE5"}},{key:"medium",label:"Worth a Second Look",guidance:"Real potential \u2014 a few gaps worth exploring in conversation.",tone:{bg:"#EFF6FF",border:"#BFDBFE",accent:"#1E3A8A",pill:"#DBEAFE"}},{key:"low",label:"Worth a Closer Look",guidance:"Less direct fit \u2014 review before setting aside.",tone:{bg:"#F5F3FF",border:"#DDD6FE",accent:"#5B21B6",pill:"#EDE9FE"}}],BO=[{value:"screening",label:"Screening"},{value:"interview_scheduled",label:"Interview scheduled"},{value:"offer_extended",label:"Offer extended"},{value:"hired",label:"Hired"},{value:"rejected",label:"Rejected"}];function VO(e){let t=e.matches,n=e.selected,a=e.expanded,r=e.onToggleSelect,i=e.onToggleExpand,s=e.onBulkMove,l=e.moving;const c=(0,o.useMemo)(()=>{const e={high:[],medium:[],low:[]};for(const n of t){e[n.bucket&&e[n.bucket]?n.bucket:"low"].push(n)}return e},[t]);return(0,Pe.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4","data-testid":"candidate-pipeline",children:ZO.map(e=>(0,Pe.jsx)(zO,{col:e,candidates:c[e.key]||[],selected:n,expanded:a,onToggleSelect:r,onToggleExpand:i,onBulkMove:s,moving:l},e.key))})}function zO(e){let t=e.col,n=e.candidates,a=e.selected,r=e.expanded,i=e.onToggleSelect,s=e.onToggleExpand,l=e.onBulkMove,c=e.moving;const d=Ue((0,o.useState)("screening"),2),u=d[0],m=d[1],p=(0,o.useMemo)(()=>n.map(e=>e.candidate_user_id),[n]),h=(0,o.useMemo)(()=>p.filter(e=>a.has(e)),[p,a]),f=(0,o.useMemo)(()=>h.filter(e=>{var t;return null===(t=n.find(t=>t.candidate_user_id===e))||void 0===t?void 0:t.application_id}),[h,n]),x=n.length>0&&h.length===n.length;return(0,Pe.jsxs)("div",{className:"rounded-md border overflow-hidden flex flex-col",style:{borderColor:t.tone.border,background:t.tone.bg},"data-testid":"pipeline-column-".concat(t.key),children:[(0,Pe.jsxs)("div",{className:"px-4 py-3 border-b flex flex-col gap-1",style:{borderColor:t.tone.border},children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:14,weight:"fill",style:{color:t.tone.accent}}),(0,Pe.jsx)("div",{className:"font-display font-bold text-sm tracking-tight",style:{color:t.tone.accent},children:t.label})]}),(0,Pe.jsx)("div",{className:"text-xs font-mono font-semibold px-2 py-0.5 rounded-full",style:{background:t.tone.pill,color:t.tone.accent},"data-testid":"pipeline-count-".concat(t.key),children:n.length})]}),(0,Pe.jsx)("div",{className:"text-[11px] leading-snug",style:{color:"#334155"},"data-testid":"pipeline-guidance-".concat(t.key),children:t.guidance})]}),n.length>0&&(0,Pe.jsxs)("div",{className:"px-3 py-2 border-b bg-white/60 flex items-center justify-between gap-2 flex-wrap",style:{borderColor:t.tone.border},"data-testid":"pipeline-toolbar-".concat(t.key),children:[(0,Pe.jsxs)("label",{className:"inline-flex items-center gap-2 cursor-pointer text-[11px] font-mono uppercase tracking-wider text-muted-foreground",children:[(0,Pe.jsx)(pA,{checked:x,onCheckedChange:()=>{for(const e of p){const t=a.has(e);x&&t&&i(e),x||t||i(e)}},"data-testid":"pipeline-select-all-".concat(t.key)}),h.length>0?"".concat(h.length," selected"):"Select all"]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Pe.jsxs)(Sf,{value:u,onValueChange:m,children:[(0,Pe.jsx)(Of,{className:"h-8 w-36 text-xs","data-testid":"pipeline-stage-select-".concat(t.key),children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:BO.map(e=>(0,Pe.jsx)(Lf,{value:e.value,children:e.label},e.value))})]}),(0,Pe.jsx)(Lo,{size:"sm",disabled:c||0===f.length,onClick:()=>l(t.label,f,u),className:"h-8 px-3 text-xs bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"pipeline-move-btn-".concat(t.key),children:c?"Moving\u2026":"Move ".concat(f.length||"")})]})]}),(0,Pe.jsxs)("div",{className:"p-2 space-y-2 flex-1 min-h-[100px]","data-testid":"pi
2peline-cards-".concat(t.key),children:[0===n.length&&(0,Pe.jsx)("div",{className:"text-[12px] text-muted-foreground italic text-center py-6",children:"No candidates in this category yet."}),n.map(e=>(0,Pe.jsx)(qO,{m:e,tone:t.tone,selected:a.has(e.candidate_user_id),expanded:r.has(e.candidate_user_id),onToggle:()=>i(e.candidate_user_id),onExpand:()=>s(e.candidate_user_id)},e.candidate_user_id))]})]})}function qO(e){let t=e.m,n=e.tone,a=e.selected,r=e.expanded,i=e.onToggle,s=e.onExpand;const o=t.explanation||{},l=(o.why_matched||[])[0],c=(o.flagged_deal_breakers||[]).length>0;return(0,Pe.jsx)(vO,{className:"p-3 bg-white ".concat(c?"border-amber-300":""),"data-testid":"pipeline-card-".concat(t.candidate_user_id),children:(0,Pe.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Pe.jsx)("div",{className:"pt-0.5",children:(0,Pe.jsx)(pA,{checked:a,onCheckedChange:i,"data-testid":"pipeline-select-".concat(t.candidate_user_id)})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,Pe.jsxs)("div",{className:"min-w-0",children:[t.application_id?(0,Pe.jsx)(Yn,{to:"/app/employer/applications/".concat(t.application_id),className:"font-semibold text-sm truncate hover:text-[#0F4FA8] block","data-testid":"pipeline-name-".concat(t.candidate_user_id),children:t.candidate_name}):(0,Pe.jsx)("div",{className:"font-semibold text-sm truncate","data-testid":"pipeline-name-".concat(t.candidate_user_id),title:"This candidate hasn't formally applied to this job yet.",children:t.candidate_name}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 mt-0.5 flex-wrap",children:[(0,Pe.jsx)(VM,{email:t.candidate_email,phone:t.candidate_p
2hone,linkedin:t.linkedin_url,status:t.contact_status}),t.previously_rejected&&(0,Pe.jsx)("span",{className:"text-[9px] font-mono uppercase tracking-wider text-amber-800 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded-full",children:"Reconsider"})]})]})}),l&&!r&&(0,Pe.jsxs)("div",{className:"mt-1.5 text-[12px] text-foreground/80 leading-snug line-clamp-2","data-testid":"pipeline-why-".concat(t.candidate_user_id),children:[(0,Pe.jsx)("span",{className:"font-mono text-[9px] uppercase tracking-wider",style:{color:n.accent},children:"Why: "}),l]}),c&&(0,Pe.jsxs)("div",{className:"mt-1.5 inline-flex items-center gap-1 text-[10px] font-mono uppercase tracking-wider text-amber-800 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded-full","data-testid":"pipeline-flagged-".concat(t.candidate_user_id),children:[(0,Pe.jsx)(AN,{size:10,weight:"duotone"})," Flagged deal-breaker"]}),r&&(0,Pe.jsxs)("div",{className:"mt-2 border-t border-border pt-2 text-[12px] space-y-1.5","data-testid":"pipeline-detail-".concat(t.candidate_user_id),children:[(o.why_matched||[]).length>0&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[9px] font-mono uppercase tracking-wider text-muted-foreground",children:"Why matched"}),(0,Pe.jsx)("ul",{className:"mt-0.5",children:(o.why_matched||[]).slice(0,3).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-foreground/85",children:["\xb7 ",e]},t))})]}),(o.gaps||[]).length>0&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[9px] font-mono uppercase tracking-wider text-rose-700/80",children:"Gaps"}),(0,Pe.jsx)("ul",{className:"mt-0.5",children:(o.gaps||[]).slice(0,3).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-foreground/85",children:["\xb7 ",e]},t))})]}),t.application_id&&(0,Pe.jsx)(Yn,{to:"/app/employer/applications/".concat(t.application_id),className:"inline-block text-[11px] font-mono uppercase tracking-wider font-semibold underline mt-1",style:{color:n.accent},"data-testid":"pipeline-open-".concat(t.candidate_user_id),children:"Open full candidate \u2192"})]}),(0,Pe.jsx)("button",{onClick:s,className:"mt-2 text-[10px] font-mono uppercase tracking-wider text-muted-foreground hover:text-[#0F172A] inline-flex items-center gap-1","data-testid":"pipeline-expand-".concat(t.candidate_user_id),children:r?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(PO,{size:10})," Collapse"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(IO,{size:10})," Details"]})})]})]})})}const UO=[{key:"applied_asc",label:"Oldest application first"},{key:"applied_desc",label:"Newest application first"},{key:"name_asc",label:"Name (A \u2192 Z)"},{key:"name_desc",label:"Name (Z \u2192 A)"}],WO=[{value:"screening",label:"Screening"},{value:"interview_scheduled",label:"Interview scheduled"},{value:"offer_extended",label:"Offer extended"},{value:"hired",label:"Hired"},{value:"rejected",label:"Rejected"}];function YO(){var e,t,n,a,r,i,s;const l=qt().jobId,c=zt(),d=Ue((0,o.useState)("all"),2),u=d[0],m=d[1],p=Ue((0,o.useState)("applied_asc"),2),h=p[0],f=p[1],x=Ue((0,o.useState)(()=>{try{return localStorage.getItem("aros.jobMatches.viewMode")||"pipeline"}catch(e){return"pipeline"}}),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{try{localStorage.setItem("aros.jobMatches.viewMode",g)}catch(e){}Qi.post("/telemetry/track",{event:"view_mode_used",mode:g,job_id:l}).catch(()=>{}),Qi.post("/telemetry/track",{event:"pipeline"===g?"pipeline_view_loaded":"list_view_loaded",job_id:l}).catch(()=>{})},[g,l]);const b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1],w=Ue((0,o.useState)(null),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!0),2),E=k[0],D=k[1],_=Ue((0,o.useState)(new Set),2),C=_[0],F=_[1],S=Ue((0,o.useState)(new Set),2),M=S[0],O=S[1],R=Ue((0,o.useState)("screening"),2),H=R[0],P=R[1],L=Ue((0,o.useState)(!1),2),T=L[0],I=L[1],Z=Ue((0,o.useState)(!1),2),B=Z[0],V=Z[1],z=Ue((0,o.useState)(null),2),q=z[0],U=z[1],W=async()=>{D(!0);try{const e="pipeline"===g?"all":u,t=(await Qi.get("/jobs/".concat(l,"/matches"),{params:{bucket:e,limit:100,offset:0,include_rejected:y}})).data;A(t),pF("review_matches_opened",{job_id:l})}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not load matches.")}finally{D(!1)}};(0,o.useEffect)(()=>{Promise.resolve().then(()=>{W(),(async()=>{try{const e=(await Qi.get("/jobs/".concat(l,"/refinement"))).data;U(e)}catch(e){}})(),F(new Set)})},[l,u,g,y]);const Y=(0,o.useMemo)(()=>{const e=[...(null===N||void 0===N?void 0:N.matches)||[]],t=e=>(e.candidate_name||"").toLowerCase(),n=e=>new Date(e.applied_at||e.updated_at||0).getTime();return"applied_asc"===h?e.sort((e,t)=>
2n(e)-n(t)):"applied_desc"===h?e.sort((e,t)=>n(t)-n(e)):"name_asc"===h?e.sort((e,n)=>t(e).localeCompare(t(n))):"name_desc"===h&&e.sort((e,n)=>t(n).localeCompare(t(e))),e},[N,h]),K=(0,o.useState)(()=>new Set)[0];(0,o.useEffect)(()=>{if(!E&&0!==Y.length)for(const e of Y){const t="".concat(l,":").concat(e.candidate_user_id);K.has(t)||(K.add(t),pF("match_card_opened",{job_id:l,candidate_user_id:e.candidate_user_id,properties:{fit_score:e.fit_score,recommendation_bucket:e.bucket}}),pF("candidate_contact_viewed",{job_id:l,candidate_user_id:e.candidate_user_id,properties:{contact_status:e.contact_status}}))}},[Y,l,E]);const G=(0,o.useMemo)(()=>[...C].filter(e=>{var t;return null===(t=Y.find(t=>t.candidate_user_id===e))||void 0===t?void 0:t.application_id}),[C,Y]),$=C.size-G.length,Q=e=>{F(t=>{const n=new Set(t),a=!n.has(e);a?n.add(e):n.delete(e);const r=Y.find(t=>t.candidate_user_id===e);return r&&pF(a?"candidate_selected":"candidate_deselected",{job_id:l,candidate_user_id:e,properties:{fit_score:r.fit_score,recommendation_bucket:r.bucket}}),n})},X=e=>{O(t=>{const n=new Set(t),a=!n.has(e);if(a?n.add(e):n.delete(e),a){const t=Y.find(t=>t.candidate_user_id===e);t&&pF("explanation_expanded",{job_id:l,candidate_user_id:e,properties:{section:"why_matched",fit_score:t.fit_score,recommendation_bucket:t.bucket}})}return n})};return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"job-matches-page",children:[(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs",className:"text-xs font-mono uppercase tracking-[0.18em] text-muted-foreground inline-flex items-center gap-1 hover:text-[#0F172A]",children:[(0,Pe.jsx)(nw,{size:12})," Back to jobs"]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"REVIEW MATCHES"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-2 tracking-tight",children:(null===N||void 0===N?void 0:N.job_title)||"\u2014"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Recommendations only. Stage moves stay in your hands."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"inline-flex rounded-md border border-border p-0.5","data-testid":"view-mode-toggle",children:[(0,Pe.jsx)("button",{onClick:()=>v("pipeline"),className:"px-3 py-1.5 text-xs font-mono uppercase tracking-wider rounded ".concat("pipeline"===g?"bg-[#0F172A] text-white":"text-muted-foreground hover:text-[#0F172A]"),"data-testid":"view-mode-pipeline",children:"Pipeline"}),(0,Pe.jsx)("button",{onClick:()=>v("list"),className:"px-3 py-1.5 text-xs font-mono uppercase tracking-wider rounded ".concat("list"===g?"bg-[#0F172A] text-white":"text-muted-foreground hover:text-[#0F172A]"),"data-testid":"view-mode-list",children:"List"})]}),"list"===g&&(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground font-mono",children:"SORT"}),(0,Pe.jsxs)(Sf,{value:h,onValueChange:f,children:[(0,Pe.jsx)(Of,{className:"w-52","data-testid":"matches-sort-select",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:UO.map(e=>(0,Pe.jsx)(Lf,{value:e.key,children:e.label},e.key))})]})]}),(0,Pe.jsxs)("label",{className:"inline-flex items-center gap-2 cursor-pointer select-none text-xs font-mono uppercase tracking-wider text-muted-foreground",htmlFor:"include-rejected-toggle","data-testid":"include-rejected-toggle-label",children:[(0,Pe.jsx)(pA,{id:"include-rejected-toggle",checked:y,onCheckedChange:e=>j(!!e),"data-testid":"include-rejected-toggle"}),"Include previously rejected candidates"]})]})]}),(0,Pe.jsx)(OO,{jobId:l,onFilterChange:e=>{"strong"===e?m("high"):"promising"===e?m("medium"):"refine"===e&&V(!0)}}),(0,Pe.jsx)("div",{className:"mt-6",children:(0,Pe.jsx)(FO,{jobId:l,jobTitle:null===N||void 0===N||null===(e=N.job)||void 0===e?void 0:e.title})}),q&&"completed"!==q.refinement_status&&(0,Pe.jsxs)("div",{className:"mt-4 border border-amber-200 rounded-md px-4 py-3 bg-amber-50/40 flex items-center justify-between gap-3 flex-wrap","data-testid":"refine-cta-banner",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"text-sm font-semibold inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone",className:"text-amber-700"}
2),"Sharpen this role for stronger matches."]}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:"60 seconds. Tell AROS the must-haves, deal-breakers, and traits that matter."})]}),(0,Pe.jsx)(Lo,{onClick:()=>V(!0),size:"sm",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"matches-open-refine",children:"Sharpen now"})]}),q&&"completed"===q.refinement_status&&(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-mono text-muted-foreground inline-flex items-center gap-2","data-testid":"refine-completed-meta",children:[(0,Pe.jsx)(ux,{size:11,weight:"duotone",className:"text-emerald-600"}),"Sharpened: ",(null===(t=q.deal_breakers)||void 0===t?void 0:t.length)||0," deal-breaker",1===((null===(n=q.deal_breakers)||void 0===n?void 0:n.length)||0)?"":"s"," \xb7 ",(null===(a=q.working_style_traits)||void 0===a?void 0:a.length)||0," trait",1===((null===(r=q.working_style_traits)||void 0===r?void 0:r.length)||0)?"":"s",(0,Pe.jsx)("button",{onClick:()=>V(!0),className:"underline hover:text-[#0F172A]","data-testid":"matches-edit-refine",children:"Edit"})]}),(0,Pe.jsx)(qM,{open:B,onOpenChange:V,jobId:l,onCompleted:e=>{U(e),W()}}),(null!==(i=null===N||void 0===N?void 0:N.flagged_deal_breaker_count)&&void 0!==i?i:0)>0&&(0,Pe.jsxs)("div",{className:"mt-4 px-4 py-3 rounded-md border border-amber-200 bg-amber-50 text-sm text-amber-900 inline-flex items-start gap-2","data-testid":"flagged-deal-breakers-banner",children:[(0,Pe.jsx)(AN,{size:14,weight:"duotone",className:"mt-0.5 shrink-0"}),(0,Pe.jsxs)("span",{children:[(0,Pe.jsx)("span",{className:"font-semibold",children:N.flagged_deal_breaker_count})," candidate",1===N.flagged_deal_breaker_count?"":"s"," flagged against your deal-breakers \u2014 moved to the bottom for review."]})]}),!y&&(null!==(s=null===N||void 0===N?void 0:N.hidden_rejected_count)&&void 0!==s?s:0)>0&&(0,Pe.jsxs)("div",{className:"mt-4 px-4 py-3 rounded-md border border-amber-200 bg-amber-50 text-sm text-amber-900 flex items-center justify-between gap-3 flex-wrap","data-testid":"hidden-rejected-banner",children:[(0,Pe.jsxs)("span",{children:[(0,Pe.jsx)("span",{className:"font-semibold",children:N.hidden_rejected_count})," ","previously rejected candidate",1===N.hidden_rejected_count?"":"s"," ","also had strong evidence for this role \u2014 hidden by default."]}),(0,Pe.jsx)("button",{onClick:()=>j(!0),className:"text-xs font-mono uppercase tracking-wider font-semibold underline hover:no-underline","data-testid":"hidden-rejected-show",children:"Show them"})]}),"list"===g&&(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md px-4 py-3 flex items-center justify-between gap-3 flex-wrap","data-testid":"matches-toolbar",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(pA,{checked:Y.length>0&&C.size===Y.length,onCheckedChange:()=>{C.size===Y.length?F(new Set):F(new Set(Y.map(e=>e.candidate_user_id)))},id:"select-all","data-testid":"select-all-checkbox"}),(0,Pe.jsx)("label",{htmlFor:"select-all",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground cursor-pointer",children:C.size>0?"".concat(C.size," selected"):"Select all"}),$>0&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono text-amber-700 bg-amber-50 px-2 py-0.5 rounded-full border border-amber-200",children:[$," not yet applied \u2014 stage move skipped for those"]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsxs)(Sf,{value:H,onValueChange:P,children:[(0,Pe.jsx)(Of,{className:"w-48","data-testid":"target-stage-select",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:WO.map(e=>(0,Pe.jsxs)(Lf,{value:e.value,children:["Move to: ",e.label]},e.value))})]}),(0,Pe.jsx)(Lo,{disabled:T||0===G.length,onClick:async()=>{if(0!==G.length){I(!0);try{const e=(await Qi.post("/jobs/".concat(l,"/matches/move-stage"),{candidate_user_ids:G,target_stage:H})).data,t="Moved ".concat(e.moved_count).concat(e.skipped_count?" \xb7 skipped ".concat(e.skipped_count):"");va.success(t),F(new Set),W()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not move stage.")}finally{I(!1)}}else va.error("Select at least one candidate who already applied to this job.")},"data-testid":"move-stage-btn",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:T?"Moving\u2026":"Move ".concat(G.length||"")})]})]}),(0,Pe.jsxs)("div",{className:"mt-6",children:[E&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground py-12 text-center",children:"Loading\u2026"}),!E&&0===Y.length&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground py-12 text-center border border-dashed border-border rounded-md",children:"No candidates in this pipeline yet. As applicants come in, AROS will place them into the right column."}),!E&&Y.length>0&&"pipeline"===g&&(0,Pe.jsx)(VO,{matches:Y,selected:C,expanded:M,onToggleSelect:Q,onToggleExpand:X,onBulkMove:async(e,t,n)=>{if(t.length){I(!0);try{const a=(await Qi.post("/jobs/".concat(l,"/matches/move-stage"),{candidate_user_ids:t,target_stage:n})).data;va.success("Moved ".concat(a.moved_count).concat(a.skipped_count?" \xb7 skipped ".concat(a.skipped_count):""," from ").concat(e)),F(new Set),W()}catch(zf){var a,r;va.error((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Could not move stage.")}finally{I(!1)}}},moving:T}),!E&&Y.length>0&&"list"===g&&(0,Pe.jsx)("div",{className:"space-y-3",children:Y.map(e=>
2(0,Pe.jsx)(KO,{m:e,selected:C.has(e.candidate_user_id),onToggle:()=>Q(e.candidate_user_id),expanded:M.has(e.candidate_user_id),onExpand:()=>X(e.candidate_user_id)},e.candidate_user_id))})]}),(0,Pe.jsx)("div",{className:"mt-8 flex justify-end",children:(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>c("/app/employer/jobs"),children:"Done reviewing"})})]})}function KO(e){let t=e.m,n=e.selected,a=e.onToggle,r=e.expanded,i=e.onExpand;const s=t.explanation||{},o=s.why_matched||[],l=s.gaps||[],c=s.matched_skills||[],d=s.missing_must_have||[],u=s.matched_certifications||[],m=s.matched_languages||[],p=s.relevant_experience||[],h=s.transferable_skills||[],f=s.confirm_deal_breakers||[],x=s.flagged_deal_breakers||[],g=x.length>0,v={applied:"Already applied",bulk_import:"From resume import",cross_job:"Cross-job match"}[t.source]||t.source;return(0,Pe.jsx)(vO,{className:"p-4 ".concat(g?"border-amber-300 bg-amber-50/30":""),"data-testid":"match-card-".concat(t.candidate_user_id),children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)("div",{className:"pt-1",children:(0,Pe.jsx)(pA,{checked:n,onCheckedChange:a,"data-testid":"match-select-".concat(t.candidate_user_id)})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-lg truncate","data-testid":"match-name-".concat(t.candidate_user_id),children:t.candidate_name}
2),(0,Pe.jsx)(VM,{email:t.candidate_email,phone:t.candidate_phone,linkedin:t.linkedin_url,status:t.contact_status}),t.previously_rejected?(0,Pe.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider text-amber-800 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded-full","data-testid":"match-previously-rejected-".concat(t.candidate_user_id),title:"This candidate was previously rejected by your org. AROS is surfacing them here because they may fit this different role.",children:"Previously rejected \xb7 Reconsider for this role"}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider text-muted-foreground bg-muted/40 border border-border px-1.5 py-0.5 rounded-full",children:v}),t.application_stage&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono uppercase tracking-wider text-sky-700 bg-sky-50 border border-sky-200 px-1.5 py-0.5 rounded-full",children:["Stage: ",t.application_stage.replace("_"," ")]})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 mt-1 text-xs text-muted-foreground font-mono",children:[t.candidate_email&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(Nx,{size:11})," ",t.candidate_email]}
2),t.candidate_phone&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(KF,{size:11})," ",t.candidate_phone]}),t.linkedin_url&&(0,Pe.jsxs)("a",{href:t.linkedin_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 hover:text-[#0F172A]",children:[(0,Pe.jsx)(ZM,{size:11})," LinkedIn"]})]})]}),(0,Pe.jsx)("div",{className:"text-right shrink-0",children:t.applied_at&&(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:["Applied ",new Date(t.applied_at).toLocaleDateString()]})})]}),o.length>0&&(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:"WHAT WE FOUND"}),(0,Pe.jsx)("ul",{className:"mt-1 space-y-0.5 text-sm",children:o.slice(0,2).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-foreground/90",children:["\xb7 ",e]},t))})]}),l.length>0&&(0,Pe.jsxs)("div",{className:"mt-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:"WHAT WE DID NOT FIND IN THE INFORMATION THEY SUBMITTED"}),(0,Pe.jsx)("ul",{className:"mt-1 space-y-0.5 text-sm",children:l.slice(0,2).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-foreground/90",children:["\xb7 ",e]},t))})]}),g&&(0,Pe.jsxs)("div",{className:"mt-2","data-testid":"flagged-deal-breakers-".concat(t.candidate_user_id),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-amber-700",children:"FLAGGED \xb7 DOESN'T MEET"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-1",children:x.map(e=>(0,Pe.jsx)("span",{className:"text-[11px] font-medium text-amber-900 bg-amber-100 border border-amber-300 px-2 py-0.5 rounded-full",children:e},e))})]}),!g&&f.length>0&&(0,Pe.jsxs)("div",{className:"mt-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:"CONFIRM WITH CANDIDATE"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-1",children:f.map(e=>(0,Pe.jsx)("span",{className:"text-[11px] font-medium text-muted-foreground bg-muted/40 border border-border px-2 py-0.5 rounded-full",children:e},e))})]}),(0,Pe.jsx)("button",{onClick:i,className:"mt-3 text-[11px] font-mono uppercase tracking-wider text-muted-foreground hover:text-[#0F172A] inline-flex items-center gap-1","data-testid":"match-expand-".concat(t.candidate_user_id),children:r?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(PO,{size:11})," Collapse details"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(IO,{size:11})," See full explanation"]})}),r&&(0,Pe.jsxs)("div",{className:"mt-3 border-t border-border pt-3 grid grid-cols-1 md:grid-cols-2 gap-4 text-sm","data-testid":"match-detail-".concat(t.candidate_user_id),children:[o.length>2&&(0,Pe.jsx)(GO,{label:"Why matched (all)",items:o}),l.length>2&&(0,Pe.jsx)(GO,{label:"Gaps (all)",items:l,tone:"rose"}),c.length>0&&(0,Pe.jsx)(GO,{label:"Overlapping skills",items:c,tone:"emerald"}),d.length>0&&(0,Pe.jsx)(GO,{label:"Missing must-haves",items:d,tone:"rose"}),p.length>0&&(0,Pe.jsx)(GO,{label:"Relevant experience",items:p}),h.length>0&&(0,Pe.jsx)(GO,{label:"Skills that may carry over",items:h}),u.length>0&&(0,Pe.jsx)(GO,{label:"Certifications matched",items:u,tone:"emerald"}),m.length>0&&(0,Pe.jsx)(GO,{label:"Languages matched",items:m,tone:"emerald"}),s.recommendation_reasoning&&(0,Pe.jsxs)("div",{className:"md:col-span-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:"RECOMMENDATION REASONING"}),(0,Pe.jsx)("p",{className:"text-sm mt-1 text-foreground/90",children:s.recommendation_reasoning})]}),t.resume_summary&&(0,Pe.jsxs)("div",{className:"md:col-span-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:"RESUME SUMMARY"}),(0,Pe.jsx)("p",{className:"text-sm mt-1 text-foreground/90",children:t.resume_summary})]})]})]})]})})}function GO(e){let t=e.label,n=e.items,a=e.tone,r=void 0===a?"neutral":a;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono ".concat({neutral:"text-muted-foreground",emerald:"text-emerald-700/80",rose:"text-rose-700/80"}[r]),children:t}),(0,Pe.jsx)("ul",{className:"mt-1 space-y-0.5 ".concat({neutral:"text-foreground
2/90",emerald:"text-emerald-700",rose:"text-rose-700"}[r]),children:n.map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]})}const $O=new Set(["submitted","viewed","reviewed","interview_requested","interview_completed"]),QO=new Set(["hired","rejected","offer_accepted"]);function XO(e){return{submitted:"New",viewed:"Viewed",reviewed:"Reviewed",interview_requested:"Interview requested",interview_completed:"Interview completed",offer_sent:"Offer sent",offer_accepted:"Offer accepted",hired:"Hired",rejected:"Not selected",screening:"Screening",interview_scheduled:"Interview scheduled",offer_extended:"Offer extended"}[e]||e}function JO(e){if(!e)return null;const t=new Date(e);return Math.floor((new Date-t)/864e5)}function eR(){var e,t,n,a,r,i;const s=qt().jobId,l=(zt(),Ue((0,o.useState)(null),2)),c=l[0],d=l[1],u=Ue((0,o.useState)([]),2),m=u[0],p=u[1],h=Ue((0,o.useState)([]),2),f=h[0],x=h[1],g=Ue((0,o.useState)(!1),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=Ue((0,o.useState)(!0),2),A=N[0],k=N[1],E=async()=>{k(!0);try{var e;const t=Ue(await Promise.allSettled([Qi.get("/jobs/".concat(s)),Qi.get("/applications/by-job/".concat(s)),Qi.get("/jobs/".concat(s,"/matches"),{params:{fresh:!1}}),Qi.get("/jobs/".concat(s,"/refinement"))]),4),n=t[0],a=t[1],r=t[2],i=t[3];"fulfilled"===n.status&&d(n.value.data),"fulfilled"===a.status&&p(a.value.data||[]),"fulfilled"===r.status&&x((null===(e=r.value.data)||void 0===e?void 0:e.matches)||[]),"fulfilled"===i.status&&w(i.value.data||null)}finally{k(!1)}};(0,o.useEffect)(()=>{E()},[s]);const D=(0,o.useMemo)(()=>(m||[]).filter(e=>$O.has(e.status)).slice().sort((e,t)=>new Date(t.applied_at||0)-new Date(e.applied_at||0)),[m]),_=(0,o.useMemo)(()=>{const e=[],t=(m||[]).filter(e=>"interview_completed"===e.status).length;t>0&&e.push({key:"manager",label:"".concat(t," interview").concat(1===t?"":"s"," awaiting hiring-manager call"),icon:ag});const n=(m||[]).filter(e=>"offer_sent"===e.status&&JO(e.applied_at)>5);n.length>0&&e.push({key:"offer",label:"".concat(n.length," offer").concat(1===n.length?"":"s"," sent 5+ days ago"),icon:AN});const a=(m||[]).filter(e=>QO.has(e.status)&&!e.rejection_email_sent_at&&!e.hired_communication_sent_at).length;return a>0&&e.push({key:"closure",label:"".concat(a," candidate").concat(1===a?"":"s"," still to hear back"),icon:lx}),e},[m]);if(A&&!c)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-muted-foreground",children:"Loading\u2026"});if(!c)return(0,Pe.jsxs)("div",{className:"p-10",children:[(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job not found or no access."}),(0,Pe.jsx)(Yn,{to:"/app/employer/jobs",className:"text-sm text-[#0F4FA8] hover:underline mt-2 inline-block",children:"\u2190 Back to Jobs"})]});const C=function(e){if(!e)return null;const t=new Date(e),n=new Date;return Math.floor((n-t)/864e5)}(c.created_at),F=c.is_archived?{bg:"#F3F4F6",fg:"#374151",border:"#E5E7EB"}:"draft"===c.status?{bg:"#FFF7ED",fg:"#9A3412",border:"#FED7AA"}:{bg:"#ECFDF5",fg:"#065F46",border:"#A7F3D0"},S=c.is_archived?"Archived":(c.status||"Open").replace(/^./,e=>e.toUpperCase());return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"job-workspace-loaded",children:[(0,Pe.jsx)(yM,{items:[{label:"Home",to:"/app/employer"},{label:"Jobs",to:"/app/employer/jobs"},{label:c.title||"Job"}],backFallback:"/app/employer/jobs"}),(0,Pe.jsxs)("section",{"data-testid":"workspace-role-summary",className:"mt-2",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(Cg,{size:12,weight:"duotone"}),"Role"]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 flex-wrap mt-1",children:[(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl tracking-tight",children:c.title}),(0,Pe.jsx)("span",{className:"pill border text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{background:F.bg,color:F.fg,borderColor:F.border},"data-testid":"workspace-status-pill",children:S})]}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-2 inline-flex items-center gap-3 flex-wrap",children:[c.location&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Pe.jsx)(TN,{size:12})," ",c.location]}),c.department&&(0,Pe.jsxs)("span",{children:["\xb7 ",c.department]}),null!=C&&(0,Pe.jsxs)("span",{children:["\xb7 Open ",C," day",1===C?"":"s"]}),(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs/".concat(s,"/edit"),className:"ml-2 text-[#0F4FA8] hover:underline inline-flex items-center gap-1","data-testid":"workspace-edit-role",children:[(0,Pe.jsx)(xN,{size:12,weight:"duotone"})," Edit role"]})]})]}),_.length>0&&(0,Pe.jsxs)("section",{className:"mt-6 border border-amber-200 bg-amber-50/60 rounded-md p-4","data-testid":"workspace-hiring-activity",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-amber-800 font-semibold",children:"Needs your attention"}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-1 text-sm text-amber-900",children:_.map(e=>{const t=e.icon;return(0,Pe.jsxs)("li",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(t,{size:14,weight:"duotone"}),e.label]},e.key)})})]}),(0,Pe.jsxs)("section",{className:"mt-10","data-testid":"workspace-candidates-attention",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Hg,{size:16,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"Candidates needing attention"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:0===D.length?"No one is waiting for you on this role right now.":"".concat(D.length," ").concat(1===D.length?"person":"people"," on this role \u2014 sorted by most recent activity.")}),D.length>0&&(0,Pe.jsxs)("ul",{className:"mt-4 space-y-2","data-testid":"workspace-attention-list",children:[D.slice(0,10).map(e=>{var t;return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/app/employer/applications/".concat(e.id),className:"block border border-border rounded-md p-4 hover:border-[#0F172A] transition-colors","data-testid":"workspace-attention-card-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold",children:e.candidate_name}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:[XO(e.status),e.applied_at&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 applied ",JO(e.applied_at),"d ago"]})]})]}),(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"text-muted-foreground"})]}),(null===(t=e.ai_score)||void 0===t?void 0:t.rationale)&&(0,Pe.jsx)("p",{className:"text-sm text-foreground
2/75 mt-2 line-clamp-2",children:e.ai_score.rationale})]})},e.id)}),D.length>10&&(0,Pe.jsx)("li",{children:(0,Pe.jsxs)(Yn,{to:"/app/employer/applicants?job=".concat(s),className:"text-sm text-[#0F4FA8] hover:underline inline-flex items-center gap-1","data-testid":"workspace-see-all-applicants",children:["See all ",D.length," candidates",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})})]})]}),f&&f.length>0&&(0,Pe.jsxs)("section",{className:"mt-10","data-testid":"workspace-people-you-know",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:16,weight:"duotone",className:"text-violet-700"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"People you may already know"})]}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:["Before reviewing new applicants \u2014 ",f.length," ",1===f.length?"person you've":"people you've"," already met",(f.length," who")," may fit this role."]}),(0,Pe.jsx)("ul",{className:"mt-4 space-y-3","data-testid":"workspace-radar-list",children:f.slice(0,5).map(e=>(0,Pe.jsx)(FO,{match:e,jobId:s,onSaved:()=>va.success("Saved to bench")},e.candidate_user_id||e.candidate_profile_id))}),f.length>5&&(0,Pe.jsx)("div",{className:"mt-3",children:(0,Pe.jsxs)(Yn,{to:"/app/employer/jobs/".concat(s,"/matches"),className:"text-sm text-[#0F4FA8] hover:underline inline-flex items-center gap-1","data-testid":"workspace-see-more-radar",children:["See ",f.length-5," more",(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})})]}),(0,Pe.jsxs)("section",{className:"mt-10","data-testid":"workspace-sharpen",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(xN,{size:16,weight:"duotone",className:"text-[#0F172A]"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"Sharpen the role"})]}),j&&(null!==(e=j.must_haves)&&void 0!==e&&e.length||null!==(t=j.deal_breakers)&&void 0!==t&&t.length||null!==(n=j.working_style_traits)&&void 0!==n&&n.length)?(0,Pe.jsxs)("div",{className:"mt-3 border border-border rounded-md p-5","data-testid":"workspace-sharpen-current",children:[(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:"You've already sharpened this role. Tweak anytime."}),(null===(a=j.must_haves)||void 0===a?void 0:a.length)>0&&(0,Pe.jsxs)("div",{className:"mb-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"Must-haves"}),(0,Pe.jsx)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:j.must_haves.map(e=>(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-xs",children:e},e))})]}),(null===(r=j.deal_breakers)||void 0===r?void 0:r.length)>0&&(0,Pe.jsxs)("div",{className:"mb-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"Deal-breakers"}),(0,Pe.jsx)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:j.deal_breakers.map(e=>(0,Pe.jsx)("span",{className:"pill bg-rose-50 border border-rose-200 text-rose-900 text-xs",children:e},e))})]}),(null===(i=j.working_style_traits)||void 0===i?void 0:i.length)>0&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"Working-style traits"}),(0,Pe.jsx)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:j.working_style_traits.map(e=>(0,Pe.jsx)("span",{className:"pill bg-blue-50 border border-blue-200 text-blue-900 text-xs",children:e},e))})]}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>b(!0),className:"mt-4 rounded-md","data-testid":"workspace-sharpen-tweak",children:[(0,Pe.jsx)(xN,{size:12,className:"mr-1.5",weight:"duotone"})," Sharpen again"]})]}):(0,Pe.jsxs)("div",{className:"mt-3 border border-dashed border-border rounded-md p-5","data-testid":"workspace-sharpen-empty",children:[(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground max-w-xl",children:"Tell AROS a few must-haves, deal-breakers, and working-style traits. Takes about a minute. Improves who we surface \u2014 nothing else changes about the role."}),(0,Pe.jsxs)(Lo,{onClick:()=>b(!0),className:"mt-3 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"workspace-sharpen-start",children:["Sharpen this role",(0,Pe.jsx)(eg,{size:14,className:"ml-2",weight:"bold"})]})]})]}),(0,Pe.jsx)(qM,{open:v,onOpenChange:b,jobId:s,onCompleted:()=>{b(!1),E()}})]})}const tR=["__scopeProgress","value","max","getValueLabel"],nR=["__scopeProgress"];var aR="Progress",rR=100,iR=Ue(Jo(aR),2),sR=iR[0],oR=(iR[1],Ue(sR(aR),2)),lR=oR[0],cR=oR[1],dR=o.forwardRef((e,t)=>
2{const n=e.__scopeProgress,a=e.value,r=void 0===a?null:a,i=e.max,s=e.getValueLabel,o=void 0===s?pR:s,l=Ie(e,tR);var c,d;!i&&0!==i||xR(i)||console.error((c="".concat(i),d="Progress","Invalid prop `max` of value `".concat(c,"` supplied to `").concat(d,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(rR,"`.")));const u=xR(i)?i:rR;null===r||gR(r,u)||console.error(function(e,t){return"Invalid prop `value` of value `".concat(e,"` supplied to `").concat(t,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(rR," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")}("".concat(r),"Progress"));const m=gR(r,u)?r:null,p=fR(m)?o(m,u):void 0;return(0,Pe.jsx)(lR,{scope:n,value:m,max:u,children:(0,Pe.jsx)(zo.div,h(h({"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":fR(m)?m:void 0,"aria-valuetext":p,role:"progressbar","data-state":hR(m,u),"data-value":null!==m&&void 0!==m?m:void 0,"data-max":u},l),{},{ref:t}))})});dR.displayName=aR;var uR="ProgressIndicator",mR=o.forwardRef((e,t)=>{var n;const a=e.__scopeProgress,r=Ie(e,nR),i=cR(uR,a);return(0,Pe.jsx)(zo.div,h(h({"data-state":hR(i.value,i.max),"data-value":null!==(n=i.value)&&void 0!==n?n:void 0,"data-max":i.max},r),{},{ref:t}))});function pR(e,t){return"".concat(Math.round(e/t*100),"%")}function hR(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function fR(e){return"number"===typeof e}function xR(e){return fR(e)&&!isNaN(e)&&e>0}function gR(e,t){return fR(e)&&!isNaN(e)&&e<=t&&e>=0}mR.displayName=uR;var vR=dR,bR=mR;const yR=["className","value"],jR=o.forwardRef((e,t)=>{let n=e.className,a=e.value,r=Ie(e,yR);return(0,Pe.jsx)(vR,h(h({ref:t,className:Ro("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n)},r),{},{children:(0,Pe.jsx)(bR,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(a||0),"%)")}})}))});function wR(e){var t,n,a,r,i,s;let l=e.jobId,c=e.candidateId;const d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)(!0),2),g=x[0],v=x[1],b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1];(0,o.useEffect)(()=>{(async()=>{v(!0);try{const e=Ue(await Promise.all([Qi.get("/jobs/".concat(l,"/candidates/").concat(c,"/trait-alignment")),Qi.get("/jobs/".concat(l))]),2),t=e[0],n=e[1];m(t.data.alignment),f(n.data)}catch(zf){}finally{v(!1)}})()},[l,c]);if(g)return(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground","data-testid":"trait-alignment-loading",children:"Loading\u2026"});const w=(null===h||void 0===h?void 0:h.intelligence)||{},N=((null===(t=w.must_have_traits)||void 0===t?void 0:t.length)||0)+((null===(n=w.preferred_traits)||void 0===n?void 0:n.length)||0)+((null===(a=w.nice_to_have_traits)||void 0===a?void 0:a.length)||0);if(0===N)return(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-8 text-center","data-testid":"trait-alignment-empty",children:[(0,Pe.jsx)(BC,{size:32,weight:"duotone",className:"mx-auto text-[#0F4FA8] mb-3"}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",children:"No traits selected on this job yet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-md mx-auto",children:"Open the job and add Must-Have, Preferred, Nice-to-Have, or Red Flag traits. Then return here to see this candidate's alignment."})]});const A=(null===u||void 0===u?void 0:u.alignment_summary)||{},k=Math.round(100*(A.alignment_ratio||0)),E=A.must_have_total>0?A.must_have_matched/A.must_have_total:1;return(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"trait-alignment-panel",children:[(0,Pe.jsxs)("div",{className:"ai-panel rounded-md p-6 relative overflow-hidden",children:[(0,Pe.jsxs)("div",{className:"absolute top-4 right-4 pill bg-[#0F4FA8] text-white text-[10px]",children:[(0,Pe.jsx)(ux,{size:11,weight:"fill"})," DISPLAY-ONLY \xb7 NOT SCORING"]}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"TRAIT ALIGNMENT"}),(0,Pe.jsxs)("div",{className:"flex items-end gap-5 flex-wrap mt-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-5xl tracking-tight",children:u?"".concat(A.matched+A.partial,"/").concat(A.selected):"\u2014"}),(0,Pe.jsx)("div",{className:"text-xs text-white/70 mt-1",children:"traits aligned (incl. partial)"})]}),(0,Pe.jsxs)("div",{className:"border-l border-white/15 pl-5",children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl tracking-tight",children:u?"".concat(k,"%"):"\u2014"}),(0,Pe.jsx)("div",{className:"text-xs text-white/70 mt-1",children:"alignment ratio"})]}),(0,Pe.jsxs)("div",{className:"border-l border-white/15 pl-5",children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl tracking-tight ".concat(u&&E<.5?"text-amber-300":""),children:u?"".concat(A.must_have_matched,"/").concat(A.must_have_total):"\u2014"}),(0,Pe.jsx)("div",{className:"text-xs text-white/70 mt-1",children:"must-have hits"})]}),(0,Pe.jsx)("div",{className:"ml-auto",children:(0,Pe.jsxs)(Lo,{"data-testid":"trait-alignment-compute-btn",onClick:async()=>{j(!0);try{const e=(await Qi.post("/jobs/".concat(l,"/candidates/").concat(c,"/trait-alignment"))).data;m(e.alignment),va.success("Job qualities are ready")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Compute failed")}finally{j(!1)}},disabled:y,className:"bg-[#0F4FA8] hover:bg-white hover:text-[#0F172A] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),y?"Analysing\u2026":u?"Re-compute":"Compute alignment"]})})]}),(null===u||void 0===u?void 0:u.narrative)&&(0,Pe.jsx)("p",{className:"text-sm text-white/85 mt-4 leading-relaxed max-w-3xl","data-testid":"trait-alignment-narrative",children:u.narrative}),(null===u||void 0===u?void 0:u.model)&&(0,Pe.jsxs)("div",{className:"text-[10px] text-white/40 font-mono uppercase tracking-wider mt-3",children:["Model: ",u.model," \xb7 Computed: ",new Date(u.computed_at).toLocaleStr
2ing()]})]}),!u&&(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-6 text-center text-sm text-muted-foreground",children:["Click ",(0,Pe.jsx)("strong",{children:"Compute alignment"})," to score this candidate against the ",N," traits selected for this job."]}),(null===u||void 0===u||null===(r=u.red_flag_hits)||void 0===r?void 0:r.length)>0&&(0,Pe.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded-md p-4","data-testid":"trait-alignment-red-flags",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-red-900",children:[(0,Pe.jsx)(AN,{size:16,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold",children:"Red flags triggered"})]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:u.red_flag_hits.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm text-red-950","data-testid":"trait-alignment-red-flag-".concat(t),children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.flag}),e.evidence&&(0,Pe.jsxs)("span",{className:"text-red-800/80",children:[" \u2014 ",e.evidence]})]},t))})]}),u&&(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{className:"border border-emerald-200 bg-emerald-50/50 rounded-md p-5","data-testid":"trait-alignment-strongest",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3 text-emerald-900",children:[(0,Pe.jsx)(YC,{size:16,weight:"bold"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold",children:"Strongest matches"})]}),0===(u.strongest_matches||[]).length?(0,Pe.jsx)("p",{className:"text-sm text-emerald-900/60 italic",children:"No strong matches yet."}):(0,Pe.jsx)("ul",{className:"space-y-1.5",children:u.strongest_matches.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm text-emerald-950 flex items-start gap-2",children:[(0,Pe.jsx)(YC,{size:14,weight:"bold",className:"mt-1 shrink-0"}),(0,Pe.jsx)("span",{children:e})]},t))})]}),(0,Pe.jsxs)("div",{className:"border border-amber-200 bg-amber-50/50 rounded-md p-5","data-testid":"trait-alignment-gaps",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3 text-amber-900",children:[(0,Pe.jsx)(AN,{size:16,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold",children:"Gaps & weak signals"})]}),0===(u.gaps||[]).length?(0,Pe.jsx)("p",{className:"text-sm text-amber-900/60 italic",children:"No notable gaps."}):(0,Pe.jsx)("ul",{className:"space-y-1.5",children:u.gaps.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm text-amber-950 flex items-start gap-2",children:[(0,Pe.jsx)($f,{size:14,weight:"bold",className:"mt-1 shrink-0"}),(0,Pe.jsx)("span",{children:e})]},t))})]})]}),(null===u||void 0===u||null===(i=u.validation_questions)||void 0===i?void 0:i.length)>0&&(0,Pe.jsxs)("div",{className:"border border-border bg-white rounded-md p-5","data-testid":"trait-alignment-questions",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3 text-[#0F4FA8]",children:[(0,Pe.jsx)(qf,{size:16,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold text-foreground",children:"Suggested validation questions"})]}),(0,Pe.jsx)("ol",{className:"space-y-2",children:u.validation_questions.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm flex gap-3","data-testid":"trait-alignment-question-".concat(t),children:[(0,Pe.jsxs)("span",{className:"text-[#0F4FA8] font-mono font-semibold w-5 shrink-0",children:[t+1,"."]}),(0,Pe.jsx)("span",{className:"leading-relaxed",children:e})]},t))})]}),(null===u||void 0===u||null===(s=u.per_trait)||void 0===s?void 0:s.length)>0&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5","data-testid":"trait-alignment-per-trait",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold",children:"Per-trait assessment"}),(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:[u.per_trait.length," traits"]})]}),(0,Pe.jsx)("ul",{className:"space-y-2.5",children:u.per_trait.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-3 text-sm border-b border-border last:border-0 pb-2.5 last:pb-0","data-testid":"trait-alignment-row-".concat(t),children:[(0,Pe.jsx)(NR,{status:e.status}),(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.trait}),(0,Pe.jsx)(AR,{category:e.category}),e.confidence&&(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:[e.confidence," confidence"]})]}),e.evidence&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:e.evidence})]})]},t))})]})]})}function NR(e){let t=e.status;const n={match:{cls:"bg-emerald-100 text-emerald-900 border-emerald-200",label:"MATCH",Icon:YC},partial:{cls:"bg-amber-100 text-amber-900 border-amber-200",label:"PARTIAL",Icon:dM},missing:{cls:"bg-zinc-100 text-zinc-700 border-zinc-200",label:"MISSING",Icon:$f}},a=n[t]||n.missing,r=a.Icon;return(0,Pe.jsxs)("span",{className:"shrink-0 inline-flex items-center gap-1 pill text-[10px] uppercase tracking-wider border ".concat(a.cls),children:[(0,Pe.jsx)(r,{size:10,weight:"bold"})," ",a.label]})}function AR(e){let t=e.category;const n={must_have:{label:"Must-have",cls:"border-[#0F4FA8]/30 text-[#0F4FA8] bg-[#0F4FA8]/5"},preferred:{label:"Preferred",cls:"border-border bg-secondary text-foreground"},nice_to_have:{label:"Nice-to-have",cls:"border-zinc-200 bg-zinc-50 text-zinc-700"}}[t]||{label:t,cls:"border-border"};return(0,Pe.jsx)("span",{className:"pill text-[10px] uppercase tracking-wider border ".concat(n.cls),children:n.label})}function kR(e){let t=e.alignment,n=e.candidateName;if(!t)return(0,Pe.jsx)("div",{className:"mt-2 flex items-center justify-between gap-2 text-[10px] uppercase tracking-wider font-mono text-muted-foreground border border-dashed border-border rounded px-2 py-1","data-testid":"trait-badge-not-assessed",title:"Qualities for this job not yet reviewed for ".concat(n||"this candidate"),children:(0,Pe.jsx)("span",{children:"Qualities \xb7 not reviewed"})});const a=t.alignment_summary||{},r=Math.round(100*(a.alignment_ratio||0)),i=a.must_have_total>0?a.must_have_matched/a.must_have_total:1,s=(t.red_flag_hits||[]).length;let o,l,c,d,u;return s>0?(o="red",l="#7f1d1d",c="#fef2f2",d="#fecaca",u="Red flags"):r>=70&&i>=.7?(o="strong",l="#065f46",c="#ecfdf5",d="#a7f3d0",u="Strong"):(o="needs",l="#92400e",c="#fffbeb",d="#fde68a",u="Needs validation"),(0,Pe.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2 rounded px-2 py-1 border text-[10px] uppercase tracking-wider font-mono",style:{color:l,background:c,borderColor:d},"data-testid":"trait-badge-".concat(o),title:"Qualities for this job \u2014 click to view details",children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Pe.jsx)(BC,{size:10,weight:"fill"})," ",u]}),(0,Pe.jsxs)("span",{className:"flex items-center gap-2 normal-case tracking-normal",style:{fontVariantNumeric:"tabular-nums"},children:[(0,Pe.jsxs)("span",{"data-testid":"trait-badge-pct",children:[r,"%"]}),(0,Pe.jsx)("span",{className:"opacity-70",children:"\xb7"}),(0,Pe.jsxs)("span",{"data-testid":"trait-badge-musthave",title:"must-have matched / total",children:[a.must_have_matched,"/",a.must_have_total]}),s>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"opacity-70",children:"\xb7"}),(0,Pe.jsxs)("span",{"data-testid":"trait-badge-redflags",title:"red flags triggered",children:[s," red"]})]})]})]})}jR.displayName=vR.displayName;const ER=["__scopeTooltip"],DR=["forceMount","side"],_R=["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"],CR=["__scopeTooltip"];var FR=Ue(Jo("Tooltip",[sp]),2),SR=FR[0],MR=(FR[1],sp()),OR="TooltipProvider",RR="tooltip.open",HR=Ue(SR(OR),2),PR=HR[0],LR=HR[1],TR=e=>{const t=e.__scopeTooltip,n=e.delayDuration,a=void 0===n?700:n,r=e.skipDelayDuration,i=void 0===r?300:r,s=e.disableHoverableContent,l=void 0!==s&&s,c=e.children,d=o.useRef(!0),u=o.useRef(!1),m=o.useRef(0);return o.useEffect(()=>{const e=m.current;return()=>window.clearTimeout(e)},[]),(0,Pe.jsx)(PR,{scope:t,isOpenDelayedRef:d,delayDuration:a,onOpen:o.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:o.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:o.useCallback(e=>{u.current=e},[]),disableHoverableContent:l,children:c})};TR.displayName=OR;var IR="Tooltip",ZR=Ue(SR(IR),2),BR=ZR[0],VR=ZR[1],zR=e=>{const t=e.__scopeTooltip,n=e.children,a=e.open,r=e.defaultOpen,i=e.onOpenChange,s=e.disableHoverableContent,l=e.delayDuration,c=LR(IR,e.__scopeTooltip),d=MR(t),u=Ue(o.useState(null),2),m=u[0],p=u[1],f=rl(),x=o.useRef(0),g=null!==s&&void 0!==s?s:c.disableHoverableContent,v=null!==l&&void 0!==l?l:c.delayDuration,b=o.useRef(!1),y=Ue(sl({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(RR))):c.onClose(),null===i||void 0===i||i(e)},caller:IR}),2),j=y[0],w=y[1],N=o.useMemo(()=>j?b.current?"delayed-open":"instant-open":"closed",[j]),A=o.useCallback(()=>{window.clearTimeout(x.current),x.current=0,b.current=!1,w(!0)},[w]),k=o.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w(!1)},[w]),E=o.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{b.current=!0,w(!0),x.current=0},v)},[v,w]);return o.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,Pe.jsx)(Ap,h(h({},d),{},{children:(0,Pe.jsx)(BR,{scope:t,contentId:f,open:j,stateAttribute:N,trigger:m,onTriggerChange:p,onTriggerEnter:o.useCallback(()=>{c.isOpenDelayedRef.current?E():A()},[c.isOpenDelayedRef,E,A]),onTriggerLeave:o.useCallback(()=>{g?k():(window.clearTimeout(x.current),x.current=0)},[k,g]),onOpen:A,onClose:k,disableHoverableContent:g,children:n})}))};zR.displayName=IR;var qR="TooltipTrigger",UR=o.forwardRef((e,t)=>
2{const n=e.__scopeTooltip,a=Ie(e,ER),r=VR(qR,n),i=LR(qR,n),s=MR(n),l=us(t,o.useRef(null),r.onTriggerChange),c=o.useRef(!1),d=o.useRef(!1),u=o.useCallback(()=>c.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),(0,Pe.jsx)(kp,h(h({asChild:!0},s),{},{children:(0,Pe.jsx)(zo.button,h(h({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},a),{},{ref:l,onPointerMove:$o(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(r.onTriggerEnter(),d.current=!0))}),onPointerLeave:$o(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:$o(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:$o(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:$o(e.onBlur,r.onClose),onClick:$o(e.onClick,r.onClose)}))}))});UR.displayName=qR;var WR="TooltipPortal",YR=Ue(SR(WR,{forceMount:void 0}),2),KR=YR[0],GR=YR[1],$R=e=>{const t=e.__scopeTooltip,n=e.forceMount,a=e.children,r=e.container,i=VR(WR,t);return(0,Pe.jsx)(KR,{scope:t,forceMount:n,children:(0,Pe.jsx)(Sl,{present:n||i.open,children:(0,Pe.jsx)(Fl,{asChild:!0,container:r,children:a})})})};$R.displayName=WR;var QR="TooltipContent",XR=o.forwardRef((e,t)=>{const n=GR(QR,e.__scopeTooltip),a=e.forceMount,r=void 0===a?n.forceMount:a,i=e.side,s=void 0===i?"top":i,o=Ie(e,DR),l=VR(QR,e.__scopeTooltip);return(0,Pe.jsx)(Sl,{present:r||l.open,children:l.disableHoverableContent?(0,Pe.jsx)(rH,h(h({side:s},o),{},{ref:t})):(0,Pe.jsx)(JR,h(h({side:s},o),{},{ref:t}))})}),JR=o.forwardRef((e,t)=>{const n=VR(QR,e.__scopeTooltip),a=LR(QR,e.__scopeTooltip),r=o.useRef(null),i=us(t,r),s=Ue(o.useState(null),2),l=s[0],c=s[1],d=n.trigger,u=n.onClose,m=r.current,p=a.onPointerInTransitChange,f=o.useCallback(()=>{c(null),p(!1)},[p]),x=o.useCallback((e,t)=>{const n=e.currentTarget,a={x:e.clientX,y:e.clientY},r=function(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,a,r,i)){case i:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}(a,n.getBoundingClientRect()),i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return a}(a,r),s=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const n=e[a];for(;t.length>=2;){const e=t[t.length-1],a=t[t.length-2];if(!((e.x-a.x)*(n.y-a.y)>=(e.y-a.y)*(n.x-a.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const t=e[a];for(;n.length>=2;){const e=n[n.length-1],a=n[n.length-2];if(!((e.x-a.x)*(t.y-a.y)>=(e.y-a.y)*(t.x-a.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const t=e.top,n=e.right,a=e.bottom,r=e.left;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}(t.getBoundingClientRect())]);c(s),p(!0)},[p]);return o.useEffect(()=>()=>f(),[f]),o.useEffect(()=>{if(d&&m){const e=e=>x(e,m),t=e=>x(e,d);return d.addEventListener("pointerleave",e),m.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),m.removeEventListener("pointerleave",t)}}},[d,m,x,f]),o.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},a=(null===d||void 0===d?void 0:d.contains(t))||(null===m||void 0===m?void 0:m.contains(t)),r=!function(e,t){const n=e.x,a=e.y;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const e=t[i],o=t[s],l=e.x,c=e.y,d=o.x,u=o.y;c>a!==u>a&&n<(d-l)*(a-c)/(u-c)+l&&(r=!r)}return r}(n,l);a?f():r&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,m,l,u,f]),(0,Pe.jsx)(rH,h(h({},e),{},{ref:i}
2))}),eH=Ue(SR(IR,{isInside:!1}),2),tH=eH[0],nH=eH[1],aH=vs("TooltipContent"),rH=o.forwardRef((e,t)=>{const n=e.__scopeTooltip,a=e.children,r=e["aria-label"],i=e.onEscapeKeyDown,s=e.onPointerDownOutside,l=Ie(e,_R),c=VR(QR,n),d=MR(n),u=c.onClose;return o.useEffect(()=>(document.addEventListener(RR,u),()=>document.removeEventListener(RR,u)),[u]),o.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,u]),(0,Pe.jsx)(hl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,Pe.jsxs)(Ep,h(h(h({"data-state":c.stateAttribute},d),l),{},{ref:t,style:h(h({},l.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}),children:[(0,Pe.jsx)(aH,{children:a}),(0,Pe.jsx)(tH,{scope:n,isInside:!0,children:(0,Pe.jsx)(Sp,{id:c.contentId,role:"tooltip",children:r||a})})]}))})});XR.displayName=QR;var iH="TooltipArrow",sH=o.forwardRef((e,t)=>{const n=e.__scopeTooltip,a=Ie(e,CR),r=MR(n);return nH(iH,n).isInside?null:(0,Pe.jsx)(Dp,h(h(h({},r),a),{},{ref:t}))});sH.displayName=iH;var oH=$R,lH=XR;const cH=["className","sideOffset"],dH=TR,uH=zR,mH=UR,pH=o.forwardRef((e,t)=>{let n=e.className,a=e.sideOffset,r=void 0===a?4:a,i=Ie(e,cH);return(0,Pe.jsx)(oH,{children:(0,Pe.jsx)(lH,h({ref:t,sideOffset:r,className:Ro("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n)},i))})});pH.displayName=lH.displayName;const hH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,20A104.11,104.11,0,0,0,28,124v84a20,20,0,0,0,20,20h84a104,104,0,0,0,0-208Zm0,184H52V124a80,80,0,1,1,80,80Zm-8-76a16,16,0,1,1-16-16A16,16,0,0,1,124,128Zm48,0a16,16,0,1,1-16-16A16,16,0,0,1,172,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,124h0a92,92,0,0,1-92,92H48a8,8,0,0,1-8-8V124a92,92,0,0,1,92-92h0A92,92,0,0,1,224,124Z",opacity:"0.2"}),o.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200Zm0,184H48V124a84,84,0,1,1,84,84Zm12-80a12,12,0,1,1-12-12A12,12,0,0,1,144,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,100,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,188,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200ZM88,140a12,12,0,1,1,12-12A12,12,0,0,1,88,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,132,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,176,140Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M142,128a10,10,0,1,1-10-10A10,10,0,0,1,142,128ZM88,118a10,10,0,1,0,10,10A10,10,0,0,0,88,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,176,118Zm54,6a98.11,98.11,0,0,1-98,98H48a14,14,0,0,1-14-14V124a98,98,0,0,1,196,0Zm-12,0a86,86,0,0,0-172,0v84a2,2,0,0,0,2,2h84A86.1,86.1,0,0,0,218,124Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200Zm0,184H48V124a84,84,0,1,1,84,84Zm12-80a12,12,0,1,1-12-12A12,12,0,0,1,144,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,100,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,188,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,128a8,8,0,1,1-8-8A8,8,0,0,1,140,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,88,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,176,120Zm52,4a96.11,96.11,0,0,1-96,96H48a12,12,0,0,1-12-12V124a96,96,0,0,1,192,0Zm-8,0a88,88,0,0,0-176,0v84a4,4,0,0,0,4,4h84A88.1,88.1,0,0,0,220,124Z"}))]]),fH=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:hH})));fH.displayName="ChatTeardropDotsIcon";const xH=fH,gH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M246.81,111.29,158.63,55.12A19.91,19.91,0,0,0,128,71.84v30L54.63,55.12A19.91,19.91,0,0,0,24,71.84V184.16a19.93,19.93,0,0,0,30.63,16.72L128,154.15v30a19.93,19.93,0,0,0,30.63,16.72l88.18-56.17a19.79,19.79,0,0,0,0-33.42ZM48,176.64V79.36L124.38,128Zm104,0V79.36L228.38,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M144,128a7.76,7.76,0,0,1-3.63,6.59L52.18,190.74A7.91,7.91,0,0,1,40,184.15V71.85a7.91,7.91,0,0,1,12.18-6.59l88.19,56.15A7.76,7.76,0,0,1,144,128Zm100.37-6.59L156.18,65.26A7.91,7.91,0,0,0,144,71.85v112.3a7.91,7.91,0,0,0,12.18,6.59l88.19-56.15A7.8,7.8,0,0,0,244.37,121.41Z",opacity:"0.2"}),o.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M256,128a15.76,15.76,0,0,1-7.33,13.34L160.48,197.5A15.91,15.91,0,0,1,136,184.16v-37.3L56.48,197.5A15.91,15.91,0,0,1,32,184.16V71.84A15.91,15.91,0,0,1,56.48,58.5L136,109.14V71.84A15.91,15.91,0,0,1,160.48,58.5l88.19,56.16A15.76,15.76,0,0,1,256,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M247.59,116.35,159.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,138,71.84v41L55.41,60.18a14,14,0,0,0-14.22-.46A13.83,13.83,0,0,0,34,71.84V184.16a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46L138,143.21v40.95a13.83,13.83,0,0,0,7.19,12.12,14,14,0,0,0,14.22-.46l88.18-56.17a13.79,13.79,0,0,0,0-23.3ZM137.15,129.53,49,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Zm104,0L153,185.69a1.9,1.9,0,0,1-2,.06,1.73,1.73,0,0,1-1-1.59V71.84a1.73,1.73,0,0,1,1-1.59,2,2,0,0,1,1-.26,1.87,1.87,0,0,1,1,.32l88.19,56.16a1.8,1.8,0,0,1,0,3.06Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M248.67,114.66,160.48,58.5A15.91,15.91,0,0,0,136,71.84v37.3L56.48,58.5A15.91,15.91,0,0,0,32,71.84V184.16A15.92,15.92,0,0,0,56.48,197.5L136,146.86v37.3a15.92,15.92,0,0,0,24.48,13.34l88.19-56.16a15.8,15.8,0,0,0,0-26.68ZM48,183.94V72.07L135.82,128Zm104,0V72.07L239.82,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M246.52,118,158.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,140,71.84v44.59L54.33,61.87a12,12,0,0,0-12.18-.39A11.66,11.66,0,0,0,36,71.84V184.16a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L140,139.57v44.59a11.66,11.66,0,0,0,6.15,10.36,12,12,0,0,0,12.18-.39L246.52,138a11.81,11.81,0,0,0,0-19.94Zm-108.3,13.19L50,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Zm104,0L154,187.38a3.91,3.91,0,0,1-4,.13,3.76,3.76,0,0,1-2-3.35V71.84a3.76,3.76,0,0,1,2-3.35,4,4,0,0,1,1.91-.5,3.94,3.94,0,0,1,2.13.63l88.18,56.16a3.8,3.8,0,0,1,0,6.44Z"}))]]),vH=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:gH})));vH.displayName="FastForwardIcon";const bH=vH,yH=[{key:"recommended",label:"Awaiting your review",color:"#059669",headline:"New applicants whose information has been processed and is ready to look at.",iconBucket:Yf},{key:"second_look",label:"Needs more information",color:"#D97706",headline:"Applicants whose submitted information does not cover parts of the job.",iconBucket:Ix},{key:"not_fit",label:"Closed out",color:"#6B7280",headline:"Applicants who have been rejected or are otherwise no longer active.",iconBucket:Vj},{key:"waiting_feedback",label:"Waiting on Feedback",color:"#1E40AF",headline:"Candidates with hiring-manager review in flight.",iconBucket:ag}];function jH(e){if("interview_requested"===e.status||"interview_completed"===e.status)return"waiting_feedback";if("rejected"===e.status)return"not_fit";const t=e.missing_required_qualifications,n=e.unanswered_context_questions;return Array.isArray(t)&&t.length>0||Array.isArray(n)&&n.length>0?"second_look":"recommended"}function wH(e){let t=e.counts;const n=t.second_look;let a;return a=t.recommended>0?(0,Pe.jsxs)(Pe.Fragment,{children:[t.recommended," applicant",1===t.recommended?" is":"s are"," awaiting your review.",n>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" ",n," more need",1===n?"s":""," more information."]})]}):n>0?(0,Pe.jsxs)(Pe.Fragment,{children:["Nobody new is waiting on you. ",n," applicant",1===n?"":"s"," still need",1===n?"s":""," more information before you can decide."]}):t.waiting_feedback>0?(0,Pe.jsxs)(Pe.Fragment,{children:[t.waiting_feedback," interview decision",1===t.waiting_feedback?"":"s"," are in flight."]}):(0,Pe.jsx)(Pe.Fragment,{children:"You're caught up. Nothing needs your decision today."}),(0,Pe.jsxs)("div",{className:"mt-5 rounded-xl px-5 py-4",style:{background:"#F5F8F
2F",border:"1px solid #C7D7F4"},"data-testid":"pipeline-hiring-brief",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:"#4F6FB0"},children:"Hiring brief"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-xl mt-1 tracking-tight",style:{color:"#041C3A"},children:a})]})}function NH(e){e.apps;let t=e.jobs,n=e.visibleApps,a=e.activeBucket,r=e.onChangeBucket,i=e.onAct,s=e.onReject,l=e.onBulkComplete;const c=(0,o.useMemo)(()=>{const e={};for(const n of t||[])e[n.id]=n;return e},[t]),d=(0,o.useMemo)(()=>{const e={recommended:[],second_look:[],not_fit:[],waiting_feedback:[]};for(const t of n){const n=jH(t);e[n]&&e[n].push(t)}for(const t of Object.keys(e))e[t].sort((e,t)=>new Date(t.created_at||0)-new Date(e.created_at||0));return e},[n]),u=Object.fromEntries(Object.entries(d).map(e=>{let t=Ue(e,2);return[t[0],t[1].length]})),m=(()=>{if(a&&u[a]>0)return a;for(const e of yH)if(u[e.key]>0)return e.key;return"recommended"})(),p=async e=>{try{await Qi.post("/hiring-manager-share/",{application_ids:[e.id],hiring_manager_email:""}),va.success("Share link created \u2014 copy from the candidate detail page.")}catch(zf){va.message("Open the candidate to add the hiring manager's email.")}},h=async e=>{const t=e.candidate_profile_id||e.candidate_user_id||e.id;try{await Qi.post("/resume-intel/candidates/".concat(t,"/talent-bench"),{enabled:!0,application_id:e.id}),va.success("".concat(e.candidate_name||"Candidate"," saved to talent pool."))}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Could not save to bench.")}},f=d[m]||[],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=Ue((0,o.useState)(""),2),y=b[0],j=b[1],w=Ue((0,o.useState)(!1),2),N=w[0],A=w[1],k=Ue((0,o.useState)(""),2),E=k[0],D=k[1],_=Ue((0,o.useState)(!1),2),C=_[0],F=_[1],S=Ue((0,o.useState)(!1),2),M=S[0],O=S[1],R=f.map(e=>e.id),H=R.length;return(0,Pe.jsxs)("div",{className:"mt-2","data-testid":"applicants-decisions-view",children:[(0,Pe.jsx)(wH,{counts:u}),(0,Pe.jsx)("div",{className:"mt-6 flex items-center gap-1 border-b border-border overflow-x-auto","data-testid":"applicants-bucket-tabs",children:yH.filter(e=>"hidden_talent"!==e.key&&"waiting_feedback"!==e.key||u[e.key]>0).map(e=>{const t=u[e.key]||0,n=m===e.key,a=e.iconBucket;return(0,Pe.jsxs)("button",{type:"button",onClick:()=>r(e.key),"data-testid":"applicants-bucket-tab-".concat(e.key),className:"relative px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap flex items-center gap-1.5 ".concat(n?"text-[#0F172A]":"text-muted-foreground hover:text-[#0F172A]"),children:[(0,Pe.jsx)(a,{size:14,weight:"duotone",style:{color:e.color}}),(0,Pe.jsx)("span",{children:e.label}),(0,Pe.jsx)("span",{className:"ml-1 inline-flex items-center justify-center text-[11px] font-mono px-1.5 py-0.5 rounded-md",style:{background:n?"#0F172A":"#F3F4F6",color:n?"white":"#6B7280"},children:t}),n&&(0,Pe.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 right-0 -bottom-px h-0.5",style:{background:e.color}})]},e.key)})}),(()=>{const e=yH.find(e=>e.key===m);return e?(0,Pe.jsx)("p",{className:"mt-3 text-sm text-muted-foreground","data-testid":"applicants-bucket-headline-".concat(m),children:e.headline}):null})(),H>0&&("recommended"===m||"hidden_talent"===m||"second_look"===m||"not_fit"===m)&&(0,Pe.jsx)(kH,{bucketKey:m,count:H,onSendToHm:()=>{j(""),v(!0)},onMoveToScreening:()=>F(!0),onReject:()=>{D(""),A(!0)}}),0===f.length?(0,Pe.jsx)(EH,{bucketKey:m}):(0,Pe.jsx)("ul",{className:"mt-4 divide-y divide-border","data-testid":"applicants-decisions-rows",children:f.map(e=>(0,Pe.jsx)(AH,{app:e,job:c[e.job_id],bucketKey:m,onAct:i,onReject:s,onSendToHm:p,onBench:h},e.id))}),(0,Pe.jsx)(Kd,{open:g,onOpenChange:e=>!e&&v(!1),children:(0,Pe.jsxs)(Qd,{"data-testid":"bulk-send-to-hm-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{children:["Send ",H," candidate",1===H?"":"s"," to hiring manager"]}),(0,Pe.jsx)(tu,{children:"A single review link will be created so your hiring manager sees the whole shortlist in one place. They'll only see the evidence summary you choose to share \u2014 no internal scores or notes."})]}),(0,Pe.jsxs)("div",{className:"space-y-2",children:[(0,Pe.jsx)("label",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:"Hiring manager email"}),(0,Pe.jsx)(Io,{type:"email",placeholder:"[email protected]",value:y,onChange:e=>j(e.target.value),"data-testid":"bulk-send-to-hm-email"})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>v(!1),"data-testid":"bulk-send-to-hm-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>
2{if(y.trim()){O(!0);try{await Qi.post("/hiring-manager-share/",{application_ids:R,hiring_manager_email:y.trim()}),va.success("Share link sent to ".concat(y.trim()," for ").concat(H," candidate").concat(1===H?"":"s",".")),v(!1),j(""),l&&l()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not send to hiring manager.")}finally{O(!1)}}else va.error("Hiring manager email is required.")},disabled:M||!y.trim(),"data-testid":"bulk-send-to-hm-confirm",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:M?"Sending\u2026":"Send all ".concat(H)})]})]})}),(0,Pe.jsx)(Kd,{open:C,onOpenChange:e=>!e&&F(!1),children:(0,Pe.jsxs)(Qd,{"data-testid":"bulk-screening-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{children:["Move ",H," candidate",1===H?"":"s"," to screening"]}),(0,Pe.jsxs)(tu,{children:["Status moves to ",(0,Pe.jsx)("span",{className:"font-mono",children:"reviewed"}),'. They\'ll appear in "Waiting on Feedback" once an interview is requested.']})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>F(!1),"data-testid":"bulk-screening-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>{O(!0);try{const e=(await Promise.allSettled(R.map(e=>Qi.patch("/applications/".concat(e,"/status"),{status:"reviewed",note:"Bulk-moved to screening from pipeline"})))).filter(e=>"fulfilled"===e.status).length,t=H-e;e>0&&va.success("".concat(e," candidate").concat(1===e?"":"s"," moved forward to screening.")),t>0&&va.error("".concat(t," could not be moved. They stay in this bucket.")),F(!1),l&&l()}finally{O(!1)}},disabled:M,"data-testid":"bulk-screening-confirm",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:M?"Moving\u2026":"Move all ".concat(H)})]})]})}),(0,Pe.jsx)(Kd,{open:N,onOpenChange:e=>!e&&A(!1),children:(0,Pe.jsxs)(Qd,{"data-testid":"bulk-reject-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{children:["Send polite rejection to ",H," candidate",1===H?"":"s"]}),(0,Pe.jsx)(tu,{children:"A documented reason is required. The same reason is recorded for every candidate in this bucket. Closure messages are sent on the next comm cycle."})]}),(0,Pe.jsxs)("div",{className:"space-y-2",children:[(0,Pe.jsx)("label",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:"Rejection reason (internal \u2014 not shared with candidates verbatim)"}),(0,Pe.jsx)(Bo,{rows:3,placeholder:"e.g. Insufficient evidence of required experience",value:E,onChange:e=>D(e.target.value.slice(0,500)),"data-testid":"bulk-reject-reason"})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>A(!1),"data-testid":"bulk-reject-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(E.trim()){O(!0);try{const e=(await Promise.allSettled(R.map(e=>Qi.patch("/applications/".concat(e,"/status"),{status:"rejected",note:"Bulk reject from pipeline",rejection_reason:E.trim()})))).filter(e=>"fulfilled"===e.status).length,t=H-e;e>0&&va.success("Polite rejection sent to ".concat(e," candidate").concat(1===e?"":"s",".")),t>0&&va.error("".concat(t," could not be rejected.")),A(!1),D(""),l&&l()}finally{O(!1)}}else va.error("A documented rejection reason is required.")},disabled:M||!E.trim(),"data-testid":"bulk-reject-confirm",className:"bg-red-600 hover:bg-red-700 text-white",children:M?"Sending\u2026":"Reject all ".concat(H)})]})]})})]})}function AH(e){let t=e.app,n=e.job,a=(e.bucketKey,e.onAct),r=e.onReject,i=e.onSendToHm,s=e.onBench;const o=function(e){var t,n;const a=null===(t=e.ai_score)||void 0===t?void 0:t.why_recommended;if(Array.isArray(a)&&a[0])return a[0];const r=null===(n=e.ai_score)||void 0===n?void 0:n.strengths;return Array.isArray(r)&&r[0]?r[0]:null}(t),l=function(e){var t,n;const a=null===(t=e.ai_score)||void 0===t?void 0:t.risks;if(Array.isArray(a)&&a[0])return a[0];const r=null===(n=e.ai_score)||void 0===n?void 0:n.concerns;return Array.isArray(r)&&r[0]?r[0]:null}(t),c=function(e){if(!e)return null;const t=Date.now()-new Date(e).getTime();return Number.isNaN(t)||t<0?null:Math.floor(t/864e5)}(t.created_at),d=function(e){let t=e.app,n=e.onAct,a=e.onReject,r=(e.onSendTo
2Hm,e.onBench);return[{key:"interview",label:"Interview",icon:OF,tone:"primary",onClick:()=>n(t.id,"interview_requested")},{key:"review",label:"Review",icon:ly,tone:"secondary",onClick:()=>n(t.id,"reviewed")},{key:"bench",label:"Save to Talent Pool",icon:QF,tone:"secondary",onClick:()=>r(t)},{key:"reject",label:"Reject",icon:Vj,tone:"danger",onClick:()=>a(t.id)}]}({app:t,onAct:a,onReject:r,onSendToHm:i,onBench:s}),u=d[0],m=null===u||void 0===u?void 0:u.icon;return(0,Pe.jsxs)("li",{className:"py-4 grid grid-cols-1 md:grid-cols-[1fr_auto] gap-3 md:items-start","data-testid":"applicants-decision-row-".concat(t.id),children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline gap-2 flex-wrap",children:[(0,Pe.jsx)(Yn,{to:"/app/employer/applications/".concat(t.id),className:"font-semibold text-[#0F172A] hover:underline truncate","data-testid":"applicants-decision-name-".concat(t.id),children:t.candidate_name||"Unnamed candidate"}),(null===n||void 0===n?void 0:n.title)&&(0,Pe.jsxs)("span",{className:"text-sm text-muted-foreground truncate",children:["\xb7 ",n.title]}),null!=c&&c>=0&&(0,Pe.jsx)("span",{className:"text-[11px] font-mono text-muted-foreground",children:0===c?"applied today":"".concat(c,"d in pipeline")})]}),(0,Pe.jsxs)("div",{className:"mt-1.5 text-xs space-y-1","data-testid":"applicants-decision-evidence-".concat(t.id),children:[o&&(0,Pe.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"text-emerald-600 mt-0.5 shrink-0"}),(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:[(0,Pe.jsx)("strong",{className:"text-[#0F172A]",children:"What we found:"})," ",o]})]}),l&&(0,Pe.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill",className:"text-amber-600 mt-0.5 shrink-0"}),(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:[(0,Pe.jsx)("strong",{className:"text-[#0F172A]",children:"What we did not find:"})," ",l]})]}),!o&&!l&&(0,Pe.jsx)("div",{className:"text-muted-foreground italic",children:"This resume has not been processed yet."})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap md:justify-end",children:[u&&(0,Pe.jsxs)(Lo,{size:"sm",onClick:u.onClick,"data-testid":"applicants-decision-primary-".concat(t.id),title:u.title||void 0,className:"danger"===u.tone?"bg-red-600 hover:bg-red-700 text-white rounded-md":"success"===u.tone?"bg-emerald-600 hover:bg-emerald-700 text-white rounded-md":"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[m&&(0,Pe.jsx)(m,{size:14,className:"mr-1.5",weight:"fill"}),u.label]}),d.slice(1,4).map(e=>{const n=e.icon;return(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:e.onClick,disabled:e.disabled,"aria-disabled":e.disabled||void 0,title:e.title,"aria-label":e.title?"".concat(e.label,". ").concat(e.title):void 0,"data-testid":"applicants-decision-".concat(e.key,"-").concat(t.id),className:"danger"===e.tone?"rounded-md text-red-700 border-red-200 hover:bg-red-50 hover:text-red-700":"rounded-md",children:[(0,Pe.jsx)(n,{size:14,className:"mr-1.5"}),e.label]},e.key)})]})]})}function kH(e){let t=e.bucketKey,n=e.count,a=e.onSendToHm,r=e.onMoveToScreening,i=e.onReject;const s={recommended:{tone:"#059669",bg:"#ECFDF5",border:"#A7F3D0",copy:"".concat(n," candidate").concat(1===n?" is":"s are"," ready for your hiring manager."),primary:{label:"Send all ".concat(n," to hiring manager"),onClick:a,testid:"bulk-banner-send-to-hm",Icon:xH,tone:"primary"}},hidden_talent:{tone:"#7C3AED",bg:"#F5F3FF",border:"#DDD6FE",copy:"".concat(n," candidate").concat(1===n?"":"s"," with transferable evidence \u2014 worth surfacing to the hiring manager."),primary:{label:"Send all ".concat(n," to hiring manager"),onClick:a,testid:"bulk-banner-send-to-hm",Icon:xH,tone:"primary"}},second_look:{tone:"#D97706",bg:"#FFFBEB",border:"#FDE68A",copy:"".concat(n," candidate").concat(1===n?" deserves":"s deserve"," a closer look."),primary:{label:"Move all ".concat(n," forward"),onClick:r,testid:"bulk-banner-move-to-screening",Icon:bH,tone:"primary",title:"Move all selected candidates to the screening stage. Their status changes to 'reviewed' and they show up in your Screening queue."}},not_fit:{tone:"#6B7280",bg:"#FAFAFA",border:"#E5E7EB",copy:"".concat(n," candidate").
2concat(1===n?"":"s"," waiting on closure. Send a polite rejection so they hear back."),primary:{label:"Send polite rejection to all ".concat(n),onClick:i,testid:"bulk-banner-reject-all",Icon:Vj,tone:"danger"}}}[t];if(!s)return null;const o=s.primary.Icon;return(0,Pe.jsxs)("div",{className:"mt-5 rounded-xl px-5 py-4 flex items-center justify-between gap-4 flex-wrap",style:{background:s.bg,borderColor:s.border,borderWidth:1},"data-testid":"bulk-banner-".concat(t),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,Pe.jsx)("span",{"aria-hidden":!0,className:"w-2 h-2 rounded-full shrink-0",style:{background:s.tone}}),(0,Pe.jsx)("div",{className:"text-sm font-medium",style:{color:"#0F172A"},"data-testid":"bulk-banner-copy-".concat(t),children:s.copy})]}),(0,Pe.jsxs)(Lo,{size:"sm",onClick:s.primary.onClick,"data-testid":s.primary.testid,title:s.primary.title||void 0,className:"danger"===s.primary.tone?"rounded-md bg-red-600 hover:bg-red-700 text-white":"rounded-md bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:[(0,Pe.jsx)(o,{size:14,weight:"fill",className:"mr-1.5"}),s.primary.label]})]})}function EH(e){let t=e.bucketKey;const n={recommended:{icon:Yf,tone:"#059669",heading:"No candidate evidence summaries are available yet.",body:"Once resumes are reviewed, the most relevant evidence will appear here."},second_look:{icon:Ix,tone:"#D97706",heading:"Nothing needs a second look right now.",body:"Candidates with partial fit or transferable experience land here."},hidden_talent:{icon:ux,tone:"#7C3AED",heading:"No hidden talent yet.",body:"Candidates with strong evidence of transferable success will surface here."},not_fit:{icon:Vj,tone:"#6B7280",heading:"No candidates filtered out.",body:"Candidates with limited evidence of fit will appear here."},waiting_feedback:{icon:ag,tone:"#1E40AF",heading:"No interviews in flight.",body:"Candidates with a pending interview decision will appear here."}},a=n[t]||n.recommended,r=a.icon;return(0,Pe.jsxs)("div",{className:"py-12 text-center","data-testid":"applicants-decisions-empty-".concat(t),children:[(0,Pe.jsx)(r,{size:28,weight:"duotone",className:"mx-auto mb-3",style:{color:a.tone}}),(0,Pe.jsx)("div",{className:"font-semibold text-[#0F172A]",children:a.heading}),(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground mt-1",children:a.body})]})}const DH=[{key:"submitted",label:"New"},{key:"viewed",label:"Viewed"},{key:"reviewed",label:"Reviewed"},{key:"interview_requested",label:"Interview"},{key:"offer_sent",label:"Offer"},{key:"hired",label:"Hired"}];function _H(){const e=Ue(Xn(),2),t=e[0],n=e[1],a=Ue((0,o.useState)([]),2),r=a[0],i=a[1],s=Ue((0,o.useState)([]),2),l=s[0],c=s[1],d=t.get("job")||"all",u=t.get("bucket")||null,m=t.get("verdict")||null,p=t.get("attention")||"all",f="pool"===t.get("tab")?"pool":"pipeline",x=e=>{const a=new URLSearchParams(t);"pool"===e?a.set("tab","pool"):a.delete("tab"),n(a,{replace:!1})},g="board"===t.get("view")?"board":"list",v=Ue((0,o.useState)(m||"recommended"),2),b=v[0],y=v[1],j=Ue((0,o.useState)(null),2),w=j[0],N=j[1],A=Ue((0,o.useState)(null),2),k=A[0],E=A[1],D={missing_closure:"Rejected \u2014 need closure communication",missing_acknowledgement:"Application not acknowledged",communication_failures:"Communication delivery failed",over_sla:"Over 7-day SLA",awaiting_hiring_manager:"Awaiting hiring-manager decision",awaiting_recruiter:"Awaiting your review"},_=Ue((0,o.useState)(()=>{try{return"1"===localStorage.getItem("aros.pipeline.show_traits")}catch(e){return!1}}),2),C=_[0],F=_[1],S=Ue((0,o.useState)({}),2),M=S[0],O=S[1];(0,o.useEffect)(()=>{try{localStorage.setItem("aros.pipeline.show_traits",C?"1":"0")}catch(e){}},[C]);const R=async()=>{let e="/applications/org/all";"all"!==d&&(e="/applications/by-job/".concat(d));const t=(await Qi.get(e)).data;i(t)},H=async()=>{if(C&&"all"!==d)try{const e=(await Qi.get("/jobs/".concat(d,"/trait-alignments"))).data;O(e.alignments||{})}catch(e){O({})}else O({})};(0,o.useEffect)(()=>{Qi.get("/jobs/mine").then(e=>c(e.data))},[]),(0,o.useEffect)(()=>{R()},[d]),(0,o.useEffect)(()=>{H()},[d,C,r.length]),(0,o.useEffect)(()=>{let e=!1;return u?((async()=>{try{var t,n;const a=(await Qi.get("/pipeline-pulse")).data,r=(null===a||void 0===a||null===(t=a.candidate_risk)||void 0===t?void 0:t[u])||(null===a||void 0===a||null===(n=a.trust_risk)||void 0===n?void 0:n[u])||[];if(e)return;const i=new Set(r.map(e=>
2e.application_id).filter(Boolean));N(i),E({label:D[u]||u,count:i.size})}catch(a){e||(N(new Set),E({label:D[u]||u,count:0}))}})(),()=>{e=!0}):(N(null),void E(null))},[u]);const P=(0,o.useMemo)(()=>{let e=r;return w&&(e=e.filter(e=>w.has(e.id))),"needs"===p?e=e.filter(e=>{const t=(e.status||"").toLowerCase();return!("hired"===t||"rejected"===t||"withdrawn"===t)&&!e.next_action_scheduled_at}):"handling"===p&&(e=e.filter(e=>{if(e.next_action_scheduled_at)return!0;const t=(e.status||"").toLowerCase();return!("hired"===t||"rejected"===t||"withdrawn"===t)&&e.acknowledgement_sent_at})),e},[r,w,p]),L=Ue((0,o.useState)(!1),2),T=L[0],I=L[1],Z=Ue((0,o.useState)(!1),2),B=Z[0],V=Z[1],z=Ue((0,o.useState)(!1),2),q=z[0],U=z[1],W=Ue((0,o.useState)(null),2),Y=W[0],K=W[1],G=Ue((0,o.useState)(!1),2),$=G[0],Q=G[1],X=Ue((0,o.useState)(null),2),J=X[0],ee=X[1],te=Ue((0,o.useState)(""),2),ne=te[0],ae=te[1],re=Ue((0,o.useState)(!1),2),ie=re[0],se=re[1],oe=(0,o.useRef)(null),le=(0,o.useMemo)(()=>l.find(e=>e.id===d),[l,d]),ce=!(null===le||void 0===le||!le.intelligence||!((le.intelligence.must_have_traits||[]).length||(le.intelligence.preferred_traits||[]).length||(le.intelligence.nice_to_have_traits||[]).length||(le.intelligence.red_flag_traits||[]).length));(0,o.useEffect)(()=>()=>{oe.current&&clearInterval(oe.current)},[]);const de=(0,o.useMemo)(()=>{const e=Object.fromEntries(DH.map(e=>[e.key,[]]));return P.forEach(t=>{const n=DH.find(e=>e.key===t.status)?t.status:"submitted";e[n]=e[n]||[],"interview_completed"===t.status?e.interview_requested.push(t):"offer_accepted"===t.status?e.offer_sent.push(t):e[n].push(t)}),e},[P]),ue=async(e,t)=>{if("rejected"===t)return ee(e),ae(""),void Q(!0);try{await Qi.patch("/applications/".concat(e,"/status"),{status:t,note:"Moved via pipeline"}),va.success("Status updated"),R()}catch($ge){var n,a;va.error((null===$ge||void 0===$ge||null===(n=$ge.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Update failed")}};return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8",children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"PEOPLE"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",style:{color:"var(--brand-navy)"},children:"pool"===f?"Talent Pool":"list"===g?"Hiring pipeline":"Applicant pipeline"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"pool"===f?"People your team has saved for later. Shared across your organization.":u&&w?(0,Pe.jsxs)(Pe.Fragment,{children:[P.length," of ",r.length," people match this filter."]}):"all"!==p?(0,Pe.jsxs)(Pe.Fragment,{children:[P.length," of ",r.length," people match this view."]}):"list"===g?(0,Pe.jsxs)(Pe.Fragment,{children:[r.length," ",1===r.length?"person":"people"," \u2014 organized by evidence."]}):(0,Pe.jsxs)(Pe.Fragment,{children:[r.length," people across stages."]})})]}),(0,Pe.jsxs)("div",{className:"flex items-end gap-3 flex-wrap",children:["all"!==d&&(0,Pe.jsxs)(Lo,{"data-testid":"bulk-align-btn",type:"button",variant:"outline",onClick:()=>I(!0),disabled:!ce,title:ce?"Review job qualities for every applicant":"Add Role Traits to this job first",className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),"Review job qualities"]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 bg-secondary/40 border border-border rounded-md px-3 py-2","data-testid":"show-traits-toggle-wrap",children:[(0,Pe.jsx)(BC,{size:14,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono",children:"Show qualities for this job"}),(0,Pe.jsx)(dH,{delayDuration:150,children:(0,Pe.jsxs)(uH,{children:[(0,Pe.jsx)(mH,{asChild:!0,children:(0,Pe.jsx)("button",{type:"button","aria-label":"What qualities for this job shows","data-testid":"show-traits-toggle-help",className:"inline-flex items-center justify-center rounded-full hover:bg-zinc-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 p-0.5",children:(0,Pe.jsx)(bA,{size:12,weight:"regular",className:"text-muted-foreground"})})}),(0,Pe.jsxs)(pH,{side:"bottom",align:"end",className:"max-w-[320px] leading-relaxed text-[12px] font-normal",children:[(0,Pe.jsx)("div",{className:"font-semibold uppercase tracking-[0.12em] text-[10px] mb-1",children:"Qualities for this job"}),(0,Pe.jsx)("div",{children:"Overlays badges on each applicant card showing which of this job's chosen qualities are supported by evidence and which still need validation. Tur
2n it on when you want a quick quality-by-quality read across the pipeline."}),(0,Pe.jsx)("div",{className:"mt-1.5 opacity-70 italic",children:"Toggle only affects your view. Evidence and uncertainty still need human judgement \u2014 AROS surfaces what we found; your team decides."})]})]})}),(0,Pe.jsx)(oM,{"data-testid":"show-traits-toggle",checked:C,onCheckedChange:F,disabled:"all"===d})]}),(0,Pe.jsx)("div",{className:"w-64",children:(0,Pe.jsxs)(Sf,{value:d,onValueChange:e=>n("all"===e?{}:{job:e}),children:[(0,Pe.jsx)(Of,{children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All jobs"}),l.map(e=>(0,Pe.jsx)(Lf,{value:e.id,children:e.title},e.id))]})]})}),(0,Pe.jsx)("button",{type:"button","data-testid":"applicants-view-toggle",onClick:()=>{const e=new URLSearchParams(t);"list"===g?e.set("view","board"):e.delete("view"),n(e)},className:"text-xs underline-offset-2 hover:underline text-muted-foreground",title:"list"===g?"Switch to legacy column board":"Switch to today's decisions list",children:"list"===g?"Board view":"Decisions view"})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 border-b border-border flex items-center gap-1",role:"tablist","aria-label":"Candidates tabs","data-testid":"candidates-tabs",children:[(0,Pe.jsx)("button",{type:"button",role:"tab","aria-selected":"pipeline"===f,"data-testid":"candidates-tab-pipeline",onClick:()=>x("pipeline"),className:"px-4 py-2.5 text-sm font-medium -mb-px border-b-2 transition-colors ".concat("pipeline"===f?"border-[#0F1D2D] text-[#0F1D2D]":"border-transparent text-muted-foreground hover:text-[#0F1D2D]"),children:"Pipeline"}),(0,Pe.jsx)("button",{type:"button",role:"tab","aria-selected":"pool"===f,"data-testid":"candidates-tab-pool",onClick:()=>x("pool"),className:"px-4 py-2.5 text-sm font-medium -mb-px border-b-2 transition-colors ".concat("pool"===f?"border-[#0F1D2D] text-[#0F1D2D]":"border-transparent text-muted-foreground hover:text-[#0F1D2D]"),children:"Talent Pool"})]}),"pipeline"===f&&(0,Pe.jsx)("div",{className:"mt-4 flex items-center gap-2 flex-wrap",role:"tablist","aria-label":"Attention filter","data-testid":"attention-chips",children:[{key:"needs",label:"Needs you"},{key:"handling",label:"Relief is handling"},{key:"all",label:"All"}].map(e=>{const a=p===e.key;return(0,Pe.jsx)("button",{type:"button",role:"tab","aria-selected":a,onClick:()=>(e=>{const a=new URLSearchParams(t);"all"===e?a.delete("attention"):a.set("attention",e),n(a,{replace:!1})})(e.key),"data-testid":"attention-chip-".concat(e.key),className:"px-3 py-1.5 rounded-full text-xs font-medium transition-colors border ".concat(a?"bg-[#14B8A6] text-[#0F1D2D] border-[#14B8A6]":"bg-white text-slate-600 border-[#E4E7EB] hover:border-[#14B8A6]"),children:e.label},e.key)})}),"pool"===f?(0,Pe.jsx)("div",{className:"mt-4","data-testid":"candidates-tab-panel-pool",children:(0,Pe.jsx)(zS,{embedded:!0})}):(0,Pe.jsxs)("div",{"data-testid":"candidates-tab-panel-pipeline",children:[C&&"all"===d&&(0,Pe.jsx)("div",{className:"mt-3 text-xs text-muted-foreground bg-secondary/40 border border-border rounded px-3 py-2","data-testid":"show-traits-hint",children:"Select a specific job above to see quality indicators on each card. Qualities are set per-job."}),u&&k&&(0,Pe.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-3 flex-wrap rounded-md border px-4 py-3",style:{background:"#FFFBEB",borderColor:"#FDE68A"},"data-testid":"applicants-bucket-filter-".concat(u),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:"#92400E"},children:[(0,Pe.jsx)("span",{"aria-hidden":!0,style:{width:6,height:6,borderRadius:999,background:"#D97706",display:"inline-block"}}),"Filtered from Hiring Momentum"]}),(0,Pe.jsxs)("span",{className:"text-sm font-medium",style:{color:"#7C2D12"},children:[k.label,(0,Pe.jsxs)("span",{className:"ml-2 text-xs font-mono opacity-80",children:["\xb7 ",k.count," candidate",1===k.count?"":"s"]})]})]}),(0,Pe.jsx)("button",{type:"button",onClick:()=>{const e=new URLSearchParams(t);e.delete("bucket"),n(e)},"data-testid":"applicants-bucket-filter-clear",className:"text-xs font-medium px-3 py-1.5 rounded-md border transition-colors",style:{borderColor:"#92400E",color:"#92400E"},children:"Clear filter \xd7"})]}),"list"===g?(0,Pe.jsx)(NH,{apps:r,jobs:l,visibleApps:P,activeBucket:b,onChangeBucket:y,onAct:(e,t)=>
2ue(e,t),onReject:e=>ue(e,"rejected"),onBulkComplete:R}):(0,Pe.jsx)("div",{"data-testid":eN,className:"mt-8 grid grid-cols-1 md:grid-cols-3 lg:grid-cols-6 gap-3 overflow-x-auto",children:DH.map(e=>(0,Pe.jsxs)("div",{className:"bg-secondary/40 border border-border rounded-md min-h-[60vh] flex flex-col",children:[(0,Pe.jsxs)("div",{className:"px-3 py-2.5 border-b border-border flex items-center justify-between",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-semibold",children:e.label}),(0,Pe.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:(de[e.key]||[]).length})]}),(0,Pe.jsxs)("div",{className:"p-2 space-y-2 flex-1",children:[(de[e.key]||[]).map(e=>(0,Pe.jsxs)("div",{className:"bg-white border border-border rounded-md p-3 hover:border-[#0F172A] transition-colors",children:[(0,Pe.jsxs)(Yn,{to:"/app/employer/applications/".concat(e.id),className:"block",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold truncate",children:e.candidate_name}
2),(0,Pe.jsx)(VM,{email:e.candidate_email,phone:e.candidate_phone,size:"xs"}),ZS(e.candidate_email)&&(0,Pe.jsx)(BS,{candidateUserId:e.candidate_user_id,currentEmail:e.candidate_email,currentPhone:e.candidate_phone,size:"chip",onUpdated:t=>{i(n=>n.map(n=>n.candidate_user_id===e.candidate_user_id?h(h({},n),{},{candidate_email:t.primary_email||n.candidate_email,candidate_phone:t.phone||n.candidate_phone}):n))},testIdPrefix:"applicant-".concat(e.id,"-missing-email")})]}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground truncate mt-0.5",children:e.job_title}),(e.candidate_email||e.candidate_phone)&&(0,Pe.jsxs)("div",{className:"text-[10.5px] text-muted-foreground/90 truncate mt-1 font-mono","data-testid":"applicant-contact-".concat(e.id),title:[e.candidate_email,e.candidate_phone].filter(Boolean).join(" \u2022 "),children:[e.candidate_email&&(0,Pe.jsx)("span",{children:e.candidate_email}),e.candidate_email&&e.candidate_phone&&(0,Pe.jsx)("span",{children:" \xb7 "}),e.candidate_phone&&(0,Pe.jsx)("span",{children:e.candidate_p
2hone})]}),(0,Pe.jsx)(RH,{app:e})]})}),(0,Pe.jsx)(HH,{app:e})]}),C&&"all"!==d&&(0,Pe.jsx)(Yn,{to:"/app/employer/applications/".concat(e.id,"?tab=traits"),className:"block","data-testid":"trait-badge-link-".concat(e.id),children:(0,Pe.jsx)(kR,{alignment:M[e.candidate_user_id],candidateName:e.candidate_name})}),(0,Pe.jsx)("div",{className:"mt-2",children:(0,Pe.jsxs)(Sf,{value:e.status,onValueChange:t=>ue(e.id,t),children:[(0,Pe.jsx)(Of,{className:"h-7 text-[11px]",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"submitted",children:"Submitted"}),(0,Pe.jsx)(Lf,{value:"viewed",children:"Viewed"}),(0,Pe.jsx)(Lf,{value:"reviewed",children:"Reviewed"}),(0,Pe.jsx)(Lf,{value:"interview_requested",children:"Interview Requested"}),(0,Pe.jsx)(Lf,{value:"interview_completed",children:"Interview Completed"}),(0,Pe.jsx)(Lf,{value:"offer_sent",children:"Offer Sent"}),(0,Pe.jsx)(Lf,{value:"offer_accepted",children:"Offer Accepted"}),(0,Pe.jsx)(Lf,{value:"hired",children:"Hired"}),(0,Pe.jsx)(Lf,{value:"rejected",children:"Not selected"})]})]})})]},e.id)),0===(de[e.key]||[]).length&&(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground text-center py-6",children:"No one here yet"})]})]},e.key))})]}),(0,Pe.jsx)(CH,{open:T,onOpenChange:e=>{I(e),e||"complete"!==(null===Y||void 0===Y?void 0:Y.status)&&"failed"!==(null===Y||void 0===Y?void 0:Y.status)||K(null)},jobTitle:null===le||void 0===le?void 0:le.title,applicantsCount:r.length,recompute:B,setRecompute:V,starting:q,batch:Y,onStart:async()=>{if("all"!==d){U(!0),K(null);try{const e=(await Qi.post("/jobs/".concat(d,"/trait-alignments/bulk"),{recompute:B})).data;K({id:e.batch_id,total:e.total,processed:0,succeeded:0,failed:0,status:"queued"}),oe.current&&clearInterval(oe.current),oe.current=setInterval(async()=>{try{const t=(await Qi.get("/jobs/".concat(d,"/trait-alignments/bulk/").concat(e.batch_id))).data;K(t.batch),"complete"!==t.batch.status&&"failed"!==t.batch.status||(clearInterval(oe.current),oe.current=null,H())}catch(t){}},2500)}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to start bulk alignment")}finally{U(!1)}}}}),(0,Pe.jsx)(Kd,{open:$,onOpenChange:Q,children:(0,Pe.jsxs)(Qd,{"data-testid":"pipeline-reject-modal",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{className:"font-display font-bold flex items-center gap-2",children:[(0,Pe.jsx)(AN,{size:20,className:"text-[#B91C1C]"})," Confirm not selected"]}),(0,Pe.jsx)(tu,{className:"leading-relaxed",children:"A documented reason is required. AROS does not allow undocumented or AI-only decisions \u2014 this protects both the candidate and your hiring record. The reason is stored privately and is never shown to the candidate."})]}),(0,Pe.jsx)(Bo,{rows:4,value:ne,onChange:e=>ae(e.target.value),placeholder:"Why is this candidate not moving forward? (e.g. role requires on-site in NY; candidate is remote-only.)","data-testid":"pipeline-reject-reason",autoFocus:!0}),(0,Pe.jsxs)(Jd,{className:"gap-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>{Q(!1),ee(null),ae("")},disabled:ie,"data-testid":"pipeline-reject-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(ne.trim()){se(!0);try{await Qi.patch("/applications/".concat(J,"/status"),{status:"rejected",note:"Moved via pipeline",rejection_reason:ne.trim()}),va.success("Applicant marked rejected"),Q(!1),ee(null),ae(""),R()}catch($ge){var e,t;va.error((null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Update failed")}finally{se(!1)}}else va.error("Please provide a documented rejection reason.")},disabled:ie||!ne.trim(),className:"bg-[#B91C1C] hover:bg-[#CC2100] text-white","data-testid":"pipeline-reject-confirm",children:ie?"Saving\u2026":"Mark not selected"})]})]})})]})}function CH(e){let t=e.open,n=e.onOpenChange,a=e.jobTitle,r=e.applicantsCount,i=e.recompute,s=e.setRecompute,o=e.starting,l=e.batch,c=e.onStart;const d=null===l||void 0===l?void 0:l.status,u="queued"===d||"running"===d,m="complete"===d,p="failed"===d,h=null!==l&&void 0!==l&&l.total?Math.round(l.processed/l.total*100):0,f=null===l||void 0===l?void 0:l.eta_seconds;return(0,Pe.jsx)(Kd,{open:t,onOpenChange:n,children:(0,Pe.jsxs)(Qd,{className:"max-w-2xl","data-testid":"bulk-align-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{className:"font-display flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:20,weight:"duotone",className:"text-[#0F4FA8]"})," Review job qualities for this group"]}),(0,Pe.jsxs)(tu,{children:["Check every applicant on ",(0,Pe.jsx)("strong",{children:a||"this job"})," against the selected job qualities. Display-only \u2014 does not change ordering, individual results, or Today's hiring focus."]})]}),!l&&(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{className:"bg-secondary/40 border border-border rounded-md p-4 text-sm",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Applicants on this job"}),(0,Pe.jsx)("span",{className:"font-mono font-semibold","data-testid":"bulk-align-total",children:r})]}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Concurrency"}),(0,Pe.jsx)("span",{className:"font-mono font-semibold",children:"4 parallel"})]})]}),(0,Pe.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,Pe.jsx)(pA,{checked:i,onCheckedChange:s,"data-testid":"bulk-align-recompute",className:"mt-0.5"}),(0,Pe.jsxs)("span",{className:"text-sm",children:[(0,Pe.jsx)("span",{className:"font-medium",children:"Recompute already-assessed candidates"}),(0,Pe.jsx)("span",{className:"block text-xs text-muted-foreground mt-0.5",children:"By default, candidates already reviewed against the current traits are skipped. Enable this to review everyone again using the updated job information."})]})]})]}),l&&(0,Pe.jsxs)("div",{className:"space-y-4","data-testid":"bulk-align-progress",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between mb-2",children:[(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:u?"Processing\u2026":m?"Complete":p?"Failed":d}),(0,Pe.jsxs)("span",{className:"text-sm font-mono","data-testid":"bulk-align-progress-text",children:[l.processed,"/",l.total," ",u&&null!=f&&f>0&&" \xb7 ETA ~".concat(f,"s")]})]}),(0,Pe.jsx)(jR,{value:h,"data-testid":"bulk-align-progress-bar"}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 mt-2 text-[11px] font-mono uppercase tracking-wider text-muted-foreground",children:[(0,Pe.jsxs)("span",{children:["Processed: ",(0,Pe.jsx)("span",{className:"text-foreground","data-testid":"bulk-align-processed",children:l.processed})]}),(0,Pe.jsxs)("span",{children:["Remaining: ",(0,Pe.jsx)("span",{className:"text-foreground","data-testid":"bulk-align-remaining",children:Math.max(l.total-l.processed,0)})]}),(0,Pe.jsxs)("span",{children:["Failed: ",(0,Pe.jsx)("span",{className:"text-foreground","data-testid":"bulk-align-failed",children:l.failed||0})]})]})]}),m&&l.summary&&(0,Pe.jsx)(FH,{summary:l.summary}),p&&(0,Pe.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-md p-3 text-sm text-red-950","data-testid":"bulk-align-error",children:[(0,Pe.jsx)(AN,{size:14,className:"inline mr-1"})," ",l.error||"Batch failed. See logs for details."]})]}),(0,Pe.jsxs)(Jd,{children:[!l&&(0,Pe.jsx)(Lo,{onClick:c,disabled:o||0===r,"data-testid":"bulk-align-start-btn",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:o?"Starting\u2026":"Start"}),u&&(0,Pe.jsxs)(Lo,{variant:"ghost",disabled:!0,"data-testid":"bulk-align-running",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5 animate-spin"})," Working\u2026"]}),(m||p)&&(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>n(!1),"data-testid":"bulk-align-close-btn",className:"rounded-md",children:"Close"})]})]})})}function FH(e){var t,n;let a=e.summary;const r=[{label:"Strong",value:a.strong,cls:"bg-emerald-50 border-emerald-200 text-emerald-900",testid:"bulk-align-count-strong"},{label:"Needs validation",value:a.needs_validation,cls:"bg-amber-50 border-amber-200 text-amber-900",testid:"bulk-align-count-needs"},{label:"Red flags",value:a.red_flags,cls:"bg-red-50 border-red-200 text-red-900",testid:"bulk-align-count-red"},{label:"Not assessed",value:a.not_assessed,cls:"bg-secondary border-border text-foreground",testid:"bulk-align-count-not-assessed"}];return(0,Pe.jsxs)("div",{className:"space-y-4","data-testid":"bulk-align-summary",children:[(0,Pe.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:r.map(e=>(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(e.cls),"data-testid":e.testid,children:[(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl tracking-tight tabular-nums",children:e.value}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono mt-0.5",children:e.label})]},e.label))}),(null===(t=a.top_aligned)||void 0===t?void 0:t.length)>0&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4","data-testid":"bulk-align-top-aligned",children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold mb-2 flex items-center gap-1.5 text-emerald-900",children:[(0,Pe.jsx)(Yf,{size:14,weight:"duotone"})," Ready to look at"]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:a.top_aligned.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm flex items-center justify-between gap-3",children:[(0,Pe.jsx)("span",{className:"truncate",children:e.candidate_name}),(0,Pe.jsxs)("span",{className:"font-mono text-xs text-muted-foreground tabular-nums shrink-0",children:[Math.round(100*(e.alignment_ratio||0)),"% \xb7 ",Math.round(100*(e.must_have_ratio||0)),"% must-have"]})]},t))})]}),(null===(n=a.most_red_flags)||void 0===n?void 0:n.length)>0&&(0,Pe.jsxs)("div",{className:"border border-red-200 bg-red-50/40 rounded-md p-4","data-testid":"bulk-align-most-red",children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold mb-2 flex items-center gap-1.5 text-red-900",children:[(0,Pe.jsx)(Vj,{size:14,weight:"duotone"})," Most red flags"]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:a.most_red_flags.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm flex items-center justify-between gap-3",children:[(0,Pe.jsx)("span",{className:"truncate",children:e.candidate_name}),(0,Pe.jsxs)("span",{className:"font-mono text-xs text-red-900 tabular-nums shrink-0",children:[e.red_flag_count," red"]})]},t))})]})]})}const SH={submitted:5,viewed:7,reviewed:7,interview_requested:7,interview_completed:10,offer_sent:14};function MH(e,t){return e<=3?"bg-gray-50 text-gray-600 border-gray-200":e<=t?"bg-amber-50 text-amber-800 border-amber-200":"bg-red-50 text-red-800 border-red-200"}function OH(e,t){return e>t?"".concat(e,"d (SLA ").concat(t,"d)"):"".concat(e,"d in stage")}function RH(e){let t=e.app;const n=(0,o.useMemo)(()=>{var e;if(!t)return null;if(["hired","rejected","withdrawn","offer_accepted"].includes(t.status))return null;const n=Array.isArray(t.status_history)?t.status_history:[],a=n.length>0?n[n.length-1]:null,r=(null===a||void 0===a?void 0:a.timestamp)||(null===a||void 0===a?void 0:a.at)||t.applied_at||t.created_at;if(!r)return null;const i=Math.max(0,Math.floor((Date.now()-new Date(r).getTime())/864e5)),s=null!==(e=SH[t.status])&&void 0!==e?e:7;return{tone:MH(i,s),label:OH(i,s)}},[t]);return n?(0,Pe.jsx)("span",{className:"mt-1 inline-block px-1.5 py-0.5 rounded text-[10px] font-mono border ".concat(n.tone),"data-testid":"stage-age-badge-".concat(t.id),children:n.label}):null}function HH(e){var t,n;let a=e.app;const r=(a.candidate_skills||a.skills||[]).length,i=((null===(t=a.ai_score)||void 0===t?void 0:t.strengths)||[]).length,s=((null===(n=a.ai_score)||void 0===n?void 0:n.concerns)||[]).length;return r||i||s?(0,Pe.jsxs)("div",{className:"mt-2 flex flex-wrap gap-1","data-testid":"applicant-evidence-".concat(a.id),children:[i>0&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded border border-emerald-200 bg-emerald-50 text-emerald-900","data-testid":"applicant-evidence-strengths-".concat(a.id),children:[i," supported"]}),s>0&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded border border-amber-200 bg-amber-50 text-amber-900","data-testid":"applicant-evidence-validate-".concat(a.id),children:[s," to validate"]}),r>0&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded border border-border bg-secondary text-muted-foreground","data-testid":"applicant-evidence-skills-".concat(a.id),children:[r," skill",1===r?"":"s"," on record"]})]}):null}const PH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M180,232a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,232Zm40-128a91.51,91.51,0,0,1-35.17,72.35A12.26,12.26,0,0,0,180,186v2a20,20,0,0,1-20,20H96a20,20,0,0,1-20-20v-2a12,12,0,0,0-4.7-9.51A91.57,91.57,0,0,1,36,104.52C35.73,54.69,76,13.2,125.79,12A92,92,0,0,1,220,104Zm-24,0a68,68,0,0,0-69.65-68C89.56,36.88,59.8,67.55,60,104.38a67.71,67.71,0,0,0,26.1,53.19A35.87,35.87,0,0,1,100,184h56.1A36.13,36.13,0,0,1,170,157.49,67.68,67.68,0,0,0,196,104Zm-20.07-5.32a48.5,48.5,0,0,0-31.91-40,12,12,0,0,0-8,22.62,24.31,24.3
21,0,0,1,16.09,20,12,12,0,0,0,23.86-2.64Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,104a79.86,79.86,0,0,1-30.59,62.92A24.29,24.29,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6a24.11,24.11,0,0,0-9.3-19A79.87,79.87,0,0,1,48,104.45C47.76,61.09,82.72,25,126.07,24A80,80,0,0,1,208,104Z",opacity:"0.2"}),o.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-32.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M174,232a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,232Zm40-128a85.56,85.56,0,0,1-32.88,67.64A18.23,18.23,0,0,0,174,186v6a14,14,0,0,1-14,14H96a14,14,0,0,1-14-14v-6a18,18,0,0,0-7-14.23h0a85.59,85.59,0,0,1-33-67.24C41.74,57.91,79.39,19.12,125.93,18A86,86,0,0,1,214,104Zm-12,0a74,74,0,0,0-75.79-74C86.17,31,53.78,64.34,54,104.42a73.67,73.67,0,0,0,28.4,57.87A29.92,29.92,0,0,1,94,186v6a2,2,0,0,0,2,2h64a2,2,0,0,0,2-2v-6a30.18,30.18,0,0,1,11.7-23.78A73.59,73.59,0,0,0,202,104Zm-20.08-9A55.58,55.58,0,0,0,137,50.08a6,6,0,1,0-2,11.84C152.38,64.84,167.13,79.6,170.08,97a6,6,0,0,0,5.91,5,6.87,6.87,0,0,0,1-.08A6,6,0,0,0,181.92,95Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172,232a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,232Zm40-128a83.59,83.59,0,0,1-32.11,66.06A20.2,20.2,0,0,0,172,186v6a12,12,0,0,1-12,12H96a12,12,0,0,1-12-12v-6a20,20,0,0,0-7.76-15.81A83.58,83.58,0,0,1,44,104.47C43.75,59,80.52,21.09,126,20a84,84,0,0,1,86,84Zm-8,0a76,76,0,0,0-77.83-76C85,29,51.77,63.27,52,104.43a75.62,75.62,0,0,0,29.17,59.43A28,28,0,0,1,92,186v6a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4v-6a28.14,28.14,0,0,1,10.94-22.2A75.62,75.62,0,0,0,204,104ZM136.66,52.06a4,4,0,0,0-1.32,7.88C153.53,63,169,78.45,172.06,96.67A4,4,0,0,0,176,100a3.88,3.88,0,0,0,.67-.06,4,4,0,0,0,3.27-4.61A53.51,53.51,0,0,0,136.66,52.06Z"}))]]),LH=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:PH})));LH.displayName="LightbulbIcon";const TH=LH,IH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v99l43.51-43.52a12,12,0,0,1,17,0L128,127l43-43H160a12,12,0,0,1,0-24h40a12,12,0,0,1,12,12v40a12,12,0,0,1-24,0V101l-51.51,51.52a12,12,0,0,1-17,0L96,129,44,181v15H224A12,12,0,0,1,236,208Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),o.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,192H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v76.69l34.34-34.35a8,8,0,0,1,11.32,0L128,132.69,172.69,88H144a8,8,0,0,1,0-16h48a8,8,0,0,1,8,8v48a8,8,0,0,1-16,0V99.31l-50.34,50.35a8,8,0,0,1-11.32,0L104,131.31l-40,40V176H200a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0V161.52l53.76-53.76a6,6,0,0,1,8.48,0L128,135.51,185.52,78H160a6,6,0,0,1,0-12h40a6,6,0,0,1,6,6v40a6,6,0,0,1-12,0V86.48l-61.76,61.76a6,6,0,0,1-8.48,0L96,120.49l-58,58V202H224A6,6,0,0,1,230,208Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V166.34l57.17-57.17a4,4,0,0,1,5.66,0L128,138.34,190.34,76H160a4,4,0,0,1,0-8h40a4,4,0,0,1,4,4v40a4,4,0,0,1-8,0V81.66l-65.17,65.17a4,4,0,0,1-5.66,0L96,117.66l-60,60V204H224A4,4,0,0,1,228,208Z"}))]]),ZH=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:IH})));ZH.displayName="ChartLineUpIcon";const BH=ZH,VH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),o.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),zH=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:VH})));zH.displayName="FloppyDiskIcon";const qH=zH,UH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,60H212V48a12,12,0,0,0-12-12H56A12,12,0,0,0,44,48V60H24A20,20,0,0,0,4,80V96a44.05,44.05,0,0,0,44,44h.77A84.18,84.18,0,0,0,116,195.15V212H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24H140V195.11c30.94-4.51,56.53-26.2,67-55.11h1a44.05,44.05,0,0,0,44-44V80A20,20,0,0,0,232,60ZM28,96V84H44v28c0,1.21,0,2.41.09,3.61A20,20,0,0,1,28,96Zm160,15.1c0,33.33-26.71,60.65-59.54,60.9A60,60,0,0,1,68,112V60H188ZM228,96a20,20,0,0,1-16.12,19.62c.08-1.5.12-3,.12-4.52V84h16Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,48v63.1c0,39.7-31.75,72.6-71.45,72.9A72,72,0,0,1,56,112V48Z",opacity:"0.2"}),o.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,66H206V48a6,6,0,0,0-6-6H56a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80V96a38,38,0,0,0,38,38h5.14A78,78,0,0,0,122,189.75V218H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12H134V189.75c32.44-2.52,59.43-25.3,68.62-55.75H208a38,38,0,0,0,38-38V80A14,14,0,0,0,232,66ZM48,122A26,26,0,0,1,22,96V80a2,2,0,0,1,2-2H50v34a80.87,80.87,0,0,0,.65,10Zm146-10.9c0,36.62-29.38,66.63-65.5,66.9A66,66,0,0,1,62,112V54H194ZM234,96a26,26,0,0,1-26,26h-2.77a78.45,78.45,0,0,0,.77-10.9V78h26a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,68H204V48a4,4,0,0,0-4-4H56a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80V96a36,36,0,0,0,36,36h6.66A76,76,0,0,0,124,187.89V220H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8H132V187.88c32.93-1.74,60.41-24.91,69.11-55.88H208a36,36,0,0,0,36-36V80A12,12,0,0,0,232,68ZM48,124A28,28,0,0,1,20,96V80a4,4,0,0,1,4-4H52v36a77,77,0,0,0,1,12Zm148-12.9c0,37.71-30.79,68.62-68,68.9a68,68,0,0,1-68-68V52H196ZM236,96a28,28,0,0,1-28,28h-5.1a77.35,77.35,0,0,0,1.1-12.9V76h28a4,4,0,0,1,4,4Z"}))]]),WH=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:UH})));WH.displayName="TrophyIcon";const YH=WH,KH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.6,83.6,0,0,1-16.75,50.28L77.72,60.75A84,84,0,0,1,212,128ZM44,128A83.6,83.6,0,0,1,60.75,77.72L178.28,195.25A84,84,0,0,1,44,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.56,87.56,0,0,1-20.41,56.28L71.72,60.4A88,88,0,0,1,216,128ZM40,128A87.56,87.56,0,0,1,60.41,71.72L184.28,195.6A88,88,0,0,1,40,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,128a71.69,71.69,0,0,1-15.78,44.91L83.09,71.78A71.95,71.95,0,0,1,200,128ZM56,128a71.95,71.95,0,0,0,116.91,56.22L71.78,83.09A71.69,71.69,0,0,0,56,128Zm180,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-20,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm90,102a89.6,89.6,0,0,1-22.29,59.22L68.78,60.29A89.95,89.95,0,0,1,218,128ZM38,128A89.6,89.6,0,0,1,60.29,68.78L187.22,195.71A89.95,89.95,0,0,1,38,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.56,87.56,0,0,1-20.41,56.28L71.72,60.4A88,88,0,0,1,216,128ZM40,128A87.56,87.56,0,0,1,60.41,71.72L184.28,195.6A88,88,0,0,1,40,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.67,91.67,0,0,1-24.21,62.13L65.87,60.21A92,92,0,0,1,220,128ZM36,128A91.67,91.67,0,0,1,60.21,65.87L190.13,195.79A92,92,0,0,1,36,128Z"}))]]),GH=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:KH})));GH.displayName="ProhibitIcon";const $H=GH,QH=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),o.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),XH=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:QH})));XH.displayName="CopyIcon";const JH=XH,eP={pending:{label:"Awaiting view",tone:"text-amber-800 bg-amber-50 border-amber-200",Icon:ag},viewed:{label:"Viewed",tone:"text-blue-800 bg-blue-50 border-blue-200",Icon:ag},decided:{label:"Decision in",tone:"text-emerald-800 bg-emerald-50 border-emerald-200",Icon:Yf},expired:{label:"Expired",tone:"text-muted-foreground bg-secondary border-border",Icon:Vj},revoked:{label:"Revoked",tone:"text-red-800 bg-red-50 border-red-200",Icon:$H}};function tP(e){let t=e.applicationId;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)(""),2),s=i[0],l=i[1],c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!1),2),p=m[0],f=m[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const n=(await Qi.get("/applications/".concat(t,"/share-links"))).data;e||r(n.items||[])}catch(n){}})(),()=>{e=!0}},[t]);return(0,Pe.jsxs)(vO,{className:"p-5 mt-6","data-testid":"hm-share-panel",children:[(0,Pe.jsx)("div",{className:"flex items-center justify-between",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono flex items-center gap-1",children:[(0,Pe.jsx)(iy,{size:12})," Hiring Manager Review"]}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg mt-1",children:"Share with a hiring manager"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Send a secure 7-day link to someone outside AROS for a quick advance/pass call."})]})}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 gap-2",children:[(0,Pe.jsx)(Io,{"data-testid":"hm-share-email",placeholder:"[email protected]",value:s,onChange:e=>l(e.target.value)}),(0,Pe.jsx)(Io,{"data-testid":"hm-share-name",placeholder:"Name (optional)",value:d,onChange:e=>u(e.target.value)})]}),(0,Pe.jsxs)(Lo,{"data-testid":"hm-share-create",onClick:async()=>
2{if(s){f(!0);try{const e=(await Qi.post("/applications/".concat(t,"/share-link"),{hiring_manager_email:s,hiring_manager_name:d,expires_in_days:7,send_email:!0})).data;va.success("Share link created."),l(""),u(""),r(t=>[e,...t])}catch(zf){var e,n;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Failed to create link")}finally{f(!1)}}else va.error("Enter the hiring manager's email.")},disabled:p,className:"mt-3 rounded-md bg-[#0F172A] text-white hover:bg-[#0F4FA8]",children:[(0,Pe.jsx)(OF,{size:14,className:"mr-2"})," ",p?"Creating\u2026":"Create + email link"]}),a.length>0&&(0,Pe.jsx)("ul",{className:"mt-5 space-y-3","data-testid":"hm-share-list",children:a.map(e=>{const n=eP[e.status]||eP.pending,a=n.Icon;return(0,Pe.jsxs)("li",{className:"border border-border rounded-md p-3","data-testid":"hm-share-row-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(a,{size:16,weight:"duotone",className:"mt-0.5 shrink-0"}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"font-medium text-sm",children:[e.hiring_manager_name||"\u2014"," ",(0,Pe.jsxs)("span",{className:"text-muted-foreground font-normal",children:["\xb7 ",e.hiring_manager_email]})]}),(0,Pe.jsxs)("div",{className:"text-[11px] font-mono text-muted-foreground mt-0.5",children:["Created ",new Date(e.created_at).toLocaleString()," \xb7 Expires ",e.expires_at?new Date(e.expires_at).toLocaleDateString():""]}),e.decision&&(0,Pe.jsxs)("div",{className:"mt-2 text-sm",children:[(0,Pe.jsx)("span",{className:"pill border text-[10px] ".concat("advance"===e.decision?"text-emerald-800 bg-emerald-50 border-emerald-200":"text-red-800 bg-red-50 border-red-200"),children:"advance"===e.decision?"ADVANCE":"PASS"}),e.decision_note&&(0,Pe.jsx)("span",{className:"ml-2 text-muted-foreground",children:e.decision_note})]})]}),(0,Pe.jsx)("span",{className:"pill border text-[10px] ".concat(n.tone),children:n.label})]}),e.share_url&&(0,Pe.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,Pe.jsx)("code",{className:"text-[11px] font-mono bg-secondary px-2 py-1 rounded-md truncate flex-1","data-testid":"hm-share-url-".concat(e.id),children:e.share_url}),(0,Pe.jsx)(Lo,{size:"sm",variant:"outline",onClick:()=>{var t;(t=e.share_url)?navigator.clipboard.writeText(t).then(()=>va.success("Link copied")):va.error("No public URL configured \u2014 set PUBLIC_APP_URL on backend.")},"data-testid":"hm-share-copy-".concat(e.id),children:(0,Pe.jsx)(JH,{size:14})}),["pending","viewed"].includes(e.status)&&(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:()=>(async e=>{if(e&&window.confirm("Revoke this link? The hiring manager will lose access immediately."))try{await Qi.delete("/applications/".concat(t,"/share-links/").concat(e)),va.success("Link revoked"),r(t=>t.map(t=>t.id===e?h(h({},t),{},{status:"revoked",revoked_at:(new Date).toISOString()}):t))}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Failed to revoke link")}})(e.id),"data-testid":"hm-share-revoke-".concat(e.id),className:"text-red-700 border-red-200 hover:bg-red-50",children:[(0,Pe.jsx)($H,{size:14,className:"mr-1"})," Revoke"]})]})]},e.id)})})]})}const nP="#041C3A",aP="#1E3A8A",rP="#475569",iP="#64748B",sP="#E2E8F0";function oP(e){let t=e.candidateUserId,n=e.jobId,a=e.mode,r=void 0===a?"both":a;const i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!0),2),d=c[0],u=c[1],m=Ue((0,o.useState)(null),2),p=m[0],f=m[1],x=Ue((0,o.useState)(!0),2),g=x[0],v=x[1],b=async()=>{u(!0),f(null);try{var e;if(null===(e=(await Qi.get("/resume-intel/health")).data)||void 0===e||!e.enabled)return void v(!1);const a=await Qi.get("/resume-intel/candidates/".concat(t,"/score-detail?job_id=").concat(n));l(a.data)}catch(zf){var a;const t=null===zf||void 0===zf||null===(a=zf.response)||void 0===a?void 0:a.status;f(404===t?"not_scored_yet":403===t?"forbidden":"unknown")}finally{u(!1)}};if((0,o.useEffect)(()=>{let e=!1;return(async()=>
2{if(t&&n){u(!0),f(null);try{var a;const r=await Qi.get("/resume-intel/health");if(e)return;if(null===(a=r.data)||void 0===a||!a.enabled)return void v(!1);const i=await Qi.get("/resume-intel/candidates/".concat(t,"/score-detail?job_id=").concat(n));if(e)return;l(i.data)}catch(zf){var r;if(e)return;const n=null===zf||void 0===zf||null===(r=zf.response)||void 0===r?void 0:r.status;f(404===n?"not_scored_yet":403===n?"forbidden":"unknown")}finally{e||u(!1)}}})(),()=>{e=!0}},[t,n]),!g)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-8 text-sm text-center","data-testid":"resume-intel-disabled",children:[(0,Pe.jsx)(BC,{size:20,weight:"duotone",className:"mx-auto mb-2",style:{color:iP}}),(0,Pe.jsx)("div",{className:"font-medium text-foreground",children:"Resume snapshot is not enabled for this environment."}),(0,Pe.jsx)("div",{className:"mt-1 text-xs text-muted-foreground",children:"Contact your administrator to enable the feature flag."})]});if(d)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-8 text-sm text-center","data-testid":"resume-intel-loading",children:[(0,Pe.jsx)(bM,{size:20,className:"mx-auto animate-spin mb-2",style:{color:iP}}),(0,Pe.jsx)("div",{className:"text-muted-foreground",children:"Loading intelligence\u2026"})]});if("not_scored_yet"===p)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-8 text-sm text-center","data-testid":"resume-intel-pending",children:[(0,Pe.jsx)(ag,{size:20,weight:"duotone",className:"mx-auto mb-2",style:{color:iP}}),(0,Pe.jsx)("div",{className:"font-medium text-foreground",children:"Intelligence is still being prepared."}),(0,Pe.jsx)("div",{className:"mt-1 text-xs text-muted-foreground",children:"AROS is parsing the r\xe9sum\xe9 and scoring it against this job. Refresh in a moment."}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",className:"mt-4 rounded-md",onClick:b,"data-testid":"resume-intel-refresh",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5"})," Refresh"]})]});if(p)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-8 text-sm text-center","data-testid":"resume-intel-error",children:[(0,Pe.jsx)(AN,{size:20,weight:"duotone",className:"mx-auto mb-2",style:{color:"#B91C1C"}}),(0,Pe.jsx)("div",{className:"font-medium text-foreground",children:"Couldn't load intelligence."}),(0,Pe.jsx)(Lo,{variant:"outline",size:"sm",className:"mt-4 rounded-md",onClick:b,children:"Try again"})]});if(!s)return null;return(0,Pe.jsxs)("div",{className:"space-y-8","data-testid":"resume-intel-tab",children:[("both"===r||"primary"===r)&&(0,Pe.jsx)(lP,{data:s,onToggleBench:async()=>{const e=!s.talent_bench;try{await Qi.post("/resume-intel/candidates/".concat(t,"/talent-bench"),{enabled:e}),l(t=>h(h({},t),{},{talent_bench:e})),va.success(e?"Added to Talent Pool":"Removed from Talent Pool")}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Could not update Talent Pool.")}},onKeep:async()=>{try{await Qi.post("/resume-intel/candidates/".concat(t,"/keep"),{job_id:n}),va.success("Kept in current job. Decision recorded.")}catch(zf){var e,a;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.detail)||"Could not record decision.")}}}),("both"===r||"additional"===r)&&(0,Pe.jsx)(dP,{matches:s.alternative_matches||[],onMove:async(e,a)=>{try{const r=(await Qi.post("/resume-intel/candidates/".concat(t,"/move-to-job"),{target_job_id:e,source_job_id:n})).data;r.created?va.success("Moved to ".concat(a)):va.info("Already an applicant on ".concat(a)),l(t=>h(h({},t),{},{alternative_matches:(t.alternative_matches||[]).map(t=>t.job_id===e?h(h({},t),{},{moved:!0,application_id:r.application_id}):t)}))}catch(zf){var r,i;va.error((null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"Could not move candidate.")}}})]})}function lP(e){let t=e.data,n=e.onToggleBench,a=e.onKeep;const r=t.strengths||t.top_reasons||[],i=t.risks||[],s=t.recommendation_reasoning||t.summary||"",o=!!t.talent_bench;return(0,Pe.jsxs)("section",{className:"rounded-2xl border bg-white p-7",style:{borderColor:sP},"data-testid":"resume-intel-primary",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:aP},children:"What their submitted information shows"}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-2xl tracking-tight mt-1.5",style:{color:nP},"data-testid":"resume-intel-recommendation-label",children:"Evidence summary"})]}),t.summary&&(0,Pe.jsx)("p",{className:"mt-5 text-[15px] leading-relaxed",style:{color:rP},"data-testid":"resume-intel-summary",children:t.summary}),(0,Pe.jsxs)("div",{className:"mt-6 grid md:grid-cols-2 gap-6",children:[(0,Pe.jsx)(cP,{title:"What we found",icon:YC,accent:aP,chips:r,emptyMessage:"Nothing on file yet.",testid:"resume-intel-strengths",chipTestidPrefix:"resume-intel-strength"}),(0,Pe.jsx)(cP,{title:"What we did not find in the information they submitted",icon:AN,accent:"#B45309",chips:i,emptyMessage:"Nothing missing was noted.",testid:"resume-intel-risks",chipTestidPrefix:"resume-intel-risk"})]}),s&&(0,Pe.jsx)("div",{className:"mt-7 rounded-xl p-5 border",style:{background:"#F1F5F9",borderColor:sP},"data-testid":"resume-intel-recommended-action",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Pe.jsx)("div",{className:"w-10 h-10 rounded-lg grid place-items-center text-white shrink-0",style:{background:"#0A1F47"},children:(0,Pe.jsx)(ux,{size:18,weight:"duotone"})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:aP},children:"What you may want to ask"}),(0,Pe.jsx)("p",{className:"text-sm mt-2 leading-relaxed",style:{color:rP},children:s})]})]})}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-2 pt-5 border-t",style:{borderColor:sP},"data-testid":"resume-intel-actions",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-mono font-semibold mr-auto",style:{color:iP},children:"What should happen next?"}),(0,Pe.jsx)(Lo,{variant:o?"default":"outline",size:"sm",onClick:n,"data-testid":"resume-intel-action-talent-bench",className:"rounded-md",children:o?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(UF,{size:14,weight:"fill",className:"mr-1.5"})," On Talent Pool"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(QF,{size:14,className:"mr-1.5"})," Add to Talent Pool"]})}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:a,"data-testid":"resume-intel-action-keep",className:"rounded-md",children:[(0,Pe.jsx)(YC,{size:14,className:"mr-1.5"})," Keep in current job"]})]})]})}function cP(e){let t=e.title,n=e.icon,a=e.accent,r=e.chips,i=e.emptyMessage,s=e.testid,o=e.chipTestidPrefix;return(0,Pe.jsxs)("div",{"data-testid":s,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:a},children:[(0,Pe.jsx)(n,{size:13,weight:"bold"})," ",t]}),0===r.length?(0,Pe.jsx)("div",{className:"mt-3 text-sm italic",style:{color:iP},children:i}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-2",children:r.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2 text-sm leading-relaxed",style:{color:rP},"data-testid":"".concat(o,"-").concat(t+1),children:[(0,Pe.jsx)(n,{size:13,weight:"bold",style:{color:a,marginTop:4},className:"shrink-0"}),(0,Pe.jsx)("span",{children:e})]},"".concat(e,"-").concat(t)))})]})}function dP(e){let t=e.matches,n=e.onMove;return t&&0!==t.length?(0,Pe.jsxs)("section",{className:"rounded-2xl border bg-white p-7",style:{borderColor:sP},"data-testid":"resume-intel-alternatives",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:aP},children:"Additional Opportunities"}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-xl tracking-tight mt-1",style:{color:nP},children:"Where the evidence overlaps"})]}),(0,Pe.jsx)("span",{className:"text-xs",style:{color:iP},children:"Cross-job matching across your org"})]}),(0,Pe.jsx)("div",{className:"mt-5 space-y-3",children:t.map((e,t)=>
2(0,Pe.jsxs)("div",{className:"flex items-start gap-4 rounded-xl border p-4 transition-all hover:border-[#1E3A8A]",style:{borderColor:sP},"data-testid":"resume-intel-alternative-".concat(t+1),children:[(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:(0,Pe.jsx)("div",{className:"font-display font-semibold text-base",style:{color:nP},"data-testid":"resume-intel-alternative-title-".concat(t+1),children:e.job_title})}),e.rationale&&(0,Pe.jsx)("p",{className:"text-sm mt-1.5 leading-relaxed",style:{color:rP},children:e.rationale})]}),(0,Pe.jsx)("div",{className:"shrink-0",children:(0,Pe.jsx)(Lo,{size:"sm",variant:e.moved?"outline":"default",onClick:()=>!e.moved&&n(e.job_id,e.job_title),disabled:e.moved,"data-testid":"resume-intel-alternative-move-".concat(t+1),className:"rounded-md",children:e.moved?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(YC,{size:14,className:"mr-1.5"})," Moved"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(eS,{size:14,className:"mr-1.5"})," Move to job"]})})})]},e.job_id))})]}):(0,Pe.jsxs)("section",{className:"rounded-2xl border bg-white p-7",style:{borderColor:sP},"data-testid":"resume-intel-alternatives-empty",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:aP},children:"Additional Opportunities"}),(0,Pe.jsx)("div",{className:"mt-2 text-sm",style:{color:rP},children:"No other open roles at your organization match this candidate strongly yet."})]})}const uP=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),mP=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:uP})));mP.displayName="ChatCircleTextIcon";const pP=mP,hP=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),o.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),fP=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:hP})));fP.displayName="ClipboardTextIcon";const xP=fP,gP="#041C3A";function vP(){return(0,Pe.jsxs)("span",{className:"pill border text-[10px] uppercase tracking-[0.16em] font-mono font-semibold",style:{background:"#FEF3C7",color:"#B45309",borderColor:"#FDE68A"},"data-testid":"ci-draft-pill",children:[(0,Pe.jsx)(ux,{size:10,weight:"fill"})," Draft \u2014 please review"]})}function bP(e){let t=e.icon,n=e.title,a=e.testid;return(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-2","data-testid":a,children:[(0,Pe.jsx)(t,{size:16,weight:"duotone",style:{color:gP}}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-base tracking-tight",style:{color:gP},children:n}),(0,Pe.jsx)(vP,{})]})}function yP(e){let t=e.items,n=e.testid,a=e.empty;return t&&0!==t.length?(0,Pe.jsx)("ul",{className:"space-y-2","data-testid":n,children:t.map((e,t)=>{if("string"===typeof e)return(0,Pe.jsx)("li",{className:"text-sm leading-relaxed pl-3 border-l-2 border-slate-200","data-testid":"".concat(n,"-item-").concat(t),children:e},t);const a=e.claim||e.gap||e.concern||e.title||"",r=e.evidence||e.note||"";return(0,Pe.jsxs)("li",{className:"text-sm leading-relaxed pl-3 border-l-2 border-slate-200","data-testid":"".concat(n,"-item-").concat(t),children:[(0,Pe.jsx)("div",{className:"font-medium",style:{color:gP},children:a}),r&&(0,Pe.jsx)("div",{className:"text-[13px] text-muted-foreground mt-0.5",children:r})]},t)})}):(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic","data-testid":"".concat(n,"-empty"),children:a})}function jP(e){let t=e.candidateUserId,n=e.jobId,a=e.applicationId;const r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!0),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1],h=Ue((0,o.useState)(null),2),f=h[0],x=h[1],g=Ue((0,o.useState)(!1),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return d(!1),void p(!1);e?p(!0):d(!0),x(null);try{const e=n?{job_id:n}:{},a=await Qi.get("/candidates/".concat(t,"/intelligence"),{params:e});s(a.data)}catch(zf){var a,r;x((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Intelligence unavailable right now."),s(null)}finally{d(!1),p(!1)}};(0,o.useEffect)(()=>{N(!1)},[t,n]);if(c)return(0,Pe.jsx)("div",{className:"mt-6 rounded-md border border-border bg-white p-6","data-testid":"candidate-intelligence-loading",children:(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone",className:"animate-pulse"}),"Reviewing this candidate\u2026"]})});if(f||!i)return(0,Pe.jsxs)("div",{className:"mt-6 rounded-md border border-border bg-white p-6","data-testid":"candidate-intelligence-error",children:[(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground",children:f||"Intelligence unavailable right now \u2014 please read the r\xe9sum\xe9 directly."}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",className:"mt-3",onClick:()=>N(!0),"data-testid":"candidate-intelligence-retry",children:[(0,Pe.jsx)(bM,{size:12})," Try again"]})]});const A=i.summary,k=i.matching_strengths,E=i.missing_or_unclear,D=i.potential_concerns,_=i.suggested_interview_questions,C=i.behavioral_interview_questions,F=i.areas_to_dig_deeper,S=i.draft_hiring_recommendation,M=i.job_title,O=i.generated_by;return(0,Pe.jsxs)("div",{className:"mt-6 rounded-md border border-border bg-white overflow-hidden","data-testid":"candidate-intelligence-card",children:[(0,Pe.jsxs)("div",{className:"px-6 py-4 border-b border-border flex items-center justify-between flex-wrap gap-2",style:{background:"linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%)"},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-muted-foreground font-mono font-semibold",children:"Candidate Intelligence"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-lg tracking-tight mt-0.5",style:{color:gP},children:"What to look at, what to ask"}),M&&(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:["For role: ",(0,Pe.jsx)("span",{className:"font-medium",style:{color:gP},children:M})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(vP,{}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"ghost",onClick:()=>N(!0),disabled:m,"data-testid":"candidate-intelligence-refresh",className:"h-8",children:[(0,Pe.jsx)(bM,{size:12,className:m?"animate-spin":""}),(0,Pe.jsx)("span",{className:"text-xs",children:"Refresh"})]})]})]}),(0,Pe.jsxs)("div",{className:"p-6 space-y-6",children:[A&&(0,Pe.jsxs)("div",{"data-testid":"ci-summary",children:[(0,Pe.jsx)(bP,{icon:ux,title:"Summary",testid:"ci-summary-header"}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed",style:{color:gP},children:A})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(bP,{icon:Yf,title:"Matching strengths",testid:"ci-strengths-header"}),(0,Pe.jsx)(yP,{items:k,testid:"ci-strengths",empty:"No specific strengths surfaced against this role \u2014 please read the r\xe9sum\xe9 directly."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(bP,{icon:qf,title:"Missing or unclear",testid:"ci-missing-header"}),(0,Pe.jsx)(yP,{items:E,testid:"ci-missing",empty:"Nothing obvious missing \u2014 worth confirming details in conversation."})]})]}),D&&D.length>0&&(0,Pe.jsxs)("div",{"data-testid":"ci-concerns",children:[(0,Pe.jsx)(bP,{icon:Qx,title:"Worth exploring",testid:"ci-concerns-header"}),(0,Pe.jsx)(yP,{items:D,testid:"ci-concerns-list",empty:""})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(bP,{icon:pP,title:"Suggested interview questions",testid:"ci-suggested-q-header"}),(0,Pe.jsx)(yP,{items:_,testid:"ci-suggested-questions",empty:"No questions generated \u2014 please prepare your own from the r\xe9sum\xe9."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(bP,{icon:pM,title:"Behavioral questions",testid:"ci-behavioral-q-header"}),(0,Pe.jsx)(yP,{items:C,testid:"ci-behavioral-questions",empty:"No behavioral questions generated."})]}),a&&((null===_||void 0===_?void 0:_.length)||0)+((null===C||void 0===C?void 0:C.length)||0)>0&&(0,Pe.jsxs)("div",{className:"rounded-md border border-slate-200 bg-slate-50/60 px-4 py-3 flex items-center justify-between gap-3 flex-wrap","data-testid":"ci-copy-to-brief",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold",style:{color:gP},children:"Carry these into the interview"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:"Append every question above to this candidate's Interview Brief. Duplicates are skipped automatically."})]}),(0,Pe.jsxs)(Lo,{size:"sm",onClick:async()=>
2{if(a&&i){b(!0);try{var e,t;const r=await Qi.post("/applications/".concat(a,"/interview-intelligence/append-questions"),{candidate_specific_questions:(i.suggested_interview_questions||[]).map(e=>"string"===typeof e?e:e.question||e.claim||String(e)),behavioral_questions:(i.behavioral_interview_questions||[]).map(e=>"string"===typeof e?e:e.question||e.claim||String(e))}),s=((null===(e=r.data)||void 0===e?void 0:e.added_candidate_specific)||0)+((null===(t=r.data)||void 0===t?void 0:t.added_behavioral)||0);var n;if(s>0)va.success(null!==(n=r.data)&&void 0!==n&&n.seeded_card?"Copied ".concat(s," question").concat(1===s?"":"s"," to the Interview Brief."):"Added ".concat(s," new question").concat(1===s?"":"s"," to the Interview Brief."));else va.info("These questions are already in the Interview Brief.");w(Date.now())}catch(zf){var r,s;const t=null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(s=r.data)||void 0===s?void 0:s.detail;va.error(t||"Could not copy questions right now.")}finally{b(!1)}}},disabled:v,"data-testid":"ci-copy-to-brief-btn",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:[(0,Pe.jsx)(xP,{size:12,weight:"duotone"}),(0,Pe.jsx)("span",{className:"text-xs",children:v?"Copying\u2026":j?"Copy again":"Copy to Interview Brief"})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(bP,{icon:TH,title:"Areas to dig deeper",testid:"ci-dig-deeper-header"}),(0,Pe.jsx)(yP,{items:F,testid:"ci-dig-deeper",empty:"No discussion topics surfaced."})]}),S&&(0,Pe.jsxs)("div",{className:"rounded-md border p-4",style:{background:"#FFFBEB",borderColor:"#FDE68A"},"data-testid":"ci-recommendation",children:[(0,Pe.jsx)(bP,{icon:ux,title:"AROS draft evidence summary \u2014 please validate",testid:"ci-recommendation-header"}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed",style:{color:gP},"data-testid":"ci-recommendation-text",children:S})]}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground pt-2 border-t border-border/60","data-testid":"ci-footer-note",children:"fallback"===O?"Automated draft is unavailable \u2014 surfacing what we can see from the r\xe9sum\xe9. The decision is yours.":"Every insight above is a draft based on the r\xe9sum\xe9 and job. AROS does not decide \u2014 it helps you focus."})]})]})}const wP=["className","variant"],NP=ks("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function AP(e){let t=e.className,n=e.variant,a=Ie(e,wP);return(0,Pe.jsx)("div",h({className:Ro(NP({variant:n}),t)},a))}const kP=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,64H180V56a28,28,0,0,0-28-28H104A28,28,0,0,0,76,56v8H32A20,20,0,0,0,12,84V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V84A20,20,0,0,0,224,64ZM100,56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v8H100ZM220,88v32H196v-4a12,12,0,0,0-24,0v4H84v-4a12,12,0,0,0-24,0v4H36V88ZM36,188V144H60v4a12,12,0,0,0,24,0v-4h88v4a12,12,0,0,0,24,0v-4h24v44Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,120v72a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V120Z",opacity:"0.2"}),o.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM32,80H224v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32ZM224,192H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80v28a4,4,0,0,0,4,4H64V96.27A8.17,8.17,0,0,1,71.47,88,8,8,0,0,1,80,96v16h96V96.27A8.17,8.17,0,0,1,183.47,88,8,8,0,0,1,192,96v16h44a4,4,0,0,0,4-4V80A16,16,0,0,0,224,64Zm-64,0H96V56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm80,68v60a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V132a4,4,0,0,1,4-4H64v16a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,80,143.73V128h96v16a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V128h44A4,4,0,0,1,240,132Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,66H174V56a22,22,0,0,0-22-22H104A22,22,0,0,0,82,56V66H32A14,14,0,0,0,18,80V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66ZM94,56a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V66H94ZM32,78H224a2,2,0,0,1,2,2v34H190V104a6,6,0,0,0-12,0v10H78V104a6,6,0,0,0-12,0v10H30V80A2,2,0,0,1,32,78ZM224,194H32a2,2,0,0,1-2-2V126H66v10a6,6,0,0,0,12,0V126H178v10a6,6,0,0,0,12,0V126h36v66A2,2,0,0,1,224,194Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM224,80v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32V80Zm0,112H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,68H172V56a20,20,0,0,0-20-20H104A20,20,0,0,0,84,56V68H32A12,12,0,0,0,20,80V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68ZM92,56a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V68H92ZM32,76H224a4,4,0,0,1,4,4v36H188V104a4,4,0,0,0-8,0v12H76V104a4,4,0,0,0-8,0v12H28V80A4,4,0,0,1,32,76ZM224,196H32a4,4,0,0,1-4-4V124H68v12a4,4,0,0,0,8,0V124H180v12a4,4,0,0,0,8,0V124h40v68A4,4,0,0,1,224,196Z"}))]]),EP=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:kP})));EP.displayName="ToolboxIcon";const DP=EP,_P=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,40V76a12,12,0,0,1-24,0V52H180a12,12,0,0,1,0-24h36A12,12,0,0,1,228,40ZM216,168a12,12,0,0,0-12,12v24H180a12,12,0,0,0,0,24h36a12,12,0,0,0,12-12V180A12,12,0,0,0,216,168ZM76,204H52V180a12,12,0,0,0-24,0v36a12,12,0,0,0,12,12H76a12,12,0,0,0,0-24ZM40,88A12,12,0,0,0,52,76V52H76a12,12,0,0,0,0-24H40A12,12,0,0,0,28,40V76A12,12,0,0,0,40,88Zm136,92a12,12,0,0,1-9.6-4.79,48,48,0,0,0-76.82,0,12,12,0,0,1-19.18-14.42,72.1,72.1,0,0,1,23.92-20.5,44,44,0,1,1,67.34,0,72.1,72.1,0,0,1,23.92,20.5A12,12,0,0,1,176,180Zm-48-48a20,20,0,1,0-20-20A20,20,0,0,0,128,132Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M160,112a32,32,0,1,1-32-32A32,32,0,0,1,160,112Z",opacity:"0.2"}),o.createElement("path",{d:"M224,40V76a8,8,0,0,1-16,0V48H180a8,8,0,0,1,0-16h36A8,8,0,0,1,224,40Zm-8,132a8,8,0,0,0-8,8v28H180a8,8,0,0,0,0,16h36a8,8,0,0,0,8-8V180A8,8,0,0,0,216,172ZM76,208H48V180a8,8,0,0,0-16,0v36a8,8,0,0,0,8,8H76a8,8,0,0,0,0-16ZM40,84a8,8,0,0,0,8-8V48H76a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8V76A8,8,0,0,0,40,84Zm136,92a8,8,0,0,1-6.41-3.19,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.62A67.94,67.94,0,0,1,101,141.51a40,40,0,1,1,53.94,0,67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,176,176Zm-48-40a24,24,0,1,0-24-24A24,24,0,0,0,128,136Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,40V76a8,8,0,0,1-16,0V48H180a8,8,0,0,1,0-16h36A8,8,0,0,1,224,40Zm-8,132a8,8,0,0,0-8,8v28H180a8,8,0,0,0,0,16h36a8,8,0,0,0,8-8V180A8,8,0,0,0,216,172ZM76,208H48V180a8,8,0,0,0-16,0v36a8,8,0,0,0,8,8H76a8,8,0,0,0,0-16ZM40,84a8,8,0,0,0,8-8V48H76a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8V76A8,8,0,0,0,40,84Zm61,57.51A67.94,67.94,0,0,0,73.6,163.19,8,8,0,0,0,80,176h96a8,8,0,0,0,6.4-12.81A67.94,67.94,0,0,0,155,141.51a40,40,0,1,0-53.94,0Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,40V76a6,6,0,0,1-12,0V46H180a6,6,0,0,1,0-12h36A6,6,0,0,1,222,40Zm-6,134a6,6,0,0,0-6,6v30H180a6,6,0,0,0,0,12h36a6,6,0,0,0,6-6V180A6,6,0,0,0,216,174ZM76,210H46V180a6,6,0,0,0-12,0v36a6,6,0,0,0,6,6H76a6,6,0,0,0,0-12ZM40,82a6,6,0,0,0,6-6V46H76a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6V76A6,6,0,0,0,40,82Zm136,92a6,6,0,0,1-4.8-2.4,54,54,0,0,0-86.4,0,6,6,0,1,1-9.6-7.2,65.65,65.65,0,0,1,29.69-22.26,38,38,0,1,1,46.22,0A65.65,65.65,0,0,1,180.8,164.4,6,6,0,0,1,176,174Zm-48-36a26,26,0,1,0-26-26A26,26,0,0,0,128,138Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,40V76a8,8,0,0,1-16,0V48H180a8,8,0,0,1,0-16h36A8,8,0,0,1,224,40Zm-8,132a8,8,0,0,0-8,8v28H180a8,8,0,0,0,0,16h36a8,8,0,0,0,8-8V180A8,8,0,0,0,216,172ZM76,208H48V180a8,8,0,0,0-16,0v36a8,8,0,0,0,8,8H76a8,8,0,0,0,0-16ZM40,84a8,8,0,0,0,8-8V48H76a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8V76A8,8,0,0,0,40,84Zm136,92a8,8,0,0,1-6.41-3.19,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.62A67.94,67.94,0,0,1,101,141.51a40,40,0,1,1,53.94,0,67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,176,176Zm-48-40a24,24,0,1,0-24-24A24,24,0,0,0,128,136Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,40V76a4,4,0,0,1-8,0V44H180a4,4,0,0,1,0-8h36A4,4,0,0,1,220,40Zm-4,136a4,4,0,0,0-4,4v32H180a4,4,0,0,0,0,8h36a4,4,0,0,0,4-4V180A4,4,0,0,0,216,176ZM76,212H44V180a4,4,0,0,0-8,0v36a4,4,0,0,0,4,4H76a4,4,0,0,0,0-8ZM40,80a4,4,0,0,0,4-4V44H76a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4V76A4,4,0,0,0,40,80Zm136,92a4,4,0,0,1-3.2-1.6,56,56,0,0,0-89.6,0,4,4,0,1,1-6.4-4.8,63.65,63.65,0,0,1,32.5-22.85,36,36,0,1,1,37.4,0,63.65,63.65,0,0,1,32.5,22.85A4,4,0,0,1,176,172Zm-48-32a28,28,0,1,0-28-28A28,28,0,0,0,128,140Z"}))]]),CP=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:_P})));CP.displayName="UserFocusIcon";const FP=CP,SP={resume:uv,interview_note:Cy,work_sample:DP,manager_feedback:qC,manager_feedback_30d:qC,manager_feedback_60d:qC,manager_feedback_90d:qC,recruiter_note:FP},MP={resume:"Resume",interview_note:"Interview note",work_sample:"Work sample",manager_feedback:"Manager feedback",manager_feedback_30d:"Manager feedback \xb7 30-day",manager_feedback_60d:"Manager feedback \xb7 60-day",manager_feedback_90d:"Manager feedback \xb7 90-day",recruiter_note:"Recruiter note"},OP={high:{label:"Well-supported evidence",bg:"#DCFCE7",fg:"#166534",ring:"#BBF7D0"},medium:{label:"Partially supported evidence",bg:"#FEF3C7",fg:"#92400E",ring:"#FDE68A"},low:{label:"Sparse evidence",bg:"#EEF2FF",fg:"#3730A3",ring:"#C7D2FE"}},RP="#041C3A",HP="#374151",PP="#6B7280",LP="#E5E7EB";function TP(e){let t=e.chip,n=e.index,a=e.onClick;const r=SP[t.evidence_type]||uv,i=MP[t.evidence_type]||t.evidence_type,s="function"===typeof a&&t.ledger_id,o=s?"button":"div";return(0,Pe.jsxs)(o,{type:s?"button":void 0,onClick:s?()=>a(t):void 0,className:"group relative inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-medium bg-white transition-colors ".concat(s?"hover:bg-slate-50 cursor-pointer":""),style:{border:"1px solid ".concat(LP),color:HP},"data-testid":"intel-evidence-chip-".concat(n),title:s?"See the receipt":t.excerpt||"",children:[(0,Pe.jsx)(r,{size:11,weight:"duotone"}),i]})}function IP(e){let t=e.level,n=e.narrative;const a=OP[t]||OP.low;return(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-semibold",style:{background:a.bg,color:a.fg,border:"1px solid ".concat(a.ring)},"data-testid":"intel-confidence-".concat(t),title:n,children:[(0,Pe.jsx)(ux,{size:11,weight:"fill"}),a.label]})}function ZP(e){let t=e.insight,n=e.index,a=e.onEvidenceClick;return(0,Pe.jsxs)("div",{className:"rounded-xl p-5 bg-white",style:{border:"1px solid ".concat(LP)},"data-testid":"intel-insight-".concat(n),children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsx)("div",{className:"text-[11px] font-mono font-semibold uppercase tracking-[0.14em] mb-1",style:{color:PP},"data-testid":"intel-insight-label-".concat(n),children:t.label}),(0,Pe.jsx)("div",{className:"text-[15px] font-brand leading-relaxed",style:{color:RP},"data-testid":"intel-insight-claim-".concat(n),children:t.claim})]}),(0,Pe.jsx)(IP,{level:t.confidence,narrative:t.confidence_narrative})]}),t.based_on&&t.based_on.length>0?(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono font-semibold uppercase tracking-[0.16em] mb
2-1.5",style:{color:PP},children:"Based on"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5","data-testid":"intel-insight-evidence-".concat(n),children:t.based_on.map((e,t)=>(0,Pe.jsx)(TP,{chip:e,index:"".concat(n,"-").concat(t),onClick:a},t))})]}):(0,Pe.jsx)("div",{className:"mt-3 text-[12px] italic",style:{color:PP},children:"No direct evidence \u2014 treat this as a hypothesis to test in interview."}),t.confidence_narrative?(0,Pe.jsx)("div",{className:"mt-3 text-[12px] leading-relaxed",style:{color:HP},children:t.confidence_narrative}):null]})}function BP(e){let t=e.title,n=e.items,a=e.icon,r=e.iconColor,i=e.testid;return n&&0!==n.length?(0,Pe.jsxs)("div",{className:"rounded-xl p-5 bg-white",style:{border:"1px solid ".concat(LP)},"data-testid":i,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)(a,{size:16,weight:"duotone",style:{color:r}}),(0,Pe.jsx)("div",{className:"font-brand font-semibold text-[14px]",style:{color:RP},children:t})]}),(0,Pe.jsx)("ul",{className:"space-y-2",children:n.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-[13px] leading-relaxed pl-4 relative font-brand",style:{color:HP},children:[(0,Pe.jsx)("span",{className:"absolute left-0 top-2 w-1.5 h-1.5 rounded-full",style:{background:r}}),e]},t))})]}):null}const VP=function(e){let t=e.card,n=e.onRegenerate,a=e.loading,r=void 0!==a&&a,i=e.onEvidenceClick;if(r)return(0,Pe.jsxs)("div",{className:"rounded-2xl p-8 text-center",style:{background:"#F8FAFC",border:"1px solid ".concat(LP)},"data-testid":"intel-card-loading",children:[(0,Pe.jsx)(ux,{size:22,weight:"duotone",style:{color:RP},className:"mx-auto mb-2"}),(0,Pe.jsx)("div",{className:"text-sm font-brand",style:{color:PP},children:"AROS is reviewing the evidence\u2026"})]});if(!t)return null;const s=(t.flags||[]).length>0;return(0,Pe.jsxs)("div",{className:"space-y-4","data-testid":"intel-card-v2",children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono font-semibold uppercase tracking-[0.16em] mb-1",style:{color:PP},children:"Candidate intelligence"}),(0,Pe.jsxs)("h2",{className:"font-brand font-bold text-xl tracking-[-0.015em]",style:{color:RP},"data-testid":"intel-card-heading",children:[t.candidate_name,(0,Pe.jsxs)("span",{className:"font-normal",style:{color:PP},children:[" \xb7 ",t.job_title]})]})]}),n?(0,Pe.jsx)(Lo,{size:"sm",variant:"outline",onClick:n,"data-testid":"intel-card-regenerate",children:"Refresh"}):null]}),s&&t.flags.includes("no_evidence_found")?(0,Pe.jsxs)("div",{className:"rounded-xl p-4 flex items-start gap-3",style:{background:"#FEF3C7",border:"1px solid #FDE68A"},"data-testid":"intel-card-no-evidence",children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",style:{color:"#92400E"},className:"mt-0.5"}),(0,Pe.jsx)("div",{className:"text-[13px] font-brand",style:{color:"#92400E"},children:"AROS hasn't collected enough evidence for this candidate yet. The card below reflects only what the model could infer \u2014 treat every claim as a hypothesis to verify in the interview."})]}):null,(0,Pe.jsx)("div",{className:"space-y-3","data-testid":"intel-card-insights",children:(t.insights||[]).map((e,t)=>(0,Pe.jsx)(ZP,{insight:e,index:t,onEvidenceClick:i},e.id||t))}),(0,Pe.jsx)(BP,{title:"What we don't know yet",items:t.missing_or_unclear_evidence,icon:qf,iconColor:"#0F4FA8",testid:"intel-card-missing"}),(0,Pe.jsx)(BP,{title:"Questions to ask in interview",items:t.suggested_interview_questions,icon:Cy,iconColor:"#7C3AED",testid:"intel-card-questions"}),(0,Pe.jsx)(BP,{title:"Compliance notes",items:t.compliance_notes,icon:iy,iconColor:"#16A34A",testid:"intel-card-compliance"}),(0,Pe.jsxs)("div",{className:"text-[11px] text-right",style:{color:PP},children:["Generated ",t.generated_at?new Date(t.generated_at).toLocaleString():""," \xb7 AROS assists \u2014 the hiring decision is yours."]})]})},zP="#041C3A",qP="#374151",UP="#6B7280",WP="#E5E7EB",YP={resume:uv,interview_note:Cy,work_sample:DP,manager_feedback:qC,manager_feedback_30d:qC,manager_feedback_60d:qC,manager_feedback_90d:qC,recruiter_note:FP},KP={resume:"Resume",interview_note:"Interview note",work_sample:"Work sample",manager_feedback:"Manager feedback",manager_feedback_30d:"Manager feedback \xb7 30-day",manager_feedback_60d:"Manager feedback \xb7 60-day",manager_feedback_90d:"Manager feedback \xb7 90-day",recruiter_note:"Recruiter note"};function GP(e){let t=e.ledgerId,n=e.open,a=e.onOpenChange;const r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)("idle"),2),c=l[0],d=l[1];(0,o.useEffect)(()=>{let e=!1;if(n&&t)return d("loading"),(async()=>{try{const n=(await Qi.get("/candidate-intelligence/v2/evidence/".concat(encodeURIComponent(t)))).data;e||(s(n),d("ready"))}catch(n){e||(d("error"),s(null))}})(),()=>{e=!0}},[t,n]);const u=i&&YP[i.evidence_type]||uv,m=i?KP[i.evidence_type]||i.evidence_type:"";return(0,Pe.jsx)(hg,{open:n,onOpenChange:a,children:(0,Pe.jsxs)(bg,{side:"right",className:"sm:max-w-lg","data-testid":"evidence-receipt-drawer",children:[(0,Pe.jsx)(yg,{children:(0,Pe.jsxs)(wg,{children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono font-semibold uppercase tracking-[0.16em]",style:{color:UP},children:"Receipt"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-lg tracking-[-0.015em] mt-1",style:{color:zP},children:"The evidence behind this claim"})]})}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-5",children:["loading"===c&&(0,Pe.jsx)("div",{className:"text-sm",style:{color:UP},children:"Loading receipt\u2026"}),"error"===c&&(0,Pe.jsx)("div",{className:"text-sm",style:{color:"#991B1B"},children:"Couldn't load this receipt. It may have been superseded, or you may
2not have access."}),"ready"===c&&i&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-[12px] font-medium",style:{background:"#F8FAFC",color:qP,border:"1px solid ".concat(WP)},"data-testid":"receipt-source-badge",children:[(0,Pe.jsx)(u,{size:14,weight:"duotone"}),m]}),(0,Pe.jsx)("div",{className:"rounded-xl p-5 bg-white leading-relaxed text-[14px] whitespace-pre-wrap",style:{border:"1px solid ".concat(WP),color:zP,maxHeight:380,overflowY:"auto"},"data-testid":"receipt-text",children:i.text}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 gap-2 text-[12px]",style:{color:qP},children:[i.author_name&&(0,Pe.jsxs)("div",{className:"flex items-center gap-2","data-testid":"receipt-author",children:[(0,Pe.jsx)(Mg,{size:14,weight:"duotone",style:{color:UP}}),(0,Pe.jsxs)("span",{children:["Added by ",i.author_name]})]}),i.created_at&&(0,Pe.jsxs)("div",{className:"flex items-center gap-2","data-testid":"receipt-created",children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone",style:{color:UP}}),(0,Pe.jsxs)("span",{children:["Added ",new Date(i.created_at).toLocaleString()]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2","data-testid":"receipt-source",children:[(0,Pe.jsx)(uv,{size:14,weight:"duotone",style:{color:UP}}),(0,Pe.jsx)("span",{children:"Used in: AI Analysis Card"})]})]}),(0,Pe.jsx)("div",{className:"text-[11px] pt-3 border-t",style:{borderColor:WP,color:UP},children:"This is the original text that AROS used to reach this conclusion. AROS assists \u2014 the hiring decision is yours."})]})]})]})})}const $P=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),QP=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:$P})));QP.displayName="ShieldIcon";const XP=QP,JP="#041C3A",eL="#6B7280",tL="#374151",nL="#0F7E4A",aL="#B45309",rL="#991B1B",iL="#FEE2E2",sL="#FCA5A5",oL="#F8FAFC",lL="#E5E7EB",cL={protected_class:"Protected characteristic",unsupported_claim:"Unsupported claim",loaded_language:"Loaded language",missing_evidence:"Missing evidence"},dL={high:{color:rL,bg:iL,border:sL,label:"High"},medium:{color:aL,bg:"#FFFBEB",border:"#FDE68A",label:"Medium"},low:{color:tL,bg:oL,border:lL,label:"Low"},clean:{color:nL,bg:"#ECFDF5",border:"#A7F3D0",label:"Clean"}};function uL(e){let t=e.severity,n=e.testid;const a=dL[t]||dL.low;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] uppercase tracking-[0.18em] font-mono px-2 py-0.5 rounded-full border",style:{color:a.color,background:a.bg,borderColor:a.border},"data-testid":n,children:["clean"===t?(0,Pe.jsx)(Yf,{size:11,weight:"fill"}):(0,Pe.jsx)(AN,{size:11,weight:"fill"}),a.label]})}const mL=function(e){let t=e.applicationId,n=e.isAdmin;const a=Ue((0,o.useState)(null),2),r=a[0],i=a[1],s=Ue((0,o.useState)("loading"),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1],x=(0,o.useCallback)(async()=>{if(t){c("loading");try{const e=(await Qi.get("/candidate-intelligence/v2/audit/".concat(encodeURIComponent(t)))).data;i(e),c("ready")}catch(zf){var e,n,a;const r=null===zf||void 0===zf||null===(e=zf.response)||void 0===e?void 0:e.status,i=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;c(409===r||"bias_auditor_disabled"===i||"rag_cards_disabled"===i||403===r||401===r?"disabled":404===r?"empty":"error")}}},[t]);(0,o.useEffect)(()=>{n?x():c("disabled")},[n,x]);const g=(0,o.useCallback)(async()=>{if(t&&!h){f(!0);try{const e=(await Qi.post("/candidate-intelligence/v2/audit/".concat(encodeURIComponent(t),"/run"))).data;i(e),c("ready"),va.success(e.clean?"AI review complete \u2014 no flags.":"AI review complete \u2014 ".concat(e.flag_count," flag").concat(1===e.flag_count?"":"s","."))}catch(zf){var e,n;const a=null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail;"no_card_to_audit"===a?va.info("Generate the AI Analysis card first, then re-run the review."):"bias_auditor_disabled"===a||"rag_cards_disabled"===a?c("disabled"):va.error("Couldn't run the AI review. Try again in a moment.")}finally{f(!1)}}},[t,h]);if(!n||"disabled"===l)return null;const v=((null===r||void 0===r?void 0:r.flags)||[]).filter(e=>"high"===e.severity),b=v.length>0;if("empty"===l)return(0,Pe.jsxs)("div",{className:"mt-4 rounded-lg p-3 flex items-center justify-between text-[12px]",style:{background:oL,border:"1px solid ".concat(lL),color:eL},"data-testid":"ai-review-empty",children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(XP,{size:14,weight:"duotone",style:{color:JP}}),(0,Pe.jsx)("span",{children:"No AI review of this analysis yet."})]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"ghost",onClick:g,disabled:h,"data-testid":"ai-review-run-btn",children:[(0,Pe.jsx)(Ux,{size:13,weight:"bold",className:"mr-1.5"}),h?"Running\u2026":"Run review"]})]});if("loading"===l)return(0,Pe.jsxs)("div",{className:"mt-4 rounded-lg p-3 text-[12px]",style:{background:oL,border:"1px solid ".concat(lL),color:eL},"data-testid":"ai-review-loading",children:[(0,Pe.jsx)(XP,{size:14,weight:"duotone",className:"inline-block mr-2",style:{color:JP}}),"Loading AI review\u2026"]});if("error"===l)return(0,Pe.jsxs)("div",{className:"mt-4 rounded-lg p-3 flex items-center justify-between text-[12px]",style:{background:oL,border:"1px solid ".concat(lL),color:eL},"data-testid":"ai-review-error",children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(AN,{size:14,weight:"duotone",style:{color:aL}}),(0,Pe.jsx)("span",{children:"Couldn't load the AI review."})]}),(0,Pe.jsx)(Lo,{size:"sm",variant:"ghost",onClick:x,"data-testid":"ai-review-retry-btn",children:"Try again"})]});const y=(null===r||void 0===r?void 0:r.overall_severity)||"clean",j=(null===r||void 0===r?void 0:r.flags)||[];return(0,Pe.jsxs)("div",{className:"mt-4 space-y-2","data-testid":"ai-review-panel",children:[b&&(0,Pe.jsxs)("div",{className:"rounded-lg p-3 flex items-start gap-2 border",style:{background:iL,borderColor:sL,color:rL},"data-testid":"ai-review-high-severity-banner",children:[(0,Pe.jsx)(AN,{size:16,weight:"fill",className:"mt-0.5"}),(0,Pe.jsxs)("div",{className:"flex-1 text-[13px]",children:[(0,Pe.jsx)("div",{className:"font-semibold",children:"AI review flagged this analysis."}),(0,Pe.jsxs)("div",{className:"text-[12px] mt-0.5",children:[v.length," high-severity"," ",1===v.length?"issue was":"issues were"," identified. Review before sharing this analysis with a hiring team."]})]})]}),(0,Pe.jsxs)("div",{className:"rounded-lg border",style:{borderColor:lL,background:"#fff"},children:[(0,Pe.jsxs)("button",{type:"button",onClick:()=>m(e=>!e),className:"w-full flex items-center justify-between p-3 text-left","data-testid":"ai-review-toggle",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(XP,{size:16,weight:"duotone",style:{color:null!==r&&void 0!==r&&r.clean?nL:JP}}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono",style:{color:eL},children:"Admin \xb7 AI review"}),(0,Pe.jsx)("div",{className:"text-[13px]",style:{color:JP},children:null!==r&&void 0!==r&&r.clean?"No issues found.":"".concat(r.flag_count," flag").concat(1===r.flag_count?"":"s"," across ").concat(new Set(j.map(e=>e.category)).size," categor").concat(1===new Set(j.map(e=>e.category)).size?"y":"ies",".")})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(uL,{severity:y,testid:"ai-review-overall-chip"}),u?(0,Pe.jsx)(IO,{size:14,weight:"bold",style:{color:eL}}):(0,Pe.jsx)(jC,{size:14,weight:"bold",style:{color:eL}})]})]}),u&&(0,Pe.jsxs)("div",{className:"border-t p-3 space-y-2",style:{borderColor:lL},"data-testid":"ai-review-details",children:[0===j.length?(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:tL},children:"No flags on this analysis. The AI review verified that every claim cites at least one piece of supporting evidence and that no protected characteristics were referenced."}):(0,Pe.jsx)("ul",{className:"space-y-2",children:j.map((e,t)=>{const n=dL[e.severity]||dL.low;return(0,Pe.jsxs)("li",{className:"rounded-md p-3 border",style:{background:n.bg,borderColor:n.border},"data-testid":"ai-review-flag-".concat(t),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Pe.jsx)(uL,{severity:e.severity}),(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.14em] font-mono",style:{color:eL},children:cL[e.category]||e.category})]}),(0,Pe.jsxs)("div",{className:"text-[13px] font-medium",style:{color:JP},children:["\u201c",e.excerpt,"\u201d"]}),(0,Pe.jsx)("div",{className:"text-[12px] mt-0.5",style:{color:tL},children:e.explanation})]},t)})}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t",style:{borderColor:lL},children:[(0,Pe.jsxs)("div",{className:"text-[10px] font-mono",style:{color:eL},"data-testid":"ai-review-meta",children:[null===r||void 0===r?void 0:r.provider," \xb7 ",null===r||void 0===r?void 0:r.auditor_prompt_version,null!==r&&void 0!==r&&r.generated_at?" \xb7 ".concat(new Date(r.generated_at).toLocaleStr
2ing(void 0,{dateStyle:"medium",timeStyle:"short"})):""]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"ghost",onClick:g,disabled:h,"data-testid":"ai-review-rerun-btn",style:{color:"#0F4FA8"},children:[(0,Pe.jsx)(Ux,{size:13,weight:"bold",className:"mr-1.5"}),h?"Running\u2026":"Run audit again"]})]})]})]})]})},pL="#041C3A",hL="#6B7280",fL="#E5E7EB",xL="#F8FAFC";const gL=function(e){var t,n;let a=e.applicationId,r=e.isAdmin;const i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)("idle"),2),p=m[0],f=m[1],x=Ue((0,o.useState)(null),2),g=x[0],v=x[1],b=Ue((0,o.useState)(null),2),y=b[0],j=b[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const r=(await Qi.get("/candidate-intelligence/v2/status")).data;if(e)return;if(l(r),!r.can_view)return void f("idle");f("loading");try{const t=(await Qi.post("/candidate-intelligence/v2/synthesize",{application_id:a})).data;if(e)return;t.insights&&0!==t.insights.length?(u(t),f("ready")):(u(t),f((t.flags||[]).includes("no_evidence_found")?"empty":"ready"))}catch(zf){var t,n;if(e)return;if(409===(null===zf||void 0===zf||null===(t=zf.response)||void 0===t?void 0:t.status))return void l({enabled:!1,can_view:!1});if(403===(null===zf||void 0===zf||null===(n=zf.response)||void 0===n?void 0:n.status))return void l(e=>h(h({},e||{}),{},{can_view:!1}));f("empty")}}catch(r){e||f("idle")}})(),()=>{e=!0}},[a]);const w=(0,o.useCallback)(async()=>{f("analyzing"),v(null);try{const e=(await Qi.post("/candidate-intelligence/v2/analyze/".concat(encodeURIComponent(a)))).data;u(e);const t=!e.insights||0===e.insights.length;f(t?"empty":"ready"),va.success(t?"Not enough evidence to analyze yet.":"AROS finished the analysis.")}catch(zf){var e,t;v((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||(null===zf||void 0===zf?void 0:zf.message)||"Analysis failed."),f("error")}},[a]),N=(0,o.useCallback)(async()=>{f("refreshing"),v(null);try{const e=(await Qi.post("/candidate-intelligence/v2/refresh/".concat(encodeURIComponent(a)))).data;u(e),f("ready"),va.success("Refreshed with the latest evidence.")}catch(zf){var e,t;v((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||(null===zf||void 0===zf?void 0:zf.message)||"Refresh failed."),f("error")}},[a]);return null!==s&&void 0!==s&&s.can_view?"loading"===p?(0,Pe.jsx)(VP,{loading:!0,"data-testid":"ai-analysis-loading"}):"empty"===p||d&&(d.flags||[]).includes("no_evidence_found")?(0,Pe.jsxs)("div",{className:"rounded-2xl p-10 text-center",style:{background:xL,border:"1px dashed ".concat(fL)},"data-testid":"ai-analysis-empty",children:[(0,Pe.jsx)(ux,{size:26,weight:"duotone",style:{color:pL},className:"mx-auto mb-3"}),(0,Pe.jsx)("div",{className:"font-brand font-semibold text-lg mb-1",style:{color:pL},children:"AROS hasn't analyzed this candidate yet."}),(0,Pe.jsx)("p",{className:"text-sm max-w-md mx-auto mb-5",style:{color:"#374151"},children:"Pull together the resume, notes, and any feedback we have on file, and generate an evidence-backed intelligence card."}),(0,Pe.jsxs)(Lo,{onClick:w,disabled:"analyzing"===p,"data-testid":"ai-analysis-analyze-btn",className:"text-white font-brand font-medium h-11 px-5",style:{background:pL,borderRadius:10},children:["analyzing"===p?"Analyzing\u2026":"Analyze Candidate",(0,Pe.jsx)(ux,{size:16,weight:"fill",className:"ml-2"})]})]}):"error"===p?(0,Pe.jsxs)("div",{className:"rounded-xl p-5 flex items-start gap-3",style:{background:"#FEE2E2",border:"1px solid #FCA5A5"},"data-testid":"ai-analysis-error",children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",style:{color:"#991B1B"},className:"mt-0.5"}),(0,Pe.jsx)("div",{className:"flex-1 text-[13px]",style:{color:"#991B1B"},children:g||"AROS couldn't complete the analysis. Try again in a moment."}),(0,Pe.jsx)(Lo,{size:"sm",variant:"outline",onClick:w,children:"Try again"})]}):(0,Pe.jsxs)("div",{"data-testid":"ai-analysis-panel",children:[null!==d&&void 0!==d&&d.cached?(0,Pe.jsxs)("div",{className:"mb-3 flex items-center justify-between rounded-lg px-3 py-2 text-[12px]",style:{background:xL,border:"1px solid ".concat(fL),color:hL},"data-testid":"ai-analysis-cached-banner",children:[(0,Pe.jsx)("span",{children:"Showing the last analysis. Add new notes or feedback, then refresh."}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"ghost",onClick:N,"data-testid":"ai-analysis-refresh-btn",children:[(0,Pe.jsx)(Ux,{size:14,weight:"bold",className:"mr-1.5"}),"Refresh"]})]}):null,(0,Pe.jsx)(VP,{card:d,loading:"refreshing"===p,onRegenerate:N,onEvidenceClick:e=>{null!==e&&void 0!==e&&e.ledger_id?j(e.ledger_id):va.info("This evidence isn't linked to a receipt yet.")}}),(0,Pe.jsx)(GP,{ledgerId:y,open:!!y,onOpenChange:e=>{e||j(null)}}),(0,Pe.jsx)(mL,{applicationId:a,isAdmin:r}),r&&null!==d&&void 0!==d&&d.retrieval_stats?(0,Pe.jsxs)("details",{className:"mt-4 rounded-lg p-3 text-[12px]",style:{background:xL,border:"1px solid ".concat(fL),color:hL},"data-testid":"ai-analysis-admin-stats",children:[(0,Pe.jsx)("summary",{className:"cursor-pointer font-mono uppercase tracking-[0.14em] text-[10px]",children:"Admin debug \xb7 retrieval stats"}),(0,Pe.jsxs)("div",{className:"mt-2 grid grid-cols-2 gap-y-1 gap-x-6",children:[(0,Pe.jsx)("div",{children:"Evidence searched"}),(0,Pe.jsx)("div",{children:d.retrieval_stats.searched}),(0,Pe.jsx)("div",{children:"Presented to model"}),(0,Pe.jsx)("div",{children:d.retrieval_stats.presented_to_model}),(0,Pe.jsx)("div",{children:"Cited (via ledger)"}),(0,Pe.jsx)("div",{children:null!==(t=d.retrieval_stats.cited_evidence_ids_count)&&void 0!==t?t:0}),(0,Pe.jsx)("div",{children:"Model latency"}),(0,Pe.jsxs)("div",{children:[null!==(n=d.retrieval_stats.provider_latency_ms)&&void 0!==n?n:"\u2014"," ms"]}),(0,Pe.jsx)("div",{children:"Prompt version"}),(0,Pe.jsx)("div",{children:d.prompt_version}),(0,Pe.jsx)("div",{children:"Retriever version"}),(0,Pe.jsx)("div",{children:d.retriever_version}),(0,Pe.jsx)("div",{children:"Embedding provider"}),(0,Pe.jsx)("div",{children:d.embedding_provider}),(0,Pe.jsx)("div",{children:"Model"}),(0,Pe.jsx)("div",{children:d.model})]})]}):null]}):null},vL=e=>"taylor:applicant:".concat(e,":dismissed");const bL=function(e){let t=e.applicationId;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!1),2),s=i[0],l=i[1];return(0,o.useEffect)(()=>
2{if(!t)return;try{"1"===localStorage.getItem(vL(t))&&l(!0)}catch(n){}let e=!0;return Qi.get("/taylor/applicant-guidance/".concat(t)).then(t=>{e&&r(t.data||null)}).catch(()=>{e&&r(null)}),()=>{e=!1}},[t]),s?null:a&&a.visible&&(a.lines||[]).length?(0,Pe.jsxs)("section",{className:"taylor-mount rounded-lg border border-slate-200 bg-slate-50/60 px-4 py-3 mb-4 relative","data-testid":"taylor-applicant-guidance","data-taylor-voice":"taylor","data-surface-id":a.surface_id,children:[(0,Pe.jsx)("button",{onClick:()=>{try{localStorage.setItem(vL(t),"1")}catch(e){}l(!0)},"aria-label":"Dismiss Taylor guidance",className:"absolute top-3 right-3 opacity-50 hover:opacity-100 transition-opacity","data-testid":"taylor-applicant-guidance-dismiss",children:(0,Pe.jsx)($f,{size:14})}),(0,Pe.jsx)("div",{className:"mb-2",children:(0,Pe.jsx)(vF,{variant:"eyebrow",testId:"taylor-applicant-guidance-byline"})}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:a.lines.map((e,t)=>{var n;return(0,Pe.jsxs)("li",{className:"flex items-center justify-between gap-3 text-sm text-slate-800","data-testid":"taylor-applicant-line-".concat(t),children:[(0,Pe.jsx)("span",{children:e.text}),(null===(n=e.cta)||void 0===n?void 0:n.href)&&(0,Pe.jsxs)("a",{href:e.cta.href,className:"inline-flex items-center gap-1 text-xs font-medium text-[#0F4FA8] hover:underline shrink-0","data-testid":"taylor-applicant-line-".concat(t,"-cta"),children:[e.cta.label,(0,Pe.jsx)(eg,{size:12,weight:"bold"})]})]},e.id||t)})})]}):null};const yL=function(e){let t=e.applicationId,n=e.hasMeaningfulEvidence;const a=Ue((0,o.useState)(null),2),r=a[0],i=a[1];return(0,o.useEffect)(()=>{if(!t)return;let e=!0;return Qi.post("/taylor/candidate-card-intro",{application_id:t,has_meaningful_evidence:!!n}).then(t=>{e&&i(t.data||null)}).catch(()=>{e&&i(null)}),()=>{e=!1}},[t,n]),r&&r.visible?(0,Pe.jsxs)("div",{className:"taylor-mount rounded-md border border-slate-200 bg-slate-50 px-4 py-2.5 mb-3","data-testid":"taylor-candidate-card-intro","data-taylor-voice":"taylor","data-surface-id":r.surface_id,children:[(0,Pe.jsx)("div",{className:"mb-1",children:(0,Pe.jsx)(vF,{variant:"eyebrow",testId:"taylor-candidate-card-intro-byline"})}),(0,Pe.jsx)("p",{className:"text-sm text-slate-800","data-testid":"taylor-candidate-card-intro-line",children:r.line})]}):null},jL=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M100,52H40A20,20,0,0,0,20,72v64a20,20,0,0,0,20,20H96v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,100,52Zm-4,80H44V76H96ZM216,52H156a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20h56v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,216,52Zm-4,8
20H160V76h52Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M108,72v72H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h60A8,8,0,0,1,108,72Zm108-8H156a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h68V72A8,8,0,0,0,216,64Z",opacity:"0.2"}),o.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M116,72v88a48.05,48.05,0,0,1-48,48,8,8,0,0,1,0-16,32,32,0,0,0,32-32v-8H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56h60A16,16,0,0,1,116,72ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M100,58H40A14,14,0,0,0,26,72v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,100,58Zm2,80H40a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2ZM216,58H156a14,14,0,0,0-14,14v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,216,58Zm2,80H156a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M100,60H40A12,12,0,0,0,28,72v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,100,60Zm4,80H40a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4ZM216,60H156a12,12,0,0,0-12,12v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,216,60Zm4,80H156a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4Z"}))]]),wL=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:jL})));wL.displayName="QuotesIcon";const NL=wL,AL="".concat("https://www.getaros.ai","/api"),kL={background:"Backgroun
2d",trait:"Trait",custom:"Recruiter-specified"};function EL(e){let t=e.applicationId;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)({}),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m="undefined"!==typeof window?localStorage.getItem("aros_token"):null;if((0,o.useEffect)(()=>{(async()=>{if(m&&t)try{var e;const n=Ue(await Promise.all([Ki.get("".concat(AL,"/applications/").concat(t,"/trait-matches"),{headers:{Authorization:"Bearer ".concat(m)}}),Ki.get("".concat(AL,"/traits/catalog"),{headers:{Authorization:"Bearer ".concat(m)}}).catch(()=>({data:null}))]),2),a=n[0],i=n[1];if(r((null===(e=a.data)||void 0===e?void 0:e.matches)||[]),i.data){const e={};(i.data.background_patterns||[]).forEach(t=>e["background:".concat(t.slug)]=t.label),(i.data.traits||[]).forEach(t=>e["trait:".concat(t.slug)]=t.label),l(e)}}catch(n){r([])}})()},[t,m]),null===a)return null;if(0===a.length)return null;const p=async(e,n)=>{u(e);try{await Ki.post("".concat(AL,"/applications/").concat(t,"/trait-matches/").concat(e,"/").concat(n),{},{headers:{Authorization:"Bearer ".concat(m)}}),r("dismiss"===n?t=>t.filter(t=>t.id!==e):t=>t.map(t=>t.id===e?h(h({},t),{},{state:"validated"}):t))}catch(zf){va.error("Could not update the match. Try again.")}finally{u(null)}};return(0,Pe.jsxs)("section",{className:"rounded-lg border border-slate-200 bg-white p-5","data-testid":"applicant-trait-matches",children:[(0,Pe.jsxs)("div",{className:"mb-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500",children:"Recruiter-selected trait evidence"}),(0,Pe.jsx)("h3",{className:"mt-1 font-semibold text-lg text-slate-900",children:"What the r\xe9sum\xe9 shows"}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-slate-600 max-w-2xl",children:"Evidence pulled verbatim from this candidate's r\xe9sum\xe9 for the traits selected on the job. Display only \u2014 nothing here alters the fit score, ranking, or hiring recommendation."})]}),(0,Pe.jsx)("ul",{className:"space-y-3",children:a.map(e=>{return(0,Pe.jsx)("li",{"data-testid":"trait-match-".concat(e.id),className:"rounded-md border p-4 ".concat("validated"===e.state?"border-emerald-300 bg-emerald-50/40":"border-slate-200 bg-white"),children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Pe.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500",children:[kL[e.trait_kind]||e.trait_kind," \xb7 ",(t=e,"custom"===t.trait_kind?(t.custom_id,"Custom trait"):s["".concat(t.trait_kind,":").concat(t.trait_slug)]||t.trait_slug)]}),(0,Pe.jsx)("div",{className:"mt-1 text-sm font-semibold text-slate-900",children:e.hypothesis}),e.reasoning&&(0,Pe.jsx)("div",{className:"mt-1 text-sm text-slate-600",children:e.reasoning}),(0,Pe.jsx)("ul",{className:"mt-3 space-y-2",children:(e.evidence||[]).map((t,n)=>{var a;return(0,Pe.jsxs)("li",{className:"flex items-start gap-2 text-sm text-slate-700 bg-slate-50 rounded px-3 py-2","data-testid":"trait-evidence-".concat(e.id,"-").concat(n),children:[(0,Pe.jsx)(NL,{size:14,weight:"fill",className:"mt-0.5 text-slate-400 flex-shrink-0"}),(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("span",{className:"italic",children:["\u201c",t.quote,"\u201d"]}),(0,Pe.jsx)("span",{className:"ml-2 text-[10px] uppercase tracking-wide text-slate-400",children:null===(a=t.source)||void 0===a?void 0:a.replace("_"," ")})]})]},n)})})]}),(0,Pe.jsxs)("div",{className:"flex flex-col gap-1.5",children:["validated"===e.state?(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500 text-white text-[10px] px-2 py-1 font-medium","data-testid":"trait-validated-".concat(e.id),children:[(0,Pe.jsx)(YC,{size:12,weight:"bold"})," Validated"]}):(0,Pe.jsxs)("button",{type:"button",onClick:()=>p(e.id,"validate"),disabled:d===e.id,className:"inline-flex items-center gap-1 rounded-md border border-emerald-500 text-emerald-700 text-xs px-2 py-1 hover:bg-emerald-50","data-testid":"trait-validate-btn-".concat(e.id),children:[(0,Pe.jsx)(YC,{size:12,weight:"bold"})," Validate"]}),(0,Pe.jsxs)("button",{type:"button",onClick:()=>p(e.id,"dismiss"),disabled:d===e.id,className:"inline-flex items-center gap-1 rounded-md border border-slate-300 text-slate-600 text-xs px-2 py-1 hover:bg-slate-50","data-testid":"trait-dismiss-btn-".concat(e.id),children:[(0,Pe.jsx)($f,{size:12,weight:"bold"})," Dismiss"]})]})]})},e.id);var t})})]})}const DL=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),o.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.
211,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),_L=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:DL})));_L.displayName="EyeSlashIcon";const CL=_L,FL="#041C3A",SL="#6B7280",ML="#374151",OL="#E5E7EB",RL="#B45309",HL="#FFFBEB",PL="#FDE68A",LL="#F3F4F6",TL={confirmed_in_interview:"Confirmed in interview",needs_follow_up:"Needs follow-up",not_relevant:"Not relevant",unable_to_confirm:"Unable to confirm"},IL={confirmed_in_interview:Yf,needs_follow_up:qf,not_relevant:$H,unable_to_confirm:AN},ZL={confirmed_in_interview:{color:"#0F7E4A",bg:"#ECFDF5",border:"#A7F3D0"},needs_follow_up:{color:RL,bg:HL,border:PL},not_relevant:{color:ML,bg:LL,border:OL},unable_to_confirm:{color:RL,bg:HL,border:PL}},BL={recruiter_validation:"Recruiter",validation_resolution:"Hiring Manager",dismissal:"Dismissed"};function VL(e){if(!e)return"";try{return new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(t){return e}}const zL=function(e){let t=e.events,n=e.compact,a=void 0!==n&&n,r=e.emptyState,i=void 0===r?null:r;const s=Ue((0,o.useState)(a),2),l=s[0],c=s[1],d=(0,o.useMemo)(()=>[...t||[]].sort((e,t)=>(e.timestamp||"").localeCompare(t.timestamp||"")),[t]);if(!d.length)return i;const u=(0,Pe.jsx)("ol",{className:a?"space-y-3":"border-t p-3 space-y-3",style:{borderColor:OL},"data-testid":"human-context-timeline-events",children:d.map(e=>{const t=IL[e.action]||Yf,n=ZL[e.action]||{color:SL,bg:LL,border:OL};return(0,Pe.jsxs)("li",{className:"flex items-start gap-3",children:[(0,Pe.jsx)("div",{className:"mt-0.5 flex items-center justify-center rounded-full w-6 h-6 border",style:{background:n.bg,borderColor:n.border,color:n.color},children:(0,Pe.jsx)(t,{size:12,weight:"duotone"})}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsxs)("div",{className:"text-[12px] flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"font-semibold",style:{color:FL},children:BL[e.event_type]||e.event_type}),(0,Pe.jsxs)("span",{style:{color:SL},children:["\xb7 ",e.recruiter_name||e.recruiter_id]}),(0,Pe.jsxs)("span",{style:{color:"#9CA3AF"},children:["\xb7 ",VL(e.timestamp)]})]}),(0,Pe.jsx)("div",{className:"text-[13px]",style:{color:ML},children:TL[e.action]||e.action}),e.rationale&&(0,Pe.jsxs)("div",{className:"text-[12px] italic mt-0.5",style:{color:SL},children:["\u201c",e.rationale,"\u201d"]})]})]},e.event_id)})});return a?(0,Pe.jsx)("div",{"data-testid":"human-context-timeline",children:u}):(0,Pe.jsxs)("div",{className:"rounded-xl border",style:{borderColor:OL,background:"#fff"},"data-testid":"human-context-timeline",children:[(0,Pe.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),className:"w-full flex items-center justify-between p-3 text-left","data-testid":"human-context-timeline-toggle",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(gy,{size:14,weight:"duotone",style:{color:FL}}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:FL},children:"AI vs Recruiter \xb7 Timeline"}),(0,Pe.jsxs)("div",{className:"text-[12px]",style:{color:SL},children:[d.length," event",1===d.length?"":"s"]})]})]}),l?(0,Pe.jsx)(IO,{size:14,weight:"bold",style:{color:SL}}):(0,Pe.jsx)(jC,{size:14,weight:"bold",style:{color:SL}})]}),l&&u]})},qL="#041C3A",UL="#0F4FA8",WL="#374151",YL="#6B7280",KL="#E5E7EB",GL="#F8FAFC",$L="#0F7E4A",QL="#ECFDF5",XL="#A7F3D0",JL="#B45309",eT="#FFFBEB",tT="#FDE68A",nT="#EFF6FF",aT="#BFDBFE",rT="#F3F4F6",iT="#991B1B",sT={confirmed_in_interview:"Confirmed in interview",needs_follow_up:"Needs follow-up",not_relevant:"Not relevant",unable_to_confirm:"Unable to confirm"},oT={confirmed_in_interview:Yf,needs_follow_up:qf,not_relevant:$H,unable_to_confirm:AN},lT={confirmed_in_interview:{color:$L,bg:QL,border:XL,label:"Confirmed"},needs_follow_up:{color:JL,bg:eT,border:tT,label:"Needs follow-up"},not_relevant:{color:WL,bg:rT,border:KL,label:"Not relevant"},unable_to_confirm:{color:JL,bg:eT,border:tT,label:"Unable to confirm"},dismissed:{color:YL,bg:rT,border:KL,label:"Dismissed"},not_yet_validated:{color:YL,bg:GL,border:KL,label:"Not yet validated"}}
2,cT={self_reported:{color:YL,bg:rT,border:KL,label:"Self-reported"},supported_by_submitted_evidence:{color:UL,bg:nT,border:aT,label:"Supported by evidence"},substantially_corroborated:{color:$L,bg:QL,border:XL,label:"Substantially corroborated"},additional_discussion_recommended:{color:JL,bg:eT,border:tT,label:"Discussion recommended"}},dT={caregiving_gap:"Caregiving gap",career_transition:"Career transition",military_service:"Military service",layoff:"Layoff",entrepreneurship:"Entrepreneurship",education_gap:"Education gap",relocation:"Relocation",returnship:"Returning to workforce",insufficient_evidence:"Insufficient evidence",other:"Human context"};function uT(e){let t=e.state,n=e.testid;const a=lT[t]||lT.not_yet_validated;return(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 text-[10px] uppercase tracking-[0.18em] font-mono px-2 py-0.5 rounded-full border",style:{color:a.color,background:a.bg,borderColor:a.border},"data-testid":n,children:a.label})}function mT(e){let t=e.confidence,n=e.testid;const a=cT[t]||cT.self_reported;return(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 text-[10px] uppercase tracking-[0.18em] font-mono px-2 py-0.5 rounded-full border",style:{color:a.color,background:a.bg,borderColor:a.border},"data-testid":n,children:a.label})}function pT(e){if(!e)return"";try{return new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(t){return e}}function hT(e){let t=e.summary,n=e.evidenceObserved,a=e.followUp;const r=e.muted?YL:WL;return(0,Pe.jsxs)("div",{className:"space-y-3",children:[(0,Pe.jsx)("p",{className:"text-[14px] leading-relaxed",style:{color:r},"data-testid":"human-context-summary",children:t||"Additional information is needed to summarize this candidate's context."}),n.length>0&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono mb-1",style:{color:YL},children:"Evidence observed"}),(0,Pe.jsx)("ul",{className:"text-[13px] space-y-1",style:{color:r},"data-testid":"human-context-evidence-list",children:n.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Pe.jsx)("span",{className:"mt-1 inline-block w-1 h-1 rounded-full",style:{background:"#9CA3AF"}}),(0,Pe.jsx)("span",{children:e})]},t))})]}),a&&(0,Pe.jsxs)("div",{className:"rounded-md p-3 text-[13px]",style:{background:GL,color:r},"data-testid":"human-context-follow-up",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono mb-1",style:{color:YL},children:"Suggested follow-up"}),(0,Pe.jsx)("div",{children:a})]})]})}function fT(e){let t=e.finalState,n=e.submitting,a=e.rationale,r=e.onRationale,i=e.onSubmit;return(0,Pe.jsxs)("div",{className:"rounded-xl p-4 border",style:{background:"#fff",borderColor:KL},"data-testid":"recruiter-validation-panel",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)(iy,{size:14,weight:"duotone",style:{color:qL}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qL},children:"Recruiter validation"}),(0,Pe.jsx)(uT,{state:(null===t||void 0===t?void 0:t.state)||"not_yet_validated",testid:"recruiter-validation-current-chip"})]}),(0,Pe.jsx)(Bo,{value:a,onChange:e=>r(e.target.value),placeholder:"Optional notes on why this context is (or isn't) supported by the interview\u2026",rows:2,className:"text-[13px]","data-testid":"recruiter-validation-rationale"}),(0,Pe.jsx)("div",{className:"mt-3 grid grid-cols-2 sm:grid-cols-4 gap-2",children:Object.entries(sT).map(e=>{let a=Ue(e,2),r=a[0],s=a[1];const o=oT[r]||Yf,l=n===r,c=(null===t||void 0===t?void 0:t.state)===r&&"recruiter"===(null===t||void 0===t?void 0:t.source);return(0,Pe.jsxs)(Lo,{size:"sm",variant:c?"default":"outline",onClick:()=>i(r),disabled:l||!!n,className:"h-9 text-[12px] justify-start","data-testid":"recruiter-validation-action-".concat(r),children:[(0,Pe.jsx)(o,{size:14,weight:"duotone",className:"mr-1.5"}),l?"Saving\u2026":s]},r)})})]})}function xT(e){let t=e.submitting,n=(e.rationale,e.onRationale,e.onResolve),a=e.dismissMode,r=e.onDismissMode,i=e.dismissRationale,s=e.onDismissRationale,o=e.onDismiss;return(0,Pe.jsxs)("div",{className:"rounded-xl p-4 border-2",style:{background:nT,borderColor:aT},"data-testid":"hiring-manager-resolution-panel",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)(qC,{size:14,weight:"duotone",style:{color:UL}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:UL},children:"Hiring Manager \xb7 Resolve validation"})]}),a?(0,Pe.jsxs)("div",{className:"space-y-2","data-testid":"hm-dismiss-form",children:[(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:iT},children:"Dismissal hides the AI context from the default view but preserves the audit history. A reason is required."}),(0,Pe.jsx)(Bo,{value:i,onChange:e=>s(e.target.value),placeholder:"Why is this context not applicable to this role?",rows:2,className:"text-[13px]","data-testid":"hm-dismiss-rationale"}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Lo,{size:"sm",onClick:o,disabled:"dismiss"===t||!i.trim(),className:"h-9 text-[12px] text-white",style:{background:iT,borderRadius:8},"data-testid":"hm-dismiss-submit",children:"dismiss"===t?"Dismissing\u2026":"Confirm dismissal"}),(0,Pe.jsx)(Lo,{size:"sm",variant:"ghost",onClick:()=>{r(!1),s("")},disabled:"dismiss"===t,className:"h-9 text-[12px]","data-testid":"hm-dismiss-cancel",children:"Cancel"})]})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"text-[12px] mb-2",style:{color:WL},children:"Resolve conflicting recruiter validations without overwriting them. The recruiter timeline is preserved."}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:Object.entries(sT).map(e=>{let a=Ue(e,2),r=a[0],i=a[1];const s=oT[r]||Yf,o=t==="resolve:".concat(r);return(0,Pe.jsxs)(Lo,{size:"sm",onClick:()=>n(r),disabled:o||!!t,className:"h-9 text-[12px] text-white justify-start",style:{background:UL,borderRadius:8},"data-testid":"hm-resolve-action-".concat(r),children:[(0,Pe.jsx)(s,{size:14,weight:"duotone",className:"mr-1.5"}),o?"Saving\u2026":i]},r)})}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,Pe.jsx)("button",{type:"button",onClick:()=>r(!0),className:"text-[12px] underline",style:{color:iT},"data-testid":"hm-dismiss-mode-btn",children:"Dismiss context entirely"}),(0,Pe.jsx)("div",{className:"text-[11px]",style:{color:YL},children:"Uses the note in the recruiter box above as rationale."})]})]})]})}const gT=function(e){let t=e.applicationId,n=e.jobTitle;const a=es().user,r=(null===a||void 0===a?void 0:a.role)||"",i="employer"===r||"admin"===r,s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)("loading"),2),u=d[0],m=d[1],p=Ue((0,o.useState)("idle"),2),h=p[0],f=p[1],x=Ue((0,o.useState)([]),2),g=x[0],v=x[1],b=Ue((0,o.useState)({state:"not_yet_validated"}),2),y=b[0],j=b[1],w=Ue((0,o.useState)(!1),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!1),2),E=k[0],D=k[1],_=Ue((0,o.useState)(null),2),C=_[0],F=_[1],S=Ue((0,o.useState)(""),2),M=S[0],O=S[1],R=Ue((0,o.useState)(!1),2),H=R[0],P=R[1],L=Ue((0,o.useState)(!1),2),T=L[0],I=L[1],Z=Ue((0,o.useState)(""),2),B=Z[0],V=Z[1],z=(0,o.useCallback)(async()=>
2{if(t){m("loading");try{const e=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t)))).data;c(e),m("ready")}catch(zf){var e,n,a;const r=null===zf||void 0===zf||null===(e=zf.response)||void 0===e?void 0:e.status,i=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;m(409===r||"human_context_disabled"===i||403===r||401===r?"disabled":404===r?"empty":"error")}}},[t]),q=(0,o.useCallback)(async e=>{if(!e)return f("ready"),v([]),void j({state:"not_yet_validated"});try{const t=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(e),"/validations"))).data;v(t.events||[]),j(t.final_state||{state:"not_yet_validated"}),A(!!t.resolution_enabled),f("ready")}catch(zf){var t;null===zf||void 0===zf||null===(t=zf.response)||void 0===t||t.status;f("disabled")}},[]);(0,o.useEffect)(()=>{z()},[z]),(0,o.useEffect)(()=>{const e=null===l||void 0===l?void 0:l.context_id;"ready"===u&&e&&q(e)},[u,null===l||void 0===l?void 0:l.context_id,q]);const U=(0,o.useCallback)(async()=>{if(t&&!E){D(!0);try{(await Qi.post("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t),"/analyze"),n?{job_title:n}:{})).data;await z(),va.success("Human Context generated.")}catch(zf){var e,a;"human_context_disabled"===(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.detail)?(va.info("Human Context is not enabled for this workspace."),m("disabled")):va.error("Couldn't generate Human Context. Try again in a moment.")}finally{D(!1)}}},[t,n,E,z]),W=(0,o.useCallback)(async e=>{const t=null===l||void 0===l?void 0:l.context_id;if(t){F(e);try{await Qi.post("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t),"/validate"),{action:e,rationale:M.trim()||null}),O(""),await q(t),va.success("Recorded: ".concat(sT[e]||e))}catch(zf){var n,a;"human_context_validation_disabled"===(null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)?(va.info("Recruiter validation is not enabled for this workspace."),f("disabled")):va.error("Couldn't record validation. Try again in a moment.")}finally{F(null)}}},[null===l||void 0===l?void 0:l.context_id,M,q]),Y=(0,o.useCallback)(async e=>{const t=null===l||void 0===l?void 0:l.context_id;if(t){F("resolve:".concat(e));try{await Qi.post("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t),"/resolve"),{action:e,rationale:M.trim()||null}),O(""),await q(t),va.success("Hiring Manager resolution recorded: ".concat(sT[e]||e))}catch(zf){var n,a;const t=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;"human_context_resolution_disabled"===t?(va.info("Hiring Manager resolution is not enabled yet."),A(!1)):"forbidden_resolution_role"===t?va.info("Only Hiring Managers or Admins can resolve."):va.error("Couldn't record resolution. Try again in a moment.")}finally{F(null)}}},[null===l||void 0===l?void 0:l.context_id,M,q]),K=(0,o.useCallback)(async()=>{const e=null===l||void 0===l?void 0:l.context_id;if(e)if(B.trim()){F("dismiss");try{await Qi.post("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(e),"/dismiss"),{rationale:B.trim()}),V(""),I(!1),await q(e),va.success("Context dismissed. History preserved.")}catch(zf){var t,n;"dismissal_rationale_required"===(null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)?va.info("A reason is required to dismiss."):va.error("Couldn't dismiss context. Try again in a moment.")}finally{F(null)}}else va.info("Please provide a reason for dismissing this context.")},[null===l||void 0===l?void 0:l.context_id,B,q]);if("disabled"===u)return null;if("empty"===u)return(0,Pe.jsxs)("div",{className:"mt-6 rounded-2xl p-6 flex items-start gap-3",style:{background:GL,border:"1px dashed ".concat(KL)},"data-testid":"human-context-empty",children:[(0,Pe.jsx)(qC,{size:22,weight:"duotone",style:{color:qL},className:"mt-0.5"}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-1",style:{color:qL},children:"Human Context"}),(0,Pe.jsx)("div",{className:"text-[13px]",style:{color:WL},children:"AROS hasn't generated a Human Context summary for this candidate yet. Generate one to review the evidence-based context \u2014 career gaps, transitions, military service \u2014 alongside recruiter validation."}),(0,Pe.jsxs)(Lo,{onClick:U,disabled:E,className:"mt-3 h-9 text-white font-brand",style:{background:qL,borderRadius:8},"data-testid":"human-context-analyze-btn",children:[(0,Pe.jsx)(ux,{size:14,weight:"fill",className:"mr-1.5"}),E?"Generating\u2026":"Generate Human Context"]})]})]});if("loading"===u)return(0,Pe.jsxs)("div",{className:"mt-6 rounded-lg p-3 text-[12px]",style:{background:GL,border:"1px solid ".concat(KL),color:YL},"data-testid":"human-context-loading",children:[(0,Pe.jsx)(qC,{size:14,weight:"duotone",className:"inline-block mr-2",style:{color:qL}}),"Loading Human Context\u2026"]});if("error"===u||!l)return(0,Pe.jsxs)("div",{className:"mt-6 rounded-lg p-3 flex items-center justify-between text-[12px]",style:{background:GL,border:"1px solid ".concat(KL),color:YL},"data-testid":"human-context-error",children:[(0,Pe.jsx)("span",{children:"Couldn't load Human Context."}),(0,Pe.jsx)(Lo,{size:"sm",variant:"ghost",onClick:z,children:"Try again"})]});const G=l.metadata||{},$=l.text||G.summary||"",Q=G.context_type||"other",X=G.confidence||"self_reported",J=G.evidence_observed||[],ee=G.follow_up_question||"",te="dismissed"===(null===y||void 0===y?void 0:y.state),ne=!0===(null===y||void 0===y?void 0:y.conflict);return(0,Pe.jsxs)("div",{className:"mt-6 space-y-3","data-testid":"human-context-panel",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qL},children:["Human Context \xb7 ",dT[Q]||Q]}),(0,Pe.jsx)(mT,{confidence:X,testid:"human-context-ai-confidence"}),(0,Pe.jsx)(uT,{state:(null===y||void 0===y?void 0:y.state)||"not_yet_validated",testid:"human-context-final-state"})]}),ne&&!te&&(0,Pe.jsxs)("div",{className:"rounded-lg p-3 flex items-start gap-2 border",style:{background:eT,borderColor:tT,color:JL},"data-testid":"human-context-conflict-banner",children:[(0,Pe.jsx)(AN,{size:16,weight:"fill",className:"mt-0.5"}),(0,Pe.jsxs)("div",{className:"flex-1 text-[13px]",children:[(0,Pe.jsx)("div",{className:"font-semibold",children:"Multiple recruiter assessments recorded."}),(0,Pe.jsxs)("div",{className:"text-[12px] mt-0.5",children:[((null===y||void 0===y?void 0:y.distinct_actions)||[]).map(e=>sT[e]||e).join(" \xb7 "),i&&N?" \u2014 resolve below.":""]})]})]}),te?(0,Pe.jsxs)("div",{className:"rounded-xl p-4 border",style:{background:GL,borderColor:KL},"data-testid":"human-context-dismissed",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[12px]",style:{color:YL},children:[(0,Pe.jsx)(CL,{size:14,weight:"duotone"}),(0,Pe.jsxs)("span",{children:["Context hidden by ",(null===y||void 0===y?void 0:y.by_user_name)||"hiring team"," \xb7 ",pT(null===y||void 0===y?void 0:y.at)]})]}),(0,Pe.jsx)("button",{type:"button",onClick:()=>P(e=>!e),className:"text-[12px] underline",style:{color:UL},"data-testid":"human-context-toggle-hidden",children:H?"Hide history":"Show hidden context history"})]}),(null===y||void 0===y?void 0:y.rationale)&&(0,Pe.jsxs)("div",{className:"mt-2 text-[12px] italic",style:{color:WL},children:["Reason: ",y.rationale]}),H&&(0,Pe.jsx)(hT,{summary:$,evidenceObserved:J,followUp:ee,muted:!0}
2)]}):(0,Pe.jsx)("div",{className:"rounded-xl p-4 border",style:{background:"#fff",borderColor:KL},children:(0,Pe.jsx)(hT,{summary:$,evidenceObserved:J,followUp:ee})}),"ready"===h&&!te&&(0,Pe.jsx)(fT,{finalState:y,submitting:C,rationale:M,onRationale:O,onSubmit:W}),i&&N&&!te&&g.length>0&&(0,Pe.jsx)(xT,{submitting:C,rationale:M,onRationale:O,onResolve:Y,dismissMode:T,onDismissMode:I,dismissRationale:B,onDismissRationale:V,onDismiss:K}),g.length>0&&(0,Pe.jsx)(zL,{events:g})]})},vT="#041C3A",bT="#6B7280",yT="#374151",jT="#E5E7EB",wT="#F8FAFC",NT="#16A34A",AT="#B45309",kT="#B91C1C";function ET(e){let t=e.icon,n=e.color,a=e.label,r=e.testid;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-medium px-2 py-0.5 rounded-full border",style:{color:n,borderColor:n,background:"white"},"data-testid":r,children:[(0,Pe.jsx)(t,{size:12,weight:"fill"}),a]})}function DT(e){let t=e.title,n=e.items,a=e.icon,r=e.color,i=e.emptyLabel,s=e.testid,o=e.faint;return(0,Pe.jsxs)("div",{className:o?"p-5":"p-5 border-r",style:o?{}:{borderColor:jT},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold mb-3",style:{color:vT},children:t}),0===n.length?(0,Pe.jsx)("div",{className:"text-[13px]",style:{color:bT},children:i}):(0,Pe.jsx)("ul",{className:"space-y-1.5","data-testid":s,children:n.map(e=>(0,Pe.jsxs)("li",{className:"flex items-center gap-2 text-[13px]",style:{color:o?bT:yT},"data-testid":"".concat(s,"-").concat(e.key),children:[(0,Pe.jsx)(a,{size:14,weight:o?"regular":"fill",style:{color:r},className:"shrink-0"}),(0,Pe.jsx)("span",{children:e.label}),e.count>1&&(0,Pe.jsxs)("span",{className:"text-[10px] font-mono",style:{color:bT},children:["\xb7 ",e.count]})]},e.key))})]})}const _T=function(e){var t,n;let a=e.applicationId;const r=Ue((0,o.useState)("loading"),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1];if((0,o.useEffect)(()=>{if(!a)return;let e=!1;return(async()=>{try{const t=(await Qi.get("/candidate-intelligence/v2/trust-score/".concat(encodeURIComponent(a)))).data;if(e)return;d(t),s("ready")}catch(zf){var t,n,r;if(e)return;const i=null===zf||void 0===zf||null===(t=zf.response)||void 0===t?void 0:t.status,o=null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail;s(409===i||"evidence_trust_score_disabled"===o||403===i||404===i?"disabled":"error")}})(),()=>{e=!0}},[a]),"ready"!==i||!c)return null;const u=(m=c.overall_percent)>=80?{label:"High",color:NT,band:"\u226580%"}:m>=50?{label:"Moderate",color:AT,band:"50\u201379%"}:{label:"Building",color:kT,band:"<50%"};var m;const p=c.signals||{},h=((null===(t=c.sources_present)||void 0===t?void 0:t.length)||0)+((null===(n=c.sources_missing)||void 0===n?void 0:n.length)||0);return(0,Pe.jsxs)("div",{className:"mt-6 rounded-2xl border bg-white overflow-hidden",style:{borderColor:jT},"data-testid":"evidence-trust-score",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between p-5 border-b",style:{borderColor:jT,background:wT},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(iy,{size:18,weight:"duotone",style:{color:vT}}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:vT},children:"Evidence Coverage"}),(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:bT},children:"How many of AROS's 9 evidence sources are on file for this candidate."})]})]}),(0,Pe.jsxs)("div",{className:"text-right","data-testid":"evidence-trust-score-value",children:[(0,Pe.jsxs)("div",{className:"text-3xl font-brand font-bold",style:{color:u.color},children:[c.overall_percent,"%"]}),(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.18em] font-mono",style:{color:u.color},children:[u.label," coverage"]})]})]}),(p.recruiter_conflict||p.hm_resolved||p.dismissed||p.bias_flagged)&&(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-2 px-5 pt-4",children:[p.recruiter_conflict&&(0,Pe.jsx)(ET,{icon:AN,color:AT,label:"Recruiter conflict",testid:"signal-recruiter-conflict"}),p.hm_resolved&&(0,Pe.jsx)(ET,{icon:iy,color:NT,label:"Hiring manager resolved",testid:"signal-hm-resolved"}),p.dismissed&&(0,Pe.jsx)(ET,{icon:Vj,color:bT,label:"Context dism
2issed",testid:"signal-dismissed"}),p.bias_flagged&&(0,Pe.jsx)(ET,{icon:AN,color:kT,label:"Bias review flagged",testid:"signal-bias-flagged"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-0","data-testid":"evidence-trust-score-sources",children:[(0,Pe.jsx)(DT,{title:"Evidence sources",items:c.sources_present||[],icon:Yf,color:NT,emptyLabel:"No sources on file yet.",testid:"evidence-trust-score-present"}),(0,Pe.jsx)(DT,{title:"Missing",items:c.sources_missing||[],icon:Vj,color:bT,emptyLabel:"Full coverage.",testid:"evidence-trust-score-missing",faint:!0})]}),(0,Pe.jsxs)("div",{className:"px-5 py-3 border-t text-[12px]",style:{borderColor:jT,background:wT,color:yT},children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",style:{color:"#0F4FA8"},className:"inline-block mr-1.5 mb-0.5"}),"AROS surfaces ",h," evidence source",1===h?"":"s"," for every candidate. Coverage is not an AI confidence score \u2014 it's how many of them are on file."]})]})},CT="#041C3A",FT="#0F4FA8",ST="#E5E7EB",MT="#F8FAFC",OT="#16A34A",RT={caregiving_gap:"Caregiving gap",career_transition:"Career transition",military_service:"Military service",layoff:"Layoff",entrepreneurship:"Entrepreneurship",education_gap:"Education gap",relocation:"Relocation",returnship:"Returning to workforce",insufficient_evidence:"Insufficient evidence",other:"Human context"},HT={substantially_corroborated:3,supported_by_submitted_evidence:2,self_reported:1,additional_discussion_recommended:1};function PT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:180;if(!e)return"";const n=String(e).trim();return n.length<=t?n:n.slice(0,t-1).trimEnd()+"\u2026"}const LT=function(e){let t=e.applicationId;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)([]),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1];(0,o.useEffect)(()=>{if(!t)return;let e=!1;return(async()=>{try{const a=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t)))).data;if(e||r(a),null!==a&&void 0!==a&&a.context_id&&!e)try{const t=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(a.context_id),"/validations"))).data;e||l(t.events||[])}catch(n){}}catch(a){}})(),(async()=>{try{const n=(await Qi.post("/candidate-intelligence/v2/synthesize",{application_id:t})).data;e||u(n)}catch(n){}})(),()=>{e=!0}},[t]);const m=(0,o.useMemo)(()=>{const e=[];if(null!==a&&void 0!==a&&a.text){const t=a.metadata||{},n=t.confidence||"self_reported",r=HT[n]||0,i=s.some(e=>("recruiter_validation"===e.event_type||"validation_resolution"===e.event_type)&&"confirmed_in_interview"===e.action),o=s.some(e=>"dismissal"===e.event_type);!o&&(i||r>=3)&&e.push({key:"hc",icon:qC,label:RT[t.context_type]||"Human context",text:PT(a.text,220),tag:i?"Recruiter confirmed":"Substantially corroborated",tagColor:i?OT:FT})}const t=(Array.isArray(null===d||void 0===d?void 0:d.insights)?d.insights:[]).filter(e=>"low"!==(e.confidence||"").toLowerCase()).filter(e=>(e.claim||"").trim().length>0).slice(0,3-e.length);for(const n of t)e.push({key:"ci-".concat(n.id||n.label),icon:Yf,label:n.label||"Insight",text:PT(n.claim,220),tag:"high"===(n.confidence||"medium").toLowerCase()?"Well-supported evidence":"Evidence-cited",tagColor:"high"===(n.confidence||"").toLowerCase()?OT:FT});return e.slice(0,3)},[a,s,d]);return m.length?(0,Pe.jsxs)("div",{className:"mt-6 rounded-2xl border bg-white overflow-hidden",style:{borderColor:ST},"data-testid":"recommended-because",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 px-5 py-4 border-b",style:{borderColor:ST,background:MT},children:[(0,Pe.jsx)(TH,{size:16,weight:"duotone",style:{color:CT}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:CT},children:"Evidence highlights"})]}),(0,Pe.jsx)("ul",{className:"divide-y",style:{borderColor:ST},"data-testid":"recommended-because-list",children:m.map((e,t)=>{const n=e.icon;return(0,Pe.jsxs)("li",{className:"p-5 flex items-start gap-3",style:{borderColor:ST},"data-testid":"recommended-because-reason-".concat(t+1),children:[(0,Pe.jsx)("div",{className:"mt-0.5 flex items-center justify-center rounded-lg w-9 h-9 shrink-0",style:{background:"#EFF6FF",color:FT},children:(0,Pe.jsx)(n,{size:18,weight:"duotone"})}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"text-[13px] font-semibold",style:{color:CT},children:e.label}),(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] font-mono px-2 py-0.5 rounded-full border",style:{color:e.tagColor,borderColor:e.tagColor,background:"white"},children:e.tag})]}),(0,Pe.jsx)("p",{className:"mt-1 text-[13px] leading-relaxed",style:{color:"#374151"},children:e.text})]})]},e.key)})}),(0,Pe.jsxs)("div",{className:"px-5 py-3 border-t text-[12px]",style:{borderColor:ST,background:MT,color:"#6B7280"},children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",style:{color:FT},className:"inline-block mr-1.5 mb-0.5"}),"Reasons are drawn only from evidence AROS can cite \u2014 nothing here is inferred without a source. AI proposes; recruiters validate; hiring managers decide."]})]}):null},TT="#041C3A",IT="#0F4FA8",ZT="#047857",BT="#B91C1C",VT="#E5E7EB",zT="#374151",qT="#6B7280",UT={adjacent:{label:"Adjacent experience",bg:"#ECFDF5",color:ZT,bd:"#A7F3D0",note:"Core capabilities + environment overlap."},transferable:{label:"Experience that may carry over",bg:"#EFF6FF",color:"#1E40AF",bd:"#BFDBFE",note:"Indirect, but evidence supports likely success."},speculative:{label:"Speculative",bg:"#FEF2F2",color:BT,bd:"#FECACA",note:"Evidence for this role is thin \u2014 treat as exploratory."}};function WT(e){let t=e.score;if(!t)return null;if(!(null!=t.direct_match_score||null!=t.transferability_score||null!=t.evidence_score||null!=t.risk_score||t.why_recommended&&t.why_recommended.length>0))return null;const n=(t.transferability_classification||"").toLowerCase(),a=UT[n],r=(t.direct_match_score,t.transferability_score,t.evidence_score,t.risk_score,t.why_recommended||[]),i=t.transferable_strengths||[],s=t.risks||[];return(0,Pe.jsxs)("section",{className:"rounded-2xl border bg-white p-5 sm:p-6 mb-5",style:{borderColor:VT},"data-testid":"hiring-intel-card",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between flex-wrap gap-3",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qT},children:"What their information shows"}),a&&(0,Pe.jsx)("div",{className:"flex items-center gap-2 flex-wrap mt-2",children:(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[11px] font-mono uppercase tracking-[0.15em] font-semibold",style:{background:a.bg,color:a.color,border:"1px solid ".concat(a.bd)},title:a.note,"data-testid":"hiring-intel-classification",children:a.label})}),a&&(0,Pe.jsx)("div",{className:"text-xs mt-1.5 max-w-md",style:{color:zT},children:a.note})]})}),(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-3 gap-5",children:[(0,Pe.jsx)(YT,{icon:Yf,iconColor:ZT,title:"What we found",empty:"No concrete reasons provided \u2014 AROS downgraded confidence accordingly.",items:r,testid:"hiring-intel-why"}),(0,Pe.jsx)(YT,{icon:eg,iconColor:IT,title:"What might transfer from other work",empty:"None translated \u2014 direct experience appears sufficient on its own.",items:i,testid:"hiring-intel-transferable",arrowStyle:!0}),(0,Pe.jsx)(YT,{icon:AN,iconColor:BT,title:"What we did not find in the information they submitted",empty:"No material risks flagged.",items:s,testid:"hiring-intel-risks"})]}),t.context_questions&&t.context_questions.length>0&&(0,Pe.jsxs)("div",{className:"mt-5 rounded-lg p-4",style:{background:"#F8FAFC",border:"1px solid ".concat(VT)},"data-testid":"hiring-intel-context-qs",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(qf,{size:14,weight:"duotone",style:{color:TT}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:qT},children:"Ask before deciding"})]}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm list-disc pl-5",style:{color:TT},children:t.context_questions.map((e,t)=>(0,Pe.jsx)("li",{children:e},t))})]}),t.bias_review_note&&(0,Pe.jsxs)("div",{className:"mt-3 flex items-start gap-2 text-[11px]",style:{color:qT},children:[(0,Pe.jsx)(iy,{size:12,weight:"duotone"})," ",t.bias_review_note]})]})}function YT(e){let t=e.icon,n=e.iconColor,a=e.title,r=e.empty,i=e.items,s=e.testid,o=e.arrowStyle,l=void 0!==o&&o;const c=i&&i.length?i:[];return(0,Pe.jsxs)("div",{"data-testid":s,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Pe.jsx)(t,{size:16,weight:"duotone",style:{color:n}}),(0,Pe.jsx)("div",{className:"font-semibold text-sm",style:{color:TT},children:a})]}),0===c.length?(0,Pe.jsx)("div",{className:"text-xs italic",style:{color:qT},children:r}):(0,Pe.jsx)("ul",{className:"space-y-1.5 text-sm",children:c.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-start gap-2",style:{color:zT},children:[l?(0,Pe.jsx)(eg,{size:12,weight:"bold",style:{color:n,marginTop:5}}):(0,Pe.jsx)("span",{style:{color:n,marginTop:1},children:"\u2022"}),(0,Pe.jsx)("span",{children:e})]},t))})]})}const KT=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,156H204V111.49a76.39,76.39,0,0,0,23.49,15,12,12,0,0,0,9-22.25A51.81,51.81,0,0,1,204,56a12,12,0,0,0-24,0A52,52,0,0,1,76,56a12,12,0,0,0-24,0,51.81,51.81,0,0,1-32.5,48.22,12,12,0,1,0,9,22.25,76.39,76.39,0,0,0,23.49-15V156H24a12,12,0,0,0,0,24H52v20a12,12,0,0,0,24,0V180H180v20a12,12,0,0,0,24,0V180h28a12,12,0,0,0,0-24Zm-92-24.95V156H116V131.05a76.26,76.26,0,0,0,24,0Z
2M76,111.38a76.44,76.44,0,0,0,16,11.53V156H76ZM164,156V122.91a76.44,76.44,0,0,0,16-11.53V156Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,168H24V115.35A64,64,0,0,0,64,56a64,64,0,0,0,128,0,64,64,0,0,0,40,59.35Z",opacity:"0.2"}),o.createElement("path",{d:"M232,160H200V101.34a71.89,71.89,0,0,0,29,21.42,8,8,0,0,0,6-14.83A55.78,55.78,0,0,1,200,56a8,8,0,0,0-16,0A56,56,0,0,1,72,56a8,8,0,0,0-16,0,55.78,55.78,0,0,1-35,51.93,8,8,0,0,0,6,14.83,71.89,71.89,0,0,0,29-21.42V160H24a8,8,0,0,0,0,16H56v24a8,8,0,0,0,16,0V176H184v24a8,8,0,0,0,16,0V176h32a8,8,0,0,0,0-16Zm-88-33.8V160H112V126.2a72,72,0,0,0,32,0Zm-72-25a72.47,72.47,0,0,0,24,19.27V160H72ZM160,160V120.48a72.47,72.47,0,0,0,24-19.27V160Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,160h-8V120.5c1.63.81,3.29,1.57,5,2.26a8,8,0,0,0,6-14.83A55.78,55.78,0,0,1,200,56a8,8,0,0,0-16,0A56,56,0,0,1,72,56a8,8,0,0,0-16,0,55.78,55.78,0,0,1-35,51.93,8,8,0,0,0,6,14.83c1.71-.69,3.37-1.45,5-2.26V160H24.6c-6.31,0-8.6,4.78-8.6,8a8,8,0,0,0,8,8H56v24a8,8,0,0,0,16,0V176H184v24a8,8,0,0,0,16,0V176h32a8,8,0,0,0,0-16ZM72,152a8,8,0,0,1-16,0V104.12a8,8,0,0,1,16,0Zm40,0a8,8,0,0,1-16,0V132.32a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V132.32a8,8,0,0,1,16,0Zm40,0a8,8,0,0,1-16,0V104.12a8,8,0,0,1,16,0Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,162H198V95.28a69.81,69.81,0,0,0,31.75,25.63,6,6,0,1,0,4.5-11.12A57.8,57.8,0,0,1,198,56a6,6,0,0,0-12,0A58,58,0,0,1,70,56a6,6,0,0,0-12,0,57.8,57.8,0,0,1-36.25,53.79,6,6,0,1,0,4.5,11.12A69.81,69.81,0,0,0,58,95.28V162H24a6,6,0,0,0,0,12H58v26a6,6,0,0,0,12,0V174H186v26a6,6,0,0,0,12,0V174h34a6,6,0,0,0,0-12Zm-86-38.35V162H110V123.65a70.11,70.11,0,0,0,36,0ZM70,95.15a70.49,70.49,0,0,0,28,24.09V162H70ZM158,162V119.24a70.49,70.49,0,0,0,28-24.09V162Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,160H200V101.34a71.89,71.89,0,0,0,29,21.42,8,8,0,0,0,6-14.83A55.78,55.78,0,0,1,200,56a8,8,0,0,0-16,0A56,56,0,0,1,72,56a8,8,0,0,0-16,0,55.78,55.78,0,0,1-35,51.93,8,8,0,0,0,6,14.83,71.89,71.89,0,0,0,29-21.42V160H24a8,8,0,0,0,0,16H56v24a8,8,0,0,0,16,0V176H184v24a8,8,0,0,0,16,0V176h32a8,8,0,0,0,0-16Zm-88-33.8V160H112V126.2a72,72,0,0,0,32,0Zm-72-25a72.47,72.47,0,0,0,24,19.27V160H72ZM160,160V120.48a72.47,72.47,0,0,0,24-19.27V160Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,164H196V88.09a67.81,67.81,0,0,0,34.5,31,4,4,0,1,0,3-7.42A59.77,59.77,0,0,1,196,56a4,4,0,0,0-8,0A60,60,0,0,1,68,56a4,4,0,0,0-8,0,59.77,59.77,0,0,1-37.5,55.64,4,4,0,0,0,3,7.42,67.81,67.81,0,0,0,34.5-31V164H24a4,4,0,0,0,0,8H60v28a4,4,0,0,0,8,0V172H188v28a4,4,0,0,0,8,0V172h36a4,4,0,0,0,0-8Zm-84-43v43H108V121a68,68,0,0,0,40,0ZM68,88a68.43,68.43,0,0,0,32,30v46H68Zm88,76V118a68.43,68.43,0,0,0,32-30v76Z"}))]]),GT=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:KT})));GT.displayName="BridgeIcon";const $T=GT,QT=new Set(["reviewed","interview_requested","interview_completed"]);function XT(e){let t=e.applicationId,n=e.status;const a=Ue((0,o.useState)(null),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=QT.has(n);if((0,o.useEffect)(()=>{let e=!1;if(t&&p)return(async()=>{c(!0);try{const n=(await Qi.get("/applications/".concat(t,"/interview-intelligence"))).data;e||i(n)}catch(zf){var n,a;if(!e)va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Could not load interview prep.")}finally{e||c(!1)}})(),()=>{e=!0}},[t,p,n]),!p)return null;const h=async()=>{m(!0);try{const e=(await Qi.post("/applications/".concat(t,"/interview-intelligence/generate"),{})).data;i(e),va.success("Interview prep ready.")}catch(zf){var e,n;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Could not generate interview prep.")}finally{m(!1)}},f=null===r||void 0===r?void 0:r.generated;return(0,Pe.jsxs)("section",{className:"mt-5 rounded-xl border border-border bg-white p-5","data-testid":"interview-intel-card",children:[(0,Pe.jsxs)("header",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"AROS \u2014 INTERVIEW PREP"}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-xl mt-1 tracking-tight",children:"Walk into this conversation ready"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Evidence pulled from the resume + JD. No numeric scores \u2014 just what to ask, what to validate, and what could quietly go wrong."})]}),(0,Pe.jsx)("div",{className:"flex items-center gap-2",children:f&&(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:h,disabled:u,"data-testid":"interview-intel-regenerate",className:"rounded-md",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5"}),u?"Refreshing\u2026":"Regenerate"]})})]}),l&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground mt-4","data-testid":"interview-intel-loading",children:"Loading prep\u2026"}),!l&&!f&&(0,Pe.jsxs)("div",{className:"mt-5 rounded-lg border border-dashed border-border p-6 text-center","data-testid":"interview-intel-empty",children:[(0,Pe.jsx)(ux,{size:26,weight:"duotone",className:"mx-auto mb-2 text-[#0F4FA8]"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-base",children:"No interview prep generated yet."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-md mx-auto",children:"One click and AROS pulls evidence from the resume + JD into a grounded prep brief: why-recommended, what-to-validate, candidate-specific questions, behavioral asks, and risks."}),(0,Pe.jsxs)(Lo,{onClick:h,disabled:u,"data-testid":"interview-intel-generate",className:"mt-4 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,weight:"fill",className:"mr-1.5"}),u?"Generating\u2026":"Generate interview prep"]})]}),!l&&f&&(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-1 lg:grid-cols-2 gap-5","data-testid":"interview-intel-body",children:[r.recommended_focus&&(0,Pe.jsxs)("div",{className:"lg:col-span-2 rounded-lg p-4",style:{background:"#0F172A",color:"white"},"data-testid":"interview-intel-focus",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-white/60 inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(dM,{size:12,weight:"fill"})," Recommended focus"]}
2),(0,Pe.jsx)("div",{className:"font-medium mt-1 leading-snug",children:r.recommended_focus})]}),(0,Pe.jsx)(JT,{testid:"interview-intel-why",Icon:Yf,tone:"#059669",title:"Why recommended",items:r.why_recommended}),(0,Pe.jsx)(JT,{testid:"interview-intel-validate",Icon:Eg,tone:"#1E40AF",title:"Areas to validate",items:r.areas_to_validate}),(0,Pe.jsx)(JT,{testid:"interview-intel-candidate-q",Icon:qf,tone:"#0F172A",title:"Candidate-specific questions",items:r.candidate_specific_questions,ordered:!0}),(0,Pe.jsx)(JT,{testid:"interview-intel-behavioral-q",Icon:xH,tone:"#7C3AED",title:"Behavioral questions",items:r.behavioral_questions,ordered:!0}),(0,Pe.jsx)(JT,{testid:"interview-intel-risks",Icon:AN,tone:"#D97706",title:"Decision risks",items:r.decision_risks}),Array.isArray(r.bridge_questions)&&r.bridge_questions.length>0&&(0,Pe.jsx)(JT,{testid:"interview-intel-bridge-q",Icon:$T,tone:"#7C3AED",title:"Bridge questions (Second Look)",items:r.bridge_questions,ordered:!0,accent:!0}),r._fallback&&(0,Pe.jsx)("div",{className:"lg:col-span-2 text-[11px] text-muted-foreground italic","data-testid":"interview-intel-fallback-notice",children:"AI synthesis is offline \u2014 this is a starter brief. Regenerate to pull evidence directly from the resume + JD when service is restored."}),r.generated_at&&(0,Pe.jsxs)("div",{className:"lg:col-span-2 text-[11px] font-mono text-muted-foreground/80",children:["Generated ",new Date(r.generated_at).toLocaleString()]})]})]})}function JT(e){let t=e.testid,n=e.Icon,a=e.tone,r=e.title,i=e.items,s=e.ordered,o=e.accent;const l=(i||[]).filter(Boolean);if(0===l.length)return null;const c=s?"ol":"ul",d=s?"list-decimal pl-5":"list-disc pl-5";return(0,Pe.jsxs)("div",{className:"rounded-lg border border-border p-4","data-testid":t,style:o?{background:"#F5F3FF",borderColor:"#DDD6FE"}:void 0,children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:a},children:[(0,Pe.jsx)(n,{size:12,weight:"fill"}),r]}),(0,Pe.jsx)(c,{className:"".concat(d," mt-2 space-y-1.5 text-sm"),children:l.map((e,t)=>(0,Pe.jsx)("li",{className:"leading-snug",children:e},t))})]})}const eI=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44Zm-96,83.72L62.85,68h130.3ZM92.79,128,44,172.72V83.28Zm17.76,16.28,9.34,8.57a12,12,0,0,0,16.22,0l9.34-8.57L193.15,188H62.85ZM163.21,128,212,83.28v89.44Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50Zm-96,85.86L47.42,62H208.58ZM101.67,128,38,186.36V69.64Zm8.88,8.14L124,148.42a6,6,0,0,0,8.1,0l13.4-12.28L208.58,194H47.43ZM154.33,128,218,69.64V186.36Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-96,86.57L42.28,60H213.72ZM104.63,128,36,190.91V65.09Zm5.92,5.43L125.3,147a4,4,0,0,0,5.4,0l14.75-13.52L213.72,196H42.28ZM151.37,128,220,65.09V190.91Z"}))]]),tI=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:eI})));tI.displayName="EnvelopeIcon";const nI=tI,aI="#041C3A",rI="#6B7280",iI="#374151",sI="#E5E7EB";function oI(e){let t=e.appId,n=e.initialText,a=e.initialInclude,r=e.initialSource,i=e.onChange;const s=Ue((0,o.useState)(n||""),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!!a),2),u=d[0],m=d[1],p=Ue((0,o.useState)(r||"manual"),2),h=p[0],f=p[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=Ue((0,o.useState)([]),2),y=b[0],j=b[1],w=Ue((0,o.useState)(""),2),N=w[0],A=w[1];(0,o.useEffect)(()=>{null===i||void 0===i||i({text:l,include:u,source:h,warnings:y})},[l,u,h,y,i]),(0,o.useEffect)(()=>{if(!t||!l.trim())return void j([]);const e=setTimeout(async()=>{try{const e=(await Qi.post("/applications/".concat(t,"/feedback/screen"),{feedback_text:l})).data;j((null===e||void 0===e?void 0:e.warnings)||[])}catch(e){j([])}},350);return()=>clearTimeout(e)},[l,t]);const k=l.length,E=y.length>0;return(0,Pe.jsxs)("div",{className:"mt-2 rounded-lg border p-4",style:{borderColor:sI,background:"#FAFBFC"},"data-testid":"rejection-feedback-section",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"font-display font-semibold text-sm flex items-center gap-1.5",style:{color:aI},children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone"})," Add useful feedback (optional)"]}),(0,Pe.jsx)("p",{className:"text-xs mt-1 leading-relaxed",style:{color:iI},children:"For candidates who invested meaningful time in the process, a sentence or tw
2o of specific feedback can make the experience feel more respectful."})]}),(0,Pe.jsxs)(Lo,{type:"button",variant:"outline",size:"sm",onClick:async()=>{if(t){v(!0),A("");try{const e=(await Qi.post("/applications/".concat(t,"/feedback/suggest"))).data;if(null!==e&&void 0!==e&&e.insufficient_evidence)return void A(e.message||"I do not have enough specific hiring notes to suggest useful feedback yet. Add one sentence in your own words.");null!==e&&void 0!==e&&e.suggested_text&&(c(e.suggested_text),f("ai_suggested"),j(e.warnings||[]),A(e.message||""))}catch(e){va.error("Could not draft a suggestion right now.")}finally{v(!1)}}},disabled:g,"data-testid":"rejection-feedback-suggest",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill",className:"mr-1.5"}),g?"Drafting\u2026":"Suggest feedback"]})]}),(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)(Go,{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:rI},children:"What would be useful for this candidate to know?"}),(0,Pe.jsx)(Bo,{rows:3,value:l,onChange:e=>{return t=e.target.value,c(t),void("ai_suggested"===h&&t!==l&&f("edited_ai"));var t},maxLength:600,placeholder:"Example: Your customer-facing experience stood out. We moved forward with someone who had more direct team leadership experience for this role.",className:"mt-1 text-sm","data-testid":"rejection-feedback-text"}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,Pe.jsxs)("span",{className:"text-[10px] font-mono",style:{color:rI},children:["ai_suggested"===h&&"DRAFT \xb7 AI-suggested \xb7 please review","edited_ai"===h&&"DRAFT \xb7 AI-suggested then edited"]}),(0,Pe.jsxs)("span",{className:"text-[10px] font-mono",style:{color:rI},children:[k,"/600"]})]})]}),N&&(0,Pe.jsxs)("div",{className:"mt-2 px-3 py-2 rounded-md border text-xs flex items-start gap-2",style:{borderColor:"#BFDBFE",background:"#EFF6FF",color:"#1E3A8A"},"data-testid":"rejection-feedback-hint",children:[(0,Pe.jsx)(bA,{size:12,className:"mt-0.5 shrink-0"}),(0,Pe.jsx)("span",{children:N})]}),E&&(0,Pe.jsxs)("div",{className:"mt-2 px-3 py-2 rounded-md border text-xs flex items-start gap-2",style:{borderColor:"#FCA5A5",background:"#FEF2F2",color:"#991B1B"},"data-testid":"rejection-feedback-warning",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill",className:"mt-0.5 shrink-0"}),(0,Pe.jsx)("span",{children:"This feedback may create risk or feel unclear to the candidate. Please rewrite it using role-related, observable information."})]}),(0,Pe.jsxs)("label",{className:"mt-3 flex items-start gap-2 text-sm cursor-pointer select-none","data-testid":"rejection-feedback-include-row",children:[(0,Pe.jsx)(pA,{checked:u,onCheckedChange:e=>m(!!e),disabled:!l.trim()||E,"data-testid":"rejection-feedback-include"}),(0,Pe.jsx)("span",{style:{color:iI},children:"Include this feedback in the candidate email"})]})]})}function lI(e){var t,n,a;let r=e.open,i=e.onOpenChange,s=e.appId,l=e.reason,c=e.setReason,d=e.onConfirmReject;const u=Ue((0,o.useState)(null),2),m=u[0],p=u[1],h=Ue((0,o.useState)(!1),2),f=h[0],x=h[1],g=Ue((0,o.useState)(""),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(!1),2),A=N[0],k=N[1],E=Ue((0,o.useState)({text:"",include:!1,source:"manual",warnings:[]}),2),D=E[0],_=E[1],C=Ue((0,o.useState)(""),2),F=C[0],S=C[1];(0,o.useEffect)(()=>{if(!r||!s)return;let e=!1;return(async()=>{x(!0);try{var t,n,a,r;const i=await Qi.get("/applications/".concat(s,"/rejection-email/preview"));if(e)return;p(i.data),b((null===(t=i.data)||void 0===t?void 0:t.subject)||""),w((null===(n=i.data)||void 0===n?void 0:n.body)||""),S((null===(a=i.data)||void 0===a?void 0:a.body)||"");const o=(null===(r=i.data)||void 0===r?void 0:r.candidate_feedback)||{};_({text:o.text||"",include:!!o.include_in_email,source:o.source||"manual",warnings:[]})}catch(i){e||p({can_send:!1,missing_email:!0})}finally{e||x(!1)}})(),()=>{e=!0}},[r,s]),(0,o.useEffect)(()=>{if(!F)return;const e="\n\nI wanted to share one note that may be useful:\n\n",t="we've decided to move forward with other candidates for this role.";let n=F;const a=n.indexOf(e);if(-1!==a){const e=n.indexOf("\n\nWe appreciate",a);-1!==e&&(n=n.slice(0,a)+n.slice(e))}if(D.include&&D.text.trim()){const a=n.indexOf(t);if(-1!==a){const t=a+66;n=n.slice(0,t)+e+D.text.trim()+n.slice(t)}}w(n)},[D.text,D.include,F]);const M=(l||"").trim().length>0,O=!(null===m||void 0===m||!m.can_send),R=!(null===m||void 0===m||!m.missing_email),H=!(null===m||void 0===m||!m.domain_verified),P=!(null===m||void 0===m||!m.late_stage),L=async e=>
2{if(M)if(D.include&&D.warnings.length>0)va.error("Please rewrite the feedback before including it in the email.");else{k(!0);try{await d(e,{subject:v||void 0,body:j||void 0,feedback_text:D.text||void 0,include_feedback_in_email:D.include,feedback_source:D.source})}finally{k(!1)}}};return(0,Pe.jsx)(Kd,{open:r,onOpenChange:i,children:(0,Pe.jsxs)(Qd,{className:"max-w-2xl","data-testid":"rejection-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{className:"font-display font-bold flex items-center gap-2",children:[(0,Pe.jsx)(AN,{size:20,className:"text-[#B91C1C]"})," Confirm not selected"]}),(0,Pe.jsxs)(tu,{className:"leading-relaxed",children:["AROS does ",(0,Pe.jsx)("span",{className:"font-medium",children:"not"})," automate this decision or the message. A documented, job-related reason is required, and any email goes out only when you click",(0,Pe.jsx)("span",{className:"font-semibold",children:" Send now"}),"."]})]}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground font-semibold",children:"Reason (required)"}),(0,Pe.jsx)(Bo,{"data-testid":iN,rows:3,value:l,onChange:e=>c(e.target.value),placeholder:"e.g. Candidate lacks the 3+ years of domain experience required by the role."})]}),P&&(0,Pe.jsx)(oI,{appId:s,initialText:null===m||void 0===m||null===(t=m.candidate_feedback)||void 0===t?void 0:t.text,initialInclude:null===m||void 0===m||null===(n=m.candidate_feedback)||void 0===n?void 0:n.include_in_email,initialSource:null===m||void 0===m||null===(a=m.candidate_feedback)||void 0===a?void 0:a.source,onChange:e=>_(e)}),(0,Pe.jsxs)("div",{className:"mt-2 rounded-lg border",style:{borderColor:sI},"data-testid":"rejection-email-block",children:[(0,Pe.jsxs)("div",{className:"px-4 py-3 border-b flex items-center justify-between",style:{borderColor:sI,background:"#FAFBFC"},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(nI,{size:16,weight:"duotone",style:{color:aI}}),(0,Pe.jsx)("div",{className:"text-sm font-semibold",style:{color:aI},children:"Send the \u201cnot selected\u201d email?"})]}),R&&(0,Pe.jsx)("span",{className:"text-[11px] font-mono rounded-full px-2 py-0.5",style:{background:"#FEF3C7",color:"#92400E",border:"1px solid #FDE68A"},"data-testid":"rejection-missing-email-pill",children:"Add email to send"}),!R&&!H&&(0,Pe.jsx)("span",{className:"text-[11px] font-mono rounded-full px-2 py-0.5",style:{background:"#FEF3C7",color:"#92400E",border:"1px solid #FDE68A"},title:"Sender domain not yet verified \u2014 email will save as a draft until DNS is configured.","data-testid":"rejection-domain-warn-pill",children:"Sender domain awaiting verification"}),O&&H&&(0,Pe.jsx)("span",{className:"text-[11px] font-mono rounded-full px-2 py-0.5",style:{background:"#ECFDF5",color:"#065F46",border:"1px solid #A7F3D0"},children:"Ready to send"})]}),f&&(0,Pe.jsx)("div",{className:"px-4 py-6 text-sm text-center",style:{color:rI},children:"Loading preview\u2026"}),!f&&!R&&(0,Pe.jsxs)("div",{className:"p-4 space-y-3 text-sm",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:rI},children:"To"}),(0,Pe.jsxs)("div",{className:"font-mono text-xs mt-0.5",style:{color:iI},"data-testid":"rejection-preview-to",children:[null===m||void 0===m?void 0:m.candidate_name," ","<",null===m||void 0===m?void 0:m.candidate_email,">"]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:rI},children:"Subject"}),(0,Pe.jsx)("input",{value:v,onChange:e=>b(e.target.value),"data-testid":"rejection-preview-subject",className:"mt-1 w-full rounded-md border px-3 py-2 text-sm",style:{borderColor:sI}})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:rI},children:"Body"}),(0,Pe.jsx)(Bo,{rows:9,value:j,onChange:e=>w(e.target.value),"data-testid":"rejection-preview-body",className:"mt-1 font-mono text-xs"})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px]",style:{color:rI}
2,children:[(0,Pe.jsx)(iy,{size:12,weight:"duotone"})," Sent on behalf of ",null===m||void 0===m?void 0:m.company_name,". Reply-To is set to your email address."]})]}),!f&&R&&(0,Pe.jsxs)("div",{className:"p-4 text-sm",style:{color:iI},children:["We don't have an email on file for this candidate yet. Choose",(0,Pe.jsx)("span",{className:"font-semibold",children:" Record without email"})," to capture the decision now."]})]}),(0,Pe.jsxs)(Jd,{className:"flex flex-col-reverse sm:flex-row sm:justify-between gap-2 mt-2",children:[(0,Pe.jsx)(Lo,{variant:"ghost",onClick:()=>i(!1),disabled:A,className:"rounded-md","data-testid":"rejection-cancel",children:"Cancel"}),(0,Pe.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>L("no_email"),disabled:!M||A,className:"rounded-md","data-testid":"rejection-no-email",children:[(0,Pe.jsx)($H,{size:14,weight:"bold",className:"mr-1.5"})," Record without email"]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>L("save_draft"),disabled:!M||A||R,className:"rounded-md","data-testid":"rejection-save-draft",children:[(0,Pe.jsx)(qH,{size:14,weight:"bold",className:"mr-1.5"})," Save as draft"]}),(0,Pe.jsxs)(Lo,{onClick:()=>L("send_now"),disabled:!M||A||!O,"data-testid":sN,className:"bg-[#B91C1C] hover:bg-[#cc2200] text-white rounded-md",children:[(0,Pe.jsx)(nI,{size:14,weight:"bold",className:"mr-1.5"})," Send now"]})]})]})]})})}function cI(e){const t=(null===e||void 0===e?void 0:e.context_adjusted_score)||(null===e||void 0===e?void 0:e.ai_score)||{},n=String(t.final_recommendation||"").toLowerCase();return n.includes("strong")||n.includes("advance")?"A strong fit worth an interview \u2014 see reasons below.":n.includes("consider")||n.includes("promising")?"Worth a closer look \u2014 evidence supports moving forward.":n.includes("not")?"Weaker alignment \u2014 review the gaps before deciding.":"Review the evidence below to decide the next step."}function dI(){var e,t,n;const a=qt().id,r=zt(),i=Ue(Xn(),1)[0],s=es().user,l="admin"===(null===s||void 0===s?void 0:s.role),c=i.get("tab")||"",d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),f=p[0],x=p[1],g=Ue((0,o.useState)(!1),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(!1),2),D=E[0],_=E[1],C=Ue((0,o.useState)(!1),2),F=C[0],S=C[1],M=Ue((0,o.useState)(!1),2),O=M[0],R=M[1],H=Ue((0,o.useState)(!1),2),P=H[0],L=H[1],T=Ue((0,o.useState)(""),2),I=T[0],Z=T[1],B=(0,o.useRef)(null),V=async()=>{const e=(await Qi.get("/applications/".concat(a))).data;m(e),k(e.recruiter_interview_notes||""),c&&B.current&&setTimeout(()=>{var e;return null===(e=B.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})},250);try{const t=await Qi.get("/candidates/".concat(e.candidate_user_id,"/profile"));x(t.data)}catch(t){}};(0,o.useEffect)(()=>{V()},[a]);const z=(0,o.useRef)(null),q=(0,o.useRef)(null),U=(0,o.useRef)(null),W=(0,o.useRef)(null),Y=(0,o.useRef)(null);(0,o.useEffect)(()=>{if("undefined"===typeof window||"undefined"===typeof IntersectionObserver)return;const e=new Set,t=new Map([[z.current,"identity"],[q.current,"why"],[U.current,"confirm"],[W.current,"questions"],[Y.current,"alternatives"],[B.current,"details"]]),n=new IntersectionObserver(n=>{for(const a of n){if(!a.isIntersecting)continue;const n=t.get(a.target);n&&!e.has(n)&&(e.add(n),pF("candidate_detail_section_viewed",{job_id:(null===u||void 0===u?void 0:u.job_id)||null,candidate_user_id:(null===u||void 0===u?void 0:u.candidate_user_id)||null,properties:{section:n}}))}},{threshold:.4});return t.forEach((e,t)=>{t&&n.observe(t)}),()=>n.disconnect()},[u]);const K=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{await Qi.patch("/applications/".concat(a,"/status"),{status:e,note:"Marked as ".concat(e),rejection_reason:t}),va.success("Updated"),L(!1),Z(""),V()}catch(zf){var n,r;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Failed")}};if((0,o.useEffect)(()=>{u&&u.ai_score&&(u.human_potential_score||O||(async()=>{R(!0);try{const e=(await Qi.post("/applications/".concat(a,"/hidden-talent"))).data;m(t=>h(h({},t),{},{human_potential_score:e.human_potential_score}))}catch(e){}finally{R(!1)}})())},[null===u||void 0===u?void 0:u.id,null===u||void 0===u?void 0:u.ai_score,null===u||void 0===u?void 0:u.human_potential_score]),!u)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-muted-foreground",children:"Loading\u2026"});const G=function(e){var t;const n=((null===e||void 0===e?void 0:e.status)||"").toLowerCase(),a=String((null===e||void 0===e||null===(t=e.ai_score)||void 0===t?void 0:t.final_recommendation)||"").toLowerCase();return"hired"===n||"rejected"===n?null:"offer_sent"===n||"offer_accepted"===n?{key:"review",label:"Review status",to:null}:"interview_requested"===n||"interview_completed"===n?{key:"review",label:"Review interview notes",to:null}:a.includes("advance")||a.includes("interview")||a.includes("strong")?{key:"interview",label:"Move to interview",to:null,next:"interview_requested"}:a.includes("consider")||a.includes("promising")?{key:"save",label:"Save for later",to:null}:{key:"review",label:"Review candidate",to:null,next:"reviewed"}}(u),$={submitted:"New",viewed:"Viewed",reviewed:"Reviewed",interview_requested:"Interview requested",interview_completed:"Interview completed",offer_sent:"Offer sent",offer_accepted:"Offer accepted",hired:"Hired",rejected:"Not selected"}[Q=u.status]||Q;var Q;const X=function(e){return"hired"===e||"offer_accepted"===e?{bg:"#ECFDF5",fg:"#065F46",border:"#A7F3D0"}:"rejected"===e?{bg:"#FEF2F2",fg:"#991B1B",border:"#FECACA"}:"interview_requested"===e||"interview_completed"===e?{bg:"#EFF6FF",fg:"#1E40AF",border:"#BFDBFE"}:"offer_sent"===e?{bg:"#FFF7ED",fg:"#9A3412",border:"#FED7AA"}:{bg:"#F3F4F6",fg:"#374151",border:"#E5E7EB"}}(u.status);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"candidate-detail-loaded",children:[(0,Pe.jsx)(yM,{items:[{label:"Home",to:"/app/employer"},{label:"Candidates",to:"/app/employer/applicants"},{label:(null===u||void 0===u?void 0:u.candidate_name)||"Candidate"}],backFallback:"/app/employer/applicants"}),(0,Pe.jsxs)("section",{ref:z,"data-testid":"candidate-identity",className:"mt-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:u.job_title}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 flex-wrap mt-1",children:[(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl tracking-tight",children:u.candidate_name}),(0,Pe.jsx)("span",{className:"pill border text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{background:X.bg,color:X.fg,borderColor:X.border},"data-testid":"candidate-stage-pill",children:$}),u.consent_at_apply&&(0,Pe.jsxs)("span",{className:"pill bg-emerald-50 text-emerald-900 border border-emerald-200 inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(iy,{size:12})," Candidate consented to AI analysis"]})]}),f&&(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-2 inline-flex items-center gap-1.5",children:[(0,Pe.jsx)(TN,{size:14})," ",f.location]}
2),(0,Pe.jsx)("p",{className:"mt-4 text-lg text-foreground/90 max-w-3xl leading-relaxed","data-testid":"candidate-recommendation-line",children:cI(u)}),(0,Pe.jsxs)("div",{className:"mt-6 flex items-center flex-wrap gap-3",children:[G&&(0,Pe.jsxs)(Lo,{onClick:()=>{G&&G.next&&K(G.next)},className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md h-11 px-6 text-base","data-testid":"candidate-primary-action",children:[G.label,(0,Pe.jsx)(eg,{size:16,className:"ml-2",weight:"bold"})]}),(0,Pe.jsxs)(Sf,{value:u.status,onValueChange:e=>{"rejected"!==e?K(e):L(!0)},children:[(0,Pe.jsx)(Of,{className:"w-44 h-11","data-testid":"candidate-status-select",children:(0,Pe.jsx)(Mf,{placeholder:"Move to\u2026"})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"reviewed",children:"Mark reviewed"}),(0,Pe.jsx)(Lf,{value:"interview_requested",children:"Interview"}),(0,Pe.jsx)(Lf,{value:"interview_completed",children:"Interview completed"}),(0,Pe.jsx)(Lf,{value:"offer_sent",children:"Offer sent"}),(0,Pe.jsx)(Lf,{value:"hired",children:"Hired"}),(0,Pe.jsx)(Lf,{value:"rejected",children:"Not selected"})]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>r("/app/employer/applications/".concat(a,"/packet")),className:"rounded-md h-11","data-testid":"open-decision-packet-btn",children:[(0,Pe.jsx)(uv,{size:14,className:"mr-1.5",weight:"duotone"})," Share brief"]})]})]}),(0,Pe.jsx)(xI,{applicationId:a}),(0,Pe.jsx)(bL,{applicationId:a}),(0,Pe.jsxs)("section",{ref:q,className:"mt-10 scroll-mt-24","data-testid":"candidate-block-why","aria-label":"What we found in the information they submitted",children:[(0,Pe.jsx)(yL,{applicationId:a,hasMeaningfulEvidence:Boolean(u.context_adjusted_score||u.ai_score)}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:16,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"What we found in the information they submitted"})]}),(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)(WT,{score:u.context_adjusted_score||u.ai_score}),(0,Pe.jsx)(LT,{applicationId:a}),(0,Pe.jsx)(_T,{applicationId:a}),(0,Pe.jsx)(oP,{candidateUserId:u.candidate_user_id,jobId:u.job_id,mode:"primary"})]})]}),(0,Pe.jsxs)("section",{ref:U,className:"mt-10 scroll-mt-24","data-testid":"candidate-block-confirm","aria-label":"What still needs to be confirmed",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(TH,{size:16,weight:"duotone",className:"text-amber-600"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"What still needs to be confirmed"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Things AROS could not confirm from the resume alone. Use these to guide the conversation."}),(0,Pe.jsx)("div",{className:"mt-3",children:(0,Pe.jsx)(jP,{applicationId:a,candidateUserId:u.candidate_user_id,jobId:u.job_id})})]}),(0,Pe.jsxs)("section",{ref:W,className:"mt-10 scroll-mt-24","data-testid":"candidate-block-questions","aria-label":"Questions to ask",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(qf,{size:16,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"Questions to ask"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Empathetic, evidence-grounded \u2014 designed to fill the confirmation gaps above."}),(0,Pe.jsx)("div",{className:"mt-3",children:(0,Pe.jsx)(XT,{applicationId:a,status:u.status})}),(0,Pe.jsxs)("div",{className:"mt-4 border border-border rounded-md p-5","data-testid":"candidate-context-questions",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"Context questions"}),(0,Pe.jsxs)(Lo,{"data-testid":aN,variant:"outline",size:"sm",onClick:async()=>{S(!0);try{const e=(await Qi.post("/applications/".concat(a,"/generate-context-questions"))).data;m(t=>h(h({},t),{},{context_questions:e.questions})),va.success("Generated ".concat(e.questions.length," context questions"))}catch(e){va.error("Failed")}finally{S(!1)}},disabled:F,className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),F?"Generating\u2026":(u.context_questions||[]).length?"Regenerate":"Generate"]})]}),0===(u.context_questions||[]).length?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-3",children:"No context questions generated yet. Click Generate."}):(0,Pe.jsx)("ol",{className:"mt-3 space-y-2 list-decimal pl-5 text-sm leading-relaxed",children:u.context_questions.map((e,t)=>(0,Pe.jsx)("li",{children:e},t))})]})]}),(0,Pe.jsxs)("section",{ref:Y,className:"mt-10 scroll-mt-24","data-testid":"candidate-block-alternatives","aria-label":"May fit another role",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(BH,{size:16,weight:"duotone",className:"text-violet-700"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-xl tracking-tight",children:"May fit another role"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Other open roles where the same evidence would apply. Nothing appears if AROS has no better match to suggest."}),(0,Pe.jsx)("div",{className:"mt-3",children:(0,Pe.jsx)(oP,{candidateUserId:u.candidate_user_id,jobId:u.job_id,mode:"additional"})})]}),(0,Pe.jsxs)("section",{ref:B,className:"mt-12 mb-10 scroll-mt-24","data-testid":"candidate-block-detail
2s","aria-label":"Details",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"Details"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-2xl",children:"Everything else \u2014 expand only what you need."}),(0,Pe.jsx)(uI,{testId:"details-resume",icon:(0,Pe.jsx)(uv,{size:14,weight:"duotone"}),title:"Full resume, skills, and profile",children:f&&(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,Pe.jsxs)("div",{className:"lg:col-span-2 border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"font-semibold text-lg",children:f.headline}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 whitespace-pre-wrap",children:f.summary}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Experience:"})," ",f.years_experience," yrs"]}),null!=f.desired_compensation_min&&(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Comp range:"})," $",(f.desired_compensation_min/1e3).toFixed(0),"k \u2013 $",(f.desired_compensation_max/1e3).toFixed(0),"k"]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Availability:"})," ",null===(e=f.availability)||void 0===e?void 0:e.replace(/_/g," ")]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Remote:"})," ",f.remote_preference]})]}),(0,Pe.jsx)("div",{className:"mt-4 flex flex-wrap gap-1.5",children:null===(t=f.skills)||void 0===t?void 0:t.map(e=>(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-xs",children:e},e))})]}),f.resume_storage_path&&u.candidate_user_id&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"RESUME FILE"}),(0,Pe.jsxs)("button",{"data-testid":"employer-resume-download-btn",onClick:async()=>{try{const e=await Qi.get("/candidates/".concat(u.candidate_user_id,"/resume/download"),{responseType:"blob"}),t=URL.createObjectURL(e.data);window.open(t,"_blank"),setTimeout(()=>URL.revokeObjectURL(t),6e4)}catch(e){va.error("Resume download failed")}},className:"mt-2 text-sm underline text-foreground hover:text-[#0F4FA8] inline-flex items-center gap-1",children:[(0,Pe.jsx)(uv,{size:14})," Download original resume"]})]})]})}),(0,Pe.jsx)(uI,{testId:"details-timeline",icon:(0,Pe.jsx)(BH,{size:14,weight:"duotone"}),title:"Timeline",children:(0,Pe.jsx)("div",{className:"border border-border rounded-md p-5",children:(0,Pe.jsx)("ol",{className:"relative border-l border-border pl-5 space-y-3",children:(u.status_history||[]).slice().reverse().map((e,t)=>(0,Pe.jsxs)("li",{className:"relative",children:[(0,Pe.jsx)("span",{className:"absolute -left-[26px] top-1.5 w-2.5 h-2.5 rounded-full bg-[#0F4FA8] ring-4 ring-white"}),(0,Pe.jsx)("div",{className:"text-sm font-medium",children:e.status.replace(/_/g," ")}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:[new Date(e.timestamp).toLocaleString()," \u2022 ",e.actor_role]}),e.note&&(0,Pe.jsx)("div",{className:"text-xs text-foreground/70 mt-1",children:e.note})]},t))})})}),(0,Pe.jsx)(uI,{testId:"details-notes",icon:(0,Pe.jsx)(qH,{size:14,weight:"duotone"}),title:"Your notes",children:(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground",children:"Private notes for you and your team. These also feed the context-adjusted view."}),(0,Pe.jsx)(Bo,{rows:5,value:A,onChange:e=>k(e.target.value),placeholder:"Communication, transferable skills observed, anything that adds context\u2026",className:"mt-3"}),(0,Pe.jsxs)(Lo,{"data-testid":rN,onClick:async()=>{_(!0);try{await Qi.patch("/applications/".concat(a,"/recruiter-notes"),{notes:A}),va.success("Notes saved"),V()}catch(e){va.error("Save failed")}finally{_(!1)}},disabled:D,className:"mt-3 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(qH,{size:14,className:"mr-1.5"}),D?"Saving\u2026":"Save notes"]})]})}),(0,Pe.jsx)(uI,{testId:"details-human-context",icon:(0,Pe.jsx)(TH,{size:14,weight:"duotone"}),title:"Human context \u2014 background and candidate responses",children:(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"CANDIDATE RESPONSES"}),0===(u.context_responses||[]).length?(0,Pe.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:"Candidate has not responded yet."}):(0,Pe.jsx)("ol",{className:"mt-3 space-y-3 text-sm",children:u.context_responses.map((e,t)=>(0,Pe.jsxs)("li",{className:"border-l-2 border-[#0F4FA8] pl-3",children:[(0,Pe.jsx)("div",{className:"font-medium",children:e.question}),(0,Pe.jsx)("div",{className:"text-muted-foreground mt-1 whitespace-pre-wrap",children:e.answer})]},t))})]}),(0,Pe.jsx)("div",{children:(0,Pe.jsx)(gT,{applicationId:a,jobTitle:null===u||void 0===u?void 0:u.job_title})}),f&&(f.employment_gap_explanation||f.career_pivot_explanation||f.transition_notes||f.layoff_history)&&(0,Pe.jsxs)("div",{className:"lg:col-span-2 border border-border rounded-md p-5 bg-secondary/40",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"BACKGROUND CONTEXT"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[f.employment_gap_explanation&&(0,Pe.jsx)(mI,{label:"Employment gap",v:f.employment_gap_explanation}),f.career_pivot_explanation&&(0,Pe.jsx)(mI,{label:"Career pivot",v:f.career_pivot_explanation}),f.transition_notes&&(0,Pe.jsx)(mI,{label:"Transition notes",v:f.transition_notes}),f.relocation_history&&(0,Pe.jsx)(mI,{label:"Relocation",v:f.relocation_history})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:[f.military_experience&&(0,Pe.jsx)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200",children:"Veteran"}),f.entrepreneurship_history&&(0,Pe.jsx)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200",children:"Entrepreneur"}),f.workforce_returner&&(0,Pe.jsx)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200",children:"Workforce returner"}),f.foreign_work_experience&&(0,Pe.jsx)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200",children:"Foreign experience"}),f.has_contract_roles&&(0,Pe.jsx)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200",children:"Contract roles"}),f.layoff_history&&(0,Pe.jsx)("span",{className:"pill bg-amber-50 text-amber-900 border border-amber-200",children:"Layoff history"}),f.company_closure_history&&(0,Pe.jsx)("span",{className:"pill bg-amber-50 text-amber-900 border border-amber-200",children:"Company closure"})]})]})]})}),(0,Pe.jsx)(uI,{testId:"details-communication",icon:(0,Pe.jsx)(lx,{size:14,weight:"duotone"}),title:"Reach out to ".concat((null===(n=u.candidate_name)||void 0===n?void 0:n.split(" ")[0])||"candidate"),children:(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5","data-testid":"follow-through-communicate",children:[(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground",children:"Email lands in the candidate's inbox via your mail client; AROS logs the touch on the timeline."}),u.candidate_email&&!String(u.candidate_email).toLowerCase().endsWith("@aros.local")?(0,Pe.jsx)("a",{href:"mailto:".concat(u.candidate_email,"?subject=").concat(encodeURIComponent("Re: ".concat(u.job_title||"your application"))),"data-testid":"candidate-mailto",onClick:()=>{Qi.post("/applications/".concat(a,"/comm-touch"),{channel:"email"}).catch(()=>{})},children:(0,Pe.jsxs)(Lo,{className:"mt-3 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(lx,{size:14,className:"mr-1.5",weight:"duotone"}),"Email ",u.candidate_email]})}):(0,Pe.jsxs)("div",{className:"mt-3","data-testid":"candidate-missing-email-block",children:[(0,Pe.jsx)(BS,{candidateUserId:u.candidate_user_id,currentEmail:u.candidate_email,currentPhone:u.candidate_p
2hone,missingFlag:!0,size:"block",onUpdated:e=>{m(t=>t?h(h({},t),{},{candidate_email:e.primary_email||t.candidate_email,candidate_phone:e.phone||t.candidate_phone}):t)},testIdPrefix:"candidate-detail-missing-email"}),(0,Pe.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"No email could be parsed from the resume. Add one to enable communication."})]})]})}),(0,Pe.jsx)(uI,{testId:"details-hm-share",icon:(0,Pe.jsx)(iy,{size:14,weight:"duotone"}),title:"Share with a hiring manager",children:(0,Pe.jsx)(tP,{applicationId:a})}),(0,Pe.jsx)(uI,{testId:"details-interview",icon:(0,Pe.jsx)(YH,{size:14,weight:"duotone"}),title:"Interview record",children:(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"AI-drafted interview questions"}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:async()=>{b(!0);try{const e=(await Qi.post("/ai/interview-questions",{title:u.job_title,focus:"behavioral and skills"})).data;w(e.questions)}catch(e){va.error("Generation failed")}finally{b(!1)}},disabled:v,className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),v?"Generating\u2026":"Generate"]})]}),j?(0,Pe.jsx)("pre",{className:"mt-3 text-sm whitespace-pre-wrap font-sans",children:j}):(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["Generate 10 evidence-grounded interview questions tailored to ",u.job_title,"."]})]}),(0,Pe.jsx)(fI,{applicationId:a})]})}),(0,Pe.jsx)(uI,{testId:"details-post-hire",icon:(0,Pe.jsx)(uy,{size:14,weight:"duotone"}),title:"Post-hire feedback",children:(0,Pe.jsx)(pI,{applicationId:a,appStatus:u.status})}),(0,Pe.jsxs)(uI,{testId:"details-fit",icon:(0,Pe.jsx)(ux,{size:14,weight:"duotone"}),title:"Fit assessment (recruiter view)",children:[(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground",children:"The recommendation and reasons above are grounded in this qualitative fit picture. AROS does not present a numeric fit score anywhere in the recruiter workflow."}),l&&(0,Pe.jsx)("div",{className:"mt-3","data-testid":"admin-ai-analysis",children:(0,Pe.jsx)(gL,{applicationId:a,isAdmin:l})})]}),(0,Pe.jsxs)(uI,{testId:"details-trait-alignment",icon:(0,Pe.jsx)(Yf,{size:14,weight:"duotone"}),title:"How they line up with the role",subtitle:"Recruiter view \u2014 nothing shared with the candidate or hiring manager.",children:[(0,Pe.jsx)(wR,{jobId:u.job_id,candidateId:u.candidate_user_id}),(0,Pe.jsx)(EL,{applicationId:a})]}),("hired"===u.status||"rejected"===u.status)&&u.job_id&&(0,Pe.jsx)("div",{className:"mt-6",children:(0,Pe.jsxs)(Yn,{to:"/app/owner/close-the-loop/".concat(u.job_id),"data-testid":"follow-through-close-the-loop",className:"inline-flex items-center gap-2 text-sm font-medium text-[#0F4FA8] hover:underline",children:[(0,Pe.jsx)(eg,{size:14,weight:"bold"}),"Close the loop on ",u.job_title||"this role"]})})]}),(0,Pe.jsx)(lI,{open:P,onOpenChange:L,appId:a,reason:I,setReason:Z,onConfirmReject:(e,t)=>(async(e,t,n,r)=>{try{await Qi.patch("/applications/".concat(a,"/status"),{status:e,note:"Marked as ".concat(e),rejection_reason:t})}catch(zf){var i,s;return void va.error((null===zf||void 0===zf||null===(i=zf.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.detail)||"Failed to reject")}try{if("send_now"===n){var o,l,c,d;const e=await Qi.post("/applications/".concat(a,"/rejection-email/send"),h({confirmed:!0},r||{}));"sent"===(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.status)?va.success("Rejection email sent."):null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.missing_email?va.message("Rejected \u2014 but candidate has no email on file, so nothing was sent."):null!==e&&void 0!==e&&null!==(c=e.data)&&void 0!==c&&c.mock?va.message("Rejected \u2014 email send paused: sender domain not verified yet."):va.message("Rejected \u2014 email send failed (".concat((null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.failure_reason)||"unknown",")."))}else"save_draft"===n?(await Qi.post("/applications/".concat(a,"/rejection-email/draft"),r||{}),va.success("Rejection saved with email draft.")):va.success("Rejection recorded.")}catch(zf){var u,m;va.message("Rejection recorded, email step failed: ".concat((null===zf||void 0===zf||null===(u=zf.response)||void 0===u||null===(m=u.data)||void 0===m?void 0:m.detail)||"see logs"))}L(!1),Z(""),V()})("rejected",I.trim(),e,t)})]})}function uI(e){let t=e.testId,n=e.icon,a=e.title,r=e.subtitle,i=e.children;return(0,Pe.jsxs)("details",{className:"mt-3 rounded-md border border-border","data-testid":t,children:[(0,Pe.jsxs)("summary",{className:"cursor-pointer px-4 py-3 flex items-center gap-2 hover:bg-secondary/40 list-none",children:[(0,Pe.jsx)(IO,{size:14,className:"transition-transform"}),n,(0,Pe.jsx)("span",{className:"font-medium",children:a}),r&&(0,Pe.jsx)("span",{className:"ml-auto text-[10px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:r})]}),(0,Pe.jsx)("div",{className:"border-t border-border p-5",children:i})]})}function mI(e){let t=e.label,n=e.v;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}
2),(0,Pe.jsx)("div",{className:"mt-1 text-foreground/85",children:n})]})}function pI(e){let t=e.applicationId,n=e.appStatus;const a=Ue((0,o.useState)([]),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)({day_milestone:30,attendance:4,coachability:4,communication:4,performance:4,productivity:4,manager_satisfaction:4,culture_alignment:4,training_completion:4,promotion_potential:3,still_employed:!0,notes:""}),2),u=d[0],m=d[1],p=()=>Qi.get("/post-hire/".concat(t,"/feedback")).then(e=>i(e.data));if((0,o.useEffect)(()=>{p()},[t]),"hired"!==n)return(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-8 text-center",children:[(0,Pe.jsx)(uy,{size:28,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-3 font-medium",children:"Post-hire feedback unlocks after the candidate is marked Hired"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"30/60/90 day reviews build your learning loop for better future matching."})]});return(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"30 / 60 / 90 DAY FEEDBACK"}),(0,Pe.jsx)(Lo,{"data-testid":oN,onClick:()=>c(!0),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:"Add feedback"})]}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-3 gap-3",children:[30,60,90].map(e=>{const t=r.find(t=>t.day_milestone===e);return(0,Pe.jsxs)("div",{className:"border ".concat(t?"border-[#0F172A]":"border-dashed border-border"," rounded-md p-4"),children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:["DAY ",e]}),t?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"mt-1 font-display font-bold text-xl",children:t.still_employed?"Still employed":"Departed"}),(0,Pe.jsxs)("div",{className:"mt-3 text-sm space-y-0.5",children:[(0,Pe.jsx)(hI,{k:"Performance",v:t.performance}),(0,Pe.jsx)(hI,{k:"Coachability",v:t.coachability}),(0,Pe.jsx)(hI,{k:"Manager satisfaction",v:t.manager_satisfaction}),(0,Pe.jsx)(hI,{k:"Culture alignment",v:t.culture_alignment})]})]}):(0,Pe.jsx)("div",{className:"mt-1 text-sm text-muted-foreground",children:"Not yet recorded"})]},e)})}),(0,Pe.jsx)(Kd,{open:l,onOpenChange:c,children:(0,Pe.jsxs)(Qd,{className:"max-h-[85vh] overflow-y-auto",children:[(0,Pe.jsx)(Xd,{children:(0,Pe.jsx)(eu,{className:"font-display font-bold",children:"Post-hire feedback"})}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{children:"Milestone"}),(0,Pe.jsxs)(Sf,{value:String(u.day_milestone),onValueChange:e=>m(h(h({},u),{},{day_milestone:Number(e)})),children:[(0,Pe.jsx)(Of,{className:"mt-1.5",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"30",children:"30 days"}),(0,Pe.jsx)(Lf,{value:"60",children:"60 days"}),(0,Pe.jsx)(Lf,{value:"90",children:"90 days"})]})]})]}),[["attendance","Attendance"],["performance","Performance"],["productivity","Productivity"],["coachability","Coachability"],["communication","Communication"],["manager_satisfaction","Manager satisfaction"],["culture_alignment","Culture alignment"],["training_completion","Training completion"],["promotion_potential","Promotion potential"]].map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:a}),(0,Pe.jsxs)(Sf,{value:String(u[n]),onValueChange:e=>m(h(h({},u),{},{[n]:Number(e)})),children:[(0,Pe.jsx)(Of,{className:"w-32",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:[1,2,3,4,5].map(e=>(0,Pe.jsxs)(Lf,{value:String(e),children:[e," / 5"]},e))})]})]},n)}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)(Go,{children:"Still employed"}),(0,Pe.jsxs)(Sf,{value:u.still_employed?"yes":"no",onValueChange:e=>m(h(h({},u),{},{still_employed:"yes"===e})),children:[(0,Pe.jsx)(Of,{className:"w-32",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"yes",children:"Yes"}),(0,Pe.jsx)(Lf,{value:"no",children:"No"})]})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{children:"Notes"}),(0,Pe.jsx)(Bo,{rows:3,value:u.notes,onChange:e=>m(h(h({},u),{},{notes:e.target.value})),className:"mt-1.5"})]})]}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>c(!1),className:"rounded-md",children:"Cancel"}),(0,Pe.jsx)(Lo,{"data-testid":lN,onClick:async()=>{try{await Qi.post("/post-hire/".concat(t,"/feedback"),u),va.success("Feedback saved"),c(!1),p()}catch(zf){var e,n;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Failed")}},className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:"Save feedback"})]})]})})]})}function hI(e){let t=e.k,n=e.v;return(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground text-xs",children:t}),(0,Pe.jsxs)("span",{className:"font-mono text-sm",children:[n,"/5"]})]})}function fI(e){let t=e.applicationId;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)({decision:"",notes:""}),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!1),2),d=c[0],u=c[1],m=()=>Qi.get("/manager-intel/interviews/".concat(t)).then(e=>r(e.data)).catch(()=>{});(0,o.useEffect)(()=>{m()},[t]);
2const p=[{key:"advance",label:"Yes \u2014 advance",tone:"#059669",bg:"#ECFDF5",border:"#A7F3D0"},{key:"discuss",label:"Not sure \u2014 let's discuss",tone:"#D97706",bg:"#FFFBEB",border:"#FDE68A"},{key:"pass",label:"Pass",tone:"#B91C1C",bg:"#FEF2F2",border:"#FECACA"}],f=e=>{var t;return(null===(t=p.find(t=>t.key===e))||void 0===t?void 0:t.label)||e};return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5","data-testid":"manager-interview-section",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"AFTER YOUR INTERVIEW"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Your call drives the next step. The comment is what the recruiter actually reads \u2014 no star ratings."}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:"What's your call?"}),(0,Pe.jsx)("div",{className:"mt-2 flex flex-wrap gap-2","data-testid":"manager-interview-decisions",children:p.map(e=>{const t=s.decision===e.key;return(0,Pe.jsx)("button",{type:"button",onClick:()=>l(h(h({},s),{},{decision:e.key})),"data-testid":"manager-interview-decision-".concat(e.key),className:"px-4 py-2 rounded-md text-sm font-medium transition-colors border",style:{background:t?e.bg:"white",color:t?e.tone:"#0F172A",borderColor:t?e.border:"#E5E7EB"},children:e.label},e.key)})})]}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:"What's the most important thing the recruiter needs to know?"}),(0,Pe.jsx)(Bo,{rows:4,value:s.notes,onChange:e=>l(h(h({},s),{},{notes:e.target.value})),className:"mt-1.5","data-testid":"manager-interview-notes",placeholder:"Strong evidence of leadership scope; needs to validate hands-on technical depth before final round."})]}),(0,Pe.jsx)(Lo,{"data-testid":"manager-interview-submit",onClick:async()=>{if(s.decision){u(!0);try{const e="advance"===s.decision?"high":"pass"===s.decision?"low":"medium";await Qi.post("/manager-intel/interviews",{application_id:t,decision:s.decision,notes:s.notes,predicted_success:e,rating_overall:3,rating_skills:3,rating_culture_fit:3,rating_communication:3}),va.success("Interview recorded"),l({decision:"",notes:""}),m()}catch(zf){var e,n;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Failed")}finally{u(!1)}}else va.error("Pick a decision before recording.")},disabled:d||!s.decision,className:"mt-3 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:d?"Saving\u2026":"Record interview"}),a.length>0&&(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:["PRIOR INTERVIEWS (",a.length,")"]}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-2 text-sm",children:a.map(e=>{const t=e.decision||("high"===e.predicted_success?"advance":"low"===e.predicted_success?"pass":"discuss"),n=p.find(e=>e.key===t);return(0,Pe.jsxs)("li",{className:"border border-border rounded-md p-3",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.manager_name}),(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:[" \xb7 ",new Date(e.timestamp).toLocaleString()]})]}),n&&(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] font-mono font-semibold px-2 py-0.5 rounded-md border",style:{background:n.bg,color:n.tone,borderColor:n.border},children:f(t)})]}),e.notes&&(0,Pe.jsx)("p",{className:"mt-2 text-sm text-foreground/85 leading-relaxed",children:e.notes})]},e.id)})})]})]})}function xI(e){let t=e.applicationId;const n=Ue((0,o.useState)(""),2),a=n[0],r=n[1],i=Ue((0,o.useState)({}),2),s=i[0],l=i[1],c=async e=>{r(e);try{var n;const a=await Qi.post("/candidate-trust/applications/".concat(t,"/events"),{event_type:e});l(t=>h(h({},t),{},{[e]:!0})),null!==(n=a.data)&&void 0!==n&&n.duplicate?va.message("Already recorded on the candidate's timeline."):va.success("Recorded on the candidate's timeline.")}catch(zf){var a,i;va.error((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.detail)||"Could not record event")}finally{r("")}};return(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md p-3 bg-secondary/30 flex flex-wrap items-center gap-3","data-testid":"transparency-actions",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground flex items-center gap-1.5",children:[(0,Pe.jsx)(iy,{size:12,weight:"duotone"})," Update candidate timeline"]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",disabled:"recruiter_review_completed"===a,onClick:()=>c("recruiter_review_completed"),"data-testid":"emit-recruiter-review-completed",className:"rounded-md",children:[s.recruiter_review_completed&&(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"text-emerald-600"}),"Mark recruiter review complete"]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",disabled:"manager_review"===a,onClick:()=>c("manager_review"),"data-testid":"emit-manager-review",className:"rounded-md",children:[s.manager_review&&(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"text-emerald-600"}),"Mark hiring-manager review complete"]}),(0,Pe.jsx)("span",{className:"text-[10px] text-muted-foreground font-mono",children:"Candidate-safe \u2014 they never see these admin steps."})]})}const gI=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),o.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56
2H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]]),vI=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:gI})));vI.displayName="RobotIcon";const bI=vI,yI=["Write a job description for a Senior Analyst.","Generate 10 interview questions for an Account Manager.","Draft an outreach message to a passive Customer Success Manager candidate.","What should I look for when interviewing for Operations Lead?"];function jI(){const e=Ue((0,o.useState)([{role:"assistant",content:"I'm your AROS Recruiting Assistant. I write job descriptions, generate interview questions, draft outreach, and organize the evidence for your hiring decisions. How can I help?"}]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(""),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=(0,o.useRef)(crypto.randomUUID()),u=(0,o.useRef)();(0,o.useEffect)(()=>{var e;null===(e=u.current)||void 0===e||e.scrollTo({top:u.current.scrollHeight,behavior:"smooth"})},[t,l]);const m=async e=>{const t=(null!==e&&void 0!==e?e:r).trim();if(t){n(e=>[...e,{role:"user",content:t}]),i(""),c(!0);try{const e=(await Qi.post("/ai/chat",{session_id:d.current,message:t,mode:"recruiting_assistant"})).data;n(t=>[...t,{role:"assistant",content:e.response}])}catch(a){n(e=>[...e,{role:"assistant",content:"AI is unavailable. Try again."}])}finally{c(!1)}}};return(0,Pe.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,Pe.jsx)("div",{className:"px-6 lg:px-10 pt-6 pb-3 bg-white border-b border-border",children:(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"AI Assistant"}],backFallback:"/app/employer"})}),(0,Pe.jsxs)("div",{className:"flex-1 flex flex-col ai-panel min-h-0",children:[(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-6 border-b border-white/10",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"AI ASSISTANT"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight flex items-center gap-2",children:[(0,Pe.jsx)(bI,{size:28,weight:"duotone",className:"text-[#0F4FA8]"})," Recruiting Assistant"]})]}),(0,Pe.jsx)("div",{ref:u,className:"flex-1 overflow-y-auto px-6 lg:px-10 py-6",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto space-y-5",children:[t.map((e,t)=>(0,Pe.jsxs)("div",{className:"flex gap-3 ".concat("user"===e.role?"flex-row-reverse":""),children:[(0,Pe.jsx)("div",{className:"shrink-0 w-8 h-8 rounded-md grid place-items-center ".concat("user"===e.role?"bg-[#0F4FA8] text-white":"bg-white text-[#0F172A]"),children:"user"===e.role?(0,Pe.jsx)(Mg,{size:16}):(0,Pe.jsx)(bI,{size:16,weight:"duotone"})}),(0,Pe.jsx)("div",{className:"max-w-[80%] rounded-md px-4 py-3 ".concat("user"===e.role?"bg-[#0F4FA8] text-white":"bg-white/5 text-white border border-white/10"),children:(0,Pe.jsx)("div",{className:"text-sm whitespace-pre-wrap leading-relaxed",children:e.content})})]},t)),l&&(0,Pe.jsxs)("div",{className:"flex gap-3",children:[(0,Pe.jsx)("div",{className:"w-8 h-8 rounded-md grid place-items-center bg-white text-[#0F172A]",children:(0,Pe.jsx)(bI,{size:16})}),(0,Pe.jsx)("div",{className:"rounded-md px-4 py-3 bg-white/5 text-sm text-white/70 border border-white/10",children:(0,Pe.jsx)("span",{className:"animate-pulse",children:"Thinking\u2026"})})]}),1===t.length&&!l&&(0,Pe.jsx)("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 gap-2",children:yI.map(e=>(0,Pe.jsx)("button",{onClick:()=>m(e),className:"text-left text-sm border border-white/15 hover:border-[#0F4FA8] rounded-md px-4 py-2.5 transition-colors text-white/80",children:e},e))})]})}),(0,Pe.jsx)("div",{className:"border-t border-white/10 px-6 lg:px-10 py-4",children:(0,Pe.jsxs)("form",{onSubmit:e=>{e.preventDefault(),m()},className:"max-w-3xl mx-auto flex gap-2",children:[(0,Pe.jsx)(Io,{"data-testid":tN,value:r,onChange:e=>i(e.target.value),placeholder:"Ask the assistant\u2026",className:"flex-1 bg-white/5 text-white border-white/15 placeholder:text-white/40"}),(0,Pe.jsx)(Lo,{"data-testid":nN,type:"submit",disabled:l,className:"bg-[#0F4FA8] hover:bg-white hover:text-[#0F172A] text-white rounded-md",children:(0,Pe.jsx)(OF,{size:16,weight:"fill"})})]})})]})]})}
2const wI=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],NI=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];var AI="rovingFocusGroup.onEntryFocus",kI={bubbles:!1,cancelable:!0},EI="RovingFocusGroup",DI=Ue(iu(EI),3),_I=DI[0],CI=DI[1],FI=DI[2],SI=Ue(Jo(EI,[FI]),2),MI=SI[0],OI=SI[1],RI=Ue(MI(EI),2),HI=RI[0],PI=RI[1],LI=o.forwardRef((e,t)=>(0,Pe.jsx)(_I.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Pe.jsx)(_I.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Pe.jsx)(TI,h(h({},e),{},{ref:t}))})}));LI.displayName=EI;var TI=o.forwardRef((e,t)=>{const n=e.__scopeRovingFocusGroup,a=e.orientation,r=e.loop,i=void 0!==r&&r,s=e.dir,l=e.currentTabStopId,c=e.defaultCurrentTabStopId,d=e.onCurrentTabStopIdChange,u=e.onEntryFocus,m=e.preventScrollOnEntryFocus,p=void 0!==m&&m,f=Ie(e,wI),x=o.useRef(null),g=us(t,x),v=du(s),b=Ue(sl({prop:l,defaultProp:null!==c&&void 0!==c?c:null,onChange:d,caller:EI}),2),y=b[0],j=b[1],w=Ue(o.useState(!1),2),N=w[0],A=w[1],k=ol(u),E=CI(n),D=o.useRef(!1),_=Ue(o.useState(0),2),C=_[0],F=_[1];return o.useEffect(()=>{const e=x.current;if(e)return e.addEventListener(AI,k),()=>e.removeEventListener(AI,k)},[k]),(0,Pe.jsx)(HI,{scope:n,orientation:a,dir:v,loop:i,currentTabStopId:y,onItemFocus:o.useCallback(e=>j(e),[j]),onItemShiftTab:o.useCallback(()=>A(!0),[]),onFocusableItemAdd:o.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>F(e=>e-1),[]),children:(0,Pe.jsx)(zo.div,h(h({tabIndex:N||0===C?-1:0,"data-orientation":a},f),{},{ref:g,style:h({outline:"none"},e.style),onMouseDown:$o(e.onMouseDown,()=>{D.current=!0}),onFocus:$o(e.onFocus,e=>{const t=!D.current;if(e.target===e.currentTarget&&t&&!N){const t=new CustomEvent(AI,kI);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter(e=>e.focusable);VI([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),p)}}D.current=!1}),onBlur:$o(e.onBlur,()=>A(!1))}))})}),II="RovingFocusGroupItem",ZI=o.forwardRef((e,t)=>{const n=e.__scopeRovingFocusGroup,a=e.focusable,r=void 0===a||a,i=e.active,s=void 0!==i&&i,l=e.tabStopId,c=e.children,d=Ie(e,NI),u=rl(),m=l||u,p=PI(II,n),f=p.currentTabStopId===m,x=CI(n),g=p.onFocusableItemAdd,v=p.onFocusableItemRemove,b=p.currentTabStopId;return o.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),(0,Pe.jsx)(_I.ItemSlot,{scope:n,id:m,focusable:r,active:s,children:(0,Pe.jsx)(zo.span,h(h({tabIndex:f?0:-1,"data-orientation":p.orientation},d),{},{ref:t,onMouseDown:$o(e.onMouseDown,e=>{r?p.onItemFocus(m):e.preventDefault()}),onFocus:$o(e.onFocus,()=>p.onItemFocus(m)),onKeyDown:$o(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const a=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(a)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)?void 0:BI[a]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const a=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(n,a+1):n.slice(a+1)}setTimeout(()=>VI(n))}}),children:"function"===typeof c?c({isCurrentTabStop:f,hasTabStop:null!=b}):c}))})});ZI.displayName=II;var BI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VI(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.activeElement;for(const a of e){if(a===n)return;if(a.focus({preventScroll:t}),document.activeElement!==n)return}}var zI=LI,qI=ZI;const UI=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],WI=["__scopeTabs","loop"],YI=["__scopeTabs","value","disabled"],KI=["__scopeTabs","value","forceMount","children"];var GI="Tabs",$I=Ue(Jo(GI,[OI]),2),QI=$I[0],XI=($I[1],OI()),JI=Ue(QI(GI),2),eZ=JI[0],tZ=JI[1],nZ=o.forwardRef((e,t)=>
2{const n=e.__scopeTabs,a=e.value,r=e.onValueChange,i=e.defaultValue,s=e.orientation,o=void 0===s?"horizontal":s,l=e.dir,c=e.activationMode,d=void 0===c?"automatic":c,u=Ie(e,UI),m=du(l),p=Ue(sl({prop:a,onChange:r,defaultProp:null!==i&&void 0!==i?i:"",caller:GI}),2),f=p[0],x=p[1];return(0,Pe.jsx)(eZ,{scope:n,baseId:rl(),value:f,onValueChange:x,orientation:o,dir:m,activationMode:d,children:(0,Pe.jsx)(zo.div,h(h({dir:m,"data-orientation":o},u),{},{ref:t}))})});nZ.displayName=GI;var aZ="TabsList",rZ=o.forwardRef((e,t)=>{const n=e.__scopeTabs,a=e.loop,r=void 0===a||a,i=Ie(e,WI),s=tZ(aZ,n),o=XI(n);return(0,Pe.jsx)(zI,h(h({asChild:!0},o),{},{orientation:s.orientation,dir:s.dir,loop:r,children:(0,Pe.jsx)(zo.div,h(h({role:"tablist","aria-orientation":s.orientation},i),{},{ref:t}))}))});rZ.displayName=aZ;var iZ="TabsTrigger",sZ=o.forwardRef((e,t)=>{const n=e.__scopeTabs,a=e.value,r=e.disabled,i=void 0!==r&&r,s=Ie(e,YI),o=tZ(iZ,n),l=XI(n),c=cZ(o.baseId,a),d=dZ(o.baseId,a),u=a===o.value;return(0,Pe.jsx)(qI,h(h({asChild:!0},l),{},{focusable:!i,active:u,children:(0,Pe.jsx)(zo.button,h(h({type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c},s),{},{ref:t,onMouseDown:$o(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(a)}),onKeyDown:$o(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(a)}),onFocus:$o(e.onFocus,()=>{const e="manual"!==o.activationMode;u||i||!e||o.onValueChange(a)})}))}))});sZ.displayName=iZ;var oZ="TabsContent",lZ=o.forwardRef((e,t)=>{const n=e.__scopeTabs,a=e.value,r=e.forceMount,i=e.children,s=Ie(e,KI),l=tZ(oZ,n),c=cZ(l.baseId,a),d=dZ(l.baseId,a),u=a===l.value,m=o.useRef(u);return o.useEffect(()=>{const e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,Pe.jsx)(Sl,{present:r||u,children:n=>{let a=n.present;return(0,Pe.jsx)(zo.div,h(h({"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!a,id:d,tabIndex:0},s),{},{ref:t,style:h(h({},e.style),{},{animationDuration:m.current?"0s":void 0}),children:a&&i}))}})});function cZ(e,t){return"".concat(e,"-trigger-").concat(t)}function dZ(e,t){return"".concat(e,"-content-").concat(t)}lZ.displayName=oZ;var uZ=rZ,mZ=sZ,pZ=lZ;const hZ=["className"],fZ=["className"],xZ=["className"],gZ=nZ,vZ=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,hZ);return(0,Pe.jsx)(uZ,h({ref:t,className:Ro("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n)},a))});vZ.displayName=uZ.displayName;const bZ=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,fZ);return(0,Pe.jsx)(mZ,h({ref:t,className:Ro("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",n)},a))});bZ.displayName=mZ.displayName;const yZ=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,xZ);return(0,Pe.jsx)(pZ,h({ref:t,className:Ro("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n)},a))});function jZ(e,t){let n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a.signal,i=a.edges,s=null;const o=null!=i&&i.includes("leading"),l=null==i||i.includes("trailing"),c=()=>{null!==s&&(e.apply(n,s),n=void 0,s=null)};let d=null;const u=()=>{null!=d&&clearTimeout(d),d=setTimeout(()=>{d=null,l&&c(),m()},t)},m=()=>{null!==d&&(clearTimeout(d),d=null),n=void 0,s=null},p=function(){if(null!==r&&void 0!==r&&r.aborted)return;n=this;for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];s=t;const i=null==d;u(),o&&i&&c()};return p.schedule=u,p.cancel=m,p.flush=()=>{c()},null===r||void 0===r||r.addEventListener("abort",m,{once:!0}),p}function wZ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=n.leading,r=void 0===a||a,i=n.trailing;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!==typeof n&&(n={});const a=n,r=a.leading,i=void 0!==r&&r,s=a.trailing,o=void 0===s||s,l=a.maxWait,c=Array(2);let d;i&&(c[0]="leading"),o&&(c[1]="trailing");let u=null;const m=jZ(function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];d=e.apply(this,n),u=null},t,{edges:c}),p=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return null!=l&&(null===u&&(u=Date.now()),Date.now()-u>=l)?(d=e.apply(this,n),u=Date.now(),m.cancel(),m.schedule(),d):(m.apply(this,n),d)};return p.cancel=m.cancel,p.flush=()=>(m.flush(),d),p}(e,t,{leading:r,maxWait:t,trailing:void 0===i||i})}function NZ(e){return"__proto__"===e}yZ.displayName=pZ.displayName;const AZ=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function kZ(e){switch(typeof e){case"number":case"symbol":default:return!1;case"string":return""!==e&&!e.startsWith(".")&&!e.endsWith(".")&&AZ.test(e)}}function EZ(e){var t;return"string"===typeof e||"symbol"===typeof e?e:Object.is(null===e||void 0===e||null===(t=e.valueOf)||void 0===t?void 0:t.call(e),-0)?"-0":String(e)}function DZ(e){if(null==e)return"";if("string"===typeof e)return e;if(Array.isArray(e))return e.map(DZ).join(",");const t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}function _Z(e){if(Array.isArray(e))return e.map(EZ);if("symbol"===typeof e)return[e];const t=[],n=(e=DZ(e)).length;if(0===n)return t;let a=0,r="",i="",s=!1;for(46===e.charCodeAt(0)&&t.push("");a<n;){const o=e[a];if(i)"\\"===o&&a+1<n?(a++,r+=e[a]):o===i?i="":r+=o;else if(s)'"'===o||"'"===o?i=o:"]"===o?(s=!1,t.push(r),r=""):r+=o;else if("["===o)s=!0,r&&(t.push(r),r="");else if("."===o){r&&(t.push(r),r="");const n=e[a+1];void 0!==n&&"."!==n||t.push("")}else r+=o;a++}return r&&t.push(r),t}
2function CZ(e,t,n){if(null==e)return n;switch(typeof t){case"string":{if(NZ(t))return n;const a=e[t];return void 0===a?kZ(t)&&!Object.hasOwn(e,t)?CZ(e,_Z(t),n):n:a}case"number":case"symbol":{"number"===typeof t&&(t=EZ(t));const a=e[t];return void 0===a?n:a}default:{var a;if(Array.isArray(t))return function(e,t,n){if(0===t.length)return n;let a=e;for(let r=0;r<t.length;r++){if(null==a)return n;if(NZ(t[r]))return n;a=a[t[r]]}return void 0===a?n:a}(e,t,n);if(NZ(t=Object.is(null===(a=t)||void 0===a?void 0:a.valueOf(),-0)?"-0":String(t)))return n;const r=e[t];return void 0===r?n:r}}}function FZ(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function SZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e.reduce((e,t,a)=>{var r=n[a-1];return"string"===typeof r?e+r+t:void 0!==r?e+FZ(r)+t:e+t},"")}var MZ=e=>0===e?0:e>0?1:-1,OZ=e=>"number"==typeof e&&e!=+e,RZ=e=>"string"===typeof e&&e.indexOf("%")===e.length-1,HZ=e=>("number"===typeof e||e instanceof Number)&&!OZ(e),PZ=e=>HZ(e)||"string"===typeof e,LZ=0,TZ=e=>{var t=++LZ;return"".concat(e||"").concat(t)},IZ=function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!HZ(e)&&"string"!==typeof e)return a;
2if(RZ(e)){if(null==t)return a;var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return OZ(n)&&(n=a),r&&null!=t&&n>t&&(n=t),n},ZZ=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},a=0;a<t;a++){if(n[String(e[a])])return!0;n[String(e[a])]=!0}return!1};function BZ(e,t,n){return HZ(e)&&HZ(t)?FZ(e+n*(t-e)):t}var VZ=e=>null===e||"undefined"===typeof e,zZ=e=>VZ(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function qZ(e){return null!=e}function UZ(){}var WZ=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("undefined"!==typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,()=>a[i++]))}},YZ=(e,t,n)=>{var a=n.width,r=void 0===a?"100%":a,i=n.height,s=void 0===i?"100%":i,o=n.aspect,l=n.maxHeight,c=RZ(r)?e:Number(r),d=RZ(s)?t:Number(s);return o&&o>0&&(c?d=c/o:d&&(c=d*o),l&&null!=d&&d>l&&(d=l)),{calculatedWidth:c,calculatedHeight:d}},KZ={width:0,height:0,overflow:"visible"},GZ={width:0,overflowX:"visible"}
2,$Z={height:0,overflowY:"visible"},QZ={},XZ=e=>{var t=e.width,n=e.height,a=RZ(t),r=RZ(n);return a&&r?KZ:a?GZ:r?$Z:QZ};function JZ(e){return Number.isFinite(e)}function eB(e){return"number"===typeof e&&e>0&&Number.isFinite(e)}function tB(){return tB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},tB.apply(null,arguments)}function nB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function aB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nB(Object(n),!0).forEach(function(t){rB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iB=(0,o.createContext)({width:-1,height:-1});function sB(e){var t=e.children,n=e.width,a=e.height,r=(0,o.useMemo)(()=>({width:n,height:a}),[n,a]);return function(e){return eB(e.width)&&eB(e.height)}(r)?o.createElement(iB.Provider,{value:r},t):null}var oB=()=>(0,o.useContext)(iB),lB=(0,o.forwardRef)((e,t)=>{var n=e.aspect,a=e.initialDimension,r=void 0===a?{width:-1,height:-1}:a,i=e.width,s=e.height,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,u=e.maxHeight,m=e.children,p=e.debounce,h=void 0===p?0:p,f=e.id,x=e.className,g=e.onResize,v=e.style,b=void 0===v?{}:v,y=(0,o.useRef)(null),j=(0,o.useRef)();j.current=g,(0,o.useImperativeHandle)(t,()=>y.current);var w=Ue((0,o.useState)({containerWidth:r.width,containerHeight:r.height}),2),N=w[0],A=w[1],k=(0,o.useCallback)((e,t)=>{A(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]);(0,o.useEffect)(()=>{if(null==y.current||"undefined"===typeof ResizeObserver)return UZ;var e=e=>{var t,n=e[0].contentRect,a=n.width,r=n.height;k(a,r),null===(t=j.current)||void 0===t||t.call(j,a,r)};h>0&&(e=wZ(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=y.current.getBoundingClientRect(),a=n.width,r=n.height;return k(a,r),t.observe(y.current),()=>{t.disconnect()}},[k,h]);var E=N.containerWidth,D=N.containerHeight;WZ(!n||n>0,"The aspect(%s) must be greater than zero.",n);var _=YZ(E,D,{width:i,height:s,aspect:n,maxHeight:u}),C=_.calculatedWidth,F=_.calculatedHeight;return WZ(null!=C&&C>0||null!=F&&F>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",C,F,i,s,c,d,n),o.createElement("div",{id:f?"".concat(f):void 0,className:js("recharts-responsive-container",x),style:aB(aB({},b),{},{width:i,height:s,minWidth:c,minHeight:d,maxHeight:u}),ref:y},o.createElement("div",{style:XZ({width:i,height:s})},o.createElement(sB,{width:C,height:F},m)))}),cB=(0,o.forwardRef)((e,t)=>{var n=oB();if(eB(n.width)&&eB(n.height))return e.children;var a=function(e){var t=e.width,n=e.height,a=e.aspect,r=t,i=n;return void 0===r&&void 0===i?(r="100%",i="100%"):void 0===r?r=a&&a>0?void 0:"100%":void 0===i&&(i=a&&a>0?void 0:"100%"),{width:r,height:i}}({width:e.width,height:e.height,aspect:e.aspect}),r=a.width,i=a.height,s=YZ(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight}),l=s.calculatedWidth,c=s.calculatedHeight;return HZ(l)&&HZ(c)?o.createElement(sB,{width:l,height:c},e.children):o.createElement(lB,tB({},e,{width:r,height:i,ref:t}))}),dB=Symbol.for("immer-nothing"),uB=Symbol.for("immer-draftable"),mB=Symbol.for("immer-state");function pB(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var hB=Object,fB=hB.getPrototypeOf,xB="constructor",gB="prototype",vB="configurable",bB="enumerable",yB="writable",jB="value",wB=e=>!!e&&!!e[mB];function NB(e){var t;return!!e&&(EB(e)||MB(e)||!!e[uB]||!(null===(t=e[xB])||void 0===t||!t[uB])||OB(e)||RB(e))}var AB=hB[gB][xB].toString(),kB=new WeakMap;function EB(e){if(!e||!HB(e))return!1;const t=fB(e);if(null===t||t===hB[gB])return!0;const n=hB.hasOwnProperty.call(t,xB)&&t[xB];if(n===Object)return!0;
2if(!PB(n))return!1;let a=kB.get(n);return void 0===a&&(a=Function.toString.call(n),kB.set(n,a)),a===AB}function DB(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===_B(e)){(n?Reflect.ownKeys(e):hB.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function _B(e){const t=e[mB];return t?t.type_:MB(e)?1:OB(e)?2:RB(e)?3:0}var CB=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_B(e))?e.has(t):hB[gB].hasOwnProperty.call(e,t)},FB=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_B(e))?e.get(t):e[t]},SB=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_B(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n};var MB=Array.isArray,OB=e=>e instanceof Map,RB=e=>e instanceof Set,HB=e=>"object"===typeof e,PB=e=>"function"===typeof e,LB=e=>"boolean"===typeof e;var TB=e=>e.copy_||e.base_,IB=e=>e.modified_?e.copy_:e.base_;function ZB(e,t){if(OB(e))return new Map(e);if(RB(e))return new Set(e);if(MB(e))return Array[gB].slice.call(e);const n=EB(e);if(!0===t||"class_only"===t&&!n){const t=hB.getOwnPropertyDescriptors(e);delete t[mB];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],i=t[r];!1===i[yB]&&(i[yB]=!0,i[vB]=!0),(i.get||i.set)&&(t[r]={[vB]:!0,[yB]:!0,[bB]:i[bB],[jB]:e[r]})}return hB.create(fB(e),t)}{const t=fB(e);if(null!==t&&n)return h({},e);const a=hB.create(t);return hB.assign(a,e)}}function BB(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return zB(e)||wB(e)||!NB(e)||(_B(e)>1&&hB.defineProperties(e,{set:VB,add:VB,clear:VB,delete:VB}),hB.freeze(e),t&&DB(e,(e,t)=>{BB(t,!0)},!1)),e}var VB={[jB]:function(){pB(2)}};function zB(e){return null===e||!HB(e)||hB.isFrozen(e)}var qB="MapSet",UB="Patches",WB="ArrayMethods",YB={};function KB(e){const t=YB[e];return t||pB(0),t}var GB,$B=e=>!!YB[e];var QB=()=>GB;function XB(e,t){t&&(e.patchPlugin_=KB(UB),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function JB(e){eV(e),e.drafts_.forEach(nV),e.drafts_=null}function eV(e){e===GB&&(GB=e.parent_)}var tV=e=>GB={drafts_:[],parent_:GB,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$B(qB)?KB(qB):void 0,arrayMethodsPlugin_:$B(WB)?KB(WB):void 0};function nV(e){const t=e[mB];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function aV(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[mB].modified_&&(JB(t),pB(4)),NB(e)&&(e=rV(t,e));const a=t.patchPlugin_;a&&a.generateReplacementPatches_(n[mB].base_,e,t)}else e=rV(t,n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&BB(t,n)}(t,e,!0),JB(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==dB?e:void 0}function rV(e,t){if(zB(t))return t;const n=t[mB];if(!n){return uV(t,e.handledSet_,e)}if(!sV(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const t=n.callbacks_;if(t)for(;t.length>0;){t.pop()(e)}cV(n,e)}return n.copy_}function iV(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var sV=(e,t)=>e.scope_===t,oV=[];function lV(e,t,n,a){var r;const i=TB(e),s=e.type_;if(void 0!==a){if(FB(i,a,s)===t)return void SB(i,a,n,s)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;DB(i,(e,n)=>{if(wB(n)){const a=t.get(n)||[];a.push(e),t.set(n,a)}})}const o=null!==(r=e.draftLocations_.get(t))&&void 0!==r?r:oV;for(const l of o)SB(i,l,n,s)}function cV(e,t){var n,a;if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(null!==(n=null===(a=e.assigned_)||void 0===a?void 0:a.size)&&void 0!==n?n:0)>0)){const n=t.patchPlugin_;if(n){const a=n.getPath(e);a&&n.generatePatches_(e,a,t)}iV(e)}}function dV(e,t,n){const a=e.scope_;if(wB(n)){const r=n[mB];sV(r,a)&&r.callbacks_.push(function(){gV(e);const a=IB(r);lV(e,n,a,t)})}else NB(n)&&e.callbacks_.push(function(){const r=TB(e);var i;3===e.type_?r.has(n)&&uV(n,a.handledSet_,a):FB(r,t,e.type_)===n&&a.drafts_.length>1&&!0===(null!==(i=e.assigned_.get(t))&&void 0!==i&&i)&&e.copy_&&uV(FB(e.copy_,t,e.type_),a.handledSet_,a)})}function uV(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||wB(e)||t.has(e)||!NB(e)||zB(e)||(t.add(e),DB(e,(a,r)=>{if(wB(r)){const t=r[mB];if(sV(t,n)){const n=IB(t);SB(e,a,n,e.type_),iV(t)}}else NB(r)&&uV(r,t,n)})),e}var mV={get(e,t){if(t===mB)return e;let n=e.scope_.arrayMethodsPlugin_;const a=1===e.type_&&"string"===typeof t;if(a&&null!==n&&void 0!==n&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const r=TB(e);if(!CB(r,t,e.type_))return function(e,t,n){var a;const r=fV(t,n);return r?jB in r?r[jB]:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,r,t);const i=r[t];if(e.finalized_||!NB(i))return i;if(a&&e.operationMethod&&null!==n&&void 0!==n&&n.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return i;if(i===hV(e.base_,t)||function(e,t,n){var a;if(1!==e.type_||!e.allIndicesReassigned_||null!==(a=e.assigned_)&&void 0!==a&&a.get(t)||!NB(n)||n[mB])return!1;return e.baseRefs_.has(n)}(e,t,i)){gV(e);const n=1===e.type_?+t:t,a=vV(e.scope_,i,e,n);return e.copy_[n]=a}return i},has:(e,t)=>t in TB(e),ownKeys:e=>Reflect.ownKeys(TB(e)),set(e,t,n){const a=fV(TB(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=hV(TB(e),t),r=null===a||void 0===a?void 0:a[mB];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,a)&&(void 0!==n||CB(e.base_,t,e.type_)))return!0;gV(e),xV(e)}return e.copy_[t]===n&&(void 0!==n||CB(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),dV(e,t,n)),!0},deleteProperty:(e,t)=>(gV(e),void 0!==hV(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),xV(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=TB(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{[yB]:!0,[vB]:1!==e.type_||"length"!==t,[bB]:a[bB],[jB]:n[t]}:a},defineProperty(){pB(11)},getPrototypeOf:e=>fB(e.base_),setPrototypeOf(){pB(12)}},pV={};for(let Qge in mV){let e=mV[Qge];pV[Qge]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function hV(e,t){const n=e[mB];return(n?TB(n):e)[t]}function fV(e,t){if(!(t in e))return;let n=fB(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=fB(n)}}function xV(e){e.modified_||(e.modified_=!0,e.parent_&&xV(e.parent_))}function gV(e){e.copy_||(e.assigned_=new Map,e.copy_=ZB(e.base_,e.scope_.immer_.useStrictShallowCopy_))}pV.deleteProperty=function(e,t){return pV.set.call(this,e,t,void 0)}
2,pV.set=function(e,t,n){return mV.set.call(this,e[0],t,n,e[0])};function vV(e,t,n,a){var r,i;const s=OB(t)?KB(qB).proxyMap_(t,n):RB(t)?KB(qB).proxySet_(t,n):function(e,t){const n=MB(e),a={type_:n?1:0,scope_:t?t.scope_:QB(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let r=a,i=mV;n&&(r=[a],i=pV);const s=Proxy.revocable(r,i),o=s.revoke,l=s.proxy;return a.draft_=l,a.revoke_=o,[l,a]}(t,n),o=Ue(s,2),l=o[0],c=o[1];return(null!==(r=null===n||void 0===n?void 0:n.scope_)&&void 0!==r?r:QB()).drafts_.push(l),c.callbacks_=null!==(i=null===n||void 0===n?void 0:n.callbacks_)&&void 0!==i?i:[],c.key_=a,n&&void 0!==a?function(e,t,n){e.callbacks_.push(function(a){var r,i;const s=t;if(!s||!sV(s,a))return;null===(r=a.mapSetPlugin_)||void 0===r||r.fixSetContents(s);const o=IB(s);lV(e,null!==(i=s.draft_)&&void 0!==i?i:s,o,n),cV(s,a)})}(n,c,a):c.callbacks_.push(function(e){var t;null===(t=e.mapSetPlugin_)||void 0===t||t.fixSetContents(c);const n=e.patchPlugin_;c.modified_&&n&&n.generatePatches_(c,[],e)}),l}function bV(e){return wB(e)||pB(10),yV(e)}function yV(e){if(!NB(e)||zB(e))return e;const t=e[mB];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ZB(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=ZB(e,!0);return DB(n,(e,t)=>{SB(n,e,yV(t))},a),t&&(t.finalized_=!1),n}var jV=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(PB(e)&&!PB(t)){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return a.produce(e,e=>t.call(this,e,...i))}}let a;if(PB(t)||pB(6),void 0===n||PB(n)||pB(7),NB(e)){const r=tV(this),i=vV(r,e,void 0);let s=!0;try{a=t(i),s=!1}finally{s?JB(r):eV(r)}return XB(r,n),aV(a,r)}if(!e||!HB(e)){if(a=t(e),void 0===a&&(a=e),a===dB&&(a=void 0),this.autoFreeze_&&BB(a,!0),n){const t=[],r=[];KB(UB).generateReplacementPatches_(e,a,{patches_:t,inversePatches_:r}),n(t,r)}return a}pB(1)},this.produceWithPatches=(e,n)=>{if(PB(e))return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;const i=this.produce(e,n,(e,t)=>{a=e,r=t});return[i,a,r]},LB(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),LB(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),LB(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){NB(e)||pB(8),wB(e)&&(e=bV(e));const t=tV(this),n=vV(t,e,void 0);return n[mB].isManual_=!0,eV(t),n}finishDraft(e,t){const n=e&&e[mB];n&&n.isManual_||pB(9);const a=n.scope_;return XB(a,t),aV(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>-1&&(t=t.slice(n+1));const a=KB(UB).applyPatches_;return wB(e)?a(e,t):this.produce(e,e=>a(e,t))}},wV=jV.produce;function NV(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var AV=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),kV=()=>Math.random().toString(36).substring(7).split("").join("."),EV={INIT:"@@redux/INIT".concat(kV()),REPLACE:"@@redux/REPLACE".concat(kV()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(kV())};function DV(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function _V(e,t,n){if("function"!==typeof e)throw new Error(NV(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(NV(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(NV(1));return n(_V)(e,t)}let a=e,r=t,i=new Map,s=i,o=0,l=!1;
2function c(){s===i&&(s=new Map,i.forEach((e,t)=>{s.set(t,e)}))}function d(){if(l)throw new Error(NV(3));return r}function u(e){if("function"!==typeof e)throw new Error(NV(4));if(l)throw new Error(NV(5));let t=!0;c();const n=o++;return s.set(n,e),function(){if(t){if(l)throw new Error(NV(6));t=!1,c(),s.delete(n),i=null}}}function m(e){if(!DV(e))throw new Error(NV(7));if("undefined"===typeof e.type)throw new Error(NV(8));if("string"!==typeof e.type)throw new Error(NV(17));if(l)throw new Error(NV(9));try{l=!0,r=a(r,e)}finally{l=!1}return(i=s).forEach(e=>{e()}),e}m({type:EV.INIT});return{dispatch:m,subscribe:u,getState:d,replaceReducer:function(e){if("function"!==typeof e)throw new Error(NV(10));a=e,m({type:EV.REPLACE})},[AV]:function(){const e=u;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(NV(11));function n(){const e=t;e.next&&e.next(d())}n();return{unsubscribe:e(n)}},[AV](){return this}}}}}function CV(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];0,"function"===typeof e[a]&&(n[a]=e[a])}const a=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:EV.INIT}))throw new Error(NV(12));if("undefined"===typeof n(void 0,{type:EV.PROBE_UNKNOWN_ACTION()}))throw new Error(NV(13))})}(n)}catch(zf){r=zf}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(r)throw r;let i=!1;const s={};for(let r=0;r<a.length;r++){const o=a[r],l=n[o],c=e[o],d=l(c,t);if("undefined"===typeof d){t&&t.type;throw new Error(NV(14))}s[o]=d,i=i||d!==c}return i=i||a.length!==Object.keys(e).length,i?s:e}}function FV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce((e,t)=>function(){return e(t(...arguments))})}function SV(e){return DV(e)&&"type"in e&&"string"===typeof e.type}function MV(e){return t=>{let n=t.dispatch,a=t.getState;return t=>r=>"function"===typeof r?r(n,a,e):t(r)}}var OV=MV(),RV=MV;const HV=["reducerPath"];var PV="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?FV:FV.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function LV(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(Sz(0));return h(h({type:e,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>"".concat(e),n.type=e,n.match=t=>SV(t)&&t.type===e,n}var TV=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function IV(e){return NB(e)?wV(e,()=>{}):e}function ZV(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var BV="RTK_autoBatch",VV=()=>e=>({payload:e,meta:{[BV]:!0}}),zV=e=>t=>{setTimeout(t,e)},qV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let a=!0,r=!1,i=!1;const s=new Set,o="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?(l=window.requestAnimationFrame,c=100,e=>{let t=!1;const n=()=>{t||(t=!0,cancelAnimationFrame(a),clearTimeout(r),e())},a=l(n),r=setTimeout(n,c)}):zV(10):"callback"===e.type?e.queueNotification:zV(e.timeout);var l,c;const d=()=>{i=!1,r&&(r=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{var t;return a=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[BV]),r=!a,r&&(i||(i=!0,o(d))),n.dispatch(e)}finally{a=!0}}})}};function UV(e){const t=function(e){const t=null!==e&&void 0!==e?e:{},n=t.thunk,a=void 0===n||n;t.immutableCheck,t.serializableCheck,t.actionCreatorCheck;let r=new TV;return a&&(function(e){return"boolean"===typeof e}(a)?r.push(OV):r.push(RV(a.extraArgument))),r},n=e||{},a=n.reducer,r=void 0===a?void 0:a,i=n.middleware,s=n.devTools,o=void 0===s||s,l=(n.duplicateMiddlewareCheck,n.preloadedState),c=void 0===l?void 0:l,d=n.enhancers,u=void 0===d?void 0:d;let m,p;if("function"===typeof r)m=r;else{if(!DV(r))throw new Error(Sz(1));m=CV(r)}p="function"===typeof i?i(t):t();let f=FV;o&&(f=PV(h({trace:!1},"object"===typeof o&&o)));const x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,a)=>{const r=e(n,a);let i=()=>{throw new Error(NV(15))};const s={getState:r.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return i(e,...n)}},o=t.map(e=>e(s));return i=FV(...o)(r.dispatch),h(h({},r),{},{dispatch:i})}}(...p),g=(e=>function(t){const n=(null!==t&&void 0!==t?t:{}).autoBatch,a=void 0===n||n;let r=new TV(e);return a&&r.push(qV("object"===typeof a?a:void 0)),r})(x);return _V(m,c,f(..."function"===typeof u?u(g):g()))}function WV(e){const t={},n=[];let a;const r={addCase(e,n){const a="string"===typeof e?e:e.type;if(!a)throw new Error(Sz(28));if(a in t)throw new Error(Sz(29));return t[a]=n,r},addAsyncThunk:(e,a)=>
2(a.pending&&(t[e.pending.type]=a.pending),a.rejected&&(t[e.rejected.type]=a.rejected),a.fulfilled&&(t[e.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:e.settled,reducer:a.settled}),r),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),r),addDefaultCase:e=>(a=e,r)};return e(r),[t,n,a]}var YV=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var KV=Symbol.for("rtk-slice-createasyncthunk");function GV(e,t){return"".concat(e,"/").concat(t)}function $V(){var e;let t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).creators;const n=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[KV];return function(e){const t=e.name,a=e.reducerPath,r=void 0===a?t:a;if(!t)throw new Error(Sz(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return h({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(Sz(12));if(n in o.sliceCaseReducersByType)throw new Error(Sz(13));return o.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(o.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,l)};function c(){const t=Ue("function"===typeof e.extraReducers?WV(e.extraReducers):[e.extraReducers],3),n=t[0],a=void 0===n?{}:n,r=t[1],i=void 0===r?[]:r,s=t[2],l=void 0===s?void 0:s,c=h(h({},a),o.sliceCaseReducersByType);return function(e,t){let n,a=Ue(WV(t),3),r=a[0],i=a[1],s=a[2];if(function(e){return"function"===typeof e}(e))n=()=>IV(e());else{const t=IV(e);n=()=>t}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,a=[r[t.type],...i.filter(e=>(0,e.matcher)(t)).map(e=>e.reducer)];return 0===a.filter(e=>!!e).length&&(a=[s]),a.reduce((e,n)=>{if(n){if(wB(e)){const a=n(e,t);return void 0===a?e:a}if(NB(e))return wV(e,e=>n(e,t));{const a=n(e,t);if(void 0===a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}}return e},e)}return o.getInitialState=n,o}(e.initialState,e=>{for(let t in c)e.addCase(t,c[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of i)e.addMatcher(t.matcher,t.reducer);l&&e.addDefaultCase(l)})}s.forEach(a=>{const r=i[a],s={reducerName:a,type:GV(t,a),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(r)?function(e,t,n){let a,r,i=e.type,s=e.reducerName,o=e.createNotation;if("reducer"in t){if(o&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(Sz(17));a=t.reducer,r=t.prepare}else a=t;n.addCase(i,a).exposeCaseReducer(s,a).exposeAction(s,r?LV(i,r):LV(i))}(s,r,l):function(e,t,n,a){let r=e.type,i=e.reducerName;if(!a)throw new Error(Sz(18));const s=t.payloadCreator,o=t.fulfilled,l=t.pending,c=t.rejected,d=t.settled,u=t.options,m=a(r,s,u);n.exposeAction(i,m),o&&n.addCase(m.fulfilled,o);l&&n.addCase(m.pending,l);c&&n.addCase(m.rejected,c);d&&n.addMatcher(m.settled,d);n.exposeCaseReducer(i,{fulfilled:o||JV,pending:l||JV,rejected:c||JV,settled:d||JV})}(s,r,l,n)});const d=e=>e,u=new Map,m=new WeakMap;let p;function f(e,t){return p||(p=c()),p(e,t)}function x(){return p||(p=c()),p.getInitialState()}function g(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function a(e){let r=e[t];return"undefined"===typeof r&&n&&(r=ZV(m,a,x)),r}function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;const a=ZV(u,n,()=>new WeakMap);return ZV(a,t,()=>{const a={};for(const s of Object.entries(null!==(r=e.selectors)&&void 0!==r?r:{})){var r,i=Ue(s,2);const e=i[0],o=i[1];a[e]=QV(o,t,()=>ZV(m,t,x),n)}return a})}return{reducerPath:t,getSelectors:r,get selectors(){return r(a)},selectSlice:a}}const v=h(h({name:t,reducer:f,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:x},g(r)),{},{injectInto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reducerPath,a=Ie(t,HV);const i=null!==n&&void 0!==n?n:r;return e.inject({reducerPath:i,reducer:f},a),h(h({},v),g(i,!0))}});return v}}function QV(e,t,n,a){function r(r){let i=t(r);"undefined"===typeof i&&a&&(i=n());for(var s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];return e(i,...o)}return r.unwrapped=e,r}var XV=$V();function JV(){}var ez="listener",tz="completed",nz="cancelled",az="task-".concat(nz),rz="task-".concat(tz),iz="".concat(ez,"-").concat(nz),sz="".concat(ez,"-").concat(tz),oz=class{constructor(e){m(this,"code",void 0),m(this,"name","TaskAbortError"),m(this,"message",void 0),this.code=e,this.message="".concat("task"," ").concat(nz," (reason: ").concat(e,")")}},lz=(e,t)=>{if("function"!==typeof e)throw new TypeError(Sz(32))},cz=()=>{},dz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cz;return e.catch(t),e},uz=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),mz=e=>{if(e.aborted)throw new oz(e.reason)};function pz(e,t){let n=cz;return new Promise((a,r)=>{const i=()=>r(new oz(e.reason));e.aborted?i():(n=uz(e,i),t.finally(()=>n()).then(a,r))}).finally(()=>{n=cz})}var hz=e=>t=>dz(pz(e,t).then(t=>(mz(e),t))),fz=e=>{const t=hz(e);return e=>t(new Promise(t=>setTimeout(t,e)))},xz=Object.assign,gz={},vz="listenerMiddleware",bz=(e,t)=>(n,a)=>{lz(n);const r=new AbortController;var i;i=r,uz(e,()=>i.abort(e.reason));const s=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof oz?"cancelled":"rejected",error:n}}finally{null===t||void 0===t||t()}})(async()=>{mz(e),mz(r.signal);const t=await n({pause:hz(r.signal),delay:fz(r.signal),signal:r.signal});return mz(r.signal),t},()=>r.abort(rz));return null!==a&&void 0!==a&&a.autoJoin&&t.push(s.catch(cz)),{result:hz(e)(s),cancel(){r.abort(az)}}},yz=(e,t)=>
2(n,a)=>dz((async(n,a)=>{mz(t);let r=()=>{};const i=[new Promise((t,a)=>{let i=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});r=()=>{i(),a()}})];null!=a&&i.push(new Promise(e=>setTimeout(e,a,null)));try{const e=await pz(t,Promise.race(i));return mz(t),e}finally{r()}})(n,a)),jz=e=>{let t=e.type,n=e.actionCreator,a=e.matcher,r=e.predicate,i=e.effect;if(t)r=LV(t).match;else if(n)t=n.type,r=n.match;else if(a)r=a;else if(!r)throw new Error(Sz(21));return lz(i),{predicate:r,type:t,effect:i}},wz=xz(e=>{const t=jz(e),n=t.type,a=t.predicate,r=t.effect;return{id:YV(),effect:r,type:n,predicate:a,pending:new Set,unsubscribe:()=>{throw new Error(Sz(22))}}},{withTypes:()=>wz}),Nz=(e,t)=>{const n=jz(t),a=n.type,r=n.effect,i=n.predicate;return Array.from(e.values()).find(e=>("string"===typeof a?e.type===a:e.predicate===i)&&e.effect===r)},Az=e=>{e.pending.forEach(e=>{e.abort(iz)})},kz=(e,t,n)=>{try{e(t,n)}catch(a){setTimeout(()=>{throw a},0)}},Ez=xz(LV("".concat(vz,"/add")),{withTypes:()=>Ez}),Dz=LV("".concat(vz,"/removeAll")),_z=xz(LV("".concat(vz,"/remove")),{withTypes:()=>_z}),Cz=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("".concat(vz,"/error"),...t)},Fz=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map,n=new Map,a=e.extra,r=e.onError,i=void 0===r?Cz:r;lz(i);const s=e=>{var n;return(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),null!==t&&void 0!==t&&t.cancelActive&&Az(e)}))(null!==(n=Nz(t,e))&&void 0!==n?n:wz(e))};xz(s,{withTypes:()=>s});const o=e=>{const n=Nz(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Az(n)),!!n};xz(o,{withTypes:()=>o});const l=async(e,r,o,l)=>{const c=new AbortController,d=yz(s,c.signal),u=[];try{e.pending.add(c),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:0;n.set(e,a+1)})(e),await Promise.resolve(e.effect(r,xz({},o,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:fz(c.signal),pause:hz(c.signal),extra:a,signal:c.signal,fork:bz(c.signal,u),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(e.abort(iz),n.delete(e))})},cancel:()=>{c.abort(iz),e.pending.delete(c)},throwIfCancelled:()=>{mz(c.signal)}})))}catch(m){m instanceof oz||kz(i,m,{raisedBy:"effect"})}finally{await Promise.all(u),c.abort(sz),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:1;1===a?n.delete(e):n.set(e,a-1)})(e),e.pending.delete(c)}},c=((e,t)=>()=>{for(const e of t.keys())Az(e);e.clear()})(t,n);return{middleware:e=>n=>a=>{if(!SV(a))return n(a);if(Ez.match(a))return s(a.payload);if(Dz.match(a))return void c();if(_z.match(a))return o(a.payload);let r=e.getState();const d=()=>{if(r===gz)throw new Error(Sz(23));return r};let u;try{if(u=n(a),t.size>0){const n=e.getState(),s=Array.from(t.values());for(const t of s){let s=!1;try{s=t.predicate(a,n,r)}catch(m){s=!1,kz(i,m,{raisedBy:"predicate"})}s&&l(t,a,e,d)}}}finally{r=gz}return u},startListening:s,stopListening:o,clearListeners:c}};function Sz(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}function Mz(e,t){if(t){var n=Number.parseInt(t,10);if(!OZ(n))return null===e||void 0===e?void 0:e[n]}}var Oz=XV({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Rz=Oz.reducer,Hz=Oz.actions.createEventEmitter;n(256);function Pz(e){e()}var Lz={notify(){},get:()=>[]};function Tz(e,t){let n,a=Lz,r=0,i=!1;function s(){c.onStateChange&&c.onStateChange()}function o(){r++,n||(n=t?t.addNestedSub(s):e.subscribe(s),a=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Pz(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let a=!0;const r=t={callback:n,next:null,prev:t};return r.prev?r.prev.next=r:e=r,function(){a&&null!==e&&(a=!1,r.next?r.next.prev=r.prev:t=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}function l(){r--,n&&0===r&&(n(),n=void 0,a.clear(),a=Lz)}const c={addNestedSub:function(e){o();const t=a.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:s,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,o())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>a};return c}var Iz=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),Zz=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),Bz=(()=>Iz||Zz?o.useLayoutEffect:o.useEffect)();function Vz(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function zz(e,t){if(Vz(e,t))return!0;
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Vz(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var qz=Symbol.for("react-redux-context"),Uz="undefined"!==typeof globalThis?globalThis:{};function Wz(){var e;if(!o.createContext)return{};const t=null!==(e=Uz[qz])&&void 0!==e?e:Uz[qz]=new Map;let n=t.get(o.createContext);return n||(n=o.createContext(null),t.set(o.createContext,n)),n}var Yz=Wz();var Kz=function(e){const t=e.children,n=e.context,a=e.serverState,r=e.store,i=o.useMemo(()=>{const e=Tz(r);return{store:r,subscription:e,getServerState:a?()=>a:void 0}},[r,a]),s=o.useMemo(()=>r.getState(),[r]);Bz(()=>{const e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,s]);const l=n||Yz;return o.createElement(l.Provider,{value:i},t)};var Gz=Symbol.for("immer-nothing"),$z=Symbol.for("immer-draftable"),Qz=Symbol.for("immer-state");function Xz(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var Jz=Object.getPrototypeOf;function eq(e){return!!e&&!!e[Qz]}function tq(e){var t;return!!e&&(rq(e)||Array.isArray(e)||!!e[$z]||!(null===(t=e.constructor)||void 0===t||!t[$z])||cq(e)||dq(e))}var nq=Object.prototype.constructor.toString(),aq=new WeakMap;function rq(e){if(!e||"object"!==typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!==typeof n)return!1;let a=aq.get(n);return void 0===a&&(a=Function.toString.call(n),aq.set(n,a)),a===nq}function iq(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===sq(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function sq(e){const t=e[Qz];return t?t.type_:Array.isArray(e)?1:cq(e)?2:dq(e)?3:0}function oq(e,t){return 2===sq(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function lq(e,t,n){const a=sq(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n}function cq(e){return e instanceof Map}function dq(e){return e instanceof Set}function uq(e){return e.copy_||e.base_}function mq(e,t){if(cq(e))return new Map(e);if(dq(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=rq(e);
2if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Qz];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(Jz(e),t)}{const t=Jz(e);if(null!==t&&n)return h({},e);const a=Object.create(t);return Object.assign(a,e)}}function pq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return fq(e)||eq(e)||!tq(e)||(sq(e)>1&&Object.defineProperties(e,{set:hq,add:hq,clear:hq,delete:hq}),Object.freeze(e),t&&Object.values(e).forEach(e=>pq(e,!0))),e}var hq={value:function(){Xz(2)}};function fq(e){return null===e||"object"!==typeof e||Object.isFrozen(e)}var xq,gq={};function vq(e){const t=gq[e];return t||Xz(0),t}function bq(){return xq}function yq(e,t){t&&(vq("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jq(e){wq(e),e.drafts_.forEach(Aq),e.drafts_=null}function wq(e){e===xq&&(xq=e.parent_)}function Nq(e){return xq={drafts_:[],parent_:xq,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Aq(e){const t=e[Qz];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function kq(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Qz].modified_&&(jq(t),Xz(4)),tq(e)&&(e=Eq(t,e),t.parent_||_q(t,e)),t.patches_&&vq("Patches").generateReplacementPatches_(n[Qz].base_,e,t.patches_,t.inversePatches_)):e=Eq(t,n,[]),jq(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gz?e:void 0}function Eq(e,t,n){if(fq(t))return t;const a=e.immer_.shouldUseStrictIteration(),r=t[Qz];if(!r)return iq(t,(a,i)=>Dq(e,r,t,a,i,n),a),t;if(r.scope_!==e)return t;if(!r.modified_)return _q(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,s=!1;3===r.type_&&(i=new Set(t),t.clear(),s=!0),iq(i,(a,i)=>Dq(e,r,t,a,i,n,s),a),_q(e,t,!1),n&&e.patches_&&vq("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Dq(e,t,n,a,r,i,s){if(null==r)return;if("object"!==typeof r&&!s)return;const o=fq(r);if(!o||s){if(eq(r)){const s=Eq(e,r,i&&t&&3!==t.type_&&!oq(t.assigned_,a)?i.concat(a):void 0);if(lq(n,a,s),!eq(s))return;e.canAutoFreeze_=!1}else s&&n.add(r);if(tq(r)&&!o){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[a]===r&&o)return;Eq(e,r),t&&t.scope_.parent_||"symbol"===typeof a||!(cq(n)?n.has(a):Object.prototype.propertyIsEnumerable.call(n,a))||_q(e,r)}}}function _q(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pq(t,n)}var Cq={get(e,t){if(t===Qz)return e;const n=uq(e);if(!oq(n,t))return function(e,t,n){var a;const r=Mq(t,n);return r?"value"in r?r.value:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,n,t);const a=n[t];return e.finalized_||!tq(a)?a:a===Sq(e.base_,t)?(Rq(e),e.copy_[t]=Hq(a,e)):a},has:(e,t)=>t in uq(e),ownKeys:e=>Reflect.ownKeys(uq(e)),set(e,t,n){const a=Mq(uq(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=Sq(uq(e),t),r=null===a||void 0===a?void 0:a[Qz];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,a)&&(void 0!==n||oq(e.base_,t)))return!0;Rq(e),Oq(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Sq(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Rq(e),Oq(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=uq(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:a.enumerable,value:n[t]}:a},defineProperty(){Xz(11)},getPrototypeOf:e=>Jz(e.base_),setPrototypeOf(){Xz(12)}},Fq={};function Sq(e,t){const n=e[Qz];return(n?uq(n):e)[t]}function Mq(e,t){if(!(t in e))return;let n=Jz(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Jz(n)}}function Oq(e){e.modified_||(e.modified_=!0,e.parent_&&Oq(e.parent_))}function Rq(e){e.copy_||(e.copy_=mq(e.base_,e.scope_.immer_.useStrictShallowCopy_))}iq(Cq,(e,t)=>{Fq[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Fq.deleteProperty=function(e,t){return Fq.set.call(this,e,t,void 0)},Fq.set=function(e,t,n){return Cq.set.call(this,e[0],t,n,e[0])};function Hq(e,t){const n=cq(e)?vq("MapSet").proxyMap_(e,t):dq(e)?vq("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:bq(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let r=a,i=Cq;n&&(r=[a],i=Fq);const s=Proxy.revocable(r,i),o=s.revoke,l=s.proxy;return a.draft_=l,a.revoke_=o,l}(e,t);return(t?t.scope_:bq()).drafts_.push(n),n}function Pq(e){if(!tq(e)||fq(e))return e;const t=e[Qz];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=mq(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=mq(e,!0);return iq(n,(e,t)=>{lq(n,e,Pq(t))},a),t&&(t.finalized_=!1),n}var Lq=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return a.produce(e,e=>t.call(this,e,...i))}}let a;if("function"!==typeof t&&Xz(6),void 0!==n&&"function"!==typeof n&&Xz
2(7),tq(e)){const r=Nq(this),i=Hq(e,void 0);let s=!0;try{a=t(i),s=!1}finally{s?jq(r):wq(r)}return yq(r,n),kq(a,r)}if(!e||"object"!==typeof e){if(a=t(e),void 0===a&&(a=e),a===Gz&&(a=void 0),this.autoFreeze_&&pq(a,!0),n){const t=[],r=[];vq("Patches").generateReplacementPatches_(e,a,t,r),n(t,r)}return a}Xz(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;const i=this.produce(e,n,(e,t)=>{a=e,r=t});return[i,a,r]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){tq(e)||Xz(8),eq(e)&&(e=function(e){eq(e)||Xz(10);return Pq(e)}(e));const t=Nq(this),n=Hq(e,void 0);return n[Qz].isManual_=!0,wq(t),n}finishDraft(e,t){const n=e&&e[Qz];n&&n.isManual_||Xz(9);const a=n.scope_;return yq(a,t),kq(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>-1&&(t=t.slice(n+1));const a=vq("Patches").applyPatches_;return eq(e)?a(e,t):this.produce(e,e=>a(e,t))}};Lq.produce;var Tq={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Iq=XV({name:"tooltip",initialState:{itemInteraction:{click:Tq,hover:Tq},axisInteraction:{click:Tq,hover:Tq},keyboardInteraction:Tq,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:VV()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=bV(e).tooltipItemPayloads.indexOf(a);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:VV()},removeTooltipEntrySettings:{reducer(e,t){var n=bV(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:VV()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),Zq=Iq.actions,Bq=Zq.addTooltipEntrySettings,Vq=Zq.replaceTooltipEntrySettings,zq=Zq.removeTooltipEntrySettings,qq=Zq.setTooltipSettingsState,Uq=Zq.setActiveMouseOverItemIndex,Wq=Zq.mouseLeaveItem,Yq=Zq.mouseLeaveChart,Kq=Zq.setActiveClickItemIndex,Gq=Zq.setMouseOverAxisIndex,$q=Zq.setMouseClickAxisIndex,Qq=Zq.setSyncInteraction,Xq=Zq.setKeyboardInteraction,Jq=Iq.reducer,eU=XV({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,a=n.startIndex,r=n.endIndex;null!=a&&(e.dataStartIndex=a),null!=r&&(e.dataEndIndex=r)}}}),tU=eU.actions,nU=tU.setChartData,aU=tU.setDataStartEndIndexes,rU=(tU.setComputedData,eU.reducer),iU=XV({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,a,r,i;e.margin.top=null!==(n=t.payload.top)&&void 0!==n?n:0,e.margin.right=null!==(a=t.payload.right)&&void 0!==a?a:0,e.margin.bottom=null!==(r=t.payload.bottom)&&void 0!==r?r:0,e.margin.left
2=null!==(i=t.payload.left)&&void 0!==i?i:0},setScale(e,t){e.scale=t.payload}}}),sU=iU.actions,oU=sU.setMargin,lU=sU.setLayout,cU=sU.setChartSize,dU=sU.setScale,uU=iU.reducer;function mU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var pU=e=>Array.isArray(e)?e:[e];function hU(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every(e=>"function"===typeof e)){const n=e.map(e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e).join(", ");throw new TypeError("".concat(t,"[").concat(n,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var fU="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function xU(){return{s:0,v:void 0,o:null,p:null}}function gU(e){let t={s:0,v:void 0,o:null,p:null};const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).resultEqualityCheck;let a,r=0;function i(){let i=t;for(let e=0,t=arguments.length;e<t;e++){const t=arguments[e];if("function"===typeof t||"object"===typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=xU(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=xU(),e.set(t,i)):i=n}}const s=i;let o;if(1===i.s)o=i.v;else if(o=e.apply(null,arguments),r++,n){var l,c,d;const e=null!==(l=null===(c=a)||void 0===c||null===(d=c.deref)||void 0===d?void 0:d.call(c))&&void 0!==l?l:a;null!=e&&n(e,o)&&(o=e,0!==r&&r--);a="object"===typeof o&&null!==o||"function"===typeof o?new fU(o):o}return s.s=1,s.v=o,o}return i.clearCache=()=>{t={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>r,i.resetResultsCount=()=>{r=0},i}function vU(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r="function"===typeof e?{memoize:e,memoizeOptions:n}:e,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a,i=0,s=0,o={},l=t.pop();"object"===typeof l&&(o=l,l=t.pop()),mU(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const c=h(h({},r),o),d=c.memoize,u=c.memoizeOptions,m=void 0===u?[]:u,p=c.argsMemoize,f=void 0===p?gU:p,x=c.argsMemoizeOptions,g=void 0===x?[]:x,v=(c.devModeChecks,pU(m)),b=pU(g),y=hU(t),j=d(function(){return i++,l.apply(null,arguments)},...v);const w=f(function(){s++;const e=function(e,t){const n=[],a=e.length;for(let r=0;r<a;r++)n.push(e[r].apply(null,t));return n}(y,arguments);return a=j.apply(null,e),a},...b);return Object.assign(w,{resultFunc:l,memoizedResultFunc:j,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var bU=vU(gU),yU=Object.assign(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bU;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));const n=Object.keys(e),a=t(n.map(t=>e[t]),function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.reduce((e,t,a)=>(e[n[a]]=t,e),{})});return a},{withTypes:()=>yU}),jU=n(44),wU=(0,o.createContext)(null),NU=e=>e,AU=()=>{var e=(0,o.useContext)(wU);return e?e.store.dispatch:NU},kU=()=>{},EU=()=>kU,DU=(e,t)=>e===t;function _U(e){var t=(0,o.useContext)(wU);return(0,jU.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:EU,t?t.store.getState:kU,t?t.store.getState:kU,t?e:kU,DU)}function CU(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function FU(e){return null!=e&&"function"!==typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}function SU(e){return null!==e&&("object"===typeof e||"function"===typeof e)}const MU=/^(?:0|[1-9]\d*)$/;function OU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return MU.test(e)}}function RU(e,t,n){return!!SU(n)&&(!!("number"===typeof t&&FU(n)&&OU(t)&&t<n.length||"string"===typeof t&&t in n)&&CU(n[t],e))}function HU(e){return"symbol"===typeof e?1:null===e?2:void 0===e?3:e!==e?4:0}const PU=(e,t,n)=>{if(e!==t){const a=HU(e),r=HU(t);if(a===r&&0===a){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?r-a:a-r}return 0};function LU(e){return"symbol"===typeof e||e instanceof Symbol}const TU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IU=/^\w*$/;function ZU(e,t,n,a){if(null==e)return[];n=a?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map(e=>String(e));const r=(e,t)=>{let n=e;for(let a=0;a<t.length&&null!=n;++a)n=n[t[a]];return n},i=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"===typeof e||Array.isArray(e)||function(e,t){return!Array.isArray(e)&&(!("number"!==typeof e&&"boolean"!==typeof e&&null!=e&&!LU(e))||"string"===typeof e&&(IU.test(e)||!TU.test(e))||null!=t&&Object.hasOwn(t,e))}(e)?e:{key:e,path:_Z(e)}));return e.map(e=>({original:e,criteria:i.map(t=>((e,t)=>null==t||null==e?t:"object"===typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:r(t,e.path):"function"===typeof e?e(t):Array.isArray(e)?r(t,e):"object"===typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>
2{for(let a=0;a<i.length;a++){const r=PU(e.criteria[a],t.criteria[a],n[a]);if(0!==r)return r}return 0}).map(e=>e.original)}function BU(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r=n.length;return r>1&&RU(e,n[0],n[1])?n=[]:r>2&&RU(n[0],n[1],n[2])&&(n=[n[0]]),ZU(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[],a=Math.floor(t),r=(e,t)=>{for(let i=0;i<e.length;i++){const s=e[i];Array.isArray(s)&&t<a?r(s,t+1):n.push(s)}};return r(e,0),n}(n),["asc"])}var VU=e=>e.legend.settings;bU([e=>e.legend.payload,VU],(e,t)=>{var n=t.itemSorter,a=e.flat(1);return n?BU(a,n):a});function zU(e,t){if((r=e.length)>1)for(var n,a,r,i=1,s=e[t[0]],o=s.length;i<r;++i)for(a=s,s=e[t[i]],n=0;n<o;++n)s[n][1]+=s[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function qU(e,t){if((a=e.length)>0){for(var n,a,r,i=0,s=e[0].length;i<s;++i){for(r=n=0;n<a;++n)r+=e[n][i][1]||0;if(r)for(n=0;n<a;++n)e[n][i][1]/=r}zU(e,t)}}function UU(e,t){if((n=e.length)>0){for(var n,a=0,r=e[t[0]],i=r.length;a<i;++a){for(var s=0,o=0;s<n;++s)o+=e[s][a][1]||0;r[a][1]+=r[a][0]=-o/2}zU(e,t)}}function WU(e,t){if((r=e.length)>0&&(a=(n=e[t[0]]).length)>0){for(var n,a,r,i=0,s=1;s<a;++s){for(var o=0,l=0,c=0;o<r;++o){for(var d=e[t[o]],u=d[s][1]||0,m=(u-(d[s-1][1]||0))/2,p=0;p<o;++p){var h=e[t[p]];m+=(h[s][1]||0)-(h[s-1][1]||0)}l+=u,c+=m*u}n[s-1][1]+=n[s-1][0]=i,l&&(i-=c/l)}n[s-1][1]+=n[s-1][0]=i,zU(e,t)}}n.dn(zU),n.dn(qU),n.dn(UU),n.dn(WU),n.dn(YU);Array.prototype.slice;function YU(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function KU(e){return function(){return e}}function GU(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $U(e,t){return e[t]}function QU(e){const t=[];return t.key=e,t}function XU(){var e=KU([]),t=GU,n=zU,a=$U;function r(r){var i,s,o=Array.from(e.apply(this,arguments),QU),l=o.length,c=-1;for(const e of r)for(i=0,++c;i<l;++i)(o[i][c]=[0,+a(e,o[i].key,c,r)]).data=e;for(i=0,s=YU(t(o));i<l;++i)o[s[i]].index=i;return n(o,s),o}return r.keys=function(t){return arguments.length?(e="function"===typeof t?t:KU(Array.from(t)),r):e},r.value=function(e){return arguments.length?(a="function"===typeof e?e:KU(+e),r):a},r.order=function(e){return arguments.length?(t=null==e?GU:"function"===typeof e?e:KU(Array.from(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?zU:e,r):n},r}function JU(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function eW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eW(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aW(e,t,n){return VZ(e)||VZ(t)?n:PZ(t)?CZ(e,t,n):"function"===typeof t?t(e):n}n.dn(KU),n.dn(GU),n.dn(XU);var rW=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,iW=1e-4,sW={sign:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var i=0,s=0,o=0;o<n;++o){var l=e[o],c=null===l||void 0===l?void 0:l[r];if(null!=c){var d=c[1],u=c[0],m=OZ(d)?u:d;m>=0?(c[0]=i,c[1]=i+m,i=d):(c[0]=s,c[1]=s+m,s=d)}}}},expand:qU,none:zU,silhouette:UU,wiggle:WU,positive:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var i=0,s=0;s<n;++s){var o=e[s],l=null===o||void 0===o?void 0:o[r];if(null!=l){var c=OZ(l[1])?l[0]:l[1];c>=0?(l[0]=i,l[1]=i+c,i=l[1]):(l[0]=0,l[1]=0)}}}}}
2,oW=(e,t,n)=>{var a,r=null!==(a=sW[n])&&void 0!==a?a:zU,i=XU().keys(t).value((e,t)=>Number(aW(e,t,0))).order(GU).offset(r),s=i(e);return s.forEach((n,a)=>{n.forEach((n,r)=>{var i=aW(e[r],t[a],0);Array.isArray(i)&&2===i.length&&HZ(i[0])&&HZ(i[1])&&(n[0]=i[0],n[1]=i[1])})}),s};var lW=e=>{var t=e.axis,n=e.ticks,a=e.offset,r=e.bandSize,i=e.entry,s=e.index;if("category"===t.type)return n[s]?n[s].coordinate+a:null;var o=aW(i,t.dataKey,t.scale.domain()[s]);return VZ(o)?null:t.scale(o)-r/2+a},cW=(e,t,n)=>{var a;if(null!=e)return a=Object.keys(e).reduce((a,r)=>{var i=e[r];if(!i)return a;var s=i.stackedData.reduce((e,a)=>{var r=(e=>{var t=e.flat(2).filter(HZ);return[Math.min(...t),Math.max(...t)]})(JU(a,t,n));return JZ(r[0])&&JZ(r[1])?[Math.min(e[0],r[0]),Math.max(e[1],r[1])]:e},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]),[a[0]===1/0?0:a[0],a[1]===-1/0?0:a[1]]},dW=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uW=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mW=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&t&&t.length>=2){for(var r=BU(t,e=>e.coordinate),i=1/0,s=1,o=r.length;s<o;s++){var l=r[s],c=r[s-1];i=Math.min(((null===l||void 0===l?void 0:l.coordinate)||0)-((null===c||void 0===c?void 0:c.coordinate)||0),i)}return i===1/0?0:i}return n?void 0:0};function pW(e){var t=e.tooltipEntrySettings,n=e.dataKey,a=e.payload,r=e.value,i=e.name;return tW(tW({},t),{},{dataKey:n,payload:a,value:r,name:i})}function hW(e,t){return e?String(e):"string"===typeof t?t:void 0}var fW=e=>e.layout.width,xW=e=>e.layout.height,gW=e=>e.layout.scale,vW=e=>e.layout.margin,bW=bU(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),yW=bU(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),jW="data-recharts-item-index",wW="data-recharts-item-id";function NW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function AW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NW(Object(n),!0).forEach(function(t){kW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EW=bU([fW,xW,vW,e=>e.brush.height,function(e){return yW(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return yW(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return bW(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return bW(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},VU,e=>e.legend.size],(e,t,n,a,r,i,s,o,l,c)=>{var d={left:(n.left||0)+r,right:(n.right||0)+i},u=AW(AW({},{top:(n.top||0)+s,bottom:(n.bottom||0)+o}),d),m=u.bottom;u.bottom+=a,u=((e,t,n)=>{if(t&&n){var a=n.width,r=n.height,i=t.align,s=t.verticalAlign,o=t.layout;if(("vertical"===o||"horizontal"===o&&"middle"===s)&&"center"!==i&&HZ(e[i]))return tW(tW({},e),{},{[i]:e[i]+(a||0)});if(("horizontal"===o||"vertical"===o&&"center"===i)&&"middle"!==s&&HZ(e[s]))return tW(tW({},e),{},{[s]:e[s]+(r||0)})}return e})(u,l,c);var p=e-u.left-u.right,h=t-u.top-u.bottom;return AW(AW({brushBottom:m},u),{},{width:Math.max(p,0),height:Math.max(h,0)})}),DW=bU(EW,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),_W=bU(fW,xW,(e,t)=>({x:0,y:0,width:e,height:t})),CW=(0,o.createContext)(null),FW=()=>null!=(0,o.useContext)(CW),SW=e=>e.brush,MW=bU([SW,EW,vW],(e,t,n)=>({height:e.height,x:HZ(e.x)?e.x:t.left,y:HZ(e.y)?e.y:t.top+t.height+t.brushBottom-((null===n||void 0===n?void 0:n.bottom)||0),width:HZ(e.width)?e.width:t.width}));function OW(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var RW=()=>{var e,t=FW(),n=_U(DW),a=_U(MW),r=null===(e=_U(SW))||void 0===e?void 0:e.padding;return t&&a&&r?{width:a.width-r.left-r.right,height:a.height-r.top-r.bottom,x:r.left,y:r.top}:n},HW={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},PW=e=>e.layout.layoutType,LW=()=>_U(PW),TW=e=>{var t=AU(),n=FW(),a=e.width,r=e.height,i=oB(),s=a,l=r;return i&&(s=i.width>0?i.width:a,l=i.height>0?i.height:r),(0,o.useEffect)(()=>{!n&&eB(s)&&eB(l)&&t(cU({width:s,height:l}))},[t,n,s,l]),null};function IW(e){return e?(e=function(e){return LU(e)?NaN:Number(e)}(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0:0===e?e:0}function ZW(e,t,n){n&&"number"!==typeof n&&RU(e,t,n)&&(t=n=void 0),e=IW(e),void 0===t?(t=e,e=0):t=IW(t),n=void 0===n?e<t?1:-1:IW(n);const a=Math.max(Math.ceil((t-e)/(n||1)),0),r=new Array(a);for(let i=0;i<a;i++)r[i]=e,e+=n;return r}function BW(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function VW(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class zW extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YW;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const a of e){var n=Ue(a,2);const e=n[0],t=n[1];this.set(e,t)}}get(e){return super.get(qW(this,e))}has(e){return super.has(qW(this,e))}set(e,t){return super.set(UW(this,e),t)}delete(e){return super.delete(WW(this,e))}}Set;function qW(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)?n.get(a):t}function UW(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)?n.get(a):(n.set(a,t),t)}function WW(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)&&(t=n.get(a),n.delete(a)),t}function YW(e){return null!==e&&"object"===typeof e?e.valueOf():e}
2const KW=Symbol("implicit");function GW(){var e=new zW,t=[],n=[],a=KW;function r(r){let i=e.get(r);if(void 0===i){if(a!==KW)return a;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return r.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new zW;for(const a of n)e.has(a)||e.set(a,t.push(a)-1);return r},r.range=function(e){return arguments.length?(n=Array.from(e),r):n.slice()},r.unknown=function(e){return arguments.length?(a=e,r):a},r.copy=function(){return GW(t,n).unknown(a)},BW.apply(r,arguments),r}function $W(){var e,t,n=GW().unknown(void 0),a=n.domain,r=n.range,i=0,s=1,o=!1,l=0,c=0,d=.5;function u(){var n=a().length,u=s<i,m=u?s:i,p=u?i:s;e=(p-m)/Math.max(1,n-l+2*c),o&&(e=Math.floor(e)),m+=(p-m-e*(n-l))*d,t=e*(1-l),o&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var a=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(r);++a<r;)i[a]=e+a*n;return i}(n).map(function(t){return m+e*t});return r(u?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),u()):a()},n.range=function(e){var t;return arguments.length?(t=Ue(e,2),i=t[0],s=t[1],i=+i,s=+s,u()):[i,s]},n.rangeRound=function(e){var t;return t=Ue(e,2),i=t[0],s=t[1],i=+i,s=+s,o=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(o=!!e,u()):o},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},n.copy=function(){return $W(a(),[i,s]).round(o).paddingInner(l).paddingOuter(c).align(d)},BW.apply(u(),arguments)}function QW(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return QW(t())},e}function XW(){return QW($W.apply(null,arguments).paddingInner(1))}const JW=Math.sqrt(50),eY=Math.sqrt(10),tY=Math.sqrt(2);function nY(e,t,n){const a=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(a)),i=a/Math.pow(10,r),s=i>=JW?10:i>=eY?5:i>=tY?2:1;let o,l,c;return r<0?(c=Math.pow(10,-r)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?nY(e,t,2*n):[o,l,c]}function aY(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const a=t<e,r=Ue(a?nY(t,e,n):nY(e,t,n),3),i=r[0],s=r[1],o=r[2];if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let d=0;d<l;++d)c[d]=(s-d)/-o;else for(let d=0;d<l;++d)c[d]=(s-d)*o;else if(o<0)for(let d=0;d<l;++d)c[d]=(i+d)/-o;else for(let d=0;d<l;++d)c[d]=(i+d)*o;return c}function rY(e,t,n){return nY(e=+e,t=+t,n=+n)[2]}function iY(e,t,n){n=+n;const a=(t=+t)<(e=+e),r=a?rY(t,e,n):rY(e,t,n);return(a?-1:1)*(r<0?1/-r:r)}function sY(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oY(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lY(e){let t,n,a;function r(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<i){if(0!==t(a,a))return i;do{const t=r+i>>>1;n(e[t],a)<0?r=t+1:i=t}while(r<i)}return r}return 2!==e.length?(t=sY,n=(t,n)=>sY(e(t),n),a=(t,n)=>e(t)-n):(t=e===sY||e===oY?e:cY,n=e,a=e),{left:r,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=r(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<i){if(0!==t(a,a))return i;do{const t=r+i>>>1;n(e[t],a)<=0?r=t+1:i=t}while(r<i)}return r}}}function cY(){return 0}function dY(e){return null===e?NaN:+e}const uY=lY(sY),mY=uY.right,pY=(uY.left,lY(dY).center,mY);function hY(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fY(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function xY(){}n.dn(hY);var gY=.7,vY=1/gY,bY="\\s*([+-]?\\d+)\\s*",yY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wY=/^#([0-9a-f]{3,8})$/,NY=new RegExp("^rgb\\(".concat(bY,",").concat(bY,",").concat(bY,"\\)$")),AY=new RegExp("^rgb\\(".concat(jY,",").concat(jY,",").concat(jY,"\\)$")),kY=new RegExp("^rgba\\(".concat(bY,",").concat(bY,",").concat(bY,",").concat(yY,"\\)$")),EY=new RegExp("^rgba\\(".concat(jY,",").concat(jY,",").concat(jY,",").concat(yY,"\\)$")),DY=new RegExp("^hsl\\(".concat(yY,",").concat(jY,",").concat(jY,"\\)$")),_Y=ne
vendor: 4,998 bytes, line 2
2w RegExp("^hsla\\(".concat(yY,",").concat(jY,",").concat(jY,",").concat(yY,"\\)$")),CY={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function FY(){return this.rgb().formatHex()}function SY(){return this.rgb().formatRgb()}function MY(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?OY(t):3===n?new PY(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?RY(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?RY(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=NY.exec(e))?new PY(t[1],t[2],t[3],1):(t=AY.exec(e))?new PY(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=kY.exec(e))?RY(t[1],t[2],t[3],t[4]):(t=EY.exec(e))?RY(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=DY.exec(e))?VY(t[1],t[2]/100,t[3]/100,1):(t=_Y.exec(e))?VY(t[1],t[2]/100,t[3]/100,t[4]):CY.hasOwnProperty(e)?OY(CY[e]):"transparent"===e?new PY(NaN,NaN,NaN,0):null}function OY(e){return new PY(e>>16&255,e>>8&255,255&e,1)}function RY(e,t,n,a){return a<=0&&(e=t=n=NaN),new PY(e,t,n,a)}function HY(e,t,n,a){return 1===arguments.length?function(e){return e instanceof xY||(e=MY(e)),e?new PY((e=e.rgb()).r,e.g,e.b,e.opacity):new PY}(e):new PY(e,t,n,null==a?1:a)}function PY(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function LY(){return"#".concat(BY(this.r)).concat(BY(this.g)).concat(BY(this.b))}function TY(){const e=IY(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(ZY(this.r),", ").concat(ZY(this.g),", ").concat(ZY(this.b)).concat(1===e?")":", ".concat(e,")"))}function IY(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ZY(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function BY(e){return((e=ZY(e))<16?"0":"")+e.toString(16)}function VY(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qY(e,t,n,a)}function zY(e){if(e instanceof qY)return new qY(e.h,e.s,e.l,e.opacity);if(e instanceof xY||(e=MY(e)),!e)return new qY;if(e instanceof qY)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,r=Math.min(t,n,a),i=Math.max(t,n,a),s=NaN,o=i-r,l=(i+r)/2;return o?(s=t===i?(n-a)/o+6*(n<a):n===i?(a-t)/o+2:(t-n)/o+4,o/=l<.5?i+r:2-i-r,s*=60):o=l>0&&l<1?0:s,new qY(s,o,l,e.opacity)}function qY(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function UY(e){return(e=(e||0)%360)<0?e+360:e}function WY(e){return Math.max(0,Math.min(1,e||0))}
2function YY(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function KY(e,t,n,a,r){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*a+s*r)/6}function GY(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[a],i=e[a+1],s=a>0?e[a-1]:2*r-i,o=a<t-1?e[a+2]:2*i-r;return KY((n-a/t)*t,s,r,i,o)}}function $Y(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),r=e[(a+t-1)%t],i=e[a%t],s=e[(a+1)%t],o=e[(a+2)%t];return KY((n-a/t)*t,r,i,s,o)}}hY(xY,MY,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:FY,formatHex:FY,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zY(this).formatHsl()},formatRgb:SY,toString:SY}),hY(PY,HY,fY(xY,{brighter(e){return e=null==e?vY:Math.pow(vY,e),new PY(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?gY:Math.pow(gY,e),new PY(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new PY(ZY(this.r),ZY(this.g),ZY(this.b),IY(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LY,formatHex:LY,formatHex8:function(){return"#".concat(BY(this.r)).concat(BY(this.g)).concat(BY(this.b)).concat(BY(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:TY,toString:TY})),hY(qY,function(e,t,n,a){return 1===arguments.length?zY(e):new qY(e,t,n,null==a?1:a)},fY(xY,{brighter(e){return e=null==e?vY:Math.pow(vY,e),new qY(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?gY:Math.pow(gY,e),new qY(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new PY(YY(e>=240?e-240:e+120,r,a),YY(e,r,a),YY(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new qY(UY(this.h),WY(this.s),WY(this.l),IY(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=IY(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(UY(this.h),", ").concat(100*WY(this.s),"%, ").concat(100*WY(this.l),"%").concat(1===e?")":", ".concat(e,")"))}})),n.dn(GY),n.dn($Y);const QY=e=>()=>e;function XY(e,t){return function(n){return e+n*t}}function JY(e){return 1===(e=+e)?eK:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}(t,n,e):QY(isNaN(t)?n:t)}}function eK(e,t){var n=t-e;return n?XY(e,n):QY(isNaN(e)?t:e)}n.dn(QY);const tK=function e(t){var n=JY(t);function a(e,t){var a=n((e=HY(e)).r,(t=HY(t)).r),r=n(e.g,t.g),i=n(e.b,t.b),s=eK(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=r(t),e.b=i(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function nK(e){return function(t){var n,a,r=t.length,i=new Array(r),s=new Array(r),o=new Array(r);for(n=0;n<r;++n)a=HY(t[n]),i[n]=a.r||0,s[n]=a.g||0,o[n]=a.b||0;return i=e(i),s=e(s),o=e(o),a.opacity=1,function(e){return a.r=i(e),a.g=s(e),a.b=o(e),a+""}}}nK(GY),nK($Y);function aK(e,t){var n,a=t?t.length:0,r=e?Math.min(a,e.length):0,i=new Array(r),s=new Array(a);for(n=0;n<r;++n)i[n]=uK(e[n],t[n]);for(;n<a;++n)s[n]=t[n];return function(e){for(n=0;n<r;++n)s[n]=i[n](e);return s}}function rK(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function iK(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function sK(e,t){var n,a={},r={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?a[n]=uK(e[n],t[n]):r[n]=t[n];return function(e){for(n in a)r[n]=a[n](e);return r}}n.dn(function(e,t){return((void 0)(t)?void 0:aK)(e,t)}),n.dn(rK),n.dn(iK),n.dn(sK),n.dn(cK);var oK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lK=new RegExp(oK.source,"g");function cK(e,t){var n,a,r,i=oK.lastIndex=lK.lastIndex=0,s=-1,o=[],l=[];for(e+="",t+="";(n=oK.exec(e))&&(a=lK.exec(t));)(r=a.index)>i&&(r=t.slice(i,r),o[s]?o[s]+=r:o[++s]=r),(n=n[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:iK(n,a)})),i=lK.lastIndex;return i<t.length&&(r=t.slice(i),o[s]?o[s]+=r:o[++s]=r),o.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,a=0;a<t;
vendor: 4,457 bytes, line 2
2++a)o[(n=l[a]).i]=n.x(e);return o.join("")})}function dK(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(i){for(n=0;n<a;++n)r[n]=e[n]*(1-i)+t[n]*i;return r}}function uK(e,t){var n,a=typeof t;return null==t||"boolean"===a?QY(t):("number"===a?iK:"string"===a?(n=MY(t))?(t=n,tK):cK:t instanceof MY?tK:t instanceof Date?rK:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?dK:Array.isArray(t)?aK:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?sK:iK)(e,t)}function mK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function pK(e){return+e}n.dn(dK),n.dn(uK),n.dn(mK);var hK=[0,1];function fK(e){return e}function xK(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function gK(e,t,n){var a=e[0],r=e[1],i=t[0],s=t[1];return r<a?(a=xK(r,a),i=n(s,i)):(a=xK(a,r),i=n(i,s)),function(e){return i(a(e))}}function vK(e,t,n){var a=Math.min(e.length,t.length)-1,r=new Array(a),i=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<a;)r[s]=xK(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(t){var n=pY(e,t,1,a)-1;return i[n](r[n](t))}}function bK(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yK(){var e,t,n,a,r,i,s=hK,o=hK,l=uK,c=fK;function d(){var e=Math.min(s.length,o.length);return c!==fK&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),a=e>2?vK:gK,r=i=null,u}function u(t){return null==t||isNaN(t=+t)?n:(r||(r=a(s.map(e),o,l)))(e(c(t)))}return u.invert=function(n){return c(t((i||(i=a(o,s.map(e),iK)))(n)))},u.domain=function(e){return arguments.length?(s=Array.from(e,pK),d()):s.slice()},u.range=function(e){return arguments.length?(o=Array.from(e),d()):o.slice()},u.rangeRound=function(e){return o=Array.from(e),l=mK,d()},u.clamp=function(e){return arguments.length?(c=!!e||fK,d()):c!==fK},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,a){return e=n,t=a,d()}}function jK(){return yK()(fK,fK)}var wK,NK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function AK(e){if(!(t=NK.exec(e)))throw new Error("invalid format: "+e);var t;return new kK({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function kK(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function EK(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function DK(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+e.slice(n+1)]}function _K(e){return(e=DK(Math.abs(e)))?e[1]:NaN}function CK(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_K(t)/3)))-_K(Math.abs(e)))}function FK(e,t){return function(n,a){for(var r=n.length,i=[],s=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>a&&(o=Math.max(1,a-l)),i.push(n.substring(r-=o,r+o)),!((l+=o+1)>a));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function SK(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}function MK(e){e:for(var t,n=e.length,a=1,r=-1;a<n;++a)switch(e[a]){case".":r=t=a;break;case"0":0===r&&(r=a),t=a;break;default:if(!+e[a])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}function OK(e,t){var n=DK(e,t);if(!n)return wK=void 0,e.toPrecision(t);var a=n[0],r=n[1],i=r-(wK=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=a.length;return i===s?a:i>s?a+new Array(i-s+1).join("0"):i>0?a.slice(0,i)+"."+a.slice(i):"0."+new Array(1-i).join("0")+DK(e,Math.max(0,t+i-1))[0]}function RK(e,t){var n=DK(e,t);if(!n)return e+"";var a=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}AK.prototype=kK.prototype,kK.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},n.dn(EK),n.dn(_K),n.dn(CK),n.dn(FK),n.dn(SK),n.dn(MK),n.dn(OK),n.dn(RK);const HK={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:EK,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>RK(100*e,t),r:RK,s:OK,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function PK(e){return e}n.dn(PK),n.dn(VK);var LK,TK,IK,ZK=Array.prototype.map,BK=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function VK(e){var t=void 0===e.grouping||void 0===e.thousands?PK:FK(ZK.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?PK:SK(ZK.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",o=void 0===e.minus?"\u2212":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function c(e,c){var d=(e=AK(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,f=e.width,x=e.comma,g=e.precision,v=e.trim,b=e.type;"n"===b?(x=!0,b="g"):HK[b]||(void 0===g&&(g=12),v=!0,b="g"),(h||"0"===d&&"="===u)&&(h=!0,d="0",u="=");var y=(c&&void 0!==c.prefix?c.prefix:"")+("$"===p?n:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),j=("$"===p?a:/[%p]/.test(b)?s:"")+(c&&void 0!==c.suffix?c.suffix:""),w=HK[b],N=/[defgprs%]/.test(b);function A(e){var n,a,s,c=y,p=j;if("c"===b)p=w(e)+p,e="";else{var A=(e=+e)<0||1/e<0;
vendor: 4,089 bytes, line 2
2if(e=isNaN(e)?l:w(Math.abs(e),g),v&&(e=MK(e)),A&&0===+e&&"+"!==m&&(A=!1),c=(A?"("===m?m:o:"-"===m||"("===m?"":m)+c,p=("s"!==b||isNaN(e)||void 0===wK?"":BK[8+wK/3])+p+(A&&"("===m?")":""),N)for(n=-1,a=e.length;++n<a;)if(48>(s=e.charCodeAt(n))||s>57){p=(46===s?r+e.slice(n+1):e.slice(n))+p,e=e.slice(0,n);break}}x&&!h&&(e=t(e,1/0));var k=c.length+e.length+p.length,E=k<f?new Array(f-k+1).join(d):"";switch(x&&h&&(e=t(E+e,E.length?f-p.length:1/0),E=""),u){case"<":e=c+e+p+E;break;case"=":e=c+E+e+p;break;case"^":e=E.slice(0,k=E.length>>1)+c+e+p+E.slice(k);break;default:e=E+c+e+p}return i(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),A.toString=function(){return e+""},A}return{format:c,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(_K(t)/3))),a=Math.pow(10,-n),r=c(((e=AK(e)).type="f",e),{suffix:BK[8+n/3]});return function(e){return r(a*e)}}}}function zK(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_K(t)-_K(e))+1}function qK(e){return Math.max(0,-_K(Math.abs(e)))}function UK(e,t,n,a){var r,i=iY(e,t,n);switch((a=AK(null==a?",f":a)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(r=CK(i,s))||(a.precision=r),IK(a,s);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(r=zK(i,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=r-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(r=qK(i))||(a.precision=r-2*("%"===a.type))}return TK(a)}function WK(e){var t=e.domain;return e.ticks=function(e){var n=t();return aY(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return UK(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,r,i=t(),s=0,o=i.length-1,l=i[s],c=i[o],d=10;for(c<l&&(r=l,l=c,c=r,r=s,s=o,o=r);d-- >0;){if((r=rY(l,c,n))===a)return i[s]=l,i[o]=c,t(i);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}a=r}return e},e}function YK(){var e=jK();return e.copy=function(){return bK(e,YK())},BW.apply(e,arguments),WK(e)}function KK(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,pK),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return KK(e).unknown(t)},e=arguments.length?Array.from(e,pK):[0,1],WK(n)}function GK(e,t){var n,a=0,r=(e=e.slice()).length-1,i=e[a],s=e[r];return s<i&&(n=a,a=r,r=n,n=i,i=s,s=n),e[a]=t.floor(i),e[r]=t.ceil(s),e}function $K(e){return Math.log(e)}function QK(e){return Math.exp(e)}function XK(e){return-Math.log(-e)}function JK(e){return-Math.exp(-e)}function eG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function tG(e){return(t,n)=>-e(-t,n)}function nG(e){const t=e($K,QK),n=t.domain;let a,r,i=10;function s(){return a=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),r=function(e){return 10===e?eG:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(a=tG(a),r=tG(r),e(XK,JK)):e($K,QK),t}return t.base=function(e){return arguments.length?(i=+e,s()):i},t.domain=function(e){return arguments.length?(n(e),s()):n()},t.ticks=e=>{const t=n();let s=t[0],o=t[t.length-1];const l=o<s;if(l){var c=[o,s];s=c[0],o=c[1]}let d,u,m=a(s),p=a(o);const h=null==e?10:+e;let f=[];if(!(i%1)&&p-m<h){if(m=Math.floor(m),p=Math.ceil(p),s>0){for(;m<=p;++m)for(d=1;d<i;++d)if(u=m<0?d/r(-m):d*r(m),!(u<s)){if(u>o)break;f.push(u)}}else for(;m<=p;++m)for(d=i-1;d>=1;--d)if(u=m>0?d/r(-m):d*r(m),!(u<s)){if(u>o)break;f.push(u)}2*f.length<h&&(f=aY(s,o,h))}else f=aY(m,p,Math.min(p-m,h)).map(r);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!==typeof n&&(i%1||null!=(n=AK(n)).precision||(n.trim=!0),n=TK(n)),e===1/0)return n;const s=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/r(Math.round(a(e)));return t*i<i-.5&&(t*=i),t<=s?n(e):""}},t.nice=()=>n(GK(n(),{floor:e=>r(Math.floor(a(e))),ceil:e=>r(Math.ceil(a(e)))})),t}function aG(){const e=nG(yK()).domain([1,10]);return e.copy=()=>
vendor: 10,244 bytes, line 2
2bK(e,aG()).base(e.base()),BW.apply(e,arguments),e}function rG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iG(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sG(e){var t=1,n=e(rG(t),iG(t));return n.constant=function(n){return arguments.length?e(rG(t=+n),iG(t)):t},WK(n)}function oG(){var e=sG(yK());return e.copy=function(){return bK(e,oG()).constant(e.constant())},BW.apply(e,arguments)}function lG(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function cG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dG(e){return e<0?-e*e:e*e}function uG(e){var t=e(fK,fK),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(fK,fK):.5===n?e(cG,dG):e(lG(n),lG(1/n)):n},WK(t)}function mG(){var e=uG(yK());return e.copy=function(){return bK(e,mG()).exponent(e.exponent())},BW.apply(e,arguments),e}function pG(){return mG.apply(null,arguments).exponent(.5)}function hG(e){return Math.sign(e)*e*e}function fG(){var e,t=jK(),n=[0,1],a=!1;function r(n){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(r)?e:a?Math.round(r):r}return r.invert=function(e){return t.invert(hG(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain()},r.range=function(e){return arguments.length?(t.range((n=Array.from(e,pK)).map(hG)),r):n.slice()},r.rangeRound=function(e){return r.range(e).round(!0)},r.round=function(e){return arguments.length?(a=!!e,r):a},r.clamp=function(e){return arguments.length?(t.clamp(e),r):t.clamp()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return fG(t.domain(),n).round(a).clamp(t.clamp()).unknown(e)},BW.apply(r,arguments),WK(r)}function xG(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n<a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function gG(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n>a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function vG(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sY;if(e===sY)return bG;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const a=e(t,n);return a||0===a?a:(0===e(n,n))-(0===e(t,t))}}function bG(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function yG(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,r=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),a=Math.floor(Math.min(e.length-1,a)),!(n<=t&&t<=a))return e;for(r=void 0===r?bG:vG(r);a>n;){if(a-n>600){const i=a-n+1,s=t-n+1,o=Math.log(i),l=.5*Math.exp(2*o/3),c=.5*Math.sqrt(o*l*(i-l)/i)*(s-i/2<0?-1:1);yG(e,t,Math.max(n,Math.floor(t-s*l/i+c)),Math.min(a,Math.floor(t+(i-s)*l/i+c)),r)}const i=e[t];let s=n,o=a;for(jG(e,n,t),r(e[a],i)>0&&jG(e,n,a);s<o;){for(jG(e,s,o),++s,--o;r(e[s],i)<0;)++s;for(;r(e[o],i)>0;)--o}0===r(e[n],i)?jG(e,n,o):(++o,jG(e,o,a)),o<=t&&(n=o+1),t<=o&&(a=o-1)}return e}function jG(e,t,n){const a=e[t];e[t]=e[n],e[n]=a}function wG(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(a=+a)>=a&&(yield a)}}(e,n)),(a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return gG(e);if(t>=1)return xG(e);var a,r=(a-1)*t,i=Math.floor(r),s=xG(yG(e,i).subarray(0,i+1));return s+(gG(e.subarray(i+1))-s)*(r-i)}}function NG(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dY;if((a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return+n(e[0],0,e);if(t>=1)return+n(e[a-1],a-1,e);var a,r=(a-1)*t,i=Math.floor(r),s=+n(e[i],i,e);return s+(+n(e[i+1],i+1,e)-s)*(r-i)}}function AG(){var e,t=[],n=[],a=[];function r(){var e=0,r=Math.max(1,n.length);for(a=new Array(r-1);++e<r;)a[e-1]=NG(t,e/r);return i}function i(t){return null==t||isNaN(t=+t)?e:n[pY(a,t)]}return i.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?a[r-1]:t[0],r<a.length?a[r]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(sY),r()},i.range=function(e){return arguments.length?(n=Array.from(e),r()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return a.slice()},i.copy=function(){return AG().domain(t).range(n).unknown(e)},BW.apply(i,arguments)}function kG(){var e,t=0,n=1,a=1,r=[.5],i=[0,1];function s(t){return null!=t&&t<=t?i[pY(r,t,0,a)]:e}function o(){var e=-1;for(r=new Array(a);++e<a;)r[e]=((e+1)*n-(e-a)*t)/(a+1);return s}return s.domain=function(e){var a;return arguments.length?(a=Ue(e,2),t=a[0],n=a[1],t=+t,n=+n,o()):[t,n]},s.range=function(e){return arguments.length?(a=(i=Array.from(e)).length-1,o()):i.slice()},s.invertExtent=function(e){var s=i.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,r[0]]:s>=a?[r[a-1],n]:[r[s-1],r[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return r.slice()},s.copy=function(){return kG().domain([t,n]).range(i).unknown(e)},BW.apply(WK(s),arguments)}function EG(){var e,t=[.5],n=[0,1],a=1;function r(r){return null!=r&&r<=r?n[pY(t,r,0,a)]:e}return r.domain=function(e){return arguments.length?(t=Array.from(e),a=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var a=n.indexOf(e);return[t[a-1],t[a]]},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return EG().domain(t).range(n).unknown(e)},BW.apply(r,arguments)}!function(e){LK=VK(e),TK=LK.format,IK=LK.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]}),n.dn(zK),n.dn(qK);const DG=36e5,_G=864e5,CG=6048e5,FG=2592e6,SG=31536e6,MG=new Date,OG=new Date;function RG(e,t,n,a){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=t=>(e(t=new Date(+t)),t),r.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),r.round=e=>{const t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),r.range=(n,a,i)=>{const s=[];if(n=r.ceil(n),i=null==i?1:Math.floor(i),!(n<a)||!(i>0))return s;let o;do{s.push(o=new Date(+n)),t(n,i),e(n)}while(o<n&&n<a);return s},r.filter=n=>RG(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,a)=>{if(e>=e)if(a<0)for(;++a<=0;)for(;t(e,-1),!n(e););else for(;--a>=0;)for(;t(e,1),!n(e););}),n&&(r.count=(t,a)=>(MG.setTime(+t),OG.setTime(+a),e(MG),e(OG),Math.floor(n(MG,OG))),r.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(a?t=>a(t)%e===0:t=>r.count(0,t)%e===0):r:null)),r}const HG=RG(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);HG.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?RG(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):HG:null);HG.range;const PG=RG(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),LG=(PG.range,RG(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes())),TG=(LG.range,RG(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes())),IG=(TG.range,RG(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+t*DG)},(e,t)=>(t-e)/DG,e=>e.getHours())),ZG=(IG.range,RG(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*DG)},(e,t)=>(t-e)/DG,e=>e.getUTCHours())),BG=(ZG.range,RG(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/_G,e=>e.getDate()-1)),VG=(BG.range,RG(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_G,e=>e.getUTCDate()-1)),zG=(VG.range,RG(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_G,e=>Math.floor(e/_G)));zG.range;function qG(e){return RG(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/CG)}const UG=qG(0),WG=qG(1),YG=qG(2),KG=qG(3),GG=qG(4),$G=qG(5),QG=qG(6);UG.range,WG.range,YG.range,KG.range,GG.range,$G.range,QG.range;function XG(e){return RG(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/CG)}const JG=XG(0),e$=XG(1),t$=XG(2),n$=XG(3),a$=XG(4),r$=XG(5),i$=XG(6),s$=(JG.range,e$.range,t$.range,n$.range,a$.range,r$.range,i$.range,RG(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),o$=(s$.range,RG(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),l$=(o$.range,RG(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));l$.every=e=>isFinite(e=Math.floor(e))&&e>0?RG(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;l$.range;const c$=RG(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());c$.every=e=>isFinite(e=Math.floor(e))&&e>0?RG(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;c$.range;function d$(e,t,n,a,r,i){const s=[[PG,1,1e3],[PG,5,5e3],[PG,15,15e3],[PG,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[r,1,DG],[r,3,108e5],[r,6,216e5],[r,12,432e5],[a,1,_G],[a,2,1728e5],[n,1,CG],[t,1,FG],[t,3,7776e6],[e,1,SG]];function o(t,n,a){const r=Math.abs(n-t)/a,i=lY(e=>Ue(e,3)[2]).right(s,r);if(i===s.length)return e.every(iY(t/SG,n/SG,a));if(0===i)return HG.every(Math.max(iY(t,n,a),1));const o=Ue(s[r/s[i-1][2]<s[i][2]/r?i-1:i],2),l=o[0],c=o[1];return l.every(c)}return[function(e,t,n){const a=t<e;if(a){var r=[t,e];e=r[0],t=r[1]}
vendor: 7,413 bytes, line 2
2const i=n&&"function"===typeof n.range?n:o(e,t,n),s=i?i.range(e,+t+1):[];return a?s.reverse():s},o]}const u$=Ue(d$(c$,o$,JG,zG,ZG,TG),2),m$=u$[0],p$=u$[1],h$=Ue(d$(l$,s$,UG,BG,IG,LG),2),f$=h$[0],x$=h$[1];function g$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function v$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function b$(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var y$,j$,w$,N$={"-":"",_:" ",0:"0"},A$=/^\s*\d+/,k$=/^%/,E$=/[\\^$*+?|[\]().{}]/g;function D$(e,t,n){var a=e<0?"-":"",r=(a?-e:e)+"",i=r.length;return a+(i<n?new Array(n-i+1).join(t)+r:r)}function _$(e){return e.replace(E$,"\\$&")}function C$(e){return new RegExp("^(?:"+e.map(_$).join("|")+")","i")}function F$(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function S$(e,t,n){var a=A$.exec(t.slice(n,n+1));return a?(e.w=+a[0],n+a[0].length):-1}function M$(e,t,n){var a=A$.exec(t.slice(n,n+1));return a?(e.u=+a[0],n+a[0].length):-1}function O$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.U=+a[0],n+a[0].length):-1}function R$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.V=+a[0],n+a[0].length):-1}function H$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.W=+a[0],n+a[0].length):-1}function P$(e,t,n){var a=A$.exec(t.slice(n,n+4));return a?(e.y=+a[0],n+a[0].length):-1}function L$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function T$(e,t,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function I$(e,t,n){var a=A$.exec(t.slice(n,n+1));return a?(e.q=3*a[0]-3,n+a[0].length):-1}function Z$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.m=a[0]-1,n+a[0].length):-1}function B$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.d=+a[0],n+a[0].length):-1}function V$(e,t,n){var a=A$.exec(t.slice(n,n+3));return a?(e.m=0,e.d=+a[0],n+a[0].length):-1}function z$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.H=+a[0],n+a[0].length):-1}function q$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.M=+a[0],n+a[0].length):-1}function U$(e,t,n){var a=A$.exec(t.slice(n,n+2));return a?(e.S=+a[0],n+a[0].length):-1}function W$(e,t,n){var a=A$.exec(t.slice(n,n+3));return a?(e.L=+a[0],n+a[0].length):-1}function Y$(e,t,n){var a=A$.exec(t.slice(n,n+6));return a?(e.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function K$(e,t,n){var a=k$.exec(t.slice(n,n+1));return a?n+a[0].length:-1}function G$(e,t,n){var a=A$.exec(t.slice(n));return a?(e.Q=+a[0],n+a[0].length):-1}function $$(e,t,n){var a=A$.exec(t.slice(n));return a?(e.s=+a[0],n+a[0].length):-1}function Q$(e,t){return D$(e.getDate(),t,2)}function X$(e,t){return D$(e.getHours(),t,2)}function J$(e,t){return D$(e.getHours()%12||12,t,2)}function eQ(e,t){return D$(1+BG.count(l$(e),e),t,3)}function tQ(e,t){return D$(e.getMilliseconds(),t,3)}function nQ(e,t){return tQ(e,t)+"000"}function aQ(e,t){return D$(e.getMonth()+1,t,2)}function rQ(e,t){return D$(e.getMinutes(),t,2)}function iQ(e,t){return D$(e.getSeconds(),t,2)}function sQ(e){var t=e.getDay();return 0===t?7:t}function oQ(e,t){return D$(UG.count(l$(e)-1,e),t,2)}function lQ(e){var t=e.getDay();return t>=4||0===t?GG(e):GG.ceil(e)}function cQ(e,t){return e=lQ(e),D$(GG.count(l$(e),e)+(4===l$(e).getDay()),t,2)}function dQ(e){return e.getDay()}function uQ(e,t){return D$(WG.count(l$(e)-1,e),t,2)}function mQ(e,t){return D$(e.getFullYear()%100,t,2)}function pQ(e,t){return D$((e=lQ(e)).getFullYear()%100,t,2)}function hQ(e,t){return D$(e.getFullYear()%1e4,t,4)}function fQ(e,t){var n=e.getDay();return D$((e=n>=4||0===n?GG(e):GG.ceil(e)).getFullYear()%1e4,t,4)}function xQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+D$(t/60|0,"0",2)+D$(t%60,"0",2)}function gQ(e,t){return D$(e.getUTCDate(),t,2)}function vQ(e,t){return D$(e.getUTCHours(),t,2)}function bQ(e,t){return D$(e.getUTCHours()%12||12,t,2)}function yQ(e,t){return D$(1+VG.count(c$(e),e),t,3)}function jQ(e,t){return D$(e.getUTCMilliseconds(),t,3)}function wQ(e,t){return jQ(e,t)+"000"}function NQ(e,t){return D$(e.getUTCMonth()+1,t,2)}function AQ(e,t){return D$(e.getUTCMinutes(),t,2)}function kQ(e,t){return D$(e.getUTCSeconds(),t,2)}function EQ(e){var t=e.getUTCDay();return 0===t?7:t}function DQ(e,t){return D$(JG.count(c$(e)-1,e),t,2)}function _Q(e){var t=e.getUTCDay();return t>=4||0===t?a$(e):a$.ceil(e)}function CQ(e,t){return e=_Q(e),D$(a$.count(c$(e),e)+(4===c$(e).getUTCDay()),t,2)}function FQ(e){return e.getUTCDay()}function SQ(e,t){return D$(e$.count(c$(e)-1,e),t,2)}function MQ(e,t){return D$(e.getUTCFullYear()%100,t,2)}function OQ(e,t){return D$((e=_Q(e)).getUTCFullYear()%100,t,2)}function RQ(e,t){return D$(e.getUTCFullYear()%1e4,t,4)}function HQ(e,t){var n=e.getUTCDay();return D$((e=n>=4||0===n?a$(e):a$.ceil(e)).getUTCFullYear()%1e4,t,4)}function PQ(){return"+0000"}function LQ(){return"%"}function TQ(e){return+e}function IQ(e){return Math.floor(+e/1e3)}function ZQ(e){return new Date(e)}function BQ(e){return e instanceof Date?+e:+new Date(+e)}function VQ(e,t,n,a,r,i,s,o,l,c){var d=jK(),u=d.invert,m=d.domain,p=c(".%L"),h=c(":%S"),f=c("%I:%M"),x=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),y=c("%Y");function j(e){return(l(e)<e?p:o(e)<e?h:s(e)<e?f:i(e)<e?x:a(e)<e?r(e)<e?g:v:n(e)<e?b:y)(e)}return d.invert=function(e){return new Date(u(e))},d.domain=function(e){return arguments.length?m(Array.from(e,BQ)):m().map(ZQ)},d.ticks=function(t){var n=m();return e(n[0],n[n.length-1],null==t?10:t)},d.tickFormat=function(e,t){return null==t?j:c(t)},d.nice=function(e){var n=m();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?m(GK(n,e)):d},d.copy=function(){return bK(d,VQ(e,t,n,a,r,i,s,o,l,c))},d}function zQ(){return BW.apply(VQ(f$,x$,l$,s$,UG,BG,IG,LG,PG,j$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function qQ(){return BW.apply(VQ(m$,p$,c$,o$,JG,VG,ZG,TG,PG,w$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function UQ(){var e,t,n,a,r,i=0,s=1,o=fK,l=!1;function c(t){return null==t||isNaN(t=+t)?r:o(0===n?.5:(t=(a(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function d(e){return function(t){var n,a,r;return arguments.length?(a=(n=Ue(t,2))[0],r=n[1],o=e(a,r),c):[o(0),o(1)]}}return c.domain=function(r){var o;return arguments.length?(o=Ue(r,2),i=o[0],s=o[1],e=a(i=+i),t=a(s=+s),n=e===t?0:1/(t-e),c):[i,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(o=e,c):o},c.range=d(uK),c.rangeRound=d(mK),c.unknown=function(e){return arguments.length?(r=e,c):r},function(r){return a=r,e=r(i),t=r(s),n=e===t?0:1/(t-e),c}}function WQ(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function YQ(){var e=WK(UQ()(fK));return e.copy=function(){return WQ(e,YQ())},VW.apply(e,arguments)}function KQ(){var e=nG(UQ()).domain([1,10]);return e.copy=function(){return WQ(e,KQ()).base(e.base())},VW.apply(e,arguments)}function GQ(){var e=sG(UQ());return e.copy=function(){return WQ(e,GQ()).constant(e.constant())},VW.apply(e,arguments)}function $Q(){var e=uG(UQ());return e.copy=function(){return WQ(e,$Q()).exponent(e.exponent())},VW.apply(e,arguments)}function QQ(){return $Q.apply(null,arguments).exponent(.5)}function XQ(){var e=[],t=fK;
vendor: 4,145 bytes, line 2
2function n(n){if(null!=n&&!isNaN(n=+n))return t((pY(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(sY),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,a)=>wG(e,a/t))},n.copy=function(){return XQ(t).domain(e)},VW.apply(n,arguments)}function JQ(){var e,t,n,a,r,i,s,o=0,l=.5,c=1,d=1,u=fK,m=!1;function p(e){return isNaN(e=+e)?s:(e=.5+((e=+i(e))-t)*(d*e<d*t?a:r),u(m?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,a,r,i;return arguments.length?(a=(n=Ue(t,3))[0],r=n[1],i=n[2],u=function(e,t){void 0===t&&(t=e,e=uK);for(var n=0,a=t.length-1,r=t[0],i=new Array(a<0?0:a);n<a;)i[n]=e(r,r=t[++n]);return function(e){var t=Math.max(0,Math.min(a-1,Math.floor(e*=a)));return i[t](e-t)}}(e,[a,r,i]),p):[u(0),u(.5),u(1)]}}return p.domain=function(s){var u;return arguments.length?(u=Ue(s,3),o=u[0],l=u[1],c=u[2],e=i(o=+o),t=i(l=+l),n=i(c=+c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),d=t<e?-1:1,p):[o,l,c]},p.clamp=function(e){return arguments.length?(m=!!e,p):m},p.interpolator=function(e){return arguments.length?(u=e,p):u},p.range=h(uK),p.rangeRound=h(mK),p.unknown=function(e){return arguments.length?(s=e,p):s},function(s){return i=s,e=s(o),t=s(l),n=s(c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),d=t<e?-1:1,p}}function eX(){var e=WK(JQ()(fK));return e.copy=function(){return WQ(e,eX())},VW.apply(e,arguments)}function tX(){var e=nG(JQ()).domain([.1,1,10]);return e.copy=function(){return WQ(e,tX()).base(e.base())},VW.apply(e,arguments)}function nX(){var e=sG(JQ());return e.copy=function(){return WQ(e,nX()).constant(e.constant())},VW.apply(e,arguments)}function aX(){var e=uG(JQ());return e.copy=function(){return WQ(e,aX()).exponent(e.exponent())},VW.apply(e,arguments)}function rX(){return aX.apply(null,arguments).exponent(.5)}!function(e){y$=function(e){var t=e.dateTime,n=e.date,a=e.time,r=e.periods,i=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=C$(r),d=F$(r),u=C$(i),m=F$(i),p=C$(s),h=F$(s),f=C$(o),x=F$(o),g=C$(l),v=F$(l),b={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:Q$,e:Q$,f:nQ,g:pQ,G:fQ,H:X$,I:J$,j:eQ,L:tQ,m:aQ,M:rQ,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:TQ,s:IQ,S:iQ,u:sQ,U:oQ,V:cQ,w:dQ,W:uQ,x:null,X:null,y:mQ,Y:hQ,Z:xQ,"%":LQ},y={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:gQ,e:gQ,f:wQ,g:OQ,G:HQ,H:vQ,I:bQ,j:yQ,L:jQ,m:NQ,M:AQ,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:TQ,s:IQ,S:kQ,u:EQ,U:DQ,V:CQ,w:FQ,W:SQ,x:null,X:null,y:MQ,Y:RQ,Z:PQ,"%":LQ},j={a:function(e,t,n){var a=p.exec(t.slice(n));return a?(e.w=h.get(a[0].toLowerCase()),n+a[0].length):-1},A:function(e,t,n){var a=u.exec(t.slice(n));return a?(e.w=m.get(a[0].toLowerCase()),n+a[0].length):-1},b:function(e,t,n){var a=g.exec(t.slice(n));return a?(e.m=v.get(a[0].toLowerCase()),n+a[0].length):-1},B:function(e,t,n){var a=f.exec(t.slice(n));return a?(e.m=x.get(a[0].toLowerCase()),n+a[0].length):-1},c:function(e,n,a){return A(e,t,n,a)},d:B$,e:B$,f:Y$,g:L$,G:P$,H:z$,I:z$,j:V$,L:W$,m:Z$,M:q$,p:function(e,t,n){var a=c.exec(t.slice(n));return a?(e.p=d.get(a[0].toLowerCase()),n+a[0].length):-1},q:I$,Q:G$,s:$$,S:U$,u:M$,U:O$,V:R$,w:S$,W:H$,x:function(e,t,a){return A(e,n,t,a)},X:function(e,t,n){return A(e,a,t,n)},y:L$,Y:P$,Z:T$,"%":K$};function w(e,t){return function(n){var a,r,i,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(r=N$[a=e.charAt(++o)])?a=e.charAt(++o):r="e"===a?" ":"0",(i=t[a])&&(a=i(n,r)),s.push(a),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function N(e,t){return function(n){var a,r,i=b$(1900,void 0,1);if(A(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);
2if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=(a=v$(b$(i.y,0,1))).getUTCDay(),a=r>4||0===r?e$.ceil(a):e$(a),a=VG.offset(a,7*(i.V-1)),i.y=a.getUTCFullYear(),i.m=a.getUTCMonth(),i.d=a.getUTCDate()+(i.w+6)%7):(r=(a=g$(b$(i.y,0,1))).getDay(),a=r>4||0===r?WG.ceil(a):WG(a),a=BG.offset(a,7*(i.V-1)),i.y=a.getFullYear(),i.m=a.getMonth(),i.d=a.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),r="Z"in i?v$(b$(i.y,0,1)).getUTCDay():g$(b$(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(r+5)%7:i.w+7*i.U-(r+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,v$(i)):g$(i)}}function A(e,t,n,a){for(var r,i,s=0,o=t.length,l=n.length;s<o;){if(a>=l)return-1;if(37===(r=t.charCodeAt(s++))){if(r=t.charAt(s++),!(i=j[r in N$?t.charAt(s++):r])||(a=i(e,n,a))<0)return-1}else if(r!=n.charCodeAt(a++))return-1}return a}return b.x=w(n,b),b.X=w(a,b),b.c=w(t,b),y.x=w(n,y),y.X=w(a,y),y.c=w(t,y),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=N(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},utcParse:function(e){var t=N(e+="",!0);return t.toString=function(){return e},t}}}(e),j$=y$.format,y$.parse,w$=y$.utcFormat,y$.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var iX=e=>e.chartData,sX=bU([iX],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),oX=(e,t,n,a)=>a?sX(e):iX(e);function lX(e){if(Array.isArray(e)&&2===e.length){var t=Ue(e,2),n=t[0],a=t[1];if(JZ(n)&&JZ(a))return!0}return!1}function cX(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function dX(e,t){if(t&&"function"!==typeof e&&Array.isArray(e)&&2===e.length){var n,a,r=Ue(e,2),i=r[0],s=r[1];if(JZ(i))n=i;else if("function"===typeof i)return;if(JZ(s))a=s;else if("function"===typeof s)return;var o=[n,a];if(lX(o))return o}}var uX,mX=n(441),pX=n.n(mX),hX=e=>e,fX={"@@functional/placeholder":!0},xX=e=>e===fX,gX=e=>function t(){return 0===arguments.length||1===arguments.length&&xX(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},vX=(e,t)=>1===e?t:gX(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=a.filter(e=>e!==fX).length;return i>=e?t(...a):vX(e-i,gX(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=a.map(e=>xX(e)?n.shift():e);return t(...i,...n)}))}),bX=(e,t)=>{for(var n=[],a=e;a<t;++a)n[a-e]=a;return n},yX=vX((uX=(e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(e=>t[e]).map(e)).length,uX);function jX(e){return 0===e?1:Math.floor(new(pX())(e).abs().log(10).toNumber())+1}function wX(e,t,n){for(var a=new(pX())(e),r=0,i=[];a.lt(t)&&r<1e5;)i.push(a.toNumber()),a=a.add(n),r++;return i}var NX=e=>{var t=Ue(e,2),n=t[0],a=t[1],r=n,i=a;return n>a&&(r=a,i=n),[r,i]},AX=(e,t,n)=>{if(e.lte(0))return new(pX())(0);var a=jX(e.toNumber()),r=new(pX())(10).pow(a),i=e.div(r),s=1!==a?.05:.1,o=new(pX())(Math.ceil(i.div(s).toNumber())).add(n).mul(s).mul(r);return t?new(pX())(o.toNumber()):new(pX())(Math.ceil(o.toNumber()))},kX=(e,t,n)=>{var a=new(pX())(1),r=new(pX())(e);if(!r.isint()&&n){var i=Math.abs(e);i<1?(a=new(pX())(10).pow(jX(e)-1),r=new(pX())(Math.floor(r.div(a).toNumber())).mul(a)):i>1&&(r=new(pX())(Math.floor(e)))}else 0===e?r=new(pX())(Math.floor((t-1)/2)):n||(r=new(pX())(Math.floor(e)));var s=Math.floor((t-1)/2),o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return hX;var a=t.reverse(),r=a[0],i=a.slice(1);return function(){return i.reduce((e,t)=>
2t(e),r(...arguments))}}(yX(e=>r.add(new(pX())(e-s).mul(a)).toNumber()),bX);return o(0,t)},EX=function(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(pX())(0),tickMin:new(pX())(0),tickMax:new(pX())(0)};var i,s=AX(new(pX())(t).sub(e).div(n-1),a,r);i=e<=0&&t>=0?new(pX())(0):(i=new(pX())(e).add(t).div(2)).sub(new(pX())(i).mod(s));var o=Math.ceil(i.sub(e).div(s).toNumber()),l=Math.ceil(new(pX())(t).sub(i).div(s).toNumber()),c=o+l+1;return c>n?EX(e,t,n,a,r+1):(c<n&&(l=t>0?l+(n-c):l,o=t>0?o:o+(n-c)),{step:s,tickMin:i.sub(new(pX())(o).mul(s)),tickMax:i.add(new(pX())(l).mul(s))})},DX=e=>e.rootProps.maxBarSize,_X=e=>e.rootProps.barCategoryGap,CX=e=>e.rootProps.stackOffset,FX=e=>e.rootProps.reverseStackOrder,SX=e=>e.options.chartName,MX=e=>e.rootProps.syncId,OX=e=>e.rootProps.syncMethod,RX=e=>e.options.eventEmitter;function HX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function PX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HX(Object(n),!0).forEach(function(t){LX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TX=Math.PI/180,IX=e=>180*e/Math.PI,ZX=(e,t,n,a)=>({x:e+Math.cos(-TX*a)*n,y:t+Math.sin(-TX*a)*n}),BX=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},VX=(e,t)=>{var n=e.x,a=e.y,r=t.cx,i=t.cy,s=((e,t)=>{var n=e.x,a=e.y,r=t.x,i=t.y;return Math.sqrt((n-r)**2+(a-i)**2)})({x:n,y:a},{x:r,y:i});if(s<=0)return{radius:s,angle:0};var o=(n-r)/s,l=Math.acos(o);return a>i&&(l=2*Math.PI-l),{radius:s,angle:IX(l),angleInRadian:l}},zX=(e,t)=>{var n=t.startAngle,a=t.endAngle,r=Math.floor(n/360),i=Math.floor(a/360);return e+360*Math.min(r,i)},qX=(e,t)=>{var n=e.chartX,a=e.chartY,r=VX({x:n,y:a},t),i=r.radius,s=r.angle,o=t.innerRadius,l=t.outerRadius;if(i<o||i>l)return null;if(0===i)return null;var c,d=(e=>{var t=e.startAngle,n=e.endAngle,a=Math.floor(t/360),r=Math.floor(n/360),i=Math.min(a,r);return{startAngle:t-360*i,endAngle:n-360*i}})(t),u=d.startAngle,m=d.endAngle,p=s;if(u<=m){for(;p>m;)p-=360;for(;p<u;)p+=360;c=p>=u&&p<=m}else{for(;p>u;)p-=360;for(;p<m;)p+=360;c=p>=m&&p<=u}return c?PX(PX({},t),{},{radius:i,angle:zX(p,t)}):null},UX={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},WX=0,YX="auto",KX=!0,GX=!1,$X=!0,QX=0,XX="auto",JX=!0,eJ=5,tJ=(e,t)=>{if(e&&t)return null!==e&&void 0!==e&&e.reversed?[t[1],t[0]]:t},nJ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:WX,includeHidden:!1,name:void 0,reversed:!1,scale:YX,tick:KX,tickCount:void 0,ticks:void 0,type:"category",unit:void 0},aJ={allowDataOverflow:GX,allowDecimals:!1,allowDuplicatedCategory:$X,dataKey:void 0,domain:void 0,id:QX,includeHidden:!1,name:void 0,reversed:!1,scale:XX,tick:JX,tickCount:eJ,ticks:void 0,type:"number",unit:void 0},rJ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:WX,includeHidden:!1,name:void 0,reversed:!1,scale:YX,tick:KX,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},iJ={allowDataOverflow:GX,allowDecimals:!1,allowDuplicatedCategory:$X,dataKey:void 0,domain:void 0,id:QX,includeHidden:!1,name:void 0,reversed:!1,scale:XX,tick:JX,tickCount:eJ,ticks:void 0,type:"category",unit:void 0},sJ=(e,t)=>null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?rJ:nJ,oJ=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?iJ:aJ,lJ=e=>e.polarOptions,cJ=bU([fW,xW,EW],BX),dJ=bU([lJ,cJ],(e,t)=>{if(null!=e)return IZ(e.innerRadius,t,0)}),uJ=bU([lJ,cJ],(e,t)=>{if(null!=e)return IZ(e.outerRadius,t,.8*t)}),mJ=bU([lJ],e=>null==e?[0,0]:[e.startAngle,e.endAngle]),pJ=(bU([sJ,mJ],tJ),bU([cJ,dJ,uJ],(e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]})),hJ=(bU([oJ,pJ],tJ),bU([PW,lJ,dJ,uJ,fW,xW],(e,t,n,a,r,i)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=a){var s=t.cx,o=t.cy,l=t.startAngle,c=t.endAngle;return{cx:IZ(s,r,r/2),cy:IZ(o,i,i/2),innerRadius:n,outerRadius:a,startAngle:l,endAngle:c,clockWise:!1}}})),fJ=(e,t)=>
vendor: 4,219 bytes, line 2
2t,xJ=(e,t,n)=>n;function gJ(e){return null===e||void 0===e?void 0:e.id}function vJ(e,t,n){var a=t.chartData,r=void 0===a?[]:a,i=n.allowDuplicatedCategory,s=n.dataKey,o=new Map;return e.forEach(e=>{var t,n=null!==(t=e.data)&&void 0!==t?t:r;if(null!=n&&0!==n.length){var a=gJ(e);n.forEach((t,n)=>{var r,l=null==s||i?n:String(aW(t,s,null)),c=aW(t,e.dataKey,0);r=o.has(l)?o.get(l):{},Object.assign(r,{[a]:c}),o.set(l,r)})}}),Array.from(o.values())}function bJ(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var yJ=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function jJ(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var wJ=e=>{var t=PW(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},NJ=e=>e.tooltip.settings.axisId;function AJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AJ(Object(n),!0).forEach(function(t){EJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DJ=[0,"auto"],_J={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},CJ=(e,t)=>e.cartesianAxis.xAxis[t],FJ=(e,t)=>{var n=CJ(e,t);return null==n?_J:n},SJ={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:DJ,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},MJ=(e,t)=>e.cartesianAxis.yAxis[t],OJ=(e,t)=>{var n=MJ(e,t);return null==n?SJ:n},RJ={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},HJ=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?RJ:n},PJ=(e,t,n)=>{switch(t){case"xAxis":return FJ(e,n);case"yAxis":return OJ(e,n);case"zAxis":return HJ(e,n);case"angleAxis":return sJ(e,n);case"radiusAxis":return oJ(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},LJ=(e,t,n)=>{switch(t){case"xAxis":return FJ(e,n);case"yAxis":return OJ(e,n);case"angleAxis":return sJ(e,n);case"radiusAxis":return oJ(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},TJ=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function IJ(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var ZJ=e=>e.graphicalItems.cartesianItems,BJ=bU([fJ,xJ],IJ),VJ=(e,t,n)=>e.filter(n).filter(e=>!0===(null===t||void 0===t?void 0:t.includeHidden)||!e.hide),zJ=bU([ZJ,PJ,BJ],VJ,{memoizeOptions:{resultEqualityCheck:jJ}}),qJ=bU([zJ],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(bJ)),UJ=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),WJ=bU([zJ],UJ),YJ=e=>e.map(e=>
2e.data).filter(Boolean).flat(1),KJ=bU([zJ],YJ,{memoizeOptions:{resultEqualityCheck:jJ}}),GJ=(e,t)=>{var n=t.chartData,a=void 0===n?[]:n,r=t.dataStartIndex,i=t.dataEndIndex;return e.length>0?e:a.slice(r,i+1)},$J=bU([KJ,oX],GJ),QJ=(e,t,n)=>null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:aW(e,t.dataKey)})):n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:aW(e,t)}))):e.map(e=>({value:e})),XJ=bU([$J,PJ,zJ],QJ);function JJ(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function e0(e){if(PZ(e)||e instanceof Date){var t=Number(e);if(JZ(t))return t}}function t0(e){if(Array.isArray(e)){var t=[e0(e[0]),e0(e[1])];return lX(t)?t:void 0}var n=e0(e);if(null!=n)return[n,n]}function n0(e){return e.map(e0).filter(qZ)}var a0=e=>{var t=wJ(e),n=NJ(e);return LJ(e,t,n)},r0=bU([a0],e=>null===e||void 0===e?void 0:e.dataKey),i0=bU([qJ,oX,a0],vJ),s0=(e,t,n,a)=>{var r=t.reduce((e,t)=>{if(null==t.stackId)return e;var n=e[t.stackId];return null==n&&(n=[]),n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(r).map(t=>{var r=Ue(t,2),i=r[0],s=r[1],o=a?[...s].reverse():s,l=o.map(gJ);return[i,{stackedData:oW(e,l,n),graphicalItems:o}]}))},o0=bU([i0,qJ,CX,FX],s0),l0=(e,t,n,a)=>{var r=t.dataStartIndex,i=t.dataEndIndex;if(null==a&&"zAxis"!==n){var s=cW(e,r,i);if(null==s||0!==s[0]||0!==s[1])return s}},c0=bU([PJ],e=>e.allowDataOverflow),d0=e=>{var t;if(null==e||!("domain"in e))return DJ;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var n=n0(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null===e||void 0===e?void 0:e.domain)&&void 0!==t?t:DJ},u0=bU([PJ],d0),m0=bU([u0,c0],dX),p0=bU([o0,iX,fJ,m0],l0,{memoizeOptions:{resultEqualityCheck:yJ}}),h0=e=>e.errorBars,f0=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.filter(Boolean);if(0!==a.length){var r=a.flat();return[Math.min(...r),Math.max(...r)]}},x0=(e,t,n,a,r)=>{var i,s;if(n.length>0&&e.forEach(e=>{n.forEach(n=>{var o,l,c=null===(o=a[n.id])||void 0===o?void 0:o.filter(e=>JJ(r,e)),d=aW(e,null!==(l=t.dataKey)&&void 0!==l?l:n.dataKey),u=function(e,t,n){return!n||"number"!==typeof t||OZ(t)?[]:n.length?n0(n.flatMap(n=>{var a,r,i=aW(e,n.dataKey);if(Array.isArray(i)){var s=Ue(i,2);a=s[0],r=s[1]}else a=r=i;if(JZ(a)&&JZ(r))return[t-a,t+r]})):[]}(e,d,c);if(u.length>=2){var m=Math.min(...u),p=Math.max(...u);(null==i||m<i)&&(i=m),(null==s||p>s)&&(s=p)}var h=t0(d);null!=h&&(i=null==i?h[0]:Math.min(i,h[0]),s=null==s?h[1]:Math.max(s,h[1]))})}),null!=(null===t||void 0===t?void 0:t.dataKey)&&e.forEach(e=>{var n=t0(aW(e,t.dataKey));null!=n&&(i=null==i?n[0]:Math.min(i,n[0]),s=null==s?n[1]:Math.max(s,n[1]))}),JZ(i)&&JZ(s))return[i,s]},g0=bU([$J,PJ,WJ,h0,fJ],x0,{memoizeOptions:{resultEqualityCheck:yJ}});function v0(e){var t=e.value;if(PZ(t)||t instanceof Date)return t}var b0=e=>e.referenceElements.dots,y0=(e,t,n)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n),j0=bU([b0,fJ,xJ],y0),w0=e=>e.referenceElements.areas,N0=bU([w0,fJ,xJ],y0),A0=e=>e.referenceElements.lines,k0=bU([A0,fJ,xJ],y0),E0=(e,t)=>{if(null!=e){var n=n0(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},D0=bU(j0,fJ,E0),_0=(e,t)=>{if(null!=e){var n=n0(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},C0=bU([N0,fJ],_0);var F0=(e,t)=>{if(null!=e){var n=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return n0([e.x]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==n||0===n.length?[]:n0(n)}(e):function(e){var t;if(null!=e.y)return n0([e.y]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==n||0===n.length?[]:n0(n)}(e));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},S0=bU([k0,fJ],F0),M0=bU(D0,S0,C0,(e,t,n)=>f0(e,n,t)),O0=(e,t,n,a,r,i,s,o)=>null!=n?n:function(e,t,n){if(n||null!=t){if("function"===typeof e&&null!=t)try{var a=e(t,n);if(lX(a))return cX(a,t,n)}catch(h){}if(Array.isArray(e)&&2===e.length){var r,i,s=Ue(e,2),o=s[0],l=s[1];if("auto"===o)null!=t&&(r=Math.min(...t));else if(HZ(o))r=o;else if("function"===typeof o)try{null!=t&&(r=o(null===t||void 0===t?void 0:t[0]))}catch(f){}else if("string"===typeof o&&dW.test(o)){var c=dW.exec(o);if(null==c||null==c[1]||null==t)r=void 0;else{var d=+c[1];r=t[0]-d}}else r=null===t||void 0===t?void 0:t[0];if("auto"===l)null!=t&&(i=Math.max(...t));else if(HZ(l))i=l;else if("function"===typeof l)try{null!=t&&(i=l(null===t||void 0===t?void 0:t[1]))}catch(x){}else if("string"===typeof l&&uW.test(l)){var u=uW.exec(l);if(null==u||null==u[1]||null==t)i=void 0;else{var m=+u[1];i=t[1]+m}}else i=null===t||void 0===t?void 0:t[1];var p=[r,i];if(lX(p))return null==t?p:cX(p,t,n)}}}(t,"vertical"===s&&"xAxis"===o||"horizontal"===s&&"yAxis"===o?f0(a,i,r):f0(i,r),e.allowDataOverflow),R0=bU([PJ,u0,m0,p0,g0,M0,PW,fJ],O0,{memoizeOptions:{resultEqualityCheck:yJ}}),H0=[0,1],P0=(e,t,n,a,r,i,s)=>{if(null!=e&&null!=n&&0!==n.length||void 0!==s){var o,l=e.dataKey,c=e.type,d=rW(t,i);return d&&null==l?ZW(0,null!==(o=null===n||void 0===n?void 0:n.length)&&void 0!==o?o:0):"category"===c?((e,t,n
2)=>{var a=e.map(v0).filter(e=>null!=e);return n&&(null==t.dataKey||t.allowDuplicatedCategory&&ZZ(a))?ZW(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))})(a,e,d):"expand"===r?H0:s}},L0=bU([PJ,PW,$J,XJ,CX,fJ,R0],P0),T0=(e,t,n,a,r)=>{if(null!=e){var i=e.scale,o=e.type;if("auto"===i)return"radial"===t&&"radiusAxis"===r?"band":"radial"===t&&"angleAxis"===r?"linear":"category"===o&&a&&(a.indexOf("LineChart")>=0||a.indexOf("AreaChart")>=0||a.indexOf("ComposedChart")>=0&&!n)?"point":"category"===o?"band":"linear";if("string"===typeof i){var l="scale".concat(zZ(i));return l in s?l:"point"}}},I0=bU([PJ,PW,TJ,SX,fJ],T0);function Z0(e,t,n,a){if(null!=n&&null!=a){if("function"===typeof e.scale)return e.scale.copy().domain(n).range(a);var r=function(e){if(null!=e){if(e in s)return s[e]();var t="scale".concat(zZ(e));return t in s?s[t]():void 0}}(t);if(null!=r){var i=r.domain(n).range(a);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,a=e.range(),r=Math.min(a[0],a[1])-iW,i=Math.max(a[0],a[1])+iW,s=e(t[0]),o=e(t[n-1]);(s<r||s>i||o<r||o>i)&&e.domain([t[0],t[n-1]])}})(i),i}}}var B0=(e,t,n)=>{var a=d0(t);if("auto"===n||"linear"===n)return null!=t&&t.tickCount&&Array.isArray(a)&&("auto"===a[0]||"auto"===a[1])&&lX(e)?function(e){var t=Ue(e,2),n=t[0],a=t[1],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(r,2),o=Ue(NX([n,a]),2),l=o[0],c=o[1];if(l===-1/0||c===1/0){var d=c===1/0?[l,...bX(0,r-1).map(()=>1/0)]:[...bX(0,r-1).map(()=>-1/0),c];return n>a?d.reverse():d}if(l===c)return kX(l,r,i);var u=EX(l,c,s,i,0),m=u.step,p=wX(u.tickMin,u.tickMax.add(new(pX())(.1).mul(m)),m);return n>a?p.reverse():p}(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&lX(e)?function(e,t){var n=Ue(e,2),a=n[0],r=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Ue(NX([a,r]),2),o=s[0],l=s[1];if(o===-1/0||l===1/0)return[a,r];if(o===l)return[o];var c=Math.max(t,2),d=AX(new(pX())(l).sub(o).div(c-1),i,0),u=[...wX(new(pX())(o),new(pX())(l),d),l];return!1===i&&(u=u.map(e=>Math.round(e))),a>r?u.reverse():u}(e,t.tickCount,t.allowDecimals):void 0},V0=bU([L0,LJ,I0],B0),z0=(e,t,n,a)=>{if("angleAxis"!==a&&"number"===(null===e||void 0===e?void 0:e.type)&&lX(t)&&Array.isArray(n)&&n.length>0){var r=t[0],i=n[0],s=t[1],o=n[n.length-1];return[Math.min(r,i),Math.max(s,o)]}return t},q0=bU([PJ,L0,V0,fJ],z0),U0=bU(XJ,PJ,(e,t)=>{if(t&&"number"===t.type){var n=1/0,a=Array.from(n0(e.map(e=>e.value))).sort((e,t)=>e-t),r=a[0],i=a[a.length-1];if(null==r||null==i)return 1/0;var s=i-r;if(0===s)return 1/0;for(var o=0;o<a.length-1;o++){var l=a[o],c=a[o+1];if(null!=l&&null!=c){var d=c-l;n=Math.min(n,d)}}return n/s}}),W0=bU(U0,PW,_X,EW,(e,t,n,a,r)=>r,(e,t,n,a,r)=>{if(!JZ(e))return 0;var i="vertical"===t?a.height:a.width;if("gap"===r)return e*i/2;if("no-gap"===r){var s=IZ(n,e*i),o=e*i/2;return o-s-(o-s)/i*s}return 0}),Y0=bU(FJ,(e,t,n)=>{var a=FJ(e,t);return null==a||"string"!==typeof a.padding?0:W0(e,"xAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{left:0,right:0};var r=e.padding;return"string"===typeof r?{left:t,right:t}:{left:(null!==(n=r.left)&&void 0!==n?n:0)+t,right:(null!==(a=r.right)&&void 0!==a?a:0)+t}}),K0=bU(OJ,(e,t,n)=>{var a=OJ(e,t);return null==a||"string"!==typeof a.padding?0:W0(e,"yAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{top:0,bottom:0};var r=e.padding;return"string"===typeof r?{top:t,bottom:t}:{top:(null!==(n=r.top)&&void 0!==n?n:0)+t,bottom:(null!==(a=r.bottom)&&void 0!==a?a:0)+t}}),G0=bU([EW,Y0,MW,SW,(e,t,n)=>n],(e,t,n,a,r)=>{var i=a.padding;return r?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),$0=bU([EW,PW,K0,MW,SW,(e,t,n)=>n],(e,t,n,a,r,i)=>{var s=r.padding;return i?[a.height-s.bottom,s.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Q0=(e,t,n,a)=>{var r;switch(t){case"xAxis":return G0(e,n,a);case"yAxis":return $0(e,n,a);case"zAxis":return null===(r=HJ(e,n))||void 0===r?void 0:r.range;case"angleAxis":return mJ(e);case"radiusAxis":return pJ(e,n);default:return}},X0=bU([PJ,Q0],tJ),J0=bU([PJ,I0,q0,X0],Z0);bU([zJ,h0,fJ],(e,t,n)=>e.flatMap(e=>
2t[e.id]).filter(Boolean).filter(e=>JJ(n,e)));function e1(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var t1=(e,t)=>t,n1=(e,t,n)=>n,a1=bU(bW,t1,n1,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(e1)),r1=bU(yW,t1,n1,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(e1)),i1=(e,t)=>({width:e.width,height:t.height}),s1=bU(EW,FJ,i1),o1=bU(xW,EW,a1,t1,n1,(e,t,n,a,r)=>{var i,s={};return n.forEach(n=>{var o=i1(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,a,e));var l="top"===a&&!r||"bottom"===a&&r;s[n.id]=i-Number(l)*o.height,i+=(l?-1:1)*o.height}),s}),l1=bU(fW,EW,r1,t1,n1,(e,t,n,a,r)=>{var i,s={};return n.forEach(n=>{var o=((e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height}))(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,a,e));var l="left"===a&&!r||"right"===a&&r;s[n.id]=i-Number(l)*o.width,i+=(l?-1:1)*o.width}),s}),c1=bU([EW,FJ,(e,t)=>{var n=FJ(e,t);if(null!=n)return o1(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:e.left,y:0}:{x:e.left,y:r}}}),d1=bU([EW,OJ,(e,t)=>{var n=OJ(e,t);if(null!=n)return l1(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:0,y:e.top}:{x:r,y:e.top}}}),u1=bU(EW,OJ,(e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height})),m1=(e,t,n)=>{switch(t){case"xAxis":return s1(e,n).width;case"yAxis":return u1(e,n).height;default:return}},p1=(e,t,n,a)=>{if(null!=n){var r=n.allowDuplicatedCategory,i=n.type,s=n.dataKey,o=rW(e,a),l=t.map(e=>e.value);return s&&o&&"category"===i&&r&&ZZ(l)?l:void 0}},h1=bU([PW,XJ,PJ,fJ],p1),f1=(e,t,n,a)=>{if(null!=n&&null!=n.dataKey){var r=n.type,i=n.scale;return!rW(e,a)||"number"!==r&&"auto"===i?void 0:t.map(e=>e.value)}},x1=bU([PW,XJ,LJ,fJ],f1),g1=(bU([PW,(e,t,n)=>{switch(t){case"xAxis":return FJ(e,n);case"yAxis":return OJ(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},I0,J0,h1,x1,Q0,V0,fJ],(e,t,n,a,r,i,s,o,l)=>{if(null!=t){var c=rW(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:r,isCategorical:c,niceTicks:o,range:s,realScaleType:n,scale:a}}}),bU([PW,LJ,I0,J0,V0,Q0,h1,x1,fJ],(e,t,n,a,r,i,s,o,l)=>{if(null!=t&&null!=a){var c=rW(e,l),d=t.type,u=t.ticks,m=t.tickCount,p="scaleBand"===n&&"function"===typeof a.bandwidth?a.bandwidth()/2:2,h="category"===d&&a.bandwidth?a.bandwidth()/p:0;h="angleAxis"===l&&null!=i&&i.length>=2?2*MZ(i[0]-i[1])*h:h;var f=u||r;if(f){var x=f.map((e,t)=>{var n=s?s.indexOf(e):e;return{index:t,coordinate:a(n)+h,value:e,offset:h}});return x.filter(e=>JZ(e.coordinate))}return c&&o?o.map((e,t)=>({coordinate:a(e)+h,value:e,index:t,offset:h})).filter(e=>JZ(e.coordinate)):a.ticks?a.ticks(m).map(e=>({coordinate:a(e)+h,value:e,offset:h})):a.domain().map((e,t)=>({coordinate:a(e)+h,value:s?s[e]:e,index:t,offset:h}))}})),v1=bU([PW,LJ,J0,Q0,h1,x1,fJ],(e,t,n,a,r,i,s)=>{if(null!=t&&null!=n&&null!=a&&a[0]!==a[1]){var o=rW(e,s),l=t.tickCount,c=0;return c="angleAxis"===s&&(null===a||void 0===a?void 0:a.length)>=2?2*MZ(a[0]-a[1])*c:c,o&&i?i.map((e,t)=>({coordinate:n(e)+c,value:e,index:t,offset:c})):n.ticks?n.ticks(l).map(e=>({coordinate:n(e)+c,value:e,offset:c})):n.domain().map((e,t)=>({coordinate:n(e)+c,value:r?r[e]:e,index:t,offset:c}))}}),b1=bU(PJ,J0,(e,t)=>{if(null!=e&&null!=t)return kJ(kJ({},e),{},{scale:t})}),y1=bU([PJ,I0,L0,X0],Z0),j1=(bU((e,t,n)=>HJ(e,n),y1,(e,t)=>{if(null!=e&&null!=t)return kJ(kJ({},e),{},{scale:t})}),bU([PW,bW,yW],(e,t,n)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}})),w1=e=>e.options.defaultTooltipEventType,N1=e=>e.options.validateTooltipEventTypes;function A1(e,t,n){if(null==e)return t;var a=e?"axis":"item";return null==n?t:n.includes(a)?a:t}function k1(e,t){return A1(t,w1(e),N1(e))}var E1=(e,t)=>{var n,a=Number(t);if(!OZ(a)&&null!=t)return a>=0?null===e||void 0===e||null===(n=e[a])||void 0===n?void 0:n.value:void 0};function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?D1(Object(n),!0).forEach(function(t){C1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C1(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F1=(e,t,n,a)=>{if(null==t)return Tq;var r=function(e,t,n){return"axis"===t?"click"===n?e.axisInteraction.click:e.axisInteraction.hover:"click"===n?e.itemInteraction.click:e.itemInteraction.hover}(e,t,n);if(null==r)return Tq;if(r.active)return r;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var i=!0===e.settings.active;if(null!=r.index){if(i)return _1(_1({},r),{},{active:!0})}else if(null!=a)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return _1(_1({},Tq),{},{coordinate:r.coordinate})};function S1(e,t){var n=function(e){if("number"===typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}(e),a=t[0],r=t[1];if(void 0===n)return!1;var i=Math.min(a,r),s=Math.max(a,r);return n>=i&&n<=s}var M1=(e,t,n,a)=>{var r=null===e||void 0===e?void 0:e.index;if(null==r)return null;var i=Number(r);if(!JZ(i))return r;var s=1/0;t.length>0&&(s=t.length-1);var o=Math.max(0,Math.min(i,s)),l=t[o];return null==l||function(e,t,n){if(null==n||null==t)return!0;var a=aW(e,t);return null==a||!lX(n)||S1(a,n)}(l,n,a)?String(o):null},O1=(e,t,n,a,r,i,s,o)=>{if(null!=i&&null!=o){var l=s[0],c=null==l?void 0:o(l.positions,i);if(null!=c)return c;var d=null===r||void 0===r?void 0:r[Number(i)];if(d)return"horizontal"===n?{x:d.coordinate,y:(a.top+t)/2}:{x:(a.left+e)/2,y:d.coordinate}}},R1=(e,t,n,a)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var r;if(null==(r="hover"===n?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId)&&null!=a){var i=e.tooltipItemPayloads[0];return null!=i?[i]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===r})},H1=e=>e.options.tooltipPayloadSearcher,P1=e=>e.tooltip;function L1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function T1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L1(Object(n),!0).forEach(function(t){I1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I1(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z1=(e,t,n,a,r,i,s)=>{if(null!=t&&null!=i){var o=n.chartData,l=n.computedData,c=n.dataStartIndex,d=n.dataEndIndex;return e.reduce((e,n)=>{var u,m,p,h=n.dataDefinedOnItem,f=n.settings,x=function(e,t){return null!=e?e:t}(h,o),g=Array.isArray(x)?JU(x,c,d):x,v=null!==(u=null===f||void 0===f?void 0:f.dataKey)&&void 0!==u?u:a,b=null===f||void 0===f?void 0:f.nameKey;(m=a&&Array.isArray(g)&&!Array.isArray(g[0])&&"axis"===s?function(e,t,n){if(e&&e.length)return e.find(e=>e&&("function"===typeof t?t(e):CZ(e,t))===n)}(g,a,r):i(g,t,l,b),Array.isArray(m))?m.forEach(t=>{var n=T1(T1({},f),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(pW({tooltipEntrySettings:n,dataKey:t.dataKey,payload:t.payload,value:aW(t.payload,t.dataKey),name:t.name}))}):e.push(pW({tooltipEntrySettings:f,dataKey:v,payload:m,value:aW(m,v),name:null!==(p=aW(m,b))&&void 0!==p?p:null===f||void 0===f?void 0:f.name}));return e},[])}},B1=bU([a0,PW,TJ,SX,wJ],T0),V1=bU([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),z1=bU([wJ,NJ],IJ),q1=bU([V1,a0,z1],VJ,{memoizeOptions:{resultEqualityCheck:jJ}}),U1=bU([q1],e=>e.filter(bJ)),W1=bU([q1],YJ,{memoizeOptions:{resultEqualityCheck:jJ}}),Y1=bU([W1,iX],GJ),K1=bU([U1,iX,a0],vJ),G1=bU([Y1,a0,q1],QJ),$1=bU([a0],d0),Q1=bU([a0],e=>
2e.allowDataOverflow),X1=bU([$1,Q1],dX),J1=bU([q1],e=>e.filter(bJ)),e2=bU([K1,J1,CX,FX],s0),t2=bU([e2,iX,wJ,X1],l0),n2=bU([q1],UJ),a2=bU([Y1,a0,n2,h0,wJ],x0,{memoizeOptions:{resultEqualityCheck:yJ}}),r2=bU([b0,wJ,NJ],y0),i2=bU([r2,wJ],E0),s2=bU([w0,wJ,NJ],y0),o2=bU([s2,wJ],_0),l2=bU([A0,wJ,NJ],y0),c2=bU([l2,wJ],F0),d2=bU([i2,c2,o2],f0),u2=bU([a0,$1,X1,t2,a2,d2,PW,wJ],O0),m2=bU([a0,PW,Y1,G1,CX,wJ,u2],P0),p2=bU([m2,a0,B1],B0),h2=bU([a0,m2,p2,wJ],z0),f2=e=>{var t=wJ(e),n=NJ(e);return Q0(e,t,n,!1)},x2=bU([a0,f2],tJ),g2=bU([a0,B1,h2,x2],Z0),v2=bU([PW,G1,a0,wJ],p1),b2=bU([PW,G1,a0,wJ],f1),y2=bU([PW,a0,B1,g2,f2,v2,b2,wJ],(e,t,n,a,r,i,s,o)=>{if(t){var l=t.type,c=rW(e,o);if(a){var d="scaleBand"===n&&a.bandwidth?a.bandwidth()/2:2,u="category"===l&&a.bandwidth?a.bandwidth()/d:0;return u="angleAxis"===o&&null!=r&&(null===r||void 0===r?void 0:r.length)>=2?2*MZ(r[0]-r[1])*u:u,c&&s?s.map((e,t)=>({coordinate:a(e)+u,value:e,index:t,offset:u})):a.domain().map((e,t)=>({coordinate:a(e)+u,value:i?i[e]:e,index:t,offset:u}))}}}),j2=bU([w1,N1,e=>e.tooltip.settings],(e,t,n)=>A1(n.shared,e,t)),w2=e=>e.tooltip.settings.trigger,N2=e=>e.tooltip.settings.defaultIndex,A2=bU([P1,j2,w2,N2],F1),k2=bU([A2,Y1,r0,m2],M1),E2=bU([y2,k2],E1),D2=bU([A2],e=>{if(e)return e.dataKey}),_2=bU([A2],e=>{if(e)return e.graphicalItemId}),C2=bU([P1,j2,w2,N2],R1),F2=bU([fW,xW,PW,EW,y2,N2,C2,H1],O1),S2=bU([A2,F2],(e,t)=>null!==e&&void 0!==e&&e.coordinate?e.coordinate:t),M2=bU([A2],e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.active)&&void 0!==t&&t}),O2=bU([C2,k2,iX,r0,E2,H1,j2],Z1);bU([O2],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function H2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(t){P2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P2(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L2=(e,t,n,a,r)=>{var i,s=null!==(i=null===t||void 0===t?void 0:t.length)&&void 0!==i?i:0;if(s<=1||null==e)return 0;if("angleAxis"===a&&null!=r&&Math.abs(Math.abs(r[1]-r[0])-360)<=1e-6)for(var o=0;o<s;o++){var l,c,d,u,m,p=o>0?null===(l=n[o-1])||void 0===l?void 0:l.coordinate:null===(c=n[s-1])||void 0===c?void 0:c.coordinate,h=null===(d=n[o])||void 0===d?void 0:d.coordinate,f=o>=s-1?null===(u=n[0])||void 0===u?void 0:u.coordinate:null===(m=n[o+1])||void 0===m?void 0:m.coordinate,x=void 0;if(null!=p&&null!=h&&null!=f)if(MZ(h-p)!==MZ(f-h)){var g=[];if(MZ(f-h)===MZ(r[1]-r[0])){x=f;var v=h+r[1]-r[0];g[0]=Math.min(v,(v+p)/2),g[1]=Math.max(v,(v+p)/2)}else{x=p;var b=f+r[1]-r[0];g[0]=Math.min(h,(b+h)/2),g[1]=Math.max(h,(b+h)/2)}var y,j=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(e>j[0]&&e<=j[1]||e>=g[0]&&e<=g[1])return null===(y=n[o])||void 0===y?void 0:y.index}else{var w,N=Math.min(p,f),A=Math.max(p,f);if(e>(N+h)/2&&e<=(A+h)/2)return null===(w=n[o])||void 0===w?void 0:w.index}}else if(t)for(var k=0;k<s;k++){var E=t[k];if(null!=E){var D=t[k+1],_=t[k-1];if(0===k&&null!=D&&e<=(E.coordinate+D.coordinate)/2)return E.index;if(k===s-1&&null!=_&&e>(E.coordinate+_.coordinate)/2)return E.index;if(k>0&&k<s-1&&null!=_&&null!=D&&e>(E.coordinate+_.coordinate)/2&&e<=(E.coordinate+D.coordinate)/2)return E.index}}return-1},T2=(e,t)=>t,I2=(e,t,n)=>n,Z2=(e,t,n,a)=>a,B2=bU(y2,e=>BU(e,e=>e.coordinate)),V2=bU([P1,T2,I2,Z2],F1),z2=bU([V2,Y1,r0,m2],M1),q2=bU([P1,T2,I2,Z2],R1),U2=bU([fW,xW,PW,EW,y2,Z2,q2,H1],O1),W2=bU([V2,U2],(e,t)=>{var n;return null!==(n=e.coordinate)&&void 0!==n?n:t}),Y2=bU([y2,z2],E1),K2=bU([q2,z2,iX,r0,Y2,H1,T2],Z1),G2=bU([V2,z2],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t}
2)),$2=(e,t,n,a,r,i,s)=>{if(e&&a&&r&&i&&n){var o=qX(e,n);if(o){var l=((e,t)=>"centric"===t?e.angle:e.radius)(o,t),c=L2(l,s,i,a,r),d=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("centric"===e){var i=r.coordinate,s=a.radius;return H2(H2(H2({},a),ZX(a.cx,a.cy,s,i)),{},{angle:i,radius:s})}var o=r.coordinate,l=a.angle;return H2(H2(H2({},a),ZX(a.cx,a.cy,o,l)),{},{angle:l,radius:o})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,i,c,o);return{activeIndex:String(c),activeCoordinate:d}}}},Q2=bU([(e,t)=>t,PW,hJ,wJ,x2,y2,B2,EW],(e,t,n,a,r,i,s,o)=>{if(e&&t&&a&&r&&i)return"horizontal"===t||"vertical"===t?((e,t,n,a,r,i,s)=>{if(e&&n&&a&&r&&function(e,t){var n=e.chartX,a=e.chartY;return n>=t.left&&n<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}(e,s)){var o=((e,t)=>"horizontal"===t?e.chartX:"vertical"===t?e.chartY:void 0)(e,t),l=L2(o,i,r,n,a),c=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("horizontal"===e)return{x:r.coordinate,y:a.chartY};if("vertical"===e)return{x:a.chartX,y:r.coordinate}}return{x:0,y:0}})(t,r,l,e);return{activeIndex:String(l),activeCoordinate:c}}})(e,t,a,r,i,s,o):$2(e,t,n,a,r,i,s)}),X2=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,a=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/a)}},J2=LV("mouseClick"),e8=Fz();e8.startListening({actionCreator:J2,effect:(e,t)=>{var n=e.payload,a=Q2(t.getState(),X2(n));null!=(null===a||void 0===a?void 0:a.activeIndex)&&t.dispatch($q({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var t8=LV("mouseMove"),n8=Fz(),a8=null;function r8(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"===typeof t&&null!==t?"<<CHILDREN>>":t}function i8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i8(Object(n),!0).forEach(function(t){o8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n8.startListening({actionCreator:t8,effect:(e,t)=>{var n=e.payload;null!==a8&&cancelAnimationFrame(a8);var a=X2(n);a8=requestAnimationFrame(()=>{var e=t.getState();if("axis"===k1(e,e.tooltip.settings.shared)){var n=Q2(e,a);null!=(null===n||void 0===n?void 0:n.activeIndex)?t.dispatch(Gq({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(Yq())}a8=null})}});var l8=XV({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:VV()},replaceXAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.xAxis[a.id]&&(a.id!==r.id&&delete e.xAxis[a.id],e.xAxis[r.id]=r)},prepare:VV()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:VV()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:VV()},replaceYAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.yAxis[a.id]&&(a.id!==r.id&&delete e.yAxis[a.id],e.yAxis[r.id]=r)},prepare:VV()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:VV()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:VV()},replaceZAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.zAxis[a.id]&&(a.id!==r.id&&delete e.zAxis[a.id],e.zAxis[r.id]=r)},prepare:VV()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:VV()},updateYAxisWidth(e,t){var n=t.payload,a=n.id,r=n.width,i=e.yAxis[a];if(i){var s=i.widthHistory||[];if(3===s.length&&s[0]===s[2]&&r===s[1]&&r!==i.width&&Math.abs(r-s[0])<=1)return;var o=[...s,r].slice(-3);e.yAxis[a]=s8(s8({},e.yAxis[a]),{}
vendor: 4,189 bytes, line 2
2,{width:r,widthHistory:o})}}}}),c8=l8.actions,d8=c8.addXAxis,u8=c8.replaceXAxis,m8=c8.removeXAxis,p8=c8.addYAxis,h8=c8.replaceYAxis,f8=c8.removeYAxis,x8=(c8.addZAxis,c8.replaceZAxis,c8.removeZAxis,c8.updateYAxisWidth),g8=l8.reducer,v8=XV({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:VV()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=bV(e).cartesianItems.indexOf(a);i>-1&&(e.cartesianItems[i]=r)},prepare:VV()},removeCartesianGraphicalItem:{reducer(e,t){var n=bV(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:VV()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:VV()},removePolarGraphicalItem:{reducer(e,t){var n=bV(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:VV()}}}),b8=v8.actions,y8=b8.addCartesianGraphicalItem,j8=b8.replaceCartesianGraphicalItem,w8=b8.removeCartesianGraphicalItem,N8=b8.addPolarGraphicalItem,A8=b8.removePolarGraphicalItem,k8=v8.reducer,E8=XV({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=bV(e).dots.findIndex(e=>e===t.payload);-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=bV(e).areas.findIndex(e=>e===t.payload);-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=bV(e).lines.findIndex(e=>e===t.payload);-1!==n&&e.lines.splice(n,1)}}}),D8=E8.actions,_8=(D8.addDot,D8.removeDot,D8.addArea,D8.removeArea,D8.addLine,D8.removeLine,E8.reducer),C8={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},F8=XV({name:"brush",initialState:C8,reducers:{setBrushSettings:(e,t)=>null==t.payload?C8:t.payload}}),S8=(F8.actions.setBrushSettings,F8.reducer),M8=XV({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:VV()},replaceLegendPayload:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=bV(e).payload.indexOf(a);i>-1&&(e.payload[i]=r)},prepare:VV()},removeLegendPayload:{reducer(e,t){var n=bV(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:VV()}}}),O8=M8.actions,R8=(O8.setLegendSize,O8.setLegendSettings,O8.addLegendPayload),H8=O8.replaceLegendPayload,P8=O8.removeLegendPayload,L8=M8.reducer,T8={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},I8=XV({name:"rootProps",initialState:T8,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(n=t.payload.barGap)&&void 0!==n?n:T8.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Z8=I8.reducer,B8=I8.actions.updateOptions,V8=XV({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),z8=V8.actions,q8=(z8.addRadiusAxis,z8.removeRadiusAxis,z8.addAngleAxis,z8.removeAngleAxis,V8.reducer),U8=XV({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),W8=U8.actions.updatePolarOptions,Y8=U8.reducer,K8=LV("keyDown"),G8=LV("focus"),$8=Fz();$8.startListening({actionCreator:K8,effect:(e,t)=>
2{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var a=n.tooltip.keyboardInteraction,r=e.payload;if("ArrowRight"===r||"ArrowLeft"===r||"Enter"===r){var i=M1(a,Y1(n),r0(n),m2(n)),s=null==i?-1:Number(i);if(Number.isFinite(s)&&!(s<0)){var o=y2(n);if("Enter"!==r){var l=s+("ArrowRight"===r?1:-1)*("left-to-right"===j1(n)?1:-1);if(!(null==o||l>=o.length||l<0)){var c=U2(n,"axis","hover",String(l));t.dispatch(Xq({active:!0,activeIndex:l.toString(),activeCoordinate:c}))}}else{var d=U2(n,"axis","hover",String(a.index));t.dispatch(Xq({active:!a.active,activeIndex:a.index,activeCoordinate:d}))}}}}}}),$8.startListening({actionCreator:G8,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var a=n.tooltip.keyboardInteraction;if(!a.active&&null==a.index){var r=U2(n,"axis","hover",String("0"));t.dispatch(Xq({active:!0,activeIndex:"0",activeCoordinate:r}))}}}});var Q8=LV("externalEvent"),X8=Fz(),J8=new Map;X8.startListening({actionCreator:Q8,effect:(e,t)=>{var n=e.payload,a=n.handler,r=n.reactEvent;if(null!=a){r.persist();var i=r.type,s=J8.get(i);void 0!==s&&cancelAnimationFrame(s);var o=requestAnimationFrame(()=>{try{var e=t.getState(),n={activeCoordinate:S2(e),activeDataKey:D2(e),activeIndex:k2(e),activeLabel:E2(e),activeTooltipIndex:k2(e),isTooltipActive:M2(e)};a(n,r)}finally{J8.delete(i)}});J8.set(i,o)}}});var e4=bU([P1],e=>e.tooltipItemPayloads),t4=bU([e4,H1,(e,t)=>t,(e,t,n)=>n],(e,t,n,a)=>{var r=e.find(e=>e.settings.graphicalItemId===a);if(null!=r){var i=r.positions;if(null!=i)return t(i,n)}}),n4=LV("touchMove"),a4=Fz();a4.startListening({actionCreator:n4,effect:(e,t)=>{var n=e.payload;if(null!=n.touches&&0!==n.touches.length){var a=t.getState(),r=k1(a,a.tooltip.settings.shared);if("axis"===r){var i=n.touches[0];if(null==i)return;var s=Q2(a,X2({clientX:i.clientX,clientY:i.clientY,currentTarget:n.currentTarget}));null!=(null===s||void 0===s?void 0:s.activeIndex)&&t.dispatch(Gq({activeIndex:s.activeIndex,activeDataKey:void 0,activeCoordinate:s.activeCoordinate}))}else if("item"===r){var o,l=n.touches[0];if(null==document.elementFromPoint||null==l)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var d=c.getAttribute(jW),u=null!==(o=c.getAttribute(wW))&&void 0!==o?o:void 0,m=q1(a).find(e=>e.id===u);if(null==d||null==m||null==u)return;var p=m.dataKey,h=t4(a,d,u);t.dispatch(Uq({activeDataKey:p,activeIndex:d,activeCoordinate:h,activeGraphicalItemId:u}))}}}});var r4=XV({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.errorBar;e[a]||(e[a]=[]),e[a].push(r)},replaceErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.prev,i=n.next;e[a]&&(e[a]=e[a].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.errorBar;e[a]&&(e[a]=e[a].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),i4=r4.actions,s4=(i4.addErrorBar,i4.replaceErrorBar,i4.removeErrorBar,r4.reducer),o4=!0,l4=!("undefined"!==typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function c4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function d4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c4(Object(n),!0).forEach(function(t){u4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m4={zIndexMap:Object.values(UX).reduce((e,t)=>
2d4(d4({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},p4=new Set(Object.values(UX));var h4=XV({name:"zIndex",initialState:m4,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:VV()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!function(e){return p4.has(e)}(n)&&delete e.zIndexMap[n])},prepare:VV()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,a=n.zIndex,r=n.element,i=n.isPanorama;e.zIndexMap[a]?i?e.zIndexMap[a].panoramaElement=r:e.zIndexMap[a].element=r:e.zIndexMap[a]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:VV()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:VV()}}}),f4=h4.actions,x4=f4.registerZIndexPortal,g4=f4.unregisterZIndexPortal,v4=f4.registerZIndexPortalElement,b4=f4.unregisterZIndexPortalElement,y4=CV({brush:S8,cartesianAxis:g8,chartData:rU,errorBars:s4,graphicalItems:k8,layout:uU,legend:L8,options:Rz,polarAxis:q8,polarOptions:Y8,referenceElements:_8,rootProps:Z8,tooltip:Jq,zIndex:h4.reducer});function j4(e){var t=e.preloadedState,n=e.children,a=e.reduxStoreName,r=FW(),i=(0,o.useRef)(null);if(r)return n;null==i.current&&(i.current=function(e){return UV({reducer:y4,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([e8.middleware,n8.middleware,$8.middleware,X8.middleware,a4.middleware]),enhancers:e=>{var t=e;return"function"===typeof e&&(t=e()),t.concat(qV({type:"raf"}))},devTools:o4&&{serialize:{replacer:r8},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,a));var s=wU;return o.createElement(Kz,{context:s,store:i.current},n)}var w4=e=>{var t=e.chartData,n=AU(),a=FW();return(0,o.useEffect)(()=>a?()=>{}:(n(nU(t)),()=>{n(nU(void 0))}),[t,n,a]),null},N4=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function A4(e,t){return null==e&&null==t||("number"===typeof e&&"number"===typeof t?e===t||e!==e&&t!==t:e===t)}function k4(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of n)if(N4.has(a)){if(null==e[a]&&null==t[a])continue;if(!zz(e[a],t[a]))return!1}else if(!A4(e[a],t[a]))return!1;return!0}function E4(e){var t=e.layout,n=e.margin,a=AU(),r=FW();return(0,o.useEffect)(()=>{r||(a(lU(t)),a(oU(n)))},[a,r,t,n]),null}var D4=(0,o.memo)(E4,k4);function _4(e){var t=AU();return(0,o.useEffect)(()=>{t(B8(e))},[t,e]),null}var C4=()=>{var e;return null===(e=_U(e=>e.rootProps.accessibilityLayer))||void 0===e||e},F4=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdate
2Capture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function S4(e){return"string"===typeof e&&F4.includes(e)}var M4=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function O4(e){return"string"===typeof e&&M4.has(e)}function R4(e){return"string"===typeof e&&e.startsWith("data-")}function H4(e){if("object"!==typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(O4(n)||R4(n))&&(t[n]=e[n]);return t}function P4(e){return null==e?null:(0,o.isValidElement)(e)&&"object"===typeof e.props&&null!==e.props?H4(e.props):"object"!==typeof e||Array.isArray(e)?null:H4(e)}function L4(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(O4(n)||R4(n)||S4(n))&&(t[n]=e[n]);return t}var T4=["children","width","height","viewBox","className","style","title","desc"];function I4(){return I4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},I4.apply(null,arguments)}var Z4=(0,o.forwardRef)((e,t)=>{var n=e.children,a=e.width,r=e.height,i=e.viewBox,s=e.className,l=e.style,c=e.title,d=e.desc,u=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,T4),m=i||{width:a,height:r,x:0,y:0},p=js("recharts-surface",s);return o.createElement("svg",I4({},L4(u),{className:p,width:a,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),o.createElement("title",null,c),o.createElement("desc",null,d),n)}),B4=bU(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(null!=t){var a=e[t];if(null!=a)return n?a.panoramaElement:a.element}}),V4=bU(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(UX));return Array.from(new Set(t)).sort((e,t)=>
vendor: 5,281 bytes, line 2
2e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}}});function z4(e){var t=e.zIndex,n=e.isPanorama,a=(0,o.useRef)(null),r=AU();return(0,o.useLayoutEffect)(()=>(a.current&&r(v4({zIndex:t,element:a.current,isPanorama:n})),()=>{r(b4({zIndex:t,isPanorama:n}))}),[r,t,n]),o.createElement("g",{tabIndex:-1,ref:a})}function q4(e){var t=e.children,n=e.isPanorama,a=_U(V4);if(!a||0===a.length)return t;var r=a.filter(e=>e<0),i=a.filter(e=>e>0);return o.createElement(o.Fragment,null,r.map(e=>o.createElement(z4,{key:e,zIndex:e,isPanorama:n})),t,i.map(e=>o.createElement(z4,{key:e,zIndex:e,isPanorama:n})))}var U4=["children"];function W4(){return W4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},W4.apply(null,arguments)}var Y4={width:"100%",height:"100%",display:"block"},K4=(0,o.forwardRef)((e,t)=>{var n=_U(fW),a=_U(xW),r=C4();if(!eB(n)||!eB(a))return null;var i,s,l=e.children,c=e.otherAttributes,d=e.title,u=e.desc;return null!=c&&(i="number"===typeof c.tabIndex?c.tabIndex:r?0:void 0,s="string"===typeof c.role?c.role:r?"application":void 0),o.createElement(Z4,W4({},c,{title:d,desc:u,role:s,tabIndex:i,width:n,height:a,style:Y4,ref:t}),l)}),G4=e=>{var t=e.children,n=_U(MW);if(!n)return null;var a=n.width,r=n.height,i=n.y,s=n.x;return o.createElement(Z4,{width:a,height:r,x:s,y:i},t)},$4=(0,o.forwardRef)((e,t)=>{var n=e.children,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,U4);return FW()?o.createElement(G4,null,o.createElement(q4,{isPanorama:!0},n)):o.createElement(K4,W4({ref:t},a),o.createElement(q4,{isPanorama:!1},n))}),Q4=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,a="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var o=new i(n,r||e,s),l=a?a+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(a=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,s=new Array(i);r<i;r++)s[r]=n[r].fn;return s},l.prototype.listenerCount=function(e){var t=a?a+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,i,s){var o=a?a+e:e;if(!this._events[o])return!1;var l,c,d=this._events[o],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,r),!0;case 5:return d.fn.call(d.context,t,n,r,i),!0;case 6:return d.fn.call(d.context,t,n,r,i,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var m,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,r);break;default:if(!l)for(m=1,l=new Array(u-1);m<u;m++)l[m-1]=arguments[m];d[c].fn.apply(d[c].context,l)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||o(this,i);else{for(var l=0,c=[],d=s.length;l<d;l++)(s[l].fn!==t||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,e.exports=l});var X4=new Q4,J4="recharts.syncEvent.tooltip",e6="recharts.syncEvent.brush";function t6(e){return e.tooltip.syncInteraction}var n6=["x","y"];function a6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function r6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a6(Object(n),!0).forEach(function(t){i6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s6(){var e=_U(MX),t=_U(RX),n=AU(),a=_U(OX),r=_U(y2),i=LW(),s=RW(),l=_U(e=>e.rootProps.className);(0,o.useEffect)(()=>{if(null==e)return UZ;var o=(o,l,c)=>{var d;if(t!==c&&e===o)if("index"!==a){if(null!=r){var u;if("function"===typeof a){var m={activeTooltipIndex:null==l.payload.index?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:null==l.payload.index?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=a(r,m);u=r[p]}else"value"===a&&(u=r.find(e=>String(e.value)===l.payload.label));var h=l.payload.coordinate;if(null!=u&&!1!==l.payload.active&&null!=h&&null!=s){var f=h.x,x=h.y,g=Math.min(f,s.x+s.width),v=Math.min(x,s.y+s.height),b={x:"horizontal"===i?u.coordinate:g,y:"horizontal"===i?v:u.coordinate},y=Qq({active:l.payload.active,coordinate:b,dataKey:l.payload.dataKey,index:String(u.index),label:l.payload.label,sourceViewBox:l.payload.sourceViewBox,graphicalItemId:l.payload.graphicalItemId});n(y)}else n(Qq({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(s&&null!==l&&void 0!==l&&null!==(d=l.payload)&&void 0!==d&&d.coordinate&&l.payload.sourceViewBox){var j=l.payload.coordinate,w=j.x,N=j.y,A=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(j,n6),k=l.payload.sourceViewBox,E=k.x,D=k.y,_=k.width,C=k.height,F=r6(r6({},A),{},{x:s.x+(_?(w-E)/_:0)*s.width,y:s.y+(C?(N-D)/C:0)*s.height});n(r6(r6({},l),{},{payload:r6(r6({},l.payload),{},{coordinate:F})}))}else n(l)};return X4.on(J4,o),()=>{X4.off(J4,o)}},[l,n,t,e,a,r,i,s])}function o6(){var e=AU();(0,o.useEffect)(()=>{e(Hz())},[e]),s6(),function(){var e=_U(MX),t=_U(RX),n=AU();(0,o.useEffect)(()=>{if(null==e)return UZ;var a=(a,r,i)=>{t!==i&&e===a&&n(aU(r))};return X4.on(e6,a),()=>{X4.off(e6,a)}},[n,t,e])}()}function l6(e,t,n,a,r,i){var s=_U(n=>((e,t,n)=>{if(null!=t){var a=P1(e);return"axis"===t?"hover"===n?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:"hover"===n?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}})(n,e,t)),l=_U(RX),c=_U(MX),d=_U(OX),u=_U(t6),m=null===u||void 0===u?void 0:u.active,p=RW();(0,o.useEffect)(()=>{if(!m&&null!=c&&null!=l){var e=Qq({active:i,coordinate:n,dataKey:s,index:r,label:"number"===typeof a?String(a):a,sourceViewBox:p,graphicalItemId:void 0});X4.emit(J4,c,e,l)}},[m,n,s,r,a,l,c,d,i,p])}var c6=(0,o.createContext)(null),d6=(0,o.createContext)(null);function u6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function m6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u6(Object(n),!0).forEach(function(t){p6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h6(){return h6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},h6.apply(null,arguments)}var f6=()=>(o6(),null);function x6(e){if("number"===typeof e)return e;if("string"===typeof e){var t=parseFloat(e);
2if(!Number.isNaN(t))return t}return 0}var g6=(0,o.forwardRef)((e,t)=>{var n,a,r=(0,o.useRef)(null),i=Ue((0,o.useState)({containerWidth:x6(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:x6(null===(a=e.style)||void 0===a?void 0:a.height)}),2),s=i[0],l=i[1],c=(0,o.useCallback)((e,t)=>{l(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),d=(0,o.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e&&"undefined"!==typeof ResizeObserver){var n=e.getBoundingClientRect(),a=n.width,i=n.height;c(a,i);var s=new ResizeObserver(e=>{var t=e[0].contentRect,n=t.width,a=t.height;c(n,a)});s.observe(e),r.current=s}},[t,c]);return(0,o.useEffect)(()=>()=>{var e=r.current;null!=e&&e.disconnect()},[c]),o.createElement(o.Fragment,null,o.createElement(TW,{width:s.containerWidth,height:s.containerHeight}),o.createElement("div",h6({ref:d},e)))}),v6=(0,o.forwardRef)((e,t)=>{var n=e.width,a=e.height,r=Ue((0,o.useState)({containerWidth:x6(n),containerHeight:x6(a)}),2),i=r[0],s=r[1],l=(0,o.useCallback)((e,t)=>{s(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),c=(0,o.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e){var n=e.getBoundingClientRect(),a=n.width,r=n.height;l(a,r)}},[t,l]);return o.createElement(o.Fragment,null,o.createElement(TW,{width:i.containerWidth,height:i.containerHeight}),o.createElement("div",h6({ref:c},e)))}),b6=(0,o.forwardRef)((e,t)=>{var n=e.width,a=e.height;return o.createElement(o.Fragment,null,o.createElement(TW,{width:n,height:a}),o.createElement("div",h6({ref:t},e)))}),y6=(0,o.forwardRef)((e,t)=>{var n=e.width,a=e.height;return RZ(n)||RZ(a)?o.createElement(v6,h6({},e,{ref:t})):o.createElement(b6,h6({},e,{ref:t}))});var j6=(0,o.forwardRef)((e,t)=>{var n=e.children,a=e.className,r=e.height,i=e.onClick,s=e.onContextMenu,l=e.onDoubleClick,c=e.onMouseDown,d=e.onMouseEnter,u=e.onMouseLeave,m=e.onMouseMove,p=e.onMouseUp,h=e.onTouchEnd,f=e.onTouchMove,x=e.onTouchStart,g=e.style,v=e.width,b=e.responsive,y=e.dispatchTouchEvents,j=void 0===y||y,w=(0,o.useRef)(null),N=AU(),A=Ue((0,o.useState)(null),2),k=A[0],E=A[1],D=Ue((0,o.useState)(null),2),_=D[0],C=D[1],F=function(){var e=AU(),t=Ue((0,o.useState)(null),2),n=t[0],a=t[1],r=_U(gW);return(0,o.useEffect)(()=>{if(null!=n){var t=n.getBoundingClientRect().width/n.offsetWidth;JZ(t)&&t!==r&&e(dU(t))}},[n,e,r]),a}(),S=oB(),M=(null===S||void 0===S?void 0:S.width)>0?S.width:v,O=(null===S||void 0===S?void 0:S.height)>0?S.height:r,R=(0,o.useCallback)(e=>{F(e),"function"===typeof t&&t(e),E(e),C(e),null!=e&&(w.current=e)},[F,t,E,C]),H=(0,o.useCallback)(e=>{N(J2(e)),N(Q8({handler:i,reactEvent:e}))},[N,i]),P=(0,o.useCallback)(e=>{N(t8(e)),N(Q8({handler:d,reactEvent:e}))},[N,d]),L=(0,o.useCallback)(e=>{N(Yq()),N(Q8({handler:u,reactEvent:e}))},[N,u]),T=(0,o.useCallback)(e=>{N(t8(e)),N(Q8({handler:m,reactEvent:e}))},[N,m]),I=(0,o.useCallback)(()=>{N(G8())},[N]),Z=(0,o.useCallback)(e=>{N(K8(e.key))},[N]),B=(0,o.useCallback)(e=>{N(Q8({handler:s,reactEvent:e}))},[N,s]),V=(0,o.useCallback)(e=>{N(Q8({handler:l,reactEvent:e}))},[N,l]),z=(0,o.useCallback)(e=>{N(Q8({handler:c,reactEvent:e}))},[N,c]),q=(0,o.useCallback)(e=>{N(Q8({handler:p,reactEvent:e}))},[N,p]),U=(0,o.useCallback)(e=>{N(Q8({handler:x,reactEvent:e}))},[N,x]),W=(0,o.useCallback)(e=>{j&&N(n4(e)),N(Q8({handler:f,reactEvent:e}))},[N,j,f]),Y=(0,o.useCallback)(e=>{N(Q8({handler:h,reactEvent:e}))},[N,h]),K=function(e){return!0===e?g6:y6}(b);return o.createElement(c6.Provider,{value:k},o.createElement(d6.Provider,{value:_},o.createElement(K,{width:null!==M&&void 0!==M?M:null===g||void 0===g?void 0:g.width,height:null!==O&&void 0!==O?O:null===g||void 0===g?void 0:g.height,className:js("recharts-wrapper",a),style:m6({position:"relative",cursor:"default",width:M,height:O},g),onClick:H,onContextMenu:B,onDoubleClick:V,onFocus:I,onKeyDown:Z,onMouseDown:z,onMouseEnter:P,onMouseLeave:L,onMouseMove:T,onMouseUp:q,onTouchEnd:Y,onTouchMove:W,onTouchStart:U,ref:R},o.createElement(f6,null),n)))}),w6=bU([EW],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),N6=bU([w6,fW,xW],(e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),A6=()=>_U(N6),k6=(0,o.createContext)(void 0),E6=e=>{var t=e.children,n=Ue((0,o.useState)("".concat(TZ("recharts"),"-clip")),1)[0],a=A6();if(null==a)return null;var r=a.x,i=a.y,s=a.width,l=a.height;return o.createElement(k6.Provider,{value:n},o.createElement("defs",null,o.createElement("clipPath",{id:n},o.createElement("rect",{x:r,y:i,height:l,width:s}))),t)},D6=["width","height","responsive","children","className","style","compact","title","desc"];var _6=(0,o.forwardRef)((e,t)=>{var n=e.width,a=e.height,r=e.responsive,i=e.children,s=e.className,l=e.style,c=e.compact,d=e.title,u=e.desc,m=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,D6),p=H4(m);return c?o.createElement(o.Fragment,null,o.createElement(TW,{width:n,height:a}),o.createElement($4,{otherAttributes:p,title:d,desc:u},i)):o.createElement(j6,{className:s,style:l,width:n,height:a,responsive:null!==r&&void 0!==r&&r,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},o.createElement($4,{otherAttributes:p,title:d,desc:u,ref:t},o.createElement(E6,null,i)))});function C6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function F6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S6(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 9,392 bytes, line 2
2t%2?C6(Object(n),!0).forEach(function(t){F6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),a=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==a[t]&&(e[t]=a[t]),e),n)}function M6(){return M6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},M6.apply(null,arguments)}var O6={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},R6=(0,o.forwardRef)(function(e,t){var n,a=S6(e.categoricalChartProps,O6),r=e.chartName,i=e.defaultTooltipEventType,s=e.validateTooltipEventTypes,l=e.tooltipPayloadSearcher,c=e.categoricalChartProps,d={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return o.createElement(j4,{preloadedState:{options:d},reduxStoreName:null!==(n=c.id)&&void 0!==n?n:r},o.createElement(w4,{chartData:c.data}),o.createElement(D4,{layout:a.layout,margin:a.margin}),o.createElement(_4,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),o.createElement(_6,M6({},a,{ref:t})))}),H6=["axis","item"],P6=(0,o.forwardRef)((e,t)=>o.createElement(R6,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:H6,tooltipPayloadSearcher:Mz,categoricalChartProps:e,ref:t})),L6=["children","className"];function T6(){return T6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},T6.apply(null,arguments)}var I6=o.forwardRef((e,t)=>{var n=e.children,a=e.className,r=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,L6),i=js("recharts-layer",a);return o.createElement("g",T6({className:i},L4(r),{ref:t}),n)});function Z6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function V6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B6(Object(n),!0).forEach(function(t){z6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q6=V6({},{cacheSize:2e3,enableCache:!0}),U6=new class{constructor(e){Z6(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;null!=n&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(q6.cacheSize),W6={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Y6="recharts_measurement_span";var K6=(e,t)=>{try{var n=document.getElementById(Y6);n||((n=document.createElement("span")).setAttribute("id",Y6),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,W6,t),n.textContent="".concat(e);var a=n.getBoundingClientRect();return{width:a.width,height:a.height}}catch(r){return{width:0,height:0}}},G6=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||l4)return{width:0,height:0};if(!q6.enableCache)return K6(e,t);var n=function(e,t){var n=t.fontSize||"",a=t.fontFamily||"",r=t.fontWeight||"",i=t.fontStyle||"",s=t.letterSpacing||"",o=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(a,"|").concat(r,"|").concat(i,"|").concat(s,"|").concat(o)}(e,t),a=U6.get(n);if(a)return a;var r=K6(e,t);return U6.set(n,r),r};var $6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Q6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,X6=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,J6=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,e3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},t3=["cm","mm","pt","pc","in","Q","px"];var n3="NaN";class a3{static parse(e){var t,n=Ue(null!==(t=J6.exec(e))&&void 0!==t?t:[],3),a=n[1],r=n[2];return null==a?a3.NaN:new a3(parseFloat(a),null!==r&&void 0!==r?r:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,OZ(e)&&(this.unit=""),""===t||X6.test(t)||(this.num=NaN,this.unit=""),function(e){return t3.includes(e)}(t)&&(this.num=function(e,t){return e*e3[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new a3(NaN,""):new a3(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new a3(NaN,""):new a3(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new a3(NaN,""):new a3(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new a3(NaN,""):new a3(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return OZ(this.num)}}function r3(e){if(null==e||e.includes(n3))return n3;for(var t=e;t.includes("*")||t.includes("/");){var n,a=Ue(null!==(n=$6.exec(t))&&void 0!==n?n:[],4),r=a[1],i=a[2],s=a[3],o=a3.parse(null!==r&&void 0!==r?r:""),l=a3.parse(null!==s&&void 0!==s?s:""),c="*"===i?o.multiply(l):o.divide(l);if(c.isNaN())return n3;t=t.replace($6,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,u=Ue(null!==(d=Q6.exec(t))&&void 0!==d?d:[],4),m=u[1],p=u[2],h=u[3],f=a3.parse(null!==m&&void 0!==m?m:""),x=a3.parse(null!==h&&void 0!==h?h:""),g="+"===p?f.add(x):f.subtract(x);if(g.isNaN())return n3;t=t.replace(Q6,g.toString())}return t}!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(a3,"NaN",new a3(NaN,""));var i3=/\(([^()]*)\)/;function s3(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,n=e;null!=(t=i3.exec(n));){var a=Ue(t,2)[1];n=n.replace(i3,r3(a))}return n}(t),t=r3(t)}function o3(e){var t=function(e){try{return s3(e)}catch(t){return n3}}(e.slice(5,-1));return t===n3?"":t}var l3=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],c3=["dx","dy","angle","className","breakAll"];function d3(){return d3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d3.apply(null,arguments)}function u3(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var m3=/[ \f\n\r\t\v\u2028\u2029]+/,p3=e=>{var t=e.children,n=e.breakAll,a=e.style;try{var r=[];return VZ(t)||(r=n?t.toString().split(""):t.toString().split(m3)),{wordsWithComputedWidth:r.map(e=>({word:e,width:G6(e,a).width})),spaceWidth:n?0:G6("\xa0",a).width}}catch(i){return null}};function h3(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var f3=(e,t,n,a)=>e.reduce((e,r)=>{var i=r.word,s=r.width,o=e[e.length-1];if(o&&null!=s&&(null==t||a||o.width+s+n<Number(t)))o.words.push(i),o.width+=s+n;else{var l={words:[i],width:s};e.push(l)}return e},[]),x3=e=>e.reduce((e,t)=>
2e.width>t.width?e:t),g3=(e,t,n,a,r,i,s,o)=>{var l=e.slice(0,t),c=p3({breakAll:n,style:a,children:l+"\u2026"});if(!c)return[!1,[]];var d=f3(c.wordsWithComputedWidth,i,s,o);return[d.length>r||x3(d).width>Number(i),d]},v3=e=>[{words:VZ(e)?[]:e.toString().split(m3),width:void 0}],b3=e=>{var t=e.width,n=e.scaleToFit,a=e.children,r=e.style,i=e.breakAll,s=e.maxLines;if((t||n)&&!l4){var o=p3({breakAll:i,children:a,style:r});return o?((e,t,n,a,r)=>{var i=e.maxLines,s=e.children,o=e.style,l=e.breakAll,c=HZ(i),d=String(s),u=f3(t,a,n,r);if(!c||r)return u;if(!(u.length>i||x3(u).width>Number(a)))return u;for(var m,p=0,h=d.length-1,f=0;p<=h&&f<=d.length-1;){var x=Math.floor((p+h)/2),g=Ue(g3(d,x-1,l,o,i,a,n,r),2),v=g[0],b=g[1],y=Ue(g3(d,x,l,o,i,a,n,r),1)[0];if(v||y||(p=x+1),v&&y&&(h=x-1),!v&&y){m=b;break}f++}return m||u})({breakAll:i,children:a,maxLines:s,style:r},o.wordsWithComputedWidth,o.spaceWidth,t,Boolean(n)):v3(a)}return v3(a)},y3="#808080",j3={angle:0,breakAll:!1,capHeight:"0.71em",fill:y3,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},w3=(0,o.forwardRef)((e,t)=>{var n=S6(e,j3),a=n.x,r=n.y,i=n.lineHeight,s=n.capHeight,l=n.fill,c=n.scaleToFit,d=n.textAnchor,u=n.verticalAnchor,m=u3(n,l3),p=(0,o.useMemo)(()=>b3({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),h=m.dx,f=m.dy,x=m.angle,g=m.className,v=m.breakAll,b=u3(m,c3);if(!PZ(a)||!PZ(r)||0===p.length)return null;var y,j=Number(a)+(HZ(h)?h:0),w=Number(r)+(HZ(f)?f:0);if(!JZ(j)||!JZ(w))return null;switch(u){case"start":y=o3("calc(".concat(s,")"));break;case"middle":y=o3("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(s," / 2))"));break;default:y=o3("calc(".concat(p.length-1," * -").concat(i,")"))}var N=[];if(c){var A=p[0].width,k=m.width;N.push("scale(".concat(HZ(k)&&HZ(A)?k/A:1,")"))}return x&&N.push("rotate(".concat(x,", ").concat(j,", ").concat(w,")")),N.length&&(b.transform=N.join(" ")),o.createElement("text",d3({},L4(b),{ref:t,x:j,y:w,className:js("recharts-text",g),textAnchor:d,fill:l.includes("url")?y3:l}),p.map((e,t)=>{var n=e.words.join(v?"":" ");return o.createElement("tspan",{x:j,dy:0===t?y:i,key:"".concat(n,"-").concat(t)},n)}))});function N3(e){var t=e.zIndex,n=e.children,a=void 0!==LW()&&void 0!==t&&0!==t,r=FW(),i=AU();(0,o.useLayoutEffect)(()=>a?(i(x4({zIndex:t})),()=>{i(g4({zIndex:t}))}):UZ,[i,t,a]);var s=_U(e=>B4(e,t,r));return a?s?(0,ia.createPortal)(n,s):null:n}w3.displayName="Text";var A3=["labelRef"],k3=["content"];function E3(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D3(Object(n),!0).forEach(function(t){C3(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3(){return F3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F3.apply(null,arguments)}var S3=(0,o.createContext)(null),M3=e=>
2{var t=e.x,n=e.y,a=e.upperWidth,r=e.lowerWidth,i=e.width,s=e.height,l=e.children,c=(0,o.useMemo)(()=>({x:t,y:n,upperWidth:a,lowerWidth:r,width:i,height:s}),[t,n,a,r,i,s]);return o.createElement(S3.Provider,{value:c},l)},O3=()=>{var e=(0,o.useContext)(S3),t=RW();return e||OW(t)},R3=(0,o.createContext)(null),H3=()=>{var e=(0,o.useContext)(R3),t=_U(hJ);return e||t},P3=e=>null!=e&&"function"===typeof e,L3=(e,t,n,a,r)=>{var i,s,l=e.offset,c=e.className,d=r.cx,u=r.cy,m=r.innerRadius,p=r.outerRadius,h=r.startAngle,f=r.endAngle,x=r.clockWise,g=(m+p)/2,v=((e,t)=>MZ(t-e)*Math.min(Math.abs(t-e),360))(h,f),b=v>=0?1:-1;switch(t){case"insideStart":i=h+b*l,s=x;break;case"insideEnd":i=f-b*l,s=!x;break;case"end":i=f+b*l,s=x;break;default:throw new Error("Unsupported position ".concat(t))}s=v<=0?s:!s;var y=ZX(d,u,g,i),j=ZX(d,u,g,i+359*(s?1:-1)),w="M".concat(y.x,",").concat(y.y,"\n A").concat(g,",").concat(g,",0,1,").concat(s?0:1,",\n ").concat(j.x,",").concat(j.y),N=VZ(e.id)?TZ("recharts-radial-line-"):e.id;return o.createElement("text",F3({},a,{dominantBaseline:"central",className:js("recharts-radial-bar-label",c)}),o.createElement("defs",null,o.createElement("path",{id:N,d:w})),o.createElement("textPath",{xlinkHref:"#".concat(N)},n))},T3=e=>"cx"in e&&HZ(e.cx),I3={angle:0,offset:5,zIndex:UX.label,position:"middle",textBreakAll:!1};function Z3(e){var t,n,a,r=S6(e,I3),i=r.viewBox,s=r.position,l=r.value,c=r.children,d=r.content,u=r.className,m=void 0===u?"":u,p=r.textBreakAll,h=r.labelRef,f=H3(),x=O3();if(!(t=null==i?"center"===s?x:null!==f&&void 0!==f?f:x:T3(i)?i:OW(i))||VZ(l)&&VZ(c)&&!(0,o.isValidElement)(d)&&"function"!==typeof d)return null;var g=_3(_3({},r),{},{viewBox:t});if((0,o.isValidElement)(d)){g.labelRef;var v=E3(g,A3);return(0,o.cloneElement)(d,v)}if("function"===typeof d){g.content;var b=E3(g,k3);if(n=(0,o.createElement)(d,b),(0,o.isValidElement)(n))return n}else n=(e=>{var t=e.value,n=e.formatter,a=VZ(e.children)?t:e.children;return"function"===typeof n?n(a):a})(r);var y=L4(r);if(T3(t)){if("insideStart"===s||"insideEnd"===s||"end"===s)return L3(r,s,n,y,t);a=((e,t,n)=>{var a=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,o=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=ZX(a,r,s+t,o),c=l.x;return{x:c,y:l.y,textAnchor:c>=a?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"end"};var d=ZX(a,r,(i+s)/2,o);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}})(t,r.offset,r.position)}else a=((e,t)=>{var n,a=e.parentViewBox,r=e.offset,i=e.position;null==a||T3(a)||(n=a);var s=t.x,o=t.y,l=t.upperWidth,c=t.lowerWidth,d=t.height,u=s,m=s+(l-c)/2,p=(u+m)/2,h=(l+c)/2,f=u+l/2,x=d>=0?1:-1,g=x*r,v=x>0?"end":"start",b=x>0?"start":"end",y=l>=0?1:-1,j=y*r,w=y>0?"end":"start",N=y>0?"start":"end";if("top"===i)return _3(_3({},{x:u+l/2,y:o-g,textAnchor:"middle",verticalAnchor:v}),n?{height:Math.max(o-n.y,0),width:l}:{});if("bottom"===i)return _3(_3({},{x:m+c/2,y:o+d+g,textAnchor:"middle",verticalAnchor:b}),n?{height:Math.max(n.y+n.height-(o+d),0),width:c}:{});if("left"===i){var A={x:p-j,y:o+d/2,textAnchor:w,verticalAnchor:"middle"};return _3(_3({},A),n?{width:Math.max(A.x-n.x,0),height:d}:{})}if("right"===i){var k={x:p+h+j,y:o+d/2,textAnchor:N,verticalAnchor:"middle"};return _3(_3({},k),n?{width:Math.max(n.x+n.width-k.x,0),height:d}:{})}var E=n?{width:h,height:d}:{};return"insideLeft"===i?_3({x:p+j,y:o+d/2,textAnchor:N,verticalAnchor:"middle"},E):"insideRight"===i?_3({x:p+h-j,y:o+d/2,textAnchor:w,verticalAnchor:"middle"},E):"insideTop"===i?_3({x:u+l/2,y:o+g,textAnchor:"middle",verticalAnchor:b},E):"insideBottom"===i?_3({x:m+c/2,y:o+d-g,textAnchor:"middle",verticalAnchor:v},E):"insideTopLeft"===i?_3({x:u+j,y:o+g,textAnchor:N,verticalAnchor:b},E):"insideTopRight"===i?_3({x:u+l-j,y:o+g,textAnchor:w,verticalAnchor:b},E):"insideBottomLeft"===i?_3({x:m+j,y:o+d-g,textAnchor:N,verticalAnchor:v},E):"insideBottomRight"===i?_3({x:m+c-j,y:o+d-g,textAnchor:w,verticalAnchor:v},E):i&&"object"===typeof i&&(HZ(i.x)||RZ(i.x))&&(HZ(i.y)||RZ(i.y))?_3({x:s+IZ(i.x,h),y:o+IZ(i.y,d),textAnchor:"end",verticalAnchor:"end"},E):_3({x:f,y:o+d/2,textAnchor:"middle",verticalAnchor:"middle"},E)})(r,t);return o.createElement(N3,{zIndex:r.zIndex},o.createElement(w3,F3({ref:h,className:js("recharts-label",m)},y,a,{textAnchor:h3(y.textAnchor)?y.textAnchor:a.textAnchor,breakAll:p}),n))}Z3.displayName="Label";var B3=(e,t,n)=>{if(!e)return null;var a={viewBox:t,labelRef:n};return!0===e?o.createElement(Z3,F3({key:"label-implicit"},a)):PZ(e)?o.createElement(Z3,F3({key:"label-implicit",value:e},a)):(0,o.isValidElement)(e)?e.type===Z3?(0,o.cloneElement)(e,_3({key:"label-implicit"},a)):o.createElement(Z3,F3({key:"label-implicit",content:e},a)):P3(e)?o.createElement(Z3,F3({key:"label-implicit",content:e},a)):e&&"object"===typeof e?o.createElement(Z3,F3({},e,{key:"label-implicit"},a)):null};function V3(e){var t=e.label,n=e.labelRef,a=O3();return B3(t,a,n)||null}var z3=e=>
2"radius"in e&&"startAngle"in e&&"endAngle"in e,q3=(e,t,n)=>{if(null===e||"object"!==typeof e&&"function"!==typeof e)return null;var a=null;return Object.keys(e).forEach(r=>{var i=e[r];S4(r)&&"function"===typeof i&&(a||(a={}),a[r]=((e,t,n)=>a=>(e(t,n,a),null))(i,t,n))}),a};function U3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class W3{static create(e){return new W3(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,a=t.position;if(void 0!==e){if(a)switch(a){case"start":default:return this.scale(e);case"middle":var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+s}return this.scale(e)}}isInRange(e){var t=this.range(),n=t[0],a=t[t.length-1];return n<=a?e>=n&&e<=a:e>=a&&e<=n}}U3(W3,"EPS",1e-4);function Y3(e,t){if(t<1)return[];if(1===t)return e;for(var n=[],a=0;a<e.length;a+=t){var r=e[a];void 0!==r&&n.push(r)}return n}function K3(e,t,n){return function(e){var t=e.width,n=e.height,a=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=a*Math.PI/180,i=Math.atan(n/t),s=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(s)}({width:e.width+t.width,height:e.height+t.height},n)}function G3(e,t,n,a,r){if(e*t<e*a||e*t>e*r)return!1;var i=n();return e*(t-e*i/2-a)>=0&&e*(t+e*i/2-r)<=0}function $3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Q3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$3(Object(n),!0).forEach(function(t){X3(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X3(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J3(e,t,n){var a,r=e.tick,i=e.ticks,s=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,u=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(HZ(c)||l4)return null!==(a=function(e,t){return Y3(e,t+1)}(i,HZ(c)?c:0))&&void 0!==a?a:[];var p=[],h="top"===l||"bottom"===l?"width":"height",f=u&&"width"===h?G6(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=(e,a)=>{var r="function"===typeof d?d(e.value,a):e.value;return"width"===h?K3(G6(r,{fontSize:t,letterSpacing:n}),f,m):G6(r,{fontSize:t,letterSpacing:n})[h]},g=i.length>=2?MZ(i[1].coordinate-i[0].coordinate):1,v=function(e,t,n){var a="width"===n,r=e.x,i=e.y,s=e.width,o=e.height;return 1===t?{start:a?r:i,end:a?r+s:i+o}:{start:a?r+s:i+o,end:a?r:i}}(s,g,h);return"equidistantPreserveStart"===c?function(e,t,n,a,r){for(var i,s=(a||[]).slice(),o=t.start,l=t.end,c=0,d=1,u=o,m=function(){var t=null===a||void 0===a?void 0:a[c];if(void 0===t)return{v:Y3(a,d)};var i,s=c,m=()=>(void 0===i&&(i=n(t,s)),i),p=t.coordinate,h=0===c||G3(e,p,m,u,l);h||(c=0,u=o,d+=1),h&&(u=p+e*(m()/2+r),c+=d)};d<=s.length;)if(i=m())return i.v;return[]}(g,v,x,i,o):"equidistantPreserveEnd"===c?function(e,t,n,a,r){var i=(a||[]).slice().length;if(0===i)return[];for(var s=t.start,o=t.end,l=1;l<=i;l++){for(var c=(i-1)%l,d=s,u=!0,m=function(){var t,i=a[p],s=p,l=()=>(void 0===t&&(t=n(i,s)),t),m=i.coordinate,h=p===c||G3(e,m,l,d,o);if(!h)return u=!1,1;
2h&&(d=m+e*(l()/2+r))},p=c;p<i&&!m();p+=l);if(u){for(var h=[],f=c;f<i;f+=l)h.push(a[f]);return h}}return[]}(g,v,x,i,o):(p="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,a,r,i){var s=(a||[]).slice(),o=s.length,l=t.start,c=t.end;if(i){var d=a[o-1],u=n(d,o-1),m=e*(d.coordinate+e*u/2-c);s[o-1]=d=Q3(Q3({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate}),null!=d.tickCoord&&G3(e,d.tickCoord,()=>u,l,c)&&(c=d.tickCoord-e*(u/2+r),s[o-1]=Q3(Q3({},d),{},{isShow:!0}))}for(var p=i?o-1:o,h=function(t){var a,i=s[t],o=()=>(void 0===a&&(a=n(i,t)),a);if(0===t){var d=e*(i.coordinate-e*o()/2-l);s[t]=i=Q3(Q3({},i),{},{tickCoord:d<0?i.coordinate-d*e:i.coordinate})}else s[t]=i=Q3(Q3({},i),{},{tickCoord:i.coordinate});null!=i.tickCoord&&G3(e,i.tickCoord,o,l,c)&&(l=i.tickCoord+e*(o()/2+r),s[t]=Q3(Q3({},i),{},{isShow:!0}))},f=0;f<p;f++)h(f);return s}(g,v,x,i,o,"preserveStartEnd"===c):function(e,t,n,a,r){for(var i=(a||[]).slice(),s=i.length,o=t.start,l=t.end,c=function(t){var a,c=i[t],d=()=>(void 0===a&&(a=n(c,t)),a);if(t===s-1){var u=e*(c.coordinate+e*d()/2-l);i[t]=c=Q3(Q3({},c),{},{tickCoord:u>0?c.coordinate-u*e:c.coordinate})}else i[t]=c=Q3(Q3({},c),{},{tickCoord:c.coordinate});null!=c.tickCoord&&G3(e,c.tickCoord,d,o,l)&&(l=c.tickCoord-e*(d()/2+r),i[t]=Q3(Q3({},c),{},{isShow:!0}))},d=s-1;d>=0;d--)c(d);return i}(g,v,x,i,o),p.filter(e=>e.isShow))}var e5=["axisLine","width","height","className","hide","ticks","axisType"];function t5(){return t5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},t5.apply(null,arguments)}function n5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function a5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n5(Object(n),!0).forEach(function(t){r5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i5={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:UX.axis};function s5(e){var t=e.x,n=e.y,a=e.width,r=e.height,i=e.orientation,s=e.mirror,l=e.axisLine,c=e.otherSvgProps;if(!l)return null;var d=a5(a5(a5({},c),H4(l)),{},{fill:"none"});if("top"===i||"bottom"===i){var u=+("top"===i&&!s||"bottom"===i&&s);d=a5(a5({},d),{},{x1:t,y1:n+u*r,x2:t+a,y2:n+u*r})}else{var m=+("left"===i&&!s||"right"===i&&s);d=a5(a5({},d),{},{x1:t+m*a,y1:n,x2:t+m*a,y2:n+r})}return o.createElement("line",t5({},d,{className:js("recharts-cartesian-axis-line",CZ(l,"className"))}))}function o5(e){var t,n=e.option,a=e.tickProps,r=e.value,i=js(a.className,"recharts-cartesian-axis-tick-value");if(o.isValidElement(n))t=o.cloneElement(n,a5(a5({},a),{},{className:i}));else if("function"===typeof n)t=n(a5(a5({},a),{},{className:i}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!==typeof n&&(s=js(s,null===n||void 0===n?void 0:n.className)),t=o.createElement(w3,t5({},a,{className:s}),r)}return t}var l5=(0,o.forwardRef)((e,t)=>{var n=e.ticks,a=void 0===n?[]:n,r=e.tick,i=e.tickLine,s=e.stroke,l=e.tickFormatter,c=e.unit,d=e.padding,u=e.tickTextProps,m=e.orientation,p=e.mirror,h=e.x,f=e.y,x=e.width,g=e.height,v=e.tickSize,b=e.tickMargin,y=e.fontSize,j=e.letterSpacing,w=e.getTicksConfig,N=e.events,A=e.axisType,k=J3(a5(a5({},w),{},{ticks:a}),y,j),E=function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(m,p),D=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(m,p),_=H4(w),C=P4(r),F={};"object"===typeof i&&(F=i);var S=a5(a5({},_),{},{fill:"none"},F),M=k.map(e=>a5({entry:e},function(e,t,n,a,r,i,s,o,l){var c,d,u,m,p,h,f=o?-1:1,x=e.tickSize||s,g=HZ(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=d=e.coordinate,h=(u=(m=n+ +!o*r)-f*x)-f*l,p=g;break;
vendor: 7,986 bytes, line 2
2case"left":u=m=e.coordinate,p=(c=(d=t+ +!o*a)-f*x)-f*l,h=g;break;case"right":u=m=e.coordinate,p=(c=(d=t+ +o*a)+f*x)+f*l,h=g;break;default:c=d=e.coordinate,h=(u=(m=n+ +o*r)+f*x)+f*l,p=g}return{line:{x1:c,y1:u,x2:d,y2:m},tick:{x:p,y:h}}}(e,h,f,x,g,m,v,p,b))),O=M.map(e=>{var t=e.entry,n=e.line;return o.createElement(I6,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&o.createElement("line",t5({},S,n,{className:js("recharts-cartesian-axis-tick-line",CZ(i,"className"))})))}),R=M.map((e,t)=>{var n=e.entry,a=e.tick,i=a5(a5(a5(a5({textAnchor:E,verticalAnchor:D},_),{},{stroke:"none",fill:s},C),a),{},{index:t,payload:n,visibleTicksCount:k.length,tickFormatter:l,padding:d},u);return o.createElement(I6,t5({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},q3(N,n,t)),r&&o.createElement(o5,{option:r,tickProps:i,value:"".concat("function"===typeof l?l(n.value,t):n.value).concat(c||"")}))});return o.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(A,"-ticks")},R.length>0&&o.createElement(N3,{zIndex:UX.label},o.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(A,"-tick-labels"),ref:t},R)),O.length>0&&o.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(A,"-tick-lines")},O))}),c5=(0,o.forwardRef)((e,t)=>{var n=e.axisLine,a=e.width,r=e.height,i=e.className,s=e.hide,l=e.ticks,c=e.axisType,d=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,e5),u=Ue((0,o.useState)(""),2),m=u[0],p=u[1],h=Ue((0,o.useState)(""),2),f=h[0],x=h[1],g=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var t=e.ticks,n=e.label,a=e.labelGapWithTick,r=void 0===a?5:a,i=e.tickSize,s=void 0===i?0:i,o=e.tickMargin,l=void 0===o?0:o,c=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>c&&(c=t.width)}});var d=n?n.getBoundingClientRect().width:0,u=c+(s+l)+d+(n?r:0);return Math.round(u)}return 0})({ticks:g.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var v=(0,o.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=t;var n=t[0];if(n){var a=window.getComputedStyle(n),r=a.fontSize,i=a.letterSpacing;r===m&&i===f||(p(r),x(i))}}},[m,f]);return s||null!=a&&a<=0||null!=r&&r<=0?null:o.createElement(N3,{zIndex:e.zIndex},o.createElement(I6,{className:js("recharts-cartesian-axis",i)},o.createElement(s5,{x:e.x,y:e.y,width:a,height:r,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:H4(e)}),o.createElement(l5,{ref:v,axisType:c,events:d,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:f,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),o.createElement(M3,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},o.createElement(V3,{label:e.label,labelRef:e.labelRef}),e.children)))}),d5=o.forwardRef((e,t)=>{var n=S6(e,i5);return o.createElement(c5,t5({},n,{ref:t}))});d5.displayName="CartesianAxis";var u5=["domain","range"],m5=["domain","range"];function p5(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h5(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&(e[0]===t[0]&&e[1]===t[1])}function f5(e,t){if(e===t)return!0;var n=e.domain,a=e.range,r=p5(e,u5),i=t.domain,s=t.range,o=p5(t,m5);return!!h5(n,i)&&(!!h5(a,s)&&k4(r,o))}var x5=["dangerouslySetInnerHTML","ticks","scale"],g5=["id","scale"];function v5(){return v5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},v5.apply(null,arguments)}function b5(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y5(e){var t=AU(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t(d8(e)):n.current!==e&&t(u8({prev:n.current,next:e})),n.current=e},[e,t]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(m8(n.current)),n.current=null)},[t]),null}var j5=e=>{var t=e.xAxisId,n=e.className,a=_U(_W),r=FW(),i="xAxis",s=_U(e=>g1(e,i,t,r)),l=_U(e=>s1(e,t)),c=_U(e=>c1(e,t)),d=_U(e=>CJ(e,t));if(null==l||null==c||null==d)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var u=b5(e,x5),m=(d.id,d.scale,b5(d,g5));return o.createElement(d5,v5({},u,m,{x:c.x,y:c.y,width:l.width,height:l.height,className:js("recharts-".concat(i," ").concat(i),n),viewBox:a,ticks:s,axisType:i}))},w5={allowDataOverflow:_J.allowDataOverflow,allowDecimals:_J.allowDecimals,allowDuplicatedCategory:_J.allowDuplicatedCategory,angle:_J.angle,axisLine:i5.axisLine,height:_J.height,hide:!1,includeHidden:_J.includeHidden,interval:_J.interval,minTickGap:_J.minTickGap,mirror:_J.mirror,orientation:_J.orientation,padding:_J.padding,reversed:_J.reversed,scale:_J.scale,tick:_J.tick,tickCount:_J.tickCount,tickLine:i5.tickLine,tickSize:i5.tickSize,type:_J.type,xAxisId:0},N5=e=>{var t=S6(e,w5);return o.createElement(o.Fragment,null,o.createElement(y5,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),o.createElement(j5,t))},A5=o.memo(N5,f5);A5.displayName="XAxis";var k5=["dangerouslySetInnerHTML","ticks","scale"],E5=["id","scale"];function D5(){return D5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},D5.apply(null,arguments)}function _5(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C5(e){var t=AU(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t(p8(e)):n.current!==e&&t(h8({prev:n.current,next:e})),n.current=e},[e,t]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(f8(n.current)),n.current=null)},[t]),null}var F5=e=>{var t=e.yAxisId,n=e.className,a=e.width,r=e.label,i=(0,o.useRef)(null),s=(0,o.useRef)(null),l=_U(_W),c=FW(),d=AU(),u="yAxis",m=_U(e=>u1(e,t)),p=_U(e=>d1(e,t)),h=_U(e=>g1(e,u,t,c)),f=_U(e=>MJ(e,t));if((0,o.useLayoutEffect)(()=>
2{if("auto"===a&&m&&!P3(r)&&!(0,o.isValidElement)(r)&&null!=f){var e=i.current;if(e){var n=e.getCalculatedWidth();Math.round(m.width)!==Math.round(n)&&d(x8({id:t,width:n}))}}},[h,m,d,r,t,a,f]),null==m||null==p||null==f)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var x=_5(e,k5),g=(f.id,f.scale,_5(f,E5));return o.createElement(d5,D5({},x,g,{ref:i,labelRef:s,x:p.x,y:p.y,tickTextProps:"auto"===a?{width:void 0}:{width:a},width:m.width,height:m.height,className:js("recharts-".concat(u," ").concat(u),n),viewBox:l,ticks:h,axisType:u}))},S5={allowDataOverflow:SJ.allowDataOverflow,allowDecimals:SJ.allowDecimals,allowDuplicatedCategory:SJ.allowDuplicatedCategory,angle:SJ.angle,axisLine:i5.axisLine,hide:!1,includeHidden:SJ.includeHidden,interval:SJ.interval,minTickGap:SJ.minTickGap,mirror:SJ.mirror,orientation:SJ.orientation,padding:SJ.padding,reversed:SJ.reversed,scale:SJ.scale,tick:SJ.tick,tickCount:SJ.tickCount,tickLine:i5.tickLine,tickSize:i5.tickSize,type:SJ.type,width:SJ.width,yAxisId:0},M5=e=>{var t=S6(e,S5);return o.createElement(o.Fragment,null,o.createElement(C5,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),o.createElement(F5,t))},O5=o.memo(M5,f5);function R5(){return R5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},R5.apply(null,arguments)}function H5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function P5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(t){L5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T5(e){return Array.isArray(e)&&PZ(e[0])&&PZ(e[1])?e.join(" ~ "):e}O5.displayName="YAxis";var I5=e=>{var t=e.separator,n=void 0===t?" : ":t,a=e.contentStyle,r=void 0===a?{}:a,i=e.itemStyle,s=void 0===i?{}:i,l=e.labelStyle,c=void 0===l?{}:l,d=e.payload,u=e.formatter,m=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,f=e.label,x=e.labelFormatter,g=e.accessibilityLayer,v=void 0!==g&&g,b=P5({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),y=P5({margin:0},c),j=!VZ(f),w=j?f:"",N=js("recharts-default-tooltip",p),A=js("recharts-tooltip-label",h);j&&x&&void 0!==d&&null!==d&&(w=x(f,d));var k=v?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",R5({className:N,style:b},k),o.createElement("p",{className:A,style:y},o.isValidElement(w)?w:"".concat(w)),(()=>{if(d&&d.length){var e=(m?BU(d,m):d).map((e,t)=>{if("none"===e.type)return null;var a=e.formatter||u||T5,r=e.value,i=e.name,l=r,c=i;if(a){var m=a(r,i,e,t,d);if(Array.isArray(m)){var p=Ue(m,2);l=p[0],c=p[1]}else{if(null==m)return null;l=m}}var h=P5({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s);return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:h},PZ(c)?o.createElement("span",{className:"recharts-tooltip-item-name"},c):null,PZ(c)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},Z5="recharts-tooltip-wrapper",B5={visibility:"hidden"};function V5(e){var t=e.coordinate,n=e.translateX,a=e.translateY;return js(Z5,{["".concat(Z5,"-right")]:HZ(n)&&t&&HZ(t.x)&&n>=t.x,["".concat(Z5,"-left")]:HZ(n)&&t&&HZ(t.x)&&n<t.x,["".concat(Z5,"-bottom")]:HZ(a)&&t&&HZ(t.y)&&a>=t.y,["".concat(Z5,"-top")]:HZ(a)&&t&&HZ(t.y)&&a<t.y})}
2function z5(e){var t=e.allowEscapeViewBox,n=e.coordinate,a=e.key,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&HZ(i[a]))return i[a];var d=n[a]-o-(r>0?r:0),u=n[a]+r;if(t[a])return s[a]?d:u;var m=l[a];return null==m?0:s[a]?d<m?Math.max(u,m):Math.max(d,m):null==c?0:u+o>m+c?Math.max(d,m):Math.max(u,m)}function q5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function U5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q5(Object(n),!0).forEach(function(t){W5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Y5 extends o.PureComponent{constructor(){super(...arguments),W5(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),W5(this,"handleKeyDown",e=>{var t,n,a,r;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(n=this.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==t?t:0,y:null!==(a=null===(r=this.props.coordinate)||void 0===r?void 0:r.y)&&void 0!==a?a:0}})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var e=this.props,t=e.active,n=e.allowEscapeViewBox,a=e.animationDuration,r=e.animationEasing,i=e.children,s=e.coordinate,l=e.hasPayload,c=e.isAnimationActive,d=e.offset,u=e.position,m=e.reverseDirection,p=e.useTranslate3d,h=e.viewBox,f=e.wrapperStyle,x=e.lastBoundingBox,g=e.innerRef,v=e.hasPortalFromProps,b=function(e){var t,n,a=e.allowEscapeViewBox,r=e.coordinate,i=e.offsetTopLeft,s=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,d=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&r?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=z5({allowEscapeViewBox:a,coordinate:r,key:"x",offsetTopLeft:i,position:s,reverseDirection:o,tooltipDimension:l.width,viewBox:d,viewBoxDimension:d.width}),translateY:n=z5({allowEscapeViewBox:a,coordinate:r,key:"y",offsetTopLeft:i,position:s,reverseDirection:o,tooltipDimension:l.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:c}):B5,cssClasses:V5({translateX:t,translateY:n,coordinate:r})}}({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:d,position:u,reverseDirection:m,tooltipBox:{height:x.height,width:x.width},useTranslate3d:p,viewBox:h}),y=b.cssClasses,j=b.cssProperties,w=v?{}:U5(U5({transition:c&&t?"transform ".concat(a,"ms ").concat(r):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),N=U5(U5({},w),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},f);return o.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:y,style:N,ref:g},i)}}function K5(e){return e}function G5(e){return null==e||"object"!==typeof e&&"function"!==typeof e}function $5(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}
2function Q5(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const X5="[object RegExp]",J5="[object String]",e7="[object Number]",t7="[object Boolean]",n7="[object Arguments]",a7="[object Symbol]",r7="[object Date]",i7="[object Map]",s7="[object Set]",o7="[object Array]",l7="[object ArrayBuffer]",c7="[object Object]",d7="[object DataView]",u7="[object Uint8Array]",m7="[object Uint8ClampedArray]",p7="[object Uint16Array]",h7="[object Uint32Array]",f7="[object Int8Array]",x7="[object Int16Array]",g7="[object Int32Array]",v7="[object Float32Array]",b7="[object Float64Array]",y7="object"===typeof globalThis&&globalThis||"object"===typeof window&&window||"object"===typeof self&&self||"object"===typeof n.g&&n.g||function(){return this}();function j7(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const i=null===r||void 0===r?void 0:r(e,t,n,a);if(void 0!==i)return i;if(G5(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){const t=new Array(e.length);a.set(e,t);for(let i=0;i<e.length;i++)t[i]=j7(e[i],i,n,a,r);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;a.set(e,t);for(const i of e){var s=Ue(i,2);const e=s[0],o=s[1];t.set(e,j7(o,e,n,a,r))}return t}if(e instanceof Set){const t=new Set;a.set(e,t);for(const i of e)t.add(j7(i,void 0,n,a,r));return t}if(function(e){return"undefined"!==typeof y7.Buffer&&y7.Buffer.isBuffer(e)}(e))return e.subarray();if(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);a.set(e,t);for(let i=0;i<e.length;i++)t[i]=j7(e[i],i,n,a,r);return t}if(e instanceof ArrayBuffer||"undefined"!==typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return a.set(e,t),w7(t,e,n,a,r),t}if("undefined"!==typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return a.set(e,t),w7(t,e,n,a,r),t}if("undefined"!==typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return a.set(e,t),w7(t,e,n,a,r),t}if(e instanceof Error){const t=structuredClone(e);return a.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,w7(t,e,n,a,r),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return a.set(e,t),w7(t,e,n,a,r),t}if(e instanceof Number){const t=new Number(e.valueOf());return a.set(e,t),w7(t,e,n,a,r),t}if(e instanceof String){const t=new String(e.valueOf());return a.set(e,t),w7(t,e,n,a,r),t}if("object"===typeof e&&function(e){switch(Q5(e)){case n7:case o7:case l7:case d7:case t7:case r7:case v7:case b7:case f7:case x7:case g7:case i7:case e7:case c7:case X5:case s7:case J5:case a7:case u7:case m7:case p7:case h7:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return a.set(e,t),w7(t,e,n,a,r),t}return e}function w7(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;const i=[...Object.keys(t),...$5(t)];for(let s=0;s<i.length;s++){const o=i[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=j7(t[o],o,n,a,r))}}function N7(e,t,n){return"function"!==typeof n?N7(e,t,()=>{}):A7(e,t,function e(t,a,r,i,s,o){const l=n(t,a,r,i,s,o);return void 0!==l?Boolean(l):A7(t,a,e,o,!1)},new Map,!0)}function A7(e,t,n,a){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,a){if(null==t)return!0;if(Array.isArray(t))return k7(e,t,n,a);if(t instanceof Map)return function(e,t,n,a){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const i of t.entries()){var r=Ue(i,2);const s=r[0],o=r[1];if(!1===n(e.get(s),o,s,e,t,a))return!1}return!0}(e,t,n,a);if(t instanceof Set)return function(e,t,n,a){return 0===t.size||e instanceof Set&&k7([...e],[...t],n,a)}(e,t,n,a);const r=Object.keys(t);if(null==e||G5(e))return 0===r.length;if(0===r.length)return!0;
2if(null!==a&&void 0!==a&&a.has(t))return a.get(t)===e;null===a||void 0===a||a.set(t,e);try{for(let i=0;i<r.length;i++){const s=r[i];if(!G5(e)&&!(s in e))return!1;if(void 0===t[s]&&void 0!==e[s])return!1;if(null===t[s]&&null!==e[s])return!1;if(!n(e[s],t[s],s,e,t,a))return!1}return!0}finally{null===a||void 0===a||a.delete(t)}}(e,t,n,a);case"function":return Object.keys(t).length>0?A7(e,h({},t),n,a,r):CU(e,t);default:return SU(e)&&r?"string"!==typeof t||""===t:CU(e,t)}}function k7(e,t,n,a){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const r=new Set;for(let i=0;i<t.length;i++){const s=t[i];let o=!1;for(let l=0;l<e.length;l++){if(r.has(l))continue;let c=!1;if(n(e[l],s,i,e,t,a)&&(c=!0),c){r.add(l),o=!0;break}}if(!o)return!1}return!0}function E7(e,t){return N7(e,t,()=>{})}function D7(e){var t;return e=j7(t=e,void 0,t,new Map,void 0),t=>E7(t,e)}function _7(e,t){return function(e,t){return j7(e,void 0,e,new Map,t)}(e,(n,a,r,i)=>{const s=null===t||void 0===t?void 0:t(n,a,r,i);if(void 0!==s)return s;if("object"===typeof e){if("[object Object]"===Q5(e)&&"function"!==typeof e.constructor){const t={};return i.set(e,t),w7(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case e7:case J5:case t7:{const t=new e.constructor(null===e||void 0===e?void 0:e.valueOf());return w7(t,e),t}case n7:{const t={};return w7(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function C7(e){return null!==e&&"object"===typeof e&&"[object Arguments]"===Q5(e)}function F7(e,t){var n;switch(typeof e){case"object":Object.is(null===(n=e)||void 0===n?void 0:n.valueOf(),-0)&&(e="-0");break;case"number":e=EZ(e)}return t=_7(t),function(n){const a=CZ(n,e);return void 0===a?function(e,t){let n;if(n=Array.isArray(t)?t:"string"===typeof t&&kZ(t)&&!(t in Object(e))?_Z(t):[t],0===n.length)return!1;let a=e;for(let r=0;r<n.length;r++){const e=n[r];if((null==a||!Object.hasOwn(a,e))&&!((Array.isArray(a)||C7(a))&&OU(e)&&e<a.length))return!1;a=a[e]}return!0}(n,e):void 0===t?void 0===a:E7(a,t)}}function S7(e){if(null==e)return K5;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?F7(e[0],e[1]):D7(e);case"string":case"symbol":case"number":return function(e){return function(t){return CZ(t,e)}}(e)}}function M7(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K5;return function(e){return function(e){return"object"===typeof e&&null!==e}(e)&&FU(e)}(e)?function(e,t){const n=new Map;for(let a=0;a<e.length;a++){const r=e[a],i=t(r,a,e);n.has(i)||n.set(i,r)}return Array.from(n.values())}(Array.from(e),function(e,t){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return e.apply(this,a.slice(0,t))}}(S7(t),1)):[]}var O7,R7,H7,P7,L7,T7,I7,Z7,B7,V7,z7,q7,U7,W7;function Y7(){}function K7(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function G7(e){this._context=e}function $7(e){return new G7(e)}function Q7(e){this._context=e}function X7(e){return new Q7(e)}function J7(e){this._context=e}function e9(e){return new J7(e)}n.dn(Y7),n.dn($7),G7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K7(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K7(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(X7),Q7.prototype={areaStart:Y7,areaEnd:Y7,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K7(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(e9),J7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:K7(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class t9{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function n9(e){this._context=e}function a9(e){return new n9(e)}function r9(e){this._context=e}function i9(e){return new r9(e)}function s9(e){return e<0?-1:1}function o9(e,t,n){var a=e._x1-e._x0,r=t-e._x1,i=(e._y1-e._y0)/(a||r<0&&-0),s=(n-e._y1)/(r||a<0&&-0),o=(i*r+s*a
2)/(a+r);return(s9(i)+s9(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function l9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function c9(e,t,n){var a=e._x0,r=e._y0,i=e._x1,s=e._y1,o=(i-a)/3;e._context.bezierCurveTo(a+o,r+o*t,i-o,s-o*n,i,s)}function d9(e){this._context=e}function u9(e){this._context=new m9(e)}function m9(e){this._context=e}function p9(e){this._context=e}function h9(e){var t,n,a=e.length-1,r=new Array(a),i=new Array(a),s=new Array(a);for(r[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<a-1;++t)r[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(r[a-1]=2,i[a-1]=7,s[a-1]=8*e[a-1]+e[a],t=1;t<a;++t)n=r[t]/i[t-1],i[t]-=n,s[t]-=n*s[t-1];for(r[a-1]=s[a-1]/i[a-1],t=a-2;t>=0;--t)r[t]=(s[t]-r[t+1])/i[t];for(i[a-1]=(e[a]+r[a-1])/2,t=0;t<a-1;++t)i[t]=2*e[t+1]-r[t+1];return[r,i]}function f9(e){return new p9(e)}function x9(e,t){this._context=e,this._t=t}function g9(e){return new x9(e,.5)}function v9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.dn(a9),n9.prototype={areaStart:Y7,areaEnd:Y7,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},n.dn(i9),r9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},d9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:c9(this,this._t0,l9(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,c9(this,l9(this,n=o9(this,e,t)),n);break;default:c9(this,this._t0,n=o9(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(u9.prototype=Object.create(d9.prototype)).point=function(e,t){d9.prototype.point.call(this,t,e)},m9.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,a,r,i){this._context.bezierCurveTo(t,e,a,n,i,r)}},n.dn(f9),p9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var a=h9(e),r=h9(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(a[0][i],r[0][i],a[1][i],r[1][i],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},n.dn(g9),x9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const b9=Math.PI,y9=2*b9,j9=1e-6,w9=y9-j9;function N9(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class A9{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?N9:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return N9;const n=10**t;return function(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append(O7||(O7=v9(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(R7||(R7=v9(["Z"]))))}lineTo(e,t){this._append(H7||(H7=v9(["L",",",""])),this._x1=+e,this._y1=+t)}quadraticCurveTo(e,t,n,a){this._append(P7||(P7=v9(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+a)}bezierCurveTo(e,t,n,a,r,i){this._append(L7||(L7=v9(["C",",",",",",",",",",",""])),+e,+t,+n,+a,this._x1=+r,this._y1=+i)}arcTo(e,t,n,a,r){if(e=+e,t=+t,n=+n,a=+a,(r=+r)<0)throw new Error("negative radius: ".concat(r));let i=this._x1,s=this._y1,o=n-e,l=a-t,c=i-e,d=s-t,u=c*c+d*d;if(null===this._x1)this._append(T7||(T7=v9(["M",",",""])),this._x1=e,this._y1=t);else if(u>j9)if(Math.abs(d*o-l*c)>j9&&r){let m=n-i,p=a-s,h=o*o+l*l,f=m*m+p*p,x=Math.sqrt(h),g=Math.sqrt(u),v=r*Math.tan((b9-Math.acos((h+u-f)/(2*x*g)))/2),b=v/g,y=v/x;Math.abs(b-1)>j9&&this._append(Z7||(Z7=v9(["L",",",""])),e+b*c,t+b*d),this._append(B7||(B7=v9(["A",",",",0,0,",",",",",""])),r,r,+(d*m>c*p),this._x1=e+y*o,this._y1=t+y*l)}else this._append(I7||(I7=v9(["L",",",""])),this._x1=e,this._y1=t);else;}arc(e,t,n,a,r,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error("negative radius: ".concat(n));let s=n*Math.cos(a),o=n*Math.sin(a),l=e+s,c=t+o,d=1^i,u=i?a-r:r-a;null===this._x1?this._append(V7||(V7=v9(["M",",",""])),l,c):(Math.abs(this._x1-l)>j9||Math.abs(this._y1-c)>j9)&&this._append(z7||(z7=v9(["L",",",""])),l,c),n&&(u<0&&(u=u%y9+y9),u>w9?this._append(q7||(q7=v9(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,d,e-s,t-o,n,n,d,this._x1=l,this._y1=c):u>j9&&this._append(U7||(U7=v9(["A",",",",0,",",",",",",",""])),n,n,+(u>=b9),d,this._x1=e+n*Math.cos(r),this._y1=t+n*Math.sin(r)))}rect(e,t,n,a){this._append(W7||(W7=v9(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+a,-n)}toString(){return this._}}function k9(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError("invalid digits: ".concat(n));t=e}return e},()=>new A9(t)}function E9(e){return e[0]}function D9(e){return e[1]}
2function _9(e,t){var n=KU(!0),a=null,r=i9,i=null,s=k9(o);function o(o){var l,c,d,u=(o=YU(o)).length,m=!1;for(null==a&&(i=r(d=s())),l=0;l<=u;++l)!(l<u&&n(c=o[l],l,o))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(c,l,o),+t(c,l,o));if(d)return i=null,d+""||null}return e="function"===typeof e?e:void 0===e?E9:KU(e),t="function"===typeof t?t:void 0===t?D9:KU(t),o.x=function(t){return arguments.length?(e="function"===typeof t?t:KU(+t),o):e},o.y=function(e){return arguments.length?(t="function"===typeof e?e:KU(+e),o):t},o.defined=function(e){return arguments.length?(n="function"===typeof e?e:KU(!!e),o):n},o.curve=function(e){return arguments.length?(r=e,null!=a&&(i=r(a)),o):r},o.context=function(e){return arguments.length?(null==e?a=i=null:i=r(a=e),o):a},o}function C9(e,t,n){var a=null,r=KU(!0),i=null,s=i9,o=null,l=k9(c);function c(c){var d,u,m,p,h,f=(c=YU(c)).length,x=!1,g=new Array(f),v=new Array(f);for(null==i&&(o=s(h=l())),d=0;d<=f;++d){if(!(d<f&&r(p=c[d],d,c))===x)if(x=!x)u=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=d-1;m>=u;--m)o.point(g[m],v[m]);o.lineEnd(),o.areaEnd()}x&&(g[d]=+e(p,d,c),v[d]=+t(p,d,c),o.point(a?+a(p,d,c):g[d],n?+n(p,d,c):v[d]))}if(h)return o=null,h+""||null}function d(){return _9().defined(r).curve(s).context(i)}return e="function"===typeof e?e:void 0===e?E9:KU(+e),t="function"===typeof t?t:KU(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?D9:KU(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:KU(+t),a=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:KU(+t),c):e},c.x1=function(e){return arguments.length?(a=null==e?null:"function"===typeof e?e:KU(+e),c):a},c.y=function(e){return arguments.length?(t="function"===typeof e?e:KU(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:KU(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:KU(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(a).y(t)},c.defined=function(e){return arguments.length?(r="function"===typeof e?e:KU(!!e),c):r},c.curve=function(e){return arguments.length?(s=e,null!=i&&(o=s(i)),c):s},c.context=function(e){return arguments.length?(null==e?i=o=null:o=s(i=e),c):i},c}function F9(){return F9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F9.apply(null,arguments)}function S9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function M9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S9(Object(n),!0).forEach(function(t){O9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.dn(_9),n.dn(C9);var R9={curveBasisClosed:X7,curveBasisOpen:e9,curveBasis:$7,curveBumpX:function(e){return new t9(e,!0)},curveBumpY:function(e){return new t9(e,!1)},curveLinearClosed:a9,curveLinear:i9,curveMonotoneX:function(e){return new d9(e)},curveMonotoneY:function(e){return new u9(e)},curveNatural:f9,curveStep:g9,curveStepAfter:function(e){return new x9(e,1)},curveStepBefore:function(e){return new x9(e,0)}},H9=e=>JZ(e.x)&&JZ(e.y),P9=e=>null!=e.base&&H9(e.base)&&H9(e),L9=e=>e.x,T9=e=>e.y,I9=e=>{var t,n=e.type,a=void 0===n?"linear":n,r=e.points,i=void 0===r?[]:r,s=e.base
2Line,o=e.layout,l=e.connectNulls,c=void 0!==l&&l,d=((e,t)=>{if("function"===typeof e)return e;var n="curve".concat(zZ(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?R9[n]||i9:R9["".concat(n).concat("vertical"===t?"Y":"X")]})(a,o),u=c?i.filter(H9):i;if(Array.isArray(s)){var m=i.map((e,t)=>M9(M9({},e),{},{base:s[t]}));return t="vertical"===o?C9().y(T9).x1(L9).x0(e=>e.base.x):C9().x(L9).y1(T9).y0(e=>e.base.y),t.defined(P9).curve(d)(c?m.filter(P9):m)}return(t="vertical"===o&&HZ(s)?C9().y(T9).x1(L9).x0(s):HZ(s)?C9().x(L9).y1(T9).y0(s):_9().x(L9).y(T9)).defined(H9).curve(d)(u)},Z9=e=>{var t=e.className,n=e.points,a=e.path,r=e.pathRef,i=LW();if((!n||!n.length)&&!a)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},l=n&&n.length?I9(s):a;return o.createElement("path",F9({},H4(e),((e,t)=>{if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,o.isValidElement)(e)&&(n=e.props),"object"!==typeof n&&"function"!==typeof n)return null;var a={};return Object.keys(n).forEach(e=>{S4(e)&&(a[e]=t||(t=>n[e](n,t)))}),a})(e),{className:js("recharts-curve",t),d:null===l?void 0:l,ref:r}))},B9=["x","y","top","left","width","height","className"];function V9(){return V9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},V9.apply(null,arguments)}function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function q9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U9=(e,t,n,a,r,i)=>"M".concat(e,",").concat(r,"v").concat(a,"M").concat(i,",").concat(t,"h").concat(n),W9=e=>{var t=e.x,n=void 0===t?0:t,a=e.y,r=void 0===a?0:a,i=e.top,s=void 0===i?0:i,l=e.left,c=void 0===l?0:l,d=e.width,u=void 0===d?0:d,m=e.height,p=void 0===m?0:m,h=e.className,f=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,B9),x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z9(Object(n),!0).forEach(function(t){q9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:r,top:s,left:c,width:u,height:p},f);return HZ(n)&&HZ(r)&&HZ(u)&&HZ(p)&&HZ(s)&&HZ(c)?o.createElement("path",V9({},L4(x),{className:js("recharts-cross",h),d:U9(n,r,u,p,s,c)})):null};function Y9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function K9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y9(Object(n),!0).forEach(function(t){G9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
2var $9=(e,t,n)=>e.map(e=>{return"".concat((a=e,a.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(n);var a}).join(","),Q9=(e,t)=>Object.keys(t).reduce((n,a)=>K9(K9({},n),{},{[a]:e(a,t[a])}),{});function X9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function J9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X9(Object(n),!0).forEach(function(t){eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tee=(e,t,n)=>e+(t-e)*n,nee=e=>
2e.from!==e.to,aee=(e,t,n)=>{var a=Q9((t,n)=>{if(nee(n)){var a=Ue(e(n.from,n.to,n.velocity),2),r=a[0],i=a[1];return J9(J9({},n),{},{from:r,velocity:i})}return n},t);return n<1?Q9((e,t)=>nee(t)&&null!=a[e]?J9(J9({},t),{},{velocity:tee(t.velocity,a[e].velocity,n),from:tee(t.from,a[e].from,n)}):t,t):aee(e,a,n-1)};function ree(e,t,n,a,r,i){var s,o=a.reduce((n,a)=>J9(J9({},n),{},{[a]:{from:e[a],velocity:0,to:t[a]}}),{}),l=null,c=a=>{s||(s=a);var d=(a-s)/n.dt;o=aee(n,o,d),r(J9(J9(J9({},e),t),Q9((e,t)=>t.from,o))),s=a,Object.values(o).filter(nee).length&&(l=i.setTimeout(c))};return()=>(l=i.setTimeout(c),()=>{var e;null===(e=l)||void 0===e||e()})}const iee=(e,t,n,a,r,i)=>{var s,o,l=(s=e,o=t,[Object.keys(s),Object.keys(o)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==n?()=>(r(J9(J9({},e),t)),()=>{}):!0===n.isStepper?ree(e,t,n,l,r,i):function(e,t,n,a,r,i,s){var o,l=null,c=r.reduce((n,a)=>{var r=e[a],i=t[a];return null==r||null==i?n:J9(J9({},n),{},{[a]:[r,i]})},{}),d=r=>{o||(o=r);var u=(r-o)/a,m=Q9((e,t)=>tee(...t,n(u)),c);if(i(J9(J9(J9({},e),t),m)),u<1)l=s.setTimeout(d);else{var p=Q9((e,t)=>tee(...t,n(1)),c);i(J9(J9(J9({},e),t),p))}};return()=>(l=s.setTimeout(d),()=>{var e;null===(e=l)||void 0===e||e()})}(e,t,n,a,l,r,i)};n.dn(iee);var see=1e-4,oee=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],lee=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),cee=(e,t)=>n=>{var a=oee(e,t);return lee(a,n)},dee=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var a=(e=>{var t,n=e.split("(");if(2!==n.length||"cubic-bezier"!==n[0])return null;var a=null===(t=n[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==a||4!==a.length)return null;var r=a.map(e=>parseFloat(e));return[r[0],r[1],r[2],r[3]]})(t[0]);if(a)return a}return 4===t.length?t:[0,0,1,1]},uee=(e,t,n,a)=>{var r,i,s=cee(e,n),o=cee(t,a),l=(r=e,i=n,e=>{var t=[...oee(r,i).map((e,t)=>e*t).slice(1),0];return lee(t,e)}),c=e=>e>1?1:e<0?0:e,d=e=>{for(var t=e>1?1:e,n=t,a=0;a<8;++a){var r=s(n)-t,i=l(n);if(Math.abs(r-t)<see||i<see)return o(n);n=c(n-r/i)}return o(n)};return d.isStepper=!1,d},mee=function(){return uee(...dee(...arguments))},pee=e=>{if("string"===typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mee(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,a=e.damping,r=void 0===a?8:a,i=e.dt,s=void 0===i?17:i,o=(e,t,a)=>{var i=a+(-(e-t)*n-a*r)*s/1e3,o=a*s/1e3+e;return Math.abs(o-t)<see&&Math.abs(i)<see?[t,0]:[o,i]};return o.isStepper=!0,o.dt=s,o}();default:if("cubic-bezier"===e.split("(")[0])return mee(e)}return"function"===typeof e?e:null};class hee{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),a=null,r=i=>{i-n>=t?e(i):"function"===typeof requestAnimationFrame&&(a=requestAnimationFrame(r))};return a=requestAnimationFrame(r),()=>{null!=a&&cancelAnimationFrame(a)}}}function fee(){return function(e){var t=()=>null,n=!1,a=null,r=i=>{if(!n){if(Array.isArray(i)){if(!i.length)return;var s=qe(i),o=s[0],l=Ze(s).slice(1);return"number"===typeof o?void(a=e.setTimeout(r.bind(null,l),o)):(r(o),void(a=e.setTimeout(r.bind(null,l))))}"string"===typeof i&&t(i),"object"===typeof i&&t(i),"function"===typeof i&&i()}};return{stop:()=>{n=!0},start:e=>{n=!1,a&&(a(),a=null),r(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}(new hee)}var xee=(0,o.createContext)(fee);var gee={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},vee={t:0},bee={t:1};function yee(e){var t=S6(e,gee),n=t.isActive,a=t.canBegin,r=t.duration,i=t.easing,s=t.begin,l=t.onAnimationEnd,c=t.onAnimationStart,d=t.children,u="auto"===n?!l4:n,m=function(e,t){var n=(0,o.useContext)(xee);return(0,o.useMemo)(()=>null!==t&&void 0!==t?t:n(e),[e,t,n])}(t.animationId,t.animationManager),p=Ue((0,o.useState)(u?vee:bee),2),h=p[0],f=p[1],x=(0,o.useRef)(null);return(0,o.useEffect)(()=>{u||f(bee)},[u]),(0,o.useEffect)(()=>
2{if(!u||!a)return UZ;var e=iee(vee,bee,pee(i),r,f,m.getTimeoutController());return m.start([c,s,()=>{x.current=e()},r,l]),()=>{m.stop(),x.current&&x.current(),l()}},[u,a,r,i,s,c,l,m]),d(h.t)}function jee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,o.useRef)(TZ(t)),a=(0,o.useRef)(e);return a.current!==e&&(n.current=TZ(t),a.current=e),n.current}var wee,Nee,Aee,kee,Eee,Dee,_ee,Cee,Fee,See,Mee=["radius"],Oee=["radius"];function Ree(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Hee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ree(Object(n),!0).forEach(function(t){Pee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ree(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lee(){return Lee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lee.apply(null,arguments)}function Tee(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iee(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Zee,Bee,Vee,zee,qee,Uee,Wee,Yee=(e,t,n,a,r)=>{var i,s=FZ(n),o=FZ(a),l=Math.min(Math.abs(s)/2,Math.abs(o)/2),c=o>=0?1:-1,d=s>=0?1:-1,u=o>=0&&s>=0||o<0&&s<0?1:0;if(l>0&&r instanceof Array){for(var m=[0,0,0,0],p=0;p<4;p++)m[p]=r[p]>l?l:r[p];i=SZ(wee||(wee=Iee(["M",",",""])),e,t+c*m[0]),m[0]>0&&(i+=SZ(Nee||(Nee=Iee(["A ",",",",0,0,",",",",",""])),m[0],m[0],u,e+d*m[0],t)),i+=SZ(Aee||(Aee=Iee(["L ",",",""])),e+n-d*m[1],t),m[1]>0&&(i+=SZ(kee||(kee=Iee(["A ",",",",0,0,",",\n ",",",""])),m[1],m[1],u,e+n,t+c*m[1])),i+=SZ(Eee||(Eee=Iee(["L ",",",""])),e+n,t+a-c*m[2]),m[2]>0&&(i+=SZ(Dee||(Dee=Iee(["A ",",",",0,0,",",\n ",",",""])),m[2],m[2],u,e+n-d*m[2],t+a)),i+=SZ(_ee||(_ee=Iee(["L ",",",""])),e+d*m[3],t+a),m[3]>0&&(i+=SZ(Cee||(Cee=Iee(["A ",",",",0,0,",",\n ",",",""])),m[3],m[3],u,e,t+a-c*m[3])),i+="Z"}else if(l>0&&r===+r&&r>0){var h=Math.min(l,r);i=SZ(Fee||(Fee=Iee(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+c*h,h,h,u,e+d*h,t,e+n-d*h,t,h,h,u,e+n,t+c*h,e+n,t+a-c*h,h,h,u,e+n-d*h,t+a,e+d*h,t+a,h,h,u,e,t+a-c*h)}
vendor: 5,864 bytes, line 2
2else i=SZ(See||(See=Iee(["M ",","," h "," v "," h "," Z"])),e,t,n,a,-n);return i},Kee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Gee=e=>{var t=S6(e,Kee),n=(0,o.useRef)(null),a=Ue((0,o.useState)(-1),2),r=a[0],i=a[1];(0,o.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(t){}},[]);var s=t.x,l=t.y,c=t.width,d=t.height,u=t.radius,m=t.className,p=t.animationEasing,h=t.animationDuration,f=t.animationBegin,x=t.isAnimationActive,g=t.isUpdateAnimationActive,v=(0,o.useRef)(c),b=(0,o.useRef)(d),y=(0,o.useRef)(s),j=(0,o.useRef)(l),w=jee((0,o.useMemo)(()=>({x:s,y:l,width:c,height:d,radius:u}),[s,l,c,d,u]),"rectangle-");if(s!==+s||l!==+l||c!==+c||d!==+d||0===c||0===d)return null;var N=js("recharts-rectangle",m);if(!g){var A=L4(t),k=(A.radius,Tee(A,Mee));return o.createElement("path",Lee({},k,{x:FZ(s),y:FZ(l),width:FZ(c),height:FZ(d),radius:"number"===typeof u?u:void 0,className:N,d:Yee(s,l,c,d,u)}))}var E=v.current,D=b.current,_=y.current,C=j.current,F="0px ".concat(-1===r?1:r,"px"),S="".concat(r,"px 0px"),M=$9(["strokeDasharray"],h,"string"===typeof p?p:Kee.animationEasing);return o.createElement(yee,{animationId:w,key:w,canBegin:r>0,duration:h,easing:p,isActive:g,begin:f},e=>{var a,r=BZ(E,c,e),i=BZ(D,d,e),m=BZ(_,s,e),p=BZ(C,l,e);n.current&&(v.current=r,b.current=i,y.current=m,j.current=p),a=x?e>0?{transition:M,strokeDasharray:S}:{strokeDasharray:F}:{strokeDasharray:S};var h=L4(t),f=(h.radius,Tee(h,Oee));return o.createElement("path",Lee({},f,{radius:"number"===typeof u?u:void 0,className:N,d:Yee(m,p,r,i,u),ref:n,style:Hee(Hee({},a),t.style)}))})};function $ee(e){var t=e.cx,n=e.cy,a=e.radius,r=e.startAngle,i=e.endAngle;return{points:[ZX(t,n,a,r),ZX(t,n,a,i)],cx:t,cy:n,radius:a,startAngle:r,endAngle:i}}function Qee(){return Qee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Qee.apply(null,arguments)}function Xee(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Jee=e=>{var t=e.cx,n=e.cy,a=e.radius,r=e.angle,i=e.sign,s=e.isExternal,o=e.cornerRadius,l=e.cornerIsExternal,c=o*(s?1:-1)+a,d=Math.asin(o/c)/TX,u=l?r:r+i*d,m=l?r-i*d:r;return{center:ZX(t,n,c,u),circleTangency:ZX(t,n,a,u),lineTangency:ZX(t,n,c*Math.cos(d*TX),m),theta:d}},ete=e=>{var t=e.cx,n=e.cy,a=e.innerRadius,r=e.outerRadius,i=e.startAngle,s=((e,t)=>MZ(t-e)*Math.min(Math.abs(t-e),359.999))(i,e.endAngle),o=i+s,l=ZX(t,n,r,i),c=ZX(t,n,r,o),d=SZ(Zee||(Zee=Xee(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),l.x,l.y,r,r,+(Math.abs(s)>180),+(i>o),c.x,c.y);if(a>0){var u=ZX(t,n,a,i),m=ZX(t,n,a,o);d+=SZ(Bee||(Bee=Xee(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),m.x,m.y,a,a,+(Math.abs(s)>180),+(i<=o),u.x,u.y)}else d+=SZ(Vee||(Vee=Xee(["L ",","," Z"])),t,n);return d},tte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nte=e=>{var t=S6(e,tte),n=t.cx,a=t.cy,r=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,u=t.endAngle,m=t.className;if(i<r||d===u)return null;var p,h=js("recharts-sector",m),f=i-r,x=IZ(s,f,0,!0);return p=x>0&&Math.abs(d-u)<360?(e=>{var t=e.cx,n=e.cy,a=e.innerRadius,r=e.outerRadius,i=e.cornerRadius,s=e.forceCornerRadius,o=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,d=MZ(c-l),u=Jee({cx:t,cy:n,radius:r,angle:l,sign:d,cornerRadius:i,cornerIsExternal:o}),m=u.circleTangency,p=u.lineTangency,h=u.theta,f=Jee({cx:t,cy:n,radius:r,angle:c,sign:-d,cornerRadius:i,cornerIsExternal:o}),x=f.circleTangency,g=f.lineTangency,v=f.theta,b=o?Math.abs(l-c):Math.abs(l-c)-h-v;if(b<0)return s?SZ(zee||(zee=Xee(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),p.x,p.y,i,i,2*i,i,i,2*-i):ete({cx:t,cy:n,innerRadius:a,outerRadius:r,startAngle:l,endAngle:c});var y=SZ(qee||(qee=Xee(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),p.x,p.y,i,i,+(d<0),m.x,m.y,r,r,+(b>180),+(d<0),x.x,x.y,i,i,+(d<0),g.x,g.y);if(a>0){var j=Jee({cx:t,cy:n,radius:a,angle:l,sign:d,isExternal:!0,cornerRadius:i,cornerIsExternal:o}),w=j.circleTangency,N=j.lineTangency,A=j.theta,k=Jee({cx:t,cy:n,radius:a,angle:c,sign:-d,isExternal:!0,cornerRadius:i,cornerIsExternal:o}),E=k.circleTangency,D=k.lineTangency,_=k.theta,C=o?Math.abs(l-c):Math.abs(l-c)-A-_;if(C<0&&0===i)return"".concat(y,"L").concat(t,",").concat(n,"Z");y+=SZ(Uee||(Uee=Xee(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),D.x,D.y,i,i,+(d<0),E.x,E.y,a,a,+(C>180),+(d>0),w.x,w.y,i,i,+(d<0),N.x,N.y)}else y+=SZ(Wee||(Wee=Xee(["L",",","Z"])),t,n);return y})({cx:n,cy:a,innerRadius:r,outerRadius:i,cornerRadius:Math.min(x,f/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:u}):ete({cx:n,cy:a,innerRadius:r,outerRadius:i,startAngle:d,endAngle:u}),o.createElement("path",Qee({},L4(t),{className:h,d:p}))};function ate(e,t,n){if("horizontal"===e)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if("vertical"===e)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(z3(t)){if("centric"===e){var a=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,o=t.angle,l=ZX(a,r,i,o),c=ZX(a,r,s,o);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return $ee(t)}}function rte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ite(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?rte(Object(n),!0).forEach(function(t){ste(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ste(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ote=()=>{var e=_U(a0),t=_U(y2),n=_U(g2);return mW(e&&n?ite(ite({},e),{},{scale:n}):void 0,t)};function lte(){return lte=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},lte.apply(null,arguments)}function cte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function dte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cte(Object(n),!0).forEach(function(t){ute(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ute(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mte(e){var t=e.cursor,n=e.cursorComp,a=e.cursorProps;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,a):(0,o.createElement)(n,a)}function pte(e){var t,n,a,r,i=e.coordinate,s=e.payload,l=e.index,c=e.offset,d=e.tooltipAxisBandSize,u=e.layout,m=e.cursor,p=e.tooltipEventType,h=e.chartName,f=i,x=s,g=l;if(!m||!f||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)n=f,a=W9,r=UX.cursorLine;else if("BarChart"===h)n=function(e,t,n,a){var r=a/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-r:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-r,width:"horizontal"===e?a:n.width-1,height:"horizontal"===e?n.height-1:a}}(u,f,c,d),a=Gee,r=UX.cursorRectangle;else if("radial"===u&&z3(f)){var v=$ee(f),b=v.cx,y=v.cy,j=v.radius;n={cx:b,cy:y,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:j,outerRadius:j},a=nte,r=UX.cursorLine}else n={points:ate(u,f,c)},a=Z9,r=UX.cursorLine;var w="object"===typeof m&&"className"in m?m.className:void 0,N=dte(dte(dte(dte({stroke:"#ccc",pointerEvents:"none"},c),n),P4(m)),{},{payload:x,payloadIndex:g,className:js("recharts-tooltip-cursor",w)});return o.createElement(N3,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:r},o.createElement(mte,{cursor:m,cursorComp:a,cursorProps:N}))}function hte(e){var t=ote(),n=(()=>{var e;return null!==(e=_U(EW))&&void 0!==e?e:HW})(),a=LW(),r=_U(SX);return null==t||null==n||null==a||null==r?null:o.createElement(pte,lte({}
2,e,{offset:n,layout:a,tooltipAxisBandSize:t,chartName:r}))}function fte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function xte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fte(Object(n),!0).forEach(function(t){gte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vte(e){return e.dataKey}var bte=[],yte={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function jte(e){var t,n,a=S6(e,yte),r=a.active,i=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,d=a.filterNull,u=a.isAnimationActive,m=a.offset,p=a.payloadUniqBy,h=a.position,f=a.reverseDirection,x=a.useTranslate3d,g=a.wrapperStyle,v=a.cursor,b=a.shared,y=a.trigger,j=a.defaultIndex,w=a.portal,N=a.axisId,A=AU(),k="number"===typeof j?String(j):j;(0,o.useEffect)(()=>{A(qq({shared:b,trigger:y,axisId:N,active:r,defaultIndex:k}))},[A,b,y,N,r,k]);var E=RW(),D=C4(),_=function(e){return _U(t=>k1(t,e))}(b),C=null!==(t=_U(e=>G2(e,_,y,k)))&&void 0!==t?t:{},F=C.activeIndex,S=C.isActive,M=_U(e=>K2(e,_,y,k)),O=_U(e=>Y2(e,_,y,k)),R=_U(e=>W2(e,_,y,k)),H=M,P=(0,o.useContext)(c6),L=null!==(n=null!==r&&void 0!==r?r:S)&&void 0!==n&&n,T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Ue((0,o.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],a=t[1],r=(0,o.useCallback)(e=>{if(null!=e){var t=e.getBoundingClientRect(),r={height:t.height,left:t.left,top:t.top,width:t.width};(Math.abs(r.height-n.height)>1||Math.abs(r.left-n.left)>1||Math.abs(r.top-n.top)>1||Math.abs(r.width-n.width)>1)&&a({height:r.height,left:r.left,top:r.top,width:r.width})}},[n.width,n.height,n.top,n.left,...e]);return[n,r]}([H,L]),I=Ue(T,2),Z=I[0],B=I[1],V="axis"===_?O:void 0;l6(_,y,R,V,F,L);var z=null!==w&&void 0!==w?w:P;if(null==z||null==E||null==_)return null;var q=null!==H&&void 0!==H?H:bte;L||(q=bte),d&&q.length&&(q=function(e,t,n){return!0===t?M7(e,n):"function"===typeof t?M7(e,t):e}(q.filter(e=>null!=e.value&&(!0!==e.hide||a.includeHidden)),p,vte));var U=q.length>0,W=o.createElement(Y5,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:u,active:L,coordinate:R,hasPayload:U,offset:m,position:h,reverseDirection:f,useTranslate3d:x,viewB
2ox:E,wrapperStyle:g,lastBoundingBox:Z,innerRef:B,hasPortalFromProps:Boolean(w)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"===typeof e?o.createElement(e,t):o.createElement(I5,t)}(c,xte(xte({},a),{},{payload:q,label:V,active:L,activeIndex:F,coordinate:R,accessibilityLayer:D})));return o.createElement(o.Fragment,null,(0,ia.createPortal)(W,z),L&&o.createElement(hte,{cursor:v,tooltipEventType:_,coordinate:R,payload:q,index:F}))}var wte=e=>null;function Nte(e){var t;if(FU(e))return t=function(e){return Array.isArray(e)?e:Array.from(e)}(e),t[t.length-1]}wte.displayName="Cell";var Ate=["valueAccessor"],kte=["dataKey","clockWise","id","textBreakAll","zIndex"];function Ete(){return Ete=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ete.apply(null,arguments)}function Dte(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var _te=e=>Array.isArray(e.value)?Nte(e.value):e.value,Cte=(0,o.createContext)(void 0),Fte=Cte.Provider,Ste=(0,o.createContext)(void 0),Mte=Ste.Provider;function Ote(e){var t=e.valueAccessor,n=void 0===t?_te:t,a=Dte(e,Ate),r=a.dataKey,i=(a.clockWise,a.id),s=a.textBreakAll,l=a.zIndex,c=Dte(a,kte),d=(0,o.useContext)(Cte),u=(0,o.useContext)(Ste),m=d||u;return m&&m.length?o.createElement(N3,{zIndex:null!==l&&void 0!==l?l:UX.label},o.createElement(I6,{className:"recharts-label-list"},m.map((e,t)=>{var l,d=VZ(r)?n(e,t):aW(e&&e.payload,r),u=VZ(i)?{}:{id:"".concat(i,"-").concat(t)};return o.createElement(Z3,Ete({key:"label-".concat(t)},L4(e),c,u,{fill:null!==(l=a.fill)&&void 0!==l?l:e.fill,parentViewBox:e.parentViewBox,value:d,textBreakAll:s,viewBox:e.viewBox,index:t,zIndex:0}))}))):null}function Rte(e){var t=e.label;return t?!0===t?o.createElement(Ote,{key:"labelList-implicit"}):o.isValidElement(t)||P3(t)?o.createElement(Ote,{key:"labelList-implicit",content:t}):"object"===typeof t?o.createElement(Ote,Ete({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}Ote.displayName="LabelList";var Hte=n(429),Pte=e=>"string"===typeof e?e:e?e.displayName||e.name||"Component":"",Lte=null,Tte=null,Ite=e=>{if(e===Lte&&Array.isArray(Tte))return Tte;var t=[];return o.Children.forEach(e,e=>{VZ(e)||((0,Hte.isFragment)(e)?t=t.concat(Ite(e.props.children)):t.push(e))}),Tte=t,Lte=e,t};function Zte(e,t){var n=[],a=[];return a=Array.isArray(t)?t.map(e=>Pte(e)):[Pte(t)],Ite(e).forEach(e=>{var t=CZ(e,"type.displayName")||CZ(e,"type.name");t&&-1!==a.indexOf(t)&&n.push(e)}),n}var Bte,Vte,zte,qte,Ute,Wte="Invariant failed";function Yte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Kte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yte(Object(n),!0).forEach(function(t){Gte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $te(){return $te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$te.apply(null,arguments)}function Qte(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Xte=(e,t,n,a,r)=>{var i,s=n-a;return i=SZ(Bte||(Bte=Qte(["M ",",",""])),e,t),i+=SZ(Vte||(Vte=Qte(["L ",",",""])),e+n,t),i+=SZ(zte||(zte=Qte(["L ",",",""])),e+n-s/2,t+r),i+=SZ(qte||(qte=Qte(["L ",",",""])),e+n-s/2-a,t+r),i+=SZ(Ute||(Ute=Qte(["L ",","," Z"])),e,t)}
vendor: 4,897 bytes, line 2
2,Jte={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ene=e=>{var t=S6(e,Jte),n=t.x,a=t.y,r=t.upperWidth,i=t.lowerWidth,s=t.height,l=t.className,c=t.animationEasing,d=t.animationDuration,u=t.animationBegin,m=t.isUpdateAnimationActive,p=(0,o.useRef)(null),h=Ue((0,o.useState)(-1),2),f=h[0],x=h[1],g=(0,o.useRef)(r),v=(0,o.useRef)(i),b=(0,o.useRef)(s),y=(0,o.useRef)(n),j=(0,o.useRef)(a),w=jee(e,"trapezoid-");if((0,o.useEffect)(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&x(e)}catch(t){}},[]),n!==+n||a!==+a||r!==+r||i!==+i||s!==+s||0===r&&0===i||0===s)return null;var N=js("recharts-trapezoid",l);if(!m)return o.createElement("g",null,o.createElement("path",$te({},L4(t),{className:N,d:Xte(n,a,r,i,s)})));var A=g.current,k=v.current,E=b.current,D=y.current,_=j.current,C="0px ".concat(-1===f?1:f,"px"),F="".concat(f,"px 0px"),S=$9(["strokeDasharray"],d,c);return o.createElement(yee,{animationId:w,key:w,canBegin:f>0,duration:d,easing:c,isActive:m,begin:u},e=>{var l=BZ(A,r,e),c=BZ(k,i,e),d=BZ(E,s,e),u=BZ(D,n,e),m=BZ(_,a,e);p.current&&(g.current=l,v.current=c,b.current=d,y.current=u,j.current=m);var h=e>0?{transition:S,strokeDasharray:F}:{strokeDasharray:C};return o.createElement("path",$te({},L4(t),{className:N,d:Xte(u,m,l,c,d),ref:p,style:Kte(Kte({},h),t.style)}))})};Math.abs,Math.atan2;const tne=Math.cos,nne=(Math.max,Math.min,Math.sin),ane=Math.sqrt,rne=Math.PI,ine=2*rne;const sne={draw(e,t){const n=ane(t/rne);e.moveTo(n,0),e.arc(0,0,n,0,ine)}},one={draw(e,t){const n=ane(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},lne=ane(1/3),cne=2*lne,dne={draw(e,t){const n=ane(t/cne),a=n*lne;e.moveTo(0,-n),e.lineTo(a,0),e.lineTo(0,n),e.lineTo(-a,0),e.closePath()}},une={draw(e,t){const n=ane(t),a=-n/2;e.rect(a,a,n,n)}},mne=nne(rne/10)/nne(7*rne/10),pne=nne(ine/10)*mne,hne=-tne(ine/10)*mne,fne={draw(e,t){const n=ane(.8908130915292852*t),a=pne*n,r=hne*n;e.moveTo(0,-n),e.lineTo(a,r);for(let i=1;i<5;++i){const t=ine*i/5,s=tne(t),o=nne(t);e.lineTo(o*n,-s*n),e.lineTo(s*a-o*r,o*a+s*r)}e.closePath()}},xne=ane(3),gne={draw(e,t){const n=-ane(t/(3*xne));e.moveTo(0,2*n),e.lineTo(-xne*n,-n),e.lineTo(xne*n,-n),e.closePath()}},vne=-.5,bne=ane(3)/2,yne=1/ane(12),jne=3*(yne/2+1),wne={draw(e,t){const n=ane(t/jne),a=n/2,r=n*yne,i=a,s=n*yne+n,o=-i,l=s;e.moveTo(a,r),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(vne*a-bne*r,bne*a+vne*r),e.lineTo(vne*i-bne*s,bne*i+vne*s),e.lineTo(vne*o-bne*l,bne*o+vne*l),e.lineTo(vne*a+bne*r,vne*r-bne*a),e.lineTo(vne*i+bne*s,vne*s-bne*i),e.lineTo(vne*o+bne*l,vne*l-bne*o),e.closePath()}};var Nne=["type","size","sizeType"];function Ane(){return Ane=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ane.apply(null,arguments)}function kne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ene(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kne(Object(n),!0).forEach(function(t){Dne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _ne={symbolCircle:sne,symbolCross:one,symbolDiamond:dne,symbolSquare:une,symbolStar:fne,symbolTriangle:gne,symbolWye:wne},Cne=Math.PI/180,Fne=e=>{var t=e.type,n=void 0===t?"circle":t,a=e.size,r=void 0===a?64:a,i=e.sizeType,s=void 0===i?"area":i,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Nne),c=Ene(Ene({},l),{},{type:n,size:r,sizeType:s}),d="circle";"string"===typeof n&&(d=n);var u=c.className,m=c.cx,p=c.cy,h=L4(c);return HZ(m)&&HZ(p)&&HZ(r)?o.createElement("path",Ane({}
2,h,{className:js("recharts-symbols",u),transform:"translate(".concat(m,", ").concat(p,")"),d:(()=>{var e=(e=>{var t="symbol".concat(zZ(e));return _ne[t]||sne})(d),t=function(e,t){let n=null,a=k9(r);function r(){let r;if(n||(n=r=a()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:KU(e||sne),t="function"===typeof t?t:KU(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:KU(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:KU(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(e).size(((e,t,n)=>{if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var a=18*Cne;return 1.25*e*e*(Math.tan(a)-Math.tan(2*a)*Math.tan(a)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(r,s,d)),n=t();if(null!==n)return n})()})):null};Fne.registerSymbol=(e,t)=>{_ne["symbol".concat(zZ(e))]=t};var Sne=["option","shapeType","activeClassName"];function Mne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function One(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mne(Object(n),!0).forEach(function(t){Rne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hne(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return o.createElement(Gee,n);case"trapezoid":return o.createElement(ene,n);case"sector":return o.createElement(nte,n);case"symbols":if(function(e){return"symbols"===e}(t))return o.createElement(Fne,n);break;case"curve":return o.createElement(Z9,n);default:return null}}function Pne(e){var t,n=e.option,a=e.shapeType,r=e.activeClassName,i=void 0===r?"recharts-active-shape":r,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Sne);if((0,o.isValidElement)(n))t=(0,o.cloneElement)(n,One(One({},s),function(e){return(0,o.isValidElement)(e)?e.props:e}(n)));else if("function"===typeof n)t=n(s,s.index);else if(function(e){if("object"!==typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){var t;const n=e[Symbol.toStringTag];return null!=n&&!(null===(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))||void 0===t||!t.writable)&&e.toString()==="[object ".concat(n,"]")}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(n)&&"boolean"!==typeof n){var l=function(e,t){return One(One({},t),e)}(n,s);t=o.createElement(Hne,{shapeType:a,elementProps:l})}else{var c=s;t=o.createElement(Hne,{shapeType:a,elementProps:c})}return s.isActive?o.createElement(I6,{className:i},t):t}function Lne(){return Lne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lne.apply(null,arguments)}function Tne(e){return o.createElement(Pne,Lne({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var Ine=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(n,a)=>
2{if(HZ(e))return e;var r=HZ(n)||VZ(n);return r?e(n,a):(r||function(e){if(!e)throw new Error(Wte)}(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),t)}},Zne=(e,t,n)=>{var a=AU();return(r,i)=>s=>{null===e||void 0===e||e(r,i,s),a(Uq({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}},Bne=e=>{var t=AU();return(n,a)=>r=>{null===e||void 0===e||e(n,a,r),t(Wq())}},Vne=(e,t,n)=>{var a=AU();return(r,i)=>s=>{null===e||void 0===e||e(r,i,s),a(Kq({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}};function zne(e){var t=e.tooltipEntrySettings,n=AU(),a=FW(),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{a||(null===r.current?n(Bq(t)):r.current!==t&&n(Vq({prev:r.current,next:t})),r.current=t)},[t,n,a]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(zq(r.current)),r.current=null)},[n]),null}var qne=["children"];var Une={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Wne=(0,o.createContext)(Une);function Yne(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,qne);return o.createElement(Wne.Provider,{value:n},t)}function Kne(e,t){var n,a,r=_U(t=>FJ(t,e)),i=_U(e=>OJ(e,t)),s=null!==(n=null===r||void 0===r?void 0:r.allowDataOverflow)&&void 0!==n?n:_J.allowDataOverflow,o=null!==(a=null===i||void 0===i?void 0:i.allowDataOverflow)&&void 0!==a?a:SJ.allowDataOverflow;return{needClip:s||o,needClipX:s,needClipY:o}}function Gne(e){var t=e.xAxisId,n=e.yAxisId,a=e.clipPathId,r=A6(),i=Kne(t,n),s=i.needClipX,l=i.needClipY;if(!i.needClip||!r)return null;var c=r.x,d=r.y,u=r.width,m=r.height;return o.createElement("clipPath",{id:"clipPath-".concat(a)},o.createElement("rect",{x:s?c:c-u/2,y:l?d:d-m/2,width:s?u:2*u,height:l?m:2*m}))}var $ne=(e,t,n)=>{var a=null!==n&&void 0!==n?n:e;if(!VZ(a))return IZ(a,t,0)};function Qne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Xne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qne(Object(n),!0).forEach(function(t){Jne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eae(e,t){var n,a;return null!==(n=null===(a=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===a?void 0:a.xAxisId)&&void 0!==n?n:0}function tae(e,t){var n,a;return null!==(n=null===(a=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===a?void 0:a.yAxisId)&&void 0!==n?n:0}var nae,aae=bU([ZJ,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),rae=bU([aae],e=>null===e||void 0===e?void 0:e.maxBarSize),iae=bU([PW,ZJ,eae,tae,(e,t,n)=>n],(e,t,n,a,r)=>t.filter(t=>"horizontal"===e?t.xAxisId===n:t.yAxisId===a).filter(e=>e.isPanorama===r).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),sae=bU([iae,e=>e.rootProps.barSize,(e,t)=>{var n=PW(e),a=eae(e,t),r=tae(e,t);if(null!=a&&null!=r)return"horizontal"===n?m1(e,"xAxis",a):m1(e,"yAxis",r)}],(e,t,n)=>{var a=e.filter(bJ),r=e.filter(e=>null==e.stackId),i=a.reduce((e,t)=>
2(e[t.stackId]||(e[t.stackId]=[]),e[t.stackId].push(t),e),{}),s=Object.entries(i).map(e=>{var a=Ue(e,2),r=a[0],i=a[1],s=i.map(e=>e.dataKey);return{stackId:r,dataKeys:s,barSize:$ne(t,n,i[0].barSize)}}),o=r.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:$ne(t,n,e.barSize)}));return[...s,...o]}),oae=(e,t,n)=>{var a,r,i=PW(e),s=eae(e,t),o=tae(e,t);if(null!=s&&null!=o)return"horizontal"===i?(a=b1(e,"xAxis",s,n),r=v1(e,"xAxis",s,n)):(a=b1(e,"yAxis",o,n),r=v1(e,"yAxis",o,n)),mW(a,r)},lae=bU([sae,DX,e=>e.rootProps.barGap,_X,(e,t,n)=>{var a,r,i=aae(e,t);if(null!=i){var s=eae(e,t),o=tae(e,t);if(null!=s&&null!=o){var l,c,d=PW(e),u=DX(e),m=i.maxBarSize,p=VZ(m)?u:m;return"horizontal"===d?(l=b1(e,"xAxis",s,n),c=v1(e,"xAxis",s,n)):(l=b1(e,"yAxis",o,n),c=v1(e,"yAxis",o,n)),null!==(a=null!==(r=mW(l,c,!0))&&void 0!==r?r:p)&&void 0!==a?a:0}}},oae,rae],(e,t,n,a,r,i,s)=>{var o=VZ(s)?t:s,l=function(e,t,n,a,r){var i=a.length;if(!(i<1)){var s,o=IZ(e,n,0,!0),l=[];if(JZ(a[0].barSize)){var c=!1,d=n/i,u=a.reduce((e,t)=>e+(t.barSize||0),0);(u+=(i-1)*o)>=n&&(u-=(i-1)*o,o=0),u>=n&&d>0&&(c=!0,u=i*(d*=.9));var m={offset:((n-u)/2|0)-o,size:0};s=a.reduce((e,t)=>{var n,a=[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:m.offset+m.size+o,size:c?d:null!==(n=t.barSize)&&void 0!==n?n:0}}];return m=a[a.length-1].position,a},l)}else{var p=IZ(t,n,0,!0);n-2*p-(i-1)*o<=0&&(o=0);var h=(n-2*p-(i-1)*o)/i;h>1&&(h>>=0);var f=JZ(r)?Math.min(h,r):h;s=a.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(h+o)*n+(h-f)/2,size:f}}],l)}return s}}(n,a,r!==i?r:i,e,o);return r!==i&&null!=l&&(l=l.map(e=>Xne(Xne({},e),{},{position:Xne(Xne({},e.position),{},{offset:e.position.offset-r/2})}))),l}),cae=bU([lae,aae],(e,t)=>{if(null!=e&&null!=t){var n=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=n)return n.position}}),dae=bU([(e,t,n)=>{var a=PW(e),r=eae(e,t),i=tae(e,t);if(null!=r&&null!=i)return"horizontal"===a?o0(e,"yAxis",i,n):o0(e,"xAxis",r,n)},aae],(e,t)=>{var n=gJ(t);if(e&&null!=n&&null!=t){var a=t.stackId;if(null!=a){var r=e[a];if(r){var i=r.stackedData;if(i)return i.find(e=>e.key===n)}}}}),uae=bU([EW,_W,(e,t,n)=>{var a=eae(e,t);if(null!=a)return b1(e,"xAxis",a,n)},(e,t,n)=>{var a=tae(e,t);if(null!=a)return b1(e,"yAxis",a,n)},(e,t,n)=>{var a=eae(e,t);if(null!=a)return v1(e,"xAxis",a,n)},(e,t,n)=>{var a=tae(e,t);if(null!=a)return v1(e,"yAxis",a,n)},cae,PW,(e,t,n)=>n?sX(e):iX(e),oae,dae,aae,(e,t,n,a)=>a],(e,t,n,a,r,i,s,o,l,c,d,u,m)=>{var p=l.chartData,h=l.dataStartIndex,f=l.dataEndIndex;if(null!=u&&null!=s&&null!=t&&("horizontal"===o||"vertical"===o)&&null!=n&&null!=a&&null!=r&&null!=i&&null!=c){var x,g=u.data;if(null!=(x=null!=g&&g.length>0?g:null===p||void 0===p?void 0:p.slice(h,f+1)))return function(e){var t=e.layout,n=e.barSettings,a=n.dataKey,r=n.minPointSize,i=e.pos,s=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,d=e.yAxisTicks,u=e.stackedData,m=e.displayedData,p=e.offset,h=e.cells,f=e.parentViewBox,x=e.dataStartIndex,g="horizontal"===t?l:o,v=u?g.scale.domain():null,b=(e=>{var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var a=Math.min(n[0],n[1]),r=Math.max(n[0],n[1]);return a<=0&&r>=0?0:r<0?r:a}return n[0]})({numericAxis:g}),y=g.scale(b);return m.map((e,n)=>{var m,g,j,w,N,A;if(u){var k=u[n+x];if(null==k)return null;m=((e,t)=>{if(!t||2!==t.length||!HZ(t[0])||!HZ(t[1]))return e;var n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]),r=[e[0],e[1]];return(!HZ(e[0])||e[0]<n)&&(r[0]=n),(!HZ(e[1])||e[1]>a)&&(r[1]=a),r[0]>a&&(r[0]=a),r[1]<n&&(r[1]=n),r})(k,v)}else m=aW(e,a),Array.isArray(m)||(m=[b,m]);var E=Ine(r,0)(m[1],n);if("horizontal"===t){var D,_=[l.scale(m[0]),l.scale(m[1])],C=_[0],F=_[1];g=lW({axis:o,ticks:c,bandSize:s,offset:i.offset,entry:e,index:n}),j=null!==(D=null!==F&&void 0!==F?F:C)&&void 0!==D?D:void 0,w=i.size;var S=C-F;if(N=OZ(S)?0:S,A={x:g,y:p.top,width:w,height:p.height},Math.abs(E)>0&&Math.abs(N)<Math.abs(E)){var M=MZ(N||E)*(Math.abs(E)-Math.abs(N));j-=M,N+=M}}else{var O=[o.scale(m[0]),o.scale(m[1])],R=O[0],H=O[1];if(g=R,j=lW({axis:l,ticks:d,bandSize:s,offset:i.offset,entry:e,index:n}),w=H-R,N=i.size,A={x:p.left,y:j,width:p.width,height:N},Math.abs(E)>0&&Math.abs(w)<Math.abs(E))w+=MZ(w||E)*(Math.abs(E)-Math.abs(w))}return null==g||null==j||null==w||null==N?null:Mae(Mae({},e),{},{stackedBarStart:y,x:g,y:j,width:w,height:N,value:u?m:m[1],payload:e,background:A,tooltipPosition:{x:g+w/2,y:j+N/2},parentViewBox:f},h&&h[n]&&h[n].props)}
2).filter(Boolean)}({layout:o,barSettings:u,pos:s,parentViewBox:t,bandSize:c,xAxis:n,yAxis:a,xAxisTicks:r,yAxisTicks:i,stackedData:d,displayedData:x,offset:e,cells:m,dataStartIndex:h})}});function mae(e){var t=e.legendPayload,n=AU(),a=FW(),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{a||(null===r.current?n(R8(t)):r.current!==t&&n(H8({prev:r.current,next:t})),r.current=t)},[n,a,t]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(P8(r.current)),r.current=null)},[n]),null}function pae(e){var t=e.legendPayload,n=AU(),a=_U(PW),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{"centric"!==a&&"radial"!==a||(null===r.current?n(R8(t)):r.current!==t&&n(H8({prev:r.current,next:t})),r.current=t)},[n,a,t]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(P8(r.current)),r.current=null)},[n]),null}var hae=null!==(nae=l["useId".toString()])&&void 0!==nae?nae:()=>Ue(o.useState(()=>TZ("uid-")),1)[0];var fae=(0,o.createContext)(void 0),xae=e=>{var t=e.id,n=e.type,a=e.children,r=function(e,t){var n=hae();return t||(e?"".concat(e,"-").concat(n):n)}("recharts-".concat(n),t);return o.createElement(fae.Provider,{value:r},a(r))};var gae=e=>{var t=AU(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t(y8(e)):n.current!==e&&t(j8({prev:n.current,next:e})),n.current=e},[t,e]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(w8(n.current)),n.current=null)},[t]),null},vae=(0,o.memo)(gae);function bae(e){var t=AU();return(0,o.useLayoutEffect)(()=>(t(N8(e)),()=>{t(A8(e))}),[t,e]),null}var yae=["index"];function jae(){return jae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},jae.apply(null,arguments)}var wae=(0,o.createContext)(void 0),Nae=e=>{var t,n=(0,o.useContext)(wae);return null!=n?n.stackId:null!=e?null==(t=e)?void 0:String(t):void 0},Aae=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),kae=e=>{var t=e.index,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,yae),a=(e=>{var t=(0,o.useContext)(wae);if(null!=t){var n=t.stackId;return"url(#".concat(Aae(n,e),")")}})(t);return o.createElement(I6,jae({className:"recharts-bar-stack-layer",clipPath:a},n))},Eae=["onMouseEnter","onMouseLeave","onClick"],Dae=["value","background","tooltipPosition"],_ae=["id"],Cae=["onMouseEnter","onClick","onMouseLeave"];function Fae(){return Fae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fae.apply(null,arguments)}function Sae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Mae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sae(Object(n),!0).forEach(function(t){Oae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rae(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Hae=e=>{var t=e.dataKey,n=e.name,a=e.fill,r=e.legendType;return[{inactive:e.hide,dataKey:t,type:r,color:a,value:hW(n,t),payload:e}]},Pae=o.memo(e=>{var t=e.dataKey,n=e.stroke,a=e.strokeWidth,r=e.fill,i=e.name,s=e.hide,l=e.unit,c=e.tooltipType,d=e.id,u={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:a,fill:r,dataKey:t,nameKey:void 0,name:hW(i,t),hide:s,type:c,color:r,unit:l,graphicalItemId:d}};return o.createElement(zne,{tooltipEntrySettings:u})});function Lae(e){var t=_U(k2),n=e.data,a=e.dataKey,r=e.background,i=e.allOtherBarProps,s=i.onMouseEnter,l=i.onMouseLeave,c=i.onClick,d=Rae(i,Eae),u=Zne(s,a,i.id),m=Bne(l),p=Vne(c,a,i.id);if(!r||null==n)return null;var h,f,x=P4(r);
2return o.createElement(N3,{zIndex:(h=r,f=UX.barBackground,h&&"object"===typeof h&&"zIndex"in h&&"number"===typeof h.zIndex&&JZ(h.zIndex)?h.zIndex:f)},n.map((e,n)=>{e.value;var i=e.background,s=(e.tooltipPosition,Rae(e,Dae));if(!i)return null;var l=u(e,n),c=m(e,n),h=p(e,n),f=Mae(Mae(Mae(Mae(Mae({option:r,isActive:String(n)===t},s),{},{fill:"#eee"},i),x),q3(d,e,n)),{},{onMouseEnter:l,onMouseLeave:c,onClick:h,dataKey:a,index:n,className:"recharts-bar-background-rectangle"});return o.createElement(Tne,Fae({key:"background-bar-".concat(n)},f))}))}function Tae(e){var t=e.showLabels,n=e.children,a=e.rects,r=null===a||void 0===a?void 0:a.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return Mae(Mae({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return o.createElement(Fte,{value:t?r:void 0},n)}function Iae(e){var t=e.shape,n=e.activeBar,a=e.baseProps,r=e.entry,i=e.index,s=e.dataKey,l=_U(k2),c=_U(D2),d=n&&String(i)===l&&(null==c||s===c),u=d?n:t;return d?o.createElement(N3,{zIndex:UX.activeBar},o.createElement(Tne,Fae({},a,{name:String(a.name)},r,{isActive:d,option:u,index:i,dataKey:s}))):o.createElement(Tne,Fae({},a,{name:String(a.name)},r,{isActive:d,option:u,index:i,dataKey:s}))}function Zae(e){var t=e.shape,n=e.baseProps,a=e.entry,r=e.index,i=e.dataKey;return o.createElement(Tne,Fae({},n,{name:String(n.name)},a,{isActive:!1,option:t,index:r,dataKey:i}))}function Bae(e){var t,n=e.data,a=e.props,r=null!==(t=H4(a))&&void 0!==t?t:{},i=r.id,s=Rae(r,_ae),l=a.shape,c=a.dataKey,d=a.activeBar,u=a.onMouseEnter,m=a.onClick,p=a.onMouseLeave,h=Rae(a,Cae),f=Zne(u,c,i),x=Bne(p),g=Vne(m,c,i);return n?o.createElement(o.Fragment,null,n.map((e,t)=>o.createElement(kae,Fae({index:t,key:"rectangle-".concat(null===e||void 0===e?void 0:e.x,"-").concat(null===e||void 0===e?void 0:e.y,"-").concat(null===e||void 0===e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},q3(h,e,t),{onMouseEnter:f(e,t),onMouseLeave:x(e,t),onClick:g(e,t)}),d?o.createElement(Iae,{shape:l,activeBar:d,baseProps:s,entry:e,index:t,dataKey:c}):o.createElement(Zae,{shape:l,baseProps:s,entry:e,index:t,dataKey:c})))):null}function Vae(e){var t=e.props,n=e.previousRectanglesRef,a=t.data,r=t.layout,i=t.isAnimationActive,s=t.animationBegin,l=t.animationDuration,c=t.animationEasing,d=t.onAnimationEnd,u=t.onAnimationStart,m=n.current,p=jee(t,"recharts-bar-"),h=Ue((0,o.useState)(!1),2),f=h[0],x=h[1],g=!f,v=(0,o.useCallback)(()=>{"function"===typeof d&&d(),x(!1)},[d]),b=(0,o.useCallback)(()=>{"function"===typeof u&&u(),x(!0)},[u]);return o.createElement(Tae,{showLabels:g,rects:a},o.createElement(yee,{animationId:p,begin:s,duration:l,isActive:i,easing:c,onAnimationEnd:v,onAnimationStart:b,key:p},e=>{var i=1===e?a:null===a||void 0===a?void 0:a.map((t,n)=>{var a=m&&m[n];if(a)return Mae(Mae({},t),{},{x:BZ(a.x,t.x,e),y:BZ(a.y,t.y,e),width:BZ(a.width,t.width,e),height:BZ(a.height,t.height,e)});if("horizontal"===r){var i=BZ(0,t.height,e),s=BZ(t.stackedBarStart,t.y,e);return Mae(Mae({},t),{},{y:s,height:i})}var o=BZ(0,t.width,e),l=BZ(t.stackedBarStart,t.x,e);return Mae(Mae({},t),{},{width:o,x:l})});return e>0&&(n.current=null!==i&&void 0!==i?i:null),null==i?null:o.createElement(I6,null,o.createElement(Bae,{props:t,data:i}))}),o.createElement(Rte,{label:t.label}),t.children)}function zae(e){var t=(0,o.useRef)(null);return o.createElement(Vae,{previousRectanglesRef:t,props:e})}var qae=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:aW(e,t)}};class Uae extends o.PureComponent{render(){var e=this.props,t=e.hide,n=e.data,a=e.dataKey,r=e.className,i=e.xAxisId,s=e.yAxisId,l=e.needClip,c=e.background,d=e.id;if(t||null==n)return null;var u=js("recharts-bar",r),m=d;return o.createElement(I6,{className:u,id:d},l&&o.createElement("defs",null,o.createElement(Gne,{clipPathId:m,xAxisId:i,yAxisId:s})),o.createElement(I6,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(m,")"):void 0},o.createElement(Lae,{data:n,dataKey:a,background:c,allOtherBarProps:this.props}),o.createElement(zae,this.props)))}}var Wae={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendT
vendor: 4,978 bytes, line 2
2ype:"rect",minPointSize:0,xAxisId:0,yAxisId:0,zIndex:UX.bar};function Yae(e){var t,n=e.xAxisId,a=e.yAxisId,r=e.hide,i=e.legendType,s=e.minPointSize,l=e.activeBar,c=e.animationBegin,d=e.animationDuration,u=e.animationEasing,m=e.isAnimationActive,p=Kne(n,a).needClip,h=LW(),f=FW(),x=Zte(e.children,wte),g=_U(t=>uae(t,e.id,f,x));if("vertical"!==h&&"horizontal"!==h)return null;var v=null===g||void 0===g?void 0:g[0];return t=null==v||null==v.height||null==v.width?0:"vertical"===h?v.height/2:v.width/2,o.createElement(Yne,{xAxisId:n,yAxisId:a,data:g,dataPointFormatter:qae,errorBarOffset:t},o.createElement(Uae,Fae({},e,{layout:h,needClip:p,data:g,xAxisId:n,yAxisId:a,hide:r,legendType:i,minPointSize:s,activeBar:l,animationBegin:c,animationDuration:d,animationEasing:u,isAnimationActive:m})))}function Kae(e){var t=S6(e,Wae),n=Nae(t.stackId),a=FW();return o.createElement(xae,{id:t.id,type:"bar"},e=>o.createElement(o.Fragment,null,o.createElement(mae,{legendPayload:Hae(t)}),o.createElement(Pae,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),o.createElement(vae,{type:"bar",id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:a}),o.createElement(N3,{zIndex:t.zIndex},o.createElement(Yae,Fae({},t,{id:e})))))}var Gae=o.memo(Kae,k4);function $ae(e){var t=AU();return(0,o.useEffect)(()=>{t(W8(e))},[t,e]),null}Gae.displayName="Bar";var Qae=["layout"];function Xae(){return Xae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xae.apply(null,arguments)}var Jae={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ere=(0,o.forwardRef)(function(e,t){var n,a=S6(e.categoricalChartProps,Jae),r=a.layout,i=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,Qae),s=e.chartName,l={chartName:s,defaultTooltipEventType:e.defaultTooltipEventType,validateTooltipEventTypes:e.validateTooltipEventTypes,tooltipPayloadSearcher:e.tooltipPayloadSearcher,eventEmitter:void 0};return o.createElement(j4,{preloadedState:{options:l},reduxStoreName:null!==(n=a.id)&&void 0!==n?n:s},o.createElement(w4,{chartData:a.data}),o.createElement(D4,{layout:r,margin:a.margin}),o.createElement(_4,{baseValue:void 0,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),o.createElement($ae,{cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius}),o.createElement(_6,Xae({},i,{ref:t})))});function tre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tre(Object(n),!0).forEach(function(t){are(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function are(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rre=["item"],ire=nre(nre({},Jae),{},{layout:"centric",startAngle:0,endAngle:360}),sre=(0,o.forwardRef)((e,t)=>{var n=S6(e,ire);return o.createElement(ere,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:rre,tooltipPayloadSearcher:Mz,categoricalChartProps:n,ref:t})}),ore=e=>e.graphicalItems.polarItems,lre=bU([fJ,xJ],IJ),cre=bU([ore,PJ,lre],VJ),dre=bU([cre],YJ),ure=bU([dre,sX],GJ),mre=bU([ure,PJ,cre],QJ),pre=(bU([ure,PJ,cre],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>{var a;return{value:aW(e,null!==(a=t.dataKey)&&void 0!==a?a:n.dataKey),errorDomain:[]}}
2)).filter(Boolean):null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:aW(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]}))),()=>{}),hre=bU([ure,PJ,cre,h0,fJ],x0),fre=bU([PJ,u0,m0,pre,hre,pre,PW,fJ],O0),xre=bU([PJ,PW,ure,mre,CX,fJ,fre],P0),gre=bU([xre,PJ,I0],B0);bU([PJ,xre,gre,fJ],z0);function vre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vre(Object(n),!0).forEach(function(t){yre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vre(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yre(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jre=bU([ore,(e,t)=>t],(e,t)=>e.filter(e=>"pie"===e.type).find(e=>e.id===t)),wre=[],Nre=(e,t,n)=>0===(null===n||void 0===n?void 0:n.length)?wre:n,Are=bU([sX,jre,Nre],(e,t,n)=>{var a,r=e.chartData;if(null!=t&&((a=null!=(null===t||void 0===t?void 0:t.data)&&t.data.length>0?t.data:r)&&a.length||null==n||(a=n.map(e=>bre(bre({},t.presentationProps),e.props))),null!=a))return a}),kre=bU([Are,jre,Nre],(e,t,n)=>{if(null!=e&&null!=t)return e.map((e,a)=>{var r,i,s=aW(e,t.nameKey,t.name);return i=null!==n&&void 0!==n&&null!==(r=n[a])&&void 0!==r&&null!==(r=r.props)&&void 0!==r&&r.fill?n[a].props.fill:"object"===typeof e&&null!=e&&"fill"in e?e.fill:t.fill,{value:hW(s,t.dataKey),color:i,payload:e,type:t.legendType}})}),Ere=bU([Are,jre,Nre,EW],(e,t,n,a)=>{if(null!=t&&null!=e)return function(e){var t,n,a,r=e.pieSettings,i=e.displayedData,s=e.cells,o=e.offset,l=r.cornerRadius,c=r.startAngle,d=r.endAngle,u=r.dataKey,m=r.nameKey,p=r.tooltipType,h=Math.abs(r.minAngle),f=((e,t)=>{var n=MZ(t-e),a=Math.min(Math.abs(t-e),360);return n*a})(c,d),x=Math.abs(f),g=i.length<=1?0:null!==(t=r.paddingAngle)&&void 0!==t?t:0,v=i.filter(e=>0!==aW(e,u,0)).length,b=x-v*h-(x>=360?v:v-1)*g,y=i.reduce((e,t)=>{var n=aW(t,u,0);return e+(HZ(n)?n:0)},0);y>0&&(n=i.map((e,t)=>{var n,i=aW(e,u,0),d=aW(e,m,t),x=((e,t,n)=>{var a=t.top,r=t.left,i=t.width,s=t.height,o=BX(i,s),l=r+IZ(e.cx,i,i/2),c=a+IZ(e.cy,s,s/2),d=IZ(e.innerRadius,o,0),u=((e,t,n)=>{if("function"===typeof t)return IZ(t(e),n,.8*n);return IZ(t,n,.8*n)})(n,e.outerRadius,o),m=e.maxRadius||Math.sqrt(i*i+s*s)/2;return{cx:l,cy:c,innerRadius:d,outerRadius:u,maxRadius:m}})(r,o,e),v=(HZ(i)?i:0)/y,j=Mre(Mre({},e),s&&s[t]&&s[t].props),w=(n=t?a.endAngle+MZ(f)*g*(0!==i?1:0):c)+MZ(f)*((0!==i?h:0)+v*b),N=(n+w)/2,A=(x.innerRadius+x.outerRadius)/2,k=[{name:d,value:i,payload:j,dataKey:u,type:p,graphicalItemId:r.id}],E=ZX(x.cx,x.cy,A,N);return a=Mre(Mre(Mre(Mre({},r.presentationProps),{},{percent:v,cornerRadius:"string"===typeof l?parseFloat(l):l,name:d,tooltipPayload:k,midAngle:N,middleRadius:A,tooltipPosition:E},j),x),{},{value:i,dataKey:u,startAngle:n,endAngle:w,payload:j,paddingAngle:MZ(f)*g})}));return n}({offset:a,pieSettings:t,displayedData:e,cells:n})}),Dre=["key"],_re=["onMouseEnter","onClick","onMouseLeave"],Cre=["id"],Fre=["id"];function Sre(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Mre(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sre(Object(n),!0).forEach(function(t){Ore(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sre(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ore(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rre(){return Rre=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Rre.apply(null,arguments)}function Hre(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pre(e){var t=(0,o.useMemo)(()=>Zte(e.children,wte),[e.children]),n=_U(n=>kre(n,e.id,t));return null==n?null:o.createElement(pae,{legendPayload:n})}var Lre=o.memo(e=>{var t=e.dataKey,n=e.nameKey,a=e.sectors,r=e.stroke,i=e.strokeWidth,s=e.fill,l=e.name,c=e.hide,d=e.tooltipType,u=e.id,m={dataDefinedOnItem:a.map(e=>e.tooltipPayload),positions:a.map(e=>e.tooltipPosition),settings:{stroke:r,strokeWidth:i,fill:s,dataKey:t,nameKey:n,name:hW(l,t),hide:c,type:d,color:s,unit:"",graphicalItemId:u}};return o.createElement(zne,{tooltipEntrySettings:m})}),Tre=(e,t)=>e>t?"start":e<t?"end":"middle";function Ire(e){var t=e.sectors,n=e.props,a=e.showLabels,r=n.label,i=n.labelLine,s=n.dataKey;if(!a||!r||!t)return null;var l=H4(n),c=P4(r),d=P4(i),u="object"===typeof r&&"offsetRadius"in r&&"number"===typeof r.offsetRadius&&r.offsetRadius||20,m=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,a=ZX(e.cx,e.cy,e.outerRadius+u,n),m=Mre(Mre(Mre(Mre({},l),e),{},{stroke:"none"},c),{},{index:t,textAnchor:Tre(a.x,e.cx)},a),p=Mre(Mre(Mre(Mre({},l),e),{},{fill:"none",stroke:e.fill},d),{},{index:t,points:[ZX(e.cx,e.cy,e.outerRadius,n),a],key:"line"});return o.createElement(N3,{zIndex:UX.label,key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},o.createElement(I6,null,i&&((e,t)=>{if(o.isValidElement(e))return o.cloneElement(e,t);if("function"===typeof e)return e(t);var n=js("recharts-pie-label-line","boolean"!==typeof e?e.className:""),a=(t.key,Hre(t,Dre));return o.createElement(Z9,Rre({},a,{type:"linear",className:n}))})(i,p),((e,t,n)=>{if(o.isValidElement(e))return o.cloneElement(e,t);var a=n;if("function"===typeof e&&(a=e(t),o.isValidElement(a)))return a;var r,i=js("recharts-pie-label-text",(r=e)&&"object"===typeof r&&"className"in r&&"string"===typeof r.className?r.className:"");return o.createElement(w3,Rre({},t,{alignmentBaseline:"middle",className:i}),a)})(r,m,aW(e,s))))});return o.createElement(I6,{className:"recharts-pie-labels"},m)}function Zre(e){var t=e.sectors,n=e.props,a=e.showLabels,r=n.label;return"object"===typeof r&&null!=r&&"position"in r?o.createElement(Rte,{label:r}):o.createElement(Ire,{sectors:t,props:n,showLabels:a})}function Bre(e){var t=e.sectors,n=e.activeShape,a=e.inactiveShape,r=e.allOtherPieProps,i=e.shape,s=e.id,l=_U(k2),c=_U(D2),d=_U(_2),u=r.onMouseEnter,m=r.onClick,p=r.onMouseLeave,h=Hre(r,_re),f=Zne(u,r.dataKey,s),x=Bne(p),g=Vne(m,r.dataKey,s);return null==t||0===t.length?null:o.createElement(o.Fragment,null,t.map((e,u)=>{if(0===(null===e||void 0===e?void 0:e.startAngle)&&0===(null===e||void 0===e?void 0:e.endAngle)&&1!==t.length)return null;var m=null==d||d===s,p=String(u)===l&&(null==c||r.dataKey===c)&&m,v=n&&p?n:l?a:null,b=Mre(Mre({},e),{},{stroke:e.stroke,tabIndex:-1,[jW]:u,[wW]:s});return o.createElement(I6,Rre({key:"sector-".concat(null===e||void 0===e?void 0:e.startAngle,"-").concat(null===e||void 0===e?void 0:e.endAngle,"-").concat(e.midAngle,"-").concat(u),tabIndex:-1,
2className:"recharts-pie-sector"},q3(h,e,u),{onMouseEnter:f(e,u),onMouseLeave:x(e,u),onClick:g(e,u)}),o.createElement(Pne,Rre({option:null!==i&&void 0!==i?i:v,index:u,shapeType:"sector",isActive:p},b)))}))}function Vre(e){var t=e.showLabels,n=e.sectors,a=e.children,r=(0,o.useMemo)(()=>t&&n?n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})):[],[n,t]);return o.createElement(Mte,{value:t?r:void 0},a)}function zre(e){var t=e.props,n=e.previousSectorsRef,a=e.id,r=t.sectors,i=t.isAnimationActive,s=t.animationBegin,l=t.animationDuration,c=t.animationEasing,d=t.activeShape,u=t.inactiveShape,m=t.onAnimationStart,p=t.onAnimationEnd,h=jee(t,"recharts-pie-"),f=n.current,x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=(0,o.useCallback)(()=>{"function"===typeof p&&p(),v(!1)},[p]),y=(0,o.useCallback)(()=>{"function"===typeof m&&m(),v(!0)},[m]);return o.createElement(Vre,{showLabels:!g,sectors:r},o.createElement(yee,{animationId:h,begin:s,duration:l,isActive:i,easing:c,onAnimationStart:y,onAnimationEnd:b,key:h},e=>{var i=[],s=r&&r[0],l=null===s||void 0===s?void 0:s.startAngle;return null===r||void 0===r||r.forEach((t,n)=>{var a=f&&f[n],r=n>0?CZ(t,"paddingAngle",0):0;if(a){var s=BZ(a.endAngle-a.startAngle,t.endAngle-t.startAngle,e),o=Mre(Mre({},t),{},{startAngle:l+r,endAngle:l+s+r});i.push(o),l=o.endAngle}else{var c=BZ(0,t.endAngle-t.startAngle,e),d=Mre(Mre({},t),{},{startAngle:l+r,endAngle:l+c+r});i.push(d),l=d.endAngle}}),n.current=i,o.createElement(I6,null,o.createElement(Bre,{sectors:i,activeShape:d,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:a}))}),o.createElement(Zre,{showLabels:!g,sectors:r,props:t}),t.children)}var qre={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:UX.area};function Ure(e){var t=e.id,n=Hre(e,Cre),a=e.hide,r=e.className,i=e.rootTabIndex,s=(0,o.useMemo)(()=>Zte(e.children,wte),[e.children]),l=_U(e=>Ere(e,t,s)),c=(0,o.useRef)(null),d=js("recharts-pie",r);return a||null==l?(c.current=null,o.createElement(I6,{tabIndex:i,className:d})):o.createElement(N3,{zIndex:e.zIndex},o.createElement(Lre,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:l,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),o.createElement(I6,{tabIndex:i,className:d},o.createElement(zre,{props:Mre(Mre({},n),{},{sectors:l}),previousSectorsRef:c,id:t})))}function Wre(e){var t=S6(e,qre),n=t.id,a=Hre(t,Fre),r=H4(a);return o.createElement(xae,{id:n,type:"pie"},e=>o.createElement(o.Fragment,null,o.createElement(bae,{type:"pie",id:e,data:a.data,dataKey:a.dataKey,hide:a.hide,angleAxisId:0,radiusAxisId:0,name:a.name,nameKey:a.nameKey,tooltipType:a.tooltipType,legendType:a.legendType,fill:a.fill,cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,paddingAngle:a.paddingAngle,minAngle:a.minAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius,cornerRadius:a.cornerRadius,presentationProps:r,maxRadius:t.maxRadius}),o.createElement(Pre,Rre({},a,{id:e})),o.createElement(Ure,Rre({},a,{id:e}))))}Wre.displayName="Pie";const Yre=["#0F172A","#0F4FA8","#00C853","#B91C1C","#4B5563","#FFB200","#9333EA","#0EA5E9"];function Kre(){var e,t,n,a,r,i,s,l,c,d,u;const m=Ue((0,o.useState)(null),2),p=m[0],h=m[1],f=Ue((0,o.useState)(null),2),x=f[0],g=f[1];(0,o.useEffect)(()=>{Qi.get("/analytics/employer/overview").then(e=>h(e.data)),Qi.get("/analytics/employer/roi").then(e=>g(e.data))},[]);const v=((null===p||void 0===p?void 0:p.funnel)||[]).map(e=>({stage:e.stage.replace(/_/g," "),count:e.count})),b=Object.entries((null===p||void 0===p?void 0:p.status_distribution)||{}).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return{name:n.replace(/_/g," "),value:a}});return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ANALYTICS"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Hiring intelligence"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Hiring momentum and ROI for your organization."}),(0,Pe.jsxs)(gZ,{defaultValue:"overview",className:"mt-6",children:[(0,Pe.jsxs)(vZ,{className:"bg-secondary",children:[(0,Pe.jsxs)(bZ,{value:"overview",children:[(0,Pe.jsx)(iv,{size:14,className:"mr-1.5"})," Overview"]}),(0,Pe.jsxs)(bZ,{"data-testid":cN,value:"roi",children:[(0,Pe.jsx)(YH,{size:14,className:"mr-1.5"})," ROI"]})]}),(0,Pe.jsxs)(yZ,{value:"overview",className:"mt-5",children:[(0,Pe.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"Active jobs",value:null!==(e=null===p||void 0===p?void 0:p.active_jobs)&&void 0!==e?e:"\u2014"},{label:"Total jobs",value:null!==(t=null===p||void 0===p?void 0:p.total_jobs)&&void 0!==t?t:"\u2014"},{label:"Applications",value:null!==(n=null===p||void 0===p?void 0:p.total_applications)&&void 0!==n?n:"\u2014"},{label:"Conversion",value:p?"".concat(Math.round(((null===(a=p.status_distribution)||void 0===a?void 0:a.hired)||0)/Math.max(1,p.total_applications)*100),"%"):"\u2014"}].map(e=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-white",children:[(0,Pe.jsx)("div",{className:"font-display font-black text-3xl",children:e.value}),(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground mt-1",children:e.label})]},e.label))}),(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl",children:"Funnel"}),(0,Pe.jsx)("div",{className:"h-72 mt-4",children:(0,Pe.jsx)(cB,{children:(0,Pe.jsxs)(P6,{data:v,children:[(0,Pe.jsx)(A5,{dataKey:"stage",tick:{fontSize:10,fill:"#4B5563"},angle:-25,textAnchor:"end",height:70}),(0,Pe.jsx)(O5,{tick:{fontSize:10,fill:"#4B5563"}}),(0,Pe.jsx)(jte,{}),(0,Pe.jsx)(Gae,{dataKey:"count",fill:"#0F172A",radius:[4,4,0,0]})]})})})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl",children:"Status distribution"}),(0,Pe.jsx)("div",{className:"h-72 mt-4",children:(0,Pe.jsx)(cB,{children:(0,Pe.jsxs)(sre,{children:[(0,Pe.jsx)(jte,{}),(0,Pe.jsx)(Wre,{data:b,dataKey:"value",nameKey:"name",outerRadius:90,label:{fontSize:10},children:b.map((e,t)=>(0,Pe.jsx)(wte,{fill:Yre[t%Yre.length]},t))})]})})})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl",children:"Top jobs by applicants"}),(0,Pe.jsx)("div",{className:"mt-4 divide-y",children:((null===p||void 0===p?void 0:p.top_jobs)||[]).map(e=>(0,Pe.jsxs)("div",{className:"flex items-center justify-between py-3",children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.title}),(0,Pe.jsxs)("span",{className:"font-mono text-sm",children:[e.applicant_count," applicants"]})]},e.id))})]})]}),(0,Pe.jsxs)(yZ,{value:"roi",className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"ai-panel roun
2ded-md p-6",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"EXECUTIVE ANSWER"}),(0,Pe.jsx)("p",{className:"mt-2 text-xl text-white font-display leading-snug max-w-3xl",children:"Is AROS helping us hire better people, faster?"}),(0,Pe.jsx)("p",{className:"mt-3 text-white/80 text-sm max-w-3xl",children:null===x||void 0===x?void 0:x.ai_helping_summary})]}),(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Gre,{icon:dM,label:"Qualified rate",value:x?"".concat(x.qualified_rate_pct,"%"):"\u2014",sub:"AI fit \u2265 70"}),(0,Pe.jsx)(Gre,{icon:BH,label:"Interview rate",value:x?"".concat(x.interview_set_rate_pct,"%"):"\u2014"}),(0,Pe.jsx)(Gre,{icon:YH,label:"Hire rate",value:x?"".concat(x.hire_rate_pct,"%"):"\u2014"}),(0,Pe.jsx)(Gre,{icon:ag,label:"Avg time-to-hire",value:x?"".concat(x.avg_time_to_hire_days||0,"d"):"\u2014"}),(0,Pe.jsx)(Gre,{label:"Apps received",value:null!==(r=null===x||void 0===x?void 0:x.applications_received)&&void 0!==r?r:"\u2014"}),(0,Pe.jsx)(Gre,{label:"Qualified candidates",value:null!==(i=null===x||void 0===x?void 0:x.qualified_candidates)&&void 0!==i?i:"\u2014"}),(0,Pe.jsx)(Gre,{label:"Avg recruiter response",value:x?"".concat(x.avg_recruiter_response_hrs,"h"):"\u2014"}),(0,Pe.jsx)(Gre,{label:"Offer rate",value:x?"".concat(x.offer_rate_pct,"%"):"\u2014"})]}),(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl",children:"Post-hire learning loop"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"90-day feedback drives smarter future matching."}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)($re,{label:"Feedback collected",value:null!==(s=null===x||void 0===x||null===(l=x.post_hire)||void 0===l?void 0:l.feedback_count)&&void 0!==s?s:0}),(0,Pe.jsx)($re,{label:"Avg performance at 90d",value:null!==(c=null===x||void 0===x||null===(d=x.post_hire)||void 0===d?void 0:d.avg_performance_at_90d)&&void 0!==c?c:"\u2014",suffix:"/5"}),(0,Pe.jsx)($re,{label:"Still employed at 90d",value:null!=(null===x||void 0===x||null===(u=x.post_hire)||void 0===u?void 0:u.still_employed_at_90d_pct)?"".concat(Math.round(x.post_hire.still_employed_at_90d_pct),"%"):"\u2014"})]})]})]})]})]})}function Gre(e){let t=e.icon,n=e.label,a=e.value,r=e.sub;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-white",children:[t&&(0,Pe.jsx)(t,{size:18,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("div",{className:"font-display font-black text-3xl mt-2",children:a}),(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground mt-0.5",children:n}),r&&(0,Pe.jsx)("div",{className:"text-[10px] text-muted-foreground mt-0.5 font-mono",children:r})]})}function $re(e){let t=e.label,n=e.value,a=e.suffix;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:t}),(0,Pe.jsxs)("div",{className:"font-display font-bold text-2xl mt-1",children:[n,a||""]})]})}const Qre=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24
2-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),Xre=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Qre})));Xre.displayName="ChatCircleDotsIcon";const Jre=Xre,eie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),o.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),tie=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:eie})));tie.displayName="ArrowUpRightIcon";const nie=tie,aie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M204,88V192a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h75L55.51,72.48a12,12,0,0,1,17-17L180,163V88a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,88V192H88Z",opacity:"0.2"}),o.createElement("path",{d:"M195.06,80.61a8,8,0,0,0-8.72,1.73L140,128.69,69.66,58.34A8,8,0,0,0,58.34,69.66L128.69,140,82.34,186.34A8,8,0,0,0,88,200H192a8,8,0,0,0,8-8V88A8,8,0,0,0,195.06,80.61ZM184,184H107.31l38.34-38.34h0L184,107.31Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,88V192a8,8,0,0,1-8,8H88a8,8,0,0,1-5.66-13.66L128.69,140,58.34,69.66A8,8,0,0,1,69.66,58.34L140,128.69l46.34-46.35A8,8,0,0,1,200,88Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M198,88V192a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h89.52L59.76,68.24a6,6,0,0,1,8.48-8.48L186,177.52V88a6,6,0,0,1,12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,88V192a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h84.69L58.34,69.66A8,8,0,0,1,69.66,58.34L184,172.69V88a8,8,0,0,1,16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196,88V192a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h94.34L61.17,66.83a4,4,0,0,1,5.66-5.66L188,182.34V88a4,4,0,0,1,8,0Z"}))]]),rie=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:aie})));rie.displayName="ArrowDownRightIcon";const iie=rie,sie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),oie=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:sie})));oie.displayName="MinusIcon";const lie=oie,cie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),die=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:cie})));die.displayName="DownloadSimpleIcon";const uie=die,mie={date_from:"",date_to:"",job_id:"",department:"",location:"",recruiter_id:"",hiring_manager_id:"",source:"",stage:"",status:""};function pie(e){const t=new URLSearchParams;return Object.entries(e).forEach(e=>{let n=Ue(e,2),a=n[0],r=n[1];void 0!==r&&null!==r&&""!==r&&t.set(a,r)}),t.toString()}const hie=[{key:"overview",label:"Overview",icon:Bg,path:"overview"},{key:"pipeline",label:"Pipeline",icon:$g,path:"pipeline"},{key:"hiring-speed",label:"Hiring speed",icon:ag,path:"hiring-speed"},{key:"sources",label:"Sources",icon:Hg,path:"sources"},{key:"team-follow-up",label:"Team follow-up",icon:FP,path:"team-follow-up"},{key:"communication",label:"Communication",icon:Jre,path:"communication"}];function fie(e){let t=e.change;if(!t)return null;const n=t.direction,a=t.delta_pct;if("none"===n)return null;const r=null==a?null:"".concat((100*Math.abs(a)).toFixed(0),"%"),i="up"===n?"text-emerald-700 bg-emerald-50":"down"===n?"text-rose-700 bg-rose-50":"text-zinc-600 bg-zinc-100",s="up"===n?nie:"down"===n?iie:lie;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] rounded px-1.5 py-0.5 ".concat(i),"data-testid":"rc-change-chip",children:[(0,Pe.jsx)(s,{size:11,weight:"bold"})," ",null!==r&&void 0!==r?r:""]})}function xie(e){let t=e.label,n=e.value,a=e.change,r=e.onClick,i=e.testid;const s=Boolean(r);return(0,Pe.jsxs)("button",{type:"button",onClick:r||void 0,className:"text-left rounded-lg border border-border p-4 bg-white transition-shadow ".concat(s?"hover:shadow-sm cursor-pointer":"cursor-default"),"data-testid":i||"rc-kpi",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:t}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsx)("div",{className:"text-2xl font-brand font-bold text-foreground",children:n}),(0,Pe.jsx)(fie,{change:a})]})]})}function gie(e){let t=e.title,n=e.hint;return(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-lg p-10 text-center text-sm text-muted-foreground bg-secondary/40","data-testid":"rc-empty",children:[(0,Pe.jsx)("div",{className:"font-medium text-foreground mb-1",children:t}),(0,Pe.jsx)("div",{children:n})]})}function vie(e){let t=e.at;if(!t)return null;const n=new Date(t);let a="";try{a=Intl.DateTimeFormat().resolvedOptions().timeZone||""}catch(o){}const r=a||n.toLocaleTimeString(void 0,{timeZoneName:"short"}
2).split(" ").pop(),i=n.toISOString(),s=n.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return(0,Pe.jsxs)("div",{className:"text-[11px] font-mono uppercase tracking-[0.15em] text-muted-foreground","data-testid":"rc-data-updated",title:"ISO 8601 (UTC): ".concat(i),children:["Data updated: ",s," ",(0,Pe.jsxs)("span",{className:"normal-case tracking-normal",children:["(",r,")"]})]})}function bie(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";return null==e?"\u2014":"days"===t||"auto"===t&&e>=48?"".concat((e/24).toFixed(1),"d"):"".concat(e.toFixed(1),"h")}function yie(e){return null==e?"\u2014":"".concat((100*e).toFixed(0),"%")}function jie(e){let t=e.filters,n=e.onChange,a=e.onExport,r=e.exporting;const i=e=>a=>n(h(h({},t),{},{[e]:a.target.value}));return(0,Pe.jsxs)("div",{className:"border border-border rounded-lg bg-white p-4 space-y-3","data-testid":"rc-filter-bar",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:"Filters"}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",disabled:r,onClick:a,"data-testid":"rc-export-btn",children:[(0,Pe.jsx)(uie,{size:14,className:"mr-1.5"})," ",r?"Preparing\u2026":"Download CSV"]})]}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground -mt-1","data-testid":"rc-date-format-hint",children:["Dates use your local timezone"," (",(()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"local"}catch(e){return"local"}})(),"). ","Range is inclusive of both the From and To days."]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-2",children:[(0,Pe.jsx)(Io,{type:"date",value:t.date_from,onChange:i("date_from"),placeholder:"From","data-testid":"rc-filter-date-from"}),(0,Pe.jsx)(Io,{type:"date",value:t.date_to,onChange:i("date_to"),placeholder:"To","data-testid":"rc-filter-date-to"}),(0,Pe.jsx)(Io,{value:t.job_id,onChange:i("job_id"),placeholder:"Job (id, comma-sep)","data-testid":"rc-filter-job"}),(0,Pe.jsx)(Io,{value:t.department,onChange:i("department"),placeholder:"Department","data-testid":"rc-filter-department"}),(0,Pe.jsx)(Io,{value:t.location,onChange:i("location"),placeholder:"Location","data-testid":"rc-filter-location"}),(0,Pe.jsx)(Io,{value:t.recruiter_id,onChange:i("recruiter_id"),placeholder:"Recruiter (id)","data-testid":"rc-filter-recruiter"}),(0,Pe.jsx)(Io,{value:t.hiring_manager_id,onChange:i("hiring_manager_id"),placeholder:"Hiring manager (id)","data-testid":"rc-filter-hm"}),(0,Pe.jsx)(Io,{value:t.source,onChange:i("source"),placeholder:"Source","data-testid":"rc-filter-source"}),(0,Pe.jsx)(Io,{value:t.stage,onChange:i("stage"),placeholder:"Stage","data-testid":"rc-filter-stage"}),(0,Pe.jsx)(Io,{value:t.status,onChange:i("status"),placeholder:"Status","data-testid":"rc-filter-status"})]})]})}function wie(e){var t,n,a,r,i,s,o;let l=e.data,c=e.onDrill;if(!l||"off"===l.status)return(0,Pe.jsx)(gie,{title:"Reporting Center is not yet enabled here",hint:"Turn AROS_REPORTING_CENTER_ENABLED on for this environment."});const d=l.metrics||{},u=l.comparison||{};return(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(xie,{label:"Open jobs",value:null!==(t=d.open_jobs)&&void 0!==t?t:"\u2014",change:u.open_jobs,testid:"rc-kpi-open-jobs",onClick:()=>c("/app/employer/jobs")}),(0,Pe.jsx)(xie,{label:"Total applicants",value:null!==(n=d.total_applicants)&&void 0!==n?n:"\u2014",change:u.total_applicants,testid:"rc-kpi-total-applicants",onClick:()=>c("/app/employer/applicants")}),(0,Pe.jsx)(xie,{label:"Active candidates",value:null!==(a=d.active_candidates)&&void 0!==a?a:"\u2014",change:u.active_candidates,testid:"rc-kpi-active-candidates",onClick:()=>c("/app/employer/applicants")}),(0,Pe.jsx)(xie,{label:"Interviews completed",value:null!==(r=d.interviews_completed)&&void 0!==r?r:"\u2014",change:u.interviews_completed,testid:"rc-kpi-interviews-completed"}),(0,Pe.jsx)(xie,{label:"Offers sent",value:null!==(i=d.offers_sent)&&void 0!==i?i:"\u2014",change:u.offers_sent,testid:"rc-kpi-offers-sent"}),(0,Pe.jsx)(xie,{label:"Hires completed",value:null!==(s=d.hires_completed)&&void 0!==s?s:"\u2014",change:u.hires_completed,testid:"rc-kpi-hires-completed"}),(0,Pe.jsx)(xie,{label:"Median time to first review",value:bie(d.median_time_to_first_review_hours),change:u.median_time_to_first_review_hours,testid:"rc-kpi-ttfr"}),(0,Pe.jsx)(xie,{label:"Median time to hire",value:bie(d.median_time_to_hire_hours,"days"),change:u.median_time_to_hire_hours,testid:"rc-kpi-tth"}),(0,Pe.jsx)(xie,{label:"Offer acceptance rate",value:yie(d.offer_acceptance_rate),change:u.offer_acceptance_rate,testid:"rc-kpi-acceptance-rate"}),(0,Pe.jsx)(xie,{label:"Candidates needing attention",value:null!==(o=d.candidates_needing_attention)&&void 0!==o?o:"\u2014",change:u.candidates_needing_attention,testid:"rc-kpi-needing-attention",onClick:()=>c("/app/employer/applicants")})]}),(0,Pe.jsx)(vie,{at:l.data_updated_at})]})}function Nie(e){var t;let n=e.data,a=e.onDrill;if(!n||"off"===n.status)return(0,Pe.jsx)(gie,{title:"Pipeline data unavailable",hint:"Try again once you have applications."});const r=n.stages||[],i=n.conversion||[];return(0,Pe.jsxs)("div",{className:"space-y-6",children:[(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Candidates in each stage"})}),(0,Pe.jsx)(jO,{children:0===r.length?(0,Pe.jsx)(gie,{title:"No stages yet",hint:"Applications will populate this."}):(0,Pe.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:r.map(e=>(0,Pe.jsx)(xie,{label:e.label,value:e.count,testid:"rc-stage-".concat(e.stage),onClick:e.count>0?()=>a("/app/employer/applicants?stage=".concat(e.stage)):void 0},e.stage))})})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Conversion between stages"})}),(0,Pe.jsx)(jO,{className:"space-y-2",children:i.map(e=>(0,Pe.jsxs)("div",{className:"flex items-center justify-between text-sm border-b border-border py-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:e.from}),(0,Pe.jsx)(eg,{size:12}),(0,Pe.jsx)("span",{children:e.to})]}),(0,Pe.jsxs)("div",{className:"font-mono",children:[e.to_count,"/",e.from_count," \xb7 ",(0,Pe.jsx)("b",{children:yie(e.rate)})]})]},"".concat(e.from,"-").concat(e.to)))})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsxs)(yO,{children:["Candidates sitting too long (",n.stagnation_business_days," business days)"]})}),(0,Pe.jsx)(jO,{children:0===(n.stuck_in_stage||[]).length?(0,Pe.jsx)(gie,{title:"Nothing stuck",hint:"Every candidate has moved recently."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(n.stuck_in_stage||[]).slice(0,25).map(e=>(0,Pe.jsx)(_ie,{row:h(h({},e),{},{business_days_waiting:e.business_days_in_stage}),onDrill:a,waitingLabel:"In this stage"},e.application_id))})})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Jobs with no recent movement"})}),(0,Pe.jsx)(jO,{children:0===(n.stale_jobs||[]).length?(0,Pe.jsx)(gie,{title:"No stale jobs",hint:"All open jobs saw recent activity."}):(0,Pe.jsx)("div",{className:"space-y-1 text-sm",children:(n.stale_jobs||[]).map(e=>(0,Pe.jsxs)("div",{className:"border-b border-border py-1.5 flex justify-between",children:[(0,Pe.jsx)("button",{className:"text-left hover:underline",onClick:()=>a("/app/employer/jobs/".concat(e.job_id)),children:e.job_title||"Job unavailable"}),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground",children:Die(e.business_days_since_activity)})]},e.job_id))})})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Withdrawals"})}),(0,Pe.jsx)(jO,{children:(0,Pe.jsx)("div",{className:"text-3xl font-brand font-bold",children:null!==(t=n.withdrawals)&&void 0!==t?t:0})})]})]}),n.biggest_drop_off&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Where candidates most often leave: ",(0,Pe.jsxs)("b",{children:[n.biggest_drop_off.from," \u2192 ",n.biggest_drop_off.to]})," (",yie(n.biggest_drop_off.rate),")"]}),(0,Pe.jsx)(vie,{at:n.data_updated_at})]})}function Aie(e){let t=e.data,n=e.onDrill;if(!t||"off"===t.status)return(0,Pe.jsx)(gie,{title:"Hiring speed unavailable",hint:"Try again once applications have moved through stages."});const a=[["Application \u2192 first human review",t.time_to_first_review],["Review \u2192 first contact",t.review_to_first_contact],["Interview \u2192 completed feedback",t.interview_to_feedback],["Final interview \u2192 decision",t.final_interview_to_decision],["Decision \u2192 candidate notification",t.decision_to_notify]];return(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:a.map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsx)(xie,{label:n,value:bie(null===a||void 0===a?void 0:a.hours),testid:"rc-speed-".concat(n)},n)})}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Candidates waiting on interview feedback"})}),(0,Pe.jsx)(jO,{children:0===(t.waiting_on_interview_feedback||[]).length?(0,Pe.jsx)(gie,{title:"Nothing waiting",hint:"All interviews have feedback."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(t.waiting_on_interview_feedback||[]).slice(0,25).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:n,waitingLabel:"Awaiting feedback"},e.application_id))})})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsxs)(yO,{children:["No activity for ",t.slow_activity_threshold_business_days," business days"]})}),(0,Pe.jsx)(jO,{children:0===(t.no_activity_business_days||[]).length?(0,Pe.jsx)(gie,{title:"All active candidates recently touched",hint:"Nice."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(t.no_activity_business_days||[]).slice(0,25).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:n,waitingLabel:"No activity"},e.application_id))})})]}),(0,Pe.jsx)(vie,{at:t.data_updated_at})]})}function kie(e){let t=e.data;if(!t||"off"===t.status)return(0,Pe.jsx)(gie,{title:"Source data unavailable",hint:"Wait until applications are recorded with a source."});const n=t.sources||[];return(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Candidates by source"})}),(0,Pe.jsx)(jO,{children:(0,Pe.jsx)("div",{className:"overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"min-w-full text-sm",children:[(0,Pe.jsx)("thead",{children:(0,Pe.jsxs)("tr",{className:"text-left text-muted-foreground text-[11px] uppercase tracking-[0.15em] font-mono",children:[(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Source"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Applicants"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Advanced"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Interviews"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Offers"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"Hires"}),(0,Pe.jsx)("th",{className:"py-2 pr-6",children:"App-to-hire"}),(0,Pe.jsx)("th",{className:"py-2",children:"Median TTH"})]})}),(0,Pe.jsx)("tbody",{children:n.map(e=>(0,Pe.jsxs)("tr",{className:"border-t border-border","data-testid":"rc-source-".concat(e.source),children:[(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.source}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.applicants}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.advanced}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.interviews}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.offers}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:e.hires}),(0,Pe.jsx)("td",{className:"py-2 pr-6",children:yie(e.app_to_hire_rate)}),(0,Pe.jsx)("td",{className:"py-2",children:bie(e.median_time_to_hire_hours,"days")})]},e.source))})]})})})]}),(0,Pe.jsx)(vie,{at:t.data_updated_at})]})}function Eie(e){let t=e.data,n=e.onDrill;if(!t||"off"===t.status)return(0,Pe.jsx)(gie,{title:"Follow-up view unavailable",hint:"Enable Reporting Center."});const a=(e,t)=>(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:e})}),(0,Pe.jsx)(jO,{children:0===(t||[]).length?(0,Pe.jsx)(gie,{title:"Nothing pending",hint:"All caught up."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:t.slice(0,25).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:n},e.application_id))})})]});return(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(xie,{label:"Feedback completion rate",value:yie(t.feedback_completion_rate)}),(0,Pe.jsx)(xie,{label:"Avg feedback turnaround",value:bie(t.median_feedback_turnaround_hours)})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a("Waiting on re
2cruiter action",t.waiting_on_recruiter),a("Waiting on hiring-manager action",t.waiting_on_hiring_manager),a("Interviews waiting on feedback",t.interviews_pending_feedback),a("Reviewed without follow-up",t.reviewed_no_followup)]}),(0,Pe.jsx)(vie,{at:t.data_updated_at})]})}function Die(e){if(null===e||void 0===e||Number.isNaN(Number(e)))return"";const t=Math.round(10*Number(e))/10;return"".concat(t," business day").concat(1===t?"":"s")}function _ie(e){var t,n,a;let r=e.row,i=e.onDrill,s=e.waitingLabel;const o=r.candidate_missing||"Candidate unavailable"===r.candidate_name,l=r.candidate_name||"Candidate unavailable",c=r.job_title||"",d=r.stage_label||"",u=Die(null!==(t=null!==(n=null!==(a=r.business_days_since_update)&&void 0!==a?a:r.business_days_since_review)&&void 0!==n?n:r.business_days_waiting)&&void 0!==t?t:r.business_days_since_activity),m="/app/employer/applications/".concat(r.application_id);return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("button",{type:"button",onClick:()=>i(m),"data-testid":"report-candidate-row-".concat(r.application_id),className:"w-full text-left py-2 px-1 flex flex-wrap items-baseline gap-x-3 gap-y-0.5 hover:bg-accent/40 rounded-sm transition-colors",children:[(0,Pe.jsx)("span",{className:"font-medium ".concat(o?"text-muted-foreground italic":"text-foreground"),children:l}),c&&(0,Pe.jsxs)("span",{className:"text-muted-foreground text-xs",children:["\xb7 ",c]}),d&&(0,Pe.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-muted text-muted-foreground",children:d}),u&&(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground ml-auto",children:s?"".concat(s," \xb7 ").concat(u):"Waiting ".concat(u)})]})})}function Cie(e){var t,n,a;let r=e.data,i=e.onDrill;return r&&"off"!==r.status?(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)(xie,{label:"Rejections communicated",value:null!==(t=r.rejections_communicated)&&void 0!==t?t:0}),(0,Pe.jsx)(xie,{label:"Emails delivered",value:null!==(n=r.emails_delivered)&&void 0!==n?n:0}),(0,Pe.jsx)(xie,{label:"Emails failed / bounced",value:null!==(a=r.emails_failed)&&void 0!==a?a:0})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Candidates waiting for an update"})}),(0,Pe.jsx)(jO,{children:0===(r.waiting_on_update||[]).length?(0,Pe.jsx)(gie,{title:"Everyone has been contacted",hint:"Nothing to nudge."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(r.waiting_on_update||[]).slice(0,30).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:i},e.application_id))})})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Decisions not yet communicated"})}),(0,Pe.jsx)(jO,{children:0===(r.decisions_not_communicated||[]).length?(0,Pe.jsx)(gie,{title:"All decisions communicated",hint:"Great follow-through."}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(r.decisions_not_communicated||[]).slice(0,30).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:i},e.application_id))})})]}),(0,Pe.jsxs)(vO,{children:[(0,Pe.jsx)(bO,{children:(0,Pe.jsx)(yO,{children:"Candidate withdrawals"})}),(0,Pe.jsx)(jO,{children:0===(r.withdrawals||[]).length?(0,Pe.jsx)(gie,{title:"No withdrawals",hint:"\u2014"}):(0,Pe.jsx)("ul",{className:"text-sm divide-y divide-border",children:(r.withdrawals||[]).slice(0,30).map(e=>(0,Pe.jsx)(_ie,{row:e,onDrill:i},e.application_id))})})]}),(0,Pe.jsx)(vie,{at:r.data_updated_at})]}):(0,Pe.jsx)(gie,{title:"Communication view unavailable",hint:"Enable Reporting Center."})}function Fie(){const e=Ue(Xn(),2),t=e[0],n=e[1],a=zt(),r=Ue((0,o.useState)(t.get("section")||"overview"),2),i=r[0],s=r[1],l=(0,o.useState)(()=>h(h({},mie),Object.fromEntries(Array.from(t.entries()).filter(e=>Ue(e,1)[0]in mie)))),c=Ue(l,2),d=c[0],u=c[1],m=Ue((0,o.useState)({}),2),p=m[0],f=m[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1],w=Ue((0,o.useState)(null),2),N=w[0],A=w[1],k=(0,o.useMemo)(()=>{var e;return(null===(e=hie.find(e=>e.key===i))||void 0===e?void 0:e.path)||"overview"},[i]),E=(0,o.useCallback)(async()=>{v(!0),A(null);try{const e=pie(d),t=await Qi.get("/reporting/".concat(k).concat(e?"?".concat(e):""));f(e=>h(h({},e),{},{[i]:t.data}))}catch(zf){var e,t;A((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||zf.message||"Failed to load report")}finally{v(!1)}},[i,k,d]);(0,o.useEffect)(()=>{E()},[E]),(0,o.useEffect)(()=>{const e=new URLSearchParams;
2e.set("section",i),Object.entries(d).forEach(t=>{let n=Ue(t,2),a=n[0],r=n[1];r&&e.set(a,r)}),n(e,{replace:!0})},[i,d,n]);const D=e=>a(e),_=p[i],C=_&&"off"===_.status;return(0,Pe.jsxs)("div",{className:"space-y-6 pb-16","data-testid":"reporting-center",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h1",{className:"text-3xl font-brand font-bold text-foreground",children:"Reports"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Understand what is happening with hiring, where candidates are waiting, and what needs attention."})]}),C&&(0,Pe.jsx)(AP,{variant:"outline",className:"text-amber-700 border-amber-300 bg-amber-50",children:"Not yet enabled"})]}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"rc-tabs",children:hie.map(e=>{const t=e.icon,n=e.key===i;return(0,Pe.jsxs)("button",{onClick:()=>s(e.key),"data-testid":"rc-tab-".concat(e.key),className:"inline-flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm transition-colors\n ".concat(n?"bg-foreground text-white border-foreground":"bg-white border-border text-foreground hover:bg-secondary/40"),children:[(0,Pe.jsx)(t,{size:14})," ",e.label]},e.key)})}),(0,Pe.jsx)(jie,{filters:d,onChange:u,onExport:async()=>{j(!0);try{const e=pie(d),t=await Qi.get("/reporting/".concat(k,"/export.csv").concat(e?"?".concat(e):""),{responseType:"blob"}),n=new Blob([t.data],{type:"text/csv"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a,r.download="aros-report-".concat(k,"-").concat((new Date).toISOString().slice(0,10),".csv"),document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(a)}catch(zf){A((null===zf||void 0===zf?void 0:zf.message)||"CSV export failed")}finally{j(!1)}},exporting:y}),g&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground","data-testid":"rc-loading",children:"Loading\u2026"}),N&&(0,Pe.jsx)("div",{className:"border border-rose-200 bg-rose-50 text-rose-800 text-sm p-3 rounded","data-testid":"rc-error",children:String(N)}),!g&&!N&&"overview"===i&&(0,Pe.jsx)(wie,{data:_,onDrill:D}),!g&&!N&&"pipeline"===i&&(0,Pe.jsx)(Nie,{data:_,onDrill:D}),!g&&!N&&"hiring-speed"===i&&(0,Pe.jsx)(Aie,{data:_,onDrill:D}),!g&&!N&&"sources"===i&&(0,Pe.jsx)(kie,{data:_}),!g&&!N&&"team-follow-up"===i&&(0,Pe.jsx)(Eie,{data:_,onDrill:D}),!g&&!N&&"communication"===i&&(0,Pe.jsx)(Cie,{data:_,onDrill:D})]})}function Sie(){const e=Ue(Xn(),1)[0].get("token")||"",t=Ue((0,o.useState)({loading:!0,ok:!1,error:null,alreadyUsed:!1,alreadyVerified:!1}),2),n=t[0],a=t[1];return(0,o.useEffect)(()=>{(async()=>{if(e)try{var t,n;const r=await Qi.post("/auth/verify-email",{token:e});a({loading:!1,ok:!0,error:null,alreadyUsed:Boolean(null===(t=r.data)||void 0===t?void 0:t.trial_already_used),alreadyVerified:Boolean(null===(n=r.data)||void 0===n?void 0:n.already_verified)})}catch(zf){var r,i;a({loading:!1,ok:!1,error:(null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"We couldn't verify that link. It may have expired.",alreadyUsed:!1,alreadyVerified:!1})}else a({loading:!1,ok:!1,error:"Missing verification token.",alreadyUsed:!1,alreadyVerified:!1})})()},[e]),(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 bg-white","data-testid":"verify-email-page",children:(0,Pe.jsxs)("div",{className:"max-w-md w-full text-center",children:[n.loading&&(0,Pe.jsx)("div",{className:"text-slate-600","data-testid":"verify-email-loading",children:"Confirming your email\u2026"}),!n.loading&&n.ok&&(0,Pe.jsxs)("div",{"data-testid":"verify-email-success",children:[(0,Pe.jsx)(Yf,{size:48,weight:"duotone",className:"text-emerald-600 mx-auto"}),(0,Pe.jsx)("h1",{className:"mt-4 text-3xl font-brand font-bold text-slate-900",children:n.alreadyVerified?"You're already verified.":"You're all set."}),(0,Pe.jsx)("p",{className:"mt-3 text-slate-600",children:n.alreadyUsed?"This email address has already used its AROS free trial. Sign in to your existing workspace to continue."
2:"Your 30-day AROS free trial is active. Sign in to jump in."}),(0,Pe.jsx)(Yn,{to:"/login",children:(0,Pe.jsx)(Lo,{className:"mt-8 h-11 px-5","data-testid":"verify-email-go-to-login",children:"Sign in to AROS"})})]}),!n.loading&&!n.ok&&(0,Pe.jsxs)("div",{"data-testid":"verify-email-error",children:[(0,Pe.jsx)(Qx,{size:48,weight:"duotone",className:"text-amber-600 mx-auto"}),(0,Pe.jsx)("h1",{className:"mt-4 text-3xl font-brand font-bold text-slate-900",children:"Verification link problem"}),(0,Pe.jsx)("p",{className:"mt-3 text-slate-600",children:n.error}),(0,Pe.jsx)(Yn,{to:"/login",children:(0,Pe.jsx)(Lo,{variant:"outline",className:"mt-8 h-11 px-5",children:"Back to sign in"})})]})]})})}function Mie(){const e=Ue(Xn(),1)[0].get("token")||"",t=Ue((0,o.useState)({loading:!0,error:null,email:null,optedOut:!1,working:!1}),2),n=t[0],a=t[1],r=(0,o.useCallback)(async()=>{if(e)try{var t,n;const r=await Qi.get("/candidate-notifications/status?token=".concat(encodeURIComponent(e)));a({loading:!1,error:null,email:(null===(t=r.data)||void 0===t?void 0:t.email_canonical)||null,optedOut:Boolean(null===(n=r.data)||void 0===n?void 0:n.opted_out),working:!1})}catch(zf){var r,i;a({loading:!1,error:(null===zf||void 0===zf||null===(r=zf.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"We couldn't verify this unsubscribe link. It may be malformed.",email:null,optedOut:!1,working:!1})}else a(e=>h(h({},e),{},{loading:!1,error:"Missing unsubscribe token."}))},[e]),i=(0,o.useCallback)(async()=>{a(e=>h(h({},e),{},{working:!0}));try{const t=await Qi.post("/candidate-notifications/unsubscribe?token=".concat(encodeURIComponent(e)));a(e=>{var n,a;return h(h({},e),{},{working:!1,optedOut:Boolean(null===(n=t.data)||void 0===n?void 0:n.opted_out),email:(null===(a=t.data)||void 0===a?void 0:a.email_canonical)||e.email})})}catch(zf){a(t=>{var n,a;return h(h({},t),{},{working:!1,error:(null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Couldn't complete unsubscribe."})})}},[e]),s=(0,o.useCallback)(async()=>{a(e=>h(h({},e),{},{working:!0}));try{const t=await Qi.post("/candidate-notifications/resubscribe?token=".concat(encodeURIComponent(e)));a(e=>{var n;return h(h({},e),{},{working:!1,optedOut:Boolean(null===(n=t.data)||void 0===n?void 0:n.opted_out)})})}catch(zf){a(t=>{var n,a;return h(h({},t),{},{working:!1,error:(null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Couldn't complete resubscribe."})})}},[e]);return(0,o.useEffect)(()=>{r()},[r]),(0,o.useEffect)(()=>{n.loading||n.error||n.optedOut||!n.email||n.working||i()},[n.loading,n.error,n.email,n.optedOut,n.working,i]),(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center px-6 bg-white","data-testid":"unsubscribe-page",children:(0,Pe.jsxs)("div",{className:"max-w-md w-full text-center",children:[n.loading&&(0,Pe.jsx)("div",{"data-testid":"unsubscribe-loading",className:"text-slate-500 text-sm",children:"Verifying your link\u2026"}),!n.loading&&n.error&&(0,Pe.jsxs)("div",{"data-testid":"unsubscribe-error",children:[(0,Pe.jsx)(Qx,{size:48,weight:"regular",className:"mx-auto text-amber-500"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"We couldn't confirm this link"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:n.error}),(0,Pe.jsx)("p",{className:"mt-6 text-xs text-slate-500",children:"If you keep receiving emails you didn't sign up for, reply to any of them and the hiring team can help."})]}),!n.loading&&!n.error&&n.optedOut&&(0,Pe.jsxs)("div",{"data-testid":"unsubscribe-success",children:[(0,Pe.jsx)(Yf,{size:48,weight:"regular",className:"mx-auto text-emerald-600"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"You're unsubscribed"}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-slate-600",children:["We won't send you any more AROS timeline emails at"," ",(0,Pe.jsx)("span",{className:"font-mono text-slate-800",children:n.email}),"."]}),(0,Pe.jsx)("p",{className:"mt-6 text-xs text-slate-500",children:"Changed your mind? You can turn timeline emails back on:"}),(0,Pe.jsxs)(Lo,{variant:"outline",disabled:n.working,onClick:s,className:"mt-3","data-testid":"unsubscribe-resubscribe-button",children:[(0,Pe.jsx)(Nx,{size:16,className:"mr-2"}),"Turn timeline emails back on"]})]}),!n.loading&&!n.error&&!n.optedOut&&n.email&&n.working&&(0,Pe.jsx)("div",{"data-testid":"unsubscribe-working",className:"text-slate-500 text-sm",children:"Applying your preference\u2026"})]})})}const Oie=[{value:1,label:"Very poor",emoji:"\ud83d\ude1e"},{value:2,label:"Poor",emoji:"\ud83d\ude41"},{value:3,label:"Okay",emoji:"\ud83d\ude10"},{value:4,label:"Good",emoji:"\ud83d\ude42"},{value:5,label:"Very good",emoji:"\ud83d\ude0a"}
2],Rie=[{key:"q1_overall",label:"How would you rate your overall experience applying for this role?",required:!0},{key:"q2_clarity",label:"How clearly were you kept informed about your application status?",required:!1},{key:"q3_respect",label:"How respectful of your time did the process feel?",required:!1}],Hie=[{value:"yes",label:"Yes"},{value:"maybe",label:"Maybe"},{value:"no",label:"No"}];function Pie(){const e=Ue(Xn(),1)[0].get("token")||"",t=Ue((0,o.useState)("loading"),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)({q1_overall:null,q2_clarity:null,q3_respect:null,q4_reapply:null,q5_free_text:""}),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1];(0,o.useEffect)(()=>{let t=!0;return(async()=>{if(!e)return a("error"),void s("Missing survey link.");try{var n,r;const i=await Qi.get("/candidate-survey/preview?token=".concat(encodeURIComponent(e)));if(!t)return;null!==(n=i.data)&&void 0!==n&&n.expired?a("expired"):null!==(r=i.data)&&void 0!==r&&r.already_submitted?a("already"):a("form")}catch(zf){var i,o;if(!t)return;a("error"),s((null===zf||void 0===zf||null===(i=zf.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.detail)||"This link isn't valid.")}})(),()=>{t=!1}},[e]);const f=(0,o.useCallback)((e,t)=>{d(n=>h(h({},n),{},{[e]:t}))},[]),x=(0,o.useMemo)(()=>Number.isInteger(c.q1_overall)&&c.q1_overall>=1&&!m,[c.q1_overall,m]),g=(0,o.useCallback)(async()=>{if(x){p(!0);try{await Qi.post("/candidate-survey/submit",{token:e,q1_overall:c.q1_overall,q2_clarity:c.q2_clarity,q3_respect:c.q3_respect,q4_reapply:c.q4_reapply,q5_free_text:(c.q5_free_text||"").slice(0,500)}),a("submitted")}catch(zf){var t;const i=null===zf||void 0===zf||null===(t=zf.response)||void 0===t?void 0:t.status;if(410===i)a("expired");else if(409===i)a("already");else{var n,r;a("error"),s((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.detail)||"Sorry \u2014 we couldn't record your response.")}}finally{p(!1)}}},[c,x,e]);return(0,Pe.jsx)("div",{className:"min-h-screen bg-slate-50 px-4 py-8 sm:py-16","data-testid":"survey-page",children:(0,Pe.jsxs)("div",{className:"max-w-xl mx-auto bg-white rounded-2xl shadow-sm border border-slate-200 p-6 sm:p-10",children:["loading"===n&&(0,Pe.jsx)("p",{className:"text-slate-500 text-sm text-center","data-testid":"survey-loading",children:"Loading\u2026"}),"expired"===n&&(0,Pe.jsxs)("div",{className:"text-center","data-testid":"survey-expired",children:[(0,Pe.jsx)(Qx,{size:44,weight:"regular",className:"mx-auto text-amber-500"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"This link has expired"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Survey links stay open for 30 days after we send them. If you'd still like to share feedback, reply to the hiring team's most recent email and they can help."})]}),"already"===n&&(0,Pe.jsxs)("div",{className:"text-center","data-testid":"survey-already",children:[(0,Pe.jsx)(Yf,{size:44,weight:"regular",className:"mx-auto text-emerald-600"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"You've already responded"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Thanks \u2014 your feedback is in. Only one response per application."})]}),"submitted"===n&&(0,Pe.jsxs)("div",{className:"text-center","data-testid":"survey-submitted",children:[(0,Pe.jsx)(Yf,{size:44,weight:"regular",className:"mx-auto text-emerald-600"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"Thanks \u2014 response received"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"We appreciate your time. Your ratings will be combined with other applicants' ratings before the hiring team sees them. Your written comment, if you shared one, may be shown to the hiring team without your name after enough responses have been collected."})]}),"error"===n&&(0,Pe.jsxs)("div",{className:"text-center","data-testid":"survey-error",children:[(0,Pe.jsx)(Qx,{size:44,weight:"regular",className:"mx-auto text-amber-500"}),(0,Pe.jsx)("h1",{className:"mt-4 text-xl font-semibold text-slate-900",children:"Something went wrong"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:i||"Please try again in a moment."})]}),"form"===n&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("h1",{className:"text-xl sm:text-2xl font-semibold text-slate-900",children:"Your experience matters"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Your ratings are shared with the hiring team in aggregate. Your written comment may be shown without your name after enough responses have been collected. This survey is optional and will not affect your application."}),(0,Pe.jsxs)("form",{className:"mt-8 space-y-8",onSubmit:e=>{e.preventDefault(),g()},"data-testid":"survey-form",children:[Rie.map(e=>(0,Pe.jsxs)("fieldset",{"data-testid":"survey-".concat(e.key),children:[(0,Pe.jsxs)("legend",{className:"text-sm font-medium text-slate-900",children:[e.label,e.required?(0,Pe.jsx)("span",{className:"text-rose-600 ml-1","aria-hidden":"true",children:"*"}):null,e.required?(0,Pe.jsx)("span",{className:"sr-only",children:"(required)"}):null]}
2),(0,Pe.jsx)("div",{className:"mt-3 grid grid-cols-5 gap-2",children:Oie.map(t=>{const n=c[e.key]===t.value,a="".concat(e.key,"-").concat(t.value);return(0,Pe.jsxs)("label",{htmlFor:a,className:"flex flex-col items-center gap-1 rounded-lg border p-2 cursor-pointer text-center ".concat(n?"border-slate-900 bg-slate-900 text-white":"border-slate-200 hover:border-slate-400 text-slate-700"),children:[(0,Pe.jsx)("input",{id:a,type:"radio",name:e.key,value:t.value,checked:n,onChange:()=>f(e.key,t.value),className:"sr-only","data-testid":"".concat(e.key,"-option-").concat(t.value)}),(0,Pe.jsx)("span",{"aria-hidden":"true",className:"text-2xl leading-none",children:t.emoji}),(0,Pe.jsx)("span",{className:"text-[11px] leading-tight",children:t.label})]},t.value)})})]},e.key)),(0,Pe.jsxs)("fieldset",{"data-testid":"survey-q4_reapply",children:[(0,Pe.jsx)("legend",{className:"text-sm font-medium text-slate-900",children:"Would you apply for another role with this team?"}),(0,Pe.jsx)("div",{className:"mt-3 flex gap-2",children:Hie.map(e=>{const t=c.q4_reapply===e.value,n="q4-".concat(e.value);return(0,Pe.jsxs)("label",{htmlFor:n,className:"flex-1 rounded-lg border py-2 text-center text-sm cursor-pointer ".concat(t?"border-slate-900 bg-slate-900 text-white":"border-slate-200 hover:border-slate-400 text-slate-700"),children:[(0,Pe.jsx)("input",{id:n,type:"radio",name:"q4_reapply",value:e.value,checked:t,onChange:()=>f("q4_reapply",e.value),className:"sr-only","data-testid":"q4-option-".concat(e.value)}),e.label]},e.value)})})]}),(0,Pe.jsxs)("div",{"data-testid":"survey-q5_free_text",children:[(0,Pe.jsx)("label",{htmlFor:"q5",className:"text-sm font-medium text-slate-900 block",children:"Anything you'd like the hiring team to know?"}),(0,Pe.jsx)("p",{className:"mt-1 text-xs text-slate-500",children:"Please don't include names, phone numbers, email addresses, medical information, or other personal details. We do our best to remove that automatically, but this is not a guarantee."}),(0,Pe.jsx)(Bo,{id:"q5",maxLength:500,rows:4,className:"mt-2",value:c.q5_free_text,onChange:e=>f("q5_free_text",e.target.value),placeholder:"Optional \u2014 up to 500 characters","data-testid":"q5-textarea"}),(0,Pe.jsxs)("p",{className:"mt-1 text-xs text-slate-400 text-right",children:[(c.q5_free_text||"").length,"/500"]})]}),(0,Pe.jsxs)("div",{className:"pt-2 flex flex-col-reverse sm:flex-row sm:items-center sm:justify-between gap-4",children:[(0,Pe.jsx)("a",{href:"/api/candidate-survey/opt-out?token=".concat(encodeURIComponent(e)),className:"text-xs text-slate-500 underline","data-testid":"survey-optout-link",onClick:async t=>{if(t.preventDefault(),window.confirm("Turn off future surveys from AROS? Your application status emails won't change."))try{await Qi.post("/candidate-survey/opt-out?token=".concat(encodeURIComponent(e))),alert("Done \u2014 we won't send you future surveys.")}catch(n){}},children:"Don't send me future surveys"}),(0,Pe.jsxs)(Lo,{type:"submit",disabled:!x,"data-testid":"survey-submit-button",className:"sm:min-w-40",children:[(0,Pe.jsx)(OF,{size:16,className:"mr-2"}),m?"Sending\u2026":"Send response"]})]})]})]})]})})}const Lie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,108H40A12,12,0,0,1,28,96V48a12,12,0,0,1,24,0V67l7.8-7.8A99.42,99.42,0,0,1,130,29.94h.56a99.38,99.38,0,0,1,69.87,28.47,12,12,0,0,1-16.78,17.16,76,76,0,0,0-106.84.63L69,84H88a12,12,0,0,1,0,24Zm128,40H168a12,12,0,0,0,0,24h19l-7.8,7.8a75.55,75.55,0,0,1-53.32,22.26h-.43a75.49,75.49,0,0,1-53.09-21.63,12,12,0,0,0-16.78,17.16,99.38,99.38,0,0,0,69.87,28.47H126a99.42,99.42,0,0,0,70.16-29.29L204,189v19a12,12,0,0,0,24,0V160A12,12,0,0,0,216,148Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),o.createElement("path",{d:"M88,104H40a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V76.69L62.63,62.06A95.43,95.43,0,0,1,130,33.94h.53a95.36,95.36,0,0,1,67.07,27.33,8,8,0,0,1-11.18,11.44,79.52,79.52,0,0,0-55.89-22.77h-.45A79.56,79.56,0,0,0,73.94,73.37L59.31,88H88a8,8,0,0,1,0,16Zm128,48H168a8,8,0,0,0,0,16h28.69l-14.63,14.63a79.56,79.56,0,0,1-56.13,23.43h-.45a79.52,79.52,0,0,1-55.89-22.77,8,8,0,1,0-11.18,11.44,95.36,95.36,0,0,0,67.07,27.33H126a95.43,95.43,0,0,0,67.36-28.12L208,179.31V208a8,8,0,0,0,16,0V160A8,8,0,0,0,216,152Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,104H40a8,8,0,0,1-8-8V48a8,8,0,0,1,13.66-5.66L64,60.7a95.42,95.42,0,0,1,66-26.76h.53a95.36,95.36,0,0,1,67.07,27.33,8,8,0,0,1-11.18,11.44,79.52,79.52,0,0,0-55.89-22.77h-.45A79.48,79.48,0,0,0,75.35,72L93.66,90.34A8,8,0,0,1,88,104Zm128,48H168a8,8,0,0,0-5.66,13.66L180.65,184a79.48,79.48,0,0,1-54.72,22.09h-.45a79.52,79.52,0,0,1-55.89-22.77,8,8,0,1,0-11.18,11.44,95.36,95.36,0,0,0,67.07,27.33H126a95.42,95.42,0,0,0,66-26.76l18.36,18.36A8,8,0,0,0,224,208V160A8,8,0,0,0,216,152Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,102H40a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0V81.52l18-18a93.45,93.45,0,0,1,66-27.53h.52A93.39,93.39,0,0,1,196.19,62.7a6,6,0,0,1-8.38,8.58A82,82,0,0,0,72.53,72L54.48,90H88a6,6,0,0,1,0,12Zm128,52H168a6,6,0,0,0,0,12h33.52l-18.05,18a81.51,81.51,0,0,1-57.53,24h-.46a81.5,81.5,0,0,1-57.29-23.34,6,6,0,0,0-8.38,8.58,93.39,93.39,0,0,0,65.67,26.76H126a93.45,93.45,0,0,0,66-27.53l18-18.05V208a6,6,0,0,0,12,0V160A6,6,0,0,0,216,154Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,104H40a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V76.69L62.63,62.06A95.43,95.43,0,0,1,130,33.94h.53a95.36,95.36,0,0,1,67.07,27.33,8,8,0,0,1-11.18,11.44,79.52,79.52,0,0,0-55.89-22.77h-.45A79.56,79.56,0,0,0,73.94,73.37L59.31,88H88a8,8,0,0,1,0,16Zm128,48H168a8,8,0,0,0,0,16h28.69l-14.63,14.63a79.56,79.56,0,0,1-56.13,23.43h-.45a79.52,79.52,0,0,1-55.89-22.77,8,8,0,1,0-11.18,11.44,95.36,95.36,0,0,0,67.07,27.33H126a95.43,95.43,0,0,0,67.36-28.12L208,179.31V208a8,8,0,0,0,16,0V160A8,8,0,0,0,216,152Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M88,100H40a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V86.34L65.46,64.89A91.39,91.39,0,0,1,130,37.94h.51A91.43,91.43,0,0,1,194.8,64.13a4,4,0,0,1-5.6,5.72,83.44,83.44,0,0,0-58.68-23.91h-.47a83.52,83.52,0,0,0-58.94,24.6L49.66,92H88a4,4,0,0,1,0,8Zm128,56H168a4,4,0,0,0,0,8h38.34l-21.45,21.46A83.52,83.52,0,0,1,126,210.06h-.47A83.44,83.44,0,0,1,66.8,186.15a4,4,0,0,0-5.6,5.72,91.43,91.43,0,0,0,64.28,26.19H126a91.39,91.39,0,0,0,64.55-26.95L212,169.66V208a4,4,0,0,0,8,0V160A4,4,0,0,0,216,156Z"}))]]),Tie=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Lie})));Tie.displayName="ArrowsCounterClockwiseIcon";const Iie=Tie,Zie=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M252,124a60.14,60.14,0,0,0-32-53.08,52,52,0,0,0-92-32.11A52,52,0,0,0,36,70.92a60,60,0,0,0,0,106.14,52,52,0,0,0,92,32.13,52,52,0,0,0,92-32.13A60.05,60.05,0,0,0,252,124ZM88,204a28,28,0,0,1-26.85-20.07c1,0,1.89.07,2.85.07h8a12,12,0,0,0,0-24H64A36,36,0,0,1,52,90.05a12,12,0,0,0,8-11.32V72a28,28,0,0,1,56,0v60.18a51.61,51.61,0,0,0-7.2-3.85,12,12,0,1,0-9.6,22A28,28,0,0,1,88,204Zm104-44h-8a12,12,0,0,0,0,24h8c1,0,1.9,0,2.85-.07a28,28,0,1,1-38-33.61,12,12,0,1,0-9.6-22,51.61,51.61,0,0,0-7.2,3.85V72a28,28,0,0,1,56,0v6.73a12,12,0,0,0,8,11.32,36,36,0,0,1-12,70Zm16-44a12,12,0,0,1-12,12,40,40,0,0,1-40-40V84a12,12,0,0,1,24,0v4a16,16,0,0,0,16,16A12,12,0,0,1,208,116ZM100,88a40,40,0,0,1-40,40,12,12,0,0,1,0-24A16,16,0,0,0,76,88V84a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,124a48,48,0,0,1-32,45.27h0V176a40,40,0,0,1-80,0,40,40,0,0,1-80,0v-6.73h0a48,48,0,0,1,0-90.54V72a40,40,0,0,1,80,0,40,40,0,0,1,80,0v6.73A48,48,0,0,1,240,124Z",opacity:"0.2"}),o.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M212,76V72a44,44,0,0,0-74.86-31.31,3.93,3.93,0,0,0-1.14,2.8v88.72a4,4,0,0,0,6.2,3.33A47.67,47.67,0,0,1,167.68,128a8.18,8.18,0,0,1,8.31,7.58,8,8,0,0,1-8,8.42,32,32,0,0,0-32,32v33.88a4,4,0,0,0,1.49,3.12,47.92,47.92,0,0,0,74.21-17.16,4,4,0,0,0-4.49-5.56A68.06,68.06,0,0,1,192,192h-7.73a8.18,8.18,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h8a51.6,51.6,0,0,0,24-5.88v0A52,52,0,0,0,212,76Zm-12,36h-4a36,36,0,0,1-36-36V72a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4a8,8,0,0,1,0,16ZM88,28A44.05,44.05,0,0,0,44,72v4a52,52,0,0,0-4,94.12h0A51.6,51.6,0,0,0,64,176h7.73A8.18,8.18,0,0,1,80,183.47,8,8,0,0,1,72,192H64a67.48,67.48,0,0,1-15.21-1.73,4,4,0,0,0-4.5,5.55A47.93,47.93,0,0,0,118.51,213a4,4,0,0,0,1.49-3.12V176a32,32,0,0,0-32-32,8,8,0,0,1-8-8.42A8.18,8.18,0,0,1,88.32,128a47.67,47.67,0,0,1,25.48,7.54,4,4,0,0,0,6.2-3.33V43.49a4,4,0,0,0-1.14-2.81A43.85,43.85,0,0,0,88,28Zm8,48a36,36,0,0,1-36,36H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,76V72a8,8,0,0,1,16,0Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M246,124a54.13,54.13,0,0,0-32-49.33V72a46,46,0,0,0-86-22.67A46,46,0,0,0,42,72v2.67a54,54,0,0,0,0,98.63V176a46,46,0,0,0,86,22.67A46,46,0,0,0,214,176v-2.7A54.07,54.07,0,0,0,246,124ZM88,210a34,34,0,0,1-34-32.94A53.67,53.67,0,0,0,64,178h8a6,6,0,0,0,0-12H64A42,42,0,0,1,50,84.39a6,6,0,0,0,4-5.66V72a34,34,0,0,1,68,0v73.05A45.89,45.89,0,0,0,88,130a6,6,0,0,0,0,12,34,34,0,0,1,0,68Zm104-44h-8a6,6,0,0,0,0,12h8a53.67,53.67,0,0,0,10-.94A34,34,0,1,1,168,142a6,6,0,0,0,0-12,45.89,45.89,0,0,0-34,15.05V72a34,34,0,0,1,68,0v6.73a6,6,0,0,0,4,5.66A42,42,0,0,1,192,166Zm14-54a6,6,0,0,1-6,6h-4a34,34,0,0,1-34-34V80a6,6,0,0,1,12,0v4a22,22,0,0,0,22,22h4A6,6,0,0,1,206,112ZM60,118H56a6,6,0,0,1,0-12h4A22,22,0,0,0,82,84V80a6,6,0,0,1,12,0v4A34,34,0,0,1,60,118Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244,124a52.1,52.1,0,0,0-32-48V72a44,44,0,0,0-84-18.3A44,44,0,0,0,44,72v4a52,52,0,0,0,0,96v4a44,44,0,0,0,84,18.3A44,44,0,0,0,212,176v-4A52.07,52.07,0,0,0,244,124ZM88,212a36,36,0,0,1-36-36v-1.41A52.13,52.13,0,0,0,64,176h8a4,4,0,0,0,0-8H64A44,44,0,0,1,49.33,82.5,4,4,0,0,0,52,78.73V72a36,36,0,0,1,72,0v78.75A44,44,0,0,0,88,132a4,4,0,0,0,0,8,36,36,0,0,1,0,72Zm104-44h-8a4,4,0,0,0,0,8h8a52.13,52.13,0,0,0,12-1.41V176a36,36,0,1,1-36-36,4,4,0,0,0,0-8,44,44,0,0,0-36,18.75V72a36,36,0,0,1,72,0v6.73a4,4,0,0,0,2.67,3.77A44,44,0,0,1,192,168Zm12-56a4,4,0,0,1-4,4h-4a32,32,0,0,1-32-32V80a4,4,0,0,1,8,0v4a24,24,0,0,0,24,24h4A4,4,0,0,1,204,112ZM92,84a32,32,0,0,1-32,32H56a4,4,0,0,1,0-8h4A24,24,0,0,0,84,84V80a4,4,0,0,1,8,0Z"}))]]),Bie=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Zie})));Bie.displayName="BrainIcon";const Vie=Bie,zie="intel-dashboard",qie="intel-rebuild-btn";function Uie(){var e,t,n,a,r,i,s;const l=Ue((0,o.useState)(null),2),c=l[0],d=l[1],u=Ue((0,o.useState)(null),2),m=u[0],p=u[1],h=Ue((0,o.useState)(null),2),f=h[0],x=h[1],g=Ue((0,o.useState)(""),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(!1),2),D=E[0],_=E[1],C=async()=>{var e;const t=(await Qi.get("/winning-hire/org/dashboard")).data;d(t),null!==(e=t.profiles)&&void 0!==e&&e[0]&&!m&&p(t.profiles[0])},F=async()=>{const e={};v&&(e.role_title=v),j&&(e.region=j),A&&(e.organization_size=A);const t=(await Qi.get("/winning-hire/benchmarks",{params:e})).data;x(t)};(0,o.useEffect)(()=>{C(),F()},[]);return(0,Pe.jsxs)("div",{"data-testid":zie,className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"WINNING HIRE INTELLIGENCE"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Outcome intelligence"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1 max-w-2xl",children:["What characteristics predict success in ",(0,Pe.jsx)("span",{className:"font-medium text-foreground",children:"your"})," organization? Every 30/60/90 day review you submit makes this smarter."]})]}),(0,Pe.jsxs)(Lo,{"data-testid":qie,onClick:async()=>{_(!0);try{await Qi.post("/winning-hire/org/profile/rebuild"),va.success("Profiles rebuilt"),await C()}catch(e){va.error("Couldn't rebuild profiles \u2014 try again in a moment.")}finally{_(!1)}},disabled:D,variant:"outline",className:"rounded-md",children:[(0,Pe.jsx)(Iie,{size:14,className:"mr-1.5"})," ",D?"Rebuilding\u2026":"Rebuild profiles"]})]}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Qie,{icon:YH,label:"Roles modeled",value:null!==(e=null===c||void 0===c?void 0:c.roles_modeled)&&void 0!==e?e:0}),(0,Pe.jsx)(Qie,{icon:Vie,label:"Top performers",value:null!==(t=null===c||void 0===c?void 0:c.top_performers_total)&&void 0!==t?t:0}),(0,Pe.jsx)(Qie,{icon:AN,label:"Underperformers",value:null!==(n=null===c||void 0===c?void 0:c.under_performers_total)&&void 0!==n?n:0}),(0,Pe.jsx)(Qie,{icon:My,label:"Emerging signals",value:((null===c||void 0===c?void 0:c.emerging_signals)||[]).length})]}),(0,Pe.jsxs)(gZ,{defaultValue:"org",className:"mt-8",children:[(0,Pe.jsxs)(vZ,{className:"bg-secondary flex-wrap h-auto",children:[(0,Pe.jsxs)(bZ,{value:"org",children:[(0,Pe.jsx)(nv,{size:14,className:"mr-1.5"})," Organization"]}),(0,Pe.jsxs)(bZ,{value:"role",children:[(0,Pe.jsx)(YH,{size:14,className:"mr-1.5"})," By role"]}),(0,Pe.jsxs)(bZ,{value:"playbook","data-testid":"intel-tab-playbook",children:[(0,Pe.jsx)(TH,{size:14,className:"mr-1.5"})," Playbook"]}),(0,Pe.jsxs)(bZ,{value:"patterns","data-testid":"intel-tab-patterns",children:[(0,Pe.jsx)(Vie,{size:14,className:"mr-1.5"})," Pattern Discovery"]}),(0,Pe.jsxs)(bZ,{value:"calibration","data-testid":"intel-tab-calibration",children:[(0,Pe.jsx)(My,{size:14,className:"mr-1.5"})," Manager calibration"]}),(0,Pe.jsxs)(bZ,{value:"bench",children:[(0,Pe.jsx)(BH,{size:14,className:"mr-1.5"})," Benchmarks"]})]}),(0,Pe.jsxs)(yZ,{value:"org",className:"mt-5 space-y-4",children:[0===(null!==(a=null===c||void 0===c?void 0:c.top_performers_total)&&void 0!==a?a:0)&&(0,Pe.jsx)(tse,{}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Pe.jsx)(Xie,{icon:YH,title:"Common in top performers",tone:"positive",items:((null===c||void 0===c?void 0:c.top_skills_across_org)||[]).map(e=>({label:e.skill,sub:"in ".concat(e.appears_in_n_roles," role").concat(e.appears_in_n_roles>1?"s":"")}))}),(0,Pe.jsx)(Xie,{icon:AN,title:"Common in underperformers",tone:"warn",items:((null===c||void 0===c?void 0:c.under_skills_across_org)||[]).map(e=>({label:e.skill,sub:"in ".concat(e.appears_in_n_roles," role").concat(e.appears_in_n_roles>1?"s":"")}))}),(0,Pe.jsx)(Xie,{icon:ux,title:"What's showing up across your roles",tone:"accent",items:((null===c||void 0===c?void 0:c.emerging_signals)||[]).map(e=>({label:e.signal,sub:"in ".concat(e.appears_in_n_roles," role").concat(e.appears_in_n_roles>1?"s":"")}))})]})]}),(0,Pe.jsxs)(yZ,{value:"role",className:"mt-5",children:[0===((null===c||void 0===c?void 0:c.profiles)||[]).length&&(0,Pe.jsx)(tse,{}),((null===c||void 0===c?void 0:c.profiles)||[]).length>0&&(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-4",children:[(0,Pe.jsx)("div",{className:"lg:col-span-1 space-y-2",children:c.profiles.map(e=>(0,Pe.jsxs)("button",{onClick:()=>p(e),className:"w-full text-left border rounded-md px-4 py-3 transition-colors ".concat((null===m||void 0===m?void 0:m.id)===e.id?"border-[#0F172A] bg-secondary":"border-border hover:border-[#0F172A]"),children:[(0,Pe.jsx)("div",{className:"font-medium text-sm",children:e.role_title}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground mt-0.5 font-mono",children:[e.top_sample_size," top \xb7 ",e.under_sample_size," under"]})]},e.id))}),(0,Pe.jsx)("div",{className:"lg:col-span-3",children:m&&(0,Pe.jsx)(Jie,{profile:m})})]})]}),(0,Pe.jsxs)(yZ,{value:"bench",className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-secondary/40",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"FILTER"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Io,{value:v,onCh
2ange:e=>b(e.target.value),placeholder:"Role title (e.g. Account Manager)"}),(0,Pe.jsx)(Io,{value:j,onChange:e=>w(e.target.value),placeholder:"Region (e.g. TX)",className:"uppercase"}),(0,Pe.jsxs)(Sf,{value:A||"any",onValueChange:e=>k("any"===e?"":e),children:[(0,Pe.jsx)(Of,{children:(0,Pe.jsx)(Mf,{placeholder:"Organisation size"})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"any",children:"Any size"}),(0,Pe.jsx)(Lf,{value:"small",children:"Small"}),(0,Pe.jsx)(Lf,{value:"medium",children:"Medium"}),(0,Pe.jsx)(Lf,{value:"large",children:"Large"})]})]}),(0,Pe.jsx)(Lo,{onClick:F,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:"Apply"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:"All benchmarks are aggregated and anonymized. No individual organisation or candidate is identifiable."})]}),(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Qie,{label:"Sample organisations",value:null!==(r=null===f||void 0===f?void 0:f.sample_dealers)&&void 0!==r?r:"\u2014"}),(0,Pe.jsx)(Qie,{label:"Top performers (total)",value:null!==(i=null===f||void 0===f?void 0:f.top_performers_total)&&void 0!==i?i:"\u2014"}),(0,Pe.jsx)(Qie,{label:"Avg top composite",value:null!==(s=null===f||void 0===f?void 0:f.avg_top_composite)&&void 0!==s?s:"\u2014",sub:"/ 5"}),(0,Pe.jsx)(Qie,{label:"90d retention",value:null!=(null===f||void 0===f?void 0:f.avg_retention_pct_at_90d)?"".concat(f.avg_retention_pct_at_90d,"%"):"\u2014"})]}),(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Pe.jsx)(Xie,{icon:YH,tone:"positive",title:"Most common top skills (cross-org)",items:((null===f||void 0===f?void 0:f.most_common_top_skills)||[]).map(e=>{var t,n;return{label:e.skill,sub:"".concat(null!==(t=e.appears_in_n_organizations)&&void 0!==t?t:e.appears_in_n_dealers," org").concat((null!==(n=e.appears_in_n_organizations)&&void 0!==n?n:e.appears_in_n_dealers)>1?"s":"")}})}),(0,Pe.jsx)(Xie,{icon:ux,tone:"accent",title:"Most common top certifications",items:((null===f||void 0===f?void 0:f.most_common_top_certs)||[]).map(e=>{var t;return{label:e.cert,sub:"".concat(null!==(t=e.appears_in_n_organizations)&&void 0!==t?t:e.appears_in_n_dealers)}})}),(0,Pe.jsx)(Xie,{icon:TH,tone:"neutral",title:"Most common context flags",items:((null===f||void 0===f?void 0:f.most_common_top_context_flags)||[]).map(e=>{var t;return{label:e.flag.replace(/_/g," "),sub:"".concat(null!==(t=e.appears_in_n_organizations)&&void 0!==t?t:e.appears_in_n_dealers)}})})]})]}),(0,Pe.jsx)(yZ,{value:"playbook",className:"mt-5",children:(0,Pe.jsx)(Wie,{roleOptions:(null===c||void 0===c?void 0:c.profiles)||[]})}),(0,Pe.jsx)(yZ,{value:"patterns",className:"mt-5",children:(0,Pe.jsx)(Yie,{roleOptions:(null===c||void 0===c?void 0:c.profiles)||[]})}),(0,Pe.jsx)(yZ,{value:"calibration",className:"mt-5",children:(0,Pe.jsx)(Gie,{})})]})]})}function Wie(e){var t;let n=e.roleOptions;const a=Ue((0,o.useState)((null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.role_title)||"Account Manager"),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;m(!0);try{const t=(await Qi.get("/playbook/".concat(encodeURIComponent(e)))).data;c(t)}catch(t){va.error("Couldn't load the playbook \u2014 try again in a moment.")}finally{m(!1)}};return(0,o.useEffect)(()=>{p()},[]),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,Pe.jsx)(Io,{value:r,onChange:e=>i(e.target.value),placeholder:"Role title",className:"max-w-xs"}),(0,Pe.jsx)(Lo,{onClick:()=>p(r),variant:"outline",className:"rounded-md",children:"Load"}),(0,Pe.jsxs)(Lo,{onClick:async()=>{m(!0);try{const e=(await Qi.post("/playbook/".concat(encodeURIComponent(r),"/rebuild"))).data;c(e),va.success("Playbook updated")}catch(e){va.error("Couldn't rebuild the playbook \u2014 try again in a moment.")}finally{m(!1)}},disabled:u,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," ",u?"Generating\u2026":"Rebuild with AI"]})]}),l&&(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Pe.jsxs)("div",{className:"lg:col-span-2 border border-border rounded-md p-6 bg-white",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"PLAYBOOK"}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-2xl mt-1 tracking-tight",children:l.role_title}),(0,Pe.jsx)("pre",{className:"mt-4 text-sm whitespace-pre-wrap font-sans leading-relaxed",children:l.narrative})]}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[(0,Pe.jsx)(Xie,{icon:YH,tone:"positive",title:"Must-have traits",items:(l.must_have_traits||[]).map(e=>({label:e}))}),(0,Pe.jsx)(Xie,{icon:ux,tone:"accent",title:"Nice-to-have",items:(l.nice_to_have_traits||[]).map(e=>({label:e}))}
2),(0,Pe.jsx)(Xie,{icon:TH,tone:"neutral",title:"Interview focus",items:(l.interview_focus||[]).map(e=>({label:e}))}),(l.high_signal_managers||[]).length>0&&(0,Pe.jsx)(Xie,{icon:My,tone:"positive",title:"High-signal managers",items:l.high_signal_managers.map(e=>{var t;return{label:e.manager_name||"Anonymous",sub:"r=".concat(null!==(t=e.correlation)&&void 0!==t?t:"\u2014")}})})]})]})]})}function Yie(e){var t;let n=e.roleOptions;const a=Ue((0,o.useState)((null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.role_title)||"Account Manager"),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;try{const t=(await Qi.get("/pattern-discovery/".concat(encodeURIComponent(e)))).data;c(t)}catch(t){va.error("Couldn't discover patterns \u2014 try again in a moment.")}};return(0,o.useEffect)(()=>{d()},[]),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex gap-3 flex-wrap",children:[(0,Pe.jsx)(Io,{value:r,onChange:e=>i(e.target.value),placeholder:"Role title",className:"max-w-xs"}),(0,Pe.jsxs)(Lo,{onClick:()=>d(r),className:"bg-[#0F172A] text-white rounded-md hover:bg-[#0F4FA8]",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," Discover patterns"]})]}),l&&!l.ready&&(0,Pe.jsxs)("div",{className:"mt-6 border border-dashed border-border rounded-md p-12 text-center",children:[(0,Pe.jsx)(Vie,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-3 font-display font-semibold text-lg",children:l.message}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-md mx-auto",children:"Pattern Discovery measures correlation between candidate traits and post-hire performance. It needs at least 3 hires with completed reviews."})]}),(null===l||void 0===l?void 0:l.ready)&&(0,Pe.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,Pe.jsxs)("div",{className:"ai-panel rounded-md p-5 grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,Pe.jsx)($ie,{label:"Sample size",value:l.sample_size}),(0,Pe.jsx)($ie,{label:"Avg composite",value:"".concat(l.composite_mean,"/5")}),(0,Pe.jsx)($ie,{label:"Stdev",value:l.composite_stdev}),(0,Pe.jsx)($ie,{label:"What we found",value:(l.skill_predictors||[]).length+(l.context_predictors||[]).length+(l.numeric_predictors||[]).length})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Pe.jsx)(Kie,{title:"Skill predictors",items:l.skill_predictors}),(0,Pe.jsx)(Kie,{title:"Context predictors",items:l.context_predictors}),(0,Pe.jsx)(Kie,{title:"Numeric predictors",items:l.numeric_predictors})]})]})]})}function Kie(e){let t=e.title,n=e.items;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-base",children:t}),0===(n||[]).length?(0,Pe.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:"Give it a couple weeks \u2014 we need more hires to spot patterns."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-2 text-sm",children:n.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-center justify-between border-b border-border last:border-0 py-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-medium",children:e.trait.replace(/_/g," ")}),(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:[e.label," \xb7 ",e.direction," \xb7 n=",e.n_with_trait||e.n_total]})]}),(0,Pe.jsxs)("span",{className:"font-mono font-bold ".concat("positive"===e.direction?"text-[#00C853]":"text-[#B91C1C]"),children:["r=",e.correlation]})]},t))})]})}function Gie(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/manager-intel/calibration/org").then(e=>n(e.data))},[]),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground max-w-2xl",children:["Compares each manager's ",(0,Pe.jsx)("span",{className:"text-foreground font-medium",children:"predicted_success"})," (low/medium/high at interview) against actual 90-day composite outcomes. High-signal raters get more weight in the playbook recommendations."]}),(0,Pe.jsx)("div",{className:"mt-5 border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)("table",{className:"w-full text-sm",children:[(0,Pe.jsx)("thead",{className:"bg-secondary text-left",children:(0,Pe.jsxs)("tr",{children:[(0,Pe.jsx)("th",{className:"p-3",children:"Manager"}),(0,Pe.jsx)("th",{className:"p-3",children:"Interviews w/ outcomes"}),(0,Pe.jsx)("th",{className:"p-3",children:"Correlation"}),(0,Pe.jsx)("th",{className:"p-3",children:"Calibration"}),(0,Pe.jsx)("th",{className:"p-3",children:"Avg pred"}),(0,Pe.jsx)("th",{className:"p-3",children:"Avg actual"})]})}),(0,Pe.jsxs)("tbody",{children:[((null===t||void 0===t?void 0:t.leaderboard)||[]).map(e=>(0,Pe.jsxs)("tr",{className:"border-t border-border",children:[(0,Pe.jsx)("td",{className:"p-3 font-medium",children:e.manager_name||"Anonymous"}),(0,Pe.jsx)("td",{className:"p-3 font-mono",children:e.interviews_with_outcomes}),(0,Pe.jsx)("td",{className:"p-3 font-mono",children:null==e.correlation?"\u2014":"r=".concat(e.correlation)}),(0,Pe.jsx)("td",{className:"p-3",children:(0,Pe.jsx)("span",{className:"pill ".concat("high-signal"===e.calibration_signal?"bg-emerald-50 text-emerald-900 border-emerald-200":"noisy"===e.calibration_signal?"bg-red-50 text-red-900 border-red-200":"bg-secondary border-border"," border uppercase text-[10px] tracking-wider"),children:e.calibration_signal})}),(0,Pe.jsx)("td",{className:"p-3 font-mono",children:e.avg_predicted}),(0,Pe.jsx)("td",{className:"p-3 font-mono",children:e.avg_actual_90d})]}
2,e.manager_user_id)),0===((null===t||void 0===t?void 0:t.leaderboard)||[]).length&&(0,Pe.jsx)("tr",{children:(0,Pe.jsx)("td",{colSpan:6,className:"p-10 text-center text-sm text-muted-foreground",children:'No manager interview data yet. Use the "Manager interview" form on a candidate detail page to start tracking.'})})]})]})})]})}function $ie(e){let t=e.label,n=e.value;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-white/60 font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl text-white mt-1",children:n})]})}function Qie(e){let t=e.icon,n=e.label,a=e.value,r=e.sub;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-white",children:[t&&(0,Pe.jsx)(t,{size:18,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("div",{className:"font-display font-black text-3xl mt-2",children:a}),(0,Pe.jsxs)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground mt-0.5",children:[n,r?(0,Pe.jsx)("span",{className:"ml-1 normal-case text-foreground/60",children:r}):null]})]})}function Xie(e){let t=e.icon,n=e.title,a=e.items,r=e.tone,i=void 0===r?"neutral":r;const s="positive"===i?"text-[#00C853]":"warn"===i?"text-[#B91C1C]":"accent"===i?"text-[#0F4FA8]":"text-foreground";return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(t,{size:18,weight:"duotone",className:s})," ",(0,Pe.jsx)("h3",{className:"font-display font-semibold text-base",children:n})]}),0===a.length?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-3",children:"Nothing to show yet \u2014 check back after a few more hires."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5",children:a.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-center justify-between gap-2 text-sm border-b border-border last:border-0 py-1.5",children:[(0,Pe.jsx)("span",{className:"font-medium truncate",children:e.label}),e.sub&&(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground font-mono shrink-0",children:e.sub})]},t))})]})}function Jie(e){var t,n,a,r;let i=e.profile;const s=i.top_traits||{},o=i.under_traits||{};return(0,Pe.jsxs)("div",{className:"space-y-4",children:[(0,Pe.jsx)("div",{className:"ai-panel rounded-md p-6",children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"WINNING HIRE PROFILE"}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-3xl mt-1 text-white",children:i.role_title}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-white/70",children:[i.top_sample_size," top performer",1===i.top_sample_size?"":"s"," \xb7 ",i.under_sample_size," underperformer",1===i.under_sample_size?"":"s"," \xb7 Avg top composite ",s.avg_composite||"\u2014","/5"]})]}),(0,Pe.jsxs)("span",{className:"pill bg-[#0F4FA8] text-white",children:[(0,Pe.jsx)(Vie,{size:12,weight:"duotone"})," Trained on your data"]})]})}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#00C853] font-mono font-semibold",children:"TOP PERFORMER TRAITS"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-sm",children:[(0,Pe.jsx)(ese,{k:"Avg years experience",v:null!==(t=s.avg_years_experience)&&void 0!==t?t:"\u2014"}),(0,Pe.jsx)(ese,{k:"Median years",v:null!==(n=s.median_years_experience)&&void 0!==n?n:"\u2014"}),(0,Pe.jsx)(ese,{k:"Most common industry",v:(s.common_industries||[]).join(", ")||"\u2014"}),(0,Pe.jsx)(ese,{k:"Retention at 90d",v:null!=s.still_employed_pct_at_90d?"".concat(s.still_employed_pct_at_90d,"%"):"\u2014"})]}),(0,Pe.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:(s.common_skills||[]).map(e=>(0,Pe.jsx)("span",{className:"pill bg-emerald-50 text-emerald-900 border border-emerald-200",children:e},e))})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#B91C1C] font-mono font-semibold",children:"UNDERPERFORMER PATTERNS"}),0===i.under_sample_size?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-3",children:"No underperformer data yet."}):(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-sm",children:[(0,Pe.jsx)(ese,{k:"Avg years experience",v:null!==(a=o.avg_years_experience)&&void 0!==a?a:"\u2014"}),(0,Pe.jsx)(ese,{k:"Avg composite",v:null!==(r=o.avg_composite)&&void 0!==r?r:"\u2014"})]}),(0,Pe.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:(o.common_skills||[]).map(e=>(0,Pe.jsx)("span",{className:"pill bg-red-50 text-red-900 border border-red-200",children:e},e))})]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"RECOMMENDED ATTRIBUTES"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-sm",children:[(i.recommended_attributes||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)(eg,{size:14,className:"mt-0.5 text-[#0F4FA8]"}),e]},t)),0===(i.recommended_attributes||[]).length&&(0,Pe.jsx)("li",{className:"text-muted-foreground",children:"Submit more 30/60/90 feedback to unlock."})]})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"INTERVIEW FOCUS AREAS"}),(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm",children:(i.recommended_interview_focu
2s||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)(ux,{size:14,className:"mt-0.5 text-[#0F4FA8]",weight:"duotone"}),e]},t))})]})]}),(i.emerging_signals||[]).length>0&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-secondary/40",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"EMERGING SIGNALS \u2014 IN TOP, RARELY IN UNDER"}),(0,Pe.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:i.emerging_signals.map(e=>(0,Pe.jsx)("span",{className:"pill bg-[#0F172A] text-white",children:e},e))})]})]})}function ese(e){let t=e.k,n=e.v;return(0,Pe.jsxs)("li",{className:"flex items-center justify-between border-b border-border last:border-0 py-1",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:t}),(0,Pe.jsx)("span",{className:"font-medium",children:n})]})}function tse(){return(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-12 text-center",children:[(0,Pe.jsx)(Vie,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-3 font-display font-semibold text-lg",children:"Your model is learning"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1 max-w-md mx-auto",children:["AROS builds a Winning Hire profile from your 30/60/90 day feedback. Mark applications as ",(0,Pe.jsx)("span",{className:"font-medium text-foreground",children:"Hired"})," then submit performance reviews to start training."]})]})}function nse(){const e=zt(),t=Ue(Xn(),1)[0],n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)([]),2),s=i[0],l=i[1],c=Ue((0,o.useState)(null),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!1),2),p=m[0],h=m[1],f=Ue((0,o.useState)(t.get("job")||"all"),2),x=f[0],g=f[1],v=Ue((0,o.useState)([]),2),b=v[0],y=v[1];(0,o.useEffect)(()=>{Qi.get("/jobs/mine").then(e=>y(e.data))},[]),(0,o.useEffect)(()=>{const e="all"===x?"/applications/org/all":"/applications/by-job/".concat(x);Qi.get(e).then(e=>r(e.data))},[x]);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Pipeline",to:"/app/employer/applicants"},{label:"Compare Candidates"}],backFallback:"/app/employer/applicants"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"EVIDENCE COMPARISON"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Compare candidates"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Pick 2-4 candidates from the same role. AROS organizes the evidence side-by-side \u2014 you decide."}),(0,Pe.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[(0,Pe.jsxs)(Sf,{value:x,onValueChange:g,children:[(0,Pe.jsx)(Of,{className:"w-64",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All jobs"}),b.map(e=>(0,Pe.jsx)(Lf,{value:e.id,children:e.title},e.id))]})]}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground",children:[s.length,"/4 selected"]}),(0,Pe.jsxs)(Lo,{"data-testid":"open-compare-packet-btn",variant:"outline",onClick:()=>{s.length<2?va.error("Pick at least 2 candidates"):e("/app/employer/packet/compare?ids=".concat(s.join(",")))},disabled:s.length<2,className:"border-[#0F172A] hover:bg-[#0F172A] hover:text-white rounded-md ml-auto",children:[(0,Pe.jsx)(uv,{size:14,className:"mr-1.5",weight:"duotone"})," Decision Packet"]}),(0,Pe.jsxs)(Lo,{"data-testid":"compare-run-btn",onClick:async()=>{if(s.length<2)va.error("Pick at least 2 candidates");else{h(!0);try{const e=(await Qi.post("/candidates/compare",{application_ids:s})).data;u(e)}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed")}finally{h(!1)}}},disabled:p||s.length<2,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," ",p?"Comparing\u2026":"Compare evidence"]})]}),(0,Pe.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:a.map(e=>{var t;return(0,Pe.jsxs)("button",{"data-testid":"compare-pick-".concat(e.id),onClick:()=>{return t=e.id,void l(e=>e.includes(t)?e.filter(e=>e!==t):e.length>=4?e:[...e,t]);var t},className:"text-left border rounded-md p-4 transition-colors ".concat(s.includes(e.id)?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border hover:border-[#0F172A]"),children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-semibold truncate",children:e.candidate_name}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground truncate mt-0.5",children:e.job_title})]})}),(0,Pe.jsx)("div",{className:"mt-2 text-[11px] text-muted-foreground font-mono uppercase",children:null===(t=e.status)||void 0===t?void 0:t.replace(/_/g," ")})]},e.id)})}),d&&(0,Pe.jsxs)("section",{className:"mt-10","data-testid":"compare-result",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-6 mb-4 bg-secondary/40",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"EVIDENCE COMPARISON \u2014 SUMMARY"}),(0,Pe.jsx)("p",{className:"mt-3 text-sm whitespace-pre-wrap leading-relaxed",children:d.ai_summary}),(0,Pe.jsx)("p",{className:"mt-3 text-[11px] text-muted-foreground italic",children:"AROS organizes the evidence side-by-side. It does not pick a winner. Your team decides."})]}),(0,Pe.jsx)("div",{className:"overflow-x-auto border border-border rounded-md",children:(0,Pe.jsxs)("table",{className:"w-full text-sm",children:[(0,Pe.jsx)("thead",{className:"bg-secondary",children:(0,Pe.jsxs)("tr",{children:[(0,Pe.jsx)("th",{className:"text-left p-3 font-display font-semibold",children:"What we found"}),d.candidates.map(e=>(0,Pe.jsx)("th",{className:"text-left p-3 font-display font-semibold",children:e.candidate_name},e.application_id))]})}),(0,Pe.jsxs)("tbody",{children:[(0,Pe.jsx)(ase,{label:"Years experience",cells:d.candidates.map(e=>"".concat(e.years_experience||0," yrs"))}),(0,Pe.jsx)(ase,{label:"Headline",cells:d.candidates.map(e=>(0,Pe.jsx)("span",{className:"text-muted-foreground",children:e.headline||"\u2014"}
2,e.application_id))}),(0,Pe.jsx)(ase,{label:"Location",cells:d.candidates.map(e=>e.location||"\u2014")}),(0,Pe.jsx)(ase,{label:"Industry",cells:d.candidates.map(e=>e.industry||"\u2014")}),(0,Pe.jsx)(ase,{label:"Skills evidenced",cells:d.candidates.map(e=>(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1",children:(e.skills||[]).slice(0,8).map(e=>(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-[10px]",children:e},e))},e.application_id))}),(0,Pe.jsx)(ase,{label:"Supported evidence",cells:d.candidates.map(e=>(0,Pe.jsx)("ul",{className:"text-xs space-y-0.5",children:((e.ai_score||{}).strengths||[]).slice(0,4).map((e,t)=>(0,Pe.jsxs)("li",{children:["\u2022 ",e]},t))},e.application_id))}),(0,Pe.jsx)(ase,{label:"Areas to validate",cells:d.candidates.map(e=>(0,Pe.jsx)("ul",{className:"text-xs space-y-0.5",children:((e.ai_score||{}).concerns||[]).slice(0,4).map((e,t)=>(0,Pe.jsxs)("li",{children:["\u2022 ",e]},t))},e.application_id))})]})]})})]})]})}function ase(e){let t=e.label,n=e.cells;return(0,Pe.jsxs)("tr",{className:"border-t border-border",children:[(0,Pe.jsx)("td",{className:"p-3 text-xs uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold align-top",children:t}),n.map((e,t)=>(0,Pe.jsx)("td",{className:"p-3 align-top",children:e},t))]})}const rse=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182
2s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"}))]]),ise=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:rse})));ise.displayName="DatabaseIcon";const sse=ise,ose={planned:"bg-secondary text-foreground/70 border-border","in-discovery":"bg-
2amber-50 text-amber-900 border-amber-200","available-soon":"bg-emerald-50 text-emerald-900 border-emerald-200",live:"bg-emerald-50 text-emerald-900 border-emerald-200"};function lse(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];(0,o.useEffect)(()=>{Qi.get("/integrations/roadmap").then(e=>n(e.data))},[]);const a=((null===t||void 0===t?void 0:t.integrations)||[]).reduce((e,t)=>(e[t.category]=e[t.category]||[],e[t.category].push(t),e),{});return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"PERFORMANCE DATA"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Integrations roadmap"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 max-w-2xl leading-relaxed",children:null===t||void 0===t?void 0:t.summary}),(0,Pe.jsxs)("div",{className:"mt-8 ai-panel rounded-md p-6",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(BC,{size:20,weight:"duotone",className:"text-[#0F4FA8]"})," ",(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"WHY THIS MATTERS"})]}),(0,Pe.jsxs)("p",{className:"mt-3 text-white/80 leading-relaxed max-w-3xl",children:["Today AROS scores manager reviews. Tomorrow it scores ",(0,Pe.jsx)("span",{className:"text-white font-medium",children:"objective signal"})," \u2014 revenue and quota attainment from your CRM, productivity metrics from your HRIS, customer satisfaction from your support stack, and operational KPIs from your industry's systems of record. Each integration multiplies the signal quality of your Winning Hire Profile and Pattern Discovery model."]})]}),(0,Pe.jsx)("div",{className:"mt-8 space-y-8",children:Object.entries(a).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("section",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:n}),(0,Pe.jsx)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:a.map(e=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-white",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Pe.jsx)(sse,{size:20,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsxs)("span",{className:"pill border ".concat(ose[e.status]||"bg-secondary"," uppercase tracking-wider text-[10px]"),children:["available-soon"===e.status?(0,Pe.jsx)(Yf,{size:10,weight:"fill"}):(0,Pe.jsx)(ag,{size:10})," ",e.status.replace(/-/g," ")]})]}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg mt-3",children:e.name}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground mt-0.5 font-mono",children:["ETA: ",e.eta]}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:"DATA SIGNALS"}),(0,Pe.jsx)("ul",{className:"mt-2 text-sm space-y-0.5",children:e.data_signals.map(e=>(0,Pe.jsxs)("li",{className:"flex gap-1.5",children:[(0,Pe.jsx)("span",{className:"text-[#0F4FA8]",children:"\xb7"}),e]},e))})]}),(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-[#00C853] font-mono font-semibold",children:"UNLOCKS"}),(0,Pe.jsx)("ul",{className:"mt-2 text-sm space-y-0.5",children:e.unlocks.map(e=>(0,Pe.jsxs)("li",{className:"flex gap-1.5",children:[(0,Pe.jsx)(BH,{size:12,className:"mt-1 text-[#00C853]"}),e]},e))})]})]},e.key))})]},n)})}),(0,Pe.jsxs)("div",{className:"mt-10 border border-dashed border-border rounded-md p-6 text-sm",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-base",children:"Want early access to a specific integration?"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Reach out via the messaging center \u2014 we prioritize integrations by customer demand."})]})]})}const cse=["className"],dse=["className"],use=["className"],mse=["className"],pse=["className"],hse=["className"],fse=["className"],xse=["className"],gse=o.forwardRef((e,t)=>
2{let n=e.className,a=Ie(e,cse);return(0,Pe.jsx)("div",{className:"relative w-full overflow-auto",children:(0,Pe.jsx)("table",h({ref:t,className:Ro("w-full caption-bottom text-sm",n)},a))})});gse.displayName="Table";const vse=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,dse);return(0,Pe.jsx)("thead",h({ref:t,className:Ro("[&_tr]:border-b",n)},a))});vse.displayName="TableHeader";const bse=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,use);return(0,Pe.jsx)("tbody",h({ref:t,className:Ro("[&_tr:last-child]:border-0",n)},a))});bse.displayName="TableBody";o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,mse);return(0,Pe.jsx)("tfoot",h({ref:t,className:Ro("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},a))}).displayName="TableFooter";const yse=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,pse);return(0,Pe.jsx)("tr",h({ref:t,className:Ro("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n)},a))});yse.displayName="TableRow";const jse=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,hse);return(0,Pe.jsx)("th",h({ref:t,className:Ro("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n)},a))});jse.displayName="TableHead";const wse=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,fse);return(0,Pe.jsx)("td",h({ref:t,className:Ro("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n)},a))});wse.displayName="TableCell";o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,xse);return(0,Pe.jsx)("caption",h({ref:t,className:Ro("mt-4 text-sm text-muted-foreground",n)},a))}).displayName="TableCaption";const Nse=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),Ase=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Nse})));Ase.displayName="UploadSimpleIcon";const kse=Ase,Ese=[{v:"ignore",label:"\u2014 Ignore \u2014"},{v:"employee_name",label:"Employee name (required)"},{v:"role",label:"Role"},{v:"sales_production",label:"Sales production"},{v:"revenue",label:"Revenue"},{v:"units_sold",label:"Units sold"},{v:"csi",label:"Customer satisfaction"},{v:"appointments_set",label:"Appointments set"},{v:"attendance",label:"Attendance"},{v:"productivity",label:"Productivity"},{v:"training_completion",label:"Training completion"},{v:"goal_attainment",label:"Goal attainment"},{v:"retention_months",label:"Retention (months)"}];function Dse(){return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Performance Intelligence"}],backFallback:"/app/employer"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"WORKFORCE INTELLIGENCE"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Performance intelligence"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1 max-w-2xl",children:["Upload actual employee performance data. AROS correlates it against every hiring signal to answer: ",(0,Pe.jsx)("span",{className:"font-medium text-foreground",children:"are we hiring the right people?"})]}),(0,Pe.jsxs)(gZ,{defaultValue:"import",className:"mt-8",children:[(0,Pe.jsxs)(vZ,{className:"bg-secondary flex-wrap h-auto",children:[(0,Pe.jsxs)(bZ,{value:"import","data-testid":"perf-tab-import",children:[(0,Pe.jsx)(kse,{size:14,className:"mr-1.5"})," Import"]}),(0,Pe.jsxs)(bZ,{value:"employees","data-testid":"perf-tab-employees",children:[(0,Pe.jsx)(sse,{size:14,className:"mr-1.5"})," Employees"]}),(0,Pe.jsxs)(bZ,{value:"correlate","data-testid":"perf-tab-correlate",children:[(0,Pe.jsx)(Vie,{size:14,className:"mr-1.5"})," Correlations"]}),(0,Pe.jsxs)(bZ,{value:"effective","data-testid":"perf-tab-effective",children:[(0,Pe.jsx)(YH,{size:14,className:"mr-1.5"})," Effectiveness"]}),(0,Pe.jsxs)(bZ,{value:"patterns","data-testid":"perf-tab-patterns",children:[(0,Pe.jsx)(TH,{size:14,className:"mr-1.5"})," Emerging patterns"]})]}),(0,Pe.jsx)(yZ,{value:"import",className:"mt-5",children:(0,Pe.jsx)(_se,{})}),(0,Pe.jsx)(yZ,{value:"employees",className:"mt-5",children:(0,Pe.jsx)(Cse,{})}),(0,Pe.jsx)(yZ,{value:"correlate",className:"mt-5",children:(0,Pe.jsx)(Fse,{})}),(0,Pe.jsx)(yZ,{value:"effective",className:"mt-5",children:(0,Pe.jsx)(Sse,{})}),(0,Pe.jsx)(yZ,{value:"patterns",className:"mt-5",children:(0,Pe.jsx)(Mse,{})})]})]})}function _se(){const e=Ue((0,o.useState)(""),2),t=e[0],n=e[1],a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)({}),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(""),2),f=p[0],x=p[1],g=Ue((0,o.useState)(!1),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=Ue((0,o.useState)([]),2),A=N[0],k=N[1],E=()=>Qi.get("/performance/imports").then(e=>k(e.data));(0,o.useEffect)(()=>{E()},[]);return(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,Pe.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)(Go,{children:"Paste CSV (header row + data)"}),(0,Pe.jsx)(Bo,{"data-testid":"perf-csv-input",rows:8,value:t,onChange:e=>n(e.target.value),className:"mt-2 font-mono text-xs",placeholder:"Employee,Quota Attainment %,Customer Satisfaction\nJordan Avery,118,98\nAlex Doe,92,89"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs",children:"Source label"}),(0,Pe.jsx)(Io,{value:u,onChange:e=>m(e.target.value),placeholder:"e.g. CRM Q1 export"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs",children:"Time period"}),(0,Pe.jsx)(Io,{value:f,onChange:e=>x(e.target.value),placeholder:"e.g. 2026-Q1"})]})]}),(0,Pe.jsx)("div",{className:"mt-4 flex gap-2",children:(0,Pe.jsx)(Lo,{"data-testid":"perf-preview-btn",onClick:async()=>{if(t.trim())try{const e=(await Qi.post("/performance/imports/preview",{csv_text:t})).data;i(e);const n={};e.columns.forEach(e=>{const t=e.toLowerCase();t.includes("name")||t.includes("employee")?n[e]="employee_name":t.includes("role")||t.includes("position")?n[e]="role":t.includes("unit")||t.includes("sale")?n[e]="sales_production":t.includes("csi")||t.includes("satisfaction")?n[e]="csi":t.includes("revenue")?n[e]="revenue":t.includes("attendance")?n[e]="attendance":n[e]="ignore"}),c(n)}catch(zf){va.error("Could not parse CSV")}else va.error("Paste CSV first")},variant:"outline",className:"rounded-md",children:"Preview & detect columns"})})]}),r&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:["MAP COLUMNS \xb7 ",r.row_count," rows"]}),(0,Pe.jsx)("div",{className:"mt-3 space-y-2",children:r.columns.map(e=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("code",{className:"text-xs bg-secondary px-2 py-1 rounded w-48 truncate",children:e}),(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"\u2192"}),(0,Pe.jsxs)(Sf,{value:l[e]||"ignore",onValueChange:t=>c(h(h({},l),{},{[e]:t})),children:[(0,Pe.jsx)(Of,{className:"flex-1",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:Ese.map(e=>(0,Pe.jsx)(Lf,{value:e.v,children:e.label},e.v))})]})]},e))}),(0,Pe.jsx)("div",{className:"mt-4 overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"text-xs w-full",children:[(0,Pe.jsx)("thead",{children:(0,Pe.jsx)("tr",{children:r.columns.map(e=>(0,Pe.jsx)("th",{className:"text-left p-2 bg-secondary",children:e},e))})}),(0,Pe.jsx)("tbody",{children:(r.sample_rows||[]).map((e,t)=>(0,Pe.jsx)("tr",{className:"border-t border-border",children:r.columns.map(t=>(0,Pe.jsx)("td",{className:"p-2",children:e[t]},t))},t))})]})}),(0,Pe.jsxs)(Lo,{"data-testid":"perf-import-btn",onClick:async()=>{const e=Object.fromEntries(Object.entries(l).filter(e=>{let t=Ue(e,2),n=(t[0],t[1]);return n&&"ignore"!==n}));if(Object.values(e).includes("employee_name")){b(!0);try{const n=(await Qi.post("/performance/imports",{csv_text:t,mapping:e,source_label:u,time_period:f,role_default:""})).data;w(n),va.success("Imported ".concat(n.profiles_created," employees \xb7 matched ").concat(n.matched_to_aros," to AROS")),E()}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Import failed")}finally{b(!1)}}else va.error("Map at least one column to 'Employee name'")},disabled:v,className:"mt-4 bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(kse,{size:14,className:"mr-1.5"})," ",v?"Importing\u2026":"Import data"]})]}),j&&(0,Pe.jsxs)("div",{className:"border border-emerald-200 bg-emerald-50 rounded-md p-4 text-sm flex items-start gap-2",children:[(0,Pe.jsx)(Yf,{size:18,weight:"fill",className:"text-[#00C853] shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-medium text-emerald-900",children:"Import complete"}),(0,Pe.jsxs)("div",{className:"text-emerald-900 mt-1",children:[j.profiles_created," employee profiles created \xb7 ",j.matched_to_aros," linked to AROS hires."]})]})]})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 h-fit",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",children:"Past imports"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-2 text-sm",children:[A.map(e=>(0,Pe.jsxs)("li",{className:"border-b border-border pb-2",children:[(0,Pe.jsx)("div",{className:"font-medium truncate",children:e.source_label}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground font-mono",children:[e.row_count," rows \xb7 ",e.matched_to_aros," matched \xb7 ",new Date(e.uploaded_at).toLocaleDateString()]})]},e.id)),0===A.length&&(0,Pe.jsx)("li",{className:"text-muted-foreground",children:"No imports yet."})]})]})]})}function Cse(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/performance/employees").then(e=>n(e.data))},[]),(0,Pe.jsx)("div",{className:"border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"Employee"}),(0,Pe.jsx)(jse,{children:"Role"}),(0,Pe.jsx)(jse,{children:"Period"}),(0,Pe.jsx)(jse,{children:"Linked to AROS"}),(0,Pe.jsx)(jse,{children:"Metrics"}),(0,Pe.jsx)(jse,{children:"Source"})]})}),(0,Pe.jsxs)(bse,{children:[t.map(e=>(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(wse,{className:"font-medium",children:e.employee_name}),(0,Pe.jsx)(wse,{children:e.role||"\u2014"}),(0,Pe.jsx)(wse,{className:"font-mono text-xs",children:e.time_period||"\u2014"}),(0,Pe.jsx)(wse,{children:e.application_id?(0,Pe.jsx)("span",{className:"pill bg-emerald-50 text-emerald-900 border border-emerald-200",children:"\u2713 matched"}):(0,Pe.jsx)("span",{className:"text-muted-foreground text-xs",children:"no match"})}),(0,Pe.jsx)(wse,{className:"text-xs",children:Object.entries(e.metrics||{}).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("span",{className:"font-mono mr-2",children:[n,": ",a]},n)})}),(0,Pe.jsx)(wse,{className:"text-xs text-muted-foreground",children:e.source_label})]},e.id)),0===t.length&&(0,Pe.jsx)(yse,{children:(0,Pe.jsx)(wse,{c
2olSpan:6,className:"text-center text-sm text-muted-foreground py-12",children:"No employee performance data yet. Use Import to add CSV."})})]})]})})}function Fse(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/performance/correlate").then(e=>n(e.data))},[]),t?t.ready?(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"ai-panel rounded-md p-5 grid grid-cols-3 gap-4",children:[(0,Pe.jsx)(Rse,{label:"Linked employees",value:t.linked_employees}),(0,Pe.jsx)(Rse,{label:"Metrics observed",value:t.metric_count}),(0,Pe.jsx)(Rse,{label:"Correlations computed",value:t.metric_correlations.length})]}),(0,Pe.jsx)("div",{className:"mt-5 border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"Hiring measure"}),(0,Pe.jsx)(jse,{children:"Performance metric"}),(0,Pe.jsx)(jse,{children:"Correlation"}),(0,Pe.jsx)(jse,{children:"Strength"}),(0,Pe.jsx)(jse,{children:"n"})]})}),(0,Pe.jsx)(bse,{children:t.metric_correlations.map((e,t)=>(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(wse,{className:"font-medium",children:e.signal.replace(/_/g," ")}),(0,Pe.jsx)(wse,{children:e.metric.replace(/_/g," ")}),(0,Pe.jsxs)(wse,{className:"font-mono font-bold ".concat("positive"===e.direction?"text-[#00C853]":"text-[#B91C1C]"),children:["r = ",e.correlation]}),(0,Pe.jsx)(wse,{children:(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border uppercase text-[10px] tracking-wider",children:e.label})}),(0,Pe.jsx)(wse,{className:"font-mono text-xs",children:e.n})]},t))})]})})]}):(0,Pe.jsx)(Pse,{msg:t.message}):(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground",children:"Loading\u2026"})}function Sse(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/performance/effectiveness").then(e=>n(e.data))},[]),t?t.ready?(0,Pe.jsxs)("div",{className:"space-y-5",children:[(0,Pe.jsxs)("div",{className:"ai-panel rounded-md p-5 flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"EXECUTIVE"}),(0,Pe.jsx)("p",{className:"mt-1 font-display text-lg text-white",children:"Are we hiring the right people?"})]}),(0,Pe.jsxs)("div",{className:"text-right",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"AVG PERFORMANCE"}),(0,Pe.jsx)("div",{className:"font-display font-black text-4xl text-white",children:t.overall_avg_performance}),(0,Pe.jsxs)("div",{className:"text-xs text-white/60",children:["across ",t.matched_employees," matched hires"]})]})]}),(0,Pe.jsxs)("div",{className:"rounded-md border border-border p-6 bg-secondary/40","data-testid":"performance-fit-bucket-empty-state",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground",children:"PERFORMANCE PATTERNS"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm",children:"Not enough hire outcomes on file yet to report performance patterns. This will populate once your team has completed hires and 90-day check-ins."})]}),(0,Pe.jsx)(Ose,{title:"Performance by recruiter",items:(t.by_recruiter||[]).map(e=>({key:e.name,avg:e.avg_performance,n:e.n}))}),(0,Pe.jsx)(Ose,{title:"Performance by role",items:(t.by_role||[]).map(e=>({key:e.key,avg:e.avg_performance,n:e.n}))})]}):(0,Pe.jsx)(Pse,{msg:t.message}):(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground",children:"Loading\u2026"})}function Mse(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/performance/patterns/emerging").then(e=>n(e.data))},[]),t?(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-5",children:[(0,Pe.jsx)(Hse,{label:"Linked employees",value:t.linked_employees}),(0,Pe.jsx)(Hse,{label:"Metrics tracked",value:(t.metrics_observed||[]).length})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-6",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill"})," EMERGING INSIGHTS"]}),(0,Pe.jsx)("ul",{className:"mt-4 space-y-3",children:(t.insights||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-3 text-sm leading-relaxed",children:[(0,Pe.jsx)(TH,{size:18,weight:"duotone",className:"text-[#0F4FA8] shrink-0 mt-0.5"}),(0,Pe.jsx)("span",{children:e})]},t))})]})]}):(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground",children:"Loading\u2026"})}function Ose(e){let t=e.title,n=e.items;
2if(!n||0===n.length)return null;const a=Math.max(...n.map(e=>e.avg||0),1);return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",children:t}),(0,Pe.jsx)("div",{className:"mt-3 space-y-2",children:n.map((e,t)=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,Pe.jsx)("div",{className:"w-40 truncate font-medium",children:e.key}),(0,Pe.jsx)("div",{className:"flex-1 h-5 bg-secondary rounded overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F4FA8] flex items-center justify-end pr-2 text-white text-[10px] font-mono",style:{width:"".concat(e.avg/a*100,"%")},children:e.avg})}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground font-mono w-16",children:["n=",e.n]})]},t))})]})}function Rse(e){let t=e.label,n=e.value;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl text-white mt-1",children:n})]})}function Hse(e){let t=e.label,n=e.value;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsx)("div",{className:"font-display font-black text-3xl",children:n}),(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground mt-0.5",children:t})]})}function Pse(e){let t=e.msg;return(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-12 text-center",children:[(0,Pe.jsx)(BH,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-3 font-display font-semibold text-lg",children:t||"Not enough data yet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-md mx-auto",children:"Import a CSV of employee performance data. AROS matches employees by name to your AROS applications to unlock correlation analysis."})]})}const Lse=function(e){let t=e.candidateCount;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1];return(0,o.useEffect)(()=>{let e=!0;return Qi.post("/taylor/digest-intro",{candidate_count:Number(t||0)}).then(t=>{e&&r(t.data||null)}).catch(()=>{e&&r(null)}),()=>{e=!1}},[t]),a&&a.visible?(0,Pe.jsxs)("div",{className:"taylor-mount mb-5","data-testid":"taylor-digest-intro","data-taylor-voice":"taylor","data-surface-id":a.surface_id,children:[(0,Pe.jsx)("div",{className:"mb-1.5",children:(0,Pe.jsx)(vF,{variant:"eyebrow",testId:"taylor-digest-intro-byline"})}),(0,Pe.jsx)("p",{className:"text-sm text-slate-800","data-testid":"taylor-digest-intro-line",children:a.line}),a.boundary&&(0,Pe.jsx)("p",{className:"text-xs text-slate-500 mt-2","data-testid":"taylor-digest-intro-boundary",children:a.boundary})]}):null};function Tse(){var e,t;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)(null),2),s=i[0],l=i[1];(0,o.useEffect)(()=>{Qi.get("/digest/top5").then(e=>r(e.data)),Qi.get("/digest/source-quality").then(e=>l(e.data))},[]);const c=(null===a||void 0===a?void 0:a.shortlist)||(null===a||void 0===a?void 0:a.top_5)||[];return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"DAILY HIRING VIEW"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Today's hiring focus"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Candidates worth a look today, and where your best hires have been coming from."}),(0,Pe.jsx)("div",{className:"mt-6",children:(0,Pe.jsx)(Lse,{candidateCount:c.length})}),(0,Pe.jsxs)(gZ,{defaultValue:"shortlist",className:"mt-8",children:[(0,Pe.jsxs)(vZ,{className:"bg-secondary",children:[(0,Pe.jsxs)(bZ,{value:"shortlist","data-testid":"digest-tab-shortlist",children:[(0,Pe.jsx)(Yf,{size:14,className:"mr-1.5"})," Candidates to review today"]}),(0,Pe.jsxs)(bZ,{value:"sources","data-testid":"digest-tab-sources",children:[(0,Pe.jsx)(BC,{size:14,className:"mr-1.5"})," Where hires come from"]})]}),(0,Pe.jsxs)(yZ,{value:"shortlist",className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"ai-panel roun
2ded-md p-5 flex items-center justify-between flex-wrap gap-3 mb-5",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-white/60 font-mono",children:"PIPELINE"}),(0,Pe.jsxs)("div",{className:"font-display text-lg text-white mt-1",children:[null!==(e=null===a||void 0===a?void 0:a.open_pipeline_size)&&void 0!==e?e:0," people are waiting on you. Below is a shortlist your team can start with."]})]}),(0,Pe.jsxs)(Lo,{"data-testid":"digest-copy-email",onClick:()=>{null!==a&&void 0!==a&&a.email_preview&&(navigator.clipboard.writeText("Subject: ".concat(a.email_subject,"\n\n").concat(a.email_preview)),va.success("Ready to email \u2014 copied to clipboard"))},variant:"outline",className:"rounded-md bg-transparent border-white/30 text-white hover:bg-white hover:text-black",children:[(0,Pe.jsx)(nI,{size:14,className:"mr-1.5"})," Copy as email"]})]}),(0,Pe.jsxs)("div",{className:"rounded-md border border-border bg-secondary/40 p-4 mb-5 flex gap-3","data-testid":"digest-shortlist-explainer",children:[(0,Pe.jsx)(bA,{size:18,className:"text-slate-500 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{className:"text-sm text-slate-700",children:[(0,Pe.jsx)("div",{className:"font-medium text-slate-900 mb-1",children:"How this shortlist is chosen"}),(0,Pe.jsx)("p",{children:"This page surfaces the people your team most likely needs to act on today, in this order:"}),(0,Pe.jsxs)("ul",{className:"mt-2 space-y-1 list-disc pl-5",children:[(0,Pe.jsx)("li",{children:"Candidates referred by someone at your company."}),(0,Pe.jsx)("li",{children:"Candidates your team has already interviewed or reviewed and still needs to act on."}),(0,Pe.jsx)("li",{children:"Candidates who answered a question your team asked or completed a follow-up step."}),(0,Pe.jsx)("li",{children:"Recent applicants nobody on your team has reviewed yet."})]}),(0,Pe.jsx)("p",{className:"mt-2",children:"Within each group, the person who has been waiting the longest shows up first. AROS does not rank people and no candidate score decides who appears on this list."})]})]}),0===c.length&&(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-12 text-center",children:[(0,Pe.jsx)(Yf,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-3 font-display font-semibold text-lg",children:"Nobody waiting right now"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"When new people apply, they'll show up here."})]}),(0,Pe.jsx)("div",{className:"space-y-3",children:c.map((e,t)=>(0,Pe.jsxs)("div",{"data-testid":"digest-card-".concat(t),className:"border border-border rounded-md p-5 hover:border-[#0F172A] transition-colors",children:[(0,Pe.jsx)("div",{className:"flex items-start gap-4",children:(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("h3",{className:"font-display font-bold text-xl",children:e.candidate_name}),(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border uppercase text-[10px] tracking-wider",children:e.status.replace(/_/g," ")}),(0,Pe.jsxs)("span",{className:"pill bg-blue-50 text-blue-900 border border-blue-200 text-[10px]",children:["via ",e.source_label]})]}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-1",children:[e.job_title," \xb7 waiting ",e.days_idle," day",1===e.days_idle?"":"s"]}),(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:"Why they're on this list"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1 text-sm",children:e.reasons.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"fill",className:"text-[#00C853] mt-0.5 shrink-0"}),e]},t))})]}),e.risks.length>0&&(0,Pe.jsxs)("div",{className:"mt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-[#B91C1C] font-mono font-semibold",children:"Things to know"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1 text-sm",children:e.risks.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)(AN,{size:14,weight:"fill",className:"text-[#B91C1C] mt-0.5 shrink-0"}),e]},t))})]})]})}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center justify-between flex-wrap gap-3 pt-4 border-t border-border",children:[(0,Pe.jsxs)("div",{className:"text-sm",children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Suggested next step:"})," ",(0,Pe.jsx)("span",{className:"font-medium",children:e.next_action})]}),(0,Pe.jsx)(Yn,{to:"/app/employer/applications/".concat(e.application_id),children:(0,Pe.jsxs)(Lo,{size:"sm",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"digest-open-".concat(t),children:["Open profile ",(0,Pe.jsx)(eg,{size:14,className:"ml-1.5"})]})})]})]},e.application_id))}),(null===a||void 0===a?void 0:a.email_preview)&&(0,Pe.jsxs)("details",{className:"mt-6 border border-border rounded-md p-4 bg-secondary/40",children:[(0,Pe.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Email-ready preview"}),(0,Pe.jsx)("pre",{className:"mt-3 text-xs font-mono whitespace-pre-wrap","data-testid":"digest-email-preview",children:a.email_preview})]})]}),(0,Pe.jsxs)(yZ,{value:"sources",className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 mb-4",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl",children:"Where your best hires have been coming from"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:[null!==(t=null===s||void 0===s?void 0:s.total_applications)&&void 0!==t?t:0," applications across ",((null===s||void 0===s?void 0:s.sources)||[]).length," source",1===((null===s||void 0===s?void 0:s.sources)||[]).length?"":"s",". Only outcomes shown \u2014 no candidate scores."]})]}),(0,Pe.jsx)("div",{className:"border border-border rounded-md overflow-x-auto",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"Source"}),(0,Pe.jsx)(jse,{children:"Applied"}),(0,Pe.jsx)(jse,{children:"Reached interview"}),(0,Pe.jsx)(jse,{children:"Got an offer"}),(0,Pe.jsx)(jse,{children:"Were hired"}),(0,Pe.jsx)(jse,{children:"Still there at 90 days"})]})}),(0,Pe.jsxs)(bse,{children:[((null===s||void 0===s?void 0:s.sources)||[]).map(e=>(0,Pe.jsxs)(yse,{"data-testid":"digest-source-row-".concat(e.source),children:[(0,Pe.jsx)(wse,{className:"font-medium",children:e.source_label}),(0,Pe.jsx)(wse,{className:"font-mono",children:e.applications}),(0,Pe.jsxs)(wse,{className:"font-mono",children:[e.interview_rate_pct,"%"]}),(0,Pe.jsxs)(wse,{className:"font-mono",children:[e.offer_rate_pct,"%"]}),(0,Pe.jsxs)(wse,{className:"font-mono font-bold",children:[e.hire_rate_pct,"%"]}),(0,Pe.jsx)(wse,{className:"font-mono",children:null==e.retention_90d_pct?"\u2014":"".concat(e.retention_90d_pct,"%")})]},e.source)),0===((null===s||void 0===s?void 0:s.sources)||[]).length&&(0,Pe.jsx)(yse,{children:(0,Pe.jsx)(wse,{c
2olSpan:6,className:"text-center text-sm text-muted-foreground py-10",children:"No source data yet."})})]})]})})]})]}),(0,Pe.jsx)(Kx,{source:"digest"})]})}const Ise=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z",opacity:"0.2"}),o.createElement("path",{d:"M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z"}))]]),Zse=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Ise})));Zse.displayName="PrinterIcon";const Bse=Zse,Vse=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232.49,112.49l-48,48a12,12,0,0,1-17-17L195,116H165a84,84,0,0,0-81.36,63,12,12,0,1,1-23.24-6A107.94,107.94,0,0,1,165,92H195L167.51,64.48a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,112.49ZM192,204H44V88a12,12,0,0,0-24,0V216a12,12,0,0,0,12,12H192a12,12,0,0,0,0-24Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,104l-48,48V56Z",opacity:"0.2"}),o.createElement("path",{d:"M229.66,98.34l-48-48A8,8,0,0,0,168,56V96h-3A103.94,103.94,0,0,0,64.25,174a8,8,0,0,0,15.5,4A88,88,0,0,1,165,112h3v40a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,229.66,98.34ZM184,132.69V75.31L212.69,104ZM200,216a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V88a8,8,0,0,1,16,0V208H192A8,8,0,0,1,200,216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.66,109.66l-48,48A8,8,0,0,1,168,152V112h-3a88,88,0,0,0-85.23,66,8,8,0,0,1-15.5-4A103.94,103.94,0,0,1,165,96h3V56a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,229.66,109.66ZM192,208H40V88a8,8,0,0,0-16,0V216a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.24,108.24l-48,48a6,6,0,0,1-8.48-8.48L209.51,110H165a89.94,89.94,0,0,0-87.17,67.5,6,6,0,0,1-11.62-3A101.94,101.94,0,0,1,165,98h44.53L171.76,60.24a6,6,0,0,1,8.48-8.48l48,48A6,6,0,0,1,228.24,108.24ZM192,210H38V88a6,6,0,0,0-12,0V216a6,6,0,0,0,6,6H192a6,6,0,0,0,0-12Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.66,109.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,112H165a88,88,0,0,0-85.23,66,8,8,0,0,1-15.5-4A103.94,103.94,0,0,1,165,9
26h39.71L170.34,61.66a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,109.66ZM192,208H40V88a8,8,0,0,0-16,0V216a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.83,106.83l-48,48a4,4,0,0,1-5.66-5.66L214.34,108H165a92,92,0,0,0-89.11,69A4,4,0,0,1,72,180a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,68.13,175,99.93,99.93,0,0,1,165,100h49.36L173.17,58.83a4,4,0,0,1,5.66-5.66l48,48A4,4,0,0,1,226.83,106.83ZM192,212H36V88a4,4,0,0,0-8,0V216a4,4,0,0,0,4,4H192a4,4,0,0,0,0-8Z"}))]]),zse=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Vse})));zse.displayName="ShareIcon";const qse=zse;const Use=function(e){let t=e.applicationId;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1];return(0,o.useEffect)(()=>{if(!t)return;let e=!1;return(async()=>{try{const n=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(t)))).data,a=null===n||void 0===n?void 0:n.context_id;if(!a)return void(e||r([]));const i=(await Qi.get("/candidate-intelligence/v2/human-context/".concat(encodeURIComponent(a),"/validations"))).data;e||r(i.events||[])}catch(n){e||r([])}})(),()=>{e=!0}},[t]),a&&0!==a.length?(0,Pe.jsxs)("section",{className:"dp-section mt-6","data-testid":"dp-human-context-timeline",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)(qC,{size:14,weight:"duotone",style:{color:"#0F4FA8"}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-[#0F172A]",children:"AI vs Recruiter \xb7 Timeline"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mb-3 leading-relaxed",children:"Every recruiter and hiring manager action on the AI-generated Human Context is preserved. Nothing overwritten \u2014 the audit trail below shows how this recommendation was validated."}),(0,Pe.jsx)(zL,{events:a,compact:!0})]}):null},Wse="".concat("https://www.getaros.ai","/api"),Yse={background:"Backgroun
2d",trait:"Trait",custom:"Recruiter-specified"};function Kse(e){let t=e.applicationId;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)({}),2),s=i[0],l=i[1],c="undefined"!==typeof window?localStorage.getItem("aros_token"):null;if((0,o.useEffect)(()=>{let e=!0;return(async()=>{if(c&&t)try{var n;const a=Ue(await Promise.all([Ki.get("".concat(Wse,"/applications/").concat(t,"/trait-matches"),{headers:{Authorization:"Bearer ".concat(c)}}),Ki.get("".concat(Wse,"/traits/catalog"),{headers:{Authorization:"Bearer ".concat(c)}}).catch(()=>({data:null}))]),2),i=a[0],s=a[1];if(!e)return;if(r(((null===(n=i.data)||void 0===n?void 0:n.matches)||[]).filter(e=>"validated"===e.state)),s.data){const e={};(s.data.background_patterns||[]).forEach(t=>e["background:".concat(t.slug)]=t.label),(s.data.traits||[]).forEach(t=>e["trait:".concat(t.slug)]=t.label),l(e)}}catch(a){}})(),()=>{e=!1}},[t,c]),!a.length)return null;const d=e=>"custom"===e.trait_kind?"Custom trait":s["".concat(e.trait_kind,":").concat(e.trait_slug)]||e.trait_slug;return(0,Pe.jsxs)("section",{className:"dp-section mt-6","data-testid":"dp-trait-evidence",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500 mb-1",children:"Recruiter-selected trait evidence"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-sm mb-3",children:"What the r\xe9sum\xe9 shows for this role's trait picks"}),(0,Pe.jsx)("p",{className:"text-xs text-slate-600 mb-4 max-w-3xl",children:"Evidence-only band. Separate from the hiring decision \u2014 nothing here alters the fit score, ranking, or recommendation. Only recruiter-validated matches appear in the packet."}),(0,Pe.jsx)("ul",{className:"space-y-3",children:a.map(e=>(0,Pe.jsxs)("li",{className:"rounded-md border border-emerald-300 bg-emerald-50/40 p-4","data-testid":"dp-trait-row-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-emerald-800",children:[Yse[e.trait_kind]||e.trait_kind," \xb7 ",d(e)]}),(0,Pe.jsx)("div",{className:"mt-1 text-sm font-semibold text-slate-900",children:e.hypothesis}),e.reasoning&&(0,Pe.jsx)("div",{className:"mt-1 text-sm text-slate-700",children:e.reasoning}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5",children:(e.evidence||[]).map((e,t)=>{var n;return(0,Pe.jsxs)("li",{className:"text-xs italic text-slate-700",children:["\u201c",e.quote,"\u201d",(0,Pe.jsx)("span",{className:"ml-2 not-italic text-[10px] uppercase tracking-wide text-slate-500",children:null===(n=e.source)||void 0===n?void 0:n.replace("_"," ")})]},t)})})]},e.id))})]})}function Gse(e){return(null===e||void 0===e?void 0:e.areas_of_strength)||(null===e||void 0===e?void 0:e.top_reasons_to_hire)||[]}function $se(e){return(null===e||void 0===e?void 0:e.suggested_next_step)||(null===e||void 0===e?void 0:e.recommended_next_action)||""}function Qse(e){return(null===e||void 0===e?void 0:e.evidence_summary)||(null===e||void 0===e?void 0:e.executive_summary)||""}function Xse(){var e,t,n,a,r,i,s,l,c,d,u,m,p,f,x,g,v,b,y,j,w,N,A,k,E,D,_,C,F,S,M,O,R,H,P,L,T;const I=qt().id,Z=(zt(),Ue((0,o.useState)(null),2)),B=Z[0],V=Z[1],z=Ue((0,o.useState)(null),2),q=z[0],U=z[1],W=Ue((0,o.useState)(!1),2),Y=W[0],K=W[1],G=Ue((0,o.useState)([]),2),$=G[0],Q=G[1],X=Ue((0,o.useState)(!1),2),J=X[0],ee=X[1],te=Ue((0,o.useState)({recipient_email:"",recipient_name:"",note:"",expires_in_days:14}),2),ne=te[0],ae=te[1],re=Ue((0,o.useState)(""),2),ie=re[0],se=re[1],oe=()=>{Qi.get("/packet/applications/".concat(I,"/shares")).then(e=>Q(e.data)).catch(()=>{})};(0,o.useEffect)(()=>{Qi.get("/packet/applications/".concat(I)).then(e=>V(e.data)).catch(e=>{var t,n;return U((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to load packet")}),oe()},[I]);if(q)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-rose-600","data-testid":"decision-packet-error",children:q});if(!B)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-muted-foreground",children:"Loading decision packet\u2026"});const le=B.scores||{},ce=(null!==(e=le.context_adjusted_fit)&&void 0!==e||le.fit,0===le.fit&&0===le.human_potential&&!(null!==(t=B.candidate)&&void 0!==t&&null!==(n=t.employment_history)&&void 0!==n&&n.length)&&!(null!==(a=B.candidate)&&void 0!==a&&null!==(r=a.skills)&&void 0!==r&&r.length));return(0,Pe.jsxs)("div",{className:"dp-root px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"decision-packet",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Pipeline",to:"/app/employer/applicants"},{label:(null===(i=B.candidate)||void 0===i?void 0:i.name)||"Candidate",to:"/app/employer/applications/".concat(I
2)},{label:"Decision Packet"}],backFallback:"/app/employer/applicants"}),(0,Pe.jsxs)("div",{className:"no-print flex items-center justify-end mb-6",children:[(0,Pe.jsxs)(Lo,{"data-testid":"decision-packet-print-btn",onClick:()=>window.print(),variant:"outline",className:"border-[#0F172A] hover:bg-[#0F172A] hover:text-white rounded-md mr-2",children:[(0,Pe.jsx)(Bse,{size:14,weight:"duotone",className:"mr-1.5"})," Print / Save PDF"]}),(0,Pe.jsxs)(Lo,{"data-testid":"open-share-dialog-btn",onClick:()=>K(!0),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(qse,{size:14,weight:"duotone",className:"mr-1.5"})," Share with hiring manager"]})]}),(0,Pe.jsxs)("header",{className:"dp-header border-b border-border pb-5",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-6 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Hiring Manager Decision Packet"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight","data-testid":"dp-candidate-name",children:null===(s=B.candidate)||void 0===s?void 0:s.name}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-0.5",children:[(null===(l=B.candidate)||void 0===l?void 0:l.headline)||"\u2014"," ",null!==(c=B.candidate)&&void 0!==c&&c.years_experience?"\xb7 ".concat(B.candidate.years_experience," yrs"):""," ",null!==(d=B.candidate)&&void 0!==d&&d.location?"\xb7 ".concat(B.candidate.location):""]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xs text-muted-foreground",children:["For role: ",(0,Pe.jsx)("span",{className:"font-semibold text-foreground",children:B.job_title})," \xb7 Source: ",B.source_label," \xb7 Status: ",null===(u=B.status)||void 0===u?void 0:u.replace(/_/g," ")]})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md px-4 py-3 text-right bg-secondary/40","data-testid":"dp-role-tag",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono opacity-70",children:"AROS ROLE"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-sm mt-0.5",children:"Evidence organized"}),(0,Pe.jsx)("div",{className:"text-[11px] mt-0.5 opacity-80 italic",children:"Your team decides."})]})]}),(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground font-mono mt-3",children:["Generated ",new Date(B.generated_at).toLocaleString()]})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(ux,{size:14,weight:"duotone"}),label:"EVIDENCE SUMMARY"}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed mt-2","data-testid":"dp-executive-summary",children:Qse(B)}),ce&&(0,Pe.jsxs)("div",{className:"mt-3 bg-amber-50 border border-amber-200 rounded-md p-3 text-xs text-amber-900","data-testid":"dp-profile-incomplete",children:[(0,Pe.jsx)("span",{className:"font-semibold",children:"Profile incomplete."})," This candidate hasn't completed their profile yet \u2014 request resume + experience details before evaluating against this role. Signals below reflect missing data, not lack of fit."]})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(ux,{size:14,weight:"duotone"}),label:"WHAT WE FOUND"}),null!==(m=Gse(B))&&void 0!==m&&m.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm","data-testid":"dp-reasons",children:Gse(B).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-emerald-600 shrink-0",children:"\xb7"}),(0,Pe.jsx)("span",{children:e})]},t))}):(0,Pe.jsx)(noe,{children:'No supporting information yet. Click "Refresh analysis" on the candidate page to look again.'}),B.nearest_top_hire&&(0,Pe.jsxs)("div",{className:"mt-3 text-xs text-muted-foreground",children:[(0,Pe.jsx)("span",{className:"font-mono uppercase tracking-wider",children:"Closest prior hire on file:"})," ",(null===(p=B.nearest_top_hire)||void 0===p?void 0:p.role)||""]})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(dM,{size:14,weight:"duotone"}),label:"WHAT WE DID NOT FIND IN THE INFORMATION THEY SUBMITTED"}),null!==(f=B.areas_to_validate)&&void 0!==f&&f.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm","data-testid":"dp-validate",children:B.areas_to_validate.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-amber-600 shrink-0",children:"\xb7"}),(0,Pe.jsx)("span",{children:e})]},t))}):(0,Pe.jsx)(noe,{children:"No outstanding items."}),(null===(x=B.risk_flags)||void 0===x?void 0:x.length)>0&&(0,Pe.jsxs)("div",{className:"mt-3 bg-rose-50 border border-rose-200 rounded-md p-3",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] text-rose-800 font-mono font-semibold",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill"})," INFORMATION NOT AVAILABLE"]}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1 text-xs text-rose-900",children:B.risk_flags.map((e,t)=>(0,Pe.jsxs)("li",{children:["\u2022 ",e]},t))})]})]}),null!==(g=B.candidate)&&void 0!==g&&null!==(v=g.context_flags)&&void 0!==v&&v.length||null!==(b=B.context_responses)&&void 0!==b&&b.length?(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(TH,{size:14,weight:"duotone"}),label:"HUMAN CONTEXT"}),(null===(y=B.candidate)||void 0===y||null===(j=y.context_flags)||void 0===j?void 0:j.length)>0&&(0,Pe.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:B.candidate.context_flags.map(e=>(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-[11px]",children:e.replace(/_/g," ")},e))}),(null===(w=B.candidate)||void 0===w?void 0:w.employment_gap_explanation)&&(0,Pe.jsx)(toe,{label:"Employment gap",text:B.candidate.employment_gap_explanation}),(null===(N=B.candidate)||void 0===N?void 0:N.career_pivot_explanation)&&(0,Pe.jsx)(toe,{label:"Career pivot",text:B.candidate.career_pivot_explanation}),(null===(A=B.candidate)||void 0===A?void 0:A.transition_notes)&&(0,Pe.jsx)(toe,{label:"Transition notes",text:B.candidate.transition_notes}),(null===(k=B.context_responses)||void 0===k?void 0:k.length)>0&&(0,Pe.jsx)("div",{className:"mt-3 space-y-2",children:B.context_responses.map((e,t)=>(0,Pe.jsxs)("div",{className:"text-xs",children:[(0,Pe.jsx)("div",{className:"font-semibold",children:e.question}),(0,Pe.jsx)("div",{className:"text-muted-foreground mt-0.5",children:e.answer})]},t))})]}):null,(0,Pe.jsx)(Use,{applicationId:I}),(0,Pe.jsx)(Kse,{applicationId:I}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(Vie,{size:14,weight:"duotone"}),label:"WHAT YOU MAY WANT TO ASK"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-3","data-testid":"dp-interview-guide",children:[(0,Pe.jsx)(eoe,{title:"Behavioral",items:null===(E=B.interview_guide)||void 0===E?void 0:E.behavioral}),(0,Pe.jsx)(eoe,{title:"Skills",items:null===(D=B.interview_guide)||void 0===D?void 0:D.skills}),(0,Pe.jsx)(eoe,{title:"Context",items:null===(_=B.interview_guide)||void 0===_?void 0:_.context})]}),(null!==(C=null===(F=B.interview_guide)||void 0===F||null===(S=F.behavioral)||void 0===S?void 0:S.length)&&void 0!==C?C:0)+(null!==(M=null===(O=B.interview_guide)||void 0===O||null===(R=O.skills)||void 0===R?void 0:R.length)&&void 0!==M?M:0)+(null!==(H=null===(P=B.interview_guide)||void 0===P||null===(L=P.context)||void 0===L?void 0:L.length)&&void 0!==H?H:0)===0&&(0,Pe.jsx)(noe,{children:'No interview questions yet. Click "Generate questions" on the candidate page when you\'re ready.'})]}),(null===(T=B.manager_interviews)||void 0===T?void 0:T.length)>0&&(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(Jse,{icon:(0,Pe.jsx)(Vie,{size:14,weight:"duotone"}),label:"MANAGER INTERVIEW INTEL"}),(0,Pe.jsx)("div",{className:"mt-2 space-y-2",children:B.manager_interviews.map((e,t)=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 text-sm",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsx)("div",{className:"font-semibold",children:e.name||"Manager"}),(()=>{const t={advance:{label:"Advance",bg:"#ECFDF5",fg:"#065F46",border:"#A7F3D0"},discuss:{label:"Discuss",bg:"#FFFBEB",fg:"#92400E",border:"#FDE68A"},pass:{label:"Pass",bg:"#FEF2F2",fg:"#991B1B",border:"#FECACA"}}[e.decision||("high"===e.predicted_success||e.predicted_success>=75?"advance":"low"===e.predicted_success||e.predicted_success<30?"pass":"discuss")];return(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] font-mono font-semibold px-2 py-0.5 rounded-md border",style:{background:t.bg,color:t.fg,borderColor:t.border},children:t.label})})()]}),e.notes&&(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:e.notes})]},t))})]}),(0,Pe.jsx)("section",{className:"dp-section mt-6 mb-10",children:(0,Pe.jsxs)("div",{className:"border border-[#0F172A] rounded-md p-4 bg-[#0F172A] text-white",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] font-mono text-white/60",children:"SUGGESTED FOLLOW-UP"}),(0,Pe.jsx)("div",{className:"text-base font-semibold mt-1","data-testid":"dp-next-action",children:$se(B)})]})}),(0,Pe.jsx)("footer",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider border-t border-border pt-3",children:"AROS Decision Packet \xb7 Confidential \xb7 For internal hiring use only \xb7 Decision support \u2014 not a hiring decision"}),(0,Pe.jsx)(Kd,{open:Y,onOpenChange:K,children:(0,Pe.jsxs)(Qd,{className:"max-w-lg no-print","data-testid":"share-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsx)(eu,{children:"Share Decision Packet"}),(0,Pe.jsx)(tu,{children:"Generates a tokenised read-only link. The shared view is semi-anonymised (first name + last initial, no email or phone) and hides internal notes."})]}),(0,Pe.jsxs)("div",{className:"space-y-3 mt-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"share-email",children:"Recipient email"}),(0,Pe.jsx)(Io,{id:"share-email","data-testid":"share-recipient-email",type:"email",placeholder:"[email protected]",value:ne.recipient_email,onChange:e=>ae(t=>h(h({},t),{},{recipient_email:e.target.value}))}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground mt-1",children:"Optional. Leave blank to just generate a link."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"share-name",children:"Recipient name (optional)"}),(0,Pe.jsx)(Io,{id:"share-name","data-testid":"share-recipient-name",placeholder:"Sam Manager",value:ne.recipient_name,onChange:e=>ae(t=>h(h({},t),{},{recipient_name:e.target.value}))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"share-note",children:"Note to re
2cipient (optional)"}),(0,Pe.jsx)(Bo,{id:"share-note","data-testid":"share-note",rows:3,placeholder:"Strong fit \u2014 worth a 30-min call this week.",value:ne.note,onChange:e=>ae(t=>h(h({},t),{},{note:e.target.value}))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"share-expiry",children:"Link expires in (days)"}),(0,Pe.jsx)(Io,{id:"share-expiry","data-testid":"share-expires-in-days",type:"number",min:1,max:90,value:ne.expires_in_days,onChange:e=>ae(t=>h(h({},t),{},{expires_in_days:Number(e.target.value)||14}))})]}),ie&&(0,Pe.jsxs)("div",{className:"mt-3 border border-emerald-200 bg-emerald-50 rounded-md p-3 text-sm","data-testid":"share-result",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-emerald-800 font-mono font-semibold",children:"SHARE LINK"}),(0,Pe.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,Pe.jsx)("code",{className:"flex-1 text-xs break-all bg-white border border-emerald-200 rounded px-2 py-1.5","data-testid":"share-url",children:ie}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline","data-testid":"copy-share-url-btn",onClick:()=>{return e=ie,void navigator.clipboard.writeText(e).then(()=>va.success("Link copied"));var e},children:[(0,Pe.jsx)(JH,{size:12,className:"mr-1"})," Copy"]})]})]}),$.length>0&&(0,Pe.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"ACTIVE SHARES"}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-2","data-testid":"share-list",children:$.map(e=>(0,Pe.jsxs)("li",{className:"flex items-center justify-between gap-2 text-xs border border-border rounded p-2",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"truncate",children:[e.recipient_email||(0,Pe.jsx)("span",{className:"italic text-muted-foreground",children:"link only"}),e.revoked_at&&(0,Pe.jsx)("span",{className:"ml-2 text-rose-700",children:"revoked"})]}),(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground font-mono",children:[e.view_count," view",1===e.view_count?"":"s"," \xb7 expires ",new Date(e.expires_at).toLocaleDateString()]})]}),!e.revoked_at&&(0,Pe.jsxs)("button",{"data-testid":"revoke-share-".concat(e.token),onClick:()=>(async e=>{try{await Qi.delete("/packet/shares/".concat(e)),va.success("Share revoked"),oe()}catch(t){va.error("Couldn't revoke the share \u2014 try again in a moment.")}})(e.token),className:"text-rose-700 hover:text-rose-900 inline-flex items-center gap-1 text-xs",children:[(0,Pe.jsx)(IF,{size:12})," Revoke"]})]},e.token))})]})]}),(0,Pe.jsxs)(Jd,{className:"mt-4",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>K(!1),children:"Close"}),(0,Pe.jsx)(Lo,{"data-testid":"create-share-btn",onClick:async()=>{ee(!0);try{var e,t;const n=(await Qi.post("/packet/applications/".concat(I,"/share"),ne)).data;se(n.share_url);const a=null!==(e=n.email)&&void 0!==e&&e.sent?"Share link emailed to ".concat(ne.recipient_email):"email_service_not_configured"===(null===(t=n.email)||void 0===t?void 0:t.reason)?"Email service not configured. Share link created successfully \u2014 copy and send manually.":"Share link created. Email delivery skipped.";va.success(a),ae(e=>h(h({},e),{},{recipient_email:"",recipient_name:"",note:""})),oe()}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Failed to create share")}finally{ee(!1)}},disabled:J,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:J?"Creating\u2026":"Create share link"})]})]})}),(0,Pe.jsx)(Kx,{source:"decision-packet",applicationId:I})]})}function Jse(e){let t=e.icon,n=e.label;return(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono font-semibold",children:[t," ",n]})}function eoe(e){let t=e.title,n=e.items;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-[#0F4FA8]",children:t}),null!==n&&void 0!==n&&n.length?(0,Pe.jsx)("ol",{className:"mt-2 space-y-1.5 text-sm list-decimal pl-4",children:n.map((e,t)=>(0,Pe.jsx)("li",{className:"leading-relaxed",children:e},t))}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2",children:"\u2014"})]})}function toe(e){let t=e.label,n=e.text;return(0,Pe.jsxs)("div",{className:"mt-2 text-xs",children:[(0,Pe.jsx)("div",{className:"font-mono uppercase tracking-wider text-muted-foreground",children:t}),(0,Pe.jsx)("div",{className:"mt-0.5 leading-relaxed",children:n})]})}function noe(e){let t=e.children;return(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2 italic",children:t})}function aoe(){var e,t;zt();const n=Ue(Xn(),2),a=n[0],r=n[1],i=(a.get("ids")||"").split(",").filter(
2Boolean),s=Ue((0,o.useState)([]),2),l=s[0],c=s[1],d=Ue((0,o.useState)([]),2),u=d[0],m=d[1],p=Ue((0,o.useState)(a.get("job")||"all"),2),f=p[0],x=p[1],g=Ue((0,o.useState)(i),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=Ue((0,o.useState)(!1),2),A=N[0],k=N[1];(0,o.useEffect)(()=>{Qi.get("/jobs/mine").then(e=>m(e.data))},[]),(0,o.useEffect)(()=>{const e="all"===f?"/applications/org/all":"/applications/by-job/".concat(f);Qi.get(e).then(e=>c(e.data))},[f]),(0,o.useEffect)(()=>{i.length>=2&&!j&&E(i)},[]);const E=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;if(e.length<2)va.error("Pick at least 2 candidates");else{k(!0);try{const t=(await Qi.post("/packet/compare",{application_ids:e})).data;w(t),r(h({ids:e.join(",")},"all"!==f?{job:f}:{}),{replace:!0})}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to build comparison packet")}finally{k(!1)}}};return(0,Pe.jsxs)("div",{className:"dp-root px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"decision-packet-compare",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Compare",to:"/app/employer/compare"},{label:"Decision Packet"}],backFallback:"/app/employer/compare"}),(0,Pe.jsx)("div",{className:"no-print flex items-center justify-end mb-6",children:j&&(0,Pe.jsxs)(Lo,{"data-testid":"dp-compare-print-btn",onClick:()=>window.print(),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(Bse,{size:14,weight:"duotone",className:"mr-1.5"})," Print / Save PDF"]})}),(0,Pe.jsxs)("div",{className:"no-print",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Finalist Decision Packet"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight",children:"Compare finalists side-by-side"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Pick 2\u20135 candidates. AROS organizes the evidence side-by-side across separate signals. Your team decides."}),(0,Pe.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[(0,Pe.jsxs)(Sf,{value:f,onValueChange:x,children:[(0,Pe.jsx)(Of,{className:"w-64",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All jobs"}),u.map(e=>(0,Pe.jsx)(Lf,{value:e.id,children:e.title},e.id))]})]}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground",children:[v.length,"/5 selected"]}),(0,Pe.jsxs)(Lo,{"data-testid":"dp-compare-run-btn",onClick:()=>E(),disabled:A||v.length<2,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md ml-auto",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," ",A?"Building\u2026":"Build comparison packet"]})]}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2",children:l.map(e=>(0,Pe.jsx)("button",{"data-testid":"dp-pick-".concat(e.id),onClick:()=>{return t=e.id,void b(e=>e.includes(t)?e.filter(e=>e!==t):e.length>=5?e:[...e,t]);var t},className:"text-left border rounded-md p-3 transition-colors ".concat(v.includes(e.id)?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border hover:border-[#0F172A]"),children:(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-semibold truncate text-sm",children:e.candidate_name}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground truncate mt-0.5",children:e.job_title})]})})},e.id))})]}),j&&(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"dp-compare-result",children:[(0,Pe.jsxs)("header",{className:"dp-header border-b border-border pb-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 FINALIST EVIDENCE COMPARISON"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-2xl mt-1 tracking-tight",children:(null===(e=j.packets[0])||void 0===e?void 0:e.job_title)||"Finalist Comparison"}),(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground font-mono mt-2",children:["Generated ",new Date(null===(t=j.packets[0])||void 0===t?void 0:t.generated_at).toLocaleStr
2ing()," \xb7 ",j.packets.length," candidates \xb7 Alphabetical order"]})]}),(0,Pe.jsxs)("div",{className:"mt-5 border border-border rounded-md p-4 bg-secondary/40 dp-section","data-testid":"dp-compare-neutral-banner",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] font-mono text-muted-foreground",children:"EVIDENCE COMPARISON"}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm",children:["AROS organized the evidence for ",j.packets.length," candidates side-by-side. Individual signals stay separate \u2014 the hiring team decides."]})]}),(0,Pe.jsx)("div",{className:"dp-compare-grid mt-5",children:j.packets.map(e=>{var t,n,a,r;return(0,Pe.jsxs)("article",{className:"dp-compare-card border border-border rounded-md p-4 dp-section bg-white",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:[(null===(t=e.candidate)||void 0===t?void 0:t.years_experience)||0," yrs"]}),(0,Pe.jsx)("div",{className:"font-semibold text-sm truncate",children:null===(n=e.candidate)||void 0===n?void 0:n.name})]})}),(0,Pe.jsx)(roe,{title:"What we found",items:(e.areas_of_strength||e.top_reasons_to_hire||[]).slice(0,3),positive:!0}),(0,Pe.jsx)(roe,{title:"What we did not find in the information they submitted",items:null===(a=e.areas_to_validate)||void 0===a?void 0:a.slice(0,3)}),(null===(r=e.risk_flags)||void 0===r?void 0:r.length)>0&&(0,Pe.jsx)(roe,{title:"Information not available",items:e.risk_flags.slice(0,2),risk:!0}),(0,Pe.jsxs)("div",{className:"mt-3 pt-2 border-t border-border text-[11px]",children:[(0,Pe.jsx)("span",{className:"font-mono uppercase tracking-wider text-muted-foreground",children:"What you may want to ask about:"})," ",e.suggested_next_step||e.recommended_next_action]})]},e.application_id)})}),(0,Pe.jsx)("footer",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider border-t border-border pt-3 mt-6",children:"AROS Decision Packet \xb7 Confidential \xb7 Decision support \u2014 not a hiring decision"})]})]})}function roe(e){let t=e.title,n=e.items,a=e.positive,r=e.risk;return n&&n.length?(0,Pe.jsxs)("div",{className:"mt-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] font-mono font-semibold ".concat(a?"text-emerald-700":r?"text-rose-700":"text-amber-700"),children:t}),(0,Pe.jsx)("ul",{className:"mt-1 space-y-0.5 text-[11px]",children:n.map((e,t)=>(0,Pe.jsxs)("li",{className:"leading-snug",children:["\u2022 ",e]},t))})]}):null}const ioe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),o.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),soe=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:ioe})));soe.displayName="FunnelIcon";const ooe=soe,loe={"decision-packet":"Decision Packet","public-packet":"Public Packet",digest:"Today's hiring focus",other:"Other"},coe={confusing:"Confusing",missing_information:"Missing info",trust_concern:"Trust",legal_compliance_concern:"Legal/compliance",would_not_use:"Would not use",would_pay_for_this:"Would pay",other:"Other"};function doe(e){let t=e.attachmentId,n=e.contentType;const a=Ue((0,o.useState)(""),2),r=a[0],i=a[1],s=Ue((0,o.useState)("loading"),2),l=s[0],c=s[1];(0,o.useEffect)(()=>{let e=!1,n="";return(async()=>{try{const a=await Qi.get("/feedback/attachments/".concat(t),{responseType:"blob"});if(e)return;n=URL.createObjectURL(a.data),i(n),c("ready")}catch(a){e||c("failed")}})(),()=>{if(e=!0,n)try{URL.revokeObjectURL(n)}catch(t){}}},[t]);return"loading"===l?(0,Pe.jsx)("div",{className:"h-10 w-14 rounded bg-slate-100 animate-pulse","data-testid":"feedback-attachment-thumb-loading-".concat(t),"aria-hidden":"true"}):"failed"===l?(0,Pe.jsx)("div",{className:"h-10 w-14 rounded bg-slate-50 border border-dashed border-slate-300 flex items-center justify-center text-[9px] text-muted-foreground","data-testid":"feedback-attachment-thumb-failed-".concat(t),title:"Screenshot failed to load",children:"n/a"}):(0,Pe.jsx)("button",{type:"button",onClick:async()=>{try{const e=await Qi.get("/feedback/attachments/".concat(t),{responseType:"blob"}),n=URL.createObjectURL(e.data);window.open(n,"_blank","noopener,noreferrer"),setTimeout(()=>{try{URL.revokeObjectURL(n)}catch(e){}},12e4)}catch(e){}},className:"h-10 w-14 rounded overflow-hidden border border-border hover:ring-2 hover:ring-[#0F4FA8] transition-shadow",title:"Open screenshot (".concat(n||"image",")"),"data-testid":"feedback-attachment-thumb-".concat(t),children:(0,Pe.jsx)("img",{src:r,alt:"",className:"h-full w-full object-cover"})})}function uoe(){const e=es().user,t="admin"===(null===e||void 0===e?void 0:e.role),n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)({source:"all",category:"all",min_rating:"all"}),2),s=i[0],l=i[1],c=Ue((0,o.useState)([]),2),d=c[0],u=c[1],m=Ue((0,o.useState)(null),2),p=m[0],f=m[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{const e={};"all"!==s.source&&(e.source=s.source),"all"!==s.category&&(e.category=s.category),"all"!==s.min_rating&&(e.min_rating=Number(s.min_rating)),Qi.get("/feedback",{params:e}).then(e=>r(e.data))},[s]),(0,o.useEffect)(()=>{Qi.get("/feedback/syntheses").then(e=>u(e.data))},[]);if(!a)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-muted-foreground",children:"Loading feedback\u2026"});const b=a.items,y=a.summary;return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8","data-testid":"feedback-review",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Validation Feedback"}],backFallback:"/app/employer"}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Validation Feedback"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight",children:"What people are telling us"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Captured from Decision Packet, public shared packets, and Today's hiring focus. Use during recruiter / HR-leader / business-owner / Colonial Life validation conversations."})]}),(0,Pe.jsxs)(Lo,{"data-testid":"feedback-export-csv-btn",onClick:async()=>{const e=await Qi.get("/feedback/export.csv",{responseType:"blob"}),t=URL.createObjectURL(e.data),n=document.createElement("a");n.href=t,n.download="aros-feedback-".concat((new Date).toISOString().slice(0,10),".csv"),n.click(),setTimeout(()=>URL.revokeObjectURL(t),5e3)},variant:"outline",className:"rounded-md mr-2",children:[(0,Pe.jsx)(uie,{size:14,className:"mr-1.5",weight:"duotone"})," Export CSV"]}),(0,Pe.jsxs)(Lo,{"data-testid":"run-ai-synthesis-btn",onClick:async()=>{v(!0);try{const e={};"all"!==s.source&&(e.source=s.source),"all"!==s.category&&(e.category=s.category),"all"!==s.min_rating&&(e.min_rating=Number(s.min_rating));const t=(await Qi.post("/feedback/synthesize",null,{params:e})).data;f(t);const n=await Qi.get("/feedback/syntheses");u(n.data),va.success("AI synthesis ready"),setTimeout(()=>{var e;return null===(e=document.getElementById("synthesis-panel"))||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})},100)}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Synthesis failed")}finally{v(!1)}},disabled:g||0===a.summary.total,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," ",g?"Synthesizing\u2026":"Run AI Synthesis"]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mt-6",children:[(0,Pe.jsx)(moe,{label:"Responses",value:y.total}),(0,Pe.jsx)(moe,{label:"Avg validation rating",value:"".concat(y.avg_rating,"/5"),highlight:!0,"aria-label":"Average validation rating out of 5, based on 1-5 ratings submitted by hiring-manager validators"}),(0,Pe.jsx)(moe,{label:"Sources",value:Object.keys(y.by_source).length}),(0,Pe.jsx)(moe,{label:"Categories tagged",value:Object.values(y.by_category).reduce((e,t)=>
2e+t,0)})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-5",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"RATING DISTRIBUTION"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5",children:[5,4,3,2,1].map(e=>{const t=y.rating_distribution[e]||0,n=y.total?Math.round(t/y.total*100):0;return(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-xs","data-testid":"rating-row-".concat(e),children:[(0,Pe.jsxs)("span",{className:"w-10 inline-flex items-center gap-0.5 font-mono",children:[e,(0,Pe.jsx)(Ix,{size:10,weight:"fill",className:"text-amber-500"})]}),(0,Pe.jsx)("div",{className:"flex-1 h-2 bg-secondary rounded-full overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F172A]",style:{width:"".concat(n,"%")}})}),(0,Pe.jsx)("span",{className:"w-12 text-right text-muted-foreground font-mono",children:t})]},e)})})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:"CATEGORY BREAKDOWN"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5",children:Object.entries(coe).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];const r=y.by_category[n]||0,i=y.total?Math.round(r/y.total*100):0;return(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,Pe.jsx)("span",{className:"w-32 truncate",children:a}),(0,Pe.jsx)("div",{className:"flex-1 h-2 bg-secondary rounded-full overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F4FA8]",style:{width:"".concat(i,"%")}})}),(0,Pe.jsx)("span",{className:"w-8 text-right text-muted-foreground font-mono",children:r})]},n)})})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3 mt-6 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono font-semibold",children:[(0,Pe.jsx)(ooe,{size:12})," FILTERS"]}),(0,Pe.jsxs)(Sf,{value:s.source,onValueChange:e=>l(t=>h(h({},t),{},{source:e})),children:[(0,Pe.jsx)(Of,{className:"w-48","data-testid":"filter-source",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All sources"}),Object.entries(loe).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsx)(Lf,{value:n,children:a},n)})]})]}),(0,Pe.jsxs)(Sf,{value:s.category,onValueChange:e=>l(t=>h(h({},t),{},{category:e})),children:[(0,Pe.jsx)(Of,{className:"w-56","data-testid":"filter-category",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All categories"}),Object.entries(coe).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsx)(Lf,{value:n,children:a},n)})]})]}),(0,Pe.jsxs)(Sf,{value:s.min_rating,onValueChange:e=>l(t=>h(h({},t),{},{min_rating:e})),children:[(0,Pe.jsx)(Of,{className:"w-40","data-testid":"filter-min-rating",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"Any rating"}),[1,2,3,4,5].map(e=>(0,Pe.jsxs)(Lf,{value:String(e),children:[e,"+ stars"]},e))]})]})]}),(0,Pe.jsx)("div",{className:"border border-border rounded-md overflow-hidden mt-4",children:(0,Pe.jsxs)(gse,{"data-testid":"feedback-table",children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"When"}),(0,Pe.jsx)(jse,{children:"Source"}),(0,Pe.jsx)(jse,{className:"text-center",children:"Rating"}),(0,Pe.jsx)(jse,{children:"Category"}),(0,Pe.jsx)(jse,{children:"Respondent"}),(0,Pe.jsx)(jse,{children:"Feedback"}),t&&(0,Pe.jsx)(jse,{className:"text-center",children:"Screenshot"})]})}),(0,Pe.jsxs)(bse,{children:[b.map(e=>(0,Pe.jsxs)(yse,{"data-testid":"feedback-row-".concat(e.id),children:[(0,Pe.jsxs)(wse,{className:"text-xs text-muted-foreground whitespace-nowrap",children:[new Date(e.created_at).toLocaleDateString(),(0,Pe.jsx)("br",{}),(0,Pe.jsx)("span",{className:"font-mono text-[10px]",children:new Date(e.created_at).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,Pe.jsx)(wse,{children:(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-[11px]",children:loe[e.source]||e.source})}),(0,Pe.jsx)(wse,{className:"text-center",children:(0,Pe.jsx)("div",{className:"inline-flex items-center gap-0.5",children:[1,2,3,4,5].map(t=>(0,Pe.jsx)(Ix,{size:12,weight:t<=e.rating?"fill":"regular",className:t<=e.rating?"text-amber-500":"text-muted-foreground"},t))})}),(0,Pe.jsx)(wse,{className:"text-xs",children:e.category?coe[e.category]||e.category:(0,Pe.jsx)("span",{className:"text-muted-foreground italic",children:"\u2014"})}),(0,Pe.jsxs)(wse,{className:"text-xs",children:[e.respondent_name&&(0,Pe.jsx)("div",{children:e.respondent_name}),e.respondent_role&&(0,Pe.jsx)("div",{className:"text-muted-foreground font-mono uppercase text-[10px]",children:e.respondent_role}),!e.respondent_name&&!e.respondent_role&&(0,Pe.jsx)("span",{className:"text-muted-foreground italic",children:"anonymous"})]}),(0,Pe.jsx)(wse,{className:"text-sm max-w-md whitespace-pre-wrap leading-relaxed",children:e.text}),t&&(0,Pe.jsx)(wse,{className:"text-center align-middle","data-testid":"feedback-row-attachment-".concat(e.id),children:e.attachment&&e.attachment.attachment_id?(0,Pe.jsx)(doe,{attachmentId:e.attachment.attachment_id,contentType:e.attachment.content_type}):(0,Pe.jsx)("span",{className:"text-muted-foreground italic text-xs",children:"\u2014"})})]},e.id)),0===b.length&&(0,Pe.jsx)(yse,{children:(0,Pe.jsx)(wse,{c
2olSpan:t?7:6,className:"text-center text-sm text-muted-foreground py-12",children:"No feedback yet \u2014 share a packet, run a demo, and watch this fill up."})})]})]})}),p&&(0,Pe.jsx)(poe,{synthesis:p}),d.length>0&&(0,Pe.jsxs)("section",{className:"mt-8 no-print","data-testid":"synthesis-history",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono font-semibold",children:"PAST AI SYNTHESES"}),(0,Pe.jsx)("ul",{className:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-2",children:d.map(e=>{var t,n;return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("button",{"data-testid":"synthesis-history-".concat(e.id),onClick:()=>(async e=>{const t=await Qi.get("/feedback/syntheses/".concat(e));f(t.data),setTimeout(()=>{var e;return null===(e=document.getElementById("synthesis-panel"))||void 0===e?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})},100)})(e.id),className:"w-full text-left border rounded-md p-3 text-xs hover:border-[#0F172A] transition-colors ".concat((null===p||void 0===p?void 0:p.id)===e.id?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border"),children:[(0,Pe.jsxs)("div",{className:"font-mono uppercase tracking-wider text-[10px] text-muted-foreground",children:[new Date(e.created_at).toLocaleString()," \xb7 ",e.item_count," entries",e.filters&&Object.values(e.filters).some(Boolean)&&(0,Pe.jsxs)("span",{className:"ml-1.5 text-[#0F4FA8]",children:["\xb7 ",Object.entries(e.filters).filter(e=>Ue(e,2)[1]).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return"".concat(n.replace(/_/g," "),"=").concat(a)}).join(" \xb7 ")]})]}),(0,Pe.jsx)("div",{className:"mt-1 line-clamp-2",children:(null===(t=e.synthesis)||void 0===t||null===(n=t.executive_summary)||void 0===n?void 0:n.overall_sentiment)||"Synthesis"})]})},e.id)})})]})]})}function moe(e){let t=e.label,n=e.value,a=e.highlight;return(0,Pe.jsxs)("div",{className:"border rounded-md p-4 ".concat(a?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border"),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-1",children:n})]})}function poe(e){var t,n,a;let r=e.synthesis;const i=r.synthesis||{},s=i.executive_summary||{},o=i.willingness_to_pay||{},l=i.recommendations||{},c=i.representative_quotes||{};return(0,Pe.jsxs)("section",{id:"synthesis-panel",className:"mt-10 dp-root border border-[#0F172A] rounded-lg p-6 lg:p-8 bg-white","data-testid":"synthesis-panel",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-3 mb-5 no-print",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:["AROS \u2014 AI Synthesis \xb7 ",(null===(t=r.synthesis)||void 0===t?void 0:t._model)||"Claude Sonnet 4.5"]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-1 font-mono",children:["Generated ",new Date(r.created_at).toLocaleString()," \xb7 ",r.item_count," entries"]})]}),(0,Pe.jsxs)("div",{className:"flex gap-2",children:[(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline","data-testid":"copy-synthesis-btn",onClick:async()=>{var e;const t=[];t.push("# AROS \u2014 Validation Synthesis"),t.push("Generated: ".concat(new Date(r.created_at).toLocaleString())),t.push("Entries analysed: ".concat(r.item_count)),t.push(""),t.pu
2sh("## Executive Summary"),t.push("- Sentiment: ".concat(s.overall_sentiment||"\u2014")),t.push("- Average validation rating: ".concat(null!==(e=s.avg_rating)&&void 0!==e?e:"\u2014","/5")),t.push("- Positive themes: ".concat((s.top_positive_themes||[]).join("; "))),t.push("- Negative themes: ".concat((s.top_negative_themes||[]).join("; "))),t.push(""),t.push("## Trust Gaps"),(i.trust_gaps||[]).forEach(e=>t.push("- ".concat(e.gap," (").concat(e.frequency,"\xd7 ): ").concat(e.what_users_want))),t.push("## Missing Features"),(i.missing_features||[]).forEach(e=>t.push("- ".concat(e.feature," (").concat(e.frequency,"\xd7)").concat(e.example_user_role?" \u2014 e.g. ".concat(e.example_user_role):""))),t.push("## Value Drivers"),(i.value_drivers||[]).forEach(e=>t.push("- ".concat(e.feature," (").concat(e.frequency,"\xd7): ").concat(e.why_it_matters))),t.push("## Willingness To Pay \u2014 ".concat(o.signal_strength)),t.push("- Who would pay: ".concat((o.who_would_pay||[]).join(", "))),t.push("- What for: ".concat((o.what_they_would_pay_for||[]).join("; "))),t.push("- Problem solved: ".concat(o.problem_solved_in_their_words||"")),t.push("## Recommendations"),t.push("### Top product priorities"),(l.top_product_priorities||[]).forEach(e=>t.push("- ".concat(e))),t.push("### Top validation questions"),(l.top_validation_questions||[]).forEach(e=>t.push("- ".concat(e))),t.push("### Top concerns to dig into"),(l.top_concerns_to_dig_into||[]).forEach(e=>t.push("- ".concat(e)));try{const e=t.join("\n");if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}va.success("Synthesis copied to clipboard")}catch(n){va.error("Copy failed")}},children:[(0,Pe.jsx)(JH,{size:12,className:"mr-1.5"})," Copy"]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline","data-testid":"print-synthesis-btn",onClick:()=>window.print(),children:[(0,Pe.jsx)(Bse,{size:12,className:"mr-1.5"})," Print / PDF"]})]})]}),(null===(n=r.synthesis)||void 0===n?void 0:n._fallback)&&(0,Pe.jsxs)("div",{className:"mb-4 text-xs bg-amber-50 border border-amber-200 text-amber-900 rounded-md p-2.5",children:["AI model offline \u2014 keyword-based fallback synthesis shown. Configure ",(0,Pe.jsx)("code",{children:"EMERGENT_LLM_KEY"})," for full AI synthesis."]}),(0,Pe.jsxs)("div",{className:"dp-section",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:"EXECUTIVE SUMMARY"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm leading-relaxed","data-testid":"exec-summary-sentiment",children:s.overall_sentiment}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:"TOP POSITIVE THEMES"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1 text-sm",children:(s.top_positive_themes||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-emerald-600 shrink-0",children:"+"}),(0,Pe.jsx)("span",{children:e})]},t))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:"TOP NEGATIVE THEMES"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1 text-sm",children:(s.top_negative_themes||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-rose-600 shrink-0",children:"\u2212"}),(0,Pe.jsx)("span",{children:e})]},t))})]})]})]}),(0,Pe.jsx)(hoe,{}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 dp-section",children:[(0,Pe.jsx)(foe,{title:"TRUST GAPS",testid:"synth-trust-gaps",items:i.trust_gaps,render:e=>(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"font-semibold text-sm",children:[e.gap," ",(0,Pe.jsxs)("span",{className:"font-mono font-normal text-muted-foreground text-[10px]",children:["\xb7",e.frequency,"\xd7"]})]}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:e.what_users_want})]})}),(0,Pe.jsx)(foe,{title:"MISSING FEATURES",testid:"synth-missing-features",items:i.missing_features,render:e=>(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"font-semibold text-sm",children:[e.feature," ",(0,Pe.jsxs)("span",{className:"font-mono font-normal text-muted-foreground text-[10px]",children:["\xb7",e.frequency,"\xd7"]})]}),e.example_user_role&&(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5",children:["e.g. ",e.example_user_role]})]})})]}),(0,Pe.jsx)(hoe,{}),(0,Pe.jsx)(foe,{title:"VALUE DRIVERS",testid:"synth-value-drivers",items:i.value_drivers,render:e=>(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"font-semibold text-sm",children:[e.feature," ",(0,Pe.jsxs)("span",{className:"font-mono font-normal text-muted-foreground text-[10px]",children:["\xb7",e.frequency,"\xd7"]})]}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:e.why_it_matters})]})}),(0,Pe.jsx)(hoe,{}),(0,Pe.jsxs)("div",{className:"dp-section","data-testid":"synth-wtp",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:"WILLINGNESS TO PAY"}),o.signal_strength&&(0,Pe.jsxs)("span",{className:"pill text-[10px] uppercase font-mono ".concat("strong"===o.signal_strength?"bg-emerald-50 text-emerald-900 border border-emerald-200":"moderate"===o.signal_strength?"bg-amber-50 text-amber-900 border border-amber-200":"bg-rose-50 text-rose-900 border border-rose-200"),children:["Signal: ",o.signal_strength]})]}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm leading-relaxed italic",children:['"',o.problem_solved_in_their_words||"\u2014",'"']}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-3 text-sm",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:"WHO WOULD PAY"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1",children:(o.who_would_pay||[]).map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:"WHAT THEY WOULD PAY FOR"}),(0,Pe.jsx)("ul",{className:"mt-1.5 space-y-1",children:(o.what_they_would_pay_for||[]).map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]})]})]}),(0,Pe.jsx)(hoe,{}),(0,Pe.jsxs)("div",{className:"dp-section",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:"REPRESENTATIVE QUOTES"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-3",children:[(0,Pe.jsx)(xoe,{label:"Trust gaps",quotes:c.trust_gaps}),(0,Pe.jsx)(xoe,{label:"Missing features",quotes:c.missing_features}),(0,Pe.jsx)(xoe,{label:"Value drivers",quotes:c.value_drivers}),(0,Pe.jsx)(xoe,{label:"Willingness to pay",quotes:c.willingness_to_pay})]})]}),(0,Pe.jsx)(hoe,{}),(0,Pe.jsxs)("div",{className:"dp-section","data-testid":"synth-rec
2ommendations",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:"RECOMMENDATIONS"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-3",children:[(0,Pe.jsx)(goe,{title:"Top product priorities",items:l.top_product_priorities,accent:"#0F4FA8"}),(0,Pe.jsx)(goe,{title:"Top validation questions",items:l.top_validation_questions,accent:"#0F172A"}),(0,Pe.jsx)(goe,{title:"Top concerns to dig into",items:l.top_concerns_to_dig_into,accent:"#B91C1C"})]})]}),(0,Pe.jsxs)("footer",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider border-t border-border pt-3 mt-8",children:["AROS Validation Synthesis \xb7 Decision support \u2014 not a strategy ruling \xb7 Generated by ",(null===(a=r.synthesis)||void 0===a?void 0:a._model)||"AI"]})]})}function hoe(){return(0,Pe.jsx)("div",{className:"border-t border-border my-6"})}function foe(e){let t=e.title,n=e.items,a=e.testid,r=e.render;return(0,Pe.jsxs)("div",{"data-testid":a,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:t}),null!==n&&void 0!==n&&n.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-2.5",children:n.map((e,t)=>(0,Pe.jsx)("li",{className:"border-l-2 border-[#0F172A] pl-3",children:r(e)},t))}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2 italic",children:"No signal in this dataset."})]})}function xoe(e){let t=e.label,n=e.quotes;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 bg-secondary/30",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:t}),null!==n&&void 0!==n&&n.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-2 text-sm italic",children:n.map((e,t)=>(0,Pe.jsxs)("li",{children:['"',e,'"']},t))}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-1.5 italic",children:"\u2014"})]})}function goe(e){let t=e.title,n=e.items,a=e.accent;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] font-mono font-semibold",style:{color:a},children:t}),(0,Pe.jsx)("ol",{className:"mt-2 space-y-1.5 text-sm leading-relaxed list-decimal pl-4",children:(n||[]).map((e,t)=>(0,Pe.jsx)("li",{children:e.replace(/^\d+\.\s*/,"")},t))})]})}const voe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),o.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11
2H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"}))]]),boe=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:voe})));boe.displayName="FolderIcon";const yoe=boe,joe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),o.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),woe=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:joe})));woe.displayName="PulseIcon";const Noe=woe,Aoe="#041C3A",koe="#1E3A8A",Eoe="#64748B",Doe="#E2E8F0",_oe={queued:{bg:"#DBEAFE",text:"#1E40AF",border:"#93C5FD",label:"Lined up",live:!0},processing:{bg:"#FEF3C7",text:"#92400E",border:"#FDE68A",label:"Reviewing r\xe9sum\xe9s",live:!0},running:{bg:"#FEF3C7",text:"#92400E",border:"#FDE68A",label:"Reviewing r\xe9sum\xe9s",live:!0},completed:{bg:"#DCFCE7",text:"#15803D",border:"#86EFAC",label:"Ready",live:!1},failed:{bg:"#FEE2E2",text:"#991B1B",border:"#FCA5A5",label:"Needs another try",live:!1},cancelled:{bg:"#F1F5F9",text:"#475569",border:"#CBD5E1",label:"Stopped",live:!1}},Coe={strong:{bg:"#DCFCE7",text:"#15803D",border:"#86EFAC"},good:{bg:"#DBEAFE",text:"#1E40AF",border:"#93C5FD"},possible:{bg:"#FEF3C7",text:"#92400E",border:"#FDE68A"},low:{bg:"#FEE2E2",text:"#991B1B",border:"#FCA5A5"}};function Foe(e){let t=e.batchId,n=e.onComplete;const a=Ue((0,o.useState)(null),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=(0,o.useRef)(null),h=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{let e=!1;const a=async()=>{try{var a,r;const s=await Qi.get("/bulk-intake/batches/".concat(t,"/progress"));if(e)return;i(s.data),c(null);const o=null===(a=s.data)||void 0===a?void 0:a.status;null!==(r=_oe[o])&&void 0!==r&&r.live||void 0===o||(p.current&&(clearInterval(p.current),p.current=null),h.current||"completed"!==o||(h.current=!0,"function"===typeof n&&n(s.data)))}catch(zf){var s;if(e)return;const n=null===zf||void 0===zf||null===(s=zf.response)||void 0===s?void 0:s.status;c(404===n?"not_found":403===n?"forbidden":"unknown"),p.current&&(clearInterval(p.current),p.current=null)}};return a(),p.current=setInterval(a,1500),()=>{e=!0,p.current&&(clearInterval(p.current),p.current=null)}},[t,n]),"not_found"===l)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 text-sm",style:{borderColor:Doe},"data-testid":"batch-progress-not-found",children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",className:"mb-2",style:{color:Eoe}}),"Batch not found."]});if("forbidden"===l)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 text-sm",style:{borderColor:Doe},"data-testid":"batch-progress-forbidden",children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",className:"mb-2",style:{color:Eoe}}),"You don't have access to this batch."]});if(!r)return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 text-sm",style:{borderColor:Doe},"data-testid":"batch-progress-loading",children:[(0,Pe.jsx)(bM,{size:16,className:"animate-spin inline mr-2",style:{color:Eoe}}),"Loading batch progress\u2026"]});const f=r.status||"queued",x=_oe[f]||_oe.queued,g=Number(r.total)||0,v=Number(r.parsed_count)||0,b=Number(r.scored_count)||0,y=Number(r.failed_count)||0,j=g>0?Math.min(100,Math.round(b/g*100)):0,w=Array.isArray(r.top_so_far)?r.top_so_far:[];return(0,Pe.jsxs)("div",{className:"rounded-2xl border bg-white p-6",style:{borderColor:Doe},"data-testid":"batch-progress-live",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("div",{className:"w-10 h-10 rounded-lg grid place-items-center text-white shrink-0",style:{background:Aoe},children:(0,Pe.jsx)(BC,{size:18,weight:"duotone"})}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:koe},children:"Live progress"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-base mt-0.5",style:{color:Aoe}
2,children:"Reviewing r\xe9sum\xe9s in this batch"})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-mono font-semibold border",style:{background:x.bg,color:x.text,borderColor:x.border},"data-testid":"batch-progress-status-".concat(f),children:x.label.toUpperCase()}),x.live&&(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-mono",style:{color:Eoe},"data-testid":"batch-progress-polling",children:[(0,Pe.jsx)(Noe,{size:11,weight:"duotone"})," live"]})]})]}),(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between text-xs font-mono mb-1.5",style:{color:"#475569"},children:[(0,Pe.jsxs)("span",{"data-testid":"batch-progress-pct",children:[j,"%"]}),(0,Pe.jsxs)("span",{children:[b," / ",g," scored"]})]}),(0,Pe.jsx)("div",{className:"w-full h-2 rounded-full overflow-hidden",style:{background:"#F1F5F9"},role:"progressbar","aria-valuenow":j,"aria-valuemin":0,"aria-valuemax":100,"data-testid":"batch-progress-bar",children:(0,Pe.jsx)("div",{className:"h-full transition-all duration-500",style:{width:"".concat(j,"%"),background:"failed"===f?"#B91C1C":"completed"===f?"#15803D":Aoe}})})]}),(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-3 gap-3",children:[(0,Pe.jsx)(Soe,{label:"Parsed",value:v,testid:"batch-progress-parsed-count",total:g}),(0,Pe.jsx)(Soe,{label:"Scored",value:b,testid:"batch-progress-scored-count",total:g}),(0,Pe.jsx)(Soe,{label:"Failed",value:y,testid:"batch-progress-failed-count",total:g,accent:y>0?"#B91C1C":void 0})]}),w.length>0&&(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between text-left",onClick:()=>m(e=>!e),"data-testid":"batch-progress-top-toggle",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[u?(0,Pe.jsx)(IO,{size:12}):(0,Pe.jsx)(jC,{size:12}),(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:koe},children:["Top so far (",w.length,")"]})]}),(0,Pe.jsx)("span",{className:"text-xs font-mono",style:{color:Eoe},children:u?"Hide":"Show"})]}),u&&(0,Pe.jsx)("ul",{className:"mt-3 space-y-2","data-testid":"batch-progress-top-list",children:w.map((e,t)=>{var n,a;Number(null!==(n=null!==(a=e.job_fit_score)&&void 0!==a?a:e.fit_score)&&void 0!==n?n:0);const r=e.recommendation||"possible",i=Coe[r]||Coe.possible;return(0,Pe.jsx)("li",{className:"flex items-center gap-3 rounded-lg border p-2.5",style:{borderColor:Doe},"data-testid":"batch-progress-top-row-".concat(t+1),children:(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"font-medium text-sm truncate",style:{color:Aoe},children:e.candidate_name||e.candidate_user_id||"Anonymous candidate"}),(0,Pe.jsx)("span",{className:"inline-block mt-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-semibold border",style:{background:i.bg,color:i.text,borderColor:i.border},children:r.toUpperCase()})]})},"".concat(e.candidate_user_id||e.candidate_id||t,"-").concat(t))})})]}),"completed"===f&&(0,Pe.jsxs)("div",{className:"mt-5 flex items-center gap-2 text-sm font-brand",style:{color:"#15803D"},"data-testid":"batch-progress-completed-note",children:[(0,Pe.jsx)(Yf,{size:16,weight:"duotone"})," All r\xe9sum\xe9s scored. Open the batch to review ranked candidates."]}),"failed"===f&&r.last_error&&(0,Pe.jsxs)("div",{className:"mt-5 rounded-md border p-3 text-xs font-mono",style:{borderColor:"#FCA5A5",background:"#FEE2E2",color:"#991B1B"},"data-testid":"batch-progress-last-error",children:[(0,Pe.jsx)(AN,{size:12,weight:"bold",className:"inline mr-1.5"}),r.last_error]})]})}function Soe(e){let t=e.label,n=e.value,a=e.total,r=e.testid,i=e.accent;const s=a>0?Math.round(n/a*100):0;return(0,Pe.jsxs)("div",{className:"rounded-lg border p-3",style:{borderColor:Doe,background:"#FFFFFF"},"data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:Eoe},children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-1 tracking-tight",style:{color:i||Aoe},children:n}),(0,Pe.jsxs)("div",{className:"text-[10px] font-mono mt-0.5",style:{color:Eoe},children:[s,"% of ",a]})]})}const Moe=[{v:"linkedin",l:"LinkedIn"},{v:"indeed",l:"Indeed"},{v:"referral",l:"Referral"},{v:"career_fair",l:"Career Fair"},{v:"website",l:"Company Website"},{v:"import",l:"Bulk Import"},{v:"other",l:"Other"}];function Ooe(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(0),2),l=s[0],c=s[1],d=Ue((0,o.useState)("upload"),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=(0,o.useRef)(new Set),g=()=>Qi.get("/bulk-intake/batches").then(e=>{const t=new Set,a=[];for(const n of e.data)t.has(n.id)||(t.add(n.id),a.push(n));n(a)});(0,o.useEffect)(()=>{g()},[l]),(0,o.useEffect)(()=>{const e=t.some(e=>"queued"===e.status||"processing"===e.status);if(!e&&(!r||"completed"===r.status))return;let n=0;const a=setInterval(()=>{n+=1,n>450?clearInterval(a):(g(),null!==r&&void 0!==r&&r.id&&Qi.get("/bulk-intake/batches/".concat(r.id)).then(e=>i(e.data)))},4e3);return()=>clearInterval(a)},[t,r]);const v=e=>Qi.get("/bulk-intake/batches/".concat(e)).then(e=>i(e.data));return(0,o.useEffect)(()=>{r&&"completed"===r.status&&(x.current.has(r.id)||(x.current.add(r.id),f(r)))},[r]),(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"bulk-intake-page",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Bulk Intake"}],backFallback:"/app/employer"}),(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Bulk Intake"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight",children:"See what each resume shows"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 text-sm max-w-2xl leading-relaxed",children:"Upload 25\u2013100 resumes as PDFs or one ZIP file. AROS reads each resume, checks for duplicates for the job you select, and groups candidates by what their experience supports and what still needs to be confirmed. No one is automatically rejected or placed in an interview order."})]})}),(0,Pe.jsxs)(gZ,{value:u,onValueChange:m,className:"mt-6",children:[(0,Pe.jsxs)(vZ,{children:[(0,Pe.jsxs)(bZ,{value:"upload","data-testid":"tab-bulk-upload",children:[(0,Pe.jsx)(kse,{size:14,className:"mr-1.5"})," Upload"]}),(0,Pe.jsxs)(bZ,{value:"batches","data-testid":"tab-bulk-batches",children:[(0,Pe.jsx)(yoe,{size:14,className:"mr-1.5"})," Batches (",t.length,")"]})]}),(0,Pe.jsx)(yZ,{value:"upload",className:"mt-5",children:(0,Pe.jsx)(Roe,{onCreated:e=>{c(e=>e+1),v(e),m("batches")}})}),(0,Pe.jsxs)(yZ,{value:"batches",className:"mt-5",children:[(0,Pe.jsx)(Poe,{batches:t,onOpen:v,active:r}),r&&(0,Pe.jsx)("div",{className:"mt-5",children:(0,Pe.jsx)(Foe,{batchId:r.id,onComplete:()=>{v(r.id),g()}})}),r&&(0,Pe.jsx)(Toe,{batch:r,onRefresh:()=>v(r.id),onShowSummary:()=>f(r)})]})]}),(0,Pe.jsx)(Voe,{batch:h,onClose:()=>f(null)})]})}function Roe(e){let t=e.onCreated;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)(""),2),s=i[0],l=i[1],c=(0,o.useState)(()=>{try{const e=window.localStorage.getItem("aros_bulk_intake_source");if(e&&Moe.some(t=>t.v===e))return e}catch(e){}return""}),d=Ue(c,2),u=d[0],m=d[1],p=Ue((0,o.useState)(""),2),h=p[0],f=p[1],x=Ue((0,o.useState)([]),2),g=x[0],v=x[1],b=Ue((0,o.useState)(!1),2),y=b[0],j=b[1],w=(0,o.useRef)(null),N=Ue((0,o.useState)(!1),2),A=N[0],k=N[1];(0,o.useEffect)(()=>{Qi.get("/jobs/mine").then(e=>r(e.data))},[]);const E=e=>{v(t=>{const n=[...t,...e];n.length>100&&va.warning("Capped at 100 files \u2014 extras ignored.");const a=n.slice(0,100),r=a.filter(e=>e.size>5242880);return r.length&&va.warning("".concat(r.length," file(s) over 5MB will be skipped by the server.")),a})},D=g.reduce((e,t)=>e+t.size,0);return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-6","data-testid":"bulk-upload-card",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Assign to job"}),(0,Pe.jsxs)(Sf,{value:s,onValueChange:l,children:[(0,Pe.jsx)(Of,{className:"mt-1.5","data-testid":"bulk-job-select",children:(0,Pe.jsx)(Mf,{placeholder:"Pick a job\u2026"})}),(0,Pe.jsx)(Pf,{children:a.map(e=>(0,Pe.jsx)(Lf,{value:e.id,"data-testid":"bulk-job-option-".concat(e.id),children:e.title},e.id))})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Source"}),(0,Pe.jsxs)(Sf,{value:u,onValueChange:e=>{m(e);try{window.localStorage.setItem("aros_bulk_intake_source",e)}catch(t){}},children:[(0,Pe.jsx)(Of,{className:"mt-1.5","data-testid":"bulk-source-select",children:(0,Pe.jsx)(Mf,{placeholder:"Select a source"})}),(0,Pe.jsx)(Pf,{children:Moe.map(e=>(0,Pe.jsx)(Lf,{value:e.v,children:e.l},e.v))})]})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"bulk-name",className:"text-xs uppercase tracking-wider font-mono text-muted-foreground",children:"Batch name (optional)"}),(0,Pe.jsx)(Io,{id:"bulk-name","data-testid":"bulk-batch-name",placeholder:"e.g. LinkedIn drop Mar 6",value:h,onChange:e=>f(e.target.value),className:"mt-1.5"})]})]}),(0,Pe.jsxs)("div",{"data-testid":"bulk-dropzone",onClick:()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.click()},onDragOver:e=>{e.preventDefault(),k(!0)},onDragLeave:()=>k(!1),onDrop:e=>{e.preventDefault(),k(!1),E(Array.from(e.dataTransfer.files||[]))},className:"mt-5 border-2 border-dashed rounded-md p-8 text-center cursor-pointer transition-colors ".concat(A?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border hover:border-[#0F172A]"),children:[(0,Pe.jsx)(kse,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground"}),(0,Pe.jsx)("div",{className:"mt-2 text-sm font-semibold",children:"Drop resumes here"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Up to 100 PDFs, or a single ZIP."}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-2","data-testid":"bulk-upload-limits",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-amber-300 bg-amber-50 px-2.5 py-1 text-[11px] font-medium text-amber-900",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill"}),"Max 5 MB per file"]}),(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-300 bg-slate-50 px-2.5 py-1 text-[11px] font-medium text-slate-700",children:"PDF or ZIP"})]}),(0,Pe.jsx)("input",{ref:w,type:"file",accept:".pdf,.zip,application/pdf,application/zip",multiple:!0,className:"hidden","data-testid":"bulk-file-input",onChange:e=>E(Array.from(e.target.files||[]))})]}),g.length>0&&(0,Pe.jsxs)("div",{className:"mt-4","data-testid":"bulk-file-list",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono font-semibold",children:[g.length," file",1===g.length?"":"s"," \xb7 ",(D/1024/1024).toFixed(2)," MB total"]}),(0,Pe.jsx)("ul",{className:"mt-2 space-y-1 max-h-40 overflow-auto",children:g.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-xs flex items-center justify-between border border-border rounded px-2 py-1",children:[(0,Pe.jsxs)("span",{className:"truncate flex items-center gap-1.5",children:[(0,Pe.jsx)(uv,{size:12})," ",e.name]}),(0,Pe.jsx)("button",{onClick:()=>v(e=>
2e.filter((e,n)=>n!==t)),className:"text-muted-foreground hover:text-rose-600",children:"\u2715"})]},t))})]}),(0,Pe.jsx)("div",{className:"flex justify-end mt-5",children:(0,Pe.jsxs)(Lo,{"data-testid":"bulk-submit-btn",onClick:async()=>{if(s)if(u)if(g.length){j(!0);try{const e=new FormData;g.forEach(t=>e.append("files",t)),e.append("job_id",s),e.append("source",u),e.append("name",h);const n=(await Qi.post("/bulk-intake/batches",e,{headers:{"Content-Type":"multipart/form-data"}})).data;va.success("Batch created \u2014 processing ".concat(n.uploaded," resume").concat(1===n.uploaded?"":"s","\u2026")),v([]),f(""),t(n.id)}catch(zf){var e,n;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Upload failed")}finally{j(!1)}}else va.error("Add at least one resume");else va.error("Pick a source");else va.error("Pick a job")},disabled:y||!g.length||!s,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone",className:"mr-1.5"}),y?"Uploading\u2026":"Process ".concat(g.length||0," resume").concat(1===g.length?"":"s")]})})]})}function Hoe(e){let t=e.status;const n={queued:{bg:"bg-secondary text-foreground border-border",l:"Queued"},processing:{bg:"bg-amber-50 text-amber-900 border-amber-200",l:"Processing"},completed:{bg:"bg-emerald-50 text-emerald-900 border-emerald-200",l:"Completed"},failed:{bg:"bg-rose-50 text-rose-900 border-rose-200",l:"Failed"},cancelled:{bg:"bg-rose-50 text-rose-900 border-rose-200",l:"Cancelled"}},a=n[t]||n.queued;return(0,Pe.jsx)("span",{className:"pill text-[10px] font-mono uppercase border ".concat(a.bg),"data-testid":"batch-status-".concat(t),children:a.l})}function Poe(e){let t=e.batches,n=e.onOpen,a=e.active;return t.length?(0,Pe.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3","data-testid":"bulk-batch-list",children:t.map(e=>{const t=e.counts||{},r=t.uploaded?Math.round((t.parsed+t.failed)/t.uploaded*100):0,i=(null===a||void 0===a?void 0:a.id)===e.id;return(0,Pe.jsx)("li",{children:(0,Pe.jsxs)("button",{"data-testid":"bulk-batch-card-".concat(e.id),onClick:()=>n(e.id),className:"w-full text-left border rounded-md p-4 transition-colors ".concat(i?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border hover:border-[#0F172A]"),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Pe.jsx)("div",{className:"font-semibold text-sm truncate",children:e.name}),(0,Pe.jsx)(Hoe,{status:e.status})]}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground mt-1",children:[e.job_title," \xb7 ",e.source]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-4 gap-1 mt-3 text-[11px]",children:[(0,Pe.jsx)(Loe,{label:"Up",v:t.uploaded||0}),(0,Pe.jsx)(Loe,{label:"Parsed",v:t.parsed||0}),(0,Pe.jsx)(Loe,{label:"Dup",v:t.duplicates||0}),(0,Pe.jsx)(Loe,{label:"Fail",v:t.failed||0,accent:"rose"})]}),"completed"!==e.status&&(0,Pe.jsx)("div",{className:"h-1 bg-secondary rounded-full mt-3 overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F4FA8] transition-all",style:{width:"".concat(r,"%")}})})]})},e.id)})}):(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"No batches yet. Upload some resumes to get started."})}function Loe(e){let t=e.label,n=e.v;const a="rose"===e.accent?"text-rose-700":"text-foreground";return(0,Pe.jsxs)("div",{className:"text-center bg-secondary rounded p-1",children:[(0,Pe.jsx)("div",{className:"text-[9px] uppercase tracking-wider font-mono text-muted-foreground",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-sm ".concat(a),children:n})]})}function Toe(e){var t,n,a,r;let i=e.batch,s=e.onRefresh,o=e.onShowSummary;const l=i.groups||{top:[],hidden_gem:[],needs_review:[],low_fit:[]},c=i.counts||{},d=i.summary||{},u="queued"===i.status||"processing"===i.status,m=i.eta_seconds,p=null==m?null:m<60?"~".concat(m,"s"):"~".concat(Math.ceil(m/60),"m");return(0,Pe.jsxs)("section",{className:"mt-8 border-t border-border pt-6","data-testid":"batch-detail",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"BATCH DETAIL"}),(0,Pe.jsx)("h2",{className:"font-display font-bold text-2xl mt-1",children:i.name}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-1 font-mono",children:[i.job_title," \xb7 ",i.source," \xb7 ",i.created_by_email," \xb7 ",new Date(i.created_at).toLocaleStr
2ing(),p&&"processing"===i.status&&(0,Pe.jsxs)("span",{className:"ml-2 text-[#0F4FA8]",children:["\xb7 ETA ",p]})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Hoe,{status:i.status}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:s,"data-testid":"batch-refresh-btn",children:[(0,Pe.jsx)(bM,{size:12,className:"mr-1.5"})," Refresh"]}),"completed"===i.status&&o&&(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:o,"data-testid":"batch-show-summary-btn",className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:12,className:"mr-1.5",weight:"duotone"}),"Show summary"]}),u&&(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:async()=>{if(window.confirm("Cancel this batch? In-flight resumes will finish but no new work will start."))try{const e=await Qi.post("/bulk-intake/batches/".concat(i.id,"/cancel"));e.data.already?va.info("This batch already completed before cancellation."):va.success("Batch cancelled"),s()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Cancel failed")}},"data-testid":"batch-cancel-btn",className:"border-rose-300 text-rose-700 hover:bg-rose-50",children:[(0,Pe.jsx)($f,{size:12,className:"mr-1.5"})," Cancel"]})]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-7 gap-3 mt-5",children:[(0,Pe.jsx)(Ioe,{label:"Uploaded",v:c.uploaded||0}),(0,Pe.jsx)(Ioe,{label:"Queued",v:c.queued||0}),(0,Pe.jsx)(Ioe,{label:"Processing",v:c.processing||0,highlight:!0}),(0,Pe.jsx)(Ioe,{label:"Retrying",v:c.retrying||0,accent:c.retrying?"amber":void 0}),(0,Pe.jsx)(Ioe,{label:"Parsed",v:c.parsed||0,accent:"emerald"}),(0,Pe.jsx)(Ioe,{label:"Duplicates",v:c.duplicates||0}),(0,Pe.jsx)(Ioe,{label:"Failed",v:(c.failed||0)+(c.cancelled||0),accent:"rose"})]}),(0,Pe.jsxs)("div",{className:"mt-3","data-testid":"enrichment-counts-section",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground mb-2",children:"AI Enrichment"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Ioe,{label:"Resumes processed",v:c.fit_scored||0,accent:"emerald","data-testid":"enrichment-fit-scored"}),(0,Pe.jsx)(Ioe,{label:"Extra signal added",v:c.human_potential_generated||0,accent:"emerald","data-testid":"enrichment-hp-generated"}),(0,Pe.jsx)(Ioe,{label:"Job qualities ready to review",v:c.trait_alignment_generated||0,accent:"emerald","data-testid":"enrichment-trait-generated"}),(0,Pe.jsx)(Ioe,{label:"Could not process",v:c.enrichment_failed||0,accent:c.enrichment_failed?"rose":void 0,"data-testid":"enrichment-failed"})]})]}),"completed"!==i.status&&(0,Pe.jsxs)("div",{className:"mt-4 bg-amber-50 border border-amber-200 rounded-md p-3 text-xs text-amber-900 inline-flex items-center gap-2",children:[(0,Pe.jsx)(bM,{size:14,className:"animate-spin"})," Processing in the background. Refresh in a few seconds to see progress."]}),"completed"===i.status&&d.recommended_next_action&&(0,Pe.jsxs)("div",{className:"mt-5 bg-[#0F172A] text-white rounded-md p-4","data-testid":"batch-recommended-action",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] font-mono text-white/60",children:"RECOMMENDED NEXT ACTION"}),(0,Pe.jsx)("div",{className:"text-base font-semibold mt-1",children:d.recommended_next_action})]}),(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-1 lg:grid-cols-2 gap-5",children:[(0,Pe.jsx)(Zoe,{title:"Ready to look at",icon:(0,Pe.jsx)(Yf,{size:14,weight:"duotone"}),testid:"group-top",rows:l.top,accent:"emerald",emptyHint:"Nothing here yet."}),(0,Pe.jsx)(Zoe,{title:"Needs more information",icon:(0,Pe.jsx)(AN,{size:14,weight:"duotone"}),testid:"group-needs-review",rows:[...l.needs_review||[],...l.hidden_gem||[],...l.low_fit||[]],accent:"amber",emptyHint:"Nothing here yet."})]}),null!==(t=d.parsing_failures)&&void 0!==t&&t.length||null!==(n=d.duplicates_detected)&&void 0!==n&&n.length?(0,Pe.jsxs)("div",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(null===(a=d.parsing_failures)||void 0===a?void 0:a.length)>0&&(0,Pe.jsxs)("div",{className:"border border-rose-200 bg-rose-50 rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-rose-800 font-mono font-semibold",children:"PARSING FAILURES"}),(0,Pe.jsx)("ul",{className:"mt-2 text-xs space-y-1 text-rose-900",children:d.parsing_failures.slice(0,10).map((e,t)=>(0,Pe.jsxs)("li",{children:["\u2022 ",e]},t))})]}),(null===(r=d.duplicates_detected)||void 0===r?void 0:r.length)>0&&(0,Pe.jsxs)("div",{className:"border border-amber-200 bg-amber-50 rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-amber-900 font-mono font-semibold",children:"DUPLICATES DETECTED"}),(0,Pe.jsx)("ul",{className:"mt-2 text-xs space-y-1 text-amber-900",children:d.duplicates_detected.slice(0,10).map((e,t)=>(0,Pe.jsxs)("li",{children:["\u2022 ",e]},t))})]})]}):null]})}function Ioe(e){let t=e.label,n=e.v,a=e.highlight,r=e.accent,i=e["data-testid"];const s="rose"===r?"border-rose-200 bg-rose-50":"emerald"===r?"border-emerald-200 bg-emerald-50":a?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border";return(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(s),"data-testid":i,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-0.5",children:n})]})}function Zoe(e){let t=e.title,n=e.icon,a=e.testid,r=e.rows,i=e.accent,s=e.emptyHint;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4","data-testid":a,children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] text-[#0F4FA8] font-mono font-semibold",children:[n," ",t," ",(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:["\xb7 ",(null===r||void 0===r?void 0:r.length)||0]})]}),null!==r&&void 0!==r&&r.length?(0,Pe.jsx)("ul",{className:"mt-3 space-y-2",children:r.slice(0,10).map(e=>(0,Pe.jsx)(Boe,{row:e,accent:i},e.application_id||e.filename))}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground italic mt-2",children:s})]})}function Boe(e){var t;let n=e.row;return(0,Pe.jsxs)("li",{className:"border border-border rounded p-3 hover:border-[#0F172A] transition-colors","data-testid":"bulk-candidate-".concat(n.application_id),children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Pe.jsx)("div",{className:"font-semibold text-sm truncate",children:n.candidate_name||n.filename}
2),(0,Pe.jsx)(VM,{email:n.candidate_email,phone:n.candidate_phone,size:"xs"})]}),(0,Pe.jsx)("div",{className:"text-[11px] text-muted-foreground truncate",children:n.candidate_headline||n.filename}),(n.candidate_email||n.candidate_phone)&&(0,Pe.jsxs)("div",{className:"text-[10.5px] font-mono text-muted-foreground/90 truncate mt-1","data-testid":"bulk-contact-".concat(n.application_id),title:[n.candidate_email,n.candidate_phone].filter(Boolean).join(" \xb7 "),children:[n.candidate_email&&(0,Pe.jsx)("span",{children:n.candidate_email}),n.candidate_email&&n.candidate_phone&&(0,Pe.jsx)("span",{children:" \xb7 "}),n.candidate_phone&&(0,Pe.jsx)("span",{children:n.candidate_phone})]})]}),(0,Pe.jsx)("div",{className:"text-right shrink-0","data-testid":"bulk-intake-fit-band",children:(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:n.duplicate?"May be a duplicate":"Ready to look at"})})]}),n.top_reason&&(0,Pe.jsxs)("div",{className:"mt-2 leading-relaxed",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:"What we found"}),(0,Pe.jsxs)("div",{className:"text-[11px] mt-1 border-l-2 border-emerald-500 pl-2",children:[(0,Pe.jsx)("span",{className:"text-emerald-700 font-semibold",children:"\xb7"})," ",n.top_reason]})]}),(null===(t=n.risks)||void 0===t?void 0:t.length)>0&&(0,Pe.jsxs)("div",{className:"mt-2 leading-relaxed",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] font-mono text-muted-foreground",children:"What we did not find in the information they submitted"}),(0,Pe.jsx)("ul",{className:"text-[11px] mt-1 border-l-2 border-amber-500 pl-2 space-y-0.5",children:n.risks.slice(0,3).map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]}),n.application_id&&(0,Pe.jsxs)(Yn,{to:"/app/employer/applications/".concat(n.application_id,"/packet"),"data-testid":"bulk-packet-link-".concat(n.application_id),className:"mt-2 inline-flex items-center gap-1 text-xs text-[#0F4FA8] hover:text-[#0F172A]",children:["Open Decision Packet ",(0,Pe.jsx)(eg,{size:11})]})]})}function Voe(e){var t,n,a,r,i,s,o,l,c,d,u,m,p;let h=e.batch,f=e.onClose;const x=zt();if(!h)return null;const g=h.groups||{},v={recommended:(g.top||[]).length,hidden_talent:(g.hidden_gem||[]).length,second_look:(g.needs_review||[]).length,not_fit:(g.low_fit||[]).length},b=(null!==(t=null===(n=h.counts)||void 0===n?void 0:n.parsed)&&void 0!==t?t:0)+(null!==(a=null===(r=h.counts)||void 0===r?void 0:r.duplicates)&&void 0!==a?a:0)+(null!==(i=null===(s=h.counts)||void 0===s?void 0:s.failed)&&void 0!==i?i:0),y=null!==(o=null===(l=h.counts)||void 0===l?void 0:l.parsed)&&void 0!==o?o:Object.values(v).reduce((e,t)=>e+t,0),j=[{key:"recommended",label:"Ready to look at",color:"#059669",bg:"#ECFDF5",border:"#A7F3D0",Icon:Yf,copy:"Their submitted information shows what your job asks for."},{key:"hidden_talent",label:"Ready to look at",color:"#7C3AED",bg:"#F5F3FF",border:"#DDD6FE",Icon:ux,copy:"Some related information is in what they submitted."},{key:"second_look",label:"Needs more information",color:"#D97706",bg:"#FFFBEB",border:"#FDE68A",Icon:Ix,copy:"Their submitted information does not cover parts of the job."},{key:"not_fit",label:"Needs more information",color:"#6B7280",bg:"#FAFAFA",border:"#E5E7EB",Icon:Vj,copy:"Very little of what your job asks for is in their submitted information."}];return(0,Pe.jsx)(Kd,{open:!!h,onOpenChange:e=>!e&&f(),children:(0,Pe.jsxs)(Qd,{className:"sm:max-w-2xl","data-testid":"bulk-result-modal",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{children:[y," resume",1===y?"":"s"," processed",h.job_title?" for ".concat(h.job_title):""]}),(0,Pe.jsx)(tu,{children:"AROS has finished reading your batch. Candidates are grouped by what their experience supports and what still needs to be confirmed. Choose a group to start reviewing."})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:j.map(e=>{const t=v[e.key],n=e.Icon;return(0,Pe.jsxs)("button",{type:"button",onClick:()=>{return t=e.key,f(),void x("/app/employer/applicants?job=".concat(h.job_id,"&verdict=").concat(t));var t},disabled:0===t,"data-testid":"bulk-result-tile-".concat(e.key),className:"text-left rounded-xl border p-4 transition-colors disabled:opacity-50 disabled:cursor-not-allowed hover:border-[#0F172A]",style:{background:e.bg,borderColor:e.border},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:e.color},children:[(0,Pe.jsx)(n,{size:14,weight:"duotone"}),e.label]}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-2 tracking-tight",style:{color:"#0F172A"},"data-testid":"bulk-result-count-".concat(e.key),children:t}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:e.copy}),t>0&&(0,Pe.jsxs)("div",{className:"text-[11px] mt-2 inline-flex items-center gap-1",style:{color:e.color},children:["Open this bucket ",(0,Pe.jsx)(eg,{size:11})]})]},e.key)})}),((null===(c=h.counts)||void 0===c?void 0:c.duplicates)||0)+((null===(d=h.counts)||void 0===d?void 0:d.failed)||0)>0&&(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-2","data-testid":"bulk-result-aside",children:["Of ",b," files received: ",(null===(u=h.counts)||void 0===u?void 0:u.duplicates)||0," duplicate",1===((null===(m=h.counts)||void 0===m?void 0:m.duplicates)||0)?"":"s",","," ",(null===(p=h.counts)||void 0===p?void 0:p.failed)||0," could not be parsed."]}),(0,Pe.jsx)(Jd,{children:(0,Pe.jsx)(Lo,{variant:"outline",onClick:f,"data-testid":"bulk-result-stay",children:"Stay on this page"})})]})})}const zoe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Zm-5.49,142.36A328.69,328.69,0,0,1,128,210.16a328.69,328.69,0,0,1-44.51-31.8C61.82,159.77,36,131.42,36,102A42,42,0,0,1,78,60c17.8,0,32.7,9.4,38.89,24.54a12,12,0,0,0,22.22,0C145.3,69.4,160.2,60,178,60a42,42,0,0,1,42,42C220,131.42,194.18,159.77,172.51,178.36Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,102c0,66-104,122-104,122S24,168,24,102A54,54,0,0,1,78,48c22.59,0,41.94,12.31,50,32,8.06-19.69,27.41-32,50-32A54,54,0,0,1,232,102Z",opacity:"0.2"}),o.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M178,42c-21,0-39.26,9.47-50,25.34C117.26,51.47,99,42,78,42a60.07,60.07,0,0,0-60,60c0,29.2,18.2,59.59,54.1,90.31a334.68,334.68,0,0,0,53.06,37,6,6,0,0,0,5.68,0,334.68,334.68,0,0,0,53.06-37C219.8,161.59,238,131.2,238,102A60.07,60.07,0,0,0,178,42ZM128,217.11C111.59,207.64,30,157.72,30,102A48.05,48.05,0,0,1,78,54c20.28,0,37.31,10.83,44.45,28.27a6,6,0,0,0,11.1,0C140.69,64.83,157.72,54,178,54a48.05,48.05,0,0,1,48,48C226,157.72,144.41,207.64,128,217.11Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M178,44c-21.44,0-39.92,10.19-50,27.07C117.92,54.19,99.44,44,78,44a58.07,58.07,0,0,0-58,58c0,28.59,18,58.47,53.4,88.79a333.81,333.81,0,0,0,52.7,36.73,4,4,0,0,0,3.8,0,333.81,333.81,0,0,0,52.7-36.73C218,160.47,236,130.59,236,102A58.07,58.07,0,0,0,178,44ZM128,219.42c-14-8-100-59.35-100-117.42A50.06,50.06,0,0,1,78,52c21.11,0,38.85,11.31,46.3,29.51a4,4,0,0,0,7.4,0C139.15,63.3
21,156.89,52,178,52a50.06,50.06,0,0,1,50,50C228,160,142,211.46,128,219.42Z"}))]]),qoe=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:zoe})));qoe.displayName="HeartIcon";const Uoe=qoe,Woe=["1-10","11-50","51-200","201-500","501-1000","1000-5000","5000+"],Yoe={name:"",website:"",industry:"",employee_count:"",linkedin_url:""};function Koe(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)(Yoe),2),f=p[0],x=p[1],g=Ue((0,o.useState)(!1),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1];(0,o.useEffect)(()=>{(async()=>{i(!0);try{var e;const t=(await Qi.get("/companies/intelligence")).data;if(n(t.profile),null!==(e=t.profile)&&void 0!==e&&e.inputs){const e=Object.fromEntries(Object.entries(t.profile.inputs).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return[n,null!==a&&void 0!==a?a:""]}));x(h(h({},Yoe),e))}t.profile||m(!0)}catch(zf){va.error("Failed to load company intelligence")}finally{i(!1)}})()},[]);return r?(0,Pe.jsx)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto",children:(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground","data-testid":"company-intel-loading",children:"Loading\u2026"})}):(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"company-intelligence-page",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Company Context"}],backFallback:"/app/employer"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"AROS COMPANY INTELLIGENCE"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight flex items-center gap-3",children:[(0,Pe.jsx)(nv,{size:32,weight:"duotone",className:"text-[#0F4FA8]"})," Company Context"]}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 max-w-3xl",children:"AROS looks at your company and builds a profile of what makes someone succeed here \u2014 the traits to look for, where great people tend to come from, and what to ask in interviews."}),u&&(0,Pe.jsxs)("section",{className:"mt-8 border border-border rounded-lg p-6 bg-secondary/30","data-testid":"company-intel-form",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Pe.jsx)(ux,{size:18,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-lg",children:"Tell AROS about your company"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(Goe,{label:"Company name *",full:!0,children:(0,Pe.jsx)(Io,{"data-testid":"company-intel-name",value:f.name,onChange:e=>x(h(h({},f),{},{name:e.target.value})),placeholder:"e.g. Apex Talent Group"})}),(0,Pe.jsx)(Goe,{label:"Website",children:(0,Pe.jsx)(Io,{"data-testid":"company-intel-website",value:f.website,onChange:e=>x(h(h({},f),{},{website:e.target.value})),placeholder:"https://..."})}),(0,Pe.jsx)(Goe,{label:"Industry (optional)",children:(0,Pe.jsx)(Io,{"data-testid":"company-intel-industry",value:f.industry,onChange:e=>x(h(h({},f),{},{industry:e.target.value})),placeholder:"e.g. Professional Services"})}),(0,Pe.jsx)(Goe,{label:"Employee count (optional)",children:(0,Pe.jsxs)(Sf,{value:f.employee_count||"none",onValueChange:e=>x(h(h({},f),{},{employee_count:"none"===e?"":e})),children:[(0,Pe.jsx)(Of,{"data-testid":"company-intel-employee-count",children:(0,Pe.jsx)(Mf,{placeholder:"Select\u2026"})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"none",children:"\u2014 Not specified \u2014"}),Woe.map(e=>(0,Pe.jsx)(Lf,{value:e,children:e},e))]})]})}),(0,Pe.jsx)(Goe,{label:"LinkedIn company URL (optional)",full:!0,children:(0,Pe.jsx)(Io,{"data-testid":"company-intel-linkedin",value:f.linkedin_url,onChange:e=>x(h(h({},f),{},{linkedin_url:e.target.value})),placeholder:"https://linkedin.com/company/..."})})]}),(0,Pe.jsxs)("div",{className:"mt-5 flex items-center gap-3",children:[(0,Pe.jsxs)(Lo,{"data-testid":"company-intel-generate-btn",onClick:async()=>{if(f.name.trim()){c(!0);try{const e=(await Qi.post("/companies/intelligence/generate",f)).data;n(e.profile),m(!1),va.success("Company Context Profile generated")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Generation failed")}finally{c(!1)}}else va.error("Company name is required")},disabled:l||!f.name.trim(),className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"}),l?"Generating with Claude 4.5\u2026":t?"Regenerate Profile":"Generate Intelligence Profile"]}),t&&(0,Pe.jsx)(Lo,{variant:"ghost",onClick:()=>m(!1),"data-testid":"company-intel-cancel-form",children:"Cancel"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:"Phase 1: This profile is informational only. It does not affect scoring or matching yet."})]}),t&&!v&&(0,Pe.jsxs)("section",{className:"mt-8 space-y-6","data-testid":"company-intel-display",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"Industry Classification"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-1","data-testid":"company-intel-industry-classification",children:t.industry_classification||"\u2014"})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[!u&&(0,Pe.jsxs)(Lo,{"data-testid":"company-intel-regenerate-btn",variant:"outline",onClick:()=>m(!0),className:"rounded-md",children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," Regenerate"]}),(0,Pe.jsxs)(Lo,{"data-testid":"company-intel-edit-btn",variant:"outline",onClick:()=>{w({industry_classification:t.industry_classification||"",company_
2summary:t.company_summary||"",success_traits:(t.success_traits||[]).join("\n"),interview_focus_areas:(t.interview_focus_areas||[]).join("\n"),hidden_talent_backgrounds:(t.hidden_talent_backgrounds||[]).join("\n"),hiring_recommendations:(t.hiring_recommendations||[]).join("\n"),culture_indicators:(t.culture_indicators||[]).join("\n"),successful_employee_profile:t.successful_employee_profile||""}),b(!0)},className:"rounded-md",children:[(0,Pe.jsx)(xN,{size:14,className:"mr-1.5",weight:"duotone"})," Edit"]})]})]}),(0,Pe.jsx)(Qoe,{icon:(0,Pe.jsx)(xM,{size:18,weight:"duotone"}),title:"Company Summary",testId:"company-intel-summary-card",children:(0,Pe.jsx)("p",{className:"text-sm leading-relaxed text-foreground/90","data-testid":"company-intel-summary",children:t.company_summary||"\u2014"})}),(0,Pe.jsx)(Qoe,{icon:(0,Pe.jsx)(Hg,{size:18,weight:"duotone"}),title:"What Successful Employees Here May Look Like",testId:"company-intel-employee-profile-card",children:(0,Pe.jsx)("p",{className:"text-sm leading-relaxed text-foreground/90","data-testid":"company-intel-successful-employee-profile",children:t.successful_employee_profile||"\u2014"})}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(Xoe,{icon:(0,Pe.jsx)(BC,{size:18,weight:"duotone"}),title:"Success Traits",items:t.success_traits,testId:"company-intel-success-traits",accent:"#0F4FA8"}),(0,Pe.jsx)(Xoe,{icon:(0,Pe.jsx)(dM,{size:18,weight:"duotone"}
2),title:"Suggested Interview Focus",items:t.interview_focus_areas,testId:"company-intel-interview-focus",accent:"#0F172A"}),(0,Pe.jsx)(Xoe,{icon:(0,Pe.jsx)(pM,{size:18,weight:"duotone"}),title:"Backgrounds worth a closer look",items:t.hidden_talent_backgrounds,testId:"company-intel-hidden-talent",accent:"#0F4FA8"}),(0,Pe.jsx)(Xoe,{icon:(0,Pe.jsx)(Uoe,{size:18,weight:"duotone"}),title:"Culture Indicators",items:t.culture_indicators,testId:"company-intel-culture",accent:"#0F172A"})]}),(0,Pe.jsx)(Xoe,{icon:(0,Pe.jsx)(ux,{size:18,weight:"duotone"}),title:"Hiring Priorities",items:t.hiring_recommendations,testId:"company-intel-recommendations",accent:"#0F4FA8",numbered:!0}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground font-mono uppercase tracking-wider flex items-center gap-3 flex-wrap pt-2 border-t border-border",children:[(0,Pe.jsxs)("span",{"data-testid":"company-intel-model-badge",children:["Model: ",t.model||"\u2014"]}),t.generated_at&&(0,Pe.jsxs)("span",{children:["\xb7 Generated: ",new Date(t.generated_at).toLocaleString()]}),t.updated_at&&t.updated_at!==t.generated_at&&(0,Pe.jsxs)("span",{children:["\xb7 Updated: ",new Date(t.updated_at).toLocaleString()]})]})]}),t&&v&&j&&(0,Pe.jsxs)("section",{className:"mt-8 space-y-4 border border-[#0F4FA8]/30 rounded-lg p-6 bg-[#0F4FA8]/[0.03]","data-testid":"company-intel-edit-form",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsxs)("h2",{className:"font-display font-semibold text-lg flex items-center gap-2",children:[(0,Pe.jsx)(xN,{size:18,weight:"duotone"})," Edit Profile"]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsxs)(Lo,{"data-testid":"company-intel-save-edit",onClick:async()=>{const e=e=>(e||"").split("\n").map(e=>e.trim()).filter(Boolean),t={industry_classification:j.industry_classification,company_summary:j.company_
2summary,success_traits:e(j.success_traits),interview_focus_areas:e(j.interview_focus_areas),hidden_talent_backgrounds:e(j.hidden_talent_backgrounds),hiring_recommendations:e(j.hiring_recommendations),culture_indicators:e(j.culture_indicators),successful_employee_profile:j.successful_employee_profile};try{const e=(await Qi.patch("/companies/intelligence",t)).data;n(e.profile),b(!1),va.success("Profile updated")}catch(zf){var a,r;va.error((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Save failed")}},className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md",children:[(0,Pe.jsx)(YC,{size:14,className:"mr-1.5"})," Save"]}),(0,Pe.jsxs)(Lo,{"data-testid":"company-intel-cancel-edit",variant:"outline",onClick:()=>b(!1),className:"rounded-md",children:[(0,Pe.jsx)($f,{size:14,className:"mr-1.5"})," Cancel"]})]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(Goe,{label:"Industry Classification",full:!0,children:(0,Pe.jsx)(Io,{value:j.industry_classification,onChange:e=>w(h(h({},j),{},{industry_classification:e.target.value}))})}),(0,Pe.jsx)(Goe,{label:"Company Summary",full:!0,children:(0,Pe.jsx)(Bo,{rows:3,value:j.company_summary,onChange:e=>w(h(h({},j),{},{company_summary:e.target.value}))})}),(0,Pe.jsx)(Goe,{label:"Successful Employee Profile",full:!0,children:(0,Pe.jsx)(Bo,{rows:4,value:j.successful_employee_profile,onChange:e=>w(h(h({},j),{},{successful_employee_profile:e.target.value}))})}),(0,Pe.jsx)($oe,{label:"Success Traits (one per line)",value:j.success_traits,onChange:e=>w(h(h({},j),{},{success_traits:e}))}),(0,Pe.jsx)($oe,{label:"Interview Focus (one per line)",value:j.interview_focu
2s_areas,onChange:e=>w(h(h({},j),{},{interview_focus_areas:e}))}),(0,Pe.jsx)($oe,{label:"Backgrounds worth a closer look (one per line)",value:j.hidden_talent_backgrounds,onChange:e=>w(h(h({},j),{},{hidden_talent_backgrounds:e}))}),(0,Pe.jsx)($oe,{label:"Hiring Priorities (one per line)",value:j.hiring_recommendations,onChange:e=>w(h(h({},j),{},{hiring_recommendations:e}))}),(0,Pe.jsx)($oe,{label:"Culture Indicators (one per line)",value:j.culture_indicators,onChange:e=>w(h(h({},j),{},{culture_indicators:e}))})]})]}),!t&&!u&&!r&&(0,Pe.jsxs)("div",{className:"mt-8 border border-dashed border-border rounded-lg p-10 text-center",children:[(0,Pe.jsx)("p",{className:"text-muted-foreground mb-4",children:"No profile yet."}),(0,Pe.jsx)(Lo,{onClick:()=>m(!0),className:"bg-[#0F172A] text-white rounded-md",children:"Generate one"})]})]})}function Goe(e){let t=e.label,n=e.children,a=e.full;return(0,Pe.jsxs)("div",{className:a?"md:col-span-2":"",children:[(0,Pe.jsx)(Go,{className:"text-[11px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}),(0,Pe.jsx)("div",{className:"mt-1",children:n})]})}function $oe(e){let t=e.label,n=e.value,a=e.onChange;return(0,Pe.jsx)(Goe,{label:t,full:!0,children:(0,Pe.jsx)(Bo,{rows:5,value:n,onChange:e=>a(e.target.value)})})}function Qoe(e){let t=e.icon,n=e.title,a=e.children,r=e.testId;return(0,Pe.jsxs)("div",{className:"border border-border rounded-lg p-5 bg-white","data-testid":r,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3 text-[#0F4FA8]",children:[t,(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.2em] font-mono font-semibold text-foreground",children:n})]}),a]})}function Xoe(e){let t=e.icon,n=e.title,a=e.items,r=e.testId,i=e.accent,s=void 0===i?"#0F4FA8":i,o=e.numbered,l=void 0!==o&&o;const c=Array.isArray(a)?a:[];return(0,Pe.jsxs)("div",{className:"border border-border rounded-lg p-5 bg-white","data-testid":r,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",style:{color:s},children:[t,(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-[0.2em] font-mono font-semibold text-foreground",children:n})]}),0===c.length?(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:"\u2014"}):(0,Pe.jsx)("ul",{className:"space-y-2",children:c.map((e,t)=>(0,Pe.jsxs)("li",{"data-testid":"".concat(r,"-item-").concat(t),className:"text-sm flex items-start gap-2 leading-relaxed",children:[(0,Pe.jsx)("span",{className:"shrink-0 mt-[5px] inline-block rounded-full",style:{width:6,height:6,background:s}}),(0,Pe.jsx)("span",{children:l?"".concat(t+1,". ").concat(e):e})]},t))})]})}const Joe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,28H165.47a51.88,51.88,0,0,0-74.94,0H56A20,20,0,0,0,36,48V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28ZM155.71,60H100.29a28,28,0,0,1,55.42,0ZM196,212H60V52H77.41A52.13,52.13,0,0,0,76,64v8A12,12,0,0,0,88,84h80a12,12,0,0,0,12-12V64a52.13,52.13,0,0,0-1.41-12H196Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),o.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm72,184H56V48H82.75A47.93,47.93,0,0,0,80,64v8a8,8,0,0,0,8,8h80a8,8,0,0,0,8-8V64a47.93,47.93,0,0,0-2.75-16H200Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,34H162.83a45.91,45.91,0,0,0-69.66,0H56A14,14,0,0,0,42,48V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm-72-4a34,34,0,0,1,34,34v2H94V64A34,34,0,0,1,128,30Zm74,186a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H85.67A45.77,45.77,0,0,0,82,64v8a6,6,0,0,0,6,6h80a6,6,0,0,0,6-6V64a45.77,45.77,0,0,0-3.67-18H200a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm72,184H56V48H82.75A47.93,47.93,0,0,0,80,64v8a8,8,0,0,0,8,8h80a8,8,0,0,0,8-8V64a47.93,47.93,0,0,0-2.75-16H200Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,36H161.92a44,44,0,0,0-67.84,0H56A12,12,0,0,0,44,48V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm-72-8a36,36,0,0,1,36,36v4H92V64A36,36,0,0,1,128,28Zm76,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H88.83A43.71,43.71,0,0,0,84,64v8a4,4,0,0,0,4,4h80a4,4,0,0,0,4-4V64a43.71,43.71,0,0,0-4.83-20H200a4,4,0,0,1,4,4Z"}))]]),ele=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Joe})));ele.displayName="ClipboardIcon";const tle=ele,nle=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M249.8,85.49l-116-64a12,12,0,0,0-11.6,0l-116,64a12,12,0,0,0,0,21l21.8,12v47.76a19.89,19.89,0,0,0,5.09,13.32C46.63,194.7,77,220,128,220a136.88,136.88,0,0,0,40-5.75V240a12,12,0,0,0,24,0V204.12a119.53,119.53,0,0,0,30.91-24.51A19.89,19.89,0,0,0,228,166.29V118.53l21.8-12a12,12,0,0,0,0-21ZM128,45.71,219.16,96,186,114.3a1.88,1.88,0,0,1-.18-.12l-52-28.69a12,12,0,0,0-11.6,21l39,21.49L128,146.3,36.84,96ZM128,196c-40.42,0-64.65-19.07-76-31.27v-33l70.2,38.74a12,12,0,0,0,11.6,0L168,151.64v37.23A110.46,110.46,0,0,1,128,196Zm76-31.27a93.21,93.21,0,0,1-12,10.81V138.39l12-6.62Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,113.07v53.22a8,8,0,0,1-2,5.31c-11.3,12.59-38.9,36.4-86,36.4s-74.68-23.81-86-36.4a8,8,0,0,1-2-5.31V113.07L128,160Z",opacity:"0.2"}),o.createElement("path",{d:"M251.76,88.94l-120-64a8,8,0,0,0-7.52,0l-120,64a8,8,0,0,0,0,14.12L32,117.87v48.42a15.91,15.91,0,0,0,4.06,10.65C49.16,191.53,78.51,216,128,216a130,130,0,0,0,48-8.76V240a8,8,0,0,0,16,0V199.51a115.63,115.63,0,0,0,27.94-22.57A15.91,15.91,0,0,0,224,166.29V117.87l27.76-14.81a8,8,0,0,0,0-14.12ZM128,200c-43.27,0-68.72-21.14-80-33.71V126.4l76.24,40.66a8,8,0,0,0,7.52,0L176,143.47v46.34C163.4,195.69,147.52,200,128,200Zm80-33.75a97.83,97.83,0,0,1-16,14.25V134.93l16-8.53ZM188,118.94l-.22-.13-56-29.87a8,8,0,0,0-7.52,14.12L171,128l-43,22.93L25,96,128,41.07,231,96Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,207.24a119,119,0,0,0,16-7.73V240a8,8,0,0,1-16,0Zm11.76-88.43-56-29.87a8,8,0,0,0-7.52,14.12L171,128l17-9.06Zm64-29.87-120-64a8,8,0,0,0-7.52,0l-120,64a8,8,0,0,0,0,14.12L32,117.87v48.42a15.91,15.91,0,0,0,4.06,10.65C49.16,191.53,78.51,216,128,216a130,130,0,0,0,48-8.76V130.67L171,128l-43,22.93L43.83,106l0,0L25,96,128,41.07,231,96l-18.78,10-.06,0L188,118.94a8,8,0,0,1,4,6.93v73.64a115.63,115.63,0,0,0,27.94-22.57A15.91,15.91,0,0,0,224,166.29V117.87l27.76-14.81a8,8,0,0,0,0-14.12Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M250.82,90.71l-120-64a5.94,5.94,0,0,0-5.64,0l-120,64a6,6,0,0,0,0,10.58L34,116.67v49.62a14,14,0,0,0,3.55,9.32C50.42,189.94,79.29,214,128,214a127.21,127.21,0,0,0,50-9.73V240a6,6,0,0,0,12,0V198.35a113.18,113.18,0,0,0,28.45-22.75,13.91,13.91,0,0,0,3.55-9.31V116.67l28.82-15.38a6,6,0,0,0,0-10.58ZM128,202c-44,0-70-21.56-81.52-34.41a2,2,0,0,1-.48-1.3V123.07l79.18,42.22a6,6,0,0,0,5.64,0L178,140.13v51C165,197.35,148.45,202,128,202Zm82-35.71a2,2,0,0,1-.48,1.3A100.25,100.25,0,0,1,190,184.3V133.73l20-10.66Zm-22.15-45a6.27,6.27,0,0,0-1-.71l-56-29.86a6,6,0,0,0-5.64,10.58L175.25,128,128,153.2,20.75,96,128,38.8,235.25,96Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M251.76,88.94l-120-64a8,8,0,0,0-7.52,0l-120,64a8,8,0,0,0,0,14.12L32,117.87v48.42a15.91,15.91,0,0,0,4.06,10.65C49.16,191.53,78.51,216,128,216a130,130,0,0,0,48-8.76V240a8,8,0,0,0,16,0V199.51a115.63,115.63,0,0,0,27.94-22.57A15.91,15.91,0,0,0,224,166.29V117.87l27.76-14.81a8,8,0,0,0,0-14.12ZM128,200c-43.27,0-68.72-21.14-80-33.71V126.4l76.24,40.66a8,8,0,0,0,7.52,0L176,143.47v46.34C163.4,195.69,147.52,200,128,200Zm80-33.75a97.83,97.83,0,0,1-16,14.25V134.93l16-8.53ZM188,118.94l-.22-.13-56-29.87a8,8,0,0,0-7.52,14.12L171,128l-43,22.93L25,96,128,41.07,231,96Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M249.88,92.47l-120-64a4,4,0,0,0-3.76,0l-120,64a4,4,0,0,0,0,7.06L36,115.47v50.82a11.92,11.92,0,0,0,3,8c12.65,14.09,41,37.73,89,37.73,21,0,38.2-4.52,52-10.79V240a4,4,0,0,0,8,0V197.18a111.64,111.64,0,0,0,29-22.91,11.94,11.94,0,0,0,3-8V115.47l29.88-15.94a4,4,0,0,0,0-7.06ZM128,204c-44.83,0-71.25-22-83-35.08a3.92,3.92,0,0,1-1-2.63V119.73l82.12,43.8a4,4,0,0,0,3.76,0L180,136.8v55.53C166.58,199,149.39,204,128,204Zm84-37.71a4,4,0,0,1-1,2.64,103.32,103.32,0,0,1-23,19v-55.4l24-12.8Zm-24.59-42.51a4,4,0,0,0-1.53-1.44l-56-29.87a4,4,0,0,0-3.76,7.06L179.5,128,128,155.47,16.5,96,128,36.53,239.5,96Z"}))]]),ale=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:nle})));ale.displayName="GraduationCapIcon";const rle=ale,ile={validated:{label:"Validated",cls:"border-emerald-300 bg-emerald-50 text-emerald-950",dot:"bg-emerald-500",Icon:Yf},promising:{label:"Promising",cls:"border-amber-300 bg-amber-50 text-amber-950",dot:"bg-amber-500",Icon:BH},early_signal:{label:"Early Signal",cls:"border-zinc-300 bg-zinc-50 text-zinc-900",dot:"bg-zinc-400",Icon:BC},insufficient:{label:"Insufficient Data",cls:"border-zinc-200 bg-white text-zinc-700",dot:"bg-zinc-300",Icon:bA}};function sle(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1];if((0,o.useEffect)(()=>{Qi.get("/outcome-intel/readiness").then(e=>n(e.data)).catch(()=>n(null)).finally(()=>i(!1))},[]),r)return(0,Pe.jsx)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto",children:(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground","data-testid":"evidence-readiness-loading",children:"Loading\u2026"})});const s=(null===t||void 0===t?void 0:t.totals)||{},l=(null===t||void 0===t?void 0:t.families)||[],c=s.reviews_90d||0;return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"evidence-readiness-page",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"How reliable AROS's summaries are"}],backFallback:"/app/employer"}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"HIRING OUTCOMES"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight flex items-center gap-3",children:[(0,Pe.jsx)(sse,{size:32,weight:"duotone",className:"text-[#0F4FA8]"})," How reliable AROS's summaries are"]}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 max-w-3xl",children:"AROS will only draw conclusions once your data crosses defensible evidence thresholds. This page shows exactly how far your organization is from that bar, per role \u2014 and what AROS can and cannot conclude today."}),(0,Pe.jsxs)("section",{className:"mt-6 grid grid-cols-2 md:grid-cols-6 gap-3","data-testid":"readiness-totals",children:[(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(Cg,{size:16,weight:"duotone"}),label:"Hires",v:s.hires||0,tid:"totals-hires"}),(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(tle,{size:16,weight:"duotone"}),label:"30-day reviews",v:s.reviews_30d||0,tid:"totals-reviews-30d"}),(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(tle,{size:16,weight:"duotone"}),label:"60-day reviews",v:s.reviews_60d||0,tid:"totals-reviews-60d"}),(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(tle,{size:16,weight:"duotone"}),label:"90-day reviews",v:s.reviews_90d||0,tid:"totals-reviews-90d",highlight:!0}),(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(BH,{size:16,weight:"duotone"}),label:"Performance records",v:s.performance_records||0,tid:"totals-performance"}),(0,Pe.jsx)(ole,{icon:(0,Pe.jsx)(BC,{size:16,weight:"duotone"}),label:"Job-quality reviews",v:s.trait_alignments||0,tid:"totals-alignments"})]}),(0,Pe.jsxs)("section",{className:"mt-6 border border-border rounded-md p-4 bg-secondary/30","data-testid":"readiness-thresholds",children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold mb-3 flex items-center gap-1.5",children:[(0,Pe.jsx)(rle,{size:14,weight:"duotone",className:"text-[#0F4FA8]"})," Evidence tiers (90-day reviews drive the tier)"]}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:[{tier:"insufficient",range:"0 \u2013 9"},{tier:"early_signal",range:"10 \u2013 24"},{tier:"promising",range:"25 \u2013 49"},{tier:"validated",range:"50+"}].map(e=>{const t=ile[e.tier];return(0,Pe.jsxs)("div",{className:"border rounded p-2.5 ".concat(t.cls),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-wider font-mono font-semibold",children:[(0,Pe.jsx)("span",{className:"w-2 h-2 rounded-full ".concat(t.dot)})," ",t.label]}),(0,Pe.jsxs)("div",{className:"text-xs mt-0.5 opacity-80",children:[e.range," reviews"]})]},e.tier)})})]}),0===l.length?(0,Pe.jsxs)("div",{className:"mt-8 border border-dashed border-border rounded-md p-10 text-center","data-testid":"readiness-empty",children:[(0,Pe.jsx)(nv,{size:32,weight:"duotone",className:"mx-auto text-muted-foreground mb-3"}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",children:"No jobs yet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-md mx-auto",children:"Create your first job posting to start populating Hiring Outcomes."})]}):(0,Pe.jsxs)("section",{className:"mt-8 space-y-4","data-testid":"readiness-families",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl",children:"Readiness by role"}),(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:[l.length," role families"]})]}),l.map(e=>(0,Pe.jsx)(lle,{family:e,target:t.target_sample_size},e.slug))]}),(0,Pe.jsxs)("div",{className:"mt-10 border-t border-border pt-5 text-[11px] text-muted-foreground font-mono uppercase tracking-wider",children:["Reviews drive the tier \xb7 ",c," 90-day reviews collected org-wide \xb7 Target ",t.target_sample_size,"/family for safety-margin validation"]})]})}function ole(e){let t=e.icon,n=e.label,a=e.v,r=e.tid,i=e.highlight;return(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(i?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border bg-white"),"data-testid":r,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:[t," ",n]}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-0.5 tabular-nums",children:a})]})}function lle(e){var t;let n=e.family,a=e.target;const r=ile[n.tier],i=r.Icon,s=Math.min(Math.round(n.current_sample/Math.max(a,1)*100),100);return(0,Pe.jsxs)("article",{className:"border border-border rounded-md p-5 bg-white","data-testid":"readiness-family-".concat(n.slug),children:[(0,Pe.jsxs)("header",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("h3",{className:"font-display font-semibold text-lg flex items-center gap-2 flex-wrap",children:[n.label,(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:[n.job_count," job",1===n.job_count?"":"s"]})]}),(null===(t=n.job_titles)||void 0===t?void 0:t.length)>0&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:n.job_titles.join(" \xb7 ")})]}),(0,Pe.jsxs)("span",{className:"pill border inline-flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono ".concat(r.cls),"data-testid":"readiness-tier-".concat(n.slug),children:[(0,Pe.jsx)(i,{size:12,weight:"bold"})," ",r.label]})]}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsxs)("div",{className:"flex items-end justify-between mb-1.5",children:[(0,Pe.jsxs)("span",{className:"text-sm","data-testid":"readiness-sample-".concat(n.slug),children:[(0,Pe.jsx)("span",{className:"font-display font-bold text-xl tabular-nums",children:n.current_sample}),(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:[" / ",a," reviews collected"]})]}),n.next_tier&&(0,Pe.jsxs)("span",{className:"text-[11px] text-muted-foreground font-mono uppercase tracking-wider","data-testid":"readiness-remaining-".concat(n.slug),children:[n.remaining_to_next_tier," more for ",ile[n.next_tier].label]}),!n.next_tier&&(0,Pe.jsx)("span",{className:"text-[11px] text-emerald-700 font-mono uppercase tracking-wider",children:"Validated tier reached"})]}),(0,Pe.jsx)(jR,{value:s}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:n.tier_description})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-2 md:grid-cols-6 gap-2",children:[(0,Pe.jsx)(cle,{label:"Hires",v:n.counts.hires}),(0,Pe.jsx)(cle,{label:"30-day",v:n.counts.reviews_30d}),(0,Pe.jsx)(cle,{label:"60-day",v:n.counts.reviews_60d}),(0,Pe.jsx)(cle,{label:"90-day",v:n.counts.reviews_90d,highlight:!0}),(0,Pe.jsx)(cle,{label:"Performance",v:n.counts.performance_records}),(0,Pe.jsx)(cle,{label:"Alignments",v:n.counts.trait_alignments})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Pe.jsxs)("div",{className:"border border-emerald-200 bg-emerald-50/40 rounded-md p-4","data-testid":"readiness-can-".concat(n.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] uppercase tracking-[0.15em] font-mono font-semibold text-emerald-900 mb-2",children:[(0,Pe.jsx)(Yf,{size:14,weight:"duotone"})," What AROS can learn today"]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:(n.can_learn_today||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm text-emerald-950 flex items-start gap-2 leading-relaxed",children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill",className:"mt-1 shrink-0"}),(0,Pe.jsx)("span",{children:e})]},t))})]}),(0,Pe.jsxs)("div",{className:"border border-amber-200 bg-amber-50/40 rounded-md p-4","data-testid":"readiness-cannot-".concat(n.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] uppercase tracking-[0.15em] font-mono font-semibold text-amber-900 mb
2-2",children:[(0,Pe.jsx)(AN,{size:14,weight:"duotone"})," What AROS cannot confidently conclude yet"]}),(0,Pe.jsx)("ul",{className:"space-y-1.5",children:(n.cannot_conclude_yet||[]).map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm text-amber-950 flex items-start gap-2 leading-relaxed",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill",className:"mt-1 shrink-0"}),(0,Pe.jsx)("span",{children:e})]},t))})]})]})]})}function cle(e){let t=e.label,n=e.v,a=e.highlight;return(0,Pe.jsxs)("div",{className:"rounded p-2 border ".concat(a?"border-[#0F4FA8]/40 bg-[#0F4FA8]/5":"border-border bg-secondary/30"),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-lg tabular-nums",children:n})]})}const dle=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M225.15,197.71,164,95.81V44h4a12,12,0,0,0,0-24H88a12,12,0,0,0,0,24h4V95.81L30.85,197.71A20,20,0,0,0,48,228H208a20,20,0,0,0,17.15-30.29ZM140,44V99.14a12,12,0,0,0,1.71,6.17l35.13,58.54c-10.79.86-25.15-1.31-43.42-10.56-14-7.08-27.46-11.33-40.27-12.76l21.14-35.22A12,12,0,0,0,116,99.14V44ZM55.06,204,79,164.19c13-1.11,27.62,2.42,43.62,10.52,19.61,9.92,36.25,13.31,49.85,13.31A75.44,75.44,0,0,0,190.11,186l10.83,18Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M208,216H48a8,8,0,0,1-6.86-12.12l30.48-50.8h0c13.23-2.48,32-1.41,56.37,10.92,32.25,16.33,54.75,12.91,67.5,7.65h0l19.34,32.23A8,8,0,0,1,208,216Z",opacity:"0.2"}),o.createElement("path",{d:"M221.69,199.77,160,96.92V40h8a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16h8V96.92L34.31,199.77A16,16,0,0,0,48,224H208a16,16,0,0,0,13.72-24.23ZM110.86,103.25A7.93,7.93,0,0,0,112,99.14V40h32V99.14a7.93,7.93,0,0,0,1.14,4.11L183.36,167c-12,2.37-29.07,1.37-51.75-10.11-15.91-8.05-31.05-12.32-45.22-12.81ZM48,208l28.54-47.58c14.25-1.73,30.31,1.85,47.82,10.72,19,9.61,35,12.88,48,12.88a69.89,69.89,0,0,0,19.55-2.7L208,208Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.69,199.77,160,96.92V40h8a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16h8V96.92L34.31,199.77A16,16,0,0,0,48,224H208a16,16,0,0,0,13.72-24.23Zm-90.08-42.91c-15.91-8.05-31.05-12.32-45.22-12.81l24.47-40.8A7.93,7.93,0,0,0,112,99.14V40h32V99.14a7.93,7.93,0,0,0,1.14,4.11L183.36,167C171.4,169.34,154.29,168.34,131.61,156.86Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M220,200.8,158,97.48V38h10a6,6,0,0,0,0-12H88a6,6,0,0,0,0,12H98V97.48L36,200.8A14,14,0,0,0,48,222H208a14,14,0,0,0,12-21.2ZM109.15,102.23a6,6,0,0,0,.85-3.09V38h36V99.14a6,6,0,0,0,.85,3.09l39.65,66.08c-12.41,3.16-30.86,3-55.79-9.66-16.94-8.58-33-12.8-47.83-12.64ZM209.72,209a2,2,0,0,1-1.74,1H48a2,2,0,0,1-1.71-3l29-48.41c14.89-2.08,31.68,1.55,49.94,10.79C144,178.8,159.67,182,172.42,182A67.89,67.89,0,0,0,192.89,179l16.8,28A2,2,0,0,1,209.72,209Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M221.69,199.77,160,96.92V40h8a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16h8V96.92L34.31,199.77A16,16,0,0,0,48,224H208a16,16,0,0,0,13.72-24.23ZM110.86,103.25A7.93,7.93,0,0,0,112,99.14V40h32V99.14a7.93,7.93,0,0,0,1.14,4.11L183.36,167c-12,2.37-29.07,1.37-51.75-10.11-15.91-8.05-31.05-12.32-45.22-12.81ZM48,208l28.54-47.58c14.25-1.74,30.31,1.85,47.82,10.72,19,9.61,35,12.88,48,12.88a69.89,69.89,0,0,0,19.55-2.7L208,208Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M218.27,201.83,156,98V36h12a4,4,0,0,0,0-8H88a4,4,0,0,0,0,8h12V98L37.73,201.83A12,12,0,0,0,48,220H208a12,12,0,0,0,10.29-18.17ZM107.43,101.2a4.07,4.07,0,0,0,.57-2.06V36h40V99.14a4.07,4.07,0,0,0,.57,2.06l41,68.33c-12.76,3.94-32.54,4.68-59.75-9.1-18-9.14-35-13.24-50.54-12.29ZM211.46,210a3.94,3.94,0,0,1-3.48,2H48a4,4,0,0,1-3.43-6.06l29.53-49.21c15.54-2.43,33.05,1.21,52.07,10.84C144.54,176.86,160,180,172.42,180a65,65,0,0,0,21.36-3.46l17.63,29.38A3.92,3.92,0,0,1,211.46,210Z"}))]]),ule=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:dle})));ule.displayName="FlaskIcon";const mle=ule,ple=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M180,72V60H89l48.4,60.5a12,12,0,0,1,0,15L89,196h91V184a12,12,0,0,1,24,0v24a12,12,0,0,1-12,12H64a12,12,0,0,1-9.37-19.5l58-72.5-58-72.5A12,12,0,0,1,64,36H192a12,12,0,0,1,12,12V72a12,12,0,0,1-24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M192,48V2
208H64l64-80L64,48Z",opacity:"0.2"}),o.createElement("path",{d:"M184,72V56H80.65l53.6,67a8,8,0,0,1,0,10l-53.6,67H184V184a8,8,0,0,1,16,0v24a8,8,0,0,1-8,8H64a8,8,0,0,1-6.25-13l60-75-60-75A8,8,0,0,1,64,40H192a8,8,0,0,1,8,8V72a8,8,0,0,1-16,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM184,88a8,8,0,0,1-16,0V72H96l38.4,51.2a8,8,0,0,1,0,9.6L96,184h72V168a8,8,0,0,1,16,0v24a8,8,0,0,1-8,8H80a8,8,0,0,1-6.4-12.8L118,128,73.6,68.8A8,8,0,0,1,80,56h96a8,8,0,0,1,8,8Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M186,72V54H76.48l56.21,70.25a6,6,0,0,1,0,7.5L76.48,202H186V184a6,6,0,0,1,12,0v24a6,6,0,0,1-6,6H64a6,6,0,0,1-4.69-9.75l61-76.25-61-76.25A6,6,0,0,1,64,42H192a6,6,0,0,1,6,6V72a6,6,0,0,1-12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M184,72V56H80.65l53.6,67a8,8,0,0,1,0,10l-53.6,67H184V184a8,8,0,0,1,16,0v24a8,8,0,0,1-8,8H64a8,8,0,0,1-6.25-13l60-75-60-75A8,8,0,0,1,64,40H192a8,8,0,0,1,8,8V72a8,8,0,0,1-16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M188,72V52H72.32l58.8,73.5a4,4,0,0,1,0,5L72.32,204H188V184a4,4,0,0,1,8,0v24a4,4,0,0,1-4,4H64a4,4,0,0,1-3.12-6.5l62-77.5-62-77.5A4,4,0,0,1,64,44H192a4,4,0,0,1,4,4V72a4,4,0,0,1-8,0Z"}))]]),hle=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:ple})));hle.displayName="SigmaIcon";const fle=hle;const xle={validated:{label:"Validated",cls:"border-emerald-300 bg-emerald-50 text-emerald-950",dot:"bg-emerald-500",Icon:Yf,strength:"Strong conclusion",strengthClass:"text-emerald-900"},promising:{label:"Promising",cls:"border-amber-300 bg-amber-50 text-amber-950",dot:"bg-amber-500",Icon:BH,strength:"Directional \xb7 not yet proven",strengthClass:"text-amber-900"},early_signal:{label:"Early Signal",cls:"border-zinc-300 bg-zinc-50 text-zinc-900",dot:"bg-zinc-400",Icon:BC,strength:"Directional \xb7 not yet proven",strengthClass:"text-zinc-700"},insufficient:{label:"Insufficient",cls:"border-zinc-200 bg-white text-zinc-700",dot:"bg-zinc-300",Icon:bA,strength:"No conclusion possible yet",strengthClass:"text-zinc-600"}},gle={review_30d_avg_rating:"30-day manager rating",review_60d_avg_rating:"60-day manager rating",review_90d_avg_rating:"90-day manager rating",retention_180d_pct:"Still employed at 180 days",retention_365d_pct:"Still employed at 365 days",early_termination_pct:"Early-termination rate"},vle=["validated","promising","early_signal","insufficient"],ble={real_only:{label:"Real outcomes only",cls:"border-emerald-200 bg-emerald-50 text-emerald-900"},mixed:{label:"Real + demo data",cls:"border-amber-200 bg-amber-50 text-amber-900"},demo_only:{label:"Demo data only",cls:"border-rose-200 bg-rose-50 text-rose-900"}};function yle(){const e=es().user,t=Ue((0,o.useState)([]),2),n=t[0],a=t[1],r=Ue((0,o.useState)(!0),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!1),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1],f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1],v=Ue((0,o.useState)({tier:"",outcome_metric:"",job_family:""}),2),b=v[0],y=v[1],j=e&&("employer"===e.role||"admin"===e.role),w=async()=>{s(!0);try{const e={};b.tier&&(e.tier=b.tier),b.outcome_metric&&(e.outcome_metric=b.outcome_metric),b.job_family&&(e.job_family=b.job_family);const t=await Qi.get("/outcome-intel/stats",{params:e});a(t.data.stats||[])}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to load hiring outcomes"),a([])}finally{s(!1)}};(0,o.useEffect)(()=>{w()},[b.tier,b.outcome_metric,b.job_family]),(0,o.useEffect)(()=>{let e="direct";try{const t=document.referrer||"";t&&t.startsWith(window.location.origin)&&(e="deep_link")}catch(t){}Qi.post("/nav-telemetry/event",{item:"insights",source:e}).catch(()=>{})},[]);const N=(0,o.useMemo)(()=>{const e={validated:[],promising:[],early_signal:[],insufficient:[]};for(const t of n)(e[t.evidence_tier]||e.insufficient).push(t);return e},[n]),A=(0,o.useMemo)(()=>Array.from(new Set(n.map(e=>e.job_family))).sort(),[n]),k=(0,o.useMemo)(()=>n.length?n.reduce((e,t)=>
2Math.max(e,t.real_sample_size||0),0):0,[n]),E={all:n.length,validated:N.validated.length,promising:N.promising.length,early_signal:N.early_signal.length,insufficient:N.insufficient.length},D=x?vle:vle.filter(e=>"insufficient"!==e);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"outcome-intelligence-page",children:[(0,Pe.jsx)(yM,{items:[{label:"Dashboard",to:"/app/employer"},{label:"Hiring outcomes"}],backFallback:"/app/employer"}),(0,Pe.jsxs)("header",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"HIRING OUTCOMES"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight flex items-center gap-3",children:[(0,Pe.jsx)(lv,{size:32,weight:"duotone",className:"text-[#0F4FA8]"})," What AROS Has Learned"]}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-2 max-w-3xl leading-relaxed",children:["AROS studies your hiring results over time to discover which candidate traits consistently lead to successful employees. As more 30/60/90-day reviews are collected, insights move from"," ",(0,Pe.jsx)("strong",{className:"text-zinc-800",children:"Early Signal"})," to"," ",(0,Pe.jsx)("strong",{className:"text-amber-800",children:"Promising"})," to"," ",(0,Pe.jsx)("strong",{className:"text-emerald-800",children:"Validated"}),"."]})]}),j&&(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:["admin"===(null===e||void 0===e?void 0:e.role)&&(0,Pe.jsxs)("label",{className:"flex items-center gap-2 text-xs text-muted-foreground","data-testid":"oi-include-demo-toggle",children:[(0,Pe.jsx)(oM,{checked:m,onCheckedChange:p,"data-testid":"oi-include-demo-switch"}),(0,Pe.jsx)("span",{className:"font-mono uppercase tracking-wider",children:"Include demo"})]}),(0,Pe.jsxs)(Lo,{onClick:async()=>{d(!0);try{const e=await Qi.post("/outcome-intel/stats/recompute",null,{params:{include_demo:m}});va.success("Recomputed ".concat(e.data.rows_written," row").concat(1===e.data.rows_written?"":"s"," across ").concat(e.data.triples_considered," trait/metric triples.")),await w()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Couldn't refresh the results \u2014 try again in a moment.")}finally{d(!1)}},disabled:c,"data-testid":"oi-recompute-button",className:"bg-[#0F4FA8] hover:bg-[#0035cc] text-white",children:[(0,Pe.jsx)(bM,{size:16,weight:"bold",className:c?"animate-spin":""}),c?"Analyzing\u2026":"Analyze New Outcomes"]})]})]}),(0,Pe.jsxs)("section",{className:"mt-6 border border-border rounded-md p-4 bg-secondary/30","data-testid":"oi-methodology",children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.15em] font-mono font-semibold mb-3 flex items-center gap-1.5",children:[(0,Pe.jsx)(mle,{size:14,weight:"duotone",className:"text-[#0F4FA8]"})," How conclusions are tiered"]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 text-xs",children:[{tier:"validated",rule:"n\u226550 real outcomes \xb7 p \u2264 0.05 \xb7 |effect| \u2265 0.20",body:"Strong enough to act on. Effect size is not just statistically significant \u2014 it's practically meaningful."},{tier:"promising",rule:"n\u226525 real outcomes \xb7 p \u2264 0.10 \xb7 |effect| \u2265 0.15",body:"A real direction is emerging, but the dataset is too small to call it proven. Treat as a hypothesis worth tracking."},{tier:"early_signal",rule:"n\u226510 real outcomes \xb7 p \u2264 0.20 \xb7 |effect| \u2265 0.10",body:"Earliest hint of a trend. Could disappear with more data. Never use as the sole basis for a decision."}].map(e=>{const t=xle[e.tier],n=t.Icon;return(0,Pe.jsxs)("div",{className:"border rounded p-3 ".concat(t.cls),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono font-semibold",children:[(0,Pe.jsx)(n,{size:14,weight:"bold"})," ",t.label]}),(0,Pe.jsx)("div",{className:"text-[11px] mt-1 font-mono opacity-90",children:e.rule}),(0,Pe.jsx)("p",{className:"text-xs mt-2 leading-relaxed opacity-95",children:e.body})]},e.tier)})}),(0,Pe.jsxs)("p",{className:"text-xs text-muted-foreground mt-3 leading-relaxed",children:["Continuous outcomes (e.g. 90-day rating) use ",(0,Pe.jsx)("strong",{children:"Welch's t-test + Cohen's d"}),". Binary outcomes (retention / early termination) use ",(0,Pe.jsx)("strong",{children:"Fisher's exact + rate-difference"}),". Demo data is excluded by default and never affects the tier \u2014 the readiness countdown is driven by real observations only."]})]}),(0,Pe.jsxs)("section",{className:"mt-6 grid grid-cols-2 md:grid-cols-5 ga
2p-3","data-testid":"oi-totals",children:[(0,Pe.jsx)(jle,{label:"Total findings",v:E.all,tid:"oi-total-all",highlight:!0}),(0,Pe.jsx)(jle,{label:"Validated",v:E.validated,tid:"oi-total-validated",tier:"validated"}),(0,Pe.jsx)(jle,{label:"Promising",v:E.promising,tid:"oi-total-promising",tier:"promising"}),(0,Pe.jsx)(jle,{label:"Early signal",v:E.early_signal,tid:"oi-total-early-signal",tier:"early_signal"}),(0,Pe.jsx)(jle,{label:"Insufficient",v:E.insufficient,tid:"oi-total-insufficient",tier:"insufficient"})]}),(0,Pe.jsx)(kle,{observed:k}),(0,Pe.jsxs)("section",{className:"mt-5 flex items-center gap-3 flex-wrap","data-testid":"oi-filters",children:[(0,Pe.jsx)(wle,{value:b.tier,onChange:e=>y(t=>h(h({},t),{},{tier:e})),tid:"oi-filter-tier",label:"Tier",options:[{v:"",l:"All tiers"},...vle.map(e=>({v:e,l:xle[e].label}))]}),(0,Pe.jsx)(wle,{value:b.outcome_metric,onChange:e=>y(t=>h(h({},t),{},{outcome_metric:e})),tid:"oi-filter-metric",label:"Outcome metric",options:[{v:"",l:"All metrics"},...Object.entries(gle).map(e=>{let t=Ue(e,2);return{v:t[0],l:t[1]}})]}),A.length>0&&(0,Pe.jsx)(wle,{value:b.job_family,onChange:e=>y(t=>h(h({},t),{},{job_family:e})),tid:"oi-filter-family",label:"Job family",options:[{v:"",l:"All families"},...A.map(e=>({v:e,l:e.replace(/_/g," ")}))]}),(0,Pe.jsxs)("button",{type:"button",onClick:()=>g(e=>!e),className:"text-[11px] uppercase tracking-wider font-mono inline-flex items-center gap-1.5 px-3 py-1.5 border border-border rounded hover:bg-secondary/50","data-testid":"oi-toggle-insufficient",children:[x?(0,Pe.jsx)(CL,{size:12,weight:"bold"}):(0,Pe.jsx)(ly,{size:12,weight:"bold"}),x?"Hide insufficient":"Show insufficient"]})]}),i?(0,Pe.jsx)("div",{className:"mt-10 text-sm text-muted-foreground","data-testid":"oi-loading",children:"Loading findings\u2026"}):0===n.length?(0,Pe.jsx)(Nle,{observed:k}):(0,Pe.jsx)("section",{className:"mt-8 space-y-8","data-testid":"oi-results",children:D.map(e=>{const t=N[e];return 0===t.length?null:(0,Pe.jsx)(Dle,{tier:e,rows:t},e)})}),(0,Pe.jsx)(Ele,{}),(0,Pe.jsxs)("div",{className:"mt-12 border-t border-border pt-5 text-[11px] text-muted-foreground font-mono uppercase tracking-wider",children:["Engine version phase_b_v1 \xb7 ",n.length," finding",1===n.length?"":"s"," \xb7 Tier classification is conservative by design"]})]})}function jle(e){let t=e.label,n=e.v,a=e.tid,r=e.highlight,i=e.tier;const s=i?xle[i]:null;return(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(r?"border-[#0F4FA8] bg-[#0F4FA8]/5":s?s.cls:"border-border bg-white"),"data-testid":a,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.15em] font-mono",children:[s&&(0,Pe.jsx)("span",{className:"w-2 h-2 rounded-full ".concat(s.dot)})," ",t]}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-0.5 tabular-nums",children:n})]})}function wle(e){let t=e.value,n=e.onChange,a=e.tid,r=e.label,i=e.options;return(0,Pe.jsxs)("label",{className:"flex items-center gap-2 text-[11px] font-mono uppercase tracking-wider text-muted-foreground",children:[r,(0,Pe.jsx)("select",{value:t,onChange:e=>n(e.target.value),"data-testid":a,className:"text-sm font-sans border border-border rounded px-2 py-1 bg-white text-foreground normal-case tracking-normal",children:i.map(e=>(0,Pe.jsx)("option",{value:e.v,children:e.l},e.v))})]})}function Nle(e){e.observed;return(0,Pe.jsxs)("div",{className:"mt-10 space-y-6","data-testid":"oi-empty",children:[(0,Pe.jsxs)("div",{className:"border border-dashed border-border rounded-md p-10 text-center bg-secondary/20",children:[(0,Pe.jsx)(sse,{size:36,weight:"duotone",className:"mx-auto text-muted-foreground mb-3"}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",style:{color:"#041C3A"},children:"Nothing learned yet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-xl mx-auto leading-relaxed",children:"Once your team completes more 30/60/90-day reviews, AROS will begin identifying patterns tied to strong hires, retention, and performance."}
2),(0,Pe.jsx)("p",{className:"text-sm font-medium mt-3 max-w-xl mx-auto",style:{color:"#041C3A"},children:"Every completed review makes future hiring smarter."}),(0,Pe.jsx)("a",{href:"/app/employer/evidence-readiness",className:"inline-flex items-center gap-1.5 mt-5 text-sm text-[#0F4FA8] hover:underline","data-testid":"oi-empty-readiness-link",children:"See how reliable AROS's summaries are for the per-role countdown \u2192"})]}),(0,Pe.jsxs)("div",{"data-testid":"oi-example-insights",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground",children:"What insights will look like"}),(0,Pe.jsx)("span",{className:"text-[10px] text-muted-foreground italic",children:"(examples \u2014 not real findings)"})]}),(0,Pe.jsxs)("div",{className:"space-y-3",children:[(0,Pe.jsx)(Ale,{tier:"validated",trait:"Strong ownership in interviews",metric:"90-day manager rating",body:"Candidates who showed strong ownership during interviews were more likely to receive high 90-day performance reviews."}),(0,Pe.jsx)(Ale,{tier:"promising",trait:"Prior experience with rapid growth",metric:"180-day retention",body:"Hires who mentioned prior experience at fast-growing companies appeared more likely to stay past six months."})]})]})]})}function Ale(e){let t=e.tier,n=e.trait,a=e.metric,r=e.body;const i=xle[t]||xle.early_signal,s=i.Icon;return(0,Pe.jsxs)("article",{className:"border border-border rounded-md p-5 bg-white relative overflow-hidden","data-testid":"oi-example-".concat(t),children:[(0,Pe.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 pointer-events-none flex items-center justify-center opacity-[0.06]",children:(0,Pe.jsx)("span",{className:"font-display font-black tracking-widest text-6xl uppercase",style:{color:"#041C3A"},children:"EXAMPLE"})}),(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold px-2 py-0.5 rounded-full border",style:{background:"#FEF3C7",color:"#B45309",borderColor:"#FDE68A"},children:"Example insight"}),(0,Pe.jsxs)("span",{className:"pill border inline-flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono ".concat(i.cls),children:[(0,Pe.jsx)(s,{size:12,weight:"bold"})," ",i.label]})]}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg mt-2",style:{color:"#041C3A"},children:n}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5 font-mono uppercase tracking-wider",children:["vs ",a]})]})}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed mt-3",style:{color:"#041C3A"},children:r})]})]})}function kle(e){let t=e.observed;return(0,Pe.jsxs)("section",{className:"mt-4 border border-border rounded-md p-4 bg-white","data-testid":"oi-learning-progress",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-1 flex items-center gap-1.5",children:[(0,Pe.jsx)(BH,{size:14,weight:"duotone",className:"text-[#0F4FA8]"})," Learning progress"]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:"How close your most-mature dataset is to each insight tier. Every completed 30/60/90-day review moves the bars."}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{key:"early_signal",target:10},{key:"promising",target:25},{key:"validated",target:50}].map(e=>{const n=xle[e.key],a=n.Icon,r=Math.min(Math.round(t/e.target*100),100),i=Math.max(e.target-t,0);return(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(n.cls),"data-testid":"oi-learning-tier-".concat(e.key),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono font-semibold",children:[(0,Pe.jsx)(a,{size:12,weight:"bold"})," ",n.label]}),(0,Pe.jsxs)("span",{className:"text-[11px] font-mono tabular-nums font-semibold",children:[Math.min(t,e.target)," / ",e.target]})]}),(0,Pe.jsx)("div",{className:"mt-2",children:(0,Pe.jsx)(jR,{value:r,"data-testid":"oi-learning-progress-".concat(e.key)})}),(0,Pe.jsx)("div",{className:"text-[11px] mt-2 opacity-90",children:0===i?"Reached \u2014 insights at this tier can appear."
2:"".concat(i," more real outcomes to unlock.")})]},e.key)})})]})}function Ele(){return(0,Pe.jsxs)("section",{className:"mt-10 rounded-md p-5",style:{background:"linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%)",border:"1px solid #E2E8F0"},"data-testid":"oi-why-this-matters",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-2 flex items-center gap-1.5",style:{color:"#041C3A"},children:[(0,Pe.jsx)(BC,{size:14,weight:"fill",style:{color:"#0F4FA8"}})," Why this matters"]}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed max-w-3xl",style:{color:"#041C3A"},children:"AROS does not just screen resumes. It learns which traits, experiences, and signals actually lead to successful hires inside your organization. Over time, your hiring process becomes more evidence-based and less dependent on guesswork."})]})}function Dle(e){let t=e.tier,n=e.rows;const a=xle[t],r=a.Icon;return(0,Pe.jsxs)("div",{"data-testid":"oi-tier-block-".concat(t),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,Pe.jsxs)("span",{className:"pill border inline-flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono ".concat(a.cls),children:[(0,Pe.jsx)(r,{size:12,weight:"bold"})," ",a.label]}),(0,Pe.jsxs)("span",{className:"text-[11px] uppercase tracking-wider font-mono text-muted-foreground",children:[n.length," finding",1===n.length?"":"s"]}),(0,Pe.jsxs)("span",{className:"text-[11px] uppercase tracking-wider font-mono ".concat(a.strengthClass),children:["\xb7 ",a.strength]})]}),(0,Pe.jsx)("div",{className:"space-y-3",children:n.map(e=>(0,Pe.jsx)(_le,{row:e},e.id))})]})}function _le(e){let t=e.row;const n=xle[t.evidence_tier]||xle.insufficient,a=n.Icon,r=ble[t.data_provenance]||ble.real_only,i=gle[t.outcome_metric]||t.outcome_metric,s=function(e,t){const n=e.evidence_tier,a=e.trait,r=e.job_family.replace(/_/g," "),i=e.effect_size,s=e.effect_size_type,o=null==i?"no measurable difference":i>0?"higher":"lower",l=null==i?"":"".concat(Math.abs(i).toFixed(2)).concat("rate_diff"===s?" pp":"");if("validated"===n)return"Among ".concat(r,' hires, candidates with "').concat(a,'" averaged ').concat(l," ").concat(o," on ").concat(t," than peers without it (n=").concat(e.real_sample_size," real outcomes, p=").concat(Mle(e.p_value),"). This conclusion meets the strict validated bar \u2014 actionable signal.");if("promising"===n)return"Directional signal in ".concat(r,': candidates with "').concat(a,'" appear to score ').concat(l," ").concat(o," on ").concat(t,", but with only ").concat(e.real_sample_size," real outcomes this has not yet crossed the validated threshold. Treat as a hypothesis worth testing in upcoming hires.");if("early_signal"===n)return"Earliest hint of a trend in ".concat(r,': "').concat(a,'" shows a small ').concat(o," association with ").concat(t,". With ").concat(e.real_sample_size," real outcomes the pattern could easily disappear once more reviews land \u2014 do not act on this alone.");return'Insufficient real outcomes to draw any conclusion about "'.concat(a,'" vs ').concat(t," in ").concat(r,". We need more 30/60/90-day reviews before we can run a defensible test.")}(t,i),o=t.remaining_real_observations_needed,l=Math.min(Math.round(t.real_sample_size/Math.max(t.min_sample_for_validation,1)*100),100);return(0,Pe.jsxs)("article",{className:"border border-border rounded-md p-5 bg-white","data-testid":"oi-finding-".concat(t.id),children:[(0,Pe.jsxs)("header",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("h3",{className:"font-display font-semibold text-lg flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{"data-testid":"oi-finding-trait-".concat(t.id),children:t.trait}),t.trait_category&&(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-wider font-mono px-1.5 py-0.5 border border-border rounded text-muted-foreground",children:t.trait_category.replace(/_/g," ")})]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-0.5 font-mono uppercase tracking-wider",children:[(0,Pe.jsx)("span",{"data-testid":"oi-finding-family-".concat(t.id),children:t.job_family.replace(/_/g," ")}),(0,Pe.jsx)("span",{className:"mx-1.5",children:"\xb7"}),(0,Pe.jsx)("span",{"data-testid":"oi-finding-metric-".concat(t.id),children:i})]})]}),(0,Pe.jsxs)("span",{className:"pill border inline-flex items-center gap-1.5 text-[11px] uppercase tracking-wider font-mono ".concat(n.cls),"data-testid":"oi-finding-tier-".concat(t.id),children:[(0,Pe.jsx)(a,{size:12,weight:"bold"})," ",n.label]})]}),(0,Pe.jsxs)("div",{className:"mt-4 rounded-md p-3 border ".concat(n.cls),"data-testid":"oi-finding-insight-".concat(t.id),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold mb-1 ".concat(n.strengthClass),children:n.strength}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed",children:s})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-2 md:grid-cols-4 gap-2","data-testid":"oi-finding-stats-".concat(t.id),children:[(0,Pe.jsx)(Cle,{icon:(0,Pe.jsx)(fle,{size:12,weight:"duotone"}),label:"Effect size",v:null===t.effect_size?"\u2014":t.effect_size.toFixed(2),sub:t.effect_size_type?t.effect_size_type.replace(/_/g," "):"\u2014",tid:"oi-finding-effect-".concat(t.id)}),(0,Pe.jsx)(Cle,{icon:(0,Pe.jsx)(qf,{size:12,weight:"duotone"}),label:"p-value",v:null===t.p_value?"\u2014":Mle(t.p_value),sub:t.test_used?t.test_used.replace(/_/g," "):"\u2014",tid:"oi-finding-p-".concat(t.id)}),(0,Pe.jsx)(Cle,{icon:(0,Pe.jsx)(BH,{size:12,weight:"duotone"}),label:"95% CI",v:t.ci_95?"".concat(Sle(t.ci_95[0])," \u2013 ").concat(Sle(t.ci_95[1])):"\u2014",sub:"confidence interval",tid:"oi-finding-ci-".concat(t.id)}),(0,Pe.jsx)(Cle,{icon:(0,Pe.jsx)(sse,{size:12,weight:"duotone"}),label:"Sample",v:"".concat(t.real_sample_size," real"),sub:t.demo_sample_size>0?"+ ".concat(t.demo_sample_size," demo"):"0 demo",tid:"oi-finding-sample-".concat(t.id)})]}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2 text-xs","data-testid":"oi-finding-groups-".concat(t.id),children:[(0,Pe.jsx)(Fle,{label:"With trait",group:t.matched_group}),(0,Pe.jsx)(Fle,{label:"Without trait",group:t.missing_group})]}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-3 flex-wrap",children:[(0,Pe.jsx)("span",{className:"pill border inline-flex items-center gap-1.5 text-[10px] uppercase tracking-wider font-mono ".concat(r.cls),"data-testid":"oi-finding-provenance-".concat(t.id),children:r.label}),"validated"!==t.evidence_tier?(0,Pe.jsxs)("div",{className:"flex-1 min-w-[200px]","data-testid":"oi-finding-readiness-".concat(t.id),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between text-[11px] font-mono uppercase tracking-wider text-muted-foreground mb-1",children:[(0,Pe.jsxs)("span",{children:[t.real_sample_size," / ",t.min_sample_for_validation," real outcomes"]}),(0,Pe.jsxs)("span",{children:[o," more for Validated"]})]}),(0,Pe.jsx)(jR,{value:l})]}):(0,Pe.jsx)("span",{className:"text-[11px] uppercase tracking-wider font-mono text-emerald-700","data-testid":"oi-finding-readiness-".concat(t.id),children:"Validated tier reached"})]}),t.evidence_tier_reason&&(0,Pe.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-2 font-mono","data-testid":"oi-finding-reason-".concat(t.id),children:[(0,Pe.jsx)(AN,{size:10,weight:"duotone",className:"inline -mt-0.5 mr-1"}),t.evidence_tier_reason]})]})}function Cle(e){let t=e.icon,n=e.label,a=e.v,r=e.sub,i=e.tid;return(0,Pe.jsxs)("div",{className:"border border-border rounded p-2.5 bg-secondary/30","data-testid":i,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:[t," ",n]}),(0,Pe.jsx)("div",{className:"font-display font-bold text-base mt-0.5 tabular-nums",children:a}),(0,Pe.jsx)("div",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:r})]})}function Fle(e){let t=e.label,n=e.group;return(0,Pe.jsxs)("div",{className:"border border-border rounded p-2 bg-white",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:t}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-2 mt-0.5",children:[(0,Pe.jsxs)("span",{className:"font-display font-bold text-base tabular-nums",children:["n=",n.n]}),null!==n.mean&&void 0!==n.mean&&(0,Pe.jsxs)("span",{className:"text-muted-foreground tabular-nums",children:["\u03bc=",n.mean,null!=n.stdev&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb1 ",n.stdev]})]})]})]})}function Sle(e){return null===e||void 0===e?"\u2014":Math.abs(e)>=100?e.toFixed(0):Math.abs(e)>=10?e.toFixed(1):e.toFixed(2)}function Mle(e){return e<.001?"<0.001":e<.01?e.toFixed(3):e.toFixed(2)}const Ole="#041C3A",Rle="#6B7280",Hle="#374151",Ple={high:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA",dot:"#B91C1C",label:"High"},medium:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D",dot:"#D97706",label:"Medium"},low:{bg:"#EFF6FF",text:"#1E40AF",bd:"#BFDBFE",dot:"#2563EB",label:"Low"}};function Lle(e){return null===e||void 0===e?"\u2014":e<1?"".concat(Math.round(60*e)," min"):e<48?"".concat(e.toFixed(1)," hr"):"".concat((e/24).toFixed(1)," days")}function Tle(e){return null===e||void 0===e?"\u2014":e<1?"".concat((24*e).toFixed(1)," hr"):"".concat(e.toFixed(1)," days")}function Ile(e){let t=e.children;return(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Rle},children:t})}function Zle(e){let t=e.title,n=e.count,a=e.icon,r=e.accent,i=e.testid;return(0,Pe.jsx)("div",{className:"flex items-center justify-between mb-3","data-testid":i,children:(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(a,{size:16,weight:"duotone",style:{color:r}}),(0,Pe.jsx)("h3",{className:"font-brand font-bold text-lg tracking-[-0.022em]",style:{color:Ole},children:t}),(0,Pe.jsx)("span",{className:"px-2 py-0.5 rounded-full text-[11px] font-mono font-semibold",style:{background:"#F3F4F6",color:Hle},children:n})]})})}function Ble(e){let t=e.priority,n=e.count,a=e.text,r=(e.link,e.testid),i=e.onClick;const s=Ple[t]||Ple.medium;return(0,Pe.jsxs)("button",{"data-testid":r,onClick:i,className:"w-full flex items-center justify-between gap-3 p-4 rounded-xl border-2 text-left transition-colors hover:bg-secondary/40",style:{background:s.bg,borderColor:s.bd},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("span",{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg font-mono font-bold text-base",style:{background:s.dot,color:"white"},children:n}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold text-sm",style:{color:s.text},children:a}),(0,Pe.jsxs)("div",{className:"text-[11px] font-mono mt-0.5",style:{color:Rle}
2,children:["Priority: ",s.label]})]})]}),(0,Pe.jsx)(eg,{size:16,style:{color:s.text}})]})}function Vle(e){let t=e.left,n=e.right,a=e.link,r=e.badge,i=e.badgeTone,s=void 0===i?"neutral":i,o=e.testid;const l={red:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA"},amber:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D"},blue:{bg:"#EFF6FF",text:"#1E40AF",bd:"#BFDBFE"},neutral:{bg:"#F3F4F6",text:Hle,bd:"#D1D5DB"}},c=l[s]||l.neutral;return(0,Pe.jsxs)(Yn,{to:a,"data-testid":o,className:"flex items-center justify-between gap-3 py-2.5 px-3 border-b last:border-b-0 hover:bg-secondary/40 transition-colors",style:{borderColor:"#E5E7EB"},children:[(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"font-medium text-sm truncate",style:{color:Ole},children:t}),n&&(0,Pe.jsx)("div",{className:"text-[11px] font-mono mt-0.5",style:{color:Rle},children:n})]}),r&&(0,Pe.jsx)("span",{className:"pill border text-[10px] font-mono whitespace-nowrap",style:{background:c.bg,color:c.text,borderColor:c.bd},children:r}),(0,Pe.jsx)(eg,{size:14,style:{color:Rle},className:"shrink-0"})]})}function zle(e){let t=e.title,n=e.count,a=e.icon,r=e.accent,i=e.testid,s=e.children,o=e.emptyMessage;return(0,Pe.jsxs)(vO,{className:"p-5","data-testid":i,children:[(0,Pe.jsx)(Zle,{title:t,count:n,icon:a,accent:r,testid:"".concat(i,"-header")}),0===n?(0,Pe.jsx)("div",{className:"text-sm py-4 text-center",style:{color:Rle},children:o}):(0,Pe.jsx)("div",{children:s})]})}function qle(){const e=zt(),t=Ue((0,o.useState)(null),2),n=t[0],a=t[1],r=Ue((0,o.useState)(!1),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const t=(await Qi.get("/pipeline-pulse")).data;e||(a(t),d(null))}catch(zf){var t,n;e||d((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to load hiring momentum")}})(),()=>{e=!0}},[]);const u=(0,o.useCallback)(async()=>{s(!0);try{const e=(await Qi.get("/pipeline-pulse")).data;a(e),d(null)}catch(zf){var e,t;d((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to load hiring momentum")}finally{s(!1)}},[]);if(c)return(0,Pe.jsx)("div",{className:"p-8 max-w-3xl mx-auto","data-testid":"pipeline-pulse-error",children:(0,Pe.jsxs)(vO,{className:"p-6 text-center",children:[(0,Pe.jsx)(AN,{size:32,weight:"duotone",className:"mx-auto text-red-600"}),(0,Pe.jsx)("div",{className:"mt-3 font-display text-xl",children:c})]})});if(!n)return(0,Pe.jsx)("div",{className:"p-8 max-w-7xl mx-auto","data-testid":"pipeline-pulse-loading",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:Rle},children:"Loading hiring momentum\u2026"})});const m=n.suggested_actions,p=(n.candidate_risk,n.trust_risk),h=n.hiring_velocity,f=n.summary,x=n.sla_days;return(0,Pe.jsxs)("div",{className:"p-6 lg:p-8 max-w-7xl mx-auto","data-testid":"pipeline-pulse",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)(Ile,{children:["Pipeline \xb7 last 30 days \xb7 ",x,"-day SLA"]}),(0,Pe.jsxs)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1 flex items-center gap-2",style:{color:Ole},children:[(0,Pe.jsx)(Noe,{size:28,weight:"duotone"}),"Hiring momentum"]}),(0,Pe.jsxs)("p",{className:"text-sm mt-1.5",style:{color:Hle},children:["What needs your attention right now \u2014 across ",f.total_open_applications," open application",1===f.total_open_applications?"":"s"," in ",f.total_open_roles," role",1===f.total_open_roles?"":"s","."]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:u,disabled:i,"data-testid":"pipeline-pulse-refresh",style:{borderColor:Ole,color:Ole,borderRadius:10},children:[(0,Pe.jsx)(bM,{size:14,className:"mr-2 ".concat(i?"animate-spin":"")}),i?"Refreshing\u2026":"Refresh"]})]}),(0,Pe.jsxs)("section",{className:"mb-8","data-testid":"needs-action-section",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Pe.jsx)("h2",{className:"font-brand font-bold text-xl tracking-[-0.022em]",style:{color:Ole},children:"Needs action now"}),(0,Pe.jsxs)("span",{className:"text-[11px] font-mono",style:{color:Rle},children:[m.length," action",1===m.length?"":"s"]})]}),0===m.length?(0,Pe.jsxs)(vO,{className:"p-8 text-center","data-testid":"pi
2peline-clear",children:[(0,Pe.jsx)(Yf,{size:36,weight:"duotone",className:"mx-auto text-emerald-600"}),(0,Pe.jsx)("div",{className:"mt-3 font-display text-2xl",style:{color:Ole},children:"Pipeline is clear \u2728"}),(0,Pe.jsx)("p",{className:"text-sm mt-1",style:{color:Rle},children:"Nothing needs your attention right now. Great work."})]}):(0,Pe.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3",children:m.map(t=>(0,Pe.jsx)(Ble,{testid:t.testid,priority:t.priority,count:t.count,text:t.text,link:t.link,onClick:()=>e(t.link)},t.testid))})]}),p.communication_failures.length>0&&(0,Pe.jsxs)("section",{className:"mb-8",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-2",style:{color:"#B91C1C"},children:"\u25cf Delivery failures"}),(0,Pe.jsx)(zle,{testid:"trust-risk-failed",title:"Communication failures",count:p.communication_failures.length,icon:AN,accent:"#B91C1C",emptyMessage:"No delivery failures",children:p.communication_failures.slice(0,5).map((e,t)=>{var n;return(0,Pe.jsx)(Vle,{testid:"risk-failed-".concat(e.application_id,"-").concat(t),left:e.candidate_name,right:"".concat(e.comm_type," \xb7 ").concat(null===(n=e.error)||void 0===n?void 0:n.slice(0,40)),link:e.link,badge:"Failed",badgeTone:"red"},"".concat(e.application_id,"-").concat(t))})})]}),(0,Pe.jsxs)("section",{className:"mb-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-2",style:{color:"#1E40AF"},children:"\u25cf Hiring velocity"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)(vO,{className:"p-5","data-testid":"velocity-first-response",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone",style:{color:"#1E40AF"}}),(0,Pe.jsx)(Ile,{children:"Median first response"})]}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-2",style:{color:Ole},children:Lle(h.median_first_response_hours)}),(0,Pe.jsx)("div",{className:"text-[11px] font-mono mt-1",style:{color:Rle},children:h.first_response_sample>=3?"n=".concat(h.first_response_sample):"Not enough activity"})]}),(0,Pe.jsxs)(vO,{className:"p-5","data-testid":"velocity-decision",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone",style:{color:"#1E40AF"}}),(0,Pe.jsx)(Ile,{children:"Median time to decision"})]}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-2",style:{color:Ole},children:Tle(h.median_decision_days)}),(0,Pe.jsx)("div",{className:"text-[11px] font-mono mt-1",style:{color:Rle},children:h.decision_sample>=3?"n=".concat(h.decision_sample):"Not enough decisions"})]})]})]}),(0,Pe.jsxs)("div",{className:"text-[11px] font-mono mt-6",style:{color:Rle},children:["Updated ",new Date(n.computed_at).toLocaleString()," \xb7 ",f.needs_action_count," item",1===f.needs_action_count?"":"s"," surfaced across all sections"]})]})}const Ule=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,10
27.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),Wle=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Ule})));Wle.displayName="UserCircleIcon";const Yle=Wle,Kle=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M252,80a32,32,0,1,0-60,15.45l-20.86,25.66L150.82,74.4a32,32,0,1,0-45.64,0L84.87,121.11,64,95.45a32,32,0,1,0-35,15.78l14,84.06A19.94,19.94,0,0,0,62.78,212H193.22A19.94,19.94,0,0,0,213,195.29l14-84.06A32.05,32.05,0,0,0,252,80Zm-32-8a8,8,0,1,1-8,8A8,8,0,0,1,220,72ZM128,44a8,8,0,1,1-8,8A8,8,0,0,1,128,44ZM36,72a8,8,0,1,1-8,8A8,8,0,0,1,36,72ZM189.83,188H66.17L55.29,122.78l23.4,28.79A12,12,0,0,0,88,156a12.87,12.87,0,0,0,1.63-.11,12,12,0,0,0,9.37-7.1L127.18,84l.82,0,.82,0L157,148.79a12,12,0,0,0,9.37,7.1A12.87,12.87,0,0,0,168,156a12,12,0,0,0,9.31-4.43l23.4-28.79Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216.71,99.73l-15.6,93.59a8,8,0,0,1-7.89,6.68H62.78a8,8,0,0,1-7.89-6.68L39.29,99.73l.08,0a19.82,19.82,0,0,0,9.22-4.16h0L88,144l32-73.65h0a20,20,0,0,0,15.92,0h0L168,144l39.39-48.48h0a19.82,19.82,0,0,0,9.22,4.16Z",opacity:"0.2"}),o.createElement("path",{d:"M248,80a28,28,0,1,0-51.12,15.77l-26.79,33L146,73.4a28,28,0,1,0-36.06,0L85.91,128.74l-26.79-33a28,28,0,1,0-26.6,12L47,194.63A16,16,0,0,0,62.78,208H193.22A16,16,0,0,0,209,194.63l14.47-86.85A28,28,0,0,0,248,80ZM128,40a12,12,0,1,1-12,12A12,12,0,0,1,128,40ZM24,80A12,12,0,1,1,36,92,12,12,0,0,1,24,80ZM193.22,192H62.78L48.86,108.52,81.79,149A8,8,0,0,0,88,152a7.83,7.83,0,0,0,1.08-.07,8,8,0,0,0,6.26-4.74l29.3-67.4a27,27,0,0,0,6.72,0l29.3,67.4a8,8,0,0,0,6.26,4.74A7.83,7.83,0,0,0,168,152a8,8,0,0,0,6.21-3l32.93-40.52ZM220,92a12,12,0,1,1,12-12A12,12,0,0,1,220,92Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M248,80a28,28,0,1,0-51.12,15.77l-26.79,33L146,73.4a28,28,0,1,0-36.06,0L85.91,128.74l-26.79-33a28,28,0,1,0-26.6,12L47,194.63A16,16,0,0,0,62.78,208H193.22A16,16,0,0,0,209,194.63l14.47-86.85A28,28,0,0,0,248,80ZM128,40a12,12,0,1,1-12,12A12,12,0,0,1,128,40ZM24,80A12,12,0,1,1,36,92,12,12,0,0,1,24,80ZM220,92a12,12,0,1,1,12-12A12,12,0,0,1,220,92Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M246,80a26,26,0,1,0-46.6,15.84l-29.83,36.72-26-59.76a26,26,0,1,0-31.16,0l-26,59.76L56.6,95.84a26,26,0,1,0-22.36,10.09L49,194.3A14,14,0,0,0,62.78,206H193.22A14,14,0,0,0,207,194.3l14.73-88.37A26,26,0,0,0,246,80ZM128,38a14,14,0,1,1-14,14A14,14,0,0,1,128,38ZM22,80A14,14,0,1,1,36,94,14,14,0,0,1,22,80ZM195.2,192.33a2,2,0,0,1-2,1.67H62.78a2,2,0,0,1-2-1.67L46.08,104l1.22-.55,36,44.36A6,6,0,0,0,88,150a5.52,5.52,0,0,0,.81-.06,6,6,0,0,0,4.69-3.55l29.92-68.8a25.79,25.79,0,0,0,9.16,0l29.92,68.8a6,6,0,0,0,4.69,3.55,5.52,5.52,0,0,0,.81.06,6,6,0,0,0,4.66-2.22l36-44.36,1.22.55ZM220,94a14,14,0,1,1,14-14A14,14,0,0,1,220,94Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M248,80a28,28,0,1,0-51.12,15.77l-26.79,33L146,73.4a28,28,0,1,0-36.06,0L85.91,128.74l-26.79-33a28,28,0,1,0-26.6,12L47,194.63A16,16,0,0,0,62.78,208H193.22A16,16,0,0,0,209,194.63l14.47-86.85A28,28,0,0,0,248,80ZM128,40a12,12,0,1,1-12,12A12,12,0,0,1,128,40ZM24,80A12,12,0,1,1,36,92,12,12,0,0,1,24,80ZM193.22,192H62.78L48.86,108.52,81.79,149A8,8,0,0,0,88,152a7.83,7.83,0,0,0,1.08-.07,8,8,0,0,0,6.26-4.74l29.3-67.4a27,27,0,0,0,6.72,0l29.3,67.4a8,8,0,0,0,6.26,4.74A7.83,7.83,0,0,0,168,152a8,8,0,0,0,6.21-3l32.93-40.52ZM220,92a12,12,0,1,1,12-12A12,12,0,0,1,220,92Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M244,80a24,24,0,1,0-42,15.83L169,136.37,141.1,72.09a24,24,0,1,0-26.2,0L87,136.37,54,95.83A24,24,0,1,0,35.94,104l15,90a12,12,0,0,0,11.84,10H193.22a12,12,0,0,0,11.84-10l15-90A24,24,0,0,0,244,80ZM128,36a16,16,0,1,1-16,16A16,16,0,0,1,128,36ZM20,80A16,16,0,1,1,36,96,16,16,0,0,1,20,80ZM197.17,192.66a4,4,0,0,1-3.95,3.34H62.78a4,4,0,0,1-4-3.34l-15-90a23.41,23.41,0,0,0,4-1.8L84.9,146.52A4,4,0,0,0,88,148a3.27,3.27,0,0,0,.54,0,4,4,0,0,0,3.13-2.37l30.56-70.3a23.8,23.8,0,0,0,11.54,0l30.56,70.3a4,4,0,0,0,3.13,2.37,3.27,3.27,0,0,0,.54,0,4,4,0,0,0,3.1-1.48l37.09-45.64a23.41,23.41,0,0,0,4,1.8ZM220,96a16,16,0,1,1,16-16A16,16,0,0,1,220,96Z"}))]]),Gle=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Kle})));Gle.displayName="CrownIcon";const $le=Gle,Qle=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176,128a12,12,0,0,1-5.17,9.87l-52,36A12,12,0,0,1,100,164V92a12,12,0,0,1,18.83-9.87l52,36A12,12,0,0,1,176,128Zm60,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32ZM108,168V88l64,40Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40.55,110.58-52,36A8,8,0,0,1,104,164V92a8,8,0,0,1,12.55-6.58l52,36a8,8,0,0,1,0,13.16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm47.18-95.09-64-40A6,6,0,0,0,102,88v80a6,6,0,0,0,9.18,5.09l64-40a6,6,0,0,0,0-10.18ZM114,157.17V98.83L160.68,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48.24-94.78-64-40A8,8,0,0,0,100,88v80a8,8,0,0,0,12.24,6.78l64-40a8,8,0,0,0,0-13.56ZM116,153.57V102.43L156.91,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm46.12-95.39-64-40A4,4,0,0,0,104,88v80a4,4,0,0,0,2.06,3.5,4.06,4.06,0,0,0,1.94.5,4,4,0,0,0,2.12-.61l64-40a4,4,0,0,0,0-6.78ZM112,160.78V95.22L164.45,128Z"}))]]),Xle=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Qle})));Xle.displayName="PlayCircleIcon";const Jle=Xle;function ece(){const e=Ue((0,o.useState)("candidate"),2),t=e[0],n=e[1];return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"getting-started",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Getting Started"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight",children:"How to use AROS"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 text-sm max-w-2xl leading-relaxed",children:"Pick your role, follow the workflow, and use the demo script at the bottom to walk a new user through the platform end-to-end. Every step links you to the right page."})]})}),(0,Pe.jsxs)(gZ,{value:t,onValueChange:n,className:"mt-6",children:[(0,Pe.jsxs)(vZ,{className:"grid grid-cols-2 md:grid-cols-5 w-full max-w-3xl",children:[(0,Pe.jsxs)(bZ,{value:"candidate","data-testid":"tab-candidate",children:[(0,Pe.jsx)(Yle,{size:14,className:"mr-1.5"})," Candidate"]}),(0,Pe.jsxs)(bZ,{value:"recruiter","data-testid":"tab-recruiter",children:[(0,Pe.jsx)(Cg,{size:14,className:"mr-1.5"})," Recruiter"]}),(0,Pe.jsxs)(bZ,{value:"employer","data-testid":"tab-employer",children:[(0,Pe.jsx)($le,{size:14,className:"mr-1.5"})," Employer"]}),(0,Pe.jsxs)(bZ,{value:"admin","data-testid":"tab-admin",children:[(0,Pe.jsx)(iy,{size:14,className:"mr-1.5"})," Admin"]}),(0,Pe.jsxs)(bZ,{value:"demo","data-testid":"tab-demo",children:[(0,Pe.jsx)(Jle,{size:14,className:"mr-1.5"})," Demo Script"]})]}),(0,Pe.jsx)(yZ,{value:"candidate",className:"mt-6",children:(0,Pe.jsx)(ace,{})}),(0,Pe.jsx)(yZ,{value:"recruiter",className:"mt-6",children:(0,Pe.jsx)(rce,{})}),(0,Pe.jsx)(yZ,{value:"employer",className:"mt-6",children:(0,Pe.jsx)(ice,{})}),(0,Pe.jsx)(yZ,{value:"admin",className:"mt-6",children:(0,Pe.jsx)(sce,{})}),(0,Pe.jsx)(yZ,{value:"demo",className:"mt-6",children:(0,Pe.jsx)(oce,{})})]}),(0,Pe.jsx)(tce,{})]})}function tce(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];if((0,o.useEffect)(()=>{Qi.get("/tour/analytics").then(e=>n(e.data)).catch(()=>{})},[]),!t||!t.summary||0===t.summary.sessions)return null;const a=t.summary,r=t.step_reach,i=t.dropoff,s=Math.max(...Object.values(r||{}),1);return(0,Pe.jsxs)("section",{className:"mt-10 border-t border-border pt-8","data-testid":"tour-analytics",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:[(0,Pe.jsx)(BH,{size:12,weight:"duotone"})," GUIDED TOUR FUNNEL"]}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground font-mono",children:"Live \xb7 this org"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-5 ga
2p-3 mt-4",children:[(0,Pe.jsx)(nce,{label:"Sessions",value:a.sessions}),(0,Pe.jsx)(nce,{label:"Completions",value:a.completions,highlight:!0}),(0,Pe.jsx)(nce,{label:"Completion rate",value:"".concat(a.completion_rate,"%")}),(0,Pe.jsx)(nce,{label:"Skipped",value:a.skipped}),(0,Pe.jsx)(nce,{label:"Exited",value:a.exited})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-5",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground font-mono font-semibold",children:"STEP REACH"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5",children:Object.entries(r||{}).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,Pe.jsxs)("span",{className:"w-12 font-mono text-muted-foreground",children:["Step ",n]}),(0,Pe.jsx)("div",{className:"flex-1 h-2 bg-secondary rounded-full overflow-hidden",children:(0,Pe.jsx)("div",{className:"h-full bg-[#0F172A]",style:{width:"".concat(a/s*100,"%")}})}),(0,Pe.jsx)("span",{className:"w-8 text-right font-mono text-muted-foreground",children:a})]},n)})})]}),(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground font-mono font-semibold",children:"DROP-OFF STEPS"}),0===Object.keys(i||{}).length?(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground italic mt-2",children:"No drop-offs yet \u2014 every started tour was completed, skipped, or still in progress."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm",children:Object.entries(i).slice(0,6).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("li",{className:"flex items-center gap-2 text-xs",children:[(0,Pe.jsxs)("span",{className:"w-12 font-mono text-muted-foreground",children:["Step ",n]}),(0,Pe.jsxs)("span",{className:"flex-1 text-rose-700",children:[a," session",1===a?"":"s"," stuck here"]})]},n)})})]})]})]})}function nce(e){let t=e.label,n=e.value,a=e.highlight;return(0,Pe.jsxs)("div",{className:"border rounded-md p-3 ".concat(a?"border-[#0F4FA8] bg-[#0F4FA8]/5":"border-border"),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-1",children:n})]})}function ace(){return(0,Pe.jsx)(lce,{purpose:"Your candidate portal is where you build a complete profile, get AI-matched to roles, apply with full context, and track every conversation. AROS helps employers see who you really are \u2014 not just your resume.",workflow:["Upload your resume \u2014 AROS parses skills, experience, and education automatically.","Add Human Context \u2014 gaps, career pivots, and anything a resume can't capture. This is the differentiator.","Browse Find Jobs and apply \u2014 AROS shows what your r\xe9sum\xe9 supports for each role and surfaces context-relevant questions.","Track every application in one place \u2014 see status, evidence AROS surfaced, and any messages from employers.","Use the AI Career Agent for resume polish, interview prep, and role-search tips."],pages:[{to:"/app/dashboard",label:"Dashboard"},{to:"/app/profile",label:"Profile & Resume"},{to:"/app/jobs",label:"Find Jobs"},{to:"/app/applications",label:"My Applications"},{to:"/app/career-agent",label:"AI Career Agent"},{to:"/app/messages",label:"Messages"}],decisions:["Which roles match my goals \u2014 read the evidence AROS surfaces to prioritise.","Should I disclose context (gaps, pivots, transitions)? AROS encourages it \u2014 context strengthens what employers see.","Which employer messages need a same-day reply?"],demoPath:["Open Profile \u2192 upload your resume PDF.","Fill the Human Context block.","Open Find Jobs \u2192 apply to one role.","Open My Applications \u2192 review the evidence AROS surfaced.","Ask the AI Career Agent for an interview-prep brief."]})}function rce(){return(0,Pe.jsx)(lce,{purpose:"Recruiters use AROS to convert early hiring steps into qualified, interviewed, hire-ready candidates. AROS surfaces evidence of fit, uncommon strengths worth a look, and gives you a ready-to-send Decision Packet for hiring managers.",workflow:["Open Today's hiring focus each morning \u2014 the shortlist highlights the candidates your team most likely needs to act on across all open jobs.","Drill into Pipeline to triage new applicants by stage.","On a candidate, review uncommon strengths worth a look, generate Context Questions, and request a screening.","Use Compare to put 2-5 finalists side-by-side.","Open Decision Packet \u2192 share it with the hiring manager via a tokenised link (auto-expires).","Submit Manager Interview Intel after the interview to feed the Winning Hire model."],pages:[{to:"/app/employer/digest",label:"Today's hiring focus"},{to:"/app/employer/applicants",label:"Pipeline"},{to:"/app/employer/compare",label:"Compare"},{to:"/app/employer/packet/compare",label:"Decision Packet"},{to:"/app/employer/intelligence",label:"Intelligence"},{to:"/app/employer/ai-assistant",label:"AI Assistant"}],decisions:["Who progresses to interview today?","Which finalists go into the comparison packet?","Is this candidate similar to our top hires? (Winning Hire Similarity)","Do s
2ource attribution and post-hire performance justify continuing to spend on this channel?"],demoPath:["Start at Today's hiring focus.","Click into a candidate \u2192 open Decision Packet.","Click 'Share with hiring manager' \u2192 copy the link.","Go to Compare \u2192 pick 3 finalists \u2192 'Decision Packet' button.","Show Intelligence \u2192 cross-org benchmarks tab."]})}function ice(){return(0,Pe.jsx)(lce,{purpose:"Employers and hiring managers use AROS to make confident hire decisions in minutes \u2014 not days. For every candidate you get a one-page summary: what makes them a fit, how they compare to your best hires so far, what to ask in the interview, and where to dig deeper. You always make the call.",workflow:["Open Today's hiring focus \u2014 the daily shortlist tells you which candidates need attention today.","Open a candidate \u2192 scan the Decision Packet (Executive Summary + evidence summary).","Use the built-in Interview Guide (Behavioral / Skills / Context) during the interview.","Submit Manager Interview Intel \u2014 your rating teaches AROS what 'good' looks like at your organisation.","Compare finalists \u2192 use the Comparison Packet to weigh candidates side-by-side with evidence.","Import performance data quarterly \u2014 AROS uses it to refine fit scoring + similarity."],pages:[{to:"/app/employer",label:"Dashboard"},{to:"/app/employer/digest",label:"Today's hiring focus"},{to:"/app/employer/applicants",label:"Pipeline"},{to:"/app/employer/packet/compare",label:"Decision Packet"},{to:"/app/employer/intelligence",label:"Intelligence"},{to:"/app/employer/performance",label:"Performance"},{to:"/app/employer/feedback",label:"Validation Feedback"}],decisions:["Does the evidence AROS surfaced match what your gut says about this candidate?","Which finalist gets the offer? (Comparison Packet lays out the evidence side-by-side.)","Which sources produce the highest-performing hires? (Performance + Source Attribution.)","What feedback can I give the product team? (Validation Feedback widget.)"],demoPath:["Today's hiring focus \u2192 click a candidate.","Open Decision Packet \u2192 read Executive Summary + evidence summary.","Print / Share with another GM.","Open Comparison Packet on 2-3 finalists.","Open Performance \u2192 import a CSV \u2192 see which traits correlate with success."]})}function sce(){return(0,Pe.jsx)(lce,{purpose:"Admins manage tenants, users, organizations, and audit trails. You also have read-access to every org's Validation Feedback for product / customer success work.",workflow:["Review the Audit Logs daily for unusual activity (resume downloads, packet shares, share revokes, feedback exports).","Provision new Organizations and invite their first user.","Manage Users \u2014 reset roles, deactivate accounts, view org membership.","Monitor Validation Feedback across all orgs to surface customer-success themes."],pages:[{to:"/app/admin",label:"Admin Dashboard"},{to:"/app/admin/users",label:"Users"},{to:"/app/admin/orgs",label:"Organizations"},{to:"/app/admin/audit",label:"Audit Logs"},{to:"/app/employer/feedback",label:"Validation Feedback (all orgs)"}],decisions:["Is any account showing suspicious activity? (Audit Logs.)","Which organizations need onboarding outreach?","What product feedback themes warrant escalation to engineering?"],demoPath:["Open Admin Dashboard \u2192 review tenant counts.","Open Users \u2192 demo role change + deactivation flow.","Open Audit Logs \u2192 filter by action=packet.share_viewed.","Open Validation Feedback \u2192 click Run AI Synthesis."]})}function oce(){return(0,Pe.jsxs)("div",{"data-testid":"demo-script",children:[(0,Pe.jsxs)("div",{className:"border border-[#0F172A] rounded-md p-4 bg-[#0F172A] text-white",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.25em] font-mono text-white/60",children:[(0,Pe.jsx)(Sparkle,{size:12,weight:"duotone"})," 10-MINUTE END-TO-END DEMO"]}),(0,Pe.jsx)("p",{className:"text-sm mt-2 leading-relaxed",children:"Follow these 10 steps in order to show a new user the full power of AROS \u2014 from the first candidate signal through to the closed-loop performance learning. Each step has the page, a recommended audie
2nce, what to show, and what to say."})]}),(0,Pe.jsx)("ol",{className:"mt-6 space-y-3","data-testid":"demo-steps",children:[{n:1,title:"Create or review a job",to:"/app/employer/jobs",role:"employer/recruiter",what:"Confirm the job has a clear title, level, and description. AI can draft this if needed.",say:'"Every AROS workflow starts from a job. Notice the AI-drafted description and the structured competencies \u2014 these become the basis for evaluating candidates."'},{n:2,title:"Review applicants",to:"/app/employer/applicants",role:"employer/recruiter",what:"Scan the Pipeline. Each applicant is grouped by what AROS found and what still needs review.",say:'"This is the same volume you see in your current ATS \u2014 but every candidate is organized by verifiable evidence and grouped for human review."'},{n:3,title:"Open Today's hiring focus",to:"/app/employer/digest",role:"employer/recruiter",what:"AROS surfaces the candidates that deserve attention today \u2014 across all jobs.",say:'"Instead of 200 applicants to triage, AROS shows the small set you should actually move forward today. This alone saves an hour per recruiter per day."'},{n:4,title:"Open a candidate profile",to:"/app/employer/applicants",role:"employer/recruiter",what:"Click into one candidate. Tour the sections: what we found, what we didn't find, human context, similar hires.",say:'"Most ATS show you a resume. AROS shows you the human \u2014 including gaps, pivots, and the traits that correlate with success at your organisation."'},{n:5,title:"Review the Decision Packet",to:"/app/employer/applicants",role:"employer/hiring manager",what:"From the candidate page, click 'Decision Packet'. Read the Executive Summary, evidence summary, and Interview Guide.",say:'"This is a one-page brief any hiring manager can read in 90 seconds. Every section is grounded in verifiable evidence \u2014 what the candidate has done, where their context fits, similarity to your top hires, and the questions that actually matter for this candidate."'},{n:6,title:"Share the packet with a manager",to:"/app/employer/applicants",role:"recruiter",what:"Click 'Share with hiring manager'. The link is semi-anonymised, time-limited, and revokable.",say:'"Your hiring managers don\'t need accounts. They get a clean read-only link that expires in 14 days. We strip identifying details so the manager can focus on the decision."'},{n:7,title:"Compare finalists",to:"/app/employer/packet/compare",role:"employer/recruiter",what:"Pick 2-5 finalists. AROS produces a comparison packet with evidence-first summaries and per-signal leaders.",say:'"When you have 3 strong finalists, this is the conversation accelerator. AROS lays the evidence out side-by-side so your team can see where each candidate leads."'},{n:8,title:"Import performance data",to:"/app/employer/performance",role:"employer",what:"Upload a CSV of 30/60/90-day performance feedback. AROS recomputes the Winning Hire model.",say:"\"This is the flywheel. Every hire you make and rate teaches AROS what 'great' looks like at your organisation \u2014 and the next candidate you review will benefit.\""},{n:9,title:"Review source quality",to:"/app/employer/analytics",role:"employer/recruiter",what:"Open Analytics + Source Attribution. See which channels produce candidates who actually perform.",say:'"Stop spending ad dollars on sources that don\'t convert to retained hires. AROS ties source to long-term performance."'},{n:10,title:"Submit feedback",to:"/app/employer/feedback",role:"everyone",what:"Use the floating Feedback button on Decision Packet / Public Packet / Today's hiring focus. The Validation Feedback page shows trends + AI Synthesis.",say:'"We capture structured feedback on every key surface. Run AI Synthesis to turn 20 conversations into 3 product priorities \u2014 in one click."'}].map(e=>(0,Pe.jsx)("li",{className:"border border-border rounded-md p-4 hover:border-[#0F172A] transition-colors","data-testid":"demo-step-".concat(e.n),children:(0,Pe.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Pe.jsx)("div",{className:"shrink-0 w-9 h-9 rounded-full bg-[#0F4FA8]/10 border border-[#0F4FA8]/30 grid place-items-center font-display font-bold text-[#0F4FA8]",children:e.n}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-3 flex-wrap",children:[(0,Pe.jsx)("h3",{className:"font-display font-semibold text-lg",children:e.title}),(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:["For: ",e.role]})]}),(0,Pe.jsxs)("div",{className:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-mono font-semibold flex items-center gap-1",children:[(0,Pe.jsx)(dM,{size:10})," WHAT TO DO"]}),(0,Pe.jsx)("p",{className:"mt-1 text-sm leading-relaxed",children:e.what})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground font-mono font-semibold flex items-center gap-1",children:[(0,Pe.jsx)(TH,{size:10})," WHAT TO SAY"]}),(0,Pe.jsx)("p",{className:"mt-1 text-sm leading-relaxed italic",children:e.say})]})]}),(0,Pe.jsxs)(Yn,{to:e.to,"data-testid":"demo-step-link-".concat(e.n),className:"mt-3 inline-flex items-center gap-1 text-sm font-semibold text-[#0F4FA8] hover:text-[#0F172A] transition-colors",children:["Open this page ",(0,Pe.jsx)(eg,{size:14})]})]})]})},e.n))}),(0,Pe.jsxs)("div",{className:"mt-8 border-l-2 border-[#0F4FA8] pl-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:"PRO TIP"}),(0,Pe.jsxs)("p",{className:"text-sm mt-1 leading-relaxed text-muted-foreground",children:["For shortest-path demos: jump straight to ",(0,Pe.jsx)("strong",{children:"Today's hiring focus \u2192 Decision Packet \u2192 Share Link \u2192 AI Synthesis"}),'. That\'s the "wow" path. The rest of the steps fill in the why.']})]})]})}function lce(e){let t=e.purpose,n=e.workflow,a=e.pages,r=e.decisions,i=e.demoPath;return(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"role-section",children:[(0,Pe.jsx)(cce,{icon:(0,Pe.jsx)(pM,{size:14,weight:"duotone"}),title:"WHAT THIS PORTAL IS FOR",children:(0,Pe.jsx)("p",{className:"text-sm leading-relaxed",children:t})}),(0,Pe.jsx)(cce,{icon:(0,Pe.jsx)(yx,{size:14,weight:"duotone"}),title:"STEP-BY-STEP WORKFLOW",children:(0,Pe.jsx)("ol",{className:"space-y-2 text-sm","data-testid":"workflow-list",children:n.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-3",children:[(0,Pe.jsx)("span",{className:"shrink-0 w-6 h-6 rounded-full bg-[#0F4FA8]/10 border border-[#0F4FA8]/30 grid place-items-center text-xs font-bold text-[#0F4FA8]",children:t+1}),(0,Pe.jsx)("span",{className:"leading-relaxed pt-0.5",children:e})]},t))})}),(0,Pe.jsx)(cce,{icon:(0,Pe.jsx)(eg,{size:14,weight:"duotone"}),title:"PAGES YOU'LL USE",children:(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"pages-list",children:a.map(e=>(0,Pe.jsxs)(Yn,{to:e.to,className:"inline-flex items-center gap-1 border border-border rounded-md px-2.5 py-1 text-xs hover:border-[#0F172A] hover:text-[#0F4FA8] transition-colors",children:[e.label," ",(0,Pe.jsx)(eg,{size:11})]},e.to))})}),(0,Pe.jsx)(cce,{icon:(0,Pe.jsx)(Yf,{size:14,weight:"duotone"}),title:"DECISIONS YOU NEED TO MAKE",children:(0,Pe.jsx)("ul",{className:"space-y-1.5 text-sm","data-testid":"decisions-list",children:r.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-emerald-600 shrink-0",children:"\u2192"}),(0,Pe.jsx)("span",{children:e})]},t))})}),(0,Pe.jsx)(cce,{icon:(0,Pe.jsx)(Jle,{size:14,weight:"duotone"}),title:"RECOMMENDED DEMO PATH",children:(0,Pe.jsx)("ol",{className:"space-y-1.5 text-sm list-decimal pl-5","data-testid":"demo-path-list",children:i.map((e,t)=>(0,Pe.jsx)("li",{className:"leading-relaxed",children:e},t))})})]})}function cce(e){let t=e.icon,n=e.title,a=e.children;return(0,Pe.jsxs)("section",{className:"border border-border rounded-md p-5",children:[(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.25em] text-[#0F4FA8] font-mono font-semibold",children:[t," ",n]}),(0,Pe.jsx)("div",{className:"mt-3",children:a})]})}function dce(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1];(0,o.useEffect)(()=>{(async()=>{i(null);try{const e=await Qi.get("/admin/email/status");n(e.data)}catch(zf){var e,t;i((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not load email status.")}})()},[]);const x=(null===t||void 0===t?void 0:t.configured)&&(null===t||void 0===t?void 0:t.domain_verified);return(0,Pe.jsxs)("div",{"data-testid":"admin-email-diagnostic",className:"border border-border rounded-md p-6 mt-6",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Nx,{size:18,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl",children:"Email pipeline"})]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Resend integration status + live-send self-test. Use this before any candidate is involved."})]}),(0,Pe.jsx)("button",{type:"button",onClick:async()=>{c(!0),f(null),m(null);try{const e=await Qi.post("/admin/email/test-send");m(e.data)}catch(zf){var e,t;f((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Test send failed.")}finally{c(!1)}},disabled:l||!(null!==t&&void 0!==t&&t.configured),"data-testid":"admin-email-test-send-btn",className:"text-sm font-medium px-4 py-2 rounded-md transition-colors disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"#0F172A",color:"white"},children:l?(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Pe.jsx)(hx,{size:14,className:"animate-spin"}),"Sending\u2026"]}):(0,Pe.jsx)("span",{children:"Send test email to me"})})]}),r&&(0,Pe.jsx)("div",{className:"mt-4 text-sm text-red-600","data-testid":"admin-email-status-error",children:r}),t&&(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3","data-testid":"admin-email-status-pills",children:[(0,Pe.jsx)(uce,{label:"API key",ok:t.configured,okText:"Configured",badText:"RESEND_API_KEY not set",testid:"admin-email-pill-configured"}),(0,Pe.jsx)(uce,{label:"Safety switch",ok:t.safety_switch_on,okText:"EMAIL_DOMAIN_VERIFIED=true",badText:"EMAIL_DOMAIN_VERIFIED unset",testid:"admin-email-pill-safety"}),(0,Pe.jsx)(uce,{label:"Live ready",ok:x,okText:"Domain verified \u2014 live",badText:"Mock mode \u2014 sends will be skipped",testid:"admin-email-pill-ready"})]}),(null===t||void 0===t?void 0:t.sender_email)&&(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-mono px-3 py-2 rounded-md border border-border bg-[#FAFBFC]","data-testid":"admin-email-sender-preview",children:["From: ",(0,Pe.jsx)("span",{className:"font-semibold",children:t.sender_name||"\u2014"})," <",t.sender_email,">"]}),(u||h)&&(0,Pe.jsxs)("div",{className:"mt-5",children:[h&&(0,Pe.jsxs)("div",{className:"text-sm text-red-600 flex items-start gap-2","data-testid":"admin-email-send-error",children:[(0,Pe.jsx)(Qx,{size:16,weight:"duotone",className:"mt-0.5 shrink-0"}),(0,Pe.jsx)("span",{children:h})]}),u&&u.sent&&(0,Pe.jsxs)("div",{className:"text-sm text-emerald-700 flex items-start gap-2","data-testid":"admin-email-send-success",children:[(0,Pe.jsx)(Yf,{size:16,weight:"duotone",className:"mt-0.5 shrink-0"}),(0,Pe.jsxs)("span",{children:["Sent. Check the inbox for ",(0,Pe.jsx)("strong",{children:(null===t||void 0===t?void 0:t.sender_email)&&t.sender_email}),"'s configured recipient \u2014 and the Resend dashboard logs for message id ",(0,Pe.jsx)("code",{className:"font-mono",children:u.id||"(no id)"}),"."]})]}),u&&!u.sent&&(0,Pe.jsxs)("div",{className:"text-sm text-amber-700 flex items-start gap-2","data-testid":"admin-email-send-skipped",children:[(0,Pe.jsx)(Qx,{size:16,weight:"duotone",className:"mt-0.5 shrink-0"}),(0,Pe.jsxs)("span",{children:["Not sent \u2014 reason: ",(0,Pe.jsx)("code",{className:"font-mono",children:u.reason||"unknown"}),".","email_service_not_configured"===u.reason&&(0,Pe.jsxs)(Pe.Fragment,{children:[" Set ",(0,Pe.jsx)("code",{className:"font-mono",children:"RESEND_API_KEY"})," in your deployment env and redeploy."]}),"mock_unverified_domain"===u.reason&&(0,Pe.jsxs)(Pe.Fragment,{children:[" Set ",(0,Pe.jsx)("code",{className:"font-mono",children:"EMAIL_DOMAIN_VERIFIED=true"})," once your Resend domain is verified, then redeploy."]})]})]})]})]})}function uce(e){let t=e.label,n=e.ok,a=e.okText,r=e.badText,i=e.testid;return(0,Pe.jsxs)("div",{"data-testid":i,className:"rounded-md border p-3",style:{borderColor:n?"#10B981":"#F59E0B",background:n?"#ECFDF5":"#FFFBEB"},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.15em] text-muted-foreground font-mono",children:t}),(0,Pe.jsxs)("div",{className:"mt-1 text-sm font-medium flex items-center gap-2",children:[n?(0,Pe.jsx)(Yf,{size:16,weight:"duotone",className:"text-emerald-600"}):(0,Pe.jsx)(Qx,{size:16,weight:"duotone",className:"text-amber-600"}),(0,Pe.jsx)("span",{style:{color:n?"#065F46":"#92400E"},children:n?a:r})]})]})}const mce="#041C3A",pce="#0F4FA8",hce="#6B7280",fce="#374151",xce="#0F7E4A",gce="#B45309";function vce(e){if(!e)return"\u2014";try{const t=new Date(e);
2return isNaN(t.getTime())?"\u2014":t.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(t){return"\u2014"}}function bce(e){let t=e.label,n=e.value,a=e.sub,r=e.accent,i=void 0===r?mce:r,s=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-md border bg-white p-4",style:{borderColor:"#E5E7EB"},"data-testid":s,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono",style:{color:hce},children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-1 tracking-tight",style:{color:i},children:null!==n&&void 0!==n?n:"\u2014"}),a&&(0,Pe.jsx)("div",{className:"text-xs mt-1",style:{color:fce},children:a})]})}function yce(){var e,t,n,a,r,i,s,l,c,d,u,m;const p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)([]),2),g=x[0],v=x[1],b=Ue((0,o.useState)(""),2),y=b[0],j=b[1],w=Ue((0,o.useState)(!0),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!1),2),E=k[0],D=k[1],_=Ue((0,o.useState)(null),2),C=_[0],F=_[1],S=(0,o.useRef)(null),M=(0,o.useCallback)(async e=>{try{const t=e?{organization_id:e}:{},n=await Qi.get("/candidate-intelligence/v2/admin/evidence-health",{params:t});f(n.data),F(null)}catch($ge){var t;const n=null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t?void 0:t.status;409===n||403===n||401===n?A(!1):F("Could not load evidence health.")}},[]);(0,o.useEffect)(()=>{M(""),Qi.get("/candidate-intelligence/v2/admin/organizations").then(e=>v(Array.isArray(e.data)?e.data:[])).catch(()=>v([]))},[M]),(0,o.useEffect)(()=>{M(y)},[y,M]),(0,o.useEffect)(()=>{var e;const t="running"===(null===h||void 0===h||null===(e=h.backfill)||void 0===e?void 0:e.status);return t&&!S.current?S.current=setInterval(()=>M(y),3e3):!t&&S.current&&(clearInterval(S.current),S.current=null),()=>{S.current&&(clearInterval(S.current),S.current=null)}},[null===h||void 0===h||null===(e=h.backfill)||void 0===e?void 0:e.status,M,y]);if(!N)return null;const O=(null===h||void 0===h?void 0:h.backfill)||{},R="running"===O.status,H=null!==(t=null===h||void 0===h?void 0:h.total_indexed)&&void 0!==t?t:0,P=null!==(n=null===h||void 0===h?void 0:h.candidates_with_evidence)&&void 0!==n?n:0,L=null!==(a=null===h||void 0===h?void 0:h.candidates_without_evidence)&&void 0!==a?a:0,T=null!==(r=null===h||void 0===h?void 0:h.total_candidates)&&void 0!==r?r:0,I=T>0?Math.round(P/T*100):null,Z=y?(null===(i=g.find(e=>e.id===y))||void 0===i?void 0:i.name)||"Selected organization":"All organizations";return(0,Pe.jsxs)("section",{className:"mt-8 rounded-lg border bg-white",style:{borderColor:"#E5E7EB"},"data-testid":"admin-evidence-health-tile",children:[(0,Pe.jsxs)("header",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3 px-5 pt-5 pb-3 border-b",style:{borderColor:"#F3F4F6"},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] font-mono",style:{color:hce},children:[(0,Pe.jsx)(sse,{size:11,weight:"duotone"})," Admin \xb7 Evidence health"]}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-xl mt-1 tracking-tight",style:{color:mce},children:"AI Supporting Evidence corpus"}),(0,Pe.jsx)("p",{className:"text-sm mt-0.5",style:{color:fce},children:'Health of the "Based on" evidence used by AI Analysis cards.'})]}),(0,Pe.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Pe.jsx)(nv,{size:14,weight:"duotone",style:{color:hce}}),(0,Pe.jsxs)("select",{value:y,onChange:e=>j(e.target.value),"data-testid":"admin-evidence-health-org-select",className:"text-xs border rounded px-2 py-1.5 bg-white focus:outline-none focus:ring-1",style:{borderColor:"#E5E7EB",color:fce,minWidth:200},children:[(0,Pe.jsx)("option",{value:"",children:"All organizations"}),g.map(e=>(0,Pe.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>M(y),"data-testid":"admin-evidence-health-refresh",className:"text-xs",children:[(0,Pe.jsx)(bM,{size:13,className:"mr-1"})," Refresh"]}),(0,Pe.jsx)(Lo,{size:"sm",onClick:async()=>
2{if(!E){D(!0),F(null);try{const e=y?{organization_id:y}:{};await Qi.post("/candidate-intelligence/v2/admin/run-backfill",e),await M(y)}catch($ge){var e,t;const a=null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail;F("backfill_already_running"===a?"A backfill is already running.":"Could not start backfill.")}finally{D(!1)}}},disabled:E||R,"data-testid":"admin-evidence-health-run-backfill",className:"text-xs text-white",style:{backgroundColor:pce},children:R?"Backfill running\u2026":E?"Starting\u2026":y?"Run backfill \xb7 this org":"Run backfill"})]})]}),(0,Pe.jsxs)("div",{className:"p-5",children:[(null===h||void 0===h?void 0:h.thin_evidence)&&(0,Pe.jsxs)("div",{className:"mb-4 rounded-md border p-3 flex items-start gap-2",style:{borderColor:"#FDE68A",backgroundColor:"#FFFBEB"},"data-testid":"admin-evidence-health-thin-warning",children:[(0,Pe.jsx)(AN,{size:16,weight:"duotone",style:{color:gce},className:"mt-0.5"}),(0,Pe.jsxs)("div",{className:"flex-1 text-xs",style:{color:fce},children:[(0,Pe.jsxs)("div",{className:"font-medium",style:{color:gce},children:["Thin supporting evidence \xb7 ",Z]}),(0,Pe.jsx)("div",{className:"mt-0.5",children:h.thin_evidence_reason})]})]}),C&&(0,Pe.jsxs)("div",{className:"mb-3 text-xs px-3 py-2 rounded flex items-center gap-1.5",style:{color:gce,backgroundColor:"#FEF3C7"},"data-testid":"admin-evidence-health-error",children:[(0,Pe.jsx)(AN,{size:13,weight:"duotone"})," ",C]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(bce,{label:"Indexed \xb7 last 24h",value:null!==(s=null===h||void 0===h?void 0:h.indexed_last_24h)&&void 0!==s?s:"\u2014",sub:y?"".concat(Z):"Across all organizations",testid:"admin-evidence-stat-24h",accent:pce}),(0,Pe.jsx)(bce,{label:"Total indexed",value:H,sub:null!=(null===h||void 0===h?void 0:h.vector_rows)?"".concat(h.vector_rows," in search index"):void 0,testid:"admin-evidence-stat-total"}),(0,Pe.jsx)(bce,{label:"Candidates \xb7 with evidence",value:P,sub:null!=I?"".concat(I,"% of ").concat(T," ").concat(y?"applicants":"candidates"):void 0,testid:"admin-evidence-stat-with",accent:xce}),(0,Pe.jsx)(bce,{label:"Candidates \xb7 without evidence",value:L,sub:"Would benefit from backfill",testid:"admin-evidence-stat-without",accent:L>0?gce:fce})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-3 text-xs",style:{color:fce},children:[(0,Pe.jsxs)("div",{className:"rounded-md border p-3 flex items-start gap-2",style:{borderColor:"#E5E7EB"},"data-testid":"admin-evidence-latest-indexed",children:[(0,Pe.jsx)(ag,{size:14,weight:"duotone",className:"mt-0.5",style:{color:hce}}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"uppercase tracking-[0.18em] text-[10px] font-mono",style:{color:hce},children:"Most recent activity"}),(0,Pe.jsx)("div",{className:"mt-0.5",style:{color:mce},children:vce(null===h||void 0===h?void 0:h.latest_indexed_at)})]})]}),(0,Pe.jsxs)("div",{className:"rounded-md border p-3 flex items-start gap-2",style:{borderColor:"#E5E7EB"},"data-testid":"admin-evidence-backfill-status",children:["complete"===O.status?(0,Pe.jsx)(Yf,{size:14,weight:"duotone",className:"mt-0.5",style:{color:xce}}):"error"===O.status?(0,Pe.jsx)(AN,{size:14,weight:"duotone",className:"mt-0.5",style:{color:gce}}):(0,Pe.jsx)(bM,{size:14,weight:"duotone",className:"mt-0.5 ".concat(R?"animate-spin":""),style:{color:R?pce:hce}}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("div",{className:"uppercase tracking-[0.18em] text-[10px] font-mono",style:{color:hce},children:"Backfill status"}),(0,Pe.jsxs)("div",{className:"mt-0.5",style:{color:mce},children:["idle"===O.status&&"Idle \u2014 no backfill running","running"===O.status&&(0,Pe.jsxs)(Pe.Fragment,{children:["Running \xb7 scanned ",(0,Pe.jsx)("b",{children:null!==(l=O.scanned)&&void 0!==l?l:0})," apps \xb7 wrote ",(0,Pe.jsx)("b",{children:null!==(c=O.written)&&void 0!==c?c:0})," pieces"]}),"complete"===O.status&&(0,Pe.jsxs)(Pe.Fragment,{children:["Complete \xb7 scanned ",(0,Pe.jsx)("b",{children:null!==(d=O.scanned)&&void 0!==d?d:0})," apps \xb7 wrote ",(0,Pe.jsx)("b",{children:null!==(u=O.written)&&void 0!==u?u:0})," pieces"]}),"error"===O.status&&(0,Pe.jsxs)(Pe.Fragment,{children:["Error \xb7 ",O.last_error||"unknown"]})]}),O.scope_organization_id&&(0,Pe.jsxs)("div",{className:"mt-0.5 text-[11px]",style:{color:hce},children:["scope: ",(null===(m=g.find(e=>e.id===O.scope_organization_id))||void 0===m?void 0:m.name)||O.scope_organization_id]}),(O.started_at||O.completed_at)&&(0,Pe.jsxs)("div",{className:"mt-0.5 text-[11px]",style:{color:hce},children:[O.started_at&&(0,Pe.jsxs)(Pe.Fragment,{children:["started ",vce(O.started_at)]}),O.completed_at&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 finished ",vce(O.completed_at)]})]}),O.errors>0&&(0,Pe.jsxs)("div",{className:"mt-0.5 text-[11px]",style:{color:gce},children:[O.errors," application",1===O.errors?"":"s"," skipped"]})]})]})]})]})]})}const jce="#041C3A",wce="#6B7280",Nce="#374151",Ace="#0F7E4A",kce="#B45309",Ece="#E5E7EB",Dce={healthy:{color:Ace,label:"Healthy",icon:Yf},degraded:{color:"#991B1B",label:"Degraded",icon:AN},off:{color:wce,label:"Off",icon:Noe}};function _ce(e){let t=e.status,n=e.testid;const a=Dce[t]||Dce.off,r=a.icon;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] uppercase tracking-[0.18em] font-mono px-2 py-0.5 rounded-full border bg-white",style:{color:a.color,borderColor:a.color},"data-testid":n,children:[(0,Pe.jsx)(r,{size:11,weight:"fill"})," ",a.label]})}const Cce={vector_search:"Supporting Evidence \xb7 index",rag_cards:"AI Analysis Cards",bias_auditor:"AI Review (bias)",outcome_learning:"Learning Corpus"},Fce={vector_search:BH,rag_cards:ux,bias_auditor:XP,outcome_learning:Noe};function Sce(e){if(!e)return"\u2014";try{const t=new Date(e);
2return isNaN(t.getTime())?"\u2014":t.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(t){return"\u2014"}}function Mce(e){let t=e.id,n=e.data;const a=Fce[t]||Noe,r=[];var i,s,o,l;if("vector_search"===t)r.push(["Total indexed",null!==(i=null===n||void 0===n?void 0:n.total_indexed)&&void 0!==i?i:"\u2014"]),r.push(["Provider",null!==(s=null===n||void 0===n?void 0:n.provider)&&void 0!==s?s:"\u2014"]),r.push(["Embeddings",null!==(o=null===n||void 0===n||null===(l=n.embeddings)||void 0===l?void 0:l.provider)&&void 0!==o?o:"\u2014"]);else if("rag_cards"===t){var c,d,u,m;r.push(["Cached cards",null!==(c=null===n||void 0===n?void 0:n.cache_rows)&&void 0!==c?c:"\u2014"]),r.push(["Evidence rows",null!==(d=null===n||void 0===n?void 0:n.ledger_rows)&&void 0!==d?d:"\u2014"]),r.push(["Reasoning",null!==(u=null===n||void 0===n||null===(m=n.reasoning_provider)||void 0===m?void 0:m.provider)&&void 0!==u?u:"\u2014"]),r.push(["Latest evidence",Sce(null===n||void 0===n?void 0:n.latest_evidence_at)])}else if("bias_auditor"===t){var p,h;r.push(["Total reviews",null!==(p=null===n||void 0===n?void 0:n.total_audits)&&void 0!==p?p:"\u2014"]),r.push(["High-severity",null!==(h=null===n||void 0===n?void 0:n.high_severity_audits)&&void 0!==h?h:"\u2014"]),r.push(["Latest review",Sce(null===n||void 0===n?void 0:n.latest_audit_at)])}else if("outcome_learning"===t){var f,x,g;r.push(["Hire snapshots",null!==(f=null===n||void 0===n?void 0:n.total_snapshots)&&void 0!==f?f:"\u2014"]),r.push(["30d outcomes",null!==(x=null===n||void 0===n?void 0:n.with_30d_outcome)&&void 0!==x?x:"\u2014"]),r.push(["90d outcomes",null!==(g=null===n||void 0===n?void 0:n.with_90d_outcome)&&void 0!==g?g:"\u2014"]),r.push(["Latest activity",Sce(null===n||void 0===n?void 0:n.latest_activity_at)])}return(0,Pe.jsxs)("div",{className:"rounded-md border bg-white p-4",style:{borderColor:Ece},"data-testid":"ai-health-sub-".concat(t),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(a,{size:14,weight:"duotone",style:{color:jce}}),(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.16em] font-mono",style:{color:jce},children:Cce[t]})]}),(0,Pe.jsx)(_ce,{status:(null===n||void 0===n?void 0:n.status)||"off",testid:"ai-health-status-".concat(t)})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 gap-y-1 text-[12px]",children:r.map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("div",{className:"contents",children:[(0,Pe.jsx)("div",{style:{color:wce},children:n}),(0,Pe.jsx)("div",{style:{color:Nce},className:"text-right font-mono",children:null!==a&&void 0!==a?a:"\u2014"})]},n)})}),(null===n||void 0===n?void 0:n.error)&&(0,Pe.jsx)("div",{className:"mt-2 text-[11px] rounded px-2 py-1",style:{background:"#FEF3C7",color:kce},children:n.error})]})}function Oce(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=(0,o.useCallback)(async()=>{m(!0);try{const e=await Qi.get("/ai-health");n(e.data),c(null)}catch($ge){var e;const n=null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e?void 0:e.status;403===n||401===n?i(!1):c("Could not load AI health.")}finally{m(!1)}},[]);if((0,o.useEffect)(()=>{p()},[p]),!r)return null;const h=(null===t||void 0===t?void 0:t.overall_status)||"off",f=(null===t||void 0===t?void 0:t.subsystems)||{};return(0,Pe.jsxs)("section",{className:"mt-8 rounded-lg border bg-white",style:{borderColor:Ece},"data-testid":"admin-ai-health-tile",children:[(0,Pe.jsxs)("header",{className:"flex items-start justify-between gap-4 px-5 pt-5 pb-3 border-b",style:{borderColor:"#F3F4F6"},children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.2em] font-mono",style:{color:wce},children:[(0,Pe.jsx)(Noe,{size:11,weight:"duotone"})," Admin \xb7 AI stack health"]}),(0,Pe.jsx)("h3",{className:"font-display font-bold text-xl mt-1 tracking-tight",style:{color:jce},children:"AROS AI operations"}),(0,Pe.jsx)("p",{className:"text-sm mt-0.5",style:{color:Nce},children:"Live status of the four AI layers powering candidate analysis."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(_ce,{status:h,testid:"ai-health-overall-pill"}),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:p,disabled:u,"data-testid":"ai-health-refresh",className:"text-xs",children:[(0,Pe.jsx)(bM,{size:13,className:"mr-1"}),"Refresh"]})]})]}),(0,Pe.jsxs)("div",{className:"p-5",children:[l&&(0,Pe.jsxs)("div",{className:"mb-3 text-xs px-3 py-2 rounded flex items-center gap-1.5",style:{color:kce,background:"#FEF3C7"},"data-testid":"ai-health-error",children:[(0,Pe.jsx)(AN,{size:13,weight:"duotone"})," ",l]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:["vector_search","rag_cards","bias_auditor","outcome_learning"].map(e=>(0,Pe.jsx)(Mce,{id:e,data:f[e]},e))}),(null===t||void 0===t?void 0:t.flags)&&(0,Pe.jsxs)("div",{className:"mt-4 rounded-md border p-3",style:{borderColor:Ece,background:"#F8FAFC"},"data-testid":"ai-health-flags",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono mb-2",style:{color:wce},children:"Feature flags"}),(0,Pe.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(t.flags).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-2 py-1 rounded border",style:{color:a?Ace:wce,borderColor:a?Ace:Ece,background:a?"#ECFDF5":"white"},"data-testid":"ai-health-flag-".concat(n),children:[a?(0,Pe.jsx)(Yf,{size:11,weight:"fill"}):(0,Pe.jsx)(Noe,{size:11,weight:"fill"}),n,(0,Pe.jsx)("span",{style:{opacity:.7},children:a?"\xb7 ON":"\xb7 off"})]},n)})}),(0,Pe.jsxs)("div",{className:"mt-2 text-[11px]",style:{color:wce},children:["Generated ",Sce(null===t||void 0===t?void 0:t.generated_at)]})]})]})]})}function Rce(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];(0,o.useEffect)(()=>{Qi.get("/analytics/admin/overview").then(e=>n(e.data))},[]);const a=t?[{label:"Users",value:t.total_users,icon:Hg,to:"/app/admin/users"},{label:"Candidates",value:t.total_candidates,icon:Hg,to:"/app/admin/users?role=candidate"},{label:"Employers",value:t.total_employers,icon:nv,to:"/app/admin/users?role=employer"},{label:"Recruiters",value:t.total_recruiters,icon:Hg,to:"/app/admin/users?role=recruiter"},{label:"Organizations",value:t.total_organizations,icon:nv,to:"/app/admin/orgs"},{label:"Jobs",value:t.total_jobs,icon:Cg,to:"/app/employer/jobs"},{label:"Open jobs",value:t.open_jobs,icon:Cg,to:"/app/employer/jobs?status=open"},{label:"Applications",value:t.total_applications,icon:uv,to:"/app/employer/applicants"}]:[];return(0,Pe.jsxs)("div",{"data-testid":dN,className:"px-6 lg:px-10 py-8",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ADMIN"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Platform health"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"System-wide statistics for AROS."}),(0,Pe.jsx)("div",{className:"mt-8 grid grid-cols-2 md:grid-cols-4 gap-3",children:a.map(e=>(0,Pe.jsxs)(Yn,{to:e.to,"data-testid":"admin-stat-".concat(e.label.replace(/\s+/g,"-").toLowerCase()),className:"group border border-border rounded-md p-5 cursor-pointer hover:border-[#0F172A] hover:shadow-sm transition-all",children:[(0,Pe.jsx)(e.icon,{size:20,weight:"duotone",className:"text-[#0F4FA8]"}),(0,Pe.jsx)("div",{className:"font-display font-black text-3xl mt-3",children:e.value}),(0,Pe.jsxs)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground mt-1 flex items-center justify-between",children:[(0,Pe.jsx)("span",{children:e.label}),(0,Pe.jsx)(eg,{size:11,className:"opacity-0 group-hover:opacity-100 transition-opacity text-[#0F4FA8]"})]})]},e.label))}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Pe.jsxs)(Yn,{to:"/app/admin/users",className:"border border-border rounded-md p-6 hover:border-[#0F172A] transition-colors flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"Manage users"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"View, deactivate, and audit user accounts"})]}),(0,Pe.jsx)(eg,{size:20})]}),(0,Pe.jsxs)(Yn,{to:"/app/admin/orgs",className:"border border-border rounded-md p-6 hover:border-[#0F172A] transition-colors flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"Organizations"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Multi-tenant organization registry"})]}),(0,Pe.jsx)(eg,{size:20})]}),(0,Pe.jsxs)(Yn,{to:"/app/admin/audit",className:"border border-border rounded-md p-6 hover:border-[#0F172A] transition-colors flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"Audit logs"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Track sensitive actions for c
2ompliance"})]}),(0,Pe.jsx)(eg,{size:20})]}),(0,Pe.jsxs)(Yn,{to:"/app/admin/system-health",className:"border border-border rounded-md p-6 hover:border-[#0F172A] transition-colors flex items-center justify-between","data-testid":"admin-link-system-health",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl",children:"System health"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Live operational read \xb7 DAU, pipeline, storage"})]}),(0,Pe.jsx)(eg,{size:20})]}),(0,Pe.jsxs)(Yn,{to:"/app/admin/legacy-migration",className:"border border-border rounded-md p-6 hover:border-[#0F172A] transition-colors flex items-center justify-between","data-testid":"admin-link-legacy-migration",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"font-display font-semibold text-xl flex items-center gap-2",children:[(0,Pe.jsx)(eS,{size:18,weight:"duotone",className:"text-[#0F4FA8]"}),"Legacy migration"]}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Convert legacy candidate accounts to hiring-team accounts"})]}),(0,Pe.jsx)(eg,{size:20})]})]}),(0,Pe.jsx)(Oce,{}),(0,Pe.jsx)(yce,{}),(0,Pe.jsx)(dce,{})]})}function Hce(){var e;const t=Ue((0,o.useState)([]),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1],u=Ue((0,o.useState)(null),2),m=u[0],p=u[1],h=()=>Qi.get("/admin/users").then(e=>a(e.data));(0,o.useEffect)(()=>{h(),Qi.get("/auth/me").then(e=>s(e.data)).catch(()=>{try{const e=localStorage.getItem("aros_token");if(e){const t=JSON.parse(atob(e.split(".")[1]));s({email:t.email,role:t.role})}}catch(e){s(null)}})},[]);const f=e=>(e||"").toLowerCase().endsWith("@aros.ai"),x=i&&"admin"===i.role&&f(i.email);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"USERS"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"All users"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1",children:[n.length," accounts in AROS."]}),(0,Pe.jsx)("div",{"data-testid":uN,className:"mt-8 border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"Name"}),(0,Pe.jsx)(jse,{children:"Email"}),(0,Pe.jsx)(jse,{children:"Role"}),(0,Pe.jsx)(jse,{children:"Created"}),(0,Pe.jsx)(jse,{children:"Status"}),(0,Pe.jsx)(jse,{className:"text-right",children:"Actions"})]})}),(0,Pe.jsx)(bse,{children:n.map(e=>{const t=x&&f(e.email)&&e.is_active;return(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(wse,{className:"font-medium",children:e.full_name}),(0,Pe.jsxs)(wse,{className:"font-mono text-xs",children:[e.email,f(e.email)&&(0,Pe.jsx)("span",{className:"ml-2 pill bg-slate-100 text-slate-700 border border-slate-200 uppercase tracking-wider text-[9px]",title:"Internal AROS account",children:"internal"})]}),(0,Pe.jsx)(wse,{children:(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border uppercase tracking-wider",children:e.role})}),(0,Pe.jsx)(wse,{className:"text-sm text-muted-foreground",children:new Date(e.created_at).toLocaleDateString()}),(0,Pe.jsx)(wse,{children:(0,Pe.jsx)("span",{className:"pill ".concat(e.is_active?"bg-emerald-50 text-emerald-900 border-emerald-200":"bg-red-50 text-red-900 border-red-200"," border"),children:e.is_active?"Active":"Disabled"})}),(0,Pe.jsxs)(wse,{className:"text-right space-x-2",children:[t&&(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:()=>(async e=>{p(e);try{const t=await Qi.post("/admin/internal-recovery/generate",{email:e});d(t.data)}catch($ge){var t,n;const a=(null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to generate recovery link.";va.error(a)}finally{p(null)}})(e.email),disabled:m===e.email,className:"rounded-md","data-testid":"recovery-link-btn-".concat(e.id),title:"Generate a 15-minute single-use recovery link for this internal account",children:[(0,Pe.jsx)(CN,{size:14,className:"mr-1.5"}),m===e.email?"Generating\u2026":"Recovery link"]}),(0,Pe.jsx)(Lo,{size:"sm",variant:"outline",onClick:()=>(async e=>{try{await Qi.patch("/admin/users/".concat(e,"/toggle-active")),va.success("Toggled"),h()}catch(t){va.error("Failed")}})(e.id),className:"rounded-md","data-testid":"toggle-active-btn-".concat(e.id),children:e.is_active?"Disable":"Enable"})]})]},e.id)})})]})}),(0,Pe.jsx)(Kd,{open:!!c,onOpenChange:e=>!e&&d(null),children:(0,Pe.jsxs)(Qd,{className:"max-w-lg","data-testid":"recovery-link-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsxs)(eu,{className:"flex items-center gap-2",children:[(0,Pe.jsx)(CN,{size:18,weight:"fill",className:"text-[#041C3A]"}),"One-time recovery link"]}),(0,Pe.jsxs)(tu,{children:["Share this URL with ",(0,Pe.jsx)("span",{className:"font-mono",children:null===c||void 0===c?void 0:c.target_email})," ","over a secure out-of-band channel. This is the ONLY time it will be shown."]})]}),(0,Pe.jsxs)("div",{className:"mt-2 p-3 rounded-md bg-slate-50 border border-slate-200",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono mb-1.5",children:"RECOVERY URL"}),(0,Pe.jsx)("div",{className:"font-mono text-xs break-all select-all","data-testid":"recovery-link-url",children:null===c||void 0===c?void 0:c.recovery_url})]}),(0,Pe.jsx)("div",{className:"flex gap-3 mt-2 text-sm",children:(0,Pe.jsxs)("div",{className:"flex-1 p-3 rounded-md bg-amber-50 border border-amber-200 flex gap-2",children:[(0,Pe.jsx)(AN,{size:16,className:"text-amber-700 shrink-0 mt-0.5"}),(0,Pe.jsxs)("div",{className:"text-amber-900",children:[(0,Pe.jsxs)("div",{className:"font-semibold",children:["Expires in ",null!==(e=null===c||void 0===c?void 0:c.ttl_minutes)&&void 0!==e?e:15," minutes."]}),(0,Pe.jsx)("div",{className:"text-xs mt-0.5",children:"Single-use. Do not email or paste into shared chat channels."})]})]})}),(0,Pe.jsxs)(Jd,{className:"mt-4",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>d(null),"data-testid":"recovery-link-close",children:"Done"}),(0,Pe.jsxs)(Lo,{onClick:async()=>{try{await navigator.clipboard.writeText(c.recovery_url),va.success("Recovery link copied. Share it out-of-band.")}catch(e){va.error("Copy failed \u2014 select the link and copy manually.")}},"data-testid":"recovery-link-copy",className:"bg-[#041C3A] hover:bg-[#0F4FA8] text-white",children:[(0,Pe.jsx)(JH,{size:14,className:"mr-1.5"}),"Copy link"]})]})]})})]})}const Pce=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,36H140V24a12,12,0,0,0-24,0V36H40A20,20,0,0,0,20,56V176a20,20,0,0,0,20,20H71l-16.4,20.5a12,12,0,0,0,18.74,15l28.4-35.5h52.46l28.4,35.5a12,12,0,0,0,18.74-15L185,196h31a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,136H44V60H212Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,56V176a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",o
2pacity:"0.2"}),o.createElement("path",{d:"M216,40H136V24a8,8,0,0,0-16,0V40H40A16,16,0,0,0,24,56V176a16,16,0,0,0,16,16H79.36L57.75,219a8,8,0,0,0,12.5,10l29.59-37h56.32l29.59,37a8,8,0,1,0,12.5-10l-21.61-27H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,136H40V56H216V176Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H136V24a8,8,0,0,0-16,0V40H40A16,16,0,0,0,24,56V176a16,16,0,0,0,16,16H79.36L57.75,219a8,8,0,0,0,12.5,10l29.59-37h56.32l29.59,37a8,8,0,1,0,12.5-10l-21.61-27H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,42H134V24a6,6,0,0,0-12,0V42H40A14,14,0,0,0,26,56V176a14,14,0,0,0,14,14H83.52L59.31,220.25a6,6,0,0,0,9.38,7.5L98.88,190h58.24l30.19,37.75a6,6,0,0,0,9.38-7.5L172.48,190H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,134a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,40H136V24a8,8,0,0,0-16,0V40H40A16,16,0,0,0,24,56V176a16,16,0,0,0,16,16H79.36L57.75,219a8,8,0,0,0,12.5,10l29.59-37h56.32l29.59,37a8,8,0,1,0,12.5-10l-21.61-27H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,136H40V56H216V176Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M216,44H132V24a4,4,0,0,0-8,0V44H40A12,12,0,0,0,28,56V176a12,12,0,0,0,12,12H87.68l-26.8,33.5a4,4,0,1,0,6.24,5L97.92,188h60.16l30.8,38.5a4,4,0,0,0,6.24-5L168.32,188H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,132a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z"}))]]),Lce=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Pce})));Lce.displayName="PresentationIcon";const Tce=Lce;function Ice(){var e,t,n,a,r,i,s,l,c,d,u,m;const p=Ue((0,o.useState)([]),2),f=p[0],x=p[1],g=Ue((0,o.useState)([]),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(null),2),D=E[0],_=E[1],C=Ue((0,o.useState)(null),2),F=C[0],S=C[1],M=Ue((0,o.useState)(!1),2),O=M[0],R=M[1],H=async()=>{const e=Ue(await Promise.all([Qi.get("/admin/organizations"),Qi.get("/admin/industry-templates"),Qi.get("/candidate-trust/admin/analytics/engagement?days=30").catch(()=>({data:null})),Qi.get("/admin/pilot-demo/status").catch(()=>({data:null}))]),4),t=e[0],n=e[1],a=e[2],r=e[3];x(t.data),b(n.data.templates||[]),_(a.data),S(r.data)};(0,o.useEffect)(()=>{H()},[]);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto","data-testid":"admin-orgs-page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ORGANIZATIONS"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"All organizations"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1",children:[f.length," tenants on AROS \xb7 ",v.length," industry templates available."]}),D&&(0,Pe.jsxs)("section",{className:"mt-8 border border-border rounded-md p-5 bg-gradient-to-br from-[#0F4FA8]/[0.04] to-white","data-testid":"trust-engagement-dashboard",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold flex items-center gap-1.5",children:[(0,Pe.jsx)(BH,{size:14,weight:"duotone",className:"text-[#0F4FA8]"})," Candidate Trust engagement \xb7 last ",D.window_days," days"]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-1",children:"Are candidates using the transparency layer?"}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-2 lg:grid-cols-5 gap-3",children:[{k:"timeline_views_total",label:"Timeline views",sub:"total"},{k:"timeline_unique_candidates",label:"Unique candidates",sub:"viewed timeline"},{k:"career_dna_actions_total",label:"Career DNA actions",sub:"views + refreshes"},{k:"career_dna_unique_candidates",label:"Unique candidates",sub:"viewed Career DNA"},{k:"both_engaged_unique_candidates",label:"Engaged with both",sub:"timeline + Career DNA"}].map(e=>{var t;return(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 bg-white","data-testid":"engagement-".concat(e.k),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:e.label}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-0.5 tabular-nums",children:null!==(t=D[e.k])&&void 0!==t?t:0}),(0,Pe.jsx)("div",{className:"text-[10px] text-muted-foreground font-mono",children:e.sub})]},e.k)})}),(0,Pe.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-3 flex items-start gap-1.5",children:[(0,Pe.jsx)(ly,{size:12,weight:"duotone",className:"mt-0.5"}),"Read from audit log entries (`candidate_trust.timeline_viewed`, `career_dna.generated`, `career_dna.refreshed`, `career_dna.viewed`). Aggregated, no PII surfaced."]})]}),(0,Pe.jsxs)("section",{className:"mt-8 border border-border rounded-md p-5 bg-secondary/30","data-testid":"admin-industry-templates",children:[(0,Pe.jsx)("div",{className:"flex items-start justify-between flex-wrap gap-3",children:(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold flex items-center gap-1.5",children:[(0,Pe.jsx)(ux,{size:14,weight:"duotone",className:"text-[#0F4FA8]"})," Industry templates"]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-1",children:"Load a vertical demo dataset"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1 max-w-2xl leading-relaxed",children:"Each template seeds a sample org + sample jobs for that industry. Templates only influence blank-slate defaults (demo data, seed jobs, Guided Tour, sample candidates, example traits). They never override an existing Company Intelligence Profile, Outcome Intelligence results, or any employer-entered data."})]})}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:v.map(e=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-4 bg-white","data-testid":"industry-template-card-".concat(e.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold",children:e.label}),e.is_default&&(0,Pe.jsx)("span",{className:"pill bg-emerald-50 border border-emerald-200 text-emerald-900 text-[10px] uppercase tracking-wider font-mono",children:"Default"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:e.description}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,Pe.jsxs)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:[e.sample_job_count," sample jobs"]}),(0,Pe.jsxs)(Lo,{size:"sm",variant:"outline",onClick:()=>(async e=>{w(e);try{const t=await Qi.post("/admin/seed/industry?template=".concat(e));t.data.created?va.success('Seeded "'.concat(t.data.name,'" with ').concat(t.data.jobs_inserted," sample jobs.")):"already_exists"===t.data.reason?va.info('"'.concat(t.data.name||e,'" already exists. Skipped.')):va.error("Seed failed: ".concat(t.data.reason)),await H()}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Seed failed")}finally{w("")}})(e.slug),disabled:j===e.slug,"data-testid":"seed-industry-".concat(e.slug),className:"rounded-md",children:[(0,Pe.jsx)(bM,{size:12,weight:"bold",className:j===e.slug?"animate-spin":""}),j===e.slug?"Seeding\u2026":"Load sample"]})]})]},e.slug))})]}),(0,Pe.jsxs)("section",{className:"mt-8 border border-border rounded-md p-5 bg-gradient-to-br from-amber-50/60 to-white","data-testid":"admin-pilot-demo-panel",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold flex items-center gap-1.5",children:[(0,Pe.jsx)(Tce,{size:14,weight:"duotone",className:"text-amber-700"})," Pilot demo \xb7 Meridian Benefits Group"]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-1",children:"Reset the three-story pilot walkthrough"}),(0,Pe.jsxs)("p",{className:"text-xs text-muted-foreground mt-1 max-w-2xl leading-relaxed",children:["Rebuilds the deterministic Great Hire / False Negative / False Positive dataset in a few seconds. Idempotent \u2014 IDs are stable, so demo share-links keep working. Only rows carrying",(0,Pe.jsx)("code",{className:"mx-1 px-1 py-0.5 rounded bg-secondary text-[10px] font-mono",children:'seed_source == "pilot_demo"'}),"are touched; real customer data is never affected."]})]}),(0,Pe.jsxs)(Lo,{onClick:async()=>
2{if(window.confirm('Reset the Meridian Benefits Group pilot demo dataset?\n\nThis deletes every doc with seed_source="pilot_demo" and rebuilds the three-story walkthrough (Great Hire \xb7 False Negative \xb7 False Positive). Real customer data is not touched.')){R(!0);try{const e=await Qi.post("/admin/pilot-demo/reset");S(e.data),va.success("Pilot demo reset \u2014 Meridian Benefits Group is fresh.")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Pilot demo reset failed")}finally{R(!1)}}},disabled:O,"data-testid":"pilot-demo-reset-btn",className:"rounded-md bg-amber-600 hover:bg-amber-700 text-white shrink-0",children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:O?"animate-spin mr-1.5":"mr-1.5"}),O?"Rebuilding demo\u2026":null!==F&&void 0!==F&&F.seeded?"Reset pilot demo":"Seed pilot demo"]})]}),F&&(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-2 lg:grid-cols-4 gap-3 text-sm",children:[{label:"Applications",value:null!==(e=null===(t=F.counts)||void 0===t?void 0:t.applications)&&void 0!==e?e:0},{label:"Evidence rows",value:null!==(n=null===(a=F.counts)||void 0===a?void 0:a.evidence_ledger)&&void 0!==n?n:0},{label:"Users",value:null!==(r=null===(i=F.counts)||void 0===i?void 0:i.users)&&void 0!==r?r:0},{label:"Outcome records",value:null!==(s=null===(l=F.counts)||void 0===l?void 0:l.outcome_learning_records)&&void 0!==s?s:0}].map(e=>(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-3 bg-white",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground",children:e.label}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl mt-0.5","data-testid":"pilot-count-".concat(e.label.toLowerCase().replace(/\s+/g,"-")),children:e.value})]},e.label))}),(null===F||void 0===F?void 0:F.seeded)&&(0,Pe.jsxs)("div",{className:"mt-4 border border-border rounded-md p-3 bg-white text-xs leading-relaxed","data-testid":"pilot-demo-links",children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-muted-foreground",children:["Demo path (log in as ",(0,Pe.jsx)("span",{className:"text-foreground",children:null===(c=F.demo_ids)||void 0===c?void 0:c.employer_email})," \xb7 password ",(0,Pe.jsx)("code",{className:"font-mono",children:"PilotDemo@2026"}),")"]}),(0,Pe.jsxs)("div",{className:"mt-2 grid grid-cols-1 md:grid-cols-3 gap-2",children:[(0,Pe.jsxs)("a",{href:"/app/employer/applications/".concat(null===(d=F.demo_ids)||void 0===d?void 0:d.great_hire_application_id),className:"block border border-border rounded-md p-2.5 hover:bg-secondary/40 transition-colors","data-testid":"pilot-link-great-hire",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-sm",children:"Great Hire"}),(0,Pe.jsx)("div",{className:"text-muted-foreground",children:"Priya Patel \xb7 Trust 80%"})]}),(0,Pe.jsxs)("a",{href:"/app/employer/applications/".concat(null===(u=F.demo_ids)||void 0===u?void 0:u.false_negative_application_id),className:"block border border-border rounded-md p-2.5 hover:bg-secondary/40 transition-colors","data-testid":"pilot-link-false-negative",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-sm",children:"False Negative"}),(0,Pe.jsx)("div",{className:"text-muted-foreground",children:"Aisha Okafor \xb7 Returnship"})]}),(0,Pe.jsxs)("a",{href:"/app/employer/applications/".concat(null===(m=F.demo_ids)||void 0===m?void 0:m.false_positive_application_id),className:"block border border-border rounded-md p-2.5 hover:bg-secondary/40 transition-colors","data-testid":"pilot-link-false-positive",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-sm",children:"False Positive"}),(0,Pe.jsx)("div",{className:"text-muted-foreground",children:"Rachel Steinberg \xb7 Role fit"})]})]})]})]}),(0,Pe.jsx)("div",{className:"mt-8 border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"Name"}),(0,Pe.jsx)(jse,{children:"Industry template"}),(0,Pe.jsx)(jse,{children:"Industry (legacy)"}),(0,Pe.jsx)(jse,{children:"Created"})]})}),(0,Pe.jsx)(bse,{children:f.map(e=>(0,Pe.jsxs)(yse,{"data-testid":"admin-org-row-".concat(e.id),children:[(0,Pe.jsx)(wse,{className:"font-medium",children:e.name}),(0,Pe.jsx)(wse,{children:(0,Pe.jsxs)(Sf,{value:e.industry_template||"general",onValueChange:t=>(async(e,t)=>{k(e);try{const n=await Qi.patch("/admin/organizations/".concat(e),{industry_template:t});x(t=>t.map(t=>
2t.id===e?h(h({},t),n.data):t)),va.success("Updated industry template \u2192 ".concat(t))}catch(zf){var n,a;va.error((null===zf||void 0===zf||null===(n=zf.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Update failed")}finally{k("")}})(e.id,t),disabled:A===e.id,children:[(0,Pe.jsx)(Of,{className:"h-8 text-xs w-[220px]","data-testid":"admin-org-template-".concat(e.id),children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:v.map(e=>(0,Pe.jsx)(Lf,{value:e.slug,children:e.label},e.slug))})]})}),(0,Pe.jsx)(wse,{className:"text-sm text-muted-foreground",children:e.industry}),(0,Pe.jsx)(wse,{className:"text-sm text-muted-foreground",children:new Date(e.created_at).toLocaleDateString()})]},e.id))})]})}),(0,Pe.jsxs)("div",{className:"mt-6 flex items-start gap-2 text-xs text-muted-foreground leading-relaxed max-w-3xl",children:[(0,Pe.jsx)(bA,{size:14,weight:"duotone",className:"mt-0.5 shrink-0 text-[#0F4FA8]"}),(0,Pe.jsxs)("span",{children:[(0,Pe.jsx)("strong",{className:"text-foreground",children:"Precedence:"})," Industry templates set blank-slate defaults only. Once an organisation generates a Company Intelligence Profile or accumulates Outcome Intelligence data, those data sources become the source of truth. Changing the template later is safe \u2014 it never overwrites the org's actual learnings."]})]})]})}const Zce="#041C3A";function Bce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null===e||void 0===e?"\u2014":"".concat(e).concat(t)}function Vce(e){return null===e||void 0===e?"Never signed in":0===e?"Today":1===e?"Yesterday":"".concat(e,"d ago")}function zce(e){let t=e.label,n=e.value,a=e.sub,r=e.note,i=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-md border border-border p-5 bg-white flex flex-col gap-1.5","data-testid":i,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl leading-tight",style:{color:Zce},"data-testid":"".concat(i,"-value"),children:n}),a&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground",children:a}),r&&(0,Pe.jsxs)("div",{className:"text-[11px] leading-relaxed mt-2 flex items-start gap-1.5 text-muted-foreground italic",children:[(0,Pe.jsx)(bA,{size:12,weight:"regular",className:"mt-0.5 shrink-0"}),(0,Pe.jsx)("span",{children:r})]})]})}function qce(){var e,t,n,a,r,i,s,l;const c=Ue((0,o.useState)([]),2),d=c[0],u=c[1],m=Ue((0,o.useState)(null),2),p=m[0],h=m[1],f=Ue((0,o.useState)(null),2),x=f[0],g=f[1],v=Ue((0,o.useState)(!1),2),b=v[0],y=v[1];(0,o.useEffect)(()=>{(async()=>{const e=(await Qi.get("/admin/pilot-analytics/orgs")).data;u(e.orgs||[]);const t=(e.orgs||[]).find(e=>e.is_pilot_seed),n=t||(e.orgs||[])[0];n&&h(n.id)})()},[]),(0,o.useEffect)(()=>{p&&(async()=>{y(!0);try{const e=(await Qi.get("/admin/pilot-analytics/".concat(p))).data;g(e)}finally{y(!1)}})()},[p]);const j=null===x||void 0===x?void 0:x.metric_1_time_to_decision,w=null===x||void 0===x?void 0:x.metric_2_validation_coverage,N=null===x||void 0===x?void 0:x.metric_3_hm_resolution,A=null===x||void 0===x?void 0:x.metric_4_packet_rate,k=null===x||void 0===x?void 0:x.metric_5_coverage_at_hire,E=null===x||void 0===x?void 0:x.login_recency;return(0,Pe.jsxs)("div",{className:"p-6 sm:p-8 max-w-6xl mx-auto","data-testid":"admin-pilot-dashboard",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground flex items-center gap-1.5",children:[(0,Pe.jsx)(Tce,{size:14,weight:"duotone"})," Pilot dashboard"]}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1",style:{color:Zce},children:"One screen per pilot employer."}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-xl",children:"Open before every check-in call. Every number here is grounded in a real event with a real timestamp \u2014 nothing synthesised."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsxs)(Sf,{value:p||"",onValueChange:h,children:[(0,Pe.jsx)(Of,{className:"w-72","data-testid":"pilot-org-select",children:(0,Pe.jsx)(Mf,{placeholder:"Pick a pilot org\u2026"})}),(0,Pe.jsx)(Pf,{children:d.map(e=>(0,Pe.jsxs)(Lf,{value:e.id,"data-testid":"pilot-org-option-".concat(e.id),children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.name}),e.is_pilot_seed&&(0,Pe.jsx)("span",{className:"ml-2 text-[10px] uppercase tracking-widest text-amber-700",children:"demo"})]},e.id))})]}),(0,Pe.jsx)("button",{onClick:async()=>
2{if(p){y(!0);try{const e=(await Qi.get("/admin/pilot-analytics/".concat(p))).data;g(e)}finally{y(!1)}}},disabled:b,className:"p-2 rounded-md border border-border hover:bg-secondary/40 transition-colors","data-testid":"pilot-refresh-btn","aria-label":"Refresh",children:(0,Pe.jsx)(bM,{size:16,className:b?"animate-spin":""})})]})]}),x?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"pilot-section-usage",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground mb-3",children:"1 \xb7 Are they using AROS?"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[(0,Pe.jsx)(zce,{label:"Users active in 7d",value:Bce(null===E||void 0===E?void 0:E.active_7d),sub:"".concat((null===E||void 0===E?void 0:E.total_users)||0," total users on this org"),testid:"pilot-metric-active7d"}),(0,Pe.jsx)(zce,{label:"Users active in 30d",value:Bce(null===E||void 0===E?void 0:E.active_30d),sub:null!==E&&void 0!==E&&E.total_users?"".concat(Math.round(E.active_30d/E.total_users*100),"% of the team"):"\u2014",testid:"pilot-metric-active30d"}),(0,Pe.jsx)(zce,{label:"Most recent login",value:null===(null===E||void 0===E||null===(e=E.users)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.days_ago)?"\u2014":Vce(null===E||void 0===E||null===(n=E.users)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.days_ago),sub:(null===E||void 0===E||null===(r=E.users)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.email)||"No users yet",testid:"pilot-metric-latest-login"})]}),(null===E||void 0===E||null===(s=E.users)||void 0===s?void 0:s.length)>0&&(0,Pe.jsx)("div",{className:"mt-3 text-xs","data-testid":"pilot-user-list",children:(0,Pe.jsxs)("details",{children:[(0,Pe.jsxs)("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:["All users on this org (",E.users.length,")"]}),(0,Pe.jsx)("div",{className:"mt-2 rounded-md border border-border bg-slate-50/50 p-3 space-y-1.5",children:E.users.map(e=>(0,Pe.jsxs)("div",{className:"flex justify-between gap-3 text-xs",children:[(0,Pe.jsxs)("span",{className:"font-mono text-muted-foreground truncate",children:[e.role," \xb7 ",(0,Pe.jsx)("span",{className:"text-foreground",children:e.email})]}),(0,Pe.jsx)("span",{className:null===e.days_ago?"text-muted-foreground italic":e.days_ago<=7?"text-emerald-700 font-medium":"text-muted-foreground",children:Vce(e.days_ago)})]},e.email))})]})})]}),(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"pilot-section-decisions",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground mb-3",children:"2 \xb7 Are decisions actually happening?"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(zce,{label:"Median time to recruiter decision",value:null!==(null===j||void 0===j?void 0:j.median_hours)&&void 0!==(null===j||void 0===j?void 0:j.median_hours)?"".concat(j.median_hours,"h"):"\u2014",sub:null!==j&&void 0!==j&&j.sample_size?"".concat(j.under_24h_pct,"% under 24h \xb7 n=").concat(j.sample_size):"No decisions yet",testid:"pilot-metric-time-to-decision"}),(0,Pe.jsx)(zce,{label:"Human Context validated",value:null!==(null===w||void 0===w?void 0:w.validated_pct)&&void 0!==(null===w||void 0===w?void 0:w.validated_pct)?"".concat(w.validated_pct,"%"):"\u2014",sub:null!==w&&void 0!==w&&w.denom?"".concat(w.numer," of ").concat(w.denom," findings"):"No AI findings yet",testid:"pilot-metric-validation-coverage"}),(0,Pe.jsx)(zce,{label:"HM resolution rate",value:null!==(null===N||void 0===N?void 0:N.resolved_pct)&&void 0!==(null===N||void 0===N?void 0:N.resolved_pct)?"".concat(N.resolved_pct,"%"):"\u2014",sub:null!==N&&void 0!==N&&N.denom?"".concat(N.numer," of ").concat(N.denom," conflicts"):"No conflicts yet",testid:"pilot-metric-hm-resolution"}),(0,Pe.jsx)(zce,{label:"Decision Packet rate",value:null!==(null===A||void 0===A?void 0:A.packet_pct)&&void 0!==(null===A||void 0===A?void 0:A.packet_pct)?"".concat(A.packet_pct,"%"):"\u2014",sub:null!==A&&void 0!==A&&A.denom?"".concat(A.numer," of ").concat(A.denom," closed apps"):"No closed apps yet",testid:"pilot-metric-packet-rate"})]})]}),(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"pilot-section-quality",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground mb-3",children:"3 \xb7 Are hires backed by enough evidence?"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,Pe.jsx)(zce,{label:"Median Evidence Coverage at hire",value:null!==(null===k||void 0===k?void 0:k.median_pct)&&void 0!==(null===k||void 0===k?void 0:k.median_pct)?"".concat(k.median_pct,"%"):"\u2014",sub:null!==k&&void 0!==k&&k.sample_size?"Across ".concat(k.sample_size," hire").concat(1!==k.sample_size?"s":""):"No hires yet",note:null!==k&&void 0!==k&&k.sample_size?"Point-in-time from the hire-time snapshot when available (".concat(k.snapshot_count," of ").concat(k.sample_size,"). Older hires without a snapshot fall back to live compute \u2014 ").concat(k.live_compute_fallback," in this org."):null,testid:"pilot-metric-coverage-at-hire"}),(0,Pe.jsxs)("div",{className:"rounded-md border border-dashed border-border p-5 bg-slate-50/50 text-xs text-muted-foreground leading-relaxed",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold mb-2",children:'What "good" looks like at pilot scale'}),(0,Pe.jsxs)("ul",{className:"list-disc pl-4 space-y-1",children:[(0,Pe.jsxs)("li",{children:["Time-to-decision \xb7 ",(0,Pe.jsx)("b",{children:"< 24h"})," on \u226580% of candidates"]}),(0,Pe.jsxs)("li",{children:["Human Context validated \xb7 ",(0,Pe.jsx)("b",{children:"\u2265 70%"})," of AI findings"]}),(0,Pe.jsxs)("li",{children:["HM resolution \xb7 ",(0,Pe.jsx)("b",{children:"\u2265 60%"})," of conflicts"]}),(0,Pe.jsxs)("li",{children:["Decision Packet rate \xb7 ",(0,Pe.jsx)("b",{children:"\u2265 50%"})," of closed apps"]}),(0,Pe.jsxs)("li",{children:["Median Coverage at hire \xb7 ",(0,Pe.jsx)("b",{children:"\u2265 60%"})]})]})]})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 text-[11px] text-muted-foreground text-right",children:["Generated at ",null===(l=x.generated_at)||void 0===l?void 0:l.slice(0,19).replace("T"," ")," UTC"]})]}):(0,Pe.jsx)("div",{className:"mt-8 text-sm text-muted-foreground",children:"Loading\u2026"})]})}function Uce(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!1),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=async()=>{try{const e=(await Qi.get("/admin/identity/backfill/runs",{params:{limit:20}})).data;n(e.runs||[]),i(!!e.in_flight)}catch(zf){}};(0,o.useEffect)(()=>{Promise.resolve().then(()=>d());const e=setInterval(d,5e3);return()=>clearInterval(e)},[]);const u=async e=>{c(!0);try{await Qi.post("/admin/identity/backfill",null,{params:{dry_run:e}}),va.success(e?"Dry-run started.":"Backfill started."),d()}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not start.")}finally{c(!1)}},m=t[0];return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"admin-backfill-page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ADMIN \xb7 IDENTITY"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-2 tracking-tight",children:"Legacy contact-info backfill"}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-1 max-w-3xl",children:["Fills ",(0,Pe.jsx)("code",{className:"text-xs bg-muted px-1 rounded",children:"candidate_email"})," /"," ",(0,Pe.jsx)("code",{className:"text-xs bg-muted px-1 rounded",children:"candidate_phone"})," /"," ",(0,Pe.jsx)("code",{className:"text-xs bg-muted px-1 rounded",children:"candidate_name"})," on legacy candidate profiles and applications using deterministic regex extraction. Never overwrites existing values. Safe to rerun."]}),(0,Pe.jsxs)(vO,{className:"mt-6 p-5",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,Pe.jsxs)(Lo,{disabled:l||r,variant:"outline",onClick:()=>u(!0),"data-testid":"backfill-dry-run-btn",children:[(0,Pe.jsx)(ly,{size:14,className:"mr-1.5"})," Dry-run (preview)"]}),(0,Pe.jsxs)(Lo,{disabled:l||r,onClick:()=>u(!1),"data-testid":"backfill-run-btn",className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white",children:[(0,Pe.jsx)(sse,{size:14,className:"mr-1.5"})," Run backfill"]}),(0,Pe.jsxs)(Lo,{variant:"ghost",size:"sm",onClick:d,className:"ml-auto",children:[(0,Pe.jsx)(Ux,{size:14,className:"mr-1"})," Refresh"]})]}),r&&(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-mono uppercase tracking-wider text-amber-700 bg-amber-50 inline-flex items-center gap-1 px-2 py-1 rounded-full border border-amber-200",children:[(0,Pe.jsx)(AN,{size:11})," Backfill in progress\u2026"]})]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-8 tracking-tight",children:"Recent runs"}),(0,Pe.jsxs)("div",{className:"mt-3 space-y-2",children:[0===t.length&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground py-8 text-center border border-dashed border-border rounded-md",children:["No runs yet. Click ",(0,Pe.jsx)("strong",{children:"Dry-run"})," to preview impact."]}),t.map(e=>(0,Pe.jsx)(Wce,{r:e,highlight:(null===m||void 0===m?void 0:m.id)===e.id},e.id))]})]})}function Wce(e){var t,n,a,r,i;let s=e.r,o=e.highlight;const l={running:"bg-amber-50 text-amber-700 border-amber-200",complete:"bg-emerald-50 text-emerald-700 border-emerald-200",failed:"bg-rose-50 text-rose-700 border-rose-200"}[s.status]||"bg-slate-50 text-slate-700 border-slate-200";return(0,Pe.jsx)(vO,{className:"p-4 ".concat(o?"border-[#0F172A]":""),"data-testid":"backfill-run-".concat(s.id),children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border ".concat(l),children:s.status}),s.dry_run&&(0,Pe.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border bg-sky-50 text-sky-700 border-sky-200",children:"dry-run"}),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground font-mono",children:null===(t=s.started_at)||void 0===t?void 0:t.slice(0,19).replace("T"," ")})]}),(0,Pe.jsxs)("div",{className:"mt-2 text-sm grid grid-cols-2 gap-x-6 gap-y-1",children:[(0,Pe.jsxs)("span",{children:["Profiles scanned: ",(0,Pe.jsx)("strong",{children:null!==(n=s.profiles_scanned)&&void 0!==n?n:0})]}),(0,Pe.jsxs)("span",{children:["Profiles ",s.dry_run?"would update":"updated",": ",(0,Pe.jsx)("strong",{children:null!==(a=s.profiles_updated)&&void 0!==a?a:0})]}),(0,Pe.jsxs)("span",{children:["Applications scanned: ",(0,Pe.jsx)("strong",{children:null!==(r=s.applications_scanned)&&void 0!==r?r:0})]}),(0,Pe.jsxs)("span",{children:["Applications ",s.dry_run?"would update":"updated",": ",(0,Pe.jsx)("strong",{children:null!==(i=s.applications_updated)&&void 0!==i?i:0})]})]}),s.error&&(0,Pe.jsx)("div",{className:"mt-2 text-xs text-rose-700 bg-rose-50 border border-rose-200 rounded px-2 py-1 font-mono",children:s.error})]}),"complete"===s.status&&(0,Pe.jsx)(Yf,{size:20,weight:"fill",className:"text-emerald-600"})]})})}const Yce=[{days:7,label:"7 days"},{days:30,label:"30 days"},{days:90,label:"90 days"}];function Kce(){var e,t,n,a,r,i,s,l,c,d,u,m,p,h,f,x,g,v,b,y,j,w,N,A,k,E,D,_,C,F,S,M,O,R,H,P,L,T,I,Z,B,V,z,q,U,W,Y;const K=Ue((0,o.useState)(null),2),G=K[0],$=K[1],Q=Ue((0,o.useState)(!0),2),X=Q[0],J=Q[1],ee=Ue((0,o.useState)(30),2),te=ee[0],ne=ee[1],ae=async()=>{J(!0);try{const e=(await Qi.get("/analytics/recruiter-adoption",{params:{window_days:te}})).data;$(e)}catch(e){}finally{J(!1)}};return(0,o.useEffect)(()=>{Promise.resolve().then(()=>ae())},[te]),(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl mx-auto","data-testid":"admin-recruiter-adoption",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ADMIN \xb7 ADOPTION"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-2 tracking-tight",children:"Recruiter Adoption & Trust"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1 max-w-2xl",children:"Are recruiters consuming AROS evidence summaries \u2014 and acting on them?"})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[Yce.map(e=>(0,Pe.jsx)("button",{"data-testid":"window-".concat(e.days),onClick:()=>ne(e.days),className:"text-xs font-mono uppercase tracking-wider px-3 py-1.5 rounded-full border transition-colors ".concat(te===e.days?"bg-[#0F172A] text-white border-[#0F172A]":"border-border text-muted-foreground hover:text-[#0F172A]"),children:e.label},e.days)),(0,Pe.jsx)(Lo,{variant:"ghost",size:"sm",onClick:ae,disabled:X,children:(0,Pe.jsx)(bM,{size:14,className:X?"animate-spin":""})})]})]}),!G&&X&&(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground py-12 text-center",children:"Loading\u2026"}),G&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(vO,{className:"mt-6 p-6 border-[#0F172A]","data-testid":"kpi-acceptance-rate",children:(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"THE ONE NUMBER"}),(0,Pe.jsx)("div",{className:"font-display font-bold text-5xl mt-2 tracking-tight tabular-nums",children:Qce(G.recommendation_acceptance_rate_pct)}),(0,Pe.jsx)("div",{className:"text-sm font-display font-semibold mt-1",children:"Recommendation Acceptance Rate"}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-1",children:[G.candidates_moved_forward.toLocaleStr
2ing()," of ",G.candidates_reviewed.toLocaleString()," reviewed candidates moved forward in the last ",G.window_days," days."]})]}),(0,Pe.jsx)(My,{size:56,weight:"duotone",className:"text-emerald-700 opacity-80"})]})}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-8 tracking-tight",children:"Acceptance by fit bucket"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"If scoring is healthy, High \u226b Medium \u226b Low. Watch for inversions."}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)(Gce,{tone:"emerald",label:"High Fit \xb7 85+",acc:null===(e=G.by_bucket)||void 0===e||null===(t=e.high)||void 0===t?void 0:t.acceptance_rate_pct,moved:null===(n=G.by_bucket)||void 0===n||null===(a=n.high)||void 0===a?void 0:a.moved,reviewed:null===(r=G.by_bucket)||void 0===r||null===(i=r.high)||void 0===i?void 0:i.reviewed,testid:"bucket-acceptance-high"}),(0,Pe.jsx)(Gce,{tone:"sky",label:"Medium Fit \xb7 70\u201384",acc:null===(s=G.by_bucket)||void 0===s||null===(l=s.medium)||void 0===l?void 0:l.acceptance_rate_pct,moved:null===(c=G.by_bucket)||void 0===c||null===(d=c.medium)||void 0===d?void 0:d.moved,reviewed:null===(u=G.by_bucket)||void 0===u||null===(m=u.medium)||void 0===m?void 0:m.reviewed,testid:"bucket-acceptance-medium"}),(0,Pe.jsx)(Gce,{tone:"slate",label:"Low Fit \xb7 <70",acc:null===(p=G.by_bucket)||void 0===p||null===(h=p.low)||void 0===h?void 0:h.acceptance_rate_pct,moved:null===(f=G.by_bucket)||void 0===f||null===(x=f.low)||void 0===x?void 0:x.moved,reviewed:null===(g=G.by_bucket)||void 0===g||null===(v=g.low)||void 0===v?void 0:v.reviewed,testid:"bucket-acceptance-low"})]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-8 tracking-tight",children:"Adoption"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[(0,Pe.jsx)($ce,{label:"Jobs published",value:Xce(G.jobs_published),testid:"m-jobs-published"}),(0,Pe.jsx)($ce,{label:"Jobs via intake automation",value:Qce(G.jobs_via_intake_pct),sub:"".concat(G.jobs_via_intake_automation," of ").concat(G.jobs_published),testid:"m-jobs-via-intake"}),(0,Pe.jsx)($ce,{label:"Avg matches per job",value:null!==(b=G.average_matches_per_job)&&void 0!==b?b:"\u2014",testid:"m-avg-matches"}),(0,Pe.jsx)($ce,{label:"Review Matches open rate",value:Qce(G.review_matches_open_rate_pct),sub:"visits per published job",testid:"m-review-open-rate"}),(0,Pe.jsx)($ce,{label:"Explanation expansion rate",value:Qce(G.explanation_expansion_rate_pct),sub:"of reviewed cards",testid:"m-expansion-rate"}),(0,Pe.jsx)($ce,{label:"Contact-ready candidates",value:Qce(G.contact_ready_pct),sub:"of all profiles",testid:"m-contact-ready"}),(0,Pe.jsx)($ce,{label:"Active recruiters \xb7 7d",value:Xce(G.distinct_active_recruiters_7d),testid:"m-active-7d"}),(0,Pe.jsx)($ce,{label:"Active recruiters \xb7 30d",value:Xce(G.distinct_active_recruiters_30d),testid:"m-active-30d"})]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-8 tracking-tight",children:"Job intake completion by source"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)($ce,{label:"From URL",value:Qce(null===(y=G.intake_completion_rates)||void 0===y||null===(j=y.url)||void 0===j?void 0:j.completion_rate_pct),sub:"".concat(null!==(w=null===(N=G.intake_completion_rates)||void 0===N||null===(A=N.url)||void 0===A?void 0:A.completed)&&void 0!==w?w:0," of ").concat(null!==(k=null===(E=G.intake_completion_rates)||void 0===E||null===(D=E.url)||void 0===D?void 0:D.started)&&void 0!==k?k:0),testid:"m-intake-url"}),(0,Pe.jsx)($ce,{label:"From pasted text",value:Qce(null===(_=G.intake_completion_rates)||void 0===_||null===(C=_.text)||void 0===C?void 0:C.completion_rate_pct),sub:"".concat(null!==(F=null===(S=G.intake_completion_rates)||void 0===S||null===(M=S.text)||void 0===M?void 0:M.completed)&&void 0!==F?F:0," of ").concat(null!==(O=null===(R=G.intake_completion_rates)||void 0===R||null===(H=R.text)||void 0===H?void 0:H.started)&&void 0!==O?O:0),testid:"m-intake-text"}),(0,Pe.jsx)($ce,{label:"From duplicate",value:Qce(null===(P=G.intake_completion_rates)||void 0===P||null===(L=P.duplicate)||void 0===L?void 0:L.completion_rate_pct),sub:"".concat(null!==(T=null===(I=G.intake_completion_rates)||void 0===I||null===(Z=I.duplicate)||void 0===Z?void 0:Z.completed)&&void 0!==T?T:0," of ").concat(null!==(B=null===(V=G.intake_completion_rates)||void 0===V||null===(z=V.duplicate)||void 0===z?void 0:z.started)&&void 0!==B?B:0),testid:"m-intake-duplicate"})]}),(0,Pe.jsx)("h2",{className:"font-display font-semibold text-xl mt-8 tracking-tight",children:"Time to action"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Median seconds from job publish \u2192 first recruiter action."}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Pe.jsx)($ce,{label:"Publish \u2192 first Review Matches visit",value:Jce(null===(q=G.time_to_action_seconds)||void 0===q?void 0:q.publish_to_first_review_seconds),sub:"n=".concat((null===(U=G.time_to_action_seconds)||void 0===U?void 0:U.n_review_samples)||0),testid:"m-ttr-review"}),(0,Pe.jsx)($ce,{label:"Publish \u2192 first stage move",value:Jce(null===(W=G.time_to_action_seconds)||void 0===W?void 0:W.publish_to_first_stage_move_seconds),sub:"n=".concat((null===(Y=G.time_to_action_seconds)||void 0===Y?void 0:Y.n_move_samples)||0),testid:"m-ttr-stage-move"})]})]})]})}function Gce(e){let t=e.tone,n=e.label,a=e.acc,r=e.moved,i=e.reviewed,s=e.testid;return(0,Pe.jsxs)(vO,{className:"p-5 border ".concat({emerald:"border-emerald-200 bg-emerald-50/40",sky:"border-sky-200 bg-sky-50/40",slate:"border-slate-200 bg-slate-50/40"}[t]),"data-testid":s,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:n}),(0,Pe.jsx)("div",{className:"font-display font-bold text-4xl mt-2 tabular-nums ".concat({emerald:"text-emerald-700",sky:"text-sky-700",slate:"text-slate-700"}[t]),children:Qce(a)}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground mt-1 font-mono",children:[null!==r&&void 0!==r?r:0," moved \xb7 ",null!==i&&void 0!==i?i:0," reviewed"]})]})}function $ce(e){let t=e.label,n=e.value,a=e.sub,r=e.testid;return(0,Pe.jsxs)(vO,{className:"p-4","data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.16em] font-mono text-muted-foreground",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl mt-1.5 tabular-nums",children:n}),a&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:a})]})}function Qce(e){return null===e||void 0===e?"\u2014":"".concat(e,"%")}function Xce(e){return null===e||void 0===e?"\u2014":Number(e).toLocaleStr
2ing()}function Jce(e){return null===e||void 0===e?"\u2014":e<60?"".concat(e,"s"):e<3600?"".concat(Math.round(e/60),"m"):"".concat((e/3600).toFixed(1),"h")}const ede="#041C3A",tde="#6B7280",nde="#374151",ade="#E5E7EB",rde=[{value:7,label:"7 days"},{value:30,label:"30 days"},{value:90,label:"90 days"}];function ide(){var e,t;const n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)(!0),2),s=i[0],l=i[1],c=Ue((0,o.useState)(30),2),d=c[0],u=c[1],m=Ue((0,o.useState)(null),2),p=m[0],h=m[1],f=Ue((0,o.useState)(0),2),x=f[0],g=f[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{l(!0),h(null);try{const t=await Qi.get("/admin/activation/funnel?window_days=".concat(d));e||r(t.data)}catch(zf){var t,n;e||h((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not load activation funnel.")}finally{e||l(!1)}})(),()=>{e=!0}},[d,x]);const v=null!==(e=null===a||void 0===a?void 0:a.users_in_window)&&void 0!==e?e:0,b=(null===a||void 0===a||null===(t=a.headline)||void 0===t?void 0:t.pretty)||"\u2014",y=(null===a||void 0===a?void 0:a.biggest_drop_off)||{};return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"admin-activation-dashboard",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:tde},children:"Admin \xb7 Activation"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:ede},children:"First Value Achieved"}),(0,Pe.jsx)("p",{className:"text-sm mt-2",style:{color:nde},children:"How long does it take a new account to reach their first hiring decision? Identify the biggest drop-off \u2014 that's the next thing to fix."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[rde.map(e=>(0,Pe.jsx)("button",{onClick:()=>u(e.value),"data-testid":"activation-window-".concat(e.value),className:"rounded-full px-3 py-1.5 text-xs font-medium transition-all",style:{background:d===e.value?ede:"white",color:d===e.value?"white":ede,border:"1px solid ".concat(d===e.value?ede:ade)},children:e.label},e.value)),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>g(e=>e+1),disabled:s,className:"rounded-md ml-1","data-testid":"activation-refresh",children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:s?"animate-spin mr-1.5":"mr-1.5"}),"Refresh"]})]})]}),p&&(0,Pe.jsxs)("div",{className:"rounded-xl border p-5 mb-6 flex items-start gap-3",style:{borderColor:"#FECACA",background:"#FEF2F2"},children:[(0,Pe.jsx)(AN,{size:20,weight:"duotone",className:"text-red-700 mt-0.5"}),(0,Pe.jsx)("div",{className:"text-sm text-red-900",children:String(p)})]}),(0,Pe.jsxs)("section",{className:"rounded-2xl border px-6 py-5 mb-6 flex items-center justify-between flex-wrap gap-4",style:{borderColor:ede,background:"#FAFBFC"},"data-testid":"activation-headline",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:tde},children:"Median FVA \xb7 Signup \u2192 First decision"}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-3 mt-1",children:[(0,Pe.jsx)("div",{className:"font-brand font-black text-5xl tracking-[-0.022em]",style:{color:ede},"data-testid":"activation-headline-value",children:b}),(0,Pe.jsxs)("div",{className:"text-sm",style:{color:nde},children:["across ",v," signup",1===v?"":"s"," in the last ",d," days"]})]})]}),(0,Pe.jsx)(ux,{size:28,weight:"duotone",style:{color:ede,opacity:.4}})]}),(0,Pe.jsx)("section",{className:"rounded-2xl border bg-white",style:{borderColor:ade},"data-testid":"activation-funnel-list",children:((null===a||void 0===a?void 0:a.milestones)||[]).map((e,t)=>{const n=(null===y||void 0===y?void 0:y.to_key)===e.key&&(null===y||void 0===y?void 0:y.lost_count)>0,a=Math.round(100*(e.share_of_signups||0));return(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-4 px-5 py-4 border-b last:border-b-0",style:{borderColor:ade,background:n?"#FEF2F2":"white"},"data-testid":"activation-step-".concat(e.key),children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[(0,Pe.jsx)("div",{className:"rounded-full grid place-items-center font-mono text-xs font-semibold mt-0.5",style:{width:22,height:22,background:n?"#FEE2E2":"#F3F4F6",color:n?"#991B1B":ede,border:"1px solid ".concat(n?"#FCA5A5":ade)},children:t+1}),(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-medium",style:{color:ede}
2,children:e.label}),t>0&&e.median_pretty&&(0,Pe.jsxs)("div",{className:"text-xs mt-0.5 font-mono",style:{color:tde},children:["median ",e.median_pretty," after previous step"]})]})]}),(0,Pe.jsxs)("div",{className:"text-right",children:[(0,Pe.jsx)("div",{className:"font-mono text-lg font-semibold",style:{color:n?"#991B1B":ede},children:e.count}),(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.15em] font-mono",style:{color:tde},children:[a,"% of signups"]})]})]},e.key)})}),(null===y||void 0===y?void 0:y.to_key)&&y.lost_count>0&&(0,Pe.jsxs)("section",{className:"rounded-2xl border px-5 py-4 mt-6 flex items-center justify-between flex-wrap gap-3",style:{borderColor:"#FCA5A5",background:"#FEF2F2"},"data-testid":"activation-biggest-dropoff",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)(My,{size:20,weight:"duotone",className:"text-red-700 rotate-180"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold text-red-900",children:"Biggest drop-off"}),(0,Pe.jsxs)("div",{className:"text-sm font-medium text-red-900 mt-0.5",children:[y.lost_count," user",1===y.lost_count?"":"s"," dropped between"," ",(0,Pe.jsx)("span",{className:"font-semibold",children:ode(y.from_key)})," ",(0,Pe.jsx)(eg,{size:12,weight:"bold",className:"inline -mt-0.5"})," ",(0,Pe.jsx)("span",{className:"font-semibold",children:ode(y.to_key)})," ",(0,Pe.jsxs)("span",{className:"font-mono",children:["(",Math.round(100*(y.lost_share||0)),"% of cohort)"]})]})]})]}),(0,Pe.jsx)("div",{className:"text-xs text-red-900/80 max-w-md",children:"Fix this step before adding new features. The funnel rewards subtraction, not addition."})]}),(0,Pe.jsx)("div",{className:"mt-8 text-[11px] font-mono text-center",style:{color:tde},children:"Every milestone is recorded once per user. Reducing inter-milestone gaps outranks shipping new features."})]})}const sde={signup_completed:"Signup",company_recognized:"Company recognised",job_discovered:"Job discovered",recommendation_viewed:"Recommendation viewed",candidate_action_taken:"First decision"};function ode(e){return sde[e]||e||"\u2014"}const lde="#041C3A",cde="#0F4FA8",dde="#047857",ude="#6B7280",mde="#374151",pde="#E5E7EB",hde=[{value:"priority",label:"Priority"},{value:"jobs",label:"Most jobs"},{value:"recent",label:"Recent"}],fde={owner:"Owner",recruiting_manager:"Recruiting Manager",recruiter:"Recruiter",hr_leader:"HR Leader",department_manager:"Department Manager",agency_recruiter:"Agency Recruiter",other:"Other"},xde={too_many_applicants:"Too many applicants",not_enough_applicants:"Not enough applicants",slow_hiring_decisions:"Slow hiring decisions",finding_qualified_candidates:"Finding qualified candidates",candidate_ghosting:"Candidate ghosting",improving_candidate_experience:"Improving candidate experience",hard_to_fill_roles:"Hard-to-fill roles",other:"Other"},gde={sales:"Sales",operations:"Operations",service:"Service",customer_success:"Customer Success",finance:"Finance",hr:"HR",engineering:"Engineering",other:"Other"},vde=new Set(["owner","recruiting_manager","hr_leader"]);function bde(){var e;const t=Ue((0,o.useState)("priority"),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!0),2),c=l[0],d=l[1],u=Ue((0,o.useState)(""),2),m=u[0],p=u[1],h=Ue((0,o.useState)(0),2),f=h[0],x=h[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{d(!0),p("");try{const t=await Qi.get("/admin/access-requests?sort=".concat(n,"&limit=300"));e||s(t.data)}catch(zf){var t,a;e||p((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.detail)||"Could not load leads.")}finally{e||d(!1)}})(),()=>{e=!0}},[n,f]);const g=(null===i||void 0===i?void 0:i.requests)||[],v=(0,o.useMemo)(()=>{const e=g.filter(e=>function(e){if(!e)return 1/0;try{return Date.now()-new Date(e).getTime()}catch(t){return 1/0}}(e.created_at)<=6048e5),t=e.reduce((e,t)=>e+(t.jobs_found||0),0);return{week_count:e.length,avg_jobs_found:e.length?Math.round(t/e.length):0,priority_week_count:e.filter(e=>vde.has(e.buyer_role)).length}},[g]),b=(0,o.useMemo)(()=>{const e={},t={},n={};return g.forEach(a=>{e[a.buyer_role]=(e[a.buyer_role]||0)+1,n[a.hiring_challenge]=(n[a.hiring_challenge]||
20)+1,(a.selected_hiring_areas||[]).forEach(e=>{t[e]=(t[e]||0)+1})}),{roles:e,areas:t,challenges:n}},[g]);return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-7xl mx-auto","data-testid":"admin-lead-dashboard",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:ude},children:"Admin \xb7 Leads"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:lde},children:"Interest capture"}),(0,Pe.jsxs)("p",{className:"text-sm mt-2",style:{color:mde},children:["Companies going through ",(0,Pe.jsx)("span",{className:"font-mono text-xs",children:"/try-aros"})," \u2014 qualification data captured before they ask for access."]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[hde.map(e=>(0,Pe.jsx)("button",{onClick:()=>a(e.value),"data-testid":"lead-sort-".concat(e.value),className:"rounded-full px-3 py-1.5 text-xs font-medium transition-all",style:{background:n===e.value?lde:"white",color:n===e.value?"white":lde,border:"1px solid ".concat(n===e.value?lde:pde)},children:e.label},e.value)),(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>x(e=>e+1),disabled:c,"data-testid":"lead-refresh",className:"rounded-md ml-1",children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:c?"animate-spin mr-1.5":"mr-1.5"})," Refresh"]})]})]}),m&&(0,Pe.jsxs)("div",{className:"rounded-xl border p-4 mb-5 flex items-start gap-3",style:{borderColor:"#FECACA",background:"#FEF2F2"},children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",className:"text-red-700 mt-0.5"}),(0,Pe.jsx)("div",{className:"text-sm text-red-900",children:String(m)})]}),(0,Pe.jsxs)("section",{className:"rounded-2xl border px-6 py-5 mb-6 flex items-center justify-between flex-wrap gap-4",style:{borderColor:lde,background:"#FAFBFC"},"data-testid":"lead-headline",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:ude},children:"Companies discovered this week"}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-3 mt-1",children:[(0,Pe.jsx)("div",{className:"font-brand font-black text-5xl tracking-[-0.022em]",style:{color:lde},"data-testid":"lead-week-count",children:v.week_count}),(0,Pe.jsxs)("div",{className:"text-sm",style:{color:mde},children:["Average jobs found: ",(0,Pe.jsx)("span",{className:"font-mono font-semibold",style:{color:lde},"data-testid":"lead-week-avg-jobs",children:v.avg_jobs_found}),v.priority_week_count>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 ",(0,Pe.jsx)("span",{className:"font-mono font-semibold",style:{color:cde},children:v.priority_week_count})," Owner / RM / HR leads"]})]})]})]}),(0,Pe.jsx)(nv,{size:32,weight:"duotone",style:{color:lde,opacity:.4}})]}),(0,Pe.jsxs)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6","data-testid":"lead-segments",children:[(0,Pe.jsx)(yde,{title:"Buyer roles",icon:Ix,entries:b.roles,labels:fde,testid:"seg-roles"}),(0,Pe.jsx)(yde,{title:"Hiring areas",icon:Cg,entries:b.areas,labels:gde,testid:"seg-areas"}),(0,Pe.jsx)(yde,{title:"Top challenges",icon:iv,entries:b.challenges,labels:xde,testid:"seg-challenges"})]}),(0,Pe.jsx)("section",{className:"rounded-2xl border overflow-hidden",style:{borderColor:pde,background:"white"},"data-testid":"lead-table",children:(0,Pe.jsx)("div",{className:"overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"min-w-full text-sm",children:[(0,Pe.jsx)("thead",{style:{background:"#F8FAFC",color:ude},children:(0,Pe.jsx)("tr",{children:["Company","Contact","Role","Hiring Area","Challenge","Jobs Found","Confidence","Requested"].map(e=>(0,Pe.jsx)("th",{className:"text-left px-4 py-3 text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",children:e},e))})}),(0,Pe.jsxs)("tbody",{children:[0===g.length&&(0,Pe.jsx)("tr",{children:(0,Pe.jsx)("td",{colSpan:8,className:"px-4 py-10 text-center text-sm",style:{color:ude},children:c?"Loading leads\u2026":"No leads yet \u2014 once visitors complete /try-aros, they appear here."})}),g.map(e=>(0,Pe.jsxs)("tr",{className:"border-t",style:{borderColor:pde},"data-testid":"lead-row-".concat(e.id),children:[(0,Pe.jsxs)("td",{className:"px-4 py-3",children:[(0,Pe.jsx)("div",{className:"font-semibold",style:{color:lde}
2,children:e.company}),(0,Pe.jsx)("div",{className:"text-xs font-mono",style:{color:ude},children:e.domain||e.website})]}),(0,Pe.jsxs)("td",{className:"px-4 py-3",children:[(0,Pe.jsx)("div",{children:e.contact}),(0,Pe.jsx)("a",{href:"mailto:".concat(e.email),className:"text-xs font-mono",style:{color:cde},children:e.email}),e.phone&&(0,Pe.jsx)("div",{className:"text-xs font-mono",style:{color:ude},children:e.phone})]}),(0,Pe.jsx)("td",{className:"px-4 py-3",children:(0,Pe.jsx)(jde,{role:e.buyer_role})}),(0,Pe.jsx)("td",{className:"px-4 py-3 text-xs",children:(e.selected_hiring_areas||[]).map(e=>gde[e]||e).join(", ")||"\u2014"}),(0,Pe.jsx)("td",{className:"px-4 py-3 text-xs",children:xde[e.hiring_challenge]||e.hiring_challenge}),(0,Pe.jsx)("td",{className:"px-4 py-3 font-mono font-semibold",style:{color:e.jobs_found>=20?dde:e.jobs_found>=5?lde:ude},children:e.jobs_found}),(0,Pe.jsx)("td",{className:"px-4 py-3",children:(0,Pe.jsx)(wde,{c:e.confidence,verified:e.domain_verified})}),(0,Pe.jsx)("td",{className:"px-4 py-3 text-xs font-mono",style:{color:ude},children:Nde(e.created_at)})]},e.id))]})]})})}),(0,Pe.jsxs)("div",{className:"mt-6 text-[11px] text-center font-mono",style:{color:ude},children:["Total leads shown: ",g.length," \xb7 Sorted by ",null===(e=hde.find(e=>e.value===n))||void 0===e?void 0:e.label.toLowerCase()]})]})}function yde(e){let t=e.title,n=e.icon,a=e.entries,r=e.labels,i=e.testid;const s=Object.entries(a).sort((e,t)=>t[1]-e[1]).slice(0,5);return(0,Pe.jsxs)("div",{className:"rounded-2xl border bg-white p-5",style:{borderColor:pde},"data-testid":i,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(n,{size:16,weight:"duotone",style:{color:lde}}),(0,Pe.jsx)("div",{className:"font-semibold text-sm",style:{color:lde},children:t})]}),0===s.length?(0,Pe.jsx)("div",{className:"text-xs italic mt-3",style:{color:ude},children:"No data yet."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5",children:s.map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsxs)("li",{className:"flex items-center justify-between text-sm",children:[(0,Pe.jsx)("span",{style:{color:lde},children:r[n]||n}),(0,Pe.jsx)("span",{className:"font-mono font-semibold",style:{color:mde},children:a})]},n)})})]})}function jde(e){let t=e.role;const n=vde.has(t);return(0,Pe.jsx)("span",{className:"text-[11px] font-mono uppercase tracking-[0.12em] font-semibold rounded-full px-2 py-0.5",style:{background:n?"#EFF6FF":"#F3F4F6",color:n?cde:mde,border:"1px solid ".concat(n?"#BFDBFE":pde)},children:fde[t]||t})}function wde(e){let t=e.c,n=e.verified;const a={verified:{label:"Verified",color:dde,bg:"#ECFDF5",bd:"#A7F3D0"},likely:{label:"Likely",color:"#1E40AF",bg:"#EFF6FF",bd:"#BFDBFE"},uncertain:{label:"Uncertain",color:"#B45309",bg:"#FFFBEB",bd:"#FDE68A"}},r=a[t]||a.uncertain;return(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium",style:{background:r.bg,color:r.color,border:"1px solid ".concat(r.bd)},title:n?"Email domain matches website.":"Email domain does not match website.",children:[n&&(0,Pe.jsx)(iy,{size:10,weight:"fill"}),r.label]})}function Nde(e){if(!e)return"\u2014";try{const t=new Date(e),n=Date.now()-t.getTime(),a=n/36e5;return a<1?"".concat(Math.max(1,Math.round(n/6e4)),"m ago"):a<24?"".concat(Math.round(a),"h ago"):t.toLocaleDateString()}catch(t){return"\u2014"}}function Ade(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{Qi.get("/admin/audit-logs/recent?limit=200").then(e=>n(e.data))},[]),(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"AUDIT TRAIL"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Audit logs"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-1",children:"Sensitive actions across AROS \u2014 scoring, rejections, consent, profile sharing."}),(0,Pe.jsx)("div",{"data-testid":mN,className:"mt-8 border border-border rounded-md overflow-hidden",children:(0,Pe.jsxs)(gse,{children:[(0,Pe.jsx)(vse,{children:(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(jse,{children:"When"}),(0,Pe.jsx)(jse,{children:"Actor"}),(0,Pe.jsx)(jse,{children:"Action"}),(0,Pe.jsx)(jse,{children:"Target"}),(0,Pe.jsx)(jse,{children:"Metadata"})]})}),(0,Pe.jsxs)(bse,{children:[t.map(e=>{var t;return(0,Pe.jsxs)(yse,{children:[(0,Pe.jsx)(wse,{className:"font-mono text-xs",children:new Date(e.timestamp).toLocaleStr
2ing()}),(0,Pe.jsx)(wse,{className:"text-xs",children:e.user_email}),(0,Pe.jsx)(wse,{children:(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border font-mono text-[10px] uppercase",children:e.action})}),(0,Pe.jsxs)(wse,{className:"text-xs",children:[e.target_type," ",(null===(t=e.target_id)||void 0===t?void 0:t.slice(-6))||""]}),(0,Pe.jsx)(wse,{className:"text-xs font-mono text-muted-foreground max-w-xs truncate",children:JSON.stringify(e.metadata||{})})]},e.id)}),0===t.length&&(0,Pe.jsx)(yse,{children:(0,Pe.jsx)(wse,{colSpan:5,className:"text-center text-sm text-muted-foreground py-8",children:"No audit events yet."})})]})]})})]})}const kde=[{key:"all",label:"All"},{key:"accurate",label:"Marked accurate"},{key:"inaccurate",label:"Marked inaccurate"}];function Ede(){var e,t,n;const a=Ue((0,o.useState)(null),2),r=a[0],i=a[1],s=Ue((0,o.useState)("all"),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{!async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;try{const t=await Qi.get("/career-dna/admin/accuracy-feedback",{params:{status:e,limit:100}});i(t.data)}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not load feedback list")}}(l)},[l]);const b=async e=>{if(e){v(!0),f(null),m(e);try{const t=await Qi.get("/career-dna/admin/diagnostic/".concat(e));f(t.data)}catch(zf){var t,n;va.error((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Could not load diagnostic")}finally{v(!1)}}},y=(null===r||void 0===r?void 0:r.counts)||{},j=(null===r||void 0===r?void 0:r.section_counts)||[],w=(null===r||void 0===r?void 0:r.items)||[];return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-6xl","data-testid":"admin-career-dna-review",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ADMIN"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight flex items-center gap-3",children:[(0,Pe.jsx)(lv,{size:28,weight:"duotone",className:"text-[#0F4FA8]"}),"Career DNA Accuracy Review"]}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 max-w-3xl",children:"Observation-mode dashboard. Track which candidates have flagged their parsed inputs as inaccurate so we can decide whether to invest in re-parse, inline edits, or prompt improvements."}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-2 md:grid-cols-4 gap-3","data-testid":"admin-career-dna-counts",children:[(0,Pe.jsx)(Dde,{label:"Total submissions",value:null!==(e=y.total)&&void 0!==e?e:0,tid:"admin-cdr-count-total"}),(0,Pe.jsx)(Dde,{label:"Marked accurate",value:null!==(t=y.marked_accurate)&&void 0!==t?t:0,tid:"admin-cdr-count-accurate",tone:"emerald"}),(0,Pe.jsx)(Dde,{label:"Marked inaccurate",value:null!==(n=y.marked_inaccurate)&&void 0!==n?n:0,tid:"admin-cdr-count-inaccurate",tone:"amber"}),(0,Pe.jsx)(Dde,{label:"Sections flagged",value:j.length,tid:"admin-cdr-count-sections"})]}),j.length>0&&(0,Pe.jsxs)("section",{className:"mt-6 border border-border rounded-md p-5 bg-white","data-testid":"admin-cdr-section-breakdown",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-muted-foreground",children:"Most-flagged sections (inaccurate only)"}),(0,Pe.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:j.map(e=>(0,Pe.jsxs)("div",{className:"border border-amber-200 bg-amber-50 text-amber-950 rounded-md px-3 py-1.5 text-sm","data-testid":"admin-cdr-section-".concat(e.section),children:[(0,Pe.jsx)("span",{className:"font-medium",children:e.section.replace(/_/g," ")})," ",(0,Pe.jsxs)("span",{className:"font-mono text-xs ml-1",children:["\xd7",e.count]})]},e.section))})]}),(0,Pe.jsxs)("section",{className:"mt-6","data-testid":"admin-cdr-list-section",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[(0,Pe.jsx)("h2",{className:"font-display font-semibold text-2xl tracking-tight",children:"Submissions"}),(0,Pe.jsx)("div",{className:"flex items-center gap-1 border border-border rounded-md p-0.5",children:kde.map(e=>(0,Pe.jsx)("button",{type:"button",onClick:()=>c(e.key),className:"text-xs px-3 py-1.5 rounded transition-colors ".concat(l===e.key?"bg-[#0F172A] text-white":"text-muted-foreground hover:bg-secondary"),"data-testid":"admin-cdr-filter-".concat(e.key),children:e.label},e.key))})]}),0===w.length?(0,Pe.jsx)("div",{className:"mt-4 border border-dashed border-border rounded-md p-8 text-center text-sm text-muted-foreground","data-testid":"admin-cdr-empty",children:"No submissions yet for this filter."}):(0,Pe.jsx)("ul",{className:"mt-4 space-y-2",children:w.map(e=>{var t;return(0,Pe.jsx)("li",{className:"border border-border rounded-md bg-white p-4","data-testid":"admin-cdr-item-".concat(e.id),children:(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[e.is_accurate?(0,Pe.jsx)(Yf,{size:16,weight:"fill",className:"text-emerald-600"}):(0,Pe.jsx)(Qx,{size:16,weight:"fill",className:"text-amber-600"}),(0,Pe.jsx)("span",{className:"font-semibold text-sm",children:e.is_accurate?"Marked accurate":"Marked inaccurate"}),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground",children:"\xb7"}),(0,Pe.jsx)("span",{className:"text-xs text-muted-foreground",children:e.user_email||e.user_id})]}),(null===(t=e.sections_flagged)||void 0===t?void 0:t.length)>0&&(0,Pe.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:e.sections_flagged.map(e=>(0,Pe.jsx)("span",{className:"text-[11px] px-2 py-0.5 rounded-full border border-amber-200 bg-amber-50 text-amber-900",children:e.replace(/_/g," ")},e))}),e.missing_info&&(0,Pe.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground leading-relaxed",children:[(0,Pe.jsx)("strong",{className:"text-foreground",children:"Missing:"})," ",e.missing_info]}),e.incorrect_info&&(0,Pe.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground leading-relaxed",children:[(0,Pe.jsx)("strong",{className:"text-foreground",children:"Incorrect:"})," ",e.incorrect_info]})]}),(0,Pe.jsxs)("div",{className:"text-right shrink-0",children:[(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground",children:e.submitted_at?new Date(e.submitted_at).toLocaleStr
2ing():""}),(0,Pe.jsx)(Lo,{size:"sm",variant:"outline",className:"mt-2",onClick:()=>b(e.user_id),"data-testid":"admin-cdr-open-".concat(e.id),children:"Open diagnostic"})]})]})},e.id)})})]}),(0,Pe.jsxs)("section",{className:"mt-10 border-t border-border pt-6","data-testid":"admin-cdr-lookup",children:[(0,Pe.jsx)("h2",{className:"font-display font-semibold text-2xl tracking-tight",children:"Diagnostic lookup"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Paste a candidate user ID to view the full AI diagnostic \u2014 raw parsed profile, AI input bundle, persisted Career DNA, model used, fallback status, and history."}),(0,Pe.jsxs)("form",{className:"mt-4 flex flex-wrap items-end gap-2",onSubmit:e=>{e.preventDefault(),b(u.trim())},children:[(0,Pe.jsxs)("div",{className:"flex-1 min-w-[260px]",children:[(0,Pe.jsx)(Go,{htmlFor:"admin-cdr-uid",children:"Candidate user ID"}),(0,Pe.jsx)(Io,{id:"admin-cdr-uid",value:u,onChange:e=>m(e.target.value),placeholder:"e.g. 671ab\u2026",className:"mt-1","data-testid":"admin-cdr-uid-input"})]}),(0,Pe.jsxs)(Lo,{type:"submit",className:"bg-[#0F4FA8] hover:bg-[#0035cc] text-white","data-testid":"admin-cdr-lookup-submit",children:[(0,Pe.jsx)(Eg,{size:16,weight:"bold"})," Load diagnostic"]})]}),g&&(0,Pe.jsx)("div",{className:"mt-4 text-sm text-muted-foreground","data-testid":"admin-cdr-diagnostic-loading",children:"Loading diagnostic\u2026"}),h&&!g&&(0,Pe.jsx)(_de,{diagnostic:h})]})]})}function Dde(e){let t=e.label,n=e.value,a=e.tone,r=e.tid;const i="emerald"===a?"border-emerald-200 bg-emerald-50 text-emerald-950":"amber"===a?"border-amber-200 bg-amber-50 text-amber-950":"border-border bg-white";return(0,Pe.jsxs)("div",{className:"border rounded-md p-4 ".concat(i),"data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono",children:t}),(0,Pe.jsx)("div",{className:"font-display font-black text-3xl tabular-nums mt-2",children:n})]})}function _de(e){var t;let n=e.diagnostic;const a=n.career_dna;return(0,Pe.jsxs)("div",{className:"mt-6 space-y-4","data-testid":"admin-cdr-diagnostic-panel",children:[(0,Pe.jsxs)("div",{className:"border border-border rounded-md p-5 bg-white",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-2 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono text-muted-foreground",children:"Generation metadata"}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-xl mt-1",children:n.candidate_email||n.candidate_user_id})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 border border-border rounded-md",children:[(0,Pe.jsx)(bI,{size:12,weight:"duotone"}),"Model: ",(0,Pe.jsx)("strong",{children:n.ai_model||"\u2014"})]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-md border ".concat(n.fallback_used?"border-amber-300 bg-amber-50 text-amber-900":"border-emerald-300 bg-emerald-50 text-emerald-900"),"data-testid":"admin-cdr-fallback-flag",children:[n.fallback_used?(0,Pe.jsx)(Qx,{size:12,weight:"fill"}):(0,Pe.jsx)(Yf,{size:12,weight:"fill"}),"Fallback: ",(0,Pe.jsx)("strong",{children:n.fallback_used?"YES":"NO"})]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 border border-border rounded-md",children:["Completeness: ",(0,Pe.jsxs)("strong",{children:[null!==(t=n.source_profile_completeness)&&void 0!==t?t:"\u2014","%"]})]})]})]}),n.ai_error&&(0,Pe.jsxs)("div",{className:"mt-3 text-xs text-red-700 bg-red-50 border border-red-200 rounded p-2","data-testid":"admin-cdr-ai-error",children:["AI error: ",(0,Pe.jsx)("code",{children:n.ai_error})]})]}),(0,Pe.jsx)(Cde,{title:"Career DNA (stored)",tid:"admin-cdr-section-dna",icon:(0,Pe.jsx)(lv,{size:14,weight:"duotone"}),children:(0,Pe.jsx)(Fde,{value:a})}),(0,Pe.jsx)(Cde,{title:"AI input bundle",tid:"admin-cdr-section-ai-input",icon:(0,Pe.jsx)(bI,{size:14,weight:"duotone"}),children:(0,Pe.jsx)(Fde,{value:n.ai_input_bundle})}),(0,Pe.jsx)(Cde,{title:"Raw candidate profile",tid:"admin-cdr-section-profile",icon:(0,Pe.jsx)(uv,{size:14,weight:"duotone"}),children:(0,Pe.jsx)(Fde,{value:n.profile_raw})}),(0,Pe.jsx)(Cde,{title:"Candidate feedback history",tid:"admin-cdr-section-feedback",icon:(0,Pe.jsx)(Qx,{size:14,weight:"duotone"}),children:0===(n.feedback||[]).length?(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"No feedback submitted yet."}):(0,Pe.jsx)("ul",{className:"space-y-2",children:n.feedback.map(e=>{var t;return(0,Pe.jsxs)("li",{className:"border border-border rounded p-3 text-xs",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("strong",{children:e.is_accurate?"Accurate":"Inaccurate"}),(null===(t=e.sections_flagged)||void 0===t?void 0:t.length)>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 Sections: ",e.sections_flagged.join(", ")
2]}),(0,Pe.jsxs)("span",{className:"text-muted-foreground",children:[" \xb7 ",e.submitted_at?new Date(e.submitted_at).toLocaleString():""]})]}),e.missing_info&&(0,Pe.jsxs)("p",{className:"mt-1",children:[(0,Pe.jsx)("em",{children:"Missing:"})," ",e.missing_info]}),e.incorrect_info&&(0,Pe.jsxs)("p",{className:"mt-1",children:[(0,Pe.jsx)("em",{children:"Incorrect:"})," ",e.incorrect_info]})]},e.id)})})}),(0,Pe.jsx)(Cde,{title:"Refresh & view history",tid:"admin-cdr-section-history",icon:(0,Pe.jsx)(ag,{size:14,weight:"duotone"}),children:0===(n.history||[]).length?(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground italic",children:"No audit events yet."}):(0,Pe.jsx)("ul",{className:"space-y-1 text-xs font-mono",children:n.history.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex items-center justify-between gap-2 border-b border-border/50 pb-1",children:[(0,Pe.jsx)("span",{children:e.action}),(0,Pe.jsx)("span",{className:"text-muted-foreground",children:e.timestamp})]},t))})})]})}function Cde(e){let t=e.title,n=e.tid,a=e.icon,r=e.children;return(0,Pe.jsxs)("details",{className:"border border-border rounded-md bg-white","data-testid":n,open:!0,children:[(0,Pe.jsxs)("summary",{className:"cursor-pointer px-4 py-3 text-sm font-semibold flex items-center gap-2 hover:bg-secondary/40",children:[a," ",t]}),(0,Pe.jsx)("div",{className:"px-4 pb-4",children:r})]})}function Fde(e){let t=e.value;return(0,Pe.jsx)("pre",{className:"text-[11px] font-mono whitespace-pre-wrap break-words bg-secondary/40 border border-border rounded p-3 max-h-96 overflow-auto",children:JSON.stringify(t,null,2)})}const Sde=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M253.88,108.11l-25.53-51a20,20,0,0,0-26.83-9L178.34,59.7,131.7,44.58a12.14,12.14,0,0,0-7.4,0L77.66,59.7,54.48,48.11a20,20,0,0,0-26.83,9L2.12,108.11a20,20,0,0,0,9,26.83l26.67,13.34,51.18,37.41A12.15,12.15,0,0,0,93,187.62l62,16a12.27,12.27,0,0,0,3,.38,12,12,0,0,0,8.48-3.52l52.62-52.62,25.83-12.92a20,20,0,0,0,8.95-26.83Zm-58.12,29.15-27.52-26a12,12,0,0,0-16.76.26c-9.66,9.74-25.06,16.81-40.81,9.55l38.19-37h22.72l25.81,51.63ZM47.32,71.37,60.59,78l-22,43.9-13.27-6.63Zm107,107.3L101.23,165l-42-30.66L85.17,82.5,128,68.61l1.69.55L90,107.68l-.13.12a20,20,0,0,0,3.4,31c20.95,13.39,46,12.07,66.33-2.73l19.2,18.15Zm63-56.77-22-43.9,13.27-6.63,21.95,43.9ZM118.55,219a12,12,0,0,1-14.62,8.62l-26.6-6.87a12,12,0,0,1-4.08-1.93L48.92,201a12,12,0,0,1,14.16-19.37l22.47,16.42,24.38,6.29A12,12,0,0,1,118.55,219Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,152l-40,40L96,176,40,136,72.68,70.63,128,56l55.32,14.63L183.6,72H144L98.34,116.29a8,8,0,0,0,1.38,12.42C117.23,139.9,141,139.13,160,120Z",opacity:"0.2"}),o.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M252.51,108.8,227,57.75a14,14,0,0,0-18.78-6.27L182.66,64.26,129.53,50.2a6.1,6.1,0,0,0-3.06,0L73.34,64.26,47.79,51.48A14,14,0,0,0,29,57.75L3.49,108.8a14,14,0,0,0,6.26,18.78L36.9,141.16l55.61,39.72a6,6,0,0,0,2,.94l64,16A6.08,6.08,0,0,0,160,198a6,6,0,0,0,4.24-1.76l55.31-55.31,26.7-13.35a14,14,0,0,0,6.26-18.78Zm-53,35.16-35.8-28.68a6,6,0,0,0-8,.45c-18.65,18.79-39.5,16.42-52.79,7.92a2,2,0,0,1-.94-1.5,1.9,1.9,0,0,1,.51-1.55L146.43,78h33.86l28.41,56.82ZM14.11,115.69a2,2,0,0,1,.11-1.52L39.74,63.11a2,2,0,0,1,1.8-1.1,2,2,0,0,1,.89.21l22.21,11.1L37.32,128l-22.21-11.1A2,2,0,0,1,14.11,115.69Zm144.05,69.67-59.6-14.9L47.66,134.1,76.84,75.75,128,62.21l14.8,3.92a5.92,5.92,0,0,0-3,1.57L94.1,112.05a14,14,0,0,0,2.39,21.72c20.22,12.92,44.75,10.49,63.8-5.89L191,152.5Zm83.73-69.67a2,2,0,0,1-1,1.16L218.68,128,191.36,73.32l22.21-11.1a2,2,0,0,1,1.53-.11,2,2,0,0,1,1.16,1l25.52,51.06A2,2,0,0,1,241.89,115.69Zm-112,101.76a6,6,0,0,1-7.27,4.37L80.89,211.39a5.88,5.88,0,0,1-2-.94L52.52,191.64a6,6,0,1,1,7-9.77L84.91,200l40.61,10.15A6,6,0,0,1,129.88,217.45Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M250.73,109.69l-25.53-51a12,12,0,0,0-16.1-5.37L182.88,66.38,129,52.14a3.92,3.92,0,0,0-2,0L73.12,66.38,46.9,53.27a12,12,0,0,0-16.1,5.37L5.27,109.69a12,12,0,0,0,5.37,16.1l27.29,13.65,55.75,39.82a3.87,3.87,0,0,0,1.35.62l64,16a4,4,0,0,0,3.8-1l55.54-55.54,27-13.5a12,12,0,0,0,5.37-16.1Zm-51,36.95-37.2-29.8a4,4,0,0,0-5.34.3c-19.49,19.64-41.34,17.11-55.29,8.2a4.07,4.07,0,0,1-1.85-3,3.91,3.91,0,0,1,1.11-3.21L145.62,76h35.91l29.6,59.21ZM12.21,116.32a4,4,0,0,1,.22-3L38,62.22h0A4,4,0,0,1,41.54,60a4,4,0,0,1,1.78.43l24,12L38.21,130.64l-24-12A4,4,0,0,1,12.21,116.32Zm146.56,71.25L97.71,172.3l-52.6-37.57L75.45,74,128,60.14,157.72,68H144a4,4,0,0,0-2.79,1.13l-45.7,44.33a12,12,0,0,0,2.06,18.62c19.88,12.71,44.13,10,62.66-6.81L194,152.33Zm85-71.25a4,4,0,0,1-2,2.32l-24,12L188.68,72.43l24-12A4,4,0,0,1,218,62.22l25.53,51.05A4,4,0,0,1,243.79,116.32ZM127.94,217a4,4,0,0,1-3.88,3,4.09,4.09,0,0,1-1-.12L81.38,209.45a4,4,0,0,1-1.36-.62L53.68,190a4,4,0,0,1,4.65-6.51l25.72,18.37,41,10.25A4,4,0,0,1,127.94,217Z"}))]]),Mde=o.forwardRef((e,t)=>
2o.createElement(Bf,h(h({ref:t},e),{},{weights:Sde})));Mde.displayName="HandshakeIcon";const Ode=Mde,Rde="#6B7280",Hde="#374151",Pde={green:{label:"Healthy",bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0",icon:Yf},yellow:{label:"Needs attention",bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D",icon:AN},red:{label:"Trust at risk",bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA",icon:AN},neutral:{label:"Not enough data",bg:"#F3F4F6",text:Hde,bd:"#D1D5DB",icon:iy}};function Lde(e){let t=e.label,n=e.value,a=e.sub,r=e.testid,i=e.icon,s=e.tone;const o={green:"#047857",yellow:"#92400E",red:"#B91C1C",neutral:Hde}[void 0===s?"neutral":s]||Hde;return(0,Pe.jsxs)("div",{"data-testid":r,className:"bg-white p-4",style:{border:"1px solid ".concat("#E5E7EB"),borderRadius:12},children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[i&&(0,Pe.jsx)(i,{size:14,weight:"duotone",style:{color:o}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Rde},children:t})]}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-2",style:{color:o},children:n}),a&&(0,Pe.jsx)("div",{className:"text-[11px] font-mono mt-1",style:{color:Rde},children:a})]})}function Tde(e){return null===e||void 0===e?"\u2014":"".concat(Math.round(100*e),"%")}function Ide(e){return null===e||void 0===e?null:e<1?"".concat(Math.round(60*e)," min"):e<48?"".concat(e.toFixed(1)," hr"):"".concat((e/24).toFixed(1)," days")}function Zde(e){return null===e||void 0===e?null:e<1?"".concat((24*e).toFixed(1)," hr"):"".concat(e.toFixed(1)," days")}function Bde(e,t,n){return null===e||void 0===e?"neutral":e<n?"red":e<t?"yellow":"green"}function Vde(e){var t;let n=e.includeDemo,a=void 0!==n&&n;const r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1];if((0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const t=(await Qi.get("/admin/founder/trust-metrics?days=30".concat(a?"&demo=1":""))).data;e||s(t)}catch(zf){var t,n;e||d((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to load")}})(),()=>{e=!0}},[a]),c)return(0,Pe.jsx)("div",{className:"mb-6","data-testid":"trust-metrics-error",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:"#B91C1C"},children:c})});if(!i)return(0,Pe.jsx)("div",{className:"mb-6","data-testid":"trust-metrics-loading",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:Rde},children:"Loading trust metrics\u2026"})});const u=i.acknowledgement,m=i.closure,p=i.first_response,h=i.decision,f=i.hiring_manager,x=i.status||"neutral",g=Pde[x]||Pde.neutral,v=g.icon;return(0,Pe.jsxs)("section",{className:"mb-8","data-testid":"trust-metrics-section",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Rde},children:["Candidate Trust \xb7 last ",i.window_days," days"]}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-xl tracking-[-0.022em] mt-1",style:{color:"#041C3A"},children:"Are we keeping the promise?"})]}),(0,Pe.jsxs)("span",{"data-testid":"trust-status-".concat(x),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[11px] font-mono font-semibold border",style:{background:g.bg,color:g.text,borderColor:g.bd},children:[(0,Pe.jsx)(v,{size:14,weight:"duotone"})," ",g.label]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3",children:[(0,Pe.jsx)(Lde,{testid:"trust-tile-ack",icon:TC,label:"Acknowledged in 5 min",value:Tde(u.rate),sub:u.denominator>0?"".concat(u.numerator," of ").concat(u.denominator," apps \xb7 target ").concat(Math.round(100*u.target),"%"):"No applications in window",tone:Bde(u.rate,u.target,u.floor)}),(0,Pe.jsx)(Lde,{testid:"trust-tile-closure",icon:Ode,label:"Closure in 48 hrs",value:Tde(m.rate),sub:m.denominator>0?"".concat(m.numerator," of ").concat(m.denominator," rejections \xb7 target ").concat(Math.round(100*m.target),"%"):"No rejections in window",tone:Bde(m.rate,m.target,m.floor)}),(0,Pe.jsx)(Lde,{testid:"trust-tile-first-response",icon:ag,label:"Median first response",value:Ide(p.p50_hours)||"\u2014",sub:p.sample_size>=3?"p90 ".concat(Ide(p.p90_hours)||"\u2014"," \xb7 n=").concat(p.sample_size):"Not enough activity yet"}),(0,Pe.jsx)(Lde,{testid:"trust-tile-decision",icon:ag,label:"Median time to decision",value:Zde(h.p50_days)||"\u2014",sub:h.sample_size>=3?"p90 ".concat(Zde(h.p90_days)||"\u2014"," \xb7 n=").concat(h.sample_size):"Not enough decisions yet"}),(0,Pe.jsx)(Lde,{testid:"trust-tile-hm",icon:Jre,label:"HM response time",value:Ide(f.p50_hours)||"\u2014",sub:f.decided_count+f.pending_count+f.expired_count>0?"".concat(f.decided_count," decided \xb7 ").concat(f.pending_count," open \xb7 ").concat(f.expired_count," expired"):"No share-links yet"})]}),(null===(t=i.status_reasons)||void 0===t?void 0:t.length)>0&&(0,Pe.jsx)("ul",{"data-testid":"trust-status-reasons",className:"mt-4 text-[11px] font-mono space-y-1",style:{color:Rde},children:i.status_reasons.map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]})}const zde="#041C3A",qde="#6B7280",Ude="#374151",Wde="#E5E7EB",Yde={green:{label:"Healthy",bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0",icon:Yf},yellow:{label:"Needs attention",bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D",icon:AN},red:{label:"Reliability risk",bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA",icon:AN}},Kde="Application acknowledgements",Gde="Closure communications",$de="All communications";function Qde(e){return null===e||void 0===e?"\u2014":"".concat(Math.round(100*e),"%")}function Xde(e){let t=e.label,n=e.value,a=e.tone,r=void 0===a?"neutral":a,i=e.testid;const s={sent:{bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0"},failed:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA"},pending:{bg:"#EFF6FF",text:"#1E40AF",bd:"#BFDBFE"},not_configured:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D"},neutral:{bg:"#F3F4F6",text:Ude,bd:"#D1D5DB"}},o=s[r]||s.neutral;return(0,Pe.jsxs)("span",{"data-testid":i,className:"inline-flex items-center gap-1.5 px-2 py-1 rounded-md border text-[11px] font-mono",style:{background:o.bg,color:o.text,borderColor:o.bd},children:[(0,Pe.jsx)("span",{className:"font-semibold",children:n}),(0,Pe.jsx)("span",{style:{opacity:.7},children:t})]})}function Jde(e){var t;let n=e.bucket,a=e.label,r=e.testid;const i=Yde[n.status]||Yde.green,s=i.icon;return(0,Pe.jsxs)("div",{"data-testid":r,className:"bg-white p-5",style:{border:"1px solid ".concat(Wde),borderRadius:12},children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(Nx,{size:14,weight:"duotone",style:{color:i.text}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qde},children:a})]}),(0,Pe.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono font-semibold border",style:{background:i.bg,color:i.text,borderColor:i.bd},"data-testid":"".concat(r,"-status"),children:[(0,Pe.jsx)(s,{size:11,weight:"duotone"})," ",i.label]})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-baseline gap-3 flex-wrap",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl tracking-[-0.022em]",style:{color:zde},children:Qde(n.success_rate)}),(0,Pe.jsxs)("div",{className:"text-[11px] font-mono",style:{color:qde},children:["delivery rate \xb7 ",n.total," total"]})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:[(0,Pe.jsx)(Xde,{label:"sent",value:n.sent,tone:"sent",testid:"".concat(r,"-sent")}),(0,Pe.jsx)(Xde,{label:"failed",value:n.failed,tone:"failed",testid:"".concat(r,"-failed")}),(0,Pe.jsx)(Xde,{label:"pending",value:n.pending,tone:"pending",testid:"".concat(r,"-pending")}),(0,Pe.jsx)(Xde,{label:"not configured",value:n.not_configured,tone:"not_configured",testid:"".concat(r,"-notcfg")})]}),(null===(t=n.reasons)||void 0===t?void 0:t.length)>0&&(0,Pe.jsx)("ul",{className:"mt-3 text-[11px] font-mono space-y-0.5",style:{color:qde},children:n.reasons.slice(0,3).map((e,t)=>(0,Pe.jsxs)("li",{children:["\xb7 ",e]},t))})]})}function eue(e){var t;let n=e.includeDemo,a=void 0!==n&&n;const r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(null),2),c=l[0],d=l[1];if((0,o.useEffect)(()=>{let e=!1;return(async()=>{try{const t=(await Qi.get("/admin/founder/comm-reliability?days=30".concat(a?"&demo=1":""))).data;e||s(t)}catch(zf){var t,n;e||d((null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Failed to load")}})(),()=>{e=!0}},[a]),c)return(0,Pe.jsx)("div",{className:"mb-8","data-testid":"comm-reliability-error",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:"#B91C1C"},children:c})});if(!i)return(0,Pe.jsx)("div",{className:"mb-8","data-testid":"comm-reliability-loading",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:qde},children:"Loading communication reliability\u2026"})});const u=i.overall,m=Yde[u.status]||Yde.green,p=m.icon;return(0,Pe.jsxs)("section",{className:"mb-8","data-testid":"comm-reliability-section",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:qde},children:["Communication Reliability \xb7 last ",i.window_days," days"]}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-xl tracking-[-0.022em] mt-1",style:{color:zde},children:"Are our candidate communications actually reaching people?"})]}),(0,Pe.jsxs)("span",{"data-testid":"comm-reliability-status-".concat(u.status),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[11px] font-mono font-semibold border",style:{background:m.bg,color:m.text,borderColor:m.bd},children:[(0,Pe.jsx)(p,{size:14,weight:"duotone"})," ",m.label]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)(Jde,{testid:"comm-bucket-overall",label:$de,bucket:i.overall}),(0,Pe.jsx)(Jde,{testid:"comm-bucket-acknowledgement",label:Kde,bucket:i.by_type.application_received}),(0,Pe.jsx)(Jde,{testid:"comm-bucket-closure",label:Gde,bucket:i.by_type.closure})]}),(null===(t=i.by_org)||void 0===t?void 0:t.length)>0&&(0,Pe.jsxs)("details",{className:"mt-4","data-testid":"comm-reliability-by-org",children:[(0,Pe.jsxs)("summary",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold cursor-pointer",style:{color:qde},children:["Per-organization breakdown (",i.by_org.length,")"]}),(0,Pe.jsx)("div",{className:"mt-2 overflow-hidden rounded-md border",style:{borderColor:Wde},children:(0,Pe.jsxs)("table",{className:"w-full text-sm",children:[(0,Pe.jsx)("thead",{className:"bg-secondary/50",children:(0,Pe.jsxs)("tr",{style:{color:Ude},children:[(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Organization"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Sent"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Needs retry"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Not Cfg"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Total"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Rate"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-[0.18em]",children:"Status"})]})}),(0,Pe.jsx)("tbody",{children:i.by_org.map(e=>{const t=Yde[e.status]||Yde.green;return(0,Pe.jsxs)("tr",{className:"border-t",style:{borderColor:Wde},"data-testid":"comm-org-".concat(e.organization_id),children:[(0,Pe.jsx)("td",{className:"px-3 py-2",children:e.organization_name}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2 font-mono",children:e.sent}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2 font-mono",children:e.failed}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2 font-mono",children:e.not_configured}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2 font-mono",children:e.total}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2 font-mono",children:Qde(e.success_rate)}),(0,Pe.jsx)("td",{className:"text-right px-3 py-2",children:(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-mono font-semibold border",style:{background:t.bg,color:t.text,borderColor:t.bd},children:t.label})})]},e.organization_id)})})]})})]})]})}const tue="#041C3A",nue="#0F4FA8",aue="#6B7280",rue="#374151",iue="#E5E7EB",sue=e=>{let t=e.children,n=e.className,a=void 0===n?"":n,r=e.testid;return(0,Pe.jsx)("div",{"data-testid":r,className:"bg-white p-5 ".concat(a),style:{border:"1px solid ".concat(iue),borderRadius:12},children:t})},oue=e=>{let t=e.children;return(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:t})},lue=e=>{let t=e.children,n=e.testid;return(0,Pe.jsx)("h2",{"data-testid":n,className:"font-brand font-bold text-xl tracking-[-0.022em] mb-3",style:{color:tue},children:t})};function cue(e){let t=e.pct,n=e.ppMode,a=void 0!==n&&n,r=e.invertGood,i=void 0!==r&&r;if(null===t||void 0===t)return(0,Pe.jsx)("span",{className:"font-mono text-xs",style:{color:aue},"data-testid":"delta-na",children:"\u2014"});const s=t>0,o=t<0,l=(i?o:s)?"#047857":(i?s:o)?"#B91C1C":aue,c=s?"\u25b2":o?"\u25bc":"\u25ac",d=a?"pp":"%",u=t>0?"+".concat(t).concat(d):"".concat(t).concat(d);return(0,Pe.jsxs)("span",{className:"font-mono text-xs font-semibold",style:{color:l},children:[c," ",u]})}function due(e){let t=e.tone,n=void 0===t?"neutral":t,a=e.children,r=e.testid;const i={green:{bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0"},yellow:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D"},red:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA"},neutral:{bg:"#F3F4F6",text:rue,bd:"#D1D5DB"}}[n];return(0,Pe.jsx)("span",{"data-testid":r,className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-[11px] font-mono font-semibold border",style:{background:i.bg,color:i.text,borderColor:i.bd},children:a})}function uue(){const e=Ue((0,o.useState)(!0),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!1),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)(null),2),g=x[0],v=x[1],b=Ue((0,o.useState)(null),2),y=b[0],j=b[1],w=Ue((0,o.useState)(null),2),N=w[0],A=w[1],k=Ue((0,o.useState)(null),2),E=k[0],D=k[1],_=Ue((0,o.useState)(null),2),C=_[0],F=_[1],S=Ue((0,o.useState)(null),2),M=S[0],O=S[1],R=Ue((0,o.useState)(null),2),H=R[0],P=R[1],L=Ue((0,o.useState)(null),2),T=L[0],I=L[1],Z=(()=>{if("undefined"===typeof window)return!1;return"1"===new URLSearchParams(window.location.search).get("demo")})(),B=Ue((0,o.useState)(0),2)[1];(0,o.useEffect)(()=>{const e=setInterval(()=>B(e=>e+1),1e3);return()=>clearInterval(e)},[]);const V=(0,o.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(i(!0),P(null));const t=Z?"?demo=1":"";try{const n=Ue(await Promise.all([Qi.get("/admin/founder/health"),Qi.get("/admin/founder/north-star".concat(t)),Qi.get("/admin/founder/engagement".concat(t)),Qi.get("/admin/founder/channels".concat(t)),Qi.get("/admin/founder/stage-age".concat(t)),Qi.get("/admin/founder/support"),Qi.get("/admin/founder/early-access"),Qi.get("/admin/marketing/funnel?days=7").catch(()=>({data:null})),Qi.get("/admin/marketing/attribution?days=7").catch(()=>({data:null}))]),9),a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],d=n[6],u=n[7],p=n[8];c(a.data),m(r.data),f(i.data),v(s.data),j(o.data),A(l.data),D(d.data),F(u.data),O(p.data),I(Date.now()),e&&va.success("Refreshed.")}catch($ge){var a,r;const n=(null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||(null===$ge||void 0===$ge?void 0:$ge.message)||"Failed to load metrics.";P(n),e&&va.error(n)}finally{n(!1),i(!1)}},[]);return(0,o.useEffect)(()=>{let e=!0;const t=Z?"?demo=1":"";return(async()=>{try{const n=Ue(await Promise.all([Qi.get("/admin/founder/health"),Qi.get("/admin/founder/north-star".concat(t)),Qi.get("/admin/founder/engagement".concat(t)),Qi.get("/admin/founder/channels".concat(t)),Qi.get("/admin/founder/stage-age".concat(t)),Qi.get("/admin/founder/support"),Qi.get("/admin/founder/early-access"),Qi.get("/admin/marketing/funnel?days=7").catch(()=>({data:null})),Qi.get("/admin/marketing/attribution?days=7").catch(()=>({data:null}))]),9),a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],d=n[6],u=n[7],p=n[8];if(!e)return;c(a.data),m(r.data),f(i.data),v(s.data),j(o.data),A(l.data),D(d.data),F(u.data),O(p.data),I(Date.now())}catch($ge){var a,r;if(!e)return;P((null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||(null===$ge||void 0===$ge?void 0:$ge.message)||"Failed to load metrics.")}finally{e&&n(!1)}})(),()=>{e=!1}},[Z]),t?(0,Pe.jsx)("div",{className:"p-8","data-testid":"founder-dashboard-loading",children:(0,Pe.jsx)("div",{className:"font-brand text-sm",style:{color:aue},children:"Loading founder dashboard\u2026"})}):H?(0,Pe.jsxs)("div",{className:"p-8","data-testid":"founder-dashboard-error",children:[(0,Pe.jsx)("div",{className:"font-brand font-semibold text-base",style:{color:"#991B1B"},children:"Could not load metrics."}),(0,Pe.jsx)("div",{className:"mt-2 text-sm font-mono",style:{color:rue},children:H}),(0,Pe.jsx)(Lo,{className:"mt-4",onClick:()=>V(!0),"data-testid":"founder-retry",children:"Retry"})]}):(0,Pe.jsxs)("div",{className:"p-6 lg:p-8 max-w-7xl mx-auto","data-testid":"founder-dashboard",children:[(0,Pe.jsx)(pue,{onRefresh:()=>V(!0),refreshing:r,lastUpdated:T,includeDemo:Z}),(0,Pe.jsx)(hue,{health:l,northStar:u}),(0,Pe.jsx)(Vde,{includeDemo:Z}),(0,Pe.jsx)(eue,{includeDemo:Z}),(0,Pe.jsx)(fue,{data:u}),(0,Pe.jsx)(Fue,{data:C}),(0,Pe.jsx)(Mue,{data:M}),(0,Pe.jsx)(gue,{data:E}),(0,Pe.jsx)(xue,{data:h}),(0,Pe.jsx)(vue,{data:y,friction:null===N||void 0===N?void 0:N.operational_friction}),(0,Pe.jsx)(kue,{data:N}),(0,Pe.jsx)(Eue,{data:g}),(0,Pe.jsx)(_ue,{health:l,northStar:u})]})}function mue(e){if(!e)return"\u2014";const t=Math.max(0,Math.floor((Date.now()-e)/1e3));if(t<5)return"just now";if(t<60)return"".concat(t," sec ago");const n=Math.floor(t/60);if(n<60)return"".concat(n," min ago");const a=Math.floor(n/60);return"".concat(a," hr ago")}function pue(e){let t=e.onRefresh,n=e.refreshing,a=e.lastUpdated,r=e.includeDemo;return(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6","data-testid":"founder-header",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(oue,{children:"Founder"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:tue},children:"Operational Dashboard"}),(0,Pe.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 flex-wrap",children:[(0,Pe.jsx)("p",{className:"text-sm font-brand",style:{color:rue},children:"Validation visibility \xb7 admin-only \xb7 existing data sources"}),r?(0,Pe.jsxs)(due,{tone:"yellow",testid:"founder-mode-demo",children:[(0,Pe.jsx)(AN,{size:12,weight:"fill"})," Demo + Real (sales-demo view)"]}
2):(0,Pe.jsxs)(due,{tone:"green",testid:"founder-mode-real",children:[(0,Pe.jsx)(Yf,{size:12,weight:"fill"})," Real only (validation view)"]})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)("span",{className:"text-[11px] font-mono",style:{color:aue},"data-testid":"founder-last-updated",children:["Updated ",mue(a)]}),(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>{if("undefined"===typeof window)return;const e=new URL(window.location.href);r?e.searchParams.delete("demo"):e.searchParams.set("demo","1"),window.location.assign(e.toString())},"data-testid":"founder-demo-toggle",style:{borderColor:tue,color:tue,borderRadius:10},children:r?"Switch to Real only":"Show Demo + Real"}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:t,disabled:n,"data-testid":"founder-refresh",style:{borderColor:tue,color:tue,borderRadius:10},children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:n?"animate-spin mr-1.5":"mr-1.5"}),n?"Refreshing\u2026":"Refresh"]})]})]})}function hue(e){var t,n;let a=e.health,r=e.northStar;if(!a)return null;const i=a.mongo_ok&&a.mongo_latency_ms<500?"green":a.mongo_ok?"yellow":"red",s=null!==(t=null===r||void 0===r||null===(n=r.production_form)||void 0===n?void 0:n.submissions_24h)&&void 0!==t?t:0;return(0,Pe.jsxs)(sue,{className:"mb-6",testid:"founder-health-strip",children:[(0,Pe.jsx)(oue,{children:"System Health"}),(0,Pe.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,Pe.jsxs)(due,{tone:i,testid:"health-mongo",children:[a.mongo_ok?(0,Pe.jsx)(Yf,{size:12,weight:"fill"}):(0,Pe.jsx)(AN,{size:12,weight:"fill"}),"Mongo ",a.mongo_ok?"".concat(a.mongo_latency_ms,"ms"):"down"]}),(0,Pe.jsx)(due,{tone:"neutral",testid:"health-api-error",children:"API error rate \xb7 pending"}),(0,Pe.jsx)(due,{tone:"neutral",testid:"health-avg-latency",children:"Avg latency \xb7 pending"}),(0,Pe.jsx)(due,{tone:"neutral",testid:"health-form-success",children:"Form failures \xb7 pending"}),(0,Pe.jsxs)(due,{tone:"green",testid:"health-form-submissions",children:[(0,Pe.jsx)(Nx,{size:12,weight:"fill"})," ",s," submission",1===s?"":"s"," \xb7 24h"]}),(0,Pe.jsx)(due,{tone:"neutral",testid:"health-uptime",children:"Uptime \xb7 external (UptimeRobot / BetterStack)"})]})]})}function fue(e){var t,n,a,r,i,s,o,l;let c=e.data;if(!c)return null;const d=c.signups||{},u=c.recruiter_interviews||{},m=c.production_form||{};return(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6","data-testid":"founder-north-star",children:[(0,Pe.jsxs)(sue,{testid:"ns-tile-signups",children:[(0,Pe.jsx)(oue,{children:"Total Signups"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-4xl mt-2",style:{color:tue},"data-testid":"ns-signups-total",children:null!==(t=d.total)&&void 0!==t?t:0}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2 text-sm font-brand",style:{color:rue},children:[(0,Pe.jsxs)("span",{"data-testid":"ns-signups-this-week",children:["+",null!==(n=d.this_week)&&void 0!==n?n:0," this week"]}),(0,Pe.jsx)(cue,{pct:d.delta_pct})]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xs font-mono",style:{color:aue},children:["prev wk: ",null!==(a=d.prev_week)&&void 0!==a?a:0]})]}),(0,Pe.jsxs)(sue,{testid:"ns-tile-interviews",children:[(0,Pe.jsx)(oue,{children:"Recruiter Interviews"}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-3 mt-2",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-4xl",style:{color:tue},"data-testid":"ns-interviews-completed",children:null!==(r=u.completed_total)&&void 0!==r?r:0}),(0,Pe.jsx)("div",{className:"text-sm font-brand",style:{color:rue},children:"completed"})]}),(0,Pe.jsxs)("div",{className:"mt-2 text-sm font-brand",style:{color:rue},"data-testid":"ns-interviews-scheduled",children:[null!==(i=u.scheduled_total)&&void 0!==i?i:0," scheduled",(0,Pe.jsx)("span",{className:"ml-2",children:(0,Pe.jsx)(cue,{pct:u.delta_pct})})]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xs font-mono",style:{color:aue},children:["+",null!==(s=u.completed_this_week)&&void 0!==s?s:0," this wk \xb7 ",null!==(o=u.completed_prev_week)&&void 0!==o?o:0," prev"]})]}),(0,Pe.jsxs)(sue,{testid:"ns-tile-form",children:[(0,Pe.jsx)(oue,{children:"Production Form (24h)"}),(0,Pe.jsxs)("div",{className:"flex items-baseline gap-3 mt-2",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-4xl",style:{color:tue},"data-testid":"ns-form-submissions",children:null!==(l=m.submissions_24h)&&void 0!==l?l:0}),(0,Pe.jsx)("div",{className:"text-sm font-brand",style:{color:rue},children:"submissions"})]}),(0,Pe.jsx)("div",{className:"mt-2 text-xs leading-snug font-brand",style:{color:aue},"data-testid":"ns-form-note",children:"Failure capture pending instrumentation (Step 3). Success rate cannot be computed yet."})]})]})}function xue(e){var t;let n=e.data;if(!n)return null;const a=[{key:"active_employers",label:"Active employers (7d)",icon:Hg,v:n.active_employers,testid:"eg-active-employers"},{key:"active_candidates",label:"Active candidates (7d)",icon:Hg,v:n.active_candidates,testid:"eg-active-candidates"},{key:"jobs_created",label:"Jobs created",icon:Cg,v:n.jobs_created,testid:"eg-jobs-created"},{key:"applications_submitted",label:"Applications submitted",icon:xP,v:n.applications_submitted,testid:"eg-applications-submitted"},{key:"timeline_views",label:"Timeline views",icon:ly,v:n.timeline_views,testid:"eg-timeline-views"},{key:"career_dna_views",label:"Career DNA views",icon:lv,v:n.career_dna_views,testid:"eg-career-dna-views"}],r=n.accuracy_feedback||{};return(0,Pe.jsxs)("div",{className:"mb-6","data-testid":"founder-engagement",children:[(0,Pe.jsx)(lue,{testid:"founder-engagement-title",children:"Engagement (this week vs. prev)"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[a.map(e=>{var t,n;const a=e.icon,r=e.v||{};return(0,Pe.jsxs)(sue,{testid:e.testid,children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(a,{size:14,weight:"duotone",style:{color:nue}}),(0,Pe.jsx)("span",{className:"text-xs font-brand font-semibold",style:{color:rue},children:e.label})]}),(0,Pe.jsx)(cue,{pct:r.delta_pct})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-baseline gap-3",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},children:null!==(t=r.this_week)&&void 0!==t?t:0}),(0,Pe.jsxs)("div",{className:"text-xs font-mono",style:{color:aue},children:["prev: ",null!==(n=r.prev_week)&&void 0!==n?n:0]})]})]},e.key)}),(0,Pe.jsxs)(sue,{testid:"eg-accuracy-feedback",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(BH,{size:14,weight:"duotone",style:{color:nue}}),(0,Pe.jsx)("span",{className:"text-xs font-brand font-semibold",style:{color:rue},children:"Accuracy feedback rate"})]}),(0,Pe.jsx)(cue,{pct:r.rate_delta_pp,ppMode:!0})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-baseline gap-3",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},children:null===r.this_week_rate_pct||void 0===r.this_week_rate_pct?"\u2014":"".concat(r.this_week_rate_pct,"%")}),(0,Pe.jsxs)("div",{className:"text-xs font-mono",style:{color:aue},children:[null!==(t=r.this_week_submissions)&&void 0!==t?t:0," responses \xb7 prev ",null===r.prev_week_rate_pct||void 0===r.prev_week_rate_pct?"\u2014":"".concat(r.prev_week_rate_pct,"%")]})]}),(0,Pe.jsx)("div",{className:"mt-2 text-[11px] font-mono",style:{color:aue},children:"% of Career DNA viewers who submit accuracy feedback"})]})]})]})}function gue(e){var t,n,a,r;let i=e.data;if(!i)return null;const s=i.tiles||{},o=i.recent||[],l=(s.oldest_new_age_days||0)>=3?"red":(s.new_uncontacted||0)>0?"yellow":"green",c=(s.follow_up_due||0)>0?"red":"green";return(0,Pe.jsxs)("div",{className:"mb-6","data-testid":"founder-early-access",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-3",children:[(0,Pe.jsx)(lue,{testid:"founder-early-access-title",children:"Early Access \u2014 Triage"}),(0,Pe.jsx)("a",{href:"/app/admin/early-access",className:"text-xs font-mono font-semibold",style:{color:nue,textDecoration:"underline"},"data-testid":"founder-early-access-deeplink",children:"Open full triage \u2192"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-3",children:[(0,Pe.jsxs)(sue,{testid:"ea-tile-new-u
2ncontacted",children:[(0,Pe.jsx)(oue,{children:"New (uncontacted)"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl mt-2",style:{color:tue},"data-testid":"ea-tile-new-uncontacted-value",children:null!==(t=s.new_uncontacted)&&void 0!==t?t:0})]}),(0,Pe.jsxs)(sue,{testid:"ea-tile-new-7d",children:[(0,Pe.jsx)(oue,{children:"Signups (7d)"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl mt-2",style:{color:tue},"data-testid":"ea-tile-new-7d-value",children:null!==(n=s.new_7d)&&void 0!==n?n:0})]}),(0,Pe.jsxs)(sue,{testid:"ea-tile-oldest",children:[(0,Pe.jsx)(oue,{children:"Oldest uncontacted"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsxs)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},"data-testid":"ea-tile-oldest-value",children:[null!==(a=s.oldest_new_age_days)&&void 0!==a?a:0,(0,Pe.jsx)("span",{className:"text-base ml-1",style:{color:aue},children:"d"})]}),(s.new_uncontacted||0)>0&&(0,Pe.jsx)(due,{tone:l,testid:"ea-tile-oldest-pill",children:"red"===l?"stale":"yellow"===l?"fresh":"clear"})]})]}),(0,Pe.jsxs)(sue,{testid:"ea-tile-follow-up-due",children:[(0,Pe.jsx)(oue,{children:"Follow-ups due"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},"data-testid":"ea-tile-follow-up-due-value",children:null!==(r=s.follow_up_due)&&void 0!==r?r:0}),(s.follow_up_due||0)>0&&(0,Pe.jsx)(due,{tone:c,testid:"ea-tile-follow-up-due-pill",children:"today"})]})]})]}),o.length>0&&(0,Pe.jsxs)(sue,{testid:"ea-recent",children:[(0,Pe.jsx)(oue,{children:"Recent signups"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5 text-[12px]",style:{color:rue},children:o.map(e=>(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-2","data-testid":"ea-recent-row-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"flex items-baseline gap-2 min-w-0",children:[(0,Pe.jsx)("span",{className:"font-mono text-[11px] whitespace-nowrap",style:{color:aue},children:e.submitted_at?new Date(e.submitted_at).toLocaleDateString(void 0,{month:"short",day:"numeric"}):"\u2014"}),(0,Pe.jsx)("span",{className:"truncate font-semibold",style:{color:tue},children:e.name}),(0,Pe.jsxs)("span",{className:"truncate",style:{color:rue},children:["\xb7 ",e.company]})]}),(0,Pe.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-wider whitespace-nowrap",style:{color:aue},children:(e.status||"new").replace(/_/g," ")})]},e.id))})]})]})}function vue(e){let t=e.data,n=e.friction;if(!t)return null;const a=t.stages||{},r=t.sla_days||{},i=t.top_stale||[],s=t.total_stale>0?"yellow":"green";return(0,Pe.jsxs)("div",{className:"mb-6","data-testid":"founder-stage-age",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3",children:[(0,Pe.jsx)(lue,{testid:"founder-stage-age-title",children:"Stage-age (applications awaiting action)"}),(0,Pe.jsxs)(due,{tone:s,testid:"stage-age-headline",children:[t.total_stale," of ",t.total_non_terminal," stale",null!==t.stale_rate_pct?" \xb7 ".concat(t.stale_rate_pct,"%"):""]})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[{key:"submitted",label:"Submitted"},{key:"viewed",label:"Viewed"},{key:"reviewed",label:"Reviewed"},{key:"interview_requested",label:"Interview requested"},{key:"interview_completed",label:"Interview completed"},{key:"offer_sent",label:"Offer sent"}].map(e=>{const t=a[e.key]||{"0_3":0,"4_7":0,"8_14":0,"15plus":0,total:0,stale:0};return(0,Pe.jsxs)(sue,{testid:"stage-age-".concat(e.key),children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,Pe.jsx)("div",{className:"text-xs font-brand font-semibold",style:{color:rue},children:e.label}),(0,Pe.jsxs)("span",{className:"text-[11px] font-mono",style:{color:aue},children:["SLA ",r[e.key]||"\u2014","d"]})]}),(0,Pe.jsxs)("div",{className:"mt-3 flex items-baseline gap-3",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},children:t.total}),t.stale>0&&(0,Pe.jsxs)(due,{tone:"red",testid:"stage-age-".concat(e.key,"-stale"),children:[t.stale," stale"]})]}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-4 gap-1 text-[11px] font-mono",style:{color:aue},children:[(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{style:{color:tue},children:t["0_3"]}),"0\u20133d"]}),(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{style:{color:tue},children:t["4_7"]}),"4\u20137d"]}),(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{style:{color:tue},children:t["8_14"]}),"8\u201314d"]}),(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)("div",{style:{color:t["15plus"]>0?"#B91C1C":tue},children:t["15plus"]}),"15d+"]})]})]},e.key)})}),i.length>0&&(0,Pe.jsxs)(sue,{testid:"stage-age-top-stale",className:"mt-3",children:[(0,Pe.jsx)(oue,{children:"Most overdue applications"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5 text-[12px] font-mono",style:{color:rue},children:i.slice(0,5).map(e=>(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-2","data-testid":"stage-age-stale-row-".concat(e.application_id),children:[(0,Pe.jsxs)("span",{className:"truncate",children:["app ",e.application_id.slice(-8)," \xb7 ",e.status]}),(0,Pe.jsxs)("span",{style:{color:"#B91C1C"},className:"font-semibold whitespace-nowrap",children:[e.days_in_stage,"d (SLA ",e.sla_days,"d)"]})]},e.application_id))})]}),(0,Pe.jsx)(yue,{friction:n})]})}const bue={bug:"Bug Report",question:"Question",feature_request:"Feature Request",general_feedback:"General Feedback"};function yue(e){let t=e.friction;return t&&0!==t.length?(0,Pe.jsxs)(sue,{testid:"stage-age-page-friction",className:"mt-3",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,Pe.jsx)(oue,{children:"Friction signals from support tickets"}),(0,Pe.jsx)("span",{className:"text-[11px] font-mono",style:{color:aue}
2,children:"raw signal \xb7 no composite score"})]}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mt-3",children:t.map(e=>(0,Pe.jsxs)("div",{className:"p-3 rounded",style:{background:"#F9FAFB",border:"1px solid ".concat(iue)},"data-testid":"page-friction-".concat(e.path),children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,Pe.jsx)("div",{className:"font-brand font-semibold text-sm",style:{color:tue},children:e.label}),(0,Pe.jsx)("code",{className:"text-[10px] font-mono truncate",style:{color:aue},children:e.path})]}),(0,Pe.jsxs)("div",{className:"mt-2 grid grid-cols-3 gap-2 text-[11px] font-mono",children:[(0,Pe.jsxs)("div",{"data-testid":"page-friction-".concat(e.path,"-open"),children:[(0,Pe.jsx)("div",{className:"font-bold text-base tabular-nums",style:{color:e.open>0?"#B91C1C":tue},children:e.open}),(0,Pe.jsx)("span",{style:{color:aue},children:"open"})]}),(0,Pe.jsxs)("div",{"data-testid":"page-friction-".concat(e.path,"-new-7d"),children:[(0,Pe.jsx)("div",{className:"font-bold text-base tabular-nums",style:{color:tue},children:e.new_7d}),(0,Pe.jsx)("span",{style:{color:aue},children:"new 7d"})]}),(0,Pe.jsxs)("div",{"data-testid":"page-friction-".concat(e.path,"-mct"),children:[(0,Pe.jsx)("div",{className:"font-bold text-[11px] tabular-nums",style:{color:tue},children:e.most_common_type?bue[e.most_common_type]||e.most_common_type:"\u2014"}),(0,Pe.jsx)("span",{style:{color:aue},children:"most common"})]})]})]},e.path))})]}):null}const jue={bug:"Bug Reports",question:"Questions",feature_request:"Feature Requests",general_feedback:"General Feedback"},wue={open:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA"},pending:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D"},resolved:{bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0"}};function Nue(e){let t=e.value,n=e.testid;const a=wue[t]||wue.open;return(0,Pe.jsx)("span",{"data-testid":n,className:"inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-mono font-semibold border",style:{background:a.bg,color:a.text,borderColor:a.bd},children:t})}function Aue(e){if(!e)return"\u2014";try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch(t){return e}}function kue(e){var t,n,a,r;let i=e.data;if(!i)return null;const s=i.tiles||{},o=i.by_type||{},l=i.recent||[],c=(s.oldest_open_age_days||0)>=3?"red":(s.open||0)>0?"yellow":"green";return(0,Pe.jsxs)("div",{className:"mb-6","data-testid":"founder-support",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-3",children:[(0,Pe.jsx)(lue,{testid:"founder-support-title",children:"User Feedback & Support"}),(0,Pe.jsx)("a",{href:"/app/admin/support",className:"text-xs font-mono font-semibold",style:{color:nue,textDecoration:"underline"},"data-testid":"founder-support-deeplink",children:"Open full triage \u2192"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-3",children:[(0,Pe.jsxs)(sue,{testid:"support-tile-open",children:[(0,Pe.jsx)(oue,{children:"Open tickets"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl mt-2",style:{color:tue},"data-testid":"support-tile-open-value",children:null!==(t=s.open)&&void 0!==t?t:0}),s.pending>0&&(0,Pe.jsxs)("div",{className:"mt-2 text-[11px] font-mono",style:{color:aue},children:["+ ",s.pending," pending"]})]}),(0,Pe.jsxs)(sue,{testid:"support-tile-new-7d",children:[(0,Pe.jsx)(oue,{children:"New (7d)"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl mt-2",style:{color:tue},"data-testid":"support-tile-new-7d-value",children:null!==(n=s.new_7d)&&void 0!==n?n:0})]}),(0,Pe.jsxs)(sue,{testid:"support-tile-resolved-7d",children:[(0,Pe.jsx)(oue,{children:"Resolved (7d)"}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-3xl mt-2",style:{color:tue},"data-testid":"support-tile-resolved-7d-value",children:null!==(a=s.resolved_7d)&&void 0!==a?a:0})]}),(0,Pe.jsxs)(sue,{testid:"support-tile-oldest",children:[(0,Pe.jsx)(oue,{children:"Oldest open"}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-baseline gap-2",children:[(0,Pe.jsxs)("div",{className:"font-brand font-bold text-3xl",style:{color:tue},"data-testid":"support-tile-oldest-value",children:[null!==(r=s.oldest_open_age_days)&&void 0!==r?r:0,(0,Pe.jsx)("span",{className:"text-base ml-1",style:{color:aue},children:"d"})]}),(s.open||0)>0&&(0,Pe.jsx)(due,{tone:c,testid:"support-tile-oldest-pill",children:"red"===c?"needs attention":"yellow"===c?"watching":"fresh"})]})]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 mb-3",children:[(0,Pe.jsxs)(sue,{testid:"support-breakdown",children:[(0,Pe.jsx)(oue,{children:"By type"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5",children:Object.keys(jue).map(e=>{var t;return(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between","data-testid":"support-breakdown-".concat(e),children:[(0,Pe.jsx)("span",{className:"text-xs font-brand",style:{color:rue},children:jue[e]}),(0,Pe.jsx)("span",{className:"font-mono font-bold text-sm tabular-nums",style:{color:tue},children:null!==(t=o[e])&&void 0!==t?t:0})]},e)})})]}),(0,Pe.jsxs)(sue,{testid:"support-by-role",children:[(0,Pe.jsx)(oue,{children:"By role"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-1.5",children:["candidate","recruiter","employer","admin"].map(e=>(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between","data-testid":"support-by-role-".concat(e),children:[(0,Pe.jsx)("span",{className:"text-xs font-brand capitalize",style:{color:rue},children:e}),(0,Pe.jsx)("span",{className:"font-mono font-bold text-sm tabular-nums",style:{color:tue},children:i.by_role&&i.by_role[e]||0})]},e))})]}),(0,Pe.jsxs)(sue,{testid:"support-by-page",children:[(0,Pe.jsx)(oue,{children:"Top pages (top 5)"}),(0,Pe.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(!i.by_page||0===i.by_page.length)&&(0,Pe.jsx)("div",{className:"text-xs font-brand",style:{color:aue},"data-testid":"support-by-page-empty",children:"No page data yet."}),(i.by_page||[]).map((e,t)=>(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between gap-3","data-testid":"support-by-page-row-".concat(t),children:[(0,Pe.jsxs)("span",{className:"text-xs font-mono truncate",style:{color:rue},title:e.page,children:[(0,Pe.jsxs)("span",{style:{color:aue},className:"mr-1.5",children:[t+1,"."]}),e.page]}),(0,Pe.jsx)("span",{className:"font-mono font-bold text-sm tabular-nums whitespace-nowrap",style:{color:tue},children:e.count})]},"".concat(e.page,"-").concat(t)))]})]})]}),(0,Pe.jsxs)(sue,{testid:"support-recent",children:[(0,Pe.jsx)(oue,{children:"Recent tickets"}),0===l.length?(0,Pe.jsx)("div",{className:"mt-3 text-sm font-brand",style:{color:aue},"data-testid":"support-recent-empty",children:"No tickets yet \u2014 the channel is open."}):(0,Pe.jsx)("div",{className:"mt-3 overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"w-full text-sm","data-testid":"support-recent-table",children:[(0,Pe.jsx)("thead",{children:(0,Pe.jsxs)("tr",{style:{borderBottom:"1px solid ".concat(iue)},children:[(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Created"}),(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"User"}),(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Role"}),(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Type"}),(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Subject"}),(0,Pe.jsx)("th",{className:"text-left py-2 pr-3 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Status"}),(0,Pe.jsx)("th",{className:"text-right py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:aue},children:"Action"})]})}),(0,Pe.jsx)("tbody",{children:l.map(e=>(0,Pe.jsxs)("tr",{style:{borderBottom:"1px solid ".concat(iue)},"data-testid":"support-recent-row-".concat(e.id),children:[(0,Pe.jsx)("td",{className:"py-2 pr-3 font-mono text-xs whitespace-nowrap",style:{color:rue},children:Aue(e.created_at)}),(0,Pe.jsxs)("td",{className:"py-2 pr-3 max-w-[180px]",children:[(0,Pe.jsx)("div",{className:"truncate font-semibold",style:{color:tue},children:e.user_name||"\u2014"}),(0,Pe.jsx)("div",{className:"font-mono text-[11px] truncate",style:{color:aue},children:e.user_email})]}),(0,Pe.jsx)("td",{className:"py-2 pr-3 font-mono text-xs",style:{color:rue},children:e.role}),(0,Pe.jsx)("td",{className:"py-2 pr-3 font-mono text-xs",style:{color:rue},children:jue[e.type]||e.type}),(0,Pe.jsx)("td",{className:"py-2 pr-3 max-w-[280px]",children:(0,Pe.jsx)("div",{className:"truncate",style:{color:tue},title:e.subject,children:e.subject})}),(0,Pe.jsx)("td",{className:"py-2 pr-3",children:(0,Pe.jsx)(Nue,{value:e.status,testid:"support-recent-row-".concat(e.id,"-status")})}),(0,Pe.jsx)("td",{className:"py-2 text-right",children:(0,Pe.jsxs)("select",{value:e.status,onChange:t=>(async(e,t)=>{try{await Qi.patch("/support/tickets/".concat(e),{status:t}),va.success("Status \u2192 ".concat(t)),window.location.reload()}catch($ge){var n,a;va.error((null===$ge||void 0===$ge||null===(n=$ge.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Could not update.")}})(e.id,t.target.value),"data-testid":"support-recent-row-".concat(e.id,"-action"),className:"text-xs font-mono px-2 py-1 rounded border",style:{borderColor:iue,color:rue,background:"white"},children:[(0,Pe.jsx)("option",{value:"open",children:"Open"}),(0,Pe.jsx)("option",{value:"pending",children:"Pending"}),(0,Pe.jsx)("option",{value:"resolved",children:"Resolved"})]})})]},e.id))})]})})]})]})}function Eue(e){var t,n,a;let r=e.data;if(!r)return null;const i=r.by_interest||{},s=r.by_status||{},o=(r.by_source_top||[]).slice(0,8),l=Math.max(1,...o.map(e=>e.count));return(0,Pe.jsxs)("div",{className:"mb-6","data-testid":"founder-channels",children:[(0,Pe.jsx)(lue,{testid:"founder-channels-title",children:"Signup Channels"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Pe.jsxs)(sue,{testid:"ch-by-source",className:"md:col-span-2",children:[(0,Pe.jsx)(oue,{children:"By
2source (top 8)"}),0===o.length?(0,Pe.jsx)("div",{className:"text-sm font-brand mt-3",style:{color:aue},children:"No signups yet."}):(0,Pe.jsx)("div",{className:"mt-3 space-y-2",children:o.map(e=>(0,Pe.jsxs)("div",{className:"flex items-center gap-2","data-testid":"ch-source-row-".concat(e.label),children:[(0,Pe.jsx)("div",{className:"w-36 text-xs font-mono truncate",style:{color:rue},children:e.label}),(0,Pe.jsx)("div",{className:"flex-1 h-1.5 rounded-full overflow-hidden",style:{background:"#F3F4F6"},children:(0,Pe.jsx)("div",{className:"h-full rounded-full",style:{width:"".concat(e.count/l*100,"%"),background:nue}})}),(0,Pe.jsx)("div",{className:"w-8 text-right text-xs font-mono font-semibold",style:{color:tue},children:e.count})]},e.label))}),(0,Pe.jsx)("div",{className:"mt-3 text-[11px] font-mono",style:{color:aue},children:'"(direct)" includes signups with no UTM parameters and no referring page.'})]}),(0,Pe.jsxs)(sue,{testid:"ch-by-interest",children:[(0,Pe.jsx)(oue,{children:"By interest"}),(0,Pe.jsxs)("div",{className:"mt-3 space-y-2 text-sm font-brand",style:{color:rue},children:[(0,Pe.jsx)(Due,{label:"Early access",v:null!==(t=i.early_access)&&void 0!==t?t:0,testid:"ch-interest-early-access"}),(0,Pe.jsx)(Due,{label:"Demo",v:null!==(n=i.demo)&&void 0!==n?n:0,testid:"ch-interest-demo"}),(0,Pe.jsx)(Due,{label:"Validation Program",v:null!==(a=i.validation_program)&&void 0!==a?a:0,testid:"ch-interest-validation-program"})]}),(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsx)(oue,{children:"By status"}),(0,Pe.jsx)("div",{className:"mt-3 space-y-2 text-sm font-brand",style:{color:rue},children:0===Object.entries(s).length?(0,Pe.jsx)("div",{className:"text-xs font-mono",style:{color:aue},children:"Nothing here yet."}):Object.entries(s).map(e=>{let t=Ue(e,2),n=t[0],a=t[1];return(0,Pe.jsx)(Due,{label:n.replace(/_/g," "),v:a,testid:"ch-status-".concat(n)},n)})})]})]})]})]})}function Due(e){let t=e.label,n=e.v,a=e.testid;return(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between","data-testid":a,children:[(0,Pe.jsx)("span",{className:"capitalize",children:t}),(0,Pe.jsx)("span",{className:"font-mono font-semibold",style:{color:tue},children:n})]})}function _ue(e){var t;let n=e.health,a=e.northStar;return(0,Pe.jsxs)(sue,{testid:"founder-data-notes",children:[(0,Pe.jsx)(oue,{children:"Data sourcing notes"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-xs font-brand leading-relaxed",style:{color:rue},children:[(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),"Active users derive from ",(0,Pe.jsx)("code",{children:"audit_logs"})," distinct user_ids in the window, joined to ",(0,Pe.jsx)("code",{children:"users.role"}),"."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),"Recruiter interviews reuse ",(0,Pe.jsx)("code",{children:"early_access_signups.status"})," (",(0,Pe.jsx)("code",{children:"interview_scheduled"})," / ",(0,Pe.jsx)("code",{children:"interviewed"}),") \u2014 no separate interviews collection."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),"Accuracy feedback rate = ",(0,Pe.jsx)("code",{children:"career_dna_accuracy_feedback"})," \xf7 ",(0,Pe.jsx)("code",{children:"career_dna.viewed"})," events in the week."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),(null===n||void 0===n?void 0:n.instrumentation_note)||"API error rate / avg latency require request-log middleware (Step 2)."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),(null===a||void 0===a||null===(t=a.production_form)||void 0===t?void 0:t.note)||"Form failure capture deferred to Step 3."]}),(0,Pe.jsxs)("li",{children:[(0,Pe.jsx)(uv,{size:11,weight:"bold",className:"inline mr-1"}),"Uptime is delegated to an external monitor (UptimeRobot / BetterStack)."]})]})]})}function Cue(e){let t=e.label,n=e.value,a=e.sub,r=e.testid;return(0,Pe.jsxs)(sue,{testid:r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:t}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-2",style:{color:tue},children:null!==n&&void 0!==n?n:"\u2014"}),a?(0,Pe.jsx)("div",{className:"text-xs font-brand mt-1",style:{color:aue},children:a}):null]})}function Fue(e){let t=e.data;if(!t)return null;const n=t.unique_visitors,a=void 0===n?0:n,r=t.homepage_views,i=void 0===r?0:r,s=t.beta_views,o=void 0===s?0:s,l=t.cta_clicks,c=void 0===l?{}:l,d=t.engagement,u=void 0===d?{}:d,m=t.beta_funnel,p=void 0===m?{}:m,h=t.conversion_rates,f=void 0===h?{}:h,x=t.product_card_breakdown,g=void 0===x?[]:x,v=t.faq_breakdown,b=void 0===v?[]:v,y=t.top_referrers,j=void 0===y?[]:y,w=t.daily_breakdown,N=void 0===w?[]:w,A=t.window_days,k=void 0===A?7:A,E=u.scroll_depth||{},D=0===a&&0===i,_=e=>null===e||void 0===e?"\u2014":"".concat(e,"%");return(0,Pe.jsxs)("div",{className:"mt-10","data-testid":"founder-marketing-funnel",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-2",children:[(0,Pe.jsxs)(lue,{testid:"founder-marketing-funnel-title",children:["Marketing funnel \xb7 last ",k," days"]}),(0,Pe.jsx)("div",{className:"text-xs font-mono uppercase tracking-[0.22em]",style:{color:aue},children:"Website V2 \xb7 anonymous events"})]}),D?(0,Pe.jsx)(sue,{testid:"mkt-funnel-empty",children:(0,Pe.jsxs)("div",{className:"text-sm font-brand",style:{color:rue},children:["No marketing traffic in the last ",k," days yet. Events fire when a visitor lands on the homepage or ",(0,Pe.jsx)("span",{className:"font-mono",children:"/beta"}),"."]})}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Cue,{label:"Unique visitors",value:a,testid:"mkt-unique-visitors"}),(0,Pe.jsx)(Cue,{label:"Homepage views",value:i,testid:"mkt-homepage-views"}),(0,Pe.jsx)(Cue,{label:"/beta views",value:o,testid:"mkt-beta-views"}),(0,Pe.jsx)(Cue,{label:"Form completed",value:p.form_completed||0,sub:"Started: ".concat(p.form_started||0),testid:"mkt-form-completed"})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Pe.jsxs)(sue,{testid:"mkt-cta-breakdown",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"CTA clicks"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:[(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Hero primary"}),(0,Pe.jsx)("span",{className:"font-mono",children:c.hero_primary||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Hero secondary"}),(0,Pe.jsx)("span",{className:"font-mono",children:c.hero_secondary||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Final CTA"}),(0,Pe.jsx)("span",{className:"font-mono",children:c.final||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Trust link"}),(0,Pe.jsx)("span",{className:"font-mono",children:c.trust||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Product cards"}),(0,Pe.jsx)("span",{className:"font-mono",children:c.product_cards||0})]})]})]}),(0,Pe.jsxs)(sue,{testid:"mkt-engagement",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Engagement"}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:[(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Pricing section reached"}),(0,Pe.jsx)("span",{className:"font-mono",children:u.pricing_reached||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"FAQ expansions"}),(0,Pe.jsx)("span",{className:"font-mono",children:u.faq_expansions||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Scroll \u226525%"}),(0,Pe.jsx)("span",{className:"font-mono",children:E[25]||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Scroll \u226550%"}),(0,Pe.jsx)("span",{className:"font-mono",children:E[50]||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Scroll \u226575%"}),(0,Pe.jsx)("span",{className:"font-mono",children:E[75]||0})]}),(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:"Scroll 100%"}),(0,Pe.jsx)("span",{className:"font-mono",children:E[100]||0})]})]})]})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-4 gap-3",children:[(0,Pe.jsxs)(sue,{testid:"mkt-cr-1",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Home \u2192 /beta"}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-2",style:{color:tue},children:_(f.homepage_to_beta_view_pct)})]}),(0,Pe.jsxs)(sue,{testid:"mkt-cr-2",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"/beta \u2192 form started"}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-2",style:{color:tue},children:_(f.beta_view_to_form_started_pct)})]}),(0,Pe.jsxs)(sue,{testid:"mkt-cr-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Form started \u2192 completed"}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-2",style:{color:tue},children:_(f.form_started_to_completed_pct)})]}),(0,Pe.jsxs)(sue,{testid:"mkt-cr-4",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Visitor \u2192 completed"}),(0,Pe.jsx)("div",{className:"font-brand font-extrabold text-2xl mt-2",style:{color:tue},children:_(f.overall_visitor_to_completed_pct)})]})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,Pe.jsxs)(sue,{testid:"mkt-product-cards",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Product card clicks"}),0===g.length?(0,Pe.jsx)("div",{className:"text-xs font-brand mt-2",style:{color:aue},children:"None yet."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:g.slice(0,6).map(e=>(0,Pe.jsxs)("li",{className:"flex justify-between",children:[(0,Pe.jsx)("span",{children:e.feature}),(0,Pe.jsx)("span",{className:"font-mono",children:e.count})]},e.feature))})]}),(0,Pe.jsxs)(sue,{testid:"mkt-faq",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Top FAQ opens"}),0===b.length?(0,Pe.jsx)("div",{className:"text-xs font-brand mt-2",style:{color:aue},children:"None yet."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:b.slice(0,6).map(e=>(0,Pe.jsxs)("li",{className:"flex justify-between gap-2",children:[(0,Pe.jsx)("span",{className:"truncate",children:e.question}),(0,Pe.jsx)("span",{className:"font-mono shrink-0",children:e.count})]},e.question))})]}),(0,Pe.jsxs)(sue,{testid:"mkt-referrers",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Top referrers"}),0===j.length?(0,Pe.jsx)("div",{className:"text-xs font-brand mt-2",style:{color:aue},children:"None yet."}):(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:j.slice(0,6).map(e=>(0,Pe.jsxs)("li",{className:"flex justify-between gap-2",children:[(0,Pe.jsx)("span",{className:"truncate",children:e.referrer}),(0,Pe.jsx)("span",{className:"font-mono shrink-0",children:e.count})]},e.referrer))})]})]}),N.length>0&&(0,Pe.jsxs)(sue,{className:"mt-4",testid:"mkt-daily",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:"Daily unique visitors"}),(0,Pe.jsx)("ul",{className:"mt-3 grid grid-cols-2 md:grid-cols-7 gap-2 text-xs font-brand",style:{color:rue},children:N.slice(-7).map(e=>(0,Pe.jsxs)("li",{className:"rounded-md p-2",style:{background:"#F8FAFC",border:"1px solid ".concat(iue)},children:[(0,Pe.jsx)("div",{className:"font-mono",children:e.day.slice(5)}),(0,Pe.jsx)("div",{className:"font-brand font-semibold",style:{color:tue},children:e.unique_visitors})]},e.day))})]})]})]})}function Sue(e){let t=e.title,n=e.rows,a=e.valueKey,r=e.countKey,i=e.emptyLabel,s=void 0===i?"None yet.":i,o=e.testid;return(0,Pe.jsxs)(sue,{testid:o,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:aue},children:t}),n&&0!==n.length?(0,Pe.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm font-brand",style:{color:rue},children:n.slice(0,6).map(e=>(0,Pe.jsxs)("li",{className:"flex justify-between gap-2",children:[(0,Pe.jsx)("span",{className:"truncate",children:e[a]}),(0,Pe.jsx)("span",{className:"font-mono shrink-0",children:e[r]})]},e[a]))}):(0,Pe.jsx)("div",{className:"text-xs font-brand mt-2",style:{color:aue},children:s})]})}function Mue(e){var t;let n=e.data;if(!n)return null;const a=n.window_days,r=void 0===a?7:a,i=n.total_visitors,s=void 0===i?0:i,o=n.direct_visitors,l=void 0===o?0:o,c=n.direct_traffic_share_pct,d=void 0===c?null:c,u=n.top_sources,m=void 0===u?[]:u,p=n.top_mediums,h=void 0===p?[]:p,f=n.top_campaigns,x=void 0===f?[]:f,g=n.top_landing_pages,v=void 0===g?[]:g,b=n.beta_conversions_by_campaign,y=void 0===b?[]:b,j=n.hero_cta_by_campaign,w=void 0===j?[]:j,N=n.trust_visits_by_campaign,A=void 0===N?[]:N,k=n.product_clicks_by_campaign,E=void 0===k?[]:k,D=n.top_content_variants,_=void 0===D?[]:D,C=0===s;return(0,Pe.jsxs)("div",{className:"mt-10","data-testid":"founder-marketing-attribution",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-2",children:[(0,Pe.jsxs)(lue,{testid:"founder-marketing-attribution-title",children:["Marketing attribution \xb7 last ",r," days"]}),(0,Pe.jsx)("div",{className:"text-xs font-mono uppercase tracking-[0.22em]",style:{color:aue},children:"First-touch \xb7 no cookies"})]}),C?(0,Pe.jsx)(sue,{testid:"mkt-attr-empty",children:(0,Pe.jsxs)("div",{className:"text-sm font-brand",style:{color:rue},children:["No attribution data yet. Send a link with ",(0,Pe.jsx)("span",{className:"font-mono",children:"?utm_source=<channel>&utm_campaign=<name>"})," to start attributing."]})}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Cue,{label:"Total visitors",value:s,testid:"mkt-attr-total"}),(0,Pe.jsx)(Cue,{label:"Tagged visitors",value:s-l,sub:s?"".concat(100-(null!==d&&void 0!==d?d:0),"% of total"):"\u2014",testid:"mkt-attr-tagged"}),(0,Pe.jsx)(Cue,{label:"Direct traffic",value:l,sub:null!==d?"".concat(d,"% of total"):"\u2014",testid:"mkt-attr-direct"}),(0,Pe.jsx)(Cue,{label:"Top source",value:(null===(t=m[0])||void 0===t?void 0:t.value)||"\u2014",sub:m[0]?"".concat(m[0].unique_visitors," visitor").concat(1===m[0].unique_visitors?"":"s"):"",testid:"mkt-attr-top-source"})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Sue,{title:"Top sources",rows:m,valueKey:"value",countKey:"unique_visitors",testid:"mkt-attr-sources"}),(0,Pe.jsx)(Sue,{title:"Top mediums",rows:h,valueKey:"value",countKey:"unique_visitors",testid:"mkt-attr-mediums"}),(0,Pe.jsx)(Sue,{title:"Top campaigns",rows:x,valueKey:"value",countKey:"unique_visitors",testid:"mkt-attr-campaigns"}),(0,Pe.jsx)(Sue,{title:"Top landing pages",rows:v,valueKey:"value",countKey:"unique_visitors",testid:"mkt-attr-landing"})]}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Sue,{title:"Beta conversions by campaign",rows:y,valueKey:"value",countKey:"unique_visitors",emptyLabel:"No Beta signups tagged with a campaig
2n yet.",testid:"mkt-attr-beta-conv"}),(0,Pe.jsx)(Sue,{title:"Hero CTA clicks by campaign",rows:w,valueKey:"value",countKey:"count",emptyLabel:"No tagged hero clicks yet.",testid:"mkt-attr-hero"}),(0,Pe.jsx)(Sue,{title:"Trust visits by campaign",rows:A,valueKey:"value",countKey:"unique_visitors",emptyLabel:"No tagged Trust visits yet.",testid:"mkt-attr-trust"}),(0,Pe.jsx)(Sue,{title:"Product clicks by campaign",rows:E,valueKey:"value",countKey:"count",emptyLabel:"No tagged product-card clicks yet.",testid:"mkt-attr-product"})]}),(0,Pe.jsxs)("div",{className:"mt-4 text-xs font-brand",style:{color:aue},"data-testid":"mkt-attr-note",children:["First-touch attribution: whichever ",(0,Pe.jsx)("span",{className:"font-mono",children:"utm_*"})," parameters the visitor arrived with are attached to every event in their session. Anonymous only \u2014 no cookies, no fingerprinting."]}),(0,Pe.jsx)(Oue,{rows:_})]})]})}function Oue(e){let t=e.rows;const n=Array.isArray(t)?t:[];return(0,Pe.jsxs)("div",{className:"mt-6","data-testid":"founder-content-variants",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between mb-3 flex-wrap gap-2",children:[(0,Pe.jsx)(lue,{testid:"founder-content-variants-title",children:"Top content variants"}),(0,Pe.jsx)("div",{className:"text-xs font-mono uppercase tracking-[0.22em]",style:{color:aue},children:"utm_content \xb7 which post is winning?"})]}),0===n.length?(0,Pe.jsx)(sue,{testid:"mkt-content-empty",children:(0,Pe.jsxs)("div",{className:"text-sm font-brand",style:{color:rue},children:["No content-variant traffic yet. Tag outbound links with ",(0,Pe.jsx)("span",{className:"font-mono",children:"?utm_content=<variant>"})," to compare posts, emails, and QR codes."]})}):(0,Pe.jsxs)(sue,{testid:"mkt-content-table",children:[(0,Pe.jsx)("div",{className:"overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"w-full text-sm font-brand","data-testid":"mkt-content-table-el",children:[(0,Pe.jsx)("thead",{children:(0,Pe.jsxs)("tr",{className:"text-left",style:{color:aue},children:[(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold",children:"UTM content"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Visitors"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Hero CTA"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Trust"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"/beta views"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Form started"}),(0,Pe.jsx)("th",{className:"py-2 pr-4 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Completed"}),(0,Pe.jsx)("th",{className:"py-2 pr-0 text-[10px] font-mono uppercase tracking-[0.18em] font-semibold text-right",children:"Conv. rate"})]})}),(0,Pe.jsx)("tbody",{children:n.map(e=>(0,Pe.jsxs)("tr",{className:"border-t",style:{borderColor:iue,color:rue},"data-testid":"mkt-content-row-".concat(e.value),children:[(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono truncate max-w-[280px]",style:{color:tue},children:e.value}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",children:e.unique_visitors}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",children:e.hero_cta_clicks}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",children:e.trust_visits}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",children:e.beta_page_views}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",children:e.beta_form_started}),(0,Pe.jsx)("td",{className:"py-2 pr-4 font-mono text-right",style:{color:e.beta_form_completed>0?"#16A34A":rue},children:e.beta_form_completed}),(0,Pe.jsx)("td",{className:"py-2 pr-0 font-mono text-right font-semibold",style:{color:e.conversion_rate_pct&&e.conversion_rate_pct>=5?"#16A34A":tue},children:null===e.conversion_rate_pct||void 0===e.conversion_rate_pct?"\u2014":"".concat(e.conversion_rate_pct,"%")})]},e.value))})]})}),(0,Pe.jsx)("div",{className:"mt-3 text-xs font-brand",style:{color:aue},children:"Ranked by unique visitors. Conversion rate = form completions \xf7 unique visitors. Green when \u2265 5%."})]})]})}const Rue="#041C3A",Hue="#6B7280",Pue="#374151";function Lue(e){if(null==e)return"\u2014";if(e<1024)return"".concat(e," B");const t=["KB","MB","GB"];let n=e/1024;for(let a=0;a<t.length;a++){if(n<1024)return"".concat(n.toFixed(n<10?1:0)," ").concat(t[a]);n/=1024}return"".concat(n.toFixed(1)," TB")}function Tue(e){let t=e.label,n=e.value,a=e.sub,r=e.icon,i=e.accent,s=void 0===i?Rue:i,o=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-lg border bg-white p-4",style:{borderColor:"#E5E7EB"},"data-testid":o,children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] uppercase tracking-[0.18em] font-mono",style:{color:Hue},children:[r&&(0,Pe.jsx)(r,{size:11,weight:"duotone"})," ",t]}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-1 tracking-tight",style:{color:s},children:n}),a&&(0,Pe.jsx)("div",{className:"text-[11px] mt-1",style:{color:Hue},children:a})]})}function Iue(){var e,t,n,a,r,i,s,l,c,d,u,m,p,h,f,x,g,v,b,y;const j=Ue((0,o.useState)(null),2),w=j[0],N=j[1],A=Ue((0,o.useState)(!0),2),k=A[0],E=A[1],D=Ue((0,o.useState)(!1),2),_=D[0],C=D[1],F=Ue((0,o.useState)(null),2),S=F[0],M=F[1],O
2=async()=>{C(!0);try{const e=await Qi.get("/admin/system-health");N(e.data),M(null)}catch(zf){var e,t;M((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not load system health.")}finally{E(!1),C(!1)}};if((0,o.useEffect)(()=>{O();const e=setInterval(O,6e4);return()=>clearInterval(e)},[]),k)return(0,Pe.jsx)("div",{className:"p-8 text-sm",style:{color:Hue},children:"Loading\u2026"});if(S)return(0,Pe.jsx)("div",{className:"p-8 text-sm text-rose-700","data-testid":"system-health-error",children:S});if(!w)return null;const R=w.active_recruiters||{},H=w.totals||{},P=w.recent_24h||{},L=w.email_pipeline||{},T=w.storage||[];return(0,Pe.jsxs)("div",{className:"p-6 max-w-6xl mx-auto","data-testid":"system-health-page",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono",style:{color:Hue},children:"FOUNDER \xb7 INTERNAL"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight",style:{color:Rue},children:"System Health"}),(0,Pe.jsx)("p",{className:"text-sm mt-1",style:{color:Pue},children:"Quiet operational read on AROS. Auto-refreshes every 60 seconds."})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsx)("span",{className:"text-[11px] font-mono",style:{color:Hue},children:w.generated_at?new Date(w.generated_at).toLocaleTimeString():""}),(0,Pe.jsxs)(Lo,{type:"button",variant:"outline",size:"sm",onClick:O,disabled:_,"data-testid":"system-health-refresh",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5 ".concat(_?"animate-spin":"")})," Refresh"]})]})]}),(0,Pe.jsxs)("section",{className:"mb-6",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono mb-2",style:{color:Hue},children:"Active recruiters"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,Pe.jsx)(Tue,{label:"Today",value:null!==(e=R.dau)&&void 0!==e?e:0,sub:"Distinct recruiters with activity in the last 24h",icon:Noe,testid:"health-dau"}),(0,Pe.jsx)(Tue,{label:"Past 7 days",value:null!==(t=R.wau)&&void 0!==t?t:0,icon:Noe,testid:"health-wau"}),(0,Pe.jsx)(Tue,{label:"Past 30 days",value:null!==(n=R.mau)&&void 0!==n?n:0,icon:Hg,testid:"health-mau"})]})]}),(0,Pe.jsxs)("section",{className:"mb-6",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono mb-2",style:{color:Hue},children:"Last 24 hours"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",children:[(0,Pe.jsx)(Tue,{label:"Jobs published",value:null!==(a=P.jobs_published)&&void 0!==a?a:0,icon:BH,testid:"health-jobs-24h"}),(0,Pe.jsx)(Tue,{label:"Applications",value:null!==(r=P.applications_created)&&void 0!==r?r:0,icon:Hg,testid:"health-apps-24h"}),(0,Pe.jsx)(Tue,{label:"Scores written",value:null!==(i=P.scores_written)&&void 0!==i?i:0,icon:ux,testid:"health-scores-24h"}),(0,Pe.jsx)(Tue,{label:"Job intake runs",value:null!==(s=w.job_intake_runs_24h)&&void 0!==s?s:0,sub:"Claude pipeline",icon:ux,testid:"health-intake-24h"}),(0,Pe.jsx)(Tue,{label:"Manager nudges",value:null!==(l=P.manager_followups_sent)&&void 0!==l?l:0,icon:Nx,testid:"health-followups-24h"}),(0,Pe.jsx)(Tue,{label:"Radar actions",value:null!==(c=P.talent_radar_actions)&&void 0!==c?c:0,icon:Noe,testid:"health-radar-24h"})]})]}),(0,Pe.jsxs)("section",{className:"mb-6",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono mb-2",style:{color:Hue},children:"Not-selected email pipeline (lifetime)"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,Pe.jsx)(Tue,{label:"Sent",value:null!==(d=L.sent)&&void 0!==d?d:0,icon:Nx,accent:"#15803D",testid:"health-email-sent"}),(0,Pe.jsx)(Tue,{label:"Draft ready",value:null!==(u=L.draft_ready)&&void 0!==u?u:0,icon:Nx,accent:Rue,testid:"health-email-draft"}),(0,Pe.jsx)(Tue,{label:"Failed",value:null!==(m=L.failed)&&void 0!==m?m:0,icon:Nx,accent:"#991B1B",testid:"health-email-failed"}),(0,Pe.jsx)(Tue,{label:"Not sent",value:null!==(p=L.not_sent)&&void 0!==p?p:0,icon:Nx,accent:Pue,testid:"health-email-notsent"})]})]}),(0,Pe.jsxs)("section",{className:"mb-6",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono mb-2",style:{color:Hue},children:"Lifetime totals"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-7 gap-3",children:[(0,Pe.jsx)(Tue,{label:"Orgs",value:null!==(h=H.orgs)&&void 0!==h?h:0,testid:"health-total-orgs"}),(0,Pe.jsx)(Tue,{label:"Users",value:null!==(f=H.users)&&void 0!==f?f:0,testid:"health-total-users"}),(0,Pe.jsx)(Tue,{label:"Jobs",value:null!==(x=H.jobs)&&void 0!==x?x:0,testid:"health-total-jobs"}),(0,Pe.jsx)(Tue,{label:"Apps",value:null!==(g=H.applications)&&void 0!==g?g:0,testid:"health-total-apps"}),(0,Pe.jsx)(Tue,{label:"Candidates",value:null!==(v=H.candidate_profiles)&&void 0!==v?v:0,testid:"health-total-candidates"}),(0,Pe.jsx)(Tue,{label:"Radar acts",value:null!==(b=H.talent_radar_actions)&&void 0!==b?b:0,testid:"health-total-radar"}),(0,Pe.jsx)(Tue,{label:"Nudges",value:null!==(y=H.manager_followups)&&void 0!==y?y:0,testid:"health-total-nudges"})]})]}),(0,Pe.jsxs)("section",{children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.18em] font-mono mb-2",style:{color:Hue},children:"MongoDB storage"}),(0,Pe.jsx)("div",{className:"rounded-lg border bg-white",style:{borderColor:"#E5E7EB"},children:(0,Pe.jsxs)("table",{className:"w-full text-sm",children:[(0,Pe.jsx)("thead",{className:"text-[10px] uppercase tracking-[0.18em] font-mono",style:{color:Hue},children:(0,Pe.jsxs)("tr",{className:"border-b",style:{borderColor:"#E5E7EB"},children:[(0,Pe.jsx)("th",{className:"text-left px-3 py-2",children:"Collection"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2",children:"Documents"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2",children:"Data size"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2",children:"On disk"})]})}),(0,Pe.jsx)("tbody",{"data-testid":"health-storage-table",children:T.map(e=>{var t;return(0,Pe.jsxs)("tr",{className:"border-b last:border-b-0",style:{borderColor:"#F1F5F9"},children:[(0,Pe.jsx)("td",{className:"px-3 py-2 font-mono text-[12px]",children:e.collection}),(0,Pe.jsx)("td",{className:"px-3 py-2 text-right",children:null!==(t=e.count)&&void 0!==t?t:"\u2014"}),(0,Pe.jsx)("td",{className:"px-3 py-2 text-right",children:Lue(e.size_bytes)}),(0,Pe.jsx)("td",{className:"px-3 py-2 text-right",style:{color:Hue},children:Lue(e.storage_bytes)})]},e.collection)})})]})})]})]})}const Zue="#041C3A";function Bue(){var e,t,n,a,r;const i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!0),2),d=c[0],u=c[1],m=Ue((0,o.useState)(!1),2),p=m[0],f=m[1],x=Ue((0,o.useState)({}),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{(async()=>{u(!0);try{const e=await Qi.get("/beta-pricing/config");l(e.data),v({})}catch(zf){va.error("Could not load pricing config.")}finally{u(!1)}})()},[]);const b=(e,t)=>v(n=>h(h({},n),{},{[e]:t}));if(d||!s)return(0,Pe.jsx)("div",{className:"p-8 text-sm text-muted-foreground",children:"Loading pricing config\u2026"});const y=e=>void 0!==g[e]?g[e]:s[e];return(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto p-6 space-y-6","data-testid":"admin-beta-pricing",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-muted-foreground font-mono font-semibold",children:"Admin \xb7 Beta Pricing"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",style:{color:Zue},children:"Beta pricing configuration"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:"Live knob for pricing, activation, and upgrade copy. Changes take effect immediately \u2014 no deploy. The first active job stays free forever regardless of the settings below (Growth Strategy \xa77.5)."})]}),(0,Pe.jsxs)("div",{className:"rounded-md border border-slate-200 bg-slate-50/60 p-5 space-y-4",children:[(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"price",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Beta price (USD / month)"}),(0,Pe.jsx)(Io,{id:"price",type:"number",min:0,max:999,value:null!==(e=y("beta_price_usd"))&&void 0!==e?e:"",onChange:e=>b("beta_price_usd",Number(e.target.value)),className:"mt-1","data-testid":"admin-price-input"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"paid-limit",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Paid tier active job limit"}),(0,Pe.jsx)(Io,{id:"paid-limit",type:"number",min:1,max:99,value:null!==(t=y("paid_active_job_limit"))&&void 0!==t?t:"",onChange:e=>b("paid_active_job_limit",Number(e.target.value)),className:"mt-1","data-testid":"admin-paid-limit-input"})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center justify-between rounded-md border border-slate-200 bg-white px-4 py-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-semibold",style:{color:Zue},children:"Paid Beta active"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:"Turn on when you are ready to invite second-job upgrades."})]}),(0,Pe.jsx)(oM,{checked:Boolean(y("paid_beta_active")),onCheckedChange:e=>b("paid_beta_active",e),"data-testid":"admin-paid-beta-toggle"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"head",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Upgrade headline"}),(0,Pe.jsx)(Io,{id:"head",value:null!==(n=y("upgrade_headline"))&&void 0!==n?n:"",onCh
2ange:e=>b("upgrade_headline",e.target.value),className:"mt-1","data-testid":"admin-headline-input"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"sub",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Upgrade subhead"}),(0,Pe.jsx)(Bo,{id:"sub",value:null!==(a=y("upgrade_subhead"))&&void 0!==a?a:"",onChange:e=>b("upgrade_subhead",e.target.value),className:"mt-1",rows:2,"data-testid":"admin-subhead-input"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"cancel",className:"text-xs font-mono uppercase tracking-wider text-muted-foreground",children:"Cancellation copy"}),(0,Pe.jsx)(Bo,{id:"cancel",value:null!==(r=y("cancellation_copy"))&&void 0!==r?r:"",onChange:e=>b("cancellation_copy",e.target.value),className:"mt-1",rows:2,"data-testid":"admin-cancellation-input"})]})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Pe.jsxs)(Lo,{onClick:async()=>{f(!0);try{const e={};for(const n of Object.keys(g)){const t=g[n];""!==t&&null!==t&&void 0!==t&&(e[n]=t)}if(0===Object.keys(e).length)return void va.info("Nothing to save.");const t=await Qi.put("/admin/beta-pricing/config",e);l(t.data),v({}),va.success("Pricing config saved.")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save.")}finally{f(!1)}},disabled:p||0===Object.keys(g).length,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white","data-testid":"admin-pricing-save",children:[(0,Pe.jsx)(ux,{size:12,weight:"fill"}),p?"Saving\u2026":"Save configuration"]}),s.updated_at&&(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground","data-testid":"admin-pricing-last-updated",children:["Last updated by ",s.updated_by_email||"system","."]})]})]})}const Vue="#041C3A";function zue(e){return null===e||void 0===e?"\u2014":e<60?"".concat(Math.round(e),"s"):e<3600?"".concat(Math.round(e/60),"m"):e<86400?"".concat((e/3600).toFixed(1),"h"):"".concat((e/86400).toFixed(1),"d")}function que(e){let t=e.label,n=e.value,a=e.sub,r=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-md border border-border bg-white p-4","data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-muted-foreground font-mono font-semibold",children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-2xl tracking-tight mt-2",style:{color:Vue},children:n}),a&&(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:a})]})}function Uue(){var e,t,n,a,r,i,s,l,c,d,u,m,p,h,f,x,g,v,b,y,j;const w=Ue((0,o.useState)(null),2),N=w[0],A=w[1],k=Ue((0,o.useState)(!0),2),E=k[0],D=k[1],_=Ue((0,o.useState)(!1),2),C=_[0],F=_[1],S=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?F(!0):D(!0);try{const e=await Qi.get("/admin/beta-metrics");A(e.data)}catch(zf){console.error("beta-metrics load failed",zf)}finally{D(!1),F(!1)}};if((0,o.useEffect)(()=>{S(!1)},[]),E||!N)return(0,Pe.jsx)("div",{className:"p-8 text-sm text-muted-foreground",children:"Loading Beta metrics\u2026"});const M=N.north_star||{},O=N.view_mode_split||{},R=N.second_job_conversion||{},H=N.free_to_paid_conversion||{},P=N.returning_employers||{},L=N.candidate_intelligence_adoption||{},T=N.copy_to_brief_adoption||{},I=N.feature_adoption_grid||[];return(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto p-6 space-y-6","data-testid":"admin-beta-metrics",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-muted-foreground font-mono font-semibold",children:"Admin \xb7 Beta Metrics"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",style:{color:Vue},children:"Beta metrics \u2014 product-led signals"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["Founder dashboard. These are the PLG signals that validate the Growth Strategy \u2014 not the operational health of the platform. See"," ",(0,Pe.jsx)("a",{href:"/app/admin/system-health",className:"underline",children:"System Health"})," for uptime & pipeline stats."]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>S(!0),disabled:C,"data-testid":"beta-metrics-refresh",children:[(0,Pe.jsx)(bM,{size:12,className:C?"animate-spin":""}),"Refresh"]})]}),(0,Pe.jsxs)("div",{className:"rounded-md border-2 border-slate-900 bg-gradient-to-br from-slate-50 to-blue-50 p-5","data-testid":"beta-metrics-north-star",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Pe.jsx)(My,{size:16,weight:"fill",style:{color:Vue}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Vue},children:"North Star \xb7 first-session activation"})]}),(0,Pe.jsxs)("div",{className:"font-display font-bold text-5xl tracking-tight",style:{color:Vue},children:[null!==(e=M.rate_percent)&&void 0!==e?e:0,"%"]}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-1",children:[null!==(t=M.activated)&&void 0!==t?t:0," of ",null!==(n=M.total_employers)&&void 0!==n?n:0," employers viewed the AI Hiring Summary at least once. Growth \xa72.1 target: \u2265 40%."]})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Pe.jsx)(que,{label:"Time to first hiring recommendation",value:zue(N.time_to_first_value_seconds),sub:"Median across all orgs \u2014 org created \u2192 first AI Hiring Summary view.",testid:"beta-metric-ttfv"}),(0,Pe.jsx)(que,{label:"First applicant \u2192 first interview",value:zue(N.first_applicant_to_first_interview_seconds),sub:"Median per job.",testid:"beta-metric-first-app-to-iv"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Pe.jsx)(que,{label:"Candidate Intelligence adoption",value:"".concat(null!==(a=L.adoption_percent)&&void 0!==a?a:0,"%"),sub:"".concat(null!==(r=L.orgs_using_ci)&&void 0!==r?r:0," of ").concat(null!==(i=L.active_orgs)&&void 0!==i?i:0," active orgs."),testid:"beta-metric-ci-adoption"}),(0,Pe.jsx)(que,{label:"Copy-to-Interview-Brief adoption",value:"".concat(null!==(s=T.adoption_percent)&&void 0!==s?s:0,"%"),sub:"".concat(null!==(l=T.orgs_using_copy_to_brief)&&void 0!==l?l:0," of ").concat(null!==(c=T.active_orgs)&&void 0!==c?c:0," active orgs."),testid:"beta-metric-c2b-adoption"}),(0,Pe.jsx)(que,{label:"Pipeline vs List view",value:"".concat(null!==(d=O.pipeline_share_percent)&&void 0!==d?d:0,"%"),sub:"Pipeline: ".concat(null!==(u=O.pipeline)&&void 0!==u?u:0," \xb7 List: ").concat(null!==(m=O.list)&&void 0!==m?m:0," sessions."),testid:"beta-metric-view-split"})]}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Pe.jsx)(que,{label:"Second-job conversion",value:"".concat(null!==(p=R.rate_percent)&&void 0!==p?p:0,"%"),sub:"".concat(null!==(h=R.converted)&&void 0!==h?h:0," of ").concat(null!==(f=R.eligible)&&void 0!==f?f:0," orgs posted a 2nd job within 60d."),testid:"beta-metric-second-job"}),(0,Pe.jsx)(que,{label:"Free \u2192 paid conversion",value:"".concat(null!==(x=H.rate_percent)&&void 0!==x?x:0,"%"),sub:"".concat(null!==(g=H.paid)&&void 0!==g?g:0," paid of ").concat(null!==(v=H.total)&&void 0!==v?v:0," users."),testid:"beta-metric-free-to-paid"}),(0,Pe.jsx)(que,{label:"Returning employers (WAU/MAU)",value:null!==(b=P.wau_mau_ratio)&&void 0!==b?b:"\u2014",sub:"WAU ".concat(null!==(y=P.wau)&&void 0!==y?y:0," \xb7 MAU ").concat(null!==(j=P.mau)&&void 0!==j?j:0,". Target 0.30+."),testid:"beta-metric-returning"})]}),(0,Pe.jsxs)("div",{className:"rounded-md border border-border bg-white","data-testid":"beta-metrics-grid",children:[(0,Pe.jsxs)("div",{className:"px-4 py-3 border-b border-border flex items-center gap-2",children:[(0,Pe.jsx)(Hg,{size:14,weight:"duotone",style:{color:Vue}}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-muted-foreground",children:"Feature adoption \u2014 unique orgs"})]}),(0,Pe.jsxs)("ul",{className:"divide-y divide-border",children:[I.map((e,t)=>(0,Pe.jsxs)("li",{className:"px-4 py-2 text-sm flex items-center justify-between","data-testid":"beta-metrics-grid-row-".concat(t),children:[(0,Pe.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(ux,{size:10,weight:"fill",className:"text-slate-400"}),(0,Pe.jsx)("span",{style:{color:Vue},children:e.feature})]}),(0,Pe.jsx)("span",{className:"font-mono text-xs font-semibold text-muted-foreground",children:e.orgs_using_30d_or_lifetime})]},t)),0===I.length&&(0,Pe.jsx)("li",{className:"px-4 py-6 text-sm text-muted-foreground italic text-center",children:"No feature adoption data yet. Signals will accumulate as Beta traffic grows."})]})]}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground italic","data-testid":"beta-metrics-footer",children:["Generated at ",N.generated_at,". The
2se metrics are refreshed on demand."]})]})}const Wue=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"}),o.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"}))]]),Yue=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Wue})));Yue.displayName="NotePencilIcon";const Kue=Yue,Gue="#041C3A",$ue="#6B7280",Que="#374151",Xue="#E5E7EB",Jue={bug:"Bug Report",question:"Question",feature_request:"Feature Request",general_feedback:"General Feedback"},eme={open:{bg:"#FEF2F2",text:"#991B1B",bd:"#FECACA"},pending:{bg:"#FFFBEB",text:"#92400E",bd:"#FCD34D"},resolved:{bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0"}};function tme(e){let t=e.value;const n=eme[t]||eme.open;return(0,Pe.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-mono font-semibold border",style:{background:n.bg,color:n.text,borderColor:n.bd},"data-testid":"support-row-status-".concat(t),children:t})}function nme(e){if(!e)return"\u2014";try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch(t){return e}}function ame(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)("all"),2),u=d[0],m=d[1],p=Ue((0,o.useState)("all"),2),f=p[0],x=p[1],g=Ue((0,o.useState)("all"),2),v=g[0],b=g[1],y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(null),2),D=E[0],_=E[1],C=Ue((0,o.useState)(0),2),F=C[0],S=C[1];(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t={};"all"!==u&&(t.status=u),"all"!==f&&(t.type=f),"all"!==v&&(t.role=v);const a=(await Qi.get("/support/tickets",{params:t})).data;if(!e)return;n(a||[]),_(null)}catch($ge){var t,a;if(!e)return;_((null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.detail)||(null===$ge||void 0===$ge?void 0:$ge.message)||"Could not load tickets.")}finally{e&&(i(!1),c(!1))}})(),()=>{e=!1}},[u,f,v,F]);const M=(0,o.useMemo)(()=>{const e={all:t.length,open:0,pending:0,resolved:0};return t.forEach(t=>{void 0!==e[t.status]&&(e[t.status]+=1)}),e},[t]);return r?(0,Pe.jsx)("div",{className:"p-8","data-testid":"admin-support-loading",children:(0,Pe.jsx)("div",{className:"font-brand text-sm",style:{color:$ue},children:"Loading support tickets\u2026"})}):(0,Pe.jsxs)("div",{className:"p-6 lg:p-8 max-w-7xl mx-auto","data-testid":"admin-support",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:$ue},children:"Admin"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:Gue},children:"Support Triage"}),(0,Pe.jsxs)("p",{className:"text-sm font-brand mt-1.5",style:{color:Que},children:[M.all," ticket",1===M.all?"":"s"," \xb7 open ",M.open," \xb7 pending ",M.pending," \xb7 resolved ",M.resolved]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>{c(!0),S(e=>e+1)},disabled:l,"data-testid":"admin-support-refresh",style:{borderColor:Gue,color:Gue,borderRadius:10},children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:l?"animate-spin mr-1.5":"mr-1.5"}),l?"Refreshing\u2026":"Refresh"]})]}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4","data-testid":"admin-support-filters",children:[(0,Pe.jsxs)(Sf,{value:u,onValueChange:m,children:[(0,Pe.jsx)(Of,{className:"w-[160px]","data-testid":"support-filter-status",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All statuses"}),(0,Pe.jsx)(Lf,{value:"open",children:"Open"}),(0,Pe.jsx)(Lf,{value:"pending",children:"Pending"}),(0,Pe.jsx)(Lf,{value:"resolved",children:"Resolved"})]})]}),(0,Pe.jsxs)(Sf,{value:f,onValueChange:x,children:[(0,Pe.jsx)(Of,{className:"w-[180px]","data-testid":"support-filter-type",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All types"}),(0,Pe.jsx)(Lf,{value:"bug",children:"Bug Report"}),(0,Pe.jsx)(Lf,{value:"question",children:"Question"}),(0,Pe.jsx)(Lf,{value:"feature_request",children:"Feature Request"}),(0,Pe.jsx)(Lf,{value:"general_feedback",children:"General Feedback"})]})]}),(0,Pe.jsxs)(Sf,{value:v,onValueChange:b,children:[(0,Pe.jsx)(Of,{className:"w-[160px]","data-testid":"support-filter-role",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All roles"}),(0,Pe.jsx)(Lf,{value:"candidate",children:"Candidate"}),(0,Pe.jsx)(Lf,{value:"recruiter",children:"Recruiter"}),(0,Pe.jsx)(Lf,{value:"employer",children:"Employer"}),(0,Pe.jsx)(Lf,{value:"admin",children:"Admin"})]})]})]}),D&&(0,Pe.jsx)("div",{className:"mb-4 p-3 rounded text-sm font-mono",style:{background:"#FEF2F2",color:"#991B1B",border:"1px solid #FECACA"},children:D}),(0,Pe.jsx)("div",{className:"bg-white",style:{border:"1px solid ".concat(Xue),borderRadius:12,overflow:"hidden"},"data-testid":"admin-support-table-wrap",children:(0,Pe.jsxs)("table",{className:"w-full text-sm","data-testid":"admin-support-table",children:[(0,Pe.jsx)("thead",{style:{background:"#F9FAFB",borderBottom:"1px solid ".concat(Xue)},children:(0,Pe.jsxs)("tr",{children:[(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Created"}),(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"User"}),(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Role"}),(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Type"}),(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Subject"}),(0,Pe.jsx)("th",{className:"text-left px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Status"}),(0,Pe.jsx)("th",{className:"text-right px-4 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:$ue},children:"Actions"})]})}),(0,Pe.jsxs)("tbody",{children:[0===t.length&&(0,Pe.jsx)("tr",{children:(0,Pe.jsx)("td",{colSpan:7,className:"px-4 py-8 text-center font-mono text-sm",style:{color:$ue},"data-testid":"admin-support-empty",children:"No tickets match the current filters."})}),t.map(e=>(0,Pe.jsxs)("tr",{className:"border-t",style:{borderColor:Xue},"data-testid":"support-row-".concat(e.id),children:[(0,Pe.jsx)("td",{className:"px-4 py-3 font-mono text-xs whitespace-nowrap",style:{color:Que},children:nme(e.created_at)}),(0,Pe.jsxs)("td",{className:"px-4 py-3",children:[(0,Pe.jsx)("div",{className:"font-semibold",style:{color:Gue},children:e.user_name||"\u2014"}),(0,Pe.jsx)("div",{className:"font-mono text-[11px]",style:{color:$ue},children:e.user_email})]}),(0,Pe.jsx)("td",{className:"px-4 py-3 font-mono text-xs",style:{color:Que},children:e.role}),(0,Pe.jsx)("td",{className:"px-4 py-3 font-mono text-xs",style:{color:Que},children:Jue[e.type]||e.type}),(0,Pe.jsxs)("td",{className:"px-4 py-3 max-w-[360px]",children:[(0,Pe.jsx)("div",{className:"truncate",style:{color:Gue},children:e.subject}),(0,Pe.jsx)("div",{className:"text-xs truncate",style:{color:$ue},title:e.description,children:e.description})]}),(0,Pe.jsx)("td",{className:"px-4 py-3",children:(0,Pe.jsx)(tme,{value:e.status})}),(0,Pe.jsx)("td",{className:"px-4 py-3",children:(0,Pe.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,Pe.jsxs)(Sf,{value:e.status,onValueChange:a=>(async(e,a)=>{try{const r=(await Qi.patch("/support/tickets/".concat(e),{status:a})).data,i=t.map(t=>
2t.id===e?h(h({},t),r):t);n(i),va.success("Status \u2192 ".concat(a))}catch($ge){var r,i;va.error((null===$ge||void 0===$ge||null===(r=$ge.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"Could not update.")}})(e.id,a),children:[(0,Pe.jsx)(Of,{className:"w-[120px] h-8","data-testid":"support-row-action-".concat(e.id),children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"open",children:"Open"}),(0,Pe.jsx)(Lf,{value:"pending",children:"Pending"}),(0,Pe.jsx)(Lf,{value:"resolved",children:"Resolved"})]})]}),(0,Pe.jsx)(Lo,{variant:"ghost",size:"sm",onClick:()=>{return w((t=e).id),void k(t.internal_notes||"");var t},"data-testid":"support-row-note-".concat(e.id),title:e.internal_notes?"Edit internal note":"Add internal note",children:(0,Pe.jsx)(Kue,{size:14})})]})})]},e.id))]})]})}),(0,Pe.jsx)(Kd,{open:!!j,onOpenChange:e=>!e&&w(null),children:(0,Pe.jsxs)(Qd,{className:"sm:max-w-[520px]","data-testid":"support-note-dialog",children:[(0,Pe.jsxs)(Xd,{children:[(0,Pe.jsx)(eu,{children:"Internal note"}),(0,Pe.jsx)(tu,{children:"Founder-only. Not shared with the ticket author."})]}),(0,Pe.jsx)(Bo,{value:A,onChange:e=>k(e.target.value),rows:6,maxLength:8e3,placeholder:"What did we observe / decide / follow up with?","data-testid":"support-note-textarea"}),(0,Pe.jsxs)(Jd,{children:[(0,Pe.jsx)(Lo,{variant:"ghost",onClick:()=>w(null),"data-testid":"support-note-cancel",children:"Cancel"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(j)try{const e=(await Qi.patch("/support/tickets/".concat(j),{internal_notes:A})).data,a=t.map(t=>t.id===j?h(h({},t),e):t);n(a),va.success("Note saved."),w(null)}catch($ge){var e,a;va.error((null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(a=e.data)||void 0===a?void 0:a.detail)||"Could not save note.")}},"data-testid":"support-note-save",children:"Save note"})]})]})})]})}const rme=["__scopeMenu"],ime=["forceMount"],sme=["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"],ome=["__scopeMenu"],lme=["__scopeMenu"],cme=["disabled","onSelect"],dme=["__scopeMenu","disabled","textValue"],ume=["checked","onCheckedChange"],mme=["value","onValueChange"],pme=["value"],hme=["__scopeMenu","forceMount"],fme=["__scopeMenu"],xme=["__scopeMenu"],gme=["forceMount"];var vme=["Enter"," "],bme=["ArrowUp","PageDown","End"],yme=["ArrowDown","PageUp","Home",...bme],jme={ltr:[...vme,"ArrowRight"],rtl:[...vme,"ArrowLeft"]},wme={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nme="Menu",Ame=Ue(iu(Nme),3),kme=Ame[0],Eme=Ame[1],Dme=Ue(Jo(Nme,[Ame[2],sp,OI]),2),_me=Dme[0],Cme=Dme[1],Fme=sp(),Sme=OI(),Mme=Ue(_me(Nme),2),Ome=Mme[0],Rme=Mme[1],Hme=Ue(_me(Nme),2),Pme=Hme[0],Lme=Hme[1],Tme=e=>{const t=e.__scopeMenu,n=e.open,a=void 0!==n&&n,r=e.children,i=e.dir,s=e.onOpenChange,l=e.modal,c=void 0===l||l,d=Fme(t),u=Ue(o.useState(null),2),m=u[0],p=u[1],f=o.useRef(!1),x=ol(s),g=du(i);return o.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,Pe.jsx)(Ap,h(h({},d),{},{children:(0,Pe.jsx)(Ome,{scope:t,open:a,onOpenChange:x,content:m,onContentChange:p,children:(0,Pe.jsx)(Pme,{scope:t,onClose:o.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:f,dir:g,modal:c,children:r})})}))};Tme.displayName=Nme;var Ime=o.forwardRef((e,t)=>{const n=e.__scopeMenu,a=Ie(e,rme),r=Fme(n);return(0,Pe.jsx)(kp,h(h(h({},r),a),{},{ref:t}))});Ime.displayName="MenuAnchor";var Zme="MenuPortal",Bme=Ue(_me(Zme,{forceMount:void 0}),2),Vme=Bme[0],zme=Bme[1],qme=e=>{const t=e.__scopeMenu,n=e.forceMount,a=e.children,r=e.container,i=Rme(Zme,t);return(0,Pe.jsx)(Vme,{scope:t,forceMount:n,children:(0,Pe.jsx)(Sl,{present:n||i.open,children:(0,Pe.jsx)(Fl,{asChild:!0,container:r,children:a})})})};qme.displayName=Zme;var Ume="MenuContent",Wme=Ue(_me(Ume),2),Yme=Wme[0],Kme=Wme[1],Gme=o.forwardRef((e,t)=>
2{const n=zme(Ume,e.__scopeMenu),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Ie(e,ime),s=Rme(Ume,e.__scopeMenu),o=Lme(Ume,e.__scopeMenu);return(0,Pe.jsx)(kme.Provider,{scope:e.__scopeMenu,children:(0,Pe.jsx)(Sl,{present:r||s.open,children:(0,Pe.jsx)(kme.Slot,{scope:e.__scopeMenu,children:o.modal?(0,Pe.jsx)($me,h(h({},i),{},{ref:t})):(0,Pe.jsx)(Qme,h(h({},i),{},{ref:t}))})})})}),$me=o.forwardRef((e,t)=>{const n=Rme(Ume,e.__scopeMenu),a=o.useRef(null),r=us(t,a);return o.useEffect(()=>{const e=a.current;if(e)return Rc(e)},[]),(0,Pe.jsx)(Jme,h(h({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$o(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Qme=o.forwardRef((e,t)=>{const n=Rme(Ume,e.__scopeMenu);return(0,Pe.jsx)(Jme,h(h({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Xme=hs("MenuContent.ScrollLock"),Jme=o.forwardRef((e,t)=>{const n=e.__scopeMenu,a=e.loop,r=void 0!==a&&a,i=e.trapFocus,s=e.onOpenAutoFocus,l=e.onCloseAutoFocus,c=e.disableOutsidePointerEvents,d=e.onEntryFocus,u=e.onEscapeKeyDown,m=e.onPointerDownOutside,p=e.onFocusOutside,f=e.onInteractOutside,x=e.onDismiss,g=e.disableOutsideScroll,v=Ie(e,sme),b=Rme(Ume,n),y=Lme(Ume,n),j=Fme(n),w=Sme(n),N=Eme(n),A=Ue(o.useState(null),2),k=A[0],E=A[1],D=o.useRef(null),_=us(t,D,b.onContentChange),C=o.useRef(0),F=o.useRef(""),S=o.useRef(0),M=o.useRef(null),O=o.useRef("right"),R=o.useRef(0),H=g?Ec:o.Fragment,P=g?{as:Xme,allowPinchZoom:!0}:void 0,L=e=>{var t,n;const a=F.current+e,r=N().filter(e=>!e.disabled),i=document.activeElement,s=null===(t=r.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,o=function(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0]),r=a?t[0]:t,i=n?e.indexOf(n):-1;let s=function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(e,Math.max(i,0));1===r.length&&(s=s.filter(e=>e!==n));const o=s.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o!==n?o:void 0}(r.map(e=>e.textValue),a,s),l=null===(n=r.find(e=>e.textValue===o))||void 0===n?void 0:n.ref.current;!function e(t){F.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))}(a),l&&setTimeout(()=>l.focus())};o.useEffect(()=>()=>window.clearTimeout(C.current),[]),Rl();const T=o.useCallback(e=>{var t,n;return O.current===(null===(t=M.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const n=e.x,a=e.y;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const e=t[i],o=t[s],l=e.x,c=e.y,d=o.x,u=o.y;c>a!==u>a&&n<(d-l)*(a-c)/(u-c)+l&&(r=!r)}return r}(n,t)}(e,null===(n=M.current)||void 0===n?void 0:n.area)},[]);return(0,Pe.jsx)(Yme,{scope:n,searchRef:F,onItemEnter:o.useCallback(e=>{T(e)&&e.preventDefault()},[T]),onItemLeave:o.useCallback(e=>{var t;T(e)||(null===(t=D.current)||void 0===t||t.focus(),E(null))},[T]),onTriggerLeave:o.useCallback(e=>{T(e)&&e.preventDefault()},[T]),pointerGraceTimerRef:S,onPointerGraceIntentChange:o.useCallback(e=>{M.current=e},[]),children:(0,Pe.jsx)(H,h(h({},P),{},{children:(0,Pe.jsx)(wl,{asChild:!0,trapped:i,onMountAutoFocus:$o(s,e=>{var t;e.preventDefault(),null===(t=D.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,Pe.jsx)(hl,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:f,onDismiss:x,children:(0,Pe.jsx)(zI,h(h({asChild:!0},w),{},{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:$o(d,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,Pe.jsx)(Ep,h(h(h({role:"menu","aria-orientation":"vertical","data-state":Fpe(b.open),"data-radix-menu-content":"",dir:y.dir},j),v),{},{ref:_,style:h({outline:"none"},v.style),onKeyDown:$o(v.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,a=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&a&&L(e.key));const r=D.current;if(e.target!==r)return;
2if(!yme.includes(e.key))return;e.preventDefault();const i=N().filter(e=>!e.disabled).map(e=>e.ref.current);bme.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:$o(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),F.current="")}),onPointerMove:$o(e.onPointerMove,Ope(e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";O.current=t,R.current=e.clientX}}))}))}))})})}))})});Gme.displayName=Ume;var epe=o.forwardRef((e,t)=>{e.__scopeMenu;const n=Ie(e,ome);return(0,Pe.jsx)(zo.div,h(h({role:"group"},n),{},{ref:t}))});epe.displayName="MenuGroup";var tpe=o.forwardRef((e,t)=>{e.__scopeMenu;const n=Ie(e,lme);return(0,Pe.jsx)(zo.div,h(h({},n),{},{ref:t}))});tpe.displayName="MenuLabel";var npe="MenuItem",ape="menu.itemSelect",rpe=o.forwardRef((e,t)=>{const n=e.disabled,a=void 0!==n&&n,r=e.onSelect,i=Ie(e,cme),s=o.useRef(null),l=Lme(npe,e.__scopeMenu),c=Kme(npe,e.__scopeMenu),d=us(t,s),u=o.useRef(!1);return(0,Pe.jsx)(ipe,h(h({},i),{},{ref:d,disabled:a,onClick:$o(e.onClick,()=>{const e=s.current;if(!a&&e){const t=new CustomEvent(ape,{bubbles:!0,cancelable:!0});e.addEventListener(ape,e=>null===r||void 0===r?void 0:r(e),{once:!0}),qo(e,t),t.defaultPrevented?u.current=!1:l.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:$o(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:$o(e.onKeyDown,e=>{const t=""!==c.searchRef.current;a||t&&" "===e.key||vme.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))});rpe.displayName=npe;var ipe=o.forwardRef((e,t)=>{const n=e.__scopeMenu,a=e.disabled,r=void 0!==a&&a,i=e.textValue,s=Ie(e,dme),l=Kme(npe,n),c=Sme(n),d=o.useRef(null),u=us(t,d),m=Ue(o.useState(!1),2),p=m[0],f=m[1],x=Ue(o.useState(""),2),g=x[0],v=x[1];return o.useEffect(()=>{const e=d.current;var t;e&&v((null!==(t=e.textContent)&&void 0!==t?t:"").trim())},[s.children]),(0,Pe.jsx)(kme.ItemSlot,{scope:n,disabled:r,textValue:null!==i&&void 0!==i?i:g,children:(0,Pe.jsx)(qI,h(h({asChild:!0},c),{},{focusable:!r,children:(0,Pe.jsx)(zo.div,h(h({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s),{},{ref:u,onPointerMove:$o(e.onPointerMove,Ope(e=>{if(r)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:$o(e.onPointerLeave,Ope(e=>l.onItemLeave(e))),onFocus:$o(e.onFocus,()=>f(!0)),onBlur:$o(e.onBlur,()=>f(!1))}))}))})}),spe=o.forwardRef((e,t)=>{const n=e.checked,a=void 0!==n&&n,r=e.onCheckedChange,i=Ie(e,ume);return(0,Pe.jsx)(xpe,{scope:e.__scopeMenu,checked:a,children:(0,Pe.jsx)(rpe,h(h({role:"menuitemcheckbox","aria-checked":Spe(a)?"mixed":a},i),{},{ref:t,"data-state":Mpe(a),onSelect:$o(i.onSelect,()=>null===r||void 0===r?void 0:r(!!Spe(a)||!a),{checkForDefaultPrevented:!1})}))})});spe.displayName="MenuCheckboxItem";var ope="MenuRadioGroup",lpe=Ue(_me(ope,{value:void 0,onValueChange:()=>{}}),2),cpe=lpe[0],dpe=lpe[1],upe=o.forwardRef((e,t)=>{const n=e.value,a=e.onValueChange,r=Ie(e,mme),i=ol(a);return(0,Pe.jsx)(cpe,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,Pe.jsx)(epe,h(h({},r),{},{ref:t}))})});upe.displayName=ope;var mpe="MenuRadioItem",ppe=o.forwardRef((e,t)=>{const n=e.value,a=Ie(e,pme),r=dpe(mpe,e.__scopeMenu),i=n===r.value;return(0,Pe.jsx)(xpe,{scope:e.__scopeMenu,checked:i,children:(0,Pe.jsx)(rpe,h(h({role:"menuitemradio","aria-checked":i},a),{},{ref:t,"data-state":Mpe(i),onSelect:$o(a.onSelect,()=>{var e;return null===(e=r.onValueChange)||void 0===e?void 0:e.call(r,n)},{checkForDefaultPrevented:!1})}))})});ppe.displayName=mpe;var hpe="MenuItemIndicator",fpe=Ue(_me(hpe,{checked:!1}),2),xpe=fpe[0],gpe=fpe[1],vpe=o.forwardRef((e,t)=>{const n=e.__scopeMenu,a=e.forceMount,r=Ie(e,hme),i=gpe(hpe,n);return(0,Pe.jsx)(Sl,{present:a||Spe(i.checked)||!0===i.checked,children:(0,Pe.jsx)(zo.span,h(h({},r),{},{ref:t,"data-state":Mpe(i.checked)}))})});vpe.displayName=hpe;var bpe=o.forwardRef((e,t)=>
2{e.__scopeMenu;const n=Ie(e,fme);return(0,Pe.jsx)(zo.div,h(h({role:"separator","aria-orientation":"horizontal"},n),{},{ref:t}))});bpe.displayName="MenuSeparator";var ype=o.forwardRef((e,t)=>{const n=e.__scopeMenu,a=Ie(e,xme),r=Fme(n);return(0,Pe.jsx)(Dp,h(h(h({},r),a),{},{ref:t}))});ype.displayName="MenuArrow";var jpe="MenuSub",wpe=Ue(_me(jpe),2),Npe=wpe[0],Ape=wpe[1],kpe=e=>{const t=e.__scopeMenu,n=e.children,a=e.open,r=void 0!==a&&a,i=e.onOpenChange,s=Rme(jpe,t),l=Fme(t),c=Ue(o.useState(null),2),d=c[0],u=c[1],m=Ue(o.useState(null),2),p=m[0],f=m[1],x=ol(i);return o.useEffect(()=>(!1===s.open&&x(!1),()=>x(!1)),[s.open,x]),(0,Pe.jsx)(Ap,h(h({},l),{},{children:(0,Pe.jsx)(Ome,{scope:t,open:r,onOpenChange:x,content:p,onContentChange:f,children:(0,Pe.jsx)(Npe,{scope:t,contentId:rl(),triggerId:rl(),trigger:d,onTriggerChange:u,children:n})})}))};kpe.displayName=jpe;var Epe="MenuSubTrigger",Dpe=o.forwardRef((e,t)=>{const n=Rme(Epe,e.__scopeMenu),a=Lme(Epe,e.__scopeMenu),r=Ape(Epe,e.__scopeMenu),i=Kme(Epe,e.__scopeMenu),s=o.useRef(null),l=i.pointerGraceTimerRef,c=i.onPointerGraceIntentChange,d={__scopeMenu:e.__scopeMenu},u=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>u,[u]),o.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}},[l,c]),(0,Pe.jsx)(Ime,h(h({asChild:!0},d),{},{children:(0,Pe.jsx)(ipe,h(h({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Fpe(n.open)},e),{},{ref:ds(t,r.onTriggerChange),onClick:t=>{var a;null===(a=e.onClick)||void 0===a||a.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$o(e.onPointerMove,Ope(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:$o(e.onPointerLeave,Ope(e=>{var t;u();const a=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(a){var r;const t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,s="right"===t,o=s?-5:5,c=a[s?"left":"right"],d=a[s?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:a.top},{x:d,y:a.top},{x:d,y:a.bottom},{x:c,y:a.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:$o(e.onKeyDown,t=>{const r=""!==i.searchRef.current;var s;e.disabled||r&&" "===t.key||jme[a.dir].includes(t.key)&&(n.onOpenChange(!0),null===(s=n.content)||void 0===s||s.focus(),t.preventDefault())})}))}))});Dpe.displayName=Epe;var _pe="MenuSubContent",Cpe=o.forwardRef((e,t)=>{const n=zme(Ume,e.__scopeMenu),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Ie(e,gme),s=Rme(Ume,e.__scopeMenu),l=Lme(Ume,e.__scopeMenu),c=Ape(_pe,e.__scopeMenu),d=o.useRef(null),u=us(t,d);return(0,Pe.jsx)(kme.Provider,{scope:e.__scopeMenu,children:(0,Pe.jsx)(Sl,{present:r||s.open,children:(0,Pe.jsx)(kme.Slot,{scope:e.__scopeMenu,children:(0,Pe.jsx)(Jme,h(h({id:c.contentId,"aria-labelledby":c.triggerId},i),{},{ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:$o(e.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:$o(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:$o(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=wme[l.dir].includes(e.key);var a;t&&n&&(s.onOpenChange(!1),null===(a=c.trigger)||void 0===a||a.focus(),e.preventDefault())})}))})})})});function Fpe(e){return e?"open":"closed"}function Spe(e){return"indeterminate"===e}function Mpe(e){return Spe(e)?"indeterminate":e?"checked":"unchecked"}function Ope(e){return t=>"mouse"===t.pointerType?e(t):void 0}Cpe.displayName=_pe;var Rpe=Tme,Hpe=Ime,Ppe=qme,Lpe=Gme,Tpe=epe,Ipe=tpe,Zpe=rpe,Bpe=spe,Vpe=upe,zpe=ppe,qpe=vpe,Upe=bpe,Wpe=ype,Ype=Dpe,Kpe=Cpe;const Gpe=["__scopeDropdownMenu","disabled"],$pe=["__scopeDropdownMenu"],Qpe=["__scopeDropdownMenu"],Xpe=["__scopeDropdownMenu"],Jpe=["__scopeDropdownMenu"],ehe=["__scopeDropdownMenu"],the=["__scopeDropdownMenu"],nhe=["__scopeDropdownMenu"],ahe=["__scopeDropdownMenu"],rhe=["__scopeDropdownMenu"],ihe=["__scopeDropdownMenu"],she=["__scopeDropdownMenu"],ohe=["__scopeDropdownMenu"],lhe=["__scopeDropdownMenu"];var che="DropdownMenu",dhe=Ue(Jo(che,[Cme]),2),uhe=dhe[0],mhe=(dhe[1],Cme()),phe=Ue(uhe(che),2),hhe=phe[0],fhe=phe[1],xhe=e=>{const t=e.__scopeDropdownMenu,n=e.children,a=e.dir,r=e.open,i=e.defaultOpen,s=e.onOpenChange,l=e.modal,c=void 0===l||l,d=mhe(t),u=o.useRef(null),m=Ue(sl({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:s,caller:che}),2),p=m[0],f=m[1];return(0,Pe.jsx)(hhe,{scope:t,triggerId:rl(),triggerRef:u,contentId:rl(
2),open:p,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),modal:c,children:(0,Pe.jsx)(Rpe,h(h({},d),{},{open:p,onOpenChange:f,dir:a,modal:c,children:n}))})};xhe.displayName=che;var ghe="DropdownMenuTrigger",vhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=e.disabled,r=void 0!==a&&a,i=Ie(e,Gpe),s=fhe(ghe,n),o=mhe(n);return(0,Pe.jsx)(Hpe,h(h({asChild:!0},o),{},{children:(0,Pe.jsx)(zo.button,h(h({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i),{},{ref:ds(t,s.triggerRef),onPointerDown:$o(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:$o(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})}))}))});vhe.displayName=ghe;var bhe=e=>{const t=e.__scopeDropdownMenu,n=Ie(e,$pe),a=mhe(t);return(0,Pe.jsx)(Ppe,h(h({},a),n))};bhe.displayName="DropdownMenuPortal";var yhe="DropdownMenuContent",jhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,Qpe),r=fhe(yhe,n),i=mhe(n),s=o.useRef(!1);return(0,Pe.jsx)(Lpe,h(h(h({id:r.contentId,"aria-labelledby":r.triggerId},i),a),{},{ref:t,onCloseAutoFocus:$o(e.onCloseAutoFocus,e=>{var t;s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:$o(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;r.modal&&!a||(s.current=!0)}),style:h(h({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});jhe.displayName=yhe;var whe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,Xpe),r=mhe(n);return(0,Pe.jsx)(Tpe,h(h(h({},r),a),{},{ref:t}))});whe.displayName="DropdownMenuGroup";var Nhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,Jpe),r=mhe(n);return(0,Pe.jsx)(Ipe,h(h(h({},r),a),{},{ref:t}))});Nhe.displayName="DropdownMenuLabel";var Ahe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,ehe),r=mhe(n);return(0,Pe.jsx)(Zpe,h(h(h({},r),a),{},{ref:t}))});Ahe.displayName="DropdownMenuItem";var khe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,the),r=mhe(n);return(0,Pe.jsx)(Bpe,h(h(h({},r),a),{},{ref:t}))});khe.displayName="DropdownMenuCheckboxItem";var Ehe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,nhe),r=mhe(n);return(0,Pe.jsx)(Vpe,h(h(h({},r),a),{},{ref:t}))});Ehe.displayName="DropdownMenuRadioGroup";var Dhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,ahe),r=mhe(n);return(0,Pe.jsx)(zpe,h(h(h({},r),a),{},{ref:t}))});Dhe.displayName="DropdownMenuRadioItem";var _he=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,rhe),r=mhe(n);return(0,Pe.jsx)(qpe,h(h(h({},r),a),{},{ref:t}))});_he.displayName="DropdownMenuItemIndicator";var Che=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,ihe),r=mhe(n);return(0,Pe.jsx)(Upe,h(h(h({},r),a),{},{ref:t}))});Che.displayName="DropdownMenuSeparator";var Fhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,she),r=mhe(n);return(0,Pe.jsx)(Wpe,h(h(h({},r),a),{},{ref:t}))});Fhe.displayName="DropdownMenuArrow";var She=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,ohe),r=mhe(n);return(0,Pe.jsx)(Ype,h(h(h({},r),a),{},{ref:t}))});She.displayName="DropdownMenuSubTrigger";var Mhe=o.forwardRef((e,t)=>{const n=e.__scopeDropdownMenu,a=Ie(e,lhe),r=mhe(n);return(0,Pe.jsx)(Kpe,h(h(h({},r),a),{},{ref:t,style:h(h({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});Mhe.displayName="DropdownMenuSubContent";var Ohe=xhe,Rhe=vhe,Hhe=bhe,Phe=jhe,Lhe=Nhe,The=Ahe,Ihe=khe,Zhe=Dhe,Bhe=_he,Vhe=Che,zhe=She,qhe=Mhe;const Uhe=Zd("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Whe=Zd("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Yhe=["className","inset","children"],Khe=["className"],Ghe=["className","sideOffset"],$he=["className","inset"],Qhe=["className","children","checked"],Xhe=["className","children"],Jhe
2=["className","inset"],efe=["className"],tfe=Ohe,nfe=Rhe,afe=o.forwardRef((e,t)=>{let n=e.className,a=e.inset,r=e.children,i=Ie(e,Yhe);return(0,Pe.jsxs)(zhe,h(h({ref:t,className:Ro("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",n)},i),{},{children:[r,(0,Pe.jsx)(Uhe,{className:"ml-auto"})]}))});afe.displayName=zhe.displayName;o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,Khe);return(0,Pe.jsx)(qhe,h({ref:t,className:Ro("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",n)},a))}).displayName=qhe.displayName;const rfe=o.forwardRef((e,t)=>{let n=e.className,a=e.sideOffset,r=void 0===a?4:a,i=Ie(e,Ghe);return(0,Pe.jsx)(Hhe,{children:(0,Pe.jsx)(Phe,h({ref:t,sideOffset:r,className:Ro("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",n)},i))})});rfe.displayName=Phe.displayName;const ife=o.forwardRef((e,t)=>{let n=e.className,a=e.inset,r=Ie(e,$he);return(0,Pe.jsx)(The,h({ref:t,className:Ro("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",a&&"pl-8",n)},r))});ife.displayName=The.displayName;o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=e.checked,i=Ie(e,Qhe);return(0,Pe.jsxs)(Ihe,h(h({ref:t,className:Ro("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r},i),{},{children:[(0,Pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Pe.jsx)(Bhe,{children:(0,Pe.jsx)(Nf,{className:"h-4 w-4"})})}),a]}))}).displayName=Ihe.displayName;o.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Ie(e,Xhe);return(0,Pe.jsxs)(Zhe,h(h({ref:t,className:Ro("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,Pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Pe.jsx)(Bhe,{children:(0,Pe.jsx)(Whe,{className:"h-2 w-2 fill-current"})})}),a]}))}).displayName=Zhe.displayName;const sfe=o.forwardRef((e,t)=>{let n=e.className,a=e.inset,r=Ie(e,Jhe);return(0,Pe.jsx)(Lhe,h({ref:t,className:Ro("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n)},r))});sfe.displayName=Lhe.displayName;const ofe=o.forwardRef((e,t)=>{let n=e.className,a=Ie(e,efe);return(0,Pe.jsx)(Vhe,h({ref:t,className:Ro("-mx-1 my-1 h-px bg-muted",n)},a))});ofe.displayName=Vhe.displayName;const lfe="#041C3A",cfe="#6B7280",dfe="#374151",ufe="#E5E7EB",mfe=["new","contacted","qualified","interview_scheduled","interviewed","rejected","archived"];function pfe(e,t){const n=t.biggest_challenge&&t.biggest_challenge.trim()?'"'.concat(t.biggest_challenge.trim(),'"'):"the hiring problems you mentioned";return e.replace(/{name}/g,t.name||"").replace(/{first_name}/g,(t.name||"").split(" ")[0]||"there").replace(/{company}/g,t.company||"your team").replace(/{title}/g,t.title||"").replace(/{biggest_challenge}/g,n)}const hfe=[{key:"welcome",label:"Thanks for signing up",subject:"Welcome to AROS \u2014 quick hello",body:"Hi {first_name},\n\nThanks for signing up for AROS early access \u2014 really appreciate you putting your name down.\n\nAROS is built around candidate-first transparency and outcome intelligence \u2014 not another generic ATS. I'd love to learn what hiring looks like at {company} today and show you what's live.\n\nAre you open to a 15-minute call this week?\n\n\u2014 [Your name]\nFounder, AROS"},{key:"feedback_call",label:"Request 15-minute feedback call",subject:"15 minutes to share what's broken in hiring at {company}?",body:"Hi {first_name},\n\nWould you be open to a 15-minute call this week? I'm building AROS specifically to fix recruiting workflow problems and I'd love to learn what's painful in your current process at {company}.\n\nNo pitch \u2014 just trying to understand the actual problems before I build more.\n\nWhat day next week works?\n\n\u2014 [Your name]\nFounder, AROS"},{key:"challenge_followup",label:"Ask about hiring challenges",subject:"Curious \u2014 biggest hiring headache at {company}?",body:"Hi {first_name},\n\nQuick one \u2014 you noted {biggest_challenge} when you signed up. Mind sharing a bit more?\n\n - Is this a recurring problem or something specific to a recent role?\n - What's the workaround you use today?\n - How much time/money does it cost you in an average month?\n\nThe more context I get from real hiring teams, the less likely AROS becomes another generic ATS clone.\n\n\u2014 [Your name]\nFounder, AROS"},{key:"no_response_followup",label:"Follow-up after no response",subject:"Following up \u2014 AROS early access",body:"Hi {first_name},\n\nFollowing up on my note from last week. No pressure if the timing is off \u2014 would just love a 15-minute call to learn about {company}'s hiring workflow when you have a moment.\n\nIf this isn't a fit, totally fine to say so \u2014 I won't keep nudging.\n\n\u2014 [Your name]\nFounder, AROS"}];function ffe(e){if(!e)return"\u2014";
2try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric"})}catch(t){return e}}function xfe(e){if(!e)return"";try{const t=new Date(e);if(isNaN(t.getTime()))return"";const n=e=>String(e).padStart(2,"0");return"".concat(t.getFullYear(),"-").concat(n(t.getMonth()+1),"-").concat(n(t.getDate()))}catch(t){return""}}function gfe(e){if(!e)return!1;try{return new Date(e).getTime()<=Date.now()}catch(t){return!1}}function vfe(){var e;const t=Ue((0,o.useState)([]),2),n=t[0],a=t[1],r=Ue((0,o.useState)({}),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!0),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1],f=Ue((0,o.useState)(null),2),x=f[0],g=f[1],v=Ue((0,o.useState)("all"),2),b=v[0],y=v[1],j=Ue((0,o.useState)("all"),2),w=j[0],N=j[1],A=Ue((0,o.useState)(0),2),k=A[0],E=A[1];(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t={};"all"!==b&&(t.status=b),"all"!==w&&(t.interest=w);const n=(await Qi.get("/early-access/admin/list",{params:t})).data;if(!e)return;a(n.items||[]),s(n.counts||{}),g(null)}catch($ge){var t,n;if(!e)return;g((null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||(null===$ge||void 0===$ge?void 0:$ge.message)||"Could not load signups.")}finally{e&&(d(!1),p(!1))}})(),()=>{e=!1}},[b,w,k]);const D=async(e,t)=>{try{await Qi.patch("/early-access/admin/".concat(e),t);const r=n.map(n=>n.id===e?h(h({},n),t):n);return a(r),!0}catch($ge){var r,i;return va.error((null===$ge||void 0===$ge||null===(r=$ge.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.detail)||"Could not update."),!1}},_=(e,t)=>{const n=function(e,t){const n=t?pfe(t.subject,e):"AROS \u2014 re: your early access signup (".concat(e.company||"",")"),a=t?pfe(t.body,e):"",r=new URLSearchParams;return r.set("subject",n),a&&r.set("body",a),"mailto:".concat(encodeURIComponent(e.email||""),"?").concat(r.toString().replace(/\+/g,"%20"))}(e,t);"undefined"!==typeof window&&(window.location.href=n),"new"===e.status?D(e.id,{status:"contacted",last_contacted_at:(new Date).toISOString()}):e.last_contacted_at||D(e.id,{last_contacted_at:(new Date).toISOString()})},C=(0,o.useMemo)(()=>{const e=n.length,t=n.filter(e=>e.next_follow_up_at&&gfe(e.next_follow_up_at)&&"rejected"!==e.status&&"archived"!==e.status).length;return{total:e,dueNow:t}},[n]);return c?(0,Pe.jsx)("div",{className:"p-8","data-testid":"admin-ea-loading",children:(0,Pe.jsx)("div",{className:"font-brand text-sm",style:{color:cfe},children:"Loading early-access signups\u2026"})}):(0,Pe.jsxs)("div",{className:"p-6 lg:p-8 max-w-7xl mx-auto","data-testid":"admin-early-access",children:[(0,Pe.jsxs)("div",{className:"flex items-baseline justify-between flex-wrap gap-3 mb-6",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:cfe},children:"Admin"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:lfe},children:"Early Access Triage"}),(0,Pe.jsxs)("p",{className:"text-sm font-brand mt-1.5",style:{color:dfe},children:[C.total," in view \xb7 ",C.dueNow>0?(0,Pe.jsxs)("span",{className:"font-semibold",style:{color:"#B91C1C"},children:[C.dueNow," follow-up",1===C.dueNow?"":"s"," due"]}):"no follow-ups due"," \xb7"," ",null!==(e=i.new)&&void 0!==e?e:0," new (uncontacted)"]})]}),(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>{p(!0),E(e=>e+1)},disabled:m,"data-testid":"admin-ea-refresh",style:{borderColor:lfe,color:lfe,borderRadius:10},children:[(0,Pe.jsx)(bM,{size:14,weight:"bold",className:m?"animate-spin mr-1.5":"mr-1.5"}),m?"Refreshing\u2026":"Refresh"]})]}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4","data-testid":"admin-ea-filters",children:[(0,Pe.jsxs)(Sf,{value:b,onValueChange:y,children:[(0,Pe.jsx)(Of,{className:"w-[200px]","data-testid":"ea-filter-status",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All statuses"}),mfe.map(e=>(0,Pe.jsx)(Lf,{value:e,children:e.replace(/_/g," ")},e))]})]}),(0,Pe.jsxs)(Sf,{value:w,onValueChange:N,children:[(0,Pe.jsx)(Of,{className:"w-[200px]","data-testid":"ea-filter-interest",children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsxs)(Pf,{children:[(0,Pe.jsx)(Lf,{value:"all",children:"All interests"}),(0,Pe.jsx)(Lf,{value:"early_access",children:"Early access"}),(0,Pe.jsx)(Lf,{value:"demo",children:"Demo"}),(0,Pe.jsx)(Lf,{value:"validation_program",children:"Validation program"})]})]})]}),x&&(0,Pe.jsx)("div",{className:"mb-4 p-3 rounded text-sm font-mono",style:{background:"#FEF2F2",color:"#991B1B",border:"1px solid #FECACA"},children:x}),(0,Pe.jsx)("div",{className:"bg-white",style:{border:"1px solid ".concat(ufe),borderRadius:12,overflow:"hidden"},children:(0,Pe.jsx)("div",{className:"overflow-x-auto",children:(0,Pe.jsxs)("table",{className:"w-full text-sm","data-testid":"admin-ea-table",children:[(0,Pe.jsx)("thead",{style:{background:"#F9FAFB",borderBottom:"1px solid ".concat(ufe)},children:(0,Pe.jsxs)("tr",{children:[(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Submitted"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Lead"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Company"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Interest"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Status"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Last contacted"}),(0,Pe.jsx)("th",{className:"text-left px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Next follow-up"}),(0,Pe.jsx)("th",{className:"text-right px-3 py-2 font-mono text-[11px] uppercase tracking-wider",style:{color:cfe},children:"Actions"})]})}),(0,Pe.jsxs)("tbody",{children:[0===n.length&&(0,Pe.jsx)("tr",{children:(0,Pe.jsx)("td",{colSpan:8,className:"px-3 py-8 text-center font-mono text-sm",style:{color:cfe},"data-testid":"admin-ea-empty",children:"No signups match the current filters."})}),n.map(e=>{const t=e.next_follow_up_at&&gfe(e.next_follow_up_at)&&"rejected"!==e.status&&"archived"!==e.status;return(0,Pe.jsxs)("tr",{className:"border-t",style:{borderColor:ufe},"data-testid":"ea-row-".concat(e.id),children:[(0,Pe.jsx)("td",{className:"px-3 py-3 font-mono text-xs whitespace-nowrap",style:{color:dfe},children:ffe(e.submitted_at)}),(0,Pe.jsxs)("td",{className:"px-3 py-3",children:[(0,Pe.jsx)("div",{className:"font-semibold",style:{color:lfe},children:e.name}),(0,Pe.jsx)("a",{href:"mailto:".concat(e.email),className:"font-mono text-[11px] hover:underline",style:{color:cfe},"data-testid":"ea-row-email-".concat(e.id),children:e.email}),e.title&&(0,Pe.jsx)("div",{className:"text-[11px]",style:{color:cfe},children:e.title})]}),(0,Pe.jsxs)("td",{className:"px-3 py-3",style:{color:lfe},children:[(0,Pe.jsx)("div",{className:"font-medium",children:e.company}),e.hires_per_year&&(0,Pe.jsxs)("div",{className:"text-[11px] font-mono",style:{color:cfe},children:[e.hires_per_year," hires/y"]})]}),(0,Pe.jsx)("td",{className:"px-3 py-3 font-mono text-xs whitespace-nowrap",style:{color:dfe},children:(e.interest||"early_access").replace(/_/g," ")}),(0,Pe.jsx)("td",{className:"px-3 py-3",children:(0,Pe.jsxs)(Sf,{value:e.status,onValueChange:t=>(async(e,t)=>{await D(e,{status:t})&&va.success("Status \u2192 ".concat(t.replace(/_/g," ")))})(e.id,t),children:[(0,Pe.jsx)(Of,{className:"w-[150px] h-8","data-testid":"ea-row-status-select-".concat(e.id),children:(0,Pe.jsx)(Mf,{})}),(0,Pe.jsx)(Pf,{children:mfe.map(e=>(0,Pe.jsx)(Lf,{value:e,children:e.replace(/_/g," ")},e))})]})}),(0,Pe.jsx)("td",{className:"px-3 py-3 whitespace-nowrap",children:(0,Pe.jsx)("input",{type:"date",defaultValue:xfe(e.last_contacted_at),onChange:t=>(async(e,t)=>{const n=t?new Date(t).toISOString():"";await D(e,{last_contacted_at:n})&&va.success(n?"Last contacted updated":"Cleared last contacted")})(e.id,t.target.value),className:"text-xs font-mono px-2 py-1 rounded border bg-white",style:{borderColor:ufe,color:dfe},"data-testid":"ea-row-last-contacted-".concat(e.id)})}),(0,Pe.jsxs)("td",{className:"px-3 py-3 whitespace-nowrap",children:[(0,Pe.jsx)("input",{type:"date",defaultValue:xfe(e.next_follow_up_at),onChange:t=>(async(e,t)=>{const n=t?new Date(t).toISOString():"";await D(e,{next_follow_up_at:n})&&va.success(n?"Next follow-up updated":"Cleared next follow-up")})(e.id,t.target.value),className:"text-xs font-mono px-2 py-1 rounded border bg-white ".concat(t?"font-bold":""),style:{borderColor:t?"#FECACA":ufe,color:t?"#B91C1C":dfe,background:t?"#FEF2F2":"white"},"data-testid":"ea-row-next-follow-up-".concat(e.id)}),t&&(0,Pe.jsx)("div",{className:"text-[10px] font-mono mt-0.5",style:{color:"#B91C1C"},children:"due"})]}),(0,Pe.jsx)("td",{className:"px-3 py-3",children:(0,Pe.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm",onClick:()=>_(e),"data-testid":"ea-row-mailto-".concat(e.id),title:"Open default email client",children:[(0,Pe.jsx)(Nx,{size:14,className:"mr-1"})," Email"]}),(0,Pe.jsxs)(tfe,{children:[(0,Pe.jsx)(nfe,{asChild:!0,children:(0,Pe.jsxs)(Lo,{variant:"outline",size:"sm","data-testid":"ea-row-template-trigger-".concat(e.id),children:["Quick reply ",(0,Pe.jsx)(IO,{size:12,className:"ml-1"})]})}),(0,Pe.jsxs)(rfe,{align:"end",children:[(0,Pe.jsx)(sfe,{className:"text-xs",children:"Open in your mail client"}),(0,Pe.jsx)(ofe,{}),hfe.map(t=>(0,Pe.jsx)(ife,{onClick:()=>_(e,t),"data-testid":"ea-row-template-".concat(e.id,"-").concat(t.key),children:t.label},t.key))]})]})]})})]},e.id)})]})]})})})]})}const bfe="#041C3A",yfe="#1E3A8A",jfe="#475569",wfe="#64748B",Nfe="#E2E8F0";function Afe(){const e=Ue((0,o.useState)("list"),2),t=e[0],n=e[1],a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)([]),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!0),2),u=d[0],m=d[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{if("list"===t){m(!0);try{const t=await Qi.get("/validation/sessions");e||c(t.data||[])}catch(zf){e||va.error("Couldn't load sessions.")}finally{e||m(!1)}}})(),()=>{e=!0}},[t]);const p=e=>{i(e),n("session")};return(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 py-8","data-testid":"validation-page",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between mb-7",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:yfe},children:"Recommendation Quality"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",style:{color:bfe},children:"Validation Sprint"}),(0,Pe.jsx)("p",{className:"text-sm mt-2 max-w-2xl",style:{color:jfe},children:"Blind-rank real r\xe9sum\xe9s against a real job. Reveal AROS's ranking. Measure agreement. Every session produces a markdown report you can save as a case study."})]}),"list"===t&&(0,Pe.jsxs)(Lo,{onClick:()=>n("new"),"data-testid":"validation-new-btn",className:"text-white",style:{background:bfe,borderRadius:12},children:[(0,Pe.jsx)(DM,{size:14,className:"mr-1.5"})," New session"]}),"list"!==t&&(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>{i(null),n("list")},"data-testid":"validation-back-btn",children:[(0,Pe.jsx)(nw,{size:14,className:"mr-1.5"})," Back to sessions"]})]}),"list"===t&&(0,Pe.jsx)(kfe,{sessions:l,loading:u,onOpen:p}),"new"===t&&(0,Pe.jsx)(Efe,{onCreated:e=>p(e)}),"session"===t&&r&&(0,Pe.jsx)(Dfe,{sessionId:r,onDone:()=>n("list")})]})}function kfe(e){let t=e.sessions,n=e.loading,a=e.onOpen;return n?(0,Pe.jsx)("div",{className:"text-sm",style:{color:wfe},children:"Loading\u2026"}):t.length?(0,Pe.jsx)("div",{className:"space-y-3","data-testid":"validation-sessions-list",children:t.map(e=>{var t;return(0,Pe.jsx)("button",{type:"button",onClick:()=>a(e.id),className:"w-full text-left rounded-xl border p-4 hover:border-[#1E3A8A] transition-colors",style:{borderColor:Nfe,background:"#FFFFFF"},"data-testid":"validation-session-row-".concat(e.id),children:(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-display font-semibold",style:{color:bfe},children:e.name}),(0,Pe.jsxs)("div",{className:"text-xs mt-0.5",style:{color:wfe},children:[e.job_title," \xb7 ",e.candidate_count," candidates \xb7 ",null===(t=e.created_at)||void 0===t?void 0:t.slice(0,16)]})]}),(0,Pe.jsx)("span",{className:"text-[11px] font-mono uppercase px-2 py-0.5 rounded-md border",style:{background:e.revealed?"#DCFCE7":"#FEF3C7",color:e.revealed?"#15803D":"#92400E",borderColor:e.revealed?"#86EFAC":"#FDE68A"},children:(e.status||"").replace("_"," ").toUpperCase()})]})},e.id)})}):(0,Pe.jsxs)("div",{className:"rounded-2xl border p-10 text-center",style:{borderColor:Nfe},children:[(0,Pe.jsx)(YH,{size:28,weight:"duotone",style:{color:wfe},className:"mx-auto"}),(0,Pe.jsx)("div",{className:"mt-3 font-display font-semibold text-lg",style:{color:bfe},children:"No validation sessions yet"}),(0,Pe.jsx)("div",{className:"mt-1 text-sm",style:{color:jfe},children:"Create the first one to see how AROS's rankings compare to your recruiters'."})]})}function Efe(e){let t=e.onCreated;const n=Ue((0,o.useState)([]),2),a=n[0],r=n[1],i=Ue((0,o.useState)(""),2),s=i[0],l=i[1],c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],h=m[1],f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1];(0,o.useEffect)(()=>{Qi.get("/jobs/mine").then(e=>r(e.data||[])).catch(()=>Qi.get("/jobs?limit=50").then(e=>r(e.data||[])).catch(()=>r([])))},[]);return(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6",style:{borderColor:Nfe},"data-testid":"validation-new-form",children:[(0,Pe.jsxs)("div",{className:"grid md:grid-cols-2 gap-5",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs",children:"Session name"}),(0,Pe.jsx)(Io,{value:s,onChange:e=>l(e.target.value),placeholder:"Q2 Sales Manager bench-test","data-testid":"validation-new-name"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs",children:"Job to rank against"}),(0,Pe.jsxs)(Sf,{value:d,onValueChange:u,children:[(0,Pe.jsx)(Of,{"data-testid":"validation-new-job",children:(0,Pe.jsx)(Mf,{placeholder:"Pick a job from your org"})}),(0,Pe.jsx)(Pf,{children:a.map(e=>(0,Pe.jsx)(Lf,{value:e.id,children:e.title},e.id))})]})]})]}),(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsx)(Go,{className:"text-xs",children:"Candidates (paste blocks separated by a blank line)"}),(0,Pe.jsx)("p",{className:"text-xs mt-1 mb-2",style:{color:wfe},children:"Format: line 1 = candidate name. Lines 2+ = r\xe9sum\xe9 text. Separate candidates with one blank line. 3\u201350 candidates per session."}),(0,Pe.jsx)(Bo,{value:p,onChange:e=>h(e.target.value),rows:14,className:"font-mono text-xs",placeholder:"Jane Smith\n8 years B2B SaaS sales. Closed $4M in 2025. Built and managed a 6-person AE team. Strong C
2RM hygiene...\n\nMark Lopez\n5 years enterprise sales experience. Top performer 3 years running. Specialized in regulated verticals...","data-testid":"validation-new-candidates"})]}),(0,Pe.jsxs)("div",{className:"mt-5 flex items-center justify-between",children:[(0,Pe.jsx)("span",{className:"text-xs",style:{color:wfe},children:"AROS will score each candidate immediately. Scores stay hidden until you reveal."}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(!s.trim()||!d)return void va.error("Pick a job and name the session.");const e=(()=>{const e=p.split(/\n\s*\n/).map(e=>e.trim()).filter(Boolean);return e.map(e=>{const t=e.split("\n");return{candidate_name:(t[0]||"").trim().slice(0,120),resume_text:t.slice(1).join("\n").trim()}})})();if(e.length<3)return void va.error("Provide at least 3 candidates (separated by blank lines).");const n=e.find(e=>!e.candidate_name||e.resume_text.length<20);if(n)va.error("Each candidate needs a name on line 1 and a resume of at least 20 characters.");else{g(!0);try{const n=await Qi.post("/validation/sessions",{name:s,job_id:d,candidates:e});va.success("Scored ".concat(n.data.candidate_count," candidates. Ready to rank.")),t(n.data.id)}catch(zf){var a,r;va.error((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Couldn't create session.")}finally{g(!1)}}},disabled:x,className:"text-white",style:{background:bfe,borderRadius:12},"data-testid":"validation-new-submit",children:x?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5 animate-spin"})," Scoring\u2026"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(BC,{size:14,className:"mr-1.5"})," Score & start ranking"]})})]})]})}function Dfe(e){var t,n,a,r,i,s,l,c,d,u,m,p,f,x,g;let v=e.sessionId,b=e.onDone;const y=Ue((0,o.useState)(null),2),j=y[0],w=y[1],N=Ue((0,o.useState)(3),2),A=N[0],k=N[1],E=Ue((0,o.useState)(!1),2),D=E[0],_=E[1],C=Ue((0,o.useState)({}),2),F=C[0],S=C[1],M=Ue((0,o.useState)(!1),2),O=M[0],R=M[1],H=Ue((0,o.useState)(3),2),P=H[0],L=H[1],T=Ue((0,o.useState)(null),2),I=T[0],Z=T[1],B=Ue((0,o.useState)(null),2),V=B[0],z=B[1],q=Ue((0,o.useState)(""),2),U=q[0],W=q[1],Y=async()=>{var e;const t=await Qi.get("/validation/sessions/".concat(v));if(w(t.data),t.data.confidence_before&&(k(t.data.confidence_before),_(!0)),null!==(e=t.data.human_rankings)&&void 0!==e&&e.length){const e={};t.data.human_rankings.forEach(t=>{e[t.candidate_id]=t.rank}),S(e)}};if((0,o.useEffect)(()=>{let e=!1;return(async()=>{try{var t;const n=await Qi.get("/validation/sessions/".concat(v));if(e)return;if(w(n.data),n.data.confidence_before&&(k(n.data.confidence_before),_(!0)),null!==(t=n.data.human_rankings)&&void 0!==t&&t.length){const e={};n.data.human_rankings.forEach(t=>{e[t.candidate_id]=t.rank}),S(e)}}catch(zf){}})(),()=>{e=!0}},[v]),!j)return(0,Pe.jsx)("div",{className:"text-sm",style:{color:wfe},children:"Loading\u2026"});const K=async()=>{try{await Qi.post("/validation/sessions/".concat(v,"/confidence-before"),{confidence:A}),_(!0),va.success("Confidence recorded.")}catch(zf){va.error("Couldn't save confidence.")}},G=async()=>{const e=j.candidates_blind||[],t=e.map(e=>({candidate_id:e.candidate_id,rank:Number(F[e.candidate_id]||0)})),n=new Set(t.map(e=>e.rank));if(t.some(e=>!e.rank)||n.size!==e.length)va.error("Assign a unique rank (1 to N) to every candidate.");else try{await Qi.post("/validation/sessions/".concat(v,"/rank"),{rankings:t}),va.success("Rankings locked. Reveal when ready."),await Y()}catch(zf){var a,r;va.error((null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Couldn't submit rankings.")}},$=async()=>{R(!0);try{await Qi.post("/validation/sessions/".concat(v,"/reveal"),{}),await Y()}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Couldn't reveal.")}finally{R(!1)}};if(!j.revealed){const e=j.candidates_blind||[];return(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"validation-session-rank",children:[(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6",style:{borderColor:Nfe},children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-lg",style:{color:bfe},children:j.name}),(0,Pe.jsxs)("div",{className:"text-xs mt-1",style:{color:wfe},children:[j.job_title," \xb7 ",e.length," candidates"]})]}),!D&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6",style:{borderColor:Nfe},"data-testid":"validation-confidence-before",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Step 1 \u2014 Before you rank"}),(0,Pe.jsx)("div",{className:"font-display font-semibold mt-1",style:{color:bfe},children:"How confident are you in your ranking ability for this role?"}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[[1,2,3,4,5].map(e=>(0,Pe.jsx)("button",{type:"button",onClick:()=>k(e),className:"w-10 h-10 rounded-md text-sm font-mono font-bold transition-colors",style:{background:A===e?bfe:"#FFFFFF",color:A===e?"#FFFFFF":bfe,border:"1px solid ".concat(A===e?bfe:Nfe)},"data-testid":"validation-confidence-before-".concat(e),children:e},e)),(0,Pe.jsx)("span",{className:"text-xs ml-2",style:{color:wfe},children:"1 = guessing \xb7 5 = confident"})]}),(0,Pe.jsx)(Lo,{onClick:K,className:"mt-4 text-white",style:{background:bfe,borderRadius:12},"data-testid":"validation-confidence-before-save",children:"Save & start ranking"})]}),D&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6",style:{borderColor:Nfe},"data-testid":"validation-rank-grid",children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Step 2 \u2014 Rank blind"}),(0,Pe.jsxs)("div",{className:"font-display font-semibold mt-1",style:{color:bfe},children:["Assign each candidate a rank from 1 (best fit) to ",e.length,"."]})]}),(0,Pe.jsxs)(Lo,{onClick:G,className:"text-white",style:{background:bfe,borderRadius:12},"data-testid":"validation-submit-ranks",children:[(0,Pe.jsx)(YC,{size:14,className:"mr-1.5"})," Lock my rankings"]})]}),(0,Pe.jsx)("div",{className:"mt-5 space-y-2",children:e.map(t=>(0,Pe.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border p-3",style:{borderColor:Nfe},"data-testid":"validation-rank-row-".concat(t.candidate_id),children:[(0,Pe.jsx)(Io,{type:"number",min:"1",max:e.length,value:F[t.candidate_id]||"",onChange:e=>S(n=>h(h({},n),{},{[t.candidate_id]:e.target.value})),className:"w-20 font-mono text-center",placeholder:"\u2014","data-testid":"validation-rank-input-".concat(t.candidate_id)}),(0,Pe.jsx)("span",{style:{color:bfe,fontWeight:600},children:t.candidate_name})]},t.candidate_id))})]}),"ready_to_reveal"===j.status&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 bg-amber-50",style:{borderColor:"#FCD34D"},"data-testid":"validation-reveal-prompt",children:[(0,Pe.jsx)("div",{className:"font-display font-semibold",style:{color:bfe},children:"Rankings locked. Ready to see how AROS ranked?"}),(0,Pe.jsx)(Lo,{onClick:$,disabled:O,className:"mt-4 text-white",style:{background:bfe,borderRadius:12},"data-testid":"validation-reveal-btn",children:O?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5 animate-spin"})," Revealing\u2026"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(ly,{size:14,className:"mr-1.5"})," Reveal AROS ranking"]})})]})]})}const Q=j.results||{}
2,X=j.candidates||[],J={};(j.human_rankings||[]).forEach(e=>{J[e.candidate_id]=e.rank});const ee=X.map(e=>h(h({},e),{},{human_rank:J[e.candidate_id],delta:(J[e.candidate_id]||0)-(e.aros_rank||0)})).sort((e,t)=>(e.aros_rank||0)-(t.aros_rank||0)),te=!!j.after_reveal;return(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"validation-session-results",children:[(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 bg-white",style:{borderColor:Nfe},"data-testid":"validation-metrics",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Agreement metrics"}),(0,Pe.jsxs)("div",{className:"grid md:grid-cols-4 gap-4 mt-4",children:[(0,Pe.jsx)(_fe,{label:"Spearman \u03c1",value:null!==(t=Q.spearman_correlation)&&void 0!==t?t:"\u2014",hint:"-1 to 1 \xb7 closer to 1 = stronger agreement",testid:"validation-metric-spearman"}),(0,Pe.jsx)(_fe,{label:"Top-3 overlap",value:"".concat(null!==(n=null===(a=Q.top_3_overlap)||void 0===a?void 0:a.overlap_count)&&void 0!==n?n:0,"/").concat(null!==(r=null===(i=Q.top_3_overlap)||void 0===i?void 0:i.n)&&void 0!==r?r:0),hint:"".concat(Math.round(100*(null!==(s=null===(l=Q.top_3_overlap)||void 0===l?void 0:l.agreement_rate)&&void 0!==s?s:0)),"% agreement")}),(0,Pe.jsx)(_fe,{label:"Top-5 overlap",value:"".concat(null!==(c=null===(d=Q.top_5_overlap)||void 0===d?void 0:d.overlap_count)&&void 0!==c?c:0,"/").concat(null!==(u=null===(m=Q.top_5_overlap)||void 0===m?void 0:m.n)&&void 0!==u?u:0),hint:"".concat(Math.round(100*(null!==(p=null===(f=Q.top_5_overlap)||void 0===f?void 0:f.agreement_rate)&&void 0!==p?p:0)),"% agreement")}),(0,Pe.jsx)(_fe,{label:"Perfect matches",value:null!==(x=Q.perfect_matches)&&void 0!==x?x:0,hint:"Identical ranks"})]}),j.after_reveal&&(0,Pe.jsxs)("div",{className:"mt-5 pt-5 border-t",style:{borderColor:Nfe},"data-testid":"validation-decision-impact-panel",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Decision impact"}),(0,Pe.jsxs)("div",{className:"grid md:grid-cols-3 gap-4 mt-3",children:[(0,Pe.jsx)(_fe,{label:"Different decision w/o AROS",value:j.after_reveal.different_decision_without_aros?"Yes":"No",hint:"Primary metric \u2014 outcome change",testid:"validation-metric-different-decision"}),(0,Pe.jsx)(_fe,{label:"Different ranking w/o AROS",value:j.after_reveal.would_change_ranking?"Yes":"No",hint:"Secondary metric \u2014 ordering change",testid:"validation-metric-different-ranking"}),(()=>{const e=j.confidence_before,t=j.after_reveal.post_confidence,n="number"===typeof e&&"number"===typeof t?t-e:null;return(0,Pe.jsx)(_fe,{label:"Confidence delta",value:null===n?"\u2014":n>0?"+".concat(n):"".concat(n),hint:"".concat(null!==e&&void 0!==e?e:"\u2014","/5 before \u2192 ").concat(null!==t&&void 0!==t?t:"\u2014","/5 after"),testid:"validation-metric-confidence-delta"})})()]})]}),(0,Pe.jsxs)(Lo,{onClick:async()=>{try{const e=await Qi.get("/validation/sessions/".concat(v,"/report.md")),t=new Blob([e.data.markdown||""],{type:"text/markdown"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download="aros-validation-".concat(v.slice(0,6),".md"),n.click()}catch(zf){va.error("Couldn't generate report.")}},variant:"outline",size:"sm",className:"mt-5","data-testid":"validation-download-report",children:[(0,Pe.jsx)(uie,{size:14,className:"mr-1.5"})," Download markdown report"]})]}),(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 bg-white",style:{borderColor:Nfe},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Side-by-side"}),(0,Pe.jsxs)("div",{className:"mt-3 grid grid-cols-12 px-3 py-2 border-b text-[11px] uppercase tracking-[0.18em] font-mono font-semibold",style:{borderColor:Nfe,color:wfe},children:[(0,Pe.jsx)("div",{className:"col-span-1",children:"AROS"}),(0,Pe.jsx)("div",{className:"col-span-1",children:"You"}),(0,Pe.jsx)("div",{className:"col-span-6",children:"Candidate"}),(0,Pe.jsx)("div",{className:"col-span-2",children:"Job Fit"}),(0,Pe.jsx)("div",{className:"col-span-2",children:"Recommendation"})]}),ee.map(e=>(0,Pe.jsxs)("div",{className:"grid grid-cols-12 px-3 py-3 border-b items-center text-sm",style:{borderColor:Nfe},"data-testid":"validation-row-".concat(e.candidate_id),children:[(0,Pe.jsxs)("div",{className:"col-span-1 font-mono font-bold",style:{color:bfe},children:["#",e.aros_rank]}),(0,Pe.jsxs)("div",{className:"col-span-1 font-mono",style:{color:0===e.delta?"#15803D":Math.abs(e.delta)>=3?"#B91C1C":jfe},children:["#",e.human_rank,0!==e.delta&&(0,Pe.jsxs)("span",{className:"text-xs ml-1",children:["(",e.delta>0?"+":"",e.delta,")"]})]}),(0,Pe.jsx)("div",{className:"col-span-6",style:{color:bfe},children:e.candidate_name}),(0,Pe.jsx)("div",{className:"col-span-2 font-mono font-bold",style:{color:bfe},children:e.job_fit_score}),(0,Pe.jsx)("div",{className:"col-span-2 text-xs font-mono uppercase",style:{color:jfe},children:e.recommendation})]},e.candidate_id))]}),(null===(g=Q.disagreement_stories)||void 0===g?void 0:g.length)>0&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6",style:{borderColor:Nfe,background:"#FEF9F0"},"data-testid":"validation-stories",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:"#92400E"},children:"Notable disagreements"}),(0,Pe.jsx)("div",{className:"font-display font-semibold mt-1",style:{color:bfe},children:"These are the stories worth capturing"}),(0,Pe.jsx)("div",{className:"mt-4 space-y-3",children:Q.disagreement_stories.map(e=>{var t;return(0,Pe.jsxs)("div",{className:"rounded-lg border bg-white p-4",style:{borderColor:Nfe},"data-testid":"validation-story-".concat(e.candidate_id),children:[(0,Pe.jsx)("div",{className:"font-display font-semibold text-base",style:{color:bfe},children:e.candidate_name}),(0,Pe.jsxs)("div",{className:"text-xs mt-1",style:{color:jfe},children:["aros_higher"===e.direction?(0,Pe.jsx)("strong",{children:"AROS ranked higher"}):(0,Pe.jsx)("strong",{children:"You ranked higher"})," by ",Math.abs(e.rank_delta)," positions \xb7 AROS #",e.aros_rank," vs You #",e.human_rank]}),(0,Pe.jsx)("div",{className:"text-sm mt-2",style:{color:jfe},children:e.aros_summary}),(null===(t=e.aros_strengths)||void 0===t?void 0:t.length)>0&&(0,Pe.jsx)("ul",{className:"mt-2 space-y-1",children:e.aros_strengths.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-1.5 text-xs",style:{color:jfe},children:[(0,Pe.jsx)(YC,{size:12,weight:"bold",style:{color:yfe,marginTop:3},className:"shrink-0"}),e]},t))})]},e.candidate_id)})})]}),!te&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 bg-white",style:{borderColor:Nfe},"data-testid":"validation-after-form",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:yfe},children:"Final step \u2014 your honest reaction"}),(0,Pe.jsxs)("div",{className:"mt-5",children:[(0,Pe.jsxs)(Go,{className:"text-sm font-medium",style:{color:bfe},children:["Would you have made a different ",(0,Pe.jsx)("em",{children:"hiring decision"})," without AROS?"]}),(0,Pe.jsx)("div",{className:"text-xs mt-0.5",style:{color:wfe},children:"Primary metric \u2014 does AROS change the outcome, or only confirm it?"}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Lo,{variant:!1===I?"default":"outline",onClick:()=>Z(!1),"data-testid":"validation-different-decision-no",children:"No"}),(0,Pe.jsx)(Lo,{variant:!0===I?"default":"outline",onClick:()=>Z(!0),"data-testid":"validation-different-decision-yes",children:"Yes"})]})]}),(0,Pe.jsxs)("div",{className:"mt-6",children:[(0,Pe.jsxs)(Go,{className:"text-sm font-medium",style:{color:bfe},children:["Would you have changed your candidate ",(0,Pe.jsx)("em",{children:"ranking"})," after seeing AROS?"]}),(0,Pe.jsx)("div",{className:"text-xs mt-0.5",style:{color:wfe},children:"Secondary metric \u2014 does AROS change the ordering, even when the decision is the same?"}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Lo,{variant:!1===V?"default":"outline",onClick:()=>z(!1),"data-testid":"validation-would-change-no",children:"No"}),(0,Pe.jsx)(Lo,{variant:!0===V?"default":"outline",onClick:()=>z(!0),"data-testid":"validation-would-change-yes",children:"Yes"})]})]}),(0,Pe.jsxs)("div",{className:"mt-6",children:[(0,Pe.jsx)(Go,{className:"text-sm font-medium",style:{color:bfe},children:"How confident are you in your final decision now? (1\u20135)"}),(0,Pe.jsxs)("div",{className:"text-xs mt-0.5",style:{color:wfe},children:["Confidence delta vs your pre-reveal answer (",j.confidence_before||"\u2014","/5
2) shows how much AROS moved your conviction."]}),(0,Pe.jsx)("div",{className:"mt-2 flex items-center gap-2",children:[1,2,3,4,5].map(e=>(0,Pe.jsx)("button",{type:"button",onClick:()=>L(e),className:"w-10 h-10 rounded-md text-sm font-mono font-bold transition-colors",style:{background:P===e?bfe:"#FFFFFF",color:P===e?"#FFFFFF":bfe,border:"1px solid ".concat(P===e?bfe:Nfe)},"data-testid":"validation-confidence-after-".concat(e),children:e},e))})]}),(!0===I||!0===V)&&(0,Pe.jsxs)("div",{className:"mt-6","data-testid":"validation-impact-notes-section",children:[(0,Pe.jsx)(Go,{className:"text-sm font-medium",style:{color:bfe},children:"Which candidate(s) were affected, and why?"}),(0,Pe.jsx)("div",{className:"text-xs mt-0.5",style:{color:wfe},children:"These specific examples become your case studies. Example: \u201cCandidate #14 was originally ranked 9th. After reviewing AROS reasoning, I moved them into my top 3 because of their cross-vertical sales background.\u201d"}),(0,Pe.jsx)(Bo,{value:U,onChange:e=>W(e.target.value),rows:4,className:"mt-2",placeholder:"Which candidates? What did AROS surface that changed your view?","data-testid":"validation-impact-notes"})]}),(0,Pe.jsxs)(Lo,{onClick:async()=>{if(null!==I&&null!==V)try{await Qi.post("/validation/sessions/".concat(v,"/after-reveal"),{different_decision_without_aros:I,would_change_ranking:V,post_confidence:P,decision_impact_notes:U}),va.success("Session marked complete."),b()}catch(zf){va.error("Couldn't save final feedback.")}else va.error("Please answer both Decision Impact and Ranking Impact questions.")},className:"mt-6 text-white",style:{background:bfe,borderRadius:12},"data-testid":"validation-after-submit",children:[(0,Pe.jsx)(YC,{size:14,className:"mr-1.5"})," Save & close session"]})]}),te&&(0,Pe.jsxs)("div",{className:"rounded-2xl border p-6 bg-green-50",style:{borderColor:"#86EFAC"},"data-testid":"validation-complete",children:[(0,Pe.jsx)(YC,{size:20,weight:"duotone",style:{color:"#15803D"}}),(0,Pe.jsx)("div",{className:"font-display font-semibold mt-1",style:{color:bfe},children:"Session complete. Report ready to download."})]})]})}function _fe(e){let t=e.label,n=e.value,a=e.hint,r=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-lg border p-4",style:{borderColor:Nfe},"data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.18em] font-mono font-semibold",style:{color:wfe},children:t}),(0,Pe.jsx)("div",{className:"font-display font-bold text-3xl mt-1.5",style:{color:bfe},children:n}),(0,Pe.jsx)("div",{className:"text-[10px] mt-1",style:{color:wfe},children:a})]})}function Cfe(){var e,t,n;const a=Ue((0,o.useState)(""),2),r=a[0],i=a[1],s=Ue((0,o.useState)(""),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(null),2),h=p[0],f=p[1],x=Ue((0,o.useState)(null),2),g=x[0],v=x[1],b=Ue((0,o.useState)(null),2),y=b[0],j=b[1],w=Ue((0,o.useState)(!1),2),N=w[0],A=w[1],k=r.trim()&&l.trim();return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-3xl","data-testid":"admin-legacy-migration",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"ADMIN \xb7 ONE-OFF"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-2 tracking-tight",children:"Legacy candidate migration"}),(0,Pe.jsx)("p",{className:"text-muted-foreground mt-2 max-w-xl",children:"AROS retired candidate accounts in Feb 2026. This tool converts a legacy candidate account into a hiring-team account (employer role + new org) so the user can log in again. Idempotent \u2014 safe to re-run."}),(0,Pe.jsxs)("div",{className:"mt-4 border border-amber-200 bg-amber-50/60 rounded-md p-4 text-sm text-amber-900 flex items-start gap-3",children:[(0,Pe.jsx)(AN,{size:18,weight:"duotone",className:"mt-[2px] shrink-0"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"font-semibold",children:"Feature-flagged in production."}),(0,Pe.jsxs)("div",{className:"mt-1",children:["This endpoint returns ",(0,Pe.jsx)("code",{className:"text-[12px]",children:"409 legacy_migration_disabled"})," unless",(0,Pe.jsx)("code",{className:"text-[12px]",children:" LEGACY_MIGRATION_ADMIN_ENABLED=true"})," in the backend env. Recommended: flip on, migrate, flip off. Every call is audited regardless."]})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 border border-border rounded-md p-6 space-y-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"lm-email",className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:"Legacy candidate email"}),(0,Pe.jsx)(Io,{id:"lm-email",type:"email",value:r,onChange:e=>i(e.target.value),placeholder:"[email protected]",className:"mt-1.5","data-testid":"lm-email-input"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"lm-org",className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:"New organization name"}
2),(0,Pe.jsx)(Io,{id:"lm-org",value:l,onChange:e=>c(e.target.value),placeholder:"Everklear Pool Supply",className:"mt-1.5","data-testid":"lm-org-input"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5",children:"Skipped if the user is already linked to an org."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"lm-pw",className:"text-xs uppercase tracking-[0.15em] text-muted-foreground",children:"Temporary password (optional)"}),(0,Pe.jsx)(Io,{id:"lm-pw",type:"text",value:u,onChange:e=>m(e.target.value),placeholder:"Leave blank to keep current password",className:"mt-1.5 font-mono text-sm","data-testid":"lm-password-input"}),(0,Pe.jsxs)("p",{className:"text-xs text-muted-foreground mt-1.5",children:["Min 8 chars. Providing this forces a fresh ",(0,Pe.jsx)("code",{className:"text-[11px]",children:"password_hash"}),". Share out-of-band."]})]}),(0,Pe.jsxs)("div",{className:"flex gap-2 flex-wrap pt-2",children:[(0,Pe.jsxs)(Lo,{onClick:async()=>{f(null),v(null),j(null),A(!0);try{const e=await Qi.post("/legacy-migration/candidate-to-employer",{email:r.trim(),organization:l.trim(),reset_password:u.trim()||void 0,confirm:!1});f(e.data)}catch(zf){j(Ffe(zf))}finally{A(!1)}},disabled:!k||N,variant:"outline",className:"rounded-md","data-testid":"lm-dry-run-btn",children:[(0,Pe.jsx)(bM,{size:14,className:"mr-1.5",weight:"bold"}),N&&!h?"Loading\u2026":"Preview plan (dry run)"]}),h&&"dry_run"===h.status&&(0,Pe.jsxs)(Lo,{onClick:async()=>{v(null),j(null),A(!0);try{const e=await Qi.post("/legacy-migration/candidate-to-employer",{email:r.trim(),organization:l.trim(),reset_password:u.trim()||void 0,confirm:!0});v(e.data)}catch(zf){j(Ffe(zf))}finally{A(!1)}},disabled:N,className:"bg-[#0F172A] hover:bg-[#0F4FA8] text-white rounded-md","data-testid":"lm-confirm-btn",children:["Execute migration ",(0,Pe.jsx)(eg,{size:14,className:"ml-1.5",weight:"bold"})]})]})]}),y&&(0,Pe.jsxs)("div",{className:"mt-4 border border-red-200 bg-red-50 rounded-md p-4 text-sm text-red-900","data-testid":"lm-error",children:[(0,Pe.jsx)("div",{className:"font-semibold",children:"Migration call failed"}),(0,Pe.jsx)("div",{className:"mt-1 font-mono text-[12px] whitespace-pre-wrap break-all",children:y})]}),h&&!g&&(0,Pe.jsxs)("div",{className:"mt-4 border border-border rounded-md p-4","data-testid":"lm-plan",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-muted-foreground font-mono mb-2",children:"noop"===h.status?"Already migrated":"Plan \xb7 dry run"}),"noop"===h.status?(0,Pe.jsx)("div",{className:"text-sm text-foreground/90",children:h.message}):(0,Pe.jsx)("ul",{className:"text-sm text-foreground/90 space-y-1.5 list-disc pl-5",children:(h.plan||[]).map((e,t)=>(0,Pe.jsx)("li",{children:e},t))}),(0,Pe.jsxs)("details",{className:"mt-3",children:[(0,Pe.jsx)("summary",{className:"text-xs text-muted-foreground cursor-pointer",children:"Current state (raw)"}),(0,Pe.jsx)("pre",{className:"mt-2 text-[11px] font-mono bg-secondary/50 p-2 rounded overflow-x-auto",children:JSON.stringify(h.current_state,null,2)})]})]}),g&&(0,Pe.jsxs)("div",{className:"mt-4 border border-emerald-200 bg-emerald-50/60 rounded-md p-4","data-testid":"lm-result",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-emerald-900",children:[(0,Pe.jsx)(Yf,{size:18,weight:"duotone"}),(0,Pe.jsx)("span",{className:"font-semibold",children:"Migration complete"})]}),(0,Pe.jsxs)("div",{className:"mt-3 text-sm text-foreground/90 space-y-1",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Role now:"})," ",(0,Pe.jsx)("code",{className:"text-[12px]",children:null===(e=g.final_state)||void 0===e?void 0:e.role})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Organization id:"})," ",(0,Pe.jsx)("code",{className:"text-[12px]",children:(null===(t=g.final_state)||void 0===t?void 0:t.organization_id)||"\u2014"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("span",{className:"text-muted-foreground",children:"Active:"})," ",String(null===(n=g.final_state)||void 0===n?void 0:n.is_active)]}),g.temporary_password&&(0,Pe.jsxs)("div",{className:"mt-2 border border-emerald-300 bg-white rounded p-2",children:[(0,Pe.jsx)("div",{className:"text-xs uppercase tracking-[0.15em] text-emerald-900 font-mono",children:"Temporary password (share out-of-band)"}),(0,Pe.jsx)("div",{className:"mt-1 font-mono text-sm select-all","data-testid":"lm-temp-password",children:g.temporary_password})]})]}),(0,Pe.jsxs)("details",{className:"mt-3",children:[(0,Pe.jsx)("summary",{className:"text-xs text-muted-foreground cursor-pointer",children:"Write result (raw)"}),(0,Pe.jsx)("pre",{className:"mt-2 text-[11px] font-mono bg-white p-2 rounded overflow-x-auto border border-emerald-200",children:JSON.stringify(g.write_result,null,2)})]})]})]})}function Ffe(e){var t,n;const a=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;return"string"===typeof a?"legacy_migration_disabled"===a?"Endpoint is disabled. Set LEGACY_MIGRATION_ADMIN_ENABLED=true in the backend env and redeploy (or use Emergent's env-var UI), then retry.":"admin_only"===a?"Admin role required.":"user_not_found"===a?"No user with that email exists.":a:a&&"object"===typeof a?JSON.stringify(a):(null===e||void 0===e?void 0:e.message)||"Unknown error"}const Sfe="#041C3A",Mfe="#374151",Ofe=[{value:"owner",title:"I own a business and hire occasionally",subtitle:"A few hires a year. You're the decision-maker. AROS handles the busy work.",icon:nv,routeAfter:"/app/
2owner"},{value:"recruiter",title:"I recruit regularly or manage candidates",subtitle:"Multiple roles open. You spend time in the pipeline daily.",icon:Hg,routeAfter:"/app/employer"},{value:"team_pending",title:"I manage a hiring team",subtitle:"Multiple recruiters and hiring managers. Team features coming soon \u2014 we'll get you started in recruiter view.",icon:qC,routeAfter:"/app/employer"}];function Rfe(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!1),2),r=a[0],i=a[1],s=zt(),l=es().refreshUser;return(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-center px-4",style:{background:"#F9FAFB"},"data-testid":"hiring-mode-onboarding",children:(0,Pe.jsxs)("div",{className:"w-full max-w-2xl",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-center",style:{color:"#6B7280"},children:"One quick question"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl md:text-4xl tracking-[-0.022em] mt-2 text-center",style:{color:Sfe},children:"How do you hire today?"}),(0,Pe.jsx)("p",{className:"text-sm text-center mt-3",style:{color:Mfe},children:"AROS shapes the experience around how you work. Pick what fits \u2014 you can change this later."}),(0,Pe.jsx)("div",{className:"mt-8 space-y-3",children:Ofe.map(e=>{const a=e.icon,r=(null===t||void 0===t?void 0:t.value)===e.value;return(0,Pe.jsx)("button",{type:"button",onClick:()=>n(e),"data-testid":"onboarding-option-".concat(e.value),className:"w-full text-left rounded-xl p-5 transition-all",style:{background:r?"#EFF6FF":"white",border:"2px solid ".concat(r?"#1E40AF":"#E5E7EB")},children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(a,{size:24,weight:"duotone",style:{color:Sfe}}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-base",style:{color:Sfe},children:e.title}),(0,Pe.jsx)("div",{className:"text-sm mt-1",style:{color:Mfe}
2,children:e.subtitle})]})]})},e.value)})}),(0,Pe.jsx)("div",{className:"mt-8 flex justify-end",children:(0,Pe.jsxs)(Lo,{onClick:async()=>{if(t){i(!0);try{await Qi.patch("/owner/hiring-mode",{hiring_mode:t.value}),l&&await l(),"owner"===t.value?s(t.routeAfter,{replace:!0}):s("/onboarding/company",{replace:!0})}catch($ge){var e,n;va.error((null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.detail)||"Could not save your selection."),i(!1)}}},disabled:!t||r,"data-testid":"onboarding-continue",style:{background:Sfe,color:"white",borderRadius:10},children:[r?"Saving\u2026":"Continue"," ",(0,Pe.jsx)(jC,{size:14,weight:"bold",className:"ml-1.5"})]})})]})})}const Hfe=function(){const e=Ue((0,o.useState)(null),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{let e=!0;return Qi.get("/taylor/onboarding-company").then(t=>{e&&n(t.data||null)}).catch(()=>{e&&n(null)}),()=>{e=!1}},[]),t&&t.visible?(0,Pe.jsxs)("div",{className:"taylor-mount rounded-md border border-slate-200 bg-slate-50 px-4 py-3 mb-6","data-testid":"taylor-onboarding-company","data-taylor-voice":"taylor","data-surface-id":t.surface_id,children:[(0,Pe.jsx)("div",{className:"mb-1.5",children:(0,Pe.jsx)(vF,{variant:"eyebrow",testId:"taylor-onboarding-company-byline"})}),(0,Pe.jsx)("p",{className:"text-sm text-slate-800","data-testid":"taylor-onboarding-company-line",children:t.line})]}):null},Pfe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,10
27.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),Lfe=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:Pfe})));Lfe.displayName="GlobeIcon";const Tfe=Lfe,Ife="#041C3A",Zfe="#6B7280",Bfe="#374151",Vfe="#E5E7EB",zfe={verified:{label:"Verified",bg:"#ECFDF5",text:"#065F46",bd:"#A7F3D0"},likely:{label:"Likely",bg:"#EFF6FF",text:"#1E40AF",bd:"#BFDBFE"},uncertain:{label:"Uncertain",bg:"#FEF3C7",text:"#92400E",bd:"#FDE68A"}},qfe=1,Ufe=2,Wfe=3,Yfe=4;function Kfe(){var e,t,n,a,r,i,s;const l=zt(),c=es(),d=c.user,u=c.refreshUser,m=Ue((0,o.useState)(qfe),2),p=m[0],h=m[1],f=Ue((0,o.useState)(""),2),x=f[0],g=f[1],v=Ue((0,o.useState)(!1),2),b=v[0],y=v[1],j=Ue((0,o.useState)(null),2),w=j[0],N=j[1],A=Ue((0,o.useState)(""),2),k=A[0],E=A[1],D=Ue((0,o.useState)("all"),2),_=D[0],C=D[1],F=Ue((0,o.useState)(new Set),2),S=F[0],M=F[1],O=Ue((0,o.useState)(!1),2),R=O[0],H=O[1],P="owner"===(null===d||void 0===d?void 0:d.hiring_mode)?"/app/owner":"/app/employer",L=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{await Qi.post("/onboarding/milestone",{milestone:e,properties:t})}catch(n){}},T=async()=>{const e=(x||"").trim();if(!e||e.length<4)va.error("Enter your company website to continue.");else{y(!0);try{var t,n;const a=await Qi.post("/onboarding/discover",{website_url:e,email:null===d||void 0===d?void 0:d.email});N(a.data),E((null===(t=a.data)||void 0===t||null===(n=t.company)||void 0===n?void 0:n.name)||""),h(Ufe)}catch(zf){var a,r,i,s,o;const t=(null===zf||void 0===zf||null===(a=zf.response)||void 0===a||null===(r=a.data)||void 0===r||null===(i=r.detail)||void 0===i?void 0:i.message)||(null===zf||void 0===zf||null===(s=zf.response)||void 0===s||null===(o=s.data)||void 0===o?void 0:o.detail)||"Could not check that website.";va.message("string"===typeof t?t:"Could not check that website."),N({company:{name:"",domain:"",logo_url:null,description:null,industry:null},domain_verified:!1,confidence:"uncertain",confidence_score:0,jobs:[],hiring_areas:[]}),h(Ufe)}finally{y(!1)}}},I=(null===w||void 0===w?void 0:w.hiring_areas)||[],Z=((null===w||void 0===w?void 0:w.jobs)||[]).filter(e=>"all"===_||e.hiring_area===_);return(0,o.useEffect)(()=>{if(x||null===d||void 0===d||!d.email)return;const e=(d.email.split("@")[1]||"").toLowerCase();e&&!["gmail.com","yahoo.com","outlook.com","hotmail.com","icloud.com","live.com","aol.com"].includes(e)&&g(e)},[d,x]),(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-start px-4 py-10",style:{background:"#F9FAFB"},"data-testid":"onboarding-company",children:(0,Pe.jsxs)("div",{className:"w-full max-w-2xl mx-auto",children:[(0,Pe.jsx)(Hfe,{}),(0,Pe.jsx)(Gfe,{step:p}),p===qfe&&(0,Pe.jsxs)($fe,{testid:"onboarding-step-website",children:[(0,Pe.jsx)(Qfe,{children:"Step 1 of 4"}),(0,Pe.jsx)(Xfe,{children:"What's your company website?"}),(0,Pe.jsx)(Jfe,{children:"AROS will recognise your company and find your open jobs in a few seconds. No setup forms, no industry dropdowns."}),(0,Pe.jsxs)("div",{className:"mt-6",children:[(0,Pe.jsx)("label",{className:"text-xs uppercase tracking-[0.18em] font-mono font-semibold",style:{color:Zfe},children:"Company website"}),(0,Pe.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,Pe.jsx)(Io,{value:x,onChange:e=>g(e.target.value),placeholder:"acme.com","data-testid":"onboarding-website-input",autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&T()}}),(0,Pe.jsx)(Lo,{onClick:T,disabled:b||!x.trim(),"data-testid":"onboarding-website-submit",style:{background:Ife,color:"white",borderRadius:10},children:b?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(bM,{size:14,className:"animate-spin mr-1.5"})," Finding\u2026"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(Eg,{size:14,className:"mr-1.5",weight:"bold"})," Find my company"]})})]}),(0,Pe.jsx)("div",{className:"mt-3 text-xs",style:{color:Zfe},children:"We never crawl the rest of your site. Just the homepage and your careers page."})]})]}),p===Ufe&&w&&(0,Pe.jsxs)($fe,{testid:"onboarding-step-confirm",children:[(0,Pe.jsx)(Qfe,{children:"Step 2 of 4 \xb7 Confirm"}),(0,Pe.jsx)(Xfe,{children:"Is this your company?"}),(0,Pe.jsxs)("div",{className:"mt-6 rounded-2xl border p-5 flex items-start gap-4",style:{borderColor:Vfe,background:"white"}
2,children:[(0,Pe.jsx)("div",{className:"w-14 h-14 rounded-md grid place-items-center",style:{background:"#F3F4F6",border:"1px solid ".concat(Vfe)},children:null!==(e=w.company)&&void 0!==e&&e.logo_url?(0,Pe.jsx)("img",{src:w.company.logo_url,alt:"",className:"max-w-full max-h-full rounded"}):(0,Pe.jsx)(Tfe,{size:28,style:{color:Zfe}})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)(exe,{confidence:w.confidence,domainVerified:w.domain_verified,jobsFound:(w.jobs||[]).length}),(0,Pe.jsx)(Io,{value:k,onChange:e=>E(e.target.value),"data-testid":"onboarding-company-name",className:"mt-2 text-lg font-semibold"}),(null===(t=w.company)||void 0===t?void 0:t.description)&&(0,Pe.jsx)("p",{className:"text-sm mt-2",style:{color:Bfe},children:w.company.description}),(0,Pe.jsxs)("div",{className:"text-xs mt-2 font-mono",style:{color:Zfe},children:[null===(n=w.company)||void 0===n?void 0:n.domain,(w.jobs||[]).length>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 ",w.jobs.length," open job",1===w.jobs.length?"":"s"," on your careers page"]})]})]})]}),(0,Pe.jsxs)("div",{className:"mt-6 flex justify-between flex-wrap gap-2",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>h(qfe),"data-testid":"onboarding-confirm-back",className:"rounded-md",children:"Try a different website"}),(0,Pe.jsxs)(Lo,{onClick:async()=>{var e;if(k.trim()){try{var t,n,a,r;await Qi.post("/onboarding/apply-company",{name:k.trim(),domain:(null===w||void 0===w||null===(t=w.company)||void 0===t?void 0:t.domain)||null,logo_url:(null===w||void 0===w||null===(n=w.company)||void 0===n?void 0:n.logo_url)||null,description:(null===w||void 0===w||null===(a=w.company)||void 0===a?void 0:a.description)||null,industry:(null===w||void 0===w||null===(r=w.company)||void 0===r?void 0:r.industry)||null,website_url:x.trim()||null,confidence:(null===w||void 0===w?void 0:w.confidence)||"uncertain"}),await L("company_recognized",{confidence:(null===w||void 0===w?void 0:w.confidence)||"uncertain",jobs_found:((null===w||void 0===w?void 0:w.jobs)||[]).length}),u&&await u()}catch(zf){var i,s;return void va.error((null===zf||void 0===zf||null===(i=zf.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.detail)||"Could not save the company.")}null!==w&&void 0!==w&&null!==(e=w.jobs)&&void 0!==e&&e.length?h(Wfe):h(Yfe)}else va.error("Please give your company a name.")},disabled:!k.trim(),"data-testid":"onboarding-confirm-continue",style:{background:Ife,color:"white",borderRadius:10},children:["Yes, this is us ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})]})]}),p===Wfe&&(0,Pe.jsxs)($fe,{testid:"onboarding-step-area",children:[(0,Pe.jsx)(Qfe,{children:"Step 3 of 4 \xb7 Focus"}),(0,Pe.jsx)(Xfe,{children:"Which area do you hire for?"}),(0,Pe.jsx)(Jfe,{children:"Pick one to narrow the list. You can hire across more later."}),(0,Pe.jsx)("div",{className:"mt-6 flex flex-wrap gap-2","data-testid":"onboarding-area-options",children:[{key:"all",label:"All roles",count:((null===w||void 0===w?void 0:w.jobs)||[]).length},...I].map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>C(e.key),"data-testid":"onboarding-area-".concat(e.key),className:"rounded-full px-4 py-2 text-sm font-medium transition-all",style:{background:_===e.key?Ife:"white",color:_===e.key?"white":Ife,border:"1px solid ".concat(_===e.key?Ife:Vfe)},children:[e.label," ",(0,Pe.jsx)("span",{className:"opacity-70 font-mono ml-1",children:e.count})]},e.key))}),(0,Pe.jsxs)("div",{className:"mt-8 flex justify-between",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>h(Ufe),className:"rounded-md",children:"Back"}),(0,Pe.jsxs)(Lo,{onClick:()=>h(Yfe),"data-testid":"onboarding-area-continue",style:{background:Ife,color:"white",borderRadius:10},children:["See the jobs ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})]})]}),p===Yfe&&(0,Pe.jsxs)($fe,{testid:"onboarding-step-jobs",children:[(0,Pe.jsx)(Qfe,{children:null!==w&&void 0!==w&&null!==(a=w.jobs)&&void 0!==a&&a.length?"Step 4 of 4 \xb7 Pick your roles":"Step 4 of 4"}),(0,Pe.jsx)(Xfe,{children:null!==w&&void 0!==w&&null!==(r=w.jobs)&&void 0!==r&&r.length?"Which of these are yours?":"Add your first job"}),(0,Pe.jsx)(Jfe,{children:null!==w&&void 0!==w&&null!==(i=w.jobs)&&void 0!==i&&i.length?"Select the roles you manage. AROS will import them as drafts you can review before publishing.":"We didn't see open jobs on your careers page. You can paste a job URL or write one from scratch inside AROS."}),Z.length>0?(0,Pe.jsx)("div",{className:"mt-6 space-y-2 max-h-[420px] overflow-y-auto pr-1","data-testid":"onboarding-job-list",children:Z.map(e=>{const t=S.has(e.url);return(0,Pe.jsx)("button",{type:"button",onClick:()=>{return t=e.url,void M(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},"data-testid":"onboarding-job-".concat(encodeURIComponent(e.url).slice(0,30)),className:"w-full text-left rounded-xl p-4 transition-all",style:{background:t?"#EFF6FF":"white",border:"2px s
2olid ".concat(t?"#1E40AF":Vfe)},children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)("div",{className:"mt-0.5",children:t?(0,Pe.jsx)(Yf,{size:20,weight:"fill",style:{color:"#1E40AF"}}):(0,Pe.jsx)("div",{className:"w-5 h-5 rounded-full border-2",style:{borderColor:Vfe}})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Pe.jsx)("div",{className:"font-medium",style:{color:Ife},children:e.title}),(0,Pe.jsx)("div",{className:"text-xs mt-0.5 font-mono break-all",style:{color:Zfe},children:e.url})]}),(0,Pe.jsx)(nxe,{area:e.hiring_area})]})},e.url)})}):null!==w&&void 0!==w&&null!==(s=w.jobs)&&void 0!==s&&s.length?(0,Pe.jsx)("div",{className:"mt-6 rounded-xl border p-6 text-center text-sm",style:{borderColor:Vfe,color:Bfe},children:"No jobs matched that area. Try another, or skip and create a job manually."}):null,(0,Pe.jsxs)("div",{className:"mt-6 flex flex-col sm:flex-row gap-2 sm:justify-between",children:[(0,Pe.jsx)(Lo,{variant:"ghost",onClick:async()=>{await L("job_discovered",{count:0,via:"manual"}),l(P,{replace:!0})},"data-testid":"onboarding-jobs-skip",className:"rounded-md",children:"Skip \u2014 I'll create one manually"}),(0,Pe.jsx)(Lo,{onClick:async()=>{if(0===S.size)return await L("job_discovered",{count:0,via:"manual"}),void l(P,{replace:!0});H(!0);let e=0;for(const n of S)try{await Qi.post("/jobs/intake",{source_type:"url",source_value:n}),e+=1}catch(t){}e>0?va.success("Imported ".concat(e," job draft").concat(1===e?"":"s",".")):va.message("Imports failed \u2014 you can paste a job URL inside AROS to try again."),await L("job_discovered",{count:e,via:"crawl"}),H(!1),l(P,{replace:!0})},disabled:R,"data-testid":"onboarding-jobs-import",style:{background:Ife,color:"white",borderRadius:10},children:R?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(bM,{size:14,className:"animate-spin mr-1.5"})," Importing\u2026"]}):S.size>0?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(ux,{size:14,className:"mr-1.5",weight:"duotone"})," Import ",S.size," & continue"]}):(0,Pe.jsxs)(Pe.Fragment,{children:["Continue to AROS ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})})]})]})]})})}function Gfe(e){let t=e.step;return(0,Pe.jsx)("div",{className:"flex justify-center gap-2 mb-6","data-testid":"onboarding-progress",children:[1,2,3,4].map(e=>(0,Pe.jsx)("div",{className:"h-1.5 rounded-full transition-all",style:{width:e===t?28:14,background:e<=t?Ife:"#E5E7EB"}},e))})}function $fe(e){let t=e.children,n=e.testid;return(0,Pe.jsx)("div",{className:"rounded-2xl bg-white p-7 sm:p-10 shadow-sm",style:{border:"1px solid ".concat(Vfe)},"data-testid":n,children:t})}function Qfe(e){let t=e.children;return(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Zfe},children:t})}function Xfe(e){let t=e.children;return(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-2",style:{color:Ife},children:t})}function Jfe(e){let t=e.children;return(0,Pe.jsx)("p",{className:"text-sm mt-3",style:{color:Bfe},children:t})}function exe(e){let t=e.confidence,n=e.domainVerified,a=e.jobsFound;const r=zfe[t]||zfe.uncertain,i="verified"===t?Yf:"uncertain"===t?AN:ux;return(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-[11px] font-medium",style:{background:r.bg,color:r.text,border:"1px solid ".concat(r.bd)},"data-testid":"onboarding-confidence-pill",title:"".concat(n?"Email domain matches website. ":"").concat(a," open jobs detected."),children:[(0,Pe.jsx)(i,{size:11,weight:"fill"})," ",r.label]})}const txe={sales:"Sales",operations:"Operations",customer_service:"Customer Service",technical:"Technical",leadership:"Leadership",other:"Other"};function nxe(e){let t=e.area;return(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.15em] font-mono font-semibold rounded-full px-2 py-0.5",style:{background:"#F3F4F6",color:Bfe,border:"1px solid ".concat(Vfe)},children:txe[t]||"Other"})}const axe="#041C3A",rxe="#6B7280",ixe="#374151",sxe="#E5E7EB";function oxe(e){if(!e)return"\u2014";try{return new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}catch(t){return e}}function lxe(){const e=Ue((0,o.useState)([]),2),t=e[0],n=e[1],a=Ue((0,o.useState)([]),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(!0),2),l=s[0],c=s[1];return(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const t=(await Qi.get("/owner/history")).data;if(!e)return;n(t.hired||[]),i(t.closed||[])}catch(t){}finally{e&&c(!1)}})(),()=>{e=!1}},[]),(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"owner-history",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:rxe},children:"History"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:axe},children:"Past hiring"}),(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"owner-history-hired",children:[(0,Pe.jsx)("h2",{className:"text-lg font-brand font-bold mb-3",style:{color:axe},children:"Hired"}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-5",style:{border:"1px solid ".concat(sxe)},children:[l&&(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:rxe},children:"Loading\u2026"}),!l&&0===t.length&&(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:rxe},children:"No hires yet. Your first one is just a few decisions away."}),(0,Pe.jsx)("ul",{className:"space-y-2",children:t.map(e=>(0,Pe.jsxs)("li",{className:"flex items-baseline justify-between gap-3","data-testid":"owner-hired-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-semibold truncate",style:{color:axe},children:e.candidate_name}),(0,Pe.jsx)("div",{className:"text-xs font-mono truncate",style:{color:rxe},children:e.job_title})]}),(0,Pe.jsx)("div",{className:"font-mono text-xs whitespace-nowrap",style:{color:ixe},children:oxe(e.applied_at)})]},e.id))})]})]}),(0,Pe.jsxs)("section",{className:"mt-8","data-testid":"owner-history-closed",children:[(0,Pe.jsx)("h2",{className:"text-lg font-brand font-bold mb-3",style:{color:axe},children:"Closed (not hired)"}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-5",style:{border:"1px solid ".concat(sxe)},children:[l&&(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:rxe},children:"Loading\u2026"}),!l&&0===r.length&&(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:rxe},children:"No closed candidates yet."}),(0,Pe.jsx)("ul",{className:"space-y-2",children:r.map(e=>(0,Pe.jsxs)("li",{className:"flex items-baseline justify-between gap-3","data-testid":"owner-closed-".concat(e.id),children:[(0,Pe.jsxs)("div",{className:"min-w-0",children:[(0,Pe.jsx)("div",{className:"font-semibold truncate",style:{color:axe},children:e.candidate_name}),(0,Pe.jsx)("div",{className:"text-xs font-mono truncate",style:{color:rxe},children:e.job_title})]}),(0,Pe.jsx)("div",{className:"font-mono text-xs whitespace-nowrap capitalize",style:{color:ixe},children:e.status})]},e.id))})]})]})]})}const cxe="#041C3A",dxe="#6B7280",uxe="#E5E7EB";function mxe(e){let t=e.label,n=e.value,a=e.unit,r=e.testid,i=e.muted;return(0,Pe.jsxs)("div",{className:"flex flex-col gap-0.5","data-testid":r,children:[(0,Pe.jsx)("span",{className:"text-[10px] uppercase tracking-[0.14em] font-mono",style:{color:dxe},children:t}),(0,Pe.jsxs)("span",{className:"text-lg font-semibold ".concat(i?"text-slate-400":""),style:i?{}:{color:cxe},children:[null==n?"\u2014":n,null!=n&&a?(0,Pe.jsx)("span",{className:"text-xs font-normal ml-1 text-slate-500",children:a}):null]})]})}function pxe(e){var t,n,a,r;let i=e.title,s=e.block,o=e.includeCache,l=e.testidPrefix;const c=e=>null==e?null:"".concat(e),d=null!==(t=null===s||void 0===s?void 0:s.still_processing_count)&&void 0!==t?t:0;return(0,Pe.jsxs)("div",{className:"rounded-lg border p-4",style:{borderColor:uxe},"data-testid":"".concat(l,"-block"),children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pe.jsx)(Bg,{size:14,weight:"duotone",style:{color:cxe}}),(0,Pe.jsx)("h3",{className:"text-sm font-medium",style:{color:cxe},children:i}),(0,Pe.jsxs)("span",{className:"ml-auto text-[10px] font-mono text-slate-400","data-testid":"".concat(l,"-counts"),children:[null!==(n=null===s||void 0===s?void 0:s.started_count)&&void 0!==n?n:0," started \xb7 ",null!==(a=null===s||void 0===s?void 0:s.completed_count)&&void 0!==a?a:0," completed \xb7 ",null!==(r=null===s||void 0===s?void 0:s.failed_count)&&void 0!==r?r:0," failed",d>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[" \xb7 ",(0,Pe.jsxs)("span",{className:"text-amber-600","data-testid":"".concat(l,"-still-processing"),children:[d," still processing"]})]})]})]}),(0,Pe.jsxs)("div",{className:"grid ".concat(o?"grid-cols-2 md:grid-cols-6":"grid-cols-2 md:grid-cols-4"," gap-4"),children:[(0,Pe.jsx)(mxe,{label:"Operational success",value:c(null===s||void 0===s?void 0:s.operational_success_rate_pct),unit:"%",testid:"".concat(l,"-success-rate")}),(0,Pe.jsx)(mxe,{label:"Operational failure",value:c(null===s||void 0===s?void 0:s.operational_failure_rate_pct),unit:"%",testid:"".concat(l,"-failure-rate")}),(0,Pe.jsx)(mxe,{label:"p50 processing time",value:null===s||void 0===s?void 0:s.processing_p50_ms,unit:"ms",testid:"".concat(l,"-p50")}),(0,Pe.jsx)(mxe,{label:"p95 processing time",value:null===s||void 0===s?void 0:s.processing_p95_ms,unit:"ms",testid:"".concat(l,"-p95")}),o&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(mxe,{label:"Fetch cache hit rate",value:c(null===s||void 0===s?void 0:s.fetch_cache_hit_rate_pct),unit:"%",testid:"".concat(l,"-fetch-cache")}),(0,Pe.jsx)(mxe,{label:"Extract cache hit rate",value:c(null===s||void 0===s?void 0:s.extract_cache_hit_rate_pct),unit:"%",testid:"".concat(l,"-extract-cache")})]})]}),(null===s||void 0===s?void 0:s.by_source_type)&&(0,Pe.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:uxe},children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.14em] font-mono mb-2",style:{color:dxe},children:"Breakdown by intake mode"}),(0,Pe.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3","data-testid":"".concat(l,"-source-split"),children:["url","text","t
2itle","duplicate"].map(e=>{const t=s.by_source_type[e]||{},n=t.still_processing||0;return(0,Pe.jsxs)("div",{className:"rounded-md bg-slate-50 border p-2",style:{borderColor:uxe},"data-testid":"".concat(l,"-source-").concat(e),children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase font-mono text-slate-500",children:e}),(0,Pe.jsxs)("div",{className:"text-sm mt-1",children:[(0,Pe.jsx)("span",{className:"text-emerald-700 font-semibold",children:t.completed||0}),(0,Pe.jsx)("span",{className:"text-slate-400",children:" / "}),(0,Pe.jsx)("span",{className:"text-rose-700 font-semibold",children:t.failed||0}),n>0&&(0,Pe.jsxs)("span",{className:"text-amber-600 text-[11px] ml-1",children:["(+",n,")"]})]}),(0,Pe.jsxs)("div",{className:"text-[9px] text-slate-400 mt-0.5",children:["completed / failed",n?" (still processing)":""]})]},e)})})]})]})}function hxe(){const e=Ue((0,o.useState)("24h"),2),t=e[0],n=e[1],a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1];return(0,o.useEffect)(()=>{let e=!1;return i(!0),m(""),f(!1),Qi.get("/intake-telemetry",{params:{window:t}}).then(t=>{let n=t.data;e||c(n)}).catch(t=>{var n,a,r;if(e)return;if(403===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status))return void f(!0);const i=null===t||void 0===t||null===(a=t.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail,s="string"===typeof i?i:(null===i||void 0===i?void 0:i.message)||"Couldn't load intake health.";m(s)}).finally(()=>{e||i(!1)}),()=>{e=!0}},[t]),h?(0,Pe.jsx)("div",{className:"rounded-xl border p-5 bg-white",style:{borderColor:uxe},"data-testid":"intake-health-forbidden",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(BC,{size:18,weight:"duotone",style:{color:cxe}}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("h2",{className:"text-base font-semibold",style:{color:cxe},children:"Intake pipeline health"}),(0,Pe.jsx)("p",{className:"text-sm text-slate-500 mt-1",children:"This view is limited to the organization owner and platform administrators."})]})]})}):(0,Pe.jsxs)("div",{className:"rounded-xl border p-5 bg-white",style:{borderColor:uxe},"data-testid":"intake-health-card",children:[(0,Pe.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,Pe.jsx)(BC,{size:18,weight:"duotone",style:{color:cxe}}),(0,Pe.jsxs)("div",{className:"flex-1",children:[(0,Pe.jsx)("h2",{className:"text-base font-semibold",style:{color:cxe},children:"Intake pipeline health"}),(0,Pe.jsxs)("p",{className:"text-[11px] text-slate-500 mt-0.5","data-testid":"intake-health-disclaimer",children:["Operational metric \xb7 timings and cache-hit rates for the intake pipeline. ",(0,Pe.jsx)("b",{children:"Not candidate scores."})]})]}),(0,Pe.jsx)("div",{className:"flex items-center gap-1",role:"group","aria-label":"Time window",children:["1h","24h","7d","30d"].map(e=>(0,Pe.jsx)("button",{onClick:()=>n(e),className:"px-2 py-0.5 text-[11px] font-mono rounded-full border transition-colors ".concat(t===e?"bg-slate-900 text-white border-slate-900":"bg-white text-slate-600 border-slate-200 hover:bg-slate-50"),"data-testid":"intake-health-window-".concat(e),"aria-pressed":t===e,children:e},e))})]}),r&&(0,Pe.jsxs)("div",{className:"text-xs text-slate-500 flex items-center gap-2","data-testid":"intake-health-loading",children:[(0,Pe.jsx)(gy,{size:12})," Loading\u2026"]}),!r&&u&&(0,Pe.jsxs)("div",{className:"text-xs text-rose-700 flex items-center gap-2","data-testid":"intake-health-error",role:"alert",children:[(0,Pe.jsx)(AN,{size:12,weight:"duotone"})," ",u]}),!r&&!u&&l&&(0,Pe.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,Pe.jsx)(pxe,{title:"Job intake (single JD)",block:l.job_intake,includeCache:!0,testidPrefix:"intake-health-job"}),(0,Pe.jsx)(pxe,{title:"Bulk intake (batch resumes)",block:l.bulk_intake,includeCache:!1,testidPrefix:"intake-health-bulk"}),(0,Pe.jsxs)("div",{className:"text-[10px] text-slate-400 font-mono uppercase tracking-wider","data-testid":"intake-health-window-tag",children:["Window \xb7 ",l.window," \xb7 ",new Date(l.generated_at).toLocaleTimeString()]})]})]})}function fxe(){return(0,Pe.jsxs)("div",{className:"max-w-6xl mx-auto px-6 py-8","data-testid":"owner-intake-health-page",children:[(0,Pe.jsxs)("div",{className:"mb-6",children:[(0,Pe.jsx)("h1",{className:"text-2xl font-semibold",style:{color:"#041C3A"},children:"Intake pipeline health"}),(0,Pe.jsx)("p",{className:"text-sm text-slate-500 mt-1",children:"Operational metrics for job and bulk intake \u2014 success rate, failure rate, timings, c
2ache-hit rates, and per-intake-mode breakdown. Org owner and platform admins only."})]}),(0,Pe.jsx)(hxe,{})]})}const xxe="#041C3A",gxe="#6B7280",vxe="#374151",bxe="#E5E7EB",yxe=[{value:"realtime",label:"Real-time",hint:"Send updates as they happen."},{value:"daily",label:"Daily digest",hint:"One email each morning with everything new."},{value:"weekly",label:"Weekly digest",hint:"A single roll-up email each week."},{value:"off",label:"Off",hint:"No notification emails at all."}],jxe=[{key:"new_applicants",label:"New applicants",hint:"When a candidate applies to one of your open roles."},{key:"hiring_manager_followups",label:"Hiring manager follow-ups",hint:"Reminders when a manager review is pending."},{key:"decision_emails",label:"Decision emails",hint:"Confirmations for closures and offers sent from AROS."},{key:"interview_reminders",label:"Interview reminders",hint:"Nudges before scheduled interviews."},{key:"outcome_review_reminders",label:"Outcome review reminders",hint:"30/60/90-day post-hire reviews."}];function wxe(e){let t=e.title,n=e.subtitle,a=e.children,r=e.testid;return(0,Pe.jsxs)("section",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(bxe)},"data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:gxe},children:t}),n?(0,Pe.jsx)("div",{className:"mt-1 text-sm",style:{color:vxe},children:n}):null,(0,Pe.jsx)("div",{className:"mt-4",children:a})]})}function Nxe(){const e=es(),t=e.user,n=e.refreshUser,a=Ue((0,o.useState)(!0),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),f=p[0],x=p[1],g=Ue((0,o.useState)(""),2),v=g[0],b=g[1],y=Ue((0,o.useState)(""),2),j=y[0],w=y[1],N=Ue((0,o.useState)(""),2),A=N[0],k=N[1],E=Ue((0,o.useState)(""),2),D=E[0],_=E[1],C=Ue((0,o.useState)(""),2),F=C[0],S=C[1],M=Ue((0,o.useState)(""),2),O=M[0],R=M[1],H=Ue((0,o.useState)("daily"),2),P=H[0],L=H[1],T=Ue((0,o.useState)({}),2),I=T[0],Z=T[1],B=Ue((0,o.useState)(!0),2),V=B[0],z=B[1];(0,o.useEffect)(()=>{let e=!1;return(async()=>{try{var t,n;const a=(await Qi.get("/settings/me")).data;if(e)return;b((null===(t=a.user)||void 0===t?void 0:t.full_name)||""),w(a.phone||""),k(a.timezone||"");const r=a.notification_preferences||{};L(r.frequency||"daily"),Z(r.categories||{}),z(!1!==(null===(n=r.channels)||void 0===n?void 0:n.email))}catch($ge){va.error("Could not load settings.")}finally{e||i(!1)}})(),()=>{e=!0}},[]);return r?(0,Pe.jsx)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto text-sm",style:{color:gxe},"data-testid":"settings-loading",children:"Loading settings\u2026"}):(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"owner-settings",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:gxe},children:"Settings"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-1",style:{color:xxe},children:"Your account"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm",style:{color:vxe},children:"Update your details and choose how AROS keeps you in the loop. Email address and business name aren't editable at the moment \u2014 reach out to us if either needs to change."}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,Pe.jsxs)("div",{className:"space-y-6",children:[(0,Pe.jsx)(wxe,{title:"Profile",testid:"settings-profile-card",children:(0,Pe.jsxs)("form",{onSubmit:async e=>{var t;null===e||void 0===e||null===(t=e.preventDefault)||void 0===t||t.call(e),c(!0);try{await Qi.patch("/settings/profile",{full_name:v,phone:j,timezone:A}),await(null===n||void 0===n?void 0:n()),va.success("Profile saved.")}catch($ge){var a,r;va.error((null===$ge||void 0===$ge||null===(a=$ge.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.detail)||"Could not save profile.")}finally{c(!1)}},className:"space-y-4","data-testid":"settings-profile-form",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-fullname",className:"text-xs font-brand",style:{color:vxe},children:"Name"}),(0,Pe.jsx)(Io,{id:"settings-fullname","data-testid":"settings-fullname-input",value:v,onCh
2ange:e=>b(e.target.value),className:"mt-1",placeholder:"Your full name",required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs font-brand",style:{color:vxe},children:"Email"}),(0,Pe.jsx)(Io,{value:(null===t||void 0===t?void 0:t.email)||"",readOnly:!0,disabled:!0,className:"mt-1 cursor-not-allowed","data-testid":"settings-email-readonly"}),(0,Pe.jsx)("div",{className:"text-[11px] mt-1",style:{color:gxe},children:"Not editable at the moment."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{className:"text-xs font-brand",style:{color:vxe},children:"Business"}),(0,Pe.jsx)(Io,{value:(null===t||void 0===t?void 0:t.organization_name)||"\u2014",readOnly:!0,disabled:!0,className:"mt-1 cursor-not-allowed","data-testid":"settings-org-readonly"}),(0,Pe.jsx)("div",{className:"text-[11px] mt-1",style:{color:gxe},children:"Not editable at the moment."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-phone",className:"text-xs font-brand",style:{color:vxe},children:"Phone (optional)"}),(0,Pe.jsx)(Io,{id:"settings-phone","data-testid":"settings-phone-input",value:j,onChange:e=>w(e.target.value),className:"mt-1",placeholder:"+1 555 123 4567"})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-timezone",className:"text-xs font-brand",style:{color:vxe},children:"Timezone (optional)"}),(0,Pe.jsx)(Io,{id:"settings-timezone","data-testid":"settings-timezone-input",value:A,onChange:e=>k(e.target.value),className:"mt-1",placeholder:"America/Chicago"}),(0,Pe.jsxs)("div",{className:"text-[11px] mt-1",style:{color:gxe},children:["Use an IANA name (e.g. ",(0,Pe.jsx)("span",{className:"font-mono",children:"America/Chicago"}),"). Leave blank to skip."]})]}),(0,Pe.jsx)("div",{className:"pt-2",children:(0,Pe.jsx)(Lo,{type:"submit",disabled:l,className:"text-white",style:{background:xxe},"data-testid":"settings-save-profile-btn",children:l?"Saving\u2026":"Save profile"})})]})}),(0,Pe.jsx)(wxe,{title:"Change password",subtitle:"Enter your current password, then choose a new one.",testid:"settings-password-card",children:(0,Pe.jsxs)("form",{onSubmit:async e=>{var t;if(null===e||void 0===e||null===(t=e.preventDefault)||void 0===t||t.call(e),F===O)if(F.length<8)va.error("Password must be at least 8 characters.");else{m(!0);
2try{await Qi.post("/settings/change-password",{current_password:D,new_password:F,confirm_password:O}),_(""),S(""),R(""),va.success("Password updated.")}catch($ge){var n,a;va.error((null===$ge||void 0===$ge||null===(n=$ge.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Could not change password.")}finally{m(!1)}}else va.error("New password and confirmation don't match.")},className:"space-y-4","data-testid":"settings-password-form",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-current-pw",className:"text-xs font-brand",style:{color:vxe},children:"Current password"}),(0,Pe.jsx)(Io,{id:"settings-current-pw","data-testid":"settings-current-password-input",type:"password",value:D,onChange:e=>_(e.target.value),className:"mt-1",autoComplete:"current-password",required:!0})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-new-pw",className:"text-xs font-brand",style:{color:vxe},children:"New password"}),(0,Pe.jsx)(Io,{id:"settings-new-pw","data-testid":"settings-new-password-input",type:"password",value:F,onChange:e=>S(e.target.value),className:"mt-1",autoComplete:"new-password",required:!0,minLength:8}),(0,Pe.jsx)("div",{className:"text-[11px] mt-1",style:{color:gxe},children:"At least 8 characters."})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)(Go,{htmlFor:"settings-confirm-pw",className:"text-xs font-brand",style:{color:vxe},children:"Confirm new password"}),(0,Pe.jsx)(Io,{id:"settings-confirm-pw","data-testid":"settings-confirm-password-input",type:"password",value:O,onChange:e=>R(e.target.value),className:"mt-1",autoComplete:"new-password",required:!0,minLength:8})]}),(0,Pe.jsx)("div",{className:"pt-2",children:(0,Pe.jsx)(Lo,{type:"submit",disabled:u||!D||!F||!O,className:"text-white",style:{background:xxe},"data-testid":"settings-change-password-btn",children:u?"Updating\u2026":"Update password"})})]})})]}),(0,Pe.jsxs)("div",{className:"space-y-6",children:[(0,Pe.jsx)(wxe,{title:"Notifications",subtitle:"Choose how often you want to hear from AROS, then fine-tune per category.",testid:"settings-notifications-card",children:(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"settings-notifications-form",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-xs font-semibold mb-2",style:{color:xxe},children:"Master frequency"}),(0,Pe.jsx)("div",{className:"space-y-2","data-testid":"settings-frequency-group",children:yxe.map(e=>(0,Pe.jsxs)("label",{className:"flex items-start gap-3 p-3 rounded-lg cursor-pointer transition-colors",style:{border:"1px solid ".concat(P===e.value?xxe:bxe),background:P===e.value?"#F8FAFC":"white"},"data-testid":"settings-frequency-".concat(e.value),children:[(0,Pe.jsx)("input",{type:"radio",name:"frequency",value:e.value,checked:P===e.value,onChange:()=>L(e.value),className:"mt-1"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-medium",style:{color:xxe},children:e.label}),(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:gxe},children:e.hint})]})]},e.value))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-xs font-semibold mb-2",style:{color:xxe},children:"Categories"}),(0,Pe.jsx)("div",{className:"text-[12px] mb-3",style:{color:gxe},children:"Toggle any category off if it's not useful. Turning categories off doesn't change your master frequency."}),(0,Pe.jsx)("div",{className:"divide-y",style:{borderColor:bxe},"data-testid":"settings-categories-group",children:jxe.map(e=>(0,Pe.jsxs)("div",{className:"py-3 flex items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-medium",style:{color:xxe},children:e.label}),(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:gxe},children:e.hint})]}),(0,Pe.jsx)(oM,{checked:!!I[e.key],onCheckedChange:()=>{return t=e.key,void Z(e=>h(h({},e),{},{[t]:!e[t]}));var t},"data-testid":"settings-category-".concat(e.key,"-switch")})]},e.key))})]}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-xs font-semibold mb-2",style:{color:xxe},children:"Delivery channels"}),(0,Pe.jsxs)("div",{className:"py-3 flex items-center justify-between",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-medium",style:{color:xxe},children:"Email"}),(0,Pe.jsxs)("div",{className:"text-[12px]",style:{color:gxe},children:["Deliver notifications to ",(0,Pe.jsx)("span",{className:"font-mono",children:null===t||void 0===t?void 0:t.email}),"."]})]}),(0,Pe.jsx)(oM,{checked:V,onCheckedChange:e=>z(e),"data-testid":"settings-channel-email-switch"})]}),(0,Pe.jsxs)("div",{className:"py-3 flex items-center justify-between opacity-60",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-sm font-medium",style:{color:xxe},children:"In-app notifications"}),(0,Pe.jsx)("div",{className:"text-[12px]",style:{color:gxe},children:"Coming soon."})]}),(0,Pe.jsx)(oM,{checked:!1,disabled:!0,"data-testid":"settings-channel-inapp-switch"})]})]}),(0,Pe.jsx)("div",{className:"pt-2",children:(0,Pe.jsx)(Lo,{type:"button",onClick:async()=>{x(!0);try{const e=await Qi.patch("/settings/notifications",{frequency:P,categories:I,channels:{email:V}}),t=e.data.notification_preferences||{};L(t.frequency||P),Z(t.categories||I),va.success("Notification preferences saved.")}catch($ge){var e,t;va.error((null===$ge||void 0===$ge||null===(e=$ge.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save notifications.")}finally{x(!1)}},disabled:f,className:"text-white",style:{background:xxe}
2,"data-testid":"settings-save-notifications-btn",children:f?"Saving\u2026":"Save notifications"})})]})}),(0,Pe.jsx)(wxe,{title:"Need a hand?",testid:"settings-help-card",children:(0,Pe.jsxs)("div",{className:"text-sm",style:{color:vxe},children:["Tap the ",(0,Pe.jsx)("strong",{children:"Help"})," button at the bottom-right of any screen \u2014 we read every one."]})})]})]}),(0,Pe.jsx)("div",{id:"billing",className:"mt-6 max-w-5xl mx-auto","data-testid":"settings-billing-band",children:(0,Pe.jsx)(wxe,{title:"Plans & Billing",testid:"settings-billing-summary-card",children:(0,Pe.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Pe.jsx)("div",{className:"text-sm",style:{color:vxe},children:"Manage your subscription, view review usage, and buy Candidate Review Packs on the dedicated Plans & Billing page."}),(0,Pe.jsx)(Yn,{to:"/app/billing",className:"inline-flex items-center rounded-md px-4 py-2 text-sm font-medium text-white",style:{background:xxe},"data-testid":"settings-open-billing-cta",children:"Open Plans & Billing \u2192"})]})})})]})}const Axe=Object.freeze({trial_days:30,trial_days_display:"30 days",trial_days_hyphenated:"30-day",paid_beta_active:!1}),kxe="aros.marketingConfig.v1";let Exe=null,Dxe=null;function _xe(){if(Exe)return Exe;if("undefined"===typeof window)return null;try{const e=window.sessionStorage.getItem(kxe);if(!e)return null;const t=JSON.parse(e);if(t&&"object"===typeof t&&"trial_days"in t){const e=h(h({},t),{},{paid_beta_active:Boolean(t.paid_beta_active)});return Exe=e,e}}catch(e){}return null}async function Cxe(){const e=await fetch("".concat(function(){const e="undefined"!==typeof process?"https://www.getaros.ai":"";return"".concat(e,"/api")}(),"/marketing/config"),{method:"GET",credentials:"omit"});if(!e.ok)throw new Error("marketing_config_http_".concat(e.status));const t=await e.json();return{trial_days:Number(t.trial_days)||Axe.trial_days,trial_days_display:String(t.trial_days_display||Axe.trial_days_display),trial_days_hyphenated:String(t.trial_days_hyphenated||Axe.trial_days_hyphenated),paid_beta_active:Boolean(t.paid_beta_active)}}function Fxe(){const e=Ue((0,o.useState)(()=>_xe()||Axe),2),t=e[0],n=e[1];return(0,o.useEffect)(()=>{if(Exe)return;let e=!1;return Dxe||(Dxe=Cxe().then(e=>(function(e){if(Exe=e,"undefined"!==typeof window)try{window.sessionStorage.setItem(kxe,JSON.stringify(e))}catch(t){}}(e),e)).catch(()=>Axe).finally(()=>{Dxe=null})),Dxe.then(t=>{e||n(t)}),()=>{e=!0}},[]),t}function Sxe(){return window.location.origin+function(){const e="";if(!e)return"";try{return new URL(e,"https://example.invalid").pathname.replace(/\/$/,"")}catch(t){return e.replace(/\/$/,"")}}()}const Mxe="#041C3A",Oxe="#374151",Rxe="#6B7280",Hxe="#F3F4F6",Pxe="#E5E7EB",Lxe="#0F4FA8",Txe="#B45309",Ixe="#B91C1C",Zxe=[{slug:"pack_100",analyses:100,price:29},{slug:"pack_250",analyses:250,price:69,popular:!0},{slug:"pack_500",analyses:500,price:129}],Bxe=[{slug:"starter",name:"Starter",price:99,jobs:3,analyses:400},{slug:"growth",name:"Growth",price:299,jobs:10,analyses:1e3},{slug:"business",name:"Business",price:799,jobs:30,analyses:3e3}];function Vxe(e){if(!e)return"\u2014";try{const t=new Date(e);return Number.isNaN(t.getTime())?"\u2014":t.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch(t){return"\u2014"}}function zxe(e){let t=e.pct,n=e.thresholdState,a=e.warnPct,r=e.urgentPct;const i=Math.min(100,Math.max(0,t)),s="exhausted"===n||"urgent"===n?Ixe:"warn"===n?Txe:Lxe;return(0,Pe.jsxs)("div",{className:"w-full","data-testid":"billing-usage-bar",children:[(0,Pe.jsxs)("div",{className:"w-full h-3 rounded-full overflow-hidden relative",style:{background:Hxe},children:[(0,Pe.jsx)("div",{className:"h-full transition-all",style:{width:"".concat(i,"%"),background:s},"data-testid":"billing-usage-bar-fill"}),(0,Pe.jsx)("div",{className:"absolute top-0 h-full w-px",style:{left:"".concat(a,"%"),background:"rgba(180,83,9,0.6)"},"aria-hidden":!0}),(0,Pe.jsx)("div",{className:"absolute top-0 h-full w-px",style:{left:"".concat(r,"%"),background:"rgba(185,28,28,0.6)"},"aria-hidden":!0})]}),(0,Pe.jsxs)("div",{className:"flex justify-between text-[10px] font-mono uppercase tracking-[0.14em] mt-1",style:{color:Rxe},children:[(0,Pe.jsx)("span",{children:"0 %"}),(0,Pe.jsxs)("span",{children:[a," %"]}),(0,Pe.jsxs)("span",{children:[r," %"]}),(0,Pe.jsx)("span",{children:"100 %"})]})]})}function qxe(e){let t=e.label,n=e.value,a=e.hint,r=e.testid;return(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-4",style:{border:"1px solid ".concat(Pxe)},"data-testid":r,children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:t}),(0,Pe.jsx)("div",{className:"mt-1 text-2xl font-semibold",style:{color:Mxe},children:n}),a&&(0,Pe.jsx)("div",{className:"mt-1 text-xs font-brand",style:{color:Rxe},children:a})]})}function Uxe(){const e=es().user,t=Fxe(),n=Ue((0,o.useState)(null),2),a=n[0],r=n[1],i=Ue((0,o.useState)(null),2),s=i[0],l=i[1],c=Ue((0,o.useState)(!0),2),d=c[0],u=c[1],m=Ue((0,o.useState)({upgrade:!1,portal:!1,pack:null}),2),p=m[0],f=m[1],x=Ue((0,o.useState)(!1),2),g=x[0],v=x[1],b=e&&["admin","employer"].includes(e.role),y=(0,o.useCallback)(async()=>{u(!0);try{var e;const t=Ue(await Promise.all([Qi.get("/billing/me"),Qi.get("/analysis-ledger/balance"),Qi.get("/config/public").catch(()=>({data:{stripe_packs_enabled:!1}}))]),3),n=t[0],a=t[1],i=t[2];r(n.data),l(a.data),v(!(null===(e=i.data)||void 0===e||!e.stripe_packs_enabled))}catch($ge){var t;403!==(null===$ge||void 0===$ge||null===(t=$ge.response)||void 0===t?void 0:t.status)&&va.error("Could not load billing information.")}finally{u(!1)}},[]);(0,o.useEffect)(()=>{b&&y()},[b,y]);const j=(()=>
2{if(!a)return null;const e=h({},a);return e.state||(a.pending_cancellation?e.state="canceling":"cancelled"===a.subscription_status?e.state="expired":"trialing"===a.subscription_status?e.state="trialing":"active"===a.subscription_status?e.state="active":e.state=a.subscription_status||"starter"),e.current_period_end||(e.current_period_end=a.access_ends_at||a.paid_until||null),e})(),w=async()=>{f(e=>h(h({},e),{},{reactivate:!0}));try{const e=(await Qi.post("/billing/reactivate")).data;va.success("reversed_cancellation"===(null===e||void 0===e?void 0:e.action)?"Cancellation reversed \u2014 your subscription will keep renewing.":"exited_standby"===(null===e||void 0===e?void 0:e.action)?"Standby exited \u2014 your previous plan is back.":"Subscription reactivated."),await y()}catch(zf){var e,t;const a=null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail,r="string"===typeof a?a:(null===a||void 0===a?void 0:a.message)||"Could not reactivate.";va.error(r)}finally{f(e=>h(h({},e),{},{reactivate:!1}))}},N=async()=>{f(e=>h(h({},e),{},{upgrade:!0}));try{const e=(await Qi.post("/billing/checkout-session",{origin_url:Sxe()})).data;if(null!==e&&void 0!==e&&e.url)return void(window.location.href=e.url);va.error("Could not start checkout. Please try again shortly.")}catch(zf){var e,t;const a=(null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not start checkout.";va.error(a)}finally{f(e=>h(h({},e),{},{upgrade:!1}))}};if(!b)return null;if(d)return(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-subscription-loading",role:"status","aria-live":"polite","aria-busy":"true",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3 mb-5",children:[(0,Pe.jsxs)("svg",{className:"animate-spin h-5 w-5 text-[#0F4FA8]",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,Pe.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Pe.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),(0,Pe.jsx)("span",{className:"text-sm font-medium",style:{color:Rxe},children:"Reading your billing details\u2026"})]}),(0,Pe.jsxs)("div",{className:"space-y-3","aria-hidden":"true",children:[(0,Pe.jsx)("div",{className:"h-4 rounded bg-slate-100 animate-pulse w-1/3"}),(0,Pe.jsx)("div",{className:"h-8 rounded bg-slate-100 animate-pulse w-2/3"}),(0,Pe.jsx)("div",{className:"h-4 rounded bg-slate-100 animate-pulse w-1/2"}),(0,Pe.jsx)("div",{className:"h-24 rounded-lg bg-slate-100 animate-pulse"})]}),(0,Pe.jsx)("span",{className:"sr-only",children:"Loading billing details"})]});if(!a||!s)return(0,Pe.jsx)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-subscription-empty",children:(0,Pe.jsx)("div",{className:"text-sm",style:{color:Rxe},children:"Billing details are not available for this workspace yet."})});const A=function(e){const t=null===e||void 0===e?void 0:e.state;return"active"===t?{label:"Active",tone:"#16A34A"}:"trialing"===t?{label:"Trialing",tone:Lxe}:"canceling"===t?{label:"Ending soon",tone:Txe}:"past_due"===t?{label:"Payment issue",tone:Ixe}:"expired"===t?{label:"Trial ended",tone:Rxe}:{label:"Starter",tone:Rxe}}(j),k=function(e){return"trialing"===(null===e||void 0===e?void 0:e.state)?"Trial":null}(j),E=s.plan_name||j.plan_name||j.plan_id||"Starter",D="trialing"===j.state||s.is_trial,_=D?function(e,t){if(!t)return null;try{const n=new Date(e),a=new Date(t);if(Number.isNaN(n.getTime())||Number.isNaN(a.getTime()))return null;const r=a.getTime()-n.getTime();return Math.max(0,Math.ceil(r/864e5))}catch(n){return null}}(new Date,s.trial_expires_at||j.current_period_end):null,C=function(e){if(!e||!e.billing_period_start||!e.billing_period_end)return null;if(e.included_allowance<=0)return null;const t=new Date(e.billing_period_start),n=new Date(e.billing_period_end),a=new Date;if(Number.isNaN(t.getTime())||Number.isNaN(n.getTime()))return null;const r=Math.max(1,(n-t)/864e5),i=Math.max(1,(a-t)/864e5),s=Math.min(1,i/r);if(s<.15)return null;const o=Math.round(e.included_used/s),l=(e.included_remaining,e.pack_balance||0);return o<=e.included_allowance?"At your current hiring activity, your included analyses are expected to last through this billing period.":l>=o-e.included_allowance?"Based on recent usage, you're on track to draw from your purchased packs later this period.":"Based on recent usage, you may want an additional analysis pack this month."}(s),F={ok:null,warn:"You've used ".concat(s.usage_pct,"% of your monthly applicant analyses. Consider planning capacity for the rest of the peri
2od."),urgent:"You've used ".concat(s.usage_pct,"% of your monthly applicant analyses. Additional analyses will draw from purchased packs when they open."),exhausted:"Your included allowance is fully used. Analyses continue for now \u2014 additional applicant analyses will be available to purchase shortly."}[s.threshold_state];return(0,Pe.jsxs)("div",{className:"space-y-6","data-testid":"billing-subscription",children:[D&&(0,Pe.jsxs)("div",{className:"rounded-xl p-6",style:{background:"#EFF6FF",border:"1px solid #DBEAFE"},"data-testid":"billing-trial-tile",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Lxe},children:"Growth Trial"}),(0,Pe.jsxs)("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-6 gap-y-2",children:[(0,Pe.jsx)("div",{children:(0,Pe.jsxs)("div",{className:"text-3xl font-semibold",style:{color:Mxe},"data-testid":"billing-trial-days-left",children:[null!==_&&void 0!==_?_:"\u2014"," days remaining"]})}),(0,Pe.jsxs)("div",{className:"text-sm font-brand",style:{color:Oxe},"data-testid":"billing-trial-analyses-left",children:[s.included_remaining.toLocaleString()," of ",s.included_allowance.toLocaleString()," applicant analyses remaining"]})]}),(0,Pe.jsxs)("div",{className:"mt-4",children:[(0,Pe.jsx)(Lo,{onClick:N,disabled:p.upgrade||!a.subscriptions_available,className:"text-white h-10 text-sm font-semibold",style:{background:Mxe,borderRadius:10},"data-testid":"billing-trial-choose-plan-btn",children:p.upgrade?"Starting checkout\u2026":"Choose your plan"}),!a.subscriptions_available&&(0,Pe.jsx)("div",{className:"mt-2 text-[11px] font-brand",style:{color:Rxe},children:"Plan selection opens shortly. Your trial data will be preserved in the meantime."})]})]}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-subscription-header",children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:"Current plan"}),(0,Pe.jsx)("div",{className:"mt-1 text-2xl font-semibold",style:{color:Mxe},"data-testid":"billing-plan-name",children:E}),(0,Pe.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-xs font-mono uppercase tracking-[0.18em]",style:{color:A.tone},children:[(0,Pe.jsx)("span",{className:"inline-block w-2 h-2 rounded-full",style:{background:A.tone},"aria-hidden":!0}),A.label,k&&(0,Pe.jsxs)("span",{className:"ml-1 text-[10px]",style:{color:Rxe},children:["\xb7 ",t.trial_days_hyphenated," trial"]})]})]}),(0,Pe.jsxs)("div",{className:"text-right",children:["trialing"===j.state&&j.current_period_end&&(0,Pe.jsxs)("div",{className:"text-xs font-brand",style:{color:Oxe},"data-testid":"billing-trial-end",children:["Trial ends ",(0,Pe.jsx)("strong",{children:Vxe(j.current_period_end)})]}),"active"===j.state&&!j.pending_cancellation&&j.current_period_end&&(0,Pe.jsxs)("div",{className:"text-xs font-brand",style:{color:Oxe},"data-testid":"billing-next-renewal",children:["Next renewal ",(0,Pe.jsx)("strong",{children:Vxe(j.current_period_end)})]}),"canceling"===j.state&&j.current_period_end&&(0,Pe.jsxs)("div",{className:"text-xs font-brand",style:{color:Txe},"data-testid":"billing-canceling-at",children:["Cancellation scheduled \u2014 access remains open through ",(0,Pe.jsx)("strong",{children:Vxe(j.current_period_end)})]}),"past_due"===j.state&&(0,Pe.jsx)("div",{className:"text-xs font-brand",style:{color:Ixe},children:"Update your payment method to keep access."})]})]}),j.pending_cancellation&&(0,Pe.jsxs)("div",{className:"mt-5 rounded-md px-3 py-3 text-xs font-brand flex flex-wrap items-center justify-between gap-3",style:{background:"#FFFBEB",color:Txe,border:"1px solid #FDE68A"},"data-testid":"billing-cancellation-banner",children:[(0,Pe.jsxs)("div",{children:["This subscription is set to end on ",(0,Pe.jsx)("strong",{children:Vxe(j.current_period_end)}),". You'll keep full access until then."]}),(0,Pe.jsx)(Lo,{onClick:w,disabled:p.reactivate,className:"h-9 text-xs font-semibold",style:{background:Mxe,color:"white",borderRadius:8},"data-testid":"billing-reverse-cancel-btn",children:p.reactivate?"Reversing\u2026":"Reverse
2cancellation"})]}),"standby"===j.plan_id&&!j.pending_cancellation&&(0,Pe.jsxs)("div",{className:"mt-5 rounded-md px-3 py-3 text-xs font-brand flex flex-wrap items-center justify-between gap-3",style:{background:"#EFF6FF",color:Lxe,border:"1px solid #DBEAFE"},"data-testid":"billing-standby-banner",children:[(0,Pe.jsxs)("div",{children:["Workspace is on ",(0,Pe.jsx)("strong",{children:"Standby"}),". Your data is preserved. Reactivate anytime to return to your previous plan",j.plan_before_standby?" (".concat(j.plan_before_standby,")"):"","."]}),(0,Pe.jsx)(Lo,{onClick:w,disabled:p.reactivate,className:"h-9 text-xs font-semibold",style:{background:Mxe,color:"white",borderRadius:8},"data-testid":"billing-exit-standby-btn",children:p.reactivate?"Reactivating\u2026":"Exit Standby"})]}),(0,Pe.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-2",children:[("starter"===j.state||"expired"===j.state)&&j.subscriptions_available&&(0,Pe.jsx)(Lo,{onClick:N,disabled:p.upgrade,className:"text-white h-10 text-sm font-semibold",style:{background:Lxe,borderRadius:10},"data-testid":"billing-upgrade-btn",children:p.upgrade?"Starting checkout\u2026":"Activate a subscription"}),("active"===j.state||"trialing"===j.state||"canceling"===j.state||"past_due"===j.state)&&(0,Pe.jsx)(Lo,{onClick:async()=>{f(e=>h(h({},e),{},{portal:!0}));try{const e=(await Qi.post("/billing/portal",{return_url:"".concat(Sxe(),"/app/billing")})).data;if(null!==e&&void 0!==e&&e.url)return void(window.location.href=e.url);va.error("Could not open the billing portal.")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not open the billing portal.")}finally{f(e=>h(h({},e),{},{portal:!1}))}},disabled:p.portal||!j.has_portal,className:"text-white h-10 text-sm font-semibold",style:{background:Lxe,borderRadius:10},"data-testid":"billing-portal-btn",children:p.portal?"Opening\u2026":"Manage billing"}),"active"===j.state&&!j.pending_cancellation&&(0,Pe.jsx)(Lo,{onClick:async()=>{f(e=>h(h({},e),{},{cancel:!0}));try{const e=(await Qi.post("/billing/cancel")).data,t=(null===e||void 0===e?void 0:e.access_ends_at)||(null===e||void 0===e?void 0:e.paid_until);va.success(t?"Cancellation scheduled \u2014 access remains open through ".concat(Vxe(t),"."):"Cancellation scheduled."),await y()}catch(zf){var e,t;const a=null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail,r="string"===typeof a?a:(null===a||void 0===a?void 0:a.message)||"Could not schedule cancellation.";va.error(r)}finally{f(e=>h(h({},e),{},{cancel:!1}))}},disabled:p.cancel,className:"h-10 text-sm font-semibold",style:{background:"white",color:Ixe,borderRadius:10,border:"1px solid ".concat(Ixe)},"data-testid":"billing-cancel-btn",children:p.cancel?"Scheduling\u2026":"Cancel subscription"})]})]}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-usage-card",children:[(0,Pe.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:"Applicant analyses this period"}),(0,Pe.jsxs)("div",{className:"mt-1 text-lg font-semibold",style:{color:Mxe},"data-testid":"billing-usage-headline",children:[s.included_used.toLocaleString()," of ",s.included_allowance.toLocaleString()," used"]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xs font-brand",style:{color:Rxe},children:["Billing period: ",Vxe(s.billing_period_start)," \u2192 ",Vxe(s.billing_period_end)]})]}),(0,Pe.jsxs)("div",{className:"text-right",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:"Included remaining"}),(0,Pe.jsx)("div",{className:"mt-1 text-2xl font-semibold",style:{color:Mxe},"data-testid":"billing-included-remaining",children:s.included_remaining.toLocaleString()})]})]}),(0,Pe.jsx)("div",{className:"mt-4",children:(0,Pe.jsx)(zxe,{pct:s.usage_pct,thresholdState:s.threshold_state,warnPct:s.warn_pct,urgentPct:s.urgent_pct})}),F&&(0,Pe.jsx)("div",{className:"mt-4 rounded-md px-3 py-2 text-xs font-brand",style:{background:"exhausted"===s.threshold_state||"urgent"===s.threshold_state?"#FEF2F2":"#FFFBEB",color:"exhausted"===s.threshold_state||"urgent"===s.threshold_state?Ixe:Txe,border:"1px solid ".concat("exhausted"===s.threshold_state||"urgent"===s.threshold_state?"#FECACA":"#FDE68A")},"data-testid":"billing-threshold-".concat(s.threshold_state),children:F}),C&&(0,Pe.jsx)("div",{className:"mt-3 rounded-md px-3 py-2 text-xs font-brand",style:{background:"#F5FAFF",color:Mxe,border:"1px solid #DBEAFE"},"data-testid":"billing-projected-usage",children:C}),(0,Pe.jsxs)("div",{className:"mt-5 grid grid-cols-2 md:grid-cols-3 gap-3",children:[(0,Pe.jsx)(qxe,{label:"Included / mo",value:s.included_allowance.toLocaleStr
2ing(),hint:"Resets every billing period",testid:"billing-stat-included"}),(0,Pe.jsx)(qxe,{label:"Packs remaining",value:s.pack_balance.toLocaleString(),hint:"Owned by your organization",testid:"billing-stat-packs"}),(0,Pe.jsx)(qxe,{label:"Total available",value:s.total_available.toLocaleString(),hint:"Included + purchased packs",testid:"billing-stat-total"})]})]}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-packs-card",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:"Additional applicant analyses"}),(0,Pe.jsx)("div",{className:"mt-1 text-lg font-semibold",style:{color:Mxe},children:"Purchase additional capacity on demand."}),(0,Pe.jsx)("p",{className:"mt-2 text-sm font-brand",style:{color:Oxe},children:"Packs are owned by your organization and applied automatically after your included monthly allowance. They never expire while your subscription is active."}),(0,Pe.jsx)("div",{className:"mt-5 grid grid-cols-1 md:grid-cols-3 gap-3",children:Zxe.map(e=>(0,Pe.jsxs)("div",{className:"rounded-xl p-4",style:{border:"1px solid ".concat(Pxe),background:"#F9FAFB"},"data-testid":"billing-pack-".concat(e.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsxs)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:[e.analyses.toLocaleString()," analyses"]}),e.popular&&(0,Pe.jsx)("span",{className:"text-[9px] uppercase tracking-[0.18em] font-mono font-semibold px-2 py-0.5 rounded",style:{background:"#EFF6FF",color:Lxe},children:"Most flexible"})]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xl font-semibold",style:{color:Mxe},children:["$",e.price]}),(0,Pe.jsx)(Lo,{onClick:g?()=>(async e=>{f(t=>h(h({},t),{},{pack:e}));try{const t=(await Qi.post("/billing/packs/checkout",{pack_slug:e,origin_url:Sxe()})).data;if(null!==t&&void 0!==t&&t.url)return void(window.location.href=t.url);va.error("Could not start pack checkout. Please try again shortly.")}catch(zf){var t,n;const a=null===zf||void 0===zf||null===(t=zf.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;va.error("packs_disabled"===a?"Pack purchases aren't enabled in this environment yet.":"pack_price_not_bootstrapped"===a?"This pack isn't available yet \u2014 try again shortly.":a||"Could not start pack checkout.")}finally{f(e=>h(h({},e),{},{pack:null}))}})(e.slug):void 0,disabled:!g||p.pack===e.slug,className:"mt-3 w-full h-9 text-xs font-semibold",style:g?{background:Lxe,color:"white",borderRadius:8}:{background:Hxe,color:Rxe,borderRadius:8},"data-testid":"billing-pack-".concat(e.slug,"-cta"),children:g?p.pack===e.slug?"Starting checkout\u2026":"Buy ".concat(e.analyses.toLocaleString()," analyses"):"Coming soon"})]},e.slug))})]}),(0,Pe.jsxs)("div",{className:"rounded-xl bg-white p-6",style:{border:"1px solid ".concat(Pxe)},"data-testid":"billing-plan-comparison",children:[(0,Pe.jsx)("div",{className:"text-[10px] font-mono uppercase tracking-[0.22em]",style:{color:Rxe},children:"Plan comparison"}),(0,Pe.jsx)("div",{className:"mt-1 text-lg font-semibold",style:{color:Mxe},children:"Room to grow when you're ready."}),(0,Pe.jsx)("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-3 gap-3",children:Bxe.map(e=>{const t=s.plan_slug===e.slug;return(0,Pe.jsxs)("div",{className:"rounded-xl p-4",style:{border:"1px solid ".concat(t?Lxe:Pxe),background:t?"#F5FAFF":"white"},"data-testid":"billing-plan-comparison-".concat(e.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pe.jsx)("div",{className:"text-[11px] font-mono uppercase tracking-[0.22em] font-semibold",style:{color:t?Lxe:Rxe},children:e.name}),t&&(0,Pe.jsx)("span",{className:"text-[9px] uppercase tracking-[0.18em] font-mono font-semibold px-2 py-0.5 rounded",style:{background:"#EFF6FF",color:Lxe},children:"Current"})]}),(0,Pe.jsxs)("div",{className:"mt-2 text-2xl font-semibold",style:{color:Mxe},children:["$",e.price,(0,Pe.jsx)("span",{className:"text-xs font-normal ml-1",style:{color:Rxe},children:"/ month"})]}),(0,Pe.jsxs)("ul",{className:"mt-3 space-y-1 text-xs font-brand",style:{color:Oxe},children:[(0,Pe.jsxs)("li",{children:[e.jobs," active jobs"]}
2),(0,Pe.jsxs)("li",{children:[e.analyses.toLocaleString()," analyses / month"]})]})]},e.slug)})}),(0,Pe.jsx)("p",{className:"mt-4 text-xs font-brand",style:{color:Rxe},children:"Upgrades take effect immediately with a prorated charge. Downgrades take effect at the end of the current period. Purchased packs move with you."})]})]})}function Wxe(){return Uy({title:"Plans & Billing \xb7 AROS",description:"Manage your AROS subscription, view review usage, and purchase Candidate Review Packs.",canonical:"/app/billing",robots:"noindex,nofollow"}),(0,Pe.jsx)("div",{className:"min-h-full py-8 px-4 sm:px-6 lg:px-8","data-testid":"billing-page",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,Pe.jsxs)("div",{className:"mb-6",children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em]",style:{color:"#041C3A"},children:"Plans & Billing"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Your subscription, review balance, and optional Candidate Review Packs."})]}),(0,Pe.jsx)(Uxe,{})]})})}const Yxe="".concat("https://www.getaros.ai","/api"),Kxe="#041C3A";function Gxe(){const e="login"===Ue(Xn(),1)[0].get("from"),t=Ue((0,o.useState)(null),2),n=t[0],a=t[1],r=Ue((0,o.useState)(""),2),i=r[0],s=r[1],l=Ue((0,o.useState)(!1),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1];Uy({title:"Candidate access \xb7 AROS",description:"AROS is a hiring platform used by the employer you applied to. If you applied through AROS, you already have secure access \u2014 request a new access link if you can't find yours.",canonical:"/for-candidates"}),(0,o.useEffect)(()=>{(async()=>{try{const e=await Ki.post("".concat(Yxe,"/candidate-access/recover"),{email:""},{validateStatus:()=>!0});a(503!==e.status)}catch(e){a(!1)}})()},[]);return(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("div",{className:"max-w-2xl mx-auto px-6 py-16","data-testid":"for-candidates-page",children:[e&&(0,Pe.jsx)("div",{className:"mb-6 rounded-md border border-amber-300 bg-amber-50 p-4 text-sm text-amber-900","data-testid":"from-login-notice",children:"AROS doesn't use candidate accounts. Candidates access their applications through a secure link sent by the employer they applied to. Use the form below if you can't find yours."}),(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold text-slate-500",children:"Candidate access"}),(0,Pe.jsx)("h1",{className:"mt-2 font-brand font-bold text-3xl sm:text-4xl tracking-[-0.022em]",style:{color:Kxe},children:"AROS is not a job board."}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-4 text-base leading-relaxed text-slate-700",children:[(0,Pe.jsx)("p",{children:"AROS is a hiring platform used by the employer you applied to. If you submitted an application to a company that uses AROS, you already have candidate access \u2014 it lives on the timeline for that specific application, not in a general account."}),(0,Pe.jsx)("p",{children:"Your recruiter sends you a secure access link when they want you to see your interview stage, upload evidence, or review your Career DNA profile. If you've lost that email, you can request a new one below."})]}),(0,Pe.jsxs)("div",{className:"mt-10",children:[null===n&&(0,Pe.jsx)("div",{className:"text-sm text-slate-500","data-testid":"candidate-access-loading",children:"Checking availability\u2026"}),!1===n&&(0,Pe.jsx)("div",{className:"rounded-md border border-slate-200 bg-slate-50 p-5 text-sm text-slate-700","data-testid":"candidate-access-flag-off",children:"Candidates normally access AROS through the secure link sent in connection with their application. If you can't find that link, please reach out to the employer you applied to \u2014 they can send you a new one."}),!0===n&&!m&&(0,Pe.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),i.trim()){d(!0);try{await Ki.post("".concat(Yxe,"/candidate-access/recover"),{email:i})}catch(t){}d(!1),p(!0)}},className:"rounded-md border border-slate-200 p-5","data-testid":"candidate-recovery-form",children:[(0,Pe.jsx)("label",{className:"block text-sm font-medium text-slate-800 mb-2",children:"Email address used on your application"}),(0,Pe.jsx)(Io,{type:"email",value:i,onChange:e=>s(e.target.value),placeholder:"[email protected]","data-testid":"candidate-recovery-email",required:!0}),(0,Pe.jsx)(Lo,{type:"submit",className:"mt-3",style:{background:Kxe,color:"white"},disabled:c,"data-testid":"candidate-recovery-submit",children:c?"Sending\u2026":"Send secure access link"}),(0,Pe.jsx)("p",{className:"mt-3 text-xs text-slate-500",children:"We don't confirm whether an email is registered. If we find applications connected to it, we'll send the link."})]}),!0===n&&m&&(0,Pe.jsx)("div",{className:"rounded-md border border-emerald-300 bg-emerald-50 p-5 text-sm text-emerald-900","data-testid":"candidate-recovery-submitted",children:"If we found an application connected to that email address, we'll send you a secure access link. Check your inbox in the next few minutes."})]}),(0,Pe.jsxs)("div",{className:"mt-16 border-t border-slate-200 pt-6 text-xs text-slate-500",children:["AROS doesn't publicly list jobs. Companies that hire through AROS post roles on their own careers page or job boards; you apply there, and AROS is the system they use behind the scenes to review your application."," ",(0,Pe.jsx)(Yn,{to:"/",className:"underline",children:"Back to home"})]})]})})}const $xe="".concat("https://www.getaros.ai","/api"),Qxe="#041C3A";function Xxe(){const e=Ue(Xn(),1)[0],t=zt(),n=e.get("token")||"",a=Ue((0,o.useState)(null),2),r=a[
20],i=a[1],s=Ue((0,o.useState)(!1),2),l=s[0],c=s[1],d=Ue((0,o.useState)(null),2),u=d[0],m=d[1];Uy({title:"Continue to your application \xb7 AROS",canonical:"/candidate-access/verify",robots:"noindex,nofollow"}),(0,o.useEffect)(()=>{n?(async()=>{try{const e=await Ki.get("".concat($xe,"/candidate-access/verify"),{params:{token:n}});i(e.data)}catch(e){i({ok:!1})}})():i({ok:!1})},[n]);return(0,Pe.jsx)(Jy,{children:(0,Pe.jsxs)("div",{className:"max-w-xl mx-auto px-6 py-20","data-testid":"candidate-verify-page",children:[null===r&&(0,Pe.jsx)("div",{className:"text-slate-500 text-sm","data-testid":"verify-loading",children:"Checking your link\u2026"}),r&&!1===r.ok&&(0,Pe.jsxs)("div",{className:"rounded-md border border-red-300 bg-red-50 p-5","data-testid":"verify-invalid",children:[(0,Pe.jsx)("div",{className:"font-semibold text-red-800",children:"This link isn't valid"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-red-700",children:"It may have expired, been used already, or been rewritten by an email scanner. Please request a new link."}),(0,Pe.jsx)(Lo,{className:"mt-3",onClick:()=>t("/for-candidates"),"data-testid":"verify-request-new",children:"Request a new link"})]}),(null===r||void 0===r?void 0:r.ok)&&!u&&(0,Pe.jsxs)("div",{className:"rounded-md border border-slate-200 p-6","data-testid":"verify-continue-panel",children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-2xl",style:{color:Qxe},children:"Continue to your application"}),(0,Pe.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"Click continue to open your application timeline. This link is single-use \u2014 clicking continue below activates your session for the next 60 minutes."}),r.read_only&&(0,Pe.jsx)("p",{className:"mt-2 text-xs text-amber-800 bg-amber-50 border border-amber-300 rounded p-2",children:"This application was withdrawn \u2014 the session opens in read-only mode."}),(0,Pe.jsx)(Lo,{className:"mt-4",onClick:async()=>{c(!0);try{var e;const t=await Ki.post("".concat($xe,"/candidate-access/verify"),{token:n},{withCredentials:!0});null!==(e=t.data)&&void 0!==e&&e.ok?m(t.data):i({ok:!1})}catch(t){i({ok:!1})}finally{c(!1)}},disabled:l,"data-testid":"verify-continue-btn",style:{background:Qxe,color:"white"},children:l?"Opening\u2026":"Continue to my application"})]}),u&&(0,Pe.jsxs)("div",{className:"rounded-md border border-emerald-300 bg-emerald-50 p-6","data-testid":"verify-success",children:[(0,Pe.jsx)("h1",{className:"font-brand font-bold text-2xl text-emerald-900",children:"You're in"}),(0,Pe.jsxs)("p",{className:"mt-2 text-sm text-emerald-800",children:["Session active until ",new Date(u.session_expires_at).toLocaleTimeString(),"."]}),(0,Pe.jsxs)(Lo,{className:"mt-3",onClick:()=>{u&&t("/candidate/applications/".concat(u.application.id))},"data-testid":"verify-open-application",children:["Open ",u.application.job_title]})]})]})})}const Jxe="#041C3A",ege="#6B7280",tge="#374151",nge="#E5E7EB",age=["future_opportunity"],rge=["qualified_not_selected","not_a_match"],ige=["needs_review"];function sge(e,t,n){return"".concat(e," ").concat(1===e?t:n)}function oge(e){let t=e.title,n=e.names,a=e.emptyText,r=e.testId,i=e.icon,s=e.tone;return n.length?(0,Pe.jsxs)("div",{"data-testid":r,className:"space-y-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pe.jsx)(i,{size:18,weight:"duotone",style:{color:s}}),(0,Pe.jsx)("div",{className:"font-brand font-bold text-sm",style:{color:Jxe},children:t})]}),(0,Pe.jsx)("ul",{className:"space-y-1.5 pl-7",children:n.map((e,t)=>(0,Pe.jsx)("li",{className:"text-sm",style:{color:tge},children:e},"".concat(e,"-").concat(t)))})]}):(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:ege},"data-testid":"".concat(r,"-empty"),children:a})}function lge(e){let t=e.jobTitle,n=e.hiredName,a=e.waiting;const r=n&&"your new hire"!==n;return(0,Pe.jsxs)("div",{className:"rounded-2xl p-7 mb-8",style:{background:"#F5F8FF",border:"1px solid #C7D7F4"},"data-testid":"owner-ctl-hero",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.2em] font-mono font-semibold mb-1",style:{color:"#4F6FB0"}
2,children:r?"Finish the hire":"Wrap up this hiring round"}),(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em]",style:{color:Jxe},children:r?(0,Pe.jsxs)(Pe.Fragment,{children:["You hired ",n,"."]}):(0,Pe.jsx)(Pe.Fragment,{children:"Close out the remaining applicants."})}),t&&(0,Pe.jsxs)("div",{className:"text-sm font-mono mt-1",style:{color:ege},children:["for ",t]}),a>0?(0,Pe.jsxs)("div",{className:"text-base mt-3",style:{color:tge},"data-testid":"owner-ctl-waiting-line",children:[sge(a,"applicant is","applicants are")," still waiting for an update."]}):(0,Pe.jsx)("div",{className:"text-base mt-3",style:{color:tge},children:"Nice \u2014 no one is waiting on you. You're all caught up."})]})}function cge(e){let t=e.keepCount,n=e.updateCount,a=e.reviewCount;return(0,Pe.jsxs)("div",{className:"rounded-xl p-6 bg-white",style:{border:"1px solid ".concat(nge)},"data-testid":"owner-ctl-recommendation",children:[(0,Pe.jsx)("div",{className:"font-brand font-bold text-base mb-3",style:{color:Jxe},children:"AROS recommends:"}),(0,Pe.jsxs)("ul",{className:"space-y-2.5",children:[(0,Pe.jsxs)("li",{className:"flex items-start gap-3","data-testid":"owner-ctl-recommend-keep",children:[(0,Pe.jsx)(Uoe,{size:20,weight:"duotone",style:{color:"#7C3AED",marginTop:1}}),(0,Pe.jsx)("span",{className:"text-sm",style:{color:tge},children:t>0?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("strong",{style:{color:Jxe},children:[t," strong ",1===t?"candidate":"candidates"]})," worth keeping for future opportunities"]}):"No one stood out for future opportunities right now"})]}),(0,Pe.jsxs)("li",{className:"flex items-start gap-3","data-testid":"owner-ctl-recommend-update",children:[(0,Pe.jsx)(OF,{size:20,weight:"duotone",style:{color:"#0369A1",marginTop:1}}),(0,Pe.jsx)("span",{className:"text-sm",style:{color:tge},children:n>0?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)("strong",{style:{color:Jxe},children:[n," ",1===n?"applicant":"applicants"]})," ready for a final update"]}):"No final updates needed"})]}),a>0&&(0,Pe.jsxs)("li",{className:"flex items-start gap-3","data-testid":"owner-ctl-recommend-review",children:[(0,Pe.jsx)(AN,{size:20,weight:"duotone",style:{color:"#B45309",marginTop:1}}),(0,Pe.jsxs)("span",{className:"text-sm",style:{color:tge},children:[(0,Pe.jsxs)("strong",{style:{color:Jxe},children:[a," ",1===a?"applicant":"applicants"]})," AROS isn't sure about yet \u2014 give them a quick look first"]})]})]})]})}function dge(e){let t=e.keepDone,n=e.updateDone,a=e.hiredName,r=e.onDismiss;return(0,Pe.jsxs)("div",{className:"rounded-2xl p-7 bg-white text-center",style:{border:"1px solid #A7F3D0",background:"#F0FDF4"},"data-testid":"owner-ctl-complete",children:[(0,Pe.jsx)(Yf,{size:44,weight:"duotone",style:{color:"#047857",margin:"0 auto"}}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-2xl tracking-[-0.018em] mt-3",style:{color:Jxe},children:"Loop closed."}),(0,Pe.jsxs)("p",{className:"text-sm mt-2",style:{color:tge},"data-testid":"owner-ctl-complete-summary",children:["You hired ",a||"a great candidate"," and made sure everyone else got an answer."]}),(0,Pe.jsxs)("div",{className:"text-xs font-mono mt-3",style:{color:ege},children:[t>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[sge(t,"candidate","candidates")," kept for future \xb7 "]}),n>0&&(0,Pe.jsxs)(Pe.Fragment,{children:[sge(n,"applicant","applicants")," heard back"]}),0===t&&0===n&&"Nothing more to do \u2014 you're all caught up."]}),(0,Pe.jsx)(Lo,{className:"mt-5",onClick:r,"data-testid":"owner-ctl-complete-done",style:{background:Jxe,color:"white",borderRadius:10},children:"Back to hiring"})]})}function uge(){var e;const t=qt().jobId,n=zt(),a=Ue((0,o.useState)(null),2),r=a[0],i=a[1],s=Ue((0,o.useState)(!0),2),l=s[0],c=s[1],d=Ue((0,o.useState)(!1),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1],x=Ue((0,o.useState)(""),2),g=x[0],v=x[1],b=Ue((0,o.useState)(null),2),y=b[0],j=b[1],w=Ue((0,o.useState)([]),2),N=w[0],A=w[1],k=Ue((0,o.useState)(()=>"owner-".concat(t,"-").concat(Date.now())),1)[0];(0,o.useEffect)(()=>{let e=!0;return(async()=>{try{const n=await Qi.get("/jobs/".concat(t,"/close-the-loop/preview"));if(!e)return;i(n.data)}catch($ge){var n,a;v((null===$ge||void 0===$ge||null===(n=$ge.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Couldn't load the workflow.")}finally{e&&c(!1)}try{const n=await Qi.get("/applications/by-job/".concat(t));e&&A(n.data||[])}catch(r){e&&A([])}})(),()=>{e=!1}},[t]);const E=(0,o.useMemo)(()=>function(e){const t=t=>t.flatMap(t=>(null===e||void 0===e?void 0:e[t])||[]);return{keep:t(age),update:t(rge),review:t(ige)}}((null===r||void 0===r?void 0:r.groups)||{}),[r]),D=(0,o.useMemo)(()=>function(e){const t=t=>t.reduce((t,n)=>t+((null===e||void 0===e?void 0:e[n])||0),0);return{keep:t(age),update:t(rge),review:t(ige)}}((null===r||void 0===r?void 0:r.counts)||{}),[r]),_=(D.keep||0)+(D.update||0)+(D.review||0),C=(null===r||void 0===r||null===(e=r.job)||void 0===e?void 0:e.title)||"",F=(0,o.useMemo)(()=>{const e={};
2return(N||[]).forEach(t=>{e[t.id||t._id]=t.candidate_name||""}),e},[N]),S=(0,o.useMemo)(()=>{var e;const t=(null===r||void 0===r||null===(e=r.groups)||void 0===e?void 0:e.hired)||[];if(!t.length)return"your new hire";return F[t[0]]||"your new hire"},[r,F]),M=(D.review||0)>0,O=(0,o.useMemo)(()=>{const e=e=>e.map(e=>F[e]||"Anonymous applicant");return{keep:e(E.keep),update:e(E.update),review:e(E.review)}},[E,F]);return l?(0,Pe.jsx)("div",{className:"px-6 lg:px-10 py-12 max-w-3xl mx-auto","data-testid":"owner-ctl-loading",children:(0,Pe.jsx)("div",{className:"text-sm font-mono",style:{color:ege},children:"Loading\u2026"})}):y?(0,Pe.jsx)("div",{className:"px-6 lg:px-10 py-12 max-w-2xl mx-auto",children:(0,Pe.jsx)(dge,{keepDone:y.keepDone,updateDone:y.updateDone,hiredName:S,onDismiss:()=>n("/app/owner")})}):(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-10 max-w-3xl mx-auto","data-testid":"owner-ctl-page",children:[(0,Pe.jsxs)("button",{onClick:()=>n("/app/owner"),className:"text-xs font-mono inline-flex items-center gap-1 mb-4",style:{color:ege},"data-testid":"owner-ctl-back",children:[(0,Pe.jsx)(nw,{size:14,weight:"bold"})," Back to hiring"]}),(0,Pe.jsx)(lge,{jobTitle:C,hiredName:S,waiting:_}),0===_?(0,Pe.jsx)("div",{className:"rounded-xl p-6 bg-white text-sm",style:{border:"1px solid ".concat(nge),color:tge},"data-testid":"owner-ctl-empty",children:"Nobody is waiting for an update on this role. Nothing for you to do here."}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"mb-5",children:(0,Pe.jsx)(cge,{keepCount:D.keep,updateCount:D.update,reviewCount:D.review})}),u&&(0,Pe.jsxs)("div",{className:"rounded-xl p-5 mb-5 bg-white space-y-5",style:{border:"1px solid ".concat(nge)},"data-testid":"owner-ctl-review-panel",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:ege},children:"Who AROS is recommending"}),(0,Pe.jsx)(oge,{title:"Worth keeping for future",names:O.keep,emptyText:"No one in this group.",testId:"owner-ctl-review-keep",icon:Uoe,tone:"#7C3AED"}),(0,Pe.jsx)(oge,{title:"Ready for a final update",names:O.update,emptyText:"No one in this group.",testId:"owner-ctl-review-update",icon:OF,tone:"#0369A1"}),O.review.length>0&&(0,Pe.jsx)(oge,{title:"Take a look at these first",names:O.review,emptyText:"None",testId:"owner-ctl-review-needs",icon:AN,tone:"#B45309"})]}),g&&(0,Pe.jsx)("div",{className:"rounded-lg p-4 mb-5 text-sm",style:{background:"#FEF2F2",border:"1px solid #FECACA",color:"#991B1B"},"data-testid":"owner-ctl-error",children:g}),(0,Pe.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3","data-testid":"owner-ctl-actions",children:[(0,Pe.jsx)(Lo,{variant:"outline",onClick:()=>m(e=>!e),"data-testid":"owner-ctl-review-toggle",style:{borderColor:Jxe,color:Jxe,borderRadius:10},children:u?"Hide recommendations":"Review recommendations"}),(0,Pe.jsx)(Lo,{onClick:async()=>{f(!0),v("");try{var e,n,a,r,i,s,o;const l={entry_point:"owner_post_hire",idempotency_key:k,per_group_decisions:{future_opportunity:{action:"save_to_future"},qualified_not_selected:{action:"send_closure",reason_code:"moving_forward"},not_a_match:{action:"send_closure",reason_code:"moving_forward"}}},c=(null===(e=(await Qi.post("/jobs/".concat(t,"/close-the-loop/execute"),l)).data)||void 0===e?void 0:e.per_group_outcomes)||{};j({keepDone:(null===(n=c.future_opportunity)||void 0===n||null===(a=n.summary)||void 0===a?void 0:a.succeeded)||0,updateDone:((null===(r=c.qualified_not_selected)||void 0===r||null===(i=r.summary)||void 0===i?void 0:i.succeeded)||0)+((null===(s=c.not_a_match)||void 0===s||null===(o=s.summary)||void 0===o?void 0:o.succeeded)||0)})}catch($ge){var l,c,d,u;const t=null===$ge||void 0===$ge||null===(l=$ge.response)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.detail;429===(null===$ge||void 0===$ge||null===(d=$ge.response)||void 0===d?void 0:d.status)?v("object"===typeof t?t.message:"Slow down \u2014 too many closures recently."):409===(null===$ge||void 0===$ge||null===(u=$ge.response)||void 0===u?void 0:u.status)?v("A few applicants still need a quick review before we can close the loop."):v("string"===typeof t?t:"Something went wrong. Try again in a moment.")}finally{f(!1)}},disabled:h||M,"data-testid":"owner-ctl-confirm",style:{background:M?"#9CA3AF":Jxe,color:"white",borderRadius:10,flex:1},children:h?"Closing the loop\u2026":"Close the loop"})]}),(0,Pe.jsx)("button",{onClick:()=>n("/app/owner"),className:"block mx-auto mt-6 text-xs font-mono",style:{color:ege},"data-testid":"owner-ctl-not-now",children:"Not right now \u2014 I'll come back to this"})]}),(0,Pe.jsx)("div",{className:"mt-10 text-[11px] font-mono text-center",style:{color:ege},children:"AROS makes sure nobody falls through the cracks."})]})}const mge=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z",opacity:"0.2"}),o.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-1
27.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-1
27.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z"}))]]),pge=o.forwardRef((e,t)=>o.createElement(Bf,h(h({ref:t},e),{},{weights:mge})));pge.displayName="WrenchIcon";const hge={general:Cg,insurance:XP,healthcare:rle,manufacturing:pge,retail:nv,professional_services:ux,automotive:BH};function fge(){var e;const t=es().user,n=zt(),a=Ue((0,o.useState)([]),2),r=a[0],i=a[1],s=Ue((0,o.useState)(null),2),l=s[0],c=s[1],d=Ue((0,o.useState)(""),2),u=d[0],m=d[1],p=Ue((0,o.useState)(!1),2),h=p[0],f=p[1],x=Ue((0,o.useState)(!0),2),g=x[0],v=x[1];(0,o.useEffect)(()=>{(async()=>{try{const e=Ue(await Promise.all([Qi.get("/industry-templates"),Qi.get("/employer/me/organization")]),2),t=e[0],n=e[1];i(t.data.templates||[]),c(n.data),m(n.data.industry_template||"general")}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not load onboarding")}finally{v(!1)}})()},[]),(0,o.useEffect)(()=>{t&&"recruiter"===t.role&&n("/app/employer",{replace:!0})},[t,n]);const b=!(null===l||void 0===l||!l.industry_template_confirmed_at);return g?(0,Pe.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,Pe.jsx)("div",{className:"text-sm text-muted-foreground",children:"Loading\u2026"})}):(0,Pe.jsx)("div",{className:"min-h-screen bg-[#FAFAFA]","data-testid":"industry-onboarding-page",children:(0,Pe.jsxs)("div",{className:"max-w-5xl mx-auto px-6 py-12",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"STEP 1 OF 1 \xb7 ONBOARDING"}),(0,Pe.jsxs)("h1",{className:"font-display font-bold text-4xl sm:text-5xl mt-2 tracking-tight flex items-center gap-3",children:[(0,Pe.jsx)(lv,{size:32,weight:"duotone",className:"text-[#0F4FA8]"})," Tell us about your organization"]}),(0,Pe.jsxs)("p",{className:"text-muted-foreground mt-3 max-w-2xl text-lg leading-relaxed",children:["Pick the industry that best matches ",(0,Pe.jsx)("strong",{children:null===l||void 0===l?void 0:l.name}),". We'll personalise your Guided Tour, sample jobs, demo candidates, AI suggestions, and empty-state content. You can change this any time."]}),(0,Pe.jsxs)("div",{className:"mt-5 border border-[#0F4FA8]/30 bg-[#0F4FA8]/[0.04] rounded-md p-4 flex items-start gap-3","data-testid":"onboarding-precedence-note",children:[(0,Pe.jsx)(bA,{size:16,weight:"duotone",className:"text-[#0F4FA8] shrink-0 mt-0.5"}),(0,Pe.jsxs)("p",{className:"text-sm leading-relaxed",children:[(0,Pe.jsx)("strong",{children:"This helps personalize your experience. AROS will learn about your organization over time."})," ","Picking a template never overrides what AROS learns about you later \u2014 your Company Intelligence Profile and your outcome data are always the source of truth."]})]}),(0,Pe.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3","data-testid":"onboarding-template-grid",children:r.map(e=>{const t=hge[e.slug]||Cg,n=u===e.slug;return(0,Pe.jsxs)("button",{type:"button",onClick:()=>m(e.slug),className:"text-left border-2 rounded-md p-5 transition-all bg-white ".concat(n?"border-[#0F4FA8] shadow-md ring-2 ring-[#0F4FA8]/20":"border-border hover:border-[#0F172A]"),"data-testid":"onboarding-template-".concat(e.slug),children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Pe.jsx)(t,{size:22,weight:"duotone",className:n?"text-[#0F4FA8]":"text-[#0F172A]"}),n&&(0,Pe.jsx)(Yf,{size:18,weight:"fill",className:"text-[#0F4FA8]","data-testid":"onboarding-template-".concat(e.slug,"-check")})]}),(0,Pe.jsxs)("div",{className:"font-display font-semibold text-base mt-3 flex items-center gap-2",children:[e.label,e.is_default&&(0,Pe.jsx)("span",{className:"pill bg-emerald-50 border border-emerald-200 text-emerald-900 text-[9px] uppercase tracking-wider font-mono",children:"Default"})]}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5 leading-relaxed",children:e.description}),(0,Pe.jsxs)("div",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground mt-3",children:[e.sample_job_count," sample roles"]})]},e.slug)})}),(0,Pe.jsxs)("div",{className:"mt-8 flex items-center justify-between flex-wrap gap-3","data-testid":"onboarding-actions",children:[(0,Pe.jsx)("button",{type:"button",onClick:async()=>{f(!0);try{await Qi.patch("/employer/me/organization",{industry_template:"general"}),n("/app/employer",{replace:!0})}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not skip")}finally{f(!1)}},disabled:h,className:"text-sm text-muted-foreground hover:text-foreground underline underline-offset-4","data-testid":"onboarding-skip",children:"Skip \u2014 use the General template"}),(0,Pe.jsx)(Lo,{onClick:async()=>
2{if(u){f(!0);try{await Qi.patch("/employer/me/organization",{industry_template:u}),va.success("Got it \u2014 personalising AROS for your team."),n("/app/employer",{replace:!0})}catch(zf){var e,t;va.error((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not save your selection")}finally{f(!1)}}else va.error("Pick an industry template to continue.")},disabled:h||!u,"data-testid":"onboarding-continue",className:"bg-[#0F4FA8] hover:bg-[#0035cc] text-white rounded-md px-6",size:"lg",children:h?"Saving\u2026":(0,Pe.jsxs)(Pe.Fragment,{children:["Continue with ",(null===(e=r.find(e=>e.slug===u))||void 0===e?void 0:e.label)||"General"," ",(0,Pe.jsx)(eg,{size:16,className:"ml-1.5",weight:"bold"})]})})]}),b&&(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-4","data-testid":"onboarding-already-confirmed",children:"You've already completed onboarding. Re-selecting will update your defaults \u2014 your generated Company Intelligence and learned data are unaffected."})]})})}function xge(){return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-10 max-w-3xl","data-testid":"messages-page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"MESSAGES"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",children:"Candidate communication"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-xl",children:"AROS handles outbound candidate communication directly from each candidate's profile \u2014 interview invites, rejection emails, and hiring-manager handoffs are recorded against the application timeline. A dedicated inbox is on the roadmap."}),(0,Pe.jsxs)("div",{className:"mt-8 grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Pe.jsxs)(Yn,{to:"/app/employer/applicants",className:"rounded-xl border border-border bg-white p-5 hover:border-[#1E3A8A] transition-colors","data-testid":"messages-link-candidates",children:[(0,Pe.jsx)(xH,{size:22,weight:"duotone",className:"text-[#1E3A8A]"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-base mt-3",children:"Message a candidate"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Open the candidate, then choose Interview, Review, Save to bench, or Reject. Every action sends the right message at the right moment."})]}),(0,Pe.jsxs)(Yn,{to:"/app/employer/applicants",className:"rounded-xl border border-border bg-white p-5 hover:border-[#1E3A8A] transition-colors","data-testid":"messages-link-pipeline",children:[(0,Pe.jsx)(Nx,{size:22,weight:"duotone",className:"text-[#1E3A8A]"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-base mt-3",children:"Bulk pipeline communication"}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Use the bucket-level banner on the Candidates view to send all candidates in a bucket to a hiring manager, screening, or polite rejection."})]})]})]})}const gge=[{to:"/app/employer/outcome-intelligence",icon:Bg,label:"Hiring outcomes",body:"How the evidence AROS surfaced tracks with actual hiring outcomes.",testid:"insights-card-outcomes"},{to:"/app/employer/evidence-readiness",icon:iy,label:"Outcome confidence",body:"Confidence in AROS's evidence summaries as the evidence base grows.",testid:"insights-card-confidence"},{to:"/app/employer/performance",icon:Noe,label:"Hiring momentum",body:"Pace, throughput, and bottlenecks across your open roles.",testid:"insights-card-performance"},{to:"/app/employer/digest",icon:Uoe,label:"Hiring health",body:"A weekly summary of what changed and what needs your attention.",testid:"insights-card-digest"},{to:"/app/employer/feedback",icon:uv,label:"Hiring manager feedback",body:"What the hiring managers said about the candidates AROS surfaced.",testid:"insights-card-feedback"},{to:"/app/employer/company-intelligence",icon:nv,label:"Company context",body:"Roles AROS has found across your company that may need attention.",testid:"insights-card-company"}];function vge(){return(0,Pe.jsxs)("div",{className:"px-6 lg:px-10 py-10 max-w-5xl","data-testid":"insights-page",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-muted-foreground font-mono",children:"INSIGHTS"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl tracking-tight mt-1",children:"How AROS is performing for you"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2 max-w-2xl",children:"See how your hiring process is performing, where decisions are slowing down, and where additional evidence may be needed."}),(0,Pe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mt-8",children:gge.map(e=>{const t=e.icon;return(0,Pe.jsxs)(Yn,{to:e.to,"data-testid":e.testid,className:"group relative rounded-xl border border-border bg-white p-5 hover:border-[#1E3A8A] hover:shadow-sm hover:-translate-y-0.5 transition-all duration-150",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Pe.jsx)(t,{size:22,weight:"duotone",className:"text-[#1E3A8A]"}),(0,Pe.jsx)(eg,{size:16,weight:"bold",className:"text-muted-foreground opacity-60 group-hover:opacity-100 group-hover:translate-x-0.5 transition-all","aria-hidden":"true"})]}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-base mt-3",children:e.label}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.body}),(0,Pe.jsx)("div",{className:"mt-3 text-[11px] font-medium uppercase tracking-wider text-[#1E3A8A] opacity-70 group-hover:opacity-100 transition-opacity","data-testid":"".concat(e.testid,"-cta"),children:"View \u2192"})]},e.to)})})]})}const bge="".concat("https://www.getaros.ai","/api");function yge(){var e,t,n,a,r,i,s,l,c,d;const u=qt().token,m=Ue((0,o.useState)(null),2),p=m[0],h=m[1],f=Ue((0,o.useState)(null),2),x=f[0],g=f[1];if(Uy({title:"Shared Decision Packet \xb7 AROS",robots:"noindex,nofollow,noarchive",referrer:"no-referrer"}),(0,o.useEffect)(()=>{Ki.get("".concat(bge,"/public/packet/").concat(u)).then(e=>h(e.data)).catch(e=>{var t,n,a;return g({status:null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status,detail:(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Unable to load shared packet"})})},[u]),x)return(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-center bg-white p-6",children:(0,Pe.jsxs)("div",{className:"text-center max-w-md","data-testid":"public-packet-error",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Shared Decision Packet"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-2xl mt-2",children:410===x.status?"This link is no longer valid":404===x.status?"Link not found":"Unable to open packet"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:x.detail}),(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground mt-4",children:"Ask the sender to generate a fresh share link."})]})});if(!p)return(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-center text-sm text-muted-foreground",children:"Loading shared packet\u2026"});const v=p.packet,b=p.share,y=v.scores||{},j=(()=>{const e=null===b||void 0===b?void 0:b.sender_name,t=null===b||void 0===b?void 0:b.shared_at;if(!e&&!t)return null;const n=[];if(e&&n.push("Shared by ".concat(e)),t)try{n.push("on ".concat(new Date(t).toLocaleDateString()))}catch(a){}return n.join(" ")})();return(0,Pe.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,Pe.jsx)("div",{className:"no-print bg-[#0F172A] text-white py-2 px-6 text-xs text-center",children:(0,Pe.jsx)("span",{className:"font-mono uppercase tracking-wider text-white/70",children:"AROS Shared Decision Packet \xb7 Read-only \xb7 Name shortened for privacy"})}),(0,Pe.jsxs)("div",{className:"dp-root px-6 lg:px-10 py-8 max-w-5xl mx-auto","data-testid":"public-packet",children:[(0,Pe.jsx)("div",{className:"no-print flex items-center justify-end mb-4",children:(0,Pe.jsxs)("button",{"data-testid":"public-packet-print-btn",onClick:()=>window.print(),className:"inline-flex items-center gap-1.5 text-sm border border-[#0F172A] hover:bg-[#0F172A] hover:text-white rounded-md px-3 py-1.5",children:[(0,Pe.jsx)(Bse,{size:14,weight:"duotone"})," Print"]})}),(0,Pe.jsxs)("header",{className:"dp-header border-b border-border pb-5",children:[(0,Pe.jsxs)("div",{className:"flex items-start justify-between gap-6 flex-wrap",children:[(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono",children:"AROS \u2014 Decision Packet \xb7 Shared View"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-3xl mt-1 tracking-tight","data-testid":"public-packet-name",children:null===(e=v.candidate)||void 0===e?void 0:e.name}),(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-0.5",children:[(null===(t=v.candidate)||void 0===t?void 0:t.headline)||"\u2014"," ",null!==(n=v.candidate)&&void 0!==n&&n.years_experience?"\xb7 ".concat(v.candidate.years_experience," yrs"):""]}),(0,Pe.jsxs)("div",{className:"mt-1 text-xs text-muted-foreground",children:["For role: ",(0,Pe.jsx)("span",{className:"font-semibold text-foreground",children:v.job_title})]})]}),j&&(0,Pe.jsxs)("div",{className:"border border-border rounded-md px-4 py-3 text-right bg-secondary/40","data-testid":"public-packet-recommendation",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono opacity-70",children:"SHARED WITH YOU"}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-sm mt-0.5","data-testid":"public-packet-sender-attribution",children:j}),(0,Pe.jsx)("div",{className:"text-[11px] mt-0.5 opacity-80 italic",children:"Evidence organized \xb7 Your team decides."})]})]}),(null===b||void 0===b?void 0:b.note)&&(0,Pe.jsxs)("div",{className:"mt-4 border-l-2 border-[#0F4FA8] pl-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#0F4FA8] font-mono",children:"NOTE FROM SENDER"}),(0,Pe.jsx)("p",{className:"text-sm mt-1 leading-relaxed italic",children:b.note})]}),y.bias_review_note&&(0,Pe.jsxs)("div",{className:"mt-4 inline-flex items-start gap-2 text-xs text-emerald-900 bg-emerald-50 border border-emerald-200 px-3 py-2 rounded","data-testid":"public-packet-bias-review",children:[(0,Pe.jsx)(iy,{size:14,className:"shrink-0 mt-0.5"})," ",(0,Pe.jsxs)("span",{children:["Bias review: ",y.bias_review_note]})]}),(null===b||void 0===b?void 0:b.expires_at)&&(0,Pe.jsxs)("div",{className:"text-[10px] text-muted-foreground font-mono mt-3",children:["Expires ",new Date(b.expires_at).toLocaleDateString()," \xb7 View #",null===b||void 0===b?void 0:b.view_count]})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(jge,{icon:(0,Pe.jsx)(ux,{size:14,weight:"duotone"}),label:"EXECUTIVE SUMMARY"}),(0,Pe.jsx)("p",{className:"text-sm leading-relaxed mt-2",children:v.executive_summary})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(jge,{icon:(0,Pe.jsx)(YH,{size:14,weight:"duotone"}),label:"WHY THIS CANDIDATE MIGHT SUCCEED"}),null!==(a=v.top_reasons_to_hire)&&void 0!==a&&a.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm",children:v.top_reasons_to_hire.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-emerald-600 shrink-0",children:"\u2713"}),(0,Pe.jsx)("span",{children:e})]},t))}):(0,Pe.jsx)(Nge,{children:"AROS didn't surface obvious strengths for this role yet \u2014 worth checking with the recruiter."}),v.hidden_talent_insight&&(0,Pe.jsxs)("div",{className:"mt-3 border-l-2 border-[#0F4FA8] pl-3",children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#0F4FA8] font-mono",children:"HIDDEN TALENT INSIGHT"}),(0,Pe.jsx)("p",{className:"text-sm mt-1 leading-relaxed",children:v.hidden_talent_insight})]})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(jge,{icon:(0,Pe.jsx)(dM,{size:14,weight:"duotone"}),label:"AREAS TO VALIDATE"}),null!==(r=v.areas_to_validate)&&void 0!==r&&r.length?(0,Pe.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm",children:v.areas_to_validate.map((e,t)=>(0,Pe.jsxs)("li",{className:"flex gap-2",children:[(0,Pe.jsx)("span",{className:"text-amber-600 shrink-0",children:"!"}),(0,Pe.jsx)("span",{children:e})]},t))}):(0,Pe.jsx)(Nge,{children:"No specific concerns were raised."})]}),(null===(i=v.candidate)||void 0===i||null===(s=i.context_flags)||void 0===s?void 0:s.length)>0&&(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(jge,{icon:(0,Pe.jsx)(TH,{size:14,weight:"duotone"}),label:"HUMAN CONTEXT"}),(0,Pe.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:v.candidate.context_flags.map(e=>(0,Pe.jsx)("span",{className:"pill bg-secondary border border-border text-[11px]",children:e.replace(/_/g," ")},e))})]}),(0,Pe.jsxs)("section",{className:"dp-section mt-6",children:[(0,Pe.jsx)(jge,{icon:(0,Pe.jsx)(Vie,{size:14,weight:"duotone"}),label:"INTERVIEW GUIDE"}),(0,Pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-3",children:[(0,Pe.jsx)(wge,{title:"Behavioral",items:null===(l=v.interview_guide)||void 0===l?void 0:l.behavioral}),(0,Pe.jsx)(wge,{title:"Skills",items:null===(c=v.interview_guide)||void 0===c?void 0:c.skills}),(0,Pe.jsx)(wge,{title:"Context",items:null===(d=v.interview_guide)||void 0===d?void 0:d.context})]})]}),(0,Pe.jsx)("footer",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider border-t border-border pt-3 mt-10",children:"AROS Decision Packet \xb7 Read-only shared view \xb7 Decision support \u2014 not a hiring decision \xb7 Identifying details have been minimized"})]}),(0,Pe.jsx)(Kx,{source:"public-packet",packetToken:u,anonymous:!0})]})}function jge(e){let t=e.icon,n=e.label;return(0,Pe.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] uppercase tracking-[0.25em] text-muted-foreground font-mono font-semibold",children:[t," ",n]})}function wge(e){let t=e.title,n=e.items;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.2em] font-mono font-semibold text-[#0F4FA8]",children:t}),null!==n&&void 0!==n&&n.length?(0,Pe.jsx)("ol",{className:"mt-2 space-y-1.5 text-sm list-decimal pl-4",children:n.map((e,t)=>(0,Pe.jsx)("li",{className:"leading-relaxed",children:e},t))}):(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2",children:"\u2014"})]})}function Nge(e){let t=e.children;return(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground mt-2 italic",children:t})}const Age="https://www.getaros.ai";function kge(e){let t=e.title,n=e.children,a=e.testid;return(0,Pe.jsxs)("section",{className:"mt-6","data-testid":a,children:[(0,Pe.jsx)("h3",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono",children:t}),(0,Pe.jsx)("div",{className:"mt-2",children:n})]})}function Ege(){const e=qt().token,t=Ue((0,o.useState)({loading:!0,error:null,data:null}),2),n=t[0],a=t[1],r=Ue((0,o.useState)(null),2),i=r[0],s=r[1],l=Ue((0,o.useState)(""),2),c=l[0],d=l[1],u=Ue((0,o.useState)(!1),2),m=u[0],p=u[1];Uy({title:"Hiring Manager Review \xb7 AROS",robots:"noindex,nofollow,noarchive",referrer:"no-referrer"}),(0,o.useEffect)(()=>{(async()=>{try{var t;const n=await fetch("".concat(Age,"/api/hm/share/").concat(e));if(410===n.status){const e=((await n.json().catch(()=>({}))).detail||"").toLowerCase().includes("revoked")?"This link has been revoked.":"This link has expired.";return void a({loading:!1,error:e,data:null})}if(404===n.status)return void a({loading:!1,error:"Link not found.",data:null});if(429===n.status)return void a({loading:!1,error:"Too many requests \u2014 please wait a moment and refresh.",data:null});if(!n.ok)return void a({loading:!1,error:"Couldn't load this application.",data:null});const r=await n.json();a({loading:!1,error:null,data:r}),null!==(t=r.link)&&void 0!==t&&t.decision&&s(r.link.decision)}catch(n){a({loading:!1,error:"Couldn't load this application.",data:null})}})()},[e]);if(n.loading)return(0,Pe.jsx)("div",{className:"p-10 text-sm text-muted-foreground",children:"Loading\u2026"});if(n.error)return(0,Pe.jsx)("div",{className:"min-h-screen flex items-c
2enter justify-center px-6","data-testid":"hm-share-error",children:(0,Pe.jsxs)(vO,{className:"p-10 max-w-md text-center",children:[(0,Pe.jsx)(Vj,{size:40,weight:"duotone",className:"mx-auto text-red-600"}),(0,Pe.jsx)("div",{className:"mt-4 font-display text-2xl",children:n.error}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"Ask your recruiter to send a fresh link."})]})});const h=n.data,f=h.candidate,x=h.job,g=h.link,v=h.requested_by_name,b="decided"===(null===g||void 0===g?void 0:g.status);return(0,Pe.jsxs)("div",{className:"min-h-screen bg-secondary/40",children:[(0,Pe.jsx)("header",{className:"border-b border-border bg-background",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto px-6 py-4 flex items-center justify-between",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-2 text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono",children:[(0,Pe.jsx)(iy,{size:14,weight:"duotone"})," AROS \xb7 Hiring Manager Review"]}),(0,Pe.jsxs)("div",{className:"text-[11px] text-muted-foreground font-mono","data-testid":"hm-requested-by",children:["From ",v||"the hiring team"]})]})}),(0,Pe.jsxs)("main",{className:"max-w-3xl mx-auto px-6 py-10","data-testid":"hm-share-page",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono",children:"Candidate"}),(0,Pe.jsx)("h1",{className:"font-display font-bold text-4xl mt-1","data-testid":"hm-candidate-name",children:f.candidate_name}),(0,Pe.jsx)("div",{className:"text-base text-muted-foreground mt-1",children:f.headline}),f.location&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[(0,Pe.jsx)(TN,{size:14})," ",f.location]}),(0,Pe.jsxs)(vO,{className:"p-5 mt-6","data-testid":"hm-job-card",children:[(0,Pe.jsxs)("div",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono flex items-center gap-1",children:[(0,Pe.jsx)(Cg,{size:12})," Role"]}),(0,Pe.jsx)("div",{className:"font-display font-semibold text-xl mt-1",children:x.title}),x.location&&(0,Pe.jsxs)("div",{className:"text-sm text-muted-foreground",children:[x.location,x.employment_type?" \xb7 ".concat(x.employment_type):""]}),x.description&&(0,Pe.jsxs)("p",{className:"text-sm text-foreground mt-3 whitespace-pre-wrap",children:[x.description.slice(0,800),x.description.length>800?"\u2026":""]}),(x.required_skills||[]).length>0&&(0,Pe.jsx)("div",{className:"mt-3 flex flex-wrap gap-1.5",children:x.required_skills.map(e=>(0,Pe.jsx)("span",{className:"pill border text-[10px]",children:e},e))})]}),f.summary&&(0,Pe.jsx)(kge,{title:"Summary",testid:"hm-summary",children:(0,Pe.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:f.summary})}),(f.skills||[]).length>0&&(0,Pe.jsx)(kge,{title:"Skills",testid:"hm-skills",children:(0,Pe.jsx)("div",{className:"flex flex-wrap gap-1.5",children:f.skills.map(e=>(0,Pe.jsx)("span",{className:"pill border text-[10px]",children:e},e))})}),(f.employment_history||[]).length>0&&(0,Pe.jsx)(kge,{title:"Experience",testid:"hm-experience",children:(0,Pe.jsx)("ul",{className:"space-y-3",children:f.employment_history.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm",children:[(0,Pe.jsxs)("div",{className:"font-medium",children:[e.title," ",(0,Pe.jsxs)("span",{className:"text-muted-foreground font-normal",children:["\xb7 ",e.company]})]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground font-mono",children:[e.start," \u2192 ",e.end]}),e.description&&(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:e.description})]},t))})}),(f.education||[]).length>0&&(0,Pe.jsx)(kge,{title:"Education",testid:"hm-education",children:(0,Pe.jsx)("ul",{className:"space-y-2",children:f.education.map((e,t)=>(0,Pe.jsxs)("li",{className:"text-sm flex items-start gap-2",children:[(0,Pe.jsx)(rle,{size:14,weight:"duotone",className:"mt-1"}),(0,Pe.jsxs)("div",{children:[(0,Pe.jsxs)("div",{className:"font-medium",children:[e.degree,e.field?", ".concat(e.field):""]}),(0,Pe.jsxs)("div",{className:"text-xs text-muted-foreground",children:[e.school,e.year?" \xb7 ".concat(e.year):""]})]})]},t))})}),f.cover_letter&&(0,Pe.jsx)(kge,{title:"Note from candidate",testid:"hm-cover-letter",children:(0,Pe.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:f.cover_letter})}),(0,Pe.jsx)(vO,{className:"p-6 mt-10 border-2","data-testid":"hm-decision-card",children:b?(0,Pe.jsxs)("div",{className:"text-center",children:[(0,Pe.jsx)(Yf,{size:28,weight:"duotone",className:"mx-auto text-emerald-600"}),(0,Pe.jsx)("div",{className:"mt-3 font-display text-xl",children:"Decision recorded"}),(0,Pe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["You ","advance"===g.decision?"advanced":"passed on"," this candidate. The team has been notified."]}),g.decision_note&&(0,Pe.jsxs)("div",{className:"mt-4 text-sm bg-secondary rounded-md p-3 text-left",children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground font-mono",children:"Your note"}),(0,Pe.jsx)("div",{className:"mt-1",children:g.decision_note})]})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"text-[11px] uppercase tracking-[0.22em] text-muted-foreground font-mono",children:"Your call"}),(0,Pe.jsx)("h3",{className:"font-display font-semibold text-2xl mt-1",children:"Should we move forward?"}),(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"One decision per link. Add a short note so the team knows why."}),(0,Pe.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,Pe.jsxs)("button",{"data-testid":"hm-decision-advance",onClick:()=>s("advance"),className:"rounded-md border-2 p-4 text-left transition-colors ".concat("advance"===i?"border-emerald-600 bg-emerald-50":"border-border hover:border-emerald-300"),children:[(0,Pe.jsx)(Yf,{size:20,weight:"duotone",className:"text-emerald-700"}),(0,Pe.jsx)("div",{className:"font-semibold mt-2",children:"Advance"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground",children:"Worth interviewing"})]}),(0,Pe.jsxs)("button",{"data-testid":"hm-decision-pass",onClick:()=>s("pass"),className:"rounded-md border-2 p-4 text-left transition-colors ".concat("pass"===i?"border-red-600 bg-red-50":"border-border hover:border-red-300"),children:[(0,Pe.jsx)(Vj,{size:20,weight:"duotone",className:"text-red-700"}),(0,Pe.jsx)("div",{className:"font-semibold mt-2",children:"Pass"}),(0,Pe.jsx)("div",{className:"text-xs text-muted-foreground",children:"Not the right fit"})]})]}),(0,Pe.jsx)(Bo,{"data-testid":"hm-decision-note",className:"mt-4",placeholder:"Short note about why (optional)\u2026",value:c,onChange:e=>d(e.target.value),rows:3,maxLength:600}),(0,Pe.jsx)(Lo,{"data-testid":"hm-decision-submit",onClick:async()=>
2{if(i){p(!0);try{const t=await fetch("".concat(Age,"/api/hm/share/").concat(e,"/decision"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:i,note:c})});if(t.ok){va.success("Decision submitted. Thanks!");const t=await fetch("".concat(Age,"/api/hm/share/").concat(e));if(t.ok){const e=await t.json();a({loading:!1,error:null,data:e})}}else{const e=await t.json().catch(()=>({}));va.error(e.detail||"Failed to submit")}}finally{p(!1)}}else va.error("Choose Advance or Pass first.")},disabled:!i||m,className:"mt-4 w-full rounded-md bg-[#0F172A] text-white hover:bg-[#0F4FA8]",children:m?"Submitting\u2026":"Submit decision"}),(0,Pe.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-3 text-center font-mono",children:["Link expires ",g.expires_at?new Date(g.expires_at).toLocaleDateString():"soon","."]})]})}),(0,Pe.jsx)("footer",{className:"text-center mt-10 text-[11px] text-muted-foreground font-mono",children:"Powered by AROS \u2014 the platform your prospective employer uses to keep hiring organized. Evidence organized \xb7 Your team decides."})]})]})}const Dge="#041C3A",_ge="#0F4FA8",Cge="#047857",Fge="#6B7280",Sge="#374151",Mge="#
2E5E7EB",Oge=[{key:"sales",label:"Sales"},{key:"operations",label:"Operations"},{key:"service",label:"Service"},{key:"customer_success",label:"Customer Success"},{key:"finance",label:"Finance"},{key:"hr",label:"HR"},{key:"engineering",label:"Engineering"},{key:"other",label:"Other"}],Rge=[{key:"owner",label:"Owner"},{key:"recruiting_manager",label:"Recruiting Manager"},{key:"recruiter",label:"Recruiter"},{key:"hr_leader",label:"HR Leader"},{key:"department_manager",label:"Department Manager"},{key:"agency_recruiter",label:"Agency Recruiter"},{key:"other",label:"Other"}],Hge=[{key:"too_many_applicants",label:"Too many applicants"},{key:"not_enough_applicants",label:"Not enough applicants"},{key:"slow_hiring_decisions",label:"Slow hiring decisions"},{key:"finding_qualified_candidates",label:"Finding qualified candidates"},{key:"candidate_ghosting",label:"Candidate ghosting"},{key:"improving_candidate_experience",label:"Improving candidate experience"},{key:"hard_to_fill_roles",label:"Hard-to-fill roles"},{key:"other",label:"Other"}];function Pge(){var e,t,n,a,r;const i=Ue((0,o.useState)(1),2),s=i[0],l=i[1],c=Ue((0,o.useState)(""),2),d=c[0],u=c[1],m=Ue((0,o.useState)(""),2),p=m[0],h=m[1],f=Ue((0,o.useState)(!1),2),x=f[0],g=f[1],v=Ue((0,o.useState)(""),2),b=v[0],y=v[1],j=Ue((0,o.useState)(null),2),w=j[0],N=j[1],A=Ue((0,o.useState)(new Set),2),k=A[0],E=A[1],D=Ue((0,o.useState)(""),2),_=D[0],C=D[1],F=Ue((0,o.useState)(""),2),S=F[0],M=F[1],O=Ue((0,o.useState)(""),2),R=O[0],H=O[1],P=Ue((0,o.useState)(""),2),L=P[0],T=P[1],I=Ue((0,o.useState)(!1),2),Z=I[0],B=I[1],V=Ue((0,o.useState)(!1),2),z=V[0],q=V[1],U=async()=>{if(!p.trim()||p.trim().length<4)y("Enter your company website to continue.");else if(d.trim()&&d.includes("@")){y(""),g(!0);try{const e=await Qi.post("/onboarding/discover",{website_url:p,email:d});N(e.data),l(2)}catch(zf){N({company:{name:"",domain:"",description:null,industry:null},confidence:"uncertain",confidence_score:0,jobs:[],hiring_areas:[]}),y("We couldn't read that site cleanly \u2014 you can still continue."),l(2)}finally{g(!1)}}else y("Enter a work email so we can save the discovery to your request.")},W=((null===w||void 0===w?void 0:w.hiring_areas)||[]).filter(e=>e.count>0),Y=((null===w||void 0===w?void 0:w.jobs)||[]).length,K=!1===(null===w||void 0===w?void 0:w.reachable);return(0,Pe.jsx)("div",{className:"min-h-screen px-4 py-12",style:{background:"#FAFBFC"},"data-testid":"try-aros",children:(0,Pe.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,Pe.jsx)(Lge,{step:s,total:6}),1===s&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-1",children:[(0,Pe.jsx)(Ige,{children:"See what AROS sees"}),(0,Pe.jsx)(Zge,{children:"What does AROS know about your company?"}),(0,Pe.jsx)(Bge,{children:"Enter your work email and company website. In a few seconds we'll show you what AROS would recognise, the roles it would surface, and the hiring areas it would map."}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,Pe.jsx)(Vge,{label:"Work email",children:(0,Pe.jsx)(Io,{value:d,onChange:e=>u(e.target.value),placeholder:"[email protected]","data-testid":"try-aros-input-email"})}),(0,Pe.jsx)(Vge,{label:"Company website",children:(0,Pe.jsx)(Io,{value:p,onChange:e=>h(e.target.value),placeholder:"yourcompany.com","data-testid":"try-aros-input-website",onKeyDown:e=>{"Enter"===e.key&&U()}})}),(0,Pe.jsx)(Lo,{onClick:U,disabled:x,"data-testid":"try-aros-submit",className:"w-full sm:w-auto rounded-md mt-1",style:{background:Dge,color:"white"},children:x?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(bM,{size:14,className:"animate-spin mr-1.5"})," Analysing\u2026"]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(Eg,{size:14,className:"mr-1.5",weight:"bold"})," Analyse company"]})}),b&&(0,Pe.jsx)("div",{className:"text-xs",style:{color:"#991B1B"},"data-testid":"try-aros-error",children:b}),(0,Pe.jsx)("div",{className:"text-xs",style:{color:Fge},children:"We never crawl the rest of your site. Just your homepage and your careers page."})]})]}),2===s&&w&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-2",children:[(0,Pe.jsx)(Ige,{children:"What we found"}),(0,Pe.jsx)(Zge,{children:(null===(e=w.company)||void 0===e?void 0:e.name)||"Your company"}),(0,Pe.jsxs)("div",{className:"mt-4 flex items-start gap-4",children:[(0,Pe.jsx)("div",{className:"w-14 h-14 roun
2ded-md grid place-items-center shrink-0",style:{background:"#F3F4F6",border:"1px solid ".concat(Mge)},children:null!==(t=w.company)&&void 0!==t&&t.logo_url?(0,Pe.jsx)("img",{src:w.company.logo_url,alt:"",className:"max-w-full max-h-full rounded"}):(0,Pe.jsx)(Tfe,{size:28,style:{color:Fge}})}),(0,Pe.jsxs)("div",{className:"flex-1 min-w-0",children:[(null===(n=w.company)||void 0===n?void 0:n.description)&&(0,Pe.jsx)("p",{className:"text-sm",style:{color:Sge},children:w.company.description}),(0,Pe.jsx)(Uge,{confidence:w.confidence})]})]}),(0,Pe.jsx)("div",{className:"mt-6 space-y-3","data-testid":"try-aros-summary",children:K?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsxs)(zge,{children:[(0,Pe.jsx)("strong",{children:"We couldn't reach your site's pages."})," Many large companies block automated checks at the edge \u2014 that's expected."]}),(0,Pe.jsx)(zge,{children:"AROS will work the same once you add roles directly. The recommendations are identical."})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[Y>1&&!w.truncated&&!w.multi_location_likely&&(0,Pe.jsxs)(zge,{children:[(0,Pe.jsxs)("strong",{children:[w.unique_role_count>0?w.unique_role_count:Y," open role",1===(w.unique_role_count||Y)?"":"s"]}),W.length>0?(0,Pe.jsxs)(Pe.Fragment,{children:[" across ",(0,Pe.jsx)("strong",{children:(G=W.map(e=>e.label),0===G.length?"":1===G.length?G[0]:2===G.length?"".concat(G[0]," and ").concat(G[1]):"".concat(G.slice(0,-1).join(", "),", and ").concat(G[G.length-1]))})]}):" on your careers page"]}),Y>1&&(w.truncated||w.multi_location_likely)&&(0,Pe.jsxs)(zge,{children:[(0,Pe.jsxs)("strong",{children:["~",w.unique_role_count||Y," unique role",1===(w.unique_role_count||Y)?"":"s"," detected"]}),w.truncated&&(0,Pe.jsxs)(Pe.Fragment,{children:[" (",Y,"+ listings, we capped at ",Y,")."]}),w.multi_location_likely&&(0,Pe.jsx)(Pe.Fragment,{children:" Some roles span multiple locations."})]}),1===Y&&(0,Pe.jsxs)(zge,{children:["We spotted ",(0,Pe.jsx)("strong",{children:"one open role"}),". AROS works the same whether you hire one a year or one a week."]}),W.length>0&&(0,Pe.jsxs)(zge,{children:["Identified ",(0,Pe.jsxs)("strong",{children:[W.length," hiring focus area",1===W.length?"":"s"]})]}),(null===(a=w.company)||void 0===a?void 0:a.industry)&&(0,Pe.jsxs)(zge,{children:["Industry pattern: ",(0,Pe.jsx)("strong",{style:{textTransform:"capitalize"},children:w.company.industry.replace(/_/g," ")})]}),0===Y&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(zge,{children:"No open jobs visible on your careers page \u2014 that's normal. Many teams hire from inbound and referrals before posting publicly."}),(0,Pe.jsx)(zge,{children:"AROS will surface the evidence in r\xe9sum\xe9s you upload directly to the role, using the same evidence-based reasoning."})]}),"uncertain"===w.confidence&&(0,Pe.jsx)(zge,{children:"Your site uses a less-common careers setup \u2014 onboarding takes a few extra minutes, but the recommendations are identical."}),Y>0&&"uncertain"!==w.confidence&&(0,Pe.jsx)(zge,{children:"We found active hiring signals across your company."})]})}),(0,Pe.jsx)(qge,{back:()=>l(1),next:()=>l(3),nextTestId:"try-aros-step2-continue",nextLabel:"Continue"})]}),3===s&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-3",children:[(0,Pe.jsx)(Ige,{children:"Step 3 of 6 \xb7 Focus"}),(0,Pe.jsx)(Zge,{children:"Which area do you hire for?"}),(0,Pe.jsx)(Bge,{children:"Pick all that apply."}),(0,Pe.jsx)("div",{className:"mt-6 grid grid-cols-2 sm:grid-cols-3 gap-2","data-testid":"try-aros-area-options",children:Oge.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>(e=>{E(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})})(e.key),"data-testid":"try-aros-area-".concat(e.key),className:"rounded-md px-3 py-2.5 text-sm font-medium text-left transition-all",style:{background:k.has(e.key)?Dge:"white",color:k.has(e.key)?"white":Dge,border:"1.5px solid ".concat(k.has(e.key)?Dge:Mge)},children:[k.has(e.key)?"\u2713 ":"",e.label]},e.key))}),(0,Pe.jsx)(qge,{back:()=>l(2),next:()=>l(4),nextDisabled:0===k.size,nextTestId:"try-aros-step3-continue"})]}),4===s&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-4",children:[(0,Pe.jsx)(Ige,{children:"Step 4 of 6 \xb7 You"}),(0,Pe.jsx)(Zge,{children:"Which best describes you?"}),(0,Pe.jsx)("div",{className:"mt-6 space-y-2","data-testid":"try-aros-role-options",children:Rge.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>C(e.key),"data-testid":"try-aros-role-".concat(e.key),className:"w-full rounded-md px-4 py-3 text-sm font-medium text-left transition-all flex items-center gap-3",style:{background:_===e.key?"#EFF6FF":"white",color:Dge,border:"1.5px solid ".concat(_===e.key?_ge:Mge)},children:[(0,Pe.jsx)("div",{className:"w-4 h-4 rounded-full grid place-items-center",style:{border:"1.5px solid ".concat(_===e.key?_ge:Mge)},children:_===e.key&&(0,Pe.jsx)("div",{className:"w-2 h-2 rounded-full",style:{background:_ge}})}),e.label]},e.key))}),(0,Pe.jsx)(qge,{back:()=>l(3),next:()=>l(5),nextDisabled:!_,nextTestId:"try-aros-step4-continue"})]}),5===s&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-5",children:[(0,Pe.jsx)(Ige,{children:"Step 5 of 6 \xb7 Challenge"}),(0,Pe.jsx)(Zge,{children:"What's your biggest hiring challenge today?"}),(0,Pe.jsx)("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 gap-2","data-testid":"try-aros-challenge-options",children:Hge.map(e=>(0,Pe.jsxs)("button",{type:"button",onClick:()=>M(e.key),"data-testid":"try-aros-challenge-".concat(e.key),className:"rounded-md px-3 py-2.5 text-sm font-medium text-left transition-all",style:{background:S===e.ke
2y?"#EFF6FF":"white",color:Dge,border:"1.5px solid ".concat(S===e.key?_ge:Mge)},children:[S===e.key?"\u2713 ":"",e.label]},e.key))}),(0,Pe.jsx)(qge,{back:()=>l(4),next:()=>l(6),nextDisabled:!S,nextTestId:"try-aros-step5-continue"})]}),6===s&&!z&&(0,Pe.jsxs)(Tge,{testid:"try-aros-step-6",children:[(0,Pe.jsx)(Ige,{children:"Final step"}),(0,Pe.jsx)(Zge,{children:"Want early access?"}),(0,Pe.jsx)(Bge,{children:"We're onboarding a small group of recruiting teams during private preview. We'll save everything we just discovered to your request."}),(0,Pe.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,Pe.jsx)(Vge,{label:"Name",children:(0,Pe.jsx)(Io,{value:R,onChange:e=>H(e.target.value),placeholder:"Your name","data-testid":"try-aros-name"})}),(0,Pe.jsx)(Vge,{label:"Work email",children:(0,Pe.jsx)(Io,{value:d,disabled:!0,"data-testid":"try-aros-email-confirm"})}),(0,Pe.jsx)(Vge,{label:"Phone (optional)",children:(0,Pe.jsx)(Io,{value:L,onChange:e=>T(e.target.value),placeholder:"+1 555\u2026","data-testid":"try-aros-phone"})}),b&&(0,Pe.jsx)("div",{className:"text-xs",style:{color:"#991B1B"},children:b}),(0,Pe.jsxs)("div",{className:"flex gap-2 pt-2",children:[(0,Pe.jsxs)(Lo,{variant:"outline",onClick:()=>l(5),className:"rounded-md",disabled:Z,children:[(0,Pe.jsx)(nw,{size:14,className:"mr-1.5"})," Back"]}),(0,Pe.jsxs)(Lo,{onClick:async()=>{B(!0);try{const e=(null===w||void 0===w?void 0:w.company)||{};await Qi.post("/access-requests",{name:R.trim(),work_email:d.trim(),phone:L.trim()||void 0,company:{name:e.name||"",website_url:p.trim(),domain:e.domain||"",domain_verified:!(null===w||void 0===w||!w.domain_verified),confidence:(null===w||void 0===w?void 0:w.confidence)||"uncertain",jobs_count:((null===w||void 0===w?void 0:w.jobs)||[]).length,hiring_areas_found:((null===w||void 0===w?void 0:w.hiring_areas)||[]).map(e=>e.key)},selected_hiring_areas:Array.from(k),buyer_role:_,hiring_challenge:S}),q(!0)}catch(zf){var e,t;y((null===zf||void 0===zf||null===(e=zf.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Could not submit your request.")}finally{B(!1)}},disabled:!R.trim()||Z,"data-testid":"try-aros-request-access",className:"rounded-md flex-1",style:{background:Dge,color:"white"},children:[Z?"Submitting\u2026":"Request access"," ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})]})]})]}),6===s&&z&&(0,Pe.jsx)(Tge,{testid:"try-aros-done",children:(0,Pe.jsxs)("div",{className:"text-center py-6",children:[(0,Pe.jsx)("div",{className:"w-14 h-14 mx-auto rounded-full grid place-items-center",style:{background:"#ECFDF5",border:"1px solid #A7F3D0"},children:(0,Pe.jsx)(Yf,{size:28,weight:"duotone",style:{color:Cge}})}),(0,Pe.jsx)("h2",{className:"font-brand font-bold text-3xl mt-4",style:{color:Dge},children:"Got it \u2014 you're on the list."}),(0,Pe.jsxs)("p",{className:"text-sm mt-3",style:{color:Sge},children:["We'll reach out as soon as we open access for ",(null===w||void 0===w||null===(r=w.company)||void 0===r?void 0:r.name)||"your team","."]})]})})]})});var G}function Lge(e){let t=e.step,n=e.total;return(0,Pe.jsx)("div",{className:"flex justify-center gap-2 mb-6","data-testid":"try-aros-progress",children:Array.from({length:n}).map((e,n)=>(0,Pe.jsx)("div",{className:"h-1.5 rounded-full transition-all",style:{width:n+1===t?28:14,background:n+1<=t?Dge:"#E5E7EB"}},n))})}function Tge(e){let t=e.children,n=e.testid;return(0,Pe.jsx)("div",{className:"rounded-2xl bg-white p-7 sm:p-10 shadow-sm",style:{border:"1px solid ".concat(Mge)},"data-testid":n,children:t})}function Ige(e){let t=e.children;return(0,Pe.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] font-mono font-semibold",style:{color:Fge},children:t})}function Zge(e){let t=e.children;return(0,Pe.jsx)("h1",{className:"font-brand font-bold text-3xl tracking-[-0.022em] mt-2",style:{color:Dge},children:t})}function Bge(e){let t=e.children;return(0,Pe.jsx)("p",{className:"text-sm mt-3",style:{color:Sge},children:t})}function Vge(e){let t=e.label,n=e.children;return(0,Pe.jsxs)("div",{children:[(0,Pe.jsx)("label",{className:"text-xs uppercase tracking-[0.18em] font-mono font-semibold",style:{color:Fge},children:t}),(0,Pe.jsx)("div",{className:"mt-1.5",children:n})]})}
2function zge(e){let t=e.children;return(0,Pe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Pe.jsx)(Yf,{size:18,weight:"duotone",style:{color:Cge,marginTop:2}}),(0,Pe.jsx)("div",{className:"text-sm",style:{color:Dge},children:t})]})}function qge(e){let t=e.back,n=e.next,a=e.nextDisabled,r=e.nextTestId,i=e.nextLabel,s=void 0===i?"Continue":i;return(0,Pe.jsxs)("div",{className:"mt-8 flex items-center justify-between gap-2",children:[(0,Pe.jsxs)(Lo,{variant:"outline",onClick:t,className:"rounded-md",children:[(0,Pe.jsx)(nw,{size:14,className:"mr-1.5"})," Back"]}),(0,Pe.jsxs)(Lo,{onClick:n,disabled:a,"data-testid":r,className:"rounded-md",style:{background:Dge,color:"white"},children:[s," ",(0,Pe.jsx)(eg,{size:14,weight:"bold",className:"ml-1.5"})]})]})}function Uge(e){let t=e.confidence;const n={verified:{label:"Verified",bg:"#ECFDF5",color:Cge,bd:"#A7F3D0"},likely:{label:"Likely",bg:"#EFF6FF",color:"#1E40AF",bd:"#BFDBFE"},uncertain:{label:"Uncertain",bg:"#FEF3C7",color:"#92400E",bd:"#FDE68A"}},a=n[t]||n.uncertain;return(0,Pe.jsx)("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-[11px] font-medium mt-2",style:{background:a.bg,color:a.color,border:"1px solid ".concat(a.bd)},"data-testid":"try-aros-confidence",children:a.label})}function Wge(){const e=es(),t=e.user;return e.loading?(0,Pe.jsx)("div",{className:"min-h-screen grid place-items-center text-sm text-muted-foreground",children:"Loading\u2026"}):t?"candidate"===t.role?(0,Pe.jsx)(sn,{to:"/login?candidate_retired=1",replace:!0}):"admin"===t.role?(0,Pe.jsx)(sn,{to:"/app/admin",replace:!0}):t.hiring_mode?(0,Pe.jsx)(sn,{to:"/app/employer",replace:!0}):(0,Pe.jsx)(sn,{to:"/onboarding/hiring-mode",replace:!0}):(0,Pe.jsx)(sj,{})}function Yge(){const e=Zt(),t=e.search,n=e.hash;return(0,Pe.jsx)(sn,{to:"/app/employer/applicants".concat(t).concat(n),replace:!0})}function Kge(){return(0,Pe.jsx)(Ji,{children:(0,Pe.jsxs)(Un,{children:[(0,Pe.jsxs)(cn,{children:[(0,Pe.jsx)(on,{path:"/",element:(0,Pe.jsx)(Wge,{})})," ",(0,Pe.jsx)(on,{path:"/privacy",element:(0,Pe.jsx)(Ej,{})}),(0,Pe.jsx)(on,{path:"/terms",element:(0,Pe.jsx)(Mj,{})}),(0,Pe.jsx)(on,{path:"/trust",element:(0,Pe.jsx)(Tj,{})}),(0,Pe.jsx)(on,{path:"/beta",element:(0,Pe.jsx)(Ij,{})}),(0,Pe.jsx)(on,{path:"/pricing",element:(0,Pe.jsx)(Jj,{})}),(0,Pe.jsx)(on,{path:"/platform",element:(0,Pe.jsx)(Iw,{})}),(0,Pe.jsx)(on,{path:"/platform/:slug",element:(0,Pe.jsx)(Tw,{})}),(0,Pe.jsx)(on,{path:"/login",element:(0,Pe.jsx)(pN,{})}),(0,Pe.jsx)(on,{path:"/verify-email",element:(0,Pe.jsx)(Sie,{})}),(0,Pe.jsx)(on,{path:"/notifications/unsubscribe",element:(0,Pe.jsx)(Mie,{})}),(0,Pe.jsx)(on,{path:"/survey/respond",element:(0,Pe.jsx)(Pie,{})}),(0,Pe.jsx)(on,{path:"/try-aros",element:(0,Pe.jsx)(Pge,{})}),(0,Pe.jsx)(on,{path:"/try",element:(0,Pe.jsx)(Pge,{})}),(0,Pe.jsx)(on,{path:"/register",element:(0,Pe.jsx)(vN,{})}),(0,Pe.jsx)(on,{path:"/auth/callback",element:(0,Pe.jsx)(yN,{})}),(0,Pe.jsx)(on,{path:"/forgot-password",element:(0,Pe.jsx)(jN,{})}),(0,Pe.jsx)(on,{path:"/reset-password",element:(0,Pe.jsx)(kN,{})}),(0,Pe.jsx)(on,{path:"/internal-recovery",element:(0,Pe.jsx)(FN,{})}),(0,Pe.jsx)(on,{path:"/internal/mfa-setup",element:(0,Pe.jsx)(RN,{mode:"enroll"})}),(0,Pe.jsx)(on,{path:"/internal/mfa-verify",element:(0,Pe.jsx)(RN,{mode:"verify"})}),(0,Pe.jsx)(on,{path:"/jobs",element:(0,Pe.jsx)(ZN,{})}),(0,Pe.jsx)(on,{path:"/jobs/:slugWithId",element:(0,Pe.jsx)(YN,{})}),(0,Pe.jsx)(on,{path:"/apply/:publicId",element:(0,Pe.jsx)(xA,{})}),(0,Pe.jsx)(on,{path:"/setup-password/:token",element:(0,Pe.jsx)(AA,{})}),(0,Pe.jsx)(on,{path:"/trial-expired",element:(0,Pe.jsx)(sn,{to:"/upgrade",replace:!0})}),(0,Pe.jsx)(on,{path:"/upgrade",element:(0,Pe.jsx)(MA,{})}),(0,Pe.jsx)(on,{path:"/upgrade/success",element:(0,Pe.jsx)(TA,{})}),(0,Pe.jsx)(on,{path:"/for-candidates",element:(0,Pe.jsx)(Gxe,{})}),(0,Pe.jsx)(on,{path:"/candidate-access/verify",element:(0,Pe.jsx)(Xxe,{})}),(0,Pe.jsx)(on,{path:"/upgrade/cancelled",element:(0,Pe.jsx)(YA,{})}),(0,Pe.jsx)(on,{path:"/help",element:(0,Pe.jsx)(SC,{})}),(0,Pe.jsx)(on,{path:"/help/:slug",element:(0,Pe.jsx)(SC,{})}),(0,Pe.jsx)(on,{path:"/linkedin",element:(0,Pe.jsx)(tF,{})}),(0,Pe.jsx)(on,{path:"/start",element:(0,Pe.jsx)(tF,{})}),(0,Pe.jsx)(on,{path:"/p/:slug",element:(0,Pe.jsx)(sn,{to:"/",replace:!0})}),(0,Pe.jsx)(on,{path:"/share/packet/:token",element:(0,Pe.jsx)(yge,{})}),(0,Pe.jsx)(on,{path:"/hm/:token",element:(0,Pe.jsx)(Ege,{})}),(0,Pe.jsx)(on,{path:"/app/employer",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(PF,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/pipeline-pulse",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(qle,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(VF,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/talent-bench",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(zS,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs/create",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(GM,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs/:jobId",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(eR,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs/:jobId/matches",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(YO,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs/new",element:(0,Pe.jsx)(sn,{to:"/app/employer/jobs/create",replace:!0})}),(0,Pe.jsx)(on,{path:"/app/employer/jobs/:id/edit",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(MM,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/applicants",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(_H,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/candidates",element:(0,Pe.jsx)(Yge,{})}),(0,Pe.jsx)(on,{path:"/app/employer/candidates/*",element:(0,Pe.jsx)(Yge,{})}),(0,Pe.jsx)(on,{path:"/app/employer/applications/:id",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(dI,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/ai-assistant",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(jI,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/analytics",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Kre,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/reports",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Fie,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/intelligence",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Uie,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/compare",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(nse,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/integrations",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(lse,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/performance",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Dse,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/digest",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Tse,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/applications/:id/packet",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Xse,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/packet/compare",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(aoe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/feedback",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(uoe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/bulk-intake",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Ooe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/company-intelligence",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Koe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/evidence-readiness",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(sle,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/outcome-intelligence",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(yle,{})})})}),(0,Pe.jsx)(on,{path:"/onboarding/industry",element:(0,Pe.jsx)(ts,{roles:["employer","admin","recruiter"],children:(0,Pe.jsx)(fge,{})})}),(0,Pe.jsx)(on,{path:"/app/getting-started",element:(0,Pe.jsx)(ts,{children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(ece,{})})})}),(0,Pe.jsx)(on,{path:"/app/messages",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(xge,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/insights",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(vge,{})})})}
2),(0,Pe.jsx)(on,{path:"/app/settings",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Nxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/billing",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Wxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/messages",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(xge,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/settings",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Nxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/employer/billing",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Wxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Rce,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/users",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Hce,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/orgs",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Ice,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/ops/organizations/:orgId",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(yA,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/pilot",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(qce,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/identity-backfill",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Uce,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/recruiter-adoption",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Kce,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/activation",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(ide,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/leads",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(bde,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/audit",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Ade,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/validation",element:(0,Pe.jsx)(ts,{roles:["admin","recruiter","employer"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Afe,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/career-dna-review",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Ede,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/founder",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(uue,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/system-health",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Iue,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/beta-pricing",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Bue,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/beta-metrics",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Uue,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/support",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(ame,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/early-access",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(vfe,{})})})}),(0,Pe.jsx)(on,{path:"/app/admin/legacy-migration",element:(0,Pe.jsx)(ts,{roles:["admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(Cfe,{})})})}),(0,Pe.jsx)(on,{path:"/onboarding/hiring-mode",element:(0,Pe.jsx)(ts,{children:(0,Pe.jsx)(Rfe,{})})}),(0,Pe.jsx)(on,{path:"/onboarding/company",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Kfe,{})})}),(0,Pe.jsx)(on,{path:"/app/owner",element:(0,Pe.jsx)(sn,{to:"/app/employer",replace:!0})}),(0,Pe.jsx)(on,{path:"/app/owner/close-the-loop/:jobId",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(uge,{})})})}),(0,Pe.jsx)(on,{path:"/app/owner/history",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(lxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/owner/intake-health",element:(0,Pe.jsx)(ts,{roles:["employer","recruiter","admin"],children:(0,Pe.jsx)(Sv,{children:(0,Pe.jsx)(fxe,{})})})}),(0,Pe.jsx)(on,{path:"/app/owner/settings",element:(0,Pe.jsx)(sn,{to:"/app/sett
2ings",replace:!0})}),(0,Pe.jsx)(on,{path:"*",element:(0,Pe.jsx)(bN,{})})]}),(0,Pe.jsx)(ka,{position:"top-right",richColors:!0})]})})}const Gge=new He({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}});c.createRoot(document.getElementById("root")).render((0,Pe.jsx)(o.StrictMode,{children:(0,Pe.jsx)(Te,{client:Gge,children:(0,Pe.jsx)(Kge,{})})}))},441(e,t,n){var a;!function(){"use strict";var r,i=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,l="[DecimalError] ",c=l+"Invalid argument: ",d=l+"Exponent out of range: ",u=Math.floor,m=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,f=9007199254740991,x=u(1286742750677284.5),g={};function v(e,t){var n,a,r,i,s,l,c,d,u=e.constructor,m=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),o?_(t,m):t;if(c=e.d,d=t.d,s=e.e,r=t.e,c=c.slice(),i=s-r){for(i<0?(a=c,i=-i,l=d.length):(a=d,r=s,l=c.length),i>(l=(s=Math.ceil(m/7))>l?s+1:l+1)&&(i=l,a.length=1),a.reverse();i--;)a.push(0);a.reverse()}for((l=c.length)-(i=d.length)<0&&(i=l,a=d,d=c,c=a),n=0;i;)n=(c[--i]=c[i]+d[i]+n)/h|0,c[i]%=h;for(n&&(c.unshift(n),++r),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=r,o?_(t,m):t}function b(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function y(e){var t,n,a,r=e.length-1,i="",s=e[0];if(r>0){for(i+=s,t=1;t<r;t++)(n=7-(a=e[t]+"").length)&&(i+=k(n)),i+=a;(n=7-(a=(s=e[t])+"").length)&&(i+=k(n))}else if(0===s)return"0";for(;s%10===0;)s/=10;return i+s}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,n,a,r,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(a=i.d.length)<(r=e.d.length)?a:r;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return a===r?0:a>r^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return j(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return _(j(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return N(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,a=n.constructor,i=a.precision,s=i+5;if(void 0===e)e=new a(10);else if((e=new a(e)).s<1||e.eq(r))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(r)?new a(0):(o=!1,t=j(E(n,s),E(e,s),s),o=!0,_(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C(t,e):v(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,a=n.constructor,r=a.precision;if(!(e=new a(e)).s)throw Error(l+"NaN");return n.s?(o=!1,t=j(n,e,0,1).times(e),o=!0,n.minus(t)):_(new a(n),r)},g.naturalExponential=g.exp=function(){return w(this)},g.naturalLogarithm=g.ln=function(){return E(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):C(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,a,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=N(r)+1,n=7*(a=r.d.length-1)+1,a=r.d[a]){for(;a%10==0;a/=10)n--;for(a=r.d[0];a>=10;a/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,a,r,i,s,c=this,d=c.constructor;if(c.s<1){if(!c.s)return new d(0);throw Error(l+"NaN")}for(e=N(c),o=!1,0==(r=Math.sqrt(+c))||r==1/0?(((t=y(c.d)).length+e)%2==0&&(t+="0"),r=Math.sqrt(t),e=u((e+1)/2)-(e<0||e%2),a=new d(t=r==1/0?"5e"+e:(t=r.toExponential()).slice(0,t.indexOf("e")+1)+e)):a=new d(r.toString()),r=s=(n=d.precision)+3;;)if(a=(i=a).plus(j(c,i,s+2)).times(.5),y(i.d).slice(0,s)===(t=y(a.d)).slice(0,s)){if(t=t.slice(s-3,s+1),r==s&&"4999"==t){if(_(i,n+1,0),i.times(i).eq(c)){a=i;break}}else if("9999"!=t)break;s+=4}return o=!0,_(a,n)},g.times=g.mul=function(e){var t,n,a,r,i,s,l,c,d,u=this,m=u.constructor,p=u.d,f=(e=new m(e)).d;if(!u.s||!e.s)return new m(0);for(e.s*=u.s,n=u.e+e.e,(c=p.length)<(d=f.length)&&(i=p,p=f,f=i,s=c,c=d,d=s),i=[],a=s=c+d;a--;)i.push(0);for(a=d;--a>=0;){for(t=0,r=c+a;r>a;)l=i[r]+f[a]*p[r-a-1]+t,i[r--]=l%h|0,t=l/h|0;i[r]=(i[r]+t)%h|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,o?_(e,m.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,a=n.constructor;return n=new a(n),void 0===e?n:(b(e,0,i),void 0===t?t=a.rounding:b(t,0,8),_(n,e+N(n)+1,t))},g.toExponential=function(e,t){var n,a=this,r=a.constructor;return void 0===e?n=F(a,!0):(b(e,0,i),void 0===t?t=r.rounding:b(t,0,8),n=F(a=_(new r(a),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,a,r=this,s=r.constructor;return void 0===e?F(r):(b(e,0,i),void 0===t?t=s.rounding:b(t,0,8),n=F((a=_(new s(r),e+N(r)+1,t)).abs(),!1,e+N(a)+1),r.isneg()&&!r.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return _(new t(e),N(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,a,i,s,c,d=this,m=d.constructor,p=+(e=new m(e));if(!e.s)return new m(r);if(!(d=new m(d)).s){if(e.s<1)throw Error(l+"Infinity");return d}if(d.eq(r))return d;if(a=m.precision,e.eq(r))return _(d,a);if(c=(t=e.e)>=(n=e.d.length-1),s=d.s,c){if((n=p<0?-p:p)<=f){for(i=new m(r),t=Math.ceil(a/7+4),o=!1;n%2&&S((i=i.times(d)).d,t),0!==(n=u(n/2));)S((d=d.times(d)).d,t);return o=!0,e.s<0?new m(r).div(i):_(i,a)}}else if(s<0)throw Error(l+"NaN");
vendor: 4,640 bytes, line 2
2return s=s<0&&1&e.d[Math.max(t,n)]?-1:1,d.s=1,o=!1,i=e.times(E(d,a+12)),o=!0,(i=w(i)).s=s,i},g.toPrecision=function(e,t){var n,a,r=this,s=r.constructor;return void 0===e?a=F(r,(n=N(r))<=s.toExpNeg||n>=s.toExpPos):(b(e,1,i),void 0===t?t=s.rounding:b(t,0,8),a=F(r=_(new s(r),e,t),e<=(n=N(r))||n<=s.toExpNeg,e)),a},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,i),void 0===t?t=n.rounding:b(t,0,8)),_(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=N(e),n=e.constructor;return F(e,t<=n.toExpNeg||t>=n.toExpPos)};var j=function(){function e(e,t){var n,a=0,r=e.length;for(e=e.slice();r--;)n=e[r]*t+a,e[r]=n%h|0,a=n/h|0;return a&&e.unshift(a),e}function t(e,t,n,a){var r,i;if(n!=a)i=n>a?1:-1;else for(r=i=0;r<n;r++)if(e[r]!=t[r]){i=e[r]>t[r]?1:-1;break}return i}function n(e,t,n){for(var a=0;n--;)e[n]-=a,a=e[n]<t[n]?1:0,e[n]=a*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(a,r,i,s){var o,c,d,u,m,p,f,x,g,v,b,y,j,w,A,k,E,D,C=a.constructor,F=a.s==r.s?1:-1,S=a.d,M=r.d;if(!a.s)return new C(a);if(!r.s)throw Error(l+"Division by zero");for(c=a.e-r.e,E=M.length,A=S.length,x=(f=new C(F)).d=[],d=0;M[d]==(S[d]||0);)++d;if(M[d]>(S[d]||0)&&--c,(y=null==i?i=C.precision:s?i+(N(a)-N(r))+1:i)<0)return new C(0);if(y=y/7+2|0,d=0,1==E)for(u=0,M=M[0],y++;(d<A||u)&&y--;d++)j=u*h+(S[d]||0),x[d]=j/M|0,u=j%M|0;else{for((u=h/(M[0]+1)|0)>1&&(M=e(M,u),S=e(S,u),E=M.length,A=S.length),w=E,v=(g=S.slice(0,E)).length;v<E;)g[v++]=0;(D=M.slice()).unshift(0),k=M[0],M[1]>=h/2&&++k;do{u=0,(o=t(M,g,E,v))<0?(b=g[0],E!=v&&(b=b*h+(g[1]||0)),(u=b/k|0)>1?(u>=h&&(u=h-1),1==(o=t(m=e(M,u),g,p=m.length,v=g.length))&&(u--,n(m,E<p?D:M,p))):(0==u&&(o=u=1),m=M.slice()),(p=m.length)<v&&m.unshift(0),n(g,m,v),-1==o&&(o=t(M,g,E,v=g.length))<1&&(u++,n(g,E<v?D:M,v)),v=g.length):0===o&&(u++,g=[0]),x[d++]=u,o&&g[0]?g[v++]=S[w]||0:(g=[S[w]],v=1)}while((w++<A||void 0!==g[0])&&y--)}return x[0]||x.shift(),f.e=c,_(f,s?i+N(f)+1:i)}}();function w(e,t){var n,a,i,s,l,c=0,u=0,p=e.constructor,h=p.precision;if(N(e)>16)throw Error(d+N(e));if(!e.s)return new p(r);for(null==t?(o=!1,l=h):l=t,s=new p(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(l+=Math.log(m(2,u))/Math.LN10*2+5|0,n=a=i=new p(r),p.precision=l;;){if(a=_(a.times(e),l),n=n.times(++c),y((s=i.plus(j(a,n,l))).d).slice(0,l)===y(i.d).slice(0,l)){for(;u--;)i=_(i.times(i),l);return p.precision=h,null==t?(o=!0,_(i,h)):i}i=s}}function N(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function A(e,t,n){if(t>e.LN10.sd())throw o=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return _(new e(e.LN10),t)}function k(e){for(var t="";e--;)t+="0";return t}function E(e,t){var n,a,i,s,c,d,u,m,p,h=1,f=e,x=f.d,g=f.constructor,v=g.precision;if(f.s<1)throw Error(l+(f.s?"NaN":"-Infinity"));if(f.eq(r))return new g(0);if(null==t?(o=!1,m=v):m=t,f.eq(10))return null==t&&(o=!0),A(g,m);if(m+=10,g.precision=m,a=(n=y(x)).charAt(0),s=N(f),!(Math.abs(s)<15e14))return u=A(g,m+2,v).times(s+""),f=E(new g(a+"."+n.slice(1)),m-10).plus(u),g.precision=v,null==t?(o=!0,_(f,v)):f;for(;a<7&&1!=a||1==a&&n.charAt(1)>3;)a=(n=y((f=f.times(e)).d)).charAt(0),h++;for(s=N(f),a>1?(f=new g("0."+n),s++):f=new g(a+"."+n.slice(1)),d=c=f=j(f.minus(r),f.plus(r),m),p=_(f.times(f),m),i=3;;){if(c=_(c.times(p),m),y((u=d.plus(j(c,new g(i),m))).d).slice(0,m)===y(d.d).slice(0,m))return d=d.times(2),0!==s&&(d=d.plus(A(g,m+2,v).times(s+""))),d=j(d,new g(h),m),g.precision=v,null==t?(o=!0,_(d,v)):d;d=u,i+=2}}function D(e,t){var n,a,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(n<0&&(n=a),n+=+t.slice(a+1),t=t.substring(0,a)):n<0&&(n=t.length),a=0;48===t.charCodeAt(a);)++a;for(r=t.length;48===t.charCodeAt(r-1);)--r;if(t=t.slice(a,r)){if(r-=a,n=n-a-1,e.e=u(n/7),e.d=[],a=(n+1)%7,n<0&&(a+=7),a<r){for(a&&e.d.push(+t.slice(0,a)),r-=7;a<r;)e.d.push(+t.slice(a,a+=7));a=7-(t=t.slice(a)).length}else a-=r;for(;a--;)t+="0";if(e.d.push(+t),o&&(e.e>x||e.e<-x))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function _(e,t,n){var a,r,i,s,l,c,p,f,g=e.d;for(s=1,i=g[0];i>=10;i/=10)s++;if((a=t-s)<0)a+=7,r=t,p=g[f=0];else{if((f=Math.ceil((a+1)/7))>=(i=g.length))return e;for(p=i=g[f],s=1;i>=10;i/=10)s++;r=(a%=7)-7+s}if(void 0!==n&&(l=p/(i=m(10,s-r-1))%10|0,c=t<0||void 0!==g[f+1]||p%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(a>0?r>0?p/m(10,s-r):0:g[f-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=N(e),g.length=1,t=t-i-1,g[0]=m(10,(7-t%7)%7),e.e=u(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==a?(g.length=f,i=1,f--):(g.length=f+1,i=m(10,7-a),g[f]=r>0?(p/m(10,s-r)%m(10,r)|0)*i:0),c)for(;;
2){if(0==f){(g[0]+=i)==h&&(g[0]=1,++e.e);break}if(g[f]+=i,g[f]!=h)break;g[f--]=0,i=1}for(a=g.length;0===g[--a];)g.pop();if(o&&(e.e>x||e.e<-x))throw Error(d+N(e));return e}function C(e,t){var n,a,r,i,s,l,c,d,u,m,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),o?_(t,f):t;if(c=e.d,m=t.d,a=t.e,d=e.e,c=c.slice(),s=d-a){for((u=s<0)?(n=c,s=-s,l=m.length):(n=m,a=d,l=c.length),s>(r=Math.max(Math.ceil(f/7),l)+2)&&(s=r,n.length=1),n.reverse(),r=s;r--;)n.push(0);n.reverse()}else{for((u=(r=c.length)<(l=m.length))&&(l=r),r=0;r<l;r++)if(c[r]!=m[r]){u=c[r]<m[r];break}s=0}for(u&&(n=c,c=m,m=n,t.s=-t.s),l=c.length,r=m.length-l;r>0;--r)c[l++]=0;for(r=m.length;r>s;){if(c[--r]<m[r]){for(i=r;i&&0===c[--i];)c[i]=h-1;--c[i],c[r]+=h}c[r]-=m[r]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--a;return c[0]?(t.d=c,t.e=a,o?_(t,f):t):new p(0)}function F(e,t,n){var a,r=N(e),i=y(e.d),s=i.length;return t?(n&&(a=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+k(a):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(r<0?"e":"e+")+r):r<0?(i="0."+k(-r-1)+i,n&&(a=n-s)>0&&(i+=k(a))):r>=s?(i+=k(r+1-s),n&&(a=n-r-1)>0&&(i=i+"."+k(a))):((a=r+1)<s&&(i=i.slice(0,a)+"."+i.slice(a)),n&&(a=n-s)>0&&(r+1===s&&(i+="."),i+=k(a))),e.s<0?"-"+i:i}function S(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,a,r=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<r.length;t+=3)if(void 0!==(a=e[n=r[t]])){if(!(u(a)===a&&a>=r[t+1]&&a<=r[t+2]))throw Error(c+n+": "+a);this[n]=a}if(void 0!==(a=e[n="LN10"])){if(a!=Math.LN10)throw Error(c+n+": "+a);this[n]=new this(a)}return this}s=function e(t){var n,a,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):D(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);D(t,e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=M,void 0===t&&(t={}),t)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<r.length;)t.hasOwnProperty(a=r[n++])||(t[a]=this[a]);return i.config(t),i}(s),s.default=s.Decimal=s,r=new s(1),void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()},703(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function d(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,m=1;function p(e){var t=e.match(n);t&&(u+=t.length);var a=e.lastIndexOf("\n");m=~a?e.length-a:m+e.length}function h(){var e={line:u,column:m};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:u,column:m},this.source=l.source}function x(t){var n=new Error(l.source+":"+u+":"+m+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=m,n.source=e,!l.silent)throw n}function g(t){var n=t.exec(e);if(n){var a=n[0];return p(a),e=e.slice(a.length),n}}function v(){g(a)}function b(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return x("End of comment missing");var a=e.slice(2,n-2);return m+=2,p(a),e=e.slice(n),m+=2,t({type:"comment",comment:a})}}function j(){var e=h(),n=g(r);if(n){if(y(),!g(i))return x("property missing ':'");var a=g(s),l=e({type:"declaration",property:d(n[0].replace(t,c)),value:a?d(a[0].replace(t,c)):c});return g(o),l}}return f.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=j();)!1!==e&&(t.push(e),b(t));return t}()}},85(e,t,n){"use strict";var a=n(340),r=n(950),i=n(119);function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.consumer"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var w=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function k(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var E=Symbol.for("react.client.reference");function D(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===E?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case d:return"Portal";case p:return"Profiler";case m:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Provider";case f:return(e._context.displayName||"Context")+".Consumer";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:D(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return D(e(t))}catch(n){}}return null}var _,C,F=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.assign;function M(e){if(void 0===_)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||"",C=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+_+e+C}var O=!1;function R(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(r){var a=r}Reflect.construct(e,[],n)}
vendor: 5,106 bytes, line 2
2else{try{n.call()}catch(i){a=i}e.call(n.prototype)}}else{try{throw Error()}catch(s){a=s}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&a&&"string"===typeof o.stack)return[o.stack,a.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],o=i[1];if(s&&o){var l=s.split("\n"),c=o.split("\n");for(r=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(a===l.length||r===c.length)for(a=l.length-1,r=c.length-1;1<=a&&0<=r&&l[a]!==c[r];)r--;for(;1<=a&&0<=r;a--,r--)if(l[a]!==c[r]){if(1!==a||1!==r)do{if(a--,0>--r||l[a]!==c[r]){var d="\n"+l[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}}while(1<=a&&0<=r);break}}}finally{O=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?M(n):""}function H(e){switch(e.tag){case 26:case 27:case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 15:return e=R(e.type,!1);case 11:return e=R(e.type.render,!1);case 1:return e=R(e.type,!0);default:return""}}function P(e){try{var t="";do{t+=H(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function L(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function T(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function I(e){if(L(e)!==e)throw Error(s(188))}function Z(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=Z(e)))return t;e=e.sibling}return null}var B=Array.isArray,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},q=[],U=-1;function W(e){return{current:e}}function Y(e){0>U||(e.current=q[U],q[U]=null,U--)}function K(e,t){U++,q[U]=e.current,e.current=t}var G=W(null),$=W(null),Q=W(null),X=W(null);function J(e,t){switch(K(Q,t),K($,e),K(G,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?$d(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Qd(e=$d(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(G),K(G,t)}function ee(){Y(G),Y($),Y(Q)}function te(e){null!==e.memoizedState&&K(X,e);var t=G.current,n=Qd(t,e.type);t!==n&&(K($,e),K(G,n))}function ne(e){$.current===e&&(Y(G),Y($)),X.current===e&&(Y(X),Pu._currentValue=z)}var ae=Object.prototype.hasOwnProperty,re=a.unstable_scheduleCallback,ie=a.unstable_cancelCallback,se=a.unstable_shouldYield,oe=a.unstable_requestPaint,le=a.unstable_now,ce=a.unstable_getCurrentPriorityLevel,de=a.unstable_ImmediatePriority,ue=a.unstable_UserBlockingPriority,me=a.unstable_NormalPriority,pe=a.unstable_LowPriority,he=a.unstable_IdlePriority,fe=a.log,xe=a.unstable_setDisableYieldValue,ge=null,ve=null;function be(e){if("function"===typeof fe&&xe(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ge,e)}catch(t){}}var ye=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(je(e)/we|0)|0},je=Math.log,we=Math.LN2;var Ne=128,Ae=4194304;function ke(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,t){var n=e.pendingLanes;if(0===n)return 0;var a=0,r=e.suspendedLanes,i=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var o=134217727&n;return 0!==o?0!==(n=o&~r)?a=ke(n):0!==(i&=o)?a=ke(i):e||0!==(s=o&~s)&&(a=ke(s)):0!==(o=n&~r)?a=ke(o):0!==i?a=ke(i):e||0!==(s=n&~s)&&(a=ke(s)),0===a?0:0!==t&&t!==a&&0===(t&r)&&((r=a&-a)>=(s=t&-t)||32===r&&0!==(4194176&s))?t:a}function De(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function _e(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=Ne;return 0===(4194176&(Ne<<=1))&&(Ne=128),e}function Fe(){var e=Ae;return 0===(62914560&(Ae<<=1))&&(Ae=4194304),e}function Se(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
2function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ye(t);e.entangledLanes|=t,e.entanglements[a]=1073741824|e.entanglements[a]|4194218&n}function Re(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ye(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function He(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Pe(){var e=V.p;return 0!==e?e:void 0===(e=window.event)?32:Qu(e.type)}var Le=Math.random().toString(36).slice(2),Te="__reactFiber$"+Le,Ie="__reactProps$"+Le,Ze="__reactContainer$"+Le,Be="__reactEvents$"+Le,Ve="__reactListeners$"+Le,ze="__reactHandles$"+Le,qe="__reactResources$"+Le,Ue="__reactMarker$"+Le;function We(e){delete e[Te],delete e[Ie],delete e[Be],delete e[Ve],delete e[ze]}function Ye(e){var t=e[Te];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Te]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lu(e);null!==e;){if(n=e[Te])return n;e=lu(e)}return t}n=(e=n).parentNode}return null}function Ke(e){if(e=e[Te]||e[Ze]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ge(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function $e(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Ue]=!0}var Xe=new Set,Je={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Je[e]=t,e=0;e<t.length;e++)Xe.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),at=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rt={},it={};function st(e,t,n){if(r=t,ae.call(it,r)||!ae.call(rt,r)&&(at.test(r)?it[r]=!0:(rt[r]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var a=t.toLowerCase().slice(0,5);if("data-"!==a&&"aria-"!==a)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var r}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,a){if(null===a)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+a)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ut(e){e._valueTracker||(e._valueTracker=function(e){var t=dt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=dt(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ht=/[\n"\\]/g;function ft(e){return e.replace(ht,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xt(e,t,n,a,r,i,s,o){e.name="",null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?vt(e,s,ct(t)):null!=n?vt(e,s,ct(n)):null!=a&&e.removeAttribute("value"),null==r&&null!=i&&(e.defaultChecked=!!i),null!=r&&(e.checked=r&&"function"!==typeof r&&"symbol"!==typeof r),null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.name=""+ct(o):e.removeAttribute("name")}function gt(e,t,n,a,r,i,s,o){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return;n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a="function"!==typeof(a=null!=a?a:r)&&"symbol"!==typeof a&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.name=s)}function vt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function yt(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}
vendor: 4,415 bytes, line 2
2function jt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(s(92));if(B(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a)}function wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Nt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function At(e,t,n){var a=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,n):"number"!==typeof n||0===n||Nt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function kt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&At(e,r,a)}else for(var i in t)t.hasOwnProperty(i)&&At(e,i,t[i])}function Et(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ct(e){return _t.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ft=null;function St(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Mt=null,Ot=null;function Rt(e){var t=Ke(e);if(t&&(e=t.stateNode)){var n=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(xt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ft(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Ie]||null;if(!r)throw Error(s(90));xt(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&mt(a)}break e;case"textarea":yt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Ht=!1;function Pt(e,t,n){if(Ht)return e(t,n);Ht=!0;try{return e(t)}finally{if(Ht=!1,(null!==Mt||null!==Ot)&&(Tc(),Mt&&(t=Mt,e=Ot,Ot=Mt=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Ie]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(s(231,t,typeof n));return n}var Tt=!1;if(nt)try{var It={};Object.defineProperty(It,"passive",{get:function(){Tt=!0}}),window.addEventListener("test",It,It),window.removeEventListener("test",It,It)}catch(jm){Tt=!1}var Zt=null,Bt=null,Vt=null;function zt(){if(Vt)return Vt;var e,t,n=Bt,a=n.length,r="value"in Zt?Zt.value:Zt.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var s=a-e;for(t=1;t<=s&&n[a-t]===r[i-t];t++);return Vt=r.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ut(){return!0}function Wt(){return!1}function Yt(e){function t(t,n,a,r,i){for(var s in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Ut:Wt,this.isPropagationStopped=Wt,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ut)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ut)},persist:function(){},isPersistent:Ut}),t}var Kt,Gt,$t,Qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xt=Yt(Qt),Jt=S({},Qt,{view:0,detail:0}),en=Yt(Jt),tn=S({},Jt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$t&&($t&&"mousemove"===e.type?(Kt=e.screenX-$t.screenX,Gt=e.screenY-$t.screenY):Gt=Kt=0,$t=e),Kt)},movementY:function(e){return"movementY"in e?e.movementY:Gt}}),nn=Yt(tn),an=Yt(S({},tn,{dataTransfer:0})),rn=Yt(S({},Jt,{relatedTarget:0})),sn=Yt(S({},Qt,{animationName:0,elapsedTime:0,pseudoElement:0})),on=Yt(S({},Qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Yt(S({},Qt,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},un={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=un[e])&&!!t[e]}function pn(){return mn}var hn=Yt(S({},Jt,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?dn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),fn=Yt(S({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Yt(S({},Jt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),gn=Yt(S({},Qt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Yt(S({},tn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),bn=Yt(S({},Qt,{newState:0,oldState:0})),yn=[9,13,27,32],jn=nt&&"CompositionEvent"in window,wn=null;nt&&"documentMode"in document&&(wn=document.documentMode);var Nn=nt&&"TextEvent"in window&&!wn,An=nt&&(!jn||wn&&8<wn&&11>=wn),kn=String.fromCharCode(32),En=!1;function Dn(e,t){switch(e){case"keyup":return-1!==yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Cn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Mn(e,t,n,a){Mt?Ot?Ot.push(a):Ot=[a]:Mt=a,0<(t=Pd(t,"onChange")).length&&(n=new Xt("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var On=null,Rn=null;function Hn(e){_d(e,0)}function Pn(e){if(mt(Ge(e)))return e}function Ln(e,t){if("change"===e)return t}var Tn=!1;if(nt){var In;if(nt){var Zn="oninput"in document;if(!Zn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Zn="function"===typeof Bn.oninput}In=Zn}else In=!1;Tn=In&&(!document.documentMode||9<document.documentMode)}function Vn(){On&&(On.detachEvent("onpropertychange",zn),Rn=On=null)}function zn(e){if("value"===e.propertyName&&Pn(Rn)){var t=[];Mn(t,Rn,e,St(e)),Pt(Hn,t)}}function qn(e,t,n){"focusin"===e?(Vn(),Rn=n,(On=t).attachEvent("onpropertychange",zn)):"focusout"===e&&Vn()}function Un(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pn(Rn)}function Wn(e,t){if("click"===e)return Pn(t)}function Yn(e,t){if("input"===e||"change"===e)return Pn(t)}var Kn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Gn(e,t){if(Kn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!ae.call(t,r)||!Kn(e[r],t[r]))return!1}return!0}function $n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qn(e,t){var n,a=$n(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=$n(a)}}function Xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Jn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(a){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ta(e,t){var n=Jn(t);t=e.focusedElem;var a=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xn(t.ownerDocument.documentElement,t)){if(null!==a&&ea(t))if(e=a.start,void 0===(n=a.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var r=t.textContent.length,i=Math.min(a.start,r);a=void 0===a.end?i:Math.min(a.end,r),!n.extend&&i>a&&(r=a,a=i,i=r),r=Qn(t,i);var s=Qn(t,a);r&&s&&(1!==n.rangeCount||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(r.node,r.offset),n.removeAllRanges(),i>a?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});
vendor: 19,687 bytes, line 2
2for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var na=nt&&"documentMode"in document&&11>=document.documentMode,aa=null,ra=null,ia=null,sa=!1;function oa(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sa||null==aa||aa!==pt(a)||("selectionStart"in(a=aa)&&ea(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},ia&&Gn(ia,a)||(ia=a,0<(a=Pd(ra,"onSelect")).length&&(t=new Xt("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=aa)))}function la(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ca={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionrun:la("Transition","TransitionRun"),transitionstart:la("Transition","TransitionStart"),transitioncancel:la("Transition","TransitionCancel"),transitionend:la("Transition","TransitionEnd")},da={},ua={};function ma(e){if(da[e])return da[e];if(!ca[e])return e;var t,n=ca[e];for(t in n)if(n.hasOwnProperty(t)&&t in ua)return da[e]=n[t];return e}nt&&(ua=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);var pa=ma("animationend"),ha=ma("animationiteration"),fa=ma("animationstart"),xa=ma("transitionrun"),ga=ma("transitionstart"),va=ma("transitioncancel"),ba=ma("transitionend"),ya=new Map,ja="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function wa(e,t){ya.set(e,t),et(t,[e])}var Na=[],Aa=0,ka=0;function Ea(){for(var e=Aa,t=ka=Aa=0;t<e;){var n=Na[t];Na[t++]=null;var a=Na[t];Na[t++]=null;var r=Na[t];Na[t++]=null;var i=Na[t];if(Na[t++]=null,null!==a&&null!==r){var s=a.pending;null===s?r.next=r:(r.next=s.next,s.next=r),a.pending=r}0!==i&&Fa(n,r,i)}}function Da(e,t,n,a){Na[Aa++]=e,Na[Aa++]=t,Na[Aa++]=n,Na[Aa++]=a,ka|=a,e.lanes|=a,null!==(e=e.alternate)&&(e.lanes|=a)}function _a(e,t,n,a){return Da(e,t,n,a),Sa(e)}function Ca(e,t){return Da(e,null,null,t),Sa(e)}function Fa(e,t,n){e.lanes|=n;var a=e.alternate;null!==a&&(a.lanes|=n);for(var r=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(a=i.alternate)&&(a.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(r=!0)),e=i,i=i.return;r&&null!==t&&3===e.tag&&(i=e.stateNode,r=31-ye(n),null===(e=(i=i.hiddenUpdates)[r])?i[r]=[t]:e.push(t),t.lane=536870912|n)}function Sa(e){if(50<_c)throw _c=0,Cc=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ma={},Oa=new WeakMap;function Ra(e,t){if("object"===typeof e&&null!==e){var n=Oa.get(e);return void 0!==n?n:(t={value:e,source:t,stack:P(t)},Oa.set(e,t),t)}return{value:e,source:t,stack:P(t)}}var Ha=[],Pa=0,La=null,Ta=0,Ia=[],Za=0,Ba=null,Va=1,za="";function qa(e,t){Ha[Pa++]=Ta,Ha[Pa++]=La,La=e,Ta=t}function Ua(e,t,n){Ia[Za++]=Va,Ia[Za++]=za,Ia[Za++]=Ba,Ba=e;var a=Va;e=za;var r=32-ye(a)-1;a&=~(1<<r),n+=1;var i=32-ye(t)+r;if(30<i){var s=r-r%5;i=(a&(1<<s)-1).toString(32),a>>=s,r-=s,Va=1<<32-ye(t)+r|n<<r|a,za=i+e}else Va=1<<i|n<<r|a,za=e}function Wa(e){null!==e.return&&(qa(e,1),Ua(e,1,0))}function Ya(e){for(;e===La;)La=Ha[--Pa],Ha[Pa]=null,Ta=Ha[--Pa],Ha[Pa]=null;for(;e===Ba;)Ba=Ia[--Za],Ia[Za]=null,za=Ia[--Za],Ia[Za]=null,Va=Ia[--Za],Ia[Za]=null}var Ka=null,Ga=null,$a=!1,Qa=null,Xa=!1,Ja=Error(s(519));function er(e){throw ir(Ra(Error(s(418,"")),e)),Ja}function tr(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Te]=e,t[Ie]=a,n){case"dialog":Cd("cancel",t),Cd("close",t);break;case"iframe":case"object":case"embed":Cd("load",t);break;case"video":case"audio":for(n=0;n<Ed.length;n++)Cd(Ed[n],t);break;case"source":Cd("error",t);break;case"img":case"image":case"link":Cd("error",t),Cd("load",t);break;case"details":Cd("toggle",t);break;case"input":Cd("invalid",t),gt(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),ut(t);break;case"select":Cd("invalid",t);break;case"textarea":Cd("invalid",t),jt(t,a.value,a.defaultValue,a.children),ut(t)}"string"!==typeof(n=a.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===a.suppressHydrationWarning||Vd(t.textContent,n)?(null!=a.popover&&(Cd("beforetoggle",t),Cd("toggle",t)),null!=a.onScroll&&Cd("scroll",t),null!=a.onScrollEnd&&Cd("scrollend",t),null!=a.onClick&&(t.onclick=zd),t=!0):t=!1,t||er(e)}function nr(e){for(Ka=e.return;Ka;)switch(Ka.tag){case 3:case 27:return void(Xa=!0);case 5:case 13:return void(Xa=!1);default:Ka=Ka.return}}function ar(e){if(e!==Ka)return!1;if(!$a)return nr(e),$a=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Xd(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Ga&&er(e),nr(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Ga=ou(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Ga=null}}else Ga=Ka?ou(e.stateNode.nextSibling):null;return!0}function rr(){Ga=Ka=null,$a=!1}function ir(e){null===Qa?Qa=[e]:Qa.push(e)}var sr=Error(s(460)),or=Error(s(474)),lr={then:function(){}};function cr(e){return"fulfilled"===(e=e.status)||"rejected"===e}function dr(){}function ur(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(dr,dr),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===sr)throw Error(s(483));throw e;default:if("string"===typeof t.status)t.then(dr,dr);else{if(null!==(e=tc)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===sr)throw Error(s(483));throw e}throw mr=t,sr}}var mr=null;function pr(){if(null===mr)throw Error(s(459));var e=mr;return mr=null,e}var hr=null,fr=0;function xr(e){var t=fr;return fr+=1,null===hr&&(hr=[]),ur(hr,e,t)}function gr(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function vr(e,t){if(t.$$typeof===l)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function br(e){return(0,e._init)(e._payload)}function yr(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=33554434,n):a:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,a){return null===t||6!==t.tag?((t=Vl(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function m(e,t,n,a){var i=n.type;return i===u?h(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===j&&br(i)===t.type)?(gr(t=r(t,n.props),n),t.return=e,t):(gr(t=Il(n.type,n.key,n.props,null,e.mode,a),n),t.return=e,t)}function p(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zl(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function h(e,t,n,a,i){return null===t||7!==t.tag?((t=Zl(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case c:return gr(n=Il(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case d:return(t=zl(t,e.mode,n)).return=e,t;case j:return f(e,t=(0,t._init)(t._payload),n)}if(B(t)||k(t))return(t=Zl(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return f(e,xr(t),n);if(t.$$typeof===x)return f(e,Eo(e,t),n);vr(e,t)}return null}function g(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==r?null:l(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===r?m(e,t,n,a):null;case d:return n.key===r?p(e,t,n,a):null;case j:return g(e,t,n=(r=n._init)(n._payload),a)}if(B(n)||k(n))return null!==r?null:h(e,t,n,a,null);if("function"===typeof n.then)return g(e,t,xr(n),a);if(n.$$typeof===x)return g(e,t,Eo(e,n),a);vr(e,n)}return null}function v(e,t,n,a,r){if("string"===typeof a&&""!==a||"number"===typeof a||"bigint"===typeof a)return l(t,e=e.get(n)||null,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case c:return m(t,e=e.get(null===a.key?n:a.key)||null,a,r);case d:return p(t,e=e.get(null===a.key?n:a.key)||null,a,r);case j:return v(e,t,n,a=(0,a._init)(a._payload),r)}if(B(a)||k(a))return h(t,e=e.get(n)||null,a,r,null);if("function"===typeof a.then)return v(e,t,n,xr(a),r);if(a.$$typeof===x)return v(e,t,n,Eo(t,a),r);vr(t,a)}return null}function b(l,m,p,h){if("object"===typeof p&&null!==p&&p.type===u&&null===p.key&&(p=p.props.children),"object"===typeof p&&null!==p){switch(p.$$typeof){case c:e:{for(var y=p.key;null!==m;){if(m.key===y){if((y=p.type)===u){if(7===m.tag){n(l,m.sibling),(h=r(m,p.props.children)).return=l,l=h;break e}}else if(m.elementType===y||"object"===typeof y&&null!==y&&y.$$typeof===j&&br(y)===m.type){n(l,m.sibling),gr(h=r(m,p.props),p),h.return=l,l=h;break e}n(l,m);break}t(l,m),m=m.sibling}p.type===u?((h=Zl(p.props.children,l.mode,h,p.key)).return=l,l=h):(gr(h=Il(p.type,p.key,p.props,null,l.mode,h),p),h.return=l,l=h)}return o(l);case d:e:{for(y=p.key;null!==m;){if(m.key===y){if(4===m.tag&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(l,m.sibling),(h=r(m,p.children||[])).return=l,l=h;break e}n(l,m);break}t(l,m),m=m.sibling}(h=zl(p,l.mode,h)).return=l,l=h}return o(l);case j:return b(l,m,p=(y=p._init)(p._payload),h)}if(B(p))return function(r,s,o,l){for(var c=null,d=null,u=s,m=s=0,p=null;null!==u&&m<o.length;m++){u.index>m?(p=u,u=null):p=u.sibling;var h=g(r,u,o[m],l);if(null===h){null===u&&(u=p);break}e&&u&&null===h.alternate&&t(r,u),s=i(h,s,m),null===d?c=h:d.sibling=h,d=h,u=p}if(m===o.length)return n(r,u),$a&&qa(r,m),c;if(null===u){for(;m<o.length;m++)null!==(u=f(r,o[m],l))&&(s=i(u,s,m),null===d?c=u:d.sibling=u,d=u);return $a&&qa(r,m),c}for(u=a(u);m<o.length;m++)null!==(p=v(u,r,m,o[m],l))&&(e&&null!==p.alternate&&u.delete(null===p.key?m:p.key),s=i(p,s,m),null===d?c=p:d.sibling=p,d=p);return e&&u.forEach(function(e){return t(r,e)}),$a&&qa(r,m),c}(l,m,p,h);if(k(p)){if("function"!==typeof(y=k(p)))throw Error(s(150));return function(r,o,l,c){if(null==l)throw Error(s(151));for(var d=null,u=null,m=o,p=o=0,h=null,x=l.next();null!==m&&!x.done;p++,x=l.next()){m.index>p?(h=m,m=null):h=m.sibling;var b=g(r,m,x.value,c);if(null===b){null===m&&(m=h);break}e&&m&&null===b.alternate&&t(r,m),o=i(b,o,p),null===u?d=b:u.sibling=b,u=b,m=h}if(x.done)return n(r,m),$a&&qa(r,p),d;if(null===m){for(;!x.done;p++,x=l.next())null!==(x=f(r,x.value,c))&&(o=i(x,o,p),null===u?d=x:u.sibling=x,u=x);return $a&&qa(r,p),d}for(m=a(m);!x.done;p++,x=l.next())null!==(x=v(m,r,p,x.value,c))&&(e&&null!==x.alternate&&m.delete(null===x.key?p:x.key),o=i(x,o,p),null===u?d=x:u.sibling=x,u=x);return e&&m.forEach(function(e){return t(r,e)}),$a&&qa(r,p),d}(l,m,p=y.call(p),h)}if("function"===typeof p.then)return b(l,m,xr(p),h);if(p.$$typeof===x)return b(l,m,Eo(l,p),h);vr(l,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==m&&6===m.tag?(n(l,m.sibling),(h=r(m,p)).return=l,l=h):(n(l,m),(h=Vl(p,l.mode,h)).return=l,l=h),o(l)):n(l,m)}return function(e,t,n,a){try{fr=0;var r=b(e,t,n,a);return hr=null,r}catch(s){if(s===sr)throw s;var i=Hl(29,s,null,e.mode);return i.lanes=a,i.return=e,i}}}var jr=yr(!0),wr=yr(!1),Nr=W(null),Ar=W(0);function kr(e,t){K(Ar,e=cc),K(Nr,t),cc=e|t.baseLanes}function Er(){K(Ar,cc),K(Nr,Nr.current)}function Dr(){cc=Ar.current,Y(Nr),Y(Ar)}var _r=W(null),Cr=null;function Fr(e){var t=e.alternate;K(Rr,1&Rr.current),K(_r,e),null===Cr&&(null===t||null!==Nr.current||null!==t.memoizedState)&&(Cr=e)}function Sr(e){if(22===e.tag){if(K(Rr,Rr.current),K(_r,e),null===Cr){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Cr=e)}}else Mr()}function Mr(){K(Rr,Rr.current),K(_r,_r.current)}function Or(e){Y(_r),Cr===e&&(Cr=null),Y(Rr)}var Rr=W(0);function Hr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pr="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Lr=a.unstable_scheduleCallback,Tr=a.unstable_NormalPriority,Ir={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zr(){return{controller:new Pr,data:new Map,refCount:0}}function Br(e){e.refCount--,0===e.refCount&&Lr(Tr,function(){e.controller.abort()})}var Vr=null,zr=0,qr=0,Ur=null;function Wr(){if(0===--zr&&null!==Vr){null!==Ur&&(Ur.status="fulfilled");var e=Vr;Vr=null,qr=0,Ur=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Yr=F.S;F.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Vr){var n=Vr=[];zr=0,qr=jd(),Ur={status:"pending",value:void 0,then:function(e){n.push(e)}}}zr++,t.then(Wr,Wr)}(0,t),null!==Yr&&Yr(e,t)};var Kr=W(null);function Gr(){var e=Kr.current;return null!==e?e:tc.pooledCache}function $r(e,t){K(Kr,null===t?Kr.current:t.pool)}function Qr(){var e=Gr();return null===e?null:{parent:Ir._currentValue,pool:e}}var Xr=0,Jr=null,ei=null,ti=null,ni=!1,ai=!1,ri=!1,ii=0,si=0,oi=null,li=0;function ci(){throw Error(s(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function ui(e,t,n,a,r,i){return Xr=i,Jr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=null===e||null===e.memoizedState?ks:Es,ri=!1,i=n(a,r),ri=!1,ai&&(i=pi(t,n,a,r)),mi(e),i}function mi(e){F.H=As;var t=null!==ei&&null!==ei.next;if(Xr=0,ti=ei=Jr=null,ni=!1,si=0,oi=null,t)throw Error(s(300));null===e||zs||null!==(e=e.dependencies)&&No(e)&&(zs=!0)}function pi(e,t,n,a){Jr=e;var r=0;do{if(ai&&(oi=null),si=0,ai=!1,25<=r)throw Error(s(301));if(r+=1,ti=ei=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}F.H=Ds,i=t(n,a)}while(ai);return i}function hi(){var e=F.H,t=e.useState()[0];return t="function"===typeof t.then?yi(t):t,e=e.useState()[0],(null!==ei?ei.memoizedState:null)!==e&&(Jr.flags|=1024),t}function fi(){var e=0!==ii;return ii=0,e}function xi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gi(e){if(ni){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ni=!1}Xr=0,ti=ei=Jr=null,ai=!1,si=ii=0,oi=null}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Jr.memoizedState=ti=e:ti=ti.next=e,ti}function bi(){if(null===ei){var e=Jr.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Jr.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e){if(null===Jr.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Jr.memoizedState=ti=e:ti=ti.next=e}return ti}function yi(e){var t=si;return si+=1,null===oi&&(oi=[]),e=ur(oi,e,t),t=Jr,null===(null===ti?t.memoizedState:ti.next)&&(t=t.alternate,F.H=null===t||null===t.memoizedState?ks:Es),e}function ji(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return yi(e);if(e.$$typeof===x)return ko(e)}throw Error(s(438,String(e)))}function wi(e){var t=null,n=Jr.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var a=Jr.alternate;null!==a&&(null!==(a=a.updateQueue)&&(null!=(a=a.memoCache)&&(t={data:a.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=N;return t.index++,n}function Ni(e,t){return"function"===typeof t?t(e):t}function Ai(e){return ki(bi(),ei,e)}function ki(e,t,n){var a=e.queue;if(null===a)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,i=a.pending;if(null!==i){if(null!==r){var o=r.next;r.next=i.next,i.next=o}t.baseQueue=r=i,a.pending=null}if(i=e.baseState,null===r)e.memoizedState=i;else{var l=o=null,c=null,d=t=r.next,u=!1;do{var m=-536870913&d.lane;if(m!==d.lane?(ac&m)===m:(Xr&m)===m){var p=d.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),m===qr&&(u=!0);else{if((Xr&p)===p){d=d.next,p===qr&&(u=!0);continue}m={lane:0,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(l=c=m,o=i):c=c.next=m,Jr.lanes|=p,uc|=p}m=d.action,ri&&n(i,m),i=d.hasEagerState?d.eagerState:n(i,m)}else p={lane:m,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(l=c=p,o=i):c=c.next=p,Jr.lanes|=m,uc|=m;d=d.next}while(null!==d&&d!==t);if(null===c?o=i:c.next=l,!Kn(i,e.memoizedState)&&(zs=!0,u&&null!==(n=Ur)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=c,a.lastRenderedState=i}return null===r&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ei(e){var t=bi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var o=r=r.next;do{i=e(i,o.action),o=o.next}while(o!==r);Kn(i,t.memoizedState)||(zs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Di(e,t,n){var a=Jr,r=bi(),i=$a;if(i){if(void 0===n)throw Error(s(407));n=n()}else n=t();var o=!Kn((ei||r).memoizedState,n);if(o&&(r.memoizedState=n,zs=!0),r=r.queue,Xi(Fi.bind(null,a,r,e),[e]),r.getSnapshot!==t||o||null!==ti&&1&ti.memoizedState.tag){if(a.flags|=2048,Yi(9,Ci.bind(null,a,r,n,t),{destroy:void 0},null),null===tc)throw Error(s(349));i||0!==(60&Xr)||_i(a,t,n)}return n}
2function _i(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jr.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ci(e,t,n,a){t.value=n,t.getSnapshot=a,Si(t)&&Mi(e)}function Fi(e,t,n){return n(function(){Si(t)&&Mi(e)})}function Si(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch(a){return!0}}function Mi(e){var t=Ca(e,2);null!==t&&Mc(t,e,2)}function Oi(e){var t=vi();if("function"===typeof e){var n=e;if(e=n(),ri){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:e},t}function Ri(e,t,n,a){return e.baseState=n,ki(e,ei,"function"===typeof a?a:Ni)}function Hi(e,t,n,a,r){if(js(e))throw Error(s(485));if(null!==(e=t.action)){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==F.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,Pi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Pi(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var i=F.T,s={};F.T=s;try{var o=n(r,a),l=F.S;null!==l&&l(s,o),Li(e,t,o)}catch(c){Ii(e,t,c)}finally{F.T=i}}else try{Li(e,t,i=n(r,a))}catch(d){Ii(e,t,d)}}function Li(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Ti(e,t,n)},function(n){return Ii(e,t,n)}):Ti(e,t,n)}function Ti(e,t,n){t.status="fulfilled",t.value=n,Zi(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pi(e,n)))}function Ii(e,t,n){var a=e.pending;if(e.pending=null,null!==a){a=a.next;do{t.status="rejected",t.reason=n,Zi(t),t=t.next}while(t!==a)}e.action=null}function Zi(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bi(e,t){return t}function Vi(e,t){if($a){var n=tc.formState;if(null!==n){e:{var a=Jr;if($a){if(Ga){t:{for(var r=Ga,i=Xa;8!==r.nodeType;){if(!i){r=null;break t}if(null===(r=ou(r.nextSibling))){r=null;break t}}r="F!"===(i=r.data)||"F"===i?r:null}if(r){Ga=ou(r.nextSibling),a="F!"===r.data;break e}}er(a)}a=!1}a&&(t=n[0])}}return(n=vi()).memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:t},n.queue=a,n=vs.bind(null,Jr,a),a.dispatch=n,a=Oi(!1),i=ys.bind(null,Jr,!1,a.queue),r={state:t,dispatch:null,action:e,pending:null},(a=vi()).queue=r,n=Hi.bind(null,Jr,r,i,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function zi(e){return qi(bi(),ei,e)}function qi(e,t,n){t=ki(e,t,Bi)[0],e=Ai(Ni)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?yi(t):t;var a=bi(),r=a.queue,i=r.dispatch;return n!==a.memoizedState&&(Jr.flags|=2048,Yi(9,Ui.bind(null,r,n),{destroy:void 0},null)),[t,i,e]}function Ui(e,t){e.action=t}function Wi(e){var t=bi(),n=ei;if(null!==n)return qi(t,n,e);bi(),t=t.memoizedState;var a=(n=bi()).queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Yi(e,t,n,a){return e={tag:e,create:t,inst:n,deps:a,next:null},null===(t=Jr.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Ki(){return bi().memoizedState}function Gi(e,t,n,a){var r=vi();Jr.flags|=e,r.memoizedState=Yi(1|t,n,{destroy:void 0},void 0===a?null:a)}function $i(e,t,n,a){var r=bi();a=void 0===a?null:a;var i=r.memoizedState.inst;null!==ei&&null!==a&&di(a,ei.memoizedState.deps)?r.memoizedState=Yi(t,n,i,a):(Jr.flags|=e,r.memoizedState=Yi(1|t,n,i,a))}function Qi(e,t){Gi(8390656,8,e,t)}function Xi(e,t){$i(2048,8,e,t)}function Ji(e,t){return $i(4,2,e,t)}function es(e,t){return $i(4,4,e,t)}function ts(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,$i(4,4,ts.bind(null,t,e),n)}function as(){}function rs(e,t){var n=bi();t=void 0===t?null:t;var a=n.memoizedState;return null!==t&&di(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function is(e,t){var n=bi();t=void 0===t?null:t;var a=n.memoizedState;if(null!==t&&di(t,a[1]))return a[0];if(a=e(),ri){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[a,t],a}function ss(e,t,n){return void 0===n||0!==(1073741824&Xr)?e.memoizedState=t:(e.memoizedState=n,e=Sc(),Jr.lanes|=e,uc|=e,n)}function os(e,t,n,a){return Kn(n,t)?n:null!==Nr.current?(e=ss(e,n,a),Kn(e,t)||(zs=!0),e):0===(42&Xr)?(zs=!0,e.memoizedState=n):(e=Sc(),Jr.lanes|=e,uc|=e,t)}function ls(e,t,n,a,r){var i=V.p;V.p=0!==i&&8>i?i:8;var s=F.T,o={};F.T=o,ys(e,!1,t,n);try{var l=r(),c=F.S;if(null!==c&&c(o,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)bs(e,t,function(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(a.status="rejected",a.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),a}(l,a),Fc());else bs(e,t,a,Fc())}catch(d){bs(e,t,{then:function(){},status:"rejected",reason:d},Fc())}finally{V.p=i,F.T=s}}function cs(){}function ds(e,t,n,a){if(5!==e.tag)throw Error(s(476));var r=us(e).queue;ls(e,r,t,z,null===n?cs:function(){return ms(e),n(a)})}function us(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:z},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ms(e){bs(e,us(e).next.queue,{},Fc())}function ps(){return ko(Pu)}function hs(){return bi().memoizedState}function fs(){return bi().memoizedState}function xs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Fc(),a=Mo(t,e=So(n),n);return null!==a&&(Mc(a,t,n),Oo(a,t,n)),t={cache:Zr()},void(e.payload=t)}t=t.return}}function gs(e,t,n){var a=Fc();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?ws(t,n):null!==(n=_a(e,t,n,a))&&(Mc(n,e,a),Ns(n,t,a))}
vendor: 4,747 bytes, line 2
2function vs(e,t,n){bs(e,t,n,Fc())}function bs(e,t,n,a){var r={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))ws(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=i(s,n);if(r.hasEagerState=!0,r.eagerState=o,Kn(o,s))return Da(e,t,r,0),null===tc&&Ea(),!1}catch(l){}if(null!==(n=_a(e,t,r,a)))return Mc(n,e,a),Ns(n,t,a),!0}return!1}function ys(e,t,n,a){if(a={lane:2,revertLane:jd(),action:a,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(s(479))}else null!==(t=_a(e,n,a,2))&&Mc(t,e,2)}function js(e){var t=e.alternate;return e===Jr||null!==t&&t===Jr}function ws(e,t){ai=ni=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(0!==(4194176&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Re(e,n)}}var As={readContext:ko,use:ji,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useInsertionEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useSyncExternalStore:ci,useId:ci};As.useCacheRefresh=ci,As.useMemoCache=ci,As.useHostTransitionStatus=ci,As.useFormState=ci,As.useActionState=ci,As.useOptimistic=ci;var ks={readContext:ko,use:ji,useCallback:function(e,t){return vi().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:Qi,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Gi(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){Gi(4,2,e,t)},useMemo:function(e,t){var n=vi();t=void 0===t?null:t;var a=e();if(ri){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=vi();if(void 0!==n){var r=n(t);if(ri){be(!0);try{n(t)}finally{be(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=gs.bind(null,Jr,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},vi().memoizedState=e},useState:function(e){var t=(e=Oi(e)).queue,n=vs.bind(null,Jr,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:as,useDeferredValue:function(e,t){return ss(vi(),e,t)},useTransition:function(){var e=Oi(!1);return e=ls.bind(null,Jr,e.queue,!0,!1),vi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Jr,r=vi();if($a){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===tc)throw Error(s(349));0!==(60&ac)||_i(a,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,Qi(Fi.bind(null,a,i,e),[e]),a.flags|=2048,Yi(9,Ci.bind(null,a,i,n,t),{destroy:void 0},null),n},useId:function(){var e=vi(),t=tc.identifierPrefix;if($a){var n=za;t=":"+t+"R"+(n=(Va&~(1<<32-ye(Va)-1)).toString(32)+n),0<(n=ii++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=li++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return vi().memoizedState=xs.bind(null,Jr)}};ks.useMemoCache=wi,ks.useHostTransitionStatus=ps,ks.useFormState=Vi,ks.useActionState=Vi,ks.useOptimistic=function(e){var t=vi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ys.bind(null,Jr,!0,n),n.dispatch=t,[e,t]};var Es={readContext:ko,use:ji,useCallback:rs,useContext:ko,useEffect:Xi,useImperativeHandle:ns,useInsertionEffect:Ji,useLayoutEffect:es,useMemo:is,useReducer:Ai,useRef:Ki,useState:function(){return Ai(Ni)},useDebugValue:as,useDeferredValue:function(e,t){return os(bi(),ei.memoizedState,e,t)},useTransition:function(){var e=Ai(Ni)[0],t=bi().memoizedState;return["boolean"===typeof e?e:yi(e),t]},useSyncExternalStore:Di,useId:hs};Es.useCacheRefresh=fs,Es.useMemoCache=wi,Es.useHostTransitionStatus=ps,Es.useFormState=zi,Es.useActionState=zi,Es.useOptimistic=function(e,t){return Ri(bi(),0,e,t)};var Ds={readContext:ko,use:ji,useCallback:rs,useContext:ko,useEffect:Xi,useImperativeHandle:ns,useInsertionEffect:Ji,useLayoutEffect:es,useMemo:is,useReducer:Ei,useRef:Ki,useState:function(){return Ei(Ni)},useDebugValue:as,useDeferredValue:function(e,t){var n=bi();return null===ei?ss(n,e,t):os(n,ei.memoizedState,e,t)},useTransition:function(){var e=Ei(Ni)[0],t=bi().memoizedState;return["boolean"===typeof e?e:yi(e),t]},useSyncExternalStore:Di,useId:hs};function _s(e,t,n,a){n=null===(n=n(a,t=e.memoizedState))||void 0===n?t:S({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Ds.useCacheRefresh=fs,Ds.useMemoCache=wi,Ds.useHostTransitionStatus=ps,Ds.useFormState=Wi,Ds.useActionState=Wi,Ds.useOptimistic=function(e,t){var n=bi();return null!==ei?Ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};
2var Cs={isMounted:function(e){return!!(e=e._reactInternals)&&L(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Fc(),r=So(a);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=Mo(e,r,a))&&(Mc(t,e,a),Oo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Fc(),r=So(a);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=Mo(e,r,a))&&(Mc(t,e,a),Oo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fc(),a=So(n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Mo(e,a,n))&&(Mc(t,e,n),Oo(t,e,n))}};function Fs(e,t,n,a,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Gn(n,a)||!Gn(r,i))}function Ss(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Ms(e,t){var n=t;if("ref"in t)for(var a in n={},t)"ref"!==a&&(n[a]=t[a]);if(e=e.defaultProps)for(var r in n===t&&(n=S({},n)),e)void 0===n[r]&&(n[r]=e[r]);return n}var Os="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Rs(e){Os(e)}function Hs(e){console.error(e)}function Ps(e){Os(e)}function Ls(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ts(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Is(e,t,n){return(n=So(n)).tag=3,n.payload={element:null},n.callback=function(){Ls(e,t)},n}function Zs(e){return(e=So(e)).tag=3,e}function Bs(e,t,n,a){var r=n.type.getDerivedStateFromError;if("function"===typeof r){var i=a.value;e.payload=function(){return r(i)},e.callback=function(){Ts(t,n,a)}}var s=n.stateNode;null!==s&&"function"===typeof s.componentDidCatch&&(e.callback=function(){Ts(t,n,a),"function"!==typeof r&&(null===wc?wc=new Set([this]):wc.add(this));var e=a.stack;this.componentDidCatch(a.value,{componentStack:null!==e?e:""})})}var Vs=Error(s(461)),zs=!1;function qs(e,t,n,a){t.child=null===e?wr(t,null,n,a):jr(t,e.child,n,a)}function Us(e,t,n,a,r){n=n.render;var i=t.ref;if("ref"in a){var s={};for(var o in a)"ref"!==o&&(s[o]=a[o])}else s=a;return Ao(t),a=ui(e,t,n,s,i,r),o=fi(),null===e||zs?($a&&o&&Wa(t),t.flags|=1,qs(e,t,a,r),t.child):(xi(e,t,r),mo(e,t,r))}function Ws(e,t,n,a,r){if(null===e){var i=n.type;return"function"!==typeof i||Pl(i)||void 0!==i.defaultProps||null!==n.compare?((e=Il(n.type,null,a,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ys(e,t,i,a,r))}if(i=e.child,!po(e,r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Gn)(s,a)&&e.ref===t.ref)return mo(e,t,r)}return t.flags|=1,(e=Ll(i,a)).ref=t.ref,e.return=t,t.child=e}function Ys(e,t,n,a,r){if(null!==e){var i=e.memoizedProps;if(Gn(i,a)&&e.ref===t.ref){if(zs=!1,t.pendingProps=a=i,!po(e,r))return t.lanes=e.lanes,mo(e,t,r);0!==(131072&e.flags)&&(zs=!0)}}return Qs(e,t,n,a,r)}function Ks(e,t,n){var a=t.pendingProps,r=a.children,i=0!==(2&t.stateNode._pendingVisibility),s=null!==e?e.memoizedState:null;if($s(e,t),"hidden"===a.mode||i){if(0!==(128&t.flags)){if(a=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return Gs(e,t,a,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Gs(e,t,null!==s?s.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&$r(0,null!==s?s.cachePool:null),null!==s?kr(t,s):Er(),Sr(t)}else null!==s?($r(0,s.cachePool),kr(t,s),Mr(),t.memoizedState=null):(null!==e&&$r(0,null),Er(),Mr());return qs(e,t,r,n),t.child}function Gs(e,t,n,a){var r=Gr();return r=null===r?null:{parent:Ir._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&$r(0,null),Er(),Sr(t),null!==e&&wo(e,t,a,!0),null}function $s(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Qs(e,t,n,a,r){return Ao(t),n=ui(e,t,n,a,void 0,r),a=fi(),null===e||zs?($a&&a&&Wa(t),t.flags|=1,qs(e,t,n,r),t.child):(xi(e,t,r),mo(e,t,r))}function Xs(e,t,n,a,r,i){return Ao(t),t.updateQueue=null,n=pi(t,a,n,r),mi(e),a=fi(),null===e||zs?($a&&a&&Wa(t),t.flags|=1,qs(e,t,n,i),t.child):(xi(e,t,i),mo(e,t,i))}function Js(e,t,n,a,r){if(Ao(t),null===t.stateNode){var i=Ma,s=n.contextType;"object"===typeof s&&null!==s&&(i=ko(s)),i=new n(a,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=a,i.state=t.memoizedState,i.refs={},Co(t),s=n.contextType,i.context="object"===typeof s&&null!==s?ko(s):Ma,i.state=t.memoizedState,"function"===typeof(s=n.getDerivedStateFromProps)&&(_s(t,n,s,a),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(s=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Lo(t,a,i,r),Po(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!0}
2else if(null===e){i=t.stateNode;var o=t.memoizedProps,l=Ms(n,o);i.props=l;var c=i.context,d=n.contextType;s=Ma,"object"===typeof d&&null!==d&&(s=ko(d));var u=n.getDerivedStateFromProps;d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate,o=t.pendingProps!==o,d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(o||c!==s)&&Ss(t,i,a,s),_o=!1;var m=t.memoizedState;i.state=m,Lo(t,a,i,r),Po(),c=t.memoizedState,o||m!==c||_o?("function"===typeof u&&(_s(t,n,u,a),c=t.memoizedState),(l=_o||Fs(t,n,l,a,m,c,s))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=s,a=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Fo(e,t),d=Ms(n,s=t.memoizedProps),i.props=d,u=t.pendingProps,m=i.context,c=n.contextType,l=Ma,"object"===typeof c&&null!==c&&(l=ko(c)),(c="function"===typeof(o=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==u||m!==l)&&Ss(t,i,a,l),_o=!1,m=t.memoizedState,i.state=m,Lo(t,a,i,r),Po();var p=t.memoizedState;s!==u||m!==p||_o||null!==e&&null!==e.dependencies&&No(e.dependencies)?("function"===typeof o&&(_s(t,n,o,a),p=t.memoizedState),(d=_o||Fs(t,n,d,a,m,p,l)||null!==e&&null!==e.dependencies&&No(e.dependencies))?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(a,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(a,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),i.props=a,i.state=p,i.context=l,a=d):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,$s(e,t),a=0!==(128&t.flags),i||a?(i=t.stateNode,n=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&a?(t.child=jr(t,e.child,null,r),t.child=jr(t,null,n,r)):qs(e,t,n,r),t.memoizedState=i.state,e=t.child):e=mo(e,t,r),e}function eo(e,t,n,a){return rr(),t.flags|=256,qs(e,t,n,a),t.child}var to={dehydrated:null,treeContext:null,retryLane:0};function no(e){return{baseLanes:e,cachePool:Qr()}}function ao(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hc),e}function ro(e,t,n){var a,r=t.pendingProps,i=!1,o=0!==(128&t.flags);if((a=o)||(a=(null===e||null!==e.memoizedState)&&0!==(2&Rr.current)),a&&(i=!0,t.flags&=-129),a=0!==(32&t.flags),t.flags&=-33,null===e){if($a){if(i?Fr(t):Mr(),$a){var l,c=Ga;if(l=c){e:{for(l=c,c=Xa;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=ou(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Ba?{id:Va,overflow:za}:null,retryLane:536870912},(l=Hl(18,null,null,0)).stateNode=c,l.return=t,t.child=l,Ka=t,Ga=null,l=!0):l=!1}l||er(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return"$!"===c.data?t.lanes=16:t.lanes=536870912,null;Or(t)}return c=r.children,r=r.fallback,i?(Mr(),c=so({mode:"hidden",children:c},i=t.mode),r=Zl(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,(i=t.child).memoizedState=no(n),i.childLanes=ao(e,a,n),t.memoizedState=to,r):(Fr(t),io(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(o)256&t.flags?(Fr(t),t.flags&=-257,t=oo(e,t,n)):null!==t.memoizedState?(Mr(),t.child=e.child,t.flags|=128,t=null):(Mr(),i=r.fallback,
2c=t.mode,r=so({mode:"visible",children:r.children},c),(i=Zl(i,c,n,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,jr(t,e.child,null,n),(r=t.child).memoizedState=no(n),r.childLanes=ao(e,a,n),t.memoizedState=to,t=i);else if(Fr(t),"$!"===c.data){if(a=c.nextSibling&&c.nextSibling.dataset)var d=a.dgst;a=d,(r=Error(s(419))).stack="",r.digest=a,ir({value:r,source:null,stack:null}),t=oo(e,t,n)}else if(zs||wo(e,t,n,!1),a=0!==(n&e.childLanes),zs||a){if(null!==(a=tc)){if(0!==(42&(r=n&-n)))r=1;else switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=64;break;case 268435456:r=134217728;break;default:r=0}if(0!==(r=0!==(r&(a.suspendedLanes|n))?0:r)&&r!==l.retryLane)throw l.retryLane=r,Ca(e,r),Mc(a,e,r),Vs}"$?"===c.data||qc(),t=oo(e,t,n)}else"$?"===c.data?(t.flags|=128,t.child=e.child,t=od.bind(null,e),c._reactRetry=t,t=null):(e=l.treeContext,Ga=ou(c.nextSibling),Ka=t,$a=!0,Qa=null,Xa=!1,null!==e&&(Ia[Za++]=Va,Ia[Za++]=za,Ia[Za++]=Ba,Va=e.id,za=e.overflow,Ba=t),(t=io(t,r.children)).flags|=4096);return t}return i?(Mr(),i=r.fallback,c=t.mode,d=(l=e.child).sibling,(r=Ll(l,{mode:"hidden",children:r.children})).subtreeFlags=31457280&l.subtreeFlags,null!==d?i=Ll(d,i):(i=Zl(i,c,n,null)).flags|=2,i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,null===(c=e.child.memoizedState)?c=no(n):(null!==(l=c.cachePool)?(d=Ir._currentValue,l=l.parent!==d?{parent:d,pool:d}:l):l=Qr(),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ao(e,a,n),t.memoizedState=to,r):(Fr(t),e=(n=e.child).sibling,(n=Ll(n,{mode:"visible",children:r.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function io(e,t){return(t=so({mode:"visible",children:t},e.mode)).return=e,e.child=t}function so(e,t){return Bl(e,t,0,null)}function oo(e,t,n){return jr(t,e.child,null,n),(e=io(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function lo(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),yo(e.return,t,n)}function co(e,t,n,a,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function uo(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;if(qs(e,t,a.children,n),0!==(2&(a=Rr.current)))a=1&a|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lo(e,n,t);else if(19===e.tag)lo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(Rr,a),r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Hr(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),co(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Hr(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}co(t,!0,n,null,i);break;case"together":co(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),uc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(wo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function po(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!No(e))}function ho(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)zs=!0;else{if(!po(e,n)&&0===(128&t.flags))return zs=!1,function(e,t,n){switch(t.tag){case 3:J(t,t.stateNode.containerInfo),vo(t,Ir,e.memoizedState.cache),rr();break;case 27:case 5:te(t);break;case 4:J(t,t.stateNode.containerInfo);break;case 10:vo(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(null!==a)return null!==a.dehydrated?(Fr(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ro(e,t,n):(Fr(t),null!==(e=mo(e,t,n))?e.sibling:null);Fr(t);break;case 19:var r=0!==(128&e.flags);if((a=0!==(n&t.childLanes))||(wo(e,t,n,!1),a=0!==(n&t.childLanes)),r){if(a)return uo(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),K(Rr,Rr.current),a)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n);case 24:vo(t,Ir,e.memoizedState.cache)}return mo(e,t,n)}
vendor: 5,164 bytes, line 2
2(e,t,n);zs=0!==(131072&e.flags)}else zs=!1,$a&&0!==(1048576&t.flags)&&Ua(t,Ta,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,r=a._init;if(a=r(a._payload),t.type=a,"function"!==typeof a){if(void 0!==a&&null!==a){if((r=a.$$typeof)===g){t.tag=11,t=Us(null,t,a,e,n);break e}if(r===y){t.tag=14,t=Ws(null,t,a,e,n);break e}}throw t=D(a)||a,Error(s(306,t,""))}Pl(a)?(e=Ms(a,e),t.tag=1,t=Js(null,t,a,e,n)):(t.tag=0,t=Qs(null,t,a,e,n))}return t;case 0:return Qs(e,t,t.type,t.pendingProps,n);case 1:return Js(e,t,a=t.type,r=Ms(a,t.pendingProps),n);case 3:e:{if(J(t,t.stateNode.containerInfo),null===e)throw Error(s(387));var i=t.pendingProps;a=(r=t.memoizedState).element,Fo(e,t),Lo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,vo(t,Ir,i),i!==r.cache&&jo(t,[Ir],n,!0),Po(),i=o.element,r.isDehydrated){if(r={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=r,t.memoizedState=r,256&t.flags){t=eo(e,t,i,n);break e}if(i!==a){ir(a=Ra(Error(s(424)),t)),t=eo(e,t,i,n);break e}for(Ga=ou(t.stateNode.containerInfo.firstChild),Ka=t,$a=!0,Qa=null,Xa=!0,n=wr(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rr(),i===a){t=mo(e,t,n);break e}qs(e,t,i,n)}t=t.child}return t;case 26:return $s(e,t),null===e?(n=xu(t.type,null,t.pendingProps,null))?t.memoizedState=n:$a||(n=t.type,e=t.pendingProps,(a=Gd(Q.current).createElement(n))[Te]=t,a[Ie]=e,Wd(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=xu(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&$a&&(a=t.stateNode=cu(t.type,t.pendingProps,Q.current),Ka=t,Xa=!0,Ga=ou(a.firstChild)),a=t.pendingProps.children,null!==e||$a?qs(e,t,a,n):t.child=jr(t,null,a,n),$s(e,t),t.child;case 5:return null===e&&$a&&((r=a=Ga)&&(null!==(a=function(e,t,n,a){for(;1===e.nodeType;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(a){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(null==r.href?null:r.href)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin)||e.getAttribute("title")!==(null==r.title?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==r.src?null:r.src)||e.getAttribute("type")!==(null==r.type?null:r.type)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==r.name?null:""+r.name;if("hidden"===r.type&&e.getAttribute("name")===i)return e}if(null===(e=ou(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,Xa))?(t.stateNode=a,Ka=t,Ga=ou(a.firstChild),Xa=!1,r=!0):r=!1),r||er(t)),te(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Xd(r,i)?a=null:null!==o&&Xd(r,o)&&(t.flags|=32),null!==t.memoizedState&&(r=ui(e,t,hi,null,null,n),Pu._currentValue=r),$s(e,t),qs(e,t,a,n),t.child;case 6:return null===e&&$a&&((e=n=Ga)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ou(e.nextSibling)))return null}return e}(n,t.pendingProps,Xa))?(t.stateNode=n,Ka=t,Ga=null,e=!0):e=!1),e||er(t)),null;case 13:return ro(e,t,n);case 4:return J(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=jr(t,null,a,n):qs(e,t,a,n),t.child;case 11:return Us(e,t,t.type,t.pendingProps,n);case 7:return qs(e,t,t.pendingProps,n),t.child;case 8:case 12:return qs(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,vo(t,t.type,a.value),qs(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Ao(t),a=a(r=ko(r)),t.flags|=1,qs(e,t,a,n),t.child;case 14:return Ws(e,t,t.type,t.pendingProps,n);case 15:return Ys(e,t,t.type,t.pendingProps,n);case 19:return uo(e,t,n);case 22:return Ks(e,t,n);case 24:return Ao(t),a=ko(Ir),null===e?(null===(r=Gr())&&(r=tc,i=Zr(),r.pooledCache=i,i.refCount++,null!==i&&(r.pooledCacheLanes|=n),r=i),t.memoizedState={parent:a,cache:r},Co(t),vo(t,Ir,r)):(0!==(e.lanes&n)&&(Fo(e,t),Lo(t,null,null,n),Po()),r=e.memoizedState,i=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=r),vo(t,Ir,a)):(a=i.cache,vo(t,Ir,a),a!==r.cache&&jo(t,[Ir],n,!0))),qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var fo=W(null),xo=null,go=null;function vo(e,t,n){K(fo,t._currentValue),t._currentValue=n}function bo(e){e._currentValue=fo.current,Y(fo)}function yo(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function jo(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=r.dependencies;if(null!==i){var o=r.child;i=i.firstContext;e:for(;null!==i;){var l=i;
vendor: 1,058 bytes, line 2
2i=r;for(var c=0;c<t.length;c++)if(l.context===t[c]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),yo(i.return,n,e),a||(o=null);break e}i=l.next}}else if(18===r.tag){if(null===(o=r.return))throw Error(s(341));o.lanes|=n,null!==(i=o.alternate)&&(i.lanes|=n),yo(o,n,e),o=null}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}if(null!==(r=o.sibling)){r.return=o.return,o=r;break}o=o.return}r=o}}function wo(e,t,n,a){e=null;for(var r=t,i=!1;null!==r;){if(!i)if(0!==(524288&r.flags))i=!0;else if(0!==(262144&r.flags))break;if(10===r.tag){var o=r.alternate;if(null===o)throw Error(s(387));if(null!==(o=o.memoizedProps)){var l=r.type;Kn(r.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(r===X.current){if(null===(o=r.alternate))throw Error(s(387));o.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(null!==e?e.push(Pu):e=[Pu])}r=r.return}null!==e&&jo(t,e,n,a),t.flags|=262144}function No(e){for(e=e.firstContext;null!==e;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 23,210 bytes, line 2
2function Ao(e){xo=e,go=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function ko(e){return Do(xo,e)}function Eo(e,t){return null===xo&&Ao(e),Do(e,t)}function Do(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===go){if(null===e)throw Error(s(308));go=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else go=go.next=t;return n}var _o=!1;function Co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function So(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,0!==(2&ec)){var r=a.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Sa(e),Fa(e,null,n),t}return Da(e,a,t,n),Sa(e)}function Oo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Re(e,n)}}function Ro(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ho=!1;function Po(){if(Ho){if(null!==Ur)throw Ur}}function Lo(e,t,n,a){Ho=!1;var r=e.updateQueue;_o=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,o=r.shared.pending;if(null!==o){r.shared.pending=null;var l=o,c=l.next;l.next=null,null===s?i=c:s.next=c,s=l;var d=e.alternate;null!==d&&((o=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===o?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=l))}if(null!==i){var u=r.baseState;for(s=0,d=c=l=null,o=i;;){var m=-536870913&o.lane,p=m!==o.lane;if(p?(ac&m)===m:(a&m)===m){0!==m&&m===qr&&(Ho=!0),null!==d&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var h=e,f=o;m=t;var x=n;switch(f.tag){case 1:if("function"===typeof(h=f.payload)){u=h.call(x,u,m);break e}u=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(m="function"===typeof(h=f.payload)?h.call(x,u,m):h)||void 0===m)break e;u=S({},u,m);break e;case 2:_o=!0}}null!==(m=o.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=r.callbacks)?r.callbacks=[m]:p.push(m))}else p={lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(c=d=p,l=u):d=d.next=p,s|=m;if(null===(o=o.next)){if(null===(o=r.shared.pending))break;o=(p=o).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}null===d&&(l=u),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=d,null===i&&(r.shared.lanes=0),uc|=s,e.lanes=s,e.memoizedState=u}}function To(e,t){if("function"!==typeof e)throw Error(s(191,e));e.call(t)}function Io(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)To(n[e],t)}function Zo(e,t){try{var n=t.updateQueue,a=null!==n?n.lastEffect:null;if(null!==a){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var i=n.create,s=n.inst;a=i(),s.destroy=a}n=n.next}while(n!==r)}}catch(o){ad(t,t.return,o)}}function Bo(e,t,n){try{var a=t.updateQueue,r=null!==a?a.lastEffect:null;if(null!==r){var i=r.next;a=i;do{if((a.tag&e)===e){var s=a.inst,o=s.destroy;if(void 0!==o){s.destroy=void 0,r=t;var l=n;try{o()}catch(c){ad(r,l,c)}}}a=a.next}while(a!==i)}}catch(c){ad(t,t.return,c)}}function Vo(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Io(t,n)}catch(a){ad(e,e.return,a)}}}function zo(e,t,n){n.props=Ms(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ad(e,t,a)}}function qo(e,t){try{var n=e.ref;if(null!==n){var a=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=a;break;default:r=a}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(i){ad(e,t,i)}}function Uo(e,t){var n=e.ref,a=e.refCleanup;if(null!==n)if("function"===typeof a)try{a()}catch(r){ad(e,t,r)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){ad(e,t,i)}else n.current=null}function Wo(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){ad(e,e.return,r)}}function Yo(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,o=null,l=null,c=null,d=null,u=null;for(h in n){var m=n[h];if(n.hasOwnProperty(h)&&null!=m)switch(h){case"checked":case"value":break;case"defaultValue":c=m;default:a.hasOwnProperty(h)||qd(e,t,h,null,a,m)}}for(var p in a){var h=a[p];if(m=n[p],a.hasOwnProperty(p)&&(null!=h||null!=m))switch(p){case"type":i=h;break;case"name":r=h;break;case"checked":d=h;break;case"defaultChecked":u=h;break;case"value":o=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:h!==m&&qd(e,t,p,h,a,m)}}return void xt(e,o,l,c,d,u,i,r);case"select":for(i in h=o=l=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:a.hasOwnProperty(i)||qd(e,t,i,null,a,c)}for(r in a)if(i=a[r],c=n[r],a.hasOwnProperty(r)&&(null!=i||null!=c))switch(r){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==c&&qd(e,t,r,i,a,c)}return t=l,n=o,a=h,void(null!=p?bt(e,!!n,p,!1):!!a!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(r=n[l],n.hasOwnProperty(l)&&null!=r&&!a.hasOwnProperty(l))switch(l){case"value":case"children":break;default:qd(e,t,l,null,a,r)}for(o in a)if(r=a[o],i=n[o],a.hasOwnProperty(o)&&(null!=r||null!=i))switch(o){case"value":p=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=r)throw Error(s(91));break;default:r!==i&&qd(e,t,o,r,a,i)}return void yt(e,p,h);case"option":for(var f in n)if(p=n[f],n.hasOwnProperty(f)&&null!=p&&!a.hasOwnProperty(f))if("selected"===f)e.selected=!1;else qd(e,t,f,null,a,p);for(c in a)if(p=a[c],h=n[c],a.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else qd(e,t,c,p,a,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var x in n)p=n[x],n.hasOwnProperty(x)&&null!=p&&!a.hasOwnProperty(x)&&qd(e,t,x,null,a,p);for(d in a)if(p=a[d],h=n[d],a.hasOwnProperty(d)&&p!==h&&(null!=p||null!=h))switch(d){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:qd(e,t,d,p,a,h)}return;default:if(Et(t)){for(var g in n)p=n[g],n.hasOwnProperty(g)&&void 0!==p&&!a.hasOwnProperty(g)&&Ud(e,t,g,void 0,a,p);for(u in a)p=a[u],h=n[u],!a.hasOwnProperty(u)||p===h||void 0===p&&void 0===h||Ud(e,t,u,p,a,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!a.hasOwnProperty(v)&&qd(e,t,v,null,a,p);for(m in a)p=a[m],h=n[m],!a.hasOwnProperty(m)||p===h||null==p&&null==h||qd(e,t,m,p,a,h)}(a,e.type,n,t),a[Ie]=t}catch(r){ad(e,e.return,r)}}function Ko(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Go(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ko(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function $o(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=zd));else if(4!==a&&27!==a&&null!==(e=e.child))for($o(e,t,n),e=e.sibling;null!==e;)$o(e,t,n),e=e.sibling}function Qo(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&27!==a&&null!==(e=e.child))for(Qo(e,t,n),e=e.sibling;null!==e;)Qo(e,t,n),e=e.sibling}var Xo=!1,Jo=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,al=!1;function rl(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),4&a&&Zo(5,n);break;case 1:if(gl(e,n),4&a)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(o){ad(n,n.return,o)}else{var r=Ms(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){ad(n,n.return,l)}}64&a&&Vo(n),512&a&&qo(n,n.return);break;case 3:if(gl(e,n),64&a&&null!==(a=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{Io(a,e)}catch(o){ad(n,n.return,o)}}break;case 26:gl(e,n),512&a&&qo(n,n.return);break;case 27:case 5:gl(e,n),null===t&&4&a&&Wo(n),512&a&&qo(n,n.return);break;case 12:default:gl(e,n);break;case 13:gl(e,n),4&a&&dl(e,n);break;case 22:if(!(r=null!==n.memoizedState||Xo)){t=null!==t&&null!==t.memoizedState||Jo;var i=Xo,s=Jo;Xo=r,(Jo=t)&&!s?bl(e,n,0!==(8772&n.subtreeFlags)):gl(e,n),Xo=i,Jo=s}512&a&&("manual"===n.memoizedProps.mode?qo(n,n.return):Uo(n,n.return))}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&We(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,ol=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ge,n)}catch(s){}switch(n.tag){case 26:Jo||Uo(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Jo||Uo(n,t);var a=sl,r=ol;for(sl=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);We(n),sl=a,ol=r;break;case 5:Jo||Uo(n,t);case 6:r=sl;var i=ol;if(sl=null,ll(e,t,n),ol=i,null!==(sl=r))if(ol)try{e=sl,a=n.stateNode,8===e.nodeType?e.parentNode.removeChild(a):e.removeChild(a)}catch(o){ad(n,t,o)}else try{sl.removeChild(n.stateNode)}catch(o){ad(n,t,o)}break;case 18:null!==sl&&(ol?(t=sl,n=n.stateNode,8===t.nodeType?iu(t.parentNode,n):1===t.nodeType&&iu(t,n),fm(t)):iu(sl,n.stateNode));break;case 4:a=sl,r=ol,sl=n.stateNode.containerInfo,ol=!0,ll(e,t,n),sl=a,ol=r;break;case 0:case 11:case 14:case 15:Jo||Bo(2,n,t),Jo||Bo(4,n,t),ll(e,t,n);break;case 1:Jo||(Uo(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount&&zo(n,t,a)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Jo||Uo(n,t),Jo=(a=Jo)||null!==n.memoizedState,ll(e,t,n),Jo=a;break;default:ll(e,t,n)}}function dl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{fm(e)}catch(n){ad(t,t.return,n)}}function ul(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(s(435,e.tag))}}(e);t.forEach(function(t){var a=ld.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))})}function ml(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var r=n[a],i=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:case 5:sl=l.stateNode,ol=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,ol=!0;break e}l=l.return}if(null===sl)throw Error(s(160));cl(i,o,r),sl=null,ol=!1,null!==(i=r.alternate)&&(i.return=null),r.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}var pl=null;function hl(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),fl(e),4&a&&(Bo(3,e,e.return),Zo(3,e),Bo(5,e,e.return));break;case 1:ml(t,e),fl(e),512&a&&(Jo||null===n||Uo(n,n.return)),64&a&&Xo&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var r=pl;if(ml(t,e),fl(e),512&a&&(Jo||null===n||Uo(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":(!(i=r.getElementsByTagName("title")[0])||i[Ue]||i[Te]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=r.createElement(a),r.head.insertBefore(i,r.querySelector("head > title"))),Wd(i,a,n),i[Te]=e,Qe(i),a=i;break e;case"link":var o=Du("link","href",r).get(a+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((i=o[l]).getAttribute("href")===(null==n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}Wd(i=r.createElement(a),a,n),r.head.appendChild(i);break;case"meta":if(o=Du("meta","content",r).get(a+(n.content||"")))for(l=0;l<o.length;l++)if((i=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}Wd(i=r.createElement(a),a,n),r.head.appendChild(i);break;default:throw Error(s(468,a))}i[Te]=e,Qe(i),a=i}e.stateNode=a}else _u(r,e.type,e.stateNode);else e.stateNode=wu(r,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?_u(r,e.type,e.stateNode):wu(r,a,e.memoizedProps)):null===a&&null!==e.stateNode&&Yo(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&a&&null===e.alternate){r=e.stateNode,i=e.memoizedProps;try{for(var c=r.firstChild;c;){var d=c.nextSibling,u=c.nodeName;c[Ue]||"HEAD"===u||"BODY"===u||"SCRIPT"===u||"STYLE"===u||"LINK"===u&&"stylesheet"===c.rel.toLowerCase()||r.removeChild(c),c=d}for(var m=e.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Wd(r,m,i),r[Te]=e,r[Ie]=i}catch(f){ad(e,e.return,f)}}case 5:if(ml(t,e),fl(e),512&a&&(Jo||null===n||Uo(n,n.return)),32&e.flags){r=e.stateNode;try{wt(r,"")}catch(f){ad(e,e.return,f)}}4&a&&null!=e.stateNode&&Yo(e,r=e.memoizedProps,null!==n?n.memoizedProps:r),1024&a&&(el=!0);break;case 6:if(ml(t,e),fl(e),4&a){if(null===e.stateNode)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(f){ad(e,e.return,f)}}break;case 3:if(Eu=null,r=pl,pl=mu(t.containerInfo),ml(t,e),pl=r,fl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{fm(t.containerInfo)}catch(f){ad(e,e.return,f)}el&&(el=!1,xl(e));break;case 4:a=pl,pl=mu(e.stateNode.containerInfo),ml(t,e),fl(e),pl=a;break;case 12:ml(t,e),fl(e);break;case 13:ml(t,e),fl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bc=le()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,ul(e,a)));break;case 22:if(512&a&&(Jo||null===n||Uo(n,n.return)),c=null!==e.memoizedState,d=null!==n&&null!==n.memoizedState,Xo=(u=Xo)||c,Jo=(m=Jo)||d,ml(t,e),Jo=m,Xo=u,fl(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&a&&(t._visibility=c?-2&t._visibility:1|t._visibility,c&&(t=Xo||Jo,null===n||d||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){d=n=t;try{if(r=d.stateNode,c)"function"===typeof(i=r.style).setProperty?i.setProperty("display","none","important"):i.display="none";else{o=d.stateNode;var h=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;o.style.display=null==h||"boolean"===typeof h?"":(""+h).trim()}}catch(f){ad(d,d.return,f)}}}else if(6===t.tag){if(null===n){d=t;try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(f){ad(d,d.return,f)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,ul(e,n))));break;case 19:ml(t,e),fl(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,ul(e,a)));break;case 21:break;default:ml(t,e),fl(e)}}function fl(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Ko(n)){var a=n;break e}n=n.return}throw Error(s(160))}switch(a.tag){case 27:var r=a.stateNode;Qo(e,Go(e),r);break;case 5:var i=a.stateNode;32&a.flags&&(wt(i,""),a.flags&=-33),Qo(e,Go(e),i);break;case 3:case 4:var o=a.stateNode.containerInfo;$o(e,Go(e),o);break;default:throw Error(s(161))}}}catch(l){ad(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;xl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)rl(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bo(4,t,t.return),vl(t);break;case 1:Uo(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&zo(t,t.return,n),vl(t);break;case 26:case 27:case 5:Uo(t,t.return),vl(t);break;case 22:Uo(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var a=t.alternate,r=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:bl(r,i,n),Zo(4,i);break;case 1:if(bl(r,i,n),"function"===typeof(r=(a=i).stateNode).componentDidMount)try{r.componentDidMount()}catch(c){ad(a,a.return,c)}if(null!==(r=(a=i).updateQueue)){var o=a.stateNode;try{var l=r.shared.hiddenCallbacks;if(null!==l)for(r.shared.hiddenCallbacks=null,r=0;r<l.length;r++)To(l[r],o)}catch(c){ad(a,a.return,c)}}n&&64&s&&Vo(i),qo(i,i.return);break;case 26:case 27:case 5:bl(r,i,n),n&&null===a&&4&s&&Wo(i),qo(i,i.return);break;case 12:default:bl(r,i,n);break;case 13:bl(r,i,n),n&&4&s&&dl(r,i);break;case 22:null===i.memoizedState&&bl(r,i,n),qo(i,i.return)}t=t.sibling}}function yl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Br(n))}function jl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Br(e))}function wl(e,t,n,a){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t,n,a),t=t.sibling}function Nl(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,a),2048&r&&Zo(9,t);break;case 3:wl(e,t,n,a),2048&r&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Br(e)));break;case 12:if(2048&r){wl(e,t,n,a),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,o=i.onPostCommit;"function"===typeof o&&o(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ad(t,t.return,l)}}else wl(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,null!==t.memoizedState?4&i._visibility?wl(e,t,n,a):kl(e,t):4&i._visibility?wl(e,t,n,a):(i._visibility|=4,Al(e,t,n,a,0!==(10256&t.subtreeFlags))),2048&r&&yl(t.alternate,t);break;case 24:wl(e,t,n,a),2048&r&&jl(t.alternate,t);break;default:wl(e,t,n,a)}}function Al(e,t,n,a,r){for(r=r&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,s=t,o=n,l=a,c=s.flags;switch(s.tag){case 0:case 11:case 15:Al(i,s,o,l,r),Zo(8,s);break;case 23:break;case 22:var d=s.stateNode;null!==s.memoizedState?4&d._visibility?Al(i,s,o,l,r):kl(i,s):(d._visibility|=4,Al(i,s,o,l,r)),r&&2048&c&&yl(s.alternate,s);break;case 24:Al(i,s,o,l,r),r&&2048&c&&jl(s.alternate,s);break;default:Al(i,s,o,l,r)}t=t.sibling}}function kl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:kl(n,a),2048&r&&yl(a.alternate,a);break;case 24:kl(n,a),2048&r&&jl(a.alternate,a);break;default:kl(n,a)}t=t.sibling}}var El=8192;function Dl(e){if(e.subtreeFlags&El)for(e=e.child;null!==e;)_l(e),e=e.sibling}function _l(e){switch(e.tag){case 26:Dl(e),e.flags&El&&null!==e.memoizedState&&function(e,t,n){if(null===Fu)throw Error(s(475));var a=Fu;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var r=gu(n.href),i=e.querySelector(vu(r));if(i)return null!==(e=i._p)&&"object"===typeof e&&"function"===typeof e.then&&(a.count++,a=Mu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,void Qe(i);i=e.ownerDocument||e,n=bu(n),(r=du.get(r))&&Au(n,r),Qe(i=i.createElement("link"));var o=i;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Wd(i,"link",n),t.instance=i}null===a.stylesheets&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(a.count++,t=Mu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}(pl,e.memoizedState,e.memoizedProps);break;case 5:default:Dl(e);break;case 3:case 4:var t=pl;pl=mu(e.stateNode.containerInfo),Dl(e),pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=El,El=16777216,Dl(e),El=t):Dl(e))}}function Cl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Fl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];nl=a,Ol(a,e)}Cl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Sl(e),e=e.sibling}function Sl(e){switch(e.tag){case 0:case 11:case 15:Fl(e),2048&e.flags&&Bo(9,e,e.return);break;case 3:case 12:default:Fl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Ml(e)):Fl(e)}}function Ml(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];nl=a,Ol(a,e)}Cl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Bo(8,t,t.return),Ml(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Ml(t));break;default:Ml(t)}e=e.sibling}}function Ol(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:Bo(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var a=n.memoizedState.cachePool.pool;null!=a&&a.refCount++}break;case 24:Br(n.memoizedState.cache)}if(null!==(a=n.child))a.return=n,nl=a;else e:for(n=e;null!==nl;){var r=(a=nl).sibling,i=a.return;if(il(a),a===n){nl=null;break e}if(null!==r){r.return=i,nl=r;break e}nl=i}}}function Rl(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
2ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,a){return new Rl(e,t,n,a)}function Pl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Tl(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Il(e,t,n,a,r,i){var o=0;if(a=e,"function"===typeof e)Pl(e)&&(o=1);else if("string"===typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,G.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case u:return Zl(n.children,r,i,t);case m:o=8,r|=24;break;case p:return(e=Hl(12,n,t,2|r)).elementType=p,e.lanes=i,e;case v:return(e=Hl(13,n,t,r)).elementType=v,e.lanes=i,e;case b:return(e=Hl(19,n,t,r)).elementType=b,e.lanes=i,e;case w:return Bl(n,r,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:case x:o=10;break e;case f:o=9;break e;case g:o=11;break e;case y:o=14;break e;case j:o=16,a=null;break e}o=29,n=Error(s(130,null===e?"null":typeof e,"")),a=null}return(t=Hl(o,n,t,r)).elementType=e,t.type=a,t.lanes=i,t}function Zl(e,t,n,a){return(e=Hl(7,e,a,t)).lanes=n,e}function Bl(e,t,n,a){(e=Hl(22,e,a,t)).elementType=w,e.lanes=n;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=r._current;if(null===e)throw Error(s(456));if(0===(2&r._pendingVisibility)){var t=Ca(e,2);null!==t&&(r._pendingVisibility|=2,Mc(t,e,2))}},attach:function(){var e=r._current;if(null===e)throw Error(s(456));if(0!==(2&r._pendingVisibility)){var t=Ca(e,2);null!==t&&(r._pendingVisibility&=-3,Mc(t,e,2))}}};return e.stateNode=r,e}function Vl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function zl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ql(e){e.flags|=4}function Ul(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Cu(t)){if(null!==(t=_r.current)&&((4194176&ac)===ac?null!==Cr:(62914560&ac)!==ac&&0===(536870912&ac)||t!==Cr))throw mr=lr,or;e.flags|=8192}}function Wl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Fe():536870912,e.lanes|=t,fc|=t)}function Yl(e,t){if(!$a)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;null!==r;
vendor: 14,616 bytes, line 2
2)n|=r.lanes|r.childLanes,a|=31457280&r.subtreeFlags,a|=31457280&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Gl(e,t,n){var a=t.pendingProps;switch(Ya(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Kl(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bo(Ir),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ar(t)?ql(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Qa&&(Rc(Qa),Qa=null))),Kl(t),null;case 26:return n=t.memoizedState,null===e?(ql(t),null!==n?(Kl(t),Ul(t,n)):(Kl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ql(t),Kl(t),Ul(t,n)):(Kl(t),t.flags&=-16777217):(e.memoizedProps!==a&&ql(t),Kl(t),t.flags&=-16777217),null;case 27:ne(t),n=Q.current;var r=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==a&&ql(t);else{if(!a){if(null===t.stateNode)throw Error(s(166));return Kl(t),null}e=G.current,ar(t)?tr(t):(e=cu(r,a,n),t.stateNode=e,ql(t))}return Kl(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&ql(t);else{if(!a){if(null===t.stateNode)throw Error(s(166));return Kl(t),null}if(e=G.current,ar(t))tr(t);else{switch(r=Gd(Q.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=r.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof a.is?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e="string"===typeof a.is?r.createElement(n,{is:a.is}):r.createElement(n)}}e[Te]=t,e[Ie]=a;e:for(r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&27!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;null===r.sibling;){if(null===r.return||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Wd(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ql(t)}}return Kl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&ql(t);else{if("string"!==typeof a&&null===t.stateNode)throw Error(s(166));if(e=Q.current,ar(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(r=Ka))switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Te]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||Vd(e.nodeValue,n)))||er(t)}else(e=Gd(e).createTextNode(a))[Te]=t,t.stateNode=e}return Kl(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(r=ar(t),null!==a&&null!==a.dehydrated){if(null===e){if(!r)throw Error(s(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(s(317));r[Te]=t}else rr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),r=!1}else null!==Qa&&(Rc(Qa),Qa=null),r=!0;if(!r)return 256&t.flags?(Or(t),t):(Or(t),null)}if(Or(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==a,e=null!==e&&null!==e.memoizedState,n){r=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(r=a.alternate.memoizedState.cachePool.pool);var i=null;null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==r&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Wl(t,t.updateQueue),Kl(t),null;case 4:return ee(),null===e&&Md(t.stateNode.containerInfo),Kl(t),null;case 10:return bo(t.type),Kl(t),null;case 19:if(Y(Rr),null===(r=t.memoizedState))return Kl(t),null;if(a=0!==(128&t.flags),null===(i=r.rendering))if(a)Yl(r,!1);else{if(0!==dc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Hr(e))){for(t.flags|=128,Yl(r,!1),e=i.updateQueue,t.updateQueue=e,Wl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Tl(n,e),n=n.sibling;return K(Rr,1&Rr.current|2),t.child}e=e.sibling}null!==r.tail&&le()>yc&&(t.flags|=128,a=!0,Yl(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Hr(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Wl(t,e),Yl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!$a)return Kl(t),null}else 2*le()-r.renderingStartTime>yc&&536870912!==n&&(t.flags|=128,a=!0,Yl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=le(),t.sibling=null,e=Rr.current,K(Rr,a?1&e|2:1&e),t):(Kl(t),null);case 22:case 23:return Or(t),Dr(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?0!==(536870912&n)&&0===(128&t.flags)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null!==(n=t.updateQueue)&&Wl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&Y(Kr),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bo(Ir),Kl(t),null;case 25:return null}throw Error(s(156,t.tag))}function $l(e,t){switch(Ya(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bo(Ir),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Or(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));rr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Y(Rr),null;case 4:return ee(),null;case 10:return bo(t.type),null;case 22:case 23:return Or(t),Dr(),null!==e&&Y(Kr),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bo(Ir),null;default:return null}}function Ql(e,t){switch(Ya(t),t.tag){case 3:bo(Ir),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Or(t);break;case 19:Y(Rr);break;case 10:bo(t.type);break;case 22:case 23:Or(t),Dr(),null!==e&&Y(Kr);break;case 24:bo(Ir)}}var Xl={getCacheForType:function(e){var t=ko(Ir),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Jl="function"===typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,ac=0,rc=0,ic=null,sc=!1,oc=!1,lc=!1,cc=0,dc=0,uc=0,mc=0,pc=0,hc=0,fc=0,xc=null,gc=null,vc=!1,bc=0,yc=1/0,jc=null,wc=null,Nc=!1,Ac=null,kc=0,Ec=0,Dc=null,_c=0,Cc=null;function Fc(){if(0!==(2&ec)&&0!==ac)return ac&-ac;if(null!==F.T){return 0!==qr?qr:jd()}return Pe()}function Sc(){0===hc&&(hc=0===(536870912&ac)||$a?Ce():536870912);var e=_r.current;return null!==e&&(e.flags|=32),hc}function Mc(e,t,n){(e===tc&&2===rc||null!==e.cancelPendingCommit)&&(Zc(e,0),Lc(e,ac,hc,!1)),Me(e,n),0!==(2&ec)&&e===tc||(e===tc&&(0===(2&ec)&&(mc|=n),4===dc&&Lc(e,ac,hc,!1)),fd(e))}function Oc(e,t,n){if(0!==(6&ec))throw Error(s(327));for(var a=!n&&0===(60&t)&&0===(t&e.expiredLanes)||De(e,t),r=a?function(e,t){var n=ec;ec|=2;var a=Vc(),r=zc();tc!==e||ac!==t?(jc=null,yc=le()+500,Zc(e,t)):oc=De(e,t);e:for(;;)try{if(0!==rc&&null!==nc){t=nc;var i=ic;t:switch(rc){case 1:rc=0,ic=null,$c(e,t,i,1);break;case 2:if(cr(i)){rc=0,ic=null,Gc(t);break}t=function(){2===rc&&tc===e&&(rc=7),fd(e)},i.then(t,t);break e;case 3:rc=7;break e;case 4:rc=5;break e;case 7:cr(i)?(rc=0,ic=null,Gc(t)):(rc=0,ic=null,$c(e,t,i,7));break;case 5:var o=null;switch(nc.tag){case 26:o=nc.memoizedState;case 5:case 27:var l=nc;if(!o||Cu(o)){rc=0,ic=null;var c=l.sibling;if(null!==c)nc=c;else{var d=l.return;null!==d?(nc=d,Qc(d)):nc=null}break t}}rc=0,ic=null,$c(e,t,i,5);break;case 6:rc=0,ic=null,$c(e,t,i,6);break;case 8:Ic(),dc=6;break e;default:throw Error(s(462))}}Yc();break}catch(u){Bc(e,u)}return go=xo=null,F.H=a,F.A=r,ec=n,null!==nc?0:(tc=null,ac=0,Ea(),dc)}(e,t):Uc(e,t,!0),i=a;;){if(0===r){oc&&!a&&Lc(e,t,0,!1);break}if(6===r)Lc(e,t,0,!sc);else{if(n=e.current.alternate,i&&!Pc(n)){r=Uc(e,t,!1),i=!1;continue}if(2===r){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;r=xc;var c=l.current.memoizedState.isDehydrated;if(c&&(Zc(l,o).flags|=256),2!==(o=Uc(l,o,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=i,mc|=i,r=4;break e}i=gc,gc=r,null!==i&&Rc(i)}r=o}if(i=!1,2!==r)continue}}if(1===r){Zc(e,0),Lc(e,t,0,!0);break}e:{switch(a=e,r){case 0:case 1:throw Error(s(345));case 4:if((4194176&t)===t){Lc(a,t,hc,!sc);break e}break;case 2:gc=null;break;case 3:case 5:break;default:throw Error(s(329))}if(a.finishedWork=n,a.finishedLanes=t,(62914560&t)===t&&10<(i=bc+300-le())){if(Lc(a,t,hc,!sc),0!==Ee(a,0))break e;a.timeoutHandle=eu(Hc.bind(null,a,n,gc,jc,vc,t,hc,mc,fc,sc,2,-0,0),i)}else Hc(a,n,gc,jc,vc,t,hc,mc,fc,sc,0,-0,0)}}break}fd(e)}function Rc(e){null===gc?gc=e:gc.push.apply(gc,e)}function Hc(e,t,n,a,r,i,o,l,c,d,u,m,p){var h=t.subtreeFlags;if((8192&h||16785408===(16785408&h))&&(Fu={stylesheets:null,count:0,unsuspend:Su},_l(t),null!==(t=function(){if(null===Fu)throw Error(s(475));var e=Fu;return e.stylesheets&&0===e.count&&Ru(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Jc.bind(null,e,n,a,r,o,l,c,1,m,p)),void Lc(e,i,o,!d);Jc(e,n,a,r,o,l,c,u,m,p)}function Pc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!Kn(i(),r))return!1}catch(s){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lc(e,t,n,a){t&=~pc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var i=31-ye(r),s=1<<i;a[i]=-1,r&=~s}0!==n&&Oe(e,n,t)}function Tc(){return 0!==(6&ec)||(xd(0,!1),!1)}function Ic(){if(null!==nc){if(0===rc)var e=nc.return;else go=xo=null,gi(e=nc),hr=null,fr=0,e=nc;for(;null!==e;)Ql(e.alternate,e),e=e.return;nc=null}}function Zc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,tu(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Ic(),tc=e,nc=n=Ll(e.current,null),ac=t,rc=0,ic=null,sc=!1,oc=De(e,t),lc=!1,fc=hc=pc=mc=uc=dc=0,gc=xc=null,vc=!1,0!==(8&t)&&(t|=32&t);var a=e.entangledLanes;if(0!==a)for(e=e.entanglements,a&=t;0<a;){var r=31-ye(a),i=1<<r;t|=e[r],a&=~i}return cc=t,Ea(),n}function Bc(e,t){Jr=null,F.H=As,t===sr?(t=pr(),rc=3):t===or?(t=pr(),rc=4):rc=t===Vs?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,ic=t,null===nc&&(dc=1,Ls(e,Ra(t,e.current)))}function Vc(){var e=F.H;return F.H=As,null===e?As:e}function zc(){var e=F.A;return F.A=Xl,e}function qc(){dc=4,sc||(4194176&ac)!==ac&&null!==_r.current||(oc=!0),0===(134217727&uc)&&0===(134217727&mc)||null===tc||Lc(tc,ac,hc,!1)}function Uc(e,t,n){var a=ec;ec|=2;var r=Vc(),i=zc();tc===e&&ac===t||(jc=null,Zc(e,t)),t=!1;var s=dc;e:for(;;)try{if(0!==rc&&null!==nc){var o=nc,l=ic;switch(rc){case 8:Ic(),s=6;break e;case 3:case 2:case 6:null===_r.current&&(t=!0);var c=rc;if(rc=0,ic=null,$c(e,o,l,c),n&&oc){s=0;break e}break;default:c=rc,rc=0,ic=null,$c(e,o,l,c)}}Wc(),s=dc;break}catch(d){Bc(e,d)}return t&&e.shellSuspendCounter++,go=xo=null,ec=a,F.H=r,F.A=i,null===nc&&(tc=null,ac=0,Ea()),s}function Wc(){for(;null!==nc;)Kc(nc)}function Yc(){for(;null!==nc&&!se();)Kc(nc)}function Kc(e){var t=ho(e.alternate,e,cc);e.memoizedProps=e.pendingProps,null===t?Qc(e):nc=t}function Gc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xs(n,t,t.pendingProps,t.type,void 0,ac);break;case 11:t=Xs(n,t,t.pendingProps,t.type.render,t.ref,ac);break;case 5:gi(t);default:Ql(n,t),t=ho(n,t=nc=Tl(t,cc),cc)}e.memoizedProps=e.pendingProps,null===t?Qc(e):nc=t}function $c(e,t,n,a){go=xo=null,gi(t),hr=null,fr=0;var r=t.return;try{if(function(e,t,n,a,r){if(n.flags|=32768,null!==a&&"object"===typeof a&&"function"===typeof a.then){if(null!==(t=n.alternate)&&wo(t,n,r,!0),null!==(n=_r.current)){switch(n.tag){case 13:return null===Cr?qc():null===n.alternate&&0===dc&&(dc=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===lr?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),rd(e,a,r)),!1;case 22:return n.flags|=65536,a===lr?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),rd(e,a,r)),!1}throw Error(s(435,n.tag))}return rd(e,a,r),qc(),!1}if($a)return null!==(t=_r.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Ja&&ir(Ra(e=Error(s(422),{cause:a}),n))):(a!==Ja&&ir(Ra(t=Error(s(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,r&=-r,e.lanes|=r,a=Ra(a,n),Ro(e,r=Is(e.stateNode,a,r)),4!==dc&&(dc=2)),!1;var i=Error(s(520),{cause:a});if(i=Ra(i,n),null===xc?xc=[i]:xc.push(i),4!==dc&&(dc=2),null===t)return!0;a=Ra(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,Ro(n,e=Is(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===wc||!wc.has(i))))return n.flags|=65536,r&=-r,n.lanes|=r,Bs(r=Zs(r),e,n,a),Ro(n,r),!1}n=n.return}while(null!==n);return!1}(e,r,t,n,ac))return dc=1,Ls(e,Ra(n,e.current)),void(nc=null)}catch(i){if(null!==r)throw nc=r,i;return dc=1,Ls(e,Ra(n,e.current)),void(nc=null)}32768&t.flags?($a||1===a?e=!0:oc||0!==(536870912&ac)?e=!1:(sc=e=!0,(2===a||3===a||6===a)&&(null!==(a=_r.current)&&13===a.tag&&(a.flags|=16384))),Xc(t,e)):Qc(t)}function Qc(e){var t=e;do{if(0!==(32768&t.flags))return void Xc(t,sc);e=t.return;var n=Gl(t.alternate,t,cc);if(null!==n)return void(nc=n);if(null!==(t=t.sibling))return void(nc=t);nc=t=e}while(null!==t);0===dc&&(dc=5)}function Xc(e,t){do{var n=$l(e.alternate,e);if(null!==n)return n.flags&=32767,void(nc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
2ons=null),!t&&null!==(e=e.sibling))return void(nc=e);nc=e=n}while(null!==e);dc=6,nc=null}function Jc(e,t,n,a,r,i,o,l,c,d){var u=F.T,m=V.p;try{V.p=2,F.T=null,function(e,t,n,a,r,i,o,l){do{td()}while(null!==Ac);if(0!==(6&ec))throw Error(s(327));var c=e.finishedWork;if(a=e.finishedLanes,null===c)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var d=c.lanes|c.childLanes;if(function(e,t,n,a,r,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var d=31-ye(n),u=1<<d;o[d]=0,l[d]=-1;var m=c[d];if(null!==m)for(c[d]=null,d=0;d<m.length;d++){var p=m[d];null!==p&&(p.lane&=-536870913)}n&=~u}0!==a&&Oe(e,a,0),0!==i&&0===r&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,a,d|=ka,i,o,l),e===tc&&(nc=tc=null,ac=0),0===(10256&c.subtreeFlags)&&0===(10256&c.flags)||Nc||(Nc=!0,Ec=d,Dc=n,function(e,t){re(e,t)}(me,function(){return td(),null})),n=0!==(15990&c.flags),0!==(15990&c.subtreeFlags)||n?(n=F.T,F.T=null,i=V.p,V.p=2,o=ec,ec|=4,function(e,t){if(e=e.containerInfo,Yd=qu,ea(e=Jn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,m=e,p=null;t:for(;;){for(var h;m!==n||0!==r&&3!==m.nodeType||(l=o+r),m!==i||0!==a&&3!==m.nodeType||(c=o+a),3===m.nodeType&&(o+=m.nodeValue.length),null!==(h=m.firstChild);)p=m,m=h;for(;;){if(m===e)break t;if(p===n&&++d===r&&(l=o),p===i&&++u===a&&(c=o),null!==(h=m.nextSibling))break;p=(m=p).parentNode}m=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},qu=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(i=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,r=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var f=Ms(n.type,r,(n.elementType,n.type));e=a.getSnapshotBeforeUpdate(f,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(g){ad(n,n.return,g)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))su(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":su(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}f=al,al=!1}(e,c),hl(c,e),ta(Kd,e.containerInfo),qu=!!Yd,Kd=Yd=null,e.current=c,rl(e,c.alternate,c),oe(),ec=o,V.p=i,F.T=n):e.current=c,Nc?(Nc=!1,Ac=e,kc=a):ed(e,d),d=e.pendingLanes,0===d&&(wc=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ge,e,void 0,128===(128&e.current.flags))}catch(t){}}(c.stateNode),fd(e),null!==t)for(r=e.onRecoverableError,c=0;c<t.length;c++)d=t[c],r(d.value,{componentStack:d.stack});0!==(3&kc)&&td(),d=e.pendingLanes,0!==(4194218&a)&&0!==(42&d)?e===Cc?_c++:(_c=0,Cc=e):_c=0,xd(0,!1)}(e,t,n,a,m,r,i,o)}finally{F.T=u,V.p=m}}function ed(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Br(t)))}function td(){if(null!==Ac){var e=Ac,t=Ec;Ec=0;var n=He(kc),a=F.T,r=V.p;try{if(V.p=32>n?32:n,F.T=null,null===Ac)var i=!1;else{n=Dc,Dc=null;var o=Ac,l=kc;if(Ac=null,kc=0,0!==(6&ec))throw Error(s(331));var c=ec;if(ec|=4,Sl(o.current),Nl(o,o.current,l,n),ec=c,xd(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ge,o)}catch(d){}i=!0}return i}finally{V.p=r,F.T=a,ed(e,t)}}return!1}function nd(e,t,n){t=Ra(n,t),null!==(e=Mo(e,t=Is(e.stateNode,t,2),2))&&(Me(e,2),fd(e))}function ad(e,t,n){if(3===e.tag)nd(e,e,n);else for(;null!==t;){if(3===t.tag){nd(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof a.componentDidCatch&&(null===wc||!wc.has(a))){e=Ra(n,e),null!==(a=Mo(t,n=Zs(2),2))&&(Bs(n,a,t,e),Me(a,2),fd(a));break}}t=t.return}}function rd(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new Jl;var r=new Set;a.set(t,r)}else void 0===(r=a.get(t))&&(r=new Set,a.set(t,r));r.has(n)||(lc=!0,r.add(n),e=id.bind(null,e,t,n),t.then(e,e))}function id(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(ac&n)===n&&(4===dc||3===dc&&(62914560&ac)===ac&&300>le()-bc?0===(2&ec)&&Zc(e,0):pc|=n,fc===ac&&(fc=0)),fd(e)}function sd(e,t){0===t&&(t=Fe()),null!==(e=Ca(e,t))&&(Me(e,t),fd(e))}function od(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sd(e,n)}function ld(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==a&&a.delete(t),sd(e,n)}var cd=null,dd=null,ud=!1,md=!1,pd=!1,hd=0;function fd(e){var t;
vendor: 9,485 bytes, line 2
2e!==dd&&null===e.next&&(null===dd?cd=dd=e:dd=dd.next=e),md=!0,ud||(ud=!0,t=gd,au(function(){0!==(6&ec)?re(de,t):t()}))}function xd(e,t){if(!pd&&md){pd=!0;do{for(var n=!1,a=cd;null!==a;){if(!t)if(0!==e){var r=a.pendingLanes;if(0===r)var i=0;else{var s=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-ye(42|e)+1)-1,i=201326677&(i&=r&~(s&~o))?201326677&i|1:i?2|i:0}0!==i&&(n=!0,yd(a,i))}else i=ac,0===(3&(i=Ee(a,a===tc?i:0)))||De(a,i)||(n=!0,yd(a,i));a=a.next}}while(n);pd=!1}}function gd(){md=ud=!1;var e=0;0!==hd&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Jd&&(Jd=e,!0);return Jd=null,!1}()&&(e=hd),hd=0);for(var t=le(),n=null,a=cd;null!==a;){var r=a.next,i=vd(a,t);0===i?(a.next=null,null===n?cd=r:n.next=r,null===r&&(dd=n)):(n=a,(0!==e||0!==(3&i))&&(md=!0)),a=r}xd(e,!1)}function vd(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-ye(i),o=1<<s,l=r[s];-1===l?0!==(o&n)&&0===(o&a)||(r[s]=_e(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(n=ac,n=Ee(e,e===(t=tc)?n:0),a=e.callbackNode,0===n||e===t&&2===rc||null!==e.cancelPendingCommit)return null!==a&&null!==a&&ie(a),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||De(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==a&&ie(a),He(n)){case 2:case 8:n=ue;break;case 32:default:n=me;break;case 268435456:n=he}return a=bd.bind(null,e),n=re(n,a),e.callbackPriority=t,e.callbackNode=n,t}return null!==a&&null!==a&&ie(a),e.callbackPriority=2,e.callbackNode=null,2}function bd(e,t){var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var a=ac;return 0===(a=Ee(e,e===tc?a:0))?null:(Oc(e,a,t),vd(e,le()),null!=e.callbackNode&&e.callbackNode===n?bd.bind(null,e):null)}function yd(e,t){if(td())return null;Oc(e,t,!0)}function jd(){return 0===hd&&(hd=Ce()),hd}function wd(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Ct(""+e)}function Nd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ad=0;Ad<ja.length;Ad++){var kd=ja[Ad];wa(kd.toLowerCase(),"on"+(kd[0].toUpperCase()+kd.slice(1)))}wa(pa,"onAnimationEnd"),wa(ha,"onAnimationIteration"),wa(fa,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(xa,"onTransitionRun"),wa(ga,"onTransitionStart"),wa(va,"onTransitionCancel"),wa(ba,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ed="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ed));function _d(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var s=a.length-1;0<=s;s--){var o=a[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=c;try{i(r)}catch(d){Os(d)}r.currentTarget=null,i=l}else for(s=0;s<a.length;s++){if(l=(o=a[s]).instance,c=o.currentTarget,o=o.listener,l!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=c;try{i(r)}catch(d){Os(d)}r.currentTarget=null,i=l}}}}function Cd(e,t){var n=t[Be];void 0===n&&(n=t[Be]=new Set);var a=e+"__bubble";n.has(a)||(Od(t,e,2,!1),n.add(a))}function Fd(e,t,n){var a=0;t&&(a|=4),Od(n,e,a,t)}var Sd="_reactListening"+Math.random().toString(36).slice(2);function Md(e){if(!e[Sd]){e[Sd]=!0,Xe.forEach(function(t){"selectionchange"!==t&&(Dd.has(t)||Fd(t,!1,e),Fd(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Sd]||(t[Sd]=!0,Fd("selectionchange",!1,t))}}function Od(e,t,n,a){switch(Qu(t)){case 2:var r=Uu;break;case 8:r=Wu;break;default:r=Yu}n=r.bind(null,t,n,e),r=void 0,!Tt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),a?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Rd(e,t,n,a,r){var i=a;if(0===(1&t)&&0===(2&t)&&null!==a)e:for(;;){if(null===a)return;var s=a.tag;if(3===s||4===s){var o=a.stateNode.containerInfo;if(o===r||8===o.nodeType&&o.parentNode===r)break;if(4===s)for(s=a.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==o;){if(null===(s=Ye(o)))return;if(5===(l=s.tag)||6===l||26===l||27===l){a=i=s;continue e}o=o.parentNode}}a=a.return}Pt(function(){var a=i,r=St(n),s=[];e:{var o=ya.get(e);if(void 0!==o){var l=Xt,c=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":l=hn;break;case"focusin":c="focus",l=rn;break;case"focusout":c="blur",l=rn;break;case"beforeblur":case"afterblur":l=rn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case pa:case ha:case fa:l=sn;break;case ba:l=gn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=fn;break;case"toggle":case"beforetoggle":l=bn}var d=0!==(4&t),u=!d&&("scroll"===e||"scrollend"===e),m=d?null!==o?o+"Capture":null:o;d=[];for(var p,h=a;null!==h;){var f=h;if(p=f.stateNode,5!==(f=f.tag)&&26!==f&&27!==f||null===p||null===m||null!=(f=Lt(h,m))&&d.push(Hd(h,f,p)),u)break;h=h.return}0<d.length&&(o=new l(o,c,null,n,r),s.push({event:o,listeners:d}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Ft||!(c=n.relatedTarget||n.fromElement)||!Ye(c)&&!c[Ze])&&(l||o)&&(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=a,null!==(c=(c=n.relatedTarget||n.toElement)?Ye(c):null)&&(u=L(c),d=c.tag,c!==u||5!==d&&27!==d&&6!==d)&&(c=null)):(l=null,c=a),l!==c)){if(d=nn,f="onMouseLeave",m="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=fn,f="onPointerLeave",m="onPointerEnter",h="pointer"),u=null==l?o:Ge(l),p=null==c?o:Ge(c),(o=new d(f,h+"leave",l,n,r)).target=u,o.relatedTarget=p,f=null,Ye(r)===a&&((d=new d(m,h+"enter",c,n,r)).target=p,d.relatedTarget=u,f=d),u=f,l&&c)e:{for(m=c,h=0,p=d=l;p;p=Ld(p))h++;for(p=0,f=m;f;f=Ld(f))p++;for(;0<h-p;)d=Ld(d),h--;for(;0<p-h;)m=Ld(m),p--;for(;h--;){if(d===m||null!==m&&d===m.alternate)break e;d=Ld(d),m=Ld(m)}d=null}else d=null;null!==l&&Td(s,o,l,d,!1),null!==c&&null!==u&&Td(s,u,c,d,!0)}if("select"===(l=(o=a?Ge(a):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var x=Ln;else if(Sn(o))if(Tn)x=Yn;else{x=Un;var g=qn}else!(l=o.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?a&&Et(a.elementType)&&(x=Ln):x=Wn;switch(x&&(x=x(e,a))?Mn(s,x,n,r):(g&&g(e,o,a),"focusout"===e&&a&&"number"===o.type&&null!=a.memoizedProps.value&&vt(o,"number",o.value)),g=a?Ge(a):window,e){case"focusin":(Sn(g)||"true"===g.contentEditable)&&(aa=g,ra=a,ia=null);break;case"focusout":ia=ra=aa=null;break;case"mousedown":sa=!0;break;case"contextmenu":case"mouseup":case"dragend":sa=!1,oa(s,n,r);break;case"selectionchange":if(na)break;case"keydown":case"keyup":oa(s,n,r)}var v;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Cn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(An&&"ko"!==n.locale&&(Cn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Cn&&(v=zt()):(Bt="value"in(Zt=r)?Zt.value:Zt.textContent,Cn=!0)),0<(g=Pd(a,b)).length&&(b=new ln(b,e,null,n,r),s.push({event:b,listeners:g}),v?b.data=v:null!==(v=_n(n))&&(b.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return _n(t);case"keypress":return 32!==t.which?null:(En=!0,kn);case"textInput":return(e=t.data)===kn&&En?null:e;default:return null}}(e,n):function(e,t){if(Cn)return"compositionend"===e||!jn&&Dn(e,t)?(e=zt(),Vt=Bt=Zt=null,Cn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return An&&"ko"!==t.locale?null:t.data}}
2(e,n))&&(0<(b=Pd(a,"onBeforeInput")).length&&(g=new ln("onBeforeInput","beforeinput",null,n,r),s.push({event:g,listeners:b}),g.data=v)),function(e,t,n,a,r){if("submit"===t&&n&&n.stateNode===r){var i=wd((r[Ie]||null).action),s=a.submitter;s&&null!==(t=(t=s[Ie]||null)?wd(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var o=new Xt("action","action",null,a,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(0!==hd){var e=s?Nd(r,s):new FormData(r);ds(n,{pending:!0,data:e,method:r.method,action:i},null,e)}}else"function"===typeof i&&(o.preventDefault(),e=s?Nd(r,s):new FormData(r),ds(n,{pending:!0,data:e,method:r.method,action:i},i,e))},currentTarget:r}]})}}(s,e,a,n,r)}_d(s,t)})}function Hd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pd(e,t){for(var n=t+"Capture",a=[];null!==e;){var r=e,i=r.stateNode;5!==(r=r.tag)&&26!==r&&27!==r||null===i||(null!=(r=Lt(e,n))&&a.unshift(Hd(e,r,i)),null!=(r=Lt(e,t))&&a.push(Hd(e,r,i))),e=e.return}return a}function Ld(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Td(e,t,n,a,r){for(var i=t._reactName,s=[];null!==n&&n!==a;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===a)break;5!==o&&26!==o&&27!==o||null===c||(l=c,r?null!=(c=Lt(n,i))&&s.unshift(Hd(n,c,l)):r||null!=(c=Lt(n,i))&&s.push(Hd(n,c,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Id=/\r\n?/g,Zd=/\u0000|\uFFFD/g;function Bd(e){return("string"===typeof e?e:""+e).replace(Id,"\n").replace(Zd,"")}function Vd(e,t){return t=Bd(t),Bd(e)===t}function zd(){}function qd(e,t,n,a,r,i){switch(n){case"children":"string"===typeof a?"body"===t||"textarea"===t&&""===a||wt(e,a):("number"===typeof a||"bigint"===typeof a)&&"body"!==t&&wt(e,""+a);break;case"className":ot(e,"class",a);break;case"tabIndex":ot(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,a);break;case"style":kt(e,a,i);break;case"data":if("object"!==t){ot(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"===typeof a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Ct(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"===typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof i&&("formAction"===n?("input"!==t&&qd(e,t,"name",r.name,r,null),qd(e,t,"formEncType",r.formEncType,r,null),qd(e,t,"formMethod",r.formMethod,r,null),qd(e,t,"formTarget",r.formTarget,r,null)):(qd(e,t,"encType",r.encType,r,null),qd(e,t,"method",r.method,r,null),qd(e,t,"target",r.target,r,null))),null==a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Ct(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=zd);break;case"onScroll":null!=a&&Cd("scroll",e);break;case"onScrollEnd":null!=a&&Cd("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(s(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"muted":e.muted=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"===typeof a||"boolean"===typeof a||"symbol"===typeof a){e.removeAttribute("xlink:href");break}n=Ct(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
2ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"===typeof a||"symbol"===typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Cd("beforetoggle",e),Cd("toggle",e),st(e,"popover",a);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":st(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=Dt.get(n)||n,a)}}function Ud(e,t,n,a,r,i){switch(n){case"style":kt(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(s(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"===typeof a?wt(e,a):("number"===typeof a||"bigint"===typeof a)&&wt(e,""+a);break;case"onScroll":null!=a&&Cd("scroll",e);break;case"onScrollEnd":null!=a&&Cd("scrollend",e);break;case"onClick":null!=a&&(e.onclick=zd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Je.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),"function"===typeof(i=null!=(i=e[Ie]||null)?i[n]:null)&&e.removeEventListener(t,i,r),"function"!==typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):st(e,n,a):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r)))}}function Wd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Cd("error",e),Cd("load",e);var a,r=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(null!=o)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qd(e,t,a,o,n,null)}}return i&&qd(e,t,"srcSet",n.srcSet,n,null),void(r&&qd(e,t,"src",n.src,n,null));case"input":Cd("invalid",e);var l=a=o=i=null,c=null,d=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(null!=u)switch(r){case"name":i=u;break;case"type":o=u;break;case"checked":c=u;break;case"defaultChecked":d=u;break;case"value":a=u;break;case"defaultValue":l=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(s(137,t));break;default:qd(e,t,r,u,n,null)}}return gt(e,a,l,c,d,o,i,!1),void ut(e);case"select":for(i in Cd("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:qd(e,t,i,l,n,null)}return t=a,n=o,e.multiple=!!r,void(null!=t?bt(e,!!r,t,!1):null!=n&&bt(e,!!r,n,!0));case"textarea":for(o in Cd("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(s(91));break;default:qd(e,t,o,l,n,null)}return jt(e,r,i,a),void ut(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(r=n[c]))if("selected"===c)e.selected=r&&"function"!==typeof r&&"symbol"!==typeof r;else qd(e,t,c,r,n,null);return;case"dialog":Cd("cancel",e),Cd("close",e);break;case"iframe":case"object":Cd("load",e);break;case"video":case"audio":for(r=0;r<Ed.length;r++)Cd(Ed[r],e);break;case"image":Cd("error",e),Cd("load",e);break;case"details":Cd("toggle",e);break;case"embed":case"source":case"link":Cd("error",e),Cd("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in n)if(n.hasOwnProperty(d)&&null!=(r=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:qd(e,t,d,r,n,null)}return;default:if(Et(t)){for(u in n)n.hasOwnProperty(u)&&(void 0!==(r=n[u])&&Ud(e,t,u,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(r=n[l])&&qd(e,t,l,r,n,null))}var Yd=null,Kd=null;
2function Gd(e){return 9===e.nodeType?e:e.ownerDocument}function $d(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Xd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jd=null;var eu="function"===typeof setTimeout?setTimeout:void 0,tu="function"===typeof clearTimeout?clearTimeout:void 0,nu="function"===typeof Promise?Promise:void 0,au="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nu?function(e){return nu.resolve(null).then(e).catch(ru)}:eu;function ru(e){setTimeout(function(){throw e})}function iu(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===a)return e.removeChild(r),void fm(t);a--}else"$"!==n&&"$?"!==n&&"$!"!==n||a++;n=r}while(n);fm(t)}function su(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":su(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function ou(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function lu(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function cu(e,t,n){switch(t=Gd(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}var du=new Map,uu=new Set;function mu(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var pu=V.d;V.d={f:function(){var e=pu.f(),t=Tc();return e||t},r:function(e){var t=Ke(e);null!==t&&5===t.tag&&"form"===t.type?ms(t):pu.r(e)},D:function(e){pu.D(e),fu("dns-prefetch",e,null)},C:function(e,t){pu.C(e,t),fu("preconnect",e,t)},L:function(e,t,n){pu.L(e,t,n);var a=hu;if(a&&e&&t){var r='link[rel="preload"][as="'+ft(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ft(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(r+='[imagesizes="'+ft(n.imageSizes)+'"]')):r+='[href="'+ft(e)+'"]';var i=r;switch(t){case"style":i=gu(e);break;case"script":i=yu(e)}du.has(i)||(e=S({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),du.set(i,e),null!==a.querySelector(r)||"style"===t&&a.querySelector(vu(i))||"script"===t&&a.querySelector(ju(i))||(Wd(t=a.createElement("link"),"link",e),Qe(t),a.head.appendChild(t)))}},m:function(e,t){pu.m(e,t);var n=hu;if(n&&e){var a=t&&"string"===typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+ft(a)+'"][href="'+ft(e)+'"]',i=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yu(e)}if(!du.has(i)&&(e=S({rel:"modulepreload",href:e},t),du.set(i,e),null===n.querySelector(r))){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ju(i)))return}Wd(a=n.createElement("link"),"link",e),Qe(a),n.head.appendChild(a)}}},X:function(e,t){pu.X(e,t);var n=hu;if(n&&e){var a=$e(n).hoistableScripts,r=yu(e),i=a.get(r);i||((i=n.querySelector(ju(r)))||(e=S({src:e,async:!0},t),(t=du.get(r))&&ku(e,t),Qe(i=n.createElement("script")),Wd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}},S:function(e,t,n){pu.S(e,t,n);var a=hu;if(a&&e){var r=$e(a).hoistableStyles,i=gu(e);t=t||"default";var s=r.get(i);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(vu(i)))o.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=du.get(i))&&Au(e,n);var l=s=a.createElement("link");Qe(l),Wd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Nu(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(i,s)}}},M:function(e,t){pu.M(e,t);var n=hu;if(n&&e){var a=$e(n).hoistableScripts,r=yu(e),i=a.get(r);i||((i=n.querySelector(ju(r)))||(e=S({src:e,async:!0,type:"module"},t),(t=du.get(r))&&ku(e,t),Qe(i=n.createElement("script")),Wd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}};
vendor: 8,641 bytes, line 2
2var hu="undefined"===typeof document?null:document;function fu(e,t,n){var a=hu;if(a&&"string"===typeof t&&t){var r=ft(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"===typeof n&&(r+='[crossorigin="'+n+'"]'),uu.has(r)||(uu.add(r),e={rel:e,crossOrigin:n,href:t},null===a.querySelector(r)&&(Wd(t=a.createElement("link"),"link",e),Qe(t),a.head.appendChild(t)))}}function xu(e,t,n,a){var r,i,o,l,c=(c=Q.current)?mu(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=gu(n.href),(a=(n=$e(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=gu(n.href);var d=$e(c).hoistableStyles,u=d.get(e);if(u||(c=c.ownerDocument||c,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,u),(d=c.querySelector(vu(e)))&&!d._p&&(u.instance=d,u.state.loading=5),du.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},du.set(e,n),d||(r=c,i=e,o=n,l=u.state,r.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=r.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Wd(i,"link",o),Qe(i),r.head.appendChild(i))))),t&&null===a)throw Error(s(528,""));return u}if(t&&null!==a)throw Error(s(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=yu(n),(a=(n=$e(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function gu(e){return'href="'+ft(e)+'"'}function vu(e){return'link[rel="stylesheet"]['+e+"]"}function bu(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function yu(e){return'[src="'+ft(e)+'"]'}function ju(e){return"script[async]"+e}function wu(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ft(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var r=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Qe(a=(e.ownerDocument||e).createElement("style")),Wd(a,"style",r),Nu(a,n.precedence,e),t.instance=a;case"stylesheet":r=gu(n.href);var i=e.querySelector(vu(r));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;a=bu(n),(r=du.get(r))&&Au(a,r),Qe(i=(e.ownerDocument||e).createElement("link"));var o=i;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Wd(i,"link",a),t.state.loading|=4,Nu(i,n.precedence,e),t.instance=i;case"script":return i=yu(n.src),(r=e.querySelector(ju(i)))?(t.instance=r,Qe(r),r):(a=n,(r=du.get(i))&&ku(a=S({},n),r),Qe(r=(e=e.ownerDocument||e).createElement("script")),Wd(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Nu(a,n.precedence,e));return t.instance}function Nu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,i=r,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===t)i=o;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Au(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ku(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Eu=null;function Du(e,t,n){if(null===Eu){var a=new Map,r=Eu=new Map;r.set(n,a)}else(a=(r=Eu).get(n))||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var i=n[r];if(!(i[Ue]||i[Te]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var o=a.get(s);o?o.push(i):a.set(s,[i])}}return a}function _u(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Cu(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Fu=null;function Su(){}function Mu(){if(this.count--,0===this.count)if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Ou=null;function Ru(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Ou=new Map,t.forEach(Hu,e),Ou=null,Mu.call(e))}function Hu(e,t){if(!(4&t.state.loading)){var n=Ou.get(e);if(n)var a=n.get(null);else{n=new Map,Ou.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var s=r[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),a=s)}a&&n.set(null,a)}s=(r=t.instance).getAttribute("data-precedence"),(i=n.get(s)||a)===a&&n.set(null,r),n.set(s,r),this.count++,a=Mu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),i?i.parentNode.insertBefore(r,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(r,e.firstChild),t.state.loading|=4}}var Pu={$$typeof:x,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function Lu(e,t,n,a,r,i,s,o){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Se(0),this.hiddenUpdates=Se(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Tu(e,t,n,a,r,i,s,o,l,c,d,u){return e=new Lu(e,t,n,s,o,l,c,u),t=1,!0===i&&(t|=24),i=Hl(3,null,null,t),e.current=i,i.stateNode=e,(t=Zr()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},Co(i),e}function Iu(e){return e?e=Ma:Ma}function Zu(e,t,n,a,r,i){r=Iu(r),null===a.context?a.context=r:a.pendingContext=r,(a=So(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(a.callback=i),null!==(n=Mo(e,a,t))&&(Mc(n,0,t),Oo(n,e,t))}function Bu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Bu(e,t),(e=e.alternate)&&Bu(e,t)}function zu(e){if(13===e.tag){var t=Ca(e,67108864);null!==t&&Mc(t,0,67108864),Vu(e,67108864)}}var qu=!0;function Uu(e,t,n,a){var r=F.T;F.T=null;var i=V.p;try{V.p=2,Yu(e,t,n,a)}finally{V.p=i,F.T=r}}function Wu(e,t,n,a){var r=F.T;F.T=null;var i=V.p;try{V.p=8,Yu(e,t,n,a)}finally{V.p=i,F.T=r}}function Yu(e,t,n,a){if(qu){var r=Ku(a);if(null===r)Rd(e,t,a,Gu,n),sm(e,a);else if(function(e,t,n,a,r){switch(t){case"focusin":return Ju=om(Ju,e,t,n,a,r),!0;case"dragenter":return em=om(em,e,t,n,a,r),!0;case"mouseover":return tm=om(tm,e,t,n,a,r),!0;case"pointerover":var i=r.pointerId;return nm.set(i,om(nm.get(i)||null,e,t,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,am.set(i,om(am.get(i)||null,e,t,n,a,r)),!0}return!1}(r,e,t,n,a))a.stopPropagation();else if(sm(e,a),4&t&&-1<im.indexOf(e)){for(;null!==r;){var i=Ke(r);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=ke(i.pendingLanes);if(0!==s){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-ye(s);o.entanglements[1]|=l,s&=~l}fd(i),0===(6&ec)&&(yc=le()+500,xd(0,!1))}}break;case 13:null!==(o=Ca(i,2))&&Mc(o,0,2),Tc(),Vu(i,2)}if(null===(i=Ku(a))&&Rd(e,t,a,Gu,n),i===r)break;r=i}null!==r&&a.stopPropagation()}else Rd(e,t,a,null,n)}}function Ku(e){return $u(e=St(e))}var Gu=null;function $u(e){if(Gu=null,null!==(e=Ye(e))){var t=L(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=T(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gu=e,null}function Qu(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,157 bytes, line 2
2:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case de:return 2;case ue:return 8;case me:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Xu=!1,Ju=null,em=null,tm=null,nm=new Map,am=new Map,rm=[],im="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sm(e,t){switch(e){case"focusin":case"focusout":Ju=null;break;case"dragenter":case"dragleave":em=null;break;case"mouseover":case"mouseout":tm=null;break;case"pointerover":case"pointerout":nm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":am.delete(t.pointerId)}}function om(e,t,n,a,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=Ke(t))&&zu(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function lm(e){var t=Ye(e.target);if(null!==t){var n=L(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=T(n)))return e.blockedOn=t,void function(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}(e.priority,function(){if(13===n.tag){var e=Fc(),t=Ca(n,e);null!==t&&Mc(t,0,e),Vu(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function cm(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ku(e.nativeEvent);if(null!==n)return null!==(t=Ke(n))&&zu(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);Ft=a,n.target.dispatchEvent(a),Ft=null,t.shift()}return!0}function dm(e,t,n){cm(e)&&n.delete(t)}function um(){Xu=!1,null!==Ju&&cm(Ju)&&(Ju=null),null!==em&&cm(em)&&(em=null),null!==tm&&cm(tm)&&(tm=null),nm.forEach(dm),am.forEach(dm)}function mm(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,um)))}var pm=null;function hm(e){pm!==e&&(pm=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){pm===e&&(pm=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if("function"!==typeof a){if(null===$u(a||n))continue;break}var i=Ke(n);null!==i&&(e.splice(t,3),t-=3,ds(i,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function fm(e){function t(t){return mm(t,e)}null!==Ju&&mm(Ju,e),null!==em&&mm(em,e),null!==tm&&mm(tm,e),nm.forEach(t),am.forEach(t);for(var n=0;n<rm.length;n++){var a=rm[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<rm.length&&null===(n=rm[0]).blockedOn;)lm(n),null===n.blockedOn&&rm.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(a=0;a<n.length;a+=3){var r=n[a],i=n[a+1],s=r[Ie]||null;if("function"===typeof i)s||hm(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(r=i,s=i[Ie]||null)o=s.formAction;else if(null!==$u(r))continue}else o=s.action;"function"===typeof o?n[a+1]=o:(n.splice(a,3),a-=3),hm(n)}}}function xm(e){this._internalRoot=e}function gm(e){this._internalRoot=e}gm.prototype.render=xm.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));Zu(t.current,Fc(),e,t,null,null)},gm.prototype.unmount=xm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&td(),Zu(e.current,2,null,e,null,null),Tc(),t[Ze]=null}},gm.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rm.length&&0!==t&&t<rm[n].priority;n++);rm.splice(n,0,e),0===n&&lm(e)}};var vm=r.version;if("19.0.0"!==vm)throw Error(s(527,vm,"19.0.0"));V.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=L(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(a=r.return)){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return I(r),e;if(i===a)return I(r),t;i=i.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,a=i;break}if(l===a){o=!0,a=r,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,a=r;break}if(l===a){o=!0,a=i,n=r;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?Z(e):null)?null:e.stateNode};var bm={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:F,findFiberByHostInstance:Ye,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ym=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ym.isDisabled&&ym.supportsFiber)try{ge=ym.inject(bm),ve=ym}catch(wm){}}t.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",r=Rs,i=Hs,l=Ps;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(r=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Tu(e,1,!1,null,0,n,a,r,i,l,0,null),e[Ze]=t.current,Md(8===e.nodeType?e.parentNode:e),new xm(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,r="",i=Rs,l=Hs,c=Ps,d=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(d=n.formState)),(t=Tu(e,1,!0,t,0,a,r,i,l,c,0,d)).context=Iu(null),n=t.current,(r=So(a=Fc())).callback=null,Mo(n,r,a),t.current.lanes=a,Me(t,a),fd(t),e[Ze]=t.current,Md(e),new gm(t)},t.version="19.0.0"},863(e,t,n){"use strict";var a=n(950);function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");var l=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin),r="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:a,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);s.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},352(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(85)},119(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(863)},577(e,t){"use strict";var n=60103,a=60106,r=60107,i=60108,s=60114,o=60109,l=60110,c=60112,d=60113,u=60120,m=60115,p=60116,h=60121,f=60122,x=60117,g=60129,v=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),a=b("react.portal"),r=b("react.fragment"),i=b("react.strict_mode"),s=b("react.profiler"),o=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),d=b("react.suspense"),u=b("react.suspense_list"),m=b("react.memo"),p=b("react.lazy"),h=b("react.block"),f=b("react.server.block"),x=b("react.fundamental"),g=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case s:case i:case d:case u:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case m:case o:return e;default:return t}}case a:return t}}}
2t.isFragment=function(e){return y(e)===r}},429(e,t,n){"use strict";e.exports=n(577)},916(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in a={},t)"key"!==i&&(a[i]=t[i]);else a=t;return t=a.ref,{$$typeof:n,type:e,key:r,ref:void 0!==t?t:null,props:a}}t.Fragment=a,t.jsx=r,t.jsxs=r},983(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,x={};function g(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,f(y,g.prototype),y.isPureReactComponent=!0;var j=Array.isArray,w={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function A(e,t,a,r,i,s){return a=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:s}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function _(){}function C(e,t,r,i,s){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,c,d=!1;if(null===e)d=!0;else switch(o){case"bigint":case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case a:d=!0;break;case m:return C((d=e._init)(e._payload),t,r,i,s)}}if(d)return s=s(e),d=""===i?"."+D(e,0):i,j(s)?(r="",null!=d&&(r=d.replace(E,"$&/")+"/"),C(s,t,r,"",function(e){return e})):null!=s&&(k(s)&&(l=s,c=r+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+d,s=A(l.type,c,void 0,0,0,l.props)),t.push(s)),1;d=0;var u,h=""===i?".":i+":";if(j(e))for(var f=0;f<e.length;f++)d+=C(i=e[f],t,r,o=h+D(i,f),s);else if("function"===typeof(f=null===(u=e)||"object"!==typeof u?null:"function"===typeof(u=p&&u[p]||u["@@iterator"])?u:null))for(e=f.call(e),f=0;!(i=e.next()).done;)d+=C(i=i.value,t,r,o=h+D(i,f++),s);else if("object"===o){if("function"===typeof e.then)return C(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(_,_):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,i,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return d}function F(e,t,n){if(null==e)return e;var a=[],r=0;return C(e,a,"","",function(e){return t.call(n,e,r++)}),a}function S(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function O(){}
2t.Children={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=r,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=d,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var a=f({},e.props),r=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(r=""+t.key),t)!N.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(a[i]=t[i]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),o=0;o<i;o++)s[o]=arguments[o+2];a.children=s}return A(e.type,r,void 0,0,0,a)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.createElement=function(e,t,n){var a,r={},i=null;if(null!=t)for(a in void 0!==t.key&&(i=""+t.key),t)N.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&(r[a]=t[a]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];r.children=o}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===r[a]&&(r[a]=s[a]);return A(e,i,void 0,0,0,r)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:S}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=w.T,n={};w.T=n;try{var a=e(),r=w.S;null!==r&&r(n,a),"object"===typeof a&&null!==a&&"function"===typeof a.then&&a.then(O,M)}catch(i){M(i)}finally{w.T=t}},t.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},t.use=function(e){return w.H.use(e)},t.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},t.useCallback=function(e,t){return w.H.useCallback(e,t)},t.useContext=function(e){return w.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return w.H.useEffect(e,t)},t.useId=function(){return w.H.useId()},t.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return w.H.useMemo(e,t)},t.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},t.useRef=function(e){return w.H.useRef(e)},t.useState=function(e){return w.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return w.H.useTransition()},t.version="19.0.0"},950(e,t,n){"use strict";e.exports=n(983)},414(e,t,n){"use strict";e.exports=n(916)},487(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(!(0<i(r,t)))break e;e[a]=t,e[n]=r,n=a}}function a(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,s=r>>>1;a<s;){var o=2*(a+1)-1,l=e[o],c=o+1,d=e[c];if(0>i(l,n))c<r&&0>i(d,l)?(e[a]=d,e[c]=n,a=c):(e[a]=l,e[o]=n,a=o);else{if(!(c<r&&0>i(d,n)))break e;e[a]=d,e[c]=n,a=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,m=null,p=3,h=!1,f=!1,x=!1,g="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=a(d);null!==t;){if(null===t.callback)r(d);else{if(!(t.startTime<=e))break;
2r(d),t.sortIndex=t.expirationTime,n(c,t)}t=a(d)}}function j(e){if(x=!1,y(e),!f)if(null!==a(c))f=!0,S();else{var t=a(d);null!==t&&M(j,t.startTime-e)}}var w,N=!1,A=-1,k=5,E=-1;function D(){return!(t.unstable_now()-E<k)}function _(){if(N){var e=t.unstable_now();E=e;var n=!0;try{e:{f=!1,x&&(x=!1,v(A),A=-1),h=!0;var i=p;try{t:{for(y(e),m=a(c);null!==m&&!(m.expirationTime>e&&D());){var s=m.callback;if("function"===typeof s){m.callback=null,p=m.priorityLevel;var o=s(m.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof o){m.callback=o,y(e),n=!0;break t}m===a(c)&&r(c),y(e)}else r(c);m=a(c)}if(null!==m)n=!0;else{var l=a(d);null!==l&&M(j,l.startTime-e),n=!1}}break e}finally{m=null,p=i,h=!1}n=void 0}}finally{n?w():N=!1}}}if("function"===typeof b)w=function(){b(_)};else if("undefined"!==typeof MessageChannel){var C=new MessageChannel,F=C.port2;C.port1.onmessage=_,w=function(){F.postMessage(null)}}else w=function(){g(_,0)};function S(){N||(N=!0,w())}function M(e,n){A=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||h||(f=!0,S())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return a(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:u++,callback:r,priorityLevel:e,startTime:i,expirationTime:o=i+o,sortIndex:-1},i>s?(e.sortIndex=i,n(d,e),null===a(c)&&e===a(d)&&(x?(v(A),A=-1):x=!0,M(j,i-s))):(e.sortIndex=o,n(c,e),f||h||(f=!0,S())),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},340(e,t,n){"use strict";e.exports=n(487)},967(e,t,n){"use strict";var a=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(999)),r=n(935);function i(e,t){var n={};return e&&"string"===typeof e?((0,a.default)(e,function(e,a){e&&a&&(n[(0,r.camelCase)(e,t)]=a)}),n):n}i.default=i,e.exports=i},935(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(a,o))}},999(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!==typeof e)return n;const a=(0,r.default)(e),i="function"===typeof t;return a.forEach(e=>{if("declaration"!==e.type)return;const a=e.property,r=e.value;i?t(a,r,e):r&&(n=n||{},n[a]=r)}),n};const r=a(n(703))},759(e,t,n){"use strict";var a=n(950);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useState,s=a.useEffect,o=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(a){return!0}}var d="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=i({inst:{value:n,getSnapshot:t}}),r=a[0].inst,d=a[1];return o(function(){r.value=n,r.getSnapshot=t,c(r)&&d({inst:r})},[e,n,t]),s(function(){return c(r)&&d({inst:r}),e(function(){c(r)&&d({inst:r})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:d}
2,940(e,t,n){"use strict";var a=n(950),r=n(538);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},s=r.useSyncExternalStore,o=a.useRef,l=a.useEffect,c=a.useMemo,d=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,a,r){var u=o(null);if(null===u.current){var m={hasValue:!1,value:null};u.current=m}else m=u.current;u=c(function(){function e(e){if(!l){if(l=!0,s=e,e=a(e),void 0!==r&&m.hasValue){var t=m.value;if(r(t,e))return o=t}return o=e}if(t=o,i(s,e))return t;var n=a(e);return void 0!==r&&r(t,n)?(s=e,t):(s=e,o=n)}var s,o,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,a,r]);var p=s(e,u[0],u[1]);return l(function(){m.hasValue=!0,m.value=p},[p]),d(p),p}},254(e,t,n){"use strict";var a=n(950);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useSyncExternalStore,s=a.useRef,o=a.useEffect,l=a.useMemo,c=a.useDebugValue},538(e,t,n){"use strict";e.exports=n(759)},44(e,t,n){"use strict";e.exports=n(940)},256(e,t,n){"use strict";n(254)}};const t={};function n(a){const r=t[a];if(void 0!==r)return r.exports;const i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;
2if("object"===typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"===typeof a.then)return a}const i=Object.create(null);n.r(i);const s={};t=t||[null,e({}),e([]),e(e)];for(var o=2&r&&a;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach(e=>s[e]=()=>a[e]);return s.default=()=>a,n.d(i,s),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var a=0;a<t.length;){var r=t[a++],i=t[a++];n.o(e,r)?0===i&&a++:0===i?Object.defineProperty(e,r,{enumerable:!0,value:t[a++]}):Object.defineProperty(e,r,{enumerable:!0,get:i})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},n.nc=void 0;n(783)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.